<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8170227975642501352</id><updated>2012-02-16T00:14:21.510-08:00</updated><category term='Data Pump Components'/><category term='What Happens During Execution of a Data Pump Job?'/><category term='Oracle Data Pump'/><category term='Export/Import Usage on Data Incompatible with a Previous Release'/><category term='How to use recovery catalog?'/><category term='REMAP_SCHEMA'/><category term='Export and Import Requirements for Downgrades'/><category term='Oracle 10g data pump'/><category term='REMAP_TABLESPACE'/><category term='Using Directory Objects When Automatic Storage Management Is Enabled'/><category term='DBA_DATAPUMP_JOBS View and USER_DATAPUMP_JOBS View'/><category term='and SQL Files'/><category term='Data Pump Parallel Operation'/><category term='Log'/><category term='RMAN Recovery - All data files or tables using OEM'/><category term='What New Features Do Data Pump Export and Import Provide?'/><category term='Data Pump - Operating on Specific Objects'/><category term='Oracle Data Pump New Featurs'/><category term='How Does Data Pump Access Data?'/><category term='Original Export and Import Versus Data Pump Export and Import'/><category term='SQLFILE'/><category term='REUSE_DATAFILES'/><category term='RMAN  - Basics for Beginners'/><category term='SKIP_UNUSABLE_INDEXES'/><category term='Data Pump Import'/><category term='DBA_DATAPUMP_SESSIONS View'/><category term='How to create RMAN catalog in 10g'/><category term='Maximizing Data Pump Job Performance'/><category term='REMAP_DATAFILE'/><category term='Using Substitution Variables in Oracle Data Pump'/><category term='Data Pump Export'/><category term='Data Pump Export Monitoring'/><category term='Export and Import Requirements for Upgrades'/><category term='What is auxiliary Database?'/><category term='Default Locations for Dump'/><category term='SCHEMAS'/><category term='Recovery Catalog'/><category term='TABLE_EXISTS_ACTION'/><category term='ASH Report using OEM'/><category term='RMAN Process - From START to FINISH'/><title type='text'>Oracle Database backup  - Data Pump and RMAN</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://orabackupandrecovery.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://orabackupandrecovery.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>OracleDBAFAQ</name><uri>http://www.blogger.com/profile/05504116708319595979</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>38</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8170227975642501352.post-7621085304742778052</id><published>2008-09-26T05:55:00.000-07:00</published><updated>2008-09-26T07:45:28.020-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='RMAN Process - From START to FINISH'/><title type='text'>RMAN Process - From START to FINISH</title><content type='html'>To illustrate it, Let us explain it with an example. Let us backup our PRODUCTION database using RMAN.&lt;br /&gt;&lt;br /&gt;C$&gt;rman&lt;br /&gt;rman&gt;connect target /&lt;br /&gt;rman&gt;backup database;&lt;br /&gt;&lt;br /&gt;That's it.&lt;br /&gt;&lt;br /&gt;Let us explian the above example.&lt;br /&gt;&lt;br /&gt;RMAN makes the bequeath connection to the target database that we have set up in our env.  This means it checks the ORACLE_SID for an instance name and then spawns a server process at that instance, logging is as SYSDBA user. This connects us as the internal database user SYS. RMAN immediately spawns the channel processes that will use to perform the backup. In this case we are using default settings, so only one channel is allocated.&lt;br /&gt;&lt;br /&gt;We are not using I/O slaves, so the process allocates memory in the PGA.&lt;br /&gt;&lt;br /&gt;Next RMAN compilesa call to sys.dbms_rcvman to request the database schematic information from the target database control file, starting with a determination of the target database version. It gathers version information from the control files along with control file information itself like  type of control file, current sequence number, when it was created etc.&lt;br /&gt;&lt;br /&gt;Becuse this is a full backup, RMAN requests information for each datafile in the database and determines if any files are offline. RMAN ignores all disk affinity information and concentartes on compiling the list of files for inclusion in the backupset.&lt;br /&gt;&lt;br /&gt;After the list is compiled, RMAN is ready to begin the backup process itself. &lt;span style="font-weight: bold;"&gt;To guarantee consistency, it the builds a snapshot control files,&lt;/span&gt; if one already exists it overwrites it with a new one.&lt;br /&gt;&lt;br /&gt;After this RMAN creates a call to the DBMS_BACKUP_RESTORE package to create a backup piece. The backup piece will be built in the default file location.&lt;br /&gt;&lt;br /&gt;RMAN has the file list, so it can allocate the memory buffers for performing the read from DISK, with 20 files RMAN allocates input buffer size 128 MB . 4 per file for total memory utilzation of 10 MB for input buffers. RMAN will only allocate 4 output buffers each of size 1 MB. This brings the total memory utilization 14MB for the backup.&lt;br /&gt;&lt;br /&gt;After the memory is allocated, RMAN initilize the BACKUP PIECE. backup piece will be given unique name that guarnatees uniqueness.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;RMAN then determines if there will be enough space for backup to be successful. It does by using a pessimistic algorithm that assumes that backup will be the same size as sum of the size of all the datafiles.&lt;/span&gt; Due to null compression this will not be the case.&lt;br /&gt;&lt;br /&gt;Once the backup piece is initiated, then the channel process can begin the database backup process. &lt;br /&gt;a) If you are using spfile, it backs it up automatically to the backupset,&lt;br /&gt;b) RMAN then will backup the current control file to the backupset,&lt;br /&gt;This control file backup is automatic whenever the SYSTEM tablespace is backed up, this behaviour is changed if you have CONTROL FILE AUTOBABKUP turned on.&lt;br /&gt;c) Now its time to begin the datafile reads to pull data blocks into the memory. The channel process does this by doing a read-ahead on the disk and pulling several blocks into memeory at the same time.  then memory-to-memory write from input buffer to output buffer occurs.&lt;br /&gt;&lt;br /&gt;During this write, RMAN determines if the block has ever been initialized, or block header information is still zeroed out. If it is an unused block, the write to the output buffer never occur and the block is discarded. If the block has been used, RMAN performs the checksum on the block. If the header and footer of the block did not match, RMAN indicates a corrupt block and aborts the backup. If the block has been initialized and it passes the checksum, then the block is written into output buffer.&lt;br /&gt;&lt;br /&gt;Once the output buffers fills its capacity, we dump the buffer to the backup file location.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;RMAN buffers are being filled up with blocks from all the datafiles so there is no order to the blocks in the dump file.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;While the blocks are being written out to backup piece, the status of the backup is being polled by the RMAN shadow process.  It checks in on the RPCs at the target and passes the information to v$session_lonops for your review.&lt;br /&gt;&lt;br /&gt;Once every block in the datafile has been read into an output buffer and its status determines, then RMAN completes the file backup by writing the datafile header out to the backup piece.&lt;br /&gt;&lt;br /&gt;After all the files have their file headers written to the backup piece, RMAN makes a final call to sys.dbms_backup_restore which writes backup information to the control files. This information includes the name of the backup piece, the checkpoint SCN at the time it started and the time it completed.&lt;br /&gt;&lt;br /&gt;And that it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8170227975642501352-7621085304742778052?l=orabackupandrecovery.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://orabackupandrecovery.blogspot.com/feeds/7621085304742778052/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8170227975642501352&amp;postID=7621085304742778052' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/7621085304742778052'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/7621085304742778052'/><link rel='alternate' type='text/html' href='http://orabackupandrecovery.blogspot.com/2008/09/rman-process-from-start-to-finish.html' title='RMAN Process - From START to FINISH'/><author><name>OracleDBAFAQ</name><uri>http://www.blogger.com/profile/05504116708319595979</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8170227975642501352.post-1250267256757007351</id><published>2008-09-26T05:51:00.000-07:00</published><updated>2008-09-26T05:54:23.560-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='What is auxiliary Database?'/><title type='text'>What is auxiliary Database?</title><content type='html'>The auxiliary database refers to the instance that will become host to restored files from the target database in the event of a TSPITR, a duplication operation or the creation of a standby database using RMAN backups.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8170227975642501352-1250267256757007351?l=orabackupandrecovery.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://orabackupandrecovery.blogspot.com/feeds/1250267256757007351/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8170227975642501352&amp;postID=1250267256757007351' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/1250267256757007351'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/1250267256757007351'/><link rel='alternate' type='text/html' href='http://orabackupandrecovery.blogspot.com/2008/09/what-is-auxiliary-database.html' title='What is auxiliary Database?'/><author><name>OracleDBAFAQ</name><uri>http://www.blogger.com/profile/05504116708319595979</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8170227975642501352.post-6617237240096512084</id><published>2008-09-26T05:44:00.001-07:00</published><updated>2008-09-26T05:50:28.082-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='How to use recovery catalog?'/><title type='text'>How to use recovery catalog?</title><content type='html'>To use a recovery catalog, you first connect from RMAN to the target database. Then you make a second NET connection to the recovery catalog from within RMAN,&lt;br /&gt;&lt;br /&gt;Rman&gt; connect target /&lt;br /&gt;rman&gt; connect catalog rman/password@rcat&lt;br /&gt;&lt;br /&gt;The connect string you pass to the catalog is for the user that owns the RMAN catalog.&lt;br /&gt;&lt;br /&gt;Unlike the target the connection to the catalog is not SYSDBA&lt;br /&gt;&lt;br /&gt;There are two package inside the RECOVERY CATALOG&lt;br /&gt;&lt;br /&gt;DBMS_RCVMAN and dbms_rcvcat.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8170227975642501352-6617237240096512084?l=orabackupandrecovery.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://orabackupandrecovery.blogspot.com/feeds/6617237240096512084/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8170227975642501352&amp;postID=6617237240096512084' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/6617237240096512084'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/6617237240096512084'/><link rel='alternate' type='text/html' href='http://orabackupandrecovery.blogspot.com/2008/09/how-to-use-recovery-catalog.html' title='How to use recovery catalog?'/><author><name>OracleDBAFAQ</name><uri>http://www.blogger.com/profile/05504116708319595979</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8170227975642501352.post-4608954394054606361</id><published>2008-09-26T05:41:00.000-07:00</published><updated>2008-09-26T05:43:55.124-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Recovery Catalog'/><title type='text'>Recovery Catalog</title><content type='html'>Recovery Catalog is a repository for metadata about RMAN backups. You can say that recovery catalog is a merely a copy of pertinent information out of control file that RMAN requires for backup and recovery purpose.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8170227975642501352-4608954394054606361?l=orabackupandrecovery.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://orabackupandrecovery.blogspot.com/feeds/4608954394054606361/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8170227975642501352&amp;postID=4608954394054606361' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/4608954394054606361'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/4608954394054606361'/><link rel='alternate' type='text/html' href='http://orabackupandrecovery.blogspot.com/2008/09/recovery-catalog.html' title='Recovery Catalog'/><author><name>OracleDBAFAQ</name><uri>http://www.blogger.com/profile/05504116708319595979</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8170227975642501352.post-8707665745250427818</id><published>2008-09-24T11:22:00.000-07:00</published><updated>2008-09-24T11:26:47.108-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='How to create RMAN catalog in 10g'/><title type='text'>How to create RMAN catalog in 10g</title><content type='html'>&lt;p&gt;Create a rcat - recovery catalog database with database configuration assistant&lt;br /&gt;&lt;/p&gt; &lt;p&gt;C:\&gt; sqlplus SYS/pass@rcat AS SYSDBA&lt;/p&gt; &lt;p&gt;SQL&gt; CREATE SMALLFILE TABLESPACE catalog_tbs DATAFILE ‘C:\ORACLE\10.2\datafile\cat_tbs.dbf’ SIZE 100M  EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO&lt;/p&gt; &lt;p&gt;SQL&gt; CREATE USER rcat IDENTIFIED BY rcat  DEFAULT TABLESPACE catalog_tbs  QUOTA UNLIMITED ON catalog_tbs;&lt;/p&gt; &lt;p&gt;SQL&gt; GRANT recovery_catalog_owner TO rcat;&lt;/p&gt; &lt;p&gt;SQL&gt; Grant connect, resource to rcat;&lt;/p&gt; &lt;p&gt;SQL&gt; exit&lt;/p&gt; &lt;p&gt;C:\&gt; rman catalog rcat/rcat@rcat&lt;/p&gt; &lt;p&gt;RMAN&gt; create catalog;&lt;/p&gt; &lt;p&gt;RMAN&gt; exit&lt;/p&gt; &lt;p&gt;C:\&gt;rman target orcl catalog rcat/rcat@rcat&lt;/p&gt; &lt;p&gt;Recovery Manager: Release 10.2.0.1.0 - Production on Tue Sep 24 21:21:27 2008&lt;/p&gt; &lt;p&gt;Copyright (c) 1982, 2005, Oracle.  All rights reserved.&lt;/p&gt; &lt;p&gt;connected to target database: RCAT (DBID=376666761)&lt;br /&gt;connected to recovery catalog database&lt;/p&gt; &lt;p&gt;RMAN&gt; register database;&lt;/p&gt; &lt;p&gt;database registered in recovery catalog&lt;br /&gt;starting full resync of recovery catalog&lt;br /&gt;full resync complete&lt;/p&gt; &lt;p&gt;RMAN&gt; report schema;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8170227975642501352-8707665745250427818?l=orabackupandrecovery.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://orabackupandrecovery.blogspot.com/feeds/8707665745250427818/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8170227975642501352&amp;postID=8707665745250427818' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/8707665745250427818'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/8707665745250427818'/><link rel='alternate' type='text/html' href='http://orabackupandrecovery.blogspot.com/2008/09/how-to-create-rman-catalog-in-10g.html' title='How to create RMAN catalog in 10g'/><author><name>OracleDBAFAQ</name><uri>http://www.blogger.com/profile/05504116708319595979</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8170227975642501352.post-9007306076872860643</id><published>2008-09-24T11:20:00.000-07:00</published><updated>2008-09-24T11:21:50.751-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='RMAN  - Basics for Beginners'/><title type='text'>RMAN  - Basics for Beginners</title><content type='html'>&lt;p&gt;&lt;strong&gt;&lt;span style="text-decoration: underline;"&gt;WHAT IS RMAN ?&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Recovery Manager is a tool that: manages the process of creating backups and also manages the process of restoring and recovering from them.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;&lt;span style="text-decoration: underline;"&gt;WHY USE RMAN ?&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt; &lt;ul&gt;&lt;li&gt;No extra costs …Its available free&lt;/li&gt;&lt;li&gt;RMAN introduced in Oracle 8 it has become simpler with newer versions and easier than user managed backups&lt;/li&gt;&lt;li&gt;Proper security&lt;/li&gt;&lt;li&gt;You are 100% sure your database has been backed up.&lt;/li&gt;&lt;li&gt;Its contains detail of the backups taken etc in its central repository&lt;/li&gt;&lt;li&gt;Facility for testing validity of backups also commands like crosscheck to Check the status of backup.&lt;/li&gt;&lt;li&gt;Faster backups and restores compared to backups without RMAN&lt;/li&gt;&lt;li&gt;RMAN is the only backup tool which supports incremental backups.&lt;/li&gt;&lt;li&gt;Oracle 10g has got further optimized incremental backup which has resulted in improvement of performance during backup and recovery time&lt;/li&gt;&lt;li&gt;Parallel operations are supported&lt;/li&gt;&lt;li&gt;Better querying facility for knowing different details of backup&lt;/li&gt;&lt;li&gt;No extra redo generated when backup is taken..compared to online backup without RMAN which results in saving of space in hard disk&lt;/li&gt;&lt;li&gt;RMAN an intelligent tool&lt;/li&gt;&lt;li&gt;Maintains repository of backup metadata&lt;/li&gt;&lt;li&gt;Remembers backup set location&lt;/li&gt;&lt;li&gt;Knows what need to backed up&lt;/li&gt;&lt;li&gt;Knows what is required for recovery&lt;/li&gt;&lt;li&gt;Knows what backup are redundant&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;&lt;strong&gt;&lt;span style="text-decoration: underline;"&gt;UNDERSTANDING THE RMAN ARCHITECTURE&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt; &lt;ul&gt;&lt;li&gt;An oracle RMAN comprises of RMAN EXECUTABLE This could be present and fired even through client side TARGET DATABASE This is the database which needs to be backed up&lt;/li&gt;&lt;li&gt;RECOVERY CATALOG Recovery catalog is optional otherwise backup details are stored in target database controlfile&lt;/li&gt;&lt;li&gt;It is a repository of information queried and updated by Recovery Manager&lt;/li&gt;&lt;li&gt;It is a schema or user stored in Oracle database&lt;/li&gt;&lt;li&gt;One schema can support many databases&lt;/li&gt;&lt;li&gt;It contains information about physical schema of target database datafile and archive log, backup sets and pieces&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;&lt;strong&gt;&lt;span style="text-decoration: underline;"&gt;Recovery catalog is a must in following scenarios&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt; &lt;ul&gt;&lt;li&gt;In order to store scripts&lt;/li&gt;&lt;li&gt;For tablespace point in time recovery&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;&lt;strong&gt;&lt;span style="text-decoration: underline;"&gt;Media Management Software&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Media Management software is a must if you are using RMAN for storing backup in tape drive directly.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;&lt;span style="text-decoration: underline;"&gt;Backups in RMAN&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Oracle backups in RMAN are of the following type&lt;/p&gt; &lt;p&gt;&lt;strong&gt;RMAN complete backup OR RMAN incremental backup&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;These backups are of RMAN proprietary nature&lt;/p&gt; &lt;p&gt;&lt;strong&gt;IMAGE COPY&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Its again a kind of backup. The advantage of uing Image copy is its not in RMAN proprietary format.&lt;/p&gt; &lt;p&gt;&lt;span style="text-decoration: underline;"&gt;Backup Format&lt;/span&gt;&lt;/p&gt; &lt;p&gt;RMAN backup is not in oracle format but in RMAN format. Oracle backup comprises of backup sets and it consists of backup pieces. Backup sets are logical entity. In oracle 9i it gets stored in a default location.&lt;/p&gt; &lt;p&gt;There are two type of backup sets&lt;/p&gt; &lt;ol&gt;&lt;li&gt;Datafile backup sets,&lt;/li&gt;&lt;li&gt;Archivelog backup sets&lt;/li&gt;&lt;/ol&gt; &lt;p&gt;One more important point of data file backup sets is it do not include empty blocks. A backup set would contain many backup pieces. A single backup piece consists of physical files which are in RMAN proprietary format.&lt;/p&gt; &lt;p&gt;You can go to RMAN prompt by just typing rman. RMAN executable is present in ORACLE_HOME/bin location.&lt;/p&gt; &lt;p&gt;bash-2.05$ &lt;strong&gt;rman&lt;/strong&gt;&lt;/p&gt; &lt;div&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;Recovery Manager: Release 10.2.0.1.0 - Production on Mon Jul 23 02:16:55 2007Copyright (c) 1982, 2005, Oracle.  All rights reserved.&lt;/span&gt;&lt;/div&gt; &lt;div&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;  &lt;/span&gt;&lt;/div&gt; &lt;p&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;div&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;RMAN&gt;&lt;/span&gt;&lt;/div&gt;  &lt;div&gt;You can use target connect to connect to database. The database it will connect to depends on the environment variable ORACLE_HOME.&lt;/div&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;connect target&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;connected to target database: ORCL (DBID=1156435946)&lt;/span&gt;&lt;/p&gt; &lt;p&gt;Alternatively you can use “&lt;strong&gt;rman TARGET SYS/oracle@test NOCATALOG&lt;/strong&gt;” to connect to the RMAN of “&lt;strong&gt;test&lt;/strong&gt;” instance.&lt;/p&gt; &lt;p&gt;Here we will be using target database control file to store all the information required for RMAN, like backupsets and backup image information etc.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;&lt;span style="text-decoration: underline;"&gt;Backup Database:&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;shutdown immediate&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;using target database control file instead of recovery catalog&lt;br /&gt;database closed&lt;br /&gt;database dismounted&lt;br /&gt;Oracle instance shut down&lt;/span&gt;&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;startup mount;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;connected to target database (not started)&lt;br /&gt;Oracle instance started&lt;br /&gt;database mountedTotal System Global Area    1258291200 bytes&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;&lt;/span&gt;&lt;/p&gt; &lt;div&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;Fixed Size                     1978336 bytes&lt;br /&gt;Variable Size                318771232 bytes&lt;br /&gt;Database Buffers             922746880 bytes&lt;br /&gt;Redo Buffers                  14794752 bytes&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt; &lt;/span&gt;&lt;/div&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;backup database&lt;/strong&gt;;&lt;/p&gt; &lt;p&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;Starting backup at 23-JUL-07&lt;br /&gt;allocated channel: ORA_DISK_1&lt;br /&gt;channel ORA_DISK_1: sid=155 devtype=DISK&lt;br /&gt;channel ORA_DISK_1: starting full datafile backupset&lt;br /&gt;channel ORA_DISK_1: specifying datafile(s) in backupset&lt;br /&gt;input datafile fno=00001 name=/dy/oracle/product/oradata/orcl/system01.dbf&lt;br /&gt;input datafile fno=00003 name=/dy/oracle/product/oradata/orcl/sysaux01.dbf&lt;br /&gt;input datafile fno=00005 name=/dy/oracle/product/oradata/orcl/example01.dbf&lt;br /&gt;input datafile fno=00002 name=/dy/oracle/product/oradata/orcl/undotbs01.dbf&lt;br /&gt;input datafile fno=00004 name=/dy/oracle/product/oradata/orcl/users01.dbf&lt;br /&gt;channel ORA_DISK_1: starting piece 1 at 23-JUL-07&lt;br /&gt;channel ORA_DISK_1: finished piece 1 at 23-JUL-07&lt;br /&gt;piece handle=/dy/oracle/product/flash_recovery_area/ORCL/backupset/2007_07_23/&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;o1_mf_nnndf_TAG20070723T031355_3b8zv57d_.bkp tag=TAG20070723T031355 comment=NONE&lt;br /&gt;channel ORA_DISK_1: backup set complete, elapsed time: 00:01:36&lt;br /&gt;channel ORA_DISK_1: starting full datafile backupset&lt;br /&gt;channel ORA_DISK_1: specifying datafile(s) in backupset&lt;br /&gt;including current control file in backupset&lt;br /&gt;including current SPFILE in backupset&lt;br /&gt;channel ORA_DISK_1: starting piece 1 at 23-JUL-07&lt;br /&gt;channel ORA_DISK_1: finished piece 1 at 23-JUL-07&lt;br /&gt;piece handle=/dy/oracle/product/flash_recovery_area/ORCL/backupset/2007_07_23/&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;o1_mf_ncsnf_TAG20070723T031355_3b8zy7xr_.bkp tag=TAG20070723T031355 comment=NONE&lt;br /&gt;channel ORA_DISK_1: backup set complete, elapsed time: 00:00:06&lt;br /&gt;Finished backup at 23-JUL-07&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="text-decoration: underline;"&gt;Creating RMAN Catalog&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;You can also create a repository for RMAN to store all this information. Repository will be just another small database which can store the catalog information. Creating a catalog is a 3 step process&lt;/p&gt; &lt;p&gt;1) Create database which will hold the catalog. Else you can use the existing database also. All you need is to create a seperate tablespace for holding the information about RMAN catalog.&lt;/p&gt; &lt;p&gt;2) Create RMAN tablespace and RMAN user&lt;/p&gt; &lt;p&gt;SQL&gt; &lt;strong&gt;create tablespace rman_tbs datafile ‘/dy/oracle/product/db10g/dbf/rman01.dbf’ size 500M EXTENT MANAGEMENT LOCAL segment SPACE MANAGEMENT AUTO ;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;Tablespace created.&lt;/span&gt;&lt;/p&gt; &lt;p&gt;SQL&gt; &lt;strong&gt;create user rman identified by rman&lt;br /&gt;&lt;/strong&gt;2  &lt;strong&gt;default tablespace rman_tbs&lt;br /&gt;&lt;/strong&gt;3  &lt;strong&gt;TEMPORARY TABLESPACE TEMPTS1&lt;br /&gt;&lt;/strong&gt;  4  &lt;strong&gt;QUOTA UNLIMITED ON rman_tbs account unlock;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;User created.&lt;/span&gt;&lt;/p&gt; &lt;p&gt;After creating user, you need to grant RECOVERY_CATALOG_OWNER role to that user.&lt;/p&gt; &lt;p&gt;3)&lt;strong&gt; &lt;/strong&gt;Create RMAN catalog.&lt;/p&gt; &lt;p&gt;bash-2.05$ &lt;strong&gt;rman catalog rman/rman@test&lt;/strong&gt;&lt;/p&gt; &lt;div&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;Recovery Manager: Release 10.2.0.1.0 - Production on Mon Jul 23 04:37:10 2007Copyright (c) 1982, 2005, Oracle.  All rights reserved.&lt;/span&gt;&lt;/div&gt;  &lt;p&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;&lt;/span&gt;&lt;/p&gt; &lt;div&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;connected to recovery catalog database&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt; &lt;/span&gt;&lt;/div&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;create catalog &lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;recovery catalog created&lt;/span&gt;&lt;/p&gt; &lt;p&gt;For registering the database, you need to get connected to database as well as catalog at the same time. Here is how you can do.&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;connect target&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;RMAN-00571: ===========================================================&lt;br /&gt;RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============&lt;br /&gt;RMAN-00571: ===========================================================&lt;br /&gt;RMAN-06004: ORACLE error from recovery catalog database: RMAN-20001: target database not found in recovery catalog&lt;/span&gt;&lt;/p&gt; &lt;p&gt;The above error is because the database we connected to is not found in the catalog database. We can register the database in catalog.&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;register database;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;database registered in recovery catalog&lt;br /&gt;starting full resync of recovery catalog&lt;br /&gt;full resync complete&lt;/span&gt;&lt;/p&gt; &lt;p&gt;Registering database will also resynch the information present in the target database control file and catalog database. Since we have taken 1 backup early, it will synchup that information with RMAN catalog. We can check the same using LIST BACKUP command at RMAN prompt.&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;list backup&lt;/strong&gt;;&lt;/p&gt; &lt;div&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;List of Backup Sets&lt;br /&gt;===================&lt;span style="color:#0000ff;"&gt; &lt;/span&gt;&lt;div&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;&lt;span style="color:#0000ff;"&gt;BS Key  Type LV Size       Device Type Elapsed Time Completion Time&lt;br /&gt;——- —- — ———- ———– ———— —————&lt;br /&gt;18      Full    573.48M    DISK        00:01:26     23-JUL-07&lt;br /&gt;BP Key: 20   Status: AVAILABLE  Compressed: NO  Tag: TAG20070723T031355&lt;br /&gt;Piece Name: /dy/oracle/product/flash_recovery_area/ORCL/backupset/2007_07_23/&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/span&gt; &lt;div&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;&lt;span style="color: rgb(0, 0, 255);"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/div&gt; &lt;div&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;o1_mf_nnndf_TAG20070723T031355_3b8zv57d_.bkp&lt;br /&gt;List of Datafiles in backup set 18&lt;br /&gt;File LV Type Ckp SCN    Ckp Time  Name&lt;br /&gt;—- — —- ———- ——— —-&lt;br /&gt;1       Full 562487     23-JUL-07 /dy/oracle/product/oradata/orcl/system01.dbf&lt;br /&gt;2       Full 562487     23-JUL-07 /dy/oracle/product/oradata/orcl/undotbs01.dbf&lt;br /&gt;3       Full 562487     23-JUL-07 /dy/oracle/product/oradata/orcl/sysaux01.dbf&lt;br /&gt;4       Full 562487     23-JUL-07 /dy/oracle/product/oradata/orcl/users01.dbf&lt;br /&gt;5       Full 562487     23-JUL-07 /dy/oracle/product/oradata/orcl/example01.dbf &lt;div&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;BS Key  Type LV Size       Device Type Elapsed Time Completion Time&lt;br /&gt;——- —- — ———- ———– ———— —————&lt;br /&gt;19      Full    6.80M      DISK        00:00:05     23-JUL-07&lt;br /&gt;BP Key: 21   Status: AVAILABLE  Compressed: NO  Tag: TAG20070723T031355&lt;br /&gt;Piece Name: /dy/oracle/product/flash_recovery_area/ORCL/backupset/2007_07_23/&lt;/span&gt;&lt;/div&gt; &lt;/span&gt; &lt;div&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;o1_mf_ncsnf_TAG20070723T031355_3b8zy7xr_.bkp&lt;br /&gt;Control File Included: Ckp SCN: 562487       Ckp time: 23-JUL-07&lt;br /&gt;SPFILE Included: Modification time: 23-JUL-07&lt;/span&gt;&lt;/div&gt; &lt;/div&gt; &lt;p&gt;&lt;span style="text-decoration: underline;"&gt;&lt;strong&gt;RMAN Command line&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;Backing up the Controlfile and Spfile&lt;/p&gt; &lt;p&gt;The control file can be automatically backed up after each RMAN backup and database structure change as a way to protect the RMAN repository (when we are not using a seperate catalog for RMAN).&lt;br /&gt;RMAN&gt; &lt;strong&gt;configure controlfile autobackup on;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="text-decoration: underline;"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;Backing up control file&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;backup current controlfile;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="text-decoration: underline;"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;Creating Image copy of all datafiles in database&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;These are the image copies and are stored in ORACLE format and not in RMAN format. Backupsets and backuppieces are stored in internal RMAN format. Hence these image copies can be used for manual restore and recovery as well.&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;backup as copy database;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="text-decoration: underline;"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;Creating backupsets of all datafiles in database&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;If you specify BACKUP AS BACKUPSET, then RMAN stores its backups in backup sets. A backup set, consisting of one or more backup pieces, contains the physical file data being backed up.  This backupset is written in a format that only RMAN can access. Only RMAN can create and restore backup sets. Backup sets can be written to disk or tape, and they are the only type of backup which RMAN can use to write backups to tape.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;RMAN&gt; backup as backupset database;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="text-decoration: underline;"&gt;Backup individual tablespace as backupsets&lt;/span&gt;&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;backup tablespace system, HTMLDB;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="text-decoration: underline;"&gt;Backup individual tablespace as image copies&lt;/span&gt;&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;backup as copy tablespace system;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="text-decoration: underline;"&gt;Backup individual files as image copies&lt;/span&gt;&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;backup as copy datafile ‘/dy/oracle/product/db10g/dbf/system01.dbf’;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="text-decoration: underline;"&gt;Backup individual files as Backupsets&lt;/span&gt;&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;backup datafile ‘/dy/oracle/product/db10g/dbf/system01.dbf’;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="text-decoration: underline;"&gt;Backup archivelogs&lt;/span&gt;&lt;/p&gt; &lt;p&gt;We can backup the archive logs according to the output of some search condition. Example we want to backup only those archivelogs which starts with “ARCH_616814159_”.&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;backup acrchivelog like ‘%ARCH_616814159_%’;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="text-decoration: underline;"&gt;Copy archivelogs from some time stamp.&lt;/span&gt;&lt;/p&gt; &lt;p&gt;Suppose we want to copy the archivelogs of last 2 days, then we can use the following commands.&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;BACKUP ARCHIVELOG from time ’sysdate-2′;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="text-decoration: underline;"&gt;Backup all archivelog files&lt;/span&gt;&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;Backup archivelog all;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="text-decoration: underline;"&gt;Backup archivelog between some time.&lt;/span&gt;&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;BACKUP ARCHIVELOG FROM TIME ‘SYSDATE-30′ UNTIL TIME ‘SYSDATE-7′;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="text-decoration: underline;"&gt;Specifying copies while backing up.&lt;/span&gt;&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;backup copies 2 datafile ‘/dy/oracle/product/db10g/dbf/cs_tbs01.dbf’;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Remember that copies option cannot be used with image copies. It can be used only with backupsets.&lt;/p&gt; &lt;p&gt;&lt;span style="text-decoration: underline;"&gt;Giving tags to backups&lt;/span&gt;&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;BACKUP TAG ‘weekly_full_db_bkup’ DATABASE MAXSETSIZE 100M; &lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Backing up backupsets&lt;br /&gt;RMAN&gt; BACKUP BACKUPSET ALL;&lt;/p&gt; &lt;p&gt;&lt;span style="text-decoration: underline;"&gt;Backup imagecopies&lt;/span&gt;&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;Backup as copy backupset all;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="text-decoration: underline;"&gt;List Imagecopies&lt;/span&gt;&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;list copy;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="text-decoration: underline;"&gt;List Backupsets&lt;/span&gt;&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;list backup;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="text-decoration: underline;"&gt;&lt;strong&gt;Restoring and Recovering the database&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;Use the RESTORE and RECOVER commands for RMAN restore and recovery of physical database files.&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;STARTUP FORCE MOUNT;&lt;br /&gt;RESTORE DATABASE;&lt;br /&gt;RECOVER DATABASE;&lt;br /&gt;ALTER DATABASE OPEN;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="text-decoration: underline;"&gt;Recovering Current Tablespaces&lt;/span&gt;&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;SQL ‘ALTER TABLESPACE users OFFLINE’;&lt;br /&gt;RESTORE TABLESPACE users;&lt;br /&gt;RECOVER TABLESPACE users;&lt;br /&gt;SQL ‘ALTER TABLESPACE users ONLINE;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="text-decoration: underline;"&gt;Recovering Current Datafiles&lt;/span&gt;&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;SQL ‘ALTER DATABASE DATAFILE 7 OFFLINE’;&lt;br /&gt;RESTORE DATAFILE 7;&lt;br /&gt;RECOVER DATAFILE 7;&lt;br /&gt;SQL ‘ALTER DATABASE DATAFILE 7 ONLINE’;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="text-decoration: underline;"&gt;Recovering Individual Data Blocks &lt;/span&gt;&lt;/p&gt; &lt;p&gt;RMAN can recover individual corrupted datafile blocks. When RMAN performs a complete scan of a file for a backup, any corrupted blocks are listed in V$DATABASE_BLOCK_CORRUPTION. Corruption is usually reported in alert logs, trace files or results of SQL queries. Use BLOCKRECOVER to repair all corrupted blocks:&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;BLOCKRECOVER CORRUPTION LIST;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;You can also recover individual blocks, as shown in this example:&lt;br /&gt;RMAN&gt; BLOCKRECOVER DATAFILE 7 BLOCK 233, 235 DATAFILE 4 BLOCK 101;&lt;/p&gt; &lt;p&gt;&lt;span style="text-decoration: underline;"&gt;&lt;strong&gt;Managing RMAN repository&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;As you know that if you do not use a recovery catalog, then control file of the target database is used as RMAN repository and eventually after some time the control file records for RMAN information will get overwritten.&lt;br /&gt;Set this initialization parameter in the parameter file of the target database to determine how long records are kept:&lt;/p&gt; &lt;p&gt;CONTROL_FILE_RECORD_KEEP_TIME = &lt;number_of_days_to_keep&gt;&lt;/p&gt; &lt;p&gt;You can configure a retention policy to be used by RMAN to determine which backups are considered obsolete.  This allows you to remove files from the repository that are no longer needed to meet your retention requirements.  This policy can be based on a recovery window (the maximum number of days into the past for which you can recover) or redundancy (how many copies of each backed-up file to keep).&lt;/p&gt; &lt;p&gt;&lt;span style="text-decoration: underline;"&gt;Two Parameters are used to set retention policies.&lt;/span&gt;&lt;/p&gt; &lt;p&gt;You can specify the days days between the current time and the earliest point of recoverability, this is called &lt;strong&gt;RECOVERY WINDOW&lt;/strong&gt;. RMAN does not consider any full or level 0 incremental backup as obsolete if it falls within the recovery window.&lt;br /&gt;Alternatively the &lt;strong&gt;REDUNDANCY &lt;/strong&gt;parameter will instruct to store the number of copies of backup in RMAN repository. If the number of backups for a specific datafile or control file exceeds the REDUNDANCY setting considers the extra backups as obsolete.&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;CONFIGURE RETENTION POLICY TO REDUNDANCY 3;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;This will make the REDUNDANCY setting to 3. Meaning that it will at max store 3 copies of backups and ikmages of datafile. Any more images or backups are consider obsolete.&lt;/p&gt; &lt;p&gt;When we run the below command&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;it will configure new retention policy based on the RECOVERY WINDOW of 7 days. This means that all the backups which falls outside this window will be considered obsolute. So in this case you need to have backup scheduled every week to have atleast 1 valid backup.&lt;/p&gt; &lt;p&gt;Remember that at any point of time, only one policy can be active. It can be either REDUNDANCY or RECOVERY WINDOW.&lt;/p&gt; &lt;p&gt;When you change the retention policy to another one, it will suspend the previous policy as shown below.&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;old RMAN configuration parameters:&lt;br /&gt;CONFIGURE RETENTION POLICY TO REDUNDANCY 3;&lt;br /&gt;new RMAN configuration parameters:&lt;br /&gt;CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;&lt;br /&gt;new RMAN configuration parameters are successfully stored&lt;br /&gt;starting full resync of recovery catalog&lt;br /&gt;full resync complete&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;&lt;span style="text-decoration: underline;"&gt;Cross checking the available backups&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;CROSSCHECK BACKUP;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Crosscheck is needed when an archivelog file or backup is manually removed, i.e., not deleted by RMAN.  This command ensures that data about backups in the recovery catalog or control file is synchronized with corresponding data on disk or in the media management catalog.  The CROSSCHECK command operates only on files that are recorded in the recovery catalog or the control file.&lt;/p&gt; &lt;p&gt;The CROSSCHECK command does not delete any files that it is unable to find, but updates their repository records to EXPIRED. Then, you can run DELETE EXPIRED to remove the repository records for all expired files as well as any existing physical files whose records show the status EXPIRED.&lt;/p&gt; &lt;p&gt;If some backup pieces or copies were erroneously marked as EXPIRED, for example, because the media manager was misconfigured, then after ensuring that the files really do exist in the media manager, run the CROSSCHECK BACKUP command again to restore those files to AVAILABLE status.&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;CROSSCHECK COPY;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;This will validate the image copies.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;&lt;span style="text-decoration: underline;"&gt;Deleting the backups&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;The DELETE command removes RMAN backups and copies from DISK marks the records in control file as DELETED or removes the records from the recovery catalog (if you use a catalog).&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;DELETE BACKUPSET 101, 102, 103; &lt;/strong&gt;&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;delete controlfilecopy ‘%ctl’;  # &lt;/strong&gt;Pattern search is allowed.&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;delete archivelog until sequence 20;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;This will delete all the archives from the oldest one till the sequence we have specified.&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;delete backup of tablespace system;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;DELETE ARCHIVELOG ALL BACKED UP 2 TIMES TO DEVICE TYPE DISK;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="text-decoration: underline;"&gt;&lt;strong&gt;List commands&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;list backup;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;list copy;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;list incarnation of database;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;list expired backupset;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;RMAN&gt;&lt;strong&gt; list expired copy;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;list backup of tablespace sysaux;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;list copy of datafile 3;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="text-decoration: underline;"&gt;&lt;strong&gt;Reporting in RMAN&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;report need backup;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Reports which database files need to be backed up to meet a configured or specified retention policy&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;report unrecoverable;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Reports which database files require backup because they have been affected by some NOLOGGING operation such as a direct-path insert&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;report need backup recovery window of 7 days;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Displays objects requiring backup to satisfy a recovery window-based retention policy.&lt;/p&gt; &lt;p&gt;Suppose in the above command we want to skip a perticular tablespace like perfstat then we can use the below command.&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;report need backup recovery window of 2 days database skip tablespace perfstat;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;report need backup redundancy 3;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Displays objects requiring backup to satisfy a redundancy-based retention policy.&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;report need backup days 7;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Displays files that require more than n days’ worth of archived redo log files for recovery.&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;report need backup incremental 7;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Displays files that require application of more than n incremental backups for recovery.&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;report need backup redundancy 2 datafile 3;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Gives report of files with less than 2 redundant backups.&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;report need backup tablespace htmldb;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Report of files that must be backed up to satisfy current retention policy for this tablespace (htmldb)&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;report need backup incremental 2;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Report of files that need more than 2 incrementals during recovery&lt;/p&gt; &lt;p&gt;RMAN&gt;&lt;strong&gt; report need backup device type disk;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Report of files that must be backed up to satisfy current retention policy for database&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;report obsolete;&lt;/strong&gt;&lt;br /&gt;Shows backups that are obsolete according to the current retention policy.&lt;/p&gt; &lt;p&gt;You can add the options RECOVERY WINDOW and REDUNDANCY with this command as given below.&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;report obsolete recovery window of 3 days;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;report obsolete redundancy 2;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;report schema;&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;This command lists and displays information about the database files.&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;report schema at time ’sysdate - 14′;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;This command gives report on schema 14 days ago.&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;report schema at SCN 10000;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;This gives report on schema at scn 10000.&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;report schema at sequence 55 thread 1;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Gives report of schema at sequence 55.&lt;/p&gt; &lt;p&gt;&lt;span style="text-decoration: underline;"&gt;&lt;strong&gt;RMAN configuration&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;RMAN&gt;&lt;strong&gt; show all;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;RMAN configuration parameters are:&lt;br /&gt;CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default&lt;br /&gt;CONFIGURE BACKUP OPTIMIZATION OFF; # default&lt;br /&gt;CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default&lt;br /&gt;CONFIGURE CONTROLFILE AUTOBACKUP ON;&lt;br /&gt;CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO ‘%F’; # default&lt;br /&gt;CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default&lt;br /&gt;CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default&lt;br /&gt;CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default&lt;br /&gt;CONFIGURE MAXSETSIZE TO UNLIMITED; # default&lt;br /&gt;CONFIGURE ENCRYPTION FOR DATABASE OFF; # default&lt;br /&gt;CONFIGURE ENCRYPTION ALGORITHM ‘AES128′; # default&lt;br /&gt;CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default&lt;br /&gt;CONFIGURE SNAPSHOT CONTROLFILE NAME TO ‘/dy/oracle/product/db10g/dbs/snapcf_test.f’; # default&lt;/span&gt;&lt;/p&gt; &lt;p&gt;We can change each of these parameters as per our requirements.&lt;/p&gt; &lt;p&gt;You can return any setting to its default value by using CONFIGURE… CLEAR&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;CONFIGURE BACKUP OPTIMIZATION CLEAR;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;CONFIGURE RETENTION POLICY CLEAR;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;By default, RMAN sends all backups to an operating system specific directory on disk. So default setting for DEVICE TYPE is DISK. You can configure to make backups by default on tape or any other device as given below.&lt;/p&gt; &lt;p&gt;RMAN&gt;&lt;strong&gt; CONFIGURE DEFAULT DEVICE TYPE TO sbt;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;You can configure backup sets or image copies as the default for a perticular device type, using either of the following commands:&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO COPY;&lt;/strong&gt; # Default becomes image copies&lt;br /&gt;RMAN&gt; &lt;strong&gt;CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO BACKUPSET;&lt;/strong&gt; # Default becomes uncompressed&lt;/p&gt; &lt;p&gt;You can configure RMAN to use compressed backupsets by default on a particular device type, by using the CONFIGURE DEVICE TYPE command with the BACKUP TYPE TO COMPRESSED BACKUPSET option, as shown in the following examples.&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO COMPRESSED BACKUPSET; &lt;/strong&gt;&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;CONFIGURE DEVICE TYPE sbt BACKUP TYPE TO COMPRESSED BACKUPSET;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;To disable compression you can use below command&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO BACKUPSET; &lt;/strong&gt;&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;CONFIGURE DEVICE TYPE sbt BACKUP TYPE TO BACKUPSET; &lt;/strong&gt;&lt;/p&gt; &lt;p&gt;You can configure the parallelism for a device type.&lt;/p&gt; &lt;p&gt;RMAM&gt; &lt;strong&gt;CONFIGURE DEVICE TYPE sbt PARALLELISM 2;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;You can turn on/off controlfile autobackup using&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;configure controlfile autobackup off;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;RMAN&gt; &lt;strong&gt;configure controlfile autobackup on;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;We can configure RMAN channel to write backups and images in a specific format.&lt;/p&gt; &lt;p&gt;The following command configures RMAN to write disk backups to the /backup directory&lt;/p&gt; &lt;p&gt;&lt;strong&gt;CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT ‘/backup/ora_df%t_s%s_s%p’;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;%t is replaced with a four byte time stamp,&lt;br /&gt;%s with the backup set number, and&lt;br /&gt;%p with the backup piece number.&lt;/p&gt; &lt;p&gt;You can also configure format for controlfile autobackup as well.&lt;br /&gt;CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE deviceSpecifier TO ’string’;&lt;/p&gt; &lt;p&gt;For example, you can run the following command:&lt;/p&gt; &lt;p&gt;&lt;strong&gt;CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO ‘?/oradata/cf_%F’;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Here %F will be replaced by following&lt;/p&gt; &lt;p&gt;c-IIIIIIIIII-YYYYMMDD-QQ, where:&lt;/p&gt; &lt;p&gt;IIIIIIIIII stands for the DBID.&lt;br /&gt;YYYYMMDD is a time stamp of the day the backup is generated&lt;br /&gt;QQ is the hex sequence that starts with 00 and has a maximum of FF&lt;/p&gt; &lt;p&gt;You can clear the format using following command.&lt;br /&gt;CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK CLEAR;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8170227975642501352-9007306076872860643?l=orabackupandrecovery.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://orabackupandrecovery.blogspot.com/feeds/9007306076872860643/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8170227975642501352&amp;postID=9007306076872860643' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/9007306076872860643'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/9007306076872860643'/><link rel='alternate' type='text/html' href='http://orabackupandrecovery.blogspot.com/2008/09/rman-basics-for-beginners.html' title='RMAN  - Basics for Beginners'/><author><name>OracleDBAFAQ</name><uri>http://www.blogger.com/profile/05504116708319595979</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8170227975642501352.post-5585252920220944893</id><published>2008-09-24T07:28:00.000-07:00</published><updated>2008-09-24T07:29:07.005-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASH Report using OEM'/><title type='text'>ASH Report using OEM</title><content type='html'>&lt;table width="100%" border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class="x14" width="100%"&gt;Run ASH Report&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="x9"&gt;&lt;img src="http://sachchida-pc:1158/em/cabo/images/t.gif" /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;table width="100%" border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr valign="top" align="right"&gt;&lt;td align="left"&gt;&lt;span class="xh"&gt;Specify the time period for the report.&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;a href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#" onclick="submitForm('foo',1,{'event':'createReport'});return false"&gt;&lt;img src="http://sachchida-pc:1158/em/cabo/images/cache/en/b-createReport.gif" width="110" align="absmiddle" border="0" height="21" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;img src="http://sachchida-pc:1158/em/cabo/images/t.gif" height="10" /&gt;&lt;table width="100%" border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td width="50%"&gt;&lt;table border="0" cellpadding="0" cellspacing="2"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td colspan="2" valign="top" align="left"&gt;&lt;table border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td align="right" nowrap="nowrap"&gt;&lt;span class="xd"&gt;Start Date&lt;/span&gt;&lt;/td&gt;&lt;td width="12"&gt;&lt;img src="http://sachchida-pc:1158/em/cabo/images/t.gif" width="12" /&gt;&lt;/td&gt;&lt;td nowrap="nowrap"&gt;&lt;script&gt;var _locale='en-US';var _tLocale='en';&lt;/script&gt;&lt;script src="http://sachchida-pc:1158/em/cabo/jsLibs/LocaleA0.js"&gt;&lt;/script&gt;&lt;script src="http://sachchida-pc:1158/em/cabo/jsLibs/resources/LocaleElements_en_US.js"&gt;&lt;/script&gt;&lt;script&gt;var _df2DYS=1950;&lt;/script&gt;&lt;script src="http://sachchida-pc:1158/em/cabo/jsLibs/DateFormatA0.js"&gt;&lt;/script&gt;&lt;script src="http://sachchida-pc:1158/em/cabo/jsLibs/DateFieldA1.js"&gt;&lt;/script&gt;&lt;script&gt;var _dfs=new Object();_dfs["startDate"]='M/d/yy'&lt;/script&gt;&lt;input id="startDate" class="xh" onkeypress="return _submitOnEnter(event, 'foo');" name="startDate" size="15" value="9/24/08" type="text"&gt;&lt;img src="http://sachchida-pc:1158/em/cabo/images/t.gif" width="8" height="1" /&gt;&lt;script&gt;var _jspDir='/em/cabo/jsps/';var _configName='_uixDefCfg';var _enc='UTF-8';var _contextURI='/em';&lt;/script&gt;&lt;a onclick="_ldp('foo','startDate',(void 0),1222228800000); return false" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#"&gt;&lt;img src="http://sachchida-pc:1158/em/cabo/images/cache/c-dp.gif" align="absmiddle" border="0" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="2"&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;span class="xy"&gt;(Example: 12/15/03)&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;img src="http://sachchida-pc:1158/em/cabo/images/t.gif" height="10" /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;span class="xd"&gt;Start Time&lt;/span&gt;&lt;/td&gt;&lt;td valign="top" align="left"&gt;&lt;img src="http://sachchida-pc:1158/em/cabo/images/t.gif" width="5" /&gt;&lt;select title="Start Time" class="xh" name="startTimeHour"&gt;&lt;option&gt;12&lt;/option&gt;&lt;option&gt;1&lt;/option&gt;&lt;option&gt;2&lt;/option&gt;&lt;option&gt;3&lt;/option&gt;&lt;option&gt;4&lt;/option&gt;&lt;option&gt;5&lt;/option&gt;&lt;option&gt;6&lt;/option&gt;&lt;option&gt;7&lt;/option&gt;&lt;option&gt;8&lt;/option&gt;&lt;option&gt;9&lt;/option&gt;&lt;option selected="selected"&gt;10&lt;/option&gt;&lt;option&gt;11&lt;/option&gt;&lt;/select&gt;&lt;select title="Start Time" class="xh" name="startTimeMinute"&gt;&lt;option&gt;00&lt;/option&gt;&lt;option&gt;01&lt;/option&gt;&lt;option&gt;02&lt;/option&gt;&lt;option&gt;03&lt;/option&gt;&lt;option&gt;04&lt;/option&gt;&lt;option&gt;05&lt;/option&gt;&lt;option&gt;06&lt;/option&gt;&lt;option&gt;07&lt;/option&gt;&lt;option&gt;08&lt;/option&gt;&lt;option&gt;09&lt;/option&gt;&lt;option&gt;10&lt;/option&gt;&lt;option&gt;11&lt;/option&gt;&lt;option&gt;12&lt;/option&gt;&lt;option&gt;13&lt;/option&gt;&lt;option&gt;14&lt;/option&gt;&lt;option&gt;15&lt;/option&gt;&lt;option&gt;16&lt;/option&gt;&lt;option&gt;17&lt;/option&gt;&lt;option&gt;18&lt;/option&gt;&lt;option&gt;19&lt;/option&gt;&lt;option&gt;20&lt;/option&gt;&lt;option&gt;21&lt;/option&gt;&lt;option selected="selected"&gt;22&lt;/option&gt;&lt;option&gt;23&lt;/option&gt;&lt;option&gt;24&lt;/option&gt;&lt;option&gt;25&lt;/option&gt;&lt;option&gt;26&lt;/option&gt;&lt;option&gt;27&lt;/option&gt;&lt;option&gt;28&lt;/option&gt;&lt;option&gt;29&lt;/option&gt;&lt;option&gt;30&lt;/option&gt;&lt;option&gt;31&lt;/option&gt;&lt;option&gt;32&lt;/option&gt;&lt;option&gt;33&lt;/option&gt;&lt;option&gt;34&lt;/option&gt;&lt;option&gt;35&lt;/option&gt;&lt;option&gt;36&lt;/option&gt;&lt;option&gt;37&lt;/option&gt;&lt;option&gt;38&lt;/option&gt;&lt;option&gt;39&lt;/option&gt;&lt;option&gt;40&lt;/option&gt;&lt;option&gt;41&lt;/option&gt;&lt;option&gt;42&lt;/option&gt;&lt;option&gt;43&lt;/option&gt;&lt;option&gt;44&lt;/option&gt;&lt;option&gt;45&lt;/option&gt;&lt;option&gt;46&lt;/option&gt;&lt;option&gt;47&lt;/option&gt;&lt;option&gt;48&lt;/option&gt;&lt;option&gt;49&lt;/option&gt;&lt;option&gt;50&lt;/option&gt;&lt;option&gt;51&lt;/option&gt;&lt;option&gt;52&lt;/option&gt;&lt;option&gt;53&lt;/option&gt;&lt;option&gt;54&lt;/option&gt;&lt;option&gt;55&lt;/option&gt;&lt;option&gt;56&lt;/option&gt;&lt;option&gt;57&lt;/option&gt;&lt;option&gt;58&lt;/option&gt;&lt;option&gt;59&lt;/option&gt;&lt;/select&gt;&lt;input checked="checked" value="am" name="startTimeAmPm" type="radio"&gt;&lt;span class="xl"&gt;AM&lt;/span&gt;&lt;input value="pm" name="startTimeAmPm" type="radio"&gt;&lt;span class="xl"&gt;PM&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;td width="50%"&gt;&lt;table border="0" cellpadding="0" cellspacing="2"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td colspan="2" valign="top" align="left"&gt;&lt;table border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td align="right" nowrap="nowrap"&gt;&lt;span class="xd"&gt;End Date&lt;/span&gt;&lt;/td&gt;&lt;td width="12"&gt;&lt;img src="http://sachchida-pc:1158/em/cabo/images/t.gif" width="12" /&gt;&lt;/td&gt;&lt;td nowrap="nowrap"&gt;&lt;script&gt;_dfs["endDate"]='M/d/yy'&lt;/script&gt;&lt;input id="endDate" class="xh" name="endDate" size="15" value="9/24/08" type="text"&gt;&lt;img src="http://sachchida-pc:1158/em/cabo/images/t.gif" width="8" height="1" /&gt;&lt;a onclick="_ldp('foo','endDate',(void 0),1222228800000); return false" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#"&gt;&lt;img src="http://sachchida-pc:1158/em/cabo/images/cache/c-dp.gif" align="absmiddle" border="0" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="2"&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;span class="xy"&gt;(Example: 12/15/03)&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;img src="http://sachchida-pc:1158/em/cabo/images/t.gif" height="10" /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;span class="xd"&gt;End Time&lt;/span&gt;&lt;/td&gt;&lt;td valign="top" align="left"&gt;&lt;img src="http://sachchida-pc:1158/em/cabo/images/t.gif" width="5" /&gt;&lt;select title="End Time" class="xh" name="endTimeHour"&gt;&lt;option&gt;12&lt;/option&gt;&lt;option&gt;1&lt;/option&gt;&lt;option&gt;2&lt;/option&gt;&lt;option&gt;3&lt;/option&gt;&lt;option&gt;4&lt;/option&gt;&lt;option&gt;5&lt;/option&gt;&lt;option&gt;6&lt;/option&gt;&lt;option&gt;7&lt;/option&gt;&lt;option&gt;8&lt;/option&gt;&lt;option&gt;9&lt;/option&gt;&lt;option selected="selected"&gt;10&lt;/option&gt;&lt;option&gt;11&lt;/option&gt;&lt;/select&gt;&lt;select title="End Time" class="xh" name="endTimeMinute"&gt;&lt;option&gt;00&lt;/option&gt;&lt;option&gt;01&lt;/option&gt;&lt;option&gt;02&lt;/option&gt;&lt;option&gt;03&lt;/option&gt;&lt;option&gt;04&lt;/option&gt;&lt;option&gt;05&lt;/option&gt;&lt;option&gt;06&lt;/option&gt;&lt;option&gt;07&lt;/option&gt;&lt;option&gt;08&lt;/option&gt;&lt;option&gt;09&lt;/option&gt;&lt;option&gt;10&lt;/option&gt;&lt;option&gt;11&lt;/option&gt;&lt;option&gt;12&lt;/option&gt;&lt;option&gt;13&lt;/option&gt;&lt;option&gt;14&lt;/option&gt;&lt;option&gt;15&lt;/option&gt;&lt;option&gt;16&lt;/option&gt;&lt;option&gt;17&lt;/option&gt;&lt;option&gt;18&lt;/option&gt;&lt;option&gt;19&lt;/option&gt;&lt;option&gt;20&lt;/option&gt;&lt;option&gt;21&lt;/option&gt;&lt;option&gt;22&lt;/option&gt;&lt;option&gt;23&lt;/option&gt;&lt;option&gt;24&lt;/option&gt;&lt;option&gt;25&lt;/option&gt;&lt;option&gt;26&lt;/option&gt;&lt;option selected="selected"&gt;27&lt;/option&gt;&lt;option&gt;28&lt;/option&gt;&lt;option&gt;29&lt;/option&gt;&lt;option&gt;30&lt;/option&gt;&lt;option&gt;31&lt;/option&gt;&lt;option&gt;32&lt;/option&gt;&lt;option&gt;33&lt;/option&gt;&lt;option&gt;34&lt;/option&gt;&lt;option&gt;35&lt;/option&gt;&lt;option&gt;36&lt;/option&gt;&lt;option&gt;37&lt;/option&gt;&lt;option&gt;38&lt;/option&gt;&lt;option&gt;39&lt;/option&gt;&lt;option&gt;40&lt;/option&gt;&lt;option&gt;41&lt;/option&gt;&lt;option&gt;42&lt;/option&gt;&lt;option&gt;43&lt;/option&gt;&lt;option&gt;44&lt;/option&gt;&lt;option&gt;45&lt;/option&gt;&lt;option&gt;46&lt;/option&gt;&lt;option&gt;47&lt;/option&gt;&lt;option&gt;48&lt;/option&gt;&lt;option&gt;49&lt;/option&gt;&lt;option&gt;50&lt;/option&gt;&lt;option&gt;51&lt;/option&gt;&lt;option&gt;52&lt;/option&gt;&lt;option&gt;53&lt;/option&gt;&lt;option&gt;54&lt;/option&gt;&lt;option&gt;55&lt;/option&gt;&lt;option&gt;56&lt;/option&gt;&lt;option&gt;57&lt;/option&gt;&lt;option&gt;58&lt;/option&gt;&lt;option&gt;59&lt;/option&gt;&lt;/select&gt;&lt;input checked="checked" value="am" name="endTimeAmPm" type="radio"&gt;&lt;span class="xl"&gt;AM&lt;/span&gt;&lt;input value="pm" name="endTimeAmPm" type="radio"&gt;&lt;span class="xl"&gt;PM&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;table width="100%" border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td height="17"&gt;&lt;img src="http://sachchida-pc:1158/em/cabo/images/t.gif" /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td rowspan="3" width="20"&gt;&lt;img src="http://sachchida-pc:1158/em/cabo/images/t.gif" width="20" height="1" /&gt;&lt;/td&gt;&lt;td&gt;&lt;table width="100%" border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class="x15" width="100%"&gt;Report Results&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="x9"&gt;&lt;img src="http://sachchida-pc:1158/em/cabo/images/t.gif" /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td height="2"&gt;&lt;img src="http://sachchida-pc:1158/em/cabo/images/t.gif" /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;table width="100%" border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;table width="100%" border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr align="right"&gt;&lt;td&gt;&lt;a href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#" onclick="submitForm('foo',1,{'event':'saveToFile'});return false"&gt;&lt;img src="http://sachchida-pc:1158/em/cabo/images/cache/en/b-saveToFile.gif" width="82" align="absmiddle" border="0" height="21" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;style type="text/css"&gt;body.awr {font:bold 10pt Arial,Helvetica,Geneva,sans-serif;color:black; background:White;} pre.awr  {font:8pt Courier;color:black; background:White;}h1.awr   {font:bold 20pt Arial,Helvetica,Geneva,sans-serif;color:#336699;background-color:White;border-bottom:1px solid #cccc99;margin-top:0pt; margin-bottom:0pt;padding:0px 0px 0px 0px;} h2.awr   {font:bold 18pt Arial,Helvetica,Geneva,sans-serif;color:#336699;background-color:White;margin-top:4pt; margin-bottom:0pt;} h3.awr {font:bold 16pt Arial,Helvetica,Geneva,sans-serif;color:#336699;background-color:White;margin-top:4pt; margin-bottom:0pt;}li.awr {font: 8pt Arial,Helvetica,Geneva,sans-serif; color:black; background:White;} th.awrnobg {font:bold 8pt Arial,Helvetica,Geneva,sans-serif; color:black; background:White;padding-left:4px; padding-right:4px;padding-bottom:2px}th.awrbg {font:bold 8pt Arial,Helvetica,Geneva,sans-serif; color:White; background:#0066CC;padding-left:4px; padding-right:4px;padding-bottom:2px} td.awrnc {font:8pt Arial,Helvetica,Geneva,sans-serif;color:black;background:White;vertical-align:top;} td.awrc    {font:8pt Arial,Helvetica,Geneva,sans-serif;color:black;background:#FFFFCC; vertical-align:top;}a.awr {font:bold 8pt Arial,Helvetica,sans-serif;color:#663300; vertical-align:top;margin-top:0pt; margin-bottom:0pt;} &lt;/style&gt; &lt;h1 class="awr"&gt; ASH Report For ORCL/orcl   &lt;/h1&gt; &lt;p&gt; &lt;/p&gt;&lt;table width="100%" border="0" cellpadding="0" cellspacing="0"&gt;&lt;/table&gt;&lt;table width="500" border="1"&gt; &lt;tbody&gt;&lt;tr&gt;&lt;th class="awrbg"&gt;DB Name&lt;/th&gt;&lt;th class="awrbg"&gt;DB Id&lt;/th&gt;&lt;th class="awrbg"&gt;Instance&lt;/th&gt;&lt;th class="awrbg"&gt;Inst num&lt;/th&gt;&lt;th class="awrbg"&gt;Release&lt;/th&gt;&lt;th class="awrbg"&gt;RAC&lt;/th&gt;&lt;th class="awrbg"&gt;Host&lt;/th&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td class="awrnc"&gt;ORCL&lt;/td&gt;&lt;td class="awrnc" align="right"&gt;1193379843&lt;/td&gt;&lt;td class="awrnc"&gt;orcl&lt;/td&gt;&lt;td class="awrnc" align="right"&gt;1&lt;/td&gt;&lt;td class="awrnc"&gt;10.2.0.3.0&lt;/td&gt;&lt;td class="awrnc"&gt;NO&lt;/td&gt;&lt;td class="awrnc"&gt;SACHCHIDA-PC&lt;/td&gt;&lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;p&gt; &lt;/p&gt;&lt;p&gt; &lt;table width="500" border="1"&gt; &lt;tbody&gt;&lt;tr&gt;&lt;th class="awrbg"&gt;CPUs&lt;/th&gt;&lt;th class="awrbg"&gt;SGA Size&lt;/th&gt;&lt;th class="awrbg"&gt;Buffer Cache&lt;/th&gt;&lt;th class="awrbg"&gt;Shared Pool&lt;/th&gt;&lt;th class="awrbg"&gt;ASH Buffer Size&lt;/th&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td class="awrnc" align="right"&gt;2&lt;/td&gt;&lt;td class="awrnc" align="right"&gt;584M (100%)&lt;/td&gt;&lt;td class="awrnc" align="right"&gt;360M (61.6%)&lt;/td&gt;&lt;td class="awrnc" align="right"&gt;184M (31.5%)&lt;/td&gt;&lt;td class="awrnc" align="right"&gt;4.0M (0.7%)&lt;/td&gt;&lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt; &lt;table width="500" border="1"&gt; &lt;tbody&gt;&lt;tr&gt;&lt;th class="awrnobg"&gt;&lt;br /&gt;&lt;/th&gt;&lt;th class="awrbg"&gt;Sample Time&lt;/th&gt;&lt;th class="awrbg"&gt;Data Source&lt;/th&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td class="awrc"&gt;Analysis Begin Time:&lt;/td&gt;&lt;td class="awrc" align="right"&gt;24-Sep-08 10:22:32&lt;/td&gt;&lt;td class="awrc" align="center"&gt;V$ACTIVE_SESSION_HISTORY&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td class="awrnc"&gt;Analysis End Time:&lt;/td&gt;&lt;td class="awrnc" align="right"&gt;24-Sep-08 10:27:32&lt;/td&gt;&lt;td class="awrnc" align="center"&gt;V$ACTIVE_SESSION_HISTORY&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td class="awrc"&gt;Elapsed Time:&lt;/td&gt;&lt;td class="awrc" align="right"&gt;       5.0 (mins) &lt;/td&gt;&lt;td class="awrc" align="center"&gt; &lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td class="awrnc"&gt;Sample Count:&lt;/td&gt;&lt;td class="awrnc" align="right"&gt;         11&lt;/td&gt;&lt;td class="awrnc"&gt; &lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td class="awrc"&gt;Average Active Sessions:&lt;/td&gt;&lt;td class="awrc" align="right"&gt;       0.04&lt;/td&gt;&lt;td class="awrc"&gt; &lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td class="awrnc"&gt;Avg. Active Session per CPU:&lt;/td&gt;&lt;td class="awrnc" align="right"&gt;       0.02&lt;/td&gt;&lt;td class="awrnc"&gt; &lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td class="awrnc"&gt;Report Target:&lt;/td&gt;&lt;td class="awrnc" align="right"&gt;None specified&lt;/td&gt;&lt;td class="awrnc" align="center"&gt; &lt;/td&gt;&lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;/p&gt;&lt;p&gt; &lt;a class="awr" name="top"&gt;&lt;/a&gt; &lt;/p&gt;&lt;h2 class="awr"&gt; ASH Report &lt;/h2&gt; &lt;ul&gt;&lt;li class="awr"&gt;&lt;a class="awr" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#101"&gt;Top Events&lt;/a&gt; &lt;/li&gt;&lt;li class="awr"&gt;&lt;a class="awr" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#102"&gt;Load Profile&lt;/a&gt; &lt;/li&gt;&lt;li class="awr"&gt;&lt;a class="awr" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#104"&gt;Top SQL&lt;/a&gt; &lt;/li&gt;&lt;li class="awr"&gt;&lt;a class="awr" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#10380"&gt;Top PL/SQL&lt;/a&gt; &lt;/li&gt;&lt;li class="awr"&gt;&lt;a class="awr" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#105"&gt;Top Sessions&lt;/a&gt; &lt;/li&gt;&lt;li class="awr"&gt;&lt;a class="awr" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#106"&gt;Top Objects/Files/Latches&lt;/a&gt; &lt;/li&gt;&lt;li class="awr"&gt;&lt;a class="awr" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#10200"&gt;Activity Over Time&lt;/a&gt; &lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;a class="awr" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#top"&gt;Back to Top&lt;/a&gt;&lt;hr /&gt;&lt;p&gt; &lt;a class="awr" name="101"&gt;&lt;/a&gt; &lt;/p&gt;&lt;h2 class="awr"&gt; Top Events &lt;/h2&gt; &lt;ul&gt;&lt;li class="awr"&gt;&lt;a class="awr" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#10010"&gt; Top User Events &lt;/a&gt; &lt;/li&gt;&lt;li class="awr"&gt;&lt;a class="awr" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#10020"&gt; Top Background Events &lt;/a&gt; &lt;/li&gt;&lt;li class="awr"&gt;&lt;a class="awr" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#10030"&gt; Top Event P1/P2/P3 Values &lt;/a&gt; &lt;/li&gt;&lt;/ul&gt; &lt;a class="awr" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#top"&gt;Back to Top&lt;/a&gt;&lt;p&gt; &lt;a class="awr" name="10010"&gt;&lt;/a&gt; &lt;/p&gt;&lt;h3 class="awr"&gt;Top User Events&lt;/h3&gt;  &lt;table border="1"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;th class="awrbg"&gt;Event&lt;/th&gt;&lt;th class="awrbg"&gt;Event Class&lt;/th&gt;&lt;th class="awrbg"&gt;% Activity&lt;/th&gt;&lt;th class="awrbg"&gt;Avg Active Sessions&lt;/th&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td class="awrc"&gt;db file sequential read&lt;/td&gt; &lt;td class="awrc"&gt;User I/O&lt;/td&gt; &lt;td class="awrc" align="right"&gt;54.55&lt;/td&gt; &lt;td class="awrc" align="right"&gt;0.02&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td class="awrnc"&gt;CPU + Wait for CPU&lt;/td&gt; &lt;td class="awrnc"&gt;CPU&lt;/td&gt; &lt;td class="awrnc" align="right"&gt;36.36&lt;/td&gt; &lt;td class="awrnc" align="right"&gt;0.01&lt;/td&gt;&lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;p&gt; &lt;a class="awr" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#101"&gt;Back to Top Events&lt;/a&gt;&lt;br /&gt;&lt;a class="awr" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#top"&gt;Back to Top&lt;/a&gt;&lt;/p&gt;&lt;p&gt; &lt;a class="awr" name="10020"&gt;&lt;/a&gt; &lt;/p&gt;&lt;h3 class="awr"&gt;Top Background Events&lt;/h3&gt;  &lt;table border="1"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;th class="awrbg"&gt;Event&lt;/th&gt;&lt;th class="awrbg"&gt;Event Class&lt;/th&gt;&lt;th class="awrbg"&gt;% Activity&lt;/th&gt;&lt;th class="awrbg"&gt;Avg Active Sessions&lt;/th&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td class="awrc"&gt;os thread startup&lt;/td&gt; &lt;td class="awrc"&gt;Concurrency&lt;/td&gt; &lt;td class="awrc" align="right"&gt;9.09&lt;/td&gt; &lt;td class="awrc" align="right"&gt;0.00&lt;/td&gt;&lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;p&gt; &lt;a class="awr" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#101"&gt;Back to Top Events&lt;/a&gt;&lt;br /&gt;&lt;a class="awr" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#top"&gt;Back to Top&lt;/a&gt;&lt;/p&gt;&lt;p&gt; &lt;a class="awr" name="10030"&gt;&lt;/a&gt; &lt;/p&gt;&lt;h3 class="awr"&gt;Top Event P1/P2/P3 Values&lt;/h3&gt;  &lt;table border="1"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;th class="awrbg"&gt;Event&lt;/th&gt;&lt;th class="awrbg"&gt;% Event&lt;/th&gt;&lt;th class="awrbg"&gt;P1 Value, P2 Value, P3 Value&lt;/th&gt;&lt;th class="awrbg"&gt;% Activity&lt;/th&gt;&lt;th class="awrbg"&gt;Parameter 1&lt;/th&gt;&lt;th class="awrbg"&gt;Parameter 2&lt;/th&gt;&lt;th class="awrbg"&gt;Parameter 3&lt;/th&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td class="awrc"&gt;db file sequential read&lt;/td&gt; &lt;td class="awrc" align="right"&gt;54.55&lt;/td&gt; &lt;td class="awrc" align="right"&gt;"1","27757","1"&lt;/td&gt; &lt;td class="awrc" align="right"&gt;9.09&lt;/td&gt; &lt;td class="awrc"&gt;file#&lt;/td&gt; &lt;td class="awrc"&gt;block#&lt;/td&gt; &lt;td class="awrc"&gt;blocks&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td class="awrnc"&gt; &lt;/td&gt; &lt;td class="awrnc" align="right"&gt; &lt;/td&gt; &lt;td class="awrnc" align="right"&gt;"1","60501","1"&lt;/td&gt; &lt;td class="awrnc" align="right"&gt;9.09&lt;/td&gt; &lt;td class="awrnc"&gt; &lt;/td&gt; &lt;td class="awrnc"&gt; &lt;/td&gt; &lt;td class="awrnc"&gt; &lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td class="awrc"&gt; &lt;/td&gt; &lt;td class="awrc" align="right"&gt; &lt;/td&gt; &lt;td class="awrc" align="right"&gt;"3","3834","1"&lt;/td&gt; &lt;td class="awrc" align="right"&gt;9.09&lt;/td&gt; &lt;td class="awrc"&gt; &lt;/td&gt; &lt;td class="awrc"&gt; &lt;/td&gt; &lt;td class="awrc"&gt; &lt;/td&gt;&lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;p&gt; &lt;a class="awr" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#101"&gt;Back to Top Events&lt;/a&gt;&lt;br /&gt;&lt;a class="awr" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#top"&gt;Back to Top&lt;/a&gt;&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt; &lt;a class="awr" name="102"&gt;&lt;/a&gt; &lt;/p&gt;&lt;h2 class="awr"&gt; Load Profile &lt;/h2&gt; &lt;ul&gt;&lt;li class="awr"&gt;&lt;a class="awr" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#10100"&gt; Top Service/Module &lt;/a&gt; &lt;/li&gt;&lt;li class="awr"&gt;&lt;a class="awr" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#10110"&gt; Top Client IDs &lt;/a&gt; &lt;/li&gt;&lt;li class="awr"&gt;&lt;a class="awr" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#10120"&gt; Top SQL Command Types &lt;/a&gt; &lt;/li&gt;&lt;/ul&gt; &lt;a class="awr" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#top"&gt;Back to Top&lt;/a&gt;&lt;p&gt; &lt;a class="awr" name="10100"&gt;&lt;/a&gt; &lt;/p&gt;&lt;h3 class="awr"&gt;Top Service/Module&lt;/h3&gt;  &lt;table border="1"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;th class="awrbg"&gt;Service&lt;/th&gt;&lt;th class="awrbg"&gt;Module&lt;/th&gt;&lt;th class="awrbg"&gt;% Activity&lt;/th&gt;&lt;th class="awrbg"&gt;Action&lt;/th&gt;&lt;th class="awrbg"&gt;% Action&lt;/th&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td class="awrc"&gt;SYS$USERS&lt;/td&gt; &lt;td class="awrc"&gt;Admin Connection&lt;/td&gt; &lt;td class="awrc" align="right"&gt;72.73&lt;/td&gt; &lt;td class="awrc"&gt;UNNAMED&lt;/td&gt; &lt;td class="awrc" align="right"&gt;72.73&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td class="awrnc"&gt; &lt;/td&gt; &lt;td class="awrnc"&gt;emagent.exe&lt;/td&gt; &lt;td class="awrnc" align="right"&gt;18.18&lt;/td&gt; &lt;td class="awrnc"&gt;UNNAMED&lt;/td&gt; &lt;td class="awrnc" align="right"&gt;18.18&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td class="awrc"&gt;SYS$BACKGROUND&lt;/td&gt; &lt;td class="awrc"&gt;UNNAMED&lt;/td&gt; &lt;td class="awrc" align="right"&gt;9.09&lt;/td&gt; &lt;td class="awrc"&gt;UNNAMED&lt;/td&gt; &lt;td class="awrc" align="right"&gt;9.09&lt;/td&gt;&lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;p&gt; &lt;a class="awr" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#102"&gt;Back to Load Profile&lt;/a&gt;&lt;br /&gt;&lt;a class="awr" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#top"&gt;Back to Top&lt;/a&gt;&lt;/p&gt;&lt;p&gt; &lt;a class="awr" name="10110"&gt;&lt;/a&gt; &lt;/p&gt;&lt;h3 class="awr"&gt;Top Client IDs&lt;/h3&gt;  &lt;table border="1"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;th class="awrbg"&gt;Client ID&lt;/th&gt;&lt;th class="awrbg"&gt;% Activity&lt;/th&gt;&lt;th class="awrbg"&gt;Avg Active Sessions&lt;/th&gt;&lt;th class="awrbg"&gt;User&lt;/th&gt;&lt;th class="awrbg"&gt;Program&lt;/th&gt;&lt;th class="awrbg"&gt;Service&lt;/th&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td class="awrc"&gt;SYS@Sachchida-PC@Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US&lt;/td&gt; &lt;td class="awrc" align="right"&gt;72.73&lt;/td&gt; &lt;td class="awrc" align="right"&gt;0.03&lt;/td&gt; &lt;td class="awrc"&gt;SYS&lt;/td&gt; &lt;td class="awrc"&gt;OMS&lt;/td&gt; &lt;td class="awrc"&gt;SYS$USERS&lt;/td&gt;&lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;p&gt; &lt;a class="awr" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#102"&gt;Back to Load Profile&lt;/a&gt;&lt;br /&gt;&lt;a class="awr" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#top"&gt;Back to Top&lt;/a&gt;&lt;/p&gt;&lt;p&gt; &lt;a class="awr" name="10120"&gt;&lt;/a&gt; &lt;/p&gt;&lt;h3 class="awr"&gt;Top SQL Command Types&lt;/h3&gt; &lt;ul&gt;&lt;li class="awr"&gt; 'Distinct SQLIDs' is the count of the distinct number of SQLIDs       with the given SQL Command Type found over all the ASH samples       in the analysis period &lt;/li&gt;&lt;/ul&gt; &lt;table border="1"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;th class="awrbg"&gt;SQL Command Type&lt;/th&gt;&lt;th class="awrbg"&gt;Distinct SQLIDs&lt;/th&gt;&lt;th class="awrbg"&gt;% Activity&lt;/th&gt;&lt;th class="awrbg"&gt;Avg Active Sessions&lt;/th&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td class="awrc"&gt;PL/SQL EXECUTE&lt;/td&gt; &lt;td class="awrc" align="right"&gt;1&lt;/td&gt; &lt;td class="awrc" align="right"&gt;72.73&lt;/td&gt; &lt;td class="awrc" align="right"&gt;0.03&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td class="awrnc"&gt;INSERT&lt;/td&gt; &lt;td class="awrnc" align="right"&gt;1&lt;/td&gt; &lt;td class="awrnc" align="right"&gt;9.09&lt;/td&gt; &lt;td class="awrnc" align="right"&gt;0.00&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td class="awrc"&gt;SELECT&lt;/td&gt; &lt;td class="awrc" align="right"&gt;1&lt;/td&gt; &lt;td class="awrc" align="right"&gt;9.09&lt;/td&gt; &lt;td class="awrc" align="right"&gt;0.00&lt;/td&gt;&lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;p&gt; &lt;a class="awr" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#102"&gt;Back to Load Profile&lt;/a&gt;&lt;br /&gt;&lt;a class="awr" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#top"&gt;Back to Top&lt;/a&gt;&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt; &lt;a class="awr" name="104"&gt;&lt;/a&gt; &lt;/p&gt;&lt;h2 class="awr"&gt; Top SQL &lt;/h2&gt; &lt;ul&gt;&lt;li class="awr"&gt;&lt;a class="awr" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#10300"&gt; Top SQL Statements &lt;/a&gt; &lt;/li&gt;&lt;li class="awr"&gt;&lt;a class="awr" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#10370"&gt; Top SQL using literals &lt;/a&gt; &lt;/li&gt;&lt;li class="awr"&gt;&lt;a class="awr" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#99997"&gt; Complete List of SQL Text &lt;/a&gt; &lt;/li&gt;&lt;/ul&gt; &lt;a class="awr" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#top"&gt;Back to Top&lt;/a&gt;&lt;p&gt; &lt;a class="awr" name="10300"&gt;&lt;/a&gt; &lt;/p&gt;&lt;h3 class="awr"&gt;Top SQL Statements&lt;/h3&gt;  &lt;table border="1"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;th class="awrbg"&gt;SQL ID&lt;/th&gt;&lt;th class="awrbg"&gt;Planhash&lt;/th&gt;&lt;th class="awrbg"&gt;% Activity&lt;/th&gt;&lt;th class="awrbg"&gt;Event&lt;/th&gt;&lt;th class="awrbg"&gt;% Event&lt;/th&gt;&lt;th class="awrbg"&gt;SQL Text&lt;/th&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td class="awrc" align="right"&gt;&lt;a class="awr" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#8u809k64x3nzd"&gt;8u809k64x3nzd&lt;/a&gt;&lt;/td&gt; &lt;td class="awrc" align="right"&gt; &lt;/td&gt; &lt;td class="awrc" align="right"&gt;72.73&lt;/td&gt; &lt;td class="awrc"&gt;db file sequential read&lt;/td&gt; &lt;td class="awrc" align="right"&gt;45.45&lt;/td&gt; &lt;td class="awrc"&gt;begin DBMS_WORKLOAD_REPOSITORY...&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td class="awrnc" align="right"&gt; &lt;/td&gt; &lt;td class="awrnc" align="right"&gt; &lt;/td&gt; &lt;td class="awrnc" align="right"&gt;72.73&lt;/td&gt; &lt;td class="awrnc"&gt;CPU + Wait for CPU&lt;/td&gt; &lt;td class="awrnc" align="right"&gt;27.27&lt;/td&gt; &lt;td class="awrnc"&gt;begin DBMS_WORKLOAD_REPOSITORY...&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td class="awrc" align="right"&gt;&lt;a class="awr" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#3kmkqn10x3m0x"&gt;3kmkqn10x3m0x&lt;/a&gt;&lt;/td&gt; &lt;td class="awrc" align="right"&gt;1983056714&lt;/td&gt; &lt;td class="awrc" align="right"&gt;9.09&lt;/td&gt; &lt;td class="awrc"&gt;db file sequential read&lt;/td&gt; &lt;td class="awrc" align="right"&gt;9.09&lt;/td&gt; &lt;td class="awrc"&gt;INSERT INTO DBSNMP.MGMT_SNAPSH...&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td class="awrnc" align="right"&gt;&lt;a class="awr" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#cp5caasd2udnw"&gt;cp5caasd2udnw&lt;/a&gt;&lt;/td&gt; &lt;td class="awrnc" align="right"&gt;3838994914&lt;/td&gt; &lt;td class="awrnc" align="right"&gt;9.09&lt;/td&gt; &lt;td class="awrnc"&gt;CPU + Wait for CPU&lt;/td&gt; &lt;td class="awrnc" align="right"&gt;9.09&lt;/td&gt; &lt;td class="awrnc"&gt;/* OracleOEM */          SELEC...&lt;/td&gt;&lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;p&gt; &lt;a class="awr" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#104"&gt;Back to Top SQL&lt;/a&gt;&lt;br /&gt;&lt;a class="awr" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#top"&gt;Back to Top&lt;/a&gt;&lt;/p&gt;&lt;p&gt; &lt;a class="awr" name="10370"&gt;&lt;/a&gt; &lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p&gt; &lt;/p&gt;&lt;h3 class="awr"&gt;Top SQL using literals&lt;/h3&gt;   &lt;p&gt;                   No data exists for this section of the report. &lt;/p&gt;&lt;p&gt; &lt;a class="awr" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#104"&gt;Back to Top SQL&lt;/a&gt;&lt;br /&gt;&lt;a class="awr" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#top"&gt;Back to Top&lt;/a&gt;&lt;/p&gt;&lt;p&gt; &lt;a class="awr" name="99997"&gt;&lt;/a&gt; &lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;h3 class="awr"&gt;Complete List of SQL Text&lt;/h3&gt;&lt;p&gt; &lt;table border="1"&gt; &lt;tbody&gt;&lt;tr&gt;&lt;th class="awrbg"&gt;SQL Id&lt;/th&gt;&lt;th class="awrbg"&gt;SQL Text&lt;/th&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td class="awrc"&gt;&lt;a class="awr" name="3kmkqn10x3m0x"&gt;&lt;/a&gt;3kmkqn10x3m0x&lt;/td&gt;&lt;td class="awrc"&gt;INSERT INTO DBSNMP.MGMT_SNAPSHOT_SQL( SNAP_ID, SQL_ID, HASH_VALUE, CHILD_NUMBER, ELAPSED_TIME, EXECUTIONS) SELECT :B2 , SQL_ID, HASH_VALUE, -1, ELAPSED_TIME, EXECUTIONS FROM V$SQLAREA WHERE EXECUTIONS &gt; :B1 AND PARSING_USER_ID NOT IN (SELECT USER_ID FROM DBA_USERS WHERE USERNAME IN ('SYS', 'SYSMAN', 'DBSNMP'))&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td class="awrnc"&gt;&lt;a class="awr" name="8u809k64x3nzd"&gt;&lt;/a&gt;8u809k64x3nzd&lt;/td&gt;&lt;td class="awrnc"&gt;begin DBMS_WORKLOAD_REPOSITORY.CREATE_SNAPSHOT(); end;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td class="awrc"&gt;&lt;a class="awr" name="cp5caasd2udnw"&gt;&lt;/a&gt;cp5caasd2udnw&lt;/td&gt;&lt;td class="awrc"&gt; /* OracleOEM */          SELECT TO_CHAR(CAST(md.end_time AS TIMESTAMP) AT TIME ZONE 'GMT',                         'YYYY-MM-DD HH24:MI:SS TZD') time,                 md.user_wait_time_pct,                 md.db_time_ps db_time_users,                 md.cpu_time_ps db_cpu_users,                 DECODE(:1,  'TRUE',  md.host_cpu_usage_pct,                                    NULL) host_cpu_usage_pct,                 wcd.users userio_users,                 :2 max_cpu_cnt           FROM (SELECT DISTINCT wait_class_id                   FROM v$event_name                  WHERE wait_class = 'User I/O'                    AND :3 = 'TRUE') wcn,                 (SELECT wait_class_id,                         intsize_csec,  end_time,                         time_waited / intsize_csec users                   FROM v$waitclassmetric_history                  WHERE end_time &gt;= SYSDATE - 15/(60*24)) wcd,                 (SELECT intsize_csec,  end_time,                         SUM(CASE WHEN metric_name = 'Database Wait Time Ratio'                                 THEN value                                 ELSE 0 END) user_wait_time_pct,                         SUM(CASE WHEN metric_name = 'Database Time Per Sec'                                 THEN value / 100                                 ELSE 0 END) db_time_ps,                         SUM(CASE WHEN metric_name = 'CPU Usage Per Sec'                                  THEN value / 100                                  ELSE 0 END) cpu_time_ps,                          SUM(CASE WHEN metric_name = 'Host CPU Utilization (%)'                                  THEN value                                  ELSE 0 END) host_cpu_usage_pct                   FROM v$sysmetric_history                  WHERE metric_name IN ('Database Wait Time Ratio',                                         'Database Time Per Sec',                                          'CPU Usage Per Sec',                                          'Host CPU Utilization (%)')                    AND group_id = 2                    AND end_time &gt;= SYSDATE - 15/(60*24)                  GROUP BY intsize_csec,  end_time) md          WHERE wcn.wait_class_id = wcd.wait_class_id            AND wcd.intsize_csec = md.intsize_csec            AND wcd.end_time = md.end_time            AND :4 != 'BASIC'          ORDER BY md.end_time ASC          &lt;/td&gt;&lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;/p&gt;&lt;p&gt; &lt;a class="awr" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#104"&gt;Back to Top SQL&lt;/a&gt;&lt;br /&gt;&lt;a class="awr" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#top"&gt;Back to Top&lt;/a&gt;&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt; &lt;a class="awr" name="10380"&gt;&lt;/a&gt; &lt;/p&gt;&lt;h3 class="awr"&gt;Top PL/SQL Procedures&lt;/h3&gt; &lt;ul&gt;&lt;li class="awr"&gt; 'PL/SQL entry subprogram' represents the application's top-level        entry-point(procedure, function, trigger, package initialization       or RPC call) into PL/SQL. &lt;/li&gt;&lt;li class="awr"&gt; 'PL/SQL current subprogram' is the pl/sql subprogram being executed        at the point of sampling . If the value is 'SQL', it represents        the percentage of time spent executing SQL for the particular        plsql entry subprogram &lt;/li&gt;&lt;/ul&gt; &lt;table border="1"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;th class="awrbg"&gt;PLSQL Entry Subprogram&lt;/th&gt;&lt;th class="awrbg"&gt;% Activity&lt;/th&gt;&lt;th class="awrbg"&gt;PLSQL Current Subprogram&lt;/th&gt;&lt;th class="awrbg"&gt;% Current&lt;/th&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td class="awrc"&gt;SYS.DBMS_WORKLOAD_REPOSITORY.CREATE_SNAPSHOT#1&lt;/td&gt; &lt;td class="awrc" align="right"&gt;63.64&lt;/td&gt; &lt;td class="awrc"&gt;UNKNOWN_PLSQL_ID &lt;9278,17&gt;&lt;/td&gt; &lt;td class="awrc" align="right"&gt;36.36&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td class="awrnc"&gt; &lt;/td&gt; &lt;td class="awrnc" align="right"&gt; &lt;/td&gt; &lt;td class="awrnc"&gt;SQL&lt;/td&gt; &lt;td class="awrnc" align="right"&gt;27.27&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td class="awrc"&gt;DBSNMP.MGMT_RESPONSE.GET_METRIC_CURS&lt;/td&gt; &lt;td class="awrc" align="right"&gt;9.09&lt;/td&gt; &lt;td class="awrc"&gt;SQL&lt;/td&gt; &lt;td class="awrc" align="right"&gt;9.09&lt;/td&gt;&lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;p&gt;&lt;br /&gt;&lt;a class="awr" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#top"&gt;Back to Top&lt;/a&gt;&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt; &lt;a class="awr" name="105"&gt;&lt;/a&gt; &lt;/p&gt;&lt;h2 class="awr"&gt; Top Sessions &lt;/h2&gt; &lt;ul&gt;&lt;li class="awr"&gt;&lt;a class="awr" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#10310"&gt; Top Sessions &lt;/a&gt; &lt;/li&gt;&lt;li class="awr"&gt;&lt;a class="awr" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#10320"&gt; Top Blocking Sessions &lt;/a&gt; &lt;/li&gt;&lt;li class="awr"&gt;&lt;a class="awr" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#10330"&gt; Top Sessions running PQs &lt;/a&gt; &lt;/li&gt;&lt;/ul&gt; &lt;a class="awr" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#top"&gt;Back to Top&lt;/a&gt;&lt;p&gt; &lt;a class="awr" name="10310"&gt;&lt;/a&gt; &lt;/p&gt;&lt;h3 class="awr"&gt;Top Sessions&lt;/h3&gt; &lt;ul&gt;&lt;li class="awr"&gt; '# Samples Active' shows the number of ASH samples in which the session        was found waiting for that particular event. The percentage shown       in this column is calculated with respect to wall clock time       and not total database activity. &lt;/li&gt;&lt;li class="awr"&gt; 'XIDs' shows the number of distinct transaction IDs sampled in ASH        when the session was waiting for that particular event &lt;/li&gt;&lt;li class="awr"&gt; For sessions running Parallel Queries, this section will NOT aggregate        the PQ slave activity into the session issuing the PQ. Refer to        the 'Top Sessions running PQs' section for such statistics. &lt;/li&gt;&lt;/ul&gt; &lt;table border="1"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;th class="awrbg"&gt;Sid, Serial#&lt;/th&gt;&lt;th class="awrbg"&gt;% Activity&lt;/th&gt;&lt;th class="awrbg"&gt;Event&lt;/th&gt;&lt;th class="awrbg"&gt;% Event&lt;/th&gt;&lt;th class="awrbg"&gt;User&lt;/th&gt;&lt;th class="awrbg"&gt;Program&lt;/th&gt;&lt;th class="awrbg"&gt;# Samples Active&lt;/th&gt;&lt;th class="awrbg"&gt;XIDs&lt;/th&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td class="awrc" align="right"&gt;143,  346&lt;/td&gt; &lt;td class="awrc" align="right"&gt;72.73&lt;/td&gt; &lt;td class="awrc"&gt;db file sequential read&lt;/td&gt; &lt;td class="awrc" align="right"&gt;45.45&lt;/td&gt; &lt;td class="awrc"&gt;SYS&lt;/td&gt; &lt;td class="awrc"&gt;OMS&lt;/td&gt; &lt;td class="awrc" align="right"&gt;5/300 [  2%]&lt;/td&gt; &lt;td class="awrc" align="right"&gt;2&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td class="awrnc" align="right"&gt; &lt;/td&gt; &lt;td class="awrnc" align="right"&gt; &lt;/td&gt; &lt;td class="awrnc"&gt;CPU + Wait for CPU&lt;/td&gt; &lt;td class="awrnc" align="right"&gt;27.27&lt;/td&gt; &lt;td class="awrnc"&gt; &lt;/td&gt; &lt;td class="awrnc"&gt; &lt;/td&gt; &lt;td class="awrnc" align="right"&gt;3/300 [  1%]&lt;/td&gt; &lt;td class="awrnc" align="right"&gt;1&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td class="awrc" align="right"&gt;139,   16&lt;/td&gt; &lt;td class="awrc" align="right"&gt;18.18&lt;/td&gt; &lt;td class="awrc"&gt;CPU + Wait for CPU&lt;/td&gt; &lt;td class="awrc" align="right"&gt;9.09&lt;/td&gt; &lt;td class="awrc"&gt;DBSNMP&lt;/td&gt; &lt;td class="awrc"&gt;emagent.exe&lt;/td&gt; &lt;td class="awrc" align="right"&gt;1/300 [  0%]&lt;/td&gt; &lt;td class="awrc" align="right"&gt;0&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td class="awrnc" align="right"&gt; &lt;/td&gt; &lt;td class="awrnc" align="right"&gt; &lt;/td&gt; &lt;td class="awrnc"&gt;db file sequential read&lt;/td&gt; &lt;td class="awrnc" align="right"&gt;9.09&lt;/td&gt; &lt;td class="awrnc"&gt; &lt;/td&gt; &lt;td class="awrnc"&gt; &lt;/td&gt; &lt;td class="awrnc" align="right"&gt;1/300 [  0%]&lt;/td&gt; &lt;td class="awrnc" align="right"&gt;1&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td class="awrc" align="right"&gt;162,    1&lt;/td&gt; &lt;td class="awrc" align="right"&gt;9.09&lt;/td&gt; &lt;td class="awrc"&gt;os thread startup&lt;/td&gt; &lt;td class="awrc" align="right"&gt;9.09&lt;/td&gt; &lt;td class="awrc"&gt;SYS&lt;/td&gt; &lt;td class="awrc"&gt;ORACLE.EXE (CJQ0)&lt;/td&gt; &lt;td class="awrc" align="right"&gt;1/300 [  0%]&lt;/td&gt; &lt;td class="awrc" align="right"&gt;0&lt;/td&gt;&lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;p&gt; &lt;a class="awr" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#105"&gt;Back to Top Sessions&lt;/a&gt;&lt;br /&gt;&lt;a class="awr" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#top"&gt;Back to Top&lt;/a&gt;&lt;/p&gt;&lt;p&gt; &lt;a class="awr" name="10320"&gt;&lt;/a&gt; &lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p&gt; &lt;/p&gt;&lt;h3 class="awr"&gt;Top Blocking Sessions&lt;/h3&gt;   &lt;p&gt;                   No data exists for this section of the report. &lt;/p&gt;&lt;p&gt; &lt;a class="awr" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#105"&gt;Back to Top Sessions&lt;/a&gt;&lt;br /&gt;&lt;a class="awr" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#top"&gt;Back to Top&lt;/a&gt;&lt;/p&gt;&lt;p&gt; &lt;a class="awr" name="10330"&gt;&lt;/a&gt; &lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;h3 class="awr"&gt;Top Sessions running PQs&lt;/h3&gt;   &lt;p&gt;                   No data exists for this section of the report. &lt;/p&gt;&lt;p&gt; &lt;a class="awr" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#105"&gt;Back to Top Sessions&lt;/a&gt;&lt;br /&gt;&lt;a class="awr" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#top"&gt;Back to Top&lt;/a&gt;&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt; &lt;a class="awr" name="106"&gt;&lt;/a&gt; &lt;/p&gt;&lt;h2 class="awr"&gt; Top Objects/Files/Latches &lt;/h2&gt; &lt;ul&gt;&lt;li class="awr"&gt;&lt;a class="awr" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#10340"&gt; Top DB Objects &lt;/a&gt; &lt;/li&gt;&lt;li class="awr"&gt;&lt;a class="awr" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#10350"&gt; Top DB Files &lt;/a&gt; &lt;/li&gt;&lt;li class="awr"&gt;&lt;a class="awr" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#10360"&gt; Top Latches &lt;/a&gt; &lt;/li&gt;&lt;/ul&gt; &lt;a class="awr" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#top"&gt;Back to Top&lt;/a&gt;&lt;p&gt; &lt;a class="awr" name="10340"&gt;&lt;/a&gt; &lt;/p&gt;&lt;h3 class="awr"&gt;Top DB Objects&lt;/h3&gt; &lt;ul&gt;&lt;li class="awr"&gt; With respect to Application, Cluster, User I/O and buffer busy waits only. &lt;/li&gt;&lt;/ul&gt; &lt;table border="1"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;th class="awrbg"&gt;Object ID&lt;/th&gt;&lt;th class="awrbg"&gt;% Activity&lt;/th&gt;&lt;th class="awrbg"&gt;Event&lt;/th&gt;&lt;th class="awrbg"&gt;% Event&lt;/th&gt;&lt;th class="awrbg"&gt;Object Name (Type)&lt;/th&gt;&lt;th class="awrbg"&gt;Tablespace&lt;/th&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td class="awrc" align="right"&gt;9087&lt;/td&gt; &lt;td class="awrc" align="right"&gt;36.36&lt;/td&gt; &lt;td class="awrc"&gt;db file sequential read&lt;/td&gt; &lt;td class="awrc" align="right"&gt;36.36&lt;/td&gt; &lt;td class="awrc"&gt;SYS.WRH$_OSSTAT_NAME (TABLE)&lt;/td&gt; &lt;td class="awrc"&gt;SYSAUX&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td class="awrnc" align="right"&gt;335&lt;/td&gt; &lt;td class="awrnc" align="right"&gt;9.09&lt;/td&gt; &lt;td class="awrnc"&gt;db file sequential read&lt;/td&gt; &lt;td class="awrnc" align="right"&gt;9.09&lt;/td&gt; &lt;td class="awrnc"&gt;SYS.KOTTD$ (TABLE)&lt;/td&gt; &lt;td class="awrnc"&gt;SYSTEM&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td class="awrc" align="right"&gt;9640&lt;/td&gt; &lt;td class="awrc" align="right"&gt;9.09&lt;/td&gt; &lt;td class="awrc"&gt;db file sequential read&lt;/td&gt; &lt;td class="awrc" align="right"&gt;9.09&lt;/td&gt; &lt;td class="awrc"&gt;DBSNMP.MGMT_SNAPSHOT (TABLE)&lt;/td&gt; &lt;td class="awrc"&gt;SYSAUX&lt;/td&gt;&lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;p&gt; &lt;a class="awr" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#106"&gt;Back to Top Objects/Files/Latches&lt;/a&gt;&lt;br /&gt;&lt;a class="awr" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#top"&gt;Back to Top&lt;/a&gt;&lt;/p&gt;&lt;p&gt; &lt;a class="awr" name="10350"&gt;&lt;/a&gt; &lt;/p&gt;&lt;h3 class="awr"&gt;Top DB Files&lt;/h3&gt; &lt;ul&gt;&lt;li class="awr"&gt; With respect to Cluster and User I/O events only. &lt;/li&gt;&lt;/ul&gt; &lt;table border="1"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;th class="awrbg"&gt;File ID&lt;/th&gt;&lt;th class="awrbg"&gt;% Activity&lt;/th&gt;&lt;th class="awrbg"&gt;Event&lt;/th&gt;&lt;th class="awrbg"&gt;% Event&lt;/th&gt;&lt;th class="awrbg"&gt;File Name&lt;/th&gt;&lt;th class="awrbg"&gt;Tablespace&lt;/th&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td class="awrc" align="right"&gt;3&lt;/td&gt; &lt;td class="awrc" align="right"&gt;45.45&lt;/td&gt; &lt;td class="awrc"&gt;db file sequential read&lt;/td&gt; &lt;td class="awrc" align="right"&gt;45.45&lt;/td&gt; &lt;td class="awrc"&gt;C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSAUX01.DBF&lt;/td&gt; &lt;td class="awrc"&gt;SYSAUX&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td class="awrnc" align="right"&gt;1&lt;/td&gt; &lt;td class="awrnc" align="right"&gt;9.09&lt;/td&gt; &lt;td class="awrnc"&gt;db file sequential read&lt;/td&gt; &lt;td class="awrnc" align="right"&gt;9.09&lt;/td&gt; &lt;td class="awrnc"&gt;C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSTEM01.DBF&lt;/td&gt; &lt;td class="awrnc"&gt;SYSTEM&lt;/td&gt;&lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;p&gt; &lt;a class="awr" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#106"&gt;Back to Top Objects/Files/Latches&lt;/a&gt;&lt;br /&gt;&lt;a class="awr" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#top"&gt;Back to Top&lt;/a&gt;&lt;/p&gt;&lt;p&gt; &lt;a class="awr" name="10360"&gt;&lt;/a&gt; &lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;h3 class="awr"&gt;Top Latches&lt;/h3&gt;   &lt;p&gt;                   No data exists for this section of the report. &lt;/p&gt;&lt;p&gt; &lt;a class="awr" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#106"&gt;Back to Top Objects/Files/Latches&lt;/a&gt;&lt;br /&gt;&lt;a class="awr" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#top"&gt;Back to Top&lt;/a&gt;&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt; &lt;a class="awr" name="10200"&gt;&lt;/a&gt; &lt;/p&gt;&lt;h3 class="awr"&gt;Activity Over Time&lt;/h3&gt; &lt;ul&gt;&lt;li class="awr"&gt; Analysis period is divided into smaller time slots &lt;/li&gt;&lt;li class="awr"&gt; Top 3 events are reported in each of those slots &lt;/li&gt;&lt;li class="awr"&gt; 'Slot Count' shows the number of ASH samples in that slot &lt;/li&gt;&lt;li class="awr"&gt; 'Event Count' shows the number of ASH samples waiting for    that event in that slot &lt;/li&gt;&lt;li class="awr"&gt; '% Event' is 'Event Count' over all ASH samples in the analysis period &lt;/li&gt;&lt;/ul&gt; &lt;table border="1"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;th class="awrbg"&gt;Slot Time (Duration)&lt;/th&gt;&lt;th class="awrbg"&gt;Slot Count&lt;/th&gt;&lt;th class="awrbg"&gt;Event&lt;/th&gt;&lt;th class="awrbg"&gt;Event Count&lt;/th&gt;&lt;th class="awrbg"&gt;% Event&lt;/th&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td class="awrc" align="right"&gt;10:22:32   (28 secs)&lt;/td&gt; &lt;td class="awrc" align="right"&gt;1&lt;/td&gt; &lt;td class="awrc"&gt;os thread startup&lt;/td&gt; &lt;td class="awrc" align="right"&gt;1&lt;/td&gt; &lt;td class="awrc" align="right"&gt;9.09&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td class="awrnc" align="right"&gt;10:25:00   (1.0 min)&lt;/td&gt; &lt;td class="awrnc" align="right"&gt;3&lt;/td&gt; &lt;td class="awrnc"&gt;db file sequential read&lt;/td&gt; &lt;td class="awrnc" align="right"&gt;3&lt;/td&gt; &lt;td class="awrnc" align="right"&gt;27.27&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td class="awrc" align="right"&gt;10:26:00   (1.0 min)&lt;/td&gt; &lt;td class="awrc" align="right"&gt;7&lt;/td&gt; &lt;td class="awrc"&gt;CPU + Wait for CPU&lt;/td&gt; &lt;td class="awrc" align="right"&gt;4&lt;/td&gt; &lt;td class="awrc" align="right"&gt;36.36&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td class="awrnc" align="right"&gt; &lt;/td&gt; &lt;td class="awrnc" align="right"&gt; &lt;/td&gt; &lt;td class="awrnc"&gt;db file sequential read&lt;/td&gt; &lt;td class="awrnc" align="right"&gt;3&lt;/td&gt; &lt;td class="awrnc" align="right"&gt;27.27&lt;/td&gt;&lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;p&gt;&lt;br /&gt;&lt;a class="awr" href="http://sachchida-pc:1158/em/console/database/instance/ashReport?target=orcl&amp;amp;type=oracle_database&amp;amp;event=viewReport#top"&gt;Back to Top&lt;/a&gt;&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt; End of Report &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8170227975642501352-5585252920220944893?l=orabackupandrecovery.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://orabackupandrecovery.blogspot.com/feeds/5585252920220944893/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8170227975642501352&amp;postID=5585252920220944893' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/5585252920220944893'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/5585252920220944893'/><link rel='alternate' type='text/html' href='http://orabackupandrecovery.blogspot.com/2008/09/ash-report-using-oem.html' title='ASH Report using OEM'/><author><name>OracleDBAFAQ</name><uri>http://www.blogger.com/profile/05504116708319595979</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8170227975642501352.post-2540037243765982052</id><published>2008-09-24T07:17:00.000-07:00</published><updated>2008-09-24T07:18:33.884-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='RMAN Recovery - All data files or tables using OEM'/><title type='text'>RMAN Recovery - All data files or tables using OEM</title><content type='html'>&lt;table width="100%" border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td align="left"&gt;&lt;span class="x2v"&gt;&lt;nobr&gt;&lt;span class="x3i"&gt;Perform Recovery&lt;/span&gt;&lt;/nobr&gt;&lt;/span&gt;&lt;/td&gt;&lt;td valign="bottom" align="right" nowrap="nowrap"&gt;&lt;img src="http://sachchida-pc:1158/em/cabo/images/t.gif" width="5" /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div&gt;&lt;div class="x3p"&gt;&lt;table width="100%" border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class="x14" width="100%"&gt;Perform Recovery&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="x9"&gt;&lt;img src="http://sachchida-pc:1158/em/cabo/images/t.gif" /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;table width="100%" border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td width="100%"&gt;&lt;br /&gt;&lt;/td&gt;&lt;td nowrap="nowrap"&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;table border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td valign="top" width="60%"&gt;&lt;table width="100%" border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td height="17"&gt;&lt;img src="http://sachchida-pc:1158/em/cabo/images/t.gif" /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td rowspan="3" width="20"&gt;&lt;img src="http://sachchida-pc:1158/em/cabo/images/t.gif" width="20" height="1" /&gt;&lt;/td&gt;&lt;td&gt;&lt;table width="100%" border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class="x15" width="100%"&gt;Whole Database Recovery&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="x9"&gt;&lt;img src="http://sachchida-pc:1158/em/cabo/images/t.gif" /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td height="2"&gt;&lt;img src="http://sachchida-pc:1158/em/cabo/images/t.gif" /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;table width="100%" border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;table width="100%" border="0" cellpadding="0" cellspacing="5"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td align="left"&gt;&lt;table border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td align="right" nowrap="nowrap"&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td nowrap="nowrap"&gt;&lt;input title="Operation Type" checked="checked" value="restore_only" name="DBOperationType" type="radio"&gt;&lt;span class="xh"&gt;Restore all datafiles&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="2"&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;span class="xy"&gt;Specify Time, SCN or log sequence. The backup taken at or prior to that time will be used. No recovery will be performed in this operation.&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;td align="right"&gt;&lt;a href="http://sachchida-pc:1158/em/console/database/rec/recovery?event=start&amp;amp;target=orcl&amp;amp;type=oracle_database#" onclick="submitForm('foo',1,{'event':'recoverDatabase'});return false"&gt;&lt;img src="http://sachchida-pc:1158/em/cabo/images/cache/en/b-recoverDatabase.gif" width="211" align="absmiddle" border="0" height="21" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;table width="100%" border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td height="17"&gt;&lt;img src="http://sachchida-pc:1158/em/cabo/images/t.gif" /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td rowspan="3" width="20"&gt;&lt;img src="http://sachchida-pc:1158/em/cabo/images/t.gif" width="20" height="1" /&gt;&lt;/td&gt;&lt;td&gt;&lt;table width="100%" border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class="x15" width="100%"&gt;Object Level Recovery&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="x9"&gt;&lt;img src="http://sachchida-pc:1158/em/cabo/images/t.gif" /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td height="2"&gt;&lt;img src="http://sachchida-pc:1158/em/cabo/images/t.gif" /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;table width="100%" border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;table width="100%" border="0" cellpadding="0" cellspacing="5"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td align="right" nowrap="nowrap"&gt;&lt;span class="xl"&gt;Object Type&lt;/span&gt;&lt;/td&gt;&lt;td align="left"&gt;&lt;select title="Object Type" class="xh" onchange="submitForm('foo', true, {'event':'switchObject'})" name="objectType"&gt;&lt;option selected="selected" value="tables"&gt;Tables&lt;/option&gt;&lt;/select&gt;&lt;/td&gt;&lt;td align="right"&gt;&lt;a href="http://sachchida-pc:1158/em/console/database/rec/recovery?event=start&amp;amp;target=orcl&amp;amp;type=oracle_database#" onclick="submitForm('foo',1,{'event':'recoverObject'});return false"&gt;&lt;img src="http://sachchida-pc:1158/em/cabo/images/cache/en/b-recoverObject.gif" width="186" align="absmiddle" border="0" height="21" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;table border="0" cellpadding="0" cellspacing="5"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td rowspan="5" valign="top" align="right" nowrap="nowrap"&gt;&lt;span class="xd"&gt;Operation Type&lt;/span&gt;&lt;/td&gt;&lt;td rowspan="5" valign="top" align="left"&gt;&lt;table border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td align="right" nowrap="nowrap"&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td nowrap="nowrap"&gt;&lt;input title="Operation Type" checked="checked" value="flashback_table" name="operationType" type="radio"&gt;&lt;span class="xh"&gt;Flashback Existing Tables&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;table border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td align="right" nowrap="nowrap"&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td nowrap="nowrap"&gt;&lt;input title="Operation Type" value="undrop_table" name="operationType" type="radio"&gt;&lt;span class="xh"&gt;Flashback Dropped Tables&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;table id="hideShowEncryptionHeader" width="100%" border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td height="17"&gt;&lt;img src="http://sachchida-pc:1158/em/cabo/images/t.gif" /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td rowspan="3" width="20"&gt;&lt;img src="http://sachchida-pc:1158/em/cabo/images/t.gif" width="20" height="1" /&gt;&lt;/td&gt;&lt;td&gt;&lt;table width="100%" border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;script&gt;function _submitHideShow(a,v,b,c,d,p) {var o = {event:b,source:c};if (d!=(void 0)) o.value=d;if (p) {o.partialTargets=p;_submitPartialChange(a,v,o);} else submitForm(a,v,o);return false;}&lt;/script&gt;&lt;a onclick="return _submitHideShow('foo',1,'show','hideShowEncryptionHeader',null,null)" href="http://sachchida-pc:1158/em/console/database/rec/recovery?event=start&amp;amp;target=orcl&amp;amp;type=oracle_database#"&gt;&lt;span style="vertical-align: middle;"&gt;&lt;img src="http://sachchida-pc:1158/em/cabo/images/cache/c-hss.gif" title="Select to show information" width="16" border="0" height="16" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class="x15" width="100%"&gt;Encryption&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="2" class="x9"&gt;&lt;img src="http://sachchida-pc:1158/em/cabo/images/t.gif" /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td height="2"&gt;&lt;img src="http://sachchida-pc:1158/em/cabo/images/t.gif" /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;table width="100%" border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;table width="100%" border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td height="17"&gt;&lt;img src="http://sachchida-pc:1158/em/cabo/images/t.gif" /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td rowspan="3" width="20"&gt;&lt;img src="http://sachchida-pc:1158/em/cabo/images/t.gif" width="20" height="1" /&gt;&lt;/td&gt;&lt;td&gt;&lt;table width="100%" border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class="x15" width="100%"&gt;Host Credentials&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="x9"&gt;&lt;img src="http://sachchida-pc:1158/em/cabo/images/t.gif" /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td height="2"&gt;&lt;img src="http://sachchida-pc:1158/em/cabo/images/t.gif" /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;table width="100%" border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;               &lt;a name="HOSTCRED" id="HOSTCRED"&gt;             &lt;span class="xl"&gt;To perform recovery, supply operating system login credentials to access the target database.&lt;/span&gt;&lt;/a&gt;&lt;table width="100%" border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td width="25%" align="right" nowrap="nowrap"&gt;&lt;span class="xd"&gt;&lt;span class="x3s" title="Required"&gt;*&lt;/span&gt; Username&lt;/span&gt;&lt;/td&gt;&lt;td width="12"&gt;&lt;img src="http://sachchida-pc:1158/em/cabo/images/t.gif" width="12" /&gt;&lt;/td&gt;&lt;td width="75%" nowrap="nowrap"&gt;&lt;input id="M__Id" class="xh" onkeypress="return _submitOnEnter(event, 'foo');" name="userName" size="40" type="text"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="2"&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td width="25%" align="right" nowrap="nowrap"&gt;&lt;span class="xd"&gt;&lt;span class="x3s" title="Required"&gt;*&lt;/span&gt; Password&lt;/span&gt;&lt;/td&gt;&lt;td width="12"&gt;&lt;img src="http://sachchida-pc:1158/em/cabo/images/t.gif" width="12" /&gt;&lt;/td&gt;&lt;td width="75%" nowrap="nowrap"&gt;&lt;input id="M__Ida" class="xh" name="secretPassword" size="40" type="password"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="2"&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="xd" width="25%" align="right"&gt;&lt;span class="xd"&gt;&lt;/span&gt;&lt;br /&gt;&lt;/td&gt;&lt;td width="12"&gt;&lt;img src="http://sachchida-pc:1158/em/cabo/images/t.gif" width="12" /&gt;&lt;/td&gt;&lt;td width="75%" align="left"&gt;&lt;input title="Save as Preferred Credential" name="savePrefCreds" value="true" type="checkbox"&gt;&lt;span class="xh"&gt;Save as Preferred Credential&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;a name="HOSTCRED" id="HOSTCRED"&gt;&lt;img src="http://sachchida-pc:1158/em/cabo/images/t.gif" height="5" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;td valign="top"&gt;&lt;img src="http://sachchida-pc:1158/em/cabo/images/t.gif" height="40" /&gt;&lt;table width="100%" border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;img src="http://sachchida-pc:1158/em/cabo/images/cache/c-ccltl.gif" width="13" height="13" /&gt;&lt;/td&gt;&lt;td width="100%" background="/em/cabo/images/cache/c-ccltm.gif" height="13"&gt;&lt;img src="http://sachchida-pc:1158/em/cabo/images/t.gif" width="1" height="13" /&gt;&lt;/td&gt;&lt;td&gt;&lt;img src="http://sachchida-pc:1158/em/cabo/images/cache/c-ccltr.gif" width="13" height="13" /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td width="13" background="/em/cabo/images/cache/c-cclcl.gif"&gt;&lt;img src="http://sachchida-pc:1158/em/cabo/images/t.gif" width="13" height="1" /&gt;&lt;/td&gt;&lt;td class="xb" width="100%"&gt;&lt;table width="100%" border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td rowspan="2" valign="top"&gt;&lt;img alt="" src="http://sachchida-pc:1158/em/images/infoicon_active.gif" width="18" height="18" /&gt;&lt;/td&gt;&lt;td rowspan="2" width="8"&gt;&lt;img src="http://sachchida-pc:1158/em/cabo/images/t.gif" width="8" height="18" /&gt;&lt;/td&gt;&lt;td valign="bottom" width="100%"&gt;&lt;table width="100%" border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class="x1b"&gt;Overview&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="x9"&gt;&lt;img src="http://sachchida-pc:1158/em/cabo/images/t.gif" /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="xb" height="8"&gt;&lt;img src="http://sachchida-pc:1158/em/cabo/images/t.gif" width="1" height="8" /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td width="100%" align="left"&gt;&lt;ul&gt;&lt;li&gt;&lt;span class="xl"&gt;Restore and/or recover the entire database or selected objects&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="xl"&gt;Restore files to a new location&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="xl"&gt;Recover tablespaces to a point-in-time based on a timestamp, system change number (SCN), or log sequence number&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="xl"&gt;Recover datafile data blocks that are marked as corrupted, or based on datafile block IDs or tablespace block addresses&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="xl"&gt;Flashback database or tables to a specific system change number (SCN) or timestamp&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;td width="13" background="/em/cabo/images/cache/c-cclcr.gif"&gt;&lt;img src="http://sachchida-pc:1158/em/cabo/images/t.gif" width="13" height="1" /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;img src="http://sachchida-pc:1158/em/cabo/images/cache/c-cclbl.gif" width="13" height="13" /&gt;&lt;/td&gt;&lt;td width="100%" background="/em/cabo/images/cache/c-cclbm.gif" height="13"&gt;&lt;img src="http://sachchida-pc:1158/em/cabo/images/t.gif" width="1" height="13" /&gt;&lt;/td&gt;&lt;td&gt;&lt;img src="http://sachchida-pc:1158/em/cabo/images/cache/c-cclbr.gif" width="13" height="13" /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;table width="100%" border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td colspan="3"&gt;&lt;img src="http://sachchida-pc:1158/em/cabo/images/t.gif" width="1" height="9" /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="2"&gt;&lt;img src="http://sachchida-pc:1158/em/cabo/images/t.gif" width="1" height="14" /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8170227975642501352-2540037243765982052?l=orabackupandrecovery.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://orabackupandrecovery.blogspot.com/feeds/2540037243765982052/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8170227975642501352&amp;postID=2540037243765982052' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/2540037243765982052'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/2540037243765982052'/><link rel='alternate' type='text/html' href='http://orabackupandrecovery.blogspot.com/2008/09/rman-recovery-all-data-files-or-tables.html' title='RMAN Recovery - All data files or tables using OEM'/><author><name>OracleDBAFAQ</name><uri>http://www.blogger.com/profile/05504116708319595979</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8170227975642501352.post-7605064202768220835</id><published>2008-09-23T06:57:00.001-07:00</published><updated>2008-09-23T06:59:38.678-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Export/Import Usage on Data Incompatible with a Previous Release'/><title type='text'>Export/Import Usage on Data Incompatible with a Previous Release</title><content type='html'>&lt;h3 class="sect2"&gt;&lt;a id="sthref384" name="sthref384"&gt;&lt;/a&gt;&lt;a id="sthref385" name="sthref385"&gt;&lt;/a&gt;&lt;/h3&gt; &lt;p&gt;When you export data to a previous release, data that is incompatible with the previous release either is not exported at all or is exported with the loss of some features.&lt;/p&gt; &lt;p&gt;In general, if you must export data to a previous release, then first remove as many incompatibilities with the previous release as possible before you export the data.&lt;/p&gt;  &lt;!-- class="sect2" --&gt; &lt;!-- class="sect1" --&gt; &lt;a id="i262317" name="i262317"&gt;&lt;/a&gt; &lt;div class="sect1"&gt; &lt;h2 id="insertedID3" class="sect1"&gt;&lt;a name="UPGRD12565" id="UPGRD12565"&gt;&lt;/a&gt;&lt;a id="sthref386" name="sthref386"&gt;&lt;/a&gt;&lt;a id="sthref387" name="sthref387"&gt;&lt;/a&gt;&lt;/h2&gt; &lt;p&gt;To upgrade a database using the Export/Import utilities, complete the following steps:&lt;/p&gt; &lt;a id="i262325" name="i262325"&gt;&lt;/a&gt; &lt;ol&gt;&lt;li&gt; &lt;p&gt;Export data from the current database using the Export utility shipped with the current database. See the current &lt;span class="italic"&gt;Oracle Database Utilities&lt;/span&gt; documentation for information about using the Export utility on the current database.&lt;/p&gt; &lt;p&gt;To ensure a consistent export, make sure the current database is not available for updates during and after the export. If the current database is available to users for updates after the export, then, prior to making the current database available, put procedures in place to copy the changes made in the current database to the new database after the import is complete.&lt;/p&gt; &lt;/li&gt;&lt;li&gt; &lt;p&gt;Install the new Oracle Database software. Installation is operating system specific. Installation steps for Oracle Database are covered in your operating system-specific Oracle documentation.&lt;/p&gt; &lt;/li&gt;&lt;li&gt; &lt;p&gt;If the new database has the same name as the current database, then shut down the current database before creating the new database.&lt;/p&gt; &lt;/li&gt;&lt;li&gt; &lt;p&gt;Create the new database.&lt;/p&gt;&lt;/li&gt;&lt;li&gt; &lt;p&gt;Start SQL*Plus in the new Oracle Database environment.&lt;/p&gt; &lt;/li&gt;&lt;li&gt; &lt;p&gt;Connect to the database instance as a user with &lt;code&gt;SYSDBA&lt;/code&gt; privileges.&lt;/p&gt; &lt;/li&gt;&lt;li&gt;&lt;a id="i262369" name="i262369"&gt;&lt;/a&gt; &lt;p&gt;Start an Oracle Database instance using &lt;code&gt;STARTUP&lt;/code&gt;.&lt;/p&gt; &lt;/li&gt;&lt;li&gt; &lt;p&gt;Optionally, you can change the storage parameters from the source database.&lt;/p&gt; &lt;p&gt;You can pre-create tablespaces, users, and tables in the new database to improve space usage by changing storage parameters. When you pre-create tables using SQL*Plus, either run the database in the original database compatibility mode or make allowances for the specific data definition conversions that occur during import. When items have been pre-created, specify one of the following options:&lt;/p&gt; &lt;ul&gt;&lt;li&gt; &lt;p&gt;&lt;code&gt;TABLE_EXISTS_ACTION=APPEND&lt;/code&gt; for Data Pump Import&lt;/p&gt; &lt;/li&gt;&lt;li&gt; &lt;p&gt;&lt;code&gt;IGNORE=Y&lt;/code&gt; for original Import&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;div class="infoboxnote"&gt; &lt;p class="notep1"&gt;Note:&lt;/p&gt; If the new database is created on the same computer as the source database, and you do not want to overwrite the source database data files, then you must pre-create the tablespaces and specify one of the following options when you import: &lt;ul&gt;&lt;li&gt; &lt;p&gt;&lt;code&gt;REUSE_DATAFILES=N&lt;/code&gt; for Data Pump Import&lt;/p&gt; &lt;p&gt;Optionally, consider using the &lt;code&gt;REMAP_DATAFILE, REMAP_TABLESPACE&lt;/code&gt; and &lt;code&gt;REMAP_TABLE&lt;/code&gt; options so that references to the old names in the dump file set are remapped to new, non-colliding names.&lt;/p&gt; &lt;/li&gt;&lt;li&gt; &lt;p&gt;&lt;code&gt;DESTROY=N&lt;/code&gt; for original Import.&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;/div&gt; &lt;/li&gt;&lt;li&gt; &lt;p&gt;Use the Import utility of the new database to import the objects exported from the current database. Include one of the following parameters to save the informational and error messages from the import session to a file:&lt;/p&gt; &lt;ul&gt;&lt;li&gt; &lt;p&gt;The &lt;code&gt;LOGFILE&lt;/code&gt; parameter for Data Pump Import&lt;/p&gt; &lt;/li&gt;&lt;li&gt; &lt;p&gt;The &lt;code&gt;LOG&lt;/code&gt; parameter for original ImportAfter the import, check the import log file for information about which imports of which objects completed successfully and, if there were failures, which failed.&lt;/p&gt;&lt;/li&gt;&lt;li&gt; &lt;p&gt;Use further Import scenarios  or SQL scripts that create the database's objects to clean up incomplete imports (or possibly to start an entirely new import).&lt;/p&gt; &lt;div class="infoboxnote"&gt; &lt;p class="notep1"&gt;Note:&lt;/p&gt; If a Data Pump Export or Import job encounters a fatal error, then the job can be restarted after the condition inducing the failure is corrected. The job then continues automatically from the point of failure.&lt;/div&gt; &lt;/li&gt;&lt;li&gt; &lt;p&gt;If changes are made to the current database after the export, then make sure those changes are propagated to the new database prior to making it available to users. See Step 1 for more information.&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8170227975642501352-7605064202768220835?l=orabackupandrecovery.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://orabackupandrecovery.blogspot.com/feeds/7605064202768220835/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8170227975642501352&amp;postID=7605064202768220835' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/7605064202768220835'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/7605064202768220835'/><link rel='alternate' type='text/html' href='http://orabackupandrecovery.blogspot.com/2008/09/exportimport-usage-on-data-incompatible.html' title='Export/Import Usage on Data Incompatible with a Previous Release'/><author><name>OracleDBAFAQ</name><uri>http://www.blogger.com/profile/05504116708319595979</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8170227975642501352.post-788821701796740845</id><published>2008-09-23T06:56:00.000-07:00</published><updated>2008-09-23T06:57:08.752-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Export and Import Requirements for Downgrades'/><title type='text'>Export and Import Requirements for Downgrades</title><content type='html'>&lt;p&gt;The Oracle Database release to which you downgrade can be one release older, at the most. For example, if the current database is Oracle Database 11&lt;span class="italic"&gt;g&lt;/span&gt; Release 1 (11.1), then Oracle Database 10&lt;span class="italic"&gt;g&lt;/span&gt; Release 2 (10.2) is the only release supported for the downgrade.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Exporting Data From Release 11.1 and Importing Into Earlier Releases &lt;/p&gt;&lt;table class="HRuleFormalWide" title="Exporting Data From Release 11.1 and Importing Into Earlier Releases" summary="This table is described in the preceding text" dir="ltr" rules="rows" width="100%" border="1" cellpadding="3" cellspacing="0" frame="hsides"&gt; &lt;thead&gt; &lt;tr valign="top" align="left"&gt; &lt;th id="r1c1-t9" valign="bottom" align="left"&gt;Export From&lt;/th&gt; &lt;th id="r1c2-t9" valign="bottom" align="left"&gt;Import To&lt;/th&gt; &lt;th id="r1c3-t9" valign="bottom" align="left"&gt;Export Version to Use&lt;/th&gt; &lt;th id="r1c4-t9" valign="bottom" align="left"&gt;Import Version to Use&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr valign="top" align="left"&gt; &lt;td id="r2c1-t9" headers="r1c1-t9" align="left"&gt; &lt;p&gt;Release 11.1&lt;/p&gt; &lt;/td&gt; &lt;td headers="r2c1-t9 r1c2-t9" align="left"&gt; &lt;p&gt;Release 10.2&lt;/p&gt; &lt;/td&gt; &lt;td headers="r2c1-t9 r1c3-t9" align="left"&gt; &lt;p&gt;Data Pump Export Release 11.1 with &lt;code&gt;VERSION&lt;/code&gt;&lt;code&gt;=10.2&lt;/code&gt;&lt;/p&gt; &lt;/td&gt; &lt;td headers="r2c1-t9 r1c4-t9" align="left"&gt; &lt;p&gt;Data Pump Import Release 10.2&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr valign="top" align="left"&gt; &lt;td id="r3c1-t9" headers="r1c1-t9" align="left"&gt; &lt;p&gt;Release 10.2&lt;/p&gt; &lt;/td&gt; &lt;td headers="r3c1-t9 r1c2-t9" align="left"&gt; &lt;p&gt;Release 10.1&lt;/p&gt; &lt;/td&gt; &lt;td headers="r3c1-t9 r1c3-t9" align="left"&gt; &lt;p&gt;Data Pump Export Release 10.2 with &lt;code&gt;VERSION&lt;/code&gt;&lt;code&gt;=10.1&lt;/code&gt;&lt;/p&gt; &lt;/td&gt; &lt;td headers="r3c1-t9 r1c4-t9" align="left"&gt; &lt;p&gt;Data Pump Import Release 10.1&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt;  &lt;p&gt;To obtain a downward compatible dump file:&lt;/p&gt;  &lt;p&gt;With Data Pump Export, use the &lt;span class="italic"&gt;current&lt;/span&gt; version's Data Pump Export utility, but set the &lt;code&gt;VERSION&lt;/code&gt; parameter to the target older version.&lt;/p&gt; &lt;p&gt;Data Pump Import cannot read dump file sets created by a database version that is newer than the current database version, unless those dump file sets were created with the &lt;code&gt;VERSION&lt;/code&gt; parameter set to the version of the target database. Therefore, the best way to perform a downgrade is to perform your Data Pump export with the &lt;code&gt;VERSION&lt;/code&gt; parameter set to the version of the target database.&lt;/p&gt;&lt;ul&gt;&lt;li&gt; &lt;p&gt;With original Export, run an older version of Export (exp) to produce a dump file that is compatible with the database version to which you want to downgrade. Then, run the target's original Import utility.&lt;/p&gt; &lt;p&gt;&lt;a id="sthref380" name="sthref380"&gt;&lt;/a&gt;&lt;a id="sthref381" name="sthref381"&gt;&lt;/a&gt;Original Export dump files are &lt;span class="italic"&gt;not&lt;/span&gt; downward compatible with the Import utilities of previous Oracle Database releases. That is, exported data &lt;span class="italic"&gt;cannot&lt;/span&gt; be imported by the Import utilities of previous Oracle Database releases. For example, an Oracle9&lt;span class="italic"&gt;i&lt;/span&gt; Export dump file cannot be imported by an Oracle8&lt;span class="italic"&gt;i&lt;/span&gt; Import utility, and an Oracle Database 10&lt;span class="italic"&gt;g&lt;/span&gt; export dump file cannot be imported by an Oracle9&lt;span class="italic"&gt;i&lt;/span&gt; Import utility. The following tables provide specific examples.&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8170227975642501352-788821701796740845?l=orabackupandrecovery.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://orabackupandrecovery.blogspot.com/feeds/788821701796740845/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8170227975642501352&amp;postID=788821701796740845' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/788821701796740845'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/788821701796740845'/><link rel='alternate' type='text/html' href='http://orabackupandrecovery.blogspot.com/2008/09/export-and-import-requirements-for_23.html' title='Export and Import Requirements for Downgrades'/><author><name>OracleDBAFAQ</name><uri>http://www.blogger.com/profile/05504116708319595979</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8170227975642501352.post-6920525212209256877</id><published>2008-09-23T06:54:00.000-07:00</published><updated>2008-09-23T06:55:34.072-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Export and Import Requirements for Upgrades'/><title type='text'>Export and Import Requirements for Upgrades</title><content type='html'>Dump files created by one of the Export utilities can be imported into all future releases of Oracle Database. For example, an Oracle8 original Export dump file can be imported by the Oracle8&lt;span class="italic"&gt;i&lt;/span&gt;, Oracle9&lt;span class="italic"&gt;i&lt;/span&gt;, and Oracle Database 10&lt;span class="italic"&gt;g&lt;/span&gt; original Import utility.&lt;br /&gt;&lt;br /&gt;Exporting Data From Releases Earlier Than 11.1 and Importing Into Release 11.1 &lt;table class="HRuleFormalWide" title="Exporting Data From Releases Earlier Than 11.1 and Importing Into Release 11.1" summary="This table is described in the preceding text" dir="ltr" rules="rows" width="100%" border="1" cellpadding="3" cellspacing="0" frame="hsides"&gt; &lt;thead&gt; &lt;tr valign="top" align="left"&gt; &lt;th id="r1c1-t6" valign="bottom" align="left"&gt;Export From&lt;/th&gt; &lt;th id="r1c2-t6" valign="bottom" align="left"&gt;Import To&lt;/th&gt; &lt;th id="r1c3-t6" valign="bottom" align="left"&gt;Export Version to Use&lt;/th&gt; &lt;th id="r1c4-t6" valign="bottom" align="left"&gt;Import Version to Use&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr valign="top" align="left"&gt; &lt;td id="r2c1-t6" headers="r1c1-t6" align="left"&gt; &lt;p&gt;Release 10.2&lt;/p&gt; &lt;/td&gt; &lt;td headers="r2c1-t6 r1c2-t6" align="left"&gt; &lt;p&gt;Release 11.1&lt;/p&gt; &lt;/td&gt; &lt;td headers="r2c1-t6 r1c3-t6" align="left"&gt; &lt;p&gt;Data Pump Export Release 10.2&lt;/p&gt; &lt;/td&gt; &lt;td headers="r2c1-t6 r1c4-t6" align="left"&gt; &lt;p&gt;Data Pump Import Release 11.1&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr valign="top" align="left"&gt; &lt;td id="r3c1-t6" headers="r1c1-t6" align="left"&gt; &lt;p&gt;Release 10.1&lt;/p&gt; &lt;/td&gt; &lt;td headers="r3c1-t6 r1c2-t6" align="left"&gt; &lt;p&gt;Release 11.1&lt;/p&gt; &lt;/td&gt; &lt;td headers="r3c1-t6 r1c3-t6" align="left"&gt; &lt;p&gt;Data Pump Export Release 10.1&lt;/p&gt; &lt;/td&gt; &lt;td headers="r3c1-t6 r1c4-t6" align="left"&gt; &lt;p&gt;Data Pump Import Release 11.1&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr valign="top" align="left"&gt; &lt;td id="r4c1-t6" headers="r1c1-t6" align="left"&gt; &lt;p&gt;Release 9.2&lt;/p&gt; &lt;/td&gt; &lt;td headers="r4c1-t6 r1c2-t6" align="left"&gt; &lt;p&gt;Release 11.1&lt;/p&gt; &lt;/td&gt; &lt;td headers="r4c1-t6 r1c3-t6" align="left"&gt; &lt;p&gt;Original Export Release 9.2&lt;/p&gt; &lt;/td&gt; &lt;td headers="r4c1-t6 r1c4-t6" align="left"&gt; &lt;p&gt;Original Import Release 11.1&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr valign="top" align="left"&gt; &lt;td id="r5c1-t6" headers="r1c1-t6" align="left"&gt; &lt;p&gt;Release 8.1.7&lt;/p&gt; &lt;/td&gt; &lt;td headers="r5c1-t6 r1c2-t6" align="left"&gt; &lt;p&gt;Release 11.1&lt;/p&gt; &lt;/td&gt; &lt;td headers="r5c1-t6 r1c3-t6" align="left"&gt; &lt;p&gt;Original Export Release 8.1.7&lt;/p&gt; &lt;/td&gt; &lt;td headers="r5c1-t6 r1c4-t6" align="left"&gt; &lt;p&gt;Original Import Release 11.1&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr valign="top" align="left"&gt; &lt;td id="r6c1-t6" headers="r1c1-t6" align="left"&gt; &lt;p&gt;Release 8.0.6&lt;/p&gt; &lt;/td&gt; &lt;td headers="r6c1-t6 r1c2-t6" align="left"&gt; &lt;p&gt;Release 11.1&lt;/p&gt; &lt;/td&gt; &lt;td headers="r6c1-t6 r1c3-t6" align="left"&gt; &lt;p&gt;Original Export Release 8.0.6&lt;/p&gt; &lt;/td&gt; &lt;td headers="r6c1-t6 r1c4-t6" align="left"&gt; &lt;p&gt;Original Import Release 11.1&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr valign="top" align="left"&gt; &lt;td id="r7c1-t6" headers="r1c1-t6" align="left"&gt; &lt;p&gt;Release 7.3.4&lt;/p&gt; &lt;/td&gt; &lt;td headers="r7c1-t6 r1c2-t6" align="left"&gt; &lt;p&gt;Release 11.1&lt;/p&gt; &lt;/td&gt; &lt;td headers="r7c1-t6 r1c3-t6" align="left"&gt; &lt;p&gt;Original Export Release 7.3.4&lt;/p&gt; &lt;/td&gt; &lt;td headers="r7c1-t6 r1c4-t6" align="left"&gt; &lt;p&gt;Original Import Release 11.1&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8170227975642501352-6920525212209256877?l=orabackupandrecovery.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://orabackupandrecovery.blogspot.com/feeds/6920525212209256877/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8170227975642501352&amp;postID=6920525212209256877' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/6920525212209256877'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/6920525212209256877'/><link rel='alternate' type='text/html' href='http://orabackupandrecovery.blogspot.com/2008/09/export-and-import-requirements-for.html' title='Export and Import Requirements for Upgrades'/><author><name>OracleDBAFAQ</name><uri>http://www.blogger.com/profile/05504116708319595979</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8170227975642501352.post-5698470270118737083</id><published>2008-09-21T15:09:00.000-07:00</published><updated>2008-09-21T15:10:22.670-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='TABLE_EXISTS_ACTION'/><title type='text'>TABLE_EXISTS_ACTION</title><content type='html'>&lt;h3&gt;&lt;span style="font-family:arial, helvetica, sans-serif;color:#330099;"&gt;&lt;a id="sthref350" name="sthref350"&gt;&lt;/a&gt;&lt;/span&gt;&lt;/h3&gt; &lt;p&gt;Default: &lt;code&gt;SKIP&lt;/code&gt; (Note that if &lt;code&gt;CONTENT&lt;/code&gt;=&lt;code&gt;DATA_ONLY&lt;/code&gt; is specified, the default is &lt;code&gt;APPEND&lt;/code&gt;, not &lt;code&gt;SKIP&lt;/code&gt;.)&lt;/p&gt; &lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:+1;"&gt;Purpose&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;p&gt;Tells Import&lt;a id="sthref351" name="sthref351"&gt;&lt;/a&gt; what to do if the table it is trying to create already exists.&lt;/p&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:+1;"&gt;Syntax and Description&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;pre space="preserve"&gt;TABLE_EXISTS_ACTION={SKIP | APPEND | TRUNCATE | REPLACE}&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;  &lt;p&gt;The possible values have the following effects:&lt;/p&gt; &lt;ul&gt;&lt;li type="disc"&gt; &lt;p&gt;&lt;code&gt;SKIP&lt;/code&gt; leaves the table as is and moves on to the next object. This is not a valid option if the &lt;code&gt;CONTENT&lt;/code&gt; parameter is set to &lt;code&gt;DATA_ONLY&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;&lt;li type="disc"&gt; &lt;p&gt;&lt;code&gt;APPEND&lt;/code&gt; loads rows from the source and leaves existing rows unchanged.&lt;/p&gt;&lt;/li&gt;&lt;li type="disc"&gt; &lt;p&gt;&lt;code&gt;TRUNCATE&lt;/code&gt; deletes existing rows and then loads rows from the source.&lt;/p&gt;&lt;/li&gt;&lt;li type="disc"&gt; &lt;p&gt;&lt;code&gt;REPLACE&lt;/code&gt; drops the existing table and then creates and loads it from the source. This is not a valid option if the &lt;code&gt;CONTENT&lt;/code&gt; parameter is set to &lt;code&gt;DATA_ONLY&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;The following considerations apply when you are using these options:&lt;/p&gt; &lt;ul&gt;&lt;li type="disc"&gt; &lt;p&gt;When you use &lt;code&gt;TRUNCATE&lt;/code&gt; or &lt;code&gt;REPLACE&lt;/code&gt;, make sure that rows in the affected tables are not targets of any referential constraints.&lt;/p&gt;&lt;/li&gt;&lt;li type="disc"&gt; &lt;p&gt;When you use &lt;code&gt;SKIP&lt;/code&gt;, &lt;code&gt;APPEND&lt;/code&gt;, or &lt;code&gt;TRUNCATE&lt;/code&gt;, existing table-dependent objects in the source, such as indexes, grants, triggers, and constraints, are ignored. For &lt;code&gt;REPLACE&lt;/code&gt;, the dependent objects are dropped and re-created from the source, if they were not explicitly or implicitly excluded (using &lt;code&gt;EXCLUDE&lt;/code&gt;) and they exist in the source dump file or system.&lt;/p&gt;&lt;/li&gt;&lt;li type="disc"&gt; &lt;p&gt;When you use &lt;code&gt;APPEND&lt;/code&gt; or &lt;code&gt;TRUNCATE&lt;/code&gt;, checks are made to ensure that rows from the source are compatible with the existing table prior to performing any action.&lt;/p&gt; &lt;p&gt;The existing table is loaded using the external tables access method because the external tables feature honors active constraints and triggers. However, be aware that if any row violates an active constraint, the load fails and no data is loaded.&lt;/p&gt; &lt;p&gt;If you have data that must be loaded, but may cause constraint violations, consider disabling the constraints, loading the data, and then deleting the problem rows before reenabling the constraints.&lt;/p&gt;&lt;/li&gt;&lt;li type="disc"&gt; &lt;p&gt;When you use &lt;code&gt;APPEND&lt;/code&gt;, the data is always loaded into new space; existing space, even if available, is not reused. For this reason, you may wish to compress your data after the load.&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;Restrictions&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;p&gt;&lt;code&gt;TRUNCATE&lt;/code&gt; cannot be used on clustered tables or over network links.&lt;/p&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:+1;"&gt;Example&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;p&gt;The following is an example of using the &lt;code&gt;TABLE_EXISTS_ACTION&lt;/code&gt; parameter. You can create the &lt;code&gt;expfull.dmp&lt;/code&gt; dump file used in this example by running the example provided for the Export &lt;code&gt;FULL&lt;/code&gt; parameter.&lt;/p&gt; &lt;pre space="preserve"&gt;&gt; impdp hr/hr TABLES=employees DIRECTORY=dpump_dir1 DUMPFILE=expfull.dmp&lt;br /&gt;TABLE_EXISTS_ACTION=REPLACE&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8170227975642501352-5698470270118737083?l=orabackupandrecovery.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://orabackupandrecovery.blogspot.com/feeds/5698470270118737083/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8170227975642501352&amp;postID=5698470270118737083' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/5698470270118737083'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/5698470270118737083'/><link rel='alternate' type='text/html' href='http://orabackupandrecovery.blogspot.com/2008/09/tableexistsaction.html' title='TABLE_EXISTS_ACTION'/><author><name>OracleDBAFAQ</name><uri>http://www.blogger.com/profile/05504116708319595979</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8170227975642501352.post-1665715005722586016</id><published>2008-09-21T15:08:00.000-07:00</published><updated>2008-09-21T15:09:08.601-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQLFILE'/><title type='text'>SQLFILE</title><content type='html'>&lt;h3&gt;&lt;span style="font-family:arial, helvetica, sans-serif;color:#330099;"&gt;&lt;a id="sthref340" name="sthref340"&gt;&lt;/a&gt;&lt;/span&gt;&lt;/h3&gt;  &lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:+1;"&gt;Purpose&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;p&gt;Specifies a file&lt;a id="sthref341" name="sthref341"&gt;&lt;/a&gt; into which all of the SQL DDL that Import would have executed, based on other parameters, is written.&lt;/p&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:+1;"&gt;Syntax and Description&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;pre space="preserve"&gt;SQLFILE=[&lt;em&gt;directory_object&lt;/em&gt;:]&lt;em&gt;file_name&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;  &lt;p&gt;The &lt;em&gt;&lt;code&gt;file_name&lt;/code&gt;&lt;/em&gt; specifies where the import job will write the DDL that would be executed during the job. The SQL is not actually executed, and the target system remains unchanged. The file is written to the directory object specified in the &lt;code&gt;DIRECTORY&lt;/code&gt; parameter, unless another &lt;em&gt;&lt;code&gt;directory_object&lt;/code&gt;&lt;/em&gt; is explicitly specified here. Any existing file that has a name matching the one specified with this parameter is overwritten.&lt;/p&gt; &lt;p&gt;Note that passwords are commented out in the SQL file. For example, if a &lt;code&gt;CONNECT&lt;/code&gt; statement is part of the DDL that was executed, it will be commented out and the schema name will be shown but the password will not. In the following example, the dashes indicate that a comment follows, and the &lt;code&gt;hr&lt;/code&gt; schema name is shown, but not the password.&lt;/p&gt; &lt;pre space="preserve"&gt;-- CONNECT hr&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;  &lt;p&gt;Therefore, before you can execute the SQL file, you must edit it by removing the dashes indicating a comment and adding the password for the &lt;code&gt;hr&lt;/code&gt; schema (in this case, the password is also &lt;code&gt;hr&lt;/code&gt;), as follows:&lt;/p&gt; &lt;pre space="preserve"&gt;CONNECT hr/hr&lt;br /&gt;&lt;/pre&gt; &lt;br /&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:+1;"&gt;Example&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;p&gt;The following is an example of using the &lt;code&gt;SQLFILE&lt;/code&gt; parameter. You can create the &lt;code&gt;expfull.dmp&lt;/code&gt; dump file used in this example by running the example provided for the Export &lt;code&gt;FULL&lt;/code&gt; parameter.&lt;br /&gt;&lt;/p&gt; &lt;pre space="preserve"&gt;&gt; impdp hr/hr DIRECTORY=dpump_dir1 DUMPFILE=expfull.dmp&lt;br /&gt;SQLFILE=dpump_dir2:expfull.sql&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;  &lt;p&gt;A SQL file named &lt;code&gt;expfull.sql&lt;/code&gt; is written to &lt;code&gt;dpump_dir2&lt;/code&gt;.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8170227975642501352-1665715005722586016?l=orabackupandrecovery.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://orabackupandrecovery.blogspot.com/feeds/1665715005722586016/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8170227975642501352&amp;postID=1665715005722586016' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/1665715005722586016'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/1665715005722586016'/><link rel='alternate' type='text/html' href='http://orabackupandrecovery.blogspot.com/2008/09/sqlfile.html' title='SQLFILE'/><author><name>OracleDBAFAQ</name><uri>http://www.blogger.com/profile/05504116708319595979</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8170227975642501352.post-6227567363803955604</id><published>2008-09-21T15:07:00.002-07:00</published><updated>2008-09-21T15:08:17.734-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SKIP_UNUSABLE_INDEXES'/><title type='text'>SKIP_UNUSABLE_INDEXES</title><content type='html'>&lt;h3&gt;&lt;span style="font-family:arial, helvetica, sans-serif;color:#330099;"&gt;&lt;a id="sthref336" name="sthref336"&gt;&lt;/a&gt;&lt;/span&gt;&lt;/h3&gt;  &lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:+1;"&gt;Purpose&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;p&gt;Specifies whether or not Import skips loading tables that have indexes&lt;a id="sthref337" name="sthref337"&gt;&lt;/a&gt; that were set to the Index Unusable state (by either the system or the user).&lt;/p&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:+1;"&gt;Syntax and Description&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;pre space="preserve"&gt;SKIP_UNUSABLE_INDEXES={y | n}&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;  &lt;p&gt;If &lt;code&gt;SKIP_UNUSABLE_INDEXES&lt;/code&gt; is set to y, then the import job does not load tables that have indexes that were previously set to an Index Unusable state. Other tables, not previously set Unusable, continue to be updated as rows are inserted.&lt;/p&gt; &lt;p&gt;This parameter enables you to postpone index maintenance&lt;a id="sthref338" name="sthref338"&gt;&lt;/a&gt; on selected index partitions until after row data has been inserted. You then have the responsibility to rebuild the affected index partitions after the import.&lt;/p&gt; &lt;p&gt;If &lt;code&gt;SKIP_UNUSABLE_INDEXES&lt;/code&gt; is set to &lt;code&gt;n&lt;/code&gt; (the default) and an index in the Unusable state is encountered, the load of that table or partition will fail.&lt;/p&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:+1;"&gt;Example&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;p&gt;The following is an example of using the &lt;code&gt;SKIP_UNUSABLE_INDEXES&lt;/code&gt; parameter. You can create the &lt;code&gt;expfull.dmp&lt;/code&gt; dump file used in this example by running the example provided for the Export &lt;code&gt;FULL&lt;/code&gt; parameter.&lt;br /&gt;&lt;/p&gt; &lt;pre space="preserve"&gt;&gt; impdp hr/hr DIRECTORY=dpump_dir1 DUMPFILE=expfull.dmp LOGFILE=skip.log&lt;br /&gt;SKIP_UNUSABLE_INDEXES=y&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8170227975642501352-6227567363803955604?l=orabackupandrecovery.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://orabackupandrecovery.blogspot.com/feeds/6227567363803955604/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8170227975642501352&amp;postID=6227567363803955604' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/6227567363803955604'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/6227567363803955604'/><link rel='alternate' type='text/html' href='http://orabackupandrecovery.blogspot.com/2008/09/skipunusableindexes.html' title='SKIP_UNUSABLE_INDEXES'/><author><name>OracleDBAFAQ</name><uri>http://www.blogger.com/profile/05504116708319595979</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8170227975642501352.post-6681284948774109401</id><published>2008-09-21T15:07:00.001-07:00</published><updated>2008-09-21T15:07:30.677-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SCHEMAS'/><title type='text'>SCHEMAS</title><content type='html'>&lt;h3&gt;&lt;span style="font-family:arial, helvetica, sans-serif;color:#330099;"&gt;&lt;a id="sthref333" name="sthref333"&gt;&lt;/a&gt;&lt;/span&gt;&lt;/h3&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:+1;"&gt;Purpose&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;p&gt;Specifies that a schema-mode import is to be performed.&lt;/p&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:+1;"&gt;Syntax and Description&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;pre space="preserve"&gt;SCHEMAS=&lt;em&gt;schema_name&lt;/em&gt; [,...]&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;  &lt;p&gt;If you have the &lt;code&gt;IMP_FULL_DATABASE&lt;/code&gt; role, you can use this parameter to perform a schema-mode import by specifying a single schema other than your own or a list of schemas&lt;a id="sthref334" name="sthref334"&gt;&lt;/a&gt; to import. First, the schemas themselves are created (if they do not already exist), including system and role grants, password history, and so on. Then all objects contained within the schemas are imported. Nonprivileged users can specify only their own schemas. In that case, no information about the schema definition is imported, only the objects contained within it.&lt;/p&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:+1;"&gt;Example&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;p&gt;The following is an example of using the &lt;code&gt;SCHEMAS&lt;/code&gt; parameter. You can create the &lt;code&gt;expdat.dmp&lt;/code&gt; file used in this example by running the example provided for the Export &lt;code&gt;SCHEMAS&lt;/code&gt; parameter.&lt;br /&gt;&lt;/p&gt; &lt;pre space="preserve"&gt;&gt; impdp hr/hr SCHEMAS=hr,oe DIRECTORY=dpump_dir1 LOGFILE=schemas.log&lt;br /&gt;DUMPFILE=expdat.dmp&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;  &lt;p&gt;The &lt;code&gt;hr&lt;/code&gt; and &lt;code&gt;oe&lt;/code&gt; schemas are imported from the &lt;code&gt;expdat.dmp&lt;/code&gt; file. The log file, &lt;code&gt;schemas.log&lt;/code&gt;, is written to &lt;code&gt;dpump_dir1&lt;/code&gt;.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8170227975642501352-6681284948774109401?l=orabackupandrecovery.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://orabackupandrecovery.blogspot.com/feeds/6681284948774109401/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8170227975642501352&amp;postID=6681284948774109401' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/6681284948774109401'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/6681284948774109401'/><link rel='alternate' type='text/html' href='http://orabackupandrecovery.blogspot.com/2008/09/schemas.html' title='SCHEMAS'/><author><name>OracleDBAFAQ</name><uri>http://www.blogger.com/profile/05504116708319595979</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8170227975642501352.post-2300441231197867517</id><published>2008-09-21T15:05:00.002-07:00</published><updated>2008-09-21T15:06:25.559-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='REUSE_DATAFILES'/><title type='text'>REUSE_DATAFILES</title><content type='html'>&lt;h3&gt;&lt;span style="font-family:arial, helvetica, sans-serif;color:#330099;"&gt;&lt;a id="sthref330" name="sthref330"&gt;&lt;/a&gt;&lt;/span&gt;&lt;/h3&gt;  &lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:+1;"&gt;Purpose&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;p&gt;Specifies whether or not the import job should reuse existing datafiles for tablespace creation.&lt;/p&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:+1;"&gt;Syntax and Description&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;pre space="preserve"&gt;REUSE_DATAFILES={y | n}&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;  &lt;p&gt;If the default (&lt;code&gt;n&lt;/code&gt;) is used and the datafiles&lt;a id="sthref331" name="sthref331"&gt;&lt;/a&gt; specified in &lt;code&gt;CREATE TABLESPACE&lt;/code&gt; statements already exist, an error message from the failing &lt;code&gt;CREATE TABLESPACE&lt;/code&gt; statement is issued, but the import job continues.&lt;/p&gt; &lt;p&gt;If this parameter is specified as &lt;code&gt;y&lt;/code&gt;, a warning is issued and the existing datafiles are reinitialized. Be aware that specifying &lt;code&gt;Y&lt;/code&gt; can result in a loss of data.&lt;/p&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:+1;"&gt;Example&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;p&gt;The following is an example of using the &lt;code&gt;REUSE_DATAFILES&lt;/code&gt; parameter. You can create the &lt;code&gt;expfull.dmp&lt;/code&gt; dump file used in this example by running the example provided for the Export &lt;code&gt;FULL&lt;/code&gt; parameter.&lt;br /&gt;&lt;/p&gt; &lt;pre space="preserve"&gt;&gt; impdp hr/hr DIRECTORY=dpump_dir1 DUMPFILE=expfull.dmp LOGFILE=reuse.log&lt;br /&gt;REUSE_DATAFILES=Y&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;  &lt;p&gt;This example reinitializes datafiles referenced by &lt;code&gt;CREATE&lt;/code&gt; &lt;code&gt;TABLESPACE&lt;/code&gt; statements in the &lt;code&gt;expfull.dmp&lt;/code&gt; file.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8170227975642501352-2300441231197867517?l=orabackupandrecovery.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://orabackupandrecovery.blogspot.com/feeds/2300441231197867517/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8170227975642501352&amp;postID=2300441231197867517' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/2300441231197867517'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/2300441231197867517'/><link rel='alternate' type='text/html' href='http://orabackupandrecovery.blogspot.com/2008/09/reusedatafiles.html' title='REUSE_DATAFILES'/><author><name>OracleDBAFAQ</name><uri>http://www.blogger.com/profile/05504116708319595979</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8170227975642501352.post-6681069199191290068</id><published>2008-09-21T15:05:00.001-07:00</published><updated>2008-09-21T15:05:28.452-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='REMAP_TABLESPACE'/><title type='text'>REMAP_TABLESPACE</title><content type='html'>&lt;h3&gt;&lt;span style="font-family:arial, helvetica, sans-serif;color:#330099;"&gt;&lt;a id="sthref327" name="sthref327"&gt;&lt;/a&gt;&lt;/span&gt;&lt;/h3&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:+1;"&gt;Purpose&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;p&gt;Remaps all objects&lt;a id="sthref328" name="sthref328"&gt;&lt;/a&gt; selected for import with persistent data in the source tablespace to be created in the target tablespace.&lt;/p&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:+1;"&gt;Syntax and Description&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;pre space="preserve"&gt;REMAP_TABLESPACE=&lt;em&gt;source_tablespace&lt;/em&gt;:&lt;em&gt;target_tablespace&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;  &lt;p&gt;Multiple &lt;code&gt;REMAP_TABLESPACE&lt;/code&gt; parameters can be specified, but no two can have the same source tablespace. The target schema must have sufficient quota in the target tablespace.&lt;/p&gt; &lt;p&gt;Note that use of the &lt;code&gt;REMAP_TABLESPACE&lt;/code&gt; parameter is the &lt;em&gt;only&lt;/em&gt; way to remap a tablespace in Data Pump Import. This is a simpler and cleaner method than the one provided in the original Import utility. In original Import, if you wanted to change the default tablespace for a user, you had to perform several steps, including exporting and dropping the user, creating the user in the new tablespace, and importing the user from the dump file. That method was subject to many restrictions (including the number of tablespace subclauses) which sometimes resulted in the failure of some DDL commands.&lt;/p&gt; &lt;p&gt;By contrast, the Data Pump Import method of using the &lt;code&gt;REMAP_TABLESPACE&lt;/code&gt; parameter works for all objects, including the user, and it works regardless of how many tablespace subclauses are in the DDL statement.&lt;/p&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:+1;"&gt;Example&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;p&gt;The following is an example of using the &lt;code&gt;REMAP_TABLESPACE&lt;/code&gt; parameter.&lt;/p&gt; &lt;pre space="preserve"&gt;&gt; impdp hr/hr REMAP_TABLESPACE='tbs_1':'tbs_6' DIRECTORY=dpump_dir1 PARALLEL=2&lt;br /&gt;JOB_NAME=cf1n02 DUMPFILE=employees.dmp NOLOGFILE=Y&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8170227975642501352-6681069199191290068?l=orabackupandrecovery.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://orabackupandrecovery.blogspot.com/feeds/6681069199191290068/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8170227975642501352&amp;postID=6681069199191290068' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/6681069199191290068'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/6681069199191290068'/><link rel='alternate' type='text/html' href='http://orabackupandrecovery.blogspot.com/2008/09/remaptablespace.html' title='REMAP_TABLESPACE'/><author><name>OracleDBAFAQ</name><uri>http://www.blogger.com/profile/05504116708319595979</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8170227975642501352.post-1505039955951573542</id><published>2008-09-21T15:04:00.001-07:00</published><updated>2008-09-21T15:04:41.018-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='REMAP_SCHEMA'/><title type='text'>REMAP_SCHEMA</title><content type='html'>&lt;h3&gt;&lt;span style="font-family:arial, helvetica, sans-serif;color:#330099;"&gt;&lt;a id="sthref324" name="sthref324"&gt;&lt;/a&gt;&lt;/span&gt;&lt;/h3&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:+1;"&gt;Purpose&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;p&gt;Loads&lt;a id="sthref325" name="sthref325"&gt;&lt;/a&gt; all objects from the source schema into a target schema.&lt;/p&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:+1;"&gt;Syntax and Description&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;pre space="preserve"&gt;REMAP_SCHEMA=&lt;em&gt;source_schema&lt;/em&gt;:&lt;em&gt;target_schema&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;  &lt;p&gt;Multiple &lt;code&gt;REMAP_SCHEMA&lt;/code&gt; lines can be specified, but the source schema must be different for each one. However, different source schemas can map to the same target schema. The mapping may not be 100 percent complete, because there are certain schema references that Import is not capable of finding. For example, Import will not find schema references embedded within the body of definitions of types, views, procedures, and packages.&lt;/p&gt; &lt;p&gt;This parameter requires the &lt;code&gt;IMP_FULL_DATABASE&lt;/code&gt; role.&lt;/p&gt; &lt;p&gt;If the schema you are remapping to does not already exist, the import operation creates it, provided the dump file set contains the necessary &lt;code&gt;CREATE&lt;/code&gt; &lt;code&gt;USER&lt;/code&gt; metadata and you are importing with enough privileges. For example, the following Export commands would create the dump file sets with the necessary metadata to create a schema, because the user &lt;code&gt;SYSTEM&lt;/code&gt; has the necessary privileges:&lt;/p&gt; &lt;pre space="preserve"&gt;&gt; expdp SYSTEM/&lt;em&gt;password&lt;/em&gt; SCHEMAS=hr&lt;br /&gt;&gt; expdp SYSTEM/&lt;em&gt;password&lt;/em&gt; FULL=y&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;  &lt;p&gt;If you do not have enough privileges to perform an import that creates dump files containing the metadata necessary to create a schema, then you must create the target schema before performing the import operation. This is because the dump files do not contain the necessary information for the import to create the schema automatically.&lt;/p&gt; &lt;p&gt;If the import operation does create the schema, then after the import is complete, you must assign it a valid password in order to connect to it. The SQL statement to do this, which requires privileges, is:&lt;/p&gt; &lt;pre space="preserve"&gt;SQL&gt; ALTER USER [&lt;em&gt;schema_name&lt;/em&gt;] IDENTIFIED BY [&lt;em&gt;new_pswd&lt;/em&gt;]&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;  &lt;p&gt;When you remap a schema, it is possible to constrain the rows loaded into the destination table by specifying a query. However, Data Pump Import performs remapping before applying any queries. This means that by the time the query is applied, the schema has already been remapped. Therefore, to constrain the rows that are loaded, the query must be applied to the target schema table rather than to the source schema table.&lt;/p&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:+1;"&gt;Example&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;p&gt;Suppose that you execute the following Export and Import commands to remap the &lt;code&gt;hr&lt;/code&gt; schema into the &lt;code&gt;blake&lt;/code&gt; schema:&lt;/p&gt; &lt;pre space="preserve"&gt;&gt; expdp SYSTEM/&lt;em&gt;password&lt;/em&gt; SCHEMAS=hr DIRECTORY=dpump_dir1 DUMPFILE=hr.dmp&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&gt; impdp SYSTEM/&lt;em&gt;password&lt;/em&gt; DIRECTORY=dpump_dir1 DUMPFILE=hr.dmp&lt;br /&gt;REMAP_SCHEMA=hr:scott&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;  &lt;p&gt;In this example, if user &lt;code&gt;scott&lt;/code&gt; already exists before the import, then the Import &lt;code&gt;REMAP_SCHEMA&lt;/code&gt; command will add objects from the &lt;code&gt;hr&lt;/code&gt; schema into the existing &lt;code&gt;scott&lt;/code&gt; schema. You can connect to the &lt;code&gt;scott&lt;/code&gt; schema after the import by using the existing password (without resetting it).&lt;/p&gt; &lt;p&gt;If user &lt;code&gt;scott&lt;/code&gt; does not exist before you execute the import operation, Import automatically creates it with an unusable password. This is possible because the dump file, &lt;code&gt;hr&lt;/code&gt;.&lt;code&gt;dmp&lt;/code&gt;, was created by &lt;code&gt;SYSTEM,&lt;/code&gt; which has the privileges necessary to create a dump file that contains the metadata needed to create a schema. However, you cannot connect to &lt;code&gt;scott&lt;/code&gt; on completion of the import, unless you reset the password for &lt;code&gt;scott&lt;/code&gt; on the target database after the import completes.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8170227975642501352-1505039955951573542?l=orabackupandrecovery.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://orabackupandrecovery.blogspot.com/feeds/1505039955951573542/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8170227975642501352&amp;postID=1505039955951573542' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/1505039955951573542'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/1505039955951573542'/><link rel='alternate' type='text/html' href='http://orabackupandrecovery.blogspot.com/2008/09/remapschema.html' title='REMAP_SCHEMA'/><author><name>OracleDBAFAQ</name><uri>http://www.blogger.com/profile/05504116708319595979</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8170227975642501352.post-6699497492127571641</id><published>2008-09-21T15:03:00.001-07:00</published><updated>2008-09-21T15:03:51.944-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='REMAP_DATAFILE'/><title type='text'>REMAP_DATAFILE</title><content type='html'>&lt;h3&gt;&lt;span style="font-family:arial, helvetica, sans-serif;color:#330099;"&gt;&lt;a id="sthref320" name="sthref320"&gt;&lt;/a&gt;&lt;/span&gt;&lt;/h3&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:+1;"&gt;Purpose&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;p&gt;Changes the name&lt;a id="sthref321" name="sthref321"&gt;&lt;/a&gt; of the source datafile&lt;a id="sthref322" name="sthref322"&gt;&lt;/a&gt; to the target datafile name in all SQL statements where the source datafile is referenced: &lt;code&gt;CREATE TABLESPACE&lt;/code&gt;, &lt;code&gt;CREATE LIBRARY&lt;/code&gt;, and &lt;code&gt;CREATE DIRECTORY&lt;/code&gt;.&lt;/p&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:+1;"&gt;Syntax and Description&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;pre space="preserve"&gt;REMAP_DATAFILE=&lt;em&gt;source_datafile&lt;/em&gt;:&lt;em&gt;target_datafile&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;  &lt;p&gt;Remapping datafiles is useful when you move databases between platforms that have different file naming conventions. The &lt;em&gt;&lt;code&gt;source_datafile&lt;/code&gt;&lt;/em&gt; and &lt;em&gt;&lt;code&gt;target_datafile&lt;/code&gt;&lt;/em&gt; names should be exactly as you want them to appear in the SQL statements where they are referenced. Oracle recommends that you enclose datafile names in quotation marks to eliminate ambiguity on platforms for which a colon is a valid file specification character.&lt;/p&gt; &lt;p&gt;You must have the &lt;code&gt;IMP_FULL_DATABASE&lt;/code&gt; role to specify this parameter.&lt;/p&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:+1;"&gt;Example&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;p&gt;The following is an example of using the &lt;code&gt;REMAP_DATAFILE&lt;/code&gt; parameter.&lt;/p&gt; &lt;pre space="preserve"&gt;&gt; impdp hr/hr FULL=y DIRECTORY=dpump_dir1 DUMPFILE=db_full.dmp&lt;br /&gt;REMAP_DATAFILE='DB1$:[HRDATA.PAYROLL]tbs6.f':'/db1/hrdata/payroll/tbs6.f'&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;  &lt;p&gt;This example remaps a VMS file specification (&lt;code&gt;DR1$:[HRDATA.PAYROLL]tbs6.f)&lt;/code&gt; to a UNIX file specification, (&lt;code&gt;/db1/hrdata/payroll/tbs6.f&lt;/code&gt;) for all SQL DDL statements during the import. The dump file, &lt;code&gt;db_full.dmp,&lt;/code&gt; is located in the directory object, &lt;code&gt;dpump_dir1&lt;/code&gt;.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8170227975642501352-6699497492127571641?l=orabackupandrecovery.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://orabackupandrecovery.blogspot.com/feeds/6699497492127571641/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8170227975642501352&amp;postID=6699497492127571641' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/6699497492127571641'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/6699497492127571641'/><link rel='alternate' type='text/html' href='http://orabackupandrecovery.blogspot.com/2008/09/remapdatafile.html' title='REMAP_DATAFILE'/><author><name>OracleDBAFAQ</name><uri>http://www.blogger.com/profile/05504116708319595979</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8170227975642501352.post-8310827774181647832</id><published>2008-09-21T15:01:00.001-07:00</published><updated>2008-09-21T15:01:58.018-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Using Directory Objects When Automatic Storage Management Is Enabled'/><title type='text'>Using Directory Objects When Automatic Storage Management Is Enabled</title><content type='html'>&lt;p&gt;If you use Data Pump Export or Import with Automatic Storage Management (ASM) enabled, you must define the directory object used for the dump file so that the ASM disk-group name is used (instead of an operating system directory path). A separate directory object, which points to an operating system directory path, should be used for the log file. For example, you would create a directory object for the ASM dump file as follows:&lt;/p&gt; &lt;pre space="preserve"&gt;SQL&gt; CREATE or REPLACE DIRECTORY dpump_dir as '+DATAFILES/';&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;  &lt;p&gt;Then you would create a separate directory object for the log file:&lt;/p&gt; &lt;pre space="preserve"&gt;SQL&gt; CREATE or REPLACE DIRECTORY dpump_log as '/homedir/user1/';&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;  &lt;p&gt;To enable user &lt;code&gt;hr&lt;/code&gt; to have access to these directory objects, you would assign the necessary privileges, for example:&lt;/p&gt; &lt;pre space="preserve"&gt;SQL&gt; GRANT READ, WRITE ON DIRECTORY dpump_dir TO hr;&lt;br /&gt;SQL&gt; GRANT READ, WRITE ON DIRECTORY dpump_log TO hr;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;  &lt;p&gt;You would then use the following Data Pump Export command:&lt;/p&gt; &lt;pre space="preserve"&gt;&gt; expdp hr/hr DIRECTORY=dpump_dir DUMPFILE=hr.dmp LOGFILE=dpump_log:hr.log&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8170227975642501352-8310827774181647832?l=orabackupandrecovery.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://orabackupandrecovery.blogspot.com/feeds/8310827774181647832/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8170227975642501352&amp;postID=8310827774181647832' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/8310827774181647832'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/8310827774181647832'/><link rel='alternate' type='text/html' href='http://orabackupandrecovery.blogspot.com/2008/09/using-directory-objects-when-automatic.html' title='Using Directory Objects When Automatic Storage Management Is Enabled'/><author><name>OracleDBAFAQ</name><uri>http://www.blogger.com/profile/05504116708319595979</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8170227975642501352.post-3588054780395524155</id><published>2008-09-21T15:00:00.001-07:00</published><updated>2008-09-21T15:00:40.289-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Using Substitution Variables in Oracle Data Pump'/><title type='text'>Using Substitution Variables in Oracle Data Pump</title><content type='html'>&lt;p&gt;Instead of, or in addition to, listing specific filenames, you can use the &lt;code&gt;DUMPFILE&lt;/code&gt; parameter during export operations to specify multiple dump files, by using a substitution variable (&lt;code&gt;%U&lt;/code&gt;) in the filename. This is called a dump file template. The new dump files are created as they are needed, beginning with &lt;code&gt;01&lt;/code&gt; for &lt;code&gt;%U&lt;/code&gt;, then using &lt;code&gt;02&lt;/code&gt;, &lt;code&gt;03&lt;/code&gt;, and so on. Enough dump files are created to allow all processes specified by the current setting of the &lt;code&gt;PARALLEL&lt;/code&gt; parameter to be active. If one of the dump files becomes full because its size has reached the maximum size specified by the &lt;code&gt;FILESIZE&lt;/code&gt; parameter, it is closed, and a new dump file (with a new generated name) is created to take its place.&lt;/p&gt; &lt;p&gt;If multiple dump file templates are provided, they are used to generate dump files in a round-robin fashion. For example, if &lt;code&gt;expa%U&lt;/code&gt;, &lt;code&gt;expb%U,&lt;/code&gt; and &lt;code&gt;expc%U&lt;/code&gt; were all specified for a job having a parallelism of 6, the initial dump files created would be &lt;code&gt;expa01&lt;/code&gt;.&lt;code&gt;dmp&lt;/code&gt;, &lt;code&gt;expb01&lt;/code&gt;.&lt;code&gt;dmp&lt;/code&gt;, &lt;code&gt;expc01&lt;/code&gt;.&lt;code&gt;dmp&lt;/code&gt;, &lt;code&gt;expa02&lt;/code&gt;.&lt;code&gt;dmp&lt;/code&gt;, &lt;code&gt;expb02&lt;/code&gt;.&lt;code&gt;dmp&lt;/code&gt;, and &lt;code&gt;expc02&lt;/code&gt;.&lt;code&gt;dmp&lt;/code&gt;.&lt;/p&gt; &lt;p&gt;For import and SQLFILE operations, if dump file specifications &lt;code&gt;expa%U&lt;/code&gt;, &lt;code&gt;expb%U,&lt;/code&gt; and &lt;code&gt;expc%U&lt;/code&gt; are specified, then the operation will begin by attempting to open the dump files &lt;code&gt;expa01&lt;/code&gt;.&lt;code&gt;dmp&lt;/code&gt;, &lt;code&gt;expb01&lt;/code&gt;.&lt;code&gt;dmp&lt;/code&gt;, and &lt;code&gt;expc01&lt;/code&gt;.&lt;code&gt;dmp&lt;/code&gt;. If the dump file containing the master table is not found in this set, the operation expands its search for dump files by incrementing the substitution variable and looking up the new filenames (for example, &lt;code&gt;expa02&lt;/code&gt;.&lt;code&gt;dmp&lt;/code&gt;, &lt;code&gt;expb02&lt;/code&gt;.&lt;code&gt;dmp&lt;/code&gt;, and &lt;code&gt;expc02&lt;/code&gt;.&lt;code&gt;dmp&lt;/code&gt;). The search continues until the dump file containing the master table is located. If a dump file does not exist, the operation stops incrementing the substitution variable for the dump file specification that was in error. For example, if &lt;code&gt;expb01&lt;/code&gt;.&lt;code&gt;dmp&lt;/code&gt; and &lt;code&gt;expb02&lt;/code&gt;.&lt;code&gt;dmp&lt;/code&gt; are found but &lt;code&gt;expb03&lt;/code&gt;.&lt;code&gt;dmp&lt;/code&gt; is not found, then no more files are searched for using the &lt;code&gt;expb%U&lt;/code&gt; specification. Once the master table is found, it is used to determine whether all dump files in the dump file set have been located.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8170227975642501352-3588054780395524155?l=orabackupandrecovery.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://orabackupandrecovery.blogspot.com/feeds/3588054780395524155/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8170227975642501352&amp;postID=3588054780395524155' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/3588054780395524155'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/3588054780395524155'/><link rel='alternate' type='text/html' href='http://orabackupandrecovery.blogspot.com/2008/09/using-substitution-variables-in-oracle.html' title='Using Substitution Variables in Oracle Data Pump'/><author><name>OracleDBAFAQ</name><uri>http://www.blogger.com/profile/05504116708319595979</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8170227975642501352.post-8243822191516254543</id><published>2008-09-21T14:58:00.000-07:00</published><updated>2008-09-21T14:59:04.500-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Maximizing Data Pump Job Performance'/><title type='text'>Maximizing Data Pump Job Performance</title><content type='html'>&lt;p&gt;To improve throughput of a job, you can use the &lt;code&gt;PARALLEL&lt;/code&gt; parameter to set a degree of parallelism that takes maximum advantage of current conditions. For example, to limit the effect of a job on a production system, the database administrator (DBA) might wish to restrict the parallelism. The degree of parallelism can be reset at any time during a job. For example, &lt;code&gt;PARALLEL&lt;/code&gt; could be set to 2 during production hours to restrict a particular job to only two degrees of parallelism, and during nonproduction hours it could be reset to 8. The parallelism setting is enforced by a master process, which allocates work to be executed to a set of worker processes that perform the data and metadata processing within an operation. These worker processes operate in parallel.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8170227975642501352-8243822191516254543?l=orabackupandrecovery.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://orabackupandrecovery.blogspot.com/feeds/8243822191516254543/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8170227975642501352&amp;postID=8243822191516254543' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/8243822191516254543'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/8243822191516254543'/><link rel='alternate' type='text/html' href='http://orabackupandrecovery.blogspot.com/2008/09/maximizing-data-pump-job-performance.html' title='Maximizing Data Pump Job Performance'/><author><name>OracleDBAFAQ</name><uri>http://www.blogger.com/profile/05504116708319595979</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8170227975642501352.post-7374591797050239779</id><published>2008-09-21T14:57:00.000-07:00</published><updated>2008-09-21T14:58:12.924-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='What Happens During Execution of a Data Pump Job?'/><title type='text'>What Happens During Execution of a Data Pump Job?</title><content type='html'>&lt;p&gt;Data Pump jobs use a master table, a master process, and worker processes to perform the work and keep track of progress.&lt;/p&gt; &lt;div class="sect2"&gt;&lt;a id="sthref23" name="sthref23"&gt;&lt;/a&gt;  &lt;h3&gt;&lt;span style="font-family:arial, helvetica, sans-serif;color:#330099;"&gt;Coordination of a Job&lt;/span&gt;&lt;/h3&gt; &lt;p&gt;For every Data Pump Export job and Data Pump Import job, a master process is created. The master process controls the entire job, including communicating with the clients, creating and controlling a pool of worker processes, and performing logging operations.&lt;/p&gt;&lt;/div&gt; &lt;a id="sthref24" name="sthref24"&gt;&lt;/a&gt;  &lt;h3&gt;&lt;span style="font-family:arial, helvetica, sans-serif;color:#330099;"&gt;Tracking Progress Within a Job&lt;/span&gt;&lt;/h3&gt; &lt;p&gt;While the data and metadata are being transferred, a master table&lt;a id="sthref25" name="sthref25"&gt;&lt;/a&gt;&lt;a id="sthref26" name="sthref26"&gt;&lt;/a&gt; is used to track the progress within a job. The master table is implemented as a user table within the database. The specific function of the master table for export and import jobs is as follows:&lt;/p&gt; &lt;ul&gt;&lt;li type="disc"&gt; &lt;p&gt;For export jobs, the master table records the location of database objects within a dump file set. Export builds and maintains the master table for the duration of the job. At the end of an export job, the content of the master table is written to a file in the dump file set.&lt;/p&gt;&lt;/li&gt;&lt;li type="disc"&gt; &lt;p&gt;For import jobs, the master table is loaded from the dump file set and is used to control the sequence of operations for locating objects that need to be imported into the target database.&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;The master table is created in the schema of the current user performing the export or import operation. Therefore, that user must have sufficient tablespace quota for its creation. The name of the master table is the same as the name of the job that created it. Therefore, you cannot explicitly give a Data Pump job the same name as a preexisting table or view.&lt;/p&gt; &lt;p&gt;For all operations, the information in the master table is used to restart a job.&lt;/p&gt; &lt;p&gt;The master table is either retained or dropped, depending on the circumstances, as follows:&lt;/p&gt; &lt;ul&gt;&lt;li type="disc"&gt; &lt;p&gt;Upon successful job completion, the master table is dropped.&lt;/p&gt;&lt;/li&gt;&lt;li type="disc"&gt; &lt;p&gt;If a job is stopped using the &lt;code&gt;STOP_JOB&lt;/code&gt; interactive command, the master table is retained for use in restarting the job.&lt;/p&gt;&lt;/li&gt;&lt;li type="disc"&gt; &lt;p&gt;If a job is killed using the &lt;code&gt;KILL_JOB&lt;/code&gt; interactive command, the master table is dropped and the job cannot be restarted.&lt;/p&gt;&lt;/li&gt;&lt;li type="disc"&gt; &lt;p&gt;If a job terminates unexpectedly, the master table is retained. You can delete it if you do not intend to restart the job.&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8170227975642501352-7374591797050239779?l=orabackupandrecovery.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://orabackupandrecovery.blogspot.com/feeds/7374591797050239779/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8170227975642501352&amp;postID=7374591797050239779' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/7374591797050239779'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/7374591797050239779'/><link rel='alternate' type='text/html' href='http://orabackupandrecovery.blogspot.com/2008/09/what-happens-during-execution-of-data.html' title='What Happens During Execution of a Data Pump Job?'/><author><name>OracleDBAFAQ</name><uri>http://www.blogger.com/profile/05504116708319595979</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8170227975642501352.post-2115377487479056535</id><published>2008-09-21T14:56:00.000-07:00</published><updated>2008-09-21T14:57:07.436-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='How Does Data Pump Access Data?'/><title type='text'>How Does Data Pump Access Data?</title><content type='html'>&lt;p&gt;Data Pump supports two access methods to load and unload table row data: direct path and external tables. Because both methods support the same external data representation, data that is unloaded with one method can be loaded using the other method. Data Pump automatically chooses the fastest method appropriate for each table.&lt;/p&gt; &lt;p&gt;Data Pump also uses functionality provided in the &lt;code&gt;DBMS_METADATA&lt;/code&gt; PL/SQL package to handle all operations involving metadata, including complete extraction, transformation, and re-creation of all database object definitions.&lt;/p&gt; &lt;a id="i1009430" name="i1009430"&gt;&lt;/a&gt;  &lt;div class="sect2"&gt;&lt;a id="sthref16" name="sthref16"&gt;&lt;/a&gt;  &lt;h3&gt;&lt;span style="font-family:arial, helvetica, sans-serif;color:#330099;"&gt;Direct Path Loads and Unloads&lt;/span&gt;&lt;/h3&gt; &lt;p&gt;The Oracle database has provided direct path unload capability for export operations since Oracle release 7.3 and a direct path API for OCI since Oracle8&lt;em&gt;i&lt;/em&gt;. Data Pump technology enhances direct path technology in the following ways:&lt;/p&gt; &lt;ul&gt;&lt;li type="disc"&gt; &lt;p&gt;Support of a direct path, proprietary format&lt;a id="sthref17" name="sthref17"&gt;&lt;/a&gt; unload.&lt;/p&gt;&lt;/li&gt;&lt;li type="disc"&gt; &lt;p&gt;Improved performance through elimination of unnecessary conversions. This is possible because the direct path internal stream format is used as the format stored in the Data Pump dump files.&lt;/p&gt;&lt;/li&gt;&lt;li type="disc"&gt; &lt;p&gt;Support of additional datatypes and transformations.&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;Data Pump uses direct path load and unload when the structure of a table allows it.&lt;/p&gt; &lt;p&gt;In the following circumstances, Data Pump cannot use direct path&lt;a id="sthref18" name="sthref18"&gt;&lt;/a&gt; loading:&lt;/p&gt; &lt;ul&gt;&lt;li type="disc"&gt; &lt;p&gt;A global index on multipartition tables exists during a single-partition load. This includes object tables that are partitioned.&lt;/p&gt;&lt;/li&gt;&lt;li type="disc"&gt; &lt;p&gt;A domain index exists for a LOB column.&lt;/p&gt;&lt;/li&gt;&lt;li type="disc"&gt; &lt;p&gt;A table is in a cluster.&lt;/p&gt;&lt;/li&gt;&lt;li type="disc"&gt; &lt;p&gt;A table has an active trigger.&lt;/p&gt;&lt;/li&gt;&lt;li type="disc"&gt; &lt;p&gt;A table has fine-grained access control enabled in insert mode.&lt;/p&gt;&lt;/li&gt;&lt;li type="disc"&gt; &lt;p&gt;A table contains &lt;code&gt;BFILE&lt;/code&gt; columns or columns of opaque types.&lt;/p&gt;&lt;/li&gt;&lt;li type="disc"&gt; &lt;p&gt;A referential integrity constraint is present.&lt;/p&gt;&lt;/li&gt;&lt;li type="disc"&gt; &lt;p&gt;A table contains &lt;code&gt;VARRAY&lt;/code&gt; columns with an embedded opaque type.&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;If any of these conditions exist for a table, Data Pump uses external tables rather than direct path to move the data for that table.&lt;/p&gt;&lt;/div&gt; &lt;a id="sthref19" name="sthref19"&gt;&lt;/a&gt;  &lt;h3&gt;&lt;span style="font-family:arial, helvetica, sans-serif;color:#330099;"&gt;External Tables&lt;/span&gt;&lt;/h3&gt; &lt;p&gt;The Oracle database has provided an external tables capability since Oracle9&lt;em&gt;i&lt;/em&gt; that allows reading of data sources external to the database. As of Oracle Database 10&lt;em&gt;g&lt;/em&gt;, the external tables feature also supports writing database data to destinations external to the database. Data Pump provides an external tables access driver&lt;a id="sthref20" name="sthref20"&gt;&lt;/a&gt; (&lt;code&gt;ORACLE_DATAPUMP&lt;/code&gt;) that reads and writes files. The format of the files is the same format used with the direct path method. This allows for high-speed loading and unloading of database tables. Data Pump uses external tables as the data access mechanism in the following situations:&lt;/p&gt; &lt;ul&gt;&lt;li type="disc"&gt; &lt;p&gt;Loading and unloading very large tables and partitions in situations where parallel SQL can be used to advantage&lt;/p&gt;&lt;/li&gt;&lt;li type="disc"&gt; &lt;p&gt;Loading tables with global or domain indexes defined on them, including partitioned object tables&lt;/p&gt;&lt;/li&gt;&lt;li type="disc"&gt; &lt;p&gt;Loading tables with active triggers or clustered tables&lt;/p&gt;&lt;/li&gt;&lt;li type="disc"&gt; &lt;p&gt;Loading and unloading tables with encrypted columns&lt;/p&gt;&lt;/li&gt;&lt;li type="disc"&gt; &lt;p&gt;Loading tables with fine-grained access control enabled for inserts&lt;/p&gt;&lt;/li&gt;&lt;li type="disc"&gt; &lt;p&gt;Loading tables that are partitioned differently at load time and unload time&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8170227975642501352-2115377487479056535?l=orabackupandrecovery.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://orabackupandrecovery.blogspot.com/feeds/2115377487479056535/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8170227975642501352&amp;postID=2115377487479056535' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/2115377487479056535'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/2115377487479056535'/><link rel='alternate' type='text/html' href='http://orabackupandrecovery.blogspot.com/2008/09/how-does-data-pump-access-data.html' title='How Does Data Pump Access Data?'/><author><name>OracleDBAFAQ</name><uri>http://www.blogger.com/profile/05504116708319595979</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8170227975642501352.post-2507293055998697747</id><published>2008-09-21T14:55:00.000-07:00</published><updated>2008-09-21T14:56:31.337-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DBA_DATAPUMP_JOBS View and USER_DATAPUMP_JOBS View'/><title type='text'>DBA_DATAPUMP_JOBS View and USER_DATAPUMP_JOBS View</title><content type='html'>&lt;strong&gt;&lt;em&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;DBA_DATAPUMP_JOBS View and USER_DATAPUMP_JOBS View&lt;br /&gt;&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;The &lt;code&gt;DBA_DATAPUMP_JOBS&lt;a id="sthref33" name="sthref33"&gt;&lt;/a&gt;&lt;/code&gt; and &lt;code&gt;USER_DATAPUMP_JOBS&lt;/code&gt;&lt;a id="sthref34" name="sthref34"&gt;&lt;/a&gt; views&lt;a id="sthref35" name="sthref35"&gt;&lt;/a&gt;&lt;a id="sthref36" name="sthref36"&gt;&lt;/a&gt; identify all active Data Pump jobs, regardless of their state, on an instance (or on all instances for Real Application Clusters). They also show all Data Pump master tables not currently associated with an active job. You can use the job information to attach to an active job. Once you are attached to the job, you can stop it, change its parallelism, or monitor its progress. You can use the master table information to restart a stopped job or to remove any master tables that are no longer needed.&lt;br /&gt;&lt;table class="formalwide" title="DBA_DATAPUMP_JOBS View and USER_DATAPUMP_JOBS View" summary="Column descriptions for DBA_DATAPUMP_JOBS view and USER_DATAPUMP_JOBS view." dir="ltr" rules="groups" width="100%" border="1" cellpadding="3" cellspacing="0" frame="hsides"&gt; &lt;thead&gt; &lt;tr valign="top" align="left"&gt; &lt;th id="r1c1-t12" valign="bottom" align="left"&gt;&lt;span style="font-family:Arial, Helvetica, sans-serif;"&gt;&lt;strong&gt;Column&lt;/strong&gt;&lt;/span&gt;&lt;/th&gt; &lt;th id="r1c2-t12" valign="bottom" align="left"&gt;&lt;span style="font-family:Arial, Helvetica, sans-serif;"&gt;&lt;strong&gt;Datatype&lt;/strong&gt;&lt;/span&gt;&lt;/th&gt; &lt;th id="r1c3-t12" valign="bottom" align="left"&gt;&lt;span style="font-family:Arial, Helvetica, sans-serif;"&gt;&lt;strong&gt;Description&lt;/strong&gt;&lt;/span&gt;&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt; &lt;tbody&gt; &lt;tr valign="top" align="left"&gt; &lt;td id="r2c1-t12" headers="r1c1-t12" align="left"&gt; &lt;pre space="preserve"&gt;OWNER_NAME&lt;br /&gt;&lt;/pre&gt; &lt;/td&gt; &lt;td headers="r2c1-t12 r1c2-t12" align="left"&gt; &lt;pre space="preserve"&gt;VARCHAR2(30)&lt;br /&gt;&lt;/pre&gt; &lt;/td&gt; &lt;td headers="r2c1-t12 r1c3-t12" align="left"&gt;User who initiated the job (valid only for &lt;code&gt;DBA_DATAPUMP_JOBS)&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr valign="top" align="left"&gt; &lt;td id="r3c1-t12" headers="r1c1-t12" align="left"&gt; &lt;pre space="preserve"&gt;JOB_NAME&lt;br /&gt;&lt;/pre&gt; &lt;/td&gt; &lt;td headers="r3c1-t12 r1c2-t12" align="left"&gt; &lt;pre space="preserve"&gt;VARCHAR2(30)&lt;br /&gt;&lt;/pre&gt; &lt;/td&gt; &lt;td headers="r3c1-t12 r1c3-t12" align="left"&gt;User-supplied name for the job (or the default name generated by the server)&lt;/td&gt;&lt;/tr&gt; &lt;tr valign="top" align="left"&gt; &lt;td id="r4c1-t12" headers="r1c1-t12" align="left"&gt; &lt;pre space="preserve"&gt;OPERATION&lt;br /&gt;&lt;/pre&gt; &lt;/td&gt; &lt;td headers="r4c1-t12 r1c2-t12" align="left"&gt; &lt;pre space="preserve"&gt;VARCHAR2(30)&lt;br /&gt;&lt;/pre&gt; &lt;/td&gt; &lt;td headers="r4c1-t12 r1c3-t12" align="left"&gt;Type of job&lt;/td&gt;&lt;/tr&gt; &lt;tr valign="top" align="left"&gt; &lt;td id="r5c1-t12" headers="r1c1-t12" align="left"&gt; &lt;pre space="preserve"&gt;JOB_MODE&lt;br /&gt;&lt;/pre&gt; &lt;/td&gt; &lt;td headers="r5c1-t12 r1c2-t12" align="left"&gt; &lt;pre space="preserve"&gt;VARCHAR2(30)&lt;br /&gt;&lt;/pre&gt; &lt;/td&gt; &lt;td headers="r5c1-t12 r1c3-t12" align="left"&gt;Mode of job&lt;/td&gt;&lt;/tr&gt; &lt;tr valign="top" align="left"&gt; &lt;td id="r6c1-t12" headers="r1c1-t12" align="left"&gt; &lt;pre space="preserve"&gt;STATE&lt;br /&gt;&lt;/pre&gt; &lt;/td&gt; &lt;td headers="r6c1-t12 r1c2-t12" align="left"&gt; &lt;pre space="preserve"&gt;VARCHAR2(30)&lt;br /&gt;&lt;/pre&gt; &lt;/td&gt; &lt;td headers="r6c1-t12 r1c3-t12" align="left"&gt;State of the job&lt;/td&gt;&lt;/tr&gt; &lt;tr valign="top" align="left"&gt; &lt;td id="r7c1-t12" headers="r1c1-t12" align="left"&gt; &lt;pre space="preserve"&gt;DEGREE&lt;br /&gt;&lt;/pre&gt; &lt;/td&gt; &lt;td headers="r7c1-t12 r1c2-t12" align="left"&gt; &lt;pre space="preserve"&gt;NUMBER&lt;br /&gt;&lt;/pre&gt; &lt;/td&gt; &lt;td headers="r7c1-t12 r1c3-t12" align="left"&gt;Number of worker processes performing the operation&lt;/td&gt;&lt;/tr&gt; &lt;tr valign="top" align="left"&gt; &lt;td id="r8c1-t12" headers="r1c1-t12" align="left"&gt; &lt;pre space="preserve"&gt;ATTACHED_SESSIONS&lt;br /&gt;&lt;/pre&gt; &lt;/td&gt; &lt;td headers="r8c1-t12 r1c2-t12" align="left"&gt; &lt;pre space="preserve"&gt;NUMBER&lt;br /&gt;&lt;/pre&gt; &lt;/td&gt; &lt;td headers="r8c1-t12 r1c3-t12" align="left"&gt;Number of sessions attached to the job&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8170227975642501352-2507293055998697747?l=orabackupandrecovery.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://orabackupandrecovery.blogspot.com/feeds/2507293055998697747/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8170227975642501352&amp;postID=2507293055998697747' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/2507293055998697747'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/2507293055998697747'/><link rel='alternate' type='text/html' href='http://orabackupandrecovery.blogspot.com/2008/09/dbadatapumpjobs-view-and.html' title='DBA_DATAPUMP_JOBS View and USER_DATAPUMP_JOBS View'/><author><name>OracleDBAFAQ</name><uri>http://www.blogger.com/profile/05504116708319595979</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8170227975642501352.post-8634621655794026771</id><published>2008-09-21T14:54:00.001-07:00</published><updated>2008-09-21T14:54:42.205-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DBA_DATAPUMP_SESSIONS View'/><title type='text'>DBA_DATAPUMP_SESSIONS View</title><content type='html'>&lt;p&gt;The &lt;code&gt;DBA_DATAPUMP_SESSIONS&lt;/code&gt; view&lt;a id="sthref39" name="sthref39"&gt;&lt;/a&gt;&lt;a id="sthref40" name="sthref40"&gt;&lt;/a&gt; identifies the user sessions that are attached to a job. The information in this view is useful for determining why a stopped operation has not gone away.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;em&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;The DBA_DATAPUMP_SESSIONS View&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt; &lt;table class="formalwide" title="The DBA_DATAPUMP_SESSIONS View" summary="Description of the DBA_DATAPUMP_SESSION view" dir="ltr" rules="groups" width="100%" border="1" cellpadding="3" cellspacing="0" frame="hsides"&gt; &lt;thead&gt; &lt;tr valign="top" align="left"&gt; &lt;th id="r1c1-t14" valign="bottom" align="left"&gt;&lt;span style="font-family:Arial, Helvetica, sans-serif;"&gt;&lt;strong&gt;Column&lt;/strong&gt;&lt;/span&gt;&lt;/th&gt; &lt;th id="r1c2-t14" valign="bottom" align="left"&gt;&lt;span style="font-family:Arial, Helvetica, sans-serif;"&gt;&lt;strong&gt;Datatype&lt;/strong&gt;&lt;/span&gt;&lt;/th&gt; &lt;th id="r1c3-t14" valign="bottom" align="left"&gt;&lt;span style="font-family:Arial, Helvetica, sans-serif;"&gt;&lt;strong&gt;Description&lt;/strong&gt;&lt;/span&gt;&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt; &lt;tbody&gt; &lt;tr valign="top" align="left"&gt; &lt;td id="r2c1-t14" headers="r1c1-t14" align="left"&gt; &lt;pre space="preserve"&gt;OWNER_NAME&lt;br /&gt;&lt;/pre&gt; &lt;/td&gt; &lt;td headers="r2c1-t14 r1c2-t14" align="left"&gt; &lt;pre space="preserve"&gt;VARCHAR2(30)&lt;br /&gt;&lt;/pre&gt; &lt;/td&gt; &lt;td headers="r2c1-t14 r1c3-t14" align="left"&gt;User who initiated the job.&lt;/td&gt;&lt;/tr&gt; &lt;tr valign="top" align="left"&gt; &lt;td id="r3c1-t14" headers="r1c1-t14" align="left"&gt; &lt;pre space="preserve"&gt;JOB_NAME&lt;br /&gt;&lt;/pre&gt; &lt;/td&gt; &lt;td headers="r3c1-t14 r1c2-t14" align="left"&gt; &lt;pre space="preserve"&gt;VARCHAR2(30)&lt;br /&gt;&lt;/pre&gt; &lt;/td&gt; &lt;td headers="r3c1-t14 r1c3-t14" align="left"&gt;User-supplied name for the job (or the default name generated by the server).&lt;/td&gt;&lt;/tr&gt; &lt;tr valign="top" align="left"&gt; &lt;td id="r4c1-t14" headers="r1c1-t14" align="left"&gt; &lt;pre space="preserve"&gt;SADDR&lt;br /&gt;&lt;/pre&gt; &lt;/td&gt; &lt;td headers="r4c1-t14 r1c2-t14" align="left"&gt; &lt;pre space="preserve"&gt;RAW(4) (RAW(8) on 64-bit systems)&lt;br /&gt;&lt;/pre&gt; &lt;/td&gt; &lt;td headers="r4c1-t14 r1c3-t14" align="left"&gt;Address of session attached to the job. Can be used with &lt;code&gt;V$SESSION&lt;/code&gt; view.&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8170227975642501352-8634621655794026771?l=orabackupandrecovery.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://orabackupandrecovery.blogspot.com/feeds/8634621655794026771/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8170227975642501352&amp;postID=8634621655794026771' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/8634621655794026771'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/8634621655794026771'/><link rel='alternate' type='text/html' href='http://orabackupandrecovery.blogspot.com/2008/09/dbadatapumpsessions-view.html' title='DBA_DATAPUMP_SESSIONS View'/><author><name>OracleDBAFAQ</name><uri>http://www.blogger.com/profile/05504116708319595979</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8170227975642501352.post-8214791291957050578</id><published>2008-09-21T14:53:00.001-07:00</published><updated>2008-09-21T14:53:30.583-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='and SQL Files'/><category scheme='http://www.blogger.com/atom/ns#' term='Default Locations for Dump'/><category scheme='http://www.blogger.com/atom/ns#' term='Log'/><title type='text'>Default Locations for Dump, Log, and SQL Files</title><content type='html'>&lt;p&gt;Because Data Pump is server-based, rather than client-based, dump files, log files, and SQL files are accessed relative to server-based directory paths. Data Pump requires you to specify directory paths as directory objects. A directory object maps a name to a directory path on the file system.&lt;/p&gt; &lt;p&gt;For example, the following SQL statement creates a directory object named &lt;code&gt;dpump_dir1&lt;/code&gt; that is mapped to a directory located at &lt;code&gt;/usr/apps/datafiles.&lt;/code&gt;&lt;/p&gt; &lt;pre space="preserve"&gt;SQL&gt; CREATE DIRECTORY dpump_dir1 AS '/usr/apps/datafiles';&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;  &lt;p&gt;The reason that a directory object is required is to ensure data security and integrity. For example:&lt;/p&gt; &lt;ul&gt;&lt;li type="disc"&gt; &lt;p&gt;If you were allowed to specify a directory path location for an input file, you might be able to read data that the server has access to, but to which you should not.&lt;/p&gt;&lt;/li&gt;&lt;li type="disc"&gt; &lt;p&gt;If you were allowed to specify a directory path location for an output file, the server might overwrite a file that you might not normally have privileges to delete.&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;Before you can run Data Pump Export or Data Pump Import, a directory object must be created by a database administrator (DBA) or by any user with the &lt;code&gt;CREATE&lt;/code&gt; &lt;code&gt;ANY&lt;/code&gt; &lt;code&gt;DIRECTORY&lt;/code&gt; privilege. Then, when you are using Export or Import, you specify the directory object with the &lt;code&gt;DIRECTORY&lt;/code&gt; parameter.&lt;/p&gt; &lt;p&gt;After a directory is created, the user creating the directory object needs to grant &lt;code&gt;READ&lt;/code&gt; or &lt;code&gt;WRITE&lt;/code&gt; permission on the directory to other users. For example, to allow the Oracle database to read and write files on behalf of user &lt;code&gt;hr&lt;/code&gt; in the directory named by &lt;code&gt;dpump_dir1&lt;/code&gt;, the DBA must execute the following command:&lt;/p&gt; &lt;pre space="preserve"&gt;SQL&gt; GRANT READ, WRITE ON DIRECTORY dpump_dir1 TO hr;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;  &lt;p&gt;Note that &lt;code&gt;READ&lt;/code&gt; or &lt;code&gt;WRITE&lt;/code&gt; permission to a directory object only means that the Oracle database will read or write that file on your behalf. You are not given direct access to those files outside of the Oracle database unless you have the appropriate operating system privileges. Similarly, the Oracle database requires permission from the operating system to read and write files in the directories.&lt;/p&gt; &lt;p&gt;Data Pump Export and Import use the following order of precedence to determine a file's location:&lt;/p&gt; &lt;ol start="1" type="1"&gt;&lt;li&gt; &lt;p&gt;If a directory object is specified as part of the file specification, then the location specified by that directory object is used. (The directory object must be separated from the filename by a colon.)&lt;/p&gt;&lt;/li&gt;&lt;li&gt; &lt;p&gt;If a directory object is not specified for a file, then the directory object named by the &lt;code&gt;DIRECTORY&lt;/code&gt; parameter is used.&lt;/p&gt;&lt;/li&gt;&lt;li&gt; &lt;p&gt;If a directory object is not specified, and if no directory object was named by the &lt;code&gt;DIRECTORY&lt;/code&gt; parameter, then the value of the environment variable, &lt;code&gt;DATA_PUMP_DIR&lt;/code&gt;, is used. This environment variable is defined using operating system commands on the client system where the Data Pump Export and Import utilities are run. The value assigned to this client-based environment variable must be the name of a server-based directory object, which must first be created on the server system by a DBA. For example, the following SQL statement creates a directory object on the server system. The name of the directory object is &lt;code&gt;DUMP_FILES1&lt;/code&gt;, and it is located at &lt;code&gt;'/usr/apps/dumpfiles1'&lt;/code&gt;.&lt;/p&gt; &lt;pre space="preserve"&gt;SQL&gt; CREATE DIRECTORY DUMP_FILES1 AS '/usr/apps/dumpfiles1';&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;  &lt;p&gt;Then, a user on a UNIX-based client system using &lt;code&gt;csh&lt;/code&gt; can assign the value &lt;code&gt;DUMP_FILES1&lt;/code&gt; to the environment variable &lt;code&gt;DATA_PUMP_DIR&lt;/code&gt;. The &lt;code&gt;DIRECTORY&lt;/code&gt; parameter can then be omitted from the command line. The dump file &lt;code&gt;employees.dmp&lt;/code&gt;, as well as the log file &lt;code&gt;export.log&lt;/code&gt;, will be written to &lt;code&gt;'/usr/apps/dumpfiles1'&lt;/code&gt;.&lt;/p&gt; &lt;pre space="preserve"&gt;%setenv DATA_PUMP_DIR DUMP_FILES1&lt;br /&gt;%expdp hr/hr TABLES=employees DUMPFILE=employees.dmp&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt; &lt;/li&gt;&lt;li&gt; &lt;p&gt;If none of the previous three conditions yields a directory object and you are a privileged user, then Data Pump attempts to use the value of the default server-based directory object, &lt;code&gt;DATA_PUMP_DIR&lt;/code&gt;. It is important to understand that Data Pump does &lt;em&gt;not&lt;/em&gt; create the &lt;code&gt;DATA_PUMP_DIR&lt;/code&gt; directory object; it merely attempts to use its value when a privileged user has not provided a directory object using any of the mechanisms previously described. This default directory object must first be created by a DBA. Do not confuse this with the client-based environment variable of the same name.&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8170227975642501352-8214791291957050578?l=orabackupandrecovery.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://orabackupandrecovery.blogspot.com/feeds/8214791291957050578/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8170227975642501352&amp;postID=8214791291957050578' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/8214791291957050578'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/8214791291957050578'/><link rel='alternate' type='text/html' href='http://orabackupandrecovery.blogspot.com/2008/09/default-locations-for-dump-log-and-sql.html' title='Default Locations for Dump, Log, and SQL Files'/><author><name>OracleDBAFAQ</name><uri>http://www.blogger.com/profile/05504116708319595979</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8170227975642501352.post-9213468855492471276</id><published>2008-09-21T14:51:00.001-07:00</published><updated>2008-09-21T14:51:22.893-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Original Export and Import Versus Data Pump Export and Import'/><title type='text'>Original Export and Import Versus Data Pump Export and Import</title><content type='html'>&lt;p&gt;If you are familiar with the original Export (&lt;code&gt;exp&lt;/code&gt;) and Import (&lt;code&gt;imp&lt;/code&gt;) utilities, it is important to understand that many of the concepts behind them do not apply to Data Pump Export (&lt;code&gt;expdp&lt;/code&gt;) and Data Pump Import (&lt;code&gt;impdp&lt;/code&gt;). In particular:&lt;/p&gt; &lt;ul&gt;&lt;li type="disc"&gt; &lt;p&gt;Data Pump Export and Import operate on a group of files called a dump file set rather than on a single sequential dump file.&lt;/p&gt;&lt;/li&gt;&lt;li type="disc"&gt; &lt;p&gt;Data Pump Export and Import access files on the server rather than on the client. This results in improved performance. It also means that directory objects are required when you specify file locations.&lt;/p&gt;&lt;/li&gt;&lt;li type="disc"&gt; &lt;p&gt;Data Pump Export and Import use parallel execution rather than a single stream of execution, for improved performance. This means that the order of data within dump file sets is more variable.&lt;/p&gt;&lt;/li&gt;&lt;li type="disc"&gt; &lt;p&gt;Data Pump Export and Import represent metadata in the dump file set as XML documents rather than as DDL commands. This provides improved flexibility for transforming the metadata at import time.&lt;/p&gt;&lt;/li&gt;&lt;li type="disc"&gt; &lt;p&gt;Data Pump Export and Import are self-tuning utilities. Tuning parameters that were used in original Export and Import, such as &lt;code&gt;BUFFER&lt;/code&gt; and &lt;code&gt;RECORDLENGTH&lt;/code&gt;, are neither required nor supported by Data Pump Export and Import.&lt;/p&gt;&lt;/li&gt;&lt;li type="disc"&gt; &lt;p&gt;At import time there is no option to perform interim commits during the restoration of a partition. This was provided by the &lt;code&gt;COMMIT&lt;/code&gt; parameter in original Import.&lt;/p&gt;&lt;/li&gt;&lt;li type="disc"&gt; &lt;p&gt;There is no option to merge extents when you re-create tables. In original Import, this was provided by the &lt;code&gt;COMPRESS&lt;/code&gt; parameter. Instead, extents are reallocated according to storage parameters for the target table.&lt;/p&gt;&lt;/li&gt;&lt;li type="disc"&gt; &lt;p&gt;Sequential media, such as tapes and pipes, are not supported.&lt;/p&gt;&lt;/li&gt;&lt;li type="disc"&gt; &lt;p&gt;When you are importing data into an existing table using either &lt;code&gt;APPEND&lt;/code&gt; or &lt;code&gt;TRUNCATE&lt;/code&gt;, if any row violates an active constraint, the load is discontinued and no data is loaded. This is different from original Import, which logs any rows that are in violation and continues with the load.&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8170227975642501352-9213468855492471276?l=orabackupandrecovery.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://orabackupandrecovery.blogspot.com/feeds/9213468855492471276/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8170227975642501352&amp;postID=9213468855492471276' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/9213468855492471276'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/9213468855492471276'/><link rel='alternate' type='text/html' href='http://orabackupandrecovery.blogspot.com/2008/09/original-export-and-import-versus-data.html' title='Original Export and Import Versus Data Pump Export and Import'/><author><name>OracleDBAFAQ</name><uri>http://www.blogger.com/profile/05504116708319595979</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8170227975642501352.post-8888835034883194501</id><published>2008-09-21T14:47:00.000-07:00</published><updated>2008-09-21T14:49:07.372-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle Data Pump New Featurs'/><title type='text'>Oracle Data Pump New Featurs</title><content type='html'>1.The ability to specify the maximum number of threads of active execution operating on behalf of the Data Pump job. This enables you to adjust resource consumption versus elapsed time. See PARALLEL for information about using this parameter in export. See PARALLEL for information about using this parameter in import. (This feature is available only in the Enterprise Edition of Oracle Database 10g.)&lt;br /&gt;&lt;br /&gt;2.The ability to restart Data Pump jobs. See START_JOB for information about restarting export jobs. See START_JOB for information about restarting import jobs.&lt;br /&gt;&lt;br /&gt;3.The ability to detach from and reattach to long-running jobs without affecting the job itself. This allows DBAs and other operations personnel to monitor jobs from multiple locations. The Data Pump Export and Import utilities can be attached to only one job at a time; however, you can have multiple clients or jobs running at one time. (If you are using the Data Pump API, the restriction on attaching to only one job at a time does not apply.) You can also have multiple clients attached to the same job. See ATTACH for information about using this parameter in export. See ATTACH for information about using this parameter in import.&lt;br /&gt;&lt;br /&gt;4.Support for export and import operations over the network, in which the source of each operation is a remote instance. See NETWORK_LINK for information about using this parameter in export. See NETWORK_LINK for information about using this parameter in import.&lt;br /&gt;&lt;br /&gt;5.The ability, in an import job, to change the name of the source datafile to a different name in all DDL statements where the source datafile is referenced. See REMAP_DATAFILE.&lt;br /&gt;&lt;br /&gt;   6.Enhanced support for remapping tablespaces during an import operation. See REMAP_TABLESPACE.&lt;br /&gt;&lt;br /&gt;7.Support for filtering the metadata that is exported and imported, based upon objects and object types. For information about filtering metadata during an export operation, see INCLUDE and EXCLUDE. For information about filtering metadata during an import operation, see INCLUDE and EXCLUDE.&lt;br /&gt;&lt;br /&gt;8. Support for an interactive-command mode that allows monitoring of and interaction with ongoing jobs. See Commands Available in Export's Interactive-Command Mode and Commands Available in Import's Interactive-Command Mode.&lt;br /&gt;&lt;br /&gt;9.The ability to estimate how much space an export job would consume, without actually performing the export. See ESTIMATE_ONLY.&lt;br /&gt;&lt;br /&gt;10. The ability to specify the version of database objects to be moved. In export jobs, VERSION applies to the version of the database objects to be exported. See VERSION for more information about using this parameter in export.&lt;br /&gt;&lt;br /&gt;In import jobs, VERSION applies only to operations over the network. This means that VERSION applies to the version of database objects to be extracted from the source database. See VERSION for more information about using this parameter in import.&lt;br /&gt;&lt;br /&gt;11.Most Data Pump export and import operations occur on the Oracle database server. (This contrasts with original export and import, which were primarily client-based.) See Default Locations for Dump, Log, and SQL Files for information about some of the implications of server-based operations.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8170227975642501352-8888835034883194501?l=orabackupandrecovery.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://orabackupandrecovery.blogspot.com/feeds/8888835034883194501/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8170227975642501352&amp;postID=8888835034883194501' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/8888835034883194501'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/8888835034883194501'/><link rel='alternate' type='text/html' href='http://orabackupandrecovery.blogspot.com/2008/09/oracle-data-pump-new-featurs.html' title='Oracle Data Pump New Featurs'/><author><name>OracleDBAFAQ</name><uri>http://www.blogger.com/profile/05504116708319595979</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8170227975642501352.post-9212566296988941599</id><published>2008-09-21T14:45:00.000-07:00</published><updated>2008-09-21T14:46:52.782-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='What New Features Do Data Pump Export and Import Provide?'/><title type='text'>What New Features Do Data Pump Export and Import Provide?</title><content type='html'>&lt;p&gt;The new Data Pump Export and Import utilities (invoked with the &lt;code&gt;expdp&lt;/code&gt; and &lt;code&gt;impdp&lt;/code&gt; commands, respectively) have a similar look and feel to the original Export (&lt;code&gt;exp&lt;/code&gt;) and Import (&lt;code&gt;imp&lt;/code&gt;) utilities, but they are completely separate. Dump files generated by the new Data Pump Export utility are not compatible with dump files generated by the original Export utility. Therefore, files generated by the original Export (&lt;code&gt;exp&lt;/code&gt;) utility cannot be imported with the Data Pump Import (&lt;code&gt;impdp&lt;/code&gt;) utility.&lt;/p&gt; &lt;p&gt;Oracle recommends that you use the new Data Pump Export and Import utilities because they support all Oracle Database 10&lt;em&gt;g&lt;/em&gt; features, except for XML schemas. Original Export and Import support the full set of Oracle database release 9.2 features. Also, the design of Data Pump Export and Import results in greatly enhanced data movement performance over the original Export and Import utilities.&lt;/p&gt;&lt;p&gt;The following are the major new features that provide this increased performance, as well as enhanced ease of use:&lt;br /&gt;&lt;br /&gt;    * The ability to specify the maximum number of threads of active execution operating on behalf of the Data Pump job. This enables you to adjust resource consumption versus elapsed time. See PARALLEL for information about using this parameter in export. See PARALLEL for information about using this parameter in import. (This feature is available only in the Enterprise Edition of Oracle Database 10g.)&lt;br /&gt;    * The ability to restart Data Pump jobs. See START_JOB for information about restarting export jobs. See START_JOB for information about restarting import jobs.&lt;br /&gt;    * The ability to detach from and reattach to long-running jobs without affecting the job itself. This allows DBAs and other operations personnel to monitor jobs from multiple locations. The Data Pump Export and Import utilities can be attached to only one job at a time; however, you can have multiple clients or jobs running at one time. (If you are using the Data Pump API, the restriction on attaching to only one job at a time does not apply.) You can also have multiple clients attached to the same job. See ATTACH for information about using this parameter in export. See ATTACH for information about using this parameter in import.&lt;br /&gt;    * Support for export and import operations over the network, in which the source of each operation is a remote instance. See NETWORK_LINK for information about using this parameter in export. See NETWORK_LINK for information about using this parameter in import.&lt;br /&gt;    * The ability, in an import job, to change the name of the source datafile to a different name in all DDL statements where the source datafile is referenced. See REMAP_DATAFILE.&lt;br /&gt;    * Enhanced support for remapping tablespaces during an import operation. See REMAP_TABLESPACE.&lt;br /&gt;    * Support for filtering the metadata that is exported and imported, based upon objects and object types. For information about filtering metadata during an export operation, see INCLUDE and EXCLUDE. For information about filtering metadata during an import operation, see INCLUDE and EXCLUDE.&lt;br /&gt;    * Support for an interactive-command mode that allows monitoring of and interaction with ongoing jobs. See Commands Available in Export's Interactive-Command Mode and Commands Available in Import's Interactive-Command Mode.&lt;br /&gt;    * The ability to estimate how much space an export job would consume, without actually performing the export. See ESTIMATE_ONLY.&lt;br /&gt;    * The ability to specify the version of database objects to be moved. In export jobs, VERSION applies to the version of the database objects to be exported. See VERSION for more information about using this parameter in export.&lt;br /&gt;&lt;br /&gt;      In import jobs, VERSION applies only to operations over the network. This means that VERSION applies to the version of database objects to be extracted from the source database. See VERSION for more information about using this parameter in import.&lt;br /&gt;    * Most Data Pump export and import operations occur on the Oracle database server. (This contrasts with original export and import, which were primarily client-based.) See Default Locations for Dump, Log, and SQL Files for information about some of the implications of server-based operations.&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8170227975642501352-9212566296988941599?l=orabackupandrecovery.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://orabackupandrecovery.blogspot.com/feeds/9212566296988941599/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8170227975642501352&amp;postID=9212566296988941599' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/9212566296988941599'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/9212566296988941599'/><link rel='alternate' type='text/html' href='http://orabackupandrecovery.blogspot.com/2008/09/what-new-features-do-data-pump-export.html' title='What New Features Do Data Pump Export and Import Provide?'/><author><name>OracleDBAFAQ</name><uri>http://www.blogger.com/profile/05504116708319595979</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8170227975642501352.post-3848876210885951007</id><published>2008-09-21T14:43:00.000-07:00</published><updated>2008-09-21T14:44:54.760-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Data Pump Components'/><title type='text'>Data Pump Components</title><content type='html'>&lt;p&gt;Oracle Data Pump is made up of three distinct parts:&lt;/p&gt; &lt;ul&gt;&lt;li type="disc"&gt; &lt;p&gt;The command-line clients, &lt;code&gt;expdp&lt;/code&gt; and &lt;code&gt;impdp&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&lt;li type="disc"&gt; &lt;p&gt;The &lt;code&gt;DBMS_DATAPUMP&lt;/code&gt; PL/SQL package (also known as the Data Pump API)&lt;/p&gt;&lt;/li&gt;&lt;li type="disc"&gt; &lt;p&gt;The &lt;code&gt;DBMS_METADATA&lt;/code&gt; PL/SQL package (also known as the Metadata API)&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;The Data Pump clients, &lt;code&gt;expdp&lt;/code&gt; and &lt;code&gt;impdp&lt;/code&gt;, invoke the Data Pump Export utility and Data Pump Import utility, respectively. They provide a user interface that closely resembles the original export (&lt;code&gt;exp&lt;/code&gt;) and import (&lt;code&gt;imp&lt;/code&gt;) utilities.&lt;/p&gt; &lt;p&gt;The &lt;code&gt;expdp&lt;/code&gt; and &lt;code&gt;impdp&lt;/code&gt; clients use the procedures provided in the &lt;code&gt;DBMS_DATAPUMP&lt;/code&gt; PL/SQL package to execute export and import commands, using the parameters entered at the command-line. These parameters enable the exporting and importing of data and metadata for a complete database or subsets of a database.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;All Data Pump Export and Import processing, including the reading and writing of dump files, is done on the server. &lt;strong&gt;This means that the data base administrator (DBA) must create directory objects.&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;When data is moved, Data Pump automatically uses either direct path load (or unload) or the external tables mechanism, or a combination of both. When metadata is moved, Data Pump uses functionality provided by the &lt;code&gt;DBMS_METADATA&lt;/code&gt; PL/SQL package. The &lt;code&gt;DBMS_METADATA&lt;/code&gt; package provides a centralized facility for the extraction, manipulation, and resubmission of dictionary metadata.&lt;/p&gt; &lt;p&gt;The &lt;code&gt;DBMS_DATAPUMP&lt;/code&gt; and &lt;code&gt;DBMS_METADATA&lt;/code&gt; PL/SQL packages can be used independently of the Data Pump clients.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8170227975642501352-3848876210885951007?l=orabackupandrecovery.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://orabackupandrecovery.blogspot.com/feeds/3848876210885951007/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8170227975642501352&amp;postID=3848876210885951007' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/3848876210885951007'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/3848876210885951007'/><link rel='alternate' type='text/html' href='http://orabackupandrecovery.blogspot.com/2008/09/data-pump-components.html' title='Data Pump Components'/><author><name>OracleDBAFAQ</name><uri>http://www.blogger.com/profile/05504116708319595979</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8170227975642501352.post-8914753622450178791</id><published>2008-09-21T14:40:00.002-07:00</published><updated>2008-09-21T14:42:49.875-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Data Pump - Operating on Specific Objects'/><title type='text'>Data Pump - Operating on Specific Objects</title><content type='html'>&lt;span class="parahead1"&gt;&lt;br /&gt;&lt;/span&gt; &lt;p&gt; &lt;/p&gt; &lt;span class="bodycopy"&gt; Ever had a need to export only certain procedures from one user to be recreated in a different database or user? Unlike the traditional export utility, Data Pump allows you to export only a particular type of object. For instance, the following command lets you export only procedures, and nothing else&lt;em&gt;--&lt;/em&gt;no tables, views, or even functions: &lt;/span&gt; &lt;p&gt; &lt;/p&gt; &lt;pre&gt;expdp bob/iclaim directory=DPDATA1 dumpfile=expprocs.dmp include=PROCEDURE&lt;br /&gt;&lt;/pre&gt; &lt;p&gt; &lt;/p&gt; &lt;span class="bodycopy"&gt; To export only a few specific objects&lt;em&gt;--&lt;/em&gt;say, function &lt;tt&gt;FUNC1&lt;/tt&gt; and procedure &lt;tt&gt;PROC1&lt;/tt&gt;&lt;em&gt;--&lt;/em&gt;you could use &lt;/span&gt; &lt;p&gt; &lt;/p&gt; &lt;pre&gt;expdp bob/iclaim directory=DPDATA1 dumpfile=expprocs.dmp&lt;br /&gt; include=PROCEDURE:\"=\'PROC1\'\",FUNCTION:\"=\'FUNC1\'\"&lt;br /&gt;&lt;/pre&gt; &lt;p&gt; &lt;/p&gt; &lt;span class="bodycopy"&gt; This dumpfile serves as a backup of the sources. You can even use it to create DDL scripts to be used later. A special parameter called &lt;tt&gt;SQLFILE&lt;/tt&gt; allows the creation of the DDL script file. &lt;/span&gt; &lt;p&gt; &lt;/p&gt; &lt;pre&gt;impdp bob/iclaim directory=DPDATA1 dumpfile=expprocs.dmp sqlfile=procs.sql&lt;br /&gt;&lt;/pre&gt; &lt;p&gt; &lt;/p&gt; &lt;span class="bodycopy"&gt;This instruction creates a file named procs.sql in the directory specified by DPDATA1, containing the scripts of the objects inside the export dumpfile. This approach helps you create the sources quickly in another schema. &lt;/span&gt; &lt;p&gt; &lt;/p&gt; &lt;span class="bodycopy"&gt;Using the parameter &lt;tt&gt;INCLUDE&lt;/tt&gt; allows you to define objects to be included or excluded from the dumpfile. You can use the clause &lt;tt&gt;INCLUDE=TABLE:"LIKE 'TAB%'"&lt;/tt&gt; to export only those tables whose name start with TAB. Similarly, you could use the construct &lt;tt&gt;INCLUDE=TABLE:"NOT LIKE 'TAB%'"&lt;/tt&gt; to exclude all tables starting with TAB. Alternatively you can use the &lt;tt&gt;EXCLUDE&lt;/tt&gt; parameter to exclude specific objects. &lt;/span&gt; &lt;p&gt; &lt;/p&gt; &lt;span class="bodycopy"&gt;&lt;/span&gt; &lt;p&gt; &lt;/p&gt; &lt;pre&gt;Expdp and impdp help&lt;br /&gt;&lt;br /&gt;expdp help=y&lt;br /&gt;&lt;/pre&gt; &lt;p&gt; &lt;/p&gt; &lt;span class="bodycopy"&gt; Similarly, &lt;tt&gt;impdp help=y&lt;/tt&gt; will show all the parameters in DPI. &lt;/span&gt; &lt;p&gt; &lt;/p&gt; &lt;span class="bodycopy"&gt; While Data Pump jobs are running, you can pause them by issuing &lt;tt&gt;STOP_JOB&lt;/tt&gt; on the DPE or DPI prompts and then restart them with &lt;tt&gt;START_JOB&lt;/tt&gt;. This functionality comes in handy when you run out of space and want to make corrections before continuing. &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8170227975642501352-8914753622450178791?l=orabackupandrecovery.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://orabackupandrecovery.blogspot.com/feeds/8914753622450178791/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8170227975642501352&amp;postID=8914753622450178791' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/8914753622450178791'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/8914753622450178791'/><link rel='alternate' type='text/html' href='http://orabackupandrecovery.blogspot.com/2008/09/data-pump-operating-on-specific-objects.html' title='Data Pump - Operating on Specific Objects'/><author><name>OracleDBAFAQ</name><uri>http://www.blogger.com/profile/05504116708319595979</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8170227975642501352.post-593160205191912393</id><published>2008-09-21T14:40:00.001-07:00</published><updated>2008-09-21T14:40:24.039-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Data Pump Import'/><title type='text'>Data Pump Import</title><content type='html'>&lt;span class="parahead1"&gt;&lt;/span&gt; &lt;p&gt; &lt;/p&gt; &lt;span class="bodycopy"&gt;Data import performance is where Data Pump really stands out, however. To import the data exported earlier, we will use &lt;/span&gt; &lt;p&gt; &lt;/p&gt; &lt;pre&gt;impdp bob/abc123 directory=dpdata1 dumpfile=expCASES.dmp job_name=cases_import&lt;br /&gt;&lt;/pre&gt; &lt;p&gt; &lt;/p&gt; &lt;span class="bodycopy"&gt;The default behavior of the import process is to create the table and all associated objects, and to produce an error when the table exists. Should you want to append the data to the existing table, you could use &lt;tt&gt;TABLE_EXISTS_ACTION=APPEND&lt;/tt&gt; in the above command line. &lt;/span&gt; &lt;p&gt; &lt;/p&gt; &lt;span class="bodycopy"&gt;As with Data Pump Export, pressing Control-C on the process brings up the interactive mode of Date Pump Import (DPI); again, the prompt is &lt;tt&gt;Import&gt;&lt;/tt&gt;. &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8170227975642501352-593160205191912393?l=orabackupandrecovery.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://orabackupandrecovery.blogspot.com/feeds/593160205191912393/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8170227975642501352&amp;postID=593160205191912393' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/593160205191912393'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/593160205191912393'/><link rel='alternate' type='text/html' href='http://orabackupandrecovery.blogspot.com/2008/09/data-pump-import.html' title='Data Pump Import'/><author><name>OracleDBAFAQ</name><uri>http://www.blogger.com/profile/05504116708319595979</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8170227975642501352.post-8494189463798137484</id><published>2008-09-21T14:38:00.000-07:00</published><updated>2008-09-21T14:39:26.475-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Data Pump Parallel Operation'/><title type='text'>Data Pump Parallel Operation</title><content type='html'>&lt;p&gt;  &lt;span class="bodycopy"&gt;You can accelerate jobs significantly using more than one thread for the export, through the PARALLEL parameter. Each thread creates a separate dumpfile, so the parameter dumpfile should have as many entries as the degree of parallelism. Instead of entering each one explicitly, you can specify wildcard characters as filenames such as:&lt;/span&gt; &lt;/p&gt;&lt;p&gt; &lt;/p&gt; &lt;pre&gt;expdp bob/abc123 tables=CASES directory=DPDATA1&lt;br /&gt; dumpfile=expCASES_%U.dmp parallel=4 job_name=Cases_Export&lt;br /&gt;&lt;/pre&gt; &lt;p&gt; &lt;/p&gt; &lt;span class="bodycopy"&gt;Note how the dumpfile parameter has a wild card &lt;tt&gt;%U&lt;/tt&gt;, which indicates the files will be created as needed and the format will be &lt;tt&gt;expCASES_nn.dmp&lt;/tt&gt;, where nn starts at 01 and goes up as needed.&lt;/span&gt; &lt;p&gt; &lt;/p&gt; &lt;span class="bodycopy"&gt;In parallel mode, the status screen will show four worker processes. (In default mode, only one process will be visible.) All worker processes extract data simultaneously and show their progress on the status screen.&lt;/span&gt; &lt;p&gt; &lt;/p&gt; &lt;span class="bodycopy"&gt;It's important to separate the I/O channels for access to the database files and the dumpfile directory filesystems. Otherwise, the overhead associated with maintaining the Data Pump jobs may outweigh the benefits of parallel threads and hence degrade performance. Parallelism will be in effect only if the number of tables is higher than the parallel value and the tables are big.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8170227975642501352-8494189463798137484?l=orabackupandrecovery.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://orabackupandrecovery.blogspot.com/feeds/8494189463798137484/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8170227975642501352&amp;postID=8494189463798137484' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/8494189463798137484'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/8494189463798137484'/><link rel='alternate' type='text/html' href='http://orabackupandrecovery.blogspot.com/2008/09/data-pump-parallel-operation.html' title='Data Pump Parallel Operation'/><author><name>OracleDBAFAQ</name><uri>http://www.blogger.com/profile/05504116708319595979</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8170227975642501352.post-8979487358549155430</id><published>2008-09-21T14:37:00.000-07:00</published><updated>2008-09-21T14:38:19.133-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Data Pump Export Monitoring'/><title type='text'>Data Pump Export Monitoring</title><content type='html'>&lt;p&gt; &lt;span class="parahead1"&gt;Export Monitoring&lt;/span&gt; &lt;/p&gt; &lt;p&gt; &lt;span class="bodycopy"&gt;While Data Pump Export (DPE) is running, press Control-C; it will stop the display of the messages on the screen, but not the export process itself. Instead, it will display the DPE prompt as shown below. The process is now said to be in "interactive" mode:&lt;/span&gt; &lt;/p&gt; &lt;p&gt; &lt;/p&gt;&lt;pre&gt;Export&gt;&lt;br /&gt;&lt;/pre&gt;  &lt;p&gt; &lt;span class="bodycopy"&gt;This approach allows several commands to be entered on that DPE job. To find a summary, use the &lt;tt&gt;STATUS&lt;/tt&gt; command at the prompt:&lt;/span&gt; &lt;/p&gt; &lt;p&gt; &lt;/p&gt;&lt;pre&gt;Export&gt; status&lt;br /&gt;Job: CASES_EXPORT&lt;br /&gt; Operation: EXPORT                        &lt;br /&gt; Mode: TABLE                         &lt;br /&gt; State: EXECUTING                     &lt;br /&gt; Degree: 1&lt;br /&gt; Job Error Count: 0&lt;br /&gt; Dump file:  /u02/dpdata1/expCASES.dmp&lt;br /&gt;     bytes written =  2048&lt;br /&gt;&lt;br /&gt;Worker 1 Status:&lt;br /&gt; State: EXECUTING                     &lt;br /&gt; Object Schema: DWOWNER&lt;br /&gt; Object Name: CASES&lt;br /&gt; Object Type: TABLE_EXPORT/TBL_TABLE_DATA/TABLE/TABLE_DATA&lt;br /&gt; Completed Objects: 1&lt;br /&gt; Total Objects: 1&lt;br /&gt; Completed Rows: 4687818&lt;br /&gt;&lt;/pre&gt;  &lt;p&gt; &lt;span class="bodycopy"&gt;Remember, this is merely the status display. The export is working in the background. To continue to see the messages on the screen, use the command &lt;tt&gt;CONTINUE_CLIENT&lt;/tt&gt; from the &lt;tt&gt;Export&gt;&lt;/tt&gt; prompt.&lt;/span&gt; &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8170227975642501352-8979487358549155430?l=orabackupandrecovery.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://orabackupandrecovery.blogspot.com/feeds/8979487358549155430/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8170227975642501352&amp;postID=8979487358549155430' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/8979487358549155430'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/8979487358549155430'/><link rel='alternate' type='text/html' href='http://orabackupandrecovery.blogspot.com/2008/09/data-pump-export-monitoring.html' title='Data Pump Export Monitoring'/><author><name>OracleDBAFAQ</name><uri>http://www.blogger.com/profile/05504116708319595979</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8170227975642501352.post-8971449094445179224</id><published>2008-09-21T14:34:00.000-07:00</published><updated>2008-09-21T14:37:13.243-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Data Pump Export'/><title type='text'>Data Pump Export</title><content type='html'>&lt;p&gt; &lt;span class="parahead1"&gt;Data Pump Export&lt;/span&gt; &lt;/p&gt; &lt;p&gt; &lt;span class="bodycopy"&gt;The new utility is known as expdp to differentiate it from exp, the original export. In this example, we will use Data Pump to export a large table, CASES, about 3GB in size. Data Pump uses file manipulation on the server side to create and read files; hence, directories are used as locations. In this case, we are going to use the filesystem /u02/dpdata1 to hold the dump files.&lt;/span&gt; &lt;/p&gt; &lt;p&gt; &lt;/p&gt;&lt;pre&gt;create directory dpdata1 as '/u02/dpdata1';&lt;br /&gt;grant read, write on directory dpdata1 to bob;&lt;br /&gt;&lt;/pre&gt; &lt;p&gt; &lt;/p&gt; &lt;span class="bodycopy"&gt;Next, we will export the data:&lt;/span&gt;  &lt;p&gt; &lt;/p&gt;&lt;pre&gt;expdp bob/abc123 tables=CASES directory=DPDATA1&lt;br /&gt; dumpfile=expCASES.dmp job_name=CASES_EXPORT&lt;br /&gt;&lt;/pre&gt; &lt;p&gt; &lt;/p&gt; &lt;span class="bodycopy"&gt;Let's analyze various parts of this command. The userid/password combination, tables, and dumpfile parameters are self-explanatory. Unlike the original export, the file is created on the server (not the client). The location is specified by the directory parameter value &lt;tt&gt;DPDATA1&lt;/tt&gt;, which points to /u02/dpdata1 as created earlier. The process also creates a log file, again on the server, in the location specified by the directory parameter. By default, a directory named DPUMP_DIR is used by this process; so it can be created instead of the &lt;tt&gt;DPDATA1&lt;/tt&gt;.&lt;/span&gt;  &lt;p&gt; &lt;span class="bodycopy"&gt;Note the parameter job_name above, a special one not found in the original export. All Data Pump work is done though jobs. Data Pump jobs, unlike DBMS jobs, are merely server processes that process the data on behalf of the main process. The main process, known as a master control process, coordinates this effort via Advanced Queuing; it does so through a special table created at runtime known as a master table. In our example, if you check the schema of the user ANANDA while expdp is running you will notice the existence of a table CASES_EXPORT, corresponding to the parameter &lt;tt&gt;job_name&lt;/tt&gt;. This table is dropped when &lt;tt&gt;expdp&lt;/tt&gt; finishes.&lt;/span&gt; &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8170227975642501352-8971449094445179224?l=orabackupandrecovery.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://orabackupandrecovery.blogspot.com/feeds/8971449094445179224/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8170227975642501352&amp;postID=8971449094445179224' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/8971449094445179224'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/8971449094445179224'/><link rel='alternate' type='text/html' href='http://orabackupandrecovery.blogspot.com/2008/09/data-pump-export.html' title='Data Pump Export'/><author><name>OracleDBAFAQ</name><uri>http://www.blogger.com/profile/05504116708319595979</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8170227975642501352.post-1838569111705545178</id><published>2008-09-21T14:33:00.000-07:00</published><updated>2008-09-21T14:34:16.611-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle 10g data pump'/><title type='text'>Oracle 10g data pump</title><content type='html'>&lt;span class="bodycopy"&gt;Oracle 10g data pump the newer and faster sibling of the export/import toolkit in Oracle Database 10&lt;em&gt;g&lt;/em&gt;, designed to speed up the process many times over. &lt;/span&gt;  &lt;p&gt; &lt;span class="bodycopy"&gt;Data Pump reflects a complete overhaul of the export/import process. Instead of using the usual SQL commands, it provides proprietary APIs to load and unload data significantly faster. In my tests, I have seen performance increases of 10-15 times over export in direct mode and 5-times-over performance increases in the import process. In addition, unlike with the export utility, it is possible to extract only specific types of objects such as procedures. &lt;/span&gt; &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8170227975642501352-1838569111705545178?l=orabackupandrecovery.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://orabackupandrecovery.blogspot.com/feeds/1838569111705545178/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8170227975642501352&amp;postID=1838569111705545178' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/1838569111705545178'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/1838569111705545178'/><link rel='alternate' type='text/html' href='http://orabackupandrecovery.blogspot.com/2008/09/oracle-10g-data-pump.html' title='Oracle 10g data pump'/><author><name>OracleDBAFAQ</name><uri>http://www.blogger.com/profile/05504116708319595979</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8170227975642501352.post-5664588399770848165</id><published>2008-09-21T14:32:00.000-07:00</published><updated>2008-09-21T14:33:08.690-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle Data Pump'/><title type='text'>Oracle Data Pump</title><content type='html'>&lt;table width="100%" border="0" cellpadding="0" cellspacing="5"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td colspan="2"&gt;&lt;span class="parahead1"&gt;Oracle Data Pump&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;                        &lt;span class="bodycopy"&gt;Oracle Data Pump is a feature of                          Oracle Database 11&lt;i&gt;g&lt;/i&gt; that enables very fast bulk                          data and metadata movement between Oracle databases. Oracle                          Data Pump provides new high-speed, parallel Export and                          Import utilities (expdp and impdp) as well as a Web-based                          Oracle Enterprise Manager interface. &lt;/span&gt; &lt;/td&gt;    &lt;/tr&gt;                   &lt;tr&gt;&lt;td valign="top" width="2%"&gt;&lt;img src="http://www.oracle.com/technology/images/bullets_and_symbols/bullet.gif" width="16" align="top" height="16" /&gt;&lt;/td&gt;               &lt;td valign="top" width="98%"&gt;&lt;span class="bodycopy"&gt;Data Pump Export and Import utilities are typically much faster than the original Export and Import Utilities. A single thread of Data Pump Export is about twice as fast as original Export, while Data Pump Import is 15-45 times fast than original Import.&lt;/span&gt;&lt;/td&gt;             &lt;/tr&gt;    &lt;tr&gt;                &lt;td valign="top" width="2%"&gt;&lt;img src="http://www.oracle.com/technology/images/bullets_and_symbols/bullet.gif" width="16" align="top" height="16" /&gt;&lt;/td&gt;               &lt;td valign="top" width="98%"&gt;&lt;span class="bodycopy"&gt;Data Pump jobs can be restarted without loss of data, whether or not the stoppage was voluntary or involuntary.&lt;/span&gt;&lt;/td&gt;             &lt;/tr&gt;    &lt;tr&gt;                &lt;td valign="top" width="2%"&gt;&lt;img src="http://www.oracle.com/technology/images/bullets_and_symbols/bullet.gif" width="16" align="top" height="16" /&gt;&lt;/td&gt;               &lt;td valign="top" width="98%"&gt;&lt;span class="bodycopy"&gt;Data Pump jobs support fine-grained object selection. Virtually any type of object can be included or excluded in a Data Pump job.&lt;/span&gt;&lt;/td&gt;             &lt;/tr&gt;    &lt;tr&gt;                &lt;td valign="top" width="2%"&gt;&lt;img src="http://www.oracle.com/technology/images/bullets_and_symbols/bullet.gif" width="16" align="top" height="16" /&gt;&lt;/td&gt;               &lt;td valign="top" width="98%"&gt;&lt;span class="bodycopy"&gt;Data Pump supports the ability to load one instance directly from another (network import) and unload a remote instance (network export).&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8170227975642501352-5664588399770848165?l=orabackupandrecovery.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://orabackupandrecovery.blogspot.com/feeds/5664588399770848165/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8170227975642501352&amp;postID=5664588399770848165' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/5664588399770848165'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8170227975642501352/posts/default/5664588399770848165'/><link rel='alternate' type='text/html' href='http://orabackupandrecovery.blogspot.com/2008/09/oracle-data-pump.html' title='Oracle Data Pump'/><author><name>OracleDBAFAQ</name><uri>http://www.blogger.com/profile/05504116708319595979</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
