Instead the oracle operating system user, you can set a specific user account to be the operating system user for that PDB.
If you do not set a specific user to be the operating system user for the PDB, then by default the PDB uses the oracle operating system user. For the root, you can use the oracle operating system user when you must interact with the operating system.
For better security, Oracle recommends that you set a unique operating system user for each PDB in a multitenant environment. Doing so helps to ensure that operating system interactions are performed as a less powerful user than the oracle operating system user, and helps to protect data that belongs to one PDB from being accessed by users who are connected to other PDBs.
Configuring an Operating System User for a PDB
The DBMS_CREDENTIAL.CREATE_CREDENTIAL procedure can set an operating system user for a PDB.
- Log in to the database instance root as a user who has the EXECUTE privilege for the DBMS_CREDENTIAL PL/SQL package and the ALTER SYSTEM system privilege.
sqlplus c##sec_admin
Enter password: password
- Run the DBMS_CREDENTIAL.CREATE_CREDENTIAL procedure to create an Oracle credential for the operating system user.
For example, to set the credential for a user named os_admin:
BEGIN
DBMS_CREDENTIAL.CREATE_CREDENTIAL (
credential_name => 'PDB1_OS_USER',
username => 'os_admin',
password => 'password');
END;
/
- Connect to the PDB for which the operating system user will be used.
CONNECT cc##sec_admin@hrpdb
Enter password: password
- Set the PDB_OS_CREDENTIAL initialization parameter for the user whose credential was set in Step
ALTER SYSTEM SET PDB_OS_CREDENTIAL = PDB1_OS_USER SCOPE = SPFILE;
- Restart the database instance.
SHUTDOWN IMMEDIATE
STARTUP
该文章介绍了如何为多租户环境中的每个PDB设置独特的操作系统用户,以提高安全性。默认情况下,PDB使用Oracle操作系统用户,但Oracle建议为每个PDB设置不同的用户,以限制权限并保护数据。通过执行DBMS_CREDENTIAL.CREATE_CREDENTIAL过程,可以创建和设置用于PDB的操作系统用户。之后,使用ALTER SYSTEM SET PDB_OS_CREDENTIAL参数,并重启数据库实例来完成配置。
362

被折叠的 条评论
为什么被折叠?



