重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1388|回复: 0
打印 上一主题 下一主题

[Oracle] Oracle 11gR2 restart 单机使用asm存储 主机名发生更改处理过程 (文档 ID 986740.1)

[复制链接]
跳转到指定楼层
楼主
发表于 2021-8-14 22:39:50 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 郑全 于 2021-8-14 22:42 编辑

How to Reconfigure Oracle Restart (文档 ID 986740.1)
In this Document

Goal
Solution
        1. Remove Oracle Restart configuration
        2. Reconfigure Oracle Restart
        3. Add ASM back to Oracle Restart configuration
        4. Start up ASM instance
        5. Recreate ASM server parameter file (SPFILE)
        6. Restart HAS stack
        7. Add components back to Oracle Restart Configuration
        7.1. Add database component
        7.2. Add listener component
        7.3. Add other components

APPLIES TO:
Oracle Database - Enterprise Edition - Version 11.2.0.2 to 12.1.0.2 [Release 11.2 to 12.1]
Information in this document applies to any platform.
GOAL
This document is about reconfiguring Oracle Restart. One reason for such action might be if the server (host) was renamed. If that was the case and the server was rebooted, the ASM startup would fail with ORA-29701.

The solution is to reconfigure Oracle Restart.

SOLUTION
1. Remove Oracle Restart configuration
This step should be performed as privileged (root) user.

# $GRID_HOME/crs/install/roothas.pl -deconfig -force
The expected result is "Successfully deconfigured Oracle Restart stack".

2. Reconfigure Oracle Restart
This step should also be performed as privileged (root) user.

# $GRID_HOME/crs/install/roothas.pl
The expected result is "Successfully configured Oracle Grid Infrastructure for a Standalone Server"

3. Add ASM back to Oracle Restart configuration
This step should be performed as Grid Infrastructure owner (grid user).

$ srvctl add asm
The expected result is no output, just a return to the operating system prompt.

4. Start up ASM instance
This step should be performed as Grid Infrastructure owner (grid user).

$ srvctl start asm
That should start ASM. Note that at this time there will be no ASM initialization or server  parameter file.
5. Recreate ASM server parameter file (SPFILE)
This step should be performed as Grid Infrastructure owner (grid user).

Create a temporary initialization parameter file (e.g. /tmp/init+ASM.ora) with the following content (specify your own disk group names):
asm_diskgroups='DATA','RECO'
instance_type='asm'
large_pool_size=12M
remote_login_passwordfile='EXCLUSIVE'
Mount the disk group where the new server parameter file (SPFILE) will reside (e.g. DATA) and create SPFILE:
$ sqlplus / as sysasm

SQL> alter diskgroup DATA mount;
Diskgroup altered.

SQL> create spfile='+DATA' from pfile='/tmp/init+ASM.ora';
File created.

SQL> show parameter spfile
NAME TYPE VALUE
------- ------- -------------------------------------------------
spfile string +DATA/asm/asmparameterfile/registry.253.707737977
6. Restart HAS stack
crsctl stop has
crsctl start has
7. Add components back to Oracle Restart Configuration
If you had the database, listener and other components, add them back to the Oracle Restart Configuration.
7.1. Add database component
This step should be performed as RDBMS owner (oracle user).

srvctl add database -d -o
7.2. Add listener component
This step should be performed as Grid Infrastructure owner (grid user).

srvctl add listener
7.3. Add other components
For information on how to add back additional components, please review:
Oracle Database Administrator's Guide 11g Release 2 (11.2)
Chapter 4 Configuring Automatic Restart of an Oracle Database
Section Configuring Oracle Restart
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-11-26 10:34 , Processed in 0.075699 second(s), 21 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表