SlideShare a Scribd company logo
What is Virtual Private Catalog?
Satishbabu Gunukula, Oracle ACE
• 19+ Years of Experience in Database Technologies and
specialized in high availability solutions.
• Masters Degree in Computer Applications
• Written articles for major publications
• Oracle Certified Professional Oracle 8i,9i,10g
• Oracle Certified Expert Oracle 10g RAC
http://www.oracleracexpert.com
Program Agenda
• Overview of RMAN
• Overview of Recovery Catalog
• About Virtual Private Catalog
• Benefits of Virtual Private Catalog
• Create Virtual Private Catalog
• Manage Virtual Private Catalog
• RMAN stored Script
• Q& A
Overview of RMAN
• Recovery Manager (RMAN) is the backup and recovery
tool supplied for Oracle Databases from version 8 by
Oracle
• RMAN has backup, restore and recovery capabilities
addressing high availability and disaster recovery
• RMAN always maintains metadata about its backup and
recovery operations on a database in the control file of
the database. The RMAN metadata is known as the RMAN
repository.
Overview of Recovery Catalog
• Recovery Catalog is used to record RMAN activity against
one or more target database
• You can use recovery catalog or the control file of the
target database for RMAN Repository
• Recovery Catalog is the preferred method as it offers
several advantages over the others, like reporting
operations, simple recovery in case of control file damage,
and more.
About Virtual Private Catalog
• The virtual private catalog was introduced in Oracle 11g.
• Before Oracle 11g, a user cannot restrict access on RMAN
Repository for security reasons or segregate the duties
between DBAs. All users of an RMAN Recovery Catalog
have full privileges to insert, update, and delete any
metadata in the Recovery Catalog
• Each virtual private catalog is owned by a database
schema user which is different than the user who owns
the recovery catalog.
About Virtual Private Catalog
• Oracle 11g recovery catalog supports virtual private
catalog, but they are not used unless explicitly created and
each virtual private catalog is owned by a database
schema user.
• The Recovery Catalog owner is different to the virtual
private catalog user in that they control user privileges for
the Recovery Catalog for one or more databases that are
registered with Recovery Catalog
• There is no restriction to the number of virtual private
catalogs that can be created beneath one recovery catalog
Benefits of Virtual Private Catalog
• This new feature lets you grant restricted access on RMAN
Catalog to some users so that they can access a limited set
of application databases that are registered in the recovery
catalog
• This feature is very useful if you need to separate the
duties between administrators of various databases or
between DBAs and the administrator of the Recovery
Catalog.
Create Virtual Private Catalog
• RCAT – Recovery Catalog Database, RMAN is the Catalog owner
• DB1,DB2,DB2,DB4 – User/Application Databases
• VPC_USER1 has access to the DB1 and DB2 catalog metadata
• VPC_USER2 has access to the DB3, DB4 catalog metadata.
Create Virtual Private Catalog
Step1: Create the database user VPC_USER1, VPC_USER2 in
the Recovery Catalog database and grant the
RECOVERY_CATALOG_OWNER privilege
SQL> create user VPC_USER1 identified by password default
tablespace VPC_USERS TABLESPACE vpc_users temporary tablespace
TEMP;
SQL> create user VPC_USER2 identified by password default
tablespace VPC_USERS TABLESPACE vpc_users temporary tablespace
TEMP;
SQL> grant RECOVERY_CATALOG_OWNER to VPC_USER1;
SQL> grant RECOVERY_CATALOG_OWNER to VPC_USER2;
Create Virtual Private Catalog
Step2: Connect to the RMAN catalog as catalog owner and
grant privileges to the virtual private catalog owner
SQL> rman CATALOG rman/<password>@rmancat
Recovery Manager: Release 10.2.0.4.0 - Production on Wed Jul 1
10:56:59 2015 Copyright (c) 1982, 2007, Oracle. All rights
reserved. Connected to recovery catalog database
RMAN> grant catalog for database DB1 to VPC_USER1;
RMAN> grant catalog for database DB2 to VPC_USER1;
RMAN> grant catalog for database DB3 to VPC_USER2;
RMAN> grant catalog for database DB4 to VPC_USER2;
Note: The virtual private catalog users VPC_USER1, VPC_USER2 don’t have access
to the metadata as the virtual private catalog is not yet created.
Create Virtual Private Catalog
Step3: Connect to the RMAN catalog as virtual private catalog
owner and create a virtual private catalog VPC_USER1
SQL> rman catalog VPC_USER1/password@RMANCAT
Recovery Manager: Release 11.2.0.4.0 - Production on Wed Jul 1
12:18:38 2015 Copyright (c) 1982, 2011, Oracle and/or its
affiliates. All rights reserved. connected to recovery catalog
database
RMAN> create VIRTUAL CATALOG;
found eligible base catalog owned by RMAN created virtual
catalog against base catalog owned by RMAN
Create Virtual Private Catalog
• Connect to the RMAN catalog as virtual private catalog
owner and create a virtual private catalog VPC_USER2
SQL> rman catalog VPC_USER2/password@RMANCAT
Recovery Manager: Release 11.2.0.4.0 - Production on Wed Jul 1
12:18:38 2015 Copyright (c) 1982, 2011, Oracle and/or its
affiliates. All rights reserved. connected to recovery catalog
database
RMAN> create VIRTUAL CATALOG;
found eligible base catalog owned by RMAN created virtual
catalog against base catalog owned by RMAN
Manage Virtual Private Catalog
Step4: Connect to catalog owner RMAN and list all registered
databases
RMAN> list db_unique_name all;
List of Databases
DB Key DB Name DB ID Database Role Db_unique_name
------- ------- ----------------- ---------------
1 DB1 1790162170 PRIMARY DB1
3419 DB2 3510904891 PRIMARY DB2
6531 DB3 3510904891 PRIMARY DB3
9231 DB4 3510904891 PRIMARY DB4
Manage Virtual Private Catalog
• Connect to catalog owner VPC_USER1 and list all
registered databases
RMAN> list db_unique_name all;
List of Databases
DB Key DB Name DB ID Database Role Db_unique_name
------- ------- ----------------- ---------------
1 DB1 1790162170 PRIMARY DB1
3419 DB2 3510904891 PRIMARY DB2
Manage Virtual Private Catalog
• Connect to catalog owner VPC_USER2 and list all
registered databases
RMAN> list db_unique_name all;
List of Databases
DB Key DB Name DB ID Database Role Db_unique_name
------- ------- ----------------- ---------------
6531 DB3 3510904891 PRIMARY DB3
89231 DB4 3510904891 PRIMARY DB4
Manage Virtual Private Catalog
Step 5: Granting/revoking privileges from the virtual private
catalog owner
• Grant the access to register new target database to virtual private catalog owner:
RMAN> grant register database to VPC_USER1;
RMAN> grant register database to VPC_USER2;
• Revoke the access to register new target database from virtual private catalog owner
RMAN> revoke register database from VPC_USER1;
RMAN> revoke register database from VPC_USER2;
Manage Virtual Private Catalog
• Revoke the access to metadata for DB2 ,DB4 databases from virtual private catalog
owners.
RMAN> revoke catalog for database DB2 from VPC_USER1;
RMAN> revoke catalog for database DB4 from VPC_USER2;
Manage Virtual Private Catalog
Step 6: Drop the virtual private catalog
• Connect to the RMAN catalog as virtual private catalog owner and drop the virtual
private catalog
SQL> rman catalog VPC_USER1/password@RMANCAT
RMAN>
RMAN> drop catalog;
recovery catalog owner is VPC_USER1
enter DROP CATALOG command again to confirm catalog removal
RMAN> drop catalog;
recovery catalog dropped
RMAN>
Manage Virtual Private Catalog
Step 7: If you are planning to use a 10.2 or older release of
RMAN with virtual private catalog then you need to execute
below procedures to create/drop virtual private catalogs
• Create virtual private catalog:
SQL> execute RMAN.DBMS_RCVCAT.CREATE_VIRTUAL_CATALOG;
Drop virtual private catalog:
SQL> execute RMAN.DBMS_RCVCAT.DROP_VIRTUAL_CATALOG;
Where RMAN is the BASE CATALOG OWNER in the above command.
RMAN stored Script
• The stored scripts play an important role between virtual
private catalogs.
• All virtual private catalog users have “read” access to all
global stored scripts, and the scripts can be run across the
environment or are common across the environment need
to be created as global scripts.
• Each virtual private catalog user has non-global stored
scripts that belong to the databases to which they have
privileges.
• The virtual private catalog user cannot access non-global
stored scripts that belong to databases where they don’t
have the correct privileges.
RMAN stored Script
• For example, use the below script to create global backup
script. You might want to connect target database DB1 and
recovery catalog owner VPC_USER1.
SQL> rman target sys/password@DB1 catalog VPC_USER1/password@RMANCAT
RMAN> connected to target database: DB1(DBID=4256066018)
connected to recovery catalog database
RMAN> create GLOBAL script GLOBAL_BACKUP (backup database plus
archivelog;);
RMAN stored Script
Now the user can connect to a new target database (DB2) and
run the global stored script “global_backup” to back up the
database.
SQL> rman target sys/password@DB2 catalog VPC_USER1/password@RMANCAT
RMAN> connected to target database: DB2(DBID=4257696119)
connected to recovery catalog database
RMAN> RUN {execute script GLOBAL_BACKUP;}
RMAN stored Script
If the user created a non-global script by connecting to DB1
and catalog owner as VPC_USER1 then it is not accessible to
the virtual private catalog owner VPC_USER2.
CREATE SCRIPT NON_GLOBACL_backup
{ BACKUP FORMAT "/rman-backup/DB1/%d_%t_%s_%p.rmn"
DATABASE PLUS ARCHIVELOG;
}
RUN {EXECUTE SCRIPT NON_GLOBACL_backup;}
The user can run the PRINT SCRIPT command to display stored script
RMAN> print script GLOBAL_BACKUP;
Summary
Virtual private catalog will allow you to maintain only one
recovery catalog repository by securing boundaries between
administrators of various databases or between DBAs, as well
as allowing you to separate their duties.
Questions & Answers

