Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Oracle DB & SQL Developer: "Error report: execution completed with warning" - How do I *see* the warning?

I'm setting up a local oracle (11g) database - a clone of another database we have running already. I'm running a bunch of generated PL/SQL commands in SQL Developer.

I get the output

Error starting at line x in command: 
*long-ass SQL statement here* 
Error report: 
SQL Command: force view "someViewName"
Failed: Warning: execution completed with warning

How do I read the warning that has been generated without modifying the script?

when I use the show errors immediately after this command, I get the output no errors

like image 574
Paul Avatar asked Apr 03 '14 10:04

Paul


People also ask

What is Oracle DB used for?

An Oracle database is a collection of data treated as a unit. The purpose of a database is to store and retrieve related information. A database server is the key to solving the problems of information management.

Is Oracle DB a SQL DB?

No. Oracle Server is owned by Oracle. SQL Server is developed by Microsoft. Oracle uses PL/SQL.

Is Oracle DB same as SQL?

Oracle, meanwhile, uses PL/SQL, or Procedural Language/SQL. Both are different “flavors” or dialects of SQL and both languages have different syntax and capabilities. The main difference between the two languages is how they handle variables, stored procedures, and built-in functions.

What type of DB is Oracle?

Oracle Database is an RDBMS. An RDBMS that implements object-oriented features such as user-defined types, inheritance, and polymorphism is called an object-relational database management system (ORDBMS).


1 Answers

If show errors doesn't give you anything:

select line, position, text
from user_errors
where type = 'VIEW'
and name = 'someViewName'
order by sequence;

That assumes you're creating it under your own schema; if not you can look in all_errors instead.

The columns are in the documentation:

ALL_ERRORS describes the current errors on the stored objects accessible to the current user.
DBA_ERRORS describes the current errors on all stored objects in the database.
USER_ERRORS describes the current errors on the stored objects owned by the current user. This view does not display the OWNER column.

like image 144
Alex Poole Avatar answered Oct 05 '22 23:10

Alex Poole