Oracle 10G的log_archive_format引數
今天,設定Oracle10G資料庫到Archive Log模式:
SQL> alter system set LOG_ARCHIVE_DEST_1='LOCATION= /path/arch' scope=both;
alter system set LOG_ARCHIVE_DEST_1='LOCATION= /path/arch' scope=both
*
ERROR at line 1:
ORA-32017: failure in updating SPFILE
ORA-16179: incremental changes to "log_archive_dest_1" not allowed with SPFILE
alter system set LOG_ARCHIVE_DEST_1='LOCATION= /path/arch' scope=both
*
ERROR at line 1:
ORA-32017: failure in updating SPFILE
ORA-16179: incremental changes to "log_archive_dest_1" not allowed with SPFILE
SQL> alter system set LOG_ARCHIVE_DEST_1='LOCATION=/path/arch' scope=both;
System altered.
SQL> Alter system set log_archive_start=true scope=spfile;
System altered.
SQL> alter system set log_archive_format='arch_%t_%s.dbf' scope= spfile;
System altered.
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount
ORA-32004: obsolete and/or deprecated parameter(s) specified
ORA-19905: log_archive_format must contain %s, %t and %r
SQL> startup nomount
ORA-32004: obsolete and/or deprecated parameter(s) specified
ORA-19905: log_archive_format must contain %s, %t and %r
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount
ORA-32004: obsolete and/or deprecated parameter(s) specified
ORA-19905: log_archive_format must contain %s, %t and %r
SQL> startup nomount
ORA-32004: obsolete and/or deprecated parameter(s) specified
ORA-19905: log_archive_format must contain %s, %t and %r
原來,log_archive_format='arch_%t_%s.dbf' 是按照Oracle 9i的文件設的,Oracle 10G對此引數設定要求發生了變化。
SQL> conn / as sysdba
Connected to an idle instance.
SQL> create pfile='/tmp/init.ora' from spfile;
Connected to an idle instance.
SQL> create pfile='/tmp/init.ora' from spfile;
File created.
修改/tmp/init.ora檔案,將log_archive_format引數設定成“arch_%t_%s.%r.dbf ”
SQL> create spfile from pfile='/tmp/init.ora';
File created.
SQL> startup mount
ORA-32004: obsolete and/or deprecated parameter(s) specified
ORACLE instance started.
ORA-32004: obsolete and/or deprecated parameter(s) specified
ORACLE instance started.
Total System Global Area 1241513984 bytes
Fixed Size 1267212 bytes
Variable Size 318769652 bytes
Database Buffers 905969664 bytes
Redo Buffers 15507456 bytes
Database mounted.
SQL> alter database archivelog;
Fixed Size 1267212 bytes
Variable Size 318769652 bytes
Database Buffers 905969664 bytes
Redo Buffers 15507456 bytes
Database mounted.
SQL> alter database archivelog;
Database altered.
SQL> alter database open;
Database altered.
SQL> archive log list
Database log mode Archive Mode
Automatic archival Enabled
Archive destination /path/arch
Oldest online log sequence 166
Next log sequence to archive 168
Current log sequence 168
修改完成。
Database log mode Archive Mode
Automatic archival Enabled
Archive destination /path/arch
Oldest online log sequence 166
Next log sequence to archive 168
Current log sequence 168
修改完成。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/81227/viewspace-697784/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- oracle 引數LOG_ARCHIVE_FORMAT 的格式OracleHiveORM
- 關於 Oracle 10g EXPDP 的 EXCLUDE 引數Oracle 10g
- Oracle 10g expdp attach引數體驗Oracle 10g
- Oracle 10g中,記憶體引數Oracle 10g記憶體
- oracle實驗記錄 (oracle 10G dataguard(2)引數部分)Oracle
- oracle 10g rac ggs關鍵引數配置Oracle 10g
- oracle 10g的db_file_multiblock_read_count引數Oracle 10gBloC
- oracle 10g中的SGA_MAX_SIZE與SGA_TARGET引數Oracle 10g
- oracle 10g impdp與imp 引數選項不同地方Oracle 10g
- 10g中的sga_target引數
- Oracle引數-隱藏引數Oracle
- oracle 引數Oracle
- 10g中的optimizer_mode引數的取值
- oracle的引數檔案Oracle
- Oracle PGA引數的管理Oracle
- Oracle引數檔案解析——引數解析Oracle
- 10G 新特性系列:RMAN 新的引數-PREVIEWView
- FORM 10g的限制查詢條件引數ORM
- Oracle 核心引數Oracle
- Oracle UNDO引數Oracle
- Oracle引數大全Oracle
- oracle引數配置Oracle
- oracle 效能引數Oracle
- ORACLE核心引數Oracle
- oracle引數整理Oracle
- 詳解Oracle 10g、11g和CHECKPOINT相關的初始化引數Oracle 10g
- 10G FAST_START_MTTR_TARGET引數AST
- Oracle 隱藏引數(9i,10g,11g,12c)Oracle
- 【轉】oracle 10G中log_archive_start引數已經被廢棄Oracle 10gHive
- Oracle引數檔案 各引數解釋Oracle
- ORACLE並行相關的引數Oracle並行
- Oracle 的COMPATIBLE引數Oracle
- Oracle的隱含引數(zt)Oracle
- Oracle:PDB 引數管理Oracle
- Oracle rman 配置引數Oracle
- Oracle 引數檔案Oracle
- ORACLE 配置event引數Oracle
- Oracle檢視引數Oracle