More Related Content

What's hot

Backup and Recovery Procedure
Backup and Recovery ProcedureBackup and Recovery Procedure
Backup and Recovery ProcedureAnar Godjaev
 
Oracle database 12c new features
Oracle database 12c new featuresOracle database 12c new features
Oracle database 12c new featuresRemote DBA Services
 
RMAN in 12c: The Next Generation (PPT)
RMAN in 12c: The Next Generation (PPT)RMAN in 12c: The Next Generation (PPT)
RMAN in 12c: The Next Generation (PPT)Gustavo Rene Antunez
 
Presentation recovery manager (rman) configuration and performance tuning ...
Presentation    recovery manager (rman) configuration and performance tuning ...Presentation    recovery manager (rman) configuration and performance tuning ...
Presentation recovery manager (rman) configuration and performance tuning ...xKinAnx
 
Oracle backup and recovery
Oracle backup and recoveryOracle backup and recovery
Oracle backup and recoveryYogiji Creations
 
Oracle Database Backups and Disaster Recovery @ Autodesk
Oracle Database Backups and Disaster Recovery @ AutodeskOracle Database Backups and Disaster Recovery @ Autodesk
Oracle Database Backups and Disaster Recovery @ AutodeskAlan Williams
 
Oracle database 12c intro
Oracle database 12c introOracle database 12c intro
Oracle database 12c intropasalapudi
 

