在oracle目录下,找到 /network/ADMIN/ tnsnames.ora文件:里面设置了数据库连接配置属性,例如:HDB0 =(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST =192.168.1.82)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME =HDB0) ))你只需要知道对方的IP地址(Host属性),和oracle实例名称(Service_Name属性),就可以了阿。