Sei sulla pagina 1di 17

THỦ TỤC THỰC HIỆN RESTORE DATABASE TEST -DEV

Dự án:
Ngày :
Địa điểm :

1. Thực hiện tạo pfile và standby controlfile trên PRIMARY


$ export ORACLE_SID=t24test
$ sqlplus / as sysdba
SQL> create pfile='/orcldata/t24test/backup_full/pfilet24test.ora' from
spfile;

$ rman target /
RMAN> backup current controlfile for standby format
'/orcldata/t24test/backup_full/ForStandbyCTRL_t24test.bck';
2. Thực hiện scp các bản backup full, standby controlfile và pfile sang STANDBY
3. Thực hiện thay đổi 1 số tham số trong pfile trên STANDBY và tạo đường dẫn thư
mục chứa audit của database
$ vi /home/oracle/pfilet24test.ora
*.archive_lag_target=1800
*.audit_file_dest='/u01/app/oracle/admin/t24test/adump'
*.audit_trail='none'
*.cluster_database=FALSE
*.compatible='12.2.0'
*.control_files='+DATA3/T24TEST/CONTROLFILE/control01.ctl','+DATA4/T24T
EST/CONTROLFILE/control02.ctl'#Restore Controlfile
*.cursor_sharing='EXACT'
*.db_block_size=8192
*.db_files=2048
*.db_name='t24'
*.db_recovery_file_dest='+REDO'
*.db_recovery_file_dest_size=4187593113600
*.db_unique_name='t24test'
*.diagnostic_dest='/u01/app/oracle'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=t24testXDB)'
*.log_archive_format='%t_%s_%r.dbf'
*.LOG_ARCHIVE_MAX_PROCESSES=8
*.log_archive_trace=0
*.nls_language='AMERICAN'
*.nls_territory='AMERICA'
*.open_cursors=3000
*.optimizer_index_cost_adj=1
*.pga_aggregate_target=12G
*.processes=1500
*.query_rewrite_enabled='TRUE'
*.query_rewrite_integrity='TRUSTED'
*.recyclebin='OFF'
*.remote_login_passwordfile='exclusive'
*.session_cached_cursors=3000
*.sessions=1655
*.sga_max_size=24G
*.sga_target=24G
*.standby_file_management='AUTO'
*.undo_retention=3600

$ mkdir -p /u01/app/oracle/admin/t24test/adump
4. Tạo spfile từ pfile trên STANDBY và startup nomount database
$ export ORACLE_SID=t24test
$ sqlplus / as sysdba
SQL> create spfile from pfile='/home/oracle/pfilet24test.ora';
SQL> startup nomount
5. Thực hiện restore standby control file trên STANDBY
$ export ORACLE_SID=t24test
$ rman target /
RMAN> restore standby controlfile from
'/rmanbk/oracle/Coret24F_7_20181118_04h00_F46/Controlfile_992497128_429
9.ctrl';
Starting restore at 19-NOV-18
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=386 device type=DISK

channel ORA_DISK_1: restoring control file


channel ORA_DISK_1: restore complete, elapsed time: 00:00:01
output file name=+DATA3/T24TEST/CONTROLFILE/control01.ctl
output file name=+DATA4/T24TEST/CONTROLFILE/control02.ctl
Finished restore at 19-NOV-18
6. Startup mount database
RMAN> alter database mount

Statement processed
released channel: ORA_DISK_1
7. Thực hiện catalog các bản backup full trên STANDBY
RMAN> catalog start with
'/rmanbk/oracle/Coret24F_7_20181118_04h00_F46';
8. Thực hiện check đường dẫn datafile phía PRIMARY
$ export ORACLE_SID=t24db
$ sqlplus / as sysdba
SQL> set linesize 500
col FILE_NAME for a65
col TABLESPACE_NAME for a20
set pagesize 9999

select file#, a.NAME as FILE_NAME, b.name as TABLESPACE_NAME from


v$datafile a, v$tablespace b where a.TS#=b.ts#;

FILE# FILE_NAME TBS_NAME


---------- ------------------------------------------------- ------------
1 +DATA1/t24db/system01.dbf SYSTEM
3 +DATA1/t24db/sysaux01.dbf SYSAUX
4 +DATA1/t24db/undotbs01.dbf UNDOTBS1
.........
202 +DATA2/T24DB/DATAFILE/t24data_arc.339.987740285 T24DATA_ARC
203 +DATA2/T24DB/DATAFILE/t24data_arc.348.987739773 T24DATA_ARC
.........
345 rows selected.

