Closed arjen-keesy closed 9 months ago
Oracle Database Service does not run in your own tenancy, but is managed by oracle / running in Oracle's tenancy. So you can not use Instance Principle to have the right permissions. If you do want to run the script inside that instance, you need to configure the OCI CLI for normal config authentication. You can run the oci setup config command to configure this. Also make sure the API key is then added to your user's profile.
I have installed it on an Oracle Base Database environment, but when executing the script, the OCI library doesn't connect to my own tenant, but to some oracle internal tenant ( dbaascpfra1 ), and of course that will not work, because it can not find any of my Services. Any idea how to let the script connect to the right tenant ?