http://tech.ddvip.com/2007-05/117993092925564.html,可参考配置后再用下面的修改
应service_name,SQLPLUS>show parameter service_name;
在TNSNAME 中SERVICE_NAME = 所得的service_name,且
ora9 (注:用oracle_sid)=
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.10)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = hsyb.oracle)
)
)
sqlnet.ora 中应为NAMES.DIRECTORY_PATH= (TNSNAMES,HOSTNAME),表示先用TNSNAMES配置, 然后用HOSTNAME