After a horrible afternoon dealing with the Oracle Universal Installer and the Oracle Database Creation Assistant (both of them are serious contenders for the "shitware of the year" 2004 awards), I thought I'd throw in a little tip for dealing with SQLExceptions as thrown by Oracle.
There are 2 types of SQLException that the average Java-Oracle developer can encounter:
The (DESCRIPTION=(TMP=)(VSNNUM=...)(ERR=...) variant instead usually means that the query has never reached the database. In this case the smart developer should concentrate on the application server and JDBC settings: maybe the wrong version of the JDBC driver is on the CLASSPATH, maybe the OCI (type-2) driver cannot find the native client libraries, and so on. The important point is that in this case is useless to go to the database!
For the ORA-xxxxx variant, there is a lookup facility on the Oracle Tahiti web site.
There are 2 types of SQLException that the average Java-Oracle developer can encounter:
- the ORA-xxxxx variant
- the (DESCRIPTION=(TMP=)(VSNNUM=...)(ERR=...) variant
- a servlet container, or an application server
- the Oracle JDBC driver
- the Oracle database
The (DESCRIPTION=(TMP=)(VSNNUM=...)(ERR=...) variant instead usually means that the query has never reached the database. In this case the smart developer should concentrate on the application server and JDBC settings: maybe the wrong version of the JDBC driver is on the CLASSPATH, maybe the OCI (type-2) driver cannot find the native client libraries, and so on. The important point is that in this case is useless to go to the database!
For the ORA-xxxxx variant, there is a lookup facility on the Oracle Tahiti web site.