Oracle DB connection
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2008
04:44 AM
01-09-2008
04:44 AM
Oracle DB connection
Hi,
Please suggest how to write a groovy to connect to the Oracle database.
and what are the perrequisites for the same.
1- I have the calsses12.zip in the /ext folder.
Is there any class we have to write?
Please suggest how to write a groovy to connect to the Oracle database.
and what are the perrequisites for the same.
1- I have the calsses12.zip in the /ext folder.
Is there any class we have to write?
2 REPLIES 2
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2008
04:50 AM
01-09-2008
04:50 AM
Hi,
try using
def db = Sql.newInstance('jdbc:oracle:thin:@server:port:database', 'username', 'pw', 'oracle.jdbc.OracleDriver')
to connect to the database, then you can use Sql related methods as described at http://groovy.codehaus.org/Database+features
Hope this helps!
regards,
/Ole
eviware.com
try using
def db = Sql.newInstance('jdbc:oracle:thin:@server:port:database', 'username', 'pw', 'oracle.jdbc.OracleDriver')
to connect to the database, then you can use Sql related methods as described at http://groovy.codehaus.org/Database+features
Hope this helps!
regards,
/Ole
eviware.com
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2008
10:59 PM
01-09-2008
10:59 PM
Hi Ole,
Thank you so much for the quick reply.
Really appriciate the quick support.
Thank you so much for the quick reply.
Really appriciate the quick support.
