Skip to content

Commit

Permalink
init for graalvm workshops
Browse files Browse the repository at this point in the history
  • Loading branch information
paulparkinson committed Oct 3, 2024
1 parent 7617e3c commit fe3e90e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ server.host=0.0.0.0

# DataSource properties
javax.sql.DataSource.example.connectionFactoryClassName=oracle.jdbc.pool.OracleDataSource
#javax.sql.DataSource.example.URL=jdbc:oracle:thin:@<ATP_NAME>_high?TNS_ADMIN=/home/<YOUR_USER>/<YOUR_WALLET_LOCATION>
javax.sql.DataSource.example.URL=jdbc:oracle:thin:@ATP110345_high?TNS_ADMIN=/home/LL110345_U/myatpwallet
javax.sql.DataSource.example.URL=jdbc:oracle:thin:@<ATP_NAME>_high?TNS_ADMIN=/home/<YOUR_USER>/<YOUR_WALLET_LOCATION>
javax.sql.DataSource.example.user=ADMIN
javax.sql.DataSource.example.password=##03pRivvzR2q4jv
#javax.sql.DataSource.example.password=<ADMIN_PASSWORD>
javax.sql.DataSource.example.password=<ADMIN_PASSWORD>
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,9 @@ public static void main(String[] args) {
try {
ods = new OracleDataSource();
//notice the servicename suffix appended, which can be _high, _low, ...
// ods.setURL("jdbc:oracle:thin:@${ATP Name}_high?TNS_ADMIN=/home/${MY_HOME_DIR}/myatpwallet");
ods.setURL("jdbc:oracle:thin:@ATP110345_high?TNS_ADMIN=/home/LL110345_U/myatpwallet");
ods.setURL("jdbc:oracle:thin:@${ATP Name}_high?TNS_ADMIN=/home/${MY_HOME_DIR}/myatpwallet");
ods.setUser("ADMIN");
// ods.setPassword("[ATP Admin Password]");
ods.setPassword("##03pRivvzR2q4jv");
ods.setPassword("[ATP Admin Password]");

Connection conn = ods.getConnection();
System.out.println("Oracle Database Connection:" + conn);
Expand Down

0 comments on commit fe3e90e

Please sign in to comment.