第一步:先将下载下来的ZIP文件解压,并运行setup.exe文件。

第二步:选择安装类型为第二项。

第三步:指定安装位置
为了避免出现不必要的错误,路径下要有中文,或空格等特殊字符

第四步,安装检查出现错误

解决办法:
修改安装目录下的...\win32_11gR1_client\client\stage\prereq\client\refhost.xml文件
新增节点:
<OPERATING_SYSTEM>
<VERSION VALUE="6.1"/>
</OPERATING_SYSTEM>
</OPERATING_SYSTEM>

修改后重新运行安装即可。

检查没有完成,会有警告信息弹出,请忽略

第五步:概要信息检查

第六步:进行安装


点击下一步,下一步,直到出现Oracle Client安装完成。

安装完成后,我们进行Oracle Client端的配置

选择NETCA->本地网络服务名配置

选择添加本地网服务名配置


在网络中架设C/S 客户端选择TCP类型

输入服务器的IP地址,选用默认端口

测试下是否连通

默认是连不成功以,更换用户试试system/admin

成功啦

这个服务名是保存在客户机上的,可以自己随意填写,但在PL/SQL连接中用到 如:sqlplus system/[email protected]

好啦


检查Oracle安装目录OraClient\product\11.1.0\client_1\network\admin
下tnsnames.ora文件格式如下(或直接在此配置此配置文件):
ORCL6842 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.18.68.42)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = ORCL)
)
)

使用PLSQL_DEVELOP连接,
打开plsqldev可以自动检测到刚才配置tnsnames.ora文件
输入正确的用户名密码可以连接

出现以下状态,证明登陆成功,弱出现错误,请检查当前主机是否可以ping同oracle服务器主机
