dbTalk Databases Forums  

ORA-02010

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss ORA-02010 in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Sashi
 
Posts: n/a

Default ORA-02010 - 07-01-2010 , 11:33 AM






Hi all, I'm trying to create a database link to a remote db.

SQL> create public database link iv_link
2 connect to user identified by password
3 using IV;


IV is the SID identifier in my tnsnames.ora for the remote host.
this results in ORA-02010.

How do I specify the host connection string when I have the DB
connection string as below? Should I create one before I can create a
DB link?

IV = (DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 11.22.33.44)(PORT = 1521))
)
(CONNECT_DATA =
(SID = IV)
)
)

TIA,
Sashi

Reply With Quote
  #2  
Old   
gazzag
 
Posts: n/a

Default Re: ORA-02010 - 07-01-2010 , 11:56 AM






On 1 July, 16:33, Sashi <small... (AT) gmail (DOT) com> wrote:
Quote:
Hi all, I'm trying to create a database link to a remote db.

SQL> create public database link iv_link
* 2 *connect to user identified by password
* 3 *using IV;

IV is the SID identifier in my tnsnames.ora for the remote host.
this results in ORA-02010.

How do I specify the host connection string when I have the DB
connection string as below? Should I create one before I can create a
DB link?

IV = *(DESCRIPTION =
* * (ADDRESS_LIST =
* * * (ADDRESS = (PROTOCOL = TCP)(HOST = 11.22.33.44)(PORT = 1521))
* * )
* * (CONNECT_DATA =
* * * (SID = IV)
* * )
* )

TIA,
Sashi
Sashi,

You need a single quote (') around the connect string. Your SQL
statement should read:

create public database link iv_link
connect to user identified by password
using 'IV';

HTH
-g

Reply With Quote
  #3  
Old   
Sashi
 
Posts: n/a

Default Re: ORA-02010 - 07-01-2010 , 02:07 PM



On Jul 1, 11:56*am, gazzag <gar... (AT) jamms (DOT) org> wrote:
Quote:
On 1 July, 16:33, Sashi <small... (AT) gmail (DOT) com> wrote:



Hi all, I'm trying to create a database link to a remote db.

SQL> create public database link iv_link
* 2 *connect to user identified by password
* 3 *using IV;

IV is the SID identifier in my tnsnames.ora for the remote host.
this results in ORA-02010.

How do I specify the host connection string when I have the DB
connection string as below? Should I create one before I can create a
DB link?

IV = *(DESCRIPTION =
* * (ADDRESS_LIST =
* * * (ADDRESS = (PROTOCOL = TCP)(HOST = 11.22.33.44)(PORT = 1521))
* * )
* * (CONNECT_DATA =
* * * (SID = IV)
* * )
* )

TIA,
Sashi

Sashi,

You need a single quote (') around the connect string. *Your SQL
statement should read:

create public database link iv_link
*connect to user identified by password
using 'IV';

HTH
-g
Ha! So that was it, huh?
Thanks a lot!
Sashi

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.