Configuring RMAN
I'm new to RMAN, and I'm trying to configure the parameters.
Everywhere I've read that the MAXPIECESIZE parameter limits the size of a backup piece, and by default RMAN utility will put the entire contents of a backup set into one backup piece, regardless the size of the backup set. This is good, this is what I would like to see.
When I issued the command "show all", the MAXSETSIZE is set to UNLIMITED.
But when I make a full database backup, it always makes two pieces, one with the datafile information and one with the controlfile/spfile.
How can I set the parameters if I want to end up with one single piece with everything in it?
I'm running Oracle Enterprise Linux with Oracle 10g.
Thanks,
Csaba
OK, I understand the reason of having separate piece for the datafiles and a separate one for the controlfiles/spfile,
but now I tried to backup the archivelogs, to my understanding these could have gone into one piece, what is the reason that
RMAN did backed this in two separate backup pieces as well?
RMAN> backup archivelog all format '/backup/rman/DB2_archlg_0211_%s_%p' tag Arch_0211;
Starting backup at 11-FEB-09
current log archived
using channel ORA_DISK_1
channel ORA_DISK_1: starting compressed archive log backupset
channel ORA_DISK_1: specifying archive log(s) in backup set
input archive log thread=1 sequence=120 recid=1 stamp=677860674
input archive log thread=1 sequence=121 recid=2 stamp=677926428
input archive log thread=1 sequence=122 recid=3 stamp=677930092
input archive log thread=1 sequence=123 recid=4 stamp=677930094
input archive log thread=1 sequence=124 recid=5 stamp=677930097
input archive log thread=1 sequence=125 recid=6 stamp=677934050
input archive log thread=1 sequence=126 recid=7 stamp=677944551
input archive log thread=1 sequence=127 recid=8 stamp=677954769
input archive log thread=1 sequence=128 recid=9 stamp=678015417
input archive log thread=1 sequence=129 recid=10 stamp=678020445
input archive log thread=1 sequence=130 recid=11 stamp=678030336
input archive log thread=1 sequence=131 recid=12 stamp=678040144
input archive log thread=1 sequence=132 recid=13 stamp=678097227
input archive log thread=1 sequence=133 recid=14 stamp=678106310
input archive log thread=1 sequence=134 recid=15 stamp=678114062
input archive log thread=1 sequence=135 recid=16 stamp=678359475
input archive log thread=1 sequence=136 recid=17 stamp=678362521
input archive log thread=1 sequence=137 recid=18 stamp=678367508
input archive log thread=1 sequence=138 recid=19 stamp=678375784
input archive log thread=1 sequence=139 recid=20 stamp=678378092
channel ORA_DISK_1: starting piece 1 at 11-FEB-09
channel ORA_DISK_1: finished piece 1 at 11-FEB-09
piece handle=/backup/rman/DB2_archlg_0211_18_1 tag=ARCH_0211 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:36
channel ORA_DISK_1: starting compressed archive log backupset
channel ORA_DISK_1: specifying archive log(s) in backup set
input archive log thread=1 sequence=1 recid=21 stamp=678468652
input archive log thread=1 sequence=2 recid=22 stamp=678468652
input archive log thread=1 sequence=3 recid=23 stamp=678468653
input archive log thread=1 sequence=4 recid=24 stamp=678547235
input archive log thread=1 sequence=5 recid=25 stamp=678547235
input archive log thread=1 sequence=6 recid=26 stamp=678547236
input archive log thread=1 sequence=7 recid=27 stamp=678547237
channel ORA_DISK_1: starting piece 1 at 11-FEB-09
channel ORA_DISK_1: finished piece 1 at 11-FEB-09
piece handle=/backup/rman/DB2_archlg_0211_19_1 tag=ARCH_0211 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:08
Finished backup at 11-FEB-09
RMAN> list backup summary;
List of Backups
===============
Key TY LV S Device Type Completion Time #Pieces #Copies Compressed Tag
15 B A A DISK 11-FEB-09 1 1 YES ARCH_0211
16 B A A DISK 11-FEB-09 1 1 YES ARCH_0211
RMAN> list backup;
List of Backup Sets
===================
BS Key Size Device Type Elapsed Time Completion Time
15 63.57M DISK 00:00:33 11-FEB-09
BP Key: 15 Status: AVAILABLE Compressed: YES Tag: ARCH_0211
Piece Name: /backup/rman/DB2_archlg_0211_18_1
List of Archived Logs in backup set 15
Thrd Seq Low SCN Low Time Next SCN Next Time
1 120 370037 03-FEB-09 382119 03-FEB-09
1 121 382119 03-FEB-09 408422 04-FEB-09
1 122 408422 04-FEB-09 416754 04-FEB-09
1 123 416754 04-FEB-09 416879 04-FEB-09
1 124 416879 04-FEB-09 417014 04-FEB-09
1 125 417014 04-FEB-09 420847 04-FEB-09
1 126 420847 04-FEB-09 428769 04-FEB-09
1 127 428769 04-FEB-09 438846 04-FEB-09
1 128 438846 04-FEB-09 442733 05-FEB-09
1 129 442733 05-FEB-09 453899 05-FEB-09
1 130 453899 05-FEB-09 463693 05-FEB-09
1 131 463693 05-FEB-09 474775 05-FEB-09
1 132 474775 05-FEB-09 479438 06-FEB-09
1 133 479438 06-FEB-09 489360 06-FEB-09
1 134 489360 06-FEB-09 501092 06-FEB-09
1 135 501092 06-FEB-09 509483 09-FEB-09
1 136 509483 09-FEB-09 513474 09-FEB-09
1 137 513474 09-FEB-09 533349 09-FEB-09
1 138 533349 09-FEB-09 540006 09-FEB-09
1 139 540006 09-FEB-09 542369 09-FEB-09
BS Key Size Device Type Elapsed Time Completion Time
16 15.60M DISK 00:00:07 11-FEB-09
BP Key: 16 Status: AVAILABLE Compressed: YES Tag: ARCH_0211
Piece Name: /backup/rman/DB2_archlg_0211_19_1
List of Archived Logs in backup set 16
Thrd Seq Low SCN Low Time Next SCN Next Time
1 1 550551 10-FEB-09 572306 10-FEB-09
1 2 572306 10-FEB-09 592455 10-FEB-09
1 3 592455 10-FEB-09 601064 10-FEB-09
1 4 601064 10-FEB-09 607325 11-FEB-09
1 5 607325 11-FEB-09 612031 11-FEB-09
1 6 612031 11-FEB-09 615217 11-FEB-09
1 7 615217 11-FEB-09 630808 11-FEB-09
RMAN>
Maybe in this situation, it has something to do with the sequence number restarting?
Csaba
Similar Messages
-
Configuring rman for dataguard environment.
Hi all,
Here we have a dataguard environment with db1 as primary and db2 as physical standby database. We configured dataguard in 10g environments and we are not using grid control. Can anyone provide the steps for configuring rman for incremental backups in this environment? We want to schedule the backups to be taken in standby db, (that is applicable in case of swithover too). In the case of swithover to db2 what all do we need to do in rman manually to resume backups in db1?
ThanksHello;
A Standby database is a copy of the Primary so if you try to register it RMAN will probably tell you its already registered. I would start with this :
Standby based backup
1. Enable auto backup of the control file and server parameter file. CONFIGURE CONTROLFILE AUTOBACKUP ON.
2. Skip backups on datafiles already backup. CONFIGURE BACKUP OPTIMIZATION.
3. Set the archive deletion policy. CONFIGURE DELETION POLICY TO NONE.
You have to decide on the exact RMAN script you want to use, but since the database is registered you can perform backup on either the Primary or the Standby as the need arises.
See "Using RMAN to Back Up and Restore Files" in "Data Guard Concepts and Administration 10g Release 2 (10.2) B14239-05"
http://docs.oracle.com/cd/B19306_01/server.102/b14239/rman.htm
Example in this post
How to manage primary and standby database backups using rman catalog
How to use standby backup to restore primary db
http://alexzeng.wordpress.com/2008/09/13/how-to-use-standby-backup-to-restore-primary-db/
Best Regards
mseberg -
Configuring RMAN for dataguard.
Hi all,
Here we have a dataguard environment with db1(db_unique_name) as primary and db2(db_unique_name) as physical standby database. For both primary and secondary the ORACLE_SID is 'oracledb'.We configured dataguard in 10g environments and we are not using grid control. And now we want to configure rman for incremental backups. We are using a third catalog database to which we registered from primary db successfully. During primary rman configuration it is showing conflicts. Even the changes made in primary RMAN configuration are applied on to the standby too which i think shouldn't happen in this scenario. How to resolve this issue? Is this happening because of the same ORACLE_SID for both primary and secondary? I'm attaching the link of the doc that we followed also the errors and configuration in rman. Can anyone help?
http://docs.oracle.com/cd/B28359_01/server.111/b28294/rman.htm#BAJFBBBB
RMAN> CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBY;
new RMAN configuration parameters:
CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBY;
new RMAN configuration parameters are successfully stored
starting full resync of recovery catalog
full resync complete
RMAN-08591: WARNING: invalid archivelog deletion policy
RMAN> CONFIGURE DB_UNIQUE_NAME db1 CONNECT IDENTIFIER 'db1';
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "db_unique_name": expecting one of: "archivelog, auxiliary, auxname, backup, channel, controlfile, clonename, compatible, datafile, device, default, exclude, encryption, maxsetsize, retention, snapshot"
RMAN-01007: at line 1 column 11 file: standard input
RMAN> show all;
starting full resync of recovery catalog
full resync complete
RMAN configuration parameters are:
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 2 DAYS;
CONFIGURE BACKUP OPTIMIZATION OFF; # default
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP OFF; # default
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBY;
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/product/10.2.0/db_1/dbs/snapcf_NIOS.f'; # default
Thanks.RMAN> show db_unique_name;
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "db_unique_name": expecting one of: "all, archivelog, auxiliary, auxname, backup, channel, controlfile, datafile, device, default, exclude, encryption, maxsetsize, retention, snapshot"
RMAN-01007: at line 1 column 7 file: standard input
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found ";": expecting one of: "allocate, alter, backup, beginline, blockrecover, catalog, change, connect, copy, convert, create, crosscheck, configure, duplicate, debug, delete, drop, exit, endinline, flashback, host, {, library, list, mount, open, print, quit, recover, register, release, replace, report, renormalize, reset, restore, resync, rman, run, rpctest, set, setlimit, sql, switch, spool, startup, shutdown, send, show, test, transport, upgrade, unregister, validate"
RMAN-01007: at line 1 column 21 file: standard input
But on this i'm getting response
SQL> select db_unique_name from v$database;
DB_UNIQUE_NAME
db1
same and db2 as db_unique_name for standby....
Edited by: 954758 on Sep 3, 2012 3:41 AM -
How to configure Rman for Grid 11g
hi all
i am using Oracle Grid 11g R2.
Oracle Database 11g R2.
Oracle Linux 5.5
i want to configure Rman for my Rac i searched and found some notes
such as
http://oraclehack.blogspot.com/2010/07/oracle-11gr2-rman-netbackup-and-media.html
http://oracle-tns.com/duplicate-an-oracle-11gr2-with-rman/
can anyone guide me how to configure Rman?
Question Moved To Rman Forum!
nisha
Edited by: nisha on Jun 5, 2011 9:44 PMhi
what is SBT here?
CONFIGURE DEVICE TYPE sbt PARALLELISM 3;
Channel Connections to Cluster Instances with RMAN
Channel connections to the instances are determined
using the connect string defined by channel configurations.
For example, in the following configuration, three channels are allocated using dbauser/pwd@service_name. If you configure the SQL Net service name with load balancing turned on, then the channels are allocated at a node as decided by the load balancing algorithm.
CONFIGURE DEVICE TYPE sbt PARALLELISM 3;
CONFIGURE DEFAULT DEVICE TYPE TO sbt;
CONFIGURE CHANNEL DEVICE TYPE SBT CONNECT 'dbauser/pwd@service_name'Edited by: nisha on Jun 6, 2011 12:27 AM -
Prerequisites for configuring RMAN
Hi All,
My database is in AIX Box..
I have to configure Rman backup in Windows system..
What are all the prerequisites for configuring the Rman?Hi!
OK. I'll post the content of this website:
A database cloning procedure is especially useful for the DBA who wants to give his developers a full-sized TEST and DEV instance by cloning the PROD instance into the development server areas.
This Oracle clone procedure can be use to quickly migrate a system from one UNIX server to another. It clones the Oracle database and this Oracle cloning procedures is often the fastest way to copy a Oracle database.
STEP 1: On the old system, go into SQL*Plus, sign on as SYSDBA and issue: “alter database backup controlfile to trace”. This will put the create database syntax in the trace file directory. The trace keyword tells oracle to generate a script containing a create controlfile command and store it in the trace directory identified in the user_dump_dest parameter of the init.ora file. It will look something like this:
STARTUP NOMOUNT
CREATE CONTROLFILE REUSE DATABASE "OLDLSQ" NORESETLOGS
NOARCHIVELOG
MAXLOGFILES 16
MAXLOGMEMBERS 2
MAXDATAFILES 240
MAXINSTANCES 1
MAXLOGHISTORY 113
LOGFILE
GROUP 1 ('/u03/oradata/oldlsq/log1a.dbf',
'/u03/oradata/olslsq/log1b.dbf') SIZE 30M,
GROUP 2 ('/u04/oradata/oldlsq/log2a.dbf',
'/u04/oradata/oldlsq/log2b.dbf') SIZE 30M
DATAFILE
'/u01/oradata/oldlsq/system01.dbf',
'/u01/oradata/oldlsq/mydatabase.dbf'
# Recovery is required if any of the datafiles are restored
# backups, or if the last shutdown was not normal or immediate.
RECOVER DATABASE
# Database can now be opened normally.
ALTER DATABASE OPEN;STEP 2: Shutdown the old database
STEP 3: Copy all data files into the new directories on the new server. You may change the file names if you want, but you must edit the controlfile to reflect the new data files names on the new server.
rcp /u01/oradata/oldlsq/* newhost:/u01/oradata/newlsq
rcp /u01/oradata/oldlsq/* newhost:/u01/oradata/newlsq
rcp /u03/oradata/oldlsq/* newhost:/u03/oradata/newlsq
rcp /u04/oradata/oldlsq/* newhost:/u04/oradata/newlsqSTEP 4: Copy and Edit the Control file – Using the output syntax from STEP 1, modify the controlfile creation script by changing the following:
Old:
CREATE CONTROLFILE REUSE DATABASE "OLDLSQ" NORESETLOGSNew:
CREATE CONTROLFILE SET DATABASE "NEWLSQ" RESETLOGSSTEP 5: Remove the “recover database” and “alter database open” syntax
# Recovery is required if any of the datafiles are restored
# backups, or if the last shutdown was not normal or immediate.
RECOVER DATABASE
# Database can now be opened normally.
ALTER DATABASE OPEN;STEP 6: Re-names of the data files names that have changed.
Save as db_create_controlfile.sql.
Old:
DATAFILE
'/u01/oradata/oldlsq/system01.dbf',
'/u01/oradata/oldlsq/mydatabase.dbf'New:
DATAFILE
'/u01/oradata/newlsq/system01.dbf',
'/u01/oradata/newlsq/mydatabase.dbf'STEP 7: Create the bdump, udump and cdump directories
cd $DBA/admin
mkdir newlsq
cd newlsq
mkdir bdump
mkdir udump
mkdir cdump
mkdir pfileSTEP 8: Copy-over the old init.ora file
rcp $DBA/admin/olslsq/pfile/*.ora newhost:/u01/oracle/admin/newlsq/pfileSTEP 9: Start the new database
@db_create_controlfile.sqlSTEP 10: Place the new database in archivelog mode
I hope that this could be of any help to you.
Best Regards
Florian W. -
Instructions for Configuring RMAN (Oracle 11g Enterprise Edition)
Good Afternoon,
Having problems configuring RMAN. Can someone tell me how to configure RMAN using the command line?
Thanks976505 wrote:
When I attempt to set the NLS_LANG at the SQLPLUS prompt, I get the following error message: SP2-0158: unknown SET option "NLS_DATE"
What am I doing wrong, did I miss something?
NLS_LANG can only be set at OS level: as env. var. in UNIX/Windows and as registry setting in Windows.
See OTN NLS_LANG FAQ http://www.oracle.com/technetwork/database/globalization/nls-lang-099431.html.
For example in Windows 7 if I want French settings and keep same character set:
set NLS_LANG=FRENCH_FRANCE.Edited by: P. Forstmann on 2 févr. 2013 20:42 -
Very first step in configuring RMAN for a Backup
DB version:10gR2
I am a DBA supporting applications development and i am not familiar with RMAN. This weekend we are going to Patch 10.2.0.1.0 to 10.2.0.3.0. Before that i am going to take a backup of the entire Database containing around 57 schemas(total of around 600gb).
We don't have Tape drives. I am going to backup this up on three filesystems in the same machine. This instance is not running on ASM. What is the first step i should be doing in configuring RMAN for a backup?
Edited by: user10583227 on Jan 27, 2009 4:50 AMBe careful, three filesystems doesn't necessarily mean the use of three channels. Could be more...could be less.
Are you in a position to shutdown the database? If not, you'll also want to backup the archivelogs with BACKUP DATABASE PLUS ARCHIVELOG. You may also consider creating a Guaranteed Restore Point which would allow you to rollback your database in minutes if the upgrade fails. -
hi,
while taking backup we are configuring channels based on cpu's right?
so, how i can fine no. of cpu's on my machine and how many channels can allocate per cpu.If you don't know how to retrieve the number of CPUs on your server, you are probably not the right person to configure RMAN backups :-)
Jokes aside: Number of CPUs is not the only factor to estimate the number of channels. Isn't one channel fast enough for your backup? Do you backup to tape or disk? Do you backup during end user activity? What kind of storage (RAID, ASM, Number of Drives) are you using? How big is your database? What is your time window for the backup?
That is a list of factors to take into account that I think of first.
Kind regards
Uwe Hesse
http://uhesse.wordpress.com -
Configuring RMAN in oracle 10g database for solaris OS
hi
send me the step by step configuration of RMAN in oracle10g for solaris OS
BR
DurgaCheck the following:
Backup and Recovery Quick Start Guide
Backup and Recovery Basics
Backup and Recovery Advanced Users Guide -
How to configure RMAN - Oracle EBS R12
Hi,
I have installed Oracle EBS R12 on OEL 5.6 and want to configure Backup strategy for Database. Database Version is 11.1.0.7. Currently Database is in Noarchivelog mode and want to take backup of database using RMAN. Can anyone guide me what are the steps to follow in order to achive that ?
Regards,
PriyankaYou can use RMAN to take backup in noarchive log mode.However you will be able to take cold backup only.
Use this,
RMAN> run {
shutdown immediate;
startup mount;
backup database;
alter database open;
Note:
RMAN does not permit you to make inconsistent backups when the database is in NOARCHIVELOG mode. If you employ user-managed backup techniques for a NOARCHIVELOG database, then you must not make inconsistent backups of this database.
Edited by: user12943013 on Apr 13, 2011 5:20 PM -
Configuring Rman backups from Enterprise Manager GC.
Greetings,
I am having a difficult time understanding how OEM GC 11g interacts with RMAN and am hoping someone can clarify a couple of things for me. Hopefully I am asking meaningful questions. I can make it work but am unclear as to how it is working.
1) For a particular instance under Availability -> Backup/Recovery -> Setting -> Backup Settings I configure my backup settings for RMAN. Is that analogous to issuing the CONFIGURE command from within RMAN?
2) For a particular instance under Availability -> Backup/Recovery -> Manage -> Schedule Backup There are two choices: Oracle Suggested Backup and Customized backup.
Does each of those choices use the settings defined when I configured backup settings?
Looking at the script generated by the Oracle Suggested Backup it appears that it is a very basic backup. What does it do about archive maintenance after backup.
Thanks
Bill WagmanHi,
to answer the questions:
1.) yes, these settings reflect the RMAN configuration settings and are used for the backup jobs that are configured via Grid Control
2.) we are using gric control to configure our backup jobs - we never used the Oracle suggested backups, they seemed to be too simple and less flexible. We preferred to build customized backups. They are easy to configure (some screens to clck through) and provides more flexibility. As an example you can decide to backup archive logs also and to delete then from disk afterwards. Also you can distinguish between full or incremental backups. I think it is uasbel and flexible enough for basic backup strategies.
Regards -
Need to Configure RMAN backup in 8.1.7.4.1
I have been asked to design a backup and recovery strategy for our production and test databases
I got 2003 Enterprise server with 3 disks of each 300gb.
There are 10 databases running in versions 8,9,10 with 5 production and 5 UAT database.
The sum of the Db will be around 70Gb
I got 200Gb free space in 2 disks
how can i design a BACKUP startegy here. I have palnned to use RMAN backups.
Any useful links and proper guiding from you people expected.
Right Now there is only export backup in Night.
I have informed them we are running the Db in risk,.They have asked me to comeup with a plan.
Any help please
Message was edited by:
Maran.EMaran,
>
Is it possible to backup 8.1.7.4.1 by 10g database.
i can create a recovery catalog in 10g and wil i be able to backup a 8 and 9 Db
>
I have test 10g catalog with 9i. No idea with the 8i.
I guess, 8i(817) is more comportable with 10g and it should work.
Have a try with your test database and also cross check the metrix with different version in the Metalink.
Jaffar
Good news Maran,
I just come across of the following note which explains the RMAN compatibility between 8 - 10g versions.
RMAN Compatibility Oracle8i 8.1.7.4 - Oracle10g 10.1.0.4
Doc ID: Note:307022.1
In case, if you dont have access to metalink, the punch line from the note is :
SUMMARY
=======
Is best practice to use 'rule of thumb'. Always used the target database RMAN executable and the latest release of Oracle for your recovery catalog.
If you are going to use a lower version RMAN executable to backup higher version databases remember you are restricted to only the features available
in the database your using. But the executable you are using must be able to handle the feature or configuration you are using. Case and point the
RMAN-06466 error above where in 9.0.1 there is no concept of "AS BACKUPSET".
Because configure commands were executed some options in the controlfile were not understood when parsed by the lower version RMAN.
Message was edited by:
Syed Jaffar -
Hi,
I connected the oracle system through connect as / sysdba. Please suggest me how to configure or connect to RMAN .
Regards,
AsifHello Asif,
are you aware, that if you are using RMAN manually - you don't get any support by SAP (check sapnote #105047 - Point 47)?
And if you don't know howto connect to RMAN, i highly recommend "Don't do it manually!"
The RMAN implementation in BR*Tools is explained very well:
http://help.sap.com/saphelp_erp2004/helpdata/en/0e/f10a7443d711d29fef0000e8a5ae06/content.htm
Regards
Stefan -
How to configure rman in linux
we dont need to do anything to use rman in windows but how can i use rman in linux??
if any one can help ?
From what i can understand is we need to install the rpm and start its service
if thier is anything else that i am missing please let me know .thankswe dont need to do anything to use rman in windows but how can i use rman in linux?Same way. Once Oracle is installed and Database is created you don't need anything else, simply run it, for example :
$ rman nocatalog
Recovery Manager: Release 10.2.0.1.0 - Production on Fri Jan 20 16:26:41 2006
Copyright (c) 1982, 2005, Oracle. All rights reserved.
RMAN> connect target
connected to target database: DB102 (DBID=XXXXXXXXX)
using target database control file instead of recovery catalog
RMAN> -
OK, I understand the reason of having separate piece for the datafiles and a separate one for the controlfiles/spfile,
but now I tried to backup the archivelogs, to my understanding these could have gone into one piece, what is the reason that
RMAN did backed this in two separate backup pieces as well?
RMAN> backup archivelog all format '/backup/rman/DB2_archlg_0211_%s_%p' tag Arch_0211;
Starting backup at 11-FEB-09
current log archived
using channel ORA_DISK_1
channel ORA_DISK_1: starting compressed archive log backupset
channel ORA_DISK_1: specifying archive log(s) in backup set
input archive log thread=1 sequence=120 recid=1 stamp=677860674
input archive log thread=1 sequence=121 recid=2 stamp=677926428
input archive log thread=1 sequence=122 recid=3 stamp=677930092
input archive log thread=1 sequence=123 recid=4 stamp=677930094
input archive log thread=1 sequence=124 recid=5 stamp=677930097
input archive log thread=1 sequence=125 recid=6 stamp=677934050
input archive log thread=1 sequence=126 recid=7 stamp=677944551
input archive log thread=1 sequence=127 recid=8 stamp=677954769
input archive log thread=1 sequence=128 recid=9 stamp=678015417
input archive log thread=1 sequence=129 recid=10 stamp=678020445
input archive log thread=1 sequence=130 recid=11 stamp=678030336
input archive log thread=1 sequence=131 recid=12 stamp=678040144
input archive log thread=1 sequence=132 recid=13 stamp=678097227
input archive log thread=1 sequence=133 recid=14 stamp=678106310
input archive log thread=1 sequence=134 recid=15 stamp=678114062
input archive log thread=1 sequence=135 recid=16 stamp=678359475
input archive log thread=1 sequence=136 recid=17 stamp=678362521
input archive log thread=1 sequence=137 recid=18 stamp=678367508
input archive log thread=1 sequence=138 recid=19 stamp=678375784
input archive log thread=1 sequence=139 recid=20 stamp=678378092
channel ORA_DISK_1: starting piece 1 at 11-FEB-09
channel ORA_DISK_1: finished piece 1 at 11-FEB-09
piece handle=/backup/rman/DB2_archlg_0211_18_1 tag=ARCH_0211 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:36
channel ORA_DISK_1: starting compressed archive log backupset
channel ORA_DISK_1: specifying archive log(s) in backup set
input archive log thread=1 sequence=1 recid=21 stamp=678468652
input archive log thread=1 sequence=2 recid=22 stamp=678468652
input archive log thread=1 sequence=3 recid=23 stamp=678468653
input archive log thread=1 sequence=4 recid=24 stamp=678547235
input archive log thread=1 sequence=5 recid=25 stamp=678547235
input archive log thread=1 sequence=6 recid=26 stamp=678547236
input archive log thread=1 sequence=7 recid=27 stamp=678547237
channel ORA_DISK_1: starting piece 1 at 11-FEB-09
channel ORA_DISK_1: finished piece 1 at 11-FEB-09
piece handle=/backup/rman/DB2_archlg_0211_19_1 tag=ARCH_0211 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:08
Finished backup at 11-FEB-09
RMAN> list backup summary;
List of Backups
===============
Key TY LV S Device Type Completion Time #Pieces #Copies Compressed Tag
15 B A A DISK 11-FEB-09 1 1 YES ARCH_0211
16 B A A DISK 11-FEB-09 1 1 YES ARCH_0211
RMAN> list backup;
List of Backup Sets
===================
BS Key Size Device Type Elapsed Time Completion Time
---------- ------------ 15 63.57M DISK 00:00:33 11-FEB-09
BP Key: 15 Status: AVAILABLE Compressed: YES Tag: ARCH_0211
Piece Name: /backup/rman/DB2_archlg_0211_18_1
List of Archived Logs in backup set 15
Thrd Seq Low SCN Low Time Next SCN Next Time
---- ---------- ---------- 1 120 370037 03-FEB-09 382119 03-FEB-09
1 121 382119 03-FEB-09 408422 04-FEB-09
1 122 408422 04-FEB-09 416754 04-FEB-09
1 123 416754 04-FEB-09 416879 04-FEB-09
1 124 416879 04-FEB-09 417014 04-FEB-09
1 125 417014 04-FEB-09 420847 04-FEB-09
1 126 420847 04-FEB-09 428769 04-FEB-09
1 127 428769 04-FEB-09 438846 04-FEB-09
1 128 438846 04-FEB-09 442733 05-FEB-09
1 129 442733 05-FEB-09 453899 05-FEB-09
1 130 453899 05-FEB-09 463693 05-FEB-09
1 131 463693 05-FEB-09 474775 05-FEB-09
1 132 474775 05-FEB-09 479438 06-FEB-09
1 133 479438 06-FEB-09 489360 06-FEB-09
1 134 489360 06-FEB-09 501092 06-FEB-09
1 135 501092 06-FEB-09 509483 09-FEB-09
1 136 509483 09-FEB-09 513474 09-FEB-09
1 137 513474 09-FEB-09 533349 09-FEB-09
1 138 533349 09-FEB-09 540006 09-FEB-09
1 139 540006 09-FEB-09 542369 09-FEB-09
BS Key Size Device Type Elapsed Time Completion Time
---------- ------------ 16 15.60M DISK 00:00:07 11-FEB-09
BP Key: 16 Status: AVAILABLE Compressed: YES Tag: ARCH_0211
Piece Name: /backup/rman/DB2_archlg_0211_19_1
List of Archived Logs in backup set 16
Thrd Seq Low SCN Low Time Next SCN Next Time
---- ---------- ---------- 1 1 550551 10-FEB-09 572306 10-FEB-09
1 2 572306 10-FEB-09 592455 10-FEB-09
1 3 592455 10-FEB-09 601064 10-FEB-09
1 4 601064 10-FEB-09 607325 11-FEB-09
1 5 607325 11-FEB-09 612031 11-FEB-09
1 6 612031 11-FEB-09 615217 11-FEB-09
1 7 615217 11-FEB-09 630808 11-FEB-09
RMAN>
Maybe in this situation, it has something to do with the sequence number restarting?
CsabaIt didn't. It did back up in two different sets.
If you would have read the output carefully, instead of with a half eye, you would have known this.
Your format is
DB2_archlg_0211_%s_%p'
and the sets are
piece handle=/backup/rman/DB2_archlg_0211_18_1 tag=ARCH_0211
set 18, piece 1!
and
piece handle=/backup/rman/DB2_archlg_0211_19_1 tag=ARCH_0211
set *19* piece 1.
Rman automagically determines the number of files per set.
Those files are being backed up in parallel, and multiplexed in one backupset.
Filesperset unlimited doesn't exist, nor is it a problem you have multiple backup sets, RMAN knows how to deal with them.
And optionally you can tag them.
Yours is a case of not reading documentation, or not reading it closely enough.
Your understanding " to my understanding these could have gone into one piece" is simply incorrect.
Sybrand Bakker
Senior Oracle DBA
Maybe you are looking for
-
Photoshop 'Quit Unexpectedly' when I close?
Recently I've noticed that when I close 3rd party apps as they close I get the message 'Photoshop quit unexpectedly ' as if Leopard didn't understand that I was closing the app. This happens with Photoshop and Epson Scan which I am using a lot at the
-
Question: Singapore and Malaysia not available as an option in First Implementation
Hi, I am going through the available countries during the editing of the project scope in First Implementations and can't find Singapore and Malaysia as options in the list. Please help. Thank you. Liew
-
Changing your URL...in a language I can understand.
Could someone please tell me what I need to do to change my URL feed. Currently I am using Podbean but have used up all the bandwidth allowed for 'free' users. I have now created a website using iweb which will support the podcast, yet no matter how
-
Cannot import SIM contacts to iPhone 3S
Hiya Trying to import contacts to iPhone 3S from SIM but nothing happens qfter the 'Importing Contacts' sign appears. Others post the same issue but I can't find a fix that works, thanks fpr any help, joe
-
[SOLVED]Trying to install package-query again. Cannot find PKGBUILD.
I'm updating my arch after 4 months. Yes it has been a long time. During the update process I had to remove package-query and yaourt, and now I'm trying to get them back. I got package-query from here https://aur.archlinux.org/packages.php?ID=35915 U