<?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-7113174832293329652</id><updated>2011-11-27T16:05:55.206-08:00</updated><category term='Data Pump'/><category term='Useful Oracle Database Administration Quick Fixes'/><category term='Flash'/><category term='Parallel degree'/><category term='Oracle OEM - Agent'/><category term='Backup'/><category term='Clone DB for Data Guard with RMAN'/><category term='Oracle Data Guard Implementation'/><category term='Quick Catalog Creation - Oracle - RMAN'/><category term='Import'/><category term='RMAN'/><category term='Best Business practices'/><category term='Compress Oracle export in one shot'/><category term='Memory Performance tuning- PGA - SGA - memo'/><category term='Enterprise Manager'/><category term='export Data Load'/><title type='text'>JC  Jaffray-Architect/Oracle DBA - Tips</title><subtitle type='html'>Contributors are: Jay Iqbal and E. Aslan.
This is a Data and Database Administration Forum, we Publish articles about Best Practices in Oracle database (DBA Tips), Database design recommendation.
Oracle is a trademark of Oracle Corporation.
Javed, edmon and myself (JC.) We have more than 75 years as PM, DA and DBA.
Contact us: service@jaffrayconsulting.com 
Caution: All materials are provided as research paper, we do not accept any reliability or responsibility in any case.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://jc-dba.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7113174832293329652/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://jc-dba.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Charlie</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/-EpSdO9niIKk/TXwg_aFo5pI/AAAAAAAAAZY/VEKGTs5Fsdg/s220/Unknown'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>14</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7113174832293329652.post-1130664155154190737</id><published>2011-03-14T09:18:00.000-07:00</published><updated>2011-03-14T11:05:27.171-07:00</updated><title type='text'>Data Modeling - Logical &amp; Physical design</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/-sd0lA4ov1Jc/TX5Y4TaXfCI/AAAAAAAAAbg/9w_TwlXAi2U/s1600/my-blonde_2.jpg"&gt;&lt;img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;width: 200px; height: 200px;" src="http://1.bp.blogspot.com/-sd0lA4ov1Jc/TX5Y4TaXfCI/AAAAAAAAAbg/9w_TwlXAi2U/s200/my-blonde_2.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5583998312292776994" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/-zV7AD0-zxpk/TX5YgoIyNhI/AAAAAAAAAbQ/Z8iFbXJ_-1E/s1600/girl-geek.jpeg"&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/-EH6pJyJ7OHE/TX5AynsjCyI/AAAAAAAAAa8/91TL8kKatTM/s1600/Unknown-1"&gt;&lt;/a&gt;&lt;br /&gt;We use Erwin data modeler to create data dictionary , then we create a main data Model representing the logical world , It include functional, process flow and all other  info regarding the business and  does satisfy  the business requirement.&lt;div&gt;Then we validate the main model with stake holder and data owners, once that's done , it is  time to generate the final Data Dictionary including field definitions and comments.&lt;/div&gt;&lt;div&gt;Next phase is to create an Oracle Schema owner to hold the Physical representation of the model.&lt;/div&gt;&lt;div&gt;Sql*loader, Microsoft Access, Excel could be used to test some data, from Excel to Oracle we could use some third party tools to load the tables.&lt;/div&gt;&lt;div&gt;The logical model could be divided into many physical models, such as  representation for operational data store and  final Data Warehouse System.&lt;/div&gt;&lt;div&gt;The continuos collaboration with front end developers and team lead is essential to project success.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7113174832293329652-1130664155154190737?l=jc-dba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jc-dba.blogspot.com/feeds/1130664155154190737/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7113174832293329652&amp;postID=1130664155154190737&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7113174832293329652/posts/default/1130664155154190737'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7113174832293329652/posts/default/1130664155154190737'/><link rel='alternate' type='text/html' href='http://jc-dba.blogspot.com/2011/03/data-modeling-logical-physical-design.html' title='Data Modeling - Logical &amp; Physical design'/><author><name>Charlie</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/-EpSdO9niIKk/TXwg_aFo5pI/AAAAAAAAAZY/VEKGTs5Fsdg/s220/Unknown'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-sd0lA4ov1Jc/TX5Y4TaXfCI/AAAAAAAAAbg/9w_TwlXAi2U/s72-c/my-blonde_2.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7113174832293329652.post-3514654527713287535</id><published>2011-03-09T10:23:00.000-08:00</published><updated>2011-03-14T11:04:56.614-07:00</updated><title type='text'>Killing a session in Oracle RAC 11G</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/-ZvNcHMJzpVE/TX5Yw1f8DLI/AAAAAAAAAbY/o9MwadIqxp4/s1600/Brel-young"&gt;&lt;img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;width: 139px; height: 140px;" src="http://4.bp.blogspot.com/-ZvNcHMJzpVE/TX5Yw1f8DLI/AAAAAAAAAbY/o9MwadIqxp4/s200/Brel-young" border="0" alt="" id="BLOGGER_PHOTO_ID_5583998184003996850" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/-6pH0yuIoXrk/TX4_kaY1mxI/AAAAAAAAAa0/-h_30wjGk5w/s1600/Unknown-1"&gt;&lt;/a&gt;&lt;br /&gt;Oracle has added a very useful option in 11gR2 RAC to kill a session on instance B from instance 1. They have added instance name as a parameter in kill session syntax&lt;br /&gt;See following example&lt;br /&gt;sys@ARAC&gt; select username ,status,inst_id from gv$session where username='REMEDY';&lt;br /&gt;USERNAME STATUS INST_ID&lt;br /&gt;------------------------------ -------- ----------&lt;br /&gt;REMEDY INACTIVE 2&lt;br /&gt;sys@ARAC&gt; alter system kill session '787,1113,@2' immediate;&lt;br /&gt;System altered.&lt;br /&gt;sys@ARAC&gt; select username ,status,inst_id from gv$session where username='REMEDY';&lt;br /&gt;no rows selected&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7113174832293329652-3514654527713287535?l=jc-dba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jc-dba.blogspot.com/feeds/3514654527713287535/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7113174832293329652&amp;postID=3514654527713287535&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7113174832293329652/posts/default/3514654527713287535'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7113174832293329652/posts/default/3514654527713287535'/><link rel='alternate' type='text/html' href='http://jc-dba.blogspot.com/2011/03/killing-session-in-oracle-rac-11g.html' title='Killing a session in Oracle RAC 11G'/><author><name>Javed</name><uri>http://www.blogger.com/profile/07378284923797484411</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><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-ZvNcHMJzpVE/TX5Yw1f8DLI/AAAAAAAAAbY/o9MwadIqxp4/s72-c/Brel-young' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7113174832293329652.post-4005561018098709828</id><published>2009-02-04T12:32:00.000-08:00</published><updated>2009-11-13T08:27:56.030-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Parallel degree'/><title type='text'>Speed up Data Load</title><content type='html'>&lt;script type="text/javascript"&gt;&lt;!--&lt;br /&gt;google_ad_client = "pub-2549707577631251";&lt;br /&gt;/* JC-1 300x250, created 11/13/09 */&lt;br /&gt;google_ad_slot = "7463945783";&lt;br /&gt;google_ad_width = 300;&lt;br /&gt;google_ad_height = 250;&lt;br /&gt;//--&gt;&lt;br /&gt;&lt;/script&gt;&lt;br /&gt;&lt;script type="text/javascript"&lt;br /&gt;src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;&lt;br /&gt;&lt;/script&gt;&lt;br /&gt;To accelerate processing, for example for quick  data load or  improved query you might try this:&lt;br /&gt;&lt;br /&gt;- Put your table in parallel mode.&lt;br /&gt;the operation run in parallel also  this suggest your Hardware has multiple cpu for example 4 CPU's.&lt;br /&gt;&lt;br /&gt;For this sample the chosen  table name is CAR:&lt;br /&gt;&lt;br /&gt;create table car(&lt;br /&gt;        car_id         char(4),&lt;br /&gt;        make          varchar2(18),&lt;br /&gt;        year             char(4),&lt;br /&gt;        price            number)&lt;br /&gt;&lt;br /&gt;parallel 4;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;alter table car &lt;br /&gt;add constraint xpkcar primary key (car_id);   &lt;br /&gt;this just create the primary key.  in compatible sql, &lt;br /&gt;&lt;br /&gt;In Oracle sqlplus syntax you might just write:&lt;br /&gt;-- &lt;br /&gt;create table car(&lt;br /&gt;        car_id         char(4)    primary key,&lt;br /&gt;        make          varchar2(18),&lt;br /&gt;        year             char(4),&lt;br /&gt;        price            number)&lt;br /&gt;&lt;br /&gt;parallel 4;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Or if the table is already created just alter it.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; alter table CAR parallel 4;&lt;br /&gt;SQL&gt; alter session enable parallel DML;&lt;br /&gt;DML is for Data manipulation such as insert, update, delete , if you are creating lots of object substitue DML by DDL.&lt;br /&gt;&lt;br /&gt;SQL&gt; alter session enable parallel DDL;&lt;br /&gt;You might also force it.&lt;br /&gt;SQL&gt; alter session force parallel DDL;&lt;br /&gt;&lt;br /&gt;I read somewhere that insert with syntax of insert into table values (A,B,C,..) does not work on parallel so I will check on it and will eventually post it.&lt;br /&gt;&lt;br /&gt;You also might use hint such as &lt;br /&gt;insert /*+ parallel (CAR) */&lt;br /&gt;--&lt;br /&gt;&lt;br /&gt;--&lt;br /&gt;Need Oracle consultant contact us at service@jaffrayconsulting.com&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7113174832293329652-4005561018098709828?l=jc-dba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jc-dba.blogspot.com/feeds/4005561018098709828/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7113174832293329652&amp;postID=4005561018098709828&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7113174832293329652/posts/default/4005561018098709828'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7113174832293329652/posts/default/4005561018098709828'/><link rel='alternate' type='text/html' href='http://jc-dba.blogspot.com/2009/02/speed-up-data-load.html' title='Speed up Data Load'/><author><name>Charlie</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/-EpSdO9niIKk/TXwg_aFo5pI/AAAAAAAAAZY/VEKGTs5Fsdg/s220/Unknown'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7113174832293329652.post-299599522109819470</id><published>2008-10-02T08:59:00.000-07:00</published><updated>2010-02-04T09:22:27.063-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='RMAN'/><category scheme='http://www.blogger.com/atom/ns#' term='Flash'/><category scheme='http://www.blogger.com/atom/ns#' term='Backup'/><title type='text'>Flash recovery Area</title><content type='html'>&lt;script type="text/javascript"&gt;&lt;!--&lt;br /&gt;google_ad_client = "pub-2549707577631251";&lt;br /&gt;/* JC-1 300x250, created 11/13/09 */&lt;br /&gt;google_ad_slot = "7463945783";&lt;br /&gt;google_ad_width = 300;&lt;br /&gt;google_ad_height = 250;&lt;br /&gt;//--&gt;&lt;br /&gt;&lt;/script&gt;&lt;br /&gt;&lt;script type="text/javascript"&lt;br /&gt;src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;&lt;br /&gt;&lt;/script&gt;&lt;br /&gt;This is from my older site oraclemiracledba , that I thought might still be useful here.&lt;br /&gt;&lt;br /&gt;What is the Flash Recovery Area ?&lt;br /&gt;&lt;br /&gt;The Flash Recovery Area is an area for storing certain types of files on disk. These files typically consist of flashback database logs and RMAN related files. It can be a regular file system or an ASM group. Oracle does NOT need to use a Flash Recovery Area to operate the database. It is recommended for easy of use and simplification for Backup and Recovery purposes and the associated space management. By placing files in the Flash Recovery Area, Oracle will manage the space usage, deleting files that are no longer required, when the space is required. However, if space is not required, Oracle will maintain the files on disk (as a form of cache for files backed up to tape).&lt;br /&gt;&lt;br /&gt;Components of the Flash Recovery Area&lt;br /&gt;&lt;br /&gt;The flash recover area can contain permanent or transient files. It can contain any or all of the following types of files:&lt;br /&gt;&lt;br /&gt;Multiplexed copy of control file.&lt;br /&gt;Multiplexed copy of online redo log.&lt;br /&gt;Archived redo log files&lt;br /&gt;RMAN backup sets, backup copies, etc.&lt;br /&gt;Flashback logs&lt;br /&gt;Of these files ONLY the flashback logs are required to be stored in the flash recovery area.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;Configure Flash Recovery Area&lt;br /&gt;&lt;br /&gt;Configuring the Flash Recovery Area is simple. Once the disk file system is mounted, or the ASM group created, all that is required is setting is to configure it by setting the two init.ora parameters related to the configuration :&lt;br /&gt;&lt;br /&gt;·         DB_RECOVERY_FILE_DEST_SIZE&lt;br /&gt;&lt;br /&gt;·         DB_RECOVERY_FILE_DEST&lt;br /&gt;&lt;br /&gt;DB_RECOVERY_FILE_DEST_SIZE specifies the total size of all files that can be stored in the Flash Recovery Area. This value must be set first. It is NOT the actual size available, but the space which Oracle will use to limit the space of files in the Flash Recovery Area.&lt;br /&gt;&lt;br /&gt;DB_RECOVERY_FILE_DEST specifies the physical disk location where the Flash Recovery Area will be stored. The Flash Recovery Area can be stored on a regular file system or can be an ASM group. As the files in the FRA are members of the redundancy set ( backups, archived redo logs and flashback logs), they should be stored in a separate physical location from the database operating components (data files, online redo).&lt;br /&gt;&lt;br /&gt;Enable the Flash Recovery Area&lt;br /&gt;&lt;br /&gt;To enable the Flash Recovery Area, either restart the database with the related parameters set, or issue the following statements:&lt;br /&gt;&lt;br /&gt;ALTER SYSTEM SET db_recovery_file_dest_size = ‘1G’ SCOPE=BOTH SID=’*’;&lt;br /&gt;&lt;br /&gt;ALTER SYSTEM SET db_recovery_file_dest=’/u06/bkup/flash_recovery_area’;&lt;br /&gt;&lt;br /&gt;ALTER SYSTEM SET db_flashback_retention_target=1440;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7113174832293329652-299599522109819470?l=jc-dba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jc-dba.blogspot.com/feeds/299599522109819470/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7113174832293329652&amp;postID=299599522109819470&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7113174832293329652/posts/default/299599522109819470'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7113174832293329652/posts/default/299599522109819470'/><link rel='alternate' type='text/html' href='http://jc-dba.blogspot.com/2008/10/flash-recovery-area.html' title='Flash recovery Area'/><author><name>Charlie</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/-EpSdO9niIKk/TXwg_aFo5pI/AAAAAAAAAZY/VEKGTs5Fsdg/s220/Unknown'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7113174832293329652.post-5779911248391902986</id><published>2008-09-23T13:36:00.000-07:00</published><updated>2009-11-13T08:31:01.440-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Import'/><category scheme='http://www.blogger.com/atom/ns#' term='export Data Load'/><category scheme='http://www.blogger.com/atom/ns#' term='Data Pump'/><title type='text'>Data Pump</title><content type='html'>&lt;script type="text/javascript"&gt;&lt;!--&lt;br /&gt;google_ad_client = "pub-2549707577631251";&lt;br /&gt;/* JC-1 300x250, created 11/13/09 */&lt;br /&gt;google_ad_slot = "7463945783";&lt;br /&gt;google_ad_width = 300;&lt;br /&gt;google_ad_height = 250;&lt;br /&gt;//--&gt;&lt;br /&gt;&lt;/script&gt;&lt;br /&gt;&lt;script type="text/javascript"&lt;br /&gt;src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;&lt;br /&gt;&lt;/script&gt;Some day-to-day DBA tips:&lt;br /&gt;DATA LOAD &amp; IMPORT&lt;br /&gt;Well I recommend starting using Data Pump and using import, exporting utilities just for backward compatibilities, or for structure usages only (create user, grants, etc..).&lt;br /&gt;Now I answer another question.&lt;br /&gt;Question: In the case you imported an existing schemas to a new schemas in the same database or another database instance, if these tables and indexes are created in the wrong tablespace, what to do??&lt;br /&gt;Answer: For indexes it is very easy, you should not even bother modifying the “create script”, just create it where ever it is, then move them to the right location using &lt;br /&gt;Alter index index_name rebuild new_tablespace_name&lt;br /&gt;For tables, &lt;br /&gt;If the original tablespace does not exit, the user have quota on a specific tablespace let’s call it APP_DATA, the tables will be created in user’s default tablespace APP_DATA, BUT If the original tablespace exit in the database (in this case OLD_DATA) then the tables will be imported to old_data, so in this case it will be need to modify the “creation script”  and then pre-create all the tables and then move, import or load the data.&lt;br /&gt;&lt;br /&gt;Question : Regarding the imp utilities and data pump utilities for Oracle 10g &amp; 11g.&lt;br /&gt;In some case the import is very slow and hang, this might happen if the tables are very large, I usually recommend the use of data pump rather than import, export.&lt;br /&gt;Also have the adequate memory, increae the PGA if not set correctly, go to my memory setting section in this BLOG for memory tuning.&lt;br /&gt;Also have the tablespace files for target in auto extend mode, locally managed.&lt;br /&gt;Also use parallel exuction parameter (parfile), set status =10 (10- second ) to se the progress.&lt;br /&gt;Also alter the table you are going to import to.&lt;br /&gt;Alter table table_name parallel degree 4 ( 4 or any other number related to number of cpu’s).&lt;br /&gt;Make sure you have granted the read and write.&lt;br /&gt;SQL&gt; grant read, write on directory export_dir to expuser,  jaffray, userx, userx;&lt;br /&gt;Also you must have EXP_FULL_DATABASE role.&lt;br /&gt;If you get the utl.file error some thing like this:&lt;br /&gt;ORA-39002: invalid operation&lt;br /&gt;ORA-39070: Unable to open the log file.&lt;br /&gt;ORA-29283: invalid file operation&lt;br /&gt;ORA-06512: at "SYS.UTL_FILE", line 475&lt;br /&gt;ORA-29283: invalid file operation&lt;br /&gt;&lt;br /&gt;The export_dir  has or might have issues, it is not writing to the right place,&lt;br /&gt;Check it out by:&lt;br /&gt;select directory_name, directory_path from dba_directories;&lt;br /&gt;Drop directory export_dir;&lt;br /&gt;Create directory export_dir  as ‘/u01/app/oracle/export’;&lt;br /&gt;Grant read, write to export_dir &lt;br /&gt;&lt;br /&gt;To be continued……&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7113174832293329652-5779911248391902986?l=jc-dba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jc-dba.blogspot.com/feeds/5779911248391902986/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7113174832293329652&amp;postID=5779911248391902986&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7113174832293329652/posts/default/5779911248391902986'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7113174832293329652/posts/default/5779911248391902986'/><link rel='alternate' type='text/html' href='http://jc-dba.blogspot.com/2008/09/data-pump.html' title='Data Pump'/><author><name>Charlie</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/-EpSdO9niIKk/TXwg_aFo5pI/AAAAAAAAAZY/VEKGTs5Fsdg/s220/Unknown'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7113174832293329652.post-8432230711570934321</id><published>2008-09-19T08:01:00.000-07:00</published><updated>2011-03-14T09:08:17.004-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Best Business practices'/><title type='text'>Ethic &amp; Business</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/-_PGS3xavHFo/TX49admJK2I/AAAAAAAAAaU/A1Wrc150xsI/s1600/Unknown"&gt;&lt;img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;width: 139px; height: 140px;" src="http://3.bp.blogspot.com/-_PGS3xavHFo/TX49admJK2I/AAAAAAAAAaU/A1Wrc150xsI/s200/Unknown" border="0" alt="" id="BLOGGER_PHOTO_ID_5583968112816499554" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_4PpDZ15RLhs/SNPQKYpNCmI/AAAAAAAAAH0/9G4TNIm4tF8/s1600-h/Photo+3.jpg"&gt;&lt;/a&gt;&lt;br /&gt;The right Oracle project management takes the guesswork out of your system!&lt;br /&gt;It is not enough to have some good Database administrators or system admin in one place; then many developers or thousand of users in another place, then some middle manager in exactly the middle, that is just called an average project with not so average problems; but very serious issues.&lt;br /&gt;In my past experience for about 28 years in IT, I have worked as consultant for at least 30 large and medium size businesses all over the world, in private as well as in public sector, Very often I came to realize that all the high- end solutions, best practices, Use of right technology it might be just another sales pitch by somebody or a group of coordinated people in some managerial position or technical position which are just fighting for the job and not for overall interest of the organization.&lt;br /&gt;So the dilemma now for a real professional is not only to do his job the best way possible, but also how to reconcile that with internal politics and all the non-technical constraints, all without getting in middle of the mess or becoming a target.&lt;br /&gt;That’s not always happening, because people might just decide to go for the easy way out, They do not implement the best solution, every body is happy, but that is not in long term interest of any business or organization, so ethic and professionalism should be always part of every body job, we do not want to copy wall street and all it’s failure and self-indulgence, IT professional are not in this only for the money.&lt;br /&gt;&lt;br /&gt;The expertise is seeing the big pictures, the knowing of all side of Database solutions, the correct (business process, the data model, data, OS/Hardware) in respect to cost effectiveness and implementation ease.&lt;br /&gt;The most complicated and advanced technologies are not always the best solution for the  customer, what good it can make if they could not maintain or use it correctly.&lt;br /&gt;Taking good care of customers is simply good business model; it creates   long-term fruitful relationship.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7113174832293329652-8432230711570934321?l=jc-dba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jc-dba.blogspot.com/feeds/8432230711570934321/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7113174832293329652&amp;postID=8432230711570934321&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7113174832293329652/posts/default/8432230711570934321'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7113174832293329652/posts/default/8432230711570934321'/><link rel='alternate' type='text/html' href='http://jc-dba.blogspot.com/2008/09/ethic-business.html' title='Ethic &amp; Business'/><author><name>Charlie</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/-EpSdO9niIKk/TXwg_aFo5pI/AAAAAAAAAZY/VEKGTs5Fsdg/s220/Unknown'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-_PGS3xavHFo/TX49admJK2I/AAAAAAAAAaU/A1Wrc150xsI/s72-c/Unknown' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7113174832293329652.post-3020133047496920963</id><published>2008-07-09T13:35:00.000-07:00</published><updated>2008-07-23T08:40:06.299-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Memory Performance tuning- PGA - SGA - memo'/><title type='text'>Memory  Management Oracle 11G - Overview</title><content type='html'>This is a quick overview, for situation when there is no time left reading document, it just need to be fixed then reviewed later on.&lt;br /&gt;Two-memory structure A+B&lt;br /&gt;&lt;br /&gt;A include:&lt;br /&gt;1-DB_CACHE_SEIZE   important, sample value 1Giga&lt;br /&gt;2-JAVA_POOL_SEIZE  32 M&lt;br /&gt;3-LARGE_POOL_SEIZE  16M &lt;br /&gt;4-SHARED_POOL_SEIZE important, 2Giga&lt;br /&gt;&lt;br /&gt;SGA_TARGET = 1+2+3+4 (So any of these 1,2,... if increased , that amount should be added to SGA_TARGET &lt;br /&gt;&lt;br /&gt;B include&lt;br /&gt;PGA_AGGREGATE_TARGET very important, 10Giga&lt;br /&gt;Total memory is called memory target&lt;br /&gt;&lt;br /&gt;MEMORY_TARGET= A + B&lt;br /&gt;&lt;br /&gt;Also Oracle 11g provide automatic memory management and through enterprise manager memory adviser is good tool to monitor memory.&lt;br /&gt;&lt;br /&gt;I will append to this article, this is not complete...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7113174832293329652-3020133047496920963?l=jc-dba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jc-dba.blogspot.com/feeds/3020133047496920963/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7113174832293329652&amp;postID=3020133047496920963&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7113174832293329652/posts/default/3020133047496920963'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7113174832293329652/posts/default/3020133047496920963'/><link rel='alternate' type='text/html' href='http://jc-dba.blogspot.com/2008/07/memory-management-oracle-11g-overview.html' title='Memory  Management Oracle 11G - Overview'/><author><name>Charlie</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/-EpSdO9niIKk/TXwg_aFo5pI/AAAAAAAAAZY/VEKGTs5Fsdg/s220/Unknown'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7113174832293329652.post-6178946749543327895</id><published>2008-07-08T09:04:00.000-07:00</published><updated>2008-07-23T08:39:26.463-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Compress Oracle export in one shot'/><title type='text'>Export and Pipe</title><content type='html'>Export and Pipe (To compress at the same Time!)&lt;br /&gt;Step 1,2,3,4&lt;br /&gt;1- is creating the usual parfile with filename=file.exp inside parfile&lt;br /&gt;2- is creating the pipe&lt;br /&gt;3- is compressing&lt;br /&gt;4- is exporting&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;1- Create parfile parf ( with what you want to export parameters)&lt;br /&gt;2- mknod file.exp p&lt;br /&gt;3- gzip  &amp;lt;file.exp&amp;gt; fullfile.exp.gz &amp;amp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;4- exp parfile=parf&lt;br /&gt;&lt;br /&gt;file.exp is your export file name ( as scott.dmp, tab.exp, etc..)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7113174832293329652-6178946749543327895?l=jc-dba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jc-dba.blogspot.com/feeds/6178946749543327895/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7113174832293329652&amp;postID=6178946749543327895&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7113174832293329652/posts/default/6178946749543327895'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7113174832293329652/posts/default/6178946749543327895'/><link rel='alternate' type='text/html' href='http://jc-dba.blogspot.com/2008/07/export-and-pipe.html' title='Export and Pipe'/><author><name>Charlie</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/-EpSdO9niIKk/TXwg_aFo5pI/AAAAAAAAAZY/VEKGTs5Fsdg/s220/Unknown'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7113174832293329652.post-4278588169065991455</id><published>2008-07-08T08:36:00.000-07:00</published><updated>2011-03-14T09:16:57.851-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle OEM - Agent'/><category scheme='http://www.blogger.com/atom/ns#' term='Enterprise Manager'/><title type='text'>Cloning of Agent</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/-PQZKf6uH2qU/TX4_a8OQh6I/AAAAAAAAAas/JrDiKkW_Fho/s1600/Unknown-1"&gt;&lt;img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;width: 200px; height: 200px;" src="http://4.bp.blogspot.com/-PQZKf6uH2qU/TX4_a8OQh6I/AAAAAAAAAas/JrDiKkW_Fho/s200/Unknown-1" border="0" alt="" id="BLOGGER_PHOTO_ID_5583970320061073314" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_4PpDZ15RLhs/SIdPgdy8TII/AAAAAAAAAHk/RysxQTjEZCI/s1600-h/My+Pictures0001_2.jpg"&gt;&lt;img style="margin: 0pt 0pt 10px 10px; float: right; cursor: pointer;" src="http://3.bp.blogspot.com/_4PpDZ15RLhs/SIdPgdy8TII/AAAAAAAAAHk/RysxQTjEZCI/s200/My+Pictures0001_2.jpg" alt="" id="BLOGGER_PHOTO_ID_5226233311759453314" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This is an example on how to clone agent, Install it on all other nodes that you need to manage.&lt;br /&gt;******************************************&lt;br /&gt;&lt;br /&gt;tar -cvf agent10g_bin.tar agent10g&lt;br /&gt;&lt;br /&gt;scp agent10g_bin.tar.gz /Dest-Server/u01/oracle&lt;br /&gt;&lt;br /&gt;cd /u01/oracle                                                                                                                                                                                 gunzip agent10g_bin.tar.gz&lt;br /&gt;&lt;br /&gt;tar -xvf agent10g_bin.tar&lt;br /&gt;&lt;br /&gt;cd /u01/oracle/agent10g/oui/bin                                                    ./runInstaller -clone -forceClone ORACLE_HOME=/u01/oracle/agent10g ORACLE_HOME_NAME=agent10g -noconfig -silent&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;/u01/oracle/agent10g/root.sh&lt;br /&gt;&lt;br /&gt;vi $AGENT_HOME/sysman/config/emd.properties  ---&gt;as described in previous post                                 &lt;br /&gt;/u01/oracle/agent10g/bin/agentca -f&lt;br /&gt;&lt;br /&gt;/u01/oracle/agent10g/bin/emctl secure agent&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7113174832293329652-4278588169065991455?l=jc-dba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jc-dba.blogspot.com/feeds/4278588169065991455/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7113174832293329652&amp;postID=4278588169065991455&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7113174832293329652/posts/default/4278588169065991455'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7113174832293329652/posts/default/4278588169065991455'/><link rel='alternate' type='text/html' href='http://jc-dba.blogspot.com/2008/07/changing-port-for-em-agent.html' title='Cloning of Agent'/><author><name>Charlie</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/-EpSdO9niIKk/TXwg_aFo5pI/AAAAAAAAAZY/VEKGTs5Fsdg/s220/Unknown'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-PQZKf6uH2qU/TX4_a8OQh6I/AAAAAAAAAas/JrDiKkW_Fho/s72-c/Unknown-1' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7113174832293329652.post-8529299007941505437</id><published>2008-07-04T09:39:00.000-07:00</published><updated>2008-12-12T00:08:34.231-08:00</updated><title type='text'>Changing Ports for Em agent..</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_4PpDZ15RLhs/SIdPJFm43-I/AAAAAAAAAHc/7BJLFw-2r9g/s1600-h/jay-jc-small.jpg"&gt;&lt;img style="margin: 0pt 0pt 10px 10px; float: right; cursor: pointer;" src="http://2.bp.blogspot.com/_4PpDZ15RLhs/SIdPJFm43-I/AAAAAAAAAHc/7BJLFw-2r9g/s200/jay-jc-small.jpg" alt="" id="BLOGGER_PHOTO_ID_5226232910129455074" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;There may be times when we have to change the port for EM agents.&lt;br /&gt;Use the following to do so.&lt;br /&gt;Stop the Management Agent.&lt;br /&gt;&lt;br /&gt;Locate the emd.properties file in the Agent home directory:&lt;br /&gt;AGENT_HOME/sysman/config/emd.properties&lt;br /&gt;Use a text editor to open the file and locate the EMD_URL property.&lt;br /&gt;For example:&lt;br /&gt;EMD_URL=http://managed_host1.acme.com:1813/emd/main&lt;br /&gt;Modify the port number in the EMD_URL property so the Agent uses a new unused port on the managed host.&lt;br /&gt;For example:&lt;br /&gt;EMD_URL=http://managed_host1.acme.com:1913/emd/main&lt;br /&gt;Start the Management Agent.&lt;br /&gt;&lt;br /&gt;You can verify that with checking the status of the agent.&lt;br /&gt;emctl status agent&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7113174832293329652-8529299007941505437?l=jc-dba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jc-dba.blogspot.com/feeds/8529299007941505437/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7113174832293329652&amp;postID=8529299007941505437&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7113174832293329652/posts/default/8529299007941505437'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7113174832293329652/posts/default/8529299007941505437'/><link rel='alternate' type='text/html' href='http://jc-dba.blogspot.com/2008/07/changing-ports-for-em-agent.html' title='Changing Ports for Em agent..'/><author><name>Javed</name><uri>http://www.blogger.com/profile/07378284923797484411</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><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_4PpDZ15RLhs/SIdPJFm43-I/AAAAAAAAAHc/7BJLFw-2r9g/s72-c/jay-jc-small.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7113174832293329652.post-2800202415886130695</id><published>2008-06-26T11:08:00.000-07:00</published><updated>2009-11-13T08:31:01.442-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Quick Catalog Creation - Oracle - RMAN'/><title type='text'>RMAN Catalog - Recovery manager</title><content type='html'>&lt;script type="text/javascript"&gt;&lt;!--&lt;br /&gt;google_ad_client = "pub-2549707577631251";&lt;br /&gt;/* JC-1 300x250, created 11/13/09 */&lt;br /&gt;google_ad_slot = "7463945783";&lt;br /&gt;google_ad_width = 300;&lt;br /&gt;google_ad_height = 250;&lt;br /&gt;//--&gt;&lt;br /&gt;&lt;/script&gt;&lt;br /&gt;&lt;script type="text/javascript"&lt;br /&gt;src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;&lt;br /&gt;&lt;/script&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_4PpDZ15RLhs/SIdOwPIOiKI/AAAAAAAAAHU/Q_I9p8YThOw/s1600-h/My+Pictures0019.jpg"&gt;&lt;img style="margin: 0pt 0pt 10px 10px; float: right; cursor: pointer;" src="http://4.bp.blogspot.com/_4PpDZ15RLhs/SIdOwPIOiKI/AAAAAAAAAHU/Q_I9p8YThOw/s200/My+Pictures0019.jpg" alt="" id="BLOGGER_PHOTO_ID_5226232483188476066" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Quick RMAN Catalog Setup....&lt;br /&gt;Enjoy.....&lt;br /&gt;&lt;br /&gt;SQL&gt; create tablespace rman_tbs&lt;br /&gt; datafile '/u01/test/rman_01.dbf' size 200M;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Tablespace created.&lt;br /&gt;&lt;br /&gt;SQL&gt; create user rman identified by pass123&lt;br /&gt; temporary tablespace temp&lt;br /&gt; default tablespace rman_tbs&lt;br /&gt; quota unlimited on rman_tbs;&lt;br /&gt;&lt;br /&gt;User created.&lt;br /&gt;&lt;br /&gt;SQL&gt; grant recovery_catalog_owner,connect,resource to rman;&lt;br /&gt;&lt;br /&gt;Grant succeeded.&lt;br /&gt;&lt;br /&gt;SQL&gt; EXIT&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;$ rman catalog rman@test&lt;br /&gt;&lt;br /&gt;Recovery Manager: Release 10.2.0.1.0 - Production on Thu Apr 12 11:21:00 2007&lt;br /&gt;&lt;br /&gt;Copyright (c) 1982, 2005, Oracle.  All rights reserved.&lt;br /&gt;&lt;br /&gt;recovery catalog database Password:&lt;br /&gt;connected to recovery catalog database&lt;br /&gt;&lt;br /&gt;RMAN&gt; create catalog;&lt;br /&gt;&lt;br /&gt;recovery catalog created&lt;br /&gt;&lt;br /&gt;exit&lt;br /&gt;$&lt;br /&gt;&lt;br /&gt;$ rman target / catalog rman@test&lt;br /&gt;&lt;br /&gt;Recovery Manager: Release 10.2.0.1.0 - Production on Thu Apr 12 11:29:33 2007&lt;br /&gt;&lt;br /&gt;Copyright (c) 1982, 2005, Oracle.  All rights reserved.&lt;br /&gt;&lt;br /&gt;connected to target database: TEST (DBID=3068100200)&lt;br /&gt;recovery catalog database Password:&lt;br /&gt;connected to recovery catalog database&lt;br /&gt;&lt;br /&gt;RMAN&gt; register database;&lt;br /&gt;&lt;br /&gt;database registered in recovery catalog&lt;br /&gt;starting full resync of recovery catalog&lt;br /&gt;full resync complete&lt;br /&gt;&lt;br /&gt;RMAN&gt; show all;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;starting full resync of recovery catalog&lt;br /&gt;full resync complete&lt;br /&gt;RMAN configuration parameters are:&lt;br /&gt;CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 14 DAYS;&lt;br /&gt;CONFIGURE BACKUP OPTIMIZATION ON;&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 '/u07/rmanbk/test/%F';&lt;br /&gt;CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE SBT_TAPE TO '%F'; # default&lt;br /&gt;CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default&lt;br /&gt;CONFIGURE DEVICE TYPE SBT_TAPE 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 DATAFILE BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default&lt;br /&gt;CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default&lt;br /&gt;CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default&lt;br /&gt;CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT   '/u07/rmanbk/test/%U' MAXPIECESIZE 100 G;&lt;br /&gt;CONFIGURE CHANNEL DEVICE TYPE 'SBT_TAPE' MAXPIECESIZE 100 G;&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 '/app/oracle/product/10gR2/dbs/snapcf_test.f'; # default&lt;br /&gt;&lt;br /&gt;RMAN&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7113174832293329652-2800202415886130695?l=jc-dba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jc-dba.blogspot.com/feeds/2800202415886130695/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7113174832293329652&amp;postID=2800202415886130695&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7113174832293329652/posts/default/2800202415886130695'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7113174832293329652/posts/default/2800202415886130695'/><link rel='alternate' type='text/html' href='http://jc-dba.blogspot.com/2008/06/rman-catalog-recovery-manager.html' title='RMAN Catalog - Recovery manager'/><author><name>Charlie</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/-EpSdO9niIKk/TXwg_aFo5pI/AAAAAAAAAZY/VEKGTs5Fsdg/s220/Unknown'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_4PpDZ15RLhs/SIdOwPIOiKI/AAAAAAAAAHU/Q_I9p8YThOw/s72-c/My+Pictures0019.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7113174832293329652.post-5130762063849871457</id><published>2008-06-24T12:36:00.000-07:00</published><updated>2008-12-12T00:08:34.603-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Clone DB for Data Guard with RMAN'/><title type='text'>RMAN Duplicate Database</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_4PpDZ15RLhs/SIdN124bE0I/AAAAAAAAAHE/9_-7L0WcPB8/s1600-h/My+Pictures0001_2.jpg"&gt;&lt;img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;" src="http://4.bp.blogspot.com/_4PpDZ15RLhs/SIdN124bE0I/AAAAAAAAAHE/9_-7L0WcPB8/s200/My+Pictures0001_2.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5226231480247325506" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;RMAN duplicate standby &lt;br /&gt;I think this is the good one, I will check into it to see if I have a better one, so for now enjoy, it might be of great help.&lt;br /&gt;&lt;br /&gt;The correct backup of primary database have been performed using&lt;br /&gt;&lt;br /&gt;RMAN&gt; configure channel device type disk format '/u03/rman/bkup/rmanbk_%d%s%t';&lt;br /&gt;&lt;br /&gt;new RMAN configuration parameters:&lt;br /&gt;&lt;br /&gt;CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT   '/u03/rman/bkup/rmanbk_%d%s%t';&lt;br /&gt;&lt;br /&gt;new RMAN configuration parameters are successfully stored&lt;br /&gt;&lt;br /&gt;starting full resync of recovery catalog&lt;br /&gt;&lt;br /&gt;full resync complete &lt;br /&gt;&lt;br /&gt;RMAN&gt; configure device type disk parallelism 2; &lt;br /&gt;&lt;br /&gt;new RMAN configuration parameters:&lt;br /&gt;&lt;br /&gt;CONFIGURE DEVICE TYPE DISK PARALLELISM 2 BACKUP TYPE TO BACKUPSET;&lt;br /&gt;&lt;br /&gt;new RMAN configuration parameters are successfully stored&lt;br /&gt;&lt;br /&gt;starting full resync of recovery catalog&lt;br /&gt;&lt;br /&gt;full resync complete &lt;br /&gt;&lt;br /&gt;RMAN&gt; backup database include current controlfile for standby archivelog all; &lt;br /&gt; &lt;br /&gt;&lt;br /&gt;SQL&gt; startup nomount&lt;br /&gt;&lt;br /&gt;ORACLE instance started. &lt;br /&gt;&lt;br /&gt;Total System Global Area 1.5032E+10 bytes&lt;br /&gt;&lt;br /&gt;Fixed Size                  2203608 bytes&lt;br /&gt;&lt;br /&gt;Variable Size            2006736936 bytes&lt;br /&gt;&lt;br /&gt;Database Buffers         1.3019E+10 bytes&lt;br /&gt;&lt;br /&gt;Redo Buffers                4325376 bytes&lt;br /&gt;&lt;br /&gt;SQL&gt; exit&lt;br /&gt;&lt;br /&gt;Disconnected from Oracle Database 10g Enterprise Edition &lt;br /&gt;RMAN duplicate standby &lt;br /&gt;&lt;br /&gt;The correct backup of primary database have been performed using&lt;br /&gt;&lt;br /&gt;RMAN&gt; configure channel device type disk format '/u03/rman/bkup/rmanbk_%d%s%t';&lt;br /&gt;&lt;br /&gt;new RMAN configuration parameters:&lt;br /&gt;&lt;br /&gt;CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT   '/u03/rman/bkup/rmanbk_%d%s%t';&lt;br /&gt;&lt;br /&gt;new RMAN configuration parameters are successfully stored&lt;br /&gt;&lt;br /&gt;starting full resync of recovery catalog&lt;br /&gt;&lt;br /&gt;full resync complete &lt;br /&gt;&lt;br /&gt;RMAN&gt; configure device type disk parallelism 2; &lt;br /&gt;&lt;br /&gt;new RMAN configuration parameters:&lt;br /&gt;&lt;br /&gt;CONFIGURE DEVICE TYPE DISK PARALLELISM 2 BACKUP TYPE TO BACKUPSET;&lt;br /&gt;&lt;br /&gt;new RMAN configuration parameters are successfully stored&lt;br /&gt;&lt;br /&gt;starting full resync of recovery catalog&lt;br /&gt;&lt;br /&gt;full resync complete &lt;br /&gt;&lt;br /&gt;RMAN&gt; backup database include current controlfile for standby archivelog all; &lt;br /&gt; &lt;br /&gt;&lt;br /&gt;SQL&gt; startup nomount&lt;br /&gt;&lt;br /&gt;ORACLE instance started. &lt;br /&gt;&lt;br /&gt;Total System Global Area 1.5032E+10 bytes&lt;br /&gt;&lt;br /&gt;Fixed Size                  2203608 bytes&lt;br /&gt;&lt;br /&gt;Variable Size            2006736936 bytes&lt;br /&gt;&lt;br /&gt;Database Buffers         1.3019E+10 bytes&lt;br /&gt;&lt;br /&gt;Redo Buffers                4325376 bytes&lt;br /&gt;&lt;br /&gt;SQL&gt; exit&lt;br /&gt;&lt;br /&gt;Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production&lt;br /&gt;&lt;br /&gt;With the Partitioning, OLAP and Data Mining options&lt;br /&gt;&lt;br /&gt;[oracle@testbox /u03/rman/bkup]$ rman auxiliary / target sys@test1 &lt;br /&gt;&lt;br /&gt;Recovery Manager: Release 10.2.0.3.0 - Production on Tue Nov 20 11:52:29 2007 &lt;br /&gt;&lt;br /&gt;Copyright (c) 1982, 2005, Oracle.  All rights reserved. &lt;br /&gt;&lt;br /&gt;target database Password:&lt;br /&gt;&lt;br /&gt;connected to target database: TEST1 (DBID=4550100)&lt;br /&gt;&lt;br /&gt;connected to auxiliary database: TEST1 (not mounted) &lt;br /&gt;&lt;br /&gt;RMAN&gt; duplicate target database for standby nofilenamecheck dorecover; &lt;br /&gt;&lt;br /&gt;Starting Duplicate Db at 20-NOV-07&lt;br /&gt;&lt;br /&gt;using target database control file instead of recovery catalog&lt;br /&gt;&lt;br /&gt;allocated channel: ORA_AUX_DISK_1&lt;br /&gt;&lt;br /&gt;channel ORA_AUX_DISK_1: sid=169 devtype=DISK&lt;br /&gt;&lt;br /&gt;allocated channel: ORA_AUX_DISK_2&lt;br /&gt;&lt;br /&gt;channel ORA_AUX_DISK_2: sid=45 devtype=DISK &lt;br /&gt;&lt;br /&gt;contents of Memory Script:&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;   set until scn  1232983;&lt;br /&gt;&lt;br /&gt;   restore clone standby controlfile;&lt;br /&gt;&lt;br /&gt;   sql clone 'alter database mount standby database';&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;executing Memory Script &lt;br /&gt;&lt;br /&gt;executing command: SET until clause &lt;br /&gt;&lt;br /&gt;Starting restore at 20-NOV-07&lt;br /&gt;&lt;br /&gt;using channel ORA_AUX_DISK_1&lt;br /&gt;&lt;br /&gt;using channel ORA_AUX_DISK_2 &lt;br /&gt;&lt;br /&gt;channel ORA_AUX_DISK_1: restoring control file&lt;br /&gt;&lt;br /&gt;ORA-19600: input file is control file  (/u01/standby.ctl)&lt;br /&gt;ORA-19601: output file is control file  (/u01/oradata/test2/control01.ctl)&lt;br /&gt;failover to previous backup &lt;br /&gt;&lt;br /&gt;channel ORA_AUX_DISK_1: starting datafile backupset restore&lt;br /&gt;&lt;br /&gt;channel ORA_AUX_DISK_1: restoring control file&lt;br /&gt;&lt;br /&gt;channel ORA_AUX_DISK_1: reading from backup piece /u03/rman/bkup/rmanbk_TEST14638548937&lt;br /&gt;&lt;br /&gt;channel ORA_AUX_DISK_1: restored backup piece 1&lt;br /&gt;&lt;br /&gt;piece handle=/u03/rman/bkup/rmanbk_TEST14638548937 tag=TAG20071113Txxxx&lt;br /&gt;&lt;br /&gt;channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:01&lt;br /&gt;&lt;br /&gt;output filename=/u01/oradata/test2/control01.ctl&lt;br /&gt;&lt;br /&gt;output filename=/u02/oradata/test2/control02.ctl&lt;br /&gt;&lt;br /&gt;output filename=/u03/oradata/test2/control03.ctl&lt;br /&gt;&lt;br /&gt;Finished restore at 20-NOV-07 &lt;br /&gt;&lt;br /&gt;sql statement: alter database mount standby database&lt;br /&gt;&lt;br /&gt;released channel: ORA_AUX_DISK_1&lt;br /&gt;&lt;br /&gt;released channel: ORA_AUX_DISK_2 &lt;br /&gt;&lt;br /&gt;contents of Memory Script:&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;set until scn  1232983;&lt;br /&gt;&lt;br /&gt;   set newname for tempfile  1 to&lt;br /&gt;&lt;br /&gt;"/u01/oradata/test1/temp01.dbf";&lt;br /&gt;&lt;br /&gt;   switch clone tempfile all;&lt;br /&gt;&lt;br /&gt;   set newname for datafile  1 to&lt;br /&gt;&lt;br /&gt;"/u03/oradata/test1/system01.dbf";&lt;br /&gt;&lt;br /&gt;   set newname for datafile  2 to&lt;br /&gt;&lt;br /&gt;"/u04/oradata/test1/undotbs01.dbf";&lt;br /&gt;&lt;br /&gt;   set newname for datafile  3 to&lt;br /&gt;&lt;br /&gt;"/u03/oradata/test1/sysaux01.dbf";&lt;br /&gt;&lt;br /&gt;   set newname for datafile  4 to&lt;br /&gt;&lt;br /&gt;"/u01/oradata/test1/users01.dbf";&lt;br /&gt;&lt;br /&gt;   set newname for datafile  5 to&lt;br /&gt;&lt;br /&gt;"/u03/oradata/test1/rman_tbs.dbf";&lt;br /&gt;&lt;br /&gt;   restore&lt;br /&gt;&lt;br /&gt;   check readonly&lt;br /&gt;&lt;br /&gt;   clone database&lt;br /&gt;&lt;br /&gt;   ;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;executing Memory Script &lt;br /&gt;&lt;br /&gt;executing command: SET until clause &lt;br /&gt;&lt;br /&gt;executing command: SET NEWNAME &lt;br /&gt;&lt;br /&gt;renamed temporary file 1 to /u01/oradata/test1/temp01.dbf in control file &lt;br /&gt;&lt;br /&gt;executing command: SET NEWNAME &lt;br /&gt;&lt;br /&gt;executing command: SET NEWNAME &lt;br /&gt;&lt;br /&gt;executing command: SET NEWNAME &lt;br /&gt;&lt;br /&gt;executing command: SET NEWNAME&lt;br /&gt;&lt;br /&gt;executing command: SET NEWNAME &lt;br /&gt;&lt;br /&gt;Starting restore at 20-NOV-07&lt;br /&gt;&lt;br /&gt;allocated channel: ORA_AUX_DISK_1&lt;br /&gt;&lt;br /&gt;channel ORA_AUX_DISK_1: sid=45 devtype=DISK&lt;br /&gt;&lt;br /&gt;allocated channel: ORA_AUX_DISK_2&lt;br /&gt;&lt;br /&gt;channel ORA_AUX_DISK_2: sid=104 devtype=DISK &lt;br /&gt;&lt;br /&gt;skipping datafile 4; already restored to file /u01/oradata/test1/users01.dbf&lt;br /&gt;&lt;br /&gt;skipping datafile 5; already restored to file /u03/oradata/test1/rman_tbs.dbf&lt;br /&gt;&lt;br /&gt;skipping datafile 1; already restored to file /u03/oradata/test1/system01.dbf&lt;br /&gt;&lt;br /&gt;skipping datafile 2; already restored to file /u04/oradata/test1/undotbs01.dbf&lt;br /&gt;&lt;br /&gt;skipping datafile 3; already restored to file /u03/oradata/test1/sysaux01.dbf&lt;br /&gt;&lt;br /&gt;restore not done; all files readonly, offline, or already restored&lt;br /&gt;&lt;br /&gt;Finished restore at 20-NOV-07 &lt;br /&gt;&lt;br /&gt;contents of Memory Script:&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;   switch clone datafile all;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;executing Memory Script &lt;br /&gt;&lt;br /&gt;datafile 1 switched to datafile copy&lt;br /&gt;&lt;br /&gt;input datafile copy recid=1 stamp=639143579 filename=/u03/oradata/test1/system01.dbf&lt;br /&gt;&lt;br /&gt;datafile 2 switched to datafile copy&lt;br /&gt;&lt;br /&gt;input datafile copy recid=2 stamp=639143579 filename=/u04/oradata/test1/undotbs01.dbf&lt;br /&gt;&lt;br /&gt;datafile 3 switched to datafile copy&lt;br /&gt;&lt;br /&gt;input datafile copy recid=3 stamp=639143580 filename=/u03/oradata/test1/sysaux01.dbf&lt;br /&gt;&lt;br /&gt;datafile 4 switched to datafile copy&lt;br /&gt;&lt;br /&gt;input datafile copy recid=4 stamp=639143580 filename=/u01/oradata/test1/users01.dbf&lt;br /&gt;&lt;br /&gt;datafile 5 switched to datafile copy&lt;br /&gt;&lt;br /&gt;input datafile copy recid=5 stamp=639143580 filename=/u03/oradata/test1/rman_tbs.dbf &lt;br /&gt;&lt;br /&gt;contents of Memory Script:&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;set until scn  1232983;&lt;br /&gt;&lt;br /&gt;   recover&lt;br /&gt;&lt;br /&gt;   standby&lt;br /&gt;&lt;br /&gt;   clone database&lt;br /&gt;&lt;br /&gt;    delete archivelog&lt;br /&gt;&lt;br /&gt;   ;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;executing Memory Script &lt;br /&gt;&lt;br /&gt;executing command: SET until clause &lt;br /&gt;&lt;br /&gt;Starting recover at 20-NOV-07&lt;br /&gt;&lt;br /&gt;using channel ORA_AUX_DISK_1&lt;br /&gt;&lt;br /&gt;using channel ORA_AUX_DISK_2 &lt;br /&gt;&lt;br /&gt;starting media recovery &lt;br /&gt;&lt;br /&gt;archive log thread 1 sequence 36 is already on disk as file /u04/arch1/test1/1_36_637945588.arc&lt;br /&gt;&lt;br /&gt;archive log thread 1 sequence 37 is already on disk as file /u04/arch1/test1/1_37_637945588.arc&lt;br /&gt;&lt;br /&gt;archive log thread 1 sequence 38 is already on disk as file /u04/arch1/test1/1_38_637945588.arc&lt;br /&gt;&lt;br /&gt;archive log filename=/u04/arch1/test1/1_36_637945588.arc thread=1 sequence=36&lt;br /&gt;&lt;br /&gt;archive log filename=/u04/arch1/test1/1_37_637945588.arc thread=1 sequence=37&lt;br /&gt;&lt;br /&gt;archive log filename=/u04/arch1/test1/1_38_637945588.arc thread=1 sequence=38&lt;br /&gt;&lt;br /&gt;channel ORA_AUX_DISK_1: starting archive log restore to default destination&lt;br /&gt;&lt;br /&gt;channel ORA_AUX_DISK_1: restoring archive log&lt;br /&gt;&lt;br /&gt;archive log thread=1 sequence=39&lt;br /&gt;&lt;br /&gt;channel ORA_AUX_DISK_1: restoring archive log&lt;br /&gt;&lt;br /&gt;archive log thread=1 sequence=40&lt;br /&gt;&lt;br /&gt;channel ORA_AUX_DISK_1: restoring archive log&lt;br /&gt;&lt;br /&gt;archive log thread=1 sequence=41&lt;br /&gt;&lt;br /&gt;channel ORA_AUX_DISK_1: reading from backup piece /u03/rman/bkup/rmanbk_TEST111639142479&lt;br /&gt;&lt;br /&gt;channel ORA_AUX_DISK_1: restored backup piece 1&lt;br /&gt;&lt;br /&gt;piece handle=/u03/rman/bkup/rmanbk_TEST111639142479 tag=TAG20071120T113439&lt;br /&gt;&lt;br /&gt;channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:08&lt;br /&gt;&lt;br /&gt;archive log filename=/opt/app/oracle/product/10.2.0/dbs/arch1_39_637945588.arc thread=1 sequence=39&lt;br /&gt;&lt;br /&gt;channel clone_default: deleting archive log(s)&lt;br /&gt;&lt;br /&gt;archive log filename=/opt/app/oracle/product/10.2.0/dbs/arch1_39_637945588.arc recid=1 stamp=639143604&lt;br /&gt;&lt;br /&gt;archive log filename=/opt/app/oracle/product/10.2.0/dbs/arch1_40_637945588.arc thread=1 sequence=40&lt;br /&gt;&lt;br /&gt;channel clone_default: deleting archive log(s)&lt;br /&gt;&lt;br /&gt;archive log filename=/opt/app/oracle/product/10.2.0/dbs/arch1_40_637945588.arc recid=3 stamp=639143607&lt;br /&gt;&lt;br /&gt;archive log filename=/opt/app/oracle/product/10.2.0/dbs/arch1_41_637945588.arc thread=1 sequence=41&lt;br /&gt;&lt;br /&gt;channel clone_default: deleting archive log(s)&lt;br /&gt;&lt;br /&gt;archive log filename=/opt/app/oracle/product/10.2.0/dbs/arch1_41_637945588.arc recid=2 stamp=639143606&lt;br /&gt;&lt;br /&gt;media recovery complete, elapsed time: 00:00:04&lt;br /&gt;&lt;br /&gt;Finished recover at 20-NOV-07&lt;br /&gt;&lt;br /&gt;Finished Duplicate Db at 20-NOV-07 &lt;br /&gt;&lt;br /&gt;RMAN&gt;&lt;br /&gt;&lt;br /&gt;Release 10.2.0.3.0 - 64bit Production&lt;br /&gt;&lt;br /&gt;With the Partitioning, OLAP and Data Mining options&lt;br /&gt;&lt;br /&gt;[oracle@testbox /u03/rman/bkup]$ rman auxiliary / target sys@test1 &lt;br /&gt;&lt;br /&gt;Recovery Manager: Release 10.2.0.3.0 - Production on Tue Nov 20 11:52:29 2007 &lt;br /&gt;&lt;br /&gt;Copyright (c) 1982, 2005, Oracle.  All rights reserved. &lt;br /&gt;&lt;br /&gt;target database Password:&lt;br /&gt;&lt;br /&gt;connected to target database: TEST1 (DBID=4550100)&lt;br /&gt;&lt;br /&gt;connected to auxiliary database: TEST1 (not mounted) &lt;br /&gt;&lt;br /&gt;RMAN&gt; duplicate target database for standby nofilenamecheck dorecover; &lt;br /&gt;&lt;br /&gt;Starting Duplicate Db at 20-NOV-07&lt;br /&gt;&lt;br /&gt;using target database control file instead of recovery catalog&lt;br /&gt;&lt;br /&gt;allocated channel: ORA_AUX_DISK_1&lt;br /&gt;&lt;br /&gt;channel ORA_AUX_DISK_1: sid=169 devtype=DISK&lt;br /&gt;&lt;br /&gt;allocated channel: ORA_AUX_DISK_2&lt;br /&gt;&lt;br /&gt;channel ORA_AUX_DISK_2: sid=45 devtype=DISK &lt;br /&gt;&lt;br /&gt;contents of Memory Script:&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;   set until scn  1232983;&lt;br /&gt;&lt;br /&gt;   restore clone standby controlfile;&lt;br /&gt;&lt;br /&gt;   sql clone 'alter database mount standby database';&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;executing Memory Script &lt;br /&gt;&lt;br /&gt;executing command: SET until clause &lt;br /&gt;&lt;br /&gt;Starting restore at 20-NOV-07&lt;br /&gt;&lt;br /&gt;using channel ORA_AUX_DISK_1&lt;br /&gt;&lt;br /&gt;using channel ORA_AUX_DISK_2 &lt;br /&gt;&lt;br /&gt;channel ORA_AUX_DISK_1: restoring control file&lt;br /&gt;&lt;br /&gt;ORA-19600: input file is control file  (/u01/standby.ctl)&lt;br /&gt;ORA-19601: output file is control file  (/u01/oradata/test2/control01.ctl)&lt;br /&gt;failover to previous backup &lt;br /&gt;&lt;br /&gt;channel ORA_AUX_DISK_1: starting datafile backupset restore&lt;br /&gt;&lt;br /&gt;channel ORA_AUX_DISK_1: restoring control file&lt;br /&gt;&lt;br /&gt;channel ORA_AUX_DISK_1: reading from backup piece /u03/rman/bkup/rmanbk_TEST14638548937&lt;br /&gt;&lt;br /&gt;channel ORA_AUX_DISK_1: restored backup piece 1&lt;br /&gt;&lt;br /&gt;piece handle=/u03/rman/bkup/rmanbk_TEST14638548937 tag=TAG20071113xxxxx&lt;br /&gt;&lt;br /&gt;channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:01&lt;br /&gt;&lt;br /&gt;output filename=/u01/oradata/test2/control01.ctl&lt;br /&gt;&lt;br /&gt;output filename=/u02/oradata/test2/control02.ctl&lt;br /&gt;&lt;br /&gt;output filename=/u03/oradata/test2/control03.ctl&lt;br /&gt;&lt;br /&gt;Finished restore at 20-NOV-07 &lt;br /&gt;&lt;br /&gt;sql statement: alter database mount standby database&lt;br /&gt;&lt;br /&gt;released channel: ORA_AUX_DISK_1&lt;br /&gt;&lt;br /&gt;released channel: ORA_AUX_DISK_2 &lt;br /&gt;&lt;br /&gt;contents of Memory Script:&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;set until scn  1232983;&lt;br /&gt;&lt;br /&gt;   set newname for tempfile  1 to&lt;br /&gt;&lt;br /&gt;"/u01/oradata/test1/temp01.dbf";&lt;br /&gt;&lt;br /&gt;   switch clone tempfile all;&lt;br /&gt;&lt;br /&gt;   set newname for datafile  1 to&lt;br /&gt;&lt;br /&gt;"/u03/oradata/test1/system01.dbf";&lt;br /&gt;&lt;br /&gt;   set newname for datafile  2 to&lt;br /&gt;&lt;br /&gt;"/u04/oradata/test1/undotbs01.dbf";&lt;br /&gt;&lt;br /&gt;   set newname for datafile  3 to&lt;br /&gt;&lt;br /&gt;"/u03/oradata/test1/sysaux01.dbf";&lt;br /&gt;&lt;br /&gt;   set newname for datafile  4 to&lt;br /&gt;&lt;br /&gt;"/u01/oradata/test1/users01.dbf";&lt;br /&gt;&lt;br /&gt;   set newname for datafile  5 to&lt;br /&gt;&lt;br /&gt;"/u03/oradata/test1/rman_tbs.dbf";&lt;br /&gt;&lt;br /&gt;   restore&lt;br /&gt;&lt;br /&gt;   check readonly&lt;br /&gt;&lt;br /&gt;   clone database&lt;br /&gt;&lt;br /&gt;   ;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;executing Memory Script &lt;br /&gt;&lt;br /&gt;executing command: SET until clause &lt;br /&gt;&lt;br /&gt;executing command: SET NEWNAME &lt;br /&gt;&lt;br /&gt;renamed temporary file 1 to /u01/oradata/test1/temp01.dbf in control file &lt;br /&gt;&lt;br /&gt;executing command: SET NEWNAME &lt;br /&gt;&lt;br /&gt;executing command: SET NEWNAME &lt;br /&gt;&lt;br /&gt;executing command: SET NEWNAME &lt;br /&gt;&lt;br /&gt;executing command: SET NEWNAME&lt;br /&gt;&lt;br /&gt;executing command: SET NEWNAME &lt;br /&gt;&lt;br /&gt;Starting restore at 20-NOV-07&lt;br /&gt;&lt;br /&gt;allocated channel: ORA_AUX_DISK_1&lt;br /&gt;&lt;br /&gt;channel ORA_AUX_DISK_1: sid=45 devtype=DISK&lt;br /&gt;&lt;br /&gt;allocated channel: ORA_AUX_DISK_2&lt;br /&gt;&lt;br /&gt;channel ORA_AUX_DISK_2: sid=104 devtype=DISK &lt;br /&gt;&lt;br /&gt;skipping datafile 4; already restored to file /u01/oradata/test1/users01.dbf&lt;br /&gt;&lt;br /&gt;skipping datafile 5; already restored to file /u03/oradata/test1/rman_tbs.dbf&lt;br /&gt;&lt;br /&gt;skipping datafile 1; already restored to file /u03/oradata/test1/system01.dbf&lt;br /&gt;&lt;br /&gt;skipping datafile 2; already restored to file /u04/oradata/test1/undotbs01.dbf&lt;br /&gt;&lt;br /&gt;skipping datafile 3; already restored to file /u03/oradata/test1/sysaux01.dbf&lt;br /&gt;&lt;br /&gt;restore not done; all files readonly, offline, or already restored&lt;br /&gt;&lt;br /&gt;Finished restore at 20-NOV-07 &lt;br /&gt;&lt;br /&gt;contents of Memory Script:&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;   switch clone datafile all;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;executing Memory Script &lt;br /&gt;&lt;br /&gt;datafile 1 switched to datafile copy&lt;br /&gt;&lt;br /&gt;input datafile copy recid=1 stamp=639143579 filename=/u03/oradata/test1/system01.dbf&lt;br /&gt;&lt;br /&gt;datafile 2 switched to datafile copy&lt;br /&gt;&lt;br /&gt;input datafile copy recid=2 stamp=639143579 filename=/u04/oradata/test1/undotbs01.dbf&lt;br /&gt;&lt;br /&gt;datafile 3 switched to datafile copy&lt;br /&gt;&lt;br /&gt;input datafile copy recid=3 stamp=639143580 filename=/u03/oradata/test1/sysaux01.dbf&lt;br /&gt;&lt;br /&gt;datafile 4 switched to datafile copy&lt;br /&gt;&lt;br /&gt;input datafile copy recid=4 stamp=639143580 filename=/u01/oradata/test1/users01.dbf&lt;br /&gt;&lt;br /&gt;datafile 5 switched to datafile copy&lt;br /&gt;&lt;br /&gt;input datafile copy recid=5 stamp=639143580 filename=/u03/oradata/test1/rman_tbs.dbf &lt;br /&gt;&lt;br /&gt;contents of Memory Script:&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;set until scn  1232983;&lt;br /&gt;&lt;br /&gt;   recover&lt;br /&gt;&lt;br /&gt;   standby&lt;br /&gt;&lt;br /&gt;   clone database&lt;br /&gt;&lt;br /&gt;    delete archivelog&lt;br /&gt;&lt;br /&gt;   ;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;executing Memory Script &lt;br /&gt;&lt;br /&gt;executing command: SET until clause &lt;br /&gt;&lt;br /&gt;Starting recover at 20-NOV-07&lt;br /&gt;&lt;br /&gt;using channel ORA_AUX_DISK_1&lt;br /&gt;&lt;br /&gt;using channel ORA_AUX_DISK_2 &lt;br /&gt;&lt;br /&gt;starting media recovery &lt;br /&gt;&lt;br /&gt;archive log thread 1 sequence 36 is already on disk as file /u04/arch1/test1/1_36_637945588.arc&lt;br /&gt;&lt;br /&gt;archive log thread 1 sequence 37 is already on disk as file /u04/arch1/test1/1_37_637945588.arc&lt;br /&gt;&lt;br /&gt;archive log thread 1 sequence 38 is already on disk as file /u04/arch1/test1/1_38_637945588.arc&lt;br /&gt;&lt;br /&gt;archive log filename=/u04/arch1/test1/1_36_637945588.arc thread=1 sequence=36&lt;br /&gt;&lt;br /&gt;archive log filename=/u04/arch1/test1/1_37_637945588.arc thread=1 sequence=37&lt;br /&gt;&lt;br /&gt;archive log filename=/u04/arch1/test1/1_38_637945588.arc thread=1 sequence=38&lt;br /&gt;&lt;br /&gt;channel ORA_AUX_DISK_1: starting archive log restore to default destination&lt;br /&gt;&lt;br /&gt;channel ORA_AUX_DISK_1: restoring archive log&lt;br /&gt;&lt;br /&gt;archive log thread=1 sequence=39&lt;br /&gt;&lt;br /&gt;channel ORA_AUX_DISK_1: restoring archive log&lt;br /&gt;&lt;br /&gt;archive log thread=1 sequence=40&lt;br /&gt;&lt;br /&gt;channel ORA_AUX_DISK_1: restoring archive log&lt;br /&gt;&lt;br /&gt;archive log thread=1 sequence=41&lt;br /&gt;&lt;br /&gt;channel ORA_AUX_DISK_1: reading from backup piece /u03/rman/bkup/rmanbk_TEST111639142479&lt;br /&gt;&lt;br /&gt;channel ORA_AUX_DISK_1: restored backup piece 1&lt;br /&gt;&lt;br /&gt;piece handle=/u03/rman/bkup/rmanbk_TEST111639142479 tag=TAG20071120Txxxx&lt;br /&gt;&lt;br /&gt;channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:08&lt;br /&gt;&lt;br /&gt;archive log filename=/opt/app/oracle/product/10.2.0/dbs/arch1_39_637945588.arc thread=1 sequence=39&lt;br /&gt;&lt;br /&gt;channel clone_default: deleting archive log(s)&lt;br /&gt;&lt;br /&gt;archive log filename=/opt/app/oracle/product/10.2.0/dbs/arch1_39_637945588.arc recid=1 stamp=639143604&lt;br /&gt;&lt;br /&gt;archive log filename=/opt/app/oracle/product/10.2.0/dbs/arch1_40_637945588.arc thread=1 sequence=40&lt;br /&gt;&lt;br /&gt;channel clone_default: deleting archive log(s)&lt;br /&gt;&lt;br /&gt;archive log filename=/opt/app/oracle/product/10.2.0/dbs/arch1_40_637945588.arc recid=3 stamp=639143607&lt;br /&gt;&lt;br /&gt;archive log filename=/opt/app/oracle/product/10.2.0/dbs/arch1_41_637945588.arc thread=1 sequence=41&lt;br /&gt;&lt;br /&gt;channel clone_default: deleting archive log(s)&lt;br /&gt;&lt;br /&gt;archive log filename=/opt/app/oracle/product/10.2.0/dbs/arch1_41_637945588.arc recid=2 stamp=639143606&lt;br /&gt;&lt;br /&gt;media recovery complete, elapsed time: 00:00:04&lt;br /&gt;&lt;br /&gt;Finished recover at 20-NOV-07&lt;br /&gt;&lt;br /&gt;Finished Duplicate Db at 20-NOV-07 &lt;br /&gt;&lt;br /&gt;RMAN&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7113174832293329652-5130762063849871457?l=jc-dba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jc-dba.blogspot.com/feeds/5130762063849871457/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7113174832293329652&amp;postID=5130762063849871457&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7113174832293329652/posts/default/5130762063849871457'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7113174832293329652/posts/default/5130762063849871457'/><link rel='alternate' type='text/html' href='http://jc-dba.blogspot.com/2008/06/rman-duplicate-database.html' title='RMAN Duplicate Database'/><author><name>Charlie</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/-EpSdO9niIKk/TXwg_aFo5pI/AAAAAAAAAZY/VEKGTs5Fsdg/s220/Unknown'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_4PpDZ15RLhs/SIdN124bE0I/AAAAAAAAAHE/9_-7L0WcPB8/s72-c/My+Pictures0001_2.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7113174832293329652.post-3014972462866829980</id><published>2008-06-23T13:29:00.000-07:00</published><updated>2011-03-14T09:10:19.737-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle Data Guard Implementation'/><title type='text'>Data Guard Hints</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/-dvLweayPE4M/TX495iCuvjI/AAAAAAAAAac/87SQpG8Phzo/s1600/Brel-young"&gt;&lt;img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;width: 139px; height: 140px;" src="http://1.bp.blogspot.com/-dvLweayPE4M/TX495iCuvjI/AAAAAAAAAac/87SQpG8Phzo/s200/Brel-young" border="0" alt="" id="BLOGGER_PHOTO_ID_5583968646586089010" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;BUILD:&lt;br /&gt;Have a template ready for the database, check the /u01,/u02 , etc..&lt;br /&gt;Should have same exact Structure on both servers, pre-create all necessary directories including OACLE_ADMIN/sid/audump, bdump, cdump, and so on.&lt;br /&gt;Create the pfile for primary site (the sid =prod) DB_unique_name = prod_pri&lt;br /&gt;Create the pfile for secondary site (the sid=prod) , exact same sid , DB_unique_name = prod_SBY  (create spfile from pfile on both sites).&lt;br /&gt;Create password file with user sys identic on both site.&lt;br /&gt;Create exact same directories structure on the secondary site.&lt;br /&gt;Create database prod using dbca  on the secondary side.&lt;br /&gt;Shutdown the primary and Startup mount; alter db crate controlfile for standby as '/tmp/stndby.ctl'.&lt;br /&gt;Move the standby controlfile to secondary site /tmp.&lt;br /&gt;Alter database add standby redolog…3 groups.(on the primary, if not already there)&lt;br /&gt;Create rman account and catalog on primary (optional, rman can use controlfile too).&lt;br /&gt;Configure rman channel, disk location ( /u04/rman/bkup), etc…&lt;br /&gt;Do full RMAN backup including all logfiles+ controlfile for standby&lt;br /&gt;Scp all the RMAN files to the secondary site&lt;br /&gt;On the secondary site&lt;br /&gt;Connect to target (check the sbid and be careful to connect to right DB)&lt;br /&gt;Connect to auxiliary /&lt;br /&gt;Run a duplicate database command with standby option, it should be successful (other wise standby database will not work), should not get any tablespace or media recovery error.&lt;br /&gt;If issue with RMAN (manually copy all db files, control files, redo and archived ones to secondary)&lt;br /&gt;Modify network files tnsnames.ora  and listener.ora , reload listener on secondary&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;TEST:&lt;br /&gt;Test order:&lt;br /&gt;On the primary crate table and insert into it, wait few minutes&lt;br /&gt;Archive log list to see the log seq number&lt;br /&gt;&lt;br /&gt;1-     startup mount (not needed is already mounted)&lt;br /&gt;2-     alter database recover managed database disconnect from session; should not get any errors&lt;br /&gt;3-     archive log list, see the sequences , should be the same last seq number, if not wait few minutes&lt;br /&gt;4-     alter database recover managed database cancel; should not get any error.&lt;br /&gt;5-     Alter database open read only; should not get any error.&lt;br /&gt;6-     Query the table, should see same as on the other site.&lt;br /&gt;7-     Go back to: 2 (disconnect from session) if error go back to step 1 , then (disconnect from session).&lt;br /&gt;8-     On the seconday standby side always check for mrp , do pps mrp , you should see ora_mrp0_sid&lt;br /&gt;9-     If not able to alter database recover managed database disconnect from session then  shutdown, startup nomount, alter database mount; then do alter database recover managed database disconnect from session ;  this should work fine.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Switch over:&lt;br /&gt;P is current primary (is currently open for all operations)&lt;br /&gt;1-     from P , shutdown and startup (this is to disconnect all connections)&lt;br /&gt;2-     from S, alter database recover managed standby database cancel;&lt;br /&gt;3-     from P, alter system set log_archive_dest_state_2=defer;&lt;br /&gt;4-     from P, alter database commit to switchover to physical standby with session shutdown;&lt;br /&gt;a.       shutdown immediate&lt;br /&gt;b.      startup nomount&lt;br /&gt;c.       alter database mount (standby database);&lt;br /&gt;d.      check v$database and v$instance and archivelog list&lt;br /&gt;5-     go to standby site&lt;br /&gt;6-     recover managed standby database cancel;&lt;br /&gt;7-     alter database recover managed standby database cancel;&lt;br /&gt;8-     alter database commit to switchover to primary with session shutdown;&lt;br /&gt;9-     check the v$database and v$instance&lt;br /&gt;10-  Shutdown immediate&lt;br /&gt;11- startup&lt;br /&gt;12- alter system set log_archive_dest_state_2=enable;&lt;br /&gt;&lt;br /&gt;go back to P,&lt;br /&gt;alter database recover managed database disconnect from session ;&lt;br /&gt;this should work fine., this enable the mrp0-sid process on the now standby side server.&lt;br /&gt;goto TEST section and verify.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Caution : All materials are provided as research paper , we do not accept any reliability or responsibility in any case.&lt;br /&gt;Use it at your own risks.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7113174832293329652-3014972462866829980?l=jc-dba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jc-dba.blogspot.com/feeds/3014972462866829980/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7113174832293329652&amp;postID=3014972462866829980&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7113174832293329652/posts/default/3014972462866829980'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7113174832293329652/posts/default/3014972462866829980'/><link rel='alternate' type='text/html' href='http://jc-dba.blogspot.com/2008/06/data-guard-hints.html' title='Data Guard Hints'/><author><name>Charlie</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/-EpSdO9niIKk/TXwg_aFo5pI/AAAAAAAAAZY/VEKGTs5Fsdg/s220/Unknown'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-dvLweayPE4M/TX495iCuvjI/AAAAAAAAAac/87SQpG8Phzo/s72-c/Brel-young' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7113174832293329652.post-5809436833549724296</id><published>2008-06-22T13:05:00.000-07:00</published><updated>2011-03-14T09:15:20.235-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Useful Oracle Database Administration Quick Fixes'/><title type='text'>DBA Tips - Main Page</title><content type='html'>&lt;span class="Apple-style-span" style="font-size: 17px; color: rgb(102, 102, 102); "&gt;Jay and myself(JC.) We have more than 50 years of Hands on Oracle Database Administration.&lt;br /&gt;Disaster and recovery strategy, Performance Tuning, Data Guard, RAC and clustering, Oracle DBA 101, Best Practice database administration, and more....&lt;br /&gt;If you are in process of creating new DBA group for your organization with large scale database system, We might be able to help you , With not to do things......&lt;/span&gt;&lt;script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;&lt;/script&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7113174832293329652-5809436833549724296?l=jc-dba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7113174832293329652/posts/default/5809436833549724296'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7113174832293329652/posts/default/5809436833549724296'/><link rel='alternate' type='text/html' href='http://jc-dba.blogspot.com/2008/06/dba-tips-useful-oracle-database.html' title='DBA Tips - Main Page'/><author><name>Charlie</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/-EpSdO9niIKk/TXwg_aFo5pI/AAAAAAAAAZY/VEKGTs5Fsdg/s220/Unknown'/></author></entry></feed>
