Skip to content

Commit b5dc544

Browse files
authored
Update UCPSample.java
Updated the connection URL
1 parent 96fdfc3 commit b5dc544

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/ucp/ConnectionManagementSamples/UCPSample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ The code sample demonstrates Universal Connection Pool (UCP) as a client
3030
import oracle.ucp.jdbc.PoolDataSource;
3131

3232
public class UCPSample {
33-
final static String DB_URL= "jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(HOST=myhost)(PORT=1521)(PROTOCOL=tcp))(CONNECT_DATA=(SERVICE_NAME=myorcldbservicename)))";
33+
final static String DB_URL= "jdbc:oracle:thin:@myhost:1521/myorcldbservicename";
3434
// Use TNS alias when using tnsnames.ora. Use it while connecting to the database service on cloud.
3535
// final static String DB_URL= "jdbc:oracle:thin:@orcldbaccess";
3636
final static String DB_USER = "hr";

0 commit comments

Comments
 (0)