Any Simplifiede Script to Backup Oracle XE Database
I need a script to backup XE Database
i.e that script should put all the resultant backup filse at a specified location
Similarly Restore script which should restore from those files.
Devotee wrote:
Hi,
I want to know is any oracle's tool or third party tools to backuping oracle database?
Thank you!
Francis SZE
Use RMAN through enterprise manager
Cheers
Similar Messages
-
Have any GUI tools to backup oracle database(s) ?
Hi,
I want to know is any oracle's tool or third party tools to backuping oracle database?
Thank you!
Francis SZEDevotee wrote:
Hi,
I want to know is any oracle's tool or third party tools to backuping oracle database?
Thank you!
Francis SZE
Use RMAN through enterprise manager
Cheers -
Unable to backup oracle 8i database objects
Hi ,
i got the following error :
Connected to: Oracle8i Enterprise Edition Release 8.1.7.2.0 - Production
With the Partitioning option
JServer Release 8.1.7.2.0 - Production
EXP-00056: ORACLE error 942 encountered
ORA-00942: table or view does not exist
EXP-00000: Export terminated unsuccessfullyi am using the Oracle 9i Client to backup the object of an Oracle 8i database.
is this the cause ?
previously , my client was still on 8i and it could actually backup both the 8i & 9i database objects
pls advise
rgdsFirst off, the export and import utilities should be considered useful supplements to a proper physical backup but should not be used as the primary backup method for a production database.
Second, Oracle pretty much requires that you use the version of the export utility that matches the lowest database version you're working with. You could generate the export files on the machine where the database runs, which guarantees that versions will match up, and move them elsewhere. Or you can have multiple versions of the Oracle client in different Oracle Homes on the same machine.
Justin -
Export and import Oracle 10G database
Hello all
Can anyone tell me once for all how can i backup oracle 10G database and restore it in other computer (export and import)
thanks alot
RonDo you can access to metalink?
If not, I copy an paste this doc's....
Doc ID: Note:10767.1
Subject: How to perform FULL System Export/Imports
Type: BULLETIN
Status: PUBLISHED
Content Type: TEXT/X-HTML
Creation Date: 18-APR-1994
Last Revision Date: 30-AUG-2002
Purpose
This article highlights some important points to consider when performing
a Full System Export and Import.
Scope and Application
It is intended to assist users performing FULL System Exports and Imports.
A Full System Export and Import is a useful way to replicate or clean up
a database. Please note the following guidelines when performing a Full
System Export and Import:
1. When performing the import, ensure you are pointing at the correct
instance. Always check values for the SID and two task driver before
proceeding.
*Note: On Unix systems, just entering a sub-shell, such as using
C-shell, can change the database that the import would work
against.
2. When possible, it is advisable to take a physical copy of the
exported database and the database you intend to import into before
starting the import. This ensures any mistakes are reversible.
3. NEVER run a FULL SYSTEM IMPORT on a machine that has more than one
database UNLESS you are 100% sure all tablespaces have been
pre-created. A full import will create any undefined tablespaces
using the same datafile names as the exported database. There are
situations where this is very dangerous:
-> If the datafiles belong to ANY other database, they will be
CORRUPTED. This is especially true if the exported database is
on the same machine, because its datafiles will be re-used by
the database you are importing into.
-> If the datafiles have names that clash with existing operating
system files.
4. When exporting, it is advisable to also produce a report showing
information you may need before / after the import:
-> List the tablespaces and datafiles
-> List the rollback segments
-> List a count, by user, of each object type such as tables,
indexes, etc.
This enables you to ensure that tablespaces have been pre-created
and to check the success of the import after it is complete.
5. If you are creating a completely new database from an export, remember
to create an extra rollback segment in SYSTEM, and make this available
in the init.ora file before proceeding with the import.
6. There are some versions of export that do not retain sequence numbers
correctly. It is advisable to select next_value for each sequence
after the export so that these can be checked after import.
Following these guidelines will help you to avoid major problems.
Doc ID: Note:174226.1
Subject: How To Copy an Oracle Database To Another Machine
Type: HOWTO
Status: PUBLISHED
Content Type: TEXT/X-HTML
Creation Date: 12-OCT-2001
Last Revision Date: 01-OCT-2003
goal: How to copy an Oracle database to another machine
fact: Oracle Server - Enterprise Edition
fix:
Pre-requisites: The copy is between 2 machines, both have to be on the same OS
and have to have exactly the same database version installed.
1. Make sure the database you want to copy was closed with a SHUTDOWN IMMEDIATE,
SHUTDOWN NORMAL or SHUTDOWN TRANSACTIONAL.
2. Copy init.ora and control files to create instance and be able to go in
mount mode. Check the init.ora for the locations where the controlfiles have
to be, if those locations are not valid on the machine put the control files on
different places and adjust the init.ora accordingly.
3.a. Copy the datafiles (all of them).
b. Copy the redo-logfiles (all of them).
4.a. (Unix only) Set the environment variables:
ORACLE_SID - set to the database name you wish to create
ORACLE_HOME - set to full pathname of the Oracle system home directory
PATH - needs to include $ORACLE_HOME/bin
b. (NT/2000 only) Do 'set ORACLE_SID=<SID>'
Use oradim to create the service for the instance. For more information
on oradim please refer to (the part that refers to creating a new instance):
Note:68720.1 Creating a new 7.3, 8.0, 8.1 Instance/Database
5. Use servermanager (check the name to use for your version of oracle) or
sqlplus (version 9i and above) to startup the database in mount mode.
Do
CONNECT INTERNAL/<PASSWORD>
then
STARTUP MOUNT
Then do a rename of the copied datafiles if they are not in the same path as on
the other machine. For all the files that are in the result of the query:
SELECT NAME FROM V$DATAFILE;
do
ALTER DATABASE RENAME FILE '<oldfullpath>\<filename>' to <
newfullpath>\<filename>';
6. Query the datadictionary for the old location of the redolog files using:
SELECT MEMBER FROM V$LOGFILE;
If the new place is not the same as the old do:
ALTER DATABASE RENAME FILE '<oldfullpath>\<redologfilename>' to &
lt;newfullpath>\<redologfilename>';
7. Now open the database:
ALTER DATBASE OPEN;
****************************************************************** -
Migrate Oracle 11g database from Windows To Linux using RMAN hot / cold backup ?
Hi Friends,
Is it possible to Migrate Oracle 11g database from Windows To Linux using RMAN hot / cold backup ? ( as i would like to perform Point In Time recovery)
(or) The only way is to use RMAN convert as mentioned here - Transporting Data Across Platforms
(or) Is there any other method (except exp/imp and data pump)
Regards,
DBHI
his post describes the procedure required to migrate a database from Windows to Linux using the RMAN Convert Database command.
Both Windows and Linux platforms have the same endian format, which makes possible to transfer the whole database, making the migration process very straightforward and simple.
To migrate between platforms that have a different endian format, Cross Platform Transportable Tablespaces (XTTS) needs to be used instead.
List of Steps Needed to Complete the Migration
The migration process is simple, but as it has several steps it is convenient to be familiar with them before running it.
1. Check platform compatibility between source and target OS
2. Start the database in read only mode
3. Check database readiness for transport from Windows to Linux using DBMS_TDB.CHECK_DB
4. Check if there are any external objects
5. Execute the Rman Convert database command
6. Copy converted datafiles, generated Transport Script and Parameter File to Linux
7. Edit the init.ora for the new database
8. Edit the Transport Script and Parameter File changing the windows paths to Linux Paths
9. Execute the Transport Script
10.Change the Database ID
11.Check database integrity
Thank you -
Backup oracle database - pre post steps
I want to do cold backup of 10g database. Do I need to shutdown Oracle Application server and listeners before doing cold backup and start them again after backup done.
for taking cold backup then its better to shutdown the apps server as well
database.I would recommend to you whenver you are going to take cold
backup for db then its better for you to take apps cold backup too if
the cold backup goes after you applied any patch ,within E-Biz tech the
patch activity affect apps files too.
Khurram -
How to backup Oracle Database Single Instance using RMAN
Folks,
Hello. I am using Oracle Database Server 11gR1 with Operating System Oracle Linux 5.10.
I understand how to backup database instance in SQL Server with Windows. But don't really understand how to backup database instance in Oracle with Linux.
I have done Cold backup and Hot backup for the database instance HRCS90 but both get the same error message.
Cold backup is below:
SQL> startup
ORACLE instance started.
Total System Global Area 538677248 bytes
Fixed Size 2146024 bytes
Variable Size 528482584 bytes
Database Buffers 4194304 bytes
Redo Buffers 3854336 bytes
Database mounted.
Database opened.
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
RMAN> backup database;
Starting backup at 25-NOV-13
using target database control file instead of recovery catalog
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of backup command at 11/25/2013 14:26:52
RMAN-06171: not connected to target database
RMAN> backup HRCS90
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "identifier": expecting one of: "archivelog, auxiliary, as, backup, backupset, blocks, channel, check, copy, copies, controlfilecopy, cumulative, current, database, datafile, datafilecopy, device, diskratio, db_recovery_file_dest, db_file_name_convert, duration, filesperset, for, format, from, full, force, file, incremental, keep, (, maxsetsize, nochecksum, noexclude, nokeep, not, proxy, pool, reuse, recovery, section, skip, spfile, skip readonly, setsize, tablespace, tag, to, validate"
RMAN-01008: the bad identifier was: HRCS90
RMAN-01007: at line 1 column 8 file: standard input
RMAN> backup database HRCS90
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "identifier": expecting one of: "archivelog, auxiliary, backup, backupset, channel, copy, controlfilecopy, current, database, datafile, datafilecopy, delete, diskratio, db_recovery_file_dest, filesperset, format, from, force, file, include, keep, (, maxsetsize, noexclude, nokeep, not, pool, plus, reuse, recovery, section, ;, skip, spfile, skip readonly, setsize, tablespace, tag, to"
RMAN-01008: the bad identifier was: HRCS90
RMAN-01007: at line 1 column 17 file: standard input
While the database instance HRCS90 is startup, I do hot backup using the same commands and get the same error message with above cold backup.
My question is:
Can any folk tell me the specific steps (command by command) to backup a single database instance in Oracle using RMAN ?
Thanks.Folks,
Hello. Thanks a lot for replying. My database instance named HRCS90 is going to be backed up. My backup directory is /backup_Database_Instance_HRCS90.
If database in open state, we must back up in archive log. If database in mount state but not open, we can back up in noarchive log.
I have tried to back up HRCS90 in archive and noarchive log when database in mount state but not open as below:
SQL>startup mount;
SQL>exit
[user@linux bin]$./rman
RMAN>connect target;
RMAN> CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/backup_Database_Instance_HRCS90/full_%u_%s_%p';
new RMAN configuration parameters:
CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/backup_Database_Instance_HRCS90/full_%u_%s_%p';
new RMAN configuration parameters are successfully stored
released channel: ORA_DISK_1
RMAN> CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 360 DAYS;
new RMAN configuration parameters:
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 360 DAYS;
new RMAN configuration parameters are successfully stored
RMAN> backup as backupset database plus archivelog;
Starting backup at 01-DEC-13
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=44 device type=DISK
specification does not match any archived log in the recovery catalog
backup cancelled because all files were skipped
Finished backup at 01-DEC-13
Starting backup at 01-DEC-13
using channel ORA_DISK_1
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00001 name=/u01/oradata/HRCS90/system01.dbf
input datafile file number=00090 name=/u01/oradata/HRCS90/psimage.dbf
input datafile file number=00060 name=/u01/oradata/HRCS90/gpapp.dbf
input datafile file number=00119 name=/u01/oradata/HRCS90/tlwork.dbf
input datafile file number=00102 name=/u01/oradata/HRCS90/pttlrg.dbf
input datafile file number=00054 name=/u01/oradata/HRCS90/faapp.dbf
input datafile file number=00110 name=/u01/oradata/HRCS90/saapp.dbf
input datafile file number=00101 name=/u01/oradata/HRCS90/pttbl.dbf
input datafile file number=00002 name=/u01/oradata/HRCS90/sysaux01.dbf
input datafile file number=00106 name=/u01/oradata/HRCS90/py0lrg.dbf
input datafile file number=00004 name=/u01/oradata/HRCS90/psdefault.dbf
input datafile file number=00117 name=/u01/oradata/HRCS90/tlapp.dbf
input datafile file number=00007 name=/u01/oradata/HRCS90/adapp.dbf
input datafile file number=00082 name=/u01/oradata/HRCS90/paapp.dbf
input datafile file number=00074 name=/u01/oradata/HRCS90/hrsapp.dbf
input datafile file number=00092 name=/u01/oradata/HRCS90/ptamsg.dbf
input datafile file number=00056 name=/u01/oradata/HRCS90/fgapp.dbf
input datafile file number=00114 name=/u01/oradata/HRCS90/stapp.dbf
input datafile file number=00005 name=/u01/oradata/HRCS90/aaapp.dbf
input datafile file number=00118 name=/u01/oradata/HRCS90/tllarge.dbf
input datafile file number=00009 name=/u01/oradata/HRCS90/avapp.dbf
input datafile file number=00065 name=/u01/oradata/HRCS90/hrapp2.dbf
input datafile file number=00078 name=/u01/oradata/HRCS90/hrwork.dbf
input datafile file number=00116 name=/u01/oradata/HRCS90/stwork.dbf
input datafile file number=00077 name=/u01/oradata/HRCS90/hrswork.dbf
input datafile file number=00115 name=/u01/oradata/HRCS90/stlarge.dbf
input datafile file number=00049 name=/u01/oradata/HRCS90/epapp.dbf
input datafile file number=00098 name=/u01/oradata/HRCS90/ptprc.dbf
input datafile file number=00037 name=/u01/oradata/HRCS90/eoewapp.dbf
input datafile file number=00032 name=/u01/oradata/HRCS90/eoecapp.dbf
input datafile file number=00086 name=/u01/oradata/HRCS90/piapp.dbf
input datafile file number=00099 name=/u01/oradata/HRCS90/ptprjwk.dbf
input datafile file number=00019 name=/u01/oradata/HRCS90/cularge.dbf
input datafile file number=00035 name=/u01/oradata/HRCS90/eoeiapp.dbf
input datafile file number=00045 name=/u01/oradata/HRCS90/eoppapp.dbf
input datafile file number=00076 name=/u01/oradata/HRCS90/hrslarge.dbf
input datafile file number=00044 name=/u01/oradata/HRCS90/eoltapp.dbf
input datafile file number=00094 name=/u01/oradata/HRCS90/ptappe.dbf
input datafile file number=00050 name=/u01/oradata/HRCS90/eplarge.dbf
input datafile file number=00084 name=/u01/oradata/HRCS90/pcapp.dbf
input datafile file number=00111 name=/u01/oradata/HRCS90/sacapp.dbf
input datafile file number=00100 name=/u01/oradata/HRCS90/ptrpts.dbf
input datafile file number=00023 name=/u01/oradata/HRCS90/eobfapp.dbf
input datafile file number=00096 name=/u01/oradata/HRCS90/ptcmstar.dbf
input datafile file number=00108 name=/u01/oradata/HRCS90/pylarge.dbf
input datafile file number=00016 name=/u01/oradata/HRCS90/cularg1.dbf
input datafile file number=00018 name=/u01/oradata/HRCS90/cularg3.dbf
input datafile file number=00025 name=/u01/oradata/HRCS90/eocmapp.dbf
input datafile file number=00027 name=/u01/oradata/HRCS90/eocmwrk.dbf
input datafile file number=00029 name=/u01/oradata/HRCS90/eoculrg.dbf
input datafile file number=00033 name=/u01/oradata/HRCS90/eoeclrg.dbf
input datafile file number=00036 name=/u01/oradata/HRCS90/eoeilrg.dbf
input datafile file number=00039 name=/u01/oradata/HRCS90/eoewwrk.dbf
input datafile file number=00041 name=/u01/oradata/HRCS90/eoiulrg.dbf
input datafile file number=00046 name=/u01/oradata/HRCS90/eopplrg.dbf
input datafile file number=00048 name=/u01/oradata/HRCS90/eotplrg.dbf
input datafile file number=00053 name=/u01/oradata/HRCS90/erwork.dbf
input datafile file number=00061 name=/u01/oradata/HRCS90/gpdeapp.dbf
input datafile file number=00072 name=/u01/oradata/HRCS90/hrlarg1.dbf
input datafile file number=00079 name=/u01/oradata/HRCS90/htapp.dbf
input datafile file number=00087 name=/u01/oradata/HRCS90/pilarge.dbf
input datafile file number=00120 name=/u01/oradata/HRCS90/waapp.dbf
channel ORA_DISK_1: starting piece 1 at 01-DEC-13
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of backup plus archivelog command at 12/01/2013 17:52:45
ORA-19504: failed to create file "/backup_Database_Instance_HRCS90/full_0boqei2c_11_1"
ORA-27040: file create error, unable to create file
Linux-x86_64 Error: 13: Permission denied
RMAN>
RMAN>
RMAN>
RMAN>
RMAN> backup as backupset database;
Starting backup at 01-DEC-13
using channel ORA_DISK_1
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00001 name=/u01/oradata/HRCS90/system01.dbf
input datafile file number=00090 name=/u01/oradata/HRCS90/psimage.dbf
input datafile file number=00060 name=/u01/oradata/HRCS90/gpapp.dbf
input datafile file number=00119 name=/u01/oradata/HRCS90/tlwork.dbf
input datafile file number=00102 name=/u01/oradata/HRCS90/pttlrg.dbf
input datafile file number=00054 name=/u01/oradata/HRCS90/faapp.dbf
input datafile file number=00110 name=/u01/oradata/HRCS90/saapp.dbf
input datafile file number=00101 name=/u01/oradata/HRCS90/pttbl.dbf
input datafile file number=00002 name=/u01/oradata/HRCS90/sysaux01.dbf
input datafile file number=00106 name=/u01/oradata/HRCS90/py0lrg.dbf
input datafile file number=00004 name=/u01/oradata/HRCS90/psdefault.dbf
input datafile file number=00117 name=/u01/oradata/HRCS90/tlapp.dbf
input datafile file number=00007 name=/u01/oradata/HRCS90/adapp.dbf
input datafile file number=00082 name=/u01/oradata/HRCS90/paapp.dbf
input datafile file number=00074 name=/u01/oradata/HRCS90/hrsapp.dbf
input datafile file number=00092 name=/u01/oradata/HRCS90/ptamsg.dbf
input datafile file number=00056 name=/u01/oradata/HRCS90/fgapp.dbf
input datafile file number=00114 name=/u01/oradata/HRCS90/stapp.dbf
input datafile file number=00005 name=/u01/oradata/HRCS90/aaapp.dbf
input datafile file number=00118 name=/u01/oradata/HRCS90/tllarge.dbf
input datafile file number=00009 name=/u01/oradata/HRCS90/avapp.dbf
input datafile file number=00065 name=/u01/oradata/HRCS90/hrapp2.dbf
input datafile file number=00078 name=/u01/oradata/HRCS90/hrwork.dbf
input datafile file number=00116 name=/u01/oradata/HRCS90/stwork.dbf
input datafile file number=00077 name=/u01/oradata/HRCS90/hrswork.dbf
input datafile file number=00115 name=/u01/oradata/HRCS90/stlarge.dbf
input datafile file number=00049 name=/u01/oradata/HRCS90/epapp.dbf
input datafile file number=00098 name=/u01/oradata/HRCS90/ptprc.dbf
input datafile file number=00037 name=/u01/oradata/HRCS90/eoewapp.dbf
input datafile file number=00032 name=/u01/oradata/HRCS90/eoecapp.dbf
input datafile file number=00086 name=/u01/oradata/HRCS90/piapp.dbf
input datafile file number=00099 name=/u01/oradata/HRCS90/ptprjwk.dbf
input datafile file number=00019 name=/u01/oradata/HRCS90/cularge.dbf
input datafile file number=00035 name=/u01/oradata/HRCS90/eoeiapp.dbf
input datafile file number=00045 name=/u01/oradata/HRCS90/eoppapp.dbf
input datafile file number=00076 name=/u01/oradata/HRCS90/hrslarge.dbf
input datafile file number=00044 name=/u01/oradata/HRCS90/eoltapp.dbf
input datafile file number=00094 name=/u01/oradata/HRCS90/ptappe.dbf
input datafile file number=00050 name=/u01/oradata/HRCS90/eplarge.dbf
input datafile file number=00084 name=/u01/oradata/HRCS90/pcapp.dbf
input datafile file number=00111 name=/u01/oradata/HRCS90/sacapp.dbf
input datafile file number=00100 name=/u01/oradata/HRCS90/ptrpts.dbf
input datafile file number=00023 name=/u01/oradata/HRCS90/eobfapp.dbf
input datafile file number=00096 name=/u01/oradata/HRCS90/ptcmstar.dbf
input datafile file number=00108 name=/u01/oradata/HRCS90/pylarge.dbf
input datafile file number=00016 name=/u01/oradata/HRCS90/cularg1.dbf
input datafile file number=00018 name=/u01/oradata/HRCS90/cularg3.dbf
input datafile file number=00025 name=/u01/oradata/HRCS90/eocmapp.dbf
input datafile file number=00027 name=/u01/oradata/HRCS90/eocmwrk.dbf
input datafile file number=00029 name=/u01/oradata/HRCS90/eoculrg.dbf
input datafile file number=00033 name=/u01/oradata/HRCS90/eoeclrg.dbf
input datafile file number=00036 name=/u01/oradata/HRCS90/eoeilrg.dbf
input datafile file number=00039 name=/u01/oradata/HRCS90/eoewwrk.dbf
input datafile file number=00041 name=/u01/oradata/HRCS90/eoiulrg.dbf
input datafile file number=00046 name=/u01/oradata/HRCS90/eopplrg.dbf
input datafile file number=00048 name=/u01/oradata/HRCS90/eotplrg.dbf
input datafile file number=00053 name=/u01/oradata/HRCS90/erwork.dbf
input datafile file number=00061 name=/u01/oradata/HRCS90/gpdeapp.dbf
input datafile file number=00072 name=/u01/oradata/HRCS90/hrlarg1.dbf
input datafile file number=00079 name=/u01/oradata/HRCS90/htapp.dbf
input datafile file number=00087 name=/u01/oradata/HRCS90/pilarge.dbf
input datafile file number=00120 name=/u01/oradata/HRCS90/waapp.dbf
channel ORA_DISK_1: starting piece 1 at 01-DEC-13
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 12/01/2013 17:56:51
ORA-19504: failed to create file "/backup_Database_Instance_HRCS90/full_0coqeia5_12_1"
ORA-27040: file create error, unable to create file
Linux-x86_64 Error: 13: Permission denied
As we see the above last 2 commands, either archive or noarchive, I get the same error:
Archive: ORA-19504: "failed to create file /backup_Database_Instance_HRCS90/full_0boqei2c_11_1"
Noarchive: ORA-19504: "failed to create file /backup_Database_Instance_HRCS90/full_0coqeia5_12_1"
My question is:
What is the file "full_0boqei2c_11_1" or "full_0coqeia5_12_1" ? How to solve the above error ?
Thanks. -
RMAN backup in ORACLE RAC database
Hi there,
We are using RMAN backup strategy for taking backups from one node(eg.node1).Database is RAC database, version 9.2.3. and OS is Solaris 5.10.
this is the configuration which we use, as follows:
Connecting to Prod.Database using catalog database.
rman catalog=rman/rman@CATDB target=sys/oracle@PRODDB(node 2).
RMAN> show all;
RMAN configuration parameters are:
CONFIGURE RETENTION POLICY TO REDUNDANCY 30;
CONFIGURE BACKUP OPTIMIZATION ON;
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/rmanback/_%F';
CONFIGURE DEVICE TYPE DISK PARALLELISM 5;
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/rmanback/CMWPROD_%s.bak';
CONFIGURE CHANNEL 2 DEVICE TYPE DISK CONNECT 'SYS/oracle@PRODDB(node2)';
CONFIGURE MAXSETSIZE TO 7 G;
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/oracle/9.2.3/dbs/snapcf_CMWPROD1.f';
As the above config shows RMAN is connecting to PROD DB (node 2). But we need to take backups (datafiles and as well as archive logs) from two nodes (i.e from node 1 and as well as node 2).
Is there any possibility for taking backups from two nodes?
Thanks,
Balu.Duplicate thread
RMAN configuration in ORACLE RAC database
Khurram -
Oracle 10g database backup & recovery
Hi,
How can i take backup of our oracle 10g database by copy its physical database file and how can i restore them from these files.
is any Strategy other then RMAN??
Regards
Raj
DelhiCan you afford to shutdown the database? If yes, do a cold backup.
1. Do a clean "shutdown immediate"
2. Copy All the Datafiles, Controlfile, Redo Log Files, Spfile/Init files using Operating System command to a required location
When you want to recover
Just copy the files back to the original destinations and statup the database. But ou hav eto know that if you copied your file by 11:00 on 25/08/06. And you loose your database on 27/08/06, you can only recover back to 25/08/06.
If you cannot afford to shut down your database or loose data, best to run your database in Archivelog Mode. Schedule and use RMAN to do a hot backup at specified time automatically. The advantage is that you do not have to shutdown your database to get a consistent backup like teh cold backup. -
How to get the oracle 10g database backup.
Hi,
i have installed oracle 10g.i need to get the back up of db.
i have search so many sites.i didn't get much information.
some guys tells we go to installed directory in that run"RAMNS".
i am following in the process.after run the rams which commands
i have to used to get the db back up.
C:\Oracle\app\oracle\product\10.2.0\server\BIN\RAMNS
RAMNS>...(here is the prob which commands i have to used)
i have seen another way solution is you can use "imp" and "exp" present in BIN to take back up.(how to follow this)
please help me,Would suggest you read the docs on backup, restore. if you cannot restore you db, you are in trouble. read it and understand it well.
Summary:
For 10g, you have rman, imp/exp and datapump import/export (replaces imp/exp).
For very simple backups where you have windows you can shut down, run a cold backup. shutdown the database, copy the database files, and startup. i also take copies of the current pfile and anything else important to restore the database with. we copy the files to a dedicated backup file system, which go to tap, e.
That will give you a simple option to restore.
For prod databases, you typically want archive mode on which means you can run hot or online backups. just remember you have to have the archive logs generated during the hot backup. you now also have the ability to do a point in time restore.
Exp or datapump exp can be used for metadata exports, full exports or partial (schema, table, etc) as needed. i typically run a cold or hot plus an export for redundacy and restore options, but db size will change how you back things up.
You can find plenty of scripts to automate these. just understand how the scripts work and understand the process itself. if not, you will have trouble restoring when it is needed the most.
Rman is also a good option with the latest releases. -
How can I do a FULL Backup to Oracle 8i Database?
Hi,
We are using a product that uses Oracle 8i and we are trying to perform a FULL Backup to the database. I am not an oracle person and not sure how to do this.
Please also inform me on how to perform a FULL Restor for the backed up database. I would really appreaciate it.
nullBefore I can amply reply to your post, I need to know what tools you have.
What is your O.S.?
What do you want to backup to? (Tape Drive/Hard Disk)
What time frame requirements do you have?
Are you running in Archive Log Mode? <-- (in case you do not know, log in with svrmgrl, connect internal, run ARCHIVE LOG LIST; and tell me what is reported on the top line of output.)
Do you have requirements that the database must be Online at all times?
Are you using 3rd party Backup Software, if so, which one(s)?
I know these are a lot of questions, but it helps me help you. :)
Rgds,
Mark Brown
SAP Japan -
Can cold backup be taken for ASM managed oracle 10g databases
Can cold backup be taken for ASM managed oracle 10g databases
Pls helpdo we still need to take cold backupYou need to take backup. Hot or cold depends on how your DB is running (archivelog or not).
Will we have file permisions for copyng Use RMAN and don't worry about that. -
SCRIPT를 이용한 ORACLE 8I DATABASE 생성방법
제품 : ORACLE SERVER
작성날짜 : 2002-04-08
아래에서는 Oracle 8i의 dbassist를 이용한 database 생성 작업 시 생성되는
database 생성 shell script를 이용하여 databsae를 생성하는 절차에 대하여
설명한다.
1. script file의 위치
OUI를 이용한 install 시 dbassist를 통한 database를 생성하게 되면 특별히
directory를 변경하지 않은 경우 다음 directory에 script file들이 생성된다.
$ORACLE_BASE/admin/create(Database 생성 시 자동적으로 생성이 되는 경우)
or
$ORACLE_HOME/install(Database 생성 작업 없이 script를 생성할 경우)
2. script files
crdb1.sh - database 생성
crdb2.sh
crdb3.sh
(혹은 file이름이 run.sh, run1.sh,run2.sh일 수 있으며,
crdb.sh가 없으면 이 run.sh를 find로 찾아 이용)
replicate.sh - Advanced replication option
ordinst.sh - Oracle Intermedia
imedia.sh
drsys.sh _ Oracle interMedia Text
context.sh
java.sh - Oracle Jserver
spatial.sh - Oracel Spatial
timeseries.sh - Oracle TimeSeries
virage.sh - Oracle Visual Information Retrieval
sqlplus1.sh - Demos and SQL*Plus help tables
sqlplus2.sh
sqlplus3.sh
3. database 생성
database를 생성하는 절차이다.
새로운 database를 생성하기 위해서는 dba에 속한 새로운 os account로
다음의 작업을 하여야 한다.
Oracle software를 install하고 database를 생성하지 않고 script를 작성한
경우에는 install user로 작업을 한다.
3.1 위의 file들을 수행하기 전에 ORACLE_SID, ORACLE_HOME, ORACLE_OWNER,
NLS_LANG, ORA_NLS33, LD_LIBRARY_PATH, PATH등의 oracle shell parameter
들이 정확히 설정되어 있는지를 확인한다.
새로운 db 생성이라면 기존 db와는 다른 ORACLE_SID를 지정하여야 한다.
나머지는 기존 db와 같도록 기존 db의 .profile (혹은 .cshrc)를 copy하여
ORACLE_SID 부분만 변경한다.
3.2 Oracle initialize file(init<SID>.ora)은 oracle instance에 대한
kernel parameter들이 정의되는 file로 instance를 띄우기 위하여 반드시
필요한 file이다.
위치는 $ORACLE_HOME/dbs에 위치하여야 한다.
새로운 db생성의 경우는 기존의 initSID.ora file을 copy하여 새로운 이름의
initNEWSID.ora file로 새로운 SID를 이용하여 copy하도록 하고 이
initSID.ora file과 initSID.ora file내에 ifile=로 지정된 configSID.ora
file이 있다면 이 부분도 새로온 SID를 이용하여 configNEWSID.ora file로
copy한다.
그리고 그 file내의 db_name이나 control_files와 같은 parameter를 새로운
db에 맞추어 변경한다.
3.3 database를 생성하기 위하여 <SID>crdb1.sh, <SID>crdb2.sh,
<SID>crdb3.sh순으로 수행한다. 이 과정에서 database생성 및 dictionary
objects, pl/sql standard package들이 생성되게 된다.
새로운 db의 생성의 경우 이 file들을 경우에 따라 다른 이름으로 copy한
후 vi로 들어가 datafile생성 위치를 기존 db와 다르게 지정하고 size의
경우도 원하는 형태대로 변경한다.
3.4 advanced replication option을 사용하는 경우 <SID>replicate.sh를
수행한다.
3.5 Oracle Intermedia를 위하여 <SID>ordinst.sh, <SID>imedia.sh를
Intermedia Text는 <SID>drsys.sh, <SID>context.sh를 차례대로
수행한다. -
Hi
I want to take the backup of the oracle(10g) database.
I am using Windows OS. I dont know what userId and Password to give in the Host Credentials in the below link.
The default username and password didn't work.
I have also tried expdb for taking backup. but there too i got some credential error.
Can anyone help me in this issue?....
http://docs.oracle.com/cd/B16351_01/doc/server.102/b14196/backrest003.htm
Regards
NirmalHi,
You can give sys/passwd or oracle username/passwd depends on you are requirement.
If you want to take full backup the user should have privilege(EXP_FULL_DATABASE privilege).
You can check the below links for you are reference..
http://www.oracle-base.com/articles/11g/data-pump-enhancements-11gr1.php
Export full DB/Import full DB privilege
http://www.orafaq.com/wiki/Export
you are using expdp command right ? Dont use expdb...
Thanks ,
Srini ...
Edited by: Srini on Apr 18, 2012 6:31 AM -
Backup Oracle Database On 24x7 System
Dear Kamran
First sorry my English.
I am a beginner of oracle 10g and have a problem please help (Consult) me. If you are accept it
My problem is a :
Two oracle server with RAC (Clustering) and one external oracle server (BACKUP ORACLE SERVER) on the this network without RAC (Clustering) on the RHEL 4.7
How to synchronize third oracle server’s database with RAC oracle servers. Becouse of if RAC Oracle servers down or technical corruption change corrupted server.
Or other flexible solution tell me (how to do it)you can make the third oracle server as a physical standby database to RAC setup. for more information, read oracle doc "Dataguard basics and administration" from http://tahiti.oracle.com
as other option, you can schedule a refresh job from RAC setup to third database server.
Maybe you are looking for
-
Hello, scuse my english, i'm french. I have a muvoN200, and i try to encode with the line input. With a CD player, no problem, but with a microphe, i can't recorde. Maybe it's a prob of impedance, i don't know. this is the microphone : http://cgi.eba
-
BBE Sonic Sweet Plug-In in Logic Pro 9?
I just recently bought the BBE Sonic Sweet Plug-In, and I installed the AU 64-bit version onto my Mac, but I can't seem to figure out how to add it to my list of AU Plug-ins in Logic Pro 9. Any chance that someone could help me out here?
-
Hi All, When clicking on any sqaure colored icon of Team Calendar iview in MSS , I get portal runtime exception "com.sapportals.portal.prt.runtime.PortalRuntimeException: iView not found: com.sap.pct.hcm.attendancedetail.default" Could you please hel
-
Openbox noob question on menus.
I really do apologize about this insanely noob question but this is driving me up a wall. I've read several several different resources on openbox (particularly trying to find information on the root menu) i'm either looking in the wrong place - or I
-
Email absolutely not working!
Hi, I have 2 @live.ca email account and 1 email account associated with my domain name. For the last 6 months, these 3 email accounts where set up on my Iphone and everything was great... Then about 1 week ago, I only received email but couldn't SEND