This post describes the procedure to start DB, OID and ODSM.
To start DB, follow the steps in the order given below:
1. Set the environment variables (if they are not already set) by executing the below commands:
a. export ORACLE_HOME = /app/oracle/product/11.2.0/dbhome_1. Path of the base directory of database
b. export PATH = /app/oracle/product/11.2.0/dbhome_1/bin: $PATH. The bin directory of ORACLE_HOME
c. export LD_LIBRARY_PATH=/app/oracle/product/11.2.0/dbhome_1/lib. The lib folder of ORACLE_HOME
d. export ORACLE_SID=orcl. Database SID
PS: All these variables can be permanently set in the session by writing these commands to ".profile" file of the unix user.
2. Start the database listener by executing the below command:
a. lsnrctl start
a. startup
c. export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/ldap/bin:$ORACLE_INSTANCE/bin:$PATH.
d. export TNS_ADMIN=$ORACLE_INSTANCE/config
PS: Make sure the first directory of PATH variable is always bin directory of ORACLE_HOME as defined above. You might get errors while executing ldap commands if this is not maintained.
2. Start OID by executing
a. opmnctl startall
You can check the status of OID by executing opmnctl status to verify if the status is Alive i.e., if OID is started.
To start DB, follow the steps in the order given below:
1. Set the environment variables (if they are not already set) by executing the below commands:
a. export ORACLE_HOME = /app/oracle/product/11.2.0/dbhome_1. Path of the base directory of database
b. export PATH = /app/oracle/product/11.2.0/dbhome_1/bin: $PATH. The bin directory of ORACLE_HOME
c. export LD_LIBRARY_PATH=/app/oracle/product/11.2.0/dbhome_1/lib. The lib folder of ORACLE_HOME
d. export ORACLE_SID=orcl. Database SID
PS: All these variables can be permanently set in the session by writing these commands to ".profile" file of the unix user.
2. Start the database listener by executing the below command:
a. lsnrctl start
3. After starting the listener, login to idle instance of database by executing:
a. sqlplus / as sysdba
4. Start the database instance by executinga. startup
You have successfully started the database now.
The next step is to start OID. In 11g, OID has ODSM which is GUI similar to "Oracle Directory Manager" in 10g version. You can just start OID process using OPMN and start working with out ODSM as ODSM is only a GUI interface provided by Oracle.
Steps to Start OID using OPMN
1. Set the environment variables required to start OID by executing the below commands:
a. export ORACLE_HOME=/home/oracle/Oracle/Middleware/Oracle_IDM1. Path of the base directory of Oracle Internet Directory
b. export ORACLE_INSTANCE=/home/oracle/Oracle/Middleware/asinst_1. Path of the instance directory created while installationc. export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/ldap/bin:$ORACLE_INSTANCE/bin:$PATH.
d. export TNS_ADMIN=$ORACLE_INSTANCE/config
PS: Make sure the first directory of PATH variable is always bin directory of ORACLE_HOME as defined above. You might get errors while executing ldap commands if this is not maintained.
2. Start OID by executing
a. opmnctl startall
You can check the status of OID by executing opmnctl status to verify if the status is Alive i.e., if OID is started.
You have started OID successfully. You can start working with OID now.
(Optional) The next step is to start ODSM i.e., Weblogic Managed Server. To start with you have to start Weblogic Admin Server.
Steps to start Web logic Admin and Managed Server
1. To start Weblogic Admin Server, Navigate to <WLS_DOMAIN>/bin directory and execute:
a. ./startWeblogic
2. To start Managed Server, Navigate to <WLS_DOMAIN>/bin directory and execute:
a. ./startManagedWeblogic <Managed_Server_Name> <Admin_Server_URL>
PS: If you get an error "Unable to get lock on "WLS_<>.DAT" file while starting Admin or Managed Server, Delete the ".DAT" files from the "<WLS_DOMAIN>/servers/<Admin or Managed>/data/store/default" and "<WLS_DOMAIN>/servers/<Admin or Managed>/data/store/diagnostics" directories and try restarting the server.
Nice post, Thanks for your post.
ReplyDeletehttp://appstier.blogspot.in
Nice post, Thanks for your post.
ReplyDeletehttp://appstier.blogspot.in
This comment has been removed by a blog administrator.
ReplyDelete