What's hot (20)

Backup and Recovery Procedure
Backup and Recovery ProcedureBackup and Recovery Procedure
Backup and Recovery Procedure
 
Oracle database 12c new features
Oracle database 12c new featuresOracle database 12c new features
Oracle database 12c new features
 
Les 20 dup_db
Les 20 dup_dbLes 20 dup_db
Les 20 dup_db
 
Les 03 catalog
Les 03 catalogLes 03 catalog
Les 03 catalog
 
Les 16 resource
Les 16 resourceLes 16 resource
Les 16 resource
 
Les 19 space_db
Les 19 space_dbLes 19 space_db
Les 19 space_db
 
Xpp b tspitr
Xpp b tspitrXpp b tspitr
Xpp b tspitr
 
Les 08 tune_rman
Les 08 tune_rmanLes 08 tune_rman
Les 08 tune_rman
 
Les 09 diag
Les 09 diagLes 09 diag
Les 09 diag
 
Les 12 fl_db
Les 12 fl_dbLes 12 fl_db
Les 12 fl_db
 
RMAN in 12c: The Next Generation (PPT)
RMAN in 12c: The Next Generation (PPT)RMAN in 12c: The Next Generation (PPT)
RMAN in 12c: The Next Generation (PPT)
 
Les 04 config_bu
Les 04 config_buLes 04 config_bu
Les 04 config_bu
 
Presentation recovery manager (rman) configuration and performance tuning ...
Presentation    recovery manager (rman) configuration and performance tuning ...Presentation    recovery manager (rman) configuration and performance tuning ...
Presentation recovery manager (rman) configuration and performance tuning ...
 
Oracle backup and recovery
Oracle backup and recoveryOracle backup and recovery
Oracle backup and recovery
 
RMAN – The Pocket Knife of a DBA
RMAN – The Pocket Knife of a DBA RMAN – The Pocket Knife of a DBA
RMAN – The Pocket Knife of a DBA
 
Les 01 core
Les 01 coreLes 01 core
Les 01 core
 
Les 07 rman_rec
Les 07 rman_recLes 07 rman_rec
Les 07 rman_rec
 
Oracle Database Backups and Disaster Recovery @ Autodesk
Oracle Database Backups and Disaster Recovery @ AutodeskOracle Database Backups and Disaster Recovery @ Autodesk
Oracle Database Backups and Disaster Recovery @ Autodesk
 
Les 13 memory
Les 13 memoryLes 13 memory
Les 13 memory
 
Oracle database 12c intro
Oracle database 12c introOracle database 12c intro
Oracle database 12c intro
 

Similar to Why virtual private catalog?

Oracle Backup Solutions Overview August 2018
Oracle Backup Solutions Overview August 2018Oracle Backup Solutions Overview August 2018
Oracle Backup Solutions Overview August 2018Dan Glasscock
 
Security Multitenant
Security MultitenantSecurity Multitenant
Security MultitenantArush Jain
 
Nabil Nawaz Oracle Oracle 12c Data Guard Deep Dive Presentation
Nabil Nawaz Oracle Oracle 12c Data Guard Deep Dive PresentationNabil Nawaz Oracle Oracle 12c Data Guard Deep Dive Presentation
Nabil Nawaz Oracle Oracle 12c Data Guard Deep Dive PresentationNabil Nawaz
 
RMAN in 12c: The Next Generation (WP)
RMAN in 12c: The Next Generation (WP)RMAN in 12c: The Next Generation (WP)
RMAN in 12c: The Next Generation (WP)Gustavo Rene Antunez
 
What's new in Oracle 19c & 18c Recovery Manager (RMAN)
What's new in Oracle 19c & 18c Recovery Manager (RMAN)What's new in Oracle 19c & 18c Recovery Manager (RMAN)
What's new in Oracle 19c & 18c Recovery Manager (RMAN)Satishbabu Gunukula
 
MySQL 5.6 Replication Webinar
MySQL 5.6 Replication WebinarMySQL 5.6 Replication Webinar
MySQL 5.6 Replication WebinarMark Swarbrick
 
MySQL replication best practices 105-232-931
MySQL replication best practices 105-232-931MySQL replication best practices 105-232-931
MySQL replication best practices 105-232-931Baruch Osoveskiy
 
RMOUG 18 - Winning Performance Challenges in Oracle Multitenant
RMOUG 18 - Winning Performance Challenges in Oracle MultitenantRMOUG 18 - Winning Performance Challenges in Oracle Multitenant
RMOUG 18 - Winning Performance Challenges in Oracle MultitenantPini Dibask
 
FOSDEM 2022 MySQL Devroom: MySQL 8.0 - Logical Backups, Snapshots and Point-...
FOSDEM 2022 MySQL Devroom:  MySQL 8.0 - Logical Backups, Snapshots and Point-...FOSDEM 2022 MySQL Devroom:  MySQL 8.0 - Logical Backups, Snapshots and Point-...
FOSDEM 2022 MySQL Devroom: MySQL 8.0 - Logical Backups, Snapshots and Point-...Frederic Descamps
 
