emctl start dbconsole报错 /oracle/11.2.0/oc4j/j2ee/OC4J_DBConsole_localhost_xxx not found

发现确实没有这个目录,这是因为当时创建的时候主机名hostname并不是localhost,而是db001.xigang。

不知道为啥emctl不能找到正确的hostname了,emctl是根据什么来找这个网站根目录名的呢?

 

解决方法: export ORACLE_HOSTNAME=db001.xigang

 

原来,emctl是根据环境变量$ORACLE_HOSTNAME来确定网站根目录的。

你可能感兴趣的:(数据库)