1, 在本地安装的Oracle中找到目录 oracle\product\11.2.0\dbhome_1\network\admin, 它下面一般有两个文件可以进行编辑tnsnames.ora listener.ora ,一般只要配置tnsnames.ora即可. 配置内容如下面的方式.
# tnsnames.ora Network Configuration File: D:\app\oracle\product\11.2.0\dbhome_1\network\admin\tnsnames.ora # Generated by Oracle configuration tools. ORADEV764 = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.181.76.4)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = oradev) ) ) ORCL_190 = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.8.206.190)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl) ) )
2,打开PL/SQL Developer软件,在登录页面的下拉框中就可以选择我们配置的 ORADEV764 ORCL_190 了.
pl/sql developer 连接服务器上的数据库
时间: 2024-10-09 12:19:36