Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between sqlplus and sqldeveloper?

I have a sql script file that creates tables and inserts data.

The server runs on Oracle 10g.

When I use sqldeveloper (remote computer) and I run my script everything is perfect. But when I go on the server and I run the same script on the same database, schema, user with sqlplus some error appears (integrity, unique ...) ?

What's the problem, why didn't I have problem on sqldeveloper but did have some on sqlplus? What can cause that?

like image 264
La Chamelle Avatar asked Mar 24 '11 19:03

La Chamelle


People also ask

Does SQL Developer include SQL Plus?

Oracle SQL Developer is a graphical version of SQL*Plus that gives database developers a convenient way to perform basic tasks. You can browse, create, edit, and delete (drop) database objects; run SQL statements and scripts; edit and debug PL/SQL code; manipulate and export data; and view and create reports.

Is Oracle SQL Developer and SQL Developer same?

Oracle Database ActionsFormerly known as SQL Developer Web, Database Actions brings all of your favorite Oracle Database desktop tool's features and experience to your browser! Run scripts, manage users, create/edit objects, import data, diagnose performance issues, visualize schemas, etc.

What is the difference between Oracle and SQL Developer?

Oracle SQL Developer is the Oracle Database IDE. A free graphical user interface, Oracle SQL Developer allows database users and administrators to do their database tasks in fewer clicks and keystrokes.


1 Answers

Ok i found the problems:

  • The first was the comment (/* comment */ are not supported or -- comment at the end line)
  • I had some anonymous block on my script and I put some / at the begin (by error) and the end. But on sqlplus, the / at the begin, re-execute the previous query.
  • After removing the comment i got blank line on some create table and sqlplus have problem with blank line inside the create table.
like image 60
La Chamelle Avatar answered Sep 30 '22 16:09

La Chamelle