diff --git a/LICENSE.txt b/LICENSE.txt index 9b47cfb..8dc7c07 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -1,4 +1,4 @@ -Copyright (c) 2024 Oracle and/or its affiliates. +Copyright (c) 2025 Oracle and/or its affiliates. The Universal Permissive License (UPL), Version 1.0 diff --git a/README.md b/README.md index aab5818..40628ff 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ Please consult the [security guide](./SECURITY.md) for our responsible security vulnerability disclosure process. ## License -Copyright (c) 2024 Oracle and/or its affiliates. +Copyright (c) 2025 Oracle and/or its affiliates. Licensed under the Universal Permissive License (UPL), Version 1.0. diff --git a/multicloud/azure-cli/README.md b/multicloud/azure-cli/README.md index 4d867f1..9fbf83c 100644 --- a/multicloud/azure-cli/README.md +++ b/multicloud/azure-cli/README.md @@ -96,5 +96,5 @@ Notice the `jdbc:oracle:thin:@` prefix followed by a connection string. You can 2. Use the Azure cli script [`show-adb-info.sh`](./show-adb-info.sh). That script will return information about your Autonomous Database, including connection details.
-Copyright (c) 2024 Oracle and/or its affiliates.
+Copyright (c) 2025 Oracle and/or its affiliates.
Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ diff --git a/multicloud/azure-cli/config b/multicloud/azure-cli/config index 9b51423..b0b52d7 100644 --- a/multicloud/azure-cli/config +++ b/multicloud/azure-cli/config @@ -1,4 +1,4 @@ -# Copyright (c) 2024 Oracle and/or its affiliates. +# Copyright (c) 2025 Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ # update the values below to match your requirements diff --git a/multicloud/azure-cli/config.default b/multicloud/azure-cli/config.default index 9b51423..b0b52d7 100644 --- a/multicloud/azure-cli/config.default +++ b/multicloud/azure-cli/config.default @@ -1,4 +1,4 @@ -# Copyright (c) 2024 Oracle and/or its affiliates. +# Copyright (c) 2025 Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ # update the values below to match your requirements diff --git a/multicloud/azure-cli/create-adb.sh b/multicloud/azure-cli/create-adb.sh index e448389..5d21d1f 100755 --- a/multicloud/azure-cli/create-adb.sh +++ b/multicloud/azure-cli/create-adb.sh @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright (c) 2024 Oracle and/or its affiliates. +# Copyright (c) 2025 Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ echo "" diff --git a/multicloud/azure-cli/create-all-resources.sh b/multicloud/azure-cli/create-all-resources.sh index 4b25994..69f3db0 100755 --- a/multicloud/azure-cli/create-all-resources.sh +++ b/multicloud/azure-cli/create-all-resources.sh @@ -1,4 +1,4 @@ -# Copyright (c) 2024 Oracle and/or its affiliates. +# Copyright (c) 2025 Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ set -e diff --git a/multicloud/azure-cli/create-compute-vm.sh b/multicloud/azure-cli/create-compute-vm.sh index daa6e5b..c046dd7 100755 --- a/multicloud/azure-cli/create-compute-vm.sh +++ b/multicloud/azure-cli/create-compute-vm.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright (c) 2024 Oracle and/or its affiliates. +# Copyright (c) 2025 Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ echo "" diff --git a/multicloud/azure-cli/create-data-lake-storage.sh b/multicloud/azure-cli/create-data-lake-storage.sh index e128417..14a38e9 100755 --- a/multicloud/azure-cli/create-data-lake-storage.sh +++ b/multicloud/azure-cli/create-data-lake-storage.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright (c) 2024 Oracle and/or its affiliates. +# Copyright (c) 2025 Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ echo "" diff --git a/multicloud/azure-cli/create-network.sh b/multicloud/azure-cli/create-network.sh index 842d696..2cbf70f 100755 --- a/multicloud/azure-cli/create-network.sh +++ b/multicloud/azure-cli/create-network.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright (c) 2024 Oracle and/or its affiliates. +# Copyright (c) 2025 Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ echo "" diff --git a/multicloud/azure-cli/create-resource-group.sh b/multicloud/azure-cli/create-resource-group.sh index ae054cf..8973e1d 100755 --- a/multicloud/azure-cli/create-resource-group.sh +++ b/multicloud/azure-cli/create-resource-group.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright (c) 2024 Oracle and/or its affiliates. +# Copyright (c) 2025 Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ echo "" diff --git a/multicloud/azure-cli/delete-all-resources.sh b/multicloud/azure-cli/delete-all-resources.sh index cc760d3..710a131 100755 --- a/multicloud/azure-cli/delete-all-resources.sh +++ b/multicloud/azure-cli/delete-all-resources.sh @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright (c) 2024 Oracle and/or its affiliates. +# Copyright (c) 2025 Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ # ensure you update the config file to match your deployment prior to running the deployment diff --git a/multicloud/azure-cli/delete-data-lake-storage.sh b/multicloud/azure-cli/delete-data-lake-storage.sh index 3b8bc3b..e3d798d 100755 --- a/multicloud/azure-cli/delete-data-lake-storage.sh +++ b/multicloud/azure-cli/delete-data-lake-storage.sh @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright (c) 2024 Oracle and/or its affiliates. +# Copyright (c) 2025 Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ echo "" diff --git a/multicloud/azure-cli/show-adb-info.sh b/multicloud/azure-cli/show-adb-info.sh index 3634400..4549493 100755 --- a/multicloud/azure-cli/show-adb-info.sh +++ b/multicloud/azure-cli/show-adb-info.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright (c) 2024 Oracle and/or its affiliates. +# Copyright (c) 2025 Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ echo "" diff --git a/multicloud/azure-cli/show-data-lake-storage-info.sh b/multicloud/azure-cli/show-data-lake-storage-info.sh index bef69fa..c47fd97 100755 --- a/multicloud/azure-cli/show-data-lake-storage-info.sh +++ b/multicloud/azure-cli/show-data-lake-storage-info.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright (c) 2024 Oracle and/or its affiliates. +# Copyright (c) 2025 Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ diff --git a/multicloud/gcloud-cli/README.md b/multicloud/gcloud-cli/README.md index bfe057e..831a912 100644 --- a/multicloud/gcloud-cli/README.md +++ b/multicloud/gcloud-cli/README.md @@ -101,5 +101,5 @@ Notice the `jdbc:oracle:thin:@` prefix followed by a connection string. You can 2. Use the Azure cli script [`show-adb-info.sh`](./show-adb-info.sh). That script will return information about your Autonomous Database, including connection details.
-Copyright (c) 2024 Oracle and/or its affiliates.
+Copyright (c) 2025 Oracle and/or its affiliates.
Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ diff --git a/multicloud/gcloud-cli/config b/multicloud/gcloud-cli/config index 207f9bb..822579d 100644 --- a/multicloud/gcloud-cli/config +++ b/multicloud/gcloud-cli/config @@ -1,4 +1,4 @@ -# Copyright (c) 2024 Oracle and/or its affiliates. +# Copyright (c) 2025 Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ # update the values below to match your requirements diff --git a/multicloud/gcloud-cli/config.default b/multicloud/gcloud-cli/config.default index 4de8d30..a0d13e5 100644 --- a/multicloud/gcloud-cli/config.default +++ b/multicloud/gcloud-cli/config.default @@ -1,4 +1,4 @@ -# Copyright (c) 2024 Oracle and/or its affiliates. +# Copyright (c) 2025 Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ # update the values below to match your requirements diff --git a/multicloud/gcloud-cli/create-adb.sh b/multicloud/gcloud-cli/create-adb.sh index 2a92e3a..4ba8a34 100755 --- a/multicloud/gcloud-cli/create-adb.sh +++ b/multicloud/gcloud-cli/create-adb.sh @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright (c) 2024 Oracle and/or its affiliates. +# Copyright (c) 2025 Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ echo "" diff --git a/multicloud/gcloud-cli/create-all-resources.sh b/multicloud/gcloud-cli/create-all-resources.sh index c0cbe01..b914420 100755 --- a/multicloud/gcloud-cli/create-all-resources.sh +++ b/multicloud/gcloud-cli/create-all-resources.sh @@ -1,4 +1,4 @@ -# Copyright (c) 2024 Oracle and/or its affiliates. +# Copyright (c) 2025 Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ set -e diff --git a/multicloud/gcloud-cli/create-compute-vm.sh b/multicloud/gcloud-cli/create-compute-vm.sh index 6aa6e46..980b4ca 100755 --- a/multicloud/gcloud-cli/create-compute-vm.sh +++ b/multicloud/gcloud-cli/create-compute-vm.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright (c) 2024 Oracle and/or its affiliates. +# Copyright (c) 2025 Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ echo "" diff --git a/multicloud/gcloud-cli/create-data-lake-storage.sh b/multicloud/gcloud-cli/create-data-lake-storage.sh index ed3f821..e1bf41a 100755 --- a/multicloud/gcloud-cli/create-data-lake-storage.sh +++ b/multicloud/gcloud-cli/create-data-lake-storage.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright (c) 2024 Oracle and/or its affiliates. +# Copyright (c) 2025 Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ echo "" diff --git a/multicloud/gcloud-cli/create-network.sh b/multicloud/gcloud-cli/create-network.sh index 27798cb..5c9dcb3 100755 --- a/multicloud/gcloud-cli/create-network.sh +++ b/multicloud/gcloud-cli/create-network.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright (c) 2024 Oracle and/or its affiliates. +# Copyright (c) 2025 Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ echo "" diff --git a/multicloud/gcloud-cli/delete-adb.sh b/multicloud/gcloud-cli/delete-adb.sh index 97631fb..391fa90 100755 --- a/multicloud/gcloud-cli/delete-adb.sh +++ b/multicloud/gcloud-cli/delete-adb.sh @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright (c) 2024 Oracle and/or its affiliates. +# Copyright (c) 2025 Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ # ensure you update the config file to match your deployment prior to running the deployment diff --git a/multicloud/gcloud-cli/delete-all-resources.sh b/multicloud/gcloud-cli/delete-all-resources.sh index ae9a89a..bf6ccd5 100755 --- a/multicloud/gcloud-cli/delete-all-resources.sh +++ b/multicloud/gcloud-cli/delete-all-resources.sh @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright (c) 2024 Oracle and/or its affiliates. +# Copyright (c) 2025 Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ # ensure you update the config file to match your deployment prior to running the deployment diff --git a/multicloud/gcloud-cli/delete-data-lake-storage.sh b/multicloud/gcloud-cli/delete-data-lake-storage.sh index 47ec458..376dc57 100755 --- a/multicloud/gcloud-cli/delete-data-lake-storage.sh +++ b/multicloud/gcloud-cli/delete-data-lake-storage.sh @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright (c) 2024 Oracle and/or its affiliates. +# Copyright (c) 2025 Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ source ./config diff --git a/multicloud/gcloud-cli/delete-network.sh b/multicloud/gcloud-cli/delete-network.sh index e0c9600..b375e4a 100755 --- a/multicloud/gcloud-cli/delete-network.sh +++ b/multicloud/gcloud-cli/delete-network.sh @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright (c) 2024 Oracle and/or its affiliates. +# Copyright (c) 2025 Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ echo "" diff --git a/multicloud/gcloud-cli/show-adb-info.sh b/multicloud/gcloud-cli/show-adb-info.sh index 3362390..fbcc807 100755 --- a/multicloud/gcloud-cli/show-adb-info.sh +++ b/multicloud/gcloud-cli/show-adb-info.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright (c) 2024 Oracle and/or its affiliates. +# Copyright (c) 2025 Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ echo "" diff --git a/multicloud/gcloud-cli/show-data-lake-storage-info.sh b/multicloud/gcloud-cli/show-data-lake-storage-info.sh index 6eff2be..9ff2687 100755 --- a/multicloud/gcloud-cli/show-data-lake-storage-info.sh +++ b/multicloud/gcloud-cli/show-data-lake-storage-info.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright (c) 2024 Oracle and/or its affiliates. +# Copyright (c) 2025 Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ diff --git a/multicloud/oci-cli/README.md b/multicloud/oci-cli/README.md index 57c84ea..0276dce 100644 --- a/multicloud/oci-cli/README.md +++ b/multicloud/oci-cli/README.md @@ -85,5 +85,5 @@ Notice the `jdbc:oracle:thin:@` prefix followed by a connection string. You can 2. Use the OCI cli script [`show-adb-info.sh`](./show-adb-info.sh). That script will return information about your Autonomous Database, including connection details.
-Copyright (c) 2024 Oracle and/or its affiliates.
+Copyright (c) 2025 Oracle and/or its affiliates.
Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ diff --git a/multicloud/oci-cli/config b/multicloud/oci-cli/config index 2f11722..c05d125 100644 --- a/multicloud/oci-cli/config +++ b/multicloud/oci-cli/config @@ -1,4 +1,4 @@ -# Copyright (c) 2024 Oracle and/or its affiliates. +# Copyright (c) 2025 Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ # update the values below to match your requirements. diff --git a/multicloud/oci-cli/config.default b/multicloud/oci-cli/config.default index 2f11722..c05d125 100644 --- a/multicloud/oci-cli/config.default +++ b/multicloud/oci-cli/config.default @@ -1,4 +1,4 @@ -# Copyright (c) 2024 Oracle and/or its affiliates. +# Copyright (c) 2025 Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ # update the values below to match your requirements. diff --git a/multicloud/oci-cli/create-adb.sh b/multicloud/oci-cli/create-adb.sh index d447a32..98f8e7f 100755 --- a/multicloud/oci-cli/create-adb.sh +++ b/multicloud/oci-cli/create-adb.sh @@ -1,4 +1,4 @@ -# Copyright (c) 2024 Oracle and/or its affiliates. +# Copyright (c) 2025 Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ echo "" diff --git a/multicloud/oci-cli/create-all-resources.sh b/multicloud/oci-cli/create-all-resources.sh index 481e3e2..5f8ba4d 100755 --- a/multicloud/oci-cli/create-all-resources.sh +++ b/multicloud/oci-cli/create-all-resources.sh @@ -1,4 +1,4 @@ -# Copyright (c) 2024 Oracle and/or its affiliates. +# Copyright (c) 2025 Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ set -e diff --git a/multicloud/oci-cli/create-compartment.sh b/multicloud/oci-cli/create-compartment.sh index f0a3409..e722054 100755 --- a/multicloud/oci-cli/create-compartment.sh +++ b/multicloud/oci-cli/create-compartment.sh @@ -1,4 +1,4 @@ -# Copyright (c) 2024 Oracle and/or its affiliates. +# Copyright (c) 2025 Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ echo "" diff --git a/multicloud/oci-cli/create-data-lake-storage.sh b/multicloud/oci-cli/create-data-lake-storage.sh index 014a4ec..fed14ce 100755 --- a/multicloud/oci-cli/create-data-lake-storage.sh +++ b/multicloud/oci-cli/create-data-lake-storage.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright (c) 2024 Oracle and/or its affiliates. +# Copyright (c) 2025 Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ echo "" diff --git a/multicloud/oci-cli/delete-adb.sh b/multicloud/oci-cli/delete-adb.sh index 33c10d2..cb47ac7 100755 --- a/multicloud/oci-cli/delete-adb.sh +++ b/multicloud/oci-cli/delete-adb.sh @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright (c) 2024 Oracle and/or its affiliates. +# Copyright (c) 2025 Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ # ensure you update the config file to match your deployment prior to running the deployment diff --git a/multicloud/oci-cli/delete-all-resources.sh b/multicloud/oci-cli/delete-all-resources.sh index cbe7c15..4fbba84 100755 --- a/multicloud/oci-cli/delete-all-resources.sh +++ b/multicloud/oci-cli/delete-all-resources.sh @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright (c) 2024 Oracle and/or its affiliates. +# Copyright (c) 2025 Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ # ensure you update the config file to match your deployment prior to running the deployment diff --git a/multicloud/oci-cli/delete-data-lake-storage.sh b/multicloud/oci-cli/delete-data-lake-storage.sh index c798ac6..bdea4f4 100755 --- a/multicloud/oci-cli/delete-data-lake-storage.sh +++ b/multicloud/oci-cli/delete-data-lake-storage.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright (c) 2024 Oracle and/or its affiliates. +# Copyright (c) 2025 Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ # ensure you update the config file to match your deployment prior to running the deployment diff --git a/multicloud/oci-cli/show-adb-info.sh b/multicloud/oci-cli/show-adb-info.sh index de3f313..4ce3fb6 100755 --- a/multicloud/oci-cli/show-adb-info.sh +++ b/multicloud/oci-cli/show-adb-info.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright (c) 2024 Oracle and/or its affiliates. +# Copyright (c) 2025 Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ echo "" diff --git a/multicloud/oci-cli/show-data-lake-storage-info.sh b/multicloud/oci-cli/show-data-lake-storage-info.sh index 3d28af8..56c0552 100755 --- a/multicloud/oci-cli/show-data-lake-storage-info.sh +++ b/multicloud/oci-cli/show-data-lake-storage-info.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright (c) 2024 Oracle and/or its affiliates. +# Copyright (c) 2025 Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ diff --git a/sql/README.md b/sql/README.md index 140c593..2b16d60 100644 --- a/sql/README.md +++ b/sql/README.md @@ -28,6 +28,7 @@ Try out these scripts to learn how to get started using Autonomous Database. Sim |[select-ai-create-synthetic-data.sql](select-ai-create-synthetic-data.sql)|Use AI to generate sample data sets. You will create tables and then populate them based on rules that you specify.| |[select-ai-nl2sql.sql](select-ai-nl2sql.sql)|Use natural language to query your data| |[select-ai-sql-function.sql](select-ai-sql-function.sql)|Use Select AI SQL functions to apply AI to your data. These examples summarize a support chat and make product recommendations based on info in your database| +|[select-ai-transform-and-summarize.sql](select-ai-transform-and-summarize.sql)|This builds on the previous sample. This will use Select AI SQL functions to transform data, parsing unstructured text into structured fields. For example, derive an address from free-form text. Or, derive key phrases and sentiment and return the result in structured format. This is useful for then storing the data in a way that can be queried using SQL| |[select-ai-rag.sql](select-ai-rag.sql)|Select AI makes it easy to create AI vector management pipelines and then ask questions using AI and your organization's knowledge base| |[json-duality.sql](json-duality.sql)|Autonomous Database allows you to work with JSON in many different ways. JSON Collections stored your documents in tables. No changes are made to those documents. JSON Duality Views present relational data as JSON - allowing you to query and update that data using the JSON APIs (like MongoDB API) or SQL. Check out both approaches.| @@ -74,5 +75,5 @@ You can find the Azure OpenAI settings in the Azure OpenAI Studio:
-Copyright (c) 2024 Oracle and/or its affiliates.
+Copyright (c) 2025 Oracle and/or its affiliates.
Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ diff --git a/sql/config-default.sql b/sql/config-default.sql index 2a5ba78..589b9ce 100644 --- a/sql/config-default.sql +++ b/sql/config-default.sql @@ -1,4 +1,4 @@ --- Copyright (c) 2024 Oracle and/or its affiliates. +-- Copyright (c) 2025 Oracle and/or its affiliates. -- Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ -- @@ -10,6 +10,7 @@ define CONN='jdbc:oracle:thin:@(description=...)' -- user name and password used for the sample data define USER_NAME='moviestream' -- # The password is for the sample user. It must be between 12 and 30 characters long and must include at least one uppercase letter, one lowercase letter, and one numeric character +-- example: watchS0meMovies# define USER_PASSWORD='' -- @@ -21,9 +22,12 @@ define AI_PROVIDER='oci' -- The Select AI profile name that encapsulates the AI provider info + tables for NL2SQL define AI_PROFILE_NAME='genai' -- This is a database credential that captures the secret key or other connection info -define AI_CREDENTIAL_NAME='AI_cred' +define AI_CREDENTIAL_NAME='AI_CRED' --- The endpoint should be the servername only. For example, myopenai.openai.azure.com. This is not required for OCI GenAI. +-- The endpoint should be the servername only. This is not required for OCI GenAI. +-- Examples: +-- myopenai.openai.azure.com +-- us-east4-aiplatform.googleapis.com define AI_ENDPOINT='' -- API key for AI service. This is not required for OCI GenAI. define AI_KEY='' @@ -43,13 +47,21 @@ define AZURE_OPENAI_EMBEDDING_DEPLOYMENT_NAME='your-openai-emedding-deployment-n -- you can get the storage info by running /multicloud/{oci|azure|gcloud}-cli/show-data-lake-storage-info.sh define STORAGE_PROVIDER='oci' -- The url is a pointer to the bucket that will be used for import/export to object storage +-- Examples: +-- google: https://storage.googleapis.com/adb-sample +-- azure : https://devadbstorageacct.blob.core.windows.net/adb-sample +-- oci : https://adwc4pm.objectstorage.us-ashburn-1.oci.customer-oci.com/n/adwc4pm/b/adb-sample/o define STORAGE_URL='' + -- A database credential encapsulates the authentication details to the object store. Specify a name for the credential below define STORAGE_CREDENTIAL_NAME='storage_cred' --- below required for azure -define STORAGE_KEY='' -define STORAGE_ACCOUNT_NAME='' +--Azure storage properties +define AZURE_STORAGE_ACCOUNT_NAME='' +define AZURE_STORAGE_KEY='' +-- Google storage properties +define GOOGLE_STORAGE_ACCESS_KEY='' +define GOOGLE_STORAGE_SECRET='' -- -- OCI API credentials diff --git a/sql/config.sql b/sql/config.sql index eeec41b..589b9ce 100644 --- a/sql/config.sql +++ b/sql/config.sql @@ -1,4 +1,4 @@ --- Copyright (c) 2024 Oracle and/or its affiliates. +-- Copyright (c) 2025 Oracle and/or its affiliates. -- Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ -- diff --git a/sql/data-create-sample-schema.sql b/sql/data-create-sample-schema.sql index 48fe933..02c1891 100644 --- a/sql/data-create-sample-schema.sql +++ b/sql/data-create-sample-schema.sql @@ -1,4 +1,4 @@ --- Copyright (c) 2024 Oracle and/or its affiliates. +-- Copyright (c) 2025 Oracle and/or its affiliates. -- Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ -- diff --git a/sql/data-export-to-datalake.sql b/sql/data-export-to-datalake.sql index 6227b8f..ffcbdca 100644 --- a/sql/data-export-to-datalake.sql +++ b/sql/data-export-to-datalake.sql @@ -1,4 +1,4 @@ --- Copyright (c) 2024 Oracle and/or its affiliates. +-- Copyright (c) 2025 Oracle and/or its affiliates. -- Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ /** Export data to cloud storage **/ diff --git a/sql/data-import-from-datalake.sql b/sql/data-import-from-datalake.sql index 621fbf0..20cf624 100644 --- a/sql/data-import-from-datalake.sql +++ b/sql/data-import-from-datalake.sql @@ -1,5 +1,5 @@ --- Copyright (c) 2024 Oracle and/or its affiliates. +-- Copyright (c) 2025 Oracle and/or its affiliates. -- Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ /** Import data to Azure Data Lake **/ diff --git a/sql/json-duality.sql b/sql/json-duality.sql index c312523..b7af655 100644 --- a/sql/json-duality.sql +++ b/sql/json-duality.sql @@ -1,4 +1,4 @@ --- Copyright (c) 2024 Oracle and/or its affiliates. +-- Copyright (c) 2025 Oracle and/or its affiliates. -- Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ /* Apply AI SQL function to your data to summarize information, make recommendations and more */ diff --git a/sql/security-vpd.sql b/sql/security-vpd.sql index deafdab..0cd1cdc 100644 --- a/sql/security-vpd.sql +++ b/sql/security-vpd.sql @@ -1,4 +1,4 @@ --- Copyright (c) 2024 Oracle and/or its affiliates. +-- Copyright (c) 2025 Oracle and/or its affiliates. -- Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ CREATE TABLE "MOVIESTREAM"."VGSALES" diff --git a/sql/select-ai-admin-enable.sql b/sql/select-ai-admin-enable.sql index 97f7e10..a82f45a 100644 --- a/sql/select-ai-admin-enable.sql +++ b/sql/select-ai-admin-enable.sql @@ -1,4 +1,4 @@ --- Copyright (c) 2024 Oracle and/or its affiliates. +-- Copyright (c) 2025 Oracle and/or its affiliates. -- Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ /* Run this script as the Autonomous Database ADMIN user */ diff --git a/sql/select-ai-create-profile.sql b/sql/select-ai-create-profile.sql index a8f7d11..38f8020 100644 --- a/sql/select-ai-create-profile.sql +++ b/sql/select-ai-create-profile.sql @@ -1,4 +1,4 @@ --- Copyright (c) 2024 Oracle and/or its affiliates. +-- Copyright (c) 2025 Oracle and/or its affiliates. -- Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ /* Create an AI profile that is used by Select AI to connect to your provider. It will also specify the targets used by NL2SQL */ diff --git a/sql/select-ai-create-synthetic-data.sql b/sql/select-ai-create-synthetic-data.sql index a8fb60e..70f9345 100644 --- a/sql/select-ai-create-synthetic-data.sql +++ b/sql/select-ai-create-synthetic-data.sql @@ -1,4 +1,4 @@ --- Copyright (c) 2024 Oracle and/or its affiliates. +-- Copyright (c) 2025 Oracle and/or its affiliates. -- Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ /* PREREQUISITES diff --git a/sql/select-ai-rag.sql b/sql/select-ai-rag.sql index 2aae140..df1c1d0 100644 --- a/sql/select-ai-rag.sql +++ b/sql/select-ai-rag.sql @@ -1,4 +1,4 @@ --- Copyright (c) 2024 Oracle and/or its affiliates. +-- Copyright (c) 2025 Oracle and/or its affiliates. -- Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ /* Run this script as the Autonomous Database database user that will be accessing your AI provider */ diff --git a/sql/select-ai-sql-function.sql b/sql/select-ai-sql-function.sql index 6ecbabb..e3dfa2e 100644 --- a/sql/select-ai-sql-function.sql +++ b/sql/select-ai-sql-function.sql @@ -1,4 +1,4 @@ --- Copyright (c) 2024 Oracle and/or its affiliates. +-- Copyright (c) 2025 Oracle and/or its affiliates. -- Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ /* Apply AI SQL function to your data to summarize information, make recommendations and more */ @@ -10,7 +10,7 @@ -- Run this script as the Autonomous Database database user that will be access Azure OpenAI --- config.sql contains the endpoints, resource groups and other settings required to connect to your Azure OpenAI deployment +-- config.sql contains the configuration properties, like endpoints, credentials, AI providers and more @config.sql -- Create your credential and Select AI Profile diff --git a/sql/select-ai-transform-and-summarize.sql b/sql/select-ai-transform-and-summarize.sql new file mode 100644 index 0000000..d1e429a --- /dev/null +++ b/sql/select-ai-transform-and-summarize.sql @@ -0,0 +1,150 @@ +-- Copyright (c) 2025 Oracle and/or its affiliates. +-- Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ + +/* Apply AI SQL function to your data to summarize information, derive sentiment, key phrases, extract fields from text */ + +-- Run this script as the Autonomous Database database user that will be accesssing your AI service + +-- config.sql contains the configuration properties, like endpoints, credentials, AI providers and more +@config.sql + +-- Create your credential and Select AI Profile +@select-ai-create-profile.sql + +/* + Parse the various components of an address +*/ +with example as ( + select ('38 Newbury St, Office #3, Boston, MA 02116') as address + from dual +), +json_string as ( +select + dbms_cloud_ai.generate ( + action => 'chat', + profile_name => '&AI_PROFILE_NAME', + prompt => 'Parse the given address without any comments. ' + || 'The result should be 1) a json object for that address and 2) be simple text, not markdown. ' + || 'Here are the required JSON object fields: {addressNumber, streetName, unitNumber, city, state, zip}. ' + || 'Apply to the following address: ' || address + ) as address_json +from example +) +select + json_value(address_json, '$.addressNumber') as address_number, + json_value(address_json, '$.streetName') as street, + json_value(address_json, '$.unitNumber') as unit, + json_value(address_json, '$.city') as city, + json_value(address_json, '$.state') as state, + json_value(address_json, '$.zip') as zip +from json_string j; + +/* +Do the same as above, but ths time, batch up numerous addresses +*/ +-- Create the table containing addresses +drop table if exists temp_address; +CREATE TABLE temp_address ( + address VARCHAR2(200) +); + +INSERT INTO temp_address (address) VALUES +('123 Main St, Apt 3, Springfield, IL 62701'), +('456 Elm Ave, #9, Rivertown, CA 90210'), +('789 Oak Rd, Lakeside, NY 10001'), +('101 Pine Ln, Mountain View, CO 80301'), +('202 Maple Dr, Seaside, FL 33139'), +('303 Cedar Blvd, Forest Hills, OR 97034'), +('404 Birch St, Hilltown, TX 75001'), +('505 Willow Way, Meadowville, WA 98101'), +('606 Spruce Ct, Sunnydale, AZ 85001'), +('707 Redwood Rd, Greenfield, MA 01301'); + +commit; + +-- Do this in batches. Here, we'll do all the addresses b/c there are 10 of them +-- First, turn the rows into a json array +-- Send that to the model to transform - returning an array of json objects +-- Turn that array of json objects into a tabular result +WITH json_address_array AS ( + SELECT JSON_ARRAYAGG( + JSON_OBJECT('address' VALUE address) RETURNING CLOB) AS addresses + FROM temp_address +), +json_address_with_fields AS ( +SELECT + dbms_cloud_ai.generate ( + action => 'chat', + profile_name => '&AI_PROFILE_NAME', + prompt => 'Parse the given address list without any comments. ' + || 'The result should be 1) a json array with an json object for each address and 2) be simple text, not markdown. ' + || 'Here are the required JSON object fields: {addressNumber, streetName, unitNumber, city, state, zip}. ' + || 'Apply to the following list of address: ' || addresses + ) as address_json +FROM json_address_array) +SELECT jt.* +FROM json_address_with_fields, + JSON_TABLE(address_json, '$[*]' + COLUMNS ( + addressNumber VARCHAR2(10) PATH '$.addressNumber', + streetName VARCHAR2(100) PATH '$.streetName', + unitNumber VARCHAR2(10) PATH '$.unitNumber', + city VARCHAR2(150) PATH '$.city', + state VARCHAR2(10) PATH '$.state', + zip VARCHAR2(10) PATH '$.zip' + ) + ) jt +; + + +/* +Derive the address from free-form text +*/ +with example as ( + select ('I live in Brookline MA. ' + || 'Why don''t you come by at 10. Walk over to 1785 Beacon Street. Get ready to walk up some stairs' + || ' - I''m in apartment is 6f.') as text + from dual +) +select + dbms_cloud_ai.generate ( + action => 'chat', + profile_name => '&AI_PROFILE_NAME', + prompt => 'Parse the given text and extract the street address without any comments. ' + || 'The result should simple text, not markdown and in the following format: ' + || 'street, apartment, city, state, country, zip code. Here is an example formatted result: ' + || '1 Main St, Westfield, NJ USA 07090. Apply these rules to the following text: ' + || text + ) as address +from example; + + +/* Summarize a support chat and derive the support rep, key phrases and sentiment */ + +with example as ( + select 'I was so frustrated trying to resolve my billing issue. I spoke with Marty, who seemed completely uninterested in helping and kept transferring me to different departments. I feel like I wasted an hour of my time and still don''t have a solution.' as support_chat +), +summarize_json as ( +select + dbms_cloud_ai.generate ( + action => 'chat', + profile_name => '&AI_PROFILE_NAME', + prompt => 'Summarize the support chat into the following json values without any comments: {summary, keyPhrases, sentiment, supportRep}. content: ' + || support_chat || '. The result should 1) be a valid json document that can be validated against a json schema, 2) begin with { and end with }, 3) be simple text, not markdown. ' + || 'Apply these rules to determine the values: ' + || 'supportRep: the name of the customer service representative, ' + || 'summary: a 2 sentence summary of the support conversation,' + || 'keyPhrases: Extract 2 of the most important keywords and phrases from the conversation. Focus on terms that capture the main topics, key ideas, and significant points discussed,' + || 'sentiment: return one value - Positive or Negative' + ) as chat_info +from example +) +select + json_value(chat_info, '$.supportRep') as support_rep, + json_query(chat_info, '$.keyPhrases') as key_phrases, + json_value(chat_info, '$.sentiment') as sentiment, + json_value(chat_info, '$.summary') as summary, + chat_info +from summarize_json; + +