Archivelog generation of RAC database

Hello All,
Can you please give me query to get no of archivelogs generated in RAC database.
Thanks in advance for your help.
Regards,
Alok

hi,
I am using following query
set termout off;
column 00 format 9999
col 01 format 9999
col 02 format 9999
col 03 format 9999
col 04 format 9999
col 05 format 9999
col 06 format 9999
col 07 format 9999
col 08 format 9999
col 09 format 9999
col 10 format 9999
col 11 format 9999
col 12 format 9999
col 13 format 9999
col 14 format 9999
col 16 format 9999
col 17 format 9999
col 18 format 9999
col 19 format 9999
col 20 format 9999
col 21 format 9999
col 22 format 9999
col 23 format 9999
spool /tmp/redolog_history_doc.html
set markup html on;
select to_char(FIRST_TIME,'YYYY/MM/DD') day,
to_char(sum(decode(to_char(first_time,'hh24'),'00',1,0)),'99') "00",
to_char(sum(decode(to_char(first_time,'hh24'),'01',1,0)),'99') "01",
to_char(sum(decode(to_char(first_time,'hh24'),'02',1,0)),'99') "02",
to_char(sum(decode(to_char(first_time,'hh24'),'03',1,0)),'99') "03",
to_char(sum(decode(to_char(first_time,'hh24'),'04',1,0)),'99') "04",
to_char(sum(decode(to_char(first_time,'hh24'),'05',1,0)),'99') "05",
to_char(sum(decode(to_char(first_time,'hh24'),'06',1,0)),'99') "06",
to_char(sum(decode(to_char(first_time,'hh24'),'07',1,0)),'99') "07",
to_char(sum(decode(to_char(first_time,'hh24'),'08',1,0)),'99') "08",
to_char(sum(decode(to_char(first_time,'hh24'),'09',1,0)),'99') "09",
to_char(sum(decode(to_char(first_time,'hh24'),'10',1,0)),'99') "10",
to_char(sum(decode(to_char(first_time,'hh24'),'11',1,0)),'99') "11",
to_char(sum(decode(to_char(first_time,'hh24'),'12',1,0)),'99') "12",
to_char(sum(decode(to_char(first_time,'hh24'),'13',1,0)),'99') "13",
to_char(sum(decode(to_char(first_time,'hh24'),'14',1,0)),'99') "14",
to_char(sum(decode(to_char(first_time,'hh24'),'15',1,0)),'99') "15",
to_char(sum(decode(to_char(first_time,'hh24'),'16',1,0)),'99') "16",
to_char(sum(decode(to_char(first_time,'hh24'),'17',1,0)),'99') "17",
to_char(sum(decode(to_char(first_time,'hh24'),'18',1,0)),'99') "18",
to_char(sum(decode(to_char(first_time,'hh24'),'19',1,0)),'99') "19",
to_char(sum(decode(to_char(first_time,'hh24'),'20',1,0)),'99') "20",
to_char(sum(decode(to_char(first_time,'hh24'),'21',1,0)),'99') "21",
to_char(sum(decode(to_char(first_time,'hh24'),'22',1,0)),'99') "22",
to_char(sum(decode(to_char(first_time,'hh24'),'23',1,0)),'99') "23"
from v$log_history where FIRST_TIME > sysdate - 45
group by to_char(FIRST_TIME,'YYYY/MM/DD') order by substr(to_char(FIRST_TIME,'YYYY/MM/DD'),1,10) desc ;
spool off
set markup html off;
set termout on;
but the output comes in hashed out like this:
DAY Mid 1AM 2AM 3AM 4AM 5AM 6AM 7AM 8AM 9AM 10A 11A Noo 1PM 2PM 3PM 4PM 5PM 6PM 7PM 8PM 9PM 10P 11P
2010/06/07 ### ### 94 ### 2 2 0 5 11 1 4 98 89 63 ### 37 31 20 ### ### ### ### ### 0
2010/06/06 22 69 17 16 15 10 10 7 7 10 6 6 4 7 4 6 4 4 4 5 ### ### 58 27
2010/06/05 2 9 ### 3 2 5 16 71 87 63 44 ### ### ### 85 88 22 ### ### 2 3 4 ### 23
2010/06/04 1 5 1 2 3 2 4 2 3 3 2 2 2 ### 68 29 9 1 29 ### 39 15 2 13
2010/06/03 30 46 35 26 22 50 43 23 ### ### ### ### ### ### 24 23 23 22 23 26 ### ### ### 10
2010/06/02 ### ### 83 49 59 32 23 22 17 ### ### ### ### ### ### ### ### 63 ### ### ### ### ### 30
2010/06/01 1 5 15 8 ### ### ### ### ### ### ### ### 38 71 ### 62 40 ### ### ### ### ### ### 95
2010/05/31 32 4 0 1 4 1 2 3 28 ### ### ### ### 97 50 ### ### ### 4 9 2 4 2 6
2010/05/30 1 5 4 4 6 5 62 6 4 4 43 ### ### 18 9 6 3 ### ### ### 3 4 1 12
2010/05/29 ### 64 40 57 51 88 2 5 2 3 ### ### 13 7 7 17 21 59 ### 10 10 12 7 3
2010/05/28 1 4 6 7 4 5 3 1 4 5 1 3 35 59 85 59 59 58 47 37 37 ### ### 5
2010/05/27 1 69 ### 4 5 3 1 4 2 4 57 8 11 11 9 3 11 60 2 4 3 5 0 7
2010/05/26 2 5 1 3 7 2 8 6 2 6 14 40 53 7 18 45 ### ### 9 8 3 5 2 4
2010/05/25 ### 53 35 8 6 4 5 18 11 3 7 12 4 5 7 4 5 4 60 4 4 5 2 2
2010/05/24 0 4 2 3 5 2 0 2 2 2 4 2 2 9 4 1 4 4 40 ### 76 61 41 14
2010/05/23 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3
could you please help with this.
Thanks

