Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Insert Statement

Status
Not open for further replies.

syncdba

IS-IT--Management
Nov 28, 2005
206
US
Hi,
I'm trying to INSERT name(column values) into cust_type from tpt_cust_type table which is in other DB.(Username MN2
Connect:uti).
Table cust_type has only one col.

insert into cust_type
select name from tpt_cust_type.mn2@uti

Getting error:
ORA-02019: connection description for remote database not found..
Any Help
 

Did you create a database link? [ponder]


----------------------------------------------------------------------------
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
 
That's what I was trying to do in SELECT statement.

select name from tpt_cust_type.mn2/mn2@uti.
I'm not sure its the correct syntex..
 
insert into lov_customer_type(customer_type)
select name from tp2.usabad.tpt_customer_type;

I have updated my INSERT statement, Now its giving the error
"SQL command not properly ended".
Any help.
 

First you must create the database link:
Code:
CREATE DATABASE LINK uti
  CONNECT TO MyUser IDENTIFIED BY ThePassword
    USING TheServiceName;
[3eyes]

----------------------------------------------------------------------------
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top