26 :: Write the order of precedence for validation of a column in a table?
I. done using Database triggers.
ii. done using Integarity Constraints
I & ii.Exception :
|
27 :: What is an Exception? What are types of Exception?
Exception is the error handling part of PL/SQL block. The types are Predefined and user defined. Some of Predefined exceptions are.CURSOR_ALREADY_OPEN
DUP_VAL_ON_INDEX
NO_DATA_FOUND
TOO_MANY_ROWS
INVALID_CURSOR
INVALID_NUMBER
LOGON_DENIED
NOT_LOGGED_ON
PROGRAM-ERROR
STORAGE_ERROR
TIMEOUT_ON_RESOURCE
VALUE_ERROR
ZERO_DIVIDE
OTHERS.
exception is an identifier and error handling part of pl/sql types := 1)predifined
2) user defined.
|
28 :: What is Pragma EXECPTION_INIT? Explain the usage?
The PRAGMA EXECPTION_INIT tells the complier to associate an exception with an oracle error. To get an error message of a specific oracle error.e.g. PRAGMA EXCEPTION_INIT (exception name, oracle error number)
|
29 :: What is Raise_application_error?
Raise_application_error is a procedure of package DBMS_STANDARD which allows to issue an user_defined error messages from stored sub-program or databasetrigger.
|
30 :: What are the return values of functions SQLCODE and SQLERRM?
SQLCODE returns the latest code of the error that has occurred.SQLERRM returns the relevant error message of the SQLCODE.
|




Webmaster Said:
Thank you.
c programming Said:
priyank Said:
Sharique Ahmad Said: