Log Miner 에 Archive log file 등록하는 script

- 원하는 경로의 아카이브 파일이나 redo log 파일을 쉽게 등록할 수 있다.

For i in $(ls 경로);

Do echo "exec dbms_logmnr.add_logfile('archive file 경로/$i')" >> addarc.sql;

Done;



2011/09/27 - [Oracle/Recovery] - Log Miner && Supplemental Logging 설정


set line 200
col owner for a20
col tablespace_name for a10
col table_name for a20
col mb for 9999.99

select owner, tablespace_name,table_name,num_rows*avg_row_len/1024/1024 MB
from dba_tables
where table_name=upper('&table_name')
and owner=upper('&owner')

+ Recent posts