EBS克隆 - adfseeking

advertisement
MD070 技术设计文档
系统冷备份与克隆step by step
Author:
vicky.guo
Creation Date:
2007-11-15
Last Updated:
Document Ref:
Version:
1.0
Approvals:
Copy No.
_____
Doc Ref
Nov,15 2007
MD070 技术设计文档
文档控制
更改记录
3
Date
Author
Version
Change Reference
2007-11-15
vicky.guo
1.0
No Precious Document
审阅
Name
Position
分发
Copy No.
Name
Location
1
2
3
4
Note To Holders:
If you receive an electronic copy of this document and print it out, please write your name on
the equivalent of the cover page, for document control purposes.
If you receive a hard copy of this document, please write your name on the front cover, for
document control purposes.
File Ref: 106759229
文档控制
Company Confidential - For internal use only
ii
Doc Ref
Nov,15 2007
MD070 技术设计文档
目录
文档控制 ................................................................................................................................... ii
概述 ........................................................................................................................................... 4
参考文档 ............................................................................................................................ 4
EBS克隆 .................................................................................................................................... 5
克隆步骤 ............................................................................................................................ 5
File Ref: 106759229
文档控制
Company Confidential - For internal use only
iii
Doc Ref
Nov,15 2007
MD070 技术设计文档
概述

如何去对EBS系统进行clone
参考文档
File Ref: 106759229
概述
Company Confidential - For internal use only
4 of 4
Doc Ref
Nov,15 2007
MD070 技术设计文档
EBS克隆
克隆步骤
1 克隆前的准备.(必须要做,为了保证节点信息可以正常更新)
用db的用户登陆.
cd <RDBMS ORACLE_HOME>/appsutil/scripts/<CONTEXT_NAME>
perl adpreclone.pl dbTier
用应用的用户登陆.
cd <INST_TOP>/admin/scripts
例如:/DBBackup/test/db/tech_st/10.2.0/appsutil/clone/bin
perl adpreclone.pl appsTier
2 拷贝整个ebs的文件
这里使用备份脚本备份出来的文件进行
备份位于/DBBackup/prod/ 中
proddata_0108.tar.gz 这样的为数据文件的备份
prodapps_0108.tar.gz 这样的为应用文件的备份
cd /DBBackup
mkdir test
gunzip -c /DBBackup/prod/proddata_0108.tar.gz | tar xvf –
gunzip -c /DBBackup/prod/prodapps_0108.tar.gz | tar xvf –
复制EBS代码到新的clone环境中
cd /DBBackup/test/db/
cp –Rf /u01/prod/db/tech_st
.
cd /DBBackup/test/apps
cp –Rf /u01/prod/apps/tech_st .
cd /DBBackup/test
File Ref: 106759229
Company Confidential - For internal use only
EBS克隆
5 of 4
Doc Ref
Nov,15 2007
MD070 技术设计文档
cp -Rf /u01/prod/inst .
通过以上的复制,可以组成完整的EBS目录.
3 修改跟目录的名字,权限
cd test
chown –R appltest:appl12 apps
chown –R appltest:appl12 inst
chown –R oratest:dba db
4 运行adclone的脚本
用db的用户登陆.
cd <RDBMS ORACLE_HOME>/appsutil/clone/bin
perl adcfgclone.pl dbTier
注: 在做clone的时候会要求回答几个问题,根据情况就可以了,注意端口的选择.:
Using Java from /DBBackup/test/db/tech_st/10.2.0/appsutil/clone/bin/../jre
Enter the APPS user password:apps
Enter the APPS password : apps
Target hostname (virtual or normal) [gsypebs]:默认
Target instance is a Real Application Cluster (RAC) instance (y/n) [n]:默认
Target System database name:TEST
Target system base directory for source homes:/DBBackup/test
Target system utl_file accessible directories list:/usr/temp
Number of DATA_TOP's on the target system [4]:1
Target system DATA_TOP 1:/DBBackup/test/db/apps_st/data
Target system RDBMS ORACLE_HOME directory:/DBBackup/test/db/tech_st/10.2.0
Do you want to preserve the Display set to null (y/n) [y] ?:默认
Clone Context uses the same port pool mechanism as the Rapid Install.
Once you choose a port pool, Clone Context will validate the port availability.
Enter the port pool to be used for the target system node [0-99]: 1 --端口号
备注:如果需要EBS登录的端口号不要8000开头,则需要修改config,参见补充文档
如果输入1,则代表端口是8001,对应的tnsnames就是1521+1,即1522,在本地的tnsname文
件中需要对应。
File Ref: 106759229
Company Confidential - For internal use only
EBS克隆
6 of 4
Doc Ref
Nov,15 2007
MD070 技术设计文档
依此类推……
Checking the port pool 1
……
在克隆完成后会自动启动DB,但是建议在做以下操作前先确认db是不是已经启动成功。
可以使用ORATEST用户登录
Tnsping TEST 来确认是否启用
Sqlplus /nolog 检查db的连接
5. 用应用的用户登陆.
cd <COMMON_TOP>/clone/bin
例如:/DBBackup/test/apps/apps_st/comn/clone/bin
perl adcfgclone.pl appsTier
注: 在做clone的时候会要求回答几个问题,根据情况就可以了,注意端口的选择.:
Enter the APPS user password :apps
Target hostname (virtual or normal) [gsypebs] :默认
Target system database SID :TEST
Target system database server node [gsypebs] :默认
Target system base directory for source homes : /DBBackup/test
Target system base directory for instance homes [/DBBackup/test/inst] :默认
Target system service groups - Enable Root Service [enabled] :默认
Target system service groups - Enable Web Entry Point Services [enabled] :默认
Target system service groups - Enable Web Application Services [enabled] :默认
Target system service groups - Enable Batch Processing Services [enabled] :默认
Target system service groups - Enable Other Services [disabled] :默认
Do you want to preserve the Display set to gsypebs:0.0 (y/n) [y] ? :默认
注:是否希望保留XServer的图形集端口设置
Clone Context uses the same port pool mechanism as the Rapid Install.
Once you choose a port pool, Clone Context will validate the port availability.
Enter the port pool to be used for the target system node [0-99] :1
对应数据库端的设置
Checking the port pool 1
File Ref: 106759229
Company Confidential - For internal use only
EBS克隆
7 of 4
Download