ORA-16032和ORA-07286 LOG_ARCHIVE_DEST_1沒生效

主備切換在備庫startup時出現歸檔路徑沒寫到spfile裏...
注意:修改參數時最好帶上scope=spfile或scope=both,以避免重啓出現異常。
SQL> startup mount
ORA-16032: parameter LOG_ARCHIVE_DEST_1 destination string cannot be translated
ORA-07286: sksagdi: cannot obtain device information.
Linux-x86_64 Error: 2: No such file or directory
SQL> sql

當前spfile裏面識別的,卻沒這個路徑
[oracle@test154 dbs]$ strings spfiletest154.ora |grep dest_1
*.log_archive_dest_1='LOCATION=/u01/app/oracle/oradata/testdb/flash_recovery_area valid_for=(all_logforacle

真正歸檔路徑是下面
[root@test154 ~]# ls -l /u01/app/oracle/oradata/flash_recovery_area
-rw-r-----. 1 oracle oinstall 1024 Nov 6 15:04 arch_959881329_1_1613.arc
-rw-r-----. 1 oracle oinstall 1536 Nov 6 15:04 arch_959881329_1_1614.arc
-rw-r-----. 1 oracle oinstall 1536 Nov 6 15:04 arch_959881329_1_1615.arc
-rw-r-----. 1 oracle oinstall 298496 Nov 6 15:13 arch_959881329_1_1616.arcapp

處理
pfile啓動,重建spfile,更新成正確路徑,重啓OKorm

[oracle@test154 ~]$ sqlplus / as sysdba string

SQL*Plus: Release 11.2.0.4.0 Production on 星期三 11月 6 15:31:53 2019flash

Copyright (c) 1982, 2013, Oracle. All rights reserved.io

Connected to an idle instance.form

SQL> create pfile from spfile;class

File created.test

參數文件pfile修改log_archive_dest_1爲/u01/app/oracle/oradata/flash_recovery_area

SQL> create spfile from pfile;

File created.

SQL> startup;

ORACLE instance started.

Total System Global Area 3975139328 bytesFixed Size 2259360 bytesVariable Size 2634024544 bytesDatabase Buffers 1325400064 bytesRedo Buffers 13455360 bytesDatabase mounted.Database opened.SQL>

相關文章
相關標籤/搜索