A PL/SQL to add the archived redo log for logminer files - please help debug

Hello

I have a PL/SQL to add recovery logs a day archived files to logminer utility in order to catch all LMD, which happened for a paticular at a particular time scheme

as below,

-logmnr.sql

Set serveroutput on

declare

v_redo_dictionary_file VARCHAR2 (100);
v_archived_log_file VARCHAR2 (100);

-catch all them archived redo logs today, put in a cursor

CURSOR logfile_cur IS
SELECT name from v$ archived_log WHERE the to_char (COMPLETION_TIME, 'dd_MM_yyyy') > '18_01_2010' and not in sequence # (select sequence # v$ archived_log WHERE DICTIONARY_BEGIN = 'YES' AND dictionary_end = 'YES');


Start

-Create the DICTIONARY file on the files of the SOURCE database redo

sys. DBMS_LOGMNR_D.build (OPTIONS = > sys.) DBMS_LOGMNR_D.store_in_redo_logs);


Select name from v_redo_dictionary_file from v$ archived_log where DICTIONARY_BEGIN = 'YES' AND dictionary_end = 'YES', and sequence # = (select MAX(sequence#) from v$ archived_log WHERE DICTIONARY_BEGIN = 'YES' AND dictionary_end = 'YES');

-Add newspapers of dictionary files
sys.dbms_logmnr.add_logfile (nom_fichier_journal = > v_redo_dictionary_file,)
Options = > sys.dbms_logmnr.new);

-Add the log files

Open logfile_cur;

LOOP

SEEK logfile_cur INTO v_archived_log_file;
EXIT WHEN logfile_cur % NOTFOUND;
sys.dbms_logmnr.add_logfile (nom_fichier_journal = > v_archived_log_file);


END LOOP;

CLOSE Logfile_cur;

-Start LogMiner, also enable the ddl

sys.dbms_logmnr.START_LOGMNR (options = > dbms_logmnr.dict_from_redo_logs + dbms_logmnr.ddl_dict_tracking);

EXCEPTION
WHILE OTHERS
THEN
DBMS_OUTPUT. PUT_LINE (SQLERRM);

END;
/


###############
SQL > @logmnr.sql
ORA-01291: missing logfile

PL/SQL procedure successfully completed.

What I did wrong?

Thank you very much
Roy

