<?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-6780070809638617595</id><updated>2012-01-07T03:42:57.179-08:00</updated><category term='12c'/><category term='unsupported'/><category term='ORACLE_SID'/><category term='cloud control'/><category term='duplicate'/><category term='non technical'/><category term='technical'/><category term='incomplete recovery'/><category term='11g'/><category term='auxiliary'/><category term='rman'/><category term='grid control'/><category term='upgrade'/><category term='Enterprise Manager'/><title type='text'>Cicciux DBA</title><subtitle type='html'>Oracle Database Tricks &amp;amp; Tips</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://cicciuxdba.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6780070809638617595/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://cicciuxdba.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Gigante Legendario</name><uri>http://www.blogger.com/profile/15481531340477523095</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://2.bp.blogspot.com/_girCAOWwzIo/Svx1W0eEXvI/AAAAAAAAB2U/WL8tw7_dchI/S220/bort-laptop_s.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>6</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6780070809638617595.post-5657673418975847158</id><published>2011-10-17T14:01:00.000-07:00</published><updated>2011-10-17T14:01:36.293-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='grid control'/><category scheme='http://www.blogger.com/atom/ns#' term='11g'/><category scheme='http://www.blogger.com/atom/ns#' term='cloud control'/><category scheme='http://www.blogger.com/atom/ns#' term='technical'/><category scheme='http://www.blogger.com/atom/ns#' term='upgrade'/><category scheme='http://www.blogger.com/atom/ns#' term='Enterprise Manager'/><category scheme='http://www.blogger.com/atom/ns#' term='12c'/><title type='text'>Going to the Cloud</title><content type='html'>It's been a while (a long while at that) since my last post. I thought it would be fun to start writing again and so will I with a new series of my experience upgrading one of the dev OEM Grid Control 11g to the new OEM Cloud Control 12c&lt;br /&gt;&lt;br /&gt;My first day at this task was spent downloading the media packs (I also read through the upgrade documentation and surfed some interesting news sites, had lunch, surfed 9gag for a little while and finally decided to leave the second media pack downloading overnight as it's almost time to go home and it's still at about 60%) due to my limited internet connection (over a vpn link to HQ).&lt;br /&gt;&lt;br /&gt;This is my first OEM GC upgrade so I'm not sure what to expect and certainly can't compare it to previous upgrades (i.e. 10g to 11g). I can, however, compare this upgrade to a database upgrade and perhaps to a EBS upgrade.&lt;br /&gt;&lt;br /&gt;At first glance I really liked the two-system approach, it makes the upgrade look easy. However I'm not sure I have two systems to do this upgrade, so I might take the one system approach. On the other hand, the system I'm upgrading is clustered, so in theory I could break the cluster, leave only one OMS up and use the second node as the "second system". I think I need to re-read the two-system approach as I mostly focused on 1-system.&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;b&gt;&lt;span style="font-size: large;"&gt;The current set up:&lt;/span&gt;&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;I have two nodes with Linux Red Hat Enterprise Linux Server release 5.6 (Tikanga) &lt;br /&gt;The kernel I'm using is:&lt;br /&gt;&lt;div style="color: #999999;"&gt;[oracle@oem1 ~]$ uname -a&lt;br /&gt;Linux oem1 2.6.18-238.5.1.el5 #1 SMP Mon Feb 21 05:52:39 EST 2011 x86_64 x86_64 x86_64 GNU/Linux&lt;/div&gt;&lt;br /&gt;I have a 11.2.0.2.0 RAC running with about 7 cluster databases (one of which acts as EM Repository). I also have the entire grid control installed on this cluster. Oracle Enterprise Manager 11g Release 1 Grid Control 11.1.0.1.0 with PSU4 applied&lt;br /&gt;&lt;br /&gt;The target is to have the OMS upgraded to 12c Release 1 as the database version requirement is already me. This is a clustered OMS so I will need to upgrade all the OMS according to the documentation. This looks fairly simple. I will try to keep the most accurate record of my upgrade I can.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6780070809638617595-5657673418975847158?l=cicciuxdba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cicciuxdba.blogspot.com/feeds/5657673418975847158/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6780070809638617595&amp;postID=5657673418975847158' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6780070809638617595/posts/default/5657673418975847158'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6780070809638617595/posts/default/5657673418975847158'/><link rel='alternate' type='text/html' href='http://cicciuxdba.blogspot.com/2011/10/going-to-cloud.html' title='Going to the Cloud'/><author><name>Gigante Legendario</name><uri>http://www.blogger.com/profile/15481531340477523095</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://2.bp.blogspot.com/_girCAOWwzIo/Svx1W0eEXvI/AAAAAAAAB2U/WL8tw7_dchI/S220/bort-laptop_s.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6780070809638617595.post-3937085498084183546</id><published>2009-04-12T19:12:00.000-07:00</published><updated>2009-04-12T19:13:25.235-07:00</updated><title type='text'>Oracle Certified Professional</title><content type='html'>Well, I finally got the OCP certificate... I am officially OCP now :-)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6780070809638617595-3937085498084183546?l=cicciuxdba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cicciuxdba.blogspot.com/feeds/3937085498084183546/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6780070809638617595&amp;postID=3937085498084183546' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6780070809638617595/posts/default/3937085498084183546'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6780070809638617595/posts/default/3937085498084183546'/><link rel='alternate' type='text/html' href='http://cicciuxdba.blogspot.com/2009/04/oracle-certified-professional.html' title='Oracle Certified Professional'/><author><name>Gigante Legendario</name><uri>http://www.blogger.com/profile/15481531340477523095</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://2.bp.blogspot.com/_girCAOWwzIo/Svx1W0eEXvI/AAAAAAAAB2U/WL8tw7_dchI/S220/bort-laptop_s.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6780070809638617595.post-5133323445555935881</id><published>2009-01-22T19:56:00.000-08:00</published><updated>2009-02-27T16:22:38.689-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ORACLE_SID'/><title type='text'>Changing ORACLE_SID</title><content type='html'>I recently faced a rather obnoxious CT that demanded that the SID for a certain instance be in uppercase instead of lowercase (as it was created). So I started looking for possibilities (other than recreating the database, that is).&lt;br /&gt;&lt;br /&gt;Scenario:&lt;br /&gt;=========&lt;br /&gt;AIX 5.3 ML07&lt;br /&gt;Oracle Database 10g Release 2 Patchset 2 (10.2.0.3)&lt;br /&gt;&lt;br /&gt;Database:&lt;br /&gt;=========&lt;br /&gt;There is one database with sid orcl (of course name is uppercase always, so db_name is 'ORCL')&lt;br /&gt;&lt;br /&gt;Process Overview:&lt;br /&gt;=================&lt;br /&gt;At this point there are two possible ways to go. First, since the DB_NAME is not going to change, we can simply rename a few files, change the environment variable and tnsnames enty and fire up a new instance.&lt;br /&gt;Another option is DBNEWID utility.&lt;br /&gt;&lt;br /&gt;Option 1. Case Change:&lt;br /&gt;======================&lt;br /&gt;First we must shutdown the instance.&lt;br /&gt;&lt;blockquote&gt;&lt;ol&gt;&lt;li&gt;rename spfile $ORACLE_HOM/dbs/spfileorcl.ora to $ORACLE_HOME/dbs/spfileORCL.ora&lt;/li&gt;&lt;li&gt;rename passwordfile $ORACLE_HOME/dbs/orapworcl to $ORACLE_HOME/dbs/orapwORCL&lt;/li&gt;&lt;li&gt;create new directory structure $ORACLE_BASE/admin/ORCL/(b|c|u|a)dump and change the proper parameters (USER_DUMP_DEST, BACKGROUND_DUMP_DEST, AUDIT_DUMP_DEST, CORE_DUMP_DEST)&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;Then change ORACLE_SID environment variable to ORCL (export ORACLE_SID=ORCL) and fire up the instance. Everything should work fine. If you use the instance name as part of the naming standard for db files, you would need to change those as well. I suggest you move everything to the new name and then issue alter database rename file 'orig' to 'new'.&lt;br /&gt;&lt;br /&gt;hth&lt;br /&gt;Guillermo Alan Bort&lt;br /&gt;Oracle Certified Associate.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6780070809638617595-5133323445555935881?l=cicciuxdba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cicciuxdba.blogspot.com/feeds/5133323445555935881/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6780070809638617595&amp;postID=5133323445555935881' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6780070809638617595/posts/default/5133323445555935881'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6780070809638617595/posts/default/5133323445555935881'/><link rel='alternate' type='text/html' href='http://cicciuxdba.blogspot.com/2009/01/changing-oraclesid.html' title='Changing ORACLE_SID'/><author><name>Gigante Legendario</name><uri>http://www.blogger.com/profile/15481531340477523095</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://2.bp.blogspot.com/_girCAOWwzIo/Svx1W0eEXvI/AAAAAAAAB2U/WL8tw7_dchI/S220/bort-laptop_s.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6780070809638617595.post-1535564481094163618</id><published>2009-01-01T18:10:00.000-08:00</published><updated>2009-01-22T16:06:48.046-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='unsupported'/><category scheme='http://www.blogger.com/atom/ns#' term='Enterprise Manager'/><title type='text'>Buenos Aires Timezone Change</title><content type='html'>This is a strictly unsupported comment&lt;br /&gt;&lt;br /&gt;The set up:&lt;br /&gt;===========&lt;br /&gt;Oracle 11g (11.1.0.7)&lt;br /&gt;KUbuntu Intrepid (8.10) (Linux omega 2.6.27-9-generic #1 SMP Thu Nov 20 21:57:00 UTC 2008 i686 GNU/Linux)&lt;br /&gt;&lt;br /&gt;I followed one of the many tutorials to get 11g on ubuntu and it worked flawlessly EXCEPT for the enterprise manager.&lt;br /&gt;&lt;br /&gt;When I finished creating the database, I found that EM would not start. After checking the logs I found problems with the timezone and finally came to realize that Oracle had anticipated the Daylight Saving Time whereas KUbuntu had not. So, for the OS it was -180min and for Oracle it was -120min. You can see the problem there, EM would not start.&lt;br /&gt;&lt;br /&gt;Workaround:&lt;br /&gt;===========&lt;br /&gt;I've done this a few times, and there are many workarounds... here are the most 'pretty' ones.&lt;br /&gt;&lt;br /&gt;1. use enviroment variable to force the timezone variation.&lt;br /&gt;&lt;blockquote&gt;$ export TZ=etc/GMT+3&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;2. Set the OS timezone to an etc/GMT&lt;br /&gt;&lt;blockquote&gt;# echo 'etc/GMT+3' &gt; /etc/timezone &lt;/blockquote&gt;&lt;br /&gt;Note: you may need to reboot after this.&lt;br /&gt;&lt;br /&gt;Oracle changes:&lt;br /&gt;===============&lt;br /&gt;&lt;br /&gt;You may need to run emctl resetTZ agent.&lt;br /&gt;&lt;br /&gt;and run the mgmt_target.set_agent_tzrgn to update the repository:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;SQL&gt; exec mgmt_target.set_agent_tzrgn('omega:3938','-03:00');&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;After this small 'trick' everything worked.&lt;br /&gt;&lt;br /&gt;Note that when DST changes again, you will need to follow these steps yet again... but still better than nothing. I'm looking into an ubuntu update to take into consideration Argentina's DST policy which is rather new.&lt;br /&gt;&lt;br /&gt;hth&lt;br /&gt;Guillermo Alan Bort&lt;br /&gt;Oracle Certified Associate.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6780070809638617595-1535564481094163618?l=cicciuxdba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cicciuxdba.blogspot.com/feeds/1535564481094163618/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6780070809638617595&amp;postID=1535564481094163618' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6780070809638617595/posts/default/1535564481094163618'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6780070809638617595/posts/default/1535564481094163618'/><link rel='alternate' type='text/html' href='http://cicciuxdba.blogspot.com/2009/01/buenos-aires-timezone-change.html' title='Buenos Aires Timezone Change'/><author><name>Gigante Legendario</name><uri>http://www.blogger.com/profile/15481531340477523095</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://2.bp.blogspot.com/_girCAOWwzIo/Svx1W0eEXvI/AAAAAAAAB2U/WL8tw7_dchI/S220/bort-laptop_s.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6780070809638617595.post-1619210664932336297</id><published>2008-12-24T12:27:00.000-08:00</published><updated>2008-12-27T21:04:30.835-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='duplicate'/><category scheme='http://www.blogger.com/atom/ns#' term='rman'/><category scheme='http://www.blogger.com/atom/ns#' term='incomplete recovery'/><category scheme='http://www.blogger.com/atom/ns#' term='auxiliary'/><title type='text'>Partial incomplete recovery 9i</title><content type='html'>This works on 10g as well, but it should not be necessary if Flashback is in use.&lt;br /&gt;&lt;br /&gt;This is the scenario&lt;br /&gt;====================&lt;br /&gt;&lt;br /&gt;Single database (doesn't matter if it's RAC or single instance). Multiple applications on the same database or at least multiple modules of the same application. Due to user error and or application logic error, some data got corrupted but nobody noticed until another application or module committed a lot of changes, so a restore of the whole database would mean loosing data and that is not the best scenario.&lt;br /&gt;&lt;br /&gt;Database backup is as follows:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Daily full hot backup including archivelogs&lt;/li&gt;&lt;li&gt;Hourly archive backup.&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;Alternatives&lt;br /&gt;============&lt;br /&gt;&lt;br /&gt;After analyzing the situation for a while, I found two alternatives. 1) exporting the modified data that needs to be saved, restoring the database to a previous Point in Time (incomplete recovery) and then importing the appropriate data. This had the downside of keeping both application unavailable during export, restore and recover and the second application during import.&lt;br /&gt;&lt;br /&gt;The actual solution I finally implemented was duplicating the database to a previous point in time and (before corruption), exporting the tables before corruption. Truncating corrupted production tables, importing them. As a side note, if you are performing this on 10g, you can use datapump and skip a few steps, however as this happened on a 9i database I will show the steps I took in this particular case.&lt;br /&gt;&lt;br /&gt;Actual Solution&lt;br /&gt;===============&lt;br /&gt;&lt;br /&gt;The main steps involved in the solution are the following:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;  Preparing an auxiliary database for duplication&lt;/li&gt;&lt;li&gt;  Connecting with RMAN to target database, auxiliary database and catalog (optional, recomended)&lt;/li&gt;&lt;li&gt;  Duplicating the database to a previous Point in Time&lt;/li&gt;&lt;li&gt;  Opening the duplicate database&lt;/li&gt;&lt;li&gt;  Variable steps (export/import)&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;Breakdown of solution&lt;br /&gt;=====================&lt;br /&gt; 1. This step differs a little from unix/linux to windows, I'll only mention the unix version here (it's the same on linux) and probably will make another entry for manual database/instance creation on Windows (I currently don't have a win2k3 environment to toy arround).&lt;br /&gt;&lt;br /&gt;    We can break down this step in a few actions:&lt;br /&gt;       a. create needed files and directories&lt;br /&gt;             We will basically need a parameter file (pfile or spfile) a passwordfile and the directory structure for dump destinations and datafiles.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;              First, we create the passwordfile with orapwd&lt;/li&gt;&lt;/ul&gt;&lt;blockquote&gt;orapwd file=$ORACLE_HOME/dbs/orapwdup password=manager entries=5&lt;/blockquote&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;              Then, we create the pfile and add the following&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;For the sake of simplicity we will create the pfile in $ORACLE_HOME/dbs/initdup.ora&lt;br /&gt;From the 9.2 database administration guide, here is a sample init file, modify it as necessary.&lt;br /&gt;&lt;blockquote&gt;# Cache and I/O&lt;br /&gt;DB_BLOCK_SIZE=4096&lt;br /&gt;DB_CACHE_SIZE=20971520&lt;br /&gt;&lt;br /&gt;# Cursors and Library Cache&lt;br /&gt;CURSOR_SHARING=SIMILAR&lt;br /&gt;OPEN_CURSORS=300&lt;br /&gt;&lt;br /&gt;# Diagnostics and Statistics&lt;br /&gt;BACKGROUND_DUMP_DEST=/vobs/oracle/admin/mynewdb/bdump&lt;br /&gt;CORE_DUMP_DEST=/vobs/oracle/admin/mynewdb/cdump&lt;br /&gt;TIMED_STATISTICS=TRUE&lt;br /&gt;USER_DUMP_DEST=/vobs/oracle/admin/mynewdb/udump&lt;br /&gt;&lt;br /&gt;# Control File Configuration&lt;br /&gt;CONTROL_FILES=("/recovery_path/control01.ctl",&lt;br /&gt;               "/recovery_path/control02.ctl",&lt;br /&gt;               "/recovery_path/control03.ctl")&lt;br /&gt;&lt;br /&gt;# Archive&lt;br /&gt;LOG_ARCHIVE_DEST_1='LOCATION=/vobs/oracle/oradata/mynewdb/archive'&lt;br /&gt;LOG_ARCHIVE_FORMAT=%t_%s.dbf&lt;br /&gt;LOG_ARCHIVE_START=TRUE&lt;br /&gt;&lt;br /&gt;# Shared Server&lt;br /&gt;# Uncomment and use first DISPATCHES parameter below when your listener is&lt;br /&gt;# configured for SSL &lt;br /&gt;# (listener.ora and sqlnet.ora)&lt;br /&gt;# DISPATCHERS = "(PROTOCOL=TCPS)(SER=MODOSE)",&lt;br /&gt;#               "(PROTOCOL=TCPS)(PRE=oracle.aurora.server.SGiopServer)"&lt;br /&gt;DISPATCHERS="(PROTOCOL=TCP)(SER=MODOSE)",&lt;br /&gt;            "(PROTOCOL=TCP)(PRE=oracle.aurora.server.SGiopServer)",&lt;br /&gt;             (PROTOCOL=TCP)&lt;br /&gt;&lt;br /&gt;# Miscellaneous&lt;br /&gt;COMPATIBLE=9.2.0&lt;br /&gt;DB_NAME=dup&lt;br /&gt;&lt;br /&gt;# Distributed, Replication and Snapshot&lt;br /&gt;DB_DOMAIN=us.oracle.com&lt;br /&gt;REMOTE_LOGIN_PASSWORDFILE=EXCLUSIVE&lt;br /&gt;&lt;br /&gt;# Network Registration&lt;br /&gt;INSTANCE_NAME=mynewdb&lt;br /&gt;&lt;br /&gt;# Pools&lt;br /&gt;JAVA_POOL_SIZE=31457280&lt;br /&gt;LARGE_POOL_SIZE=1048576&lt;br /&gt;SHARED_POOL_SIZE=52428800&lt;br /&gt;&lt;br /&gt;# Processes and Sessions&lt;br /&gt;PROCESSES=150&lt;br /&gt;&lt;br /&gt;# Redo Log and Recovery&lt;br /&gt;FAST_START_MTTR_TARGET=300&lt;br /&gt;&lt;br /&gt;# Resource Manager&lt;br /&gt;RESOURCE_MANAGER_PLAN=SYSTEM_PLAN&lt;br /&gt;&lt;br /&gt;# Sort, Hash Joins, Bitmap Indexes&lt;br /&gt;SORT_AREA_SIZE=524288&lt;br /&gt;&lt;br /&gt;# Automatic Undo Management&lt;br /&gt;UNDO_MANAGEMENT=AUTO&lt;br /&gt;UNDO_TABLESPACE=UNDOTBS01&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;Note that you might want to use PGA_TARGET instead of SORT_AREA_SIZE, and in 10g SGA_TARGET instead of DB_CACHE_SIZE and the various auto-tunable pools. (I think 11g supports MEMORY_TARGET or something of the sort)&lt;br /&gt;b. create directory structure to support this new instance&lt;br /&gt;The directories for all the ****_dump_dest must exist and so does the directory structure for the database files (archive, controlfiles, datafiles), so you must create them, as rman will not create them automatically. Use the -p option of mkdir to make your task easier.&lt;br /&gt;&lt;br /&gt;       c. start the instance (we will not create control files as that will be automatically done with rman's duplicate)&lt;br /&gt;   from a shell run the following&lt;br /&gt;&lt;blockquote&gt;ORACLE_SID=dup; export ORACLE_SID&lt;br /&gt;sqlplus "/ as sysdba"&lt;br /&gt;startup nomount&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;you may use the pfile=FULL_PATH_TO_PFILE parameter to indicate where the pfile is, in case it's not in the default path ($ORACLE_HOME/dbs/initdip.ora)&lt;br /&gt;&lt;br /&gt;2. We need to connect with rman to both the target database (the one we want to duplicate) and the auxiliary database (the one we just created), we do so this way&lt;br /&gt;&lt;blockquote&gt;rman target system/manager@orig auxiliary / nocatalog&lt;/blockquote&gt;&lt;br /&gt;we can use an rman catalog, though it's not strictly necessary.&lt;br /&gt;&lt;br /&gt;3. Once we are conected to the database, we simply need run the duplicate command in this way&lt;br /&gt;&lt;blockquote&gt;run{&lt;br /&gt;allocate auxiliary channel d1 type disk;&lt;br /&gt;--Here we have various options, however we will use db_file_name_convert as it is a lot simpler than the other. Check the documentation for alternatives&lt;br /&gt;UPLICATE TARGET DATABASE TO dup&lt;br /&gt;DB_FILE_NAME_CONVERT=('/u01/oracle/dbs/orig/','/u01/oracle/oradata/dup/')&lt;br /&gt;UNTIL TIME 'SYSDATE-1'  # specifies incomplete recovery&lt;br /&gt;    SKIP TABLESPACE cmwlite, drsys, example   # skip desired tablespaces&lt;br /&gt;    PFILE = ?/dbs/initdup.ora&lt;br /&gt;    lOGFILE&lt;br /&gt;      GROUP 1 ('/u01/oracle/oradata/redo01_1.log') SIZE 200K, &lt;br /&gt;      GROUP 2 ('/u01/oracle/oradata/redo02_1.log') SIZE 200K, &lt;br /&gt;      GROUP 3 ('/u01/oracle/oradata/redo03_1.log') SIZE 200K REUSE;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;the auxiliary channel may be allocated to a tape device, but that depends on the setup. We are using disk here for the sake of simplicity. We may also allocate multiple channels to obtain better performance.&lt;br /&gt;&lt;br /&gt;4. To open the new database we simply connect to it and open it using resetlogs option&lt;br /&gt;&lt;blockquote&gt;ORACLE_SID=dup; export ORACLE_SID&lt;br /&gt;sqlplus "/ as sysdba"&lt;br /&gt;alter database open resetlogs;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;5. We may now begin exporting the necessary data and importing it to production.&lt;br /&gt;&lt;br /&gt;I hope you find this useful, please feel free to comment anything and note that as I find new things I will be modifying this post. This method has worked for me a few times already, so I'm confident it works.&lt;br /&gt;&lt;br /&gt;HTH&lt;br /&gt;Guillermo Alan Bort&lt;br /&gt;Oracle Certified Associate - Database 10g.-&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6780070809638617595-1619210664932336297?l=cicciuxdba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cicciuxdba.blogspot.com/feeds/1619210664932336297/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6780070809638617595&amp;postID=1619210664932336297' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6780070809638617595/posts/default/1619210664932336297'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6780070809638617595/posts/default/1619210664932336297'/><link rel='alternate' type='text/html' href='http://cicciuxdba.blogspot.com/2008/12/partial-incomplete-recovery-9i.html' title='Partial incomplete recovery 9i'/><author><name>Gigante Legendario</name><uri>http://www.blogger.com/profile/15481531340477523095</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://2.bp.blogspot.com/_girCAOWwzIo/Svx1W0eEXvI/AAAAAAAAB2U/WL8tw7_dchI/S220/bort-laptop_s.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6780070809638617595.post-7301065765432596770</id><published>2008-12-24T11:24:00.001-08:00</published><updated>2008-12-27T21:04:02.976-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='non technical'/><title type='text'>Oracle Certified Associate</title><content type='html'>I recently received the 10g OCA certificate, it's the first step towards achieving the OCP credential. I thought it would be wise to start documenting my experiences with Oracle Database in order to become better known in the Oracle Community. I hope you find this blog helpful as I have many others around.&lt;br /&gt;&lt;br /&gt;hth&lt;br /&gt;Guillermo Alan Bort&lt;br /&gt;Oracle Certified Associate - Database 10g&lt;br /&gt;Cicciux.-&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6780070809638617595-7301065765432596770?l=cicciuxdba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cicciuxdba.blogspot.com/feeds/7301065765432596770/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6780070809638617595&amp;postID=7301065765432596770' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6780070809638617595/posts/default/7301065765432596770'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6780070809638617595/posts/default/7301065765432596770'/><link rel='alternate' type='text/html' href='http://cicciuxdba.blogspot.com/2008/12/oracle-certified-associate.html' title='Oracle Certified Associate'/><author><name>Gigante Legendario</name><uri>http://www.blogger.com/profile/15481531340477523095</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://2.bp.blogspot.com/_girCAOWwzIo/Svx1W0eEXvI/AAAAAAAAB2U/WL8tw7_dchI/S220/bort-laptop_s.jpg'/></author><thr:total>1</thr:total></entry></feed>
