Getting error while writing code for database access

Hi All,
I am getting "robotics-flow plugin execution exception : org.webharvest.exception.ScriptException: " & “java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver”

And the code snippet is as follows

import groovy.sql.*

				@GrabConfig(systemClassLoader=true)

				//@Grab('com.oracle:ojdbc6:11g')

				def url= "jdbc:oracle:thin:@ip:1521:xe"
				def username = "usernmae"
				def password = "password"
				def driver = "oracle.jdbc.driver.OracleDriver"

				sql = Sql.newInstance(url, username, password, driver)

please help to resolve this issue.

Regards,
chandan

Hi @chandan_kashya what tool do you use, RPA Express or SPA?
Do you use it in a custom action in RPA Recorder or in a bot task in Studio?

Hi @ashapkina , I am using RPA Express trial version and my script to access the data base is in bot task xml file.

@chandan_kashya we do not support @Grab annotations

for database connectivity, please check out these topics