Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Howto restore oracle windows cold backup on linux platform?

Posted on 2008-09-29
2
Medium Priority
?
1,792 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 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

This article started out as an Experts-Exchange question, which then grew into a quick tip to go along with an IOUG presentation for the Collaborate confernce and then later grew again into a full blown article with expanded functionality and legacy…
Shell script to create broker configuration file using current broker Configuration, solely for purpose of backup on Linux. Script may need to be modified depending on OS-installation. Please deploy and verify the script in a test environment.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…

722 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