From cf00273d71a1898d4c492cb53d2421c11ca05165 Mon Sep 17 00:00:00 2001
From: Ting-Lan Wang
Date: Thu, 30 May 2024 14:01:30 -0400
Subject: [PATCH 1/6] Add missing double slashes after "config-ocivault:"
---
ojdbc-provider-oci/README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ojdbc-provider-oci/README.md b/ojdbc-provider-oci/README.md
index f9781a15..9162df33 100644
--- a/ojdbc-provider-oci/README.md
+++ b/ojdbc-provider-oci/README.md
@@ -151,7 +151,7 @@ For the JSON type of provider (OCI Object Storage, HTTP/HTTPS, File) the passwor
Apart from OCI Object Storage, users can also store JSON Payload in the content of OCI Vault Secret. Users need to indicate the OCID of the Secret with the following syntax:
-jdbc:oracle:thin:@config-ocivault:{secret-ocid}
+jdbc:oracle:thin:@config-ocivault://{secret-ocid}
The JSON Payload retrieved by OCI Vault Config Provider follows the same format in [OCI Object Storage Config Provider](#json-payload-format).
From 9750ec9e1e1e64052743a3b0132567f11bae3764 Mon Sep 17 00:00:00 2001
From: Ting-Lan Wang
Date: Mon, 10 Jun 2024 16:21:11 -0400
Subject: [PATCH 2/6] Add missing '//'
---
ojdbc-provider-azure/README.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ojdbc-provider-azure/README.md b/ojdbc-provider-azure/README.md
index 0766246d..574b67cc 100644
--- a/ojdbc-provider-azure/README.md
+++ b/ojdbc-provider-azure/README.md
@@ -95,10 +95,10 @@ The sample code below executes as expected with the previous configuration (and
```
## Azure Vault Config Provider
Similar to [OCI Vault Config Provider](../ojdbc-provider-oci/README.md#oci-vault-config-provider), JSON Payload can also be stored in the content of Azure Key Vault Secret.
-The Oracle DataSource uses a new prefix `jdbc:oracle:thin:@config-azurevault:`. Users only need to indicate the Vault Secret’s secret identifier, with the following syntax:
+The Oracle DataSource uses a new prefix `jdbc:oracle:thin:@config-azurevault://`. Users only need to indicate the Vault Secret’s secret identifier, with the following syntax:
-jdbc:oracle:thin:@config-azurevault:{secret-identifier}
+jdbc:oracle:thin:@config-azurevault://{secret-identifier}
To view an example format of JSON Payload, please refer to [JSON Payload format](../ojdbc-provider-oci/README.md#json-payload-format).
From 20f5975c8a2cb8dac643d62ea03548e3f8572da6 Mon Sep 17 00:00:00 2001
From: Ting-Lan Wang
Date: Tue, 11 Jun 2024 09:50:29 -0400
Subject: [PATCH 3/6] Add missing '//'
---
ojdbc-provider-oci/README.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ojdbc-provider-oci/README.md b/ojdbc-provider-oci/README.md
index 9162df33..7092dce7 100644
--- a/ojdbc-provider-oci/README.md
+++ b/ojdbc-provider-oci/README.md
@@ -70,10 +70,10 @@ Provider can now support Database Tools Connections with Proxy Authentication,
only if username is provided in Proxy Authentication Info, without the password and roles.
## OCI Object Storage Config Provider
-The Oracle DataSource uses a new prefix `jdbc:oracle:thin:@config-ociobject:` to be able to identify that the configuration parameters should be loaded using OCI Object Storage. Users only need to indicate the URL Path of the Object containing the JSON payload, with the following syntax:
+The Oracle DataSource uses a new prefix `jdbc:oracle:thin:@config-ociobject://` to be able to identify that the configuration parameters should be loaded using OCI Object Storage. Users only need to indicate the URL Path of the Object containing the JSON payload, with the following syntax:
-jdbc:oracle:thin:@config-ociobject:{url_path}[?option1=value1&option2=value2...]
+jdbc:oracle:thin:@config-ociobject://{url_path}[?option1=value1&option2=value2...]
The insturctions of obtaining a URL Path can be found in [Get the URI or Pre-Authenticated Request URL to Access the Object Store](https://docs.oracle.com/en/cloud/paas/autonomous-database/csgru/get-uri-access-object-store.html).
From 1343b6f354df0940f632af592962f243cead3c3f Mon Sep 17 00:00:00 2001
From: Ting-Lan Wang
Date: Wed, 12 Jun 2024 18:27:39 -0400
Subject: [PATCH 4/6] Add missing '//'
---
.../provider/azure/configuration/AzureAppConfigExample.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ojdbc-provider-samples/src/main/java/oracle/jdbc/provider/azure/configuration/AzureAppConfigExample.java b/ojdbc-provider-samples/src/main/java/oracle/jdbc/provider/azure/configuration/AzureAppConfigExample.java
index e4dfc95c..c9a94a4b 100644
--- a/ojdbc-provider-samples/src/main/java/oracle/jdbc/provider/azure/configuration/AzureAppConfigExample.java
+++ b/ojdbc-provider-samples/src/main/java/oracle/jdbc/provider/azure/configuration/AzureAppConfigExample.java
@@ -100,7 +100,7 @@ public class AzureAppConfigExample {
*/
public static void main(String[] args) throws SQLException {
// Construct a jdbc: URL
- String url = "jdbc:oracle:thin:@config-azure:" + APPCONFIG_NAME;
+ String url = "jdbc:oracle:thin:@config-azure://" + APPCONFIG_NAME;
String optionalString = constructOptionalString();
if (optionalString.length() != 0)
From cd050872f3b9e86ece1324d0a108bc800039dab2 Mon Sep 17 00:00:00 2001
From: Ting-Lan Wang
Date: Wed, 12 Jun 2024 18:27:57 -0400
Subject: [PATCH 5/6] Add missing '//'
---
.../jdbc/provider/oci/configuration/ObjectStorageExample.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ojdbc-provider-samples/src/main/java/oracle/jdbc/provider/oci/configuration/ObjectStorageExample.java b/ojdbc-provider-samples/src/main/java/oracle/jdbc/provider/oci/configuration/ObjectStorageExample.java
index f8c4ac91..5edb2439 100644
--- a/ojdbc-provider-samples/src/main/java/oracle/jdbc/provider/oci/configuration/ObjectStorageExample.java
+++ b/ojdbc-provider-samples/src/main/java/oracle/jdbc/provider/oci/configuration/ObjectStorageExample.java
@@ -83,7 +83,7 @@ public class ObjectStorageExample {
* @throws SQLException if an error occurs during the database calls
*/
public static void main(String[] args) throws SQLException {
- String url = "jdbc:oracle:thin:@config-ociobject:" + OBJECT_URI;
+ String url = "jdbc:oracle:thin:@config-ociobject://" + OBJECT_URI;
if (OCI_AUTHENTICATION == null)
System.out.println("oci_authentication property is empty. Default " +
From 3a5cf007e70a70a0aff9e4f30aec074cd988fea9 Mon Sep 17 00:00:00 2001
From: ting-lan-wang
Date: Wed, 12 Jun 2024 18:40:11 -0400
Subject: [PATCH 6/6] Adding missing '//'
---
README.md | 2 +-
.../azure/configuration/SimpleAzureAppConfigExample.java | 4 ++--
.../azure/configuration/SimpleAzureVaultJsonExample.java | 4 ++--
.../provider/oci/configuration/SimpleVaultJsonExample.java | 2 +-
4 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/README.md b/README.md
index 6478ee0a..24ce060d 100644
--- a/README.md
+++ b/README.md
@@ -74,7 +74,7 @@ types of providers.
A Centralized Config Provider is identified and configured by a JDBC URL of the
following form:
-jdbc:oracle:thin:@config-{provider-name}:[path][?parameters]
+jdbc:oracle:thin:@config-{provider-name}://[path][?parameters]
For example, the URL below identifies and configures the Centralized Config Provider for Azure:
diff --git a/ojdbc-provider-samples/src/main/java/oracle/jdbc/provider/azure/configuration/SimpleAzureAppConfigExample.java b/ojdbc-provider-samples/src/main/java/oracle/jdbc/provider/azure/configuration/SimpleAzureAppConfigExample.java
index 93f67f31..85a9bc01 100644
--- a/ojdbc-provider-samples/src/main/java/oracle/jdbc/provider/azure/configuration/SimpleAzureAppConfigExample.java
+++ b/ojdbc-provider-samples/src/main/java/oracle/jdbc/provider/azure/configuration/SimpleAzureAppConfigExample.java
@@ -58,14 +58,14 @@
*
AZURE_CLIENT_SECRET A client secret that was generated for the App
* Registration.
*
- * The Oracle DataSource uses a new prefix jdbc:oracle:thin:@config-azure:
+ *
The Oracle DataSource uses a new prefix jdbc:oracle:thin:@config-azure://
* to be able to identify that the configuration parameters should be loaded
* using Azure App Configuration. Users only need to indicate the App Config's
* name, a prefix for the key-names and the Label (both optionally) with the
* following syntax:
*
*
- * jdbc:oracle:thin:@config-azure:{appconfig-name}[?key=prefix&label=value
+ * jdbc:oracle:thin:@config-azure://{appconfig-name}[?key=prefix&label=value
* &option1=value1&option2=value2...]
*
*/
diff --git a/ojdbc-provider-samples/src/main/java/oracle/jdbc/provider/azure/configuration/SimpleAzureVaultJsonExample.java b/ojdbc-provider-samples/src/main/java/oracle/jdbc/provider/azure/configuration/SimpleAzureVaultJsonExample.java
index 9badb5c8..2b2fa6c5 100644
--- a/ojdbc-provider-samples/src/main/java/oracle/jdbc/provider/azure/configuration/SimpleAzureVaultJsonExample.java
+++ b/ojdbc-provider-samples/src/main/java/oracle/jdbc/provider/azure/configuration/SimpleAzureVaultJsonExample.java
@@ -65,14 +65,14 @@
* {@link oracle.jdbc.spi.OracleConfigurationProvider}.
*
* The Oracle DataSource uses a new prefix
- * jdbc:oracle:thin:@config-azurevault:
+ * jdbc:oracle:thin:@config-azurevault://
* to be able to identify that the configuration parameters should be loaded
* using Azure Vault Secret. Users only need to indicate the Vault Secret's
* secret identifier, with the
* following syntax:
*
*
- * jdbc:oracle:thin:@config-azurevault:{secret-identifier}
+ * jdbc:oracle:thin:@config-azurevault://{secret-identifier}
*
*/
diff --git a/ojdbc-provider-samples/src/main/java/oracle/jdbc/provider/oci/configuration/SimpleVaultJsonExample.java b/ojdbc-provider-samples/src/main/java/oracle/jdbc/provider/oci/configuration/SimpleVaultJsonExample.java
index 00ccedcd..3e8da299 100644
--- a/ojdbc-provider-samples/src/main/java/oracle/jdbc/provider/oci/configuration/SimpleVaultJsonExample.java
+++ b/ojdbc-provider-samples/src/main/java/oracle/jdbc/provider/oci/configuration/SimpleVaultJsonExample.java
@@ -68,7 +68,7 @@ public class SimpleVaultJsonExample {
*
* Users need to indicate the OCID of the Secret with the following syntax:
*
- * jdbc:oracle:thin:@config-ocivault:{secret-ocid}
+ * jdbc:oracle:thin:@config-ocivault://{secret-ocid}
*
* @param args the command line arguments
* @throws SQLException if an error occurs during the database calls