#################################
使用rman的前提条件
#################################
数据库处于归档模式
archivelog mount or open模式
(1)查看数据库是否是归档模式:
SQL> archive log list Database log mode No Archive Mode Automatic archival Disabled Archive destination USE_DB_RECOVERY_FILE_DEST Oldest online log sequence 13 Current log sequence 15
(2)非归档模式,设置为归档模式
SQL> shutdown Database closed. Database dismounted. ORACLE instance shut down. SQL> startup mount ORACLE instance started. Total System Global Area 1603411968 bytes Fixed Size 2213776 bytes Variable Size 1174407280 bytes Database Buffers 419430400 bytes Redo Buffers 7360512 bytes Database mounted. SQL> alter database archivelog; SQL> alter database open; SQL> archive log list; Database log mode Archive Mode Automatic archival Enabled Archive destination USE_DB_RECOVERY_FILE_DEST Oldest online log sequence 13 Next log sequence to archive 15 Current log sequence 15 SQL> archive log all; //将这个时间点的redo logs 归档
SQL> select dbid,name,open_mode from v$database; DBID NAME OPEN_MODE ---------- ------------------ ---------------------------------------- 1413451383 ORCL READ WRITE
时间: 2024-10-06 17:05:49