Oracle 11g R2 UNIX Recovery

Hi,

We have a critical apps running in Oracle 11g in UNIX (HPUX), it is setup in the following;

Binary - in disk1 mount point
Data - disk2 mount point
Log - disk3 mount point
Control File 2 - disk4
Control File 3 - disk5

We need to run a restore, recovery test to the original server without impacting the data. Our plan is assign replacement disk to disk2, disk3, disk4 and disk5. We do not have cloning utility and disk size also slightly smaller than original - but enough to hold the data.
After copying the data from original disk to the new replacement disk - we unmounted all the original disk. But found that Oracle does not seems to work, we try using command "alter database open" and it fail with error "media need recovery etc".

Can someone advise how, what is the best method to get the environment ready for our restore testing by using disk replacement approach.

Thank you for your advise in advance.
Keng0499Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Wasim Akram ShaikCommented:
issue the command

alter database recover ;

and try

alter database open;
0
gheistCommented:
Killing oracle process kills the data on disk.
"log" in oracle does not mean that this is the only exact file having data logged etc.
0
Keng0499Author Commented:
Sorry, I should have phrase my question clearly. I am looking for a solution where i can make a duplicate of oracle data to a different disk/mount point, subsequently un-mount the original disk/mount point and use the duplicate set of oracle data just created.

Example:
Original datafile in mount point ABC
Shutdown Oracle instance
Copy the datafile to another location/disk/mount point
Remove original mount point ABC, replacing with the duplicate mount point

does the above procedure make sense? What is the steps that was missing?  That cause Oracle instance has issue after the replacement.

We don't have much Oracle expertise, appolosize if my question does not make much sense.
0
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

slightwv (䄆 Netminder) Commented:
Two ways

1- Just rename the data files:
http://docs.oracle.com/cd/E11882_01/server.112/e25494/dfiles005.htm

2- Recreate the control files.
    a- from a sqlplus prompt:   alter database backup controlfile to trace;
        this generates a trace file with the create controlfile syntax.  Go find the newly created trace file in the trace folder under the directory pointed to by the diagnostic_dest spfile parameter.
    b- edit this file.  Locate the section "Set #1. NORESETLOGS case"
         delete set #2.
      make your folder changes
    c- shutdown your database, move your files, startup nomount, run the script to recreate the control files.  open the database.
0
Keng0499Author Commented:
Hi slightwv,

I intend to copy, rather than move because after doing the testing on the duplicate set, i want to revert back to original set. It is like putting a UAT and Production on the same server with identical set - depending on which disk volume i mount to server.

From what i read, seems that rename will not apply. Does the method #2 apply?

Thx
0
slightwv (䄆 Netminder) Commented:
>>It is like putting a UAT and Production on the same server with identical set

OH, Forget my examples.  That is form keeping the same database and changing the mount points.  I mis-read what you were wanting to do.

To duplicate a database, check out RMAN cloning.  The doc link:
http://docs.oracle.com/cd/E11882_01/backup.112/e10642/rcmdupdb.htm

This blog post seems to have the steps to duplicate on the same server.  I cannot ensure it is 100% accurate:

http://www.shutdownabort.com/quickguides/clone_rman.php
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Keng0499Author Commented:
Thx. Will get the rest of team member to digest the info together.

The steps quite complicated for us. We thought that we can approach from system like how we did it for Windows SQL DB, i.e. copy all the data folder to new disks, remove old disks, restart back the DB - once complete testing, then we remount back the original disk as if nothing has change.

So Oracle is quite different.
0
slightwv (䄆 Netminder) Commented:
Unfortunately Oracle needs other files/folders/etc... in specific locations.  Not just as simple as copying some files around.  You also need to make sure you have a unique databsae name.

RMAN is probably the easiest but if you prefer to manually do it check out the following:
http://www.dba-oracle.com/oracle_tips_db_copy.htm

The link above assumes a different host but should be the same for a local host.
0
Keng0499Author Commented:
Interesting.

We do online backup thru backup agent - which is rman. Because thru backup software, so backup restore more transparent. I always thought that if can affort to shutdown, backup all the folder consist of oracle and restore to "original folder", even if the disk has change - is the simplest.
0
slightwv (䄆 Netminder) Commented:
In today's world, Cold backups can have disadvantages and no real advantage.

Tom Kyte has a brief discussion on this topic here:
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:981953432485
0
gheistCommented:
Full information about creating a copy of a DB in other directory, eventually on another continent. http://docs.oracle.com/cd/B19306_01/server.102/b14228/gen_rep.htm
0
slightwv (䄆 Netminder) Commented:
>>Full information about creating a copy of a DB in other directory

I did not see where cloning a database was talked about in the Streams Replication Overview guide.
0
gheistCommented:
it makes a transation-accurate copy of database....
sort of order of blocks on the disk has no relevance for DB logic. after that is running he has a spare database to make cold copies, patch tests, etc.
0
slightwv (䄆 Netminder) Commented:
>>it makes a transation-accurate copy of database....

That is not what is being asked for here.  The question here is ot make a static copy of production for testing.  Once testing is done, the database is removed.

Strreams is a LIVE connection that will propogate changes from one database to the other as they happen.  Even if you set up streams, you still need the inintial copy to start from.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Oracle Database

From novice to tech pro — start learning today.