dbTalk Databases Forums  

Re: Migrating from Win2k3 to linux

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss Re: Migrating from Win2k3 to linux in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
gym dot scuba dot kennedy at gmail
 
Posts: n/a

Default Re: Migrating from Win2k3 to linux - 11-22-2008 , 08:27 PM







"Jan Lühr" <usenet (AT) stephan (DOT) homeunix.net> wrote

Quote:
Hello,

I'm trying to migrate an existing database. So far I've done a cold backup
and copied all database and control files to the new host.
However - some paths are messed up - of course, since Linux can't handle
c:\.
Do you know a(convienient, efficient ;-) way to identify and change messy
paths of data files, log files, etc.?

Thanks in advance,
Keep smiling
yanosz
Just copying the database files etc. may not do it. I would do a full
export from the original and then do a full import in the target.
(pre-create the tablespaces in the target db)
Jim




Reply With Quote
  #2  
Old   
Vladimir M. Zakharychev
 
Posts: n/a

Default Re: Migrating from Win2k3 to linux - 11-23-2008 , 10:53 AM






On Nov 23, 3:34*am, Jan Lühr <use... (AT) stephan (DOT) homeunix.net> wrote:
Quote:
Hello,

I'm trying to migrate an existing database. So far I've done a cold
backup and copied all database and control files to the new host.
However - some paths are messed up - of course, since Linux can't handle
c:\.
Do you know a(convienient, efficient ;-) way to identify and change
messy paths of data files, log files, etc.?

Thanks in advance,
Keep smiling
yanosz
Given the same bitness and endianness of source and target there
shouldn't be any issues with binary compatibility of that backup To
rename the files, you need to record the file names in the source
database by querying V$LOGFILE, V$DATAFILE and V$TEMPFILE and saving
the results of these queries for reference; CREATE PFILE='c:\init.ora'
FROM SPFILE at the source, copy that init.ora to the target, fix the
paths to control file copies in it (as well as various xxx_dest
destinations) and issue STARTUP MOUNT PFILE='/path/to/copied-and-
edited/init.ora' at the target; and finally ALTER DATABASE RENAME FILE
'c:\source\dir\filename.dbf' TO '/whatever/the/new/path/is/
filename.dbf' for each file name you recorded earlier. Then you can
issue ALTER DATABASE OPEN to verify that all files were properly
renamed and are accessible to Oracle. When you are sure Oracle is
working as expected at its new home, you CREATE SPFILE FROM PFILE='/
path/to/copied-and-edited/init.ora' followed by SHUTDOWN and STARTUP.

Hth,
Vladimir M. Zakharychev
N-Networks, makers of Dynamic PSP(tm)
http://www.dynamicpsp.com


Reply With Quote
  #3  
Old   
Vladimir M. Zakharychev
 
Posts: n/a

Default Re: Migrating from Win2k3 to linux - 11-23-2008 , 10:53 AM



On Nov 23, 3:34*am, Jan Lühr <use... (AT) stephan (DOT) homeunix.net> wrote:
Quote:
Hello,

I'm trying to migrate an existing database. So far I've done a cold
backup and copied all database and control files to the new host.
However - some paths are messed up - of course, since Linux can't handle
c:\.
Do you know a(convienient, efficient ;-) way to identify and change
messy paths of data files, log files, etc.?

Thanks in advance,
Keep smiling
yanosz
Given the same bitness and endianness of source and target there
shouldn't be any issues with binary compatibility of that backup To
rename the files, you need to record the file names in the source
database by querying V$LOGFILE, V$DATAFILE and V$TEMPFILE and saving
the results of these queries for reference; CREATE PFILE='c:\init.ora'
FROM SPFILE at the source, copy that init.ora to the target, fix the
paths to control file copies in it (as well as various xxx_dest
destinations) and issue STARTUP MOUNT PFILE='/path/to/copied-and-
edited/init.ora' at the target; and finally ALTER DATABASE RENAME FILE
'c:\source\dir\filename.dbf' TO '/whatever/the/new/path/is/
filename.dbf' for each file name you recorded earlier. Then you can
issue ALTER DATABASE OPEN to verify that all files were properly
renamed and are accessible to Oracle. When you are sure Oracle is
working as expected at its new home, you CREATE SPFILE FROM PFILE='/
path/to/copied-and-edited/init.ora' followed by SHUTDOWN and STARTUP.

