How to Query OCI Object Storage Bucket Files via SQL Using Resource Principals
Oracle Cloud Infrastructure (OCI) allows database users to read object storage bucket files directly through SQL by leveraging resource principals. The process begins with creating a dynamic group in OCI and assigning it a policy that permits read access to the target bucket. A database administrator must then enable resource principal support and grant the relevant schema access to the DBMS_CLOUD package. Once configured, users can list and query bucket objects using the DBMS_CLOUD.LIST_OBJECTS function with the OCI$RESOURCE_PRINCIPAL credential. This approach works for both autonomous and non-autonomous Oracle Databases, provided they are hosted within OCI.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in