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
yes this will be OK for meanwhile. But there are details missing. I'll post detailed instructions as soon as i get to the office. Actually there is a sample for mySql somewhere on the grails site, and from it it's pretty clear how to make same for an oracle DB.
I just have created a new app and compared it with myne for oracle 11g. Here it is:
./build.gradle, add following line to "dependencies" section:
runtime "com.oracle:ojdbc14:10.2.0.3.0"
./grails-app/conf/application.yml, add following to "hibernate" section:
jdbc: use_get_generated_keys: true
dataSource: pooled: true jmxExport: true driverClassName: oracle.jdbc.OracleDriver username: YOURUSERNAME password: yoursecret
environments: development: dataSource: dbCreate: create url: jdbc:oracle:thin:@somehost.net:1521:YOURORAINSTANCE test: dataSource: dbCreate: update url: jdbc:oracle:thin:@somehost.net:1521:YOURORAINSTANCE production: dataSource: dbCreate: update url: jdbc:oracle:thin:@somehost.net:1521:YOURORAINSTANCE
And the Hibernate dialect for Oracle you have is pretty old one, I think you'd better remove it, without specifying it explicitly all works fine.