您好,登錄后才能下訂單哦!
注意事項:
hostname 一定要保持一致
不然還有各種報錯:
例如:
[oracle@C1 j2ee]$ emctl start dbconsole The following exception occurred: java.net.UnknownHostException: C1.zongxuan.onlien: C1.zongxuan.onlien at java.net.InetAddress.getLocalHost(InetAddress.java:1346) at oracle.sysman.emd.targetIntg.agent.AgentTargetInstaller.getLocalHost(AgentTargetInstaller.java:4282) at oracle.sysman.emd.targetIntg.agent.AgentTargetInstaller.printLocalHost(AgentTargetInstaller.java:4252) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at oracle.sysman.emd.targetIntg.Util$DefaultIntegrationMethod.execute(Util.java:598) at oracle.sysman.emd.targetIntg.TargetInstaller.execute_(TargetInstaller.java:167) at oracle.sysman.emd.targetIntg.TargetInstaller.execute(TargetInstaller.java:155) at oracle.sysman.emSDK.conf.TargetInstaller.printLocalHost(TargetInstaller.java:2364) at oracle.sysman.emSDK.conf.TargetInstaller.main(TargetInstaller.java:3290) Although there was an exception it might be possible for the program to continue. OC4J Configuration issue. /usr/oracle/app/product/11.2.0/dbhome_1/oc4j/j2ee/OC4J_DBConsole_null_zx not found.
這個就是hostname 設置的問題
下面的這個問題是沒有設定好 環境變量
export ORACLE_UNQNAME=sid(oracle的sid)
[oracle@C1 ~]$ emctl start dbconsole The following exception occurred: java.net.UnknownHostException: C1.zongxuan.onlien: C1.zongxuan.onlien at java.net.InetAddress.getLocalHost(InetAddress.java:1346) at oracle.sysman.emd.targetIntg.agent.AgentTargetInstaller.getLocalHost(AgentTargetInstaller.java:4282) at oracle.sysman.emd.targetIntg.agent.AgentTargetInstaller.printLocalHost(AgentTargetInstaller.java:4252) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at oracle.sysman.emd.targetIntg.Util$DefaultIntegrationMethod.execute(Util.java:598) at oracle.sysman.emd.targetIntg.TargetInstaller.execute_(TargetInstaller.java:167) at oracle.sysman.emd.targetIntg.TargetInstaller.execute(TargetInstaller.java:155) at oracle.sysman.emSDK.conf.TargetInstaller.printLocalHost(TargetInstaller.java:2364) at oracle.sysman.emSDK.conf.TargetInstaller.main(TargetInstaller.java:3290) Although there was an exception it might be possible for the program to continue. Environment variable ORACLE_UNQNAME not defined. Please set ORACLE_UNQNAME to database unique name.
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。