What is the role of the archived in an incremental backup redo log files?

I want to know, to which RMAN reads what block of data is changed after the last incremental backup.
and what is the role of the archived in an incremental backup redo log files?

Please guide.

Hello

First Querstion response->
Each block of data in a data file contains a system change number (SCN), which is the SCN of the last change to the block. During an incremental backup, RMAN reads the RCS of each block of data in the input file and compares at the checkpoint SCN of the incremental backup from parent. If the RCS in the block of input data is greater than or equal to checkpoint SCN of the parent, then RMAN copies the block.

2 - the archived redolog files are required for the restoration of the online of rman incremental backup in a consistent state.

Thank you & best regards
Rahul Sharma

Tags: Database

Similar Questions

  • I have to create the new group for waiting for redo log files?

    I have 10 group of files redo log with 2 members of each group for my primary database, I need to create new group for redo log files for the database of relief pending

    Group # members

    ==============

    1              2

    2              2

    3             2

    4             2

    5             2

    6             2

    7             2

    8             2

    9             2

    2 of 10

    If so, the following statement is correct? or nto

    ALTER DATABASE ADD STANDBY LOGFILE GROUP 1 ('D:\Databases\epprod\StandbyRedoLog\REDO01.) LOG',D:\Databases\epprod\StandbyRedoLog\REDO01_1.log');

    Please correct me if am doin wrong

    because when I run the statement I have error message saying: the group is already created.

    Thanks John

    I just found the answer

    Yes, it of recomeded to add the new group, for instnace if I have 10 group of 1 to 10, then the wait should be from 11 to 20

    Thanks I found the answer.

  • What is the purpose of waiting for redo log files

    Hello

    What is the purpose of the log files waiting for redo in the Dr?

    What happens if the standby redo log files are created? or else is not created?

    Please explain

    Thank you

    Re: what is the difference between onlinelog and standbylog

    I mentioned the goal of the eve of the redo log in RD files in above thread.

    Concerning
    Girish Sharma

  • Redo log entries to the online redo log files

    Hello

    I'm a little confused about the redo log entries.

    I learned that LGWR writes redo log entries in the SGA, in redo log files in the following situation:

    -3 seconds after the last validation

    -redo log buffer has 1 MB

    -redo log buffer data 1/3

    When I take a transaction and if I change the wrong data, I have to cancel this transaction BUT the right now,

    What happens if the LGWR writes redo log disk entries?

    Is the bad transaction committed at all times?

    2791011 wrote:

    Hello

    I'm a little confused about the redo log entries.

    I learned that LGWR writes redo log entries in the SGA, in redo log files in the following situation:

    -3 seconds after the last validation

    -redo log buffer has 1 MB

    -redo log buffer data 1/3

    When I take a transaction and if I change erroneous data, I have to cancel this transaction at this time, BUT

    What happens if the LGWR writes redo log disk entries?

    Is the bad transaction committed at all times?

    DML changes are "permanent" after that VALIDATION is issued.

    When any COMMIT is issued, then changes can be undone.

  • bottleneck during the passage of the redo log files.

    Hi all

    I'm using Oracle 11.2.0.3.

    The enforcement team has indicated that they are facing slow at some point.

    I followed the database and I found that at some passage of redo log files (not always), I am facing a slow at the application level.

    I have 2 son since my database is CARS, each thread has 3 groups of multiplexed redo logs the FIU, with size of 300 MB each.

    Is it possible to optimize the switch of the redo log files? knowing that my database is running in ARCHIVELOG mode.

    Kind regards

    Hello

    Yes, Oracle recommends 1 validation by 30 calls from users or less. Of course, every database is different, so this rule cannot be taken too literally, but in your case, this rule seems to apply. In any case State, 900 undertakes seconds it looks like a very large number and the need for a high number of transactions should be questioned. You should talk to your analysts/application management/enterprise architect if warranted - that is to say if the application does in fact almost 2 000 business transactions per second.

    What about DB CPU: here is a link to a blog that I wrote on this subject, it should help to better understand this number:

    http://Savvinov.com/2012/04/06/AWR-reports-interpreting-CPU-usage/

    But briefly: DB processor isn't a real event, it is simply an indication that the sessions are on CPU (or waiting for CPU) rather than wait on i/o requests or events in the database. It is not necessarily a bad thing, because the database must perform tasks and he cannot do without loading the CPU. It may indicate a problem in two cases: when the CPU usage is close to the limit of the host (OS stats section indicates that you are very far from there) or when the CPU is a % of DB time - in the latter case, this could mean that you are making too many logical reads due to inefficient plans or analysis too. In any case, this does not apply to you, because 20 percent is not very high a number.

    Other items in the list of the top 5 deserve attention, too - gc buffer busy acquire, gc current block busy, enq: TX - line lock conflict.

    To summarize, your database under a lot of stress - whether it is the legitimate workload, and if this is the case, you may need to upgrade your hardware later. There is chance that it isn't - for example a high number of runs may indicate that rather than to bulk operations database code using PL/SQL loops, which is a big performance killer. Check "Top SQL by executions" about whether or not this is the case.

    Good luck!

    Best regards
    Nikolai

  • SIZE OF THE REDO LOG FILE


    Hello

    I got an error message when I add me new group. log files I searched and found the answer on the form. Ago 4 M minimum size of 11 g R2 log file size.

    My question is why a log file size depends on DB_BLOCK_SIZE? This parameter is set to the component structures of memory that create an instance when a log file is an operating system file that depend on the version of the OS not DB_BLOCK_SIZE.

    Thank you.


    SQL > alter database add logfile group 4 'c:\app\asif\oradata\employee\redo04.log' size 1 m;
    alter database add logfile group 4 'c:\app\asif\oradata\employee\redo04.log' size 1 m
    *
    ERROR on line 1:
    ORA-00336: 2048 blocks the size of the log file is minimum lower than 8192 blocks


    SQL > show parameter db_block_size

    VALUE OF TYPE NAME
    ------------------------------------ ----------- ------------------------------
    Whole DB_BLOCK_SIZE 8192
    SQL >

    You are assuming that the redo log block size is the same as the database block size. This is not correct.

    The error indicates that 8192 is the minimum number of blocks of a redo log file. The documentation states that the minimum size is 4 M. For example, you can deduct your redo log block size is 512 bytes.

    Here's some more information about the size of redo log, the documentation block.

    Unlike the database block size, which can always be between 2 K and 32 K, redo log default files to a block size that is equal to the size of physical sector of the disk. Historically, it is usually 512 bytes (512 b).

    Some new large disks offer 4K sizes byte (4K) to increase sector efficiency improved format and ECC capabilities. Most of the Oracle database platforms are able to detect this bigger sector size. The database then automatically creates files redo log with a block size of 4 K of these discs.

  • How to find the configuration state of REDO logs files?

    I'm trying to move the redo log files.
    Before that, I want to know if it is set as a duplex or any other configuration.

    How to find the REDO log configurations.

    Oracle 10g R2

    Thank you
    Smith

    Example:

    Not in duplex redo log - if the number of members is 1, it is not duplex:

    SQL> select group#, members from v$log;
    
        GROUP#    MEMBERS
    ---------- ----------
             1          1
             2          1
             3          1
    
    SQL> select group#, member from v$logfile;
    
        GROUP# MEMBER
    ---------- --------------------------------------------------
             1 /u01/app/oracle/oradata/db1/redo01.log
             2 /u01/app/oracle/oradata/db1/redo02.log
             3 /u01/app/oracle/oradata/db1/redo03.log
    
    SQL> alter database add logfile member '/u01/app/oracle/oradata/db1/redo01_2.log' to group 1;
    
    Database altered.
    
    SQL> alter database add logfile member '/u01/app/oracle/oradata/db1/redo02_2.log' to group 2;
    
    Database altered.
    
    SQL> alter database add logfile member '/u01/app/oracle/oradata/db1/redo03_2.log' to group 3;
    
    Database altered.
    

    Duplex redolog

    SQL> select group#, members from v$log;
    
        GROUP#    MEMBERS
    ---------- ----------
             1          2
             2          2
             3          2
    
    SQL> select group#, member from v$logfile;
    
        GROUP# MEMBER
    ---------- --------------------------------------------------
             1 /u01/app/oracle/oradata/db1/redo01.log
             2 /u01/app/oracle/oradata/db1/redo02.log
             3 /u01/app/oracle/oradata/db1/redo03.log
             1 /u01/app/oracle/oradata/db1/redo01_2.log
             2 /u01/app/oracle/oradata/db1/redo02_2.log
             3 /u01/app/oracle/oradata/db1/redo03_2.log
    
  • DB restore Archives not lost mode redo log file... restore from controlfile tr

    I have a 11g database I had taken an archive backup but has failed to take redo backup of log files...
    so, while I restored the PB... after formatting the machine... the oracle instance does not start.


    I create controlfile track but when I run it I get errors.
    given that I don't have the old log files... How can I get around this issue
    Thank you
    Here is the example of trace control file... Note that I can't create the redo log file
    given that the db will not climb up, it must be in mode nonmount
    and here's my created controlfile...
    CREATE CONTROLFILE REUSE DATABASE "XE" NORESETLOGS NOARCHIVELOG
    MAXLOGFILES 16
    MAXLOGMEMBERS 3
    MAXDATAFILES 100
    MAXINSTANCES 8
    MAXLOGHISTORY 292
    LOGFILE
    GROUP 1
    ' C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ONLINELOG\O1_MF_1_80L7C259_. JOURNAL"
    SIZE 50 M 512 BLOCKSIZE,
    GROUP 2
    ' C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ONLINELOG\O1_MF_2_80L7C375_. JOURNAL"
    SIZE 50 M BLOCKSIZE 512
    -STANDBY LOGFILE
    DATA FILE
    ' C:\ORACLEXE\APP\ORACLE\ORADATA\XE\SYSTEM. DBF',.
    ' C:\ORACLEXE\APP\ORACLE\ORADATA\XE\UNDOTBS1. DBF',.
    ' C:\ORACLEXE\APP\ORACLE\ORADATA\XE\SYSAUX. DBF',.
    ' C:\ORACLEXE\APP\ORACLE\ORADATA\XE\USERS. DBF'
    CHARACTER SET AL32UTF8
    ;

    I do not have these 2 files... what should I do to work around this situation
    ' C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ONLINELOG\O1_MF_1_80L7C259_. JOURNAL"
    SIZE 50 M 512 BLOCKSIZE,
    GROUP 2
    ' C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ONLINELOG\O1_MF_2_80L7C375_. JOURNAL"
    SIZE 50 M BLOCKSIZE 512
    -STANDBY LOGFILE
    DATA FILE

    Published by: zycoz100 on February 27, 2013 22:57

    If you have a backup to cold (closing correctly database) without the redo logs, change this:

    CREATE CONTROLFILE REUSE DATABASE "XE" NORESETLOGS NOARCHIVELOG
    

    TO

    CREATE CONTROLFILE REUSE DATABASE "XE" RESETLOGS NOARCHIVELOG
    

    You need to change the NORESETLOGS RESETLOGS for Oracle to recreate online redo logs.

    Hemant K Collette

  • Why finder hide Documents and office files in the home directory of the user by activating iCloud drive? What about the behavior of Time Machine backup or third-party applications?

    I'm under MacOS Sierra. I am connected to my iCloud account. I activated the option Desktop and Documents, but I did NOT activate the option optimize Mac storage, because I wanted to make sure that all my files would be available locally, just in case, I would need to work without an internet connection.

    -J' noticed there now a menu iCloud in my sidebar in the Finder, with links to Documents and desktop.

    -J' also noticed that Documents is no longer presented in my favorites in my side bar of the Finder.

    -This last suggests that files saved in 'Documents' are not saved more on my HD... but only in iCloud, which isn't what I want.

    -Then, sailing in the Finder Macintosh HD/users / 'My account' /, I noticed that my Documents and desktop folders are more visible, as if these files are not saved in my home folder most. Which raises the question: where are My Documents and files on my HD, so they are still?

    -Using a shell session in the terminal and again navigate to/Users / 'My account' /, I noticed that my Documents and desktop folders are still there. Which suggest that records and records of office reside actually still in my home folder under users, but Finder actually hide it and present them as being stored in iCloud only disc. It's very confusing.

    This raises several questions:

    -In the first place, why Apple hide Documents and office files in the directory? Why not view these folders in iCloud and directory?

    -Whence the iCloud folder or drive, reside actually on my hard drive?

    -What time Machine. Is it still back up my document files and folders?

    -What games third-party app mirroring backup of My Documents files and folders? They still work properly? (I use Livedrive backup and Sugarsync for files mirrored across several macs).

    -How can I understand that Apple is doing with my folders and files? Some users might be happy with the iCloud drive concept, without worrying about how it works, but I don't take chances, and I want to keep a good understanding about the functioning of my system.

    Could someone explain what is exactly happening?

    With office and selected Documents, access to these files are now in the iCloud Drive, not in your home folder.

    My guess would be that they do not appear in your file because it would be confusing for many people to make them in two places.

    If you want in the Favorites, open iCloud Drive and drag them in the sidebar here.

    All about iCloud drive has been saved on your Mac. With the exception of the office and the Documents, they are in ~/Library/Mobile Documents. However, if you choose optimized storage, older documents are removed from your Mac. I don't know what is "old".

    ~/Documents and ~/desktop have new metadata indicating probably Finder does not display them in a Finder window, only in iCloud drive. They are not hidden in one of the normal methods of unix.

    I have not tested Time Machine or any other backup program. The folder still exist in your directory home, and they still have all the files, I don't think that changes anything.

  • What are the implications to remove existing backup history?

    I have a 17 "end 2011 MacBook Pro under OS X 10.11.6. I had a hard drive crash and try to restore it on a new hard drive. I received a message indicating there is a problem with my backup when I tried to restore. I'm in time machine and checked my backups and received the following message:

    "Time Machine has conducted an audit of your backups on"Time Capsule". To improve reliability, Time Machine must create a new backup for you.

    "Click Start new backup to create a new backup. This will remove your existing backup history. This may take several hours. »

    What is the implication to the existing deletion of the backup history?

    What is the implication to the existing deletion of the backup history?

    Remove existing history of backups will erase all previous backups.  Unfortunately, Time Machine has detected that the backup history is corrupted... probably because of the previous accident of hard drive on your Mac.

    Unfortunately, you will not be able to restore your Mac using the backups you have, unless you have a second copy of backups on another drive that could be used for the restore to clean operation.

  • What is the default time after which a temporary internet file is saved

    When we browse the net or write e-mails, temporary internet files are created and stored in the system. I want to know what is the default time after which a new temporary internet file is created for the same browsing session, especially when creating e-mail with attachments.

    When we browse the net or write e-mails, temporary internet files are created and stored in the system. I want to know what is the default time after which a new temporary internet file is created for the same browsing session, especially when creating e-mail with attachments.

    http://en.Wikipedia.org/wiki/Temporary_Internet_Files

  • What is the reason for corruption of a win32 .exe file, it worked before but it does not now, it is not a valid win32 application

    The application has been runnning, then suddenly this message appears, I installed it again and it works, but want to know why it failed.

    Thank you for the reply, I have considered these possibilities but the problem is that the application has been installed previously (months), suddenly, it stopped working and the error appeared.  I wonder why an application that has been developed for Win XP in a first step was working fine, but all of a sudden not. I read somewhere that this could be due to another process running on the machine that is blocking the application should be run. The solution was quiet basic, the program has been installed again, this solves the problem, but the customer wants to know what was the reason. Is it possible to identify the cause of the failure, perhaps a newspaper in windows?, thanks

  • Waiting for redo log file missing when restore main database using RMAN backup that was taken on the database physical standby

    Here's my question after tons of research and test without have the right solutions.

    Target:

    (1) I have a 12.1.0.2 database unique main enterprise 'testdb' as database instance running on the server "node1".

    (2) I created physical standby database "stbydb" on the server "node2".

    (3) DataGuard running on the mode of MaxAvailability (SYNC) with roll forward in real time 12 default c apply.

    (4) primary database has 3 groups of one-man redo. (/oraredo/testdb/redo01.log redo02.log redo03.log)

    (5) I've created 4 standby redo logfiles (/oraredo/testdb/stby01.log stby02.log stby03.log stby04.log)

    (6) I do RMAN backup (database and archivelog) on the site of relief only.

    (7) I want to use this backup for full restore of the database on the primary database.

    He is a DR test to simulate the scenario that has lost every primary & Eve total servers.

    Here is how to save, on the database pending:

    (1) performance 'alter database recover managed standby database Cancel' to ensure that compatible data files

    (2) RMAN > backup database;

    (3) RMAN > backup archivelog all;

    I got elements of backup and copied to primary db Server something like:

    /Home/Oracle/backupset/o1_mf_nnndf_TAG20151002T133329_c0xq099p_.BKP (data files)

    /Home/Oracle/backupset/o1_mf_ncsnf_TAG20151002T133329_c0xq0sgz_.BKP (spfile & controlfile)

    /Home/Oracle/backupset/o1_mf_annnn_TAG20151002T133357_c0xq15xf_.BKP (archivelogs)

    So here's how to restore, on the main site:

    I clean all the files (data files, controlfiles oder all gone).

    (1) restore spfile from pfile

    RMAN > startup nomount

    RMAN > restore spfile from pfile ' / home/oracle/pfile.txt' to ' / home/oracle/backupset/o1_mf_ncsnf_TAG20151002T133329_c0xq0sgz_.bkp';

    (2) modify pfile to convert to db primary content. pFile shows below

    *.audit_file_dest='/opt/Oracle/DB/admin/testdb/adump '

    * .audit_trail = "db".

    * full = '12.1.0.2.0'

    *.control_files='/oradata/testdb/control01.ctl','/orafra/testdb/control02.ctl'

    * .db_block_size = 8192

    * .db_domain = "

    *.db_file_name_convert='/testdb/','/testdb /'

    * .db_name = "testdb".

    * .db_recovery_file_dest ='/ orafra'

    * .db_recovery_file_dest_size = 10737418240

    * .db_unique_name = "testdb".

    *.diagnostic_dest='/opt/Oracle/DB '

    * .fal_server = "stbydb".

    * .log_archive_config = 'dg_config = (testdb, stbydb)'

    * .log_archive_dest_2 = "service = stbydb SYNC valid_for = (ONLINE_LOGFILE, PRIMARY_ROLE) db_unique_name = stbydb'"

    * .log_archive_dest_state_2 = 'ENABLE '.

    *.log_file_name_convert='/testdb/','/testdb /'

    * .memory_target = 1800 m

    * .open_cursors = 300

    * runoff = 300

    * .remote_login_passwordfile = "EXCLUSIVE."

    * .standby_file_management = "AUTO".

    * .undo_tablespace = "UNDOTBS1.

    (3) restart db with updated file pfile

    SQLPLUS > create spfile from pfile='/home/oracle/pfile.txt'

    SQLPLUS > the judgment

    SQLPLUS > startup nomount

    (4) restore controlfile

    RMAN > restore primary controlfile to ' / home/oracle/backupset/o1_mf_ncsnf_TAG20151002T133329_c0xq0sgz_.bkp';

    RMAN > change the editing of the database

    (5) all elements of backup catalog

    RMAN > catalog starts by ' / home/oracle/backupset / '.

    (6) restore and recover the database

    RMAN > restore database;

    RMAN > recover database until the SNA XXXXXX; (this YVERT is the maximum in archivelog backups that extends beyond the scn of the backup of the data file)

    (7) open resetlogs

    RMAN > alter database open resetlogs;

    Everything seems perfect, except one of the file log roll forward pending is not generated

    SQL > select * from v$ standby_log;

    ERROR:

    ORA-00308: cannot open archived log ' / oraredo/testdb/stby01.log'

    ORA-27037: unable to get file status

    Linux-x86_64 error: 2: no such file or directory

    Additional information: 3

    no selected line

    I intended to use the same backup to restore primary basic & helps record traffic and the downtime between them in the world of real output.

    So I have exactly the same steps (except STANDBY restore CONTROLFILE and not recover after database restore) to restore the database pending.

    And I got the same missing log file.

    The problem is:

    (1) complete alert.log filled with this error, not the concern here

    (2) now repeat it in real time apply won't work since the Party shall LGWR shows always "WAITING_FOR_LOG."

    (3) I can't delete and re-create this log file

    Then I tried several and found:

    The missing standby logfile was still 'ACTIVE' at present RMAN backup was made.

    For example, on db standby, under Group #4 (stby01.log) would be lost after the restoration.

    SQL > select GROUP #, SEQUENCE #, USE (s), the STATUS from v$ standby_log;

    GROUP # SEQUENCE # USED STATUS

    ---------- ---------- ---------- ----------

    4 19 ACTIVE 133632

    5 0 0 UNASSIGNED

    6 0 0 not ASSIGNED

    7 0 0 UNASSIGNED

    So until I take the backup, I tried on the primary database:

    SQL > alter system set log_archive_dest_state_2 = delay;

    This was the Group of standby_log side Eve #4 was released:

    SQL > select GROUP #, SEQUENCE #, USE (s), the STATUS from v$ standby_log;

    GROUP # SEQUENCE # USED STATUS

    ---------- ---------- ---------- ----------

    4 0 0 UNASSIGNED

    5 0 0 UNASSIGNED

    6 0 0 not ASSIGNED

    7 0 0 UNASSIGNED

    Then, the backup has been restored correctly without missing standby logfile.

    However, to change this primary database means break DataGuard protection when you perform the backup. It's not accept on the production environment.

    Finally, my real questions come:

    (1) what I do may not do on parameter change?

    (2) I know I can re-create the control file to redo before delete and then recreate after. Is there any simple/fast to avoid the standby logfile lost or recreate the lost one?

    I understand that there are a number of ways to circumvent this. Something to keep a copy of the log file waiting restoration progress and copy up one missing, etc, etc...

    And yes I always have done no real-time applies "to the aid of archived logfile" but is also not accept mode of protection of production.

    I just want proof that the design (which is displayed in a few oracle doc Doc ID 602299.1 is one of those) that backs up data backup works effectively and can be used to restore the two site. And it may be without spending more time to resume backups or put the load on the primary database to create the database before.

    Your idea is very much appreciated.

    Thank you!

    Hello

    1--> when I take via RMAN backup, RMAN does not redo log (ORL or SRL) file, so we cannot expect ORLs or SRL would be restored.

    2nd--> when we opened the ORL database should be deleted and created

    3rd--> Expecting, SRL should not be an issue.we should be able to do away with the fall.

    DR sys@cdb01 SQL > select THREAD #, SEQUENCE #, GROUP #, STATUS from v$ standby_log;

    THREAD # SEQUENCE # GROUP # STATUS

    ---------- ---------- ---------- ----------

    1 233 4 ACTIVE

    1 238 5 ACTIVE

    DR sys@cdb01 SQL > select * from v$ logfile;

    GROUP # STATUS TYPE MEMBER IS_ CON_ID

    ---------- ------- ------- ------------------------------ --- ----------

    3 /u03/cdb01/cdb01/redo03.log no. 0 online

    /U03/cdb01/cdb01/redo02.log no. 0 2 online

    1 /u03/cdb01/cdb01/redo01.log no. 0 online

    4 /u03/cdb01/cdb01/stdredo01.log WATCH No. 0

    /U03/cdb01/cdb01/stdredo02.log EVE 5 No. 0

    DR sys@cdb01 SQL > ! ls - ltr /u03/cdb01/cdb01/stdredo01.log

    method: cannot access the /u03/cdb01/cdb01/stdredo01.log: no such file or directory

    DR sys@cdb01 SQL >! ls - ltr /u03/cdb01/cdb01/stdredo02.log

    -rw - r-. 1 oracle oinstall 52429312 17 Oct 15:32 /u03/cdb01/cdb01/stdredo02.log

    DR sys@cdb01 SQL > alter database force claire logfile 4;

    change the database group claire logfile 4

    *

    ERROR on line 1:

    ORA-01156: recovery or current flashback may need access to files

    DR sys@cdb01 SQL > alter database recover managed standby database cancel;

    Database altered.

    DR sys@cdb01 SQL > change the database group claire logfile 4;

    Database altered.

    DR sys@cdb01 SQL > ! ls - ltr /u03/cdb01/cdb01/stdredo01.log

    -rw - r-. 1 oracle oinstall 52429312 17 Oct 15:33 /u03/cdb01/cdb01/stdredo01.log

    DR sys@cdb01 SQL >

    If you do, you can recreate the controlfile without waiting for redo log entry...

    If you still think it's something is not acceptable, you must have SR with support to analyze why he does not abandon SRL when controlfile_type is "underway".

    Thank you

  • How to write the output of RMAN commands to a log file

    Hi DBAs,

    I must only newspapers archive backup too manually by pulling the controls in the RMAN session without running any script backup.

    The orders happens this way:

    run

    {

    allocate channels ch01 type disk maxpiecesize 7000 M;

    allocate channels ch02 type disk maxpiecesize 7000 M;

    BACKUP tag ArchLogAll FILESPERSET FORMAT of 20 ' / oracledbbackupset/archive_log_bkp_2014_06_18/d_%d_s_%s_p_%p_t_%t.bkp' ARCHIVELOG

    FROM 4410 SEQUENCE AS A SEQUENCE 4599 THREAD 1 REMOVE ALL ENTRIES;

    Ch01 CHANNEL;

    OUTPUT CHANNEL ch02;

    }

    Now, I want the output of these commands to write to a log file in the location /temp/arch.log in parallel executing above commands. I don't care?

    Kind regards

    Ritu

    See the RMAN command SPOOL LOG TO

    http://docs.Oracle.com/CD/E11882_01/backup.112/e10643/rcmsynta2017.htm#RCMRF156

    Hemant K Collette

  • With the help of Windows agent to send log files

    Hello

    I really need to understand the sending of log files by using the Windows agent.  I have seeen your doc about this and it is a bit easy.  Then the event_marker is complicated.  The example shows a bunch of control characters and braces.    I need to understand the parameters event_marker.  Which, in a text file suggests that there must be a event_marker?

    Thanks in advance,

    Michael

    Hey Michael - don't know how I missed this one! The event_marker is a regular expression that is known to match the beginning of a new log message. For example, say I have the following logs:

    2014-03-27 10:29:38, 534 [pool-35-thread-1] DEBUG opId = com.vmware.sps.qs.notify.VasaProviderInfoNotifier - survey for the VASA provider changes

    2014-03-27 10:29:38, 540 [pool-35-thread-1] DEBUG opId = com.vmware.vim.query.client.impl.QueryDispatcherImpl - send request:

    declare default element space namespace "urn: vasa;

    declare namespace qs = "urn: vmware:queryservice";

    declare namespace vim25 = "urn: vim25";

    declare namespace xlink = "http://www.w3.org/1999/xlink";

    declare namespace vasaData = "http://data.vasa.vim.vmware.com/xsd";

    declare namespace vasa = "http://com.vmware.vim.vasa/1.5/xsd";

    for $doc in //VendorProviderInfo

    return

    {data ($doc/vasa: back / vasaData:uid)})}

    2014-03-27 10:29:38, 543 [pool-35-thread-1] DEBUG opId = com.vmware.vim.query.client.impl.QueryDispatcherImpl - recorded flow (QueryResponseMonitor): 27227

    You can see how the second message is a multiline message. If you do not specify an event_marker then the multiline message will be divided into individual events. However, if you specify an event_marker with a regular expression that matches the start of an event, then it will not break the message upward. For the type of message above, I could use an event_marker like:

    {event_marker = ^ \d{4}-\d {2} - \d {2} \d{2}:\d{2}:\d{2},\d{3}

    Which matches: 2014-03-27 10:29:38, 534

    The event_marker can be as short or as long as you want, but you must ensure that the regular expression that you specify is guaranteed to match a new event. I hope this helps!

Maybe you are looking for