# Generated by Oracle configuration tools.
ONEPC = #这个onepc是sid
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = dn2404.use.com)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = onepc.use.com) #onepc.use.com是全局数据名
)
)
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
)
)
ZERO = #sid
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = dn2404.usenet.com)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = zero.study) #全局数据名
)
)
全局数据名与sid创建数据库的时候设置的.
以下为转自网上:
1.去oracle下载instantclient_11_2是一个压缩文件,解压之后的文件夹叫:D:\instantclient_11_2.放在你喜欢的目录即可.例如:D:\instantclient_11_2
2.在D:\instantclient_11_2目录下新建目录network,在network目录下再新建admin目录,在admin目录下新建文件tnsnames.ora,使用文本编辑器.
3、添加一个环境变量,名为TNS_ADMIN,值为tnsnames.ora文件所在路径。比如:D:\instantclient_11_2\network\admin
4、设置ORACLE的语言,添加环境变量NLS_LANG ,值为SIMPLIFIED CHINESE_CHINA.ZHS16GBK
如果不清楚远程数据库的ORACLE 语言,可以ssh或者telnet到远程机器,在命令界面输入,用命令行连接到数据库。
select * from nls_instance_parameters;
查看NLS_LANGUAGE 的值
NLS_LANGUAGE
NLS_TERRITORY
5、下载并安装PL.SQL.Developer配置应用
配置tools->preferences->connection
Oracle Home
D:\instantclient_11_2
OCI library
D:\instantclient_11_2\oci.dll
中文的PL/SQL Developer就是
工具-->首选项-->连接
Oracle主目录
D:\instantclient_11_2
OCI库
D:\instantclient_11_2\oci.dll
6、关闭PL/SQL Developer,重起Developer.
主机名就会出现在PL/SQL Developer的列表里,输入用户名密码,就可以登录远程oracle 11g数据库了。