how to do export from a physical standby

Download How to do export from a physical standby

If you can't read please download the document

Upload: doyenblog

Post on 19-Nov-2015

3 views

Category:

Documents


0 download

DESCRIPTION

Expdp Done on the Standby Database

TRANSCRIPT

Pre-requirement:1. In order to perform export dump, we need a database in read write mode(need not necessary be primary database of standby) 2. the above point also means that, we cannot take export directly in physical standby.we only extract data from physical standby.Steps: 1. Login to a database which is in read write mode and create a database link between database in read write and physical standby database. create database link export_dbl1 connect to system identified by manager using 'teststby'; 2. Ensure or create database directory , and ensure that the directory is in read write state. create or replace directory export_dir1 as '/orashare1/exports/dumpfile'; 3. grant read,write to system (by default , the privilege will be there for system ). grant read,write on directory export_dir1 to system; 4. cancel the apply process, bring the physical standby database to read only mode. alter database recover managed standby database disconnect from session; alter database open read only; 5. export what we required from the server where we have database in read write mode. expdp system/dangerous directory=export_dir1 dumpfile=stby_dmp.dmp logfile=stby_dmp.log network_link=export_dbl1 schemas=scott 6. once the export completed, bring the physical standby to apply mode. shu immediatestartup nomountalter database mount standby database;alter database recover managed standby database using current logfile disconnect from session;