마이그레이션
data_pump 디렉토리 생성
tempfile 사이즈 확인 10240m
OCS 서버
1. 리두로그 사이즈 100M로 변경
select a.group#,b.member,a.status,a.bytes/1024/1024
from v$log a,v$logfile b
where a.group# =b.group#
inactive 파일 db에서 삭제 후 물리적 파일도 삭제
SQL> alter database drop logfile '~' ;
$> rm -rf 해당로그파일
사이즈 변경하여 추가
SQL> alter database add logfile '~' size 10240m;
확인 후 반복하여 작업하면 된다.
active log는 삭제가 안되므로 로그스위치를 강제로 일으킨뒤 체크포인트를 강제로 시킨 후 작업
2. Undotablespace autoextend off
SQL> alter database datafile '~' autoextend off;
3. 아카이브 모드 변경
SQL> alter system set log_archive_dest_1='location= ' scope=spfile;
SQL> alter system set log_archive_format = 'arc%t_%r_%s.arc' scope=spfile;
SQL> shutdown immediate
SQL> startup mount
SQL> alter database archivelog;
SQL> alter database open;
SQL> archive log list
4. 스키마 삭제
dba_user 테이블 created 컬럼 참고해서 삭제
5. impdp (시간체크)
6. utlrp 실행
7. 오브젝트 수 비교
8. Invalid 오브젝트 확인
9. 통계정보 생성
※ ORA-39213:Metadata processing is not available
Step 1. sysdba login.
Setp 2. execute dbms_metadata_util.load_stylesheets
ORA-39181 :only partial table data may be exported due to fine grain access control
Grant the privilege EXEMPT ACCESS POLICY to the exporting user