Skip to content

Commit dc25b2c

Browse files
authored
Update UCPDBTokenSample.java
1 parent b9945af commit dc25b2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

java/jdbc/ConnectionSamples/UCPDBTokenSample.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ public class UCPDBTokenSample {
3434
//If mutual TLS (mTLS) is enabled then, ADB connection requires wallets.
3535
// Download the wallet zip file and provide the path to the zip file as TNS_ADMIN
3636
// Note that you need to pass the property oracle.jdbc.tokenAuthentication=OCI_TOKEN for token authentication
37-
final static String DB_URL="jdbc:oracle:thin:@demodb_high?TNS_ADMIN=/Users/nbsundar/ATPTesting/Wallet_DemoDB&oracle.jdbc.tokenAuthentication=OCI_TOKEN";
37+
final static String DB_URL="jdbc:oracle:thin:@dbname_high?TNS_ADMIN=/Users/test/Walet/Wallet_dbname&oracle.jdbc.tokenAuthentication=OCI_TOKEN";
3838

3939
// If mutla TLS(mTLS) is disabled then, ADB connection does not require wallets.
4040
// Copy the connection string from "DB Connection" tab from "Connection Strings" section choosing "TLS" in the dropdown
41-
//final static String DB_URL="jdbc:oracle:thin:@(description= (retry_count=20)(retry_delay=3)(address=(protocol=tcps)(port=1521)(host=adb.us-phoenix-1.oraclecloud.com))(connect_data=(service_name=gebqqvpozhjbqbs_testdb_medium.adb.oraclecloud.com)))?oracle.jdbc.tokenAuthentication=OCI_TOKEN";
41+
//final static String DB_URL="jdbc:oracle:thin:@(description= (retry_count=20)(retry_delay=3)(address=(protocol=tcps)(port=1521)(host=adb.us-phoenix-1.oraclecloud.com))(connect_data=(service_name=gebfdferevpozhjbqbs_dbname_medium.adb.oraclecloud.com)))?oracle.jdbc.tokenAuthentication=OCI_TOKEN";
4242

4343
final static String CONN_FACTORY_CLASS_NAME="oracle.jdbc.pool.OracleDataSource";
4444

0 commit comments

Comments
 (0)