Find jobs | Jobseekers
Employer login
About us Sitemap of www.CareerRide.com Sitemap FAQ related with www.CareerRide.com FAQ Click here to Contact us Contact
       
Submit Resume Free ! | Access Resume Free !
Home Career Services Resume Services Interview questions Articles Books
Content
Oracle interview
Oracle architecture
Oracle processes
Oracle memory area
Oracle file types
Oracle database objects
Oracle operators
Oracle composite
Oracle constraints
Oracle data types
Oracle DCL and TCL
Oracle DML commands
Oracle error handling
Oracle functions
Oracle function, procedure, package
Oracle import and export
Oracle sub queries
Oracle table
Oracle triggers
Oracle views
Oracle synonym
Oracle indexes
Oracle joins
Oracle cursors
Oracle form
Oracle security
Oracle system privilege
Oracle object privileges
Oracle table privileges
Oracle view privileges
Oracle backup & recovery
Oracle DBA
Oracle PL/SQL
Oracle nested table & varrays
Oracle large objects
Oracle replication
Oracle transaction
Oracle optimizer
Oracle auditing
Oracle backup
Oracle database tuning
Oracle application tuning
Oracle procedures
Oracle functions
Oracle loops
Oracle exceptions
Oracle Select into clause
Oracle string functions
Oracle numeric functions
Oracle date functions
Oracle translate and decode
Oracle correlated sub-queries
Oracle union, intersect and minus
Oracle clusters
Oracle sequences
Oracle tablespaces
Oracle object datatypes
 
ASP.NET | ADO.NET | AJAX
C#.NET | VB.NET | PHP
NET Remoting | NET Interview
  
C | C++ | Java | Oops
Data Structure | OS
   
Database concepts | Oracle
SQL Server | Biztalk | Sharepoint
Notification services
Reporting Services
Service-oriented architecture
Data warehousing | MySQL
  
Project Management 
Linux | Testing | Networking
Software engineering 
  
UML | XML | HTML | SOAP 
CSS | VBScript  | Web Services
   
CV Cover letter | Interview 
HR | Soft skills | GD 
Working from Home 
Tutorial
ASP.NET | VB.NET | C#.NET     
Remoting.NET | Web service
Remoting overview | ADO.NET
UML | Sql server 
More links
Introduction to Legacy Modernization 
Oracle Web RowSet 
Books on Oracle
Oracle Modernization Solutions 
JDBC 4.0 and Oracle JDeveloper for J2EE Development 

Oracle

Oracle error handling interview questions

<<Previous  Next>>

Part 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30  | 31    NEXT>>  

Oracle Error Handling - August 11, 2008 at 15:00 PM by Amit Satpute

How PL/SQL Exceptions Are Raised?  

Answer
The PL/SQL exceptions can be raised in 4 ways. Either the user can raise them or they can be raised by the PL/SQL engine. They are as follows:

The PL/SQL runtime engine raised named system exception: These exceptions are raised automatically by the program. You cannot control when PL/SQL will raise a system exception.

The programmer raised named exception: The programmer can use an explicit call to the RAISE statement to raise a programmer-defined or system-named exception.

The programmer raised unnamed, programmer-defined exception: These are raised with an explicit call to the RAISE_APPLICATION_ERROR procedure in the DBMS_STANDARD package.

The programmer re-raised "current" exception: From within an exception handler, you can re-raise the same exception for propagation to the enclosing block.  

Explain the guidelines for Avoiding and Handling PL/SQL Errors and Exceptions.   

Answer
Guidelines for Avoiding and Handling PL/SQL Errors and Exceptions  

  • Use both error checking and exception handling to ensure your program can handle all possibilities.
  • Add exception handlers whenever there is any possibility of an error occurring. 
  • Add error-checking code whenever you can predict that an error might occur if your code gets bad input data. 
  • Make your programs robust enough to work even if the database is not in the state you expect. 
  • Handle named exceptions whenever possible, instead of using WHEN OTHERS in exception handlers. 
  • Test your code with different combinations of bad data to see what potential errors arise. 
  • Write out debugging information in your exception handlers. 
  • Carefully consider whether each exception handler should commit the transaction, roll it back, or let it continue.  

Oracle Error Handling - August 28, 2008 at 15:00 PM by Amit Satpute

Explain the types of Exceptions  

Answer
Predefined oracle exceptions
These are the PL/SQL runtime engine raised named system exceptions. These exceptions are raised automatically by the program. You cannot control when PL/SQL will raise a system exception.

User-defined exceptions 
These are programmer raised named exceptions. The programmer can use an explicit call to the RAISE statement to raise a programmer-defined or system-named exception. The programmer can also raise unnamed, programmer-defined exceptions and re-raised "current" exceptions.   

  1. What is Exception in Oracle?
    Answer - Errors occur during runtime processing due to either hardware or network failure or application logic errors are known as exception.

    Types of Exceptions in Oracle
    Predefined Oracle Exception
    User-Defined Exception
  2. What are the predefined oracle exceptions?
    Answer - Following is the predefined oracle exceptions

    No_data_found
    Too_many_rows
    Zero_divide
    Login_denied
    Program_error
    Timeout_on_resource
    Invalid_cursor
    Cursor_already_open
    Dup_val_on_index
  3. Explain user defined exceptions in oracle.
    Answer - A user can explicitly raise an exception by using the Raise command.
<<Previous  Next>>


 

 
Today's Hot Jobs
C++  SQL Server
.NET  Java  Oracle
Finance  Marketing
Seekers  Employers
Copyright © 2008 CareerRide.com. All rights reserved.