Solved

Howto restore oracle windows cold backup on linux platform?

Posted on 2008-09-29
2
1,789 Views
Last Modified: 2013-12-18
Hi everyone. Hopefully somebody can help me with Oracle 10g. I'm not a oracle expert at all.

I want to take a cold oracle backup, and restore it on a linux (fedora 9) platform. From the windows oracle base, I shutdown the database, and copied all directories (orcl) underneath the oradata directory. I then stepped over to my linux machine, and dumped all the data into the corresponding 'oradata' directory.

I then:
1. rman target /
2. startup mount
3. alter database open;

The database did not want to start the database for the data files are located somewhere on the 'c:\oracle\product\10.2.0\oradata' folder. What do I need to change for oracle to point to the /u01/oracle/...' files? I tried the 'alter database rename file x to y', but it needs the original filename to be existing.

Any ideas?
Martin
0
Comment
Question by:DaBump
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 35

Accepted Solution

by:
johnsone earned 250 total points
ID: 22597472
With Oracle 10g, there is a documented procedure where you can move transportable tablespaces between operating systems.  This would mean you would have to create an empty database on the Linux side, create all the users, then use transportable tablespaces to move the data files.  After moving the data files, you would then need to recreate all objects that reside in the SYSTEM tablespace (sequences, procedures, functions, packages, etc.).  I have not done this on a database level before, so I'm not sure of everything that would need to be recreated (for example, triggers should come across but I am not sure).

I am not sure this is possible with a backup.  It may be, but I have not seen it.
0
 

Author Closing Comment

by:DaBump
ID: 31501124
Thanks johnsone. I did exactly as you mentioned, I export the complete tablespace from the windows machine using the 'exp' tool.

i.e. 'exp system/password file=exp.dbf full=yes'

Then on linux machine, I created the user, and imported the data using the 'imp' tool with the username it belongs to. Worked great, thanks.

Martin
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.
Suggested Courses

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question