>데이터 베이스 >MySQL 튜토리얼 >How to Remote Access Oracle DB

How to Remote Access Oracle DB

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB원래의
2016-06-07 15:49:01861검색

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으로 문의하세요.