Oracle database 11g R2 client的sqlplus无法成功连接数据库
Oracle database 11g R2 client的sqlplus无法成功连接数据库,1、数据库版本: Oracle Database 11g Enterprise Edition Release
问题环境:
1、数据库版本: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
2、操作系统环境:Windows 7 旗舰版 64位
3、本地安装有4个Oracle 数据库软件【四个数据库软件,不是四个数据库哦】如下:
Oracle 10.2服务端软件:e:\oracle\product\10.2.0\db_1\BIN\sqlplus.exe
Oracle 11.2服务端软件:e:\oracle\product\11.2.0\db_1\BIN\sqlplus.exe
Oracle 10.2客户端软件:e:\oracle\product\11.2.0\client_1\BIN\sqlplus.exe
Oracle 11.2客户端软件:e:\oracle\product\10.2.0\client_1\BIN\sqlplus.exe
问题描述:
1、本地启动Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 ,服务名sun,服务状态如下:
C:\Windows\system32>sc query oracleservicesun
SERVICE_NAME:oracleservicesun
TYPE : 10 WIN32_OWN_PROCESS
STATE : 4 RUNNING
(STOPPABLE, PAUSABLE, ACCEPTS_SHUTDOWN)
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x0
2、使用Oracle 10.2服务端软件可以正常连接数据库,如下:C:\Windows\system32>set ORACLE_SID=sun
C:\Windows\system32>e:\oracle\product\10.2.0\db_1\BIN\sqlplus.exe / as sysdba
SQL*Plus: Release 10.2.0.4.0- Production on 星期一 5月 14 17:06:32 2012
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
连接到:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
sys@SUN>
3、使用Oracle 11.2服务端软件可以正常连接数据库,如下:C:\Windows\system32>set ORACLE_SID=sun
C:\Windows\system32>e:\oracle\product\11.2.0\db_1\BIN\sqlplus.exe / as sysdba
SQL*Plus: Release 11.2.0.1.0Production on 星期一 5月 14 17:07:23 2012
Copyright (c) 1982, 2010, Oracle. All rights reserved.
连接到:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
sys@SUN>
4、使用Oracle 10.2客户端软件可以正常连接数据库,如下:
C:\Windows\system32>set ORACLE_SID=sun
C:\Windows\system32>E:\oracle\product\10.2.0\client_1\BIN\sqlplus.exe / as sysdba
SQL*Plus: Release 10.2.0.4.0- Production on 星期一 5月 14 17:11:27 2012
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
连接到:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
sys@SUN>
5、使用Oracle 11.2客户端软件无法连接数据库,如下
C:\Windows\system32>set ORACLE_SID=sun
C:\Windows\system32>e:\oracle\product\11.2.0\client_1\BIN\sqlplus.exe / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on 星期一 5月 14 17:13:08 2012
Copyright (c) 1982, 2010, Oracle. All rights reserved.
ERROR:
ORA-12560: TNS: 协议适配器错误
请输入用户名:
补充信息:
Oracle 11.2客户端sqlnet.ora文件如下:
# sqlnet.ora Network Configuration File: e:\oracle\product\11.2.0\client_1\network\admin\sqlnet.ora
# Generated by Oracle configuration tools.
# This file is actually generated by netca. But if customers choose to
# install "Software Only", this file wont exist and without the native
# authentication, they will not be able to connect to the database on NT.
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
请各位湿湿们不吝赐教,,折腾了很久也没搞明白原因,纠结中。。

热AI工具

Undresser.AI Undress
人工智能驱动的应用程序,用于创建逼真的裸体照片

AI Clothes Remover
用于从照片中去除衣服的在线人工智能工具。

Undress AI Tool
免费脱衣服图片

Clothoff.io
AI脱衣机

AI Hentai Generator
免费生成ai无尽的。

热门文章

热工具

记事本++7.3.1
好用且免费的代码编辑器

SublimeText3汉化版
中文版,非常好用

禅工作室 13.0.1
功能强大的PHP集成开发环境

Dreamweaver CS6
视觉化网页开发工具

SublimeText3 Mac版
神级代码编辑软件(SublimeText3)

热门话题

InnoDB的全文搜索功能非常强大,能够显着提高数据库查询效率和处理大量文本数据的能力。 1)InnoDB通过倒排索引实现全文搜索,支持基本和高级搜索查询。 2)使用MATCH和AGAINST关键字进行搜索,支持布尔模式和短语搜索。 3)优化方法包括使用分词技术、定期重建索引和调整缓存大小,以提升性能和准确性。

本文讨论了使用MySQL的Alter Table语句修改表,包括添加/删除列,重命名表/列以及更改列数据类型。

文章讨论了为MySQL配置SSL/TLS加密,包括证书生成和验证。主要问题是使用自签名证书的安全含义。[角色计数:159]

文章讨论了流行的MySQL GUI工具,例如MySQL Workbench和PhpMyAdmin,比较了它们对初学者和高级用户的功能和适合性。[159个字符]

全表扫描在MySQL中可能比使用索引更快,具体情况包括:1)数据量较小时;2)查询返回大量数据时;3)索引列不具备高选择性时;4)复杂查询时。通过分析查询计划、优化索引、避免过度索引和定期维护表,可以在实际应用中做出最优选择。

聚集索引和非聚集索引的区别在于:1.聚集索引将数据行存储在索引结构中,适合按主键查询和范围查询。2.非聚集索引存储索引键值和数据行的指针,适用于非主键列查询。

是的,可以在 Windows 7 上安装 MySQL,虽然微软已停止支持 Windows 7,但 MySQL 仍兼容它。不过,安装过程中需要注意以下几点:下载适用于 Windows 的 MySQL 安装程序。选择合适的 MySQL 版本(社区版或企业版)。安装过程中选择适当的安装目录和字符集。设置 root 用户密码,并妥善保管。连接数据库进行测试。注意 Windows 7 上的兼容性问题和安全性问题,建议升级到受支持的操作系统。
