Total Pageviews

Tuesday 1 May 2012

ORA-02010: missing host connect string


The below statement to create Database link is not working:

create public database link testdblink connect to system identified by sys using orcl2;

Error:ORA-02010: missing host connect string 

Solution: you have not specified the TNSNAME in single quotes.

create public database link testdblink connect to system identified by sys using 'orcl2';


Below is the entry of orcl2 in the "TNSNAME.ORA"

ORCL2 =
(DESCRIPTION =
  (ADDRESS = (PROTOCOL = TCP)(HOST = ABC-GGN-259.sumit.local)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl2)
)
)



You can check if your DB link is created using the command:

select username, owner , host  from dba_db_links;

1 comment:

  1. Jadwal Tarung Ayam SV388 17 Februari 2019 di Situs Judi Sabung Ayam Online Melalui Agen Resmi Taruhan Sabung Ayam Live Asli Thailand.

    Bandar Sabung Ayam - Minggu, 17 Februari 2019 – Pada Hari Tersebut Akan Di Laksanakan Berbagai Pertandingan Sabung Ayam Secara Live di Arena Sabung Ayam Thailand.

    Untuk Info Lebih Lanjut Bisa Hub kami Di :
    wechat : bolavita
    line : cs_bolavita
    whatsapp : +628122222995
    BBM: BOLAVITA

    ReplyDelete