18 Retail DB Ops Console

The Retail DB Ops Console (RDOC) brings database monitoring and operational tasks into one application. Use Usage Monitoring to review CPU and storage history, Session Management to review customer session counts and active sessions, and AWR Reports, Top SQL, and DBMS Jobs to investigate performance. Authorized administrators can also manage database users and operational settings.

RDOC helps you identify a change or an area that needs investigation. The charts and reference lines provide context for planning; they do not automatically recommend or add capacity. For slow SQL, use this chapter alongside the Query Tuning appendix.

Access and Roles

Access to RDOC is assigned through OCI groups. Use the production groups in production and the corresponding _PREPROD groups in non-production environments. Group changes may take up to one hour to appear. The Oracle Retail Data Store Security Guide, Post Installation Configuration chapter, Retail DB Ops Console section, is the authoritative source for group assignment.

  • Viewer — RDS_MANAGEMENT_VIEWER or RDS_MANAGEMENT_VIEWER_PREPROD. View operational pages such as Usage Monitoring, generated AWR reports, Top SQL, DBMS Jobs, and Session Management when those features are enabled.
  • Owner — RDS_MANAGEMENT_OWNER or RDS_MANAGEMENT_OWNER_PREPROD. Has Viewer access and can request custom AWR reports.
  • Administrator — RDS_MANAGEMENT_ADMINISTRATOR or RDS_MANAGEMENT_ADMINISTRATOR_PREPROD. Has Owner access and can use administrator controls such as Settings, User Management, and the end-session action in Session Management.

The pages and actions visible to you depend on your assigned group and the features enabled for your environment. Contact your RDS administrator if an expected page or action is unavailable.

Open and Navigate the Console

Open Retail DB Ops Console from Retail Home’s Application Navigator. The Home page summarizes current storage utilization by schema, recently generated AWR reports, Top SQL, and DBMS Jobs. Use Refresh or the page’s refresh-rate selector when you need a newer snapshot.

Open the navigation menu to reach these pages:

  • Usage Monitoring: historical CPU utilization and customer-schema storage usage.

    Figure 18-1 RDOC Home Page Showing Storage by Schema, AWR Reports, Top SQL, and DBMS Jobs


    RDOC Home page showing storage by schema, AWR reports, Top SQL, and DBMS Jobs.

  • AWR Reports: generated reports and, for authorized users, custom report generation.

  • Top SQL: SQL statements active in the database.

  • DBMS Jobs: scheduled jobs and their run details.

  • Session Management: session count history, the All Sessions report, and management actions available to administrators.

  • User Management: locked database users and user-management history.

  • Email Settings: SMTP configuration and a test-email form.

  • Settings: notification, pool, storage, session, transaction-age, and contact settings.

The notification bell shows messages about background operations, including AWR report generation. The Settings page controls how often RDOC checks for new notifications while the application is open.

Usage Monitoring

Open Usage Monitoring to review how database CPU demand and allocated customer-schema storage have changed over time. The page shows separate CPU Utilization and Storage Usage charts. Use the Time Range selector to view the past 24 hours, 7 days, 30 days, or 90 days. The same selection applies to both charts.

The charts refresh every five minutes while the page is open. CPU measurements are collected every five minutes and storage measurements hourly. A time range shows the history available for that period; selecting 90 days does not create earlier measurements. The source measurements use UTC timestamps.

CPU Utilization

CPU Utilization (15-minute trailing mean) shows database CPU use as a percentage. Each plotted value averages the CPU samples from the preceding 15 minutes. This reduces short-term noise while retaining periods of higher demand.

The chart displays detail appropriate to the selected range:

  • 24 hours: the available 15-minute trailing values are shown at their sample times.

  • 7 days: each hour shows its highest observed 15-minute trailing value.

  • 30 or 90 days: each day shows its highest observed 15-minute trailing value.

These hourly and daily points are observed peaks of the trailing mean, not an average across the entire hour or day. A very brief spike may still be smoothed by the 15-minute average. If CPU is repeatedly high, compare the affected times with Top SQL, AWR Reports, and scheduled activity in DBMS Jobs before deciding whether the cause is workload growth, an inefficient query, or a temporary batch run.

Figure 18-2 Usage Monitoring with CPU and Storage History for the 90-day Range. The plotted values in this illustration are sample data.


Usage Monitoring with CPU and storage history for the 90-day range. The plotted values in this illustration are sample data.

Storage Usage

Storage Usage shows allocated storage in terabytes (TB) across customer schemas. The page records storage hourly. In the 30-day and 90-day ranges, the chart uses the last available measurement from each day so the longer-term growth pattern is easier to see.

The chart also shows two horizontal planning references:

  • Storage Soft Max is the value configured on the Settings page.

  • 75% Warning is three-quarters of that configured value.

