Friday, December 11, 2009

Tips: Installing WebLogic in Production mode

I got some errors when trying to start my brand new weblogic domain in production mode, so I checked oracle documentation to get some guidance. Without success, I searched oracle otn forum when finally I got the fix for my problem. Below are some steps you need to follow before trying to start your domain and after domain creation.

1) Create RDMS Tables: Run the script in your WLS_SERVER_HOME/server/lib/rdbms_security_store_oracle.sql , if you are using other database than oracle, choose the script appropriate to your db.
details: http://download.oracle.com/docs/cd/E12840_01/wls/docs103/secmanage/rdbms.html#wp1105241

2) When using Oracle XE database, you need to run the following statements below:
ALTER SYSTEM SET PROCESSES=200 SCOPE=SPFILE;
ALTER SYSTEM SET SHARED_SERVERS=10 SCOPE=SPFILE;
ALTER SYSTEM SET SESSIONS=150 SCOPE=SPFILE;
*change the number of shared servers according to the number of wls nodes you have. if you have admin and one node than you should set it to at least 6. The count should be 3 units per node.

3) Start AdminServer: go to DOMAIN_HOME/bin -> startWebLogic.cmd
4) Start Node 1: startManagedWebLogic.cmd "nodeName" "AdminServerAddress" -> e.g.: startManagedWebLogic.cmd "mng1" "http://localhost:8001"

That's all! Your domain should start.