首页 > 代码库 > oracle(Xe)数据库远程连接需修改配置参数

oracle(Xe)数据库远程连接需修改配置参数

1.找到oracle安装后的目录,然后找到tnsnames.ora文件

修改相关文件内容:

XE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.107)(PORT = 1521))
(CONNECT_DATA =http://www.mamicode.com/
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
)
)

EXTPROC_CONNECTION_DATA =http://www.mamicode.com/
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
)
(CONNECT_DATA =http://www.mamicode.com/
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)

ORACLR_CONNECTION_DATA = http://www.mamicode.com/
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
)
(CONNECT_DATA = http://www.mamicode.com/
(SID = CLRExtProc)
(PRESENTATION = RO)
)
)

将(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.107)(PORT = 1521))修改成本机IP以及端口号,

然后其他电脑可以通过相关的IP端口远程连接到你自己oracle服务器

 

oracle(Xe)数据库远程连接需修改配置参数