Error creating database link in Oracle

那年仲夏 提交于 2019-12-11 02:34:42

问题


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:


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';


来源:https://stackoverflow.com/questions/25678877/error-creating-database-link-in-oracle

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!