PL/SQL远程连接Oracle数据库
远程连接Oracle数据库
蓝奏云下载扩展
解压到 【PLSQL 安装 根目录】
进入 network/admin 建立【tnsnames.ora 】文件
【172.19.150.156】要连接的 数据库地址ip
# tnsnames.ora Network Configuration File: C:\app\orac\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
# LISTENER_ORCL =
# (ADDRESS = (PROTOCOL = TCP)(HOST = 172.19.150.156)(PORT = 1521))
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST =172.19.150.156)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl.mshome.net)
)
)
基本使用
3:编写sql
4:执行sql ,快捷键 F8
5:提交 快捷键 F10