首頁 > 資料庫 > mysql教程 > How to Remote Access Oracle DB

How to Remote Access Oracle DB

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
發布: 2016-06-07 15:49:01
原創
852 人瀏覽過

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
最新問題
objective-c - 如何讓*轉起來?
來自於 1970-01-01 08:00:00
0
0
0
objective-c - 如何在cocos2d中建立定時器?
來自於 1970-01-01 08:00:00
0
0
0
c++ - 沒有運算子/的兩個浮點數的平均值?
來自於 1970-01-01 08:00:00
0
0
0
修復PHP中的貨幣格式問題
來自於 1970-01-01 08:00:00
0
0
0
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板