Running database infrastructure on containers
Running database infrastructure on containersRunning database infrastructure on containers
Running database infrastructure on containersMariaDB plc
 
Collaborate 2012 - RMAN eliminate the mystery
Collaborate 2012 - RMAN eliminate the mysteryCollaborate 2012 - RMAN eliminate the mystery
Collaborate 2012 - RMAN eliminate the mysteryNelson Calero
 
Vijfhart thema-avond-oracle-12c-new-features
Vijfhart thema-avond-oracle-12c-new-featuresVijfhart thema-avond-oracle-12c-new-features
Vijfhart thema-avond-oracle-12c-new-featuresmkorremans
 
Data guard logical_r3.1
Data guard logical_r3.1Data guard logical_r3.1
Data guard logical_r3.1Ram Naani
 
Winning performance challenges in oracle multitenant
Winning performance challenges in oracle multitenantWinning performance challenges in oracle multitenant
Winning performance challenges in oracle multitenantPini Dibask
 
01 power center 8.6 basics
01 power center 8.6 basics01 power center 8.6 basics
01 power center 8.6 basicsuthayan87
 

Similar to Why virtual private catalog? (20)

Oracle Backup Solutions Overview August 2018
Oracle Backup Solutions Overview August 2018Oracle Backup Solutions Overview August 2018
Oracle Backup Solutions Overview August 2018
 
15362590.ppt
15362590.ppt15362590.ppt
15362590.ppt
 
Presentation day2 oracle12c
Presentation day2 oracle12cPresentation day2 oracle12c
Presentation day2 oracle12c
 
Security Multitenant
Security MultitenantSecurity Multitenant
Security Multitenant
 
Nabil Nawaz Oracle Oracle 12c Data Guard Deep Dive Presentation
Nabil Nawaz Oracle Oracle 12c Data Guard Deep Dive PresentationNabil Nawaz Oracle Oracle 12c Data Guard Deep Dive Presentation
Nabil Nawaz Oracle Oracle 12c Data Guard Deep Dive Presentation
 
RMAN in 12c: The Next Generation (WP)
RMAN in 12c: The Next Generation (WP)RMAN in 12c: The Next Generation (WP)
RMAN in 12c: The Next Generation (WP)
 
What's new in Oracle 19c & 18c Recovery Manager (RMAN)
What's new in Oracle 19c & 18c Recovery Manager (RMAN)What's new in Oracle 19c & 18c Recovery Manager (RMAN)
What's new in Oracle 19c & 18c Recovery Manager (RMAN)
 
MySQL 5.6 Replication Webinar
MySQL 5.6 Replication WebinarMySQL 5.6 Replication Webinar
MySQL 5.6 Replication Webinar
 
MySQL replication best practices 105-232-931
MySQL replication best practices 105-232-931MySQL replication best practices 105-232-931
MySQL replication best practices 105-232-931
 
RMOUG 18 - Winning Performance Challenges in Oracle Multitenant
RMOUG 18 - Winning Performance Challenges in Oracle MultitenantRMOUG 18 - Winning Performance Challenges in Oracle Multitenant
RMOUG 18 - Winning Performance Challenges in Oracle Multitenant
 
FOSDEM 2022 MySQL Devroom: MySQL 8.0 - Logical Backups, Snapshots and Point-...
FOSDEM 2022 MySQL Devroom:  MySQL 8.0 - Logical Backups, Snapshots and Point-...FOSDEM 2022 MySQL Devroom:  MySQL 8.0 - Logical Backups, Snapshots and Point-...
FOSDEM 2022 MySQL Devroom: MySQL 8.0 - Logical Backups, Snapshots and Point-...
 
Les 03 Catalog
Les 03 CatalogLes 03 Catalog
Les 03 Catalog
 
Running database infrastructure on containers
Running database infrastructure on containersRunning database infrastructure on containers
Running database infrastructure on containers
 
Collaborate 2012 - RMAN eliminate the mystery
Collaborate 2012 - RMAN eliminate the mysteryCollaborate 2012 - RMAN eliminate the mystery
Collaborate 2012 - RMAN eliminate the mystery
 
21 Pdfsam
21 Pdfsam21 Pdfsam
21 Pdfsam
 
21 Rac
21 Rac21 Rac
21 Rac
 
Vijfhart thema-avond-oracle-12c-new-features
Vijfhart thema-avond-oracle-12c-new-featuresVijfhart thema-avond-oracle-12c-new-features
Vijfhart thema-avond-oracle-12c-new-features
 
Data guard logical_r3.1
Data guard logical_r3.1Data guard logical_r3.1
Data guard logical_r3.1
 
Winning performance challenges in oracle multitenant
Winning performance challenges in oracle multitenantWinning performance challenges in oracle multitenant
Winning performance challenges in oracle multitenant
 
01 power center 8.6 basics
01 power center 8.6 basics01 power center 8.6 basics
01 power center 8.6 basics
 

More from Satishbabu Gunukula

Oracle Database 23c Security New Features.pptx
Oracle Database 23c Security New Features.pptxOracle Database 23c Security New Features.pptx
Oracle Database 23c Security New Features.pptxSatishbabu Gunukula
 
Oracle Data Pump Enhancements in Oracle 21c.pptx
Oracle Data Pump Enhancements in Oracle 21c.pptxOracle Data Pump Enhancements in Oracle 21c.pptx
Oracle Data Pump Enhancements in Oracle 21c.pptxSatishbabu Gunukula
 
