wilon.github.io icon indicating copy to clipboard operation
wilon.github.io copied to clipboard

ORACLE如何成功启动并连接?

Open wilon opened this issue 7 years ago • 0 comments

ORACLE

正确安装ORACLE -> 给IP添加正确监听 -> 给监听添加正确配置文件

管理连接:http://localhost:1158/em/ 控制面板\系统和安全\管理工具\服务


Q:配置监听

Net Manager 配置IP 配置文件:$ORACLE_HOME\db_1\network\ADMIN对应上

Q:ORACLE_SID not defined

set oracle_sid=数据库名 1.确认oracle sid 和数据库实例的sid一致 2.确认tnsnames.ora已经配置了oracle sid 对应的连接信息。

Q:Oracle 状态暂挂 Status pending

$ORACLE_HOME\db_1\$HOSTNAME\sysman\config\emd.properties 其中的agentTZRegion缺省是GMT,改为你所在的时区即可,例如: agentTZRegion=Asia/Shanghai 再cmd执行

emctl stop dbconsole  
emctl resetTZ agent 
emctl config agent getTZ
emctl start dbconsole

改完后别忘了ORACLE服务重启

wilon avatar Mar 16 '17 14:03 wilon