之前做的一个实验:
RAC 修改 ASM实例名 的步骤
http://blog.csdn.net/tianlesoftware/archive/2011/03/25/6275827.aspx
The following procedures do require some down time. One node at a time, we will shutdown all database instances that store their data in ASM. The other nodes will be unaffected, so these may continue to service the business.
All the following steps are assumed to be executed while logged into the server as the Oracle software owner (e.g., oracle).
1) From one of the nodes (any node), update the OCR
Stop all the db instances that store their data in the asm instance you will be doing the maintenance:
srvctl stop db -d <db name>
Stop the asm instance:
srvctl stop asm -n <node name>
Remove asm dependencies for the db instance and unregister asm from the OCR:
srvctl modify inst -d <db name> -i <db instance name> -r
srvctl remove asm -n <node name>
2) Edit /etc/oratab (on each node):
Location of oratab on some platforms:
* For AIX, HP-UX, or Linux: /etc/oratab
* For Solaris: /var/opt/oracle/oratab
Changed the ORACLE_SID for the ASM instance, to the reflect the new name for the ASM instance.
Example: Need to change +ASM1 to +ASMADC1:
Change from: +ASM1:/c1/app/oracle/product/11.1.0.6/asm_1:N
Change to: +ASMADC1:/c1/app/oracle/product/11.1.0.6/asm_1:N
3) Rename init files and orapw files (on each node):
Example for node1:
mv $ORACLE_HOME/dbs/init+ASM1.ora $ORACLE_HOME/dbs/init+ASMADC1.ora
mv $ORACLE_HOME/dbs/orapw+ASM1 $ORACLE_HOME/dbs/orapw+ASMADC1
NOTE: Where ORACLE_HOME, is the home for asm
4) Change contents of ASM's instance parameters (on each node):
If using a pfile:
Replace any references to the old asm instance names with the new asm names.
Example:
+ASM1.instance_number=1 -- change to --> +ASMADC1.instance_number=1
If using an spfile:
Connect to the ASM instance, and use SQL commands.
Example on node1 to remove the references to +ASM1:
SQL> alter system reset instance_number sid='+ASM1' scope=spfile;
Example on node1 to set the new value:
SQL> alter system set instance_number=1 sid='+ASMADC1' scope=spfile;
5) Cleanup some directories and files used by the previous ASM instances:
You may choose to back these first for historical purposes only.
If using 10g, on each node remove any directories and files for the older ASM instance under:
$ORACLE_BASE/admin
If using 11g, on each node remove any directories and files for the older ASM instance under:
$ORACLE_BASE/diag/
6) Update the OCR (from one node only. any node):
Example to register the new ASM instance that will run in node1:
srvctl add asm -nadc1-i+ASMADC1-o /c1/app/oracle/product/11.1.0.6/asm_1
Where adc1 is node_name, +ASMADC1 is the new ASM instance name, and the value given to -o is the ORACLE_HOME for the asm instance.
Register each database instance that stores their data in ASM, with the new ASM instance name.
Example:
srvctl modify inst -d <db name> -i <instance name> -s +ASMADC<n>
7) Start up theASM instance (from one node only, any node):
srvctl start asm -n <node name>
8) Start up the database instances that store their data in the ASM instance that you just completed the maintenance (from one node only -any node):
srvctl start db -d <db name>
OR
srvctl start inst -db <db name> -i <instance name>
9) If you have any scripts that have hard-coded ASM instance names, do not forget to also update those.
From Oracle
-------------------------------------------------------------------------------------------------------
Blog: http://blog.csdn.net/tianlesoftware
Email: dvd.dba@gmail.com
DBA1 群:62697716(满); DBA2 群:62697977(满) DBA3 群:62697850(满)
DBA 超级群:63306533(满); DBA4 群: 83829929 DBA5群: 142216823
聊天 群:40132017 聊天2群:69087192
--加群需要在备注说明Oracle表空间和数据文件的关系,否则拒绝申请
分享到:
相关推荐
解决log4j:ERROR Failed to rename, win系统占用文件无法改名字的问题
log4j:ERROR Failed to rename错误解决办法 http://www.blogjava.net/DreamAngel/archive/2011/11/10/363400.html
log4j:ERROR Failed to rename
log4j:ERROR Failed to rename错误; 网上查找了下原因,大概意思是日志文件始终被占有,所以当log4j对日志文件进行rename时,就发生了Failed to rename错误 。要修改log4j的源码,附件是我修改好后的,方便大家...
log4j:ERROR Failed to rename错误解决办法,修改源码里的DailyRollingFileAppender类,用此jar包就不会再出现ERROR Failed to rename的错误了
重命名实例Sketch插件 重命名实例是一个很小的Sketch插件,可以将符号实例重命名为其主人的名字。 命令清单: 重命名所有实例-适用于整个文档中的所有实例 重命名当前页面上的所有实例-仅适用于当前页面实例 ...
以前我一直以为File#renameTo(File)方法与OS下面的 move/mv 命令是相同的,可以达到改名、移动文件的目的。不过后来经常发现问题:File#renameTo(File)方法会返回失败(false),文件没有移动,又查不出原因,再后来...
在 ORACLE 中,重命名(Rename)一个表的命令是 ALTER TABLE old_name RENAME TO new_name,而不是 RENAME old_name TO new_name。 REname 命令只是 SQL*Plus 的命令,不能在其他程序中使用,如果将其放在 Java、...
A small program that can be used to rename files AND extensions... I got tired of using DOS to rename the files.
包括修改后的[color=darkred]org.apache.log4j.DailyRollingFileAppender[/color]类的源代码和已编译好的文件. 请用DailyRollingFileAppender.class替换log4j-1.2.15.jar包里相应的类. 博文链接:...
### C++ Programming HOW-TO #### 1. Introduction C++是一种广泛使用的编程语言,它在许多领域都有着不可替代的地位,如系统软件开发、游戏开发、高性能应用等。本章节首先介绍了C++与Java的区别,并探讨了选择...
select 'alter database rename file ' || chr(39) || member || chr(39) || ' to ' || chr(39) || '/oracle/weixin/redolog/' || substr(member, instr(member ``` 注意这个脚本需要根据实际情况进行调整。 #####...
you will learn how to delete, rename, and move files as well as how to traverse directory structures the Go way. The last part of this chapter implements a utility that creates a copy of all the ...
ALTER DISKGROUP dg3 RENAME DIRECTORY ‘+DG3/TRANSRAC/PARAMETERFILE’ TO ‘+DG3/TRANSRAC/SPFILE’; ``` - 查看目录内的文件: 可以通过查询`v$asm_alias`视图来查看ASM内的文件和目录。 此外,ASM使用...
"文件重命名工具rename"是一款历史悠久且功能丰富的应用程序,专门设计用于帮助用户高效地管理和整理他们的文件系统。在数字化时代,文件数量日益庞大,统一、有序的文件命名规则显得尤为重要,而这款工具正好解决了...
"Rename"是一个与文件操作相关的主题,特别是针对文件或文件夹重命名的工具或技术。在计算机领域,重命名(Rename)是用户日常工作中常见的一种操作,它允许用户更改文件或目录的显示名称,以便更好地组织、标识或...
### Oracle 19c RAC 数据库通过 RMAN 恢复至单实例流程详解 #### 背景概述 在进行Oracle 19c RAC(Real Application Clusters)数据库的数据备份与恢复操作时,可能会遇到需要将RAC集群环境下的备份数据恢复到单...
《文件批量更名软件——深度解析FreeRename》 在日常工作中,我们经常遇到需要批量处理文件名的情况,比如整理照片、归档文档等。这时,一个高效便捷的文件批量更名工具就显得尤为重要。"FreeRename"正是这样一款...
- 重命名对象(rename an object)。 #### 结论 通过以上介绍,我们可以看到使用C#与Active Directory交互是非常强大且灵活的。掌握了这些技能后,开发者能够更高效地管理和自动化企业网络中的许多任务,从而提高...