I am making my first steps with Grails and try to create a hello world application with an Oracle Database 12c.
Unfortunately the tutorial documentation on the datab
download ojdbc7.jar from http://www.oracle.com/technetwork/database/features/jdbc/jdbc-drivers-12c-download-1958347.html
create a
copy ojdbc7.jar to lib folder
add this line to the
dependencies{
(...)
runtime fileTree(dir: 'lib', include: '*.jar')
(...)
}
hibernate:
(...)
jdbc:
use_get_generated_keys: true
dataSource:
pooled: true
jmxExport: true
driverClassName: oracle.jdbc.OracleDriver
username: DBUSERNAME
password: dbpassword
environments:
development:
dataSource:
dbCreate: create
url: jdbc:oracle:thin:@localhost.net:1521:dbname
test:
dataSource:
dbCreate: update
url: jdbc:oracle:thin:@localhost.net:1521:dbname
production:
dataSource:
dbCreate: update
url: jdbc:oracle:thin:@locaLhost.net:1521:dbname