AUTOMATIC (default): the database is automatically restored to its previous running condition.
MANUAL: the database is never automatically restarted
[root@srv1 ~]# srvctl modify database -d rac -policy manual
The management policy of services acsrv,lbsrv,pretaf,soesrv,staf will be modified to MANUAL. Modify the management policy of the database rac? (y/[n]) y
[root@srv1 ~]#
MANUAL: the database is never automatically restarted
[root@srv1 ~]# srvctl modify database -d rac -policy manual
The management policy of services acsrv,lbsrv,pretaf,soesrv,staf will be modified to MANUAL. Modify the management policy of the database rac? (y/[n]) y
[root@srv1 ~]#
[root@srv1 trace]# srvctl config database -d rac
Database unique name: rac
Database name: rac
Oracle home: /u01/app/oracle/product/12.1.0/dbhome_2
Oracle user: oracle
Spfile: +DATA/RAC/PARAMETERFILE/spfile.268.1011961131
Password file: +DATA/RAC/PASSWORD/pwdrac.256.1011959883
Domain:
Start options: open
Stop options: immediate
Database role: PRIMARY
Management policy: MANUAL
Server pools:
Disk Groups: FRA,DATA
Mount point paths:
Services: acsrv,lbsrv,pretaf,soesrv,staf
Type: RAC
Start concurrency:
Stop concurrency:
OSDBA group: dba
OSOPER group:
Database instances: rac1,rac2
Configured nodes: srv1,srv2
Database is administrator managed
[root@srv1 trace]#
[root@srv1 trace]# crsctl stop cluster -all
[root@srv1 trace]# crsctl start cluster -all
[root@srv1 trace]# crsctl status resource -t
--------------------------------------------------------------------------------
Name Target State Server State details
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.BACKUP.BACKUP.advm
ONLINE OFFLINE srv1 Volume device /dev/a
sm/backup-461 is off
line,STABLE
ONLINE ONLINE srv2 Volume device /dev/a
sm/backup-461 is onl
ine,STABLE
ora.BACKUP.dg
ONLINE ONLINE srv1 STABLE
ONLINE ONLINE srv2 STABLE
ora.CRS.dg
ONLINE ONLINE srv1 STABLE
ONLINE ONLINE srv2 STABLE
ora.DATA.dg
ONLINE ONLINE srv1 STABLE
ONLINE ONLINE srv2 STABLE
ora.FRA.dg
ONLINE ONLINE srv1 STABLE
ONLINE ONLINE srv2 STABLE
ora.LISTENER.lsnr
ONLINE ONLINE srv1 STABLE
ONLINE OFFLINE srv2 STABLE
ora.asm
ONLINE ONLINE srv1 Started,STABLE
ONLINE ONLINE srv2 Started,STABLE
ora.backup.backup.acfs
ONLINE OFFLINE srv1 volume /u01/Backup o
ffline,STABLE
ONLINE ONLINE srv2 mounted on /u01/Back
up,STABLE
ora.net1.network
ONLINE ONLINE srv1 STABLE
ONLINE ONLINE srv2 STABLE
ora.ons
ONLINE ONLINE srv1 STABLE
ONLINE ONLINE srv2 STABLE
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
1 ONLINE ONLINE srv2 STABLE
ora.LISTENER_SCAN2.lsnr
1 ONLINE ONLINE srv2 STABLE
ora.LISTENER_SCAN3.lsnr
1 ONLINE ONLINE srv2 STABLE
ora.MGMTLSNR
1 ONLINE ONLINE srv2 169.254.128.179 192.
168.10.2,STABLE
ora.cvu
1 ONLINE ONLINE srv2 STABLE
ora.mgmtdb
1 ONLINE OFFLINE Instance Shutdown,ST
ABLE
ora.oc4j
1 ONLINE OFFLINE srv2 STARTING
ora.rac.acsrv.svc
1 OFFLINE OFFLINE STABLE
ora.rac.db
1 ONLINE OFFLINE Instance Shutdown,ST
ABLE
2 OFFLINE OFFLINE Instance Shutdown,ST
ABLE
ora.rac.lbsrv.svc
1 OFFLINE OFFLINE STABLE
2 OFFLINE OFFLINE STABLE
ora.rac.pretaf.svc
1 OFFLINE OFFLINE STABLE
ora.rac.pretaf_preconnect.svc
1 OFFLINE OFFLINE STABLE
ora.rac.soesrv.svc
1 OFFLINE OFFLINE STABLE
ora.rac.staf.svc
1 OFFLINE OFFLINE STABLE
ora.scan1.vip
1 ONLINE ONLINE srv2 STABLE
ora.scan2.vip
1 ONLINE ONLINE srv2 STABLE
ora.scan3.vip
1 ONLINE ONLINE srv2 STABLE
ora.srv1.vip
1 ONLINE ONLINE srv1 STABLE
ora.srv2.vip
1 ONLINE ONLINE srv2 STABLE
--------------------------------------------------------------------------------
[root@srv1 trace]# srvctl start service -s acsrv -db rac
[root@srv1 trace]# srvctl status service -s acsrv -db rac
Service acsrv is running on instance(s) rac1
[root@srv1 trace]#
[root@srv1 trace]# srvctl status service -s lbsrv -db rac
Service lbsrv is not running.
[root@srv1 trace]# srvctl start service -s lbsrv -db rac
[root@srv1 trace]# srvctl status service -s lbsrv -db rac
Service lbsrv is running on instance(s) rac1,rac2
[root@srv1 trace]#
[root@srv1 trace]# srvctl status service -s pretaf -db rac
Service pretaf is not running.
[root@srv1 trace]# srvctl start service -s pretaf -db rac
[root@srv1 trace]# srvctl status service -s pretaf -db rac
Service pretaf is running on instance(s) rac1
[root@srv1 trace]#
[root@srv1 trace]# srvctl status service -s pretaf_preconnect -db rac
Service pretaf_preconnect is not running.
[root@srv1 trace]# srvctl start service -s pretaf_preconnect -db rac
[root@srv1 trace]# srvctl status service -s pretaf_preconnect -db rac
Service pretaf_preconnect is running on instance(s) rac2
[root@srv1 trace]#
[root@srv1 trace]# srvctl start service -s pretaf_preconnect -db rac
[root@srv1 trace]# srvctl status service -s pretaf_preconnect -db rac
Service pretaf_preconnect is running on instance(s) rac2
[root@srv1 trace]# srvctl status service -s soesrv -db rac
Service soesrv is not running.
[root@srv1 trace]# srvctl start service -s soesrv -db rac
[root@srv1 trace]# srvctl status service -s soesrv -db rac
Service soesrv is running on instance(s) rac1
[root@srv1 trace]# srvctl status service -s staf -db rac
Service staf is not running.
[root@srv1 trace]# srvctl start service -s staf -db rac
[root@srv1 trace]# srvctl status service -s staf -db rac
Service staf is running on instance(s) rac1
[root@srv1 tra[root@srv1 trace]# crsctl status resource -t
--------------------------------------------------------------------------------
Name Target State Server State details
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.BACKUP.BACKUP.advm
ONLINE ONLINE srv1 Volume device /dev/a
sm/backup-461 is onl
ine,STABLE
ONLINE ONLINE srv2 Volume device /dev/a
sm/backup-461 is onl
ine,STABLE
ora.BACKUP.dg
ONLINE ONLINE srv1 STABLE
ONLINE ONLINE srv2 STABLE
ora.CRS.dg
ONLINE ONLINE srv1 STABLE
ONLINE ONLINE srv2 STABLE
ora.DATA.dg
ONLINE ONLINE srv1 STABLE
ONLINE ONLINE srv2 STABLE
ora.FRA.dg
ONLINE ONLINE srv1 STABLE
ONLINE ONLINE srv2 STABLE
ora.LISTENER.lsnr
ONLINE ONLINE srv1 STABLE
ONLINE ONLINE srv2 STABLE
ora.asm
ONLINE ONLINE srv1 Started,STABLE
ONLINE ONLINE srv2 Started,STABLE
ora.backup.backup.acfs
ONLINE ONLINE srv1 mounted on /u01/Back
up,STABLE
ONLINE ONLINE srv2 mounted on /u01/Back
up,STABLE
ora.net1.network
ONLINE ONLINE srv1 STABLE
ONLINE ONLINE srv2 STABLE
ora.ons
ONLINE ONLINE srv1 STABLE
ONLINE ONLINE srv2 STABLE
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
1 ONLINE ONLINE srv1 STABLE
ora.LISTENER_SCAN2.lsnr
1 ONLINE ONLINE srv2 STABLE
ora.LISTENER_SCAN3.lsnr
1 ONLINE ONLINE srv2 STABLE
ora.MGMTLSNR
1 ONLINE ONLINE srv1 169.254.163.239 192.
168.10.1,STABLE
ora.cvu
1 ONLINE ONLINE srv2 STABLE
ora.mgmtdb
1 ONLINE ONLINE srv1 Open,STABLE
ora.oc4j
1 ONLINE ONLINE srv2 STABLE
ora.rac.acsrv.svc
1 ONLINE ONLINE srv1 STABLE
ora.rac.db
1 ONLINE ONLINE srv1 Open,STABLE
2 ONLINE ONLINE srv2 Open,STABLE
ora.rac.lbsrv.svc
1 ONLINE ONLINE srv1 STABLE
2 ONLINE ONLINE srv2 STABLE
ora.rac.pretaf.svc
1 ONLINE ONLINE srv1 STABLE
ora.rac.pretaf_preconnect.svc
1 ONLINE ONLINE srv2 STABLE
ora.rac.soesrv.svc
1 ONLINE ONLINE srv1 STABLE
ora.rac.staf.svc
1 ONLINE ONLINE srv1 STABLE
ora.scan1.vip
1 ONLINE ONLINE srv1 STABLE
ora.scan2.vip
1 ONLINE ONLINE srv2 STABLE
ora.scan3.vip
1 ONLINE ONLINE srv2 STABLE
ora.srv1.vip
1 ONLINE ONLINE srv1 STABLE
ora.srv2.vip
1 ONLINE ONLINE srv2 STABLE
--------------------------------------------------------------------------------
[root@srv1 trace]#
No comments:
Post a Comment