<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Vivek Verma on Medium]]></title>
        <description><![CDATA[Stories by Vivek Verma on Medium]]></description>
        <link>https://medium.com/@vivekverma81?source=rss-2cff36f29f13------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by Vivek Verma on Medium</title>
            <link>https://medium.com/@vivekverma81?source=rss-2cff36f29f13------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 04:10:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vivekverma81/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[From Business Questions to SQL: Building an Oracle Database Assistant with PAF and ORDS MCP]]></title>
            <link>https://medium.com/@vivekverma81/from-business-questions-to-sql-building-an-oracle-database-assistant-with-paf-and-ords-mcp-de262abe868f?source=rss-2cff36f29f13------2</link>
            <guid isPermaLink="false">https://medium.com/p/de262abe868f</guid>
            <category><![CDATA[oracle-database]]></category>
            <dc:creator><![CDATA[Vivek Verma]]></dc:creator>
            <pubDate>Tue, 10 Nov 2026 09:28:25 GMT</pubDate>
            <atom:updated>2026-11-10T09:28:25.789Z</atom:updated>
            <content:encoded><![CDATA[<p>A warehouse manager asks, “Which products need replenishment this week?” The data may already be in Oracle Database, yet answering the question still requires someone to understand the schema, translate the business rule, run SQL, and explain the result.</p><p>A conversational assistant can shorten that path. The engineering challenge is making its answers dependable: the meaning of “needs replenishment” must be explicit, database access must be controlled, and the result must be traceable to an actual query.</p><p>Oracle AI Database Private Agent Factory (PAF) and Oracle REST Data Services (ORDS) MCP provide building blocks for this design. This article presents an illustrative inventory-reporting architecture and validation approach; it does not claim a benchmark or a completed deployment.</p><h3>Give each layer a clear responsibility</h3><p>PAF provides an environment for building agents that combine models with tools and enterprise data. In this pattern, the agent interprets the question and chooses a database tool. ORDS supplies the MCP interface, and Oracle Database executes the request with the privileges of the configured connection.</p><p><strong>User question → PAF agent and approved model → authenticated ORDS MCP tool call → Oracle Database → query result → explanation</strong></p><p>MCP standardizes tool interaction. It does not supply your business definitions or guarantee that generated SQL answers the intended question. See <a href="https://www.oracle.com/database/agent-factory/">Oracle’s Private Agent Factory overview</a> and the <a href="https://docs.oracle.com/en/database/oracle/oracle-rest-data-services/26.3/orddg/using-ords-model-context-protocol-mcp.html">ORDS MCP developer guide</a>.</p><h3>Design the reporting contract first</h3><p>For an initial inventory assistant, define a small reporting surface. An illustrative view, REPORTING.INVENTORY_STATUS_V, could expose product_id, warehouse_id, available_qty, reorder_point, and snapshot_time. Specify whether available quantity excludes reserved stock, how missing values are handled, and how recently the snapshot was refreshed.</p><p>Now the question has a testable meaning: return products whose available quantity is below their reorder point, filtered by an authorized warehouse. Ask for clarification when the warehouse or reporting date is ambiguous.</p><p>This contract is also a boundary for schema documentation. Give the agent approved object names, column meanings, and reporting rules rather than expecting it to infer them from naming conventions.</p><h3>Establish identity and connectivity</h3><p>According to Oracle’s ORDS 26.3 configuration guide, MCP is disabled by default and runs in ORDS Standalone. Its endpoint is /mcp on the ORDS host, rather than a REST-enabled schema URL under /ords.</p><p>Administrators configure JWT validation and the direct database pools available through MCP. Token validation establishes trust in the caller; configured scopes or roles determine which MCP targets that caller can discover. The pool’s database account determines what SQL can actually do.</p><p>Use the <a href="https://docs.oracle.com/en/database/oracle/oracle-rest-data-services/26.3/ordig/configuring-model-context-protocol-mcp.html">configuration guide for your installed release</a> when setting issuer, audience, signing-key discovery, and pool authorization. Avoid copying another environment’s callback URL or token settings.</p><p>For this design, use HTTPS, a reporting account with SELECT access to approved views, and a network path limited to the intended services. Confirm connectivity from the PAF runtime itself. A working browser connection does not demonstrate that the agent’s server can reach ORDS.</p><h3>Connect the agent to the reporting tools</h3><p>Register the ORDS MCP connection using the authentication method supported by your PAF release and identity provider. Complete authorization, then inspect the discovered tools and authorized database targets before attaching them to an agent.</p><p>In Agent Builder, connect the user’s message to an Agent node, select an approved model, attach the MCP tools, and route the agent’s response to chat output. Oracle’s <a href="https://docs.oracle.com/en/database/oracle/agent-factory/26.7/paias/agent-builder-components.html">Agent Builder component documentation</a> describes the node interfaces; labels and options can differ between releases.</p><p>A useful instruction set for this example would be:</p><blockquote><em>Answer inventory-reporting questions using the approved reporting view. Clarify ambiguous warehouse and time references. Retrieve current values through the configured database tools. Explain the applied replenishment rule and report the snapshot time. If a tool fails, state that the answer could not be verified. Do not invent quantities or claim that an inventory update was performed.</em></blockquote><p>These instructions guide behavior. Enforce access restrictions with database grants and platform controls as well.</p><h3>Test meaning, permissions, and failure behavior</h3><p>Use a small synthetic dataset with known answers. Include a product exactly at its reorder point, a warehouse with no shortages, a stale snapshot, and a missing quantity. Compare the assistant’s SQL and results with an independently reviewed reference query.</p><ul><li><strong>Clear request:</strong> “List products below their reorder point in warehouse 12.” Verify the warehouse filter and boundary condition.</li><li><strong>Ambiguous request:</strong> “What should we reorder?” Verify that the assistant requests missing context or explicitly states an approved default.</li><li><strong>Unauthorized request:</strong> Ask for an unrelated schema. Verify that database permissions block access.</li><li><strong>Write attempt:</strong> Ask it to change stock quantities. Verify that the reporting account cannot perform the change, even if the model attempts it.</li><li><strong>Unavailable service:</strong> Interrupt a test connection. Verify that the assistant reports the failure without supplying fabricated results.</li></ul><p>Also check response size, query duration, and what information reaches the selected model. A private agent deployment still requires deliberate decisions about model hosting and data handling.</p><h3>Make the answer reviewable</h3><p>A useful response should include the requested inventory result, the warehouse and snapshot used, and the replenishment rule applied. Keep the executed SQL and tool outcome available for review and operational troubleshooting.</p><p>Natural-language access becomes valuable when a business user can ask a question and a database specialist can explain exactly how the answer was produced. Start with a narrow reporting contract, prove its behavior, and expand the assistant as the definitions and controls become equally clear.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=de262abe868f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Oracle AI Database Assistant: A New Way to Operate OEM 24ai]]></title>
            <link>https://medium.com/@vivekverma81/oracle-ai-database-assistant-a-new-way-to-operate-oem-24ai-84a5a490b84d?source=rss-2cff36f29f13------2</link>
            <guid isPermaLink="false">https://medium.com/p/84a5a490b84d</guid>
            <category><![CDATA[oracle-cloud]]></category>
            <category><![CDATA[oracle-enterprise-manager]]></category>
            <category><![CDATA[oracle]]></category>
            <dc:creator><![CDATA[Vivek Verma]]></dc:creator>
            <pubDate>Sun, 18 Oct 2026 10:59:44 GMT</pubDate>
            <atom:updated>2026-10-18T10:59:44.661Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IuV157TU2XCDJaBJ" /></figure><p>Database operations teams have always had access to enormous amounts of telemetry: target availability, incidents, job history, alert logs, performance metrics, and capacity trends.</p><p>The challenge has rarely been a lack of data. It has been turning that data into answers quickly — especially during an incident.</p><p>Oracle AI Database Assistant in Oracle Enterprise Manager (OEM) 24ai brings a conversational interface to this operational data. Instead of navigating through multiple console pages to begin an investigation, administrators can ask questions in natural language and receive telemetry-driven answers and interactive widgets directly in OEM.</p><h3>From navigation to conversation</h3><p>Consider a typical operational question:</p><ul><li>Which production databases are down?</li><li>What critical incidents are still open?</li><li>Did any backup jobs fail overnight?</li><li>Is a specific database experiencing high workload?</li><li>Are there blocking sessions or alert-log errors?</li><li>Which targets have the highest average active sessions?</li></ul><p>With Oracle AI Database Assistant, these can become direct prompts such as:</p><blockquote><em>“Show open critical incidents for production databases.”</em></blockquote><blockquote><em>“Show failed jobs in the last 24 hours.”</em></blockquote><blockquote><em>“Is database ORCLPROD experiencing high workload?”</em></blockquote><blockquote><em>“Show blocking sessions in database ORCLPROD.”</em></blockquote><p>The goal is not to replace the DBA. The goal is to reduce the time spent locating the relevant operational signals so the DBA can focus on validation, diagnosis, and remediation.</p><h3>What it can help with</h3><p>Oracle AI Database Assistant is focused on Enterprise Manager telemetry and operational information. Key areas include:</p><ul><li>Target status and health</li><li>Incident investigation</li><li>Job execution history</li><li>Monitoring metrics and performance trends</li><li>Interactive visualizations and widgets</li><li>AI-generated operational insights</li></ul><p>For example, a request to list open incidents can return an incidents widget. The user can then filter, refresh, maximize, export, or — where permitted — perform incident-management actions such as acknowledging an incident, assigning an owner, or adding a comment.</p><p>This makes the assistant more useful than a simple chat interface: it provides a natural-language starting point and then hands the operator an interactive OEM object for deeper analysis.</p><h3>A practical incident workflow</h3><p>A DBA investigating an application-performance complaint might follow this flow:</p><ol><li>Ask: “Is database &lt;DB_NAME&gt; experiencing high workload?”</li><li>Review average active sessions and other returned performance metrics.</li><li>Ask: “Show alert log errors for database &lt;DB_NAME&gt; in the last 24 hours.”</li><li>Ask: “Show blocking sessions in database &lt;DB_NAME&gt;.”</li><li>Ask: “Show open incidents for database &lt;DB_NAME&gt;.”</li><li>Ask: “Show failed jobs related to &lt;DB_NAME&gt; in the last 7 days.”</li></ol><p>This sequence does not replace established runbooks. It accelerates the first stage of troubleshooting: gathering context, identifying correlations, and narrowing the next diagnostic step.</p><h3>Why this matters for enterprise operations</h3><p>The value is especially compelling in large estates where teams support hundreds or thousands of targets. The assistant can help reduce the friction of:</p><ul><li>Moving between target, incident, job, and metric views</li><li>Applying time-window and lifecycle filters</li><li>Identifying the highest-impact issues first</li><li>Providing a more approachable interface for operations teams</li><li>Shortening time to initial situational awareness</li></ul><p>It also helps make Enterprise Manager telemetry more accessible to team members who may know the operational question but not the exact dashboard path or report configuration.</p><h3>Important considerations</h3><p>As with any AI-assisted operational capability, the output should be treated as an aid to investigation — not as an unverified final diagnosis.</p><p>A sensible adoption approach is to:</p><ul><li>Start with read-only questions around target status, jobs, metrics, and incidents.</li><li>Validate responses against established OEM views and operational runbooks.</li><li>Use clear target names, time windows, environments, and severity filters in prompts.</li><li>Apply change-related actions only under existing access controls and procedures.</li><li>Confirm configuration, user permissions, LLM-provider connectivity, and data-governance requirements before rollout.</li></ul><p>Oracle AI Database Assistant is currently positioned as a preview capability, so teams should evaluate response quality against their own environments and operating standards.</p><h3>Prerequisites: what is needed before setup</h3><p>Before enabling Oracle AI Database Assistant, organizations should validate a few technical and governance prerequisites.</p><p>First, Enterprise Manager must be running <strong>OEM 24ai Release Update 10 (24.1.0.10) or later</strong>. The capability replaces the earlier Ask EM experience and is focused on Enterprise Manager telemetry and operational data.</p><p>A <strong>Super Administrator</strong> should perform the initial configuration. Oracle recommends that the same administrator create and own the LLM credential, configure the assistant, and grant user access. The assistant is enabled by default, but the OMS property enable_genai_assistant must not have been disabled.</p><p>Next, choose an LLM provider:</p><ul><li><strong>Enterprise Manager provider (recommended):</strong> uses OCI Generative AI.</li><li><strong>OpenAI provider:</strong> supports a customer-managed OpenAI-compatible endpoint.</li><li><strong>Ollama provider:</strong> supports a customer-managed Ollama endpoint.</li></ul><p>For the Enterprise Manager provider, the setup requires:</p><ul><li>An OCI account in a supported OCI Generative AI region.</li><li>An OCI Named Credential, using tenancy and user OCIDs, API-key fingerprint, private key, and passphrase.</li><li>OCI IAM policies that allow access to the GenAI service and EM GenAI sessions.</li><li>Network/proxy connectivity from both the OMS and the administrator’s browser to OCI.</li></ul><p>Example OCI policies:</p><pre>allow group &lt;your-group-name&gt; to manage opsi-genai-em-session in compartment &lt;your-compartment-name&gt;<br>allow group &lt;your-group-name&gt; to use generative-ai-family in compartment &lt;your-compartment-name&gt;</pre><p>For a bring-your-own provider, the team needs the endpoint URL, model name, API key where applicable, and outbound network connectivity from the OMS to that endpoint. Any corporate firewall or proxy configuration must permit that connection.</p><p>Finally, access must be deliberately assigned. Non-Super Administrator users require the EM_ASKEM_ADMIN role plus permission to view the configured LLM credential — and, for the Enterprise Manager provider, the OCI Named Credential. The Setup wizard provides a central place to grant selected users this access.</p><p>Before production rollout, teams should also review what is sent externally: Oracle states that the assistant sends the user prompt and the context required to answer it to the configured LLM provider. This should be assessed against internal security, privacy, and data-governance requirements. <a href="https://docs.oracle.com/en/enterprise-manager/cloud-control/enterprise-manager-cloud-control/24.1/emadm/oracle-ai-database-assistant.html">Oracle AI Database Assistant documentation</a></p><h3>The bigger picture</h3><p>The most useful application of generative AI in operations is often not autonomous action. It is making the right operational context available at the moment it is needed.</p><p>Oracle AI Database Assistant in OEM 24ai is a meaningful step in that direction: a conversational way to explore the telemetry that DBAs and operations teams already rely on.</p><p>For organizations running complex Oracle Database estates, the question is no longer only “Where is the dashboard?” It can increasingly be: “What do I need to know right now?”</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=84a5a490b84d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Migrate a PDB with Oracle Zero-Downtime Migration (ZDM) Refreshable PDB Cloning]]></title>
            <link>https://medium.com/@vivekverma81/migrate-a-pdb-with-oracle-zero-downtime-migration-zdm-refreshable-pdb-cloning-fe5c3ac76631?source=rss-2cff36f29f13------2</link>
            <guid isPermaLink="false">https://medium.com/p/fe5c3ac76631</guid>
            <category><![CDATA[oracle-cloud]]></category>
            <category><![CDATA[oracle]]></category>
            <category><![CDATA[zero-downtime-migration]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[database-administration]]></category>
            <dc:creator><![CDATA[Vivek Verma]]></dc:creator>
            <pubDate>Tue, 06 Oct 2026 10:28:42 GMT</pubDate>
            <atom:updated>2026-10-06T10:28:42.637Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*LxRHaCXTM05SLbLj" /></figure><p>Moving a busy pluggable database (PDB) does not have to mean accepting a long outage. In Oracle Zero Downtime Migration (ZDM), a refreshable PDB clone is an online migration workflow: ZDM creates the target PDB, keeps it current by applying source redo through a database link, and then switches PDB roles during the approved cutover.</p><p>Select it with ZDM_PDB_CLONE_METHOD=REFRESHABLE. It is a strong fit when moving one PDB into a target CDB and production change must continue until the scheduled cutover. This post focuses on that ZDM-operated migration — not a standalone, manually maintained refreshable clone.</p><h3>ZDM migration process</h3><ol><li>ZDM validates source CDB, target CDB, wallet, network, and capacity.</li><li>ZDM creates/reuses database links and creates TARGET PDB as a refreshable clone.</li><li>ZDM pauses after ZDM_CLONE_PDB_TGT; periodic refreshes apply source redo.</li><li>The application is quiesced and ZDM resumes the job.</li><li>ZDM performs the final refresh and PDB switchover.</li><li>TARGET PDB is read/write for applications; SOURCE PDB becomes refreshable.</li></ol><p>The role reversal in step 5 occurs when ZDM_SWITCHOVER=TRUE. It requires Oracle Database 18c or later, matching database-link names and credentials in both directions, and a Secure External Password Store (SEPS) wallet at the source CDB. Do not manually disable refresh on the target if ZDM is expected to perform this switchover.</p><p>The refreshable clone is a physical, redo-based catch-up mechanism — not a writable development clone. Until it is converted, it can only be opened read-only and must be mounted while it refreshes.</p><h3>When this pattern is useful</h3><p>Use a refreshable clone when you need to:</p><p>· Move a PDB into another CDB with a short final outage.</p><p>· Stage a PDB upgrade or platform migration before the business cutover.</p><p>· Rehearse cutover steps against a target that is kept reasonably current.</p><p>· Reduce the amount of data that must be copied in the maintenance window.</p><p>It is not a replacement for Data Guard. The clone is a migration or copy mechanism; it does not provide the continuous protection, automatic failover design, or lifecycle of a standby database.</p><h3>Prerequisites and design checks</h3><p>Confirm the following before building the clone:</p><p>1. Source and target readiness. Both CDBs must use ARCHIVELOG mode and local undo mode. The source PDB must be read/write and able to retain the archived redo needed for the clone to catch up.</p><p>2. Compatible platforms and options. Source and target must have the same endianness, and source database options must match or be a subset of target options. Refreshable cloning requires Oracle Database 12.2 or later.</p><p>3. Database-link paths. The target CDB must reach the source. For ZDM switchover, the source CDB must also reach the target CDB; ZDM can create both links, but an existing-link design requires wallet-managed matching credentials.</p><p>3. Network and naming. Resolve connectivity, listener access, TNS naming, firewall rules, and service registration before the migration window.</p><p>4. Storage mapping. Plan target data-file locations. If source PDB data files can be added after clone creation, set PDB_FILE_NAME_CONVERT in the target CDB so new files map correctly.</p><p>5. Capacity. Size target storage for the full PDB, archive-log staging, growth during the migration period, and recovery headroom.</p><p>6. Security. Validate database-link credentials and, for encrypted PDBs, the target keystore and required keystore password handling. Switchover also requires SEPS at the source CDB.</p><p>7. ZDM rehearsal. Confirm source/target database-version support, character set, application dependencies, and the exact installed ZDM response-file parameters in a non-production rehearsal.</p><h3>Configure ZDM for the refreshable-clone workflow</h3><p>Start from the response-file template bundled with the ZDM release. The migration-specific core is:</p><p><strong><em>PLATFORM_TYPE=EXACS<br>TGT_DB_UNIQUE_NAME=&lt;target_cdb_db_unique_name&gt;<br>MIGRATION_METHOD=ONLINE_PHYSICAL<br>DATA_TRANSFER_MEDIUM=DBLINK<br>ZDM_PDB_CLONE_METHOD=REFRESHABLE<br>ZDM_SRC_PDB_NAME=&lt;source_pdb_name&gt;<br>ZDM_TGT_PDB_NAME=&lt;new_target_pdb_name&gt;<br>ZDM_PDB_REFRESH_INTERVAL=60<br>ZDM_SWITCHOVER=TRUE</em></strong></p><p><strong><em># Optional: ZDM creates the link/user when omitted. If supplied, password is in a wallet. <br># ZDM_TGT_DBLINK_NAME=&lt;link_name&gt; <br># ZDM_TGT_DBLINK_USERNAME=&lt;link_user&gt; <br># ZDM_TGT_DBLINK_PASSWORD_WALLET=&lt;absolute_wallet_path&gt;</em></strong></p><p><strong>DATA_TRANSFER_MEDIUM=DBLINK</strong> is mandatory for every ZDM PDB-clone method. ZDM_PDB_REFRESH_INTERVAL is in minutes (default 60; valid range 1–2999).</p><p>ZDM creates the database links and cloning users automatically by default. For switchover, it creates a second source-side link pointing to the target CDB; the link name and credentials must match. Never put credentials in the response file or shell history.</p><h3>Evaluate, clone, and pause for catch-up</h3><p>First run zdmcli migrate database with your normal source/target authentication arguments and -eval. Resolve all failed checks. Then submit the actual job, pausing after the clone phase:</p><p><strong><em>$ZDM_HOME/bin/zdmcli migrate database \<br>-rsp /secure/path/pdb_refreshable.rsp \<br>-sourcedb &lt;source_cdb_db_unique_name&gt; \<br>-sourcenode &lt;source_db_host&gt; \<br>-targetnode &lt;target_db_host&gt; \<br>-srcauth zdmauth -srcarg1 user:&lt;source_os_user&gt; \<br>-srcarg2 identity_file:&lt;/secure/path/zdm_ssh_key&gt; \<br>-srcarg3 sudo_location:/usr/bin/sudo \<br>-tgtauth zdmauth -tgtarg1 user:&lt;target_os_user&gt; \<br>-tgtarg2 identity_file:&lt;/secure/path/zdm_ssh_key&gt; \<br>-tgtarg3 sudo_location:/usr/bin/sudo \<br>-tdekeystorepasswd -tgttdekeystorepasswd \<br>-eval</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FHsoWEdY_HGrPuGV" /></figure><p>Adapt the authentication and sudo_location arguments to the environment. Use -sourcesid rather than -sourcedb for a single-instance source without Grid Infrastructure.</p><p>After ZDM_CLONE_PDB_TGT, ZDM has created the target PDB and continues periodic refreshes while the job is paused. Record the job ID and monitor it with:</p><p><strong><em>$ZDM_HOME/bin/zdmcli query job -jobid &lt;job_id&gt;</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6ONWCufSN-aMb-EP" /></figure><p><strong>Perform the ZDM cutover</strong></p><p>The final outage should be a controlled sequence, not the first time the process is exercised.</p><p>1. Measure readiness. Confirm successful periodic refreshes, target capacity, application connection details, backups, monitoring, and rollback criteria.</p><p>2. Quiesce the application. Stop writes and background jobs against the source PDB. Capture the approved outage start time.</p><p>3. Resume ZDM. Run zdmcli resume job -jobid &lt;job_id&gt;. ZDM performs the final synchronization and PDB switchover.</p><p>4. Redirect clients. The target PDB is now read/write. Update the application service, connect descriptor, DNS alias, or connection pool configuration.</p><p>5. Validate. Run smoke tests, reconcile critical transactions, verify jobs and integrations, and monitor errors and performance.</p><p>6. Retain fallback deliberately. With ZDM_SWITCHOVER=TRUE, the original source becomes the refreshable PDB. Preserve it and the database-link paths until the stabilization/rollback period ends.</p><h3>Monitoring queries</h3><p>Use the PDB metadata and dynamic performance views to verify configuration and open state. Available refresh-related columns vary by database release, so inspect the view definition in your environment before standardizing a monitoring query.</p><p><strong><em>SELECT * FROM dba_pdbs WHERE pdb_name = ‘SALES_PDB_CLONE’; SELECT name, open_mode FROM v$pdbs WHERE name = ‘SALES_PDB_CLONE’;</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IOyPW0JLKUYck-Ox" /></figure><p>Also monitor alert logs, free space in database and recovery areas, database-link reachability, archived redo availability at the source, and the time taken by each refresh. A steadily increasing refresh duration is an early warning that redo volume, network throughput, or storage performance may threaten the cutover objective.</p><h3>Common failure modes</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*uM5WT9cWcRwacRBQ" /><figcaption>Common failure modes</figcaption></figure><p><strong>Design recommendations</strong></p><p>· Rehearse the full workflow, including the paused catch-up period, ZDM resume, PDB switchover, service switch, and rollback decision point.</p><p>· Keep the refresh interval aligned to the recovery objective, but avoid refreshing so frequently that it competes with source production workload.</p><p>· Define an archive-log-retention policy that covers the longest credible gap between successful refreshes plus a safety margin.</p><p>· Treat the ZDM switchover as a controlled role reversal; document how long the former source will be retained and the criteria for ending fallback.</p><p>· Use a distinct, well-documented target service name so application cutover is simple and reversible at the connection layer.</p><h3>Closing thought</h3><p>Refreshable PDB cloning changes the migration shape: instead of copying the entire database during an outage, the team copies once, continually catches up with redo, and reserves downtime for a final controlled delta. Combined with ZDM orchestration and a rehearsed service cutover, it is one of the most practical ways to make a PDB migration predictable for both database and application teams.</p><h3>References</h3><p>· <a href="https://docs.oracle.com/en/database/oracle/zero-downtime-migration/26.1/zdmug/preparing-for-database-migration.html">Oracle ZDM 26.1: Migration Using PDB Clone</a></p><p>· <a href="https://docs.oracle.com/en/database/oracle/zero-downtime-migration/26.1/zdmug/zero-downtime-migration-physical-migration-response-file-parameters-reference.html">Oracle Zero Downtime Migration documentation: physical migration response-file parameters</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fe5c3ac76631" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Oracle Data Guard at the Pluggable Database (PDB) Level]]></title>
            <link>https://medium.com/@vivekverma81/oracle-data-guard-at-the-pluggable-database-pdb-level-597026102aac?source=rss-2cff36f29f13------2</link>
            <guid isPermaLink="false">https://medium.com/p/597026102aac</guid>
            <category><![CDATA[26ai]]></category>
            <category><![CDATA[dataguard]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[oracle]]></category>
            <dc:creator><![CDATA[Vivek Verma]]></dc:creator>
            <pubDate>Fri, 02 Jan 2026 16:24:26 GMT</pubDate>
            <atom:updated>2026-01-02T16:24:26.440Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/861/1*4KxpjG_5vxeI5qMyrWwIWg.png" /></figure><p>This document outlines the step-by-step procedure to configure Oracle Data Guard at the Pluggable Database (PDB) level. This configuration allows for disaster recovery protection for individual PDBs between two Container Databases (CDBs), where both CDBs remain open in Read-Write mode.</p><p>Use this document to understand how to create, manage, and monitor an Oracle Data Guard broker configuration that provides PDB-level data protection and disaster recovery for one or more pluggable databases.</p><p><strong>Architecture Overview</strong></p><ul><li><strong>Source:</strong> boston (Primary for bos_sales)</li><li><strong>Target:</strong> newyork (Standby for bos_sales)</li><li><strong>Goal:</strong> Protect bos_sales on boston by replicating it to newyork, while newyork continues to host its own active PDBs.</li></ul><p><strong>Prerequisites</strong></p><ul><li>Two Oracle Database environments (Version 26ai for full DG PDB support).</li><li>Network connectivity between hosts (e.g., VCN peering if on cloud).</li><li>Appropriate TDE (Transparent Data Encryption) configuration.</li></ul><p><strong>Task 1: Prepare the Databases</strong></p><p>Perform these steps on <strong>both</strong> Source (boston) and Target (newyork) container databases to ensure they are ready for Data Guard.</p><ol><li><strong>Enable Force Logging and Flashback:</strong></li></ol><p>— Run on boston and newyork</p><pre>ALTER DATABASE FORCE LOGGING;<br>ALTER DATABASE FLASHBACK ON;<br>SQL&gt; col FORCE_LOGGING for a5<br>SQL&gt; set lines 300 pages 100<br>SQL&gt; select name,open_mode,LOG_MODE,FORCE_LOGGING,FLASHBACK_ON,DB_UNIQUE_NAME<br>  2  from gv$database;<br><br>NAME   OPEN_MODE        LOG_MODE     FORCE FLASHBACK_ON      DB_UNIQUE_NAME<br>--------- -------------------- ------------ ----- ------------------ ------------------------------<br>BOSTON   READ WRITE        ARCHIVELOG   YES   YES       boston<br><br>SQL&gt;</pre><p><strong>Configure Standby File Management and Start Broker:</strong></p><p>— Run on boston and newyork</p><pre><br>SQL&gt; ALTER SYSTEM SET standby_file_management=AUTO SCOPE=BOTH;<br><br>System altered.<br><br>SQL&gt; ALTER SYSTEM SET dg_broker_start=TRUE SCOPE=BOTH SID=&#39;*&#39;;<br><br>System altered.<br><br>SQL&gt;</pre><p><strong>Task 2: Configure Network &amp; Wallets</strong></p><p>Data Guard PDB requires secure, passwordless authentication between the CDBs.</p><ol><li><strong>Update tnsnames.ora on both hosts:</strong></li></ol><p>Configure the network configuration files on each host to facilitate connections to the source and target databases.</p><pre>$vi $TNS_ADMIN/tnsnames.ora<br><br>BOSTON=<br>    (DESCRIPTION=<br>      (ADDRESS=<br>        (PROTOCOL=TCP)<br>        (HOST=exadev-uktb7-scan.client.exacsvcn.oraclevcn.com)<br>        (PORT=1521))<br>      (CONNECT_DATA=<br>        (SERVER=DEDICATED)<br>        (SERVICE_NAME=boston.client.exacsvcn.oraclevcn.com)<br>        (FAILOVER_MODE=<br>          (TYPE=select)<br>          (METHOD=basic))))<br>NEWYORK=<br>    (DESCRIPTION=<br>      (ADDRESS=<br>        (PROTOCOL=TCP)<br>        (HOST=exadev-uktb7-scan.client.exacsvcn.oraclevcn.com)<br>        (PORT=1521))<br>      (CONNECT_DATA=<br>        (SERVER=DEDICATED)<br>        (SERVICE_NAME=newyork.client.exacsvcn.oraclevcn.com)<br>        (FAILOVER_MODE=<br>          (TYPE=select)<br>          (METHOD=basic))))</pre><p><strong>2. Create and Configure Wallets:</strong></p><p>Run these commands on both hosts to create a wallet and add credentials for the SYS user.</p><pre>$ mkdir -p $ORACLE_HOME/dbs/wallets<br>$ mkstore -wrl $ORACLE_HOME/dbs/wallets/dgpdb -create<br>Oracle Secret Store Tool Release 23.0.0.0.0 - Production<br>Version 23.0.0.0.0<br>Copyright (c) 2004, 2025, Oracle and/or its affiliates. All rights reserved.<br><br>Enter password:   <br>Enter password again:   <br>$</pre><p>Create wallets that contain the credentials required to create and manage the DG PDB configuration.</p><pre>$ mkstore -wrl $ORACLE_HOME/dbs/wallets/dgpdb -createCredential boston &#39;sys&#39; <br>Oracle Secret Store Tool Release 23.0.0.0.0 - Production<br>Version 23.0.0.0.0<br>Copyright (c) 2004, 2025, Oracle and/or its affiliates. All rights reserved.<br><br>Your secret/Password is missing in the command line <br>Enter your secret/Password:   <br>Re-enter your secret/Password:   <br>Enter wallet password:   <br>$ mkstore -wrl $ORACLE_HOME/dbs/wallets/dgpdb -createCredential newyork &#39;sys&#39;<br>Oracle Secret Store Tool Release 23.0.0.0.0 - Production<br>Version 23.0.0.0.0<br>Copyright (c) 2004, 2025, Oracle and/or its affiliates. All rights reserved.<br><br>Your secret/Password is missing in the command line <br>Enter your secret/Password:   <br>Re-enter your secret/Password:   <br>Enter wallet password:   <br>$ <br>$ mkstore -wrl $ORACLE_HOME/dbs/wallets/dgpdb -listCredential<br>Oracle Secret Store Tool Release 23.0.0.0.0 - Production<br>Version 23.0.0.0.0<br>Copyright (c) 2004, 2025, Oracle and/or its affiliates. All rights reserved.<br><br>Enter wallet password:   <br>List credential (index: connect_string username)<br>2: newyork sys<br>1: boston sys<br>$</pre><p>Validate passwordless connection on both databases. In this tutorial, we have used the same password during database provisioning.</p><ul><li>Configure sqlnet.ora to use the wallet.</li><li>Now, we have to add the wallet on the sqlnet.ora configuration that Oracle will use.</li></ul><pre>vi $TNS_ADMIN/sqlnet.ora<br><br>SQLNET.WALLET_OVERRIDE = TRUE<br>WALLET_LOCATION=<br>    (SOURCE=<br>      (METHOD=FILE)<br>      (METHOD_DATA=(DIRECTORY=/u02/app/oracle/product/23.0.0.0/dbhome_1/dbs/wallets/dgpdb)))<br><br>Validate that client connections to the source and target container <br>databases are now possible using the wallets by issuing the following <br>commands on each host:<br><br>sqlplus /@boston as sysdba<br>sqlplus /@newyork as sysdba</pre><p><strong>Task 3: Configure Data Guard Broker</strong></p><ol><li>Create Broker Configurations:</li></ol><p>Connect to DGMGRL on each host and create the local configuration.</p><p><em>On boston:</em></p><pre>$ dgmgrl /@boston<br>DGMGRL for Linux: Release 23.26.0.0.0 - for Oracle Cloud and Engineered Systems on Fri Jan 2 14:13:46 2026<br>Version 23.26.0.0.0<br><br>Copyright (c) 1982, 2025, Oracle and/or its affiliates.  All rights reserved.<br><br>Welcome to DGMGRL, type &quot;help&quot; for information.<br>Connected to &quot;boston&quot;<br>Connected as SYSDBA.<br>DGMGRL&gt; CREATE CONFIGURATION &#39;Boston&#39; CONNECT IDENTIFIER IS boston;<br>Connected to &quot;boston&quot;<br>Configuration &quot;Boston&quot; created with primary database &quot;boston&quot;<br>DGMGRL&gt; SHOW CONFIGURATION;</pre><p><em>On newyork:</em></p><pre>$ dgmgrl /@newyork <br>DGMGRL for Linux: Release 23.26.0.0.0 - for Oracle Cloud and Engineered Systems on Fri Jan 2 14:14:44 2026<br>Version 23.26.0.0.0<br><br>Copyright (c) 1982, 2025, Oracle and/or its affiliates.  All rights reserved.<br><br>Welcome to DGMGRL, type &quot;help&quot; for information.<br>Connected to &quot;newyork&quot;<br>Connected as SYSDBA.<br>DGMGRL&gt; CREATE CONFIGURATION &#39;NewYork&#39; CONNECT IDENTIFIER IS newyork;<br>Connected to &quot;newyork&quot;<br>Configuration &quot;NewYork&quot; created with primary database &quot;newyork&quot;<br>DGMGRL&gt; SHOW CONFIGURATION;</pre><p>2. Establish Connection Between Configurations:</p><p>Connect to the source (boston) and add the target configuration.</p><pre>$ dgmgrl /@boston<br><br>DGMGRL&gt; ADD CONFIGURATION &#39;NewYork&#39; CONNECT IDENTIFIER IS newyork;<br>DGMGRL&gt; show configuration;<br>DGMGRL&gt; enable configuration all;</pre><p>3. Prepare the Databases for DG PDB</p><p>The Oracle Data Guard broker EDIT CONFIGURATION PREPARE DGPDB command assumes that the source container database and target container database configurations have been configured and are enabled. Unlock and reset the password for the DGPDB_INT account for each of the container databases.</p><pre>SQL&gt; ALTER PLUGGABLE DATABASE ALL OPEN; <br>SQL&gt; show pdbs<br><br>dgmgrl /@boston <br>DGMGRL&gt; EDIT CONFIGURATION PREPARE DGPDB;<br>Enter password for DGPDB_INT account at boston: <br>Enter password for DGPDB_INT account at newyork: <br><br>Prepared Data Guard for Pluggable Database at newyork.<br><br>Prepared Data Guard for Pluggable Database at boston.<br>DGMGRL&gt;</pre><p><strong>Task 4: Add the Standby PDB</strong></p><p>Now you will create the standby version of bos_sales located on newyork.</p><ol><li>Add PDB to Broker Configuration:</li></ol><p>Run this on the Source (boston).</p><pre>dgmgrl /@boston<br>DGMGRL&gt; ADD PLUGGABLE DATABASE &#39;nyc_sales&#39; AT newyork<br>&gt; SOURCE is &#39;bos_sales&#39; AT boston<br>&gt; PDBFileNameConvert is &quot;&#39;+DATAC7/BOSTON&#39;,&#39;+DATAC7/NEWYORK&#39;&quot;<br>&gt; &#39;keystore IDENTIFIED BY &quot;**********&quot;&#39;;<br><br>Pluggable Database &quot;NYC_SALES&quot; added<br>DGMGRL&gt;</pre><p>Verify the PDB on Target (newyork).</p><pre>SQL&gt; sho pdbs<br><br>    CON_ID CON_NAME     OPEN MODE  RESTRICTED<br>---------- ------------------------------ ---------- ----------<br>  2 PDB$SEED     READ ONLY  NO<br>  3 PDB1      READ WRITE NO<br>  4 NYC_SALES     MOUNTED<br>SQL&gt;</pre><p>2. Instantiate the target PDB:</p><p>Identify a list of files on the source PDB.</p><pre>SQL&gt; set lines 1000 pages 1000<br>SQL&gt; col name format a100<br>SQL&gt; select FILE#,NAME from v$datafile where con_id=3;<br><br>     FILE# NAME<br>---------- ---------------------------------------------------------------------------<br>  8 +DATAC7/BOSTON/47674543A9AE64DFE0634B6411AC4863/DATAFILE/system.310.1221479267<br>  9 +DATAC7/BOSTON/47674543A9AE64DFE0634B6411AC4863/DATAFILE/sysaux.299.1221479273<br> 10 +DATAC7/BOSTON/47674543A9AE64DFE0634B6411AC4863/DATAFILE/undotbs1.295.1221479277<br> 11 +DATAC7/BOSTON/47674543A9AE64DFE0634B6411AC4863/DATAFILE/users.304.1221479267<br><br>SQL&gt;</pre><p>Use RMAN to copy the PDB datafiles from boston to newyork.</p><pre>$ rman target sys@boston auxiliary sys@newyork<br><br>Recovery Manager: Release 23.26.0.0.0 - for Oracle Cloud and Engineered Systems on Fri Jan 2 14:51:35 2026<br>Version 23.26.0.0.0<br><br>Copyright (c) 1982, 2025, Oracle and/or its affiliates.  All rights reserved.<br><br>target database Password: <br>connected to target database: BOSTON (DBID=2911717256)<br>auxiliary database Password: <br>connected to auxiliary database: NEWYORK (DBID=302848537)<br><br>RMAN&gt; run {<br>allocate channel ch1 type disk;<br>backup as copy reuse datafile 8,9,10,11 auxiliary format NEW;<br>}run {<br>2&gt; allocate channel ch1 type disk;<br>3&gt; backup as copy reuse datafile 8,9,10,11 auxiliary format NEW;<br>4&gt; <br>}<br>allocated channel: ch1<br>channel ch1: SID=1981 instance=boston1 device type=DISK<br><br>Starting backup at 02-JAN-26<br>channel ch1: starting datafile copy<br>input datafile file number=00011 name=+DATAC7/BOSTON/47674543A9AE64DFE0634B6411AC4863/DATAFILE/users.304.1221479267<br>output file name=+DATAC7/NEWYORK/47674543A9AE64DFE0634B6411AC4863/DATAFILE/users.291.1221490361 tag=TAG20260102T145239<br>channel ch1: datafile copy complete, elapsed time: 00:00:07<br>channel ch1: starting datafile copy<br>input datafile file number=00010 name=+DATAC7/BOSTON/47674543A9AE64DFE0634B6411AC4863/DATAFILE/undotbs1.295.1221479277<br>output file name=+DATAC7/NEWYORK/47674543A9AE64DFE0634B6411AC4863/DATAFILE/undotbs1.268.1221490367 tag=TAG20260102T145239<br>channel ch1: datafile copy complete, elapsed time: 00:00:03<br>channel ch1: starting datafile copy<br>input datafile file number=00009 name=+DATAC7/BOSTON/47674543A9AE64DFE0634B6411AC4863/DATAFILE/sysaux.299.1221479273<br>output file name=+DATAC7/NEWYORK/47674543A9AE64DFE0634B6411AC4863/DATAFILE/sysaux.258.1221490369 tag=TAG20260102T145239<br>channel ch1: datafile copy complete, elapsed time: 00:00:03<br>channel ch1: starting datafile copy<br>input datafile file number=00008 name=+DATAC7/BOSTON/47674543A9AE64DFE0634B6411AC4863/DATAFILE/system.310.1221479267<br>output file name=+DATAC7/NEWYORK/47674543A9AE64DFE0634B6411AC4863/DATAFILE/system.305.1221490373 tag=TAG20260102T145239<br>channel ch1: datafile copy complete, elapsed time: 00:00:03<br>Finished backup at 02-JAN-26<br>released channel: ch1<br><br><br>RMAN&gt;</pre><p><em>Note: Replace 8,9,10,11 with the actual file IDs of your source PDB (check v$datafile).</em></p><p>Verify the datafile names on the target PDB:</p><pre>SQL&gt; alter session set container=NYC_SALES;<br><br>Session altered.<br><br>SQL&gt; select name from v$datafile;<br><br>NAME<br>--------------------------------------------------------------------------------<br>+DATAC7/MUST_RENAME_THIS_DATAFILE_8.4294967295.4294967295<br>+DATAC7/MUST_RENAME_THIS_DATAFILE_9.4294967295.4294967295<br>+DATAC7/MUST_RENAME_THIS_DATAFILE_10.4294967295.4294967295<br>+DATAC7/MUST_RENAME_THIS_DATAFILE_11.4294967295.4294967295<br><br>SQL&gt; </pre><p>Rename datafiles. The target filename can be obtained from the RMAN output logs.</p><pre>SQL&gt; alter database rename file &#39;+DATAC7/MUST_RENAME_THIS_DATAFILE_8.4294967295.4294967295&#39; to &#39;+DATAC7/NEWYORK/47674543A9AE64DFE0634B6411AC4863/DATAFILE/system.305.1221490373&#39;;<br><br>Database altered.<br><br>SQL&gt; alter database rename file &#39;+DATAC7/MUST_RENAME_THIS_DATAFILE_9.4294967295.4294967295&#39; to &#39;+DATAC7/NEWYORK/47674543A9AE64DFE0634B6411AC4863/DATAFILE/sysaux.258.1221490369&#39;;<br><br>Database altered.<br><br>SQL&gt; alter database rename file &#39;+DATAC7/MUST_RENAME_THIS_DATAFILE_10.4294967295.4294967295&#39; to &#39;+DATAC7/NEWYORK/47674543A9AE64DFE0634B6411AC4863/DATAFILE/undotbs1.268.1221490367&#39;;<br><br>Database altered.<br><br>SQL&gt; alter database rename file &#39;+DATAC7/MUST_RENAME_THIS_DATAFILE_11.4294967295.4294967295&#39; to &#39;+DATAC7/NEWYORK/47674543A9AE64DFE0634B6411AC4863/DATAFILE/users.291.1221490361&#39;;<br><br>Database altered.<br><br>SQL&gt; select name from v$datafile;<br><br>NAME<br>----------------------------------------------------------------------------------------------------<br>+DATAC7/NEWYORK/47674543A9AE64DFE0634B6411AC4863/DATAFILE/system.305.1221490373<br>+DATAC7/NEWYORK/47674543A9AE64DFE0634B6411AC4863/DATAFILE/sysaux.258.1221490369<br>+DATAC7/NEWYORK/47674543A9AE64DFE0634B6411AC4863/DATAFILE/undotbs1.268.1221490367<br>+DATAC7/NEWYORK/47674543A9AE64DFE0634B6411AC4863/DATAFILE/users.291.1221490361<br><br>SQL&gt;</pre><p><strong>Task 5: Finalize Configuration</strong></p><ol><li><strong>Import TDE Keys:</strong></li></ol><p>Export the encryption keys from boston (for both Root and PDB) and import them into newyork.</p><ul><li><strong>Source:</strong> ADMINISTER KEY MANAGEMENT EXPORT ENCRYPTION KEYS…</li></ul><pre>SQL&gt; select * from v$encryption_wallet;<br><br>WRL_TYPE      WRL_PARAMETER        STATUS       WALLET_TYPE   WALLET_OR KEYSTORE FULLY_BAC   CON_ID<br>-------------------- --------------------------------------- ------------------------------ -------------------- --------- -------- --------- ----------<br>FILE       /var/opt/oracle/dbaas_acfs/boston/walle OPEN       AUTOLOGIN   SINGLE    NONE     NO         1<br>       t_root/tde/<br><br>FILE            OPEN       AUTOLOGIN   SINGLE    UNITED   NO         2<br>FILE            OPEN       AUTOLOGIN   SINGLE    UNITED   NO         3<br><br>SQL&gt; ADMINISTER KEY MANAGEMENT EXPORT ENCRYPTION KEYS WITH SECRET &quot;export_secret&quot; TO &#39;/tmp/boston_key&#39; FORCE KEYSTORE IDENTIFIED BY &quot;**********&quot;;<br><br>keystore altered.<br><br>SQL&gt; alter session set container=BOS_SALES;<br><br>Session altered.<br><br>SQL&gt; ADMINISTER KEY MANAGEMENT EXPORT ENCRYPTION KEYS WITH SECRET &quot;export_secret&quot; TO &#39;/tmp/bos_sales_key&#39; FORCE KEYSTORE IDENTIFIED BY &quot;**********&quot;;<br><br>keystore altered.<br><br>SQL&gt;</pre><ul><li><strong>Target:</strong> ADMINISTER KEY MANAGEMENT IMPORT KEYS…</li></ul><pre>SQL&gt; ADMINISTER KEY MANAGEMENT IMPORT KEYS WITH SECRET &quot;export_secret&quot; FROM &#39;/tmp/boston_key&#39; force keystore IDENTIFIED BY &quot;**********&quot; WITH BACKUP;<br><br>keystore altered.<br><br>SQL&gt; alter session set container=NYC_SALES;<br><br>Session altered.<br><br>SQL&gt; ADMINISTER KEY MANAGEMENT IMPORT KEYS WITH SECRET &quot;export_secret&quot; FROM &#39;/tmp/bos_sales_key&#39; force keystore IDENTIFIED BY &quot;**********&quot; WITH BACKUP;<br><br>keystore altered.<br><br>SQL&gt;</pre><p><strong>2. Add Standby Redo Logs (SRLs):</strong></p><p>Add Standby Redo Logs to the standby PDB/CDB if they do not exist.</p><p>— On newyork (connected to the standby PDB context if necessary)</p><pre>$ sqlplus /@newyork as sysdba<br><br>SQL&gt; alter session set container=NYC_SALES;<br><br>Session altered.<br><br>SQL&gt; show pdbs<br><br>    CON_ID CON_NAME     OPEN MODE  RESTRICTED<br>---------- ------------------------------ ---------- ----------<br>  4 NYC_SALES     MOUNTED<br>SQL&gt; ALTER DATABASE ADD STANDBY LOGFILE;<br><br>Database altered.<br><br>SQL&gt; ALTER DATABASE ADD STANDBY LOGFILE;<br><br>Database altered.<br><br>SQL&gt; ALTER DATABASE ADD STANDBY LOGFILE;<br><br>Database altered.<br><br>SQL&gt; ALTER DATABASE ADD STANDBY LOGFILE;<br><br>Database altered.<br><br>SQL&gt; ALTER DATABASE ADD STANDBY LOGFILE;<br><br>Database altered.<br><br>SQL&gt; select group#,thread#,bytes from v$standby_log;<br><br>    GROUP#    THREAD#    BYTES<br>---------- ---------- ----------<br>  1     0  104857600<br>  2     0  104857600<br>  3     0  104857600<br>  4     0  104857600<br>  5     0  104857600<br><br>SQL&gt;</pre><p>3. <strong>Enable Redo Apply:</strong></p><p>Start the apply process using DGMGRL.</p><pre>DGMGRL&gt; EDIT PLUGGABLE DATABASE nyc_sales AT newyork SET STATE=&#39;APPLY-OFF&#39;;<br>Succeeded.<br>DGMGRL&gt; EDIT PLUGGABLE DATABASE nyc_sales AT newyork SET STATE=&#39;APPLY-ON&#39;;<br>Succeeded.<br>DGMGRL&gt; enable configuration all;<br>Enabled.<br>DGMGRL&gt;<br><br>Perform Log switch on source database:<br>--------------------------------------<br>SQL&gt; ALTER SYSTEM ARCHIVE LOG CURRENT;<br>SQL&gt; ALTER SYSTEM ARCHIVE LOG CURRENT;<br><br>DGMGRL&gt; SHOW PLUGGABLE DATABASE bos_sales AT boston; <br><br>Pluggable database - BOS_SALES at boston<br><br>  Data Guard Role:     Primary<br>  Con_ID:              3<br>  Active Target:       con_id 4 at newyork<br><br>Pluggable Database Status:<br>SUCCESS<br><br>DGMGRL&gt; SHOW PLUGGABLE DATABASE nyc_sales AT newyork;<br><br>Pluggable database - NYC_SALES at newyork<br><br>  Data Guard Role:     Physical Standby<br>  Con_ID:              4<br>  Source:              con_id 3 at boston<br>  Transport Lag:       1 minute 5 seconds (computed 56 seconds ago)<br>  Apply Lag:           (unknown)<br>  Intended State:      APPLY-ON<br>  Apply State:         Running<br>  Apply Instance:      newyork1<br>  Average Apply Rate:  172 KByte/s<br>  Real Time Query:     OFF<br><br>Pluggable Database Status:<br>SUCCESS<br><br>DGMGRL&gt; VALIDATE PLUGGABLE DATABASE nyc_sales AT newyork;<br><br>  Ready for Switchover:    YES<br><br>  Data Guard Role:         Physical Standby<br>  Apply State:             Running<br>  Standby Redo Log Files:  5 <br>  Source:                  BOS_SALES (con_id 3) at boston<br><br>DGMGRL&gt; </pre><p><strong>Task 6: Validation (Switchover)</strong></p><p>To verify the setup, perform a switchover operation.</p><ol><li><strong>Validate Readiness and Perform a Switchover:</strong></li></ol><pre>$ dgmgrl /@boston<br>DGMGRL&gt; VALIDATE PLUGGABLE DATABASE nyc_sales AT newyork;<br><br>  Ready for Switchover:    YES<br><br>  Data Guard Role:         Physical Standby<br>  Apply State:             Running<br>  Standby Redo Log Files:  5 <br>  Source:                  BOS_SALES (con_id 3) at boston<br><br>DGMGRL&gt; SWITCHOVER TO PLUGGABLE DATABASE nyc_sales AT newyork;<br>Performing switchover NOW, please wait...<br><br>Switchover succeeded, new primary is &quot;nyc_sales&quot;<br>DGMGRL&gt;</pre><p>Open New Primary PDB:</p><p>After switchover, the new primary PDB (on newyork) might be in mounted state. Open it:</p><pre>sqlplus /@newyork<br>SQL&gt; sho pdbs<br><br>    CON_ID CON_NAME     OPEN MODE  RESTRICTED<br>---------- ------------------------------ ---------- ----------<br>  2 PDB$SEED     READ ONLY  NO<br>  3 PDB1      READ WRITE NO<br>  4 NYC_SALES     MOUNTED<br>SQL&gt; alter pluggable database NYC_SALES open;<br><br>Pluggable database altered.<br><br>SQL&gt; show pdbs<br><br>    CON_ID CON_NAME     OPEN MODE  RESTRICTED<br>---------- ------------------------------ ---------- ----------<br>  2 PDB$SEED     READ ONLY  NO<br>  3 PDB1      READ WRITE NO<br>  4 NYC_SALES     READ WRITE NO<br>SQL&gt;<br><br>DGMGRL&gt; show pluggable database nyc_sales AT newyork;<br><br>Pluggable database - NYC_SALES at newyork<br><br>  Data Guard Role:     Primary<br>  Con_ID:              4<br>  Active Target:       con_id 3 at boston<br><br>Pluggable Database Status:<br>SUCCESS<br><br>DGMGRL&gt;</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=597026102aac" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Oracle Database@AWS — Part 3]]></title>
            <link>https://medium.com/@vivekverma81/oracle-database-aws-part-3-124756966b83?source=rss-2cff36f29f13------2</link>
            <guid isPermaLink="false">https://medium.com/p/124756966b83</guid>
            <category><![CDATA[oracle]]></category>
            <category><![CDATA[amazon]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[oracle-cloud]]></category>
            <category><![CDATA[multi-cloud]]></category>
            <dc:creator><![CDATA[Vivek Verma]]></dc:creator>
            <pubDate>Thu, 11 Sep 2025 12:58:00 GMT</pubDate>
            <atom:updated>2025-09-11T12:58:00.779Z</atom:updated>
            <content:encoded><![CDATA[<h3>Oracle Database@AWS — Part 3</h3><p>In the previous article <a href="https://medium.com/@vivekverma81/create-vpc-and-odb-network-for-oracle-database-aws-5ff109457804">Oracle Database@AWS</a>, we discussed how Oracle Database@AWS works and the high level steps involved in provisioning and connecting to Oracle Database@AWS.</p><p>To recap here are the high level steps involved in Provisioning and Connecting to Oracle Database@AWS -</p><ul><li>Step 1. Create VPC and ODB Network</li><li>Step 2. Create ODB peering connection</li><li>Step 3. Create Oracle Exadata Infrastructure through AWS Console</li><li>Step 4. Create Oracle Exadata VM Cluster through AWS Console</li><li>Step 5. Create Oracle Database on an Exadata Database Service@AWS</li><li>Step 6. Connect to Oracle Database@AWS</li></ul><p>In this post we will check the steps involved to Configure DNS in AWS, Create an Oracle Database on Exadata Database Service@AWS and Connect to Oracle Database@AWS.</p><h4><strong>Task 1: Configure DNS in AWS</strong></h4><p>Configure <strong>DNS Resolution</strong></p><ol><li>This section enables apps (EC2, Lambda, ECS etc) to connect to the Oracle database using its Fully Qualified Domain Name (FQDN). As part of this configuration, outbound endpoints will be created in Amazon Route 53 to facilitate DNS resolution.</li><li>Create <strong>Output Endpoint</strong> in <strong>Route 53</strong>.</li></ol><ul><li>Launch the <strong>Route 53</strong> console at <a href="https://console.aws.amazon.com/route53/">https://console.aws.amazon.com/route53/.</a></li><li>From the left pane, select <strong>Outbound Endpoints</strong> under the <strong>Route 53 Resolver</strong> section.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/227/0*oqWnRuR6BnccWWIA.png" /><figcaption>Outbound endpoints</figcaption></figure><ul><li>Click <strong>Create Outbound Endpoint</strong> and enter the following:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*OWZV05977LJcO82c.png" /></figure><ul><li><strong>Endpoint Name</strong> — Name of the Endpoint — <em>myOutboundEndpoint</em></li><li><strong>VPC</strong> — choose the VPC that is peered with ODB network — <em>project-vpc</em></li><li><strong>Security Group</strong> — Select the correct Security Group under that VPC.</li></ul><p>The Security Group should have following rules -</p><p>Set inbound rules to allow TCP and UDP port 53 from the CIDR blocks of all VPCs associated with the resolver rule.</p><p>Set outbound rules to allow TCP and UDP port 53 to the target DNS Listener IP, or to 0.0.0.0/0</p><ul><li><strong>Endpoint Type</strong> — <em>IPV4</em></li><li><strong>Protocol</strong> — <em>Do53</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*n8-NuB5L4OA28yoC.png" /></figure><ul><li>In <strong>IP addresses</strong>, provide the following information:</li><li>Select the same <strong>Availability Zone</strong> where the ODB Network is provisioned — <em>us-east-1b</em></li><li>For <strong>Subnet</strong>, choose subnets that has Route tables that include routes to the IP addresses of the DNS listener on ODB network. Select the Public Subnet that has the routes to ODB Network.</li><li>Click <strong>Create outbound endpoint</strong>.</li></ul><p>Create a <strong>Resolver Rule</strong> for DNS Forwarding</p><ol><li>After creating the Outbound Resolver Endpoint, create a Resolver Rule to forward DNS queries:</li><li>From the left pane on the <strong>Route 53</strong> console, choose <strong>Rules</strong> and click <strong>Create rule</strong>.</li></ol><ul><li>Complete the <strong>Rule for outbound traffic</strong> sections as follows:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rQsnwNuoltGFr9B0.png" /></figure><ul><li><strong>Name</strong>: <em>myRule</em></li><li><strong>Rule type</strong>: <em>Forward</em></li><li><strong>Domain name</strong>: Specify the full domain name from ODB network</li><li><strong>VPCs that use this rule</strong>: Associate it with the VPC from where DNS queries are forwarded to your ODB network — <em>project-vpc</em></li><li><strong>Outbound endpoint</strong>: Choose the outbound endpoint that you created in Task 2 — <em>myOutboundEndpoint</em></li></ul><p>3. Complete the <strong>Target IP addresses</strong> section as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Cw00xVtkK6lktOg9.png" /></figure><ul><li><strong>IP address</strong>: Specify the IP address of the DNS listener IP on your ODB network.</li><li><strong>Port</strong>: <em>53</em></li></ul><p><em>The Route 53 Resolver forwards DNS queries that match this rule and originate from a VPC associated with this rule to the referenced outbound endpoint. These queries are forwarded to the target IP addresses that you specify in the Target IP addresses.</em></p><ul><li><strong>Transmission protocol</strong>: <em>Do53</em></li><li>Click <strong>Submit</strong>.</li></ul><h4>Task 2: Connect to Oracle Database@AWS</h4><ol><li>Refer <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EC2_GetStarted.html#ec2-launch-instance">Launch an EC2 instance</a> and provision an AWS EC2 instance.</li><li>Create the instance in a <em>Public Subnet</em>.</li><li>Connect to the EC2 instance.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*te4eachIiVEnAWcj.png" /></figure><ol><li>Here, we will use <strong>SQLcl</strong> to demonstrate the steps needed to connect to Oracle Database@AWS.</li><li>Download and install SQLcl on AWS EC2 instance.</li><li>You can download SQLcl from <a href="https://download.oracle.com/otn_software/java/sqldeveloper/sqlcl-24.3.2.330.1718.zip">SQLcl download link</a></li><li>After downloading SQLcl unzip the zip file.</li></ol><pre>wget https://download.oracle.com/otn_software/java/sqldeveloper/sqlcl-24.3.2.330.1718.zip <br>unzip sqlcl-24.3.2.330.1718.zip</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*e-HrvbDyCR3TEAUy.png" /></figure><p><em>SQLcl requires Java 11 and above to run. Check the java version and install Java 11 or above if required.</em></p><p>Obtain the SCAN DNS name and Database Service Name to connect to the database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Yvuc8T26F4m0kdti.png" /></figure><p>Connect to the database from EC2 instance using SQLcl.</p><pre>$ cd sqlcl/bin $ ./sql username@scan-dns-name:1521/db-service-name</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*S3fN7iGAo3_N8LPB.png" /></figure><h4>Task 3: Connect to Oracle Database@AWS VM Cluster</h4><ol><li>Connect to the EC2 instance.</li><li>Obtain the DNS Name of the VM Machine to connect to the cluster VM.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7KhUkD3b9Ok8yz2A.png" /></figure><p>ssh to the VM. Connect using the key that was used while creating the VM cluster.</p><pre>$ ssh -i exa.key opc@exadb-hopao1.client.lpiif6.oraclevcn.com <br>$ hostname <br>$ sudo su - oracle <br>$ ls -ltr <br>$ . ./db_name.env <br>$ sqlplus &#39;/as sysdba&#39; <br>SQL&gt; sho pdbs</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Qig4Re3zh_gRaKrr.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=124756966b83" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Oracle Database@AWS — Part 2]]></title>
            <link>https://medium.com/@vivekverma81/oracle-database-aws-part-2-a92a35570f1e?source=rss-2cff36f29f13------2</link>
            <guid isPermaLink="false">https://medium.com/p/a92a35570f1e</guid>
            <category><![CDATA[database]]></category>
            <category><![CDATA[amazon]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[oracle]]></category>
            <category><![CDATA[oracle-cloud]]></category>
            <dc:creator><![CDATA[Vivek Verma]]></dc:creator>
            <pubDate>Wed, 03 Sep 2025 16:24:38 GMT</pubDate>
            <atom:updated>2025-09-03T16:25:25.442Z</atom:updated>
            <content:encoded><![CDATA[<h3>Oracle Database@AWS — Part 2</h3><p>In the previous article <a href="https://medium.com/@vivekverma81/create-vpc-and-odb-network-for-oracle-database-aws-5ff109457804">Oracle Database@AWS</a>, we discussed how Oracle Database@AWS works and the high level steps involved in provisioning and connecting to Oracle Database@AWS.</p><p>To recap here are the high level steps involved in Provisioning and Connecting to Oracle Database@AWS -</p><ul><li>Step 1. Create VPC and ODB Network</li><li>Step 2. Create ODB peering connection</li><li>Step 3. Create Oracle Exadata Infrastructure through AWS Console</li><li>Step 4. Create Oracle Exadata VM Cluster through AWS Console</li><li>Step 5. Create Oracle Database on an Exadata Database Service@AWS</li><li>Step 6. Connect to Oracle Database@AWS</li></ul><p>In this post we will check the steps involved to provision Oracle Exadata Infrastructure via AWS Console and Oracle Exadata VM Cluster on top of that Infra.</p><p><strong>Provision Oracle Exadata Infrastructure</strong></p><ol><li>Launch the Oracle Database@AWS console at <a href="https://console.aws.amazon.com/odb/">https://console.aws.amazon.com/odb/.</a></li><li>From the left pane, choose <strong>Exadata infrastructures</strong> and click <strong>Create Exadata infrastructure</strong>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/227/0*ViHDRsNozsrK9Nhw.png" /><figcaption>Oracle Database@AWS</figcaption></figure><p>3. For <strong>Exadata infrastructure name</strong>, enter <strong>my-exa-infra</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*20FFNxH_6Jcr5Sk8.png" /></figure><p>For Availability Zone, choose <strong>us-east-1a</strong>. Click <strong>Next</strong></p><p>4. For <strong>Exadata system model</strong>, choose either Exadata.X9M or Exadata.X11M. Select <strong>Exadata.X11M</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*iUVyfp375jpOpMlt.png" /></figure><p>For <strong>Database server type</strong>, choose the database server model type of your Exadata infrastructure. Currently, the only choice is X11M.</p><p>For <strong>Storage server type</strong>, choose the storage server model type of your Exadata infrastructure. Currently, the only choice is X11M-HC.</p><p>For <strong>Database servers</strong>, leave the default of 2. Each database server supports 126 compute units, which are measured in ECPUs for Exadata X11M and OCPUs for Exadata X9M. The total compute count changes as you change the number of servers.</p><p>For <strong>Storage servers</strong>, leave the default of 3. Each storage server provides 64 TB. The total TB of storage changes as you change the number of servers.</p><p>Click <strong>Next</strong>.</p><p>5. Leave the defaults for <strong>Maintenance settings</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*CBZMeXuHMs5pi8BN.png" /></figure><p><em>Maintenance Window Type has following options:</em></p><p><em>Oracle-managed schedule — Oracle determines the optimal time for maintenance activities.</em></p><p><em>Customer-managed schedule — You specify when maintenance activities can occur.</em></p><p><em>Patching mode, has following options:</em></p><p><em>Rolling — Updates are applied to one node at a time, allowing the database to remain available during patching.</em></p><p><em>Non-rolling — Updates are applied to all nodes simultaneously, which may require downtime.</em></p><p>Click <strong>Next</strong>.</p><p>6. Review your infrastructure settings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*m7jO9CUp45_sGzug.png" /></figure><p>Click <strong>Create Exadata infrastructure</strong>.</p><p><strong>Provision Oracle Exadata VM Cluster</strong></p><ol><li>Launch the <a href="https://console.aws.amazon.com/odb/">Oracle Database@AWS console</a>.</li><li>From the left pane, choose <strong>Exadata VM clusters</strong> and click <strong>Create VM cluster</strong>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/227/0*RY-gRIaQgWAUlXii.png" /></figure><p>3. For <strong>VM cluster name</strong>, enter <strong>my-vm-cluster</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fjGTV-N-E1DVNTMg.png" /></figure><p>Leave blank for <strong>Grid Infrastructure cluster name</strong> as it is optional.</p><p>For <strong>Time zone</strong>, select the default value — <strong>UTC</strong>.</p><p>For <strong>License options</strong>, choose <strong>Bring Your Own License (BYOL)</strong>.</p><p>Click <strong>Next</strong>.</p><p>5. Configure Exadata infrastructure settings as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*z-OlBXTRH5vS1zx7.png" /></figure><p>For Infrastructure, choose the following:</p><p>For <strong>Exadata infrastructure name</strong>, choose the infrastructure created in previous lab <strong>my-exa-infra</strong>.</p><p>For <strong>Grid Infrastructure version</strong>, select the default value.</p><p>For <strong>Exadata image version</strong>, select the default value.</p><p>For <strong>Database servers</strong>, select both database servers to host your VM cluster.</p><p>6. For Configuration, do the following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tnbKJgiSIH6bw8fO.png" /></figure><p>Choose the <strong>OCPU core count</strong>, <strong>Memory</strong>, and <strong>Local storage</strong> for each VM, or accept the defaults.</p><p>Choose the total amount of <strong>Exadata storage</strong> for the VM cluster, or accept the default.</p><p>For <strong>Storage allocation</strong>, leave all as defaults.</p><p>Click <strong>Next</strong>.</p><p>7. Configure connectivity as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0WYSF3Ra2JymJ0j0.png" /></figure><p>For <strong>ODB network</strong>, select the ODB network created earlier — <strong>my-odb-network</strong>.</p><p>For <strong>Host name prefix</strong>, enter a prefix for the VM cluster. Enter <strong>exadb</strong>.</p><p>Leave the default value of <strong>1521</strong> for <strong>SCAN listener port (TCP/IP)</strong>.</p><p>For SSH key pairs, enter the public key portion of one or more key pairs used for SSH access to the VM cluster.</p><p>Click <strong>Next</strong>.</p><p>8. Leave all defaults for <strong>Configure diagnostics and tags</strong>. Click <strong>Next</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gCNcxIAKWTZ6Pct-.png" /></figure><p>Review your settings and click <strong>Create VM cluster</strong>.</p><p>In the next post we’ll review the steps to provision a database in Oracle Database@AWS and connect to that database.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a92a35570f1e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Oracle Database@AWS]]></title>
            <link>https://medium.com/@vivekverma81/create-vpc-and-odb-network-for-oracle-database-aws-5ff109457804?source=rss-2cff36f29f13------2</link>
            <guid isPermaLink="false">https://medium.com/p/5ff109457804</guid>
            <category><![CDATA[oracle]]></category>
            <category><![CDATA[oracle-cloud]]></category>
            <category><![CDATA[google]]></category>
            <category><![CDATA[oracle-database]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <dc:creator><![CDATA[Vivek Verma]]></dc:creator>
            <pubDate>Mon, 01 Sep 2025 16:07:28 GMT</pubDate>
            <atom:updated>2025-09-02T11:24:25.594Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>What is Oracle Database@AWS?</strong></p><p>Oracle Database@AWS is an offering that allows customers to access Oracle Exadata infrastructure, managed by Oracle Cloud Infrastructure (OCI), directly within an Amazon Web Services (AWS) data center. This service is designed to provide a low-latency connection between your applications running on AWS and your Oracle databases, which reside on the Exadata infrastructure.</p><p><strong>Key Features and Concepts</strong></p><ul><li><strong>Low-Latency Connectivity:</strong> The service enables private network connections between an AWS Virtual Private Cloud (VPC) and the Oracle Database network (ODB network), ensuring minimal latency for database-driven applications.</li><li><strong>Managed Exadata Infrastructure:</strong> Oracle handles the management of the Oracle Exadata Database Service on Dedicated Infrastructure and Oracle Autonomous Database on Dedicated Exadata Infrastructure, freeing you from the complexities of managing the underlying hardware.</li><li><strong>Integration with AWS Services:</strong> Oracle Database@AWS is designed to work seamlessly with various AWS services to enhance application availability, scalability, and security. These integrations include:</li><li><strong>Onboarding and Management:</strong> To get started, you request a private offer through the AWS Marketplace and complete an activation process that links your AWS account to your OCI tenancy. The service is then managed through the AWS Management Console.</li><li><strong>Pricing:</strong> The service is purchased from the AWS Marketplace.</li></ul><p><strong>How It Works</strong></p><p>The core of Oracle Database@AWS is the <strong>ODB network</strong>, a private network that hosts OCI infrastructure within an AWS Availability Zone (AZ). This network is peered with your Amazon VPC, allowing traffic to be routed privately between the two. The process involves creating the ODB network, an Oracle Exadata infrastructure, and then provisioning VM clusters and Exadata databases.</p><p>High level steps involved to Provision and Connect to Oracle Database@AWS -</p><ul><li>Step 1. Create VPC and ODB Network</li><li>Step 2. Create ODB peering connection</li><li>Step 3. Create Oracle Exadata Infrastructure through AWS Console</li><li>Step 4. Create Oracle Exadata VM Cluster through AWS Console</li><li>Step 5. Create Oracle Database on an Exadata Database Service@AWS</li><li>Step 6. Connect to Oracle Database@AWS</li></ul><p>In this post let’s go thru the first two steps of creating ODB Network and configuring ODB Peering.</p><p><strong>ODB Network</strong></p><p>The ODB network is a private network, and by default, doesn’t have connectivity to AWS VPCs, on-premises network or the internet. To connect to Exadata Databases in the ODB network privately, customers can set up a peering connection between one VPC and the ODB network. This peering between ODB Network and the VPC is referred to as ODB peering. We will perform ODB peering in the next lab.</p><p><strong>Create VPC and ODB Network for Oracle Database@AWS</strong></p><ol><li>Launch the <a href="https://console.aws.amazon.com/odb/">Oracle Database@AWS</a>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1HNFiWHxwLTrWzOe.png" /><figcaption>Oracle Database@AWS — Get Started</figcaption></figure><p>2. Click <strong>Dashboard</strong> to go to the console.</p><p>3. From the left pane, click <strong>ODB networks</strong> and click <strong>Create ODB network</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*79yOrasIcPJi3RET.png" /><figcaption>ODB Networks</figcaption></figure><p>4. For <strong>ODB network name</strong>, enter <strong>my-odb-network</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Qn_-uLS2g28ViHK6.png" /><figcaption>Create ODB Network</figcaption></figure><p>For <strong>Availability Zone</strong>, choose an AZ name. Select <strong>us-east-1a</strong>.</p><p>For <strong>Client subnet CIDR</strong>, specify a CIDR range for the client connections. Enter <strong>10.1.0.0/24</strong>.</p><p>For <strong>Backup subnet CIDR</strong>, specify a CIDR range for the backup connections. Enter <strong>10.2.0.0/25</strong>.</p><p>For <strong>DNS configuration</strong>, choose <strong>Default</strong>.</p><p>Leave the rest as defaults and click <strong>Create ODB Network</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Gqf4GzMnhPBcVrVe.png" /></figure><p>5. Verify when the ODB Network status is <em>Available</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*I_cbxb8zgzIM8ChF.png" /><figcaption>ODB Network</figcaption></figure><h4>Create an ODB peering connection in Oracle Database@AWS</h4><ol><li>Launch Oracle Database@AWS console at <a href="https://console.aws.amazon.com/odb/">https://console.aws.amazon.com/odb/.</a></li><li>In the navigation pane, choose <strong>ODB peering connections</strong> and click on <strong>Create ODB peering connections</strong>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/227/0*VFoEgnJEX7IZ1LG3.png" /></figure><p>3. For <strong>ODB peering name</strong>, enter <strong>my-odb-peering</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*r7Oijr11xBlqXF4K.png" /></figure><p>For <strong>ODB Network</strong>, choose the ODB network that was created in Task 2 — <strong>my-odb-network</strong>.</p><p>For <strong>Peer Network</strong>, choose the Amazon VPC to peer with your ODB network. Select the VPC ID of the VPC that was created in Task 1.</p><p>Click <strong>Create ODB peering connection</strong>.</p><h4>Update VPC Route Rules</h4><ol><li>After creating an ODB peering connection, configure your Amazon VPC route tables to route traffic to the peered ODB network. For more information, see <a href="https://docs.aws.amazon.com/odb/latest/UserGuide/configuring.html#configure-routes">Configuring VPC route tables for ODB peering</a>.</li><li>To update a route table, use the AWS CLI ec2 <em>create-route command</em>. The following example updates Amazon VPC route tables.</li></ol><pre>Copyaws ec2 create-route \<br>    --route-table-id rtb-1234567890abcdef \<br>    --destination-cidr-block 10.0.0.0/16 \<br>    --odb-network-arn arn:aws:odb:us-east-1:111111111111:odb-network/odbnet_1234567890abcdef</pre><p>In the next post we will go thru the process of provisioning Oracle Exadata Infrastructure and Oracle Exadata VM Cluster.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5ff109457804" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Replicate data from Oracle Database to OCI Object Storage using OCI GoldenGate and Oracle…]]></title>
            <link>https://medium.com/@vivekverma81/replicate-data-from-oracle-database-to-oci-object-storage-using-oci-goldengate-and-oracle-de92608abfdf?source=rss-2cff36f29f13------2</link>
            <guid isPermaLink="false">https://medium.com/p/de92608abfdf</guid>
            <dc:creator><![CDATA[Vivek Verma]]></dc:creator>
            <pubDate>Wed, 02 Nov 2022 17:44:51 GMT</pubDate>
            <atom:updated>2022-11-02T17:59:50.188Z</atom:updated>
            <content:encoded><![CDATA[<h3>Replicate data from Oracle Database to OCI Object Storage using OCI GoldenGate and Oracle GoldenGate Service for Big Data</h3><p>Oracle Cloud Infrastructure GoldenGate is a fully managed, native cloud service that moves data in real-time, at scale. OCI GoldenGate processes data as it moves from one or more data management systems to target databases. You can also design, run, orchestrate, and monitor data replication tasks without having to allocate or manage any compute environments.</p><p>In Oracle Cloud World, Oracle announced 30+ new data platforms to OCI GoldenGate. These new connectors expand the existing Oracle Database replication to non-Oracle replication and extend connectivity to Open-Source and 3rd party technologies and on the major cloud provider platforms.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=de92608abfdf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Replicate data from Oracle Database to Oracle Autonomous Database using OCI Golden Gate]]></title>
            <link>https://medium.com/@vivekverma81/replicate-data-from-oracle-database-to-oracle-autonomous-database-using-oci-golden-gate-33262bd115dd?source=rss-2cff36f29f13------2</link>
            <guid isPermaLink="false">https://medium.com/p/33262bd115dd</guid>
            <dc:creator><![CDATA[Vivek Verma]]></dc:creator>
            <pubDate>Mon, 31 Oct 2022 15:27:46 GMT</pubDate>
            <atom:updated>2022-10-31T15:37:56.712Z</atom:updated>
            <content:encoded><![CDATA[<p>Oracle Cloud Infrastructure GoldenGate is a fully managed, native cloud service that moves data in real-time, at scale. OCI GoldenGate processes data as it moves from one or more data management systems to target databases. You can also design, run, orchestrate, and monitor data replication tasks without having to allocate or manage any compute environments.</p><p>In this blog post, I’ll cover migrating and replicating data from On-Prem Oracle Database to Oracle Autonomous Database using Oracle Cloud Infrastructure Golden Gate.</p><p>Source Database — Oracle Database 19c Pluggable Database</p><p>Target Database — Oracle Autonomous Database 19c</p><p><strong>Steps :</strong></p><ol><li>Register Source and Target Database under OCI GG.</li><li>Create OCI Golden Gate Deployment</li><li>Pre-steps on Source and Target Database</li><li>Load Initial data from Source to Target using export/import</li><li>Create OCI Golden Gate Extract and Replicat</li></ol><p>To access Oracle Cloud Infrastructure Golden Gate login to Oracle Cloud Console and click on the hamburger menu on the left. Under “Oracle Database” click “GoldenGate”:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wJy4V7NWEaywSaLnhen__Q.png" /></figure><p><strong>Register Source and Target Database under OCI GG</strong></p><p>Register Database by clicking on “Register Database” on the Registered Databases page. As the source database is a pluggable database, register both CDB and PDB :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/932/1*cggUAY3zN4ml4WFNTEAWhw.png" /></figure><p>Register Target Autonomous Database :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/932/1*3GoytPawbd4QNTOyQb30Jg.png" /></figure><p><strong>Create OCI Golden Gate Deployment</strong></p><p>Create an OCI GG deployment by clicking on “Create Deployment” on the “Deployments” page :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sBXgxe5HmnQdjVP1r7IvCQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*48CsjhHkTO5YurfLtl1SyA.png" /></figure><p>This will create an OCI Golden Gate Deployment with a Private IP Address.</p><p>Please ensure to open the port on your On-Prem network to accept connections from the IP address listed for OCI GG.</p><p><strong>Pre-Steps on Source Database:</strong></p><p>1. Create GoldenGate Users on the Source Database</p><p>On the source database, create a GoldenGate administration user, for example ggadmin.</p><p>If the source database is multitenant, create the user in the PDB, and also create a different user in the CDB root, for example c##ggadmin.</p><p>Grant required privileges to ggadmin and c##ggadmin users :</p><p><em>EXEC dbms_goldengate_auth.GRANT_ADMIN_PRIVILEGE(‘ggadmin’);</em></p><p><em>EXEC dbms_goldengate_auth.GRANT_ADMIN_PRIVILEGE(‘c##ggadmin’,container=&gt;’all’);</em></p><p>2. Configure the streams pool with the initialization parameter STREAMS_POOL_SIZE. Set STREAMS_POOL_SIZE to at least 2GB</p><p>3. Check the GLOBAL_NAMES parameter. If it’s set to true, change it to false.</p><p><em>sqlplus &gt; alter system set global_names=false</em></p><p>4. Enable ARCHIVELOG if it is not already enabled.</p><p>5. Enable logging:</p><p><em>sqlplus &gt; ALTER DATABASE ADD SUPPLEMENTAL LOG DATA;</em></p><p><em>sqlplus &gt; ALTER DATABASE FORCE LOGGING;</em></p><p>6. In a multitenant environment, if you are migrating a PDB, enable GoldenGate Replication on the CDB.</p><p><em>sqlplus &gt; ALTER SYSTEM SET ENABLE_GOLDENGATE_REPLICATION=TRUE SCOPE=BOTH;</em></p><p><strong>Pre-Steps on Target Autonomous Database:</strong></p><p>1. Unlock the GoldenGate User on the Target Database</p><p><em>ALTER USER ggadmin identified by ggadmin_password account unlock;</em></p><p>2. Check the GLOBAL_NAMES parameter. If it’s set to true, change it to false.</p><p><strong>Initial Load — Load data from Source to Target using export/import</strong></p><p>1. Check the current SCN at the Source database :</p><p><em>sqlplus&gt; select current_scn from v$database;</em></p><p>2. Create or verify DBA Directory in the source database.</p><p>3. Export the schemas from Source Pluggable Database :</p><p><em>expdp system/manager@newpdb dumpfile=export%u.dmp logfile=exp_dmp.log directory=EXPDIR SCHEMAS=AR,AP exclude=statistics,cluster,indextype,db_link filesize=5G</em></p><p>4. Transfer the dump files to Oracle Cloud Infrastructure Object Storage. You can use OCI CLI to transfer the files from the file system to OCI. <a href="https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/cliinstall.htm">OCI CLI Quickstart</a></p><p>5. Store your Cloud Object Storage credential in Autonomous database by using DBMS_CLOUD.CREATE_CREDENTIAL.</p><p>6. Import data into Autonomous Database.</p><p><em>impdp admin@adb_high directory=data_pump_dir credential=def_cred_name dumpfile=https://objectstorage.us-ashburn-1.oraclecloud.com/n/namespace-string/b/bucketname/o/export%u.dmp parallel=16 remap_tablespace=%:DATA exclude=cluster,indextype,db_link</em></p><p><strong>OCI GoldenGate Extract and Replicat</strong></p><p>Create Oracle Cloud Infrastructure GoldenGate Extract and Replicat processes to replicate changes from Source Database to Target Database.</p><ol><li><strong>Golden Gate Extract</strong></li></ol><p>From the “Deployment details” page click on “Launch Console” to launch the OCI Golden Gate Admin Service Page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*GAfKHMRNLCi9MmdkSoR9SQ.png" /></figure><p>Click on the “+” sign next to “Extracts” to create extract.</p><p>Create an “Integrated Extract”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*fJOEVwWlnAEyoWkuelWehw.png" /></figure><p>Enter details of the extract process –</p><p>Process Name: Name of the extract process</p><p>Trail Name: Name of the trail file</p><p>Credential Domain: Select “OracleGoldenGate”</p><p>Credential Alias: Select the Source CDB — SourceCDB</p><p>Under Registration Information -&gt; Register to PDBs: Select the Source PDB — NEWPDB</p><p>Enter the parameter details under Parameter File:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*Aml0QJdAepM4uG22sZMH9g.png" /></figure><p>Start the extract with Options:</p><p>“Start Point”: Select “After CSN”</p><p>CSN : Enter the SCN number as noted from Source Database before export.</p><p>This will start the extract:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*0yoRcw4yYUQTn4NZQtTtoA.png" /></figure><p><strong>2. Golden Gate Replicat</strong></p><p>Click on the “+” sign next to “Replicats” to create replicat.</p><p>Select “Parallel Replicat” and “Nonintegrated”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*IsjsjDZzhJxI8a0uHBddaA.png" /></figure><p>Enter the Replicat details :</p><p>Process Name: Name of the replicat process</p><p>Credential Domain: OracleGoldenGate</p><p>Credential Alias: Target Autonomous Database — TargetADB</p><p>Trail Name: Name of trail file (this should be same as specified for extract)</p><p>Checkpoint Table: Select the Checkpoint Table</p><p>Enter the parameter details under Parameter File:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*klX7f3OuXSkxCjtfuBT2ow.png" /></figure><p>Start the replicat.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*sGekbPD7pQ28dPQCIAYSRg.png" /></figure><p>Perform changes on the Source Database and confirm that the changes are getting replicated to Target Autonomous Database.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=33262bd115dd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Migrate Data across Oracle Base Database Service instances in Different Regions using DMS]]></title>
            <link>https://medium.com/@vivekverma81/migrate-data-across-oracle-base-database-service-instances-in-different-regions-using-dms-4ba0be11b48?source=rss-2cff36f29f13------2</link>
            <guid isPermaLink="false">https://medium.com/p/4ba0be11b48</guid>
            <dc:creator><![CDATA[Vivek Verma]]></dc:creator>
            <pubDate>Wed, 07 Sep 2022 17:49:30 GMT</pubDate>
            <atom:updated>2022-09-07T17:49:30.011Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://docs.oracle.com/en/cloud/paas/database-migration/dmsus/">Oracle Cloud Infrastructure Database Migration (DMS)</a> enables you to migrate data from an Oracle Database Cloud Service (DBCS) instance to another DBCS instance located in a different region. Oracle Cloud Infrastructure Database Migration is a fully-managed service that provides a high-performing, self-service experience for migrating databases from On-Premise to Oracle Cloud Infrastructure (OCI) and for migrating databases across regions. It provides logical online and offline migration for enterprise-level database migration with minimal downtime. Oracle Cloud Infrastructure Database Migration is based on the industry-leading <a href="https://www.oracle.com/database/technologies/rac/zdm.html">Oracle Zero Downtime Migration</a> engine utilizing <a href="https://www.oracle.com/integration/goldengate/">Oracle GoldenGate replication</a>.</p><p>In this blog post, we’ll go through the steps to migrate an existing Oracle Database running on VM DB System to an existing Oracle Database running on VM DB System in another region. We’ll use Oracle Cloud Infrastructure Database Migration (DMS) to migrate the database from one region to another.</p><p>To enable data transfer between two regions we need to connect both source and target VCNs where the databases reside via remote VCN peering. Remote VCN peering is the process of connecting two VCNs in different regions (but in the same tenancy ). The peering allows the VCNs’ resources to communicate using private IP addresses without routing the traffic over the internet or through your on-premises network. Without peering, a given VCN would need an internet gateway and public IP addresses for the instances that need to communicate with another VCN in a different region. Refer to the <a href="https://docs.oracle.com/en-us/iaas/Content/Network/Tasks/remoteVCNpeering.htm">documentation</a> for setting up Remote Peering between the two VCNs.</p><p>Oracle Cloud Infrastructure Database Migration (DMS) can be used for both Online and Offline Migration. Oracle GoldenGate replication enables you to perform an online migration with Oracle Cloud Infrastructure Database Migration. In this blog post we will be performing Offline Migration using Oracle Data Pump.</p><p><strong>Steps already completed for this migration</strong> :</p><p>1. Source Database running on Oracle Base Database Service in Phoenix Region.<br>2. Target Database running on Oracle Base Database Service in Ashburn Region.<br>3. Remote peering setup between the two regions.</p><p><strong>Points to consider before configuring Oracle Cloud Infrastructure Database Migration (DMS)</strong> :</p><p>1. Register the Source Database in DMS by manually configuring the database. Do not register by selecting the DBCS instances listed. <br>2. The Target Database must be in the same region as DMS.<br>3. Databases configured manually cannot be used as target databases in migrations.<br>4. If the source database is a multitenant container database (CDB), and you are performing an online migration, you must create two registration entries for the source database: one for the PDB and one for the CDB. For offline migrations, only the PDB registration is required.<br>5. Create only one registered database resource for the target database.</p><p><strong>Migration Steps</strong> :</p><p><strong>1. Oracle Base Database Service Source database provisioned in Phoenix Region</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wb2kKJnE3RW8Ypdz1bu-cw.jpeg" /></figure><p><strong>2. Oracle Base Database Service Target database provisioned in Ashburn Region</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2RC3M_thptudGPatrjRZDg.jpeg" /></figure><p><strong>3. Launch DMS service in Target Database region — Ashburn — to register databases.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vWzytDEQawUhJUT--YYIeA.jpeg" /></figure><p><strong>4. Register Source Database</strong></p><p>Register Source CDB by manually configuring the database. Specify the Database VM Host IP address and CDB Service name to configure the database. As, the databases are in a private subnet, select the subnet for private endpoint. Specify the private subnet from the VCN that has been peered. Enter the Database credentials to connect to the database and click on Register to register the database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IYrWuWCCwEvGUEi-bN6-0Q.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YAUSj6dYAgPGew_thy9G3A.jpeg" /></figure><p>Similarly, register Source PDB by manually configuring the database. Specify the Database VM Host IP address and PDB Service name to configure the database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TCME43RMyoo6Ma5b_EZxYQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BRiIxDmQuq-3aXJwf5gdmg.jpeg" /></figure><p><strong>5. Register Target Database</strong></p><p>Register the target database by selecting the database rather than manually configuring it. Select the “Database Type” as “DB system database (Bare Metal, VM, Exadata)” and then select the source database provisioned in Ashburn region. When specifying the “Connect String” ensure that the string contains an IP address for the host, and if needed change the FQDN to an IP address.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cPeDtvm3DKI5ijrwUndXJA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WItNinMyeHmdzmF4oJHefw.jpeg" /></figure><p><strong>6. Create Migration in DMS</strong></p><p>Create a Migration in DMS, by entering the Name of the Migration and details of the Vault and Key.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hao_qe5q0TGknggA_q_HLQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q-lRO8c7nF1I42E4i68k8Q.jpeg" /></figure><p>Select the Object Storage Bucket which will be used to upload the export dump files from Source Database and will then be used by the Target Database for importing the dump files. Also, specify the Export and Import Directory Objects. These Directory objects will be created by the migration in respective databases.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yjC6tutstsqiGgvyEEzk8g.jpeg" /></figure><p><strong>7. Run Validate Migration</strong></p><p>First “Validate” the Migration and ensure all the Phases have Completed Successfully. The “Validate” job has following phases :</p><ol><li>Validate target <br>2. Validate source <br>3. Validate premigration advisor <br>4. Validate datapump source settings <br>5. Validate datapump target settings</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4SxcstnlUkdDJcUh7yJBZg.jpeg" /></figure><p><strong>8. Once “Validate” has completed successfully click on “Start” to start the Migration Job. Verify that all phases of Migration job have completed successfully.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ey3o7OSSGnpT1K36B1OArQ.jpeg" /></figure><p>Once the migration has completed, login to the target database and verify that the data has been migrated successfully from source to target database.</p><p><strong>Conclusion</strong></p><p>Oracle Cloud Infrastructure Database Migration is a fully-managed service that provides you a high performing, self-service experience for migrating databases to Oracle Cloud Infrastructure (OCI). Using OCI DMS, one can also migrate databases from one OCI region to another OCI region. Remote VCN Peering is used to connect VCN from different regions in which the databases are provisioned.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4ba0be11b48" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>