ORA-02010: missing host connect string

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.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.