11.07.2015 Views

Oracle Database 11 g - Online Public Access Catalog

Oracle Database 11 g - Online Public Access Catalog

Oracle Database 11 g - Online Public Access Catalog

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

304 CHAPTER 6 ■ BACKUP AND RECOVERYExit from SQL*Plus after this, and start RMAN.3. Connect to the base recovery catalog as the base recovery catalog owner, and grantnecessary privileges to the new virtual private catalog owner to access metadata forspecified databases. You do this by using the new RMAN command grant. In this example,we grant the user access to two database, test1 and test2:$ rmanRecovery Manager: Release <strong>11</strong>.1.0.1.0 - Beta on Sun Apr 8 13:19:30 2Copyright (c) 1982, 2005, <strong>Oracle</strong>. All rights reserved.RMAN> connect catalog rman/rman@nickconnected to recovery catalog databaseRMAN> grant catalog for database test1, test2 to virtual1;Grant succeeded.RMAN>The grant catalog for database command grants recovery catalog access for the databasestest1 and test2 to the user virtual1, who is the new virtual catalog owner youcreated. Note that instead of the database names, you can use the DBID for a databaseas well.■Note A virtual private catalog owner can create a local stored script, but has only read-only access toglobal scripts.4. Since the virtual private catalog owner has the catalog for database privilege, that usercan log in to the base recovery catalog and create the virtual private catalog:RMAN> connect catalog virtual1/virtual1@catdbconnected to recovery catalog databaseRMAN> create virtual catalog;found eligible base catalog owned by RMANcreated virtual catalog against base catalog owned by RMANRMAN>The new user virt_user1 owns the virtual catalog created by the previous command. Sincethe base recovery catalog owner has granted rights (with the grant catalog command) for the

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!