sqlplus remote connection giving ORA-21561

前端 未结 6 2099
孤街浪徒
孤街浪徒 2020-12-09 02:47

I have installed sqlplus based on instruction given here

sqlplus \'username/password@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.0.100)(PORT=1521))(         


        
6条回答
  •  失恋的感觉
    2020-12-09 03:27

    Answer obtained here.

    1 - Get your hostname:

    $ hostname

    new-host

    2 - Change the contents of /etc/hosts:

    $ sudo cat /etc/hosts

    127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain

    ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6

    $ sudo nano /etc/hosts

    $ sudo cat /etc/hosts

    127.0.0.1 localhost new-host

    ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6

    Hope this helps (:

提交回复
热议问题