Cloning an Oracle Home or Oracle Install.pptx
Cloning an Oracle Home or Oracle Install.pptxCloning an Oracle Home or Oracle Install.pptx
Cloning an Oracle Home or Oracle Install.pptxSatishbabu Gunukula
 
What’s New in Oracle Database 19c - Part 1
What’s New in Oracle Database 19c - Part 1What’s New in Oracle Database 19c - Part 1
What’s New in Oracle Database 19c - Part 1Satishbabu Gunukula
 
Why oracle data guard new features in oracle 18c, 19c
Why oracle data guard new features in oracle 18c, 19cWhy oracle data guard new features in oracle 18c, 19c
Why oracle data guard new features in oracle 18c, 19cSatishbabu Gunukula
 
One database solution for your enterprise business - Oracle 12c
One database solution for your enterprise business - Oracle 12cOne database solution for your enterprise business - Oracle 12c
One database solution for your enterprise business - Oracle 12cSatishbabu Gunukula
 
Install oracle binaris or clonse oracle home
Install oracle binaris or clonse oracle homeInstall oracle binaris or clonse oracle home
Install oracle binaris or clonse oracle homeSatishbabu Gunukula
 
Oracle golden gate 12c New Features
Oracle golden gate 12c New FeaturesOracle golden gate 12c New Features
Oracle golden gate 12c New FeaturesSatishbabu Gunukula
 
Sql server mission_critical_performance_tdm_white_paper
Sql server mission_critical_performance_tdm_white_paperSql server mission_critical_performance_tdm_white_paper
Sql server mission_critical_performance_tdm_white_paperSatishbabu Gunukula
 
Time for Change: Migrate your Non-RAC Database to RAC
Time for Change: Migrate your Non-RAC Database to RACTime for Change: Migrate your Non-RAC Database to RAC
Time for Change: Migrate your Non-RAC Database to RACSatishbabu Gunukula
 
Understand oracle real application cluster
Understand oracle real application clusterUnderstand oracle real application cluster
Understand oracle real application clusterSatishbabu Gunukula
 

More from Satishbabu Gunukula (14)

Oracle Database 23c Security New Features.pptx
Oracle Database 23c Security New Features.pptxOracle Database 23c Security New Features.pptx
Oracle Database 23c Security New Features.pptx
 
Oracle Data Pump Enhancements in Oracle 21c.pptx
Oracle Data Pump Enhancements in Oracle 21c.pptxOracle Data Pump Enhancements in Oracle 21c.pptx
Oracle Data Pump Enhancements in Oracle 21c.pptx
 
Cloning an Oracle Home or Oracle Install.pptx
Cloning an Oracle Home or Oracle Install.pptxCloning an Oracle Home or Oracle Install.pptx
Cloning an Oracle Home or Oracle Install.pptx
 
What’s New in Oracle Database 19c - Part 1
What’s New in Oracle Database 19c - Part 1What’s New in Oracle Database 19c - Part 1
What’s New in Oracle Database 19c - Part 1
 
Why oracle data guard new features in oracle 18c, 19c
Why oracle data guard new features in oracle 18c, 19cWhy oracle data guard new features in oracle 18c, 19c
Why oracle data guard new features in oracle 18c, 19c
 
One database solution for your enterprise business - Oracle 12c
One database solution for your enterprise business - Oracle 12cOne database solution for your enterprise business - Oracle 12c
One database solution for your enterprise business - Oracle 12c
 
Install oracle binaris or clonse oracle home
Install oracle binaris or clonse oracle homeInstall oracle binaris or clonse oracle home
Install oracle binaris or clonse oracle home
 
Oracle golden gate 12c New Features
Oracle golden gate 12c New FeaturesOracle golden gate 12c New Features
Oracle golden gate 12c New Features
 
Sql server mission_critical_performance_tdm_white_paper
Sql server mission_critical_performance_tdm_white_paperSql server mission_critical_performance_tdm_white_paper
Sql server mission_critical_performance_tdm_white_paper
 
Time for Change: Migrate your Non-RAC Database to RAC
Time for Change: Migrate your Non-RAC Database to RACTime for Change: Migrate your Non-RAC Database to RAC
Time for Change: Migrate your Non-RAC Database to RAC
 
Convert single instance to RAC
Convert single instance to RACConvert single instance to RAC
Convert single instance to RAC
 
Ioug tip book11_gunukula
Ioug tip book11_gunukulaIoug tip book11_gunukula
Ioug tip book11_gunukula
 
Data Guard Architecture & Setup
Data Guard Architecture & SetupData Guard Architecture & Setup
Data Guard Architecture & Setup
 
Understand oracle real application cluster
Understand oracle real application clusterUnderstand oracle real application cluster
Understand oracle real application cluster
 

Recently uploaded

Hi-Tech Industry 2024-25 Prospective.pptx
Hi-Tech Industry 2024-25 Prospective.pptxHi-Tech Industry 2024-25 Prospective.pptx
Hi-Tech Industry 2024-25 Prospective.pptxShivamM16
 
0x01 - Newton's Third Law: Static vs. Dynamic Abusers
0x01 - Newton's Third Law:  Static vs. Dynamic Abusers0x01 - Newton's Third Law:  Static vs. Dynamic Abusers
0x01 - Newton's Third Law: Static vs. Dynamic AbusersOWASP Beja
 
The Canoga Gardens Development Project. PDF
The Canoga Gardens Development Project. PDFThe Canoga Gardens Development Project. PDF
The Canoga Gardens Development Project. PDFRahsaan L. Browne
 
