本地远程虚拟机数据库
时间:2023-06-26 02:24:02 | 来源:网站运营
时间:2023-06-26 02:24:02 来源:网站运营
本地远程虚拟机数据库:个人经验备份,以备下次遇到此类问题用
虚拟机版本:vmware workstation pro 16
服务器版本:Windows server 2012 数据中心
数据库版本:oracle 11.2.03
plsql developer版本:14.02
主机系统:win10企业版
1.本地安装plSQL developer和instantclient
2.复制oracle数据库中的network文件到instantclient中
3.更改instantclient/NETWORK/ADMIN下listener和tnsnames以及sqlnet
4.listener:
LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521)) (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.10.10 )(PORT = 1521)) ) )
5.sqlnet:
SQLNET.AUTHENTICATION_SERVICES= (NONE)
6.tnsnames增加一行
ORCL = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 虚拟机IP)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl) ) )
7.服务器防火墙出入站规则放行1521端口
8.虚拟机防火墙出入站规则启用文件和打印机文件共享