sqlplus连接服务器的Oracle的经历
2012-01-30 18:44
387 查看
今天用sqlplus连接服务器的Oracle 时,怎么也连接不上。服务器端的数据库名为cebdsp,tnsnames.ora 配置为
cebdsp =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.101)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = cebdsp)
)
)
在命令行下查看 tnsping cebdsp,得到
C:\Users\zyxuc>tnsping cebdsp
TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 30-1月 -
2012 18:41:15
Copyright (c) 1997, 2005, Oracle. All rights reserved.
已使用的参数文件:
D:\oracle\product\10.2.0\db_1\network\admin\sqlnet.ora
TNS-03505: 无法解析名称
原因是上面的配位cebdsp时,前面有空格,不行。删除空格后,运行: tnsping cebdsp 得到:
C:\Users\zyxuc>tnsping cebdsp
TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 30-1月
2012 18:41:35
Copyright (c) 1997, 2005, Oracle. All rights reserved.
已使用的参数文件:
D:\oracle\product\10.2.0\db_1\network\admin\sqlnet.ora
已使用 TNSNAMES 适配器来解析别名
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168
1.101)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = cebds
)))
OK (30 毫秒)
然后 运行:sqlplus cebdsp/cebdsp@cebdsp 测试能否连接上 cebdsp数据库,得到:
C:\Users\zyxuc>sqlplus cebdsp/cebdsp@cebdsp
SP2-1503: 无法初始化 Oracle 调用界面
SP2-0152: ORACLE 不能正常工作
最后发现 是权限问题。我之前用的不是Administrator用户,没有权限,更改到Administrator用户就行了。
cebdsp =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.101)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = cebdsp)
)
)
在命令行下查看 tnsping cebdsp,得到
C:\Users\zyxuc>tnsping cebdsp
TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 30-1月 -
2012 18:41:15
Copyright (c) 1997, 2005, Oracle. All rights reserved.
已使用的参数文件:
D:\oracle\product\10.2.0\db_1\network\admin\sqlnet.ora
TNS-03505: 无法解析名称
原因是上面的配位cebdsp时,前面有空格,不行。删除空格后,运行: tnsping cebdsp 得到:
C:\Users\zyxuc>tnsping cebdsp
TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 30-1月
2012 18:41:35
Copyright (c) 1997, 2005, Oracle. All rights reserved.
已使用的参数文件:
D:\oracle\product\10.2.0\db_1\network\admin\sqlnet.ora
已使用 TNSNAMES 适配器来解析别名
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168
1.101)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = cebds
)))
OK (30 毫秒)
然后 运行:sqlplus cebdsp/cebdsp@cebdsp 测试能否连接上 cebdsp数据库,得到:
C:\Users\zyxuc>sqlplus cebdsp/cebdsp@cebdsp
SP2-1503: 无法初始化 Oracle 调用界面
SP2-0152: ORACLE 不能正常工作
最后发现 是权限问题。我之前用的不是Administrator用户,没有权限,更改到Administrator用户就行了。
相关文章推荐
- 如何配置pl/sql (本地客户端)连接远程oracle服务器
- windows下安装oracle,sqlplus连接启动oracle(oracle 主机字符串输入是什么)
- ORA-28547:连接服务器失败,可能是Oracle Net管理错误
- oracle 显示所有表、SID、sqlplus连接数据库
- pl/sql连接远程oracle服务器
- oracle instant client 客户端配置 连接远程oracle服务器(11g r2)
- SqlServer中创建Oracle连接服务器
- Oracle:如何使用PL-SQL 11.0连接远程Oracle12c服务器?
- 求解:ora-28547:连接服务器失败,可能是 Oracle Net 管理失败
- sqlplus不能连接本地Oracle数据库
- 如何配置pl/sql 连接远程oracle服务器
- 解决:[不安装oracle客户端,也要连接oracle服务器]这个问题过程中的经验。
- Oracle技术之专用服务器和共享服务器连接与会话
- Oracle教程之用户与Oracle数据库服务器建立连接,如何把用户和Oracle数据库服务器建立连接?
- 查询所有连接到ORACLE服务器的客户端IP地址的方法
- ORACLE:远程连接服务器数据库
- PL/SQL Developer 连接远程的Oracle 服务器
- sqlplus连接远程Oracle
- 连接Oracle服务器后怎么获取权限
- pl/sql 本机不安装oracle服务端连接服务器