473,503 Members | 1,797 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Create new Database Link Problem

107 New Member
Hi,


I am not able to create the Database link in my Oracle 11g. My Statement looks like below

Expand|Select|Wrap|Line Numbers
  1. CREATE DATABASE LINK mylink CONNECT TO <username>
  2. IDENTIFIED BY <pwd> USING <tns_service_name>;    
  3.  
and it shows the below error as
Expand|Select|Wrap|Line Numbers
  1. Error starting at line 2 in command:
  2. CREATE DATABASE LINK mylink CONNECT TO <username> IDENTIFIED BY <pwd> USING <tns_service_name>
  3. Error at Command Line:2 Column:70
  4. Error report:
  5. SQL Error: ORA-00933: SQL command not properly ended
  6. 00933. 00000 -  "SQL command not properly ended"
  7. *Cause:    
  8. *Action:
  9.  
Given tns service name is correct

Thanks in Advance
Mar 5 '12 #1
1 4327
rajmani
3 New Member
Problem seems to be with your parameters not with the statement:
Expand|Select|Wrap|Line Numbers
  1. CREATE DATABASE LINK "mydblink" CONNECT TO "MYDB" IDENTIFIED BY mypassword USING 'tns.world';
Mar 8 '12 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
5442
by: wqhdebian | last post by:
It was said the ORA-02085 error result from the mismatch of database name and database link name ,and setting glabal_names=false can resolve . but I want to try the other solution,let global_names...
2
3075
by: Dmitry Duginov | last post by:
Here's a problem -------------------------------------------- set serveroutput on DECLARE CURSOR cur is select ed_no, length(ed_no) as len from listtext@pubdb.world; BEGIN for cur_rec in cur...
1
7851
by: Lothar Armbr?ster | last post by:
Hello out there, this morning I had to get some rows via flashback query. Since my undo retention is just 3h, the undo segments were already aged out. But I have a physical standby database that...
3
2225
by: VIJAY KUMAR | last post by:
Hi pals, I am using 2 web forms (pages). In first page, i have Datagrid control and on second page i have a hyper link control to the first page and Add value to the data grid/Database. ...
2
5524
by: deja | last post by:
Hello, I am using an SQL script to create a temporary database backup. While there may be "other" or "better" ways to do this - I am really only asking if the syntax (with tweaking) is possible...
1
12196
by: Andrew Chanter | last post by:
I am writing a little routine to perform the following operations from an Acces 97 mdb: 1. create a fixed width text file 2. create/establish a table type link to the text file in Access 3....
7
1264
by: Apollo0130 | last post by:
hi, how can i create a link in a table in a webform, which links to another page??? please help me, my project must go on... :? Apollo0130 :) Posted Via Usenet.com Premium Usenet...
1
3109
by: orabalu | last post by:
Hi Guys, I have created one synonym from database link. Synonym is created .When I am going to look data in synonym , able not to see data. Can you please give some guidence how can i see...
2
1851
by: holdingbe | last post by:
Hi, I get very difficult requirement from my friend. I explain clearly below : I have two databases. Source databases: Flower |__________schema: sample. ...
3
4910
by: Vee007 | last post by:
Following is my code: Dim objCatalog As ADOX.Catalog Dim objTableLink As ADOX.Table Dim objADOConnection As ADODB.Connection Try objADOConnection = New...
0
7199
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7076
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7274
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7323
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5576
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4670
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3162
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1507
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
732
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.