Skip to content

Commit b4c17f6

Browse files
Update documentation to use new URL to access OCI Object Storage (#81)
update documentation to use new URL of OCI Object Storage
1 parent 2f0adf3 commit b4c17f6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ojdbc-provider-oci/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ The rest are dependent on the driver, in our case `/jdbc`. The key-value pairs t
9191
For example, let's suppose an url like:
9292

9393
<pre>
94-
jdbc:oracle:thin:@config-ociobject://objectstorage.us-phoenix-1.oraclecloud.com/n/mytenancy/b/bucket1/o/payload_ojdbc_objectstorage.json
94+
jdbc:oracle:thin:@config-ociobject://mytenancy.objectstorage.us-phoenix-1.oci.customer-oci.com/n/mytenancy/b/bucket1/o/payload_ojdbc_objectstorage.json
9595
</pre>
9696

9797
And the JSON Payload for the file **payload_ojdbc_objectstorage.json** in the **bucket1** which namespace is **mytenancy** is as following:
@@ -116,7 +116,7 @@ The sample code below executes as expected with the previous configuration.
116116

117117
```java
118118
OracleDataSource ds = new OracleDataSource();
119-
ds.setURL("jdbc:oracle:thin:@config-ociobject://objectstorage.us-phoenix-1.oraclecloud.com/n/mytenancy/b/bucket1/o/payload_ojdbc_objectstorage.json");
119+
ds.setURL("jdbc:oracle:thin:@config-ociobject://mytenancy.objectstorage.us-phoenix-1.oci.customer-oci.com/n/mytenancy/b/bucket1/o/payload_ojdbc_objectstorage.json");
120120
Connection cn = ds.getConnection();
121121
Statement st = cn.createStatement();
122122
ResultSet rs = st.executeQuery("select sysdate from dual");

ojdbc-provider-samples/src/main/java/oracle/jdbc/provider/oci/configuration/SimpleObjectStorageExample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public static void main(String[] args) throws SQLException {
7070

7171
// Sample default URL if non present
7272
if (args.length == 0) {
73-
url = "jdbc:oracle:thin:@config-ociobject://objectstorage.us-phoenix-1.oraclecloud.com/n/mytenancy/b/bucket1/o/payload_ojdbc_objectstorage.json";
73+
url = "jdbc:oracle:thin:@config-ociobject://mytenancy.objectstorage.us-phoenix-1.oci.customer-oci.com/n/mytenancy/b/bucket1/o/payload_ojdbc_objectstorage.json";
7474
} else {
7575
url = args[0];
7676
}

0 commit comments

Comments
 (0)