6
7
2) 若未设置环境变量,安装完成后,启动时会遇到以下问题
解决办法:执行安装前准备中的第7步 3) 再从重启ORACLE,成功
3. 在本机用toad连接
在本机使用toad连接虚拟机上的ORACLE时,错误提示:ORA-12170:TNS:Connect timeout occurred 。
8
现象:
使用第三方工具PL/SQL Developer和Toad均无法远程连接数据库,报错均为:ORA-12170:TNS:Connect timeout occurred [oracle@localhost dbs]$ lsnrctl status
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 12-JUN-2014 11:42:52 Copyright (c) 1991, 2009, Oracle. All rights reserved. Connecting to
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))) STATUS of the LISTENER ------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production Start Date 12-JUN-2014 11:22:22 Uptime 0 days 0 hr. 20 min. 29 sec Trace Level off
Security ON: Local OS Authentication SNMP OFF
Listener Parameter File /oracle/product/11.2.0/network/admin/listener.ora Listener Log File /oracle/diag/tnslsnr/localhost/listener/alert/log.xml Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))) Services Summary...
Service \
Instance \ Instance \ Instance \, has 1 handler(s) for this service... Service \
Instance \, has 1 handler(s) for this service... The command completed successfully
9
[oracle@localhost dbs]$
既有动态注册也有静态注册信息。
原因:
数据库服务器的防火墙导致的无法连接问题,应该是在系统安装的时候没有关掉防火墙。
解决方法:
执行命令service iptables stop(关闭防火墙) 之后便可以正常连接。
二、ORACLE新建实例 1. 安装xmanager4.0 2. 使用xmanager4.0登录
Protocol选择SSH
Command选择第七个:GNOME
3. 打开终端Terminal
10