Hth,
Vladimir M. Zakharychev
N-Networks, makers of Dynamic PSP(tm)
http://www.dynamicpsp.com


Reply With Quote
  #4  
Old   
Vladimir M. Zakharychev
 
Posts: n/a

Default Re: Migrating from Win2k3 to linux - 11-23-2008 , 10:53 AM



On Nov 23, 3:34*am, Jan Lühr <use... (AT) stephan (DOT) homeunix.net> wrote:
Quote:
Hello,

I'm trying to migrate an existing database. So far I've done a cold
backup and copied all database and control files to the new host.
However - some paths are messed up - of course, since Linux can't handle
c:\.
Do you know a(convienient, efficient ;-) way to identify and change
messy paths of data files, log files, etc.?

Thanks in advance,
Keep smiling
yanosz
Given the same bitness and endianness of source and target there
shouldn't be any issues with binary compatibility of that backup To
rename the files, you need to record the file names in the source
database by querying V$LOGFILE, V$DATAFILE and V$TEMPFILE and saving
the results of these queries for reference; CREATE PFILE='c:\init.ora'
FROM SPFILE at the source, copy that init.ora to the target, fix the
paths to control file copies in it (as well as various xxx_dest
destinations) and issue STARTUP MOUNT PFILE='/path/to/copied-and-
edited/init.ora' at the target; and finally ALTER DATABASE RENAME FILE
'c:\source\dir\filename.dbf' TO '/whatever/the/new/path/is/
filename.dbf' for each file name you recorded earlier. Then you can
issue ALTER DATABASE OPEN to verify that all files were properly
renamed and are accessible to Oracle. When you are sure Oracle is
working as expected at its new home, you CREATE SPFILE FROM PFILE='/
path/to/copied-and-edited/init.ora' followed by SHUTDOWN and STARTUP.

Hth,
Vladimir M. Zakharychev
N-Networks, makers of Dynamic PSP(tm)
http://www.dynamicpsp.com


Reply With Quote
  #5  
Old   
Vladimir M. Zakharychev
 
Posts: n/a

Default Re: Migrating from Win2k3 to linux - 11-23-2008 , 10:53 AM



On Nov 23, 3:34*am, Jan Lühr <use... (AT) stephan (DOT) homeunix.net> wrote:
Quote:
Hello,

I'm trying to migrate an existing database. So far I've done a cold
backup and copied all database and control files to the new host.
However - some paths are messed up - of course, since Linux can't handle
c:\.
Do you know a(convienient, efficient ;-) way to identify and change
messy paths of data files, log files, etc.?

Thanks in advance,
Keep smiling
yanosz
Given the same bitness and endianness of source and target there
shouldn't be any issues with binary compatibility of that backup To
rename the files, you need to record the file names in the source
database by querying V$LOGFILE, V$DATAFILE and V$TEMPFILE and saving
the results of these queries for reference; CREATE PFILE='c:\init.ora'
FROM SPFILE at the source, copy that init.ora to the target, fix the
paths to control file copies in it (as well as various xxx_dest
destinations) and issue STARTUP MOUNT PFILE='/path/to/copied-and-
edited/init.ora' at the target; and finally ALTER DATABASE RENAME FILE
'c:\source\dir\filename.dbf' TO '/whatever/the/new/path/is/
filename.dbf' for each file name you recorded earlier. Then you can
issue ALTER DATABASE OPEN to verify that all files were properly
renamed and are accessible to Oracle. When you are sure Oracle is
working as expected at its new home, you CREATE SPFILE FROM PFILE='/
path/to/copied-and-edited/init.ora' followed by SHUTDOWN and STARTUP.

Hth,
Vladimir M. Zakharychev
N-Networks, makers of Dynamic PSP(tm)
http://www.dynamicpsp.com


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.