[Double wire | http://forums.oracle.com/forums/message.jspa?messageID=4035521#4035521]

Tags: Database

Similar Questions

  • Two questions relating to the archive redo logs with RMAN backup

    DB version: 11g

    I am new to RMAN.

    My database is in ARCHIVELOG mode. I intend to make a weekly backup for my db (02:00 every Monday). There will be all the incremental backups between these windows(Monday-to-Monday) of backup that I have would function for retrieving archived redo logs.


    Question1.
    I want to save the archived logs every day (for example at 23:00). How can I configure that?

    These are the configuration setting, that I intend to implement. I don't know how to set up the archive log backup
    configure default device type to disk;
    configure retention policy to redundancy;
    configure device type disk parallelism 1;
    configure channel 1 device type disk clear;
    configure channel 2 device type disk clear;
    configure channel 1 device type disk format '/u05/rman1/datafiles/rmnabackup1_%U';
    configure channel 2 device type disk format '/u05/rman2/datafiles/rmnabackup2_%U';
    configure controlfile autobackup on;
    configure controlfile autobackup format for device type disk to '/u05/rman1/control_files/rmnabackup1_%U';
    Question2.
    After that a new full backup is taken at 02:00 on Mondays, the archived redo logs accumulated since the last 7 days become unnecessary. How can I automate the removal of the archive redo logs with RMAN?

    Archive the log delete them all input command will take the destination of the log archiving log backup archive and delete this destination.

    In the log archive destination he has archived log in the sequence 1 to 100 then will he take the backup and delete any of the destination (Monday 23:00).

    In the log archive destination he has archived sequence journal 101 to 150 then will he take the backup and remove those in the destination (Tuesday 23:00).

    In the log archive destination he has archived log in the sequence from 151 to 180 so will he take the backup and delete any of the destination (Wednesday 10:00).

    It will continue like that.

    Concerning
    Asif Kabir

    -If you help brand the response as correct/useful.

  • Best location for the archived redo logs

    Hello

    I am OOF instructions and I want to make life for the DBA, that looks like my job easier.

    So, as the title says what is the location of the "standard/Best Practice' for archived redo logs? particularly the dest_1 which is usually local on the same server

    Thank you.

    Hello

    For you, I recommend the use of the Flash/fast recovery area.

    Configuration of the archived of Redo Log locations

    Oracle recommends that you use fast area recovery to an archive location, because the archived logs are managed automatically by the database. The file names generated for the newspapers archived in the fast recovery area correspond to Oracle managed files and are not determined by the parameter LOG_ARCHIVE_FORMAT . Whatever archiving scheme you choose, it is always advisable to create multiple copies of archived redo logs.

    Ref 1:

    http://docs.Oracle.com/CD/E11882_01/backup.112/e10642/rcmconfb.htm#CHDEHHDH

    Ref 2:

    http://docs.Oracle.com/CD/E11882_01/server.112/e17157/unplanned.htm#BABEEEFH

    REF 3:

    http://docs.Oracle.com/CD/E11882_01/backup.112/e10642/rcmconfb.htm#BRADV89418

    Kind regards

    Juan M

  • Questions about the parameters of database using a fast recovery area and the writing of two copies of archived redo logs.

    My databases are 11.2.0.3.7 Enterprise Edition. My OS is AIX 7.1.

    I am to convert databases to use individual zones of rapid recovery and have two questions about what values to assign to database settings related to archived redo logs. This example refers to a database.

    I read that if I specify

    Log_archive_dest_1 =' LOCATION = USE_DB_RECOVERY_FILE_DEST'

    the names of newspapers archived redo written in the default quick recovery area is '% t_%S_%r.dbf '.

    In the past my archived redo logs have been appointed based on the parameter

    log_archive_format='GPAIDT_archive_log_%t_%s_%r.arc'

    I think log_archive_format will be ignored for logs archived redo written in the fast recovery area.

    I am planning to write a second copy of the archived redo logs based on the parameter

    ALTER system set log_archive_dest_2 = ' LOCATION = / t07/admin/GPAIDT/arch.

    If I do this, the copy of logs placed in /t07 will be called '% t_%S_%r.dbf' or 'GPAIDT_archive_log_%t_%s_%r.arc '?

    Before my use of a fast recovery area, I used the OEM 12 c Console to specify settings of backup of database that has been deleted and archived redo logs after 1 backup. Oracle manuals say rather specify a deletion of "none" policy and allow Oracle delete newspapers in the area of fast recovery if necessary. Since I got to keep a second copy of these log files in /t07 should I keep the policy that says to delete logs after 1 backup? If I don't do that, how will they removed from /t07?

    Thank you

    Bill

    If I do this, the copy of logs placed in /t07 will be called '% t_%S_%r.dbf' or 'GPAIDT_archive_log_%t_%s_%r.arc '?

    They will be "GPAIDT_archive_log_%t_%s_%r.arc". LOG_ARCHIVE_FORMAT is only ignored for directories under OMF.

    Since I got to keep a second copy of these log files in /t07 should I keep the policy that says to delete logs after 1 backup? If I don't do that, how will they removed from /t07?

    You can hold the deletion policy as it is. Oracle documentation, defining the STRATEGY of the ARCHIVELOG DELETION: "the deletion of archived newspaper policy applies to logs archive destinations, including the area of fast recovery."

  • is there an add-on or plug-in for Geotiff files?

    is there an add-on or plug-in for Geotiff files?

    Specify the name of the program that you use, so a moderator can move this message to the correct forum

    The cloud is not a program, it's a process of delivery... a program would be Photoshop Lighroom or Muse or?

  • Question on create Redo log after restoring files and recover

    Log files to rebuild RMAN backup? Below the blog describes the steps to restore and recover a RMAN backup in a new host.
    http://blog.CSDN.NET/sweethouse1128/article/details/6948273


    RMAN seems to have backed up and restored the redo log files


    After the resumption, blogger issues
    select * from v$logfile;
    and the result obtained some log files. The rows returned are restored files redo log. right? Redo of RMAN backup and restore log files?

    Redo of RMAN backup and restore log files?

    N ° never. Even when you do a 'coherent' backup (i.e. with the database MOUNT but the mode is not OPEN).

    When you restore a full RMAN on a new server backup, RMAN restore REDO LOG files in the respective directories

    Does not apply because RMAN does not save logs in restoration online.

    Isn't better to manually create redo log files after restoration

    When you perform incomplete recovery, you must issue an ALTER DATABASE OPEN RESETLOGS.
    The RESETLOGS creates log files remake it, if they are not present OR reset them if they are present.
    In a scenario of complete restoration, the online redo log files are already present on the drive (i.e. they are not lost or destroyed and they are not restored a backup).

    Hemant K Collette

  • I forgot my apple ID sequrity question, several times I tried to reset my sequrity question but there is no display on the window to reset (reset sequrity awnser) .please help me.thanks

    I forgot my apple ID sequrity question, several times I tried to reset my sequrity question but there is no display on the window to reset (reset sequrity awnser) .please help me.thanks

    Hello

    You will need the answers to your security questions.

    Follow the instructions here > If you forgot your Apple ID - Apple Support security questions answered

  • When you install the 2007 Microsoft Office Suite Service Pack 2 (SP2), I still received the error code 646... I tried to download the RegCure as advised, but the problem still exists... Please help me with this problem... Thank you

    Ideas:

    • When you install the 2007 Microsoft Office Suite Service Pack 2 (SP2), I still received the error code 646... I tried to download the RegCure as advised, but the problem still exists... Please help me with this problem... Thank you

    I tried to download the RegCure as advised, but the problem still exists...

    Who advised you to 'download... '. RegCure? Doing so could only worse issues! If you ever think that your registry database must be cleaned, repaired, boosted or optimized (it isn't), read http://aumha.net/viewtopic.php?t=28099 and draw your own conclusions.

    See http://social.answers.microsoft.com/Forums/en-US/vistawu/thread/6e716883-7af4-4a9f-8665-2f4dd57eee8d ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • Mr President, today, I had a problem, today a blue background appears behind the office, its bad looking icons, so please help me.

    Mr President, today, I had a problem, today a blue background appears behind the office, its bad looking icons, so please help me.

    Four things are needed for the transparent icon backgrounds:

    (1) Control Panel > system properties > advanced > Performance settings > VisualEffects - check "use shadows for icon labels.
    (2) make a right click on desktop-> rearrange icons by > lock Web items must be deleted.
    (3) If you have any web content on your desktop, transparency won't work. To search for web content: display properties > Desktop > Customize Desktop > Web - make sure that all check boxes are clear.
    (4) wallpaper must be an image file, not html. MS - MVP - Elephant Boy computers - don't panic!

  • I have the error code: 80072f8f on my lap, please help

    I have the error code: 80072f8f on my lap, please help

    Please see this thread

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-windows_update/windowsupdatedt000-windowsupdate80072f8f/945f3ec1-8bac-4c10-A54E-1e564d18c37e >

    UTC/GMT is 08:08 Tuesday, November 1, 2011

  • tried everyting to sort the "assertion failed" in LightroomCC, uninstall and installed it again, tried to check the photo folder in the user account, it still does not, PLEASE HELP!

    Had "assertion failure" at the launch of LightroomCC, tried everything help, uninstall and installed it again, tried to check the photo in the user account folder, still does not, PLEASE HELP!

    Thanks for the help.

    My computer scientist has created a new user in my computer and now the 6 Lightroom

    works very well.

    Thank you

  • whenever I open the installer from Adobe, it always say that "trying to connect to the server...". ». Please help me. I don't know what is happening, but my WI - Fi works very well. Adobe needs to know that this facility is very important for me

    whenever I open the installer from Adobe, it always say that "trying to connect to the server...". ». Please help me. I don't know what is happening, but my WI - Fi works very well. Adobe needs to know that this facility is very important for me!

    Please read https://forums.adobe.com/thread/1499014

    -try some steps such as changing browsers and disable your firewall

    -also clear the cache of your browser if you start with a fresh browser

    -check the file hosts for blocked entries https://forums.adobe.com/thread/1912777

  • I have a site published under a recent URL, I used for a personal site and the site displayed the URl needs to be removed, but I can't take it down because I do not know the account info that it is under please help! Thank you!

    I have a site published under a recent URL, I used for a personal site and the site displayed the URl needs to be removed, but I can't take it down because I do not know the account info that it is under please help! Thank you!

    If it is hosted with Adobe Business Catalyst Adobe Support can help you.

    If it is hosted elsewhere the only people who can help you with that is where it is hosted.

  • Error message "To display the contents of the Flash technology in this PDF file, please install this version of Flash Player that supports Adobe Reader and Acrobat".

    I converted MS-Outlook 2010 e-mail folder (and emails) into a PDF portfolio. When I have Adobe Reader X R-clicked, selected, I got and error message "To display the contents of the Flash technology in this PDF file, please install this version of Flash Player that supports Adobe Reader and Acrobat". I get the same msg when I try to open it with Acrobat. He worked the week last in Adobe Reader. I have the latest version of Flash Player installed. The portfolio opens when I click on < more >, but the Index is missing and I can't get to the first email. PC platform. Anyone else having this problem? If so, how to fix?

    You are running Internet Explorer by chance? If so, the Flash Player you have is NOT in need of Adobe Reader and Acrobat. If there is a link in the message, use that, rather than assuming that you already have Flash Player. If this does not work, let us know.

  • My submenu does not work on my subpages of muse: that's when I made a change to the captain and now it is not - please help!

    My submenu does not work on my subpages of muse: that's when I made a change to the captain and now it is not - please help!

    The Web site is www.thecupcakebaker.co.uk

    Hello

    It looks like something is bunk of the menu items, pourriez please check again, see you if there are any blank object or anything else

    Let me know if that helps

Maybe you are looking for

  • CP 5225: Print server for HP Color Laserjet CP5225

    We have a HP Color Laserjet CP5225. The printer has USB connectivity. There is a network (RJ-45) port, but it is disabled. We want to get the printer to print directly through the network. The HP Web site suggests Print Server HP Jetdierct ew2500 (HP

  • Windows movie maker won't save or burn to a cd

    I worked for 3 days, set up a movie with pictures and sound. When I go to save on the computer or save it on a cd, he gives a status bar that never changes to 0% and below it is a counter that indicates the remaining minutes. This counter goes well t

  • How can I fix System32 DLL

    When I start my computer, I get a message saying - this application or DLL c:\windows\ststem32\guard32.dll is not a windows image valid, how to fix this.

  • Windows XP drivers

    I have a problem with my & SCSI RAID IDE controller. The hardware wizzard keeps popping up whenever I have star computer and ends upward in an error situation. Is a Highpoint Rocket Raid 231 x 230 x SATA IDE Controller controller. Could you please he

  • Access a list of QObjects using Javascript of QML?

    I want to access a list of QObjects of Javascript so that they are accessible for example like this: var items = mycontextproperty.getItems() for(i =0; i< items.length; i++){ items[i].name; } I expect fair access properties read-only. In C++, I have