4 Registering and Logging in to Oracle Label Security
Before using Oracle Label Security, you must register (configure) it with the database and then you can log in to Oracle Label Security.
- Registering Oracle Label Security with an Oracle Database
You must register Oracle Label Security with the database in which you plan to use it. - Security Guideline for Managing the LBACSYS User and the LBAC_DBA Role
As a good practice, for day-to-day use, grant theLBAC_DBA
database role to trusted users who will administer Oracle Label Security. - Logging in to Cloud Control or SQL*Plus for Oracle Label Security
After you complete the Oracle Label Security registration and enablement process, you can begin using it.
Parent topic: Using Oracle Label Security Functionality
Registering Oracle Label Security with an Oracle Database
You must register Oracle Label Security with the database in which you plan to use it.
- About Registering Oracle Label Security
When you install Oracle Database, by default Oracle Label Security is not enabled. - Checking if Oracle Label Security Has Been Registered and Enabled
You can query theDBA_OLS_STATUS
andCDB_OLS_STATUS
data dictionary views to find if Oracle Label Security has already been registered and enabled. - Registering and Enabling Oracle Label Security from SQL*Plus
You can both register and enable Oracle Label Security from SQL*Plus. - Registering and Enabling Oracle Label Security Using DBCA
You can both register and enable Oracle Label Security using Database Configuration Assistant.
Parent topic: Registering and Logging in to Oracle Label Security
About Registering Oracle Label Security
When you install Oracle Database, by default Oracle Label Security is not enabled.
You must register Oracle Label Security with the database. Afterwards, you must enable the default Oracle Label Security user account, LBACSYS
. After you register Oracle Label Security, you can disable and re-enable it when necessary.
If you are using a multitenant environment, then only register Oracle Label Security in the pluggable databases (PDBs) in which you plan to create Oracle Label Security policies. Because Oracle Label Security is not designed to protect data dictionary objects, you cannot create policies in the root.
Checking if Oracle Label Security Has Been Registered and Enabled
You can query the DBA_OLS_STATUS
and CDB_OLS_STATUS
data dictionary views to find if Oracle Label Security has already been registered and enabled.
Registering and Enabling Oracle Label Security from SQL*Plus
You can both register and enable Oracle Label Security from SQL*Plus.
Security Guideline for Managing the LBACSYS User and the LBAC_DBA Role
As a good practice, for day-to-day use, grant the LBAC_DBA
database role to trusted users who will administer Oracle Label Security.
If you plan to use Enterprise Manager Cloud Control to administer Oracle Label Security, then ensure that any users to whom you have granted the LBAC_DBA
role also have the SELECT ANY DICTIONARY
privilege.
Oracle strongly recommends that you maintain two accounts for users who have been granted the LBAC_DBA
role. One account, the primary user account, will be used on a day-to-day basis and the other account will be used as a backup account in case the password of the primary account is lost and must be reset.
Parent topic: Registering and Logging in to Oracle Label Security
Logging in to Cloud Control or SQL*Plus for Oracle Label Security
After you complete the Oracle Label Security registration and enablement process, you can begin using it.
- Logging in to Oracle Label Security from Enterprise Manager Cloud Control
From Enterprise Manager Cloud Control, you use the Oracle Label Security pages to create and manage Oracle Label Security policies. - Logging in to Oracle Label Security from SQL*Plus
You can log in to Oracle Label Security from SQL*Plus if you have been granted theLBAC_DBA
database role.
Parent topic: Registering and Logging in to Oracle Label Security
Logging in to Oracle Label Security from Enterprise Manager Cloud Control
From Enterprise Manager Cloud Control, you use the Oracle Label Security pages to create and manage Oracle Label Security policies.
Logging in to Oracle Label Security from SQL*Plus
You can log in to Oracle Label Security from SQL*Plus if you have been granted the LBAC_DBA
database role.
-
To use Oracle Label Security from SQL*Plus, connect as user
LBACSYS
or as a user who has been granted theLBAC_DBA
database role. To find if a user has been granted this role, query theGRANTEE
andGRANTED_ROLE
columns of theDBA_ROLE_PRIVS
data dictionary view.
For example:
sqlplus psmith_ols -- Or, sqlplus psmith_ols@hrpdb for a PDB named hrpdb Enter password: password
To find the available PDBs, query the DBA_PDBS
data dictionary view. To check the current PDB, run the show con_name
command.