How to rename ASM instances in RAC or clustered environment

2024-04-04 02:58

本文主要是介绍How to rename ASM instances in RAC or clustered environment,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

 

 

之前做的一个实验:

       RAC 修改 ASM实例名 的步骤

       http://www.cndba.cn/Dave/article/949

 

 

       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 -n adc1 -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 the ASM 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

-------------------------------------------------------------------------------------------------------

QQ:492913789

Email:ahdba@qq.com

Blog: http://www.cndba.cn/dave


DBA1 群:62697716();   DBA2 群:62697977()   DBA3 群:62697850()  

DBA 超级群:63306533();  DBA4 群: 83829929  DBA5群: 142216823   

聊天 群:40132017   聊天2群:69087192

--加群需要在备注说明Oracle表空间和数据文件的关系,否则拒绝申请

这篇关于How to rename ASM instances in RAC or clustered environment的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/874633

相关文章

Android Environment 获取的路径问题

1. 以获取 /System 路径为例 /*** Return root of the "system" partition holding the core Android OS.* Always present and mounted read-only.*/public static @NonNull File getRootDirectory() {return DIR_ANDR

pip install pyaudio sounddevice error: externally-managed-environment

shgbitai@shgbitai-C9X299-PGF:~/pythonworkspace/ai-accompany$ pip install pyaudio sounddeviceerror: externally-managed-environment× This environment is externally managed╰─> To install Python package

Creating OpenAI Gym Environment from Map Data

题意:从地图数据创建 OpenAI Gym 环境 问题背景: I am just starting out with reinforcement learning and trying to create a custom environment with OpenAI gym. However, I am stumped with trying to create an enviro

ASM 10G 基于RMAN 迁移

ASM 10G 基于RMAN 迁移 场景 单节点基于10G R2 的数据库,其数据文件及日志文件均存放在ASM 里,现在为业务需求,将此数据库做迁 移,迁移到另个机房,但是两个机房的网络是通畅的,为尽量减少数据的丢失及平稳迁移和经济实惠,迁 移时,数据库需停应用 工具 本次采用RMAN 的duplicate 命令来进行迁移,运用此命令简化复杂度; 一、源库和目标库的

RAC+ADG apply PSU+PATCH

---环境------ aix rac+adg,off-line方式打补丁 ----读所有patch,及PSU的readme,很重要,特别是patch,可能有的应用patch方法不应----- ----停实例,停服务,停集群,disable集群,杀进程----- [oracle@trsendb1 /]srvctl stop instance -d xxxx -i xxxx [o

Navicat Premium上出现Cannot create oci environment错误的解决办法

因为要连接运程的Orcale数据库,由于一些原因连不上,于是我把顶栏里的工具->选项->Oic(最最下面的一个)的oci.dll给替换了,然后就一直出现Cannot create oci environment这个错误 这是由于替换的oci.dll的版本不对,于是替换了各种版本有时候也会出现这个错误 最后就是因为版本不对,先看好安装的版本然后下载一个相对应的 下载地址:http://ww

【论文分享】MyTEE: Own the Trusted Execution Environment on Embedded Devices 23‘NDSS

目录 AbstractINTRODUCTIONBACKGROUNDARMv8 ArchitectureSecurity statesTrustZone extensionsVirtualization Communication with Peripherals MOTIVATIONATTACK MODEL AND ASSUMPTIONSYSTEM DESIGNOverviewExecu

Eclipse启动错误a java runtime environment

Windows下的Eclipse启动失败,如下图。 原因是找不到虚拟机,可能是Eclipse配置文件中的路径(一般是版本名)写错了,修改即可。 方法/步骤 打开eclipse文件中的eclipse.ini(后缀名如果看不到,可以通过查看属性 看到) 配置设置文件; 同时也打开java的jre文件。 仔细比较ecl

OpenAI Gym custom environment: Discrete observation space with real values

题意:OpenAI Gym 自定义环境:具有实数值的离散观测空间 问题背景: I would like to create custom openai gym environment that has discrete state space, but with float values. To be more precise, it should be a range of valu

手动安装environment.yml的依赖包

在使用environment.yml文件来管理项目依赖的时候,通常我们会使用Anaconda或Miniconda创建一个环境,这样可以确保所有必需的Python包和特定版本都正确安装。下面是如何手动安装environment.yml中定义的依赖包的步骤: 1. 创建一个新的conda环境 首先,你需要有一个名为environment.yml的文件,其中列出了你的所有依赖项及其版本信息。这个文件