注意:*.db_unique_name=''SYK'' 不要改变db_unique_name的值,在参数文件里加上它(show parameter db_unique_name看到的),
但是值不要改变
create spfile='' ASM_RECOVER/syk/spfilesyk.ora'' from pfile=''/home/oracle/pfilesyk.ora'';
也可以直接修改spfile,如下:
ALTER SYSTEM SET DB_UNIQUE_NAME=syk scope=spfile;
alter system set service_names=''syk_rac''
alter system set log_archive_config=''dg_config=(syk,syk_single)'' scope=both;
alter system set LOG_ARCHIVE_DEST_STATE_1=''ENABLE''
alter system set LOG_ARCHIVE_DEST_STATE_2=''ENABLE''
alter system set log_archive_dest_1=''LOCATION=/home/oracle/archive/ VALID_FOR=(ALL_LOGFILES,ALL_ROLES)'' DB_UNIQUE_NAME=''syk''
alter system set log_archive_dest_2=''service=syk_single valid_for=(online_logfiles,primary_role) db_unique_name=syk_single''
alter system set db_file_name_convert=''/oradata/syk'','' ASM_DATA/syk/datafile'',''/oradata/syk'','' ASM_DATA/syk/tempfile''
alter system set log_file_name_convert=''/oradata/syk'','' ASM_DATA/syk/onlinelog'',''/oradata/syk'','' ASM_RECOVER/syk/onlinelog''
alter system set standby_file_management=auto
alter system set fal_server=''syk_single''
alter system set syk1.fal_client=''syk1''
alter system set syk2.fal_client=''syk2''
alter system set STANDBY_ARCHIVE_DEST=''/home/oracle/archive/''