脚本宝典收集整理的这篇文章主要介绍了ORACLE RAC 修改实例名(实操记录),脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
1、备份全库和spfile backup as comPressed backupset database plus ArchiveLOG; expdp dbank/dbank directory=dmp_dir dumpfile=dbank_2015623.dmp logfile=dbank.log parallel=5 SCHEMAS=DBANK Create pfile From spfile;
2、收集数据库信息$DB_HOME/bin/srvctl config database -d <db_unique_name> -a$DB_HOME/bin/srvctl config service -d <db_unique_name>
3、创建一个新的pfileCreate pfile from spfile;
4、关闭所有节点 crsctl stop cluster -all
5、重命名或编辑实例名称和其他参数使用实例名称。
For example: instance_name, service_names
6、创建新的实例之一Sid名字节点新密码文件。复制密码文件到其他节点和重命名它与相应的新的SID的名字。If Data Guard is in use, copy the password file from the Primary $ORACLE_HOMEs to the standby server and rename it with the corresponding standby SID name.
7、Startup the database with new pfile file and create a spfile using new pfile.
8、Remove the old instance name and add a new instance name using srvctl command. ( Follow below for all instances whose names are changed )
$ srvctl remove instance -d <db_unique_name> -i <instance_name>$ srvctl add instance -d <db_unique_name> -i <instance_name> -n <node>Configure the services back (if necessary)
$ srvctl modify service -d <db_unique_name> -s <service_name>Start the database
$ srvctl start database -d <db_unique_name>
SQL> select instance_name,status from gv$instance
9、Check tnsnames.ora, if INSTANCE_NAME is used, rename it accordingly.
For example:
net_service_name=(DESCRIPTION=(ADDRESS=...)(ADDRESS=...)(CONNECT_DATA=(SERVICE_NAME=sales.us.example.COM)(INSTANCE_NAME=sales1)))
以上是脚本宝典为你收集整理的ORACLE RAC 修改实例名(实操记录)全部内容,希望文章能够帮你解决ORACLE RAC 修改实例名(实操记录)所遇到的问题。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。