oracle 11gr2 单机数据库使用asm,oracle 11gR2 oracle restart单机使用asm存储时主机名发生更改处理过程...

oracle 11gR2 oracle restart 单机使用asm存储 主机名发生更改并且主机重启后处理过程:以下为解决方案:1. Remove Oracle Restart configurationThis 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  configurationThis 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 instanceThis 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 ConfigurationIf you had the database, listener and other components, add them back to the Oracle Restart Configuration.

7.1. Add database componentThis step should be performed as RDBMS owner (oracle user).

srvctl add database -d -o

7.2. Add listener componentThis step should be performed as Grid Infrastructure owner (grid user).

srvctl add listener

7.3. Add other componentsFor 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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值