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 |
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.
This step should be performed as privileged (root) user.
The expected result is "Successfully deconfigured Oracle Restart stack".
This step should also be performed as privileged (root) user.
The expected result is "Successfully configured Oracle Grid Infrastructure for a Standalone Server"
This step should be performed as Grid Infrastructure owner (grid user).
The expected result is no output, just a return to the operating system prompt.
This step should be performed as Grid Infrastructure owner (grid user).
That should start ASM. Note that at this time there will be no ASM initialization or server parameter file.
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):
Mount the disk group where the new server parameter file (SPFILE) will reside (e.g. DATA) and create SPFILE:
If you had the database, listener and other components, add them back to the Oracle Restart Configuration.
This step should be performed as RDBMS owner (oracle user).
This step should be performed as Grid Infrastructure owner (grid user).
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
In this Document
| Goal |
| Solution |
| Community Discussions |
| References |
This document provides (in detail) the required & mandatory steps that need to be executed after the hostname was updated/changed/modified.
If you intend to change only the IP address then we dont need to do anything such as deconfig/reconfig.
Therefore, please perform the next steps after the hostname was updated/changed/modified in the Oracle Restart configuration:
1) Configure the CSS & OHAS services as root user as follows:
Go to the grid home's bin directory. Use the srvctl add database command with the -c SINGLE flag to add the database in an Oracle Restart configuration.
Also use the srvctl add command to add the listener, the Oracle ASM instance, all Oracle ASM disk groups, and any database services to the Oracle Restart configuration.
2) Please perform the next steps as oracle or grid OS user (as the Grid Infrastructure OS owner):
3) Restart the OHAS stack as grid or oracle OS user (as the Grid Infrastructure OS owner):
4) Check the CSS & OHAS state as grid or oracle OS user (as the Grid Infrastructure OS owner):
Note: If the CSS & OHAS service did NOT start, then you will need to reboot the Linux/unix box and check them again.
5) Recreate the default listener (LISTENER) using port 1521 (or using your desired port), thru the NETCA GUI located on the new Grid Infrastructure Oracle Home (or manually if you do not have graphical access) as grid or oracle OS user (as the Grid Infrastructure OS owner):
6) Please create the init+ASM.ora file on the <11.2 Grid Infrastructure Oracle Home>/dbs directory with the next parameters:
7) Add the ASM instance as grid or oracle OS user (as the Grid Infrastructure OS owner):
8) Enable ASM instance Auto Start as grid or oracle OS user (as the Grid Infrastructure OS owner) as follow:
9) Make sure the disks are discovered by kfod as grid or oracle OS user (as the Grid Infrastructure OS owner) as follow:
Example:
Or
10) If so, then startup the ASM instance as grid or oracle OS user (as the Grid Infrastructure OS owner) as follow:
11) Validate that the candidate disks are being discovered:
12) Create a new ASM instance spfile:
13) Add the new ASM spfile and listener to the new ASM instance resource:
14) Validate the OHAS (Oracle Restart) services start as follows:
点击(此处)折叠或打开
In this Document
The present document provides the example about how to migrate an ASM Oracle Restart configuration from one host to another host on Unix/Linux.
You need to follow the next steps to migrate an ASM Oracle Restart configuration from one host to another host on Unix/Linux on 11.2 or 12c releases:
Note: On 12c release you will need to add the -unsupported parameter as follows:
9) Restart the OHAS stack as grid or oracle OS user:
Note: On 12c release you will need to add the -unsupported parameter as follows:
16) Make sure the disks are discovered by kfod:
19) Create a new ASM instance spfile:
文档中对于ASM是采用新创建的PFILE来重新添加ASM实例。其实就使用以前的SPFILE,也可以,只需要记下来,重新配置SPFILE的位置参数就行了。
CRS resources for listeners are still configured
PRKO-2573 : ONS 守护程序已停止。
CRS-2673: Attempting to stop 'ora.UPRRDB_DATA.dg' on 'uprr1'
CRS-2677: Stop of 'ora.UPRRDB_DATA.dg' on 'uprr1' succeeded
CRS-2673: Attempting to stop 'ora.asm' on 'uprr1'
CRS-2677: Stop of 'ora.asm' on 'uprr1' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'uprr1'
CRS-2677: Stop of 'ora.cssd' on 'uprr1' succeeded
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'uprr1'
CRS-2673: Attempting to stop 'ora.evmd' on 'uprr1'
CRS-2677: Stop of 'ora.evmd' on 'uprr1' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'uprr1' has completed
CRS-4133: Oracle High Availability Services has been stopped.
Successfully deconfigured Oracle Restart stack
LOCAL ADD MODE
Creating OCR keys for user 'grid', privgrp 'oinstall'..
Operation successful.
LOCAL ONLY MODE
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
CRS-4664: Node uprr successfully pinned.
Adding Clusterware entries to upstart
uprr 2014/06/30 14:48:16 /u01/app/grid/product/11.2.0/grid/cdata/uprr/backup_20140630_144816.olr
Successfully configured Oracle Grid Infrastructure for a Standalone Server
------------------------------------------------------------
ora.cssd ora.cssd.type OFFLINE OFFLINE
ora.diskmon ora....on.type OFFLINE OFFLINE
ora.evmd ora.evm.type ONLINE ONLINE uprr
ora.ons ora.ons.type OFFLINE OFFLINE
CRS-2672: Attempting to start 'ora.diskmon' on 'uprr'
CRS-2676: Start of 'ora.diskmon' on 'uprr' succeeded
CRS-2676: Start of 'ora.cssd' on 'uprr' succeeded
------------------------------------------------------------
ora....ER.lsnr ora....er.type ONLINE ONLINE uprr
ora....DATA.dg ora....up.type ONLINE ONLINE uprr
ora.asm ora.asm.type ONLINE ONLINE uprr
ora.cssd ora.cssd.type ONLINE ONLINE uprr
ora.diskmon ora....on.type OFFLINE OFFLINE
ora.evmd ora.evm.type ONLINE ONLINE uprr
ora.ons ora.ons.type OFFLINE OFFLINE
ora.uprr.db ora....se.type ONLINE ONLINE uprr
如果还有其它地方,像 tnsnames.ora, sqlnet.ora 中,如果有主机名的地方,对应修改以下。
我没有用DB Control,如果有的话,还需要重建DB Control,参考 MOS 文档 Note 278100.1 How To Drop, Create And Recreate the Database Control (DB Control) Release 10g and 11g
278100.pdf
How to Migrate an ASM Oracle Restart Configuration from One Host to Another Host on Unix/Linux on 11.2 or 12c Releases. (文档 ID 2015797.1)
Goal
Solution
Community Discussions
References
APPLIES TO:
Oracle Database - Enterprise Edition - Version 11.2.0.1 to 12.1.0.2 [Release 11.2 to 12.1]
Information in this document applies to any platform.
GOAL
SOLUTION
1) Shutdown all the Oracle Services as follows:
2) Then shutdown the source Linux/Unix host.
3) Disconnect/unplug your Storage and connect it to the new Linux host.
4) Install the ASMLIB on the new hosts (this installation will scan the original disks).
Note: This steps is only required if ASMLIB API was present on the original source host.
5) Then Install the 11.2 Grid Infrastructure Standalone "Software Only" + any required GIPSU on the new hosts to match the original release.
6) Then Install the 11.2 RDBMS Standalone "Software Only" + any required RDBMS PSU on the new hosts to match the original release.
7) Then configure the CSS & OHAS services as root user:
8) Please perform the next steps as oracle or grid OS user (Grid Infrastructure OS owner):
$> $<New 11.2 Grid Infrastructure Oracle Home>/bin/crsctl start has
10) Check the CSS & OHAS state as grid or oracle OS user:
$> $<New 11.2 Grid Infrastructure Oracle Home>/bin/crsctl check css
$> $<New 11.2 Grid Infrastructure Oracle Home>/bin/ crsctl stat resource
$> $<New 11.2 Grid Infrastructure Oracle Home>/bin/crsctl stat res -t
Note: If the CSS & OHAS service did NOT start, then you will need to reboot the Linux box and check them again.
11) Remove the Old listener running under the old Grid Infrastructure Oracle Home, thru the NETCA GUI (from the old Grid Infrastructure Oracle Home).
12) Recreate the default listener (LISTENER) using port 1521, thru the NETCA GUI located on the new Grid Infrastructure Oracle Home.
13) Please create the init+ASM.ora file on the $<New 11.2 Grid Infrastructure Oracle Home>/dbs directory with the next parameters:
asm_diskstring= 'ORCL:*' or '/dev/oracleasm/disks/*'
instance_type='asm'
large_pool_size=12M
14) Add the ASM instance as grid or oracle user or the Grid Infrastructure installation owner and execute:
15) Enable ASM instance Auto Start as follow:
Example:
Or
17) If so, then startup the ASM instance as follow:
$> $<New 11.2 Grid Infrastructure Oracle Home>/bin/sqlplus "/as sysasm"
SQL> startup pfile=init+ASM.ora --#init file from point #13
SQL> show parameter asm
18) Validate that the original diskgroup(s) were mounted:
20) Add the new ASM spfile and listener to the new ASM instance resource:
$> $<New 11.2 Grid Infrastructure Oracle Home>/bin/srvctl modify asm -l LISTENER
21) Finally validate the OHAS (autostart) services start as follow:
$><New 11.2 Grid Infrastructure Oracle Home>/bin/crsctl start has
$><New 11.2 Grid Infrastructure Oracle Home>/bin/crsctl stat res
$><New 11.2 Grid Infrastructure Oracle Home>/bin/crsctl stat res -t
22) Check the new HAS version as well as follow:
$><New 11.2 Grid Infrastructure Oracle Home>/bin/crsctl query has softwareversion
23) If you need to add additional OHAS/Restart/SIHA resources (e.g. database instances), then please follow the steps described in the next note (I wrote it):
About Me
...............................................................................................................................
● 本文来自MOS (文档 ID 986740.1)
● 小麦苗云盘地址:http://blog.itpub.net/26736162/viewspace-1624453/
● QQ群:230161599 微信群:私聊
● 联系我请加QQ好友(642808185),注明添加缘由
● 文章内容来源于小麦苗的学习笔记,部分整理自网络,若有侵权或不当之处还请谅解
● 版权所有,欢迎分享本文,转载请保留出处
...............................................................................................................................
拿起手机使用微信客户端扫描下边的左边图片来关注小麦苗的微信公众号:xiaomaimiaolhr,扫描右边的二维码加入小麦苗的QQ群,学习最实用的数据库技术。
![]()
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/31413791/viewspace-2135835/ ,如需转载,请注明出处,否则将追究法律责任。