ORA-02010: missing host connect string
Error
ORA-02010: missing host connect string
CREATE DATABASE LINK SALE_DBLINK
CONNECT TO SALEUSER IDENTIFIED BY salespassword
USING SALESDB;
USING SALESDB
*
ERROR at line 3:
ORA-02010: missing host connect string
Cause
Missing quotation at SID name, we need to use Single Quotation for SID.
Solution
Follow the following syntax for creating the DBLINK in Oracle DB:
create database link link_name connect to USERNAME identified by PASSWORD using 'SID'
Note:
Use Quotation at SID name in DBLINK creation systax.
SID is DB connection name present in TNS entry.
you can test it with TNSPING command also.