title: Error creating database link in Oracle
body: <p>I have two databases and need to write a cross database query. So I'm trying to create a database link.</p>
  
  <pre><code>CREATE PUBLIC DATABASE LINK DBLink CONNECT TO SchemaName IDENTIFIED BY 123 using 'DBName';
  </code></pre>
  
  <p>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>
  
  <p>P.S. I'm using SQL Developer. </p>