ORA-16179粗心導致的小錯誤

分類:編程 時間:2016-11-03
ORA-16179粗心導致的小錯誤   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/

 

  這個是個很小的錯誤,但是我還是犯了,小記一下。  
Tags: failure 提示信息 oracle system Oracle

文章來源:


ads
ads

相關文章
ads

相關文章

ad