请帮忙,Oracle客户端错误提示,搞不定...
我在 VMware上的安装了 Red Hat Linux 5, 32位的,虚拟机分配了 IP地址 192.168.1.3,开了端口 1521, 然后安装了 Oracle 11g, 32位的。
安装成功。
[oracle@localhost ~]$lsnrctl start
和
SQL> startup
ORACLE instance started.
都能正常执行。
tnsnames.ora文件
# tnsnames.ora Network Configuration File: /ora/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.3)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl.localdomain)
)
)
listener.ora 文件
# listener.ora Network Configuration File: /ora/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = orcl)
(ORACLE_HOME = /ora/app/oracle/product/11.2.0/dbhome_1)
(SID_NAME = orcl)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.3)(PORT = 1521))
)
)
ADR_BASE_LISTENER = /ora/app/oracle
sqlnet.ora 文件
# sqlnet.ora Network Configuration File: /ora/app/oracle/product/11.2.0/dbhome_1/network/admin/sqlnet.ora
# Generated by Oracle configuration tools.
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
SQLNET.AUTHENTICATION_SERVICES=(NONE)
ADR_BASE = /ora/app/oracle
我在物理机上的系统是 windows XP, 我下载好了 Oracle 11g 的 instant client, 设置好了
TNS_ADMIN = F:\instantclient_11_2\NETWORK\ADMIN
ORACLE_HOME = F:\instantclient_11_2
然后在客户端执行 sqlplus, 提示错误。
C:\Documents and Settings\Administrator>sqlplus hr@ORCL
SQL*Plus: Release 11.2.0.2.0 Production on Tue Dec 27 18:52:45 2011
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Enter password:
ERROR:
ORA-01034: ORACLE not availableORA-27101: shared memory realm does not existLinux Error: 2: No such file or directory
Process ID: 0
Session ID: 0 Serial number: 0
请各位大侠能帮忙一下。万分感谢!
------解决方案--------------------1、在虚拟机上是否能够正常进入数据库?
2、在Windows上执行 tnsping ORCL 命令看返回结果是否正常!
------解决方案--------------------1。 首先在linux上登录oracle,看是否能成功
2. XP上tnsnames.ora中的配置名是否为ORCL呢,最好能帖出内容来。
3. 要在XP上访问linux上的oracle,要注意是否考虑关闭Linux上的防火墙.
------解决方案--------------------的确。。先从liunx登陆下。 看看能进入没
如果能进入,本地win 客户端的tnsnames.ora配置没。
------解决方案--------------------SQL> startup
ORACLE instance started.
都能正常执行。
=============================
mount 和 open 呢?
------解决方案--------------------