View a markdown version of this page

4단계 - 전송된 데이터 검증 - AWS 권장 가이드

기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.

4단계 - 전송된 데이터 검증

1단계: 테이블스페이스의 손상 여부 확인

이 단계에서 전송된 테이블스페이스는 대상 데이터베이스에서만 읽습니다. 다음과 같이 RMAN 명령을 실행하여 테이블스페이스가 유효한지 여부를 확인할 수 있습니다.

sqlplus / as sysdba; set feedback off set pagesize 0 set heading off spool tbs_val.sql; select 'validate tablespace '||tablespace_name||' check logical;' from dba_tablespaces where tablespace_name not in ('SYSTEM','SYSAUX','TEMP','USERS','UNDOTBS1','UNDOTBS2','UNDOTBS3','UNDOTBS3','UNDOTBS4'); spool off; exit; --Remove the first and last line in the spool file, tbs_val.sql rman target / RMAN> @tbs_val.sql

또한 테이블, 인덱스, 동의어, 보기 및 패키지 객체와 같은 객체 수를 확인할 수 있습니다.

2단계. 대상 데이터베이스에서 전송된 모든 테이블스페이스를 읽기/쓰기로 설정

sqlplus / as sysdba; set feedback off set pagesize 0 set heading off spool tbs_rw.sql select 'alter tablespace '||tablespace_name||' read write;' from dba_tablespaces where status='READ ONLY'; spool off; exit; --Remove the first and last line in the spool file, tbs_rw.sql sqlplus / as sysdba; SQL> @tbs_rw.sql