How to connect to Oracle 11g database remotely

前端 未结 6 1657
孤独总比滥情好
孤独总比滥情好 2020-12-09 09:41

I have Oracle 11g XE installed on computer A. I can connect through the sql command line using the command connect username/password. I also can send SQL instru

6条回答
  •  误落风尘
    2020-12-09 10:46

    First, make sure the listener on database server (computer A) that receives client connection requests is running. To do so, run lsnrctl status command.

    In case, if you get TNS:no listener message (see below image), it means listener service is not running. To start it, run lsnrctl start command.

    Second, for database operations and connectivity from remote clients, the following executables must be added to the Windows Firewall exception list: (see image)

    Oracle_home\bin\oracle.exe - Oracle Database executable

    Oracle_home\bin\tnslsnr.exe - Oracle Listener

    Finally, install oracle instant client on client machine (computer B) and run:

    sqlplus user/password@computerA:port/XE

提交回复
热议问题