ebs r12克隆數據庫時 50%報錯... / 50% completed RC-50004: Fatal: Error occurred in ApplyDatabase: ...sql
1.cd $ORACLE_HOME/appsutil/clone/context/db
2.cp CTXORIG.xml CTXORIG.xml.bak
3.vi CTXORIG.xml
找到<DB_LISTENER oa_var="s_db_listener">PROD</DB_LISTENER>行,將裏面的PROD修改成target DB SID,保存。數據庫
4.關閉DB,KILL監聽進程。
5.繼續正常clone步驟:perl adcfgclone.pl dbTierbash
當遇到ORACLE出現下面提示時:
ora-01034:oracle not available
ora-27101:shared mermory realm does not exist
能夠這樣解決;
方法1:
1.輸入:connect/as sysdba;
2.重起計算機就OK了;
方法2:
在命令行中輸入
C:\>svrmgrl
Oracle Server Manager Release 3.1.7.0.0 - Production
Copyright (c) 2000, Oracle Corporation. All Rights Reserved.
Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production
With the Partitioning option
JServer Release 8.1.7.0.0 - Production
SVRMGR> connect internal/oracle
鏈接成功。
SVRMGR> startup
startup後再鏈接數據庫應該沒有問題了。 oracle
建議clone以前在源環境作一下per adpreclone.plapp
在作完apps Tier和dbTier任何修改時,切記在apps Tier和dbTier分別執行adpreclone.pl,具體的操做以下:ide
++++++++++++++++++++++++++++++++++++++++++++++命令行
$perl adpreclone.pl dbTier (注:dbTier)orm
./prodebs/db/tech_st/11.1.0/appsutil/scripts/PROD_erp/adpreclone.plxml
++++++++++++++++++++++++++++++++++++++++++++進程
$perl adpreclone.pl appsTier (注:appsTier)
./prodebs/ap/inst/apps/PROD_erp/admin/scripts/adpreclone.pl
++++++++++++++++++++++++++++++++++++++++++++++
說明:(1)若是隻作了dbTier的修改,在dbTier執行adpreclone.pl便可,同理apps Tier
(2) 增長數據文件時,切記在dbTier執行adpreclone.pl
從192.168.99.180的8088 CLONE 到 192.168.99.180的8070
CLONE後的計算機名:erp, 實例名:ERPTEST,端口號:8070
App用戶名:appltest ; dba用戶名: oratest
AP的目錄: /U1/erptest/prodebs DB的目錄:/U1/erptest/proddata
clone 文件來自20120320
======================================================
#mkdir /usr/tmp/ERPTEST //臨時存放的文件,若是有就存在就沒有必要新建,
#chmod –R 777 /usr/tmp/ERPTEST //最好和實例名一個樣
cd /U1/erptest
chown –R oratest:dba proddata
cd prodebs
chown -R oratest:dba db
chown –R appltest:app ap
// chown –R oratest:dba db 把db全部者改成oratest並把組別改成dba.
touch /etc/oraInst.loc
echo "inventory_loc=/U1/erptest/prodebs/oraInventory " >> /etc/oraInst.loc
//mkdir -p /U1/erptest/prodebs /oraInventory
//chmod -R 777 /U1/erptest/prodebs /oraInventory
===================================================================================
Clone Database Tier
su – oratest
cd /U1/erptest/prodebs/db/tech_st/11.1.0/appsutil/clone/bin
perl adcfgclone.pl dbTier
Enter the APPS password:xmcowellitapps
Target System Hostname (virtual or normal) [erptest]:erptest
Target Instance is RAC(y/n)[n]:n
Target System Database SID:ERPTEST
Target System Base Directory:/U1/erptest/prodebs
Target System utl_file_dir Directory List:/usr/tmp/ERPTEST
Nouber of DATA_TOP's on the Target System [1]:1
Target System DATA_TOP Directory 1[/u2/proddata/apps_st/data]:/U1/erptest/proddata/apps_st/data
Target System RDBMS ORACLE_HOME Directory[U1/erptest/testebs/db/tech_st/11.1.0]: /U1/erptest/prodebs/db/tech_st/11.1.0
Do you want to preserve the Display [erp:1.0](y/n)?:N
Target System Display [erptest:0.0]:erptest:1.0
Do you want the target system to have the same port values as the source system(y/n)[y]:n
Target System Port Pool [0-99]:70
vi .bash_profile //clone完成再修改此項
. /U1/erptest/prodebs/db/tech_st/11.1.0/ERPTEST_erp.env
PATH=/u5/erptest/prodebs/db/tech_st/11.1.0/appsutil/scripts/ERPTEST_erp:$PATH
export PATH
=========================================================================
Clone Application Tier
su – appltest
/U1/erptest/prodebs/ap/apps_st/comn/clone/bin
perl adcfgclone.pl appsTier
xmcowellitapps
erptest
ERPTEST
erptest
cowell.com
/U1/erptest/prodebs
/U1/erptest/prodebs/ap/tech_st/10.1.2
/U1/erptest/prodebs/ap/tech_st/10.1.3
/U1/erptest/prodebs/ap/apps_st/appl
/U1/erptest/prodebs/ap/apps_st/comn
/U1/erptest/prodebs/ap/inst
Enabled
Enabled
Enabled
Enabled
Disable //建議改成DISABLE
n
erptest:1.0
n
70 //端口號
2 //注意選擇
vi .bash_profile //clone完成再修改此項
. /U1/erptest/prodebs/ap/apps_st/appl/APPSERPTEST_erp.env
PATH=/U1/erptest/prodebs/ap/inst/apps/ERPTEST_erp/admin/scripts:$PATH
Export PATH
===================================================================
修改密碼
修改apps和system(sys)密碼的方法步履
一:appsTier
1.中止應用(appsTier)--用<applmgr>用戶登陸
$cd $ADMIN_SCRIPTS_HOME
$./adstpall.sh apps/<當前apps密碼>
2.查看appsTier是否徹底中止
$ps -ef|grep <applmgr>
注:切記必定要應用徹底中止
3.修改apps的密碼
$FNDCPASS apps/<當前apps密碼> 0 Y system/<當前system密碼> SYSTEM APPLSYS <修改後的密碼>
如:將apps的當前密碼xmcowellapps改成apps(system的密碼爲xmcowellmanager)
$FNDCPASS apps/xmcowellapps 0 Y system/xmcowellmanager SYSTEM APPLSYS apps
二:dbTier
4.修改system(sys)用戶的密碼--用<oramgr>用戶登陸
$sqlplus /nolog
SQL>conn /as sysdba
SQL>alter user system(sys) identified by "change_on_install" ;
SQL>exit