ORA-16019: cannot use LOG_ARCHIVE_DEST_1 解决方法

简介: 在设置DATA GUARD 时,修改了系统参数,重启数据库后出错:SQL> shutdown immediate;Database closed.

在设置DATA GUARD 时,修改了系统参数,重启数据库后出错:

SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup;
ORA-32004: obsolete or deprecated parameter(s) specified for RDBMS instance
ORA-16019: cannot use LOG_ARCHIVE_DEST_1 with LOG_ARCHIVE_DEST or LOG_ARCHIVE_DUPLEX_DEST
SQL> alter system set log_archive_dest_1='+RECOVERY/racdb/archivelog/' scope=spfile;
alter system set log_archive_dest_1='+RECOVERY/racdb/archivelog/' scope=spfile
*
ERROR at line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session ID: 19 Serial number: 48797


计划从spfile 生成pfile 文件:

[oracle@rac1 ~]$ sqlplus /nolog

SQL*Plus: Release 11.2.0.1.0 Production on Fri Aug 19 11:42:10 2011

Copyright (c) 1982, 2009, Oracle.  All rights reserved.

SQL> connetc / as sysdba
SP2-0734: unknown command beginning "connetc / ..." - rest of line ignored.
SQL> connect /as sysdba
Connected to an idle instance.

SQL> create pfile='init.ora' from spfile;
create pfile='init.ora' from spfile
*
ERROR at line 1:
ORA-01565: error in identifying file '?/dbs/spfile@.ora'
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory
Additional information: 3


出错,找不到文件和目录,我环境为RAC+ASM.

指定文件


SQL> create pfile='init.ora' from spfile='+data/racdb/spfileracdb.ora';

File created.

SQL> startup pfile='init.ora';
LRM-00109: could not open parameter file 'init.ora'
ORA-01078: failure in processing system parameters
SQL> shutdown abort;
ORACLE instance shut down.
SQL> startup pfile='/opt/app/oracle/product/11.2.0/dbs/init.ora';
ORA-32006: LOG_ARCHIVE_START initialization parameter has been deprecated
ORACLE instance started.

Total System Global Area 3.2603E+10 bytes
Fixed Size            2214816 bytes
Variable Size         1.8254E+10 bytes
Database Buffers     1.4227E+10 bytes
Redo Buffers          120008704 bytes
Database mounted.

Database opened.


把pfile 修改回以前文件。

[root@rac1 dbs]# cp initracdb1.ora.org initracdb1.ora
cp:是否覆盖“initracdb1.ora”? y

(修改前有备份此文件)


[root@rac1 dbs]# cat initracdb1.ora
SPFILE='+DATA/racdb/spfileracdb.ora'


再重新建立 SPFILE:


create spfile='+data/racdb/spfileracdb.ora' from pfile='/opt/app/oracle/product/11.2.0/dbs/init.ora';


(

要指定pfile 具体文件。不然生成pfile 无效,

我在这里错了。出现错误:

ORA-01506: missing or illegal database name

)

指定数据库启动时加载参数文件的路径

alter system set spfile='+DATA/ORCL/spfileorcl.ora';


相关实践学习
日志服务之使用Nginx模式采集日志
本文介绍如何通过日志服务控制台创建Nginx模式的Logtail配置快速采集Nginx日志并进行多维度分析。
目录
相关文章
|
11月前
修改log_archive_dest_1参数出错:ORA-16179
修改log_archive_dest_1参数时出错
|
11月前
|
存储
rman备份失败:ORA-00245: control file backup failed; target is likely on a local file system
rman备份失败:ORA-00245: control file backup failed; target is likely on a local file system
|
Oracle 关系型数据库 Linux
[20180228]archivelog backup?log switch?
[20180228]How to prevent RMAN archivelog backup from log switch.txt --//备份归档时有时候避免log switch.
1087 0
|
Oracle 关系型数据库 测试技术
|
Oracle 关系型数据库 测试技术
[20170625]参数LOG_ARCHIVE_DEST_1.txt
[20170625]参数LOG_ARCHIVE_DEST_1.txt --//昨天帮别人解决问题时再次遇到,在测试环境重复测试. 1.环境: SCOTT@book> @ &r/ver1 PORT_STRING                    VER...
888 0