oracle@ps251n2s:[/opt/oracle/archive/db] ls -ltr |more total 3059881082 -rw-r----- 1 oracle oinstall 725320704 May 20 2016 1_1_91233774.dbf -rw-rw---- 1 oracle oinstall 1756937216 Jun 7 2016 1_2_91233774.dbf -rw-rw---- 1 oracle oinstall 1756731392 Jun 21 2016 1_3_91233774.dbf -rw-rw---- 1 oracle oinstall 1758001152 Jul 3 2016 1_4_91233774.dbf -rw-rw---- 1 oracle oinstall 1756729344 Jul 15 2016 1_5_91233774.dbf -rw-rw---- 1 oracle oinstall 1765750784 Jul 26 22:00 1_6_91233774.dbf -rw-rw---- 1 oracle oinstall 1760346112 Aug 6 14:04 1_7_91233774.dbf ......
RMAN> list archivelog all; using target database control file instead of recovery catalog List of Archived Log Copies for database with db_unique_name DBS ===================================================================== Key Thrd Seq S Low Time ------- ---- ------- - --------- 1206 1 1206 A 14-JAN-17 Name: /opt/oracle/archive/db/1_1206_91233774.dbf 1207 1 1207 A 14-JAN-17 Name: /opt/oracle/archive/db/1_1207_91233774.dbf 1208 1 1208 A 14-JAN-17 Name: /opt/oracle/archive/db/1_1208_91233774.dbf ......
RMAN> crosscheck archivelog all; using target database control file instead of recovery catalog allocated channel: ORA_DISK_1 channel ORA_DISK_1: SID=16 device type=DISK validation succeeded for archived log archived log file name=/opt/oracle/archive/db/1_1206_91233774.dbf RECID=1206 STAMP=933244655 validation succeeded for archived log archived log file name=/opt/oracle/archive/db/1_1207_91233774.dbf RECID=1207 STAMP=933249510 validation succeeded for archived log archived log file name=/opt/oracle/archive/db/1_1208_91233774.dbf RECID=1208 STAMP=933254500 validation succeeded for archived log archived log file name=/opt/oracle/archive/db/1_1209_91233774.dbf RECID=1209 STAMP=933259445 validation succeeded for archived log
SYS@db> show parameter CONTROL_FILE_RECORD_KEEP_TIME NAME TYPE VALUE ------------------------------------ -------------------------------- ------------------------------ control_file_record_keep_time integer 7
SYS@dbs> select * from v$controlfile_record_section where type='ARCHIVED LOG'; TYPE RECORD_SIZE RECORDS_TOTAL RECORDS_USED FIRST_INDEX LAST_INDEX LAST_RECID ---------------------------- ----------- ------------- ------------ ----------- ---------- ---------- ARCHIVED LOG 584 224 224 88 87 1235
SYS@dbs> select count(*) from v$archived_log; COUNT(*) ---------- 224
RMAN> catalog start with '/opt/oracle/archive/db'; ...... File Name: /opt/oracle/archive/db/1_1005_91233774.dbf File Name: /opt/oracle/archive/db/1_1006_91233774.dbf File Name: /opt/oracle/archive/db/1_1007_91233774.dbf Do you really want to catalog the above files (enter YES or NO)? yes cataloging files... cataloging done ...... RMAN> list archivelog all; ..... 1236 1 301 A 22-OCT-16 Name: /opt/oracle/archive/db/1_301_91233774.dbf 1237 1 302 A 22-OCT-16 Name: /opt/oracle/archive/db/1_302_91233774.dbf ......
delete archivelog until logseq 1007;
SYS@db> select * from v$controlfile_record_section where type='ARCHIVED LOG'; TYPE RECORD_SIZE RECORDS_TOTAL RECORDS_USED FIRST_INDEX LAST_INDEX LAST_RECID ---------------------------- ----------- ------------- ------------ ----------- ---------- ---------- ARCHIVED LOG 584 896 742 807 652 1800
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有