10g rman database and archivelogs backup with multipled archlog destination

I would like to use the 10g database and archivelogs backup statetement
backup database plus archivelog;
I would like to restrict the location of the archivelogs backed out as I am multiplexing the
archivelogs
I did not find a LIKE statement and the backup database plus archivelog
Did i miss something
patrick boulay

I meant backup
I just want to restrict rman form backing up the two location using the 'one shot' 10g syntax
I used to backup using two steps
1) datafile
2) archlogs with a LIKE expression to tell Rman where to find the archlogs
1+2 with autobackup of control+spfile
the 'backup database plus archivelog ' syntax does accept a 'LIKE' expression
patrick

Similar Messages

  • Rman Full and Archivelog backups

    I am scripting my rman stuff and it's part of a much larger Perl maintenance. I have nightly and hourly jobs. Nightly will do a full backup and hourly will do archivelog backup. Full backups take about 2-3 hours.
    My question is: is there a problem with running archivelog backups be running while I am doing a full backup. If system resources are not an issues, what are some arguments for or against it?

    Thanks Tychos.
    That is something that I've debated - if my full would be with Plus ArchiveLog or not. So, I've decided not to backup the log during a full backup.
    This is for my nightly:
    open (RMAN, "| rman target sys/$SYPASS\@$CSID catalog rman/$CATPSS\@catalog >$Rlog");
    print RMAN <<"END";
    run {
    allocate channel d1 device type disk format \'$HBDir/$HBFiles\';
    set controlfile autobackup format for device type disk to \'$HBDir/$ControlFile\';
    backup as compressed backupset database;
    crosscheck backup;
    delete noprompt obsolete;
    report need backup;}
    END
    close (RMAN);
    This is the hourly:
    open (RMAN, "| rman target sys/$SYPASS\@$CSID catalog rman/$CATPSS\@catalog >$Rlog");
    print RMAN <<"END";
    run {
    allocate channel d1 device type disk format \'$TempArchHBDir/$BUFile\';
    CROSSCHECK ARCHIVELOG ALL;
    set controlfile autobackup format for device type disk to \'$HBDir/$ControlFile\';
    backup archivelog all not backed up 1 times delete input;
    END
    close (RMAN);

  • How to start Oracle 10g RAC database and clusterware?

    I have steps to stop the 10g RAC Database and clusterware but not sure about starting it.
    I have heard executing
    $crsctl stop crs --as root
    on each node
    will start the database,asm,nodeapps .Is that true?
    or we have to do that step by step like we do in stopping the clusterware and database below
    1.Stop the agent:
    cd to $AGENT_HOME/corpng04.amhc.amhealthways.net/bin, then run: ./emctl stop agent
    2.Stop the full database
    $ oracle_home/bin/srvctl stop database -d db_name
    3.Stop the ASM Instances on node1,node2
    $ oracle_home/bin/srvctl stop asm -n node -- I guess you can't give multiple nodes in one command with comma,you need to give this multiple times with diff node name
    4.Stop the NodeApps :vip,listener,oms and gsd
    $ oracle_home/bin/srvctl stop nodeapps -n node -- I guess you can't give multiple nodes in one command with comma,you need to give this multiple times with diff node name
    5.Stop the CRS cluster processes :those bloody 3 evmd,ocssd,crsd
    $su - root
    $CRS_home/bin/crsctl stop crs

    Paul R @ NL wrote:
    before is shutting down crs i tend to stop the instances and services via srvctl then stop crs via crsctl
    just the way i do it. not saying it's the right way but it is the one i am comfortable with.Good -) If we stop CRS, but forgot shutdown oracle instances ... we'll see shutdown abort in alert log file(that mean instances are shutdowned abort).
    We should shutdown instance before stop CRS anyway.

  • Exchange 2010 server with 2 DAG servers - DAG1 and DAG2 - backup with 2 DPM servers one for each DAG server

    Hello,
      Please advice, i have an Exchange 2010 server with 2 DAG servers - DAG1 and DAG2 - backup with 2 DPM servers, one for DAG1 and one for DAG2 is it possible ?

    Hi,
    I confirmed with Exchange support team that DAGs could be backed up separately.
    Meanwhile backup database is important if you need to recover both Exchange server settings and database. See:
    Recover a database availability group member server
    http://technet.microsoft.com/en-us/library/dd638206.aspx
    Please remember to mark the replies as answers if they help and un-mark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Difference betwen RMAN,COLD and HOT backup

    Hi Experts,
    I have faces some interview question .
    what is difference between COLD and HOT backup ?
    what is difference between RMAN, COLD and HOT backup?

    You mean the following,
    Mark the beginning of the online tablespace backup.
    SQL> ALTER TABLESPACE users BEGIN BACKUP;
    Back up the online datafiles of the online tablespace with operating system commands. For UNIX:
    % cp /oracle/oradata/trgt/users01.dbf /d2/users01_'date "+%m_%d_%y"'.dbf
    After backing up the datafiles of the online tablespace, run the SQL statement ALTER TABLESPACE with the END BACKUP option.
    SQL> ALTER TABLESPACE users END BACKUP;
    Please visit here for more details:
    Making User-Managed Backups of Online Read/Write Tablespaces
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/osbackup004.htm#sthref1489
    Adith

  • Backing up database and archivelogs with grid control.

    So I was scheduling a job to backup the entire database and archive logs to an ASM diskgroup.  Well for some reason.... the backup of both the datafiles and archivelog files keep going to my $ORACLE_HOME/db/dbs directory.  I have no clue as I've dropped the job and recreated it and made sure it was going to <diskgroup>. Anyone have any idea what might be happening? I'm using 10.2.0.4 for the database and ASM. My Grid control is also 10.2.0.4.
    Thanks in advance
    Luke

    Grid Control:
    Disk Backup Location: I've tried to leave it blank so that it will goto my flash recovery area(Which is on ASM) and I even tried to explicitly state an ASM diskgroup, but both of those fail and start backing up to /dbs directory
    RMAN:
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 3 DAYS;
    CONFIGURE BACKUP OPTIMIZATION ON;
    CONFIGURE DEFAULT DEVICE TYPE TO DISK;
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTRONLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F';
    CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO COMPRESSED BACKUPSET PARALLELISM 4;
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1;
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1;
    CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '%U';
    CONFIGURE MAXSETSIZE TO UNLIMITED;
    CONFIGURE ENCRYPTION FOR DATABASE OFF;
    CONFIGURE ENCRYPTION ALGORITHM 'AES128;
    CONFIGURE ARCHIVELOG DELETION POLICY TO NONE;
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/SOMEDIR/';
    Edited by: Luke22 on Feb 2, 2010 12:07 PM

  • RMAN OBULETE and Expired Backup

    HI Experts
    i need a query which can tell me about my expired backups and Obsolete backups . my recovery window is of 14 days
    My database version is 10g(10.2.0.4) on AIX 6.1
    regards,

    AMIABU wrote:
    HI Experts
    i need a query which can tell me about my expired backups and Obsolete backups . my recovery window is of 14 days
    My database version is 10g(10.2.0.4) on AIX 6.1
    regards,Use command:
    Rman > crosscheck backup;
    Rman > crosscheck archivelog all;
    Rman > list backup;
    Rman > list archive logall;
    Expired Backup: List Expired
    Then use report obsolete command it show the backup that you dont need it and after that use Delete obsolete command
    It will delete the backup that you dont need it.
    The term obsolete does not mean the same as expired. In short obsolete means "not needed " whereas expired means "not found."
    reference: http://download.oracle.com/docs/cd/B14117_01/server.101/b10734/rcmconc3.htm
    http://www.geekinterview.com/question_details/66392

  • OLAP on 11g and Materialised Views with Multiple Value-Based Hierarchies

    Hello OLAPians
    I am trying to setup Orable BIEE to report on an OLAP cube with pre-aggregated data. As OBIEE is not able to hook into the OLAP directly i have to create an SQL cubeview.
    Currently i am on a 10g OLAP environment and am using the oracle sample SQL cubeview generator to create an SQLview of my cube.
    The cube itself has multiple dimensions and these dimensions have multiple VALUE-based (ragged) hierarchies and dimension members can be shared across hierarchies also.
    Initially i had a problem running the view generator plugin because there is a bug within it that does not finish if there are multiple value-based hierarchies present. I was able to get around this by manually editing the limitmap for the cubeview and manually creating the SQL view.
    The question that i want to ask is how robust is the 11g materialised views with multiple value-based hierarchies and the sharing of dimension members across different hierarchies?
    Has anyone successfully been able to create a cubeview and import it into OBIEE without the hassle of manually editing the limitmap?
    A problem arises with the value-based setup whereby if the client creates a newer depth in the ragged hierarchy, i need to manually create the limitmap and the cube-view over again, and then re-map the BI Administration mappings.

    The simple answer to your question,
    how robust is the 11g materialised views with multiple value-based hierarchies...?is that materialized views are not supported on top of value-based hierarchies in 11g. The reason is that it is not possible to write a reasonable SQL statement that aggregates a fact over a value-based hierarchy. Such a SQL statement is necessary if we want to create a rewritable MV on top of the cube.
    But I suspect this is not what you are really asking. If you are trying to set up OBIEE on top of the cube in 10g using the view generator, then you will probably want to use the "ET VIEWS" that are generated automatically in 11g. These are generated whether or not you enable materialized views on top of your cube. I am not aware of any issues with the generated value-based hierarchy view support in 11g. Members may be shared between value hierarchies and you will not need to generate or modify limit maps.

  • Saving data in a database and publishing data to multiple clients

    Hi there.  I'm using a bunch of Compact FieldPoint modules to read out a few hundred voltages, temperatures, currents, etc.  I acquire this data at about 1 Hz (pretty slow).  I would like to record this data to some sort of database on a cpu (running LV 8.0, connected to the FieldPoint mods), and serve the data to multiple (between 10 and 50) clients over the net, each running a compiled stand-alone "data grabber and viewer" application (which I'll have to write of course).  I'd like these external clients to basically be able to pick a certain variable from the database, and plot it for the last week (or something like that).  Presumably the standalone client would send some database query to the server.  The server would then send the data to the client, and the standalone client would receive the data and plot it as the user sees fit.  My question is how to implement this database?  Should I use the LabView "Database" Add-On to create a database to store the data? Is it better to just store the data as binary and write my own data fetching routine to handle queries?  How can I write this database to disk for permanent storage? Could this database be accessible outside of LabView?
    Any help on this would be appreciated.  Thanks!
    Jesse Wodin
    Post Doctoral Researcher
    Stanford Linear Accelerator Center
    650-504-2512

    Hi Jesse,
      The Citadel database is not a relational database.  It's highly optimized for storing lower-rate (non-waveform) channel-by-channel, or "trace" measurement data.  Another option you can consider is using DSC and Citadel on the server then writing a utility to export the data from Citdael to an SQL database.  --That would solve the problem of having to write a logger application from scratch.  You would only have to write the relatively simple application to export the data from Citadel and import it into a relational database.
      You could accomplish this two ways.  First, DSC includes a set of VIs that will retrieve historical data from Ciatdel.  You could use LabVIEW to parse this data and write it to a table in a relational database.  Second, Citadel actually includes a locally accessible ODBC interface.  (You can query Citadel using an SQL query from the local computer).  You could query Citadel using this interface, then write the result to a table in a relational database.
      To view Citadel in its native format or query a Citadel database using ODBC from a remote comptuer that comptuer would need to have a licensed DSC RTS installed.
    ~~

  • How to set WPA and WPA2 security with multiple AEs

    Hi Everybody,
    I have purchased a second AE and with the help of Alan Summers was able to set them all up for multiple speakers use in iTunes. In order to make them run I had to downgrade security settings to 40-bit WEP which is not really satisfying. My Airport Admin. Utility was still 4.0, so I tried 4.2 which offers the use of WPA and WPA2 with multiple AEs. Upgraded to 4.2 and switched off security settings first. Both AE are recogniced and speakers of second AE also show up in iTunes but I cannot connect to them. Since it didn't work without security settings, I didn't even try with it and went back using 4.0. All other firmware is up-to-date:
    AirPort Express 6.3
    iTunes 6.0.2
    Intel(R) PRO/Wireless 2200BG Network Connection 9.0.3.0
    Any advice would deeply be appreciated!
    BTW - if it works, it's maybe the greatest sound experience I ever had. Music all over the place!!
    Best regards
    Roman

    Found it!!
    1) upgrade Airport Admin. Utility to 4.2
    2) set second AE as "remote base station" and not in "client mode" (that's the clue!!)
    3) follow instructions and type in MAC address of main base station
    4) choose a channel (doesn't matter which one, just has to be the same on both AEs)
    5) choose your personal WPA and WPA2 password (same on both AEs)
    6) restart both AEs
    7) enjoy the music all over the place!
    Best regards
    Roman

  • How to insert autoincrement record and query it with multiple keys

    Hi all,
    I am not familiar with BerkeyleyDB, I am now doing a project that needs to insert records and then query it out with multiple keys at later time. Since there is no field that can be distinct primary key, I want to user DbSequence as auto increment primary key to db, and set other index keys as secondary db, then using join cursor to do query with multiple keys.
    I don't know how to use DbSequence, can anyone direct me to a example of using DbSequence as auto increment primary key?
    Regards
    -Bruce

    I figured out the method to insert record with auto increment primary key. I listed the code block below:
    char m_SeqNamePositions[32] = "MyPositions";
    DbSequence *m_pSeqPositions;
    m_pDBPositions = new Db(NULL, 0);
              m_pDBPositions->open(NULL, pszFileName, szFileName, DB_BTREE, DB_CREATE, 0);          // 无数据文件
              m_pSeqPositions = new DbSequence(m_pDBPositions, 0);
              Dbt key((void *)m_SeqNamePositions, (u_int32_t)strlen(m_SeqNamePositions));
              m_pSeqPositions->open(NULL, &key, DB_CREATE);
    db_seq_t SeqNum;
         m_pSeqPositions->get(0, 1, &SeqNum, 0);
         Dbt key((void *)&SeqNum, (u_int32_t)sizeof(SeqNum));
         Dbt data(pRecord, sizeof(*pRecord));
         return m_pDBPositions->put(NULL, &key, &data, DB_NOOVERWRITE);
    m_pSeqPositions->close(0);
              m_pDBPositions->close(0);
    delete m_pSeqPositions;
    delete m_pDBPositions;
              m_pDBPositions = NULL;

  • Time Machine Backups with Multiple Target Drives

    I am looking at setting up a Time Machine backup solution, for a client, and I was wondering if it was possible to rotate 2 USB drives, and use 1 each week for backups with little or no user intervention.
    Even Week = (Drive 1) --> Xserve
    Odd Week = (Drive 2) --> Xserve
    and cycle this by simply unplugging and plugging as needed.
    I am currently without the hardware to test, which is why I post this here, rather than simply experiment.
    My current question essentially comes down to, does Time Machine choose target drives based on the S/N of the drive, or simply whatever you have labeled it?

    busterv: I used to do this myself for those exact reasons, fire, water damage what ever. I can say that it works well other than having to reset system preferences when you change the drive and the fact that you are exposed for a week or so until you swap the drive.
    I say used to because now I use a drive from a company called ioSafe. http://www.iosafe.com. It's fire proof, water proof and even crush poof, now I don't even have to worry about it. I don't work for ioSafe BTW.

  • HT204053 icloud backup with multiple devices and apple ids

    Wondering if I have the appropriate set up to ensure all my data, purchases, apps, etc. is properly backed up to my icloud (personal email account)?  Here is my current set up.  PC: itunes - personal email; iPhone: icloud & store purchases - personal email; iPad: icloud-work email and store purchases-personal email.  So will store purchases on my iPad still go to my personal icloud?  (Note I can't change the iPad: icloud log in - iPad owned by work so required setting)
    Also, does icloud copy any data from my PC other than itunes?  Not sure if the set up questions when I icloud on my PC are related to my PC or to the various devices.  For instance, "Mail" is an option - which mail account is this?  
    Any clarification on these questions would be much appreciated!

    My iphone 5s = apple id 1
    Husband iphone 4s = apple id 2
    My ipad = apple id 3
    Son #1 ipad mini = apple id 4
    Son #2 ipad mini = apple id 5
    For iCloud.. Not quite, you want the same ID for iCloud on your phone and iPad so you have the same info on each. (so perhaps ID 1 on both.
    But if you want to share your music (assuming lets say its your ID 1 that has the iTunes account), you should all use ID 1 for iTunes.

  • Archivelog backup with 2 destination paths

    Hi,
    DB: 10.2.0.4
    OS: AIX 5.3L
    I have 2 node RAC on ASM with single standby DB.
    I am storing archive logs at primary in 2 paths , one is file system and other one is ASM DISk (FRA path).
    My question is ,
    1) If i take archive log backup in primary , what will be the archive log path RMAN will choose by default to make backup ?. Whether it use file system path or ASM disk path ?.If i am not enabled the FRA and storing the logs in some other ASM disk along with file system path , How will it work in this case?.
    2) While restoring RAC database from RMAN backup , i want to restore based on sequence number .We will have many threads in RAC.
    If i want to specify archive log number in UNTIL clause of RMAN , how do i have to give?.
    Is it something like below?.
    run
    set until sequence 123 thread 1; #ex: 123 is archivelog
    set until sequence 243 thread 2;
    restore database;
    recover database;
    sql ' alter database open resetlogs';
    Please suggest me on this.
    Thanks,
    Sunand

    Hi 795869 ,
    Thanks for your valuable reply. You mean to say that if i give sequence number of particular thread which is higher than the other thread sequence number , oracle will itself search for other threads sequence numbers which are needed for recovery and do the recover , right?.
    Am i ok with below script ?,
    run
    set until sequence 243 thread 2; # thread 1 logs will be recovered automatically , right?
    restore database;
    recover database;
    sql ' alter database open resetlogs';
    Someone can suggest me on my first question.
    Thanks,
    Sunand

  • A problem to drop database and its backups.

    HI,
    database: 10.2.0.4.0
    OS: AIX
    SQL> startup mount exclusive;
    ORACLE instance started.
    Total System Global Area 1610612736 bytes
    Fixed Size 2084336 bytes
    Variable Size 385876496 bytes
    Database Buffers 1174405120 bytes
    Redo Buffers 48246784 bytes
    Database mounted.
    SQL> alter system enable restricted session;
    sql> exit
    rman target / catalog rman@rmancatalog
    RMAN> drop database including backups;
    starting full resync of recovery catalog
    full resync complete
    database name is "xxxx" and DBID is xxxxx
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of drop db & bck command at 09/28/2012 15:40:12
    RMAN-06941: Database must be closed and mounted EXCLUSIVE and RESTRICTED.
    RMAN> sql 'alter system enable restricted session';
    sql statement: alter system enable restricted session
    RMAN>
    RMAN> drop database including backups;
    database name is "xxxxx" and DBID is xxxxx
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of drop db & bck command at 09/28/2012 15:41:37
    RMAN-06941: Database must be closed and mounted EXCLUSIVE and RESTRICTED.
    what is wrong?
    thank you
    Edited by: 951932 on Sep 28, 2012 1:49 PM

    Hello,
    this is what I did, anyway, still failed. thank you very much.
    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup restrict mount
    ORACLE instance started.
    Total System Global Area 1610612736 bytes
    Fixed Size 2084336 bytes
    Variable Size 385876496 bytes
    Database Buffers 1174405120 bytes
    Redo Buffers 48246784 bytes
    Database mounted.
    SQL> drop database;
    drop database
    ERROR at line 1:
    ORA-01586: database must be mounted EXCLUSIVE and not open for this operation
    SQL> alter system enable restricted session;
    System altered.
    SQL> drop database;
    drop database
    ERROR at line 1:
    ORA-01586: database must be mounted EXCLUSIVE and not open for this operation
    ### try another way.
    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup nomount;
    ORACLE instance started.
    Total System Global Area 1610612736 bytes
    Fixed Size 2084336 bytes
    Variable Size 385876496 bytes
    Database Buffers 1174405120 bytes
    Redo Buffers 48246784 bytes
    SQL> alter database mount exclusive;
    Database altered.
    SQL> SQL> alter system enable restricted session;
    System altered.
    SQL> SQL> exit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    [oracle][gamfcs]/home/oracle>rman target /
    Recovery Manager: Release 10.2.0.4.0 - Production on Mon Oct 8 09:29:36 2012
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    connected to target database: GAMFCS (DBID=2082941597)
    RMAN>
    RMAN> drop database including backups;
    database name is "GAMFCS" and DBID is 2082941597
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of drop db & bck command at 10/08/2012 09:29:57
    RMAN-06941: Database must be closed and mounted EXCLUSIVE and RESTRICTED.
    Edited by: 951932 on Oct 8, 2012 7:33 AM

Maybe you are looking for