20
database/adb/74_hmm_rds_pg_01_credential.sql
Normal file
20
database/adb/74_hmm_rds_pg_01_credential.sql
Normal file
@@ -0,0 +1,20 @@
|
||||
-- ============================================================
|
||||
-- Step 1: create the PostgreSQL credential.
|
||||
-- Run only this statement after replacing <RDS_PASSWORD> in the
|
||||
-- Worksheet. Never save the actual password in this file.
|
||||
-- Redmine: #730
|
||||
-- ============================================================
|
||||
|
||||
BEGIN
|
||||
DBMS_CLOUD.CREATE_CREDENTIAL(
|
||||
credential_name => 'HMM_RDS_PG_CRED',
|
||||
username => 'postgres',
|
||||
password => '<RDS_PASSWORD>'
|
||||
);
|
||||
END;
|
||||
/
|
||||
|
||||
-- Passwords are never returned by ALL_CREDENTIALS.
|
||||
SELECT credential_name, username
|
||||
FROM all_credentials
|
||||
WHERE credential_name = 'HMM_RDS_PG_CRED';
|
||||
Reference in New Issue
Block a user