multicloud365
  • Home
  • Cloud Architecture
    • OCI
    • GCP
    • Azure
    • AWS
    • IAC
    • Cloud Networking
    • Cloud Trends and Innovations
    • Cloud Security
    • Cloud Platforms
  • Data Management
  • DevOps and Automation
    • Tutorials and How-Tos
  • Case Studies and Industry Insights
    • AI and Machine Learning in the Cloud
No Result
View All Result
  • Home
  • Cloud Architecture
    • OCI
    • GCP
    • Azure
    • AWS
    • IAC
    • Cloud Networking
    • Cloud Trends and Innovations
    • Cloud Security
    • Cloud Platforms
  • Data Management
  • DevOps and Automation
    • Tutorials and How-Tos
  • Case Studies and Industry Insights
    • AI and Machine Learning in the Cloud
No Result
View All Result
multicloud365
No Result
View All Result

Clone PDB from Distant PDB In Oracle 19C database:

admin by admin
April 22, 2025
in OCI
0
399
SHARES
2.3k
VIEWS
Share on FacebookShare on Twitter


Pricey All,

On this submit i’m going to share easy methods to preform PDB clone from Distant PDB .

Create clones of your PDB throughout the similar DB (Container Database) in a 

DB System. This operation is called native cloning. 

>>> OCI console stage we are able to do that .

Create clones of your PDB to a distinct database (Container Database)

of a distinct DB system. This operation is called distant cloning.

>>> OCI console stage we can’t carry out the distant clone .

————————————————

Supply DB : PRODDB ( distant ) ( ex: pdb , pdb1 ) 

TARGET DB : TESTDB  ( native ) ( ex: pdb )

Supply DB system identify : PRODDB01

Vacation spot DB system identify: TESTDB01

Supply PDB identify : PDB1  ( PRODDB ) 

Clone PDB identify : CLONE_PDB2 ( TESTDB )

Vacation spot db needs to be archive log mode enabled and native undo enabled needs to be true.

Step1 :  Supply Database preparation ( PRODDB)

      >  create consumer in CDB$ROOT and grant the create session and create pluggable database position. 

     > create some take a look at information on pdb1.

/u01/app/oracle/product/19.0.0/db_home/rdbms/admin/utlsampl.sql

CREATE USER c##clone IDENTIFIED BY Welcome_123 CONTAINER=ALL;

GRANT CREATE SESSION, CREATE PLUGGABLE DATABASE TO c##clone CONTAINER=ALL;

Step 2 :: Put together the vacation spot database ( TESTDB )

   

    > local_undo_enabled needs to be true 

   > archive log mode  needs to be enabled 

   > replace the supply db tnsnames.ora entry on this db. 

   > create the db_link on this server ( TESTDB)  utilizing supply db consumer ( PRODDB).

   > take a look at the db hyperlink

   

choose property_name,property_value from database_properties the place property_name=”LOCAL_UNDO_ENABLED”;

archive log listing;

> Replace the distant DB ( PRODDB) tnsnames.ora on Native db tnsnames.ora ( TESTDB)

bounce the listener to replace the modifications ..

take a look at the connection for Distant db from Native db ..

> create a db hyperlink in your vacation spot db ( TESTDB ) to pointing to the supply db ( PRODDB)

CREATE PUBLIC DATABASE LINK clone_pdb_dblink CONNECT TO c##clone recognized by Welcome_123 utilizing ‘PRODDB’;

observe : Examine if the connectivity by means of database hyperlink works positive on vacation spot CDB. As we’re not utilizing the database hyperlink with the identical identify because the database it connects to, we have to moreover set the global_names parameter to false. Else, you’ll encounter ORA-02085 error.

alter session set global_names=false;

choose * from twin@clone_pdb_dblink;

Step3 : Report PDB clone exercise 

  > create distant pdb ( PRODDB) to native pdb( testdb) 

 > begin the newly cloned pdb.

 > do the sanity verify which we have now created some dummy information verify that was there or not.

Create a New PDB within the Native DB by cloning the Distant PDB.

Right here we have to verify with FILE_NAME_CONVERT parameter for 

file identify conversions as a result of we’re not utilizing OMF (Oracle Managed Recordsdata).

create pluggable database CLONE_PDB1 from pdb1@clone_pdb_dblink file_name_convert=(‘/u01/app/oracle/oradata/PRODDB/pdb1′,’/u01/app/oracle/oradata/TESTDB/clone_pdb1’);

alter pluggable database CLONE_PDB1 open

distant pdb clone efficiently accomplished.

Thanks,

Srini

Tags: 19cCloneDatabaseOraclePDBremote
Previous Post

Amazon Bedrock Immediate Optimization Drives LLM Functions Innovation for Yuewen Group

Next Post

Drive new income and development

Next Post
What’s Cloud Migration Value and How you can Cut back It?

Drive new income and development

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Trending

The state of prompting: Unlocking the Full Potential of Conversational AI

#AI horizons 25-03 – The Subsequent Frontier in Robotics: AI Fashions That Suppose, Adapt, and Carry out

April 23, 2025
Huge Information in 2024: Key Traits

Huge Information in 2024: Key Traits

January 23, 2025
Azure Tagging: A Complete Information for Technophiles

Azure Tagging: A Complete Information for Technophiles

April 14, 2025
Batch script to kill blocked session

Azure AD Join Well being: Monitor Sync and Alerts

January 27, 2025
Hyperscale cloud: Expectations versus actuality

Hyperscale cloud: Expectations versus actuality

April 4, 2025
Superior Home windows Server Administration Enabled by Azure Arc: A Recreation-Changer

Superior Home windows Server Administration Enabled by Azure Arc: A Recreation-Changer

January 23, 2025

MultiCloud365

Welcome to MultiCloud365 — your go-to resource for all things cloud! Our mission is to empower IT professionals, developers, and businesses with the knowledge and tools to navigate the ever-evolving landscape of cloud technology.

Category

  • AI and Machine Learning in the Cloud
  • AWS
  • Azure
  • Case Studies and Industry Insights
  • Cloud Architecture
  • Cloud Networking
  • Cloud Platforms
  • Cloud Security
  • Cloud Trends and Innovations
  • Data Management
  • DevOps and Automation
  • GCP
  • IAC
  • OCI

Recent News

Closing the cloud safety hole with runtime safety

Closing the cloud safety hole with runtime safety

May 20, 2025
AI Studio to Cloud Run and Cloud Run MCP server

AI Studio to Cloud Run and Cloud Run MCP server

May 20, 2025
  • About Us
  • Privacy Policy
  • Disclaimer
  • Contact

© 2025- https://multicloud365.com/ - All Rights Reserved

No Result
View All Result
  • Home
  • Cloud Architecture
    • OCI
    • GCP
    • Azure
    • AWS
    • IAC
    • Cloud Networking
    • Cloud Trends and Innovations
    • Cloud Security
    • Cloud Platforms
  • Data Management
  • DevOps and Automation
    • Tutorials and How-Tos
  • Case Studies and Industry Insights
    • AI and Machine Learning in the Cloud

© 2025- https://multicloud365.com/ - All Rights Reserved