Skip to content

Commit 7440e19

Browse files
authored
Update JDBCDBTokenSample.java
1 parent 19c34f2 commit 7440e19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

java/jdbc/ConnectionSamples/JDBCDBTokenSample.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ public class JDBCDBTokenSample {
3737
//If mutual TLS (mTLS) is enabled then, ADB connection requires wallets.
3838
// Download the wallet zip file and provide the path to the zip file as TNS_ADMIN
3939
// Note that you need to pass the property oracle.jdbc.tokenAuthentication=OCI_TOKEN for token authentication
40-
final static String DB_URL="jdbc:oracle:thin:@demodb_high?TNS_ADMIN=/Users/nbsundar/ATPTesting/Wallet_DemoDB&oracle.jdbc.tokenAuthentication=OCI_TOKEN";
40+
final static String DB_URL="jdbc:oracle:thin:@dbname_high?TNS_ADMIN=/Users/user/wallet/Wallet_dbname&oracle.jdbc.tokenAuthentication=OCI_TOKEN";
4141
// If mutla TLS(mTLS) is disabled then, ADB connection does not require wallets.
4242
// Copy the connection string from "DB Connection" tab from "Connection Strings" section choosing "TLS" in the dropdown
43-
//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";
43+
//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=gebqqeredfsozhjbqbs_dbname_medium.adb.oraclecloud.com)))?oracle.jdbc.tokenAuthentication=OCI_TOKEN";
4444

4545

4646
public static void main(String args[]) throws SQLException {

0 commit comments

Comments
 (0)