<?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:blogger='http://schemas.google.com/blogger/2008' 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-3675227014817852905</id><updated>2024-09-15T11:18:15.268+05:30</updated><category term="ASM"/><category term="Logical Standby"/><category term="10g Features"/><category term="Export/Import"/><category term="Migration"/><category term="Oracle Tools"/><category term="RAC"/><category term="Replication"/><category term="Streams"/><title type='text'>Yet Another Oracle DBA Blog</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://mramkumar.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3675227014817852905/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://mramkumar.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>11</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3675227014817852905.post-8655801898469403008</id><published>2008-07-21T15:45:00.004+05:30</published><updated>2008-07-21T16:14:34.116+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="RAC"/><title type='text'>ORACLE 10g RAC INSTALLATION</title><content type='html'>I hope you would have seen lots and lots of RAC install documents now a days, This is one of the installation performed for one my US based client. This is a 10g R2 Base release Installation on Sun Fire v 490 box.&lt;br /&gt;&lt;br /&gt;Download link : &lt;br /&gt;http://rapidshare.com/files/131310423/RAC_INSTALL.pdf.html&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Below one is the other one installation which i have done for a HP-UX client. &lt;br /&gt;&lt;br /&gt;http://rapidshare.com/files/131316003/HPUXRAC.doc.html</content><link rel='replies' type='application/atom+xml' href='http://mramkumar.blogspot.com/feeds/8655801898469403008/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/3675227014817852905/8655801898469403008?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3675227014817852905/posts/default/8655801898469403008'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3675227014817852905/posts/default/8655801898469403008'/><link rel='alternate' type='text/html' href='http://mramkumar.blogspot.com/2008/07/rac-install.html' title='ORACLE 10g RAC INSTALLATION'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3675227014817852905.post-348136883229606</id><published>2008-07-11T22:34:00.003+05:30</published><updated>2008-07-13T14:07:27.997+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Logical Standby"/><title type='text'>Create Oracle 10g Logical Standby Database</title><content type='html'>1. Backup a spfile copy from Production, Change the DB unique name parameter as per the new logical db name and proceed with the &lt;br /&gt; db startup in no mount state in the logical standby . &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;2.&lt;br /&gt;connected to target database: PWPRD (DBID=505738321)&lt;br /&gt;connected to recovery catalog database&lt;br /&gt;connected to auxiliary database: PWPRD (not mounted)&lt;br /&gt;&lt;br /&gt;RMAN&gt; run {&lt;br /&gt;2&gt; resync catalog;&lt;br /&gt;3&gt; allocate auxiliary channel t1 type &#39;SBT_TAPE&#39; MAXOPENFILES 6 MAXPIECESIZE 8G&lt;br /&gt;4&gt; parms &#39;SBT_LIBRARY=/lib/libnwora.so,ENV=(NSR_SERVER=192.168.200.166,NSR_DATA_VOLUME_POOL=Database,NSR_GROUP=Oracle,NSR_DEBUG_&lt;br /&gt;5&gt; FILE=/tmp/debug.out)&#39;;&lt;br /&gt;6&gt; allocate  auxiliary channel t2 type &#39;SBT_TAPE&#39; MAXOPENFILES 6 MAXPIECESIZE 8G&lt;br /&gt;7&gt; parms &#39;SBT_LIBRARY=/lib/libnwora.so,ENV=(NSR_SERVER=192.168.200.166,NSR_DATA_VOLUME_POOL=Database,NSR_GROUP=Oracle,NSR_DEBUG_&lt;br /&gt;8&gt; FILE=/tmp/debug.out)&#39;;&lt;br /&gt;9&gt; duplicate target database for standby dorecover;&lt;br /&gt;10&gt; release channel t1;&lt;br /&gt;11&gt; release channel t2;&lt;br /&gt;12&gt; }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Please perform the restore as above &lt;br /&gt;&lt;br /&gt; Note : After restore , Create spfile for your db  and bounce your database &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;3. Add the following parameters to your database spfile &lt;br /&gt;&lt;br /&gt; *.log_archive_config=&#39;dg_config=(PWPRD,PWPRDDR,PWRPPRD)&#39;&lt;br /&gt;*.log_archive_dest_1=&#39;LOCATION=&quot;+ARCHIVES&quot;, valid_for=(ONLINE_LOGFILE,ALL_ROLES)&#39;&lt;br /&gt;*.log_archive_dest_2=&#39;LOCATION=+ARCHIVES/PWRPPRD/STANDBY/ VALID_FOR=(STANDBY_LOGFILES, STANDBY_ROLE) DB_UNIQUE_NAME=PWRPPRD&#39;&lt;br /&gt;&lt;br /&gt; Note : Please make sure you create the directory named +ARCHIVES/PWRPPRD/STANDBY in your logical standby ASM manaully.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;4. Make the below change in production database : &lt;br /&gt;&lt;br /&gt; &lt;br /&gt; alter system set log_archive_dest_3=&#39;service=&quot;PWRPPRD&quot;, LGWR ASYNC NOAFFIRM delay=0 OPTIONAL max_failure=10 max_connections=1 reopen=15 db_unique_name=&quot;PWRPPRD&quot; register net_timeout=180 valid_for=(online_logfile,primary_role)&#39; scope=both sid=&#39;*&#39;;&lt;br /&gt;&lt;br /&gt; Note : Starting shipping the logs from production and start applying it .&lt;br /&gt;&lt;br /&gt;Conversion of physical standby to Logical&lt;br /&gt;&lt;br /&gt;5. Cancel the managed Recovery  at DR Database ( Logical db ) &lt;br /&gt;&lt;br /&gt;6. Make the below executions in Production database : &lt;br /&gt;&lt;br /&gt;             SQL&gt; ALTER DATABASE ADD SUPPLEMENTAL LOG&lt;br /&gt;             DATA (PRIMARY KEY, uNIQUE INDEX) COLUMNS;&lt;br /&gt;   &lt;br /&gt;                 Database altered.&lt;br /&gt;&lt;br /&gt;             SQL&gt; execute dbms_logstdby.build;&lt;br /&gt;&lt;br /&gt;             PL/SQL procedure successfully completed.&lt;br /&gt;&lt;br /&gt;7. In the New logical Standby , Please convert the database into Single instance .&lt;br /&gt; &lt;br /&gt;           &lt;br /&gt;SQL&gt;  alter system set cluster_database=FALSE scope=spfile sid=&#39;*&#39;&lt;br /&gt;System altered.&lt;br /&gt;&lt;br /&gt;SQL&gt; shut immediate;&lt;br /&gt;ORA-01109: database not open&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Database dismounted.&lt;br /&gt;ORACLE instance shut down.&lt;br /&gt;SQL&gt; startup nomount&lt;br /&gt;ORACLE instance started.&lt;br /&gt;&lt;br /&gt;Total System Global Area 4294967296 bytes&lt;br /&gt;Fixed Size                  2133936 bytes&lt;br /&gt;Variable Size             810938448 bytes&lt;br /&gt;Database Buffers         3456106496 bytes&lt;br /&gt;Redo Buffers               25788416 bytes&lt;br /&gt;SQL&gt; alter database mount standby database;&lt;br /&gt;&lt;br /&gt;Database altered.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;8. Now issue the command to switch the Physical dr to logical DR : &lt;br /&gt;&lt;br /&gt;SQL&gt; alter database recover to logical standby PWRPPRD;&lt;br /&gt;&lt;br /&gt;Note : &lt;br /&gt;&lt;br /&gt; Please run the below script in the DR side : &lt;br /&gt;&lt;br /&gt;select process,status,client_process,sequence#,block#,active_agents,known_agents&lt;br /&gt;from v$managed_standby;&lt;br /&gt;&lt;br /&gt; the above script will show you the logfile for which DR is waiting. After running the logical conversion command. go to&lt;br /&gt;the production database and backup the log file which the above script show and scp it to the new DR and &lt;br /&gt;register it in this side. Do the same method of couple of time until the above command gets altered. &lt;br /&gt;&lt;br /&gt;Reason being , the conversion command requires all the log till we made the logical build in the production to recover&lt;br /&gt;and convert it.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Note : At this point the conversion command will change the DB name and also it will update in the Spfile. Also alert log you &lt;br /&gt;will find the below messages .&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Converting standby mount to primary mount.&lt;br /&gt;Tue Mar  4 02:41:00 2008&lt;br /&gt;ACTIVATE STANDBY: Complete - Database mounted as primary (PWRPPRD1)&lt;br /&gt;*** DBNEWID utility started ***&lt;br /&gt;DBID will be changed from 505738321 to new DBID of 2131768892 for database PWPRD&lt;br /&gt;DBNAME will be changed from PWPRD to new DBNAME of PWRPPRD&lt;br /&gt;Starting datafile conversion&lt;br /&gt;Setting recovery target incarnation to 1&lt;br /&gt;Datafile conversion complete&lt;br /&gt;Database name changed to PWRPPRD.&lt;br /&gt;Modify parameter file and generate a new password file before restarting.&lt;br /&gt;Database ID for database PWRPPRD changed to 2131768892.&lt;br /&gt;All previous backups and archived redo logs for this database are unusable.&lt;br /&gt;Database has been shutdown, open with RESETLOGS option.&lt;br /&gt;Succesfully changed database name and ID.&lt;br /&gt;*** DBNEWID utility finished succesfully ***&lt;br /&gt;Tue Mar  4 02:41:01 2008&lt;br /&gt;SUCCESS: diskgroup RPT_DATA was dismounted&lt;br /&gt;Tue Mar  4 02:41:01 2008&lt;br /&gt;Completed: alter database recover to logical standby PWRPPRD&lt;br /&gt;&lt;br /&gt;9. Make sure you alter the cluster database instance paramter to 2 and also cluster database to true before you shutdown .&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;alter system set cluster_database=TRUE scope=spfile sid=&#39;*&#39;;&lt;br /&gt;&lt;br /&gt;10 . Bounce the logical standby and open it in reset logs mode.&lt;br /&gt;&lt;br /&gt;11. Start shipping the logs from production side and start the logical real time apply. &lt;br /&gt;&lt;br /&gt; Note : please add standby logfiles at logical standby side. To make real time apply.</content><link rel='replies' type='application/atom+xml' href='http://mramkumar.blogspot.com/feeds/348136883229606/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/3675227014817852905/348136883229606?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3675227014817852905/posts/default/348136883229606'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3675227014817852905/posts/default/348136883229606'/><link rel='alternate' type='text/html' href='http://mramkumar.blogspot.com/2008/07/logical-standby.html' title='Create Oracle 10g Logical Standby Database'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3675227014817852905.post-4193076165446428824</id><published>2008-07-11T22:19:00.004+05:30</published><updated>2008-07-13T14:06:39.135+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Migration"/><title type='text'>Transport Transactional tablespace</title><content type='html'>From db01-lisprd&lt;br /&gt;&lt;br /&gt;Create directory object for Data Pump&lt;br /&gt;&lt;br /&gt;SQL&gt; create directory pwprd_dir as &#39;/d01/app/pwprd&#39;;&lt;br /&gt;&lt;br /&gt;Directory created.&lt;br /&gt;&lt;br /&gt;SQL&gt; grant read, write on directory pwprd_dir to system;&lt;br /&gt;&lt;br /&gt;Grant succeeded.&lt;br /&gt;&lt;br /&gt;Bring HLPR tablespace to read only mode to facilitate transfer&lt;br /&gt;&lt;br /&gt;SQL&gt; alter tablespace hlpr read only;&lt;br /&gt;&lt;br /&gt;Tablespace altered.&lt;br /&gt;&lt;br /&gt;Export metadata for tablespace with Data Pump.  We also choose the transport_full_check option so that Data Pump will check tablespace dependencies.  This was already performed via SQL*Plus but is used here just as a precaution.&lt;br /&gt;&lt;br /&gt;-bash-3.00$ expdp system/p1pathway dumpfile=hlpr.dmp directory=pwprd_dir transport_tablespaces=hlpr transport_full_check=y&lt;br /&gt;&lt;br /&gt;Export: Release 10.2.0.1.0 - 64bit Production on Thursday, 28 September, 2006 11:25:38&lt;br /&gt;&lt;br /&gt;Copyright (c) 2003, 2005, Oracle.  All rights reserved.&lt;br /&gt;&lt;br /&gt;Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production&lt;br /&gt;With the Partitioning, Real Application Clusters, OLAP and Data Mining options&lt;br /&gt;Starting &quot;SYSTEM&quot;.&quot;SYS_EXPORT_TRANSPORTABLE_01&quot;:  system/******** dumpfile=hlpr.dmp directory=pwprd_dir transport_tablespaces=hlpr transport_full_check=y&lt;br /&gt;Processing object type TRANSPORTABLE_EXPORT/PLUGTS_BLK&lt;br /&gt;Processing object type TRANSPORTABLE_EXPORT/TABLE&lt;br /&gt;Processing object type TRANSPORTABLE_EXPORT/INDEX&lt;br /&gt;Processing object type TRANSPORTABLE_EXPORT/CONSTRAINT/CONSTRAINT&lt;br /&gt;Processing object type TRANSPORTABLE_EXPORT/INDEX_STATISTICS&lt;br /&gt;Processing object type TRANSPORTABLE_EXPORT/CONSTRAINT/REF_CONSTRAINT&lt;br /&gt;Processing object type TRANSPORTABLE_EXPORT/TABLE_STATISTICS&lt;br /&gt;Processing object type TRANSPORTABLE_EXPORT/POST_INSTANCE/PLUGTS_BLK&lt;br /&gt;Master table &quot;SYSTEM&quot;.&quot;SYS_EXPORT_TRANSPORTABLE_01&quot; successfully loaded/unloaded&lt;br /&gt;******************************************************************************&lt;br /&gt;Dump file set for SYSTEM.SYS_EXPORT_TRANSPORTABLE_01 is:&lt;br /&gt;  /d01/app/pwprd/hlpr.dmp&lt;br /&gt;Job &quot;SYSTEM&quot;.&quot;SYS_EXPORT_TRANSPORTABLE_01&quot; successfully completed at 11:26:22&lt;br /&gt;&lt;br /&gt;Launch RMAN and use the convert command to capture the HLPR tablespace in a backupset.&lt;br /&gt;&lt;br /&gt;-bash-3.00$ rman target /&lt;br /&gt;&lt;br /&gt;Recovery Manager: Release 10.2.0.1.0 - Production on Thu Sep 28 11:26:49 2006&lt;br /&gt;&lt;br /&gt;Copyright (c) 1982, 2005, Oracle.  All rights reserved.&lt;br /&gt;&lt;br /&gt;connected to target database: PWHLPR (DBID=691297521)&lt;br /&gt;&lt;br /&gt;RMAN&gt; convert tablespace hlpr format &#39;/d01/app/pwprd/hlpr_%U&#39;;&lt;br /&gt;&lt;br /&gt;Starting backup at 28-SEP-06&lt;br /&gt;using target database control file instead of recovery catalog&lt;br /&gt;allocated channel: ORA_DISK_1&lt;br /&gt;channel ORA_DISK_1: sid=510 instance=PWHLPR1 devtype=DISK&lt;br /&gt;channel ORA_DISK_1: starting datafile conversion&lt;br /&gt;input datafile fno=00006 name=+HLPR_DATA/pwhlpr/datafile/hlpr01.ora&lt;br /&gt;converted datafile=/d01/app/pwprd/hlpr_data_D-PWHLPR_I-691297521_TS-HLPR_FNO-6_09hudqct&lt;br /&gt;channel ORA_DISK_1: datafile conversion complete, elapsed time: 00:05:36&lt;br /&gt;channel ORA_DISK_1: starting datafile conversion&lt;br /&gt;input datafile fno=00009 name=+HLPR_DATA/pwhlpr/datafile/hlpr.266.602275983&lt;br /&gt;converted datafile=/d01/app/pwprd/hlpr_data_D-PWHLPR_I-691297521_TS-HLPR_FNO-9_0ahudqnd&lt;br /&gt;channel ORA_DISK_1: datafile conversion complete, elapsed time: 00:01:35&lt;br /&gt;Finished backup at 28-SEP-06&lt;br /&gt;&lt;br /&gt;Move all files to rptdb01-lisprd.ftw&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;From rptdb01-lisprd&lt;br /&gt;&lt;br /&gt;-bash-3.00$ ls -lrt&lt;br /&gt;total 68248184&lt;br /&gt;drwxrwx---   3 pwrpprd  pdba         512 Sep 21 11:18 product&lt;br /&gt;-rw-r-----   1 pwrpprd  pdba      385024 Sep 28 12:43 hlpr.dmp&lt;br /&gt;-rw-r-----   1 pwrpprd  pdba     26214408192 Sep 28 13:12 hlpr_data_D-PWHLPR_I-691297521_TS-HLPR_FNO-6_09hudqct&lt;br /&gt;-rw-r-----   1 pwrpprd  pdba     8560648192 Sep 28 13:21 hlpr_data_D-PWHLPR_I-691297521_TS-HLPR_FNO-9_0ahudqnd&lt;br /&gt;-rw-r-----   1 pwrpprd  pdba     150499328 Sep 28 13:22 pathway.dmp&lt;br /&gt;-rw-rw-r--   1 pwrpprd  pdba       26767 Sep 28 13:38 import.log&lt;br /&gt;-bash-3.00$&lt;br /&gt;-bash-3.00$ rman target /&lt;br /&gt;&lt;br /&gt;Recovery Manager: Release 10.2.0.2.0 - Production on Thu Sep 28 13:39:23 2006&lt;br /&gt;&lt;br /&gt;Copyright (c) 1982, 2005, Oracle.  All rights reserved.&lt;br /&gt;&lt;br /&gt;connected to target database: PWHLPR (DBID=693046759)&lt;br /&gt;&lt;br /&gt;RMAN&gt; convert datafile &#39;/d01/app/pwrpprd/hlpr_data_D-PWHLPR_I-691297521_TS-HLPR_FNO-6_09hudqct&#39;,&lt;br /&gt;2&gt; &#39;/d01/app/pwrpprd/hlpr_data_D-PWHLPR_I-691297521_TS-HLPR_FNO-9_0ahudqnd&#39;&lt;br /&gt;3&gt; format &#39;+HLPR_DATA&#39;;&lt;br /&gt;&lt;br /&gt;Starting backup at 28-SEP-06&lt;br /&gt;using target database control file instead of recovery catalog&lt;br /&gt;allocated channel: ORA_DISK_1&lt;br /&gt;channel ORA_DISK_1: sid=54 instance=PWHLPR1 devtype=DISK&lt;br /&gt;channel ORA_DISK_1: starting datafile conversion&lt;br /&gt;input filename=/d01/app/pwrpprd/hlpr_data_D-PWHLPR_I-691297521_TS-HLPR_FNO-6_09hudqct&lt;br /&gt;converted datafile=+HLPR_DATA/pwhlpr/datafile/hlpr.262.602343695&lt;br /&gt;channel ORA_DISK_1: datafile conversion complete, elapsed time: 00:09:45&lt;br /&gt;channel ORA_DISK_1: starting datafile conversion&lt;br /&gt;input filename=/d01/app/pwrpprd/hlpr_data_D-PWHLPR_I-691297521_TS-HLPR_FNO-9_0ahudqnd&lt;br /&gt;converted datafile=+HLPR_DATA/pwhlpr/datafile/hlpr.263.602344281&lt;br /&gt;channel ORA_DISK_1: datafile conversion complete, elapsed time: 00:02:56&lt;br /&gt;Finished backup at 28-SEP-06&lt;br /&gt;&lt;br /&gt;-bash-3.00$ impdp system/pathway dumpfile=hlpr.dmp directory=pwprd_dir transport_datafiles=&#39;+HLPR_DATA/pwhlpr/datafile/hlpr.262.602343695&#39;,&#39;+HLPR_DATA/pwhlpr/datafile/hlpr.263.602344281&#39;&lt;br /&gt;&lt;br /&gt;Import: Release 10.2.0.2.0 - 64bit Production on Thursday, 28 September, 2006 14:05:30&lt;br /&gt;&lt;br /&gt;Copyright (c) 2003, 2005, Oracle.  All rights reserved.&lt;br /&gt;&lt;br /&gt;Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production&lt;br /&gt;With the Partitioning, Real Application Clusters, OLAP and Data Mining options&lt;br /&gt;Master table &quot;SYSTEM&quot;.&quot;SYS_IMPORT_TRANSPORTABLE_01&quot; successfully loaded/unloaded&lt;br /&gt;Starting &quot;SYSTEM&quot;.&quot;SYS_IMPORT_TRANSPORTABLE_01&quot;:  system/******** dumpfile=hlpr.dmp directory=pwprd_dir transport_datafiles=+HLPR_DATA/pwhlpr/datafile/hlpr.262.602343695,+HLPR_DATA/pwhlpr/datafile/hlpr.263.602344281&lt;br /&gt;Processing object type TRANSPORTABLE_EXPORT/PLUGTS_BLK&lt;br /&gt;Processing object type TRANSPORTABLE_EXPORT/TABLE&lt;br /&gt;Processing object type TRANSPORTABLE_EXPORT/INDEX&lt;br /&gt;Processing object type TRANSPORTABLE_EXPORT/CONSTRAINT/CONSTRAINT&lt;br /&gt;Processing object type TRANSPORTABLE_EXPORT/INDEX_STATISTICS&lt;br /&gt;Processing object type TRANSPORTABLE_EXPORT/CONSTRAINT/REF_CONSTRAINT&lt;br /&gt;Processing object type TRANSPORTABLE_EXPORT/TABLE_STATISTICS&lt;br /&gt;Processing object type TRANSPORTABLE_EXPORT/POST_INSTANCE/PLUGTS_BLK&lt;br /&gt;Job &quot;SYSTEM&quot;.&quot;SYS_IMPORT_TRANSPORTABLE_01&quot; successfully completed at 14:05:55&lt;br /&gt;&lt;br /&gt;SQL&gt; select * from v$tablespace;&lt;br /&gt;&lt;br /&gt;       TS# NAME                           INC BIG FLA ENC&lt;br /&gt;---------- ------------------------------ --- --- --- ---&lt;br /&gt;         0 SYSTEM                         YES NO  YES&lt;br /&gt;         1 UNDOTBS1                       YES NO  YES&lt;br /&gt;         2 SYSAUX                         YES NO  YES&lt;br /&gt;         4 USERS                          YES NO  YES&lt;br /&gt;         3 TEMP                           NO  NO  YES&lt;br /&gt;         5 UNDOTBS2                       YES NO  YES&lt;br /&gt;         6 HLPR                           YES NO  YES&lt;br /&gt;&lt;br /&gt;7 rows selected.&lt;br /&gt;&lt;br /&gt;SQL&gt; alter tablespace hlpr read write;&lt;br /&gt;&lt;br /&gt;Tablespace altered.</content><link rel='replies' type='application/atom+xml' href='http://mramkumar.blogspot.com/feeds/4193076165446428824/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/3675227014817852905/4193076165446428824?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3675227014817852905/posts/default/4193076165446428824'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3675227014817852905/posts/default/4193076165446428824'/><link rel='alternate' type='text/html' href='http://mramkumar.blogspot.com/2008/07/transport-transactional-tablespace.html' title='Transport Transactional tablespace'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3675227014817852905.post-5452704294313498234</id><published>2008-06-19T19:17:00.007+05:30</published><updated>2008-07-13T14:05:42.964+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASM"/><title type='text'>Create ASM environment for testing Purpose ( Dummy only Testing Purpose )</title><content type='html'>This is only for test case and not for production use..!!!&lt;br /&gt;&lt;pre&gt;&lt;tt&gt;&lt;tt&gt; We dont need any ASM Lib Drivers to be installed for this method...!!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;For running a Single Instance ASM We need to have CSS Dameon to be a running before we create ASM. This will be invoked in the first&lt;br /&gt;step when you try to create the ASM instance.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now As a root user execute all these steps.&lt;br /&gt;&lt;br /&gt;1. Create a directory asm_disks and&lt;br /&gt;cd /u01/asm_disks&lt;br /&gt;&lt;br /&gt;Start creating Logical Volumes ( LV )  inside the directory&lt;br /&gt;&lt;br /&gt;[root@testserver]dd if=/dev/zero of=asm_disk1 bs=1024k count=1024&lt;br /&gt;1024+0 records in&lt;br /&gt;1024+0 records out&lt;br /&gt;&lt;br /&gt;[root@testserver]dd if=/dev/zero of=asm_disk2 bs=1024k count=1024&lt;br /&gt;1024+0 records in&lt;br /&gt;1024+0 records out&lt;br /&gt;&lt;br /&gt;[root@testserver]dd if=/dev/zero of=asm_disk3 bs=1024k count=1024&lt;br /&gt;1024+0 records in&lt;br /&gt;1024+0 records out&lt;br /&gt;&lt;br /&gt;[root@testserver]dd if=/dev/zero of=asm_disk4 bs=1024k count=1024&lt;br /&gt;1024+0 records in&lt;br /&gt;1024+0 records out&lt;br /&gt;&lt;br /&gt;and then&lt;br /&gt;&lt;br /&gt;[root@testserver]losetup /dev/loop1 asm_disk1&lt;br /&gt;[root@testserver]losetup /dev/loop2 asm_disk2&lt;br /&gt;[root@testserver]losetup /dev/loop3 asm_disk3&lt;br /&gt;[root@testserver]losetup /dev/loop4 asm_disk4&lt;br /&gt;[root@testserver]raw -qa&lt;br /&gt;&lt;br /&gt;[root@testserver]raw /dev/raw/raw1 /dev/loop1&lt;br /&gt;/dev/raw/raw1:  bound to major 7, minor 1&lt;br /&gt;&lt;br /&gt;[root@testserver]raw /dev/raw/raw2 /dev/loop2&lt;br /&gt;/dev/raw/raw2:  bound to major 7, minor 2&lt;br /&gt;&lt;br /&gt;[root@testserver]raw /dev/raw/raw3 /dev/loop3&lt;br /&gt;/dev/raw/raw3:  bound to major 7, minor 3&lt;br /&gt;&lt;br /&gt;[root@testserver]raw /dev/raw/raw4 /dev/loop4&lt;br /&gt;/dev/raw/raw4:  bound to major 7, minor 4&lt;br /&gt;&lt;br /&gt;[root@testserver]raw -qa&lt;br /&gt;/dev/raw/raw1:  bound to major 7, minor 1&lt;br /&gt;/dev/raw/raw2:  bound to major 7, minor 2&lt;br /&gt;/dev/raw/raw3:  bound to major 7, minor 3&lt;br /&gt;/dev/raw/raw4:  bound to major 7, minor 4&lt;br /&gt;&lt;br /&gt;Assigb permission to oracle user :&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;[root@testserver]chmod 660 asm_disk*&lt;br /&gt;&lt;br /&gt;[root@testserver]ls&lt;br /&gt;asm_disk1  asm_disk2  asm_disk3  asm_disk4&lt;br /&gt;&lt;br /&gt;&lt;/tt&gt;&lt;/tt&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJ53gy9HRGGmm7ld5yCBfbVFVdLgW2rDGYc-aMox3pTP_H-MqZt2KCNi4sfgf1cnr2gWNeIdBAFxYZFpDSnu56pUot-ck2uVLZY7SZuNoX9HG0thagbXTTXtsrbtPCgZht7K7pmmd6TqaZ/s1600-h/1.bmp&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJ53gy9HRGGmm7ld5yCBfbVFVdLgW2rDGYc-aMox3pTP_H-MqZt2KCNi4sfgf1cnr2gWNeIdBAFxYZFpDSnu56pUot-ck2uVLZY7SZuNoX9HG0thagbXTTXtsrbtPCgZht7K7pmmd6TqaZ/s400/1.bmp&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5213839149893958818&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;tt&gt;&lt;tt&gt;&lt;br /&gt;[root@testserver]chown oracle:oinstall /dev/raw/raw1&lt;br /&gt;[root@testserver]chown oracle:oinstall /dev/raw/raw2&lt;br /&gt;[root@testserver]chown oracle:oinstall /dev/raw/raw3&lt;br /&gt;[root@testserver]chown oracle:oinstall /dev/raw/raw4&lt;br /&gt;&lt;br /&gt;Note : MAke sure you install Oracle Database Binaries ( Software only ) before you proceed&lt;br /&gt;&lt;br /&gt;Now as a root user run the below command for start the CSS dameon.&lt;br /&gt;&lt;br /&gt;[root@testserver]/u01/oracle/product/10.2.0/db_1/bin/localconfig add&lt;br /&gt;Successfully accumulated necessary OCR keys.&lt;br /&gt;Creating OCR keys for user &#39;root&#39;, privgrp &#39;root&#39;..&lt;br /&gt;Operation successful.&lt;br /&gt;Configuration for local CSS has been initialized&lt;br /&gt;&lt;br /&gt;Adding to inittab&lt;br /&gt;Startup will be queued to init within 30 seconds.&lt;br /&gt;Checking the status of new Oracle init process...&lt;br /&gt;Expecting the CRS daemons to be up within 600 seconds.&lt;br /&gt;CSS is active on these nodes.&lt;br /&gt;testserver&lt;br /&gt;CSS is active on all nodes.&lt;br /&gt;Oracle CSS service is installed and running under init(1M)&lt;br /&gt;&lt;br /&gt;*******************************************************************&lt;br /&gt;&lt;br /&gt;[root@testserver]ls /etc/oratab&lt;br /&gt;/etc/oratab&lt;br /&gt;[root@testserver]ls -ltr /etc/oratab&lt;br /&gt;-rwxrw-r--  1 oragrid root 881 Apr 29 02:40 /etc/oratab&lt;br /&gt;[root@testserver]chown oracle:oinstall  /etc/oratab&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;As Oracle User, Invoke DBCA&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/tt&gt;&lt;/tt&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbadjWooEtaZVyMNtyCcB_nzVIkCXkGi9qD0VY_YHIGcSyRTkD8uhhv1Wjap3_6P1flfzrOb_jXCu_RPNmN-pSuW1dE0e836Q35b0gRg2CqeB5R1cFpNYQ815suUn6r66YMRNJCW68xLnd/s1600-h/2.bmp&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbadjWooEtaZVyMNtyCcB_nzVIkCXkGi9qD0VY_YHIGcSyRTkD8uhhv1Wjap3_6P1flfzrOb_jXCu_RPNmN-pSuW1dE0e836Q35b0gRg2CqeB5R1cFpNYQ815suUn6r66YMRNJCW68xLnd/s400/2.bmp&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5213839540506863490&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;tt&gt;&lt;tt&gt;&lt;br /&gt;&lt;/tt&gt;&lt;/tt&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdDKMMxIT0RJGdcGcTlhSFNwrmb4HPHwN_5PhF0lZWiJ-VMLdym8MUXnvywW-tbb_H6PK4v5x7T9VN7EqGObArV0QmQXKKaYh3LKQcLUZ7wcXznlHG1hIzsqEjhpNiDwZe5eoSvkzj8Oj8/s1600-h/3.bmp&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdDKMMxIT0RJGdcGcTlhSFNwrmb4HPHwN_5PhF0lZWiJ-VMLdym8MUXnvywW-tbb_H6PK4v5x7T9VN7EqGObArV0QmQXKKaYh3LKQcLUZ7wcXznlHG1hIzsqEjhpNiDwZe5eoSvkzj8Oj8/s400/3.bmp&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5213839873279101666&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiN-Um_rJcpP6F-uDymk2_oeXNNc82VxYFg-wDSRdskFUz7BFyOD4kZzSVJrsynhGMK88KXt1x2C4lcfxmIkpW4W-WwMKHEBz1fA5PKCv1iiOSnzl1rcIGVnvPU_W0fJwQnE8Kx5JGB_OKV/s1600-h/4.bmp&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiN-Um_rJcpP6F-uDymk2_oeXNNc82VxYFg-wDSRdskFUz7BFyOD4kZzSVJrsynhGMK88KXt1x2C4lcfxmIkpW4W-WwMKHEBz1fA5PKCv1iiOSnzl1rcIGVnvPU_W0fJwQnE8Kx5JGB_OKV/s320/4.bmp&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5213841178390556290&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOV2RMSV-2v8akmRaJy1tOQKNxs053o5kNPzFPunF2FGWnEPmktP0S1SW4VSVrO-fnEudGizIAaAR5Wf7ojYmBTcAxv-hNuc89bucWTO-uXTor0WM29Qv0DWjoVFO5ic-FZTdKivqlIaFd/s1600-h/5.bmp&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOV2RMSV-2v8akmRaJy1tOQKNxs053o5kNPzFPunF2FGWnEPmktP0S1SW4VSVrO-fnEudGizIAaAR5Wf7ojYmBTcAxv-hNuc89bucWTO-uXTor0WM29Qv0DWjoVFO5ic-FZTdKivqlIaFd/s320/5.bmp&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5213841181463437074&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5sPx1A2-AXz_ZQFjFF0QQbnsMH5HJJdf3wZJTA7QgT1HHZC_WDmWK21qkSstTAZNVbMK18imH9C4eyAS5aLC67lfWlhH451o6iWFJwbpL3An5xeimA7RiRymwW_jtVqppWz4Wvr5oZHXV/s1600-h/6.bmp&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5sPx1A2-AXz_ZQFjFF0QQbnsMH5HJJdf3wZJTA7QgT1HHZC_WDmWK21qkSstTAZNVbMK18imH9C4eyAS5aLC67lfWlhH451o6iWFJwbpL3An5xeimA7RiRymwW_jtVqppWz4Wvr5oZHXV/s320/6.bmp&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5213841186932917618&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjs6i3mQfxsZUqP4mMrmSAw8IeTTOJVh0q4sgGlpw3RhtctLMwi19rgxVjlcYXzgJ5BkSFH1kIpZnyJD3S6U-WpcHnYk-jVv6CjvERg9hyyD9s6t5fwB7QCCvYyr-16N9Z2M7cHaviT5wLN/s1600-h/7.bmp&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjs6i3mQfxsZUqP4mMrmSAw8IeTTOJVh0q4sgGlpw3RhtctLMwi19rgxVjlcYXzgJ5BkSFH1kIpZnyJD3S6U-WpcHnYk-jVv6CjvERg9hyyD9s6t5fwB7QCCvYyr-16N9Z2M7cHaviT5wLN/s320/7.bmp&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5213841190229262178&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqbTfe4OTKQm1R1OebAKa3iYyKIbOFnJEX3QwPkiqT0UnJzPZn68Tdfj2fZVfJZ_tUq5a4pplbIl9sk-6Aw_pxR9-baTF_jsc1IAab2nu0fPDoe3ellonMt19B_i2rqxv_EYSog4PFBYuf/s1600-h/8.bmp&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqbTfe4OTKQm1R1OebAKa3iYyKIbOFnJEX3QwPkiqT0UnJzPZn68Tdfj2fZVfJZ_tUq5a4pplbIl9sk-6Aw_pxR9-baTF_jsc1IAab2nu0fPDoe3ellonMt19B_i2rqxv_EYSog4PFBYuf/s320/8.bmp&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5213841191021894242&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnNzAs11kMvrhSxQfNUNMeP6cNs9t-K_geISBR53xbcpz94lyVGPxJo_FT2kVzW9hsxqETnhP8olHaUwwC3p6TcUGTKhNQrYelSRCHWwXgZrUrQSuomNDYfoqRwdIXbBoRMz8FdW43rBuA/s1600-h/9.bmp&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnNzAs11kMvrhSxQfNUNMeP6cNs9t-K_geISBR53xbcpz94lyVGPxJo_FT2kVzW9hsxqETnhP8olHaUwwC3p6TcUGTKhNQrYelSRCHWwXgZrUrQSuomNDYfoqRwdIXbBoRMz8FdW43rBuA/s320/9.bmp&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5213841821617365250&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaUfjvwASfXMocz27CFaibYG39MDEbHvUNmkErLKY5auBOTurK9Aa5WV74vouDMA-91mwJTTtKgmeiqXX0ZOhe-nbibWkUO4cLPdbSdehALgEbWb1YPYnzeMybGBS-d2fTVbkCXTBPgI7X/s1600-h/10.bmp&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaUfjvwASfXMocz27CFaibYG39MDEbHvUNmkErLKY5auBOTurK9Aa5WV74vouDMA-91mwJTTtKgmeiqXX0ZOhe-nbibWkUO4cLPdbSdehALgEbWb1YPYnzeMybGBS-d2fTVbkCXTBPgI7X/s320/10.bmp&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5213841823970808306&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5E_ym1G2HupC8POF-DY1fOBzLHDBUMAb39LE2nCY6b8WgX9lGTILfp3_soPu9_efR90_WyMJNdgUlhnzW9zq7jN0znkLiBIxoaa-u3UdG3NCuwPMQkWcOGhTDvK2lJuQaR5dq1UGEYcZM/s1600-h/11.bmp&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5E_ym1G2HupC8POF-DY1fOBzLHDBUMAb39LE2nCY6b8WgX9lGTILfp3_soPu9_efR90_WyMJNdgUlhnzW9zq7jN0znkLiBIxoaa-u3UdG3NCuwPMQkWcOGhTDvK2lJuQaR5dq1UGEYcZM/s320/11.bmp&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5213841825097381602&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;tt&gt;&lt;tt&gt;&lt;br /&gt;[root@testserver]ps -ef|grep ASM&lt;br /&gt;oracle    8202     1  0 12:34 ?        00:00:00 asm_pmon_+ASM&lt;br /&gt;oracle    8204     1  0 12:34 ?        00:00:00 asm_psp0_+ASM&lt;br /&gt;oracle    8206     1  0 12:34 ?        00:00:00 asm_mman_+ASM&lt;br /&gt;oracle    8208     1  0 12:34 ?        00:00:00 asm_dbw0_+ASM&lt;br /&gt;oracle    8210     1  0 12:34 ?        00:00:00 asm_lgwr_+ASM&lt;br /&gt;oracle    8212     1  0 12:34 ?        00:00:00 asm_ckpt_+ASM&lt;br /&gt;oracle    8214     1  0 12:34 ?        00:00:00 asm_smon_+ASM&lt;br /&gt;oracle    8216     1  0 12:34 ?        00:00:00 asm_rbal_+ASM&lt;br /&gt;oracle    8218     1  0 12:34 ?        00:00:00 asm_gmon_+ASM&lt;br /&gt;root      8240  7175  0 12:35 pts/2    00:00:00 grep ASM&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now you can go ahead and use your DBCA and create a database and on&lt;br /&gt;step&lt;br /&gt;6 of 13, you can use Automatic Storage management as your Filesystem.&lt;br /&gt;&lt;/tt&gt;&lt;/tt&gt;&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://mramkumar.blogspot.com/feeds/5452704294313498234/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/3675227014817852905/5452704294313498234?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3675227014817852905/posts/default/5452704294313498234'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3675227014817852905/posts/default/5452704294313498234'/><link rel='alternate' type='text/html' href='http://mramkumar.blogspot.com/2008/06/create-asm-environment-for-testing.html' title='Create ASM environment for testing Purpose ( Dummy only Testing Purpose )'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJ53gy9HRGGmm7ld5yCBfbVFVdLgW2rDGYc-aMox3pTP_H-MqZt2KCNi4sfgf1cnr2gWNeIdBAFxYZFpDSnu56pUot-ck2uVLZY7SZuNoX9HG0thagbXTTXtsrbtPCgZht7K7pmmd6TqaZ/s72-c/1.bmp" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3675227014817852905.post-1150235240462441300</id><published>2008-06-19T18:33:00.006+05:30</published><updated>2008-07-13T14:05:18.231+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Export/Import"/><title type='text'>Export and Import using Unix Pipe And Compress</title><content type='html'>This helped me in saving space in some of activities and also in cases to do parallel export and import.&lt;br /&gt;&lt;br /&gt;Scenario 1 :&lt;br /&gt;&lt;br /&gt;You were asked to import a schema of your production server into your test server for some purpose. You are expecting that the export will take 5 hours and again the import will take quite more than that. In this case, you can use this option which will save your time in exporting and shipping the file to the other server.&lt;br /&gt;By doing this we will be able to export and import parallel on the same box.&lt;br /&gt;&lt;br /&gt;1. In your test server, add the production database tnsnames to your tnsnames.ora&lt;br /&gt;2. Create a unix pipe&lt;br /&gt;   &lt;br /&gt;     mknod pipe name -p&lt;br /&gt;&lt;br /&gt;           ex : mknod ram_pipe -p&lt;br /&gt;&lt;br /&gt;3. Start your export :&lt;br /&gt;&lt;br /&gt;   exp system/password@prod file=ram_pipe owner=erpds statistics=none log=/u01/export.log &amp;amp;&lt;br /&gt;&lt;br /&gt;Remember to use &amp;amp; at the end to start the export in back groud and You be able to notice from the logfile whtr the pipe broken due to some errors in the export commands or the export is progressing...!!&lt;br /&gt;&lt;br /&gt;4. Now from the same terminal start the import..!!&lt;br /&gt;&lt;br /&gt;   imp system/XXXXX@testserver file=ram_pipe fromuser=erpds touser=testds log=/u01/import.log &amp;amp;&lt;br /&gt;&lt;br /&gt;Simple..!! You will notice one job wil be exporting and other will be importing...!!</content><link rel='replies' type='application/atom+xml' href='http://mramkumar.blogspot.com/feeds/1150235240462441300/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/3675227014817852905/1150235240462441300?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3675227014817852905/posts/default/1150235240462441300'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3675227014817852905/posts/default/1150235240462441300'/><link rel='alternate' type='text/html' href='http://mramkumar.blogspot.com/2008/06/export-and-import-using-unix-pipe-and.html' title='Export and Import using Unix Pipe And Compress'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3675227014817852905.post-8949867195262706045</id><published>2008-06-19T18:24:00.005+05:30</published><updated>2008-07-13T14:04:49.204+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="10g Features"/><title type='text'>Oracle 10g features</title><content type='html'>Even though we work on 10g databases on all 365 days,sometime when you try to recollect all the 10g features you won&#39;t be able to recall all of them.. For my reference i am adding this post..!!&lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;bodycopy&quot;&gt;&lt;span class=&quot;boldbodycopy&quot;&gt;&lt;br /&gt;&lt;br /&gt;1.Flashback Versions Query&lt;br /&gt;2.Rollback Monitoring&lt;br /&gt;3.Tablespace Management&lt;br /&gt;4.Oracle Data Pump&lt;br /&gt;5.Flashback Table&lt;br /&gt;6.Automatic Workload Repository&lt;br /&gt;7.Automatic Storage Management&lt;br /&gt;8.RMAN&lt;br /&gt;9.Auditing  &lt;br /&gt;10.Automatic Segment Management&lt;br /&gt;11.Transportable Tablespaces&lt;br /&gt;12.Automatic Shared Memory Management&lt;br /&gt;13.ADDM and SQL Tuning Advisor&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Oracle 10g R2 Features :&lt;br /&gt;&lt;br /&gt;· ASM Command Line Tool&lt;br /&gt;· Drop Empty Datafiles&lt;br /&gt;· Direct SGA Access for Hung/Slow Systems&lt;br /&gt;· Redefine a Partition Online&lt;br /&gt;· Faster Startup&lt;br /&gt;· Manage Multiple Objects in Oracle Enterprise Manager&lt;br /&gt;· Automatic Segment Advisor&lt;br /&gt;· Oracle Secure Backup&lt;br /&gt;· Dynamic RMAN Views for Past and Current Jobs&lt;br /&gt;· Dynamic Channel Allocation for Oracle RAC Clusters&lt;br /&gt;· Tempfiles Recovery via RMAN&lt;br /&gt;· Flashback Database/Query Through RESETLOGS&lt;br /&gt;· Flashback Database Restore Points&lt;br /&gt;· Flash Recovery Area View&lt;br /&gt;&lt;br /&gt;I have got all these details from Oracle.com&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;From my understanding i have seen the following features were very much useful in daily life of us.&lt;br /&gt;&lt;br /&gt;1.AWR&lt;br /&gt;2.ASH&lt;br /&gt;3. ADDM&lt;br /&gt;4. Improved RMAN features&lt;br /&gt;5. ASM&lt;br /&gt;6. Memory management&lt;br /&gt;7. DBMS utilities&lt;br /&gt;8. Datapump&lt;br /&gt;9. Flashback (Enhancement)&lt;br /&gt;10. Improved Auditing&lt;br /&gt;11. Improved SQL apply techniques - Useful in Logical Standby&lt;br /&gt;12. Dataguard Enhancements&lt;br /&gt;13. &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;bodycopy&quot;&gt;SQL Tuning Advisor&lt;br /&gt;14. Grid Control&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;bodycopy&quot;&gt;&lt;span class=&quot;boldbodycopy&quot;&gt;&lt;br /&gt;I will be adding things whenever it strikes me..!!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://mramkumar.blogspot.com/feeds/8949867195262706045/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/3675227014817852905/8949867195262706045?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3675227014817852905/posts/default/8949867195262706045'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3675227014817852905/posts/default/8949867195262706045'/><link rel='alternate' type='text/html' href='http://mramkumar.blogspot.com/2008/06/oracle-1-g.html' title='Oracle 10g features'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3675227014817852905.post-5400370837439500029</id><published>2008-05-27T09:21:00.003+05:30</published><updated>2008-07-13T14:03:44.485+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASM"/><title type='text'>Move Controlfile from Filesystem to Diskgroup</title><content type='html'>We&lt;br /&gt;SQL&gt; select name from v$controfile;&lt;br /&gt;&lt;br /&gt;NAME&lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;/home/pwprd/ctl.ctl&#39;&lt;br /&gt;&lt;br /&gt;2. Shutdown the database and start the instance:&lt;br /&gt;SQL&gt; shutdown normal&lt;br /&gt;SQL&gt; startup nomount&lt;br /&gt;&lt;br /&gt;3. Use RMAN to move the controlfile to ASM :&lt;br /&gt;$ rman nocatalog&lt;br /&gt;RMAN&gt;connect target&lt;br /&gt;RMAN&gt;restore controlfile to &#39;+DG NAME &#39; from &#39;FILE PATH&#39;;&lt;br /&gt;&lt;br /&gt;e.g.&lt;br /&gt;&lt;br /&gt;RMAN&gt; restore controlfile to &#39;+PWPRD_DATA&#39; from &#39;/home/pwprd/ctl.ct&#39;;</content><link rel='replies' type='application/atom+xml' href='http://mramkumar.blogspot.com/feeds/5400370837439500029/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/3675227014817852905/5400370837439500029?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3675227014817852905/posts/default/5400370837439500029'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3675227014817852905/posts/default/5400370837439500029'/><link rel='alternate' type='text/html' href='http://mramkumar.blogspot.com/2008/05/move-controlfile-from-filesystem-to.html' title='Move Controlfile from Filesystem to Diskgroup'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3675227014817852905.post-7405832792842990257</id><published>2008-05-26T17:13:00.006+05:30</published><updated>2008-07-13T14:03:15.141+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASM"/><title type='text'>Creating an Oracle 10g database manually on ASM</title><content type='html'>Just for the understading of junior members in my present team..!!&lt;br /&gt;&lt;br /&gt;Before Proceeding with Manual Database Creation Make sure you have the asm instance is running, Diskgroup is mounted and Sufficient space available for creating the database.&lt;br /&gt;&lt;br /&gt;/home/oracle $ ps -ef | grep +ASM&lt;br /&gt;oracle   25792     1  0 May25 ?        00:00:00 asm_pmon_+ASM&lt;br /&gt;&lt;br /&gt;SQL&gt;  select group_number,name,state,total_mb/1024 TOTAL_GB,free_mb FREE_GB from v$asm_Diskgroup;&lt;br /&gt;&lt;br /&gt;GROUP_NUMBER NAME                           STATE         TOTAL_GB    FREE_GB&lt;br /&gt;------------ ------------------------------ ----------- ---------- ----------&lt;br /&gt;          1           DATA                                   MOUNTED              4                 2.5&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;Specifying the Instance&#39;s SID&lt;o:p&gt;&lt;/o:p&gt;&lt;/h2&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;The SID can be set through the ORACLE_SID environment variable. &lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;pre&gt;&lt;b&gt;export ORACLE_SID=ORCL&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;  &lt;h2&gt;Creating the initialization parameter file&lt;/h2&gt; *.audit_file_dest=&#39;/u01/oracle/product/10.2.0/db_1/admin/orcl/adump&#39;&lt;br /&gt;*.background_dump_dest=&#39;/u01/oracle/product/10.2.0/db_1/admin/orcl/bdump&#39;&lt;br /&gt;*.compatible=&#39;10.2.0.1.0&#39;&lt;br /&gt;*.control_files=&#39;+DATA&lt;br /&gt;*.core_dump_dest=&#39;/u01/oracle/product/10.2.0/db_1/admin/orcl/cdump&#39;&lt;br /&gt;*.db_block_size=8192&lt;br /&gt;*.db_domain=&#39;&#39;&lt;br /&gt;*.db_file_multiblock_read_count=16&lt;br /&gt;*.db_name=&#39;test&#39;&lt;br /&gt;*.dispatchers=&#39;(PROTOCOL=TCP) (SERVICE=testXDB)&#39;&lt;br /&gt;*.job_queue_processes=10&lt;br /&gt;*.open_cursors=300&lt;br /&gt;*.pga_aggregate_target=200278016&lt;br /&gt;*.processes=150&lt;br /&gt;*.remote_login_passwordfile=&#39;EXCLUSIVE&#39;&lt;br /&gt;*.sga_target=536870912&lt;br /&gt;*.undo_management=&#39;AUTO&#39;&lt;br /&gt;*.undo_tablespace=&#39;UNDOTBS1&#39;&lt;br /&gt;*.user_dump_dest=&#39;/u01/oracle/product/10.2.0/db_1/admin/orcl/udump&#39;&lt;br /&gt;db_create_file_dest=&#39;+DATA&#39;&lt;br /&gt;log_archive_dest_1=&#39;LOCATION=+DATA&#39;&lt;br /&gt;db_create_online_log_dest_1=&#39;+DATA&#39;&lt;br /&gt;&lt;br /&gt;Note : Make sure you create the dump file directories( adump,udump,bdump,cdump)&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;Create Password File&lt;br /&gt;&lt;/h2&gt;Make sure you create the password file before you proceed with the instance startup.&lt;br /&gt;&lt;h2&gt;Starting the instance&lt;/h2&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;pre&gt;SQL*Plus: Release 10.2.0.1.0 - Production on Sat May 24 16:05:15 2008&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;o:p&gt; &lt;/o:p&gt;Copyright (c) 1982, 2004, Oracle.&lt;span style=&quot;&quot;&gt;  &lt;/span&gt;All rights reserved.&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;SQL&gt; &lt;a href=&quot;http://www.adp-gmbh.ch/ora/admin/connect_sysdba_sysoper.html&quot;&gt;connect sys/password as sysdba&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;Connected to an &lt;b&gt;idle&lt;/b&gt; instance.&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;SQL*Plus tells us that we&#39;re connected to an &lt;i&gt;idle&lt;/i&gt; instance. That means that it is not yet started. So, let&#39;s start the instance. We have to start the instance without mounting (&lt;i&gt;nomount&lt;/i&gt;) as there is no database we could mount at the moment. &lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;pre&gt;SQL&gt; &lt;a href=&quot;http://www.adp-gmbh.ch/ora/sqlplus/startup.html#nomount&quot;&gt;startup nomount pfile=&#39;/home/oracle/pfile.ora&#39;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;ORACLE instance started.&lt;br /&gt;Total System Global Area&lt;span style=&quot;&quot;&gt;  &lt;/span&gt;113246208 bytes&lt;br /&gt;Fixed Size&lt;span style=&quot;&quot;&gt;                   &lt;/span&gt;787708 bytes&lt;br /&gt;Variable Size&lt;span style=&quot;&quot;&gt;              &lt;/span&gt;61864708 bytes&lt;br /&gt;Database Buffers&lt;span style=&quot;&quot;&gt;           &lt;/span&gt;50331648 bytes&lt;br /&gt;Redo Buffers&lt;span style=&quot;&quot;&gt;                 &lt;/span&gt;262144 bytes&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;This created the SGA (System Global Area) and the background processe&lt;span style=&quot;text-decoration: underline;&quot;&gt;&lt;/span&gt;s. &lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;h2&gt;Creating the database&lt;o:p&gt;&lt;/o:p&gt;&lt;/h2&gt;  SQL&gt;create database orcl&lt;br /&gt;logfile   group 1 (&#39;+DATA&#39;) size 10M,&lt;br /&gt;         group 2 (&#39;+DATA&#39;) size 10M,&lt;br /&gt;         group 3 (&#39;+DATA&#39;) size 10M&lt;br /&gt;character set WE8ISO8859P1&lt;br /&gt;national character set utf8&lt;br /&gt;datafile &#39;+DATA&#39;  size 50M  autoextend on   next 10M maxsize unlimited     extent management local&lt;br /&gt;sysaux datafile &#39;+DATA &#39; size 10M autoextend on  next 10M  maxsize unlimited&lt;br /&gt;undo tablespace undo datafile &#39;+DATA&#39; size 10M&lt;br /&gt;default temporary tablespace temp&lt;br /&gt;         tempfile &#39;+DATA&#39; size 10M;&lt;br /&gt;&lt;br /&gt; If something goes wrong with the creation, Oracle will write an error     into the alert log.&lt;br /&gt;&lt;br /&gt;&lt;h2 id=&quot;completing_work&quot;&gt;Completing the DB creation&lt;/h2&gt;          In order to complete the db creation, the following scripts must be run as sys&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;code&quot;&gt;SQL&gt; @?/rdbms/admin/catalog.sql&lt;br /&gt;SQL&gt; @?/rdbms/admin/catproc.sql&lt;br /&gt;&lt;br /&gt;SQL&gt; connect system/manager&lt;br /&gt;SQL&gt; @?/sqlplus/admin/pupbld&lt;br /&gt;&lt;br /&gt;After Creating set your asm environment and you can see all these files from asmcmd.&lt;br /&gt;&lt;br /&gt;ASMCMD&gt; ls&lt;br /&gt;ARCHIVELOG/&lt;br /&gt;CONTROLFILE/&lt;br /&gt;DATAFILE/&lt;br /&gt;ASMCMD&gt; pwd&lt;br /&gt;+DATA/ORCL&lt;br /&gt;ASMCMD&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Suggestions and Corrections are welcome..!!! &lt;br /&gt;&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://mramkumar.blogspot.com/feeds/7405832792842990257/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/3675227014817852905/7405832792842990257?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3675227014817852905/posts/default/7405832792842990257'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3675227014817852905/posts/default/7405832792842990257'/><link rel='alternate' type='text/html' href='http://mramkumar.blogspot.com/2008/05/creating-oracle-10g-database-manually.html' title='Creating an Oracle 10g database manually on ASM'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3675227014817852905.post-7310121115477901162</id><published>2008-05-24T03:06:00.009+05:30</published><updated>2008-07-13T14:07:53.337+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Replication"/><category scheme="http://www.blogger.com/atom/ns#" term="Streams"/><title type='text'>Oracle Streams</title><content type='html'>&lt;a href=&quot;http://www.linkedin.com/in/eceramm&quot;&gt;  &lt;/a&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;    &lt;ul style=&quot;margin-top: 0in;&quot; type=&quot;disc&quot;&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;Oracle      Streams is a replication methodology where database can be replicated      across different operating database.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;ul style=&quot;margin-top: 0in;&quot; type=&quot;disc&quot;&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;Oracle      streams consists of three stages,&lt;/li&gt;&lt;/ul&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shapetype id=&quot;_x0000_t75&quot; coordsize=&quot;21600,21600&quot; spt=&quot;75&quot; preferrelative=&quot;t&quot; path=&quot;m@4@5l@4@11@9@11@9@5xe&quot; filled=&quot;f&quot; stroked=&quot;f&quot;&gt;  &lt;v:stroke joinstyle=&quot;miter&quot;&gt;  &lt;v:formulas&gt;   &lt;v:f eqn=&quot;if lineDrawn pixelLineWidth 0&quot;&gt;   &lt;v:f eqn=&quot;sum @0 1 0&quot;&gt;   &lt;v:f eqn=&quot;sum 0 0 @1&quot;&gt;   &lt;v:f eqn=&quot;prod @2 1 2&quot;&gt;   &lt;v:f eqn=&quot;prod @3 21600 pixelWidth&quot;&gt;   &lt;v:f eqn=&quot;prod @3 21600 pixelHeight&quot;&gt;   &lt;v:f eqn=&quot;sum @0 0 1&quot;&gt;   &lt;v:f eqn=&quot;prod @6 1 2&quot;&gt;   &lt;v:f eqn=&quot;prod @7 21600 pixelWidth&quot;&gt;   &lt;v:f eqn=&quot;sum @8 21600 0&quot;&gt;   &lt;v:f eqn=&quot;prod @7 21600 pixelHeight&quot;&gt;   &lt;v:f eqn=&quot;sum @10 21600 0&quot;&gt;  &lt;/v:formulas&gt;  &lt;v:path extrusionok=&quot;f&quot; gradientshapeok=&quot;t&quot; connecttype=&quot;rect&quot;&gt;  &lt;o:lock ext=&quot;edit&quot; aspectratio=&quot;t&quot;&gt; &lt;/v:shapetype&gt;&lt;v:shape id=&quot;_x0000_i1025&quot; type=&quot;#_x0000_t75&quot; style=&quot;&#39;width:6in;&quot;&gt;  &lt;v:imagedata src=&quot;file:///C:\DOCUME~1\ram\LOCALS~1\Temp\msohtml1\06\clip_image001.png&quot; title=&quot;&quot;&gt; &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqVheBl7inobsf4OR6gjlL8svBSvtTrQzA8WE5iM98ZPEFXuJ1S3u3BdChFjEyfaBo8rn95GLR6tkQvrWeH8hxh0dgkzoDroEBCGgH7uhq-8zuAwPqtZcbHTfRCxrTvttGrj0p7oLVtpcl/s1600-h/pic.bmp&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqVheBl7inobsf4OR6gjlL8svBSvtTrQzA8WE5iM98ZPEFXuJ1S3u3BdChFjEyfaBo8rn95GLR6tkQvrWeH8hxh0dgkzoDroEBCGgH7uhq-8zuAwPqtZcbHTfRCxrTvttGrj0p7oLVtpcl/s400/pic.bmp&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5203691597505484850&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;ul style=&quot;margin-top: 0in;&quot; type=&quot;disc&quot;&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;Changes      of the database will be written in the online redo log files, Oracle      streams will extract the changes from the log as it is written.&lt;/li&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;Changes      are formatted as Logical Change Record (LCR).&lt;/li&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;Streams      publish captured events into staging area.&lt;/li&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;All      events captured in the capture site will be sent as queue.&lt;/li&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;The      events will stage in the queue until it is consumed by the subscribers.&lt;/li&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;All      the propagated messages will be consumed by the apply process and it will      be applied at the destination site.&lt;/li&gt;&lt;/ul&gt;  Below are the steps which i followed for implementing Oracle Streams on replicating their database across two operating system ( between Compaq Tru 64 and Hp-Ux )&lt;br /&gt;&lt;br /&gt;&lt;ol style=&quot;margin-top: 0in;&quot; start=&quot;1&quot; type=&quot;1&quot;&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;The      following steps has to be followed at both the sites(Source and      Destination),&lt;/li&gt;&lt;/ol&gt;      &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 1in;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;&quot;&gt;a)&lt;span style=&quot;&quot;&gt;      &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;create table space streams_tbs&lt;br /&gt;datafile ‘/u01/datafiles/streams.dbf’ size 1024m;&lt;/p&gt;          &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 1in; text-indent: -0.25in;&quot;&gt;&lt;o:p&gt;           &lt;/o:p&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;&quot;&gt;b)&lt;span style=&quot;&quot;&gt;      &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;create user stradm identified by stradm&lt;br /&gt;          default tablespace streams_tbs&lt;br /&gt;             temporary tablespace temp&lt;br /&gt;          quota unlimited on streams_tbs;&lt;br /&gt;&lt;/p&gt;&lt;span style=&quot;&quot;&gt; c)&lt;span style=&quot;&quot;&gt;      &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;grant connect,resource,dba to stradm;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;span style=&quot;font-family:Courier;&quot;&gt;&lt;span style=&quot;&quot;&gt;&lt;/span&gt;d) execute MS_STREAMS_AUTH.GRANT_ADMIN_PRIVILEGE(&#39;STRADM&#39;);&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;ol style=&quot;margin-top: 0in;&quot; start=&quot;2&quot; type=&quot;1&quot;&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;The      following init parameters has to be modified in both the sites,&lt;/li&gt;&lt;/ol&gt;  &lt;pre&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family:Courier;&quot;&gt;&lt;span style=&quot;&quot;&gt;a)&lt;span style=&quot;&quot;&gt;    &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family:Courier;&quot;&gt;COMPATIBLE = 10.1.0 or higher&lt;br /&gt;&lt;span style=&quot;&quot;&gt;&lt;/span&gt;b) GLOBAL_NAMES = TRUE&lt;span style=&quot;&quot;&gt;&lt;br /&gt;&lt;/span&gt;c) JOB_QUEUE_PROCESSES =6&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;d) PARALLEL_MAX_SERVERS = 10&lt;o:p&gt;&lt;/o:p&gt;&lt;span style=&quot;&quot;&gt;&lt;br /&gt;&lt;/span&gt;e) SHARED_POOL_SIZE = 10% of the shared_pool_size. &lt;span style=&quot;&quot;&gt;&lt;br /&gt;&lt;/span&gt;f) OPEN_LINKS = 10.&lt;span style=&quot;&quot;&gt;&lt;br /&gt;&lt;/span&gt;g) PROCESSES = DEFAULT.&lt;span style=&quot;&quot;&gt;&lt;br /&gt;&lt;/span&gt;h) SESSIONS = DEFAULT&lt;br /&gt;i) SGA_MAX_SIZE =DEFAUL&lt;br /&gt;&lt;span style=&quot;&quot;&gt;&lt;/span&gt;j) TIMED_STATISTICS = TRUE&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;k) STREAMS_POOL_SIZE &gt; 200M&lt;span style=&quot;&quot;&gt;&lt;br /&gt;&lt;/span&gt;l) UNDO_RETENTION &gt; 900 &lt;span style=&quot;&quot;&gt;&lt;br /&gt;&lt;/span&gt;m) CAPTURE SITE = ARCHIVE LOG MODE&lt;o:p&gt;&lt;/o:p&gt;&lt;span style=&quot;&quot;&gt;&lt;br /&gt;&lt;/span&gt;n)_job_queue_interval=1 &lt;o:p&gt;&lt;/o:p&gt;&lt;span style=&quot;&quot;&gt;&lt;br /&gt;&lt;/span&gt;o) &lt;/span&gt;alter system reset aq_tm_processes scope=spfile sid=&#39;*&#39;;&lt;/pre&gt;  &lt;ol style=&quot;margin-top: 0in;&quot; start=&quot;3&quot; type=&quot;1&quot;&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;The      following steps has to be executed at the source site ( Capture site ) ,&lt;/li&gt;&lt;/ol&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.25in;&quot;&gt;&lt;span style=&quot;&quot;&gt;                        &lt;/span&gt;$sqlplus &quot;sys as sysdba&quot;&lt;/p&gt;    &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.25in;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;span style=&quot;&quot;&gt;                       &lt;/span&gt;SQL&gt; alter database add supplemental log data (all) columns;&lt;/p&gt;    &lt;ol style=&quot;margin-top: 0in;&quot; start=&quot;4&quot; type=&quot;1&quot;&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;The      following steps has to be executed on the source site to create the queue,capture      and propagation&lt;span style=&quot;&quot;&gt;  &lt;/span&gt;process,&lt;/li&gt;&lt;/ol&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;span style=&quot;&quot;&gt;                             &lt;/span&gt;conn stradm/stradm@source  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;&quot;&gt;                          &lt;/span&gt;To create queue,&lt;/p&gt;              &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;&quot;&gt;                                     &lt;/span&gt;begin&lt;br /&gt;&lt;span style=&quot;&quot;&gt;                                    &lt;/span&gt;&lt;span style=&quot;&quot;&gt;      &lt;/span&gt;&lt;span style=&quot;&quot;&gt;&lt;/span&gt;DBMS_STREAMS_ADM.SET_UP_QUEUE(&lt;br /&gt;&lt;span style=&quot;&quot;&gt;                                   &lt;/span&gt;&lt;span style=&quot;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;&quot;&gt;&lt;/span&gt;queue_table =&gt; &#39;STREAMS_QUEUE_TABLE&#39;,&lt;br /&gt;&lt;span style=&quot;&quot;&gt;                                      &lt;/span&gt;&lt;span style=&quot;&quot;&gt;          &lt;/span&gt;queue_name =&gt; &#39;STREAMS_QUEUE&#39;,&lt;br /&gt;&lt;span style=&quot;&quot;&gt;                                      &lt;/span&gt;&lt;span style=&quot;&quot;&gt;          &lt;/span&gt;queue_user =&gt; &#39;STRADM&#39;);&lt;br /&gt;&lt;span style=&quot;&quot;&gt;                                     &lt;/span&gt;&lt;span style=&quot;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;&quot;&gt;&lt;/span&gt;end;&lt;br /&gt;&lt;span style=&quot;&quot;&gt;                                     &lt;/span&gt;&lt;span style=&quot;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;&quot;&gt;&lt;/span&gt;/&lt;/p&gt;                      &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;&quot;&gt;                              &lt;/span&gt;To create capture process,&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 2in; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;&quot;&gt;&lt;/span&gt;begin&lt;br /&gt;&lt;span style=&quot;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;&quot;&gt;           &lt;/span&gt;dbms_streams_adm.add_schema_rules(&lt;br /&gt;          schema_name =&gt; &#39;SCHEMA NAME &#39;,&lt;br /&gt;          streams_type =&gt; &#39;capture&#39;;&lt;br /&gt;          streams_name =&gt; &#39;capture&#39;;&lt;br /&gt;          queue_name =&gt; &#39;streams_queue&#39;,&lt;br /&gt;          include_dml =&gt; true,&lt;br /&gt;          include_ddl =&gt; true,&lt;br /&gt;          source_database =&gt; &#39;SOURCE DB NAME&#39;);&lt;br /&gt;          end;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;To create a propagation process,we have to create a database link which connects to the streams administrator user in the destination site as,&lt;/p&gt;    &lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt;             &lt;/o:p&gt;Create database link as alh1 connect to stradm identified by stradm using ‘ALH1’;&lt;/p&gt;    &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;&quot;&gt;                             &lt;/span&gt;To create propagation process,&lt;/p&gt;      &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;&quot;&gt;                                   begin&lt;br /&gt;                                     dbms_streams_adm.add_schema_propagation_rules(&lt;br /&gt;                                     schema_name =&gt; &#39;DEVLP&#39;,&lt;br /&gt;                                     streams_name =&gt; &#39;STREAMS_PROPAGATE&#39;,&lt;br /&gt;                                     source_queue_name =&gt; &#39;STREAMS_QUEUE&#39;,&lt;br /&gt;                                     destination_queue_name =&gt; STREAMS_QUEUE@DBLINK&#39;,&lt;br /&gt;                                     include_dml =&gt; true,&lt;br /&gt;                                     include_ddl =&gt; true,&lt;br /&gt;                                     source_database =&gt; &#39;SOURCE DB NAME&#39;);&lt;br /&gt;                                     end;&lt;br /&gt;                                         /&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;Once when capture and propagation process is created at the source site,do the following&lt;/p&gt;&lt;o:p&gt;                                    &lt;/o:p&gt;Sqlplus &gt; conn stradm/stradm  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 1in; text-indent: 0.5in;&quot;&gt;Sql &gt; select start_scn from dba_capture: &lt;/p&gt;    &lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt;     &lt;/o:p&gt;Note down the SCN value mentioned by the query. This SCN has be to used for the instantiation process at the destination site.&lt;/p&gt;  &lt;ol style=&quot;margin-top: 0in;&quot; start=&quot;5&quot; type=&quot;1&quot;&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;The      following steps has to be followed at the destination site to create the      apply proces&lt;/li&gt;&lt;/ol&gt;        &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;&quot;&gt;                       &lt;/span&gt;conn stradm/stradm@source&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;&quot;&gt;                 &lt;/span&gt;To create queue,&lt;br /&gt;&lt;span style=&quot;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;&quot;&gt;            &lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;&quot;&gt;                begin&lt;br /&gt;                 DBMS_STREAMS_ADM.SET_UP_QUEUE(&lt;br /&gt;                 queue_table =&gt; &#39;STREAMS_QUEUE_TABLE&#39;,&lt;br /&gt;                 queue_name =&gt; &#39;STREAMS_QUEUE&#39;,&lt;br /&gt;                 queue_user =&gt; &#39;STRADM&#39;);&lt;br /&gt;                  end;&lt;br /&gt;               /&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;&quot;&gt;                              &lt;/span&gt;To create apply process,&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;&quot;&gt;                                   begin&lt;br /&gt;                                  dbms_streams_adm.add_schema_rules(&lt;br /&gt;                                  schema_name =&gt; &#39;SCHEMA NAME&#39;,&lt;br /&gt;                                  streams_type =&gt; &#39;apply&#39;,&lt;br /&gt;                                  streams_name =&gt; &#39;apply&#39;,&lt;br /&gt;                                  queue_name =&gt; &#39;streams_queue&#39;,&lt;br /&gt;                                  include_dml =&gt; true,&lt;br /&gt;                                  include_ddl =&gt; true,&lt;br /&gt;                                  source_database =&gt; &#39;SOURCE DB NAME&#39;);&lt;br /&gt;                              end;&lt;br /&gt;                                  /&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;&quot;&gt;                                   begin&lt;br /&gt;                                     dbms_apply_adm.alter_apply(&lt;br /&gt;                                     apply_name =&gt; &#39;apply&#39;,&lt;br /&gt;                                     apply_user =&gt; &#39;SCHEMA NAME&#39;);&lt;br /&gt;                                 end;   &lt;br /&gt;                                    /&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;ol style=&quot;margin-top: 0in;&quot; start=&quot;6&quot; type=&quot;1&quot;&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;Export      of the whole schema has to be taken at the source site using the following      parameter                                                                                          Exp system/manager file=/u01/devlp.dmp owner=devlp consistent=y statistics=none&lt;/li&gt;&lt;/ol&gt;      &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 1in;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;ol style=&quot;margin-top: 0in;&quot; start=&quot;7&quot; type=&quot;1&quot;&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;Once      when the export is over,take the file to the destination site and import      it using the following parameters,&lt;/li&gt;&lt;/ol&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.25in;&quot;&gt;&lt;span style=&quot;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;&quot;&gt;                 &lt;/span&gt;Imp system/manager file=/u02/devlp.dmp fromuser=devlp touser=devlp streams_instantiation=y ignore=y&lt;/p&gt;  &lt;ol style=&quot;margin-top: 0in;&quot; start=&quot;8&quot; type=&quot;1&quot;&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;Once      after the apply process is created,execute the below query inorder to set      the schema instantiation SCN at the destination site,&lt;/li&gt;&lt;/ol&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;&lt;br /&gt;&lt;ol style=&quot;margin-top: 0in;&quot; start=&quot;9&quot; type=&quot;1&quot;&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;After      setting the above instantiation,execute the following statement to start      the apply process at the destination site,&lt;/li&gt;&lt;/ol&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 1in;&quot;&gt;&lt;st1:place st=&quot;on&quot;&gt;&lt;st1:state st=&quot;on&quot;&gt;Conn&lt;/st1:state&gt;&lt;/st1:place&gt; stradm/stradm&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 1in;&quot;&gt;&lt;o:p&gt;   begin&lt;br /&gt;DBMS_APPLY_ADM.SET_SCHEMA_INSTANTIATION_SCN(&lt;br /&gt;    source_schema_name =&gt; &#39;SCHEMA NAME&#39;,&lt;br /&gt;    source_database_name =&gt; &#39;SOURCE DB NAME&#39;,&lt;br /&gt;    instantiation_scn =&gt;Start_scn );&lt;br /&gt;end;&lt;br /&gt;  /&lt;br /&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;br /&gt;&lt;ol style=&quot;margin-top: 0in;&quot; start=&quot;10&quot; type=&quot;1&quot;&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;After      starting the apply process at destination site,Start the capture process      at the source site by executing,&lt;/li&gt;&lt;/ol&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 1in;&quot;&gt;&lt;st1:place st=&quot;on&quot;&gt;&lt;st1:state st=&quot;on&quot;&gt;Conn&lt;/st1:state&gt;&lt;/st1:place&gt; stradm/stradm&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 1in;&quot;&gt;&lt;o:p&gt;  begin&lt;br /&gt;dbms_apply_adm.start_apply(&lt;br /&gt;apply_name =&gt; &#39;apply&#39;);&lt;br /&gt;end;&lt;br /&gt;/&lt;/o:p&gt;&lt;/p&gt;        begin&lt;br /&gt;          dbms_capture_adm.start_capture(&lt;br /&gt;          capture_name =&gt; &#39;capture&#39;);&lt;br /&gt;          end;&lt;br /&gt;          /&lt;br /&gt;&lt;br /&gt;Useful  Views :&lt;br /&gt;&lt;br /&gt;a. dba_apply;&lt;br /&gt;b. dba_queue_tables;&lt;br /&gt;c. V$STREAMS_APPLY_COORDINATOR&lt;br /&gt;d. v$propagation_receiver;&lt;br /&gt;e. dba_apply_progress;&lt;br /&gt;f. V$STREAMS_APPLY_SERVER&lt;br /&gt;e. dba_apply_error&lt;br /&gt;g.  gV$STREAMS_APPLY_READER&lt;br /&gt;h.  dba_apply_key_columns&lt;br /&gt;i.  dba_apply_dml_handlers&lt;br /&gt;j.  v$buffered_subscribers&lt;br /&gt;select status,error_number,error_message from dba_apply</content><link rel='replies' type='application/atom+xml' href='http://mramkumar.blogspot.com/feeds/7310121115477901162/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/3675227014817852905/7310121115477901162?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3675227014817852905/posts/default/7310121115477901162'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3675227014817852905/posts/default/7310121115477901162'/><link rel='alternate' type='text/html' href='http://mramkumar.blogspot.com/2008/05/oracle-streams.html' title='Oracle Streams'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqVheBl7inobsf4OR6gjlL8svBSvtTrQzA8WE5iM98ZPEFXuJ1S3u3BdChFjEyfaBo8rn95GLR6tkQvrWeH8hxh0dgkzoDroEBCGgH7uhq-8zuAwPqtZcbHTfRCxrTvttGrj0p7oLVtpcl/s72-c/pic.bmp" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3675227014817852905.post-8084408216636838311</id><published>2008-05-22T08:41:00.013+05:30</published><updated>2008-07-13T13:59:30.205+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Logical Standby"/><title type='text'>Resync tables between primary and logical standby</title><content type='html'>&lt;span style=&quot;font-weight: bold; font-family: verdana;font-family:lucida grande;font-size:100%;&quot;  &gt;Whenever there is a Table row difference in logical due to some Skip rule or transaction skip. Follow the below procedure to Resync the tables.&lt;br /&gt;&lt;br /&gt;-- On primary&lt;br /&gt;SQL&gt; grant logstdby_administrator to system;&lt;br /&gt;&lt;br /&gt;-- On logical standby&lt;br /&gt;SQL&gt; grant logstdby_administrator to system ;&lt;br /&gt;&lt;br /&gt;SQL&gt; Create public database link prod CONNECT TO system IDENTIFIED BY password  USING &#39;TNSNAME&#39;; ( Basically DB Link )&lt;br /&gt;&lt;br /&gt;SQL&gt; alter database stop logical standby apply;&lt;br /&gt;&lt;br /&gt;SQL&gt; exec dbms_logstdby.instantiate_table(USERNAME&#39;,&#39;TABLE_NAME&#39;,&#39;DB_LINK_NAME&#39;);&lt;br /&gt;&lt;br /&gt;SQL&gt; alter database start logical standby apply;&lt;br /&gt;&lt;br /&gt;Note : This above operation does a export and import basically, generally my understanding is the table will be totally truncated and imported back.&lt;br /&gt;&lt;br /&gt;Suggestions and Corrections are Welcome....!!!!&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://mramkumar.blogspot.com/feeds/8084408216636838311/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/3675227014817852905/8084408216636838311?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3675227014817852905/posts/default/8084408216636838311'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3675227014817852905/posts/default/8084408216636838311'/><link rel='alternate' type='text/html' href='http://mramkumar.blogspot.com/2008/05/resync-tables-between-primary-and.html' title='Resync tables between primary and logical standby'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3675227014817852905.post-8384601385817213550</id><published>2008-05-21T04:06:00.011+05:30</published><updated>2008-07-13T13:58:54.389+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Oracle Tools"/><title type='text'>Oracle 10g Logminer</title><content type='html'>&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;a style=&quot;font-family: arial;&quot; name=&quot;Overview&quot;&gt;To find out what Oracle is writing to the    redo log files called LogMiner. The redo log files store all the data needed    to perform a database recovery and record all changes (INSERT, UPDATE and DELETE)    made to the database&lt;br /&gt;&lt;br /&gt;Below are the steps how to setup and mine a archive log :&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;;font-family:arial;font-size:85%;&quot;  &gt;&lt;a style=&quot;color: rgb(0, 0, 0);&quot; href=&quot;http://www.linkedin.com/in/eceramm&quot;&gt;1. Make sure you get the list of archives generated for the day using the below commnand. From the below output identify the archivelogs you are going to mine using logminer..&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a style=&quot;color: rgb(0, 0, 0);&quot; href=&quot;http://www.linkedin.com/in/eceramm&quot;&gt;    alter session set nls_date_format=&#39;yyyy-mm-dd hh24:mi:ss&#39;;&lt;/a&gt;&lt;br /&gt;&lt;a style=&quot;color: rgb(0, 0, 0);&quot; href=&quot;http://www.linkedin.com/in/eceramm&quot;&gt;    select thread#, sequence#, completion_time from v$archived_log order by completion_time desc;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;2. Now Build a Logminer dictionary , make sure you have the follwoing folder available and your unix account have acces to it : &lt;/a&gt;&lt;br /&gt;&lt;a style=&quot;color: rgb(0, 0, 0);&quot; href=&quot;http://www.linkedin.com/in/eceramm&quot;&gt;    execute dbms_logmnr_d.build(&#39;dictionary.ora&#39;,&#39;/d01/oracle&#39;);&lt;br /&gt;&lt;br /&gt;3. Copy all the archivelog to a path and register all the logs as show below  :&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a style=&quot;color: rgb(0, 0, 0);&quot; href=&quot;http://www.linkedin.com/in/eceramm&quot;&gt;    execute dbms_logmnr.add_logfile(&#39;/d02/archivelogs/backup/arch/8045.arc&#39;,dbms_logmnr.addfile);&lt;br /&gt;execute dbms_logmnr.add_logfile(&#39;/d02/archivelogs/backup/arch/8046.arc&#39;,dbms_logmnr.addfile);&lt;br /&gt;execute dbms_logmnr.add_logfile(&#39;/d02/archivelogs/backup/arch/8047.arc&#39;,dbms_logmnr.addfile);&lt;br /&gt;&lt;br /&gt;4. Now from the below view , make sure you have all the registered logs available for mining.&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a style=&quot;color: rgb(0, 0, 0);&quot; href=&quot;http://www.linkedin.com/in/eceramm&quot;&gt;select log_id, filename from v$logmnr_logs;&lt;br /&gt;&lt;br /&gt;5.Using the below view&#39;s find the first scn and high scn to mine from the registered logs.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a style=&quot;color: rgb(0, 0, 0);&quot; href=&quot;http://www.linkedin.com/in/eceramm&quot;&gt;alter session set nls_date_format=&#39;yyyy-mm-dd hh24:mi:ss&#39;;&lt;br /&gt;select low_time,high_time,low_scn,next_scn from v$logmnr_logs;&lt;br /&gt;&lt;br /&gt;6.From the above out gather the details and add it to the below logminer session :&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a style=&quot;color: rgb(0, 0, 0);&quot; href=&quot;http://www.linkedin.com/in/eceramm&quot;&gt;execute dbms_logmnr.start_logmnr(dictfilename =&gt;&#39;/d01/oracle/dictionary.ora&#39;,starttime =&gt; to_date(&#39;2008-04-21 10:00:14&#39;, &#39;yyyy-mm-dd hh24:mi:ss&#39;), endtime =&gt; to_date(&#39;2008-04-21 12:11:07&#39;, &#39;yyyy-mm-dd hh24:mi:ss&#39;));&lt;br /&gt;&lt;br /&gt;7. As v$logmnr_contents is a temporary view, once you disconnect your session , you won&#39;t be able to see the content, so make sure you create a table of all the contents of the view.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Note : If you mine a bunch of logs , create table will take more time to get created.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;      &lt;span style=&quot;font-size:85%;&quot;&gt;&lt;a style=&quot;font-family: arial; color: rgb(0, 0, 0);&quot; href=&quot;http://www.linkedin.com/in/eceramm&quot;&gt;create table logmnr_table_1 as select * from v$logmnr_contents;&lt;br /&gt;&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-family:arial;font-size:85%;&quot;  &gt;Let me know if you have any questions ...!!!!!  Please post your comments..!!!&lt;br /&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://mramkumar.blogspot.com/feeds/8384601385817213550/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/3675227014817852905/8384601385817213550?isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3675227014817852905/posts/default/8384601385817213550'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3675227014817852905/posts/default/8384601385817213550'/><link rel='alternate' type='text/html' href='http://mramkumar.blogspot.com/2008/05/oracle-10g-logminer.html' title='Oracle 10g Logminer'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry></feed>