ORA-16179 粗心导致的小错误

来源:互联网 发布:月相日历软件 编辑:程序博客网 时间:2024/05/21 06:54


ORA-16179: incremental changes to "log_archive_dest_1" not allowed with SPFILE 





Oracle很多参数都是 参数='值'的形式
 
而log_archive_dest_1的值是里面带上'location=目录'


SQL> alter system set log_archive_dest_1='/oracle/oraarch';
alter system set log_archive_dest_1='/oracle/oraarch'
*
ERROR at line 1:
ORA-32017: failure in updating SPFILE
ORA-16179: incremental changes to "log_archive_dest_1" not allowed with SPFILE
 

原因是值里面缺少location=,oracle的提示信息其实等于狗屁,什么都没说清楚,完全要靠自己发现才可以。


 
SQL> alter system set log_archive_dest_1='location=/oracle/oraarch';
 
System altered.




我仔细查了一下oracle的参数,暂时只发现这一个是带"location="字样的,其他的都不用加这个,以后注意一下就好了。


SQL> col name for a30
SQL> col value for a40
SQL> set linesize 180
SQL> select name,value from v$parameter where value like '%location%';


NAME                           VALUE
------------------------------ ----------------------------------------
log_archive_dest_1             location=/oracle/oraarch/






这个是个很小的错误,但是我还是犯了,小记一下。



___________________________________________________________________________________

版权所有,文章允许转载,但必须以链接方式注明源地址,否则追究法律责任!

Author:   laven54 (lurou)

Email:    laven54@163.com

Blog:      http://blog.csdn.net/laven54

QQ群: 164734649  可以到群里来提问,Oracle相关的问题我都很感兴趣

原创粉丝点击