2

I have two databases and need to write a cross database query. So I'm trying to create a database link.

CREATE PUBLIC DATABASE LINK DBLink CONNECT TO SchemaName IDENTIFIED BY 123 using 'DBName';

When I executing this query it's take following error "ORA - 00933:SQL command not properly ended". Can anybody explain me where is the mistake?

P.S. I'm using SQL Developer.

1

1 Answer 1

4

I actually solve this problem. The problem was in the numbers used as password. To fix it use double quotes in password like this:

CREATE PUBLIC DATABASE LINK DBLink CONNECT TO SchemaName IDENTIFIED BY "123" using 'DBName';
Sign up to request clarification or add additional context in comments.

1 Comment

I don't think so. In my case i have only letters as password.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.