How to disable and start Oracle 10g RAC
Scenario 1: maintain the database and operating system, servers, and shut down the database (all instances), OS, and Server.
A. Stop the Oracle10g environment first
$ Lsnrctl stop (you can also use srvctl to stop listening on each node)
$ Emctl stop dbconsole (each node stops dbconsole)
$ Srvctl stop database-d RACDB (stop all database instances)
$ Srvctl stop nodeapps-n node1 (stop Node 1 service)
$ Srvctl stop nodeapps-n node2 (stop Node 2 Service)
#/Etc/init. d/init. crs stop (root stop cluster software) (two nodes)
Or use $ crs_stop-all
Crsctl stop crs
B. Then # init 0 shut down the server, or if you restart # init 6
C. Turn off the power supply.
D. Enable the Server and start enabling Oracle10g databases and services (if the OS is restarted, all the following services will be automatically opened [except dbconsole] without manual execution ).
$ Srvctl start nodeapps-n node1 (enable Node 1 service)
$ Srvctl start nodeapps-n node2 (enable Node 2 Service)
#/Etc/init. d/init. crs start (root enables cluster software)
Or use $ crs_start-all
$ Srvctl start database-d RACDB (enable all database instances)
$ Lsnrctl start (stop listening on each node or use srvctl to operate)
$ Emctl start dbconsole (dbconsole is enabled for each node)
Note: srvctl can also be used to close an instance:
Srvctl stop instance-d RACDB-I RACDB1
Enable and disable the listener in srvctl:
Srvctl stop listener-n orcl2
Srvctl start listener-n orcl2
Case 2: When you adjust the database parameters, only shut down all node instances and do not restart the OS and Server.
A. Stop the Oracle10g environment first
$ Lsnrctl stop (stop listening on all nodes or use srvctl)
$ Srvctl stop database-d tpc (stop all database instances)
B. Enable all instances and listeners.
$ Srvctl start database-d tpc (enable all database instances)
$ Lsnrctl start (enable listening on all nodes or use srvctl to enable listening)
Case 3: If you do not close the operating system, you need to disable or enable certain service programs due to issues or adjustments to some services.
When shutting down some services, you also need to shut down the database instance because RAC is involved, similar to the first case.
With the Oracle10g RAC check command:
----------------------------------------------
The nodeapps of the Oracle10g RAC database include VIP, GSD, Listener, and ONS.
$ Srvctl status nodeapps-n dbrac1 (check VIP, GSD, ONS, Listener, etc. (all nodes ))
VIP is running on node: dbrac1
GSD is not running on node: dbrac1
Listener is not running on node: dbrac1
ONS daemon is not running on node: dbrac1
Gnd-rac01 $ crsctl check crs (check Oracle Cluster status: CSS, CRS, EVM .)
CSS appears healthy
CRS appears healthy
EVM appears healthy
Gnd-rac01 $ crs_stat-t (full check status)
Name Type Target State Host
Why are there too many other users? Br/> ora... 01. lsnr application ONLINE gnd-rac01
Ora... c01.gsd application ONLINE gnd-rac01
Ora... c01.ons application ONLINE gnd-rac01
Ora... c01.vip application ONLINE gnd-rac01
Ora... 02. lsnr application OFFLINE
Ora... c02.gsd application ONLINE gnd-rac02
Ora... c02.ons application ONLINE gnd-rac02
Ora... c02.vip application ONLINE gnd-rac02
Ora. tpc. db application ONLINE gnd-rac01
Ora... c1.inst application ONLINE gnd-rac01