File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
java/jdbc/ConnectionSamples Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change 1
- /* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.*/
1
+ /* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
2
+ Licensed under the Universal Permissive License v 1.0
3
+ as shown at http://oss.oracle.com/licenses/upl */
2
4
3
5
/*
4
6
DESCRIPTION
@@ -46,7 +48,7 @@ online transaction processing operations. The Star Schema Benchmark (SSB) sample
46
48
47
49
public class ADBQuickStart {
48
50
49
- // Make sure to have Oracle JDBC driver 18c or above
51
+ // Make sure to have Oracle JDBC release 18c or higher
50
52
// to pass TNS_ADMIN as part of a connection URL.
51
53
// TNS_ADMIN - Should be the path where the client credentials zip file is downloaded.
52
54
// wallet_dbname - This is the TNS Alias that you can get from tnsnames.ora.
@@ -132,15 +134,16 @@ public static void doSQLWork(Connection conn) {
132
134
resultSet .getString (3 )+ " " + resultSet .getString (4 ) + " " +
133
135
resultSet .getInt (5 ));
134
136
}
135
- System .out .println ("\n Successfully established a connection to Autonomous Database\n " );
136
- }
137
+ System .out .println ("\n Successfully established a connection to Autonomous Database\n " );
138
+ }
137
139
}
138
140
}
139
141
catch (SQLException e ) {
140
142
System .out .println ("ADBQuickStart - "
141
143
+ "doSQLWork()- SQLException occurred : " + e .getMessage ());
142
144
}
143
- }
144
- }
145
+ } // doSQLWork
146
+
147
+ } // ADBQuickStart
145
148
146
149
You can’t perform that action at this time.
0 commit comments