再执行克隆时报错连接不上数据库:
执行过程如下:
[appluat@ebsdev bin]$ perl adcfgclone.pl appsTier
Copyright (c) 2011 Oracle Corporation
Redwood Shores, California, USA
Oracle E-Business Suite Rapid Clone
Version 12.2
adcfgclone Version 120.63.12020000.39
Enter the APPS password :
Running:
/u01/prod/app/fs2/EBSapps/comn/clone/bin/../jre/bin/java -Xmx600M -classpath /u01/prod/app/fs2/EBSapps/comn/clone/jlib/obfuscatepassword.jar:/u01/prod/app/fs2/EBSapps/comn/clone/jlib/ojmisc.jar:/u01/prod/app/fs2/EBSapps/comn/clone/jlib/java:/u01/prod/app/fs2/EBSapps/comn/clone/jlib/emCfg.jar oracle.apps.ad.clone.util.OPWrapper -encryptpwd /u01/prod/app/fs2/EBSapps/comn/clone/bin/../FMW/tempinfoApps.txt
Enter the Weblogic AdminServer password :
Running:
/u01/prod/app/fs2/EBSapps/comn/clone/bin/../jre/bin/java -Xmx600M -classpath /u01/prod/app/fs2/EBSapps/comn/clone/jlib/obfuscatepassword.jar:/u01/prod/app/fs2/EBSapps/comn/clone/jlib/ojmisc.jar:/u01/prod/app/fs2/EBSapps/comn/clone/jlib/java:/u01/prod/app/fs2/EBSapps/comn/clone/jlib/emCfg.jar oracle.apps.ad.clone.util.OPWrapper /u01/prod/app/fs2/EBSapps/comn/clone/bin/../FMW/tempinfo.txt
Running:
/u01/prod/app/fs2/EBSapps/comn/clone/bin/../jre/bin/java -Xmx600M -classpath /u01/prod/app/fs2/EBSapps/comn/clone/jlib/obfuscatepassword.jar:/u01/prod/app/fs2/EBSapps/comn/clone/jlib/ojmisc.jar:/u01/prod/app/fs2/EBSapps/comn/clone/jlib/java:/u01/prod/app/fs2/EBSapps/comn/clone/jlib/emCfg.jar oracle.apps.ad.clone.util.OPWrapper /u01/prod/app/fs2/EBSapps/comn/clone/bin/../FMW/EBSDataSource
Do you want to add a node (yes/no) [no] : no
Running:
/u01/prod/app/fs2/EBSapps/comn/clone/bin/../jre/bin/java -Xmx600M -cp /u01/prod/app/fs2/EBSapps/comn/clone/jlib/java:/u01/prod/app/fs2/EBSapps/comn/clone/jlib/xmlparserv2.jar:/u01/prod/app/fs2/EBSapps/comn/clone/jlib/ojdbc6.jar:/u01/prod/app/fs2/EBSapps/comn/clone/jlib/obfuscatepassword.jar:/u01/prod/app/fs2/EBSapps/comn/clone/jlib/ojmisc.jar:/u01/prod/app/fs2/EBSapps/comn/clone/jlib/java:/u01/prod/app/fs2/EBSapps/comn/clone/jlib/emCfg.jar oracle.apps.ad.context.CloneContext -e /u01/prod/app/fs2/EBSapps/comn/clone/bin/../context/apps/CTXORIG.xml -validate -pairsfile /tmp/adpairsfile_58702.lst -stage /u01/prod/app/fs2/EBSapps/comn/clone 2> /tmp/adcfgclone_58702.err; echo $? > /tmp/adcfgclone_58702.res
Log file located at /u01/prod/app/fs2/EBSapps/comn/clone/bin/CloneContext_1107170006.log
Target System File Edition type [run] : run
Provide the values required for creation of the new APPL_TOP Context file.
Target System Hostname (virtual or normal) [ebsdev] :
Target System Database SID : CWDB
Target System Database Server Node [ebsdev] : dwhdb02
Target System Database Domain Name [zhlic.com.cn] :
Target System Base Directory : /u01/prod/app
Target System Base Directory set to /u01/prod/app
Target System Current File System Base set to /u01/prod/app/fs2
Target System Other File System Base set to /u01/prod/app/fs1
Target System Fusion Middleware Home set to /u01/prod/app/fs2/FMW_Home
Target System Web Oracle Home set to /u01/prod/app/fs2/FMW_Home/webtier
Target System Appl TOP set to /u01/prod/app/fs2/EBSapps/appl
Target System COMMON TOP set to /u01/prod/app/fs2/EBSapps/comn
Target System Instance Home Directory [/u01/prod/app] :
Target System Instance Top set to /u01/prod/app/fs2/inst/apps/CWDB_ebsdev
Do you want to preserve the Display [ebsapp01:0.0] (y/n) : n
Target System Display [ebsdev:0.0] :
Target System Root Service [enabled] :
Target System Web Administration [enabled] :
Target System Web Entry Point Services [enabled] :
Target System Web Application Services [enabled] :
Target System Batch Processing Services [enabled] :
Target System Other Services [disabled] :
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] : 30
Checking the port pool 30
done: Port Pool 30 is free
Report file located at /u01/prod/app/fs2/inst/apps/CWDB_ebsdev/admin/out/portpool.lst
Complete port information available at /u01/prod/app/fs2/inst/apps/CWDB_ebsdev/admin/out/portpool.lst
RC-40201: Unable to connect to Database CWDB.
Enter the Database listener port [1551] :
疑是数据库层监听配置问题:
检查:
sqlplus apps/*****
sqlplus apps/*****@CWDB
可以正常连接到数据库,同时查看端口是否被占用:
发现端口使用正常,因此检查$TNS_ADMIN下的 配置文件sqlnet.ora
$ cat sqlnet.ora
发现参数:
tcp.validnode_checking = yes
tcp.invited_nodes=(*******.com.cn)
则参数中对TCP协议及,服务域名登陆做了限制,因此将参数
tcp.validnode_checking = yes
设置为:
tcp.validnode_checking =no
然后 lsnrctl reload $ORACLE_SID
使之生效,再次尝试lian连接数据库,可以正常连接,问题解决!
(笔者原创文章,转载请注明出处:https://blog.csdn.net/LFCuiYs)谢谢!