首页 > 数据库 > mysql教程 > How to Remote Access Oracle DB

How to Remote Access Oracle DB

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
发布: 2016-06-07 15:49:01
原创
854 人浏览过

When you install Oracle DB, the default hostname is localhost. However, we cannot access this DB by other hosts. So how to config to help the remote visitors to access the ODB. What we need to do is to change the hostname of ODB in Linux.

When you install Oracle DB, the default hostname is localhost. However, we cannot access this DB by other hosts. So how to config to help the remote visitors to access the ODB.

What we need to do is to change the hostname of ODB in Linux.

So first, we need to login our host and go to the path of Oracle DB home.

How to Remote Access Oracle DB

Under the path of DB, go to the network / admin, we can find listener.ora and tnsnames.ora these two files. The host info is stored in these files.

Go into these two files to change the value of hostname and value of service name.

How to Remote Access Oracle DB

After do --- vim listener.ora, we need to modify HOST value from localhost to your host address.

How to Remote Access Oracle DB

After do -- vim tnsnames.ora, the value of HOST and SERVICE_NAME.

How to Remote Access Oracle DB

After we exit from vim, we have to open the DB server listener.

Go to the bin folder under dbhome_1, do--  setenv ORACLE_HOME (dbhome_1 pwd)

                                                                         --   setenv ORACLE_SID orcl

How to Remote Access Oracle DB

Under bin folder, we can run sqlplus and lsnrctl to verify the DB listener is open.

How to Remote Access Oracle DB

How to Remote Access Oracle DB

When the status of listener is open, that means other host can access this host DB. Right now you can use sql developer to try it. GOOD LUCK!!

相关标签:
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板