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?
PS I'm using SQL Developer.
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';
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.