- 论坛徽章:
- 0
|
目的:客户端xp远程连接linux下oracle
问题描述:oracle为静态安装,现在通过xp上plsql远程连接
服务器IP:192.168.0.234
在客户端通过plsql连接远程服务器上oracle出现以下错误,服务器上oracle是好的
提示错误:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
问题补充:服务器本机是可以连接的
[oracle@client admin]$ sqlplus wangping/wpzj123
SQL*Plus: Release 10.2.0.1.0 - Production on Wed Jul 18 11:53:11 2012
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL>
监听:
[oracle@client admin]$ lsnrctl start
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 18-JUL-2012 11:54:05
Copyright (c) 1991, 2005, Oracle. All rights reserved.
TNS-01106: Listener using listener name LISTENER has already been started
[oracle@client admin]$ lsnrctl status
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 18-JUL-2012 11:54:15
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
Start Date 18-JUL-2012 11:41:07
Uptime 0 days 0 hr. 13 min. 8 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /home/oracle/10g/network/admin/listener.ora
Listener Log File /home/oracle/10g/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.0.234)(PORT=1521)))
Services Summary...
Service "data" has 1 instance(s).
Instance "data", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
[oracle@client admin]$
客户端配置文件tnsnames.ora
#Network Configuration File: /home/oracle/10g/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
DATA =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.234)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = data)
)
)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)
配置文件
listener.ora
#Network Configuration File: /home/oracle/10g/network/admin/listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = data)
(SID_NAME = data ) #PLSExtProc)
(ORACLE_HOME = /home/oracle/10g)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.234)(PORT = 1521))
)
)
|
|