Oracle EBS12.2 克隆步骤

教程发布:风哥 教程分类:ITPUX技术网 更新日期:2022-02-12 浏览学习:425

(1)Context Files
APP 的context Files:
$INST_TOP/appl/admin/PROD_oraerp.xml
/home/oraebs/apps/PROD/fs1/inst/apps/PROD_oraerp/appl/admin

ORACLE 的context Files:
/home/oraebs/db/PROD/12.1.0/appsutil/PROD_oraerp.xml

(2)Template Files
APPS:

ORACLE:
/home/oraebs/db/PROD/12.1.0/appsutil/template

添加用户
#groupadd dba
#useradd -g dba -d /home/appldev -s /bin/bash appldev
#useradd -g dba -d /home/oradev -s /bin/bash oradev

EBS克隆步骤:
(1)在源系统上预克隆
数据库层:
$su - oracle
$. /home/oraebs/db/PROD/12.1.0/PROD_oraerp.env
$cd /home/oraebs/db/PROD/12.1.0/appsutil/scripts/PROD_oraerp
$perl adpreclone.pl dbTier

应用层:
$su - applmgr
$source /home/oraebs/apps/PROD/fs1/EBSapps/appl/APPSPROD_oraerp.env
$cd /home/oraebs/apps/PROD/fs1/inst/apps/PROD_oraerp/admin/scripts
$ perl adpreclone.pl appsTier

(2)在源ERP系统上打gtar包

A、关闭ERP应用:
$su - applmgr
$cd $ADMIN_SCRIPTS_HOME
$sh adstpall.sh apps/apps

B、关闭监听和数据库:
$su - oracle
关闭监听:
$cd /home/oraebs/db/PROD/12.1.0/appsutil/scripts/PROD_oraerp
$sh addlnctl.sh stop
或者
$lsnrctl stop PROD
关闭数据库
$cd /home/oraebs/db/PROD/12.1.0/appsutil/scripts/PROD_oraerp
$sh addbctl.sh stop
或者
$sqlplus sys as sysdba
Sql> shutdown immediate

C 、使用gtar打包
数据库层:
$nohup gtar cvfz prod_data.gtar /home/PROD/data &
$nohup gtar cvfz prod_12.1.0.gtar /home/PROD/12.1.0 &

应用层:
$nohup gtar cvfz fs1.gtar /home/PROD/fs1 &

D、传输gtar的包
$scp prod_fs1_EBSapps.gtar [email]root@192.168.1.105[/email]:/home/dev
$scp prod_data.gtar [email]root@192.168.1.105[/email]:/home/dev $scp prod_12.1.0.gtar [email]root@192.168.1.106[/email]:/home/dev

(3)目标系统上环境准备

(4)在目标系统上进行clone

A、数据库层:
$ssh 192.168.1.105
$su - oracle
$ gtar xvfz /home/dev/ prod_data.gtar -C /u01/PROD/
$ gtar xvfz /home/dev/ prod_12.1.0.gtar -C /u01/PROD/
$cd /u01/PROD/
$chown -R oracle:dba data
$chown -R oracle:dba 12.1.0
$cd /home/dev/db/12.1.0/appsutil/clone/bin
$perl adcfgclone.pl dbTier

B、应用系统层:
$mkdir -p /u01/app/{fs1,fs2,fs_ne}

FS1 clone
$ssh 192.168.1.106
$su - applmgr
chown -R applmgr:dba app

$gtar zxvf prod_fs1_EBSapps.gtar -C /u01/app/fs1/
$cd /u01/app/fs1/EBSapps/comn/clone/bin
$perl adcfgclone.pl appsTier

FS2 clone
$cd /u01/app/fs1/inst/apps/PROD_oraerp/admin/scripts
$ perl adpreclone.pl appsTier

$cd /u01/app/fs1/inst/apps/PROD_oraerp/admin/scripts
$sh adstpall.sh apps/apps

$cd /u01/app/fs1/
$ cp -R ./EBSapps ../fs2/
$cd /u01/app/fs2/EBSapps/comn/clone/bin
$ perl adcfgclone.pl appsTier

本文标签:
网站声明:本文由风哥整理发布,转载请保留此段声明,本站所有内容将不对其使用后果做任何承诺,请读者谨慎使用!
【上一篇】
【下一篇】