← Oracle administration: recovery, performance, and production
01 / 19 · 115 MIN

Containers, services, and resources

Confirm administrative scope and protect services sharing a CDB.

Concept and mechanism

A CDB groups containers, including root and application PDBs. Instance, listener, service, and PDB are related elements with distinct states. An open CDB does not establish that the funds PDB is available.

Before changing anything, confirm database identity, connection service, and current container. Record open mode and instance when several instances exist. A common user can have different effective privileges across containers.

Shared identity does not automatically authorize every operation. Parameters have their own modifiability, scope, and persistence rules; inspect ISPDB_MODIFIABLE and documentation before applying a local or global change. Administrative access should make the destination explicit rather than relying on a familiar terminal prompt.

Guided application

In a fictional post-maintenance incident, the listener responds but FUNDS_PDB is MOUNTED. Support confirms destination, investigates opening restrictions, and validates service after the authorized procedure. SAVE STATE can preserve open mode for later restarts, with attention to instance scope.

It does not replace service and application validation. When workloads compete for CPU, Resource Manager can govern priorities and limits. Decisions should use measurements and service deadlines: prioritizing payments may delay reporting without creating additional capacity.

Handover should identify each service owner, expected state, and container-specific diagnosis. Record the expected behavior after restart and the evidence needed before returning traffic.

From connection string to PDB

In a fictional settlement service, alias SETTLE points to service settle_rw. Expected inventory associates that service with SETTLEMENT_PDB. After migration, the application authenticates but queries test data: routing can be wrong even when account and SQL are correct.

Collect the client-requested service, database identity and container observed by the session; compare the PDB property in ALL_SERVICES. CURRENT_SCHEMA helps resolve objects but does not identify the container. Correct the demonstrated association error and validate a representative operation through the application route.

A local SYS test does not establish where the JDBC pool connects. Plan a user-defined application service with management requirements; the PDB default service is intended for administration.

Service state and management ownership

In a Clusterware or Oracle Restart environment, document the resource managing the service and use that environment’s supported workflow. A listener-visible registration does not establish that the management resource exists. Stopping a service does not itself close the PDB; unplugging or dropping does not automatically remove all associated services either.

Include specific resources and consumers in decommissioning while preserving other applications sharing the listener. In a RAC CDB, examine SAVE STATE evidence per relevant instance: this version’s documentation limits its effect to the current instance.

Inspect DBA_PDB_SAVED_STATES and rehearse the authorized sequence before promising reopening. Accept an open PDB, an available service and a business transaction separately. Evidence of one does not establish the other two.

Reading parameters without confusing scopes

A report says the parameter changed, but the old pool retains earlier behavior. Compare V$PARAMETER in the relevant session with V$SYSTEM_PARAMETER at the correct container and instance. ISSES_MODIFIABLE concerns session changes; ISPDB_MODIFIABLE concerns PDB scope; ISSYS_MODIFIABLE indicates when a system change can take effect.

DEFERRED requires observing new sessions. Report an Oracle-adjusted value as the effective value, supported by ISADJUSTED and parameter rules. VALUE and DISPLAY_VALUE can represent the same quantity: 524288 and 512K are not necessarily a discrepancy.

Also record requested value, observed value, intended persistence and how to confirm it after restart. SAVE STATE preserves open mode rather than proving general parameter persistence.

Shares, limits and closing impact

Consider a teaching model with eight shares allocated to payments, valuation and reporting: 4, 2 and 2. When all contend for allocatable capacity with no other limits, proportions are 50%, 25% and 25%. These are not a promise of fixed server percentages under every condition.

Reporting can consume more while others are idle; utilization_limit has the distinct role of imposing a ceiling. A parallelism limit is also not equivalent to limiting all serial-session CPU. For a new PDB without a dedicated directive, check the default directive.

Creating, validating and submitting a plan does not establish that it is active. Collect the effective plan and measure deadlines and contention by service, including the service losing priority. Record a return configuration if redistribution threatens closing.

Worked exercise: six signals from one incident

The following table is synthetic. Before reading the solution, state what each signal establishes and what evidence remains missing. A: settle_rw points to TEST_PDB although connection works; suspend affected traffic under the procedure and correct routing after confirming the destination.

B: the reporting service stopped but its PDB remains READ WRITE; this is not contradictory. C: SAVE STATE is confirmed only on N1; evidence for N2 is missing. D: an old session retains a DEFERRED parameter value; check a new session before declaring failure.

E: reporting uses 65% while contenders are idle and no ceiling applies; this does not prove a share violation. F: the plan was submitted but no active plan was collected; effect remains unproven. The SQL is a proposed inspection sequence, not executed in this exercise.

In production, adapt visibility, privileges and names to the approved context.

SYNTHETIC EXERCISE, NO ORACLE EXECUTION
A settle_rw -> TEST_PDB; expected SETTLEMENT_PDB
B service stopped; PDB READ WRITE
C SAVE STATE observed on N1; N2 unknown
D DEFERRED; old session retains value
E reporting 65%; others idle; no ceiling
F plan submitted; active plan not collected

-- Proposed read-only inspection; not executed for this exercise.
SELECT SYS_CONTEXT('USERENV','SERVICE_NAME') AS service_name,
       SYS_CONTEXT('USERENV','CON_NAME') AS container_name
FROM dual;
SELECT name, pdb FROM all_services WHERE name = 'settle_rw';
SELECT name, open_mode FROM v$pdbs;
SELECT * FROM dba_pdb_saved_states;
SELECT name, value, display_value, issys_modifiable,
       ispdb_modifiable, isadjusted, con_id
FROM v$system_parameter
WHERE name IN ('optimizer_mode', 'resource_manager_plan');
IN PRACTICE

SELECT SYS_CONTEXT('USERENV','CON_NAME') FROM dual; confirms session container but does not replace complete destination identification.

Common pitfalls

Listener as available application; common user as universal access; root changes without impact assessment.

Related topics: PDB lifecycle and isolation · Backup and recovery evidence · Selective recovery and isolated rehearsals

Take this idea with you

Connect routing, container, instance, effective parameter and active plan to application evidence.

Create account

References

Oracle® is a registered trademark of Oracle and/or its affiliates. bigsavant.com is an independent preparation platform and is not affiliated with, associated with, sponsored, authorised or endorsed by Oracle. Content and questions are original, are not official exam questions, and completing our tests does not award or guarantee any certification. Names are used only to identify the subject. All other trademarks belong to their respective owners.