Manage Credentials
You can create credentials, list credentials, or delete credentials in your Autonomous Database.
- Create Credentials to Access Cloud Services
To access services in the Cloud, such as Cloud Object Store, you first need to create credentials in your Autonomous Database. - List Credentials
DBMS_CLOUD
provides the ability to store credentials using the procedureDBMS_CLOUD.CREATE_CREDENTIAL
. You can list credentials from the viewALL_CREDENTIALS
. - Delete Credentials
DBMS_CLOUD
provides the ability to store credentials using the procedureDBMS_CLOUD.CREATE_CREDENTIAL
. You can remove credentials withDBMS_CLOUD.DROP_CREDENTIAL
.
Create Credentials to Access Cloud Services
To access services in the Cloud, such as Cloud Object Store, you first need to create credentials in your Autonomous Database.
Parent topic: Manage Credentials
List Credentials
DBMS_CLOUD
provides the ability to store
credentials using the procedure DBMS_CLOUD.CREATE_CREDENTIAL
. You can list credentials from the view
ALL_CREDENTIALS
.
For example, to list credentials, run the following command:
SELECT credential_name, username, comments FROM all_credentials;
CREDENTIAL_NAME USERNAME
---------------------------–----------------------------- --------------------
COMMENTS
---------------------------–----------------------------- --------------------
ADB_TOKEN user_name@example.com
{"comments":"Created via DBMS_CLOUD.create_credential"}
DEF_CRED_NAME user_name@example.com
{"comments":"Created via DBMS_CLOUD.create_credential"}
See ALL_CREDENTIALS for more information.
Parent topic: Manage Credentials
Delete Credentials
DBMS_CLOUD
provides the ability to store
credentials using the procedure DBMS_CLOUD.CREATE_CREDENTIAL
. You can remove credentials with DBMS_CLOUD.DROP_CREDENTIAL
.
For example, to remove the credential named DEF_CRED_NAME
, run the following command:
BEGIN
DBMS_CLOUD.DROP_CREDENTIAL
('DEF_CRED_NAME');
END;
For more information about the DBMS_CLOUD
procedures and parameters, see DBMS_CLOUD Subprograms and REST APIs.
Parent topic: Manage Credentials