Home > Common Problem > How to connect plsql to oracle

How to connect plsql to oracle

anonymity
Release: 2019-05-09 15:45:59
Original
48841 people have browsed it

plsql 2 ways to connect to oracle database

How to connect plsql to oracle

Method 1: Configure tnsnames.ora

The file is in the instantclient folder, I directly Instantclient is copied to the root directory of plsql

The path of tnsnames.ora is under network > admin in the instantclient folder

Find it and modify it

#该文件用于配置数据库连接地址,配置好后,访问该数据库不再需要通过ip:port/instance,可以直接通过别名来访问该数据库
#数据库访问地址别名(随便起)
database-test=
(DESCRIPTION =
    (ADDRESS_LIST =
#通讯协议,主机,端口
      (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
    )
    (CONNECT_DATA =
数据库实例名称
      (SERVICE_NAME = orcl)
    )
)
Copy after login

Open plsql, The database appears

How to connect plsql to oracle

Method 2: Log in through ip/instance name

How to connect plsql to oracle

The above is the detailed content of How to connect plsql to oracle. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template