Database Errors

  Home  Technology Errors  Database Errors


“Database Errors frequently Asked Questions in various Database Errors job Interviews by interviewer. The set of Database Errors interview questions here ensures that you offer a perfect answer to the interview questions posed to you. Get preparation of Database Errors job interview”



20 Database Errors Questions And Answers

16⟩ This is the exception raised when i am working with oracle 11g java.lang.ClassNotFoundException oracle.jdbc.Driver.OracleDriver.. but i set the class path for both oracle and java?

ClassNotFoundException is the checked exception so we must handle that one or we can declare as throws keyword.

ex:

class EmployeeDao{

public static void main(String args[0]throws SQLException, ClassNotFoundException{

------------

-------------

}

}

 167 views

18⟩ How to resolve the sqlcode -501 error in db2?

This is due to the cursor declaration in which the application program has attempted to fetch some data's into a cursor that was neither declared nor opened. So, Always follow DECLARE,OPEN,FETCH,CLOSE while working with cursors.

 151 views