SQL> startup mount force;-----//沒有正常關閉致使後面報錯數據庫
ORA-32004: obsolete and/or deprecated parameter(s) specifiedide
ORACLE instance started.測試
Total System Global Area 285212672 bytesui
Fixed Size 2095704 bytesspa
Variable Size 134219176 bytes日誌
Database Buffers 142606336 bytesserver
Redo Buffers 6291456 bytesci
Database mounted.同步
SQL>it
SQL> alter database archivelog;
alter database archivelog
*
ERROR at line 1:
ORA-00265: instance recovery required, cannot set ARCHIVELOG mode
SQL> ---非正常關閉致使須要從新打開數據庫,使數據文件,控制文件,日誌文件同步,再修改歸檔模式。
SQL> shutdown immediate;
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
SQL> startup mount
ORA-32004: obsolete and/or deprecated parameter(s) specified
ORACLE instance started. ---報錯不知啥意思 查看錯誤日誌
Total System Global Area 285212672 bytes
Fixed Size 2095704 bytes
Variable Size 134219176 bytes
Database Buffers 142606336 bytes
Redo Buffers 6291456 bytes
Database mounted.
SQL>
SQL> alter database open;
Database altered.
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount;
ORA-32004: obsolete and/or deprecated parameter(s) specified
ORACLE instance started.
Total System Global Area 285212672 bytes
Fixed Size 2095704 bytes
Variable Size 134219176 bytes
Database Buffers 142606336 bytes
Redo Buffers 6291456 bytes
Database mounted.
SQL> archive log list;
Database log mode No Archive Mode
Automatic archival Disabled
Archive destination /oradata/arch
Oldest online log sequence 22
Current log sequence 24
SQL> alter database open;
Database altered.
SQL> archive log list;
Database log mode No Archive Mode
Automatic archival Disabled
Archive destination /oradata/arch
Oldest online log sequence 22
Current log sequence 24
SQL>
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount;
ORA-32004: obsolete and/or deprecated parameter(s) specified
ORACLE instance started.
Total System Global Area 285212672 bytes
Fixed Size 2095704 bytes
Variable Size 134219176 bytes
Database Buffers 142606336 bytes
Redo Buffers 6291456 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 /oradata/arch
Oldest online log sequence 22
Next log sequence to archive 24
Current log sequence 24
SQL> !oerr ora 32004 ---查看報錯的詳細信息
32004, 00000, "obsolete and/or deprecated parameter(s) specified"
// *Cause: One or more obsolete and/or parameters were specified in
// the SPFILE or the PFILE on the server side.
// *Action: See alert log for a list of parameters that are obsolete.
// or deprecated. Remove them from the SPFILE or the server
// side PFILE.
--log_archive_start這個參數不須要咱們設置致使報錯 取消這個參數的設置
自動開始歸檔,不須要設置log_archive_start參數
SQL> alter system reset log_archive_start scope=spfile sid='*';
System altered.
SQL> shutdown immediate ---正常關閉在啓動測試看尚未錯誤
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup ----一切正常
ORACLE instance started.
Total System Global Area 285212672 bytes
Fixed Size 2095704 bytes
Variable Size 134219176 bytes
Database Buffers 142606336 bytes
Redo Buffers 6291456 bytes
Database mounted.
Database opened.
SQL>