安装和配置按照网上的教程一步步操作,在安装完成后在oracleClient 的tnsnames.ora文件中加入:
SYBZ =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 133.96.24.63)(PORT = 1533))
(LOAD_BALANCE = off)
(FAILOVER = on)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = SYBZ)
(FAILOVER_MODE = (TYPE=select)(METHOD=basic))
)
)
还是有问题,最后解决方法:
发现应该在D:\SOFTWARE\oracleclient\product\11.2.0\client_1\network\admin目录下的tnsname.ora中添加以上信息,而admin中有个simple文件夹中也有tnsname.ora,不应该在simple文件夹中的tnsname.ora中添加。