Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Howto restore oracle windows cold backup on linux platform?

Posted on 2008-09-29
2
Medium Priority
?
1,798 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
2 Comments
 
LVL 35

Accepted Solution

by:
johnsone earned 1000 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

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

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

Note: this article covers simple compression. Oracle introduced in version 11g release 2 a new feature called Advanced Compression which is not covered here. General principle of Oracle compression Oracle compression is a way of reducing the d…
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.
Suggested Courses

916 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