These lines are based on the current setting; changing Storage Soft Max moves the lines without changing historical storage measurements. They are planning references, not physical database storage limits. When usage approaches either line, review recent growth and available headroom. The chart is observed history, not a forecast or an automatic recommendation to request more capacity.

Investigate Performance

Use AWR reports, Top SQL, and DBMS Jobs together when investigating performance. A practical sequence is:

  1. Use Usage Monitoring to identify the affected time window and review CPU and storage history.

  2. Use AWR reports to understand system load during that window.

  3. Use Top SQL to identify active or waiting SQL.

  4. Use DBMS Jobs to check whether scheduled jobs contributed to the load.

  5. Follow the Query Tuning appendix to inspect execution plans, waits, plan history, and tuning options.

Review AWR Reports

Automated Workload Repository (AWR) reports summarize database workload over a selected snapshot interval. Use AWR reports when the issue happened in the past, when you need to compare current behavior with a known healthy period, or when the Query Tuning appendix calls for system-load evidence. Generated reports remain available according to the database's configured AWR retention period.

Users with RDS_MANAGEMENT_VIEWER or RDS_MANAGEMENT_VIEWER_PREPROD can search generated AWR reports. The page shown in Figure 18-3 supports filtering by snapshot, generated-by value, interval date and hour, and generated date. Select a Report ID to open the report viewer.

Figure 18-3 AWR Reports - Search Generated AWR Reports


AWR Reports - Search Generated AWR Reports

The AWR Report Viewer displays the selected report in a modal window, as shown in Figure 18-4. From this window, the user can download the report or delete it when deletion is allowed.

Figure 18-4 AWR Reports - AWR Report Viewer


AWR Reports - AWR Report Viewer

When reviewing AWR output, compare the affected interval to a similar healthy interval when possible. Look for new top SQL, increased database time, high waits, plan changes, and workload spikes.

Generate a Custom AWR Report

Users with RDS_MANAGEMENT_OWNER or RDS_MANAGEMENT_OWNER_PREPROD can generate custom AWR reports from the page shown in Figure 18-5. Enter the interval start date and time, select the number of hours, and then generate the report.

After the generation request is submitted, the report runs in the background, as shown in Figure 18-6.

When the report is generated successfully, the console displays a confirmation message, as shown in Figure 18-7.

The same completion status is also available from the Notifications panel, as shown in Figure 18-8.

Figure 18-5 AWR Report - AWR Reports Generation


AWR Report - AWR Reports Generation

Figure 18-6 AWR Report Generation Started


AWR Report Generation Started

Figure 18-7 AWR Report Generation Success Message


AWR Report Generation Success Message

Figure 18-8 AWR Report Generation Notification


AWR Report Generation Notification

Triage Active SQL

Use Top SQL when an issue is happening now or when Usage Monitoring and AWR evidence point to high load. The Top SQL page displays active SQL collected from database activity. Users with RDS_MANAGEMENT_VIEWER or RDS_MANAGEMENT_VIEWER_PREPROD can view the page and filter SQL by session state, including ON CPU and WAITING.

The Top SQL report shown in Figure 18-9 includes fields such as SQL ID, running instance, client ID, user name, schema name, SQL text, session state, start time, time waited, and elapsed time in seconds. Select a SQL ID to open detailed SQL instance information.

Figure 18-9 Top SQL


Top SQL

Use ON CPU to identify SQL consuming processing capacity. Use WAITING to identify SQL blocked on waits or resources. For slow custom SQL, continue with the Query Tuning appendix to review the SQL ID, execution plan, wait profile, and plan history.

From Top SQL, generate and download an explain plan or SQL active report for the selected SQL, as shown in Figure 18-10.

Figure 18-10 Top SQL - Generate Explain Plan


Top SQL - Generate Explain Plan

The SQL Instance Viewer shown in Figure 18-11 displays the selected SQL instance and related runtime details.

Use the SQL Full Text link to view the complete SQL statement, as shown in Figure 18-12.

The SQL Instance Viewer includes DBA historical report data when available, as shown in Figure 18-13. Fields include Snap ID, Database ID, Instance Number, Report ID, Component ID, Session ID, Session Serial Number, period start and end time, generation time, report parameters, SQL ID, generation cost in seconds, and historical report.

Open a historical report to review the SQL historical report details shown in Figure 18-14.

Check DBMS Jobs

Use DBMS Jobs when performance changes align with scheduled activity, batch processing, or failed background work. The DBMS Jobs page shown in Figure 18-15 lists available database jobs and job details. Users with RDS_MANAGEMENT_VIEWER or RDS_MANAGEMENT_VIEWER_PREPROD can open the page and review job status.

Select a job name to open job log and job run details, as shown in Figure 18-16.

Figure 18-11 Top SQL - SQL Instance Viewer


Top SQL - SQL Instance Viewer

Figure 18-12 Top SQL - Full SQL Text Viewer


Top SQL - Full SQL Text Viewer

Figure 18-13 Top SQL - DBA Historical Reports