9. Chuẩn bị script restore cho STANDBY database t24test (file RMAN)


$ vi restore_t24test.rman
RUN
{
SET NEWNAME FOR TABLESPACE SYSAUX TO '+DATA4';
SET NEWNAME FOR TABLESPACE SYSTEM TO '+DATA4';
SET NEWNAME FOR TABLESPACE UNDOTBS1 TO '+DATA4';
SET NEWNAME FOR TABLESPACE USERS TO '+DATA4';
SET NEWNAME FOR TABLESPACE UNDOTBS2 TO '+DATA4';
SET NEWNAME FOR TABLESPACE T24DATA TO '+DATA4';
SET NEWNAME FOR TABLESPACE T24INDEX TO '+DATA4';
restore database skip forever tablespace "T24DATA_ARC","T24INDEX_ARC";
recover database skip forever tablespace "T24DATA_ARC","T24INDEX_ARC";
SWITCH TABLESPACE SYSAUX TO COPY;
SWITCH TABLESPACE SYSTEM TO COPY;
SWITCH TABLESPACE UNDOTBS1 TO COPY;
SWITCH TABLESPACE USERS TO COPY;
SWITCH TABLESPACE UNDOTBS2 TO COPY;
SWITCH TABLESPACE T24DATA TO COPY;
}
EXIT;
10. Chuẩn bị script restore cho STANDBY database t24test (file SH)
$ vi restore_t24test.sh
#!/bin/ksh
export ORACLE_HOME=/u01/app/oracle/product/12.2.0/db
ORACLE_SID=t24test
export BASE_PATH=/usr/sbin:$PATH
export PATH=$ORACLE_HOME/bin:$BASE_PATH
rman target=/
cmdfile=/rmanbk/oracle/Coret24F_7_20181118_04h00_F46/restore_t24test.rm
an msglog
/rmanbk/oracle/Coret24F_7_20181118_04h00_F46/log_restore_t24test.log
11. Restore database trên hệ thống STANDBY
$ nohup /rmanbk/oracle/Coret24F_7_20181118_04h00_F46/restore_t24test.sh
&
12. Xác định số SCN và thực hiện backup incremental để có số SCN gần nhất với
PRIMARY database
Trên hệ thống STANDBY
$ export ORACLE_SID=t24test
$ sqlplus / as sysdba
SQL> select min(checkpoint_change#) from v$datafile_header
where file# not in (select file# from v$datafile where enabled = 'READ
ONLY');

MIN(CHECKPOINT_CHANGE#)
-----------------------
12371084107
Trên hệ thống PRIMARY
$ export ORACLE_SID=t24db
$ rman target /
RMAN> BACKUP INCREMENTAL FROM SCN 12371084107 DATABASE FORMAT
'/backup/bk_datafile/ForStandby_%U' tag 'FORSTANDBY';
13. SCP bản backup incremental từ hệ thống PRIMARY sang hệ
14. Thực hiện recover database từ bản backup incremental trên hệ thống STANDBY
$ export ORACLE_SID=t24test
$ sqlplus / as sysdba
RMAN> recover database skip forever tablespace
"T24DATA_ARC","T24INDEX_ARC" noredo;
15. Backup controlfile trên hệ thống PRIMARY
$ export ORACLE_SID=t24db
$ rman target /
RMAN> BACKUP CURRENT CONTROLFILE FORMAT '/tmp/ForStandbyCTRL.bck';
16. Thực hiện SCP bản backup controlfile mới nhất sang hệ thống STANDBY
17. Thực hiện check lại đường dẫn của datafile trước khi apply controlfile mới nhất
trên hệ thống STANDBY
SQL> set lines 200
col name format a60
select file#, name from v$datafile order by file# ;

FILE# NAME
---------- ------------------------------------------------------------
1 +DATA3/T24TEST/DATAFILE/system.361.992794581
2 +DATA3/T24TEST/DATAFILE/t24data.431.992794575
3 +DATA3/T24TEST/DATAFILE/sysaux.359.992794581
...
190 +DATA2/T24DB/DATAFILE/t24data_arc.354.987739673
191 +DATA2/T24DB/DATAFILE/t24data_arc.335.987740429
192 +DATA2/T24DB/DATAFILE/t24data_arc.327.987740517
193 +DATA2/T24DB/DATAFILE/t24data_arc.336.987740421
...
18. Apply controlfile mới nhất
$ export ORACLE_SID=t24test
$ rman target /
RMAN> SHUTDOWN IMMEDIATE ;
RMAN> STARTUP NOMOUNT;
RMAN> RESTORE STANDBY CONTROLFILE FROM '/tmp/ForStandbyCTRL.bck';
19. Restart database
RMAN> SHUTDOWN;
RMAN> STARTUP MOUNT;
20. Kiểm tra và so sánh incarnation trên hệ thống PRIMARY và hệ thống STANDBY
(Phải giống nhau)
RMAN> list incarnation
21. Catalog lại đường dẫn datafile (trước khi apply controlfile) trên hệ thống
STANDBY
RMAN> catalog start with '+DATA3/T24TEST/DATAFILE';
22. Switch tablespace trên hệ thống STANDBY
RMAN> SWITCH TABLESPACE SYSAUX TO COPY;
RMAN> SWITCH TABLESPACE SYSTEM TO COPY;
RMAN> SWITCH TABLESPACE UNDOTBS1 TO COPY;
RMAN> SWITCH TABLESPACE USERS TO COPY;
RMAN> SWITCH TABLESPACE UNDOTBS2 TO COPY;
RMAN> SWITCH TABLESPACE T24DATA TO COPY;
RMAN> SWITCH TABLESPACE T24INDEX TO COPY;
23. Offline drop datafile trong tablespace READONLY trên hệ thống STANDBY
run {
sql'alter database datafile 9 offline drop';
sql'alter database datafile 10 offline drop';
sql'alter database datafile 11 offline drop';
sql'alter database datafile 12 offline drop';
sql'alter database datafile 13 offline drop';
sql'alter database datafile 14 offline drop';
sql'alter database datafile 15 offline drop';
sql'alter database datafile 16 offline drop';
sql'alter database datafile 17 offline drop';
sql'alter database datafile 18 offline drop';
sql'alter database datafile 19 offline drop';
sql'alter database datafile 20 offline drop';
sql'alter database datafile 21 offline drop';
sql'alter database datafile 22 offline drop';
sql'alter database datafile 23 offline drop';
sql'alter database datafile 24 offline drop';
sql'alter database datafile 25 offline drop';
sql'alter database datafile 26 offline drop';
sql'alter database datafile 27 offline drop';
sql'alter database datafile 28 offline drop';
sql'alter database datafile 29 offline drop';
sql'alter database datafile 30 offline drop';
sql'alter database datafile 31 offline drop';
sql'alter database datafile 32 offline drop';
sql'alter database datafile 33 offline drop';
sql'alter database datafile 34 offline drop';
sql'alter database datafile 35 offline drop';
sql'alter database datafile 36 offline drop';
sql'alter database datafile 37 offline drop';
sql'alter database datafile 38 offline drop';
sql'alter database datafile 39 offline drop';
sql'alter database datafile 40 offline drop';
sql'alter database datafile 41 offline drop';
sql'alter database datafile 42 offline drop';
sql'alter database datafile 43 offline drop';
sql'alter database datafile 44 offline drop';
sql'alter database datafile 45 offline drop';
sql'alter database datafile 46 offline drop';
sql'alter database datafile 47 offline drop';
sql'alter database datafile 48 offline drop';
sql'alter database datafile 49 offline drop';
sql'alter database datafile 50 offline drop';
sql'alter database datafile 51 offline drop';
sql'alter database datafile 52 offline drop';
sql'alter database datafile 53 offline drop';
sql'alter database datafile 54 offline drop';
sql'alter database datafile 55 offline drop';
sql'alter database datafile 56 offline drop';
sql'alter database datafile 57 offline drop';
sql'alter database datafile 58 offline drop';
sql'alter database datafile 59 offline drop';
sql'alter database datafile 60 offline drop';
sql'alter database datafile 61 offline drop';
sql'alter database datafile 62 offline drop';
sql'alter database datafile 63 offline drop';
sql'alter database datafile 64 offline drop';
sql'alter database datafile 65 offline drop';
sql'alter database datafile 66 offline drop';
sql'alter database datafile 67 offline drop';
sql'alter database datafile 68 offline drop';
sql'alter database datafile 69 offline drop';
sql'alter database datafile 70 offline drop';
sql'alter database datafile 71 offline drop';
sql'alter database datafile 72 offline drop';
sql'alter database datafile 73 offline drop';
sql'alter database datafile 74 offline drop';
sql'alter database datafile 75 offline drop';
sql'alter database datafile 76 offline drop';
sql'alter database datafile 77 offline drop';
sql'alter database datafile 78 offline drop';
sql'alter database datafile 79 offline drop';
sql'alter database datafile 80 offline drop';
sql'alter database datafile 81 offline drop';
sql'alter database datafile 82 offline drop';
sql'alter database datafile 83 offline drop';
sql'alter database datafile 84 offline drop';
sql'alter database datafile 85 offline drop';
sql'alter database datafile 86 offline drop';
sql'alter database datafile 87 offline drop';
sql'alter database datafile 88 offline drop';
sql'alter database datafile 89 offline drop';
sql'alter database datafile 90 offline drop';
sql'alter database datafile 91 offline drop';
sql'alter database datafile 92 offline drop';
sql'alter database datafile 93 offline drop';
sql'alter database datafile 94 offline drop';
sql'alter database datafile 95 offline drop';
sql'alter database datafile 96 offline drop';
sql'alter database datafile 97 offline drop';
sql'alter database datafile 98 offline drop';
sql'alter database datafile 99 offline drop';
sql'alter database datafile 100 offline drop';
sql'alter database datafile 101 offline drop';
sql'alter database datafile 102 offline drop';
sql'alter database datafile 103 offline drop';
sql'alter database datafile 104 offline drop';
sql'alter database datafile 105 offline drop';
sql'alter database datafile 106 offline drop';
sql'alter database datafile 107 offline drop';
sql'alter database datafile 108 offline drop';
sql'alter database datafile 109 offline drop';
sql'alter database datafile 110 offline drop';
sql'alter database datafile 111 offline drop';
sql'alter database datafile 112 offline drop';
sql'alter database datafile 113 offline drop';
sql'alter database datafile 114 offline drop';
sql'alter database datafile 115 offline drop';
sql'alter database datafile 116 offline drop';
sql'alter database datafile 117 offline drop';
sql'alter database datafile 118 offline drop';
sql'alter database datafile 119 offline drop';
sql'alter database datafile 120 offline drop';
sql'alter database datafile 121 offline drop';
sql'alter database datafile 122 offline drop';
sql'alter database datafile 123 offline drop';
sql'alter database datafile 124 offline drop';
sql'alter database datafile 125 offline drop';
sql'alter database datafile 126 offline drop';
sql'alter database datafile 127 offline drop';
sql'alter database datafile 128 offline drop';
sql'alter database datafile 129 offline drop';
sql'alter database datafile 130 offline drop';
sql'alter database datafile 131 offline drop';
sql'alter database datafile 132 offline drop';
sql'alter database datafile 133 offline drop';
sql'alter database datafile 134 offline drop';
sql'alter database datafile 135 offline drop';
sql'alter database datafile 136 offline drop';
sql'alter database datafile 137 offline drop';
sql'alter database datafile 138 offline drop';
sql'alter database datafile 139 offline drop';
sql'alter database datafile 140 offline drop';
sql'alter database datafile 141 offline drop';
sql'alter database datafile 142 offline drop';
sql'alter database datafile 143 offline drop';
sql'alter database datafile 144 offline drop';
sql'alter database datafile 145 offline drop';
sql'alter database datafile 146 offline drop';
sql'alter database datafile 147 offline drop';
sql'alter database datafile 148 offline drop';
sql'alter database datafile 149 offline drop';
sql'alter database datafile 150 offline drop';
sql'alter database datafile 151 offline drop';
sql'alter database datafile 152 offline drop';
sql'alter database datafile 153 offline drop';
sql'alter database datafile 154 offline drop';
sql'alter database datafile 155 offline drop';
sql'alter database datafile 156 offline drop';
sql'alter database datafile 157 offline drop';
sql'alter database datafile 158 offline drop';
sql'alter database datafile 159 offline drop';
sql'alter database datafile 160 offline drop';
sql'alter database datafile 161 offline drop';
sql'alter database datafile 162 offline drop';
sql'alter database datafile 163 offline drop';
sql'alter database datafile 164 offline drop';
sql'alter database datafile 165 offline drop';
sql'alter database datafile 166 offline drop';
sql'alter database datafile 167 offline drop';
sql'alter database datafile 168 offline drop';
sql'alter database datafile 169 offline drop';
sql'alter database datafile 170 offline drop';
sql'alter database datafile 171 offline drop';
sql'alter database datafile 172 offline drop';
sql'alter database datafile 173 offline drop';
sql'alter database datafile 174 offline drop';
sql'alter database datafile 175 offline drop';
sql'alter database datafile 176 offline drop';
sql'alter database datafile 177 offline drop';
sql'alter database datafile 178 offline drop';
sql'alter database datafile 179 offline drop';
sql'alter database datafile 180 offline drop';
sql'alter database datafile 181 offline drop';
sql'alter database datafile 182 offline drop';
sql'alter database datafile 183 offline drop';
sql'alter database datafile 184 offline drop';
sql'alter database datafile 185 offline drop';
sql'alter database datafile 186 offline drop';
sql'alter database datafile 187 offline drop';
sql'alter database datafile 188 offline drop';
sql'alter database datafile 189 offline drop';
sql'alter database datafile 190 offline drop';
sql'alter database datafile 191 offline drop';
sql'alter database datafile 192 offline drop';
sql'alter database datafile 193 offline drop';
sql'alter database datafile 194 offline drop';
sql'alter database datafile 195 offline drop';
sql'alter database datafile 196 offline drop';
sql'alter database datafile 197 offline drop';
sql'alter database datafile 198 offline drop';
sql'alter database datafile 199 offline drop';
sql'alter database datafile 200 offline drop';
sql'alter database datafile 201 offline drop';
sql'alter database datafile 202 offline drop';
sql'alter database datafile 203 offline drop';
sql'alter database datafile 204 offline drop';
sql'alter database datafile 205 offline drop';
sql'alter database datafile 206 offline drop';
sql'alter database datafile 207 offline drop';
sql'alter database datafile 208 offline drop';
sql'alter database datafile 209 offline drop';
sql'alter database datafile 210 offline drop';
sql'alter database datafile 211 offline drop';
sql'alter database datafile 212 offline drop';
sql'alter database datafile 213 offline drop';
sql'alter database datafile 214 offline drop';
sql'alter database datafile 215 offline drop';
sql'alter database datafile 216 offline drop';
sql'alter database datafile 217 offline drop';
sql'alter database datafile 218 offline drop';
sql'alter database datafile 219 offline drop';
sql'alter database datafile 220 offline drop';
sql'alter database datafile 221 offline drop';
sql'alter database datafile 222 offline drop';
sql'alter database datafile 223 offline drop';
sql'alter database datafile 224 offline drop';
sql'alter database datafile 225 offline drop';
sql'alter database datafile 226 offline drop';
sql'alter database datafile 227 offline drop';
sql'alter database datafile 228 offline drop';
}
24. Thực hiện recover database t24test trên hệ thống STANDBY
RMAN> recover database skip forever tablespace
"T24DATA_ARC","T24INDEX_ARC";
25. Kiểm tra block change tracking (Nếu có thì bỏ đi) trên hệ thống STANDBY
$ export ORACLE_SID=t24test
$ sqlplus / as sysdba
SQL> SELECT status, filename FROM V$BLOCK_CHANGE_TRACKING;
SQL> ALTER DATABASE DISABLE BLOCK CHANGE TRACKING;
26. Open database t24test
SQL> Alter database open resetlogs;
27. Kiểm tra redo log và standby redo log trên STANDBY
$ export ORACLE_SID=t24
$ sqlplus / as sysdba
SQL> set linesize 250
set pagesize 35
set trim on
set trims on
col group# format 999
col thread# format 999
col member format a75 wrap
col status format a10
col archived format a10
col fsize format 9999 heading "Size (MB)"

select l.group#, l.thread#,


f.member,
l.archived,
l.status,
(bytes/1024/1024) fsize
from
v$log l, v$logfile f
where f.group# = l.group#
order by 1,2
/

28. Kiểm tra sự tồn tại của các redolog và standby redo log trên STANDBY
# su - grid
$ asmcmd
ASMCMD> cd +REDO/T24TEST/ONLINELOG
ASMCMD> ls
29. Thực hiện thay đổi tham số cluster trên hệ thống STANDBY
$ export ORACLE_SID=t24test
$ sqlplus / as sysdba
SQL> show parameter cluster

NAME TYPE VALUE


------------------------------------ ----------- ----------------------
cdb_cluster boolean FALSE
cdb_cluster_name string t24test
cluster_database boolean FALSE
cluster_database_instances integer 1
cluster_interconnects string
SQL>
SQL> alter system set cluster_database=true scope=spfile;

30. Thêm các tham số sau vào spfile


SQL> create pfile='/tmp/pfilet24test.ora' from spfile;
$ vi /tmp/pfilet24test.ora

*.archive_lag_target=1800
*.audit_file_dest='/u01/app/oracle/admin/t24test/adump'
*.audit_trail='none'
*.cluster_database=TRUE
*.compatible='12.2.0'
*.control_files='+DATA3/T24TEST/CONTROLFILE/control01.ctl','+DATA4/T24TEST
/CONTROLFILE/control02.ctl'#Restore Controlfile
*.cursor_sharing='EXACT'
*.db_block_size=8192
*.db_files=2048
*.db_name='t24'
*.db_recovery_file_dest='+REDO'
*.db_recovery_file_dest_size=4187593113600
*.db_unique_name='t24test'
*.diagnostic_dest='/u01/app/oracle'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=t24testXDB)'
*.log_archive_dest_state_1='ENABLE'
*.log_archive_dest_state_2='ENABLE'
*.log_archive_format='%t_%s_%r.dbf'
*.LOG_ARCHIVE_MAX_PROCESSES=8
*.log_archive_trace=0
*.nls_language='AMERICAN'
*.nls_territory='AMERICA'
*.open_cursors=3000
*.optimizer_index_cost_adj=1
*.pga_aggregate_target=12G
*.processes=1500
*.query_rewrite_enabled='TRUE'
*.query_rewrite_integrity='TRUSTED'
*.recyclebin='OFF'
*.remote_login_passwordfile='exclusive'
*.session_cached_cursors=3000
*.sessions=1655
*.sga_max_size=24G
*.sga_target=24G
*.standby_file_management='AUTO'
*.undo_retention=3600
t24test1.undo_tablespace='UNDOTBS1' #xxxxx
t24test2.undo_tablespace='UNDOTBS2' #xxxxx
t24test1.instance_number=1 #xxxxx
t24test2.instance_number=2 #xxxxx
*.local_listener= 'local_listener' #xxxxx
t24test2.thread=2 #xxxxx
t24test1.thread=1 #xxxxx

SQL> create spfile='+DATA3/T24TEST/PARAMETERFILE/spfilet24test.ora' from


pfile='/tmp/pfilet24test.ora';

31. Ghi đường dẫn spfile vào file init trên mỗi node - DR site
Node 1:
echo "spfile='+DATA3/T24TEST/PARAMETERFILE/spfilet24test.ora'" >
/u01/app/oracle/product/12.2.0/db/dbs/initt24test1.ora

Node 2:
echo "spfile='+DATA3/T24TEST/PARAMETERFILE/spfilet24test.ora'" >
/u01/app/oracle/product/12.2.0/db/dbs/initt24test2.ora

32. Shutdown database T24TEST


$ export ORACLE_SID=t24test
$ sqlplus / as sysdba
SQL> shutdown immediate
33. Thực hiện add database T24TEST vào cluster – DR site
$ export ORACLE_SID=t24test1
$ srvctl add database -d t24test -o /u01/app/oracle/product/12.2.0/db
$ srvctl add instance -d t24test -i t24test1 -n dr-t24-db-p1
$ srvctl add instance -d t24test -i t24test2 -n dr-t24-db-p2
$ srvctl modify database -d t24test -p
+DATA3/T24DB/PARAMETERFILE/spfilet24db.ora
34. Thực hiện kiểm tra bật database trên 1 node sau đó shutdown – DR site
$ srvctl start instance -d t24test -n dr-t24-db-p1
$ sqlplus / as sysdba
SQL> shutdown immediate
35. Thực hiện start database trên cả 2 node – DR site
$ srvctl start database -d t24test -o open
36. Kiểm tra database đã dc open read-only trên cả 2 node chưa – DR site
# su – grid
$ crsctl stat res –t