Backup & restore/recover Oracle BASE
Before apply upgrade patchset & CUPs i want to take backup of Oracle BASE, any body can send me command/method to do that , and for restore/recover steps also....OS is Solaris8 .....920x are DBs
Is this right?No
cd /product/DBHome
tar cf - * | gzip > /product/archive/DBHome.tar.gzgtar -zcvf /product/archive/DBHome.tar.gz *
>
to restore
Next, delete the Oracle Home:
cd /product
rm -rf /product/DBHome
Restore the backuped Oracle HOME
mkdir -p /product/DBHome
gunzip < c| tar xf -gtar -zxvf /product/archive/DBHome.tar.gz
Similar Messages
-
Restore and recover Oracle 10g database from tape.
I have a very basic question for restore and recover Oracle 10g database. Our envirnment settings are:
Oracle 10g on Unix, daily database and archivelog backup to Vista NetBackup server. Retention policy is 2. Old backup files are copied from NetBackup server to the tape for record keeping.
I want to restore a database to a point in time. Because our retention policy is setup to 2. The backup files I need have been copied to the tape. So I should ask SYSTEM ADMIN to copy the backup files back to NetBackup server disk or I can ask him to copy backup files to the Unix server that host my Oracle 10g database. Then I can use Rman to do restore and recover. Is this doable? I know normal procedure is to copy backup files I need back to NetBackup server disk, not directly back to database server. Please put your comments here as early as better. I do appreciate your kind help.853153 wrote:
I have a very basic question for restore and recover Oracle 10g database. Our envirnment settings are:
Oracle 10g on Unix, daily database and archivelog backup to Vista NetBackup server. Retention policy is 2. Old backup files are copied from NetBackup server to the tape for record keeping.
I want to restore a database to a point in time. Because our retention policy is setup to 2. The backup files I need have been copied to the tape. So I should ask SYSTEM ADMIN to copy the backup files back to NetBackup server disk or I can ask him to copy backup files to the Unix server that host my Oracle 10g database. Then I can use Rman to do restore and recover. Is this doable? I know normal procedure is to copy backup files I need back to NetBackup server disk, not directly back to database server. Please put your comments here as early as better. I do appreciate your kind help.For sure it is double work, To copy backup files on UNIX host.
Are you using catalog or nocatalog?
If the backup information is out of retention, Catalog them again also in netbackup.
So that you can able to restore database directly without copying those files to host. -
Oracle backup & restore problem
Hi Team,
I am new to the RMAN, I want to test Backup & restore operation
I have database called Test , I am creating new table in the database called Test_table through SQL *coPlus create mmand.
Now After this I am taking backup the of all cotrolfile , datafile & snapshot file.
once again I am opening this database in SQL *plus & deleted the table (Test_table).
Now if restore back the database with backup set taken before deleting table. It is not showing me the Test_table.
What is the problem? Plz help..Hi,
Thanks for replay,
Using Windows XP & ORACLE 9i
I am doing following steps.
Created one table ( Test_table ) in database my Test database.
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\Administrator>rman
Recovery Manager: Release 9.2.0.1.0 - Production
Copyright (c) 1995, 2002, Oracle Corporation. All rights reserved.
RMAN> connect target system/sreedhar@Test;
connected to target database: Test (DBID=1558624384)
RMAN> show all;
using target database controlfile instead of recovery catalog
RMAN configuration parameters are:
CONFIGURE RETENTION POLICY TO REDUNDANCY 1;
CONFIGURE BACKUP OPTIMIZATION OFF; # default
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO 'C:\Testing\CTL_
%F';
configuration for DISK channel 2 is ignored
CONFIGURE DEVICE TYPE DISK PARALLELISM 1;
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1;
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE CHANNEL 1 DEVICE TYPE DISK FORMAT 'C:\Testing\DBF_%U';
CONFIGURE CHANNEL 2 DEVICE TYPE DISK FORMAT 'C:\RmanBack\std_%U';
CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT 'C:\Testing\CHA_Dev_%U_%S_%P';
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO 'C:\TESTING\SNCFTest.ORA';
RMAN> backup database;
Starting backup at 06-OCT-06
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=9 devtype=DISK
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
input datafile fno=00001 name=C:\ORACLE\ORADATA\Test\SYSTEM01.DBF
input datafile fno=00002 name=C:\ORACLE\ORADATA\Test\UNDOTBS01.DBF
input datafile fno=00005 name=C:\ORACLE\ORADATA\Test\EXAMPLE01.DBF
input datafile fno=00010 name=C:\ORACLE\ORADATA\Test\XDB01.DBF
input datafile fno=00006 name=C:\ORACLE\ORADATA\Test\INDX01.DBF
input datafile fno=00009 name=C:\ORACLE\ORADATA\Test\USERS01.DBF
input datafile fno=00003 name=C:\ORACLE\ORADATA\Test\CWMLITE01.DBF
input datafile fno=00004 name=C:\ORACLE\ORADATA\Test\DRSYS01.DBF
input datafile fno=00007 name=C:\ORACLE\ORADATA\Test\ODM01.DBF
input datafile fno=00008 name=C:\ORACLE\ORADATA\Test\TOOLS01.DBF
channel ORA_DISK_1: starting piece 1 at 06-OCT-06
channel ORA_DISK_1: finished piece 1 at 06-OCT-06
piece handle=C:\TESTING\DBF_0QHV5L4T_1_1 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:01:05
Finished backup at 06-OCT-06
Starting Control File and SPFILE Autobackup at 06-OCT-06
piece handle=C:\TESTING\CTL_C-1558624384-20061006-01 comment=NONE
Finished Control File and SPFILE Autobackup at 06-OCT-06
RMAN> exit
Recovery Manager complete.
After this backup I am deleting this Test_table table using SQL *PLUS Drop table clause.
Also deleted the all .DBF files from Test folder. and I am restoring now the old backup set which has the information regarding the Test_table.
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\Administrator>rman
Recovery Manager: Release 9.2.0.1.0 - Production
Copyright (c) 1995, 2002, Oracle Corporation. All rights reserved.
RMAN> connect target system/sreedhar@Test;
connected to target database (not started)
RMAN> startup mount;
Oracle instance started
database mounted
Total System Global Area 252779340 bytes
Fixed Size 453452 bytes
Variable Size 125829120 bytes
Database Buffers 125829120 bytes
Redo Buffers 667648 bytes
RMAN> show all;
using target database controlfile instead of recovery catalog
RMAN configuration parameters are:
CONFIGURE RETENTION POLICY TO REDUNDANCY 1;
CONFIGURE BACKUP OPTIMIZATION OFF; # default
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO 'C:\Testing\CTL_
%F';
configuration for DISK channel 2 is ignored
CONFIGURE DEVICE TYPE DISK PARALLELISM 1;
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1;
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE CHANNEL 1 DEVICE TYPE DISK FORMAT 'C:\Testing\DBF_%U';
CONFIGURE CHANNEL 2 DEVICE TYPE DISK FORMAT 'C:\RmanBack\std_%U';
CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT 'C:\Testing\CHA_Dev_%U_%S_%P';
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO 'C:\TESTING\SNCFTest.ORA';
RMAN> restore database;
Starting restore at 06-OCT-06
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=11 devtype=DISK
channel ORA_DISK_1: starting datafile backupset restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
restoring datafile 00001 to C:\ORACLE\ORADATA\Test\SYSTEM01.DBF
restoring datafile 00002 to C:\ORACLE\ORADATA\Test\UNDOTBS01.DBF
restoring datafile 00003 to C:\ORACLE\ORADATA\Test\CWMLITE01.DBF
restoring datafile 00004 to C:\ORACLE\ORADATA\Test\DRSYS01.DBF
restoring datafile 00005 to C:\ORACLE\ORADATA\Test\EXAMPLE01.DBF
restoring datafile 00006 to C:\ORACLE\ORADATA\Test\INDX01.DBF
restoring datafile 00007 to C:\ORACLE\ORADATA\Test\ODM01.DBF
restoring datafile 00008 to C:\ORACLE\ORADATA\Test\TOOLS01.DBF
restoring datafile 00009 to C:\ORACLE\ORADATA\Test\USERS01.DBF
restoring datafile 00010 to C:\ORACLE\ORADATA\Test\XDB01.DBF
channel ORA_DISK_1: restored backup piece 1
piece handle=C:\TESTING\DBF_0QHV5L4T_1_1 tag=TAG20061006T122500 params=NULL
channel ORA_DISK_1: restore complete
Finished restore at 06-OCT-06
RMAN> recover database;
Starting recover at 06-OCT-06
using channel ORA_DISK_1
starting media recovery
media recovery complete
Finished recover at 06-OCT-06
RMAN> exit
Recovery Manager complete.
When i check table Test_table in SQL *Plus using command DESC Test_table; it is showing me error object Test_table does not exist -
Oracle 8i RMAN restore/recover
Hi,
I have situation where i need to go back in one moth of time. i have backup pieces in disk for the last one month. but only thing when i see report obsolete i can see the backup pieces beyond one week marked obsolete.
i am using oracle 8i
any suggestions on this?i dont have the archives If you don't have ArchivesLogs Backups, you won't be able to RECOVER.
If you Backup of 1 month ago, did include the ArchiveLogs for the duration of the Backup, you can still restore those ArchiveLogs from that Backup and RECOVER upto the last ArchiveLog.
For example, if your backup began at 09:01PM on 29-Jun and completed at 11:32PM, you need, at a minimum, the Archivelogs from 09:01PM to the first ArchiveLog after 11:32PM.
Don't worry about whether they are "obsolete" today. RESTORE and RECOVER can be done -- the controlfile as of 11:32PM of 29-Jun didn't mark that backup as obsolete !
Hemant K Chitale
Edited by: Hemant K Chitale on Jul 29, 2010 3:05 PM -
Backing up and Restoring/Recovering an Oracle 9i Database
I am fairly new at this and have been tasked with managing off site backups for customer data on a 9i database.
I am carrying out a user managed backup of the following data files to the offsite data centre.
User File
USERS01.DBF
Control File
CONTROL01.CTL
Redo Log Files
REDO01.LOG
REDO02.LOG
REDO03.LOG
Index File
INDX01.DBF
SPFile
SPFILEBCS.ORA
To test the success of the back up I have created a fresh install of 9i on a new machine with the file structure replicating that of the original.
My questions are;
1) Are these all the files required to be backed up in order to carry out a restore?
2) What are the steps that I need to carry out to restore/recover the database using the above files?
Any help or ‘user friendly’ resources for beginners would be greatly appreciated
Regards
Toby1. If you are performing a cold backup you must backup all files listed by this query:
SELECT NAME FROM V$CONTROLFILE
UNION
SELECT NAME FROM V$DATAFILE
UNION
SELECT MEMBER FROM V$LOGFILE2. In order for you to restore, you perform a software-only install on the backup host.
3. Configure connectivity (listener.ora, sqlnet.ora, tnsnames.ora)
4. Create the service at the remote host using the oradim command.
5. Restore the above mentioned database file set to the same path they have in the source host.
6. Copy spfileINSTANCE_NAME.ora file to the backup host.
7. Start services
8. Start your database instance
9. Add temporary datafiles to your restored database:
ALTER TABLESPACE tempTS ADD TEMPFILE 'path/name';
10. Test it. -
Restore/recover from cold user-managed backup.
i shutdown db,(db is in no-archivelog mode), copy the dir having *.ctl, *.log & *.dbf files, what would be steps to recover in case,
my idea is restore all files in original dir and alter database open resetlogs should do the work,
if that did'n work then mount db and try
recover database using backup controlfile until cancel;
and give path one of online logfile and hit enter; & open db with resetlogs.make me right, if i am not......or any quick way to restore/recover tip?DBA2008 wrote:
i shutdown db,(db is in no-archivelog mode), copy the dir having *.ctl, *.log & *.dbf files, what would be steps to recover in case,
my idea is restore all files in original dir and alter database open resetlogs should do the work,
if that did'n work then mount db and try
recover database using backup controlfile until cancel;
and give path one of online logfile and hit enter; & open db with resetlogs.make me right, if i am not......or any quick way to restore/recover tip?Why resetlogs ? All what you need is a pfile, if its not there already and start the db. That's all!
Aman.... -
Oracle 11GR1, Backup / Restore etc.
Hi together
I'm looking for a DotNet API to control status messages, exception handling and so on in Oracle 11GR1.
Thanks for your HelpRman is part of the database, and is the backup/restore tool. There is no other way then to use rman (in a normal deployment), except a cold backup (file copy).
-
How to do oracle backup,restore,recovery using php?
Is there anyone know how to do oracle backup,restore and recovery using php? any tips... is there any ways to do that?
Are you referring to performing RMAN backup operations via the OSB web tool? RMAN operations are managed, not via the web tool, but through RMAN command line or Oracle Enterprise Manager (EM)
Donna -
System Copy/ Oracle Backup/Restore as part of migrating from 32 to 64-bit
Source system (I386): R3E47 Ext Set 2.00 SAP_BASIS 620 Kernel 640 Windows 2000, Oracle 10.2.0.4, non-unicode
Target system (x86-64/AMD64): R3E47 Ext Set 2.00 SAP_BASIS 620 Kernel 640 Windows 2000 Oracle 10.2.0.4, non-unicode
Am using method System Copy/ Oracle Backup/Restore to migrate from 32 to 64 bit (HOM System Copy).
Actions on source system:
a) Upgrade from 9.2.0.7 to Oracle 10.2.0.4
b) Used ora_br_copy.bat to generate CONTROL.SQL and init<sid>.ora
c) Switched logfiles
d) Performed offline backup
Actions on target system:
a) Installed Oracle 10.2.0.1 and patched it to 10.2.0.4
b) Used CD 51033746 "6.20/6.40 based products Installation Master (Edition May 2008)" to install the CI
c) Started installation of the DB instance selecting System Copy/ Oracle Backup/Restore (same <SID> for source and target systems)
Relevant input parameters used:
Database schema: SAPR3
Database character set: US7ASCII
d) When SAPINST stopped to allow for restoring of datafiles, logs and init<sid.ora>:
- copied datafiles and logs to the usual place
- copied CONTROL.SQL (edited to include utilrp.sql and utlrp.sql for the migration from 32 to 64) to the DB-instance intallation . directory.
- copied generated init<SID>.ora to the <ORACLE_HOME>\database
e) Resumed SAPINST.
David Byrne in a previous post suggested: "check your oracle alert file in case there are errors there you may need to update the word size for the 64bit install. Errors like this in the oracle alert file would suggest that.,
ORA-12012
ORA-06544: PL/SQL: internal error, arguments: [ORA-06544: PL/SQL: internal error, arguments: 56319], [, ], [, ], [, ], [
ORA-06553"
Well, I am getting ORA-06553: PLS-801: internal error [56319] but then my edited CONTROL.SQL (which is mainly a CREATE CONTROLFILE as it would be obtained with a ...BACKUP CONTROLFILE TO TRACE) includes at the end this:
shutdown immediate
startup upgrade
spool utlirp.log
@?/rdbms/admin/utlirp.sql
spool off
Shutdown immediate
Startup
Spool utlrp.log
@?/rdbms/admin/utlrp.sql
Spool off
exit
which is supposed to do just that... (I think)
Help, anyone?> Trying to cheer me up, are you?
No
> It is NOT free that reorganization! Quite expensive, actually, paid for in time! But you're right... the database needed a reorg anyway :-\
True, not "free" - it takes time but the data will be nicely aligned then
> And why would I have to reconfigure all those 10.2 features? Everything's either in the database or init<sid>.ora, ain't it? And my database is a pretty 10.2.0.4 with all those nice features already activated...
No - not really auotmatically if you upgraded from 9.2 And "init<SID>.ora" is past, you nowadays use "spfile" If, of course, e. g. Automatic Undo was activated in 9.2 then it's there of course in 10.2 too.
> One sticky point... I haven't really read the r3load procedure yet and I will before I import, but... I would say I don't have to do anything about the 32->64 bit, right? I mean, it should behave properly while reloading on 64-bit...
The exported content is about 10 % of the size of the system, it's database and OS independent so yes, you can import it nicely on 32bit. Another tip: make sure you don't just use the default configurations for R3load, it will take a HUGE amount of time. Use the package splitter (builtin-in in sapinst) so you get a much higher parallelism when importing.
Markus -
System copy using oracle backup/restore - sapinst does not restart after re
I am performing a system copy of a BW3.5 system, using the system copy procedures and Oracle backup/restore. on the target node, I have installed the CI. I have run sapinst to install the database up to the point when it tells me to install the Oracle Server software, then restore the backup, and choose 'OK' in the dialog box. As I did not want to leave this dialog open, I chose 'cancel'. I have now installed Oracle, and restored the database, but when I try restarting sapinst I get the following error, and sapinst quits:
FKD-00049 XML - Parser error: error: invalid symbol '' in literal 'SAPSYSTEM_DB
indind_ind_ind_ind_0_SAPSYSTEM_ind_ind_ind_ind_ind_0_SAPComponent_ind_ind_ind_
ind_ind_0_SAPComponent_Accounts_ind_ind_ind_ind_ind_0_SAPCompon' in line 1, 1
in file
ERROR 2007-08-20 15:06:13 [iaxxcsihlp.hpp:208]
main()
FCO-00031 An error occurred during the installation of component Problem: error
in persistency subsystem.. Press the log view button to get extended error info
rmation or press OK to terminate the installation.
Has anybody ever experienced this before, or have any clues as to what the problem is? This is a production system, and it is supposed to be available by the end of the week....Hi Angie,
You should always mention OS details while drafting message.
First, CHeck you must selected same SID as earlier while installation or Oracle and DB.
Secondly, you can skip this phase in SAPInst, bit technical for you.
Alternatively,
Recommendations
- Set parameters as per SAP Note 356370
- Change the swap mode from 'intermediate' to 'deferred' as described in
SAP Note 97179.
- Add /usr/sbin to the path of the user <sapsid>adm in the file
.cshrc, .login, .profile in the user's home directory. Enter the
following command(s) at the end of .cshrc, .login, .profile:
a) If using a csh, enter:
set path=(/usr/sbin $path)
b) If using a sh, enter:
path=/usr/sbin:$path
export path
Br,
Amit Lal
Reward suitable pts. -
RMAN can backup/restore diferent versions of Oracle DataBases regardless OS
Hi,
I am evaluating Recovery Manager to backup and restore Oracle databases.
I have to backup/restore diferents versions of Oracle database, these databases are running in diferents operating systems (AIX, LINUX, Windows)
For example:
Oracle DataBase 9 in AIX 5.3 system
Oracle DataBase 10 in Lunix system
Oracle DataBase 9 in Windows system
I want to have a single RMAN server in order to backup/restore all my Oracle DataBases, is it possible?
A single RMAN server can backup/restore diferent versions of Oracle DataBases regardless the operating system?
If the answer is yes, do I need to have an specif operting system in my RMAN server? (AIX, Linux, Windows, etc.)
Thanks for your help;Hi,
Your question:
I want to have a single RMAN server in order to backup/restore all my Oracle DataBases, is it possible?
Sounds more like a machine.
If you would have asked:
I want to have a single RMAN recovery catalog in order to backup/restore all my Oracle DataBases, is it possible?
I would have confirmed as like the other two.
Be aware the catalog version needs to be equal or higher as the highest database version.
Regards,
Tycho -
Homegneous System copy Specific DB method Oracle Backup/Restore Sapinst
Hello colleagues,
Following the documentation, I´ve one doubt about the above method, is it needed to install again the SCS instance when the system is installed in one host and we want just to refresh database.
I mean, we want to refresh CRM quality system from Production system. It´s a ABAP+JAVA system, so i have to prepare a backup and export Central instance through sapinst in source system.
Afterwards it´s needed to follow the three steps in sapinst, Install SCS instance, Install database instance and install central instance (database copy section) . Or as we´ve already installed our quality CRM system, it´s just enough with installing database instance and central instance (using backup/restore method and exported data from source system)
Thanks a lot for this info because in the SAP guides it´s not clear from my point of view.
RegardsEnrique José Marcos wrote:
Hello colleagues,
Following the documentation, I´ve one doubt about the above method, is it needed to install again the SCS instance when the system is installed in one host and we want just to refresh database.
I mean, we want to refresh CRM quality system from Production system. It´s a ABAP+JAVA system, so i have to prepare a backup and export Central instance through sapinst in source system.
Afterwards it´s needed to follow the three steps in sapinst, Install SCS instance, Install database instance and install central instance (database copy section) . Or as we´ve already installed our quality CRM system, it´s just enough with installing database instance and central instance (using backup/restore method and exported data from source system)
Thanks a lot for this info because in the SAP guides it´s not clear from my point of view.
Well i didnot get your question properly, but as per my understanding if you have only ABAP instance installed then you can go with the Database resoration method but as you said ABAP+JAVA instance both are there so in that case you need to build the export of complete system through Sapinst and then you cn perform the same export file to install the target system which will be your Quality.
Another option is that just restore the database via database restoration method then try to restore the JAVA stack by file system method which is i think not supported by SAP if i am not wrong but it can be done i tired the same on XI system.
Regards,
Subhash -
Hi all,
+Please assist me with a guideline of carrying out a backup restore,this is to test and ensure that we can be able to restore the backup in the case of a disaster. we perform a Full backup daily and are using BRTOOLS.+
Thank you.
Regards,Hi,
you need to do the following
1) Copy the log files of the backup date which u want to restore.
2) Create controlfile from production using command alter system backup controlfile to trace;
3) restore the backup on target system using brrestore command.( assumption here is your target system is already installed)
For more details you need to refer help.sap.com
Regards,
Deepak Kori -
Backup/restore tablespaces in noarchivelog mode
In our office there is a oracle 10g box that's used for testing purposes.
It's only got 1 database, but each user has their own tablespace.
As it's not a 'live' box, archivelog and flashrecovery have been disabled by the dba probably in favour of speed.
I have a NUnit test suit that runs across a tablespace, and I am trying to restore the tablespace before each run.
In noarchivelog mode, RMAN allows me to take the tablespace offline, and create a backup - so far so good.
Later on, I am able to take the tablespace offline again, and issue a "RESTORE TABLESPACE" command.
But then I cannot bring the tablespace online without issuing a "RECOVER" command.
I have tried the NOREDO option but it still says that the file needs a media recovery before it can be brought online.
Is there a way to bring the tablespace online without applying the REDO logs ?
Or is tablespace backup/restore not possible because of noarchivelog ?
Thanks.I tried the TTS method, and it was only marginally quicker than a data_only impdp.
I suspect this is due to the nature of a fresh nunit test database, where the metadata (huge tables structure, stored proc, etc) is often larger than the table contents itself.
In the grand scheme of things it might even end up slower, as i need to drop the tablespace including contents if i want to use TTS to load up the backed up dbf.
From the comments I'm guessing that there's no way of just updating the timestamp of the tablespace without applying the REDO logs then ?
I've tested other methods as well.
Flash recovery could only work on a table or db level, I can't take the db offline as there are other users on it with their own tablespace/schemas. (it was an old dev's box, we're reusing what we can)
impdb with the truncate and data_only flag seems to be the only viable option so far, with TTS up for consideration. -
Hi,
Greetings.
OS: windows XP
DB: Oracle 10g xe
I wanted to backup the xe database.
Firstly, I chose the simplest way according to the 2day DBA, clicking the "*backup database*" menu item.
But I only got a popup dialog, showing messages like "*The NTVDM CPU has encountered an illegal instruction.*"
I failed to solve this problem and the program terminated always.
So, if someone has any idea about this, please help me. I really want to use this simplest way.
Then, I had to use the backup.bat script in D:\oraclexe\app\oracle\product\10.2.0\server\BIN from a cmd.exe window.
This time, I got error message below.
As I am a newbie of Oracle Db, I am really confused by the errors.
Could someone help me solve this?
++sql statement: create pfile=''D:\ORACLEXE\APP\ORACLE\PRODUCT\10.2.0\SERVER\DATABASE\SPFILE2INIT.ORA'' from spfile++
++RMAN-00571: ===========================================================++
++RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============++
++RMAN-00571: ===========================================================++
++RMAN-03009: failure of sql command on default channel at 11/24/2010 16:36:12++
++RMAN-11003: failure during parse/execution of SQL statement: create pfile='D:\ORACLEXE\APP\ORACLE\PRODUCT\10.2.0\SERVER\'++
++DATABASE\SPFILE2INIT.ORA' from spfile++
++ORA-27041: unable to open file++
++OSD-04002: unable to open file++
++O/S-Error: (OS 2) The system cannot find the file specified.++
FYI, the whole output of running the backup.bat script is below,
D:\oraclexe\app\oracle\product\10.2.0\server\BIN>Backup.bat
Warning: Log archiving (ARCHIVELOG mode) is currently disabled. If
you restore the database from this backup, any transactions that take
place between this backup and the next backup will be lost. It is
recommended that you enable ARCHIVELOG mode before proceeding so
that all transactions can be recovered upon restore. See the section
+'Enabling ARCHIVELOG Mode...' in the online help for instructions.+
Backup with log archiving disabled will shut down and restart the
+database. Are you sure [Y/N]? y+
Backup in progress...
Recovery Manager: Release 10.2.0.1.0 - Production on Wed Nov 24 16:35:37 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
connected to target database: XE (DBID=2604187256, not open)
RMAN> set echo on;
+2> shutdown immediate;+
+3> startup mount;+
+4> configure controlfile autobackup format for device type disk clear;+
+5> configure retention policy to redundancy 2;+
+6> configure controlfile autobackup on;+
+7> sql "create pfile=''D:\ORACLEXE\APP\ORACLE\PRODUCT\10.2.0\SERVER\DATABASE\SPFILE2INIT.ORA'' from spfile";+
+8> backup as backupset device type disk database;+
+9> configure controlfile autobackup off;+
+10> alter database open;+
+11> delete noprompt obsolete;+
+12>+
echo set on
using target database control file instead of recovery catalog
database dismounted
Oracle instance shut down
connected to target database (not started)
Oracle instance started
database mounted
Total System Global Area 805306368 bytes
Fixed Size 1289996 bytes
Variable Size 209715444 bytes
Database Buffers 591396864 bytes
Redo Buffers 2904064 bytes
RMAN configuration parameters are successfully reset to default value
old RMAN configuration parameters:
CONFIGURE RETENTION POLICY TO REDUNDANCY 2;
new RMAN configuration parameters:
CONFIGURE RETENTION POLICY TO REDUNDANCY 2;
new RMAN configuration parameters are successfully stored
old RMAN configuration parameters:
CONFIGURE CONTROLFILE AUTOBACKUP ON;
new RMAN configuration parameters:
CONFIGURE CONTROLFILE AUTOBACKUP ON;
new RMAN configuration parameters are successfully stored
sql statement: create pfile=''D:\ORACLEXE\APP\ORACLE\PRODUCT\10.2.0\SERVER\DATABASE\SPFILE2INIT.ORA'' from spfile
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of sql command on default channel at 11/24/2010 16:36:12
RMAN-11003: failure during parse/execution of SQL statement: create pfile='D:\ORACLEXE\APP\ORACLE\PRODUCT\10.2.0\SERVER\
DATABASE\SPFILE2INIT.ORA' from spfile
ORA-27041: unable to open file
OSD-04002: unable to open file
O/S-Error: (OS 2) The system cannot find the file specified.
Recovery Manager complete.
+==================== ERROR =============================+
Backup of the database failed.
RMAN Error - See log for details .
Log file is at D:\ORACLEXE\APP\ORACLE\PRODUCT\10.2.0\SERVER\DATABASE\OXE_BACKUP_CURRENT.LOG.
+==================== ERROR =============================+
Press any key to continue . . .
Edited by: 815223 on Nov 24, 2010 9:37 PMI am really confused by the errorsYes that is understandable, for first timers in oracle the environment can be intimidating, its not easy interpreting the errors and knowing what the system is trying to tell you.
The rman backup utility pretty much works "out of the box" with defaults for most everything. And the XE installs a database, its "out of the box" defaults are noarchivelog mode, and changing that is easy (well, after its done it seems that way ;) )
First off, looks like the database wasn't running when the backup started, note the "connected to target database: XE (DBID=2604187256, *not open*)". Check the services applet and see if the database service is running- a shortcut to get there is Start/Run and type in services.msc.
Installer adds about 5 service entries, the database service is called OracleServiceXE, if its not showing a "Running" left click it to highlight the entry, and click the Start Service button.
Now try the SQL statement that the backup.bat is trying to run, its just making a pfile backup of the server parameter file- in a command box (Start/Run type in cmd) run sqlplus and connect sysdba, try a variation on pfile backup (i.e. if you have a d:\temp folder, or adjust as appropriate):
$ sqlplus /nolog
SQL>connect /as sysdba;
... Connected ...
SQL> create pfile='d:\temp\initXE_bkup.ora' from spfile;
...That will give you a backup parameter file, so if something happens to the server parameter file (i.e a parameter is set incorrectly in the spfile) you should be able to get past a startup problem via startup specifying that pfile:
SQL>connect /as sysdba;
... Connected ...
SQL> shutdown immediate;
... database unmounted ... database closed ...
SQL> startup pfile='d:\temp\initXE_bkup.ora';
... database open ...
SQL> shutdown immediate;
SQL> startup;
... database open ...The startup by itself will use the instance spfile. Or a startup mount; is the first part of changing to archivelog mode. However, comma, if a location for the archivelog files isn't set the database uses the flash recovery area, its good practice to create a folder for archivelog files and set the logfile destination and a format for the logfile names.
And the 2 day DBA doc, backup and recovery chapter, is a good place to get more info on managing backups http://download.oracle.com/docs/cd/B25329_01/doc/admin.102/b25107/backrest.htm#i1004902
Maybe you are looking for
-
Is there a way to combine multiple tables/sheets into one file?
In Excel if add more than one sheet you have tabs at the bottom that you can click on and name. Does Numbers have something similar? I searched support and even googled the question but couldn't really find an answer. I appreicate any help!!! Thanks!
-
Creating Multiple trendlines on one graph
I'm showing a density relationship and not all of the weights or ml's are the same. Is there a way I can graph this? Or is there a really good tutorial somewhere? I've been searching but maybe I'm not using the right words. ex. zinc, 3.1g/.5ml 2.6g/.
-
Report painter cost elements description is not picking
HI Report painter Consolidation system - in which the description of the cost elements are not able to display while runnning the GR55 by giving the Report group PCC2 Please assist me Regards
-
Is scan to cloud supported on 1415nfw?
I can't activate eStorage Google Docs App so that I can scan to the Cloud on my Laserjet Pro 1415nfw. I installed the latest firmware update (DateCode: 20120629), whose feature description would seem to indicate that scanning to the Cloud and this A
-
Is it possible to link a topic from another help file?
I apologized if topic has been discussed/answered. I was wondering if it is possible to link a topic from another help file? So, basically my client has a help file .chm that was created by someone else. I am brought in to create another help file. s