Top SQL - DBA Historical Reports

Figure 18-14 Top SQL - SQL Historical Report Viewer


Top SQL - SQL Historical Report Viewer

Figure 18-15 DBMS Jobs


DBMS Jobs

Figure 18-16 DBMS Jobs - Scheduler Job Logs


DBMS Jobs - Scheduler Job Logs

The job run details tab shown in Figure 18-17 shows run history and run-specific details for the selected job.

Figure 18-17 DBMS Jobs - Scheduler Job Run Details


DBMS Jobs - Scheduler Job Run Details

When diagnosing performance, look for failed jobs, jobs with unusually long runtimes, or jobs that started shortly before the reported slowdown.

Session Management

Open Session Management to review customer session history and active sessions. Session Count History shows observed session counts alongside RDOC’s configured pool-capacity estimate. The counts help indicate connection pool pressure; they are not a direct measurement of checked-out ORDS connections. Use the Time Range control to focus on the period under investigation.

Figure 18-18 RDOC Session Management Page Showing Session Count History and the All Sessions Area.


RDOC Session Management page showing Session Count History and the All Sessions area.

Use All Sessions to review current database sessions and Session Management Log to review recorded management actions. The All Sessions report may be empty when no eligible sessions are active. Administrators can end a session from its report row when the action is available.

WARNING:

Ending a session can interrupt custom processing and roll back uncommitted work. Identify the owning application or process and confirm that termination is appropriate before using the action. For sessions outside RDOC’s criteria, submit a support request.

User Management

Open User Management to review locked database users. The Locked Database Users tab lists users that need attention; it can be empty when no users are locked. Administrators can use the available row action to unlock a user after confirming that the account should regain access. The Database User Alter Logs tab records user-management actions.

Figure 18-19 RDOC User Management Page Showing the Locked Database Users and Database User Alter Logs Tabs.


RDOC User Management page showing the Locked Database Users and Database User Alter Logs tabs.

Settings

The Settings page contains the values RDOC uses for notification checks, capacity reference lines, session monitoring, and notification contacts. Open Settings from the navigation menu. Review the descriptions beside the fields, make any changes, and select Save Settings. Cancel discards unsaved edits.

Figure 18-20 RDOC Settings form Showing Notification, ORDS Pool, Storage, Session, Transaction-Age, and Contact Fields.


RDOC Settings form showing notification, ORDS pool, storage, session, transaction-age, and contact fields.

The form contains these settings:

  • Notification Check Interval (seconds): How often RDOC checks for messages shown through the notification bell while the application is open. These include notices when an AWR report finishes or fails. A shorter interval shows notices sooner but makes more requests; it does not change the schedule of background jobs. These in-app notices do not require the email contacts or SMTP settings.

  • ORDS Pool Max Per Node and Active ORDS Node Count: Values RDOC uses to estimate total connection-pool capacity. RDOC compares customer session counts with that estimate as an indicator of connection pool pressure. Session counts are a proxy, not a direct count of checked-out ORDS connections. Changing these values does not reconfigure ORDS or add or remove nodes.

  • Storage Soft Max (TB): A planning value used for the Storage Usage chart’s Soft Max and 75% Warning reference lines. Changing it does not change the database’s physical storage limit or rewrite stored usage measurements.

  • Session Pool Warning Threshold (%): The warning level RDOC uses when comparing customer session counts with the configured pool-capacity estimate. Adjusting it changes the warning level, not the connection-pool capacity.

  • Open Transaction Age Threshold (minutes):

    The age at which an open transaction in an RDS Custom schema merits review. Changing this value does not commit, roll back, or end a transaction.
  • Primary and Secondary Notification Contact Email: Recipient addresses for RDOC email notifications. If both are blank, RDOC has no configured recipient for those messages. Configure SMTP on Email Settings as described in Chapter 19, Sending Email from APEX, before relying on delivery. These addresses do not control the in-app notices shown through the notification bell.

These settings help RDOC present operational context. A warning level is a reason to investigate the workload and available headroom; it is not an automatic instruction to add capacity or terminate a session.

Session Management API

RDS also provides a session management API for managing custom database sessions programmatically. Use the API when the number of sessions to terminate would make interactive termination burdensome.

The MANAGEMENT.RDS_SESSION_MGMT package includes procedures and functions to list and terminate database sessions that meet the same session management criteria used by the DB Ops Console.

  • LIST_RDS_SESSIONS(O_session_list OUT SYS_REFCURSOR) returns sessions that meet the RDS criteria.
  • KILL_RDS_SESSION(I_sid IN NUMBER, I_serial IN NUMBER, O_status OUT VARCHAR2) terminates a validated session by SID and SERIAL.
  • KILL_RDS_SESSION(I_audsid IN NUMBER, O_status OUT VARCHAR2) terminates validated sessions by audit session identifier.

As with the interactive session management page, API users are responsible for confirming that the targeted sessions can be terminated safely.