Oracle Database Administration I (1Z0-082) Exam Dumps 2024.pdf
Oracle Database Administration I (1Z0-082) Exam Dumps 2024.pdfOracle Database Administration I (1Z0-082) Exam Dumps 2024.pdf
Oracle Database Administration I (1Z0-082) Exam Dumps 2024.pdfSkillCertProExams
 
Eureka, I found it! - Special Libraries Association 2021 Presentation
Eureka, I found it! - Special Libraries Association 2021 PresentationEureka, I found it! - Special Libraries Association 2021 Presentation
Eureka, I found it! - Special Libraries Association 2021 PresentationAccess Innovations, Inc.
 
Introduction of Biology in living organisms
Introduction of Biology in living organismsIntroduction of Biology in living organisms
Introduction of Biology in living organismssoumyapottola
 
Getting started with Amazon Bedrock Studio and Control Tower
Getting started with Amazon Bedrock Studio and Control TowerGetting started with Amazon Bedrock Studio and Control Tower
Getting started with Amazon Bedrock Studio and Control TowerVladimir Samoylov
 
Acorn Recovery: Restore IT infra within minutes
Acorn Recovery: Restore IT infra within minutesAcorn Recovery: Restore IT infra within minutes
Acorn Recovery: Restore IT infra within minutesIP ServerOne
 
Sharpen existing tools or get a new toolbox? Contemporary cluster initiatives...
Sharpen existing tools or get a new toolbox? Contemporary cluster initiatives...Sharpen existing tools or get a new toolbox? Contemporary cluster initiatives...
Sharpen existing tools or get a new toolbox? Contemporary cluster initiatives...Orkestra
 
Writing Sample 2 -Bridging the Divide: Enhancing Public Engagement in Urban D...
Writing Sample 2 -Bridging the Divide: Enhancing Public Engagement in Urban D...Writing Sample 2 -Bridging the Divide: Enhancing Public Engagement in Urban D...
Writing Sample 2 -Bridging the Divide: Enhancing Public Engagement in Urban D...Rahsaan L. Browne
 
123445566544333222333444dxcvbcvcvharsh.pptx
123445566544333222333444dxcvbcvcvharsh.pptx123445566544333222333444dxcvbcvcvharsh.pptx
123445566544333222333444dxcvbcvcvharsh.pptxgargh1099
 
05232024 Joint Meeting - Community Networking
05232024 Joint Meeting - Community Networking05232024 Joint Meeting - Community Networking
05232024 Joint Meeting - Community NetworkingMichael Orias
 
Pollinator Ambassador Earth Steward Day Presentation 2024-05-22
Pollinator Ambassador Earth Steward Day Presentation 2024-05-22Pollinator Ambassador Earth Steward Day Presentation 2024-05-22
Pollinator Ambassador Earth Steward Day Presentation 2024-05-22LHelferty
 
527598851-ppc-due-to-various-govt-policies.pdf
527598851-ppc-due-to-various-govt-policies.pdf527598851-ppc-due-to-various-govt-policies.pdf
527598851-ppc-due-to-various-govt-policies.pdfrajpreetkaur75080
 

Recently uploaded (14)

Hi-Tech Industry 2024-25 Prospective.pptx
Hi-Tech Industry 2024-25 Prospective.pptxHi-Tech Industry 2024-25 Prospective.pptx
Hi-Tech Industry 2024-25 Prospective.pptx
 
0x01 - Newton's Third Law: Static vs. Dynamic Abusers
0x01 - Newton's Third Law:  Static vs. Dynamic Abusers0x01 - Newton's Third Law:  Static vs. Dynamic Abusers
0x01 - Newton's Third Law: Static vs. Dynamic Abusers
 
The Canoga Gardens Development Project. PDF
The Canoga Gardens Development Project. PDFThe Canoga Gardens Development Project. PDF
The Canoga Gardens Development Project. PDF
 
Oracle Database Administration I (1Z0-082) Exam Dumps 2024.pdf
Oracle Database Administration I (1Z0-082) Exam Dumps 2024.pdfOracle Database Administration I (1Z0-082) Exam Dumps 2024.pdf
Oracle Database Administration I (1Z0-082) Exam Dumps 2024.pdf
 
Eureka, I found it! - Special Libraries Association 2021 Presentation
Eureka, I found it! - Special Libraries Association 2021 PresentationEureka, I found it! - Special Libraries Association 2021 Presentation
Eureka, I found it! - Special Libraries Association 2021 Presentation
 
Introduction of Biology in living organisms
Introduction of Biology in living organismsIntroduction of Biology in living organisms
Introduction of Biology in living organisms
 
Getting started with Amazon Bedrock Studio and Control Tower
Getting started with Amazon Bedrock Studio and Control TowerGetting started with Amazon Bedrock Studio and Control Tower
Getting started with Amazon Bedrock Studio and Control Tower
 
Acorn Recovery: Restore IT infra within minutes
Acorn Recovery: Restore IT infra within minutesAcorn Recovery: Restore IT infra within minutes
Acorn Recovery: Restore IT infra within minutes
 
Sharpen existing tools or get a new toolbox? Contemporary cluster initiatives...
Sharpen existing tools or get a new toolbox? Contemporary cluster initiatives...Sharpen existing tools or get a new toolbox? Contemporary cluster initiatives...
Sharpen existing tools or get a new toolbox? Contemporary cluster initiatives...
 
Writing Sample 2 -Bridging the Divide: Enhancing Public Engagement in Urban D...
Writing Sample 2 -Bridging the Divide: Enhancing Public Engagement in Urban D...Writing Sample 2 -Bridging the Divide: Enhancing Public Engagement in Urban D...
Writing Sample 2 -Bridging the Divide: Enhancing Public Engagement in Urban D...
 
