今天在配置RAC-DG时,修改主库参数文件后无法用修改后的PFILE启动RAC主数据库,碰到了LRM-00101错误,这是一个语法错误,但是一开始始终没找到解决方法:
SQL> create pfile='/rmanbackup/initora11rac.ora' from spfile;
File created.
SQL> !
[oracle@zlm1 ~]$ vi /rmanbackup/initora11rac.ora
ora11rac1.__shared_io_pool_size=0
ora11rac2.__shared_pool_size=268435456
ora11rac1.__shared_pool_size=234881024
ora11rac2.__streams_pool_size=0
ora11rac1.__streams_pool_size=0
*.audit_file_dest='/u01/app/oracle/admin/ora11rac/adump'
*.audit_trail='db'
*.cluster_database=true
*.compatible='11.2.0.0.0'
*.control_files='+DATA/ora11rac/controlfile/current.260.823440203','+BACKUPDG/ora11rac/controlfile/current.256.823440203'
*.db_block_size=8192
*.db_create_file_dest='+DATA'
*.db_domain=''
*.db_name='ora11rac'
*.db_recovery_file_dest='+BACKUPDG'
*.db_recovery_file_dest_size=4558159872
*.diagnostic_dest='/u01/app/oracle'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=ora11racXDB)'
ora11rac2.instance_number=2
ora11rac1.instance_number=1
*.memory_target=838860800
*.open_cursors=300
*.processes=150
*.remote_listener='zlm-cluster-scan:1521'
*.remote_login_passwordfile='exclusive'
ora11rac2.thread=2
ora11rac1.thread=1
ora11rac2.undo_tablespace='UNDOTBS2'
ora11rac1.undo_tablespace='UNDOTBS1'
*.db_unique_name='ora11rac'
*.log_archive_config='dg_config=(ora11rac,ora11dg)
*.log_archive_dest_1='location=USE_DB_RECOVERY_FILE_DEST valid_for=(all_logfiles,all_roles) db_unique_name=ora11rac'
*.log_archive_dest_2='service=ora11dg valid_for=(online_logfiles,primary_role) db_unique_name=ora11dg'
*.log_archive_dest_state_1=enable
*.log_archive_dest_state_2=enable
*.log_archive_format='arc_%t_%s_%r.arc'
*.fal_server=ora11dg
*.standby_file_management='auto'
*.db_file_name_convert='/u01/app/oracle/oradata/ora11dg/datafile','+DATA/ora11rac/datafile','/u01/app/oracle/oradata/ora11dg/datafile','+DATA/ora11rac/tempfile'
*.log_file_name_convert='/u01/app/oracle/oradata/ora11dg/onlinelog','+DATA/ora11rac/onlinelog','/u01/app/oracle/oradata/ora11dg/onlinelog','+BACKUPDG/ora11rac/onlinelog'
exit
SQL> startup pfile='/rmanbackup/initora11rac.ora
LRM-00101: unknown parameter name 'location'
LRM-00101: unknown parameter name 'valid_for'
LRM-00101: unknown parameter name 'valid_for'
ORA-01078: failure in processing system parameters
SQL>
根据提示检查location和valid_for参数,发现都没有问题,之后又检查了好几遍,原来是上面的" *.log_archive_config='dg_config=(ora11rac,ora11dg) "这句少了半边引号" ' ",这么细微的错误,真的很难发现啊!oracle错误提示不说dg_config有问题,而是说location和valid_for有问题,被误导了好久,找到问题所在,就容易解决了,加上半边引号后重新用pfile启动:
SQL> startup pfile='/rmanbackup/initora11rac.ora'
ORA-01081: cannot start already-running ORACLE - shut it down first
SQL> startup force
ORACLE instance started.
Total System Global Area 835104768 bytes
Fixed Size 2232960 bytes
Variable Size 578817408 bytes
Database Buffers 251658240 bytes
Redo Buffers 2396160 bytes
Database mounted.
Database opened.
SQL>
总结:在创建或修改参数文件的时候一定要注意检查仔细,有的时候一个符号,一个字母或数字搞错,就会造成LRM-00101语法错误。
-------------------------------------------------------------
By aaron8219 Chinaunix Blog:http://blog.chinaunix.net/uid/24612962.html
原创内容,转载请注明链接,谢谢!