header
header
Main Menu
Home
Eviware Store
Downloads
Products
News
Forum
Eviware Blog
Search
FAQs
Customer Area
Support
Documentation
Tutorials
CookBook
Downloads
Forum
Login Form
Welcome, Guest. Please login or register.
November 22, 2008, 07:24:54 am
Username: Password:
Login with username, password and session length

Forgot your password?
 
Oracle DB connection
Welcome, Guest. Please login or register.
November 22, 2008, 07:24:54 am
Home Help Search Login Register
News: The Forums are up! Welcome to eviware.

+  Eviware Forum
|-+  soapUI
| |-+  soapUI
| | |-+  Oracle DB connection
« previous next »
Pages: [1] Print
Author Topic: Oracle DB connection  (Read 314 times)
Manoj
Newbie
*
Posts: 24


« on: January 09, 2008, 01:44:46 pm »

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?
Logged
omatzura
Administrator
Hero Member
*****
Posts: 1,425


« Reply #1 on: January 09, 2008, 01:50:16 pm »

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
Logged
Manoj
Newbie
*
Posts: 24


« Reply #2 on: January 10, 2008, 07:59:10 am »

Hi Ole,

Thank you so much for the quick reply.
Really appriciate the quick support.
Logged
Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
header header
header
header