发布网友 发布时间:2022-04-25 08:56
共2个回答
懂视网 时间:2022-04-07 22:27
关于plsql连接的教程有很多,其中最重要的就是D:oracleproduct10.2.0db_1 etworkADMIN下的listener和tnsnames两个文件。经过反复修改与测试,终于成功了。
Listener文件:
# listener.ora Network Configuration File: d:oracleproduct10.2.0db_1 etworkadminlistener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = D:oracleproduct10.2.0db_1)
(PROGRAM = extproc)
)
(SID_DESC =
(GLOBAL_DBANAME = orcl)
(ORACLE_HOME = D:oracleproduct10.2.0db_1)
(SID_NAME = ticelab)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = hitliyong)(PORT = 1521))
)
)
Tnsnames文件:
# tnsnames.ora Network Configuration File: C:oracleproduct10.2.0db_1 etworkadmin nsnames.ora
# Generated by Oracle configuration tools.
TICELAB =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = hitliyong)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ticelab)
)
)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)
[Oracle]Plsql连接Oracle
标签:
热心网友 时间:2022-04-07 19:51
设置方法如下:
1、找到oracle的安装目录。如:C:\oracle\proct\10.2.0\db_1\network\ADMIN
2、找到tnsnames.ora文件。
3、用文本方式打开,添加以下内容:
其中中文部分是需要修改的部分,除第一个“本地实例名”外,其他需要跟远程数据库管理员咨询,本地实例名就是方便自己识别数据库的一个名字,可以自定义。
4、然后打开pl/sql就能看到自己创建的链接,如图: