When creating procedures, functions, packages, triggers, or package bodies via Oracle, if there are compilation errors, Oracle will store these errors in a system table.
To view these errors, you will need to know the type of object being compiled, such as a procedure, and the name of the object. With this information, the following query can be executed.
select * from SYS.USER_ERRORS where NAME = <object_name> and type = <object_type>
For example, if attempting to create a procedure via the following command:
To view any errors associated with the above procedure, you can use the following query:
select * from SYS.USER_ERRORS where NAME = 'RAISE_SALARY' and type = 'PROCEDURE'
Let's say, for example, that the table EMPLOYEE does not exist. The above query will then return an error such as the following:
PL/SQL: ORA-00942: table or view does not exist
The type column can be types such as the following:
PROCEDURE
FUNCTION
PACKAGE
PACKAGE BODY
TRIGGER
When using RazorSQL, any compilation errors will automatically be retrieved by RazorSQL and displayed in a new window after executing a create or create or replace command that contains compile errors.
To view these errors, you will need to know the type of object being compiled, such as a procedure, and the name of the object. With this information, the following query can be executed.
select * from SYS.USER_ERRORS where NAME = <object_name> and type = <object_type>
For example, if attempting to create a procedure via the following command:
CREATE OR REPLACE PROCEDURE RAISE_SALARY(dept_no number, percentage number) AS employee_salary EMPLOYEE.SALARY%TYPE; CURSOR ECursor IS SELECT SALARY FROM EMPLOYEE where DNO = dept_no FOR UPDATE; BEGIN OPEN ECursor; LOOP FETCH ECursor into employee_salary; EXIT WHEN ECursor%NOTFOUND; UPDATE EMPLOYEE SET SALARY = (employee_salary*percentage) WHERE CURRENT OF ECursor; END LOOP; CLOSE ECursor; COMMIT; END RAISE_SALARY;
To view any errors associated with the above procedure, you can use the following query:
select * from SYS.USER_ERRORS where NAME = 'RAISE_SALARY' and type = 'PROCEDURE'
Let's say, for example, that the table EMPLOYEE does not exist. The above query will then return an error such as the following:
PL/SQL: ORA-00942: table or view does not exist
The type column can be types such as the following:
PROCEDURE
FUNCTION
PACKAGE
PACKAGE BODY
TRIGGER
When using RazorSQL, any compilation errors will automatically be retrieved by RazorSQL and displayed in a new window after executing a create or create or replace command that contains compile errors.
23 comments:
buy tramadol online tramadol kidney damage - is ordering tramadol online illegal
buy tramadol online best place buy tramadol forum - buy tramadol online cod no prescription
xanax cost does xanax show up drug test military - xanax on drug urine test
buy tramadol online withdrawal of tramadol - can you buy tramadol over counter us
generic xanax buy xanax 2mg no prescription - xanax brand online no prescription
buy carisoprodol carisoprodol taper - carisoprodol soma sun
buy tramadol online tramadol dosage headaches - tramadol withdrawal rls
tramadol online pharmacy tramadol 100mg - buy tramadol online no prescription cod
buy cheap carisoprodol drug interactions with carisoprodol - carisoprodol with hydrocodone
buy tramadol online tramadol online no prescription mastercard - tramadol 50 mg dosage
buy tramadol online tramadol high doses - tramadol hcl 50 mg for dogs
buy cialis online cialis vs cialis professional - cialis kidney stones
buy tramadol online tramadol high liver enzymes - tramadol 50 mg recommended dosage
buy tramadol online tramadol er 100mg side effects - tramadol hcl 50 mg information
cialis no prescription overnight cialis coupon program - buy cialis online usa
cialis online generic cialis in australia - cialis online us
http://landvoicelearning.com/#30896 buy tramadol online co.usa - tramadol hcl 50 mg is used for
buy tramadol with mastercard buy tramadol 100mg - tramadol contraindications
cheap tramadol no prescription tramadol for back pain - where to buy tramadol online legally
buy tramadol buy tramadol online usa cheap - tramadol hcl 200 er
http://landvoicelearning.com/#30896 buy tramadol online florida - tramadol for dogs with kidney disease
http://blog.dawn.com/dblog/buy/#blog order tramadol online tennessee - buy tramadol online mastercard
alprazolam 0.5mg xanax side effects tremors - xanax withdrawal rage
Post a Comment