This post covers step by step instructions of How to Start/Stop services in Oracle Applications R12. These steps are from Online Oracle Apps DBA (11i /R12) training here (This is interactive online course over weekend with hands on exercises on installation, patching, cloning during weekdays)
Assumptions
Application Tier O.S. User : avisr12 (usually applmgr)
Database Tier O.S. User : ovisr12 (usually oracle)
R12 install base : /oracle/apps/r12/visr12
Database SID : visr12
Database Version : 11.1.0
Hostname : focusthreadr12
Operating System : Unix/Linux
Apps Schema Password : apps (apps is default password)
.
Start-Up/Shutdown order
If you are starting services then first start Database Tier services and then Application Tier Services.
If you are shutting down services then first stop Application Tier services and then Database Tier Services.
1. Startup
1.1 Start Database Tier
1.1.1 Login as database tier user (ovisr12)
1.1.2 Set environment variable by running $SID_hostname.envfrom $INSTALL_BASE/db/tech_st/11.1.0
—- cd /oracle/apps/r12/visr12/db/tech_st/11.1.0
—- . visr12_focusthreadr12.com (note: dot in front)
1.1.3 Start database
—- sqlplus “/as sysdba”
—- SQL> startup
1.1.4 Start Database Listener (lsnrctl start $SID)
—- lsnrctl start visr12
.
.
1.2 Start Application Tier
1.2.1 Login as application tier user (avisr12)
1.2.2 Set environment variable by running $SID_hostname.envfrom $INSTALL_BASE/apps/apps_st/appl
—- cd /oracle/apps/r12/visr12/apps/apps_st/appl
—- . visr12_focusthreadr12.com (note: dot in front)
1.2.3 Start Application Tier (adstrtal.sh apps/$apps_password)
—- cd $ADMIN_SCRIPTS_HOME
—- ./adstrtal.sh apps/apps
.
.
2. Shutdown Services
2.1 Shutdown Application Tier
2.1.1 Login as application tier user (avisr12)
2.1.2 Set environment variable by running $SID_hostname.env from $INSTALL_BASE/apps/apps_st/appl
—- cd /oracle/apps/r12/visr12/apps/apps_st/appl
—- . visr12_focusthreadr12.com (note: dot in front)
2.1.3 Stop Application Tier (adstpall.sh apps/$apps_password)
—- cd $ADMIN_SCRIPTS_HOME
—- ./adstpall.sh apps/apps
.
2.2 Shutdown Database Tier
2.2.1 Login as database tier user (ovisr12)
2.2.2 Set environment variable by running $SID_hostname.env from $INSTALL_BASE/db/tech_st/11.1.0
—- cd /oracle/apps/r12/visr12/db/tech_st/11.1.0
—- . visr12_focusthreadr12.com (note: dot in front)
2.2.3 Stop database
—- sqlplus “/as sysdba”
—- SQL> shutdown immediate
2.2.4 Stop Database Listener (lsnrctl start $SID)
—- lsnrctl stop visr12
.
- For startup/shutdown in Oracle Applications 11i check here and here
- For start/stop services in Oracle Application Server (10g) click here
- For start/stop services in WebLogic (Fusion Middleware 11g) click here
.
To register for Oracle Apps DBA training (11i & R12) click here [next batch starting 17th April]
Related Posts for Startup Shutdown
- Start-up Shutdown Scripts in Oracle Apps R12
- Startup Shutdown Application Server - Bounce Services
- Startup Shutdown Apps Services
- ADAPCCTL.SH : EXITING WITH STATUS 150 , 204 : Apache Logs in R12
- adoacorectl.sh , adformsctl.sh , adoafmctl.sh - exiting with status 204
- How to Start / Stop services in Oracle Applications R12 ( Application / Database Tier)
Popularity: 5% [?]









Good hands-on exercises (installation, patching, cloning), very experienced trainer worth every penny
4 users commented in " How to Start / Stop services in Oracle Applications R12 ( Application / Database Tier) "
Follow-up comment rss or Leave a TrackbackHi Atul,
In case, if databsae comes down when all services are up/running,
will everything be fine, if i simply startup the database again, or should I have to restart all application services as well.
This scenario might comes in case of any hardware cluster implemented for database node which runs on virtual IP/hostname, when everything gets mounted to failover node due to database is down, and database services will be restarted by the cluster scripts.
So what happens to the application node. should we have to restart the services there manually. (N.B - Not using RAC/TAF)
-Famy
@ Famy
In case, if databsae comes down when all services are up/running, will everything be fine, if i simply startup the database again, or should I have to restart all application services as well.
Ans : Restart Application Tier services as well (OC4J use connection pool)
I n case of database it is OK sqlplus is running , but in Application tier
when run command sqlplus apps/apps
ERROR:
ORA-01034: ORACLE not available
ORA -27123: unable to allocate to shared memeory segment
Linux error 13 : Permission denied
plzzzzzzz help
On Application Tier ensure environment variable is set properly.
Check $ORACLE_HOME and $TWO_TASK value from application tier
ORACLE_HOME should point to 806 ORACLE_HOME(in 11i) or 10.1.2 (in R12) forms and report home
TWO_TASK should point to your SID and there should be entry in tnsnames.ora in Application Tier ORACLE_HOME network directory
Leave A Reply