Moving from one Windows environment to another Linux environment [message #558118] |
Tue, 19 June 2012 08:26 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
Andrey_R
Messages: 441 Registered: January 2012 Location: Israel
|
Senior Member |
|
|
Hi All,
I'm trying to move my backup sets from windows database environment,
to OEL 5.7 environment on another server.
I've found a manual
http://dba-oracle.com/t_rman_clone_copy_database.htm
by which I am trying to do it.
I took backup sets from last night's backup using RMAN,
and the current parameter(initSID.ora) file from the running live database.
Now i need to configure control files in the pfile accordingly.
the questions are:
1.
can i take current control files from the running system,
to restore and recover backup sets from last night,
to the state the database was at backup time?
2. how can i find out if control files are backed up and know by RMAN?
"list backup completed after '2012-JUN-19';" >> gives me Archive redo logs,
datafiles, but don't see the control files(or don't reconize them).
thanks in advance,
Andrey
|
|
|
|
|
|
|
|
Re: Moving from one Windows environment to another Linux environment [message #558187 is a reply to message #558149] |
Wed, 20 June 2012 02:12 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
Andrey_R
Messages: 441 Registered: January 2012 Location: Israel
|
Senior Member |
|
|
I've read some of the documentation.seems quit complex,
and requires keeping the source database in a read-only mode, for part of the process.
what I *actually have* is backup sets, pfile, and also control file
produced by RMAN incremental level 0 backup procedure.
(I've had some misunderstanding of weather control file could be current,
or has to be created at the time of backup -only- , but I'll try to figure it out later on).
can't I take those backup sets and files produced by RMAN in Windows OS database server instance,
and somehow recover them on a 5.7 OEL database server instance?
Thanks to all helpers.
Andrey
[Updated on: Wed, 20 June 2012 04:19] Report message to a moderator
|
|
|
|
|
|
Re: Moving from one Windows environment to another Linux environment [message #558347 is a reply to message #558251] |
Thu, 21 June 2012 03:03 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
Andrey_R
Messages: 441 Registered: January 2012 Location: Israel
|
Senior Member |
|
|
Quote:Export/Import is quite easy.
1. Export with datapump of full database from Oracle 10g on Windows 32 bit server
2. Moving the dump file(s) to the Linux server
3. Import with datapump of full database to Oracle 11g on OEL 5.7 64 bit
4. fixing privileges on objects owned by special system users,
like SYS, given to normal users(the ones vital for the application)
(a) will it work by the following stages?
(b) anything unexpected or specific I should be ready to encounter in this process?
Thank you,
Andrey
[Updated on: Thu, 21 June 2012 03:03] Report message to a moderator
|
|
|
|
Re: Moving from one Windows environment to another Linux environment [message #558371 is a reply to message #558368] |
Thu, 21 June 2012 07:39 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
Andrey_R
Messages: 441 Registered: January 2012 Location: Israel
|
Senior Member |
|
|
Mahesh Rajendran wrote on Thu, 21 June 2012 15:04*Are you talking about SYS account/ SYSDBA privileges?
I meant: giving privileges to *objects* owned by SYS and such,
which are not transported and might be vital for application to run correctly.
from Oracle documentation:
Restrictions
Grants on objects owned by the SYS schema are never exported.
( http://docs.oracle.com/cd/B28359_01/server.111/b28319/dp_export.htm
Quote:I would use the same version of export and import. There might be incomptibilities.
do you mean, you would install a 10g datapump utility on the Linux server, to impdp the database into the oracle 11g instance???
Wouldn't be simpler just to impdp using the VERSION=LATEST ???
Quote: I would first set up a parallel environment, try above and then do it for real.
This is what i intend to do - bring up a VM copy of my database server, and get started with the testing.
Quote: I also presume you have not yet tested your application in 11g.
oh, I have. It works fine.
|
|
|
Re: Moving from one Windows environment to another Linux environment [message #558374 is a reply to message #558371] |
Thu, 21 June 2012 08:15 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
![](/forum/images/custom_avatars/42800.jpg) |
Mahesh Rajendran
Messages: 10708 Registered: March 2002 Location: oracleDocoVille
|
Senior Member Account Moderator |
|
|
>> I meant: giving privileges to *objects* owned by SYS and such,
Metadata objects owned by SYS will exist in the new database (with newer version).
You no need to worry about it.
If SYS owns custom objects/tables that are used by application, that is not good.
With VERSION, all you ask is to consider the objects that are "compatible". If the object is not compatible, it wont be considered.
Quote:The VERSION parameter simply allows you to identify the version of the objects being exported.
By using the same version expdp/impdp tools to export and import you solve most of the problems with compatibility as VERSION is implicitly defined (not less than oracle 9)
>>do you mean, you would install a 10g datapump utility on the Linux server, to impdp the database into the oracle 11g instance???
No.
You can do a remote import. Just use tnsnames entry.
from 10g
expdp or impdp user/pass@11g_database
or
from 11g
expdp or impdp user/pass@10g_database
[Updated on: Thu, 21 June 2012 08:16] Report message to a moderator
|
|
|
Re: Moving from one Windows environment to another Linux environment [message #558375 is a reply to message #558374] |
Thu, 21 June 2012 08:27 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
Andrey_R
Messages: 441 Registered: January 2012 Location: Israel
|
Senior Member |
|
|
I am not worrying about their *existence* - I worry about giving ordinary imported users privileges to *use*(select, execute, whatever) some of the objects owned by system users like SYS (such as select on v$session, for example), which i understand from the documentation - will not be imported, so I will have to complete those manually.
expdp from Linux server on 10g Database on Windows server, then impdp.
I like this Idea.
Thank you all, and specially Mahesh Rajendran for your kind help,
I'll update if it worked and share issues I have encountered when I finish.
Regards,
Andrey
|
|
|
|