Similar Messages

  • Can we put RAC database in Archivelog mode without shutting down

    All,
    Can we put RAC database in Archivelog mode without shutting down.
    Currently our new production database (2 node RAC) is in no archive log mode, Need to enable archive log in the database...
    I believe we need to set the cluster_database=false and then put the DB in archive log mode then we need to bounce the database to take effect...
    Just curious to know in 11gR2 ...Can we put the RAC database in archive log mode without any downtime ...?

    Even RAC or non-RAC, database should bounced and enable/disable archive log mode from mount status.

  • RAC database in archivelog mode ?

    Hi all,
    may anyone provide me doc id in matalink to move a non archived RAC database in
    to archive log mode.
    THanx in advance.
    Deep

    Even RAC or non-RAC, database should bounced and enable/disable archive log mode from mount status.

  • Another RMAN duplicate problem - RAC database to single instance

    Hi,
    I have a problem with the RMAN duplicate procedure and was hoping someone can help.
    I would like to create a duplicate of our production RAC database on a separate, stand-alone, database server on another site. This duplicate will be used for intensive querying by another business unit who I don't want to have access to our production database.
    My procedure goes like this:
    1. Create a disk (not ASM) based backup of the datafiles and any archived redo logs:
    "run {
    allocate channel d1 type disk;
    backup format '/u02/stage/df_t%t_s%s_p%p' database plus archivelog delete input;
    release channel d1;
    2. Tar and scp these files to the same location on the stand-alone database server.
    3. In the meantime, work has been happening on the production database and further archived redo logs have been generated. I don't really care about these logs for the purposes of the duplicate however, I just want to duplicate to the point of the recent backup. To do this, I run the following SQL to determine the sequence number that I should be duplicating up to:
    "select max(sequence#), thread# from v$archived_log where deleted='YES' group by thread#;"
    4. Duplicate the production database to the stand-alone database (all the SQL Net stuff is working).
    "run {
    set until sequence (value returned by above SQL statement);
    duplicate target database to XXX;
    However, my problem arises because I don't know how to handle the fact that there are two threads. I understand that each thread relates to one of the RAC instances, I just don't know which one to specify for the duplicate. We have a database service which the client application connects through, and that service runs on on or other of the instances. Should I just care about the logs from the instance where the service is currently running?
    Am I even approaching this is the correct way?
    I look forward to any help that people may be able to offer.
    Regards,
    Phil

    Hi Werner,
    Thanks again for your help, there is still something wrong though. "list backup of archivelog all;" shows:
    BS Key Size Device Type Elapsed Time Completion Time
    3784 202.34M DISK 00:00:08 28-OCT-09
    BP Key: 3784 Status: AVAILABLE Compressed: NO Tag: TAG20091028T111718
    Piece Name: /u02/stage/df_t701435838_s3820_p1
    List of Archived Logs in backup set 3784
    Thrd Seq Low SCN Low Time Next SCN Next Time
    1 9746 569095777 28-OCT-09 569150229 28-OCT-09
    1 9747 569150229 28-OCT-09 569187892 28-OCT-09
    1 9748 569187892 28-OCT-09 569231956 28-OCT-09
    1 9749 569231956 28-OCT-09 569259816 28-OCT-09
    2 7931 569095774 28-OCT-09 569187902 28-OCT-09
    2 7932 569187902 28-OCT-09 569259814 28-OCT-09
    BS Key Size Device Type Elapsed Time Completion Time
    3787 1.04M DISK 00:00:02 28-OCT-09
    BP Key: 3787 Status: AVAILABLE Compressed: NO Tag: TAG20091028T112222
    Piece Name: /u02/stage/df_t701436142_s3823_p1
    List of Archived Logs in backup set 3787
    Thrd Seq Low SCN Low Time Next SCN Next Time
    1 9750 569259816 28-OCT-09 569261110 28-OCT-09
    2 7933 569259814 28-OCT-09 569261108 28-OCT-09
    You can see that the highest sequence number is 9750 of thread 1, and that the Low and Next SCNs are 569259816 and 56926111. However, when I look at the output of the RMAN duplicate command:
    contents of Memory Script:
    set until scn 569505448;
    recover
    clone database
    delete archivelog
    executing Memory Script
    executing command: SET until clause
    Starting recover at 28-OCT-09
    allocated channel: ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: sid=39 devtype=DISK
    starting media recovery
    Oracle Error:
    ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
    ORA-01194: file 4 needs more recovery to be consistent
    ORA-01110: data file 4: '/u02/sca-standby/data/users.260.623418479'
    RMAN-03002: failure of Duplicate Db command at 10/28/2009 16:12:55
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-06053: unable to perform media recovery because of missing log
    RMAN-06025: no backup of log thread 2 seq 7936 lowscn 569411744 found to restore
    RMAN-06025: no backup of log thread 2 seq 7935 lowscn 569321987 found to restore
    RMAN-06025: no backup of log thread 2 seq 7934 lowscn 569261108 found to restore
    RMAN-06025: no backup of log thread 1 seq 9758 lowscn 569471890 found to restore
    RMAN-06025: no backup of log thread 1 seq 9757 lowscn 569440076 found to restore
    RMAN-06025: no backup of log thread 1 seq 9756 lowscn 569411439 found to restore
    RMAN-06025: no backup of log thread 1 seq 9755 lowscn 569378529 found to restore
    RMAN-06025: no backup of log thread 1 seq 9754 lowscn 569358970 found to restore
    RMAN-06025: no backup of log thread 1 seq 9753 lowscn 569321882 found to restore
    RMAN-06025: no backup of log thread 1 seq 9752 lowscn 569284238 found to restore
    RMAN-06025: no backup of log thread 1 seq 9751 lowscn 569261110 found to restore
    you can see that something is setting the recovery SCN to 569505448 which higher even then any of the archived logs mentioned above. If I select current_scn from the production database, this gives me 569528258 which is closer to the value which RMAN is expecting to recover to than any of the archived redo logs.
    Can you think what might be causing RMAN to try to recover to this value? and why does it appear to be ignoring the SET UNTIL SEQUENCE command?
    Cheers,
    Phil

  • Arivelog mode configuration proble in RAC database

    Hi,
    I'm trying to configure RAC database in archivelog mode but when try to do so get the following error, during the database startup in mount state
    LRM-00109: could not open parameter file '/u01/app/oracle/product/11.1.0/db_1/dbs/initorcl.ora'
    This error shows that the system could not find the initorcl.ora and really it does not exist. But the system at this stage is single
    instance as I chenged the value of cluster_database=false before shutdown and then start.
    when I enter the command startup mount it give me this error. What should I do to avoid it. Should I make a pfile of this from spfile in cluster mode
    and then put this pfile in the desired path to start the single instance or any other thing should I tried.
    Regards,
    Abbasi

    Perform the following steps to relocate the SPFILE from the local file system to an ASM disk group.
        * Create a text-based initialization parameter file from the current binary SPFILE located on the local file system:
          SQL> CREATE PFILE='$ORACLE_HOME/dbs/initTESTDB.ora'
            2  FROM SPFILE='$ORACLE_HOME/dbs/spfileTESTDB.ora';
          File created.
        * Create new SPFILE in an ASM disk group:
          SQL> CREATE SPFILE='+TESTDB_DATA1/TESTDB/spfileTESTDB.ora'
            2  FROM PFILE='$ORACLE_HOME/dbs/initTESTDB.ora';
          File created.
        * Shutdown the Oracle database:
          SQL> SHUTDOWN IMMEDIATE
          Database closed.
          Database dismounted.
          ORACLE instance shut down.
        * Update the text-based init<SID>.ora file with the new location of the SPFILE in ASM:
          $ echo "SPFILE='+TESTDB_DATA1/TESTDB/spfileTESTDB.ora'" > $ORACLE_HOME/dbs/initTESTDB.ora
        * Remove (actually rename) the old SPFILE on the local file system so that the new text-based init<SID>.ora will be used:
          $ mv $ORACLE_HOME/dbs/spfileTESTDB.ora $ORACLE_HOME/dbs/BACKUP_ASM.spfileTESTDB.ora
        * Open the Oracle database using the new SPFILE:
          SQL> STARTUPsource:-http://www.idevelopment.info/data/Oracle/DBA_tips/Automatic_Storage_Management/ASM_33.shtml#Migrating%20Oracle%20Database%20from%20Local%20File%20System%20to%20ASM
    if you would like, refer the link:-
    http://oracleinstance.blogspot.com/2009/12/enable-archivelog-and-flashback-in-rac.html

  • 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                                                                                                                                                                                                                               

  • How simulate massive archivelog generation

    Hi,
    We're in the process of testing our physical standby database, if the network link would be able to cope with peak load and archivelog generation during this time.
    I'm looking for some sample script to run to simulate massive archivelog generation, mayb 1GB every minute. We're on 11.2.0.1 version.
    The database is currently empty, no load , no data.
    Regards,
    dula

    user13005731 wrote:
    Hi,
    We're in the process of testing our physical standby database, if the network link would be able to cope with peak load and archivelog generation during this time.
    I'm looking for some sample script to run to simulate massive archivelog generation, mayb 1GB every minute. We're on 11.2.0.1 version.
    The database is currently empty, no load , no data.
    Regards,
    dulaJust write a little PL/SQL procedure with a loop that iterates 10 million times, and inside the loop do a little dml - insert or update.
    Pseudo code:
    for i = 1 to 10000000
      insert into testtable ('hello world');
    next iThe above is not valid pl/sql, but demonstrates the process. I leave it to the student to pull out the PL/SQL manual found a tahiti.oracle.com and work out the exact syntax. If you don't have space to grow testtable by 10,000,000 rows, use an update instead. It will still generate the necessary redo.

  • Log sequence in RAC database

    10.2 Doc. says: http://download.oracle.com/docs/cd/B19306_01/backup.102/b14194/rcmsynta008.htm#RCMRF106
    >
    Although the SEQUENCE parameter does not require that THREAD be specified, a given log sequence always implies a thread
    >
    Does this mean that the log sequence is unique for all threads ? If not what does this sentence mean ?
    Note that in my 10.2.0.1 RAC database log sequence is unique only for a given thread:
      1  select thread#, sequence#, name, status
      2  from v$archived_log
      3  where sequence# between 34 and 35
      4* order by sequence#
    SQL> /
       THREAD#  SEQUENCE# NAME                                                         S
             1         34                                                              D
             2         34 /u02/fra/RAC/archivelog/2010_08_20/o1_mf_2_34_66xb2ttb_.arc  A
             1         34 /u02/fra/RAC/archivelog/2010_08_20/o1_mf_1_34_66xcgmbn_.arc  A
             2         35 /u02/fra/RAC/archivelog/2010_08_20/o1_mf_2_35_66xb48b8_.arc  A
             1         35 /u02/fra/RAC/archivelog/2010_08_20/o1_mf_1_35_66xcgkk0_.arc  A
             1         35                                                              D
    6 rows selected.

    I sent mail to the writer and got this in reply:
    The sentence will be rewritten to state that: "When you do not explicitly specify a thread number with the sequence number in the command, thread number 1 is used."
    -----------------

  • Archivelogs deleted in RAC ASM Production for standby

    Hi,
    DB: 10.2.0.4
    OS: AIX 5.3 L
    This is 2 node RAC ASM database with single standby on ASM.
    I set the retention policy to 2 days for my Live database.While running the TAPE backup script, the archivelogs were deleted .The deleted archivelogs are generated just before /while the TAPE backup.Backup script has not considered the retention policy for Primary.All archivelogs , except generated after backup ,were deleted .
    Now my standby is waiting for deleted archivelogs.
    How do i can make sync of my standby with Primary ?.
    Please understand my position and request you to help me on this.
    Regards,
    Sunand
    Edited by: sunand on Jan 22, 2011 3:15 AM

    Hi Jean & Abhi,
    Thanks you very much for your reply.
    I came out the problem with following taking the backup of incremental from standby SCN value.
    Actually i did not have backup of deleted archivelog .Now my standby database is in sync with primary and working fine.
    About recovering of deleted archivelog from backup piece, If i run below script , whether it will recover the specified archivelogs to our archivelog destination or will recover to database ?.I never done this before.Could you explain me ,please.
    run
    allocate channel t1 type sbt.....;
    restore archivelog from sequence X until sequence Y thread 1;
    Also, my database is on ASM. Once we recover the archivelogs,how do i can move to standby?.I mean , moving them from ASM to file system and registering to standby database .
    Thank you very much,
    Regards,
    Sunand

  • Backup Exec 12.5 and Rac database

    We always use rman to backup and restore our rac database without problems but now we would like to try with Backup Exec 12.5. Yesterday we installed the server for backup exec and the oracle agent for linux and by the way we did a full backup of our Rac database. The problems was when we tried to restore it. When we restore a single database it work but when we try with RAC it does not work.
    Questions:
    Is there a different agent for oracle Rac database or it is the same?
    Are there aditional steps to configure the agent for Rac database?
    I really appreciate your help.

    ++We are using flash recovery area and all archive logs, flash back logs and backup sets go in there?The system administrator wants to back up the full directory of flash recovery area. Would that be enough?Is a backup of oracle home is needed?+
    Normally there is no need to take oracle backup home , if yours FRA contain baskupset for database files (controlfile,db files),archivelogs ,flashback logs.You should also consider the pfile if you are not using spfile,spfile itself contain in RMAN backupsets.
    Consider yours oracle binary backup (i.e cold backup) before any maintainance (patching activity).
    Read http://oraware.blogspot.com/2008/07/fra-capacity-planning.html
    Are there any backup settings required before backing up files while the database is on, like setting them in backup mode or etc?
    yes for online database should be in archivelog mode,if you are using RMAN then there is no any setting required before backup , using RMAN you just have to connect with target database and start online backup using yours own backup script.
    Any documentation discussing the backup steps, and what needs to be backed up will be appreciated
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14192/bkup.htmlKhurram

  • RMAN Backup script for RAC Database..please suggest

    Hi All,
    I am currently working on backup policy for RAC Database for my client.The client requirement is to backup while database is shutdown(mount state).I have made below script and could any one please suggest what further things should I need to add with below rman script.
    echo "Shutdown Database";date
    srvctl stop database -d PROD
    srvctl status database -d PROD
    echo "Database shutdown on";date
    echo "Mount Database ";date
    srvctl start instance -d PROD -i "PROD1" -o mount
    srvctl status database -d PROD
    echo "Start Full Database Backup on";date
    $ORACLE_HOME/bin/rman target / nocatalog <<EOF
    configure controlfile autobackup on;
    configure controlfile autobackup format for device type disk to '/BACKUP/PRODBKP/%F';
    run{
    allocate channel c1 device type disk connect 'sys/******@node1-vip:1521/PROD';
    allocate channel c2 device type disk connect 'sys/*****@node2-vip:1521/PROD';
    backup format '/BACKUP/PRODBKP/PROD_df_%t_%s_%p.bak'(database);
    backup format '/BACKUP/PRODBKP/archive_%t_%s_%p.bak' archivelog all;
    copy current controlfile to '/BACKUP/PRODBKP/PROD.ctl';
    delete noprompt obsolete;
    release channel c1;
    release channel c2;
    exit
    EOF
    echo "RMAN Backup Finished on";date
    echo "Shutdown Database";date
    srvctl stop database -d PROD
    echo "Start Database";date
    srvctl start database -d PROD
    srvctl status database -d PROD
    Please share your experiences.
    Regards

    Hi,
    Some tweaks for your script.
    echo "Shutdown Database";date
    srvctl stop database -d PROD
    srvctl status database -d PROD
    echo "Database shutdown on";date
    echo "Mount Database ";date
    srvctl start instance -d PROD -i "PROD1" -o mount1. If you database does not shutdown properly , does your script stops the execution of next step?
    2. configure controlfile autobackup on;
    configure controlfile autobackup format for device type disk to '/BACKUP/PRODBKP/%F';(Why you need to configure this every time) ?
    It's persistent at db level one time setting (until some other script changes the settings by other dba - else remove that - set the configuration at db level once for all)
    - Pavan Kumar N
    3.

  • RMAN configuration 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.

    You will need to setup an NFS share such that both nodes can access each other's archived redo logs area. You also need to ensure your LOG_ARCHIVE_DEST_n parameter settings are properly set. Once setup correctly, either node will be able to run the backup and include each other's archived redo log files. Since this is RAC, the data files are shared by design and either node can already backup these files.
    Multiple channels would allow 'simultaneous' backup of the archived redo logs.
    I would highly recommend using a CFS (single shared file system where all nodes store their archived redo logs distinguished by thread) to store the archived redo logs, this reduces administration and configuration especially when you get ready to scale.
    Hope this helps.

  • Unable to startup 12c RAC database, can't open spfile in ASM

    hello,
    I'm testing 12cRAC database on RHEL5 and need your help to troubleshoot and fix the following issue  -
    DBCA fails at the end of the configuration to create and startup new RAC database with the following errors
    ORA-01078: failure in processing system parameters
    ORA-01565: error in identifying file '+DATA/TDB1/spfileTDB1.ora'
    ORA-17503: ksfdopn:2 Failed to open file +DATA/TDB1/spfileTDB1.ora
    ORA-15056: additional error message
    ORA-17503: ksfdopn:2 Failed to open file +DATA/TDB1/spfiletdb1.ora
    ORA-01017: invalid username/password; logon denied
    I also tried executing script (which was created by DBCA) to create the new DB  manually and got the same results - it happens during first attempt to start it up using SPFILE after new DB was successfully created (it was started up using pfile)
    Clusterware with ASM install was successful, binaries were also installed without issues,
    cluster seems healthy, I see correct files within ASM using asmcmd etc ..
    got stuck here and need some directions ... very confused by ORA-01017 password error
    wonder if anyone had same or similar issues ?
    Thank you !

    Fixed.
    Thank you everyone for suggestions and recommendations -
    ASM is accessible using asmcmd and I can see all the DB files incuding spfile, they were created by DBCA, alert log showed same information I posted
    After extensive troubleshooting and testing the issue was idedntified and fixed - 'dba' group needs to be the primary group for 'oracle' user, not the secondary one. I suspected that something was not right with 'oracle' user access to asm based on that strange password error. There is more I need to check as the issue and fix with swapping groups seems strange. Secondary group is not enough ti have proper rights ??? my first reaction was - seriously ? wtf ?
    Anyway - I need to move one now ...
    Thank you again !

  • How can I have a collective AWR report for RAC database in 10gR2 and 11gR1?

    Plz correct me here
    awrrpt.sql takes the snapshot at the instance level and incase we have 5 instances we have to take 5 awr reports for a particular period.correct???
    If above is true ,any wayout to collect a single collective AWR report for RAC database which includes information on all the instances in Oracle 10g R2 or 11gR1 ?
    Thanks in advance
    Gagan

    I have never come across a way for this. though I can n't say it is not there.
    But I guess it may not be feasible too becuase as we know the current AWR report contains data which is specific for one instance.
    Various hit ratios, top events, instance effeciency reports.... what not ..
    It would be really nice to see something is a new format where it lists values from each instance in a single report.. I guess such a thing Does not exiist as of now.

  • Question about DBCA generate script o create RAC database 2 node cluster

    Question about creating two node RAC database 11g after installing and configuration 11g clusterware. I've used DBCA to generate script to create a rac database. I've set
    environment variable ORACLE_SID=RAC and the creating script creates instance of RAC1 and RAC2. My understanding is that each node will represent a node, however there should only be one database with a name of 'RAC'. Please advise

    You are getting your terminology mixed up.
    You only have one database. Take a look, there are one set of datafiles on shared storage.
    You have 2 instances which are accessing one database.
    Database name is RAC. Instance names are RAC1, RAC2, etc, etc.
    Also, if you look at the listener configuration and if your tnsnames is setup properly then connecting to RAC will connect you to either one of the instances wheras connecting to RAC1 will connect you to that instance.

Maybe you are looking for