123445566544333222333444dxcvbcvcvharsh.pptx
123445566544333222333444dxcvbcvcvharsh.pptx123445566544333222333444dxcvbcvcvharsh.pptx
123445566544333222333444dxcvbcvcvharsh.pptx
 
05232024 Joint Meeting - Community Networking
05232024 Joint Meeting - Community Networking05232024 Joint Meeting - Community Networking
05232024 Joint Meeting - Community Networking
 
Pollinator Ambassador Earth Steward Day Presentation 2024-05-22
Pollinator Ambassador Earth Steward Day Presentation 2024-05-22Pollinator Ambassador Earth Steward Day Presentation 2024-05-22
Pollinator Ambassador Earth Steward Day Presentation 2024-05-22
 
527598851-ppc-due-to-various-govt-policies.pdf
527598851-ppc-due-to-various-govt-policies.pdf527598851-ppc-due-to-various-govt-policies.pdf
527598851-ppc-due-to-various-govt-policies.pdf
 

Why virtual private catalog?

  • 1. What is Virtual Private Catalog? Satishbabu Gunukula, Oracle ACE • 19+ Years of Experience in Database Technologies and specialized in high availability solutions. • Masters Degree in Computer Applications • Written articles for major publications • Oracle Certified Professional Oracle 8i,9i,10g • Oracle Certified Expert Oracle 10g RAC http://www.oracleracexpert.com
  • 2. Program Agenda • Overview of RMAN • Overview of Recovery Catalog • About Virtual Private Catalog • Benefits of Virtual Private Catalog • Create Virtual Private Catalog • Manage Virtual Private Catalog • RMAN stored Script • Q& A
  • 3. Overview of RMAN • Recovery Manager (RMAN) is the backup and recovery tool supplied for Oracle Databases from version 8 by Oracle • RMAN has backup, restore and recovery capabilities addressing high availability and disaster recovery • RMAN always maintains metadata about its backup and recovery operations on a database in the control file of the database. The RMAN metadata is known as the RMAN repository.
  • 4. Overview of Recovery Catalog • Recovery Catalog is used to record RMAN activity against one or more target database • You can use recovery catalog or the control file of the target database for RMAN Repository • Recovery Catalog is the preferred method as it offers several advantages over the others, like reporting operations, simple recovery in case of control file damage, and more.
  • 5. About Virtual Private Catalog • The virtual private catalog was introduced in Oracle 11g. • Before Oracle 11g, a user cannot restrict access on RMAN Repository for security reasons or segregate the duties between DBAs. All users of an RMAN Recovery Catalog have full privileges to insert, update, and delete any metadata in the Recovery Catalog • Each virtual private catalog is owned by a database schema user which is different than the user who owns the recovery catalog.
  • 6. About Virtual Private Catalog • Oracle 11g recovery catalog supports virtual private catalog, but they are not used unless explicitly created and each virtual private catalog is owned by a database schema user. • The Recovery Catalog owner is different to the virtual private catalog user in that they control user privileges for the Recovery Catalog for one or more databases that are registered with Recovery Catalog • There is no restriction to the number of virtual private catalogs that can be created beneath one recovery catalog
  • 7. Benefits of Virtual Private Catalog • This new feature lets you grant restricted access on RMAN Catalog to some users so that they can access a limited set of application databases that are registered in the recovery catalog • This feature is very useful if you need to separate the duties between administrators of various databases or between DBAs and the administrator of the Recovery Catalog.
  • 8. Create Virtual Private Catalog • RCAT – Recovery Catalog Database, RMAN is the Catalog owner • DB1,DB2,DB2,DB4 – User/Application Databases • VPC_USER1 has access to the DB1 and DB2 catalog metadata • VPC_USER2 has access to the DB3, DB4 catalog metadata.
  • 9. Create Virtual Private Catalog Step1: Create the database user VPC_USER1, VPC_USER2 in the Recovery Catalog database and grant the RECOVERY_CATALOG_OWNER privilege SQL> create user VPC_USER1 identified by password default tablespace VPC_USERS TABLESPACE vpc_users temporary tablespace TEMP; SQL> create user VPC_USER2 identified by password default tablespace VPC_USERS TABLESPACE vpc_users temporary tablespace TEMP; SQL> grant RECOVERY_CATALOG_OWNER to VPC_USER1; SQL> grant RECOVERY_CATALOG_OWNER to VPC_USER2;
  • 10. Create Virtual Private Catalog Step2: Connect to the RMAN catalog as catalog owner and grant privileges to the virtual private catalog owner SQL> rman CATALOG rman/<password>@rmancat Recovery Manager: Release 10.2.0.4.0 - Production on Wed Jul 1 10:56:59 2015 Copyright (c) 1982, 2007, Oracle. All rights reserved. Connected to recovery catalog database RMAN> grant catalog for database DB1 to VPC_USER1; RMAN> grant catalog for database DB2 to VPC_USER1; RMAN> grant catalog for database DB3 to VPC_USER2; RMAN> grant catalog for database DB4 to VPC_USER2; Note: The virtual private catalog users VPC_USER1, VPC_USER2 don’t have access to the metadata as the virtual private catalog is not yet created.
  • 11. Create Virtual Private Catalog Step3: Connect to the RMAN catalog as virtual private catalog owner and create a virtual private catalog VPC_USER1 SQL> rman catalog VPC_USER1/password@RMANCAT Recovery Manager: Release 11.2.0.4.0 - Production on Wed Jul 1 12:18:38 2015 Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved. connected to recovery catalog database RMAN> create VIRTUAL CATALOG; found eligible base catalog owned by RMAN created virtual catalog against base catalog owned by RMAN
  • 12. Create Virtual Private Catalog • Connect to the RMAN catalog as virtual private catalog owner and create a virtual private catalog VPC_USER2 SQL> rman catalog VPC_USER2/password@RMANCAT Recovery Manager: Release 11.2.0.4.0 - Production on Wed Jul 1 12:18:38 2015 Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved. connected to recovery catalog database RMAN> create VIRTUAL CATALOG; found eligible base catalog owned by RMAN created virtual catalog against base catalog owned by RMAN
  • 13. Manage Virtual Private Catalog Step4: Connect to catalog owner RMAN and list all registered databases RMAN> list db_unique_name all; List of Databases DB Key DB Name DB ID Database Role Db_unique_name ------- ------- ----------------- --------------- 1 DB1 1790162170 PRIMARY DB1 3419 DB2 3510904891 PRIMARY DB2 6531 DB3 3510904891 PRIMARY DB3 9231 DB4 3510904891 PRIMARY DB4
  • 14. Manage Virtual Private Catalog • Connect to catalog owner VPC_USER1 and list all registered databases RMAN> list db_unique_name all; List of Databases DB Key DB Name DB ID Database Role Db_unique_name ------- ------- ----------------- --------------- 1 DB1 1790162170 PRIMARY DB1 3419 DB2 3510904891 PRIMARY DB2
  • 15. Manage Virtual Private Catalog • Connect to catalog owner VPC_USER2 and list all registered databases RMAN> list db_unique_name all; List of Databases DB Key DB Name DB ID Database Role Db_unique_name ------- ------- ----------------- --------------- 6531 DB3 3510904891 PRIMARY DB3 89231 DB4 3510904891 PRIMARY DB4
  • 16. Manage Virtual Private Catalog Step 5: Granting/revoking privileges from the virtual private catalog owner • Grant the access to register new target database to virtual private catalog owner: RMAN> grant register database to VPC_USER1; RMAN> grant register database to VPC_USER2; • Revoke the access to register new target database from virtual private catalog owner RMAN> revoke register database from VPC_USER1; RMAN> revoke register database from VPC_USER2;
  • 17. Manage Virtual Private Catalog • Revoke the access to metadata for DB2 ,DB4 databases from virtual private catalog owners. RMAN> revoke catalog for database DB2 from VPC_USER1; RMAN> revoke catalog for database DB4 from VPC_USER2;
  • 18. Manage Virtual Private Catalog Step 6: Drop the virtual private catalog • Connect to the RMAN catalog as virtual private catalog owner and drop the virtual private catalog SQL> rman catalog VPC_USER1/password@RMANCAT RMAN> RMAN> drop catalog; recovery catalog owner is VPC_USER1 enter DROP CATALOG command again to confirm catalog removal RMAN> drop catalog; recovery catalog dropped RMAN>
  • 19. Manage Virtual Private Catalog Step 7: If you are planning to use a 10.2 or older release of RMAN with virtual private catalog then you need to execute below procedures to create/drop virtual private catalogs • Create virtual private catalog: SQL> execute RMAN.DBMS_RCVCAT.CREATE_VIRTUAL_CATALOG; Drop virtual private catalog: SQL> execute RMAN.DBMS_RCVCAT.DROP_VIRTUAL_CATALOG; Where RMAN is the BASE CATALOG OWNER in the above command.
  • 20. RMAN stored Script • The stored scripts play an important role between virtual private catalogs. • All virtual private catalog users have “read” access to all global stored scripts, and the scripts can be run across the environment or are common across the environment need to be created as global scripts. • Each virtual private catalog user has non-global stored scripts that belong to the databases to which they have privileges. • The virtual private catalog user cannot access non-global stored scripts that belong to databases where they don’t have the correct privileges.
  • 21. RMAN stored Script • For example, use the below script to create global backup script. You might want to connect target database DB1 and recovery catalog owner VPC_USER1. SQL> rman target sys/password@DB1 catalog VPC_USER1/password@RMANCAT RMAN> connected to target database: DB1(DBID=4256066018) connected to recovery catalog database RMAN> create GLOBAL script GLOBAL_BACKUP (backup database plus archivelog;);
  • 22. RMAN stored Script Now the user can connect to a new target database (DB2) and run the global stored script “global_backup” to back up the database. SQL> rman target sys/password@DB2 catalog VPC_USER1/password@RMANCAT RMAN> connected to target database: DB2(DBID=4257696119) connected to recovery catalog database RMAN> RUN {execute script GLOBAL_BACKUP;}
  • 23. RMAN stored Script If the user created a non-global script by connecting to DB1 and catalog owner as VPC_USER1 then it is not accessible to the virtual private catalog owner VPC_USER2. CREATE SCRIPT NON_GLOBACL_backup { BACKUP FORMAT "/rman-backup/DB1/%d_%t_%s_%p.rmn" DATABASE PLUS ARCHIVELOG; } RUN {EXECUTE SCRIPT NON_GLOBACL_backup;} The user can run the PRINT SCRIPT command to display stored script RMAN> print script GLOBAL_BACKUP;
  • 24. Summary Virtual private catalog will allow you to maintain only one recovery catalog repository by securing boundaries between administrators of various databases or between DBAs, as well as allowing you to separate their duties.

Editor's Notes

  1. 1