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 2, 2024
1 parent ab303ef commit 9636354
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Args=-H:+RemoveSaturatedTypeFlows --initialize-at-build-time=com.oracle.helidon.datasource \
--initialize-at-build-time=io.helidon.integrations.datasource.ucp.cdi.UniversalConnectionPool$_$$_WeldClientProxy \
--initialize-at-run-time=io.helidon.integrations.datasource.ucp.cdi.UniversalConnectionPool$_$$_WeldClientProxy \
--initialize-at-run-time=oracle.jdbc.driver.NTFListener \
--initialize-at-run-time=oracle.ucp.common.Service
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,12 @@ 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:@${ATP Name}_high?TNS_ADMIN=/home/${MY_HOME_DIR}/myatpwallet");
ods.setURL("jdbc:oracle:thin:@ATP110345_high?TNS_ADMIN=/home/LL110345_U/myatpwallet");
ods.setUser("ADMIN");
ods.setPassword("[ATP Admin Password]");

// ods.setPassword("[ATP Admin Password]");
ods.setPassword("##03pRivvzR2q4jv");

Connection conn = ods.getConnection();
System.out.println("Oracle Database Connection:" + conn);
PreparedStatement stmt = conn.prepareStatement("SELECT 'Hello World!' FROM dual");
Expand Down

0 comments on commit 9636354

Please sign in to comment.