Solved

Howto restore oracle windows cold backup on linux platform?

Posted on 2008-09-29
2
1,776 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 34

Accepted Solution

by:
johnsone earned 250 total points
Comment Utility
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
Comment Utility
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

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…
Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
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.

744 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now