// Create a pool of connections var myPool = new DbPool("ORACLE", "mySID", "myApp", "appsPWD", "myTNS"); if (myPool.connected()) { // You are connected, so perform any tasks here }else{ // There was an error connecting to the database write('Error (' + myPool.minorErrorCode() + '): ' + myPool.minorErrorMessage); }