Home > Database > Mysql Tutorial > body text

Oracle服务端和客户端配置

WBOY
Release: 2016-06-07 17:01:49
Original
1050 people have browsed it

1.在oracle服务端可以是使用$ORACLE_HOME/bin/netca来配置,服务端监听,如果配置监听不使用默认监听名(listener),而改成其它

1.在Oracle服务端可以是使用$ORACLE_HOME/bin/netca来配置,,服务端监听,如果配置监听不使用默认监听名(listener),而改成其它名字,则启动方式为

[oracle@ admin]$ lsnrctl ora_listener start

如果使用默认,则使用

[oracle@ admin]$ lsnrctl start

2.配置客户端监听

首先必须按照oracle客户端,或者有oracle软件,如果是oracle客户端,则位置在\oracle\product\10.2.0\client_1\NETWORK\ADMIN\tnsnames.ora

可以添加如下配置

ORA =

(DESCRIPTION =

(ADDRESS_LIST =

(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.26.130)(PORT = 1521))

)

(CONNECT_DATA =

(SID = ora)//ora为远程数据库service_names

)

)

可以在cmd命令行中使用 sqlplus scott/tiger@ora,连接远程数据库

linux

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