Skip to content

Commit

Permalink
Update documentation to use new URL to access OCI Object Storage (#81)
Browse files Browse the repository at this point in the history
update documentation to use new URL of OCI Object Storage
  • Loading branch information
ting-lan-wang authored May 10, 2024
1 parent 2f0adf3 commit b4c17f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ojdbc-provider-oci/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ The rest are dependent on the driver, in our case `/jdbc`. The key-value pairs t
For example, let's suppose an url like:

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

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

```java
OracleDataSource ds = new OracleDataSource();
ds.setURL("jdbc:oracle:thin:@config-ociobject://objectstorage.us-phoenix-1.oraclecloud.com/n/mytenancy/b/bucket1/o/payload_ojdbc_objectstorage.json");
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");
Connection cn = ds.getConnection();
Statement st = cn.createStatement();
ResultSet rs = st.executeQuery("select sysdate from dual");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public static void main(String[] args) throws SQLException {

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

0 comments on commit b4c17f6

Please sign in to comment.