工作两个月彻底弄明白了plsql如何连接Oracle数据库(远程/本地通用)
一、首先安装plsql(软件)
怎么安装、破解,这里我就不过多赘述了。接下来我只说主题内容。
二、安装连接客户端(软件)
三、配置1
编辑这个文件,copy如下内容,并根据自己情况修改
# tnsnames.ora Network Configuration File: E:\mydev\plsql14\instantclient_11_2\tnsnames.ora
# Generated by Oracle configuration tools.
tp =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.000.000)(PORT = 1521))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)
)
LISTENER_ORCL =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
)
)
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)
)
以上内容只需要配置这一个就行
四、配置2
五、连接
说明:你没配置上边我说的第一个,你去连接的时候数据库下拉框里面就没东西