Monitor Database Security Configuration

As part of the security tasks for a Managed Database, you can monitor users, roles, profiles, audit settings, and SQL Firewall.

Monitoring users, roles, profiles, audit settings, and SQL Firewall is a critical aspect of database security management. In the Security section, you can review these details to validate access controls, confirm enforcement of password and resource policies, ensure that auditing is enabled as required, and monitor SQL Firewall protection and violations.

Note

The Security feature in Database Management Diagnostics & Management is currently available only for External Databases and Oracle Cloud Databases version 19c and later. For Autonomous AI Databases and earlier versions of External Databases and Oracle Cloud Databases, the Users section is displayed instead.

The Users section is the older interface for monitoring database users and lists users along with information such as account status, days remaining before account expiration, expiration date, and assigned profile.

Before you go to the Security section to monitor database security configuration, you must ensure that you have the following privileges:

Grant READ ON <following database objects> TO <monitoring user>
  • DBA_USERS
  • DBA_ROLE_PRIVS
  • DBA_TAB_PRIVS
  • DBA_SYS_PRIVS
  • DBA_RSRC_CONSUMER_GROUP_PRIVS
  • PROXY_USERS
  • DBA_CONTAINER_DATA
  • DBA_PROFILES
  • DBA_USERS_WITH_DEFPWD
  • V$PWFILE_USERS

Here's an example:

Grant READ ON DBA_USERS TO DBSNMP
Note

Additional privileges are required to monitor SQL Firewall. For information, see SQL Firewall.

To go to the Security section, go to the Managed database details page, expand Management in the left pane, and click Security.

The Security section has the following tabs:

  • Summary: Provides a consolidated, high-level view of the security configuration for the Managed Database. The charts and detailed information provide an at-a-glance assessment of the database’s security posture.

    The Summary tab has the following sections:

    • Status summary: Displays a graphical distribution of database users based on account status.
    • Roles by authentication type: Displays a graphical categorization of roles based on authentication type.
    • Profiles by status: Displays a graphical representation of the number of profiles that are currently in use versus unused profiles.
    • Users: Displays user-related metrics such as the number of active default accounts, inactive user accounts, and accounts that expired or were locked within the last 24 hours. You can click the value for each metric to view the corresponding panel with additional details.
    • Roles: Displays role-related metrics, including the number of users granted various roles. You can click the value for each metric to view the corresponding panel with additional details.
    • Profiles: Displays profile-related metrics, including the number of users assigned various profiles. You can click the value for each metric to view the corresponding panel with additional details.
  • Users: Provides visibility into user accounts and their security-related attributes. It enables you to monitor account status, password-related settings, login activity, and to identify accounts that require review or action.

    The Users tab has the following charts:

    • Status summary: Displays a graphical summary of database users by account status.
    • User stats: Displays the number of users based on the selected criterion, such as expired users, over time periods such as 1 day, 1–7 days, 7–30 days, and longer. You can use the drop-down list to change the criterion. For example, instead of the default Expired users option, you can select the Expiring users or Last password changed options to view the corresponding number for each time period.
    • Unlimited parameter users: Displays the number of users associated with profiles that have unlimited values for password-related parameters or resource-related parameters. You can use the drop-down list to switch between Password (default) and Resource parameters.

    In addition to the charts on the Users tab, a table lists the users created in the Managed Database, along with information such as user account status, days remaining before account expiration, and last login date. You can filter the data using the available filter criteria or by clicking the charts.

    You can click the name of a user to go to the User details page and view information pertaining to the user. On the User details page, click the options in the left pane under Resources to view the roles, system privileges, object privileges, consumer group privileges, proxy users and the clients on whose behalf they can act, and default container data access associated with the user.

  • Roles: Provides visibility into database roles and their security-related characteristics. It helps you review role authentication types, role scope, and role usage, and identify roles that may require further review.

    The Roles tab has the following charts:

    • Roles by authentication type: Displays a graphical distribution of roles based on their authentication type.
    • Roles by type: Displays the number of roles categorized by scope: Common and Local.
    • User granted roles: Displays top roles by the number of users granted each role.

    In addition to the charts on the Roles tab, a table lists the roles created in the Managed Database, along with information such as their authentication type and scope. You can filter the data using the available filter criteria or by clicking the charts.

    You can click the name of a role to go to the Role details page and view information pertaining to the role. On the Role details page, click the options in the left pane under Resources to view the roles, system privileges, object privileges, and consumer groups associated with the role.

  • Profiles: Provides visibility into database profiles and their configuration. It helps you review profile usage, identify unused profiles, and detect profiles with unlimited password or resource parameters that may pose security or resource management risks.

    The Profiles tab has the following charts:

    • Profiles by status: Displays a graphical summary of profiles that are currently in use and profiles that are unused.
    • Profile usage: Displays the top profiles by usage.
    • Unlimited profile parameters: Displays the number of profiles that have unlimited values for various password-related or resource-related parameters. You can use the drop-down list to switch between Password (default) and Resource parameters.

    In addition to the charts on the Profiles tab, a table lists the profiles created in the Managed Database, along with information such as whether the profile is common and whether it's inherited.

    You can click the name of a profile to go to the Profile details page and view information pertaining to the profile. On the Profile details page, click the options in the left pane under Resources to view password and resource-related profile parameters and their values.

  • Audit settings: Provides visibility into the database auditing configuration. It enables you to review audit modes, audit policies, and audit trail activity to ensure that auditing is enabled and configured in accordance with security and compliance requirements.

    The Audit settings tab has the following general information and charts:

    • General: Displays a summary of the audit configuration, including the audit mode, the number of audit policies, and tablespace usage.
    • Audit trail by component: Displays a graphical summary of audit records generated by audit components over a selected time period. You can use the drop-down list to change the time period.
    • Audit trail by policy: Displays a graphical breakdown of audit records by audit policy over the selected time period. You can use the drop-down list to change the time period.

    In addition to the general information and charts on the Audit settings tab, a table lists the audit policies created in the Managed Database, along with information such as whether the policy is enabled and the users or roles to which the policy applies.

    You can click the name of an audit policy to go to the Audit policy details page and view information pertaining to the policy. On the Audit policy details page, click the options in the left pane under Resources to view the privileges audited by the policy, the actions covered or audited by the policy, and the entities for which the policy is enabled.

  • SQL Firewall: Provides visibility into the SQL Firewall status, policy protection, and recent SQL Firewall activity for the Managed Database.
    Note

    SQL Firewall monitoring is currently only available for Oracle Cloud Databases version 26ai and later with the Full Management option enabled. It's not available for External Databases and Autonomous AI Databases.

    To monitor SQL Firewall, the monitoring user must also have the SQL_FIREWALL_VIEWER or SQL_FIREWALL_ADMIN role and access to the following SQL Firewall views:

    • DBA_SQL_FIREWALL_STATUS
    • DBA_SQL_FIREWALL_CAPTURES
    • DBA_SQL_FIREWALL_ALLOW_LISTS
    • DBA_SQL_FIREWALL_VIOLATIONS
    • DBA_SQL_FIREWALL_CAPTURE_LOGS
    • DBA_SQL_FIREWALL_SESSION_LOGS
    • DBA_SQL_FIREWALL_ALLOWED_SQL
    • DBA_SQL_FIREWALL_ALLOWED_IP_ADDR
    • DBA_SQL_FIREWALL_ALLOWED_OS_USER
    • DBA_SQL_FIREWALL_ALLOWED_OS_PROG

    The SQL Firewall tab has the following information and charts:

    • Status summary: Displays the SQL Firewall status, the time when the status was last updated, and whether jobs are excluded.
    • Policy protection summary: Displays a graphical summary of database users based on their SQL Firewall protection status, including Protected, Observe only, No allow list, and Disabled.
    • Violation trends: Displays SQL Firewall violations for the selected time period, categorized as Blocked and Allowed.
    • Violations: Displays the number of SQL Firewall violations for the time period selected in the Time period applied filter. Click the value to view details such as the database user, SQL text, client information, cause of the violation, action taken, and the time the violation occurred.
    • Captures: Displays the number of SQL Firewall captures. Click the value to view capture details such as the database user, capture status, and when the capture was last started or stopped.
    • Capture logs: Displays the number of SQL Firewall capture logs. Click the value to view details of the captured SQL activity and associated user and client information.
    • Allowed SQL: Displays the number of allowed SQL statements. Click the value to view details of the allowed SQL, such as the database user, SQL text, and accessed objects.
    • Allowed IP addresses: Displays the number of IP addresses that SQL Firewall target users are allowed to use to connect to the database. Click the value to view the database users and their allowed client IP addresses.
    • Allowed OS users/programs: Displays the number of OS users and programs that SQL Firewall target users are allowed to use to connect to the database. Click the value to view the database users and their allowed OS user names and OS program names.

    In addition to the information and charts on the SQL Firewall tab, a table lists database users with the following information. You can search or filter the information in the table using the Filters and Search fields.

    • DB user: Displays the name of the database user.
    • Capture status: Displays whether SQL Firewall capture is enabled or disabled for the database user.
    • Allow list: Displays whether an allow list is enabled or disabled for the database user.
    • Enforcement: Displays the SQL Firewall enforcement setting.
    • Mode: Displays whether SQL Firewall is operating in Observe or Block mode.
    • Owning application: Displays the application associated with the database user, if available.
    • Violations: Displays the number of SQL Firewall violations for the selected time period.
    • Last violation: Displays the time of the most recent SQL Firewall violation for the selected time period.