ORA-16179: incremental changes to "log_archive_dest_1" not allowed with SPFILE
記錄遇到一個錯誤,環境:11g
SQL> alter system set log_archive_dest_1='/arch' scope=spfile;
alter system set log_archive_dest_1='/arch' scope=spfile
*
ERROR at line 1:
ORA-32017: failure in updating SPFILE
ORA-16179: incremental changes to "log_archive_dest_1" not allowed with SPFILE
Oracle 官網查錯:
ORA-16179: incremental changes to "string" not allowed with SPFILE
Cause: Incremental changes to a log_archive_dest_n parameter cannot be made when using an SPFILE.
Action: Specify either LOCATION or SERVICE plus all other attributes to be set in one ALTER SYSTEM/SESSION SET command.
SQL> alter system set log_archive_dest_1='location=/arch' scope=spfile;
System altered.
看官網上說log_archive_dest 和log_archive_dest_1不能同時設定,做個測試
SQL> alter system set log_archive_dest='/arch' scope=spfile;
SQL> startup mount
ORA-16019: cannot use LOG_ARCHIVE_DEST_1 with LOG_ARCHIVE_DEST or LOG_ARCHIVE_DUPLEX_DEST
報錯,使用備用pfile檔案,重新啟動資料庫;
官網內容如下:
LOG_ARCHIVE_DEST is applicable only if you are running the database in ARCHIVELOG mode or are recovering a database from archived redo logs. LOG_ARCHIVE_DEST is incompatible with the LOG_ARCHIVE_DEST_n parameters, and must be defined as the null string ("") or (' ') when any LOG_ARCHIVE_DEST_n parameter has a value other than a null string. Use a text string to
specify the default location and root of the disk file or tape device
when archiving redo log files. (Archiving to tape is not supported on
all operating systems.) The value cannot be a raw partition.
If LOG_ARCHIVE_DEST is not explicitly defined and all the LOG_ARCHIVE_DEST_n parameters have null string values, LOG_ARCHIVE_DEST is set to an operating system-specific default value on instance startup.
To override the destination that this parameter specifies, either specify a different destination for manual archiving or use the SQL*Plus statement ARCHIVE LOG START filespec for automatic archiving, where filespec is the new archive destination. To permanently change the destination, use the statement ALTER SYSTEM SET LOG_ARCHIVE_DEST = filespec, where filespec is the new archive destination.
Neither LOG_ARCHIVE_DEST nor LOG_ARCHIVE_FORMAT have to be complete file or directory specifiers themselves; they only need to form a valid file path after the variables are substituted into LOG_ARCHIVE_FORMAT and the two parameters are concatenated together.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29519108/viewspace-1336467/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Incremental checkpoint up to RBAREM
- RMAN Fast Incremental BackupsASTREM
- RMAN cumulative and differential incremental backupREM
- Detect Changes in Network Connectivity
- [Reactive] Run functions when data changesReactFunction
- The SPFILE Initialization Parameter
- Oracle Spfile and pfileOracle
- post 405 method not allowed
- The different between cumulative and differential incremental backupREM
- full backup 與 level 0 incremental backupREM
- 24、關於incremental level 0 backupREM
- incremental from scn for gap standby 實驗REM
- Changes in PHP 5/Zend Engine 2.0 (轉)PHP
- 【spfile】修改及重置spfile實操 plus 故障處理一則
- 增量檢查點(incremental checkpoint)的解疑REM
- ASM下遷移spfileASM
- Oracle的spfile和pfileOracle
- Oracle ASM spfile in a disk groupOracleASM
- Oracle修改spfile的位置Oracle
- 恢復SPFILE檔案
- 檔案-spfile說明
- Using RMAN Incremental Backups to Refresh a Standby DatabaseREMDatabase
- Inhomogeneous deployment for replicated sessions is not allowed.Session
- Oracle 10g DML Table Monitoring ChangesOracle 10g
- [轉]Important ASM changes in 11g Release 2ImportASM
- oracle pfile spfile啟動順序 優先順序 spfilesid 〉 spfile 〉 initsidOracle
- Oracle中的spfile和 pfileOracle
- Oracle中的pfile和spfileOracle
- oracle spfile和pfile小結Oracle
- Oracle Concepts - pfile and spfileOracle
- Oracle ASM儲存Spfile解析OracleASM
- PostgreSQL 13支援增量排序(Incremental Sorting)SQL排序REM
- Applying “Incremental Statistic” for Oracle Big Partition TableAPPREMOracle
- RMan 備份incremental與cumulative的區別REM
- flask資料庫遷移 No changes in schema detected.Flask資料庫
- Initialization Parameter Changes from 9i to 10g
- Host 'localhost' is not allowed to connect to this MySQL serverlocalhostMySqlServer
- Allowed memory size 記憶體不足記憶體