Você está na página 1de 3

Servers:

------------------drxpvm2054.dcld.bcdc.kp.org
CGITPFR
CGITPDR
CGITPAR
CGITPER
CGITPBR
CGITPCR
drxpvm2056.dcld.bcdc.kp.org
BOITPER
BOITPFR
BOITPBR
BOITPDR
BOITPHR
BOITPAR
###########drxpvm2056.dcld.bcdc.kp.org ##########
1. Stop agent
ps -ef|grep agent
cd /u01/app/oracle/product/agent12c/core/12.1.0.4.0/bin
emctl status agent
emctl stop agent
emctl status agent
ps -ef|grep agent
2. Check the status of all DR databases residing on this server :
ps -ef|grep smon|grep -v grep |cut -d_ -f3|grep -v "+ASM"
ps -ef|grep mrp|grep -v grep
sqlplus / as sysdba
select name,open_mode,database_role from v$database;
SELECT ARCH.THREAD# "Thread", ARCH.SEQUENCE# "Last Sequence Received", APPL.SEQU
ENCE# "Last Sequence Applied", (ARCH.SEQUENCE# - APPL.SEQUENCE#) "Difference"
FROM
(SELECT THREAD# ,SEQUENCE# FROM V$ARCHIVED_LOG WHERE (THREAD#,FIRST_TIME ) IN (S
ELECT THREAD#,MAX(FIRST_TIME) FROM V$ARCHIVED_LOG GROUP BY THREAD#)) ARCH,
(SELECT THREAD# ,SEQUENCE# FROM V$LOG_HISTORY WHERE (THREAD#,FIRST_TIME ) IN (SE
LECT THREAD#,MAX(FIRST_TIME) FROM V$LOG_HISTORY GROUP BY THREAD#)) APPL
WHERE
ARCH.THREAD# = APPL.THREAD#;
SELECT THREAD#, LOW_SEQUENCE#, HIGH_SEQUENCE# FROM V$ARCHIVE_GAP;
SELECT PROCESS, STATUS FROM V$MANAGED_STANDBY;

3. Connect and Stop MRP process of all DR databases


sqlplus / as sysdba
alter database recover managed standby database cancel;
shut immediate;
exit
4. stop listener :
cd /u01/app/11.2.0.4/grid/bin
lsnrctl stop LISTENER
5.stop ASM:
. oraenv
+ASM
sqlplus / as sysasm
shut immediate;
exit
6. Check and stop has
cd /u01/app/11.2.0.4/grid/bin
crsctl check has
crsctl stop has
crsctl check has
###########drxpvm2054.dcld.bcdc.kp.org ##########

1. Stop agent
ps -ef|grep agent
cd /u01/app/oracle/product/agent12c/core/12.1.0.4.0/bin
emctl status agent
emctl stop agent
emctl status agent
ps -ef|grep agent
2. Check the status of all DR databases residing on this server :
ps -ef|grep smon|grep -v grep |cut -d_ -f3|grep -v "+ASM"
ps -ef|grep mrp|grep -v grep

sqlplus / as sysdba
select name,open_mode,database_role from v$database;
SELECT ARCH.THREAD# "Thread", ARCH.SEQUENCE# "Last Sequence Received", APPL.SEQU
ENCE# "Last Sequence Applied", (ARCH.SEQUENCE# - APPL.SEQUENCE#) "Difference"
FROM
(SELECT THREAD# ,SEQUENCE# FROM V$ARCHIVED_LOG WHERE (THREAD#,FIRST_TIME ) IN (S
ELECT THREAD#,MAX(FIRST_TIME) FROM V$ARCHIVED_LOG GROUP BY THREAD#)) ARCH,
(SELECT THREAD# ,SEQUENCE# FROM V$LOG_HISTORY WHERE (THREAD#,FIRST_TIME ) IN (SE
LECT THREAD#,MAX(FIRST_TIME) FROM V$LOG_HISTORY GROUP BY THREAD#)) APPL
WHERE
ARCH.THREAD# = APPL.THREAD#;
SELECT THREAD#, LOW_SEQUENCE#, HIGH_SEQUENCE# FROM V$ARCHIVE_GAP;
SELECT PROCESS, STATUS FROM V$MANAGED_STANDBY;
3. Connect and Stop MRP process of all DR databases
sqlplus / as sysdba
alter database recover managed standby database cancel;
shut immediate;
exit
4. stop listener :
cd /u01/app/11.2.0.4/grid/bin
lsnrctl stop LISTENER
5.stop ASM:
. oraenv
+ASM
sqlplus / as sysasm
shut immediate;
exit
6. Check and stop HAS
crsctl check has
crsctl stop has
crsctl check has