Retrieve Physycal waiting 11 GR 2

Hello

I watch a Dataguard involving a physical database. This node standby, have not been recovered for a long time, an a for most of the archive logs are not present in the discs and neither tap on.

I want it back with one of the RMAN backups I have taken recently (last week) in the main node, under the current backup policy. And my question is:

What is the best way to recovery/restore with RMAN full backup? must be made in the way like when restore us a RMAN backup in a different database in another different server where the backup RMAN was taken? -I mean, as if the target database was not part of an infraestrctucture of DataGuard.

Thank you very much in advance.

Hello

Please check the link: http://www.oracle-ckpt.com/rman-incremental-backups-to-roll-forward-a-physical-standby-database-2/

Thank you

Tags: Database

Similar Questions

  • DataGuard - why transport is LGWR is not good?

    Hello, I have new Dataguard questions.

    Recently I set up Active dataguard environmental laboratory in this way:

    tnsnames.ora (both)

    PRIM_DB = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = ebstestfixdb) (PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = EBSTPF)))

    STBY_DB = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = ebscapadb) (PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = EBSTB)))

    DB primary

    HOST = ebstestfixdb

    PORT = 1521

    SID = EBSTPF

    Watch DB

    HOST = ebscapadb

    PORT = 1521

    SID = EBSTB

    (1) in primary DB:

    $ sqlplus / as sysdba

    SQL > ALTER SYSTEM SET LOG_ARCHIVE_CONFIG = 'DG_CONFIG = (EBSTPF, EBSTB)';

    SQL > ALTER SYSTEM SET LOG_ARCHIVE_DEST_2 = 'SERVICE = COMPRESSION stby_db = ENABLE ASYNC VALID_FOR =(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME = EBSTB';

    SQL > alter system set log_archive_dest_state_2 = 'reporter ';

    SQL > alter system set log_archive_max_processes = 8;

    SQL > create pfile='/tmp/initEBSTB.ora' of spfile;

    $ cd $ORACLE_HOME/dbs

    orapwd file $ = $ORACLE_HOME/dbs/orapw$ ORACLE_SID password = jajah38

    SQL > select * from v$ pwfile_users;

    (2) copy password file, init.ora and tnsnames.ora on backup server

    (3) check the standby settings (keep the original SID main DB):

    log_archive_config ='DG_CONFIG = (EBSTPF, EBSTB)

    log_archive_max_processes = 8

    fal_server = "prim_db."

    db_unique_name = "EBSTB".

    Comment/remove LOG_ARCHIVE_DEST_2 and log_archive_dest_state_2

    (4) primary backup server backups

    $ scp ebstestfixdb: / u01/fra/EBSTPF/backup automatic/2014_10_06 / * / u01/fra/EBSTPF/backup automatic/2014_10_06 /.

    $ scp ebstestfixdb: / u01/fra/EBSTPF/backupset/2014_10_06 / * / u01/fra/EBSTPF/backupset/2014_10_06 /.

    (5) start standby DB and create duplicates

    $ export ORACLE_SID = EBSTB

    SQL > startup nomount

    RMAN $

    RMAN > Connect target sys/jajah38@prim_db

    RMAN > auxiliary connection.

    RMAN > target database double standby nofilenamecheck.

    Publish

    (1) in primary DB

    SQL > alter system set log_archive_dest_state_2 = 'enable '.

    Modified system.

    (2) standby DB

    SQL > alter database open;

    Database altered.

    SQL > alter database recover managed standby database disconnect;

    Database altered.

    To control this, I use Nagios Plugin http://labs.consol.de/lang/en/nagios/check_oracle_health/

    and this plugin displays a warning:

    WARNING - Dataguard managed the recovery status MRP0 process is WAIT_FOR_LOG. Journal of transport is LGWR.

    This is the code of this warning:

    ($self-> {log_transport}) =

    $self-> {channel}-> fetchrow_array (q {}

    Select decode (count (*), 0, 'ARCH', 'LGWR') as log_transport

    v $ managed_standby

    where client_process = 'LGWR.

    });

    ... etc...

    # OK if log_transport's ARCH, but not if LGWR

    $mrp_message. = sprintf "transport journal is % s.", $self-> {log_transport};

    If ($self-> {log_transport} eq 'LGWR') {}

    ... etc...

    So, why the newspaper transport LGWR is bad?

    And what's wrong in my setup?

    Thank you

    Fernando

    No, none of your options are suitable.

    If you have ARCH, then you don't need real-time applies. Option B ARCH transport if you are waiting for newspapers to be switched, archived and shipped. Unless you set archive_lag_target you have no real guarantee speed will be.

    You want to:

    LGWR

    change retrieve managed waiting for basic to disconnect using the file current journal;

  • Cisco ASA - ASDM will not launch (Please wait while the certificate information to be retrieved)

    I have a problem with a Cisco ASA 5505. ASA 9.0 (3) / ASDM 7.4 (1).

    I did a factory reset, format flash, all copied from tftp.

    Config copied from another SAA. Subsequently changed the host name entries.

    connect host name

    Crypto ca trustpoint ASDM_TrustPoint0
    name of the object CN =connect
    Crypto ca trustpoint ASDM_TrustPoint1
    name of the object CN =connect

    ASA works very well and the home tabs & follow-up in the works of the ASDM, but I'm not able to work on the configuration using ASDM :(

    When I go to the Configuration tab, I get this message (which remains forever):

    Please wait while the certificate information to be retrieved

    I tried a 'webvpn all come back' and backup/reloading. Did not help.

    Error message and flash content - see photo attached.

    Suggestions are greatly appreciated.

    ARO

    Nils

    HI Nils,

    Please use the asdm 7.4.2 who has a lot of bugs.

    Thank you

    VR

  • Console vROPS IU - the situation data retriever is not yet initialized. Please wait...

    Hi, guys.

    My name Vinicius Silva, I'm of the Brazil I have problema with VROPS with a mensagem the UI console.

    Data Extractor is not yet initialized. Please wait...


    Why?




    Hi, guys.

    After several days without success in the solution, I start the EGGS to redeploy.

    Problem solved.

  • Recording on DVD - "Unable to retrieve the table of contents" error

    Hi all

    Whenever I try to record on a DVD a face "could not retrieve the table of contents.

    I tried to change the recording speed, but no use.

    When I go to properties of DVD and click on activate record it does not recognize the DVD or any CD in the drive.

    Please help

    Hello

    1. what software to use to burn cd/dvd discs? Try using Nero, Ashampoo burning studio, alcohol CD and DVD software of engraving,
    2. then, I advise you to use high quality as TDK or Verbatim media.

    3
    Go to Device Manager and remove the drive from the list of devices CD/DVD.
    Then access the registry and delete the Upperfilters and Lowerfilters completely from the following registry key values:

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Contro l\Class {4D36E965-E325-11CE-BFC1-08002BE10318}

    Reboot the laptop and wait for the CD/DVD drive would appear once again

    If your problems persist, there may be a problem with your cd/DVD-ROM

  • VISTA FREEZE AT STARTUP - PLEASE WAIT

    Hi need urgent help! PLEASE

    Last night Windows Vista Home d/load updates new update - IE 8 and I uninstalled Avast anti virus and put on PC Tools antivirus. He asked me to reboot I did and now when you start it freezes on the screen "Please wait" the circle continues to run and is as it is in train of thought, but nothing. I tried to start in Safe
    mode with and without networking with the command-line - all with the same result.

    This Acer is fairly new, the last month or two, not sure of exact specifications, but I don't even have the ability to repair vista or restore it from a previous configuration. Only the options as safe mode to get those and start windows normally.

    The computer came loaded with Vista Home pre and so I don't seem to have the discs. I know that normally the backup of vista is located on the drive partition, but how do for her if I can not load in Windows? I need to solve this problem, as long as it's not not my computer and feel very guilty!

    Please, if you answer no to answers tech difficult indepth I know a little but good not to juggle with the inside of the model...

    http://www.acerpanam.com/Synapse/forms/portal20.cfm?RecordID=853&formid=3390&website=AcerPanAm.com&siteid=7117&words=all&keywords=&areaid=2

    You press Alt and F10 for an Acer eRecovery Partition.

    Acer eRecovery made

     

    1. on the Acer splash screen, you can press Alt and F10 (at the same time press F2 to enter the BIOS) to make it appear a version BACK style eRecovery.

    ·        The unit is able to reload Windows from this mode faster then CD.

    ·        The default password is 000000 (6 zeros) and it is shown when you are prompted for the password.

    ·        Users are able to change the password in this mode for eRecovery only.

    ·        The system can retrieve the hidden on the hard disk (partition PQService) image or a CD/DVD media.

    ·        It is possible to reload the factory CD/DVD style or snapshots that creates the eRecovery Windows version.

    2. in Windows, there are 3 ways to access eRecovery functionality.

    ·        Press Alt and F10

    ·        Open Acer eManager and then double-click eRecovery.

    ·        When a system is new it should automatically open this application and invite you to do the recovery media.

    See you soon.

    Mick Murphy - Microsoft partner

  • Internet Explorer & Firefox - website found waiting for reply...

    Internet 'NAVIGATORS' web pages not recovery.

    I get the Message of Internet Explorer at the bottom says "website found, waiting for response... »

    Same for Firefox. Says "connection, wait for google.com...". »

    This is not a connection problem because everything else works. My Zune will connect on the market and download music. My e-mail program to connect and send/receive messages.

    I have ping google.com and got a response back. "Sent = 4, received = 4, lost = 0", "average = 890ms.

    The only problem is that my "BROWSERS" will not retrieve all the information. They say found Web site and then just hang there waiting for the response in return.

    FYI... Windows XP. The only substantive program I have running is Avast Antivirus. Disabled and still get the same results. Turned off the Windows Firewall and the same results.

    It could be a virus that changed your proxy settings in your browser. Go to the properties of the internet explore and check under the connection tab and see if there are proxies checked or even anything inside the proxy settings.

  • Windows live mail does not retrieve messages unless a restart occurs first. Why?

    Window live mail will not recover messages unless I restart my pc. If I reboot and then open direct mail all right, but if I wait a few hours (perhaps a shorter time...) I do not know) and try to retrieve the messages it just hinders is when extracting them... I get no error message, it's just trying to get back the message without success. If I then reboot my pc, direct mail works (until next time).

    Any ideas?

    Hi Jerry,

    1. are you face issues only with Windows Live mail?

    2. were you able to access the mails before without any problem?

    3. did you of recent changes on the system?

    Since you are facing problems with Windows Live mail, you can publish your application in Windows Live mail Forum to get help.

    In the Windows Live Forum

  • Help with a simple StreamConnection to retrieve HTTP content

    Hi all

    I'm new to the BlackBerry development and tries to retrieve the content of a Web site and exit in a RichTextField, based on the example provided in the BB Developer's Guide. The code snippet I tested is below, but when I click on the app in the Simulator, nothing happens (it stays on the screen for downloads). Subscribe to the code of connection allows me to display the application user interface.

    class MyProgramClass extends MainScreen {
    
        public MyProgramClass() {
            super();
            String progTitle = "My Program\n\n";
            setTitle(new LabelField(progTitle, LabelField.ELLIPSIS | LabelField.USE_ALL_WIDTH));
    
            RichTextField myField = new RichTextField();
            add(myField);
    
            try {
                StreamConnection streamConn = null;
                String myURL = "http://www.google.com/";
                streamConn = (StreamConnection) Connector.open(myURL);
    
                InputStream contentIn = streamConn.openInputStream();
                byte[] data = new byte[256];
                int length = 0;
    
                StringBuffer raw = new StringBuffer();
                while ( -1 != (length = contentIn.read(data)) ) {
                    raw.append(new String(data, 0, length));
                }
    
                myField.setText(raw.toString());
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
    }
    

    I thought that it might be necessary to simulate next to the MDS emulator, but I managed to get the response of a given URL code so I guess that the connection is not not a question.

    I understand that it would be preferable to apply it in a separate thread, but I don't think that this would be necessary, as a simple test? My environment is the most recent (since last week) SDK and BlackBerry plugin for eclipse and the 5.0 Bold 9700 simulator (apps: 5.0.0.535).

    Any help would be greatly appreciated

    Thank you

    Will be

    You must specify whatr type of connection you will use: change your code for:

    public class MyProgramClass extends MainScreen {
    
        public MyProgramClass() {
            super();
            String progTitle = "My Program\n\n";
    
            setTitle(new LabelField(progTitle, LabelField.ELLIPSIS
                    | LabelField.USE_ALL_WIDTH));
    
            final RichTextField myField = new RichTextField("Waiting for google.com...");
            add(myField);
    
            UiApplication.getUiApplication().invokeLater(new Runnable() {
                public void run() {
                    try {
                        StreamConnection streamConn = null;
                        String myURL = "http://www.google.com;deviceside=true";
                        streamConn = (StreamConnection) Connector.open(myURL);
    
                        InputStream contentIn = streamConn.openInputStream();
                        byte[] data = new byte[256];
                        int length = 0;
    
                        StringBuffer raw = new StringBuffer();
                        while (-1 != (length = contentIn.read(data))) {
                            raw.append(new String(data, 0, length));
                        }
    
                        myField.setText(raw.toString());
                    } catch (IOException e) {
                        e.printStackTrace();
                        myField.setText(e.toString());
                    }
    
                }
            });
    
        }
    }
    

    And check out the http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800451/800563/What_Is...

  • Camera to call and wait for the photo?

    Hello world

    First post on these forums, but I've been lurking here for a while. I have a simple question that can have a simple answer, and I hope someone here can enlighten us on this issue.

    I'm looking to call the camera of my application, I can do it quite easily. In addition, I have a listener of filesystem implemented seeking a .jpg file saved after that the user takes a photo. Here are the relevant lines of code (more or less):

    Listener = new FileSystemJournalListener() {}

    public void fileJournalChanged() {}

    Long USN = FileSystemJournal.getNextUSN ();

    for (long I = USN - 1; i > = lastUSN; i--) {}

    Entry FileSystemJournalEntry = FileSystemJournal.getEntry (i);

    If (input! = null) {}

    If (entry.getEvent () == FileSystemJournalEntry.FILE_ADDED: entry.getEvent () == FileSystemJournalEntry.FILE_CHANGED: entry.getEvent () == FileSystemJournalEntry.FILE_RENAMED) {}

    If (entry.getPath () .indexOf (".jpg")! = - 1) {}

    lastUSN = USN;

    photoPath = entry.getPath ();

    }

    }

    }

    }

    lastUSN = USN;

    }

    }

    UiApplication.getUiApplication () .addFileSystemJournalListener (listener);

    Invoke.invokeApplication (Invoke.APP_TYPE_CAMERA, new CameraArguments());

    My problem is I want to access and extract the image from the camera in a way series application, then I would like my request for locking/blocking/wait until what the auditor has identified a new image file. I believe that this is possible, but I'm not familiar with how to do it. In my debugging experience, at least on the Simulator, invokeApplication is threaded (asynchronous) and my request is still ongoing in the background, even if the camera application is active and on the foreground. I tried to add a dummy while loop after the call to Invoke that checks whether my application is in the foreground (using isForeground) but has not lead me on the path.

    I'm working with JDE 4.6.1 and 4.7. Any help would be greatly appreciated!

    Best,

    Wire update

    Hi Peter,.

    Thanks again for your response. I'm really not in one of the videos/images . You can always check my github profile (www.github.com/filmaj), which also contains my range of PhoneGap - it contains the latest code of BlackBerry for our project. In addition, PhoneGap is completely open source and under license by virtue of the MIT, which is pretty liberal, so feel free to grab the code and play with it / use it at your leisure!

    Thanks for the info on the thread of events, which is very insightful. And Yes, almost all PhoneGap runs on the event Thread (except for the recovery of the resource - two resources the application external or local-unit, i.e. the pages html, css, js, images, etc.). It is indeed a difficult situation, but I think I have the solution, but it does not actually the code Java of BlackBerry. I think I can actually solve this problem as soon as the end of JavaScript.

    For context, here's a brief overview / example of how PhoneGap works on a BlackBerry:

    1. developer making an app with PhoneGap called something like navigator.camera.getPicture (success, failure) of JavaScript on the access to its Web site, with the 'success' and 'failure' based on the handles to reminders for image retrieval success or failure, respectively.

    2 some PhoneGap JavaScript wrapper code sets a cookie (document.cookie = "foobar"-call with a particular PhoneGap message format, in this case for the camera.)

    3. We then carry on native code of BlackBerry. Object BrowserField, that displays web application pages and executes the JavaScript Shell, then intercepts this cookie-setting event (via the eventOccured to the RenderingApplication method and Event.EVENT_SET_HTTP_COOKIE event type) and numbers which native device to recover/call feature.

    4. the specific device feature is called and returns a string from a combination of code JavaScript logic and JSON (code object for data transport representation). This string is stored in a Java vector, which is a member of class PhoneGap.

    5. at this point, the cookie-setting event method has finished running, execution returns to the wrapper of PhoneGap JavaScript function. Now, we get the contents of JS document.cookie. As done previously, using the same approach, catch us the event "getCookie" and fill it with the contents of the Java vector we populated earlier. It finally passed into the web page's JavaScript.

    6 back in the land of JavaScript, the last step is to eval() the contents of the cookie, fill data members and call reminders on the right.

    So my solution is to simply ask document.cookie (and therefore indirectly on the contents of the Java vector election) in a defined - for example, every second - interval instead of immediately after the launch of the functionality of the device and only once. In this way, the app will be keep polling the vector object to the new answers PhoneGap and evaluate constantly.

    In all cases, you can not directly solved my problem, but you led me in the right direction! Congratulations to you, Sir!

    Thanks again,

    Wire update

  • Failed to retrieve more than 100 virtual machines by using the method PropertyCollector and WaitForUpdatesEx

    With vSphere SDK for .NET. Sorry, could not find a forum .NET for vSphere SDK, but the Java forum should be close enough.

    I have problems of retrieval of a list of virtual machines from a Pool of resources. More precisely, if there are more than 100 mV (104 in my case) in the folder or the Pool of resources returned UpdateSet can have 100 items in there.

    The offending code is the following:

    UpdateSet uSet = pc. WaitForUpdatesEx (string. Empty, new WaitOptions() {MaxWaitSeconds = 0});
    Console.Writeline (uSet.FilterSet [0].) ObjectSet.Count); will always contain no more than 100 items

    It seems to be a difficult cut off the coast of 100 items.
    WaitOptions of WaitForUpdatesEx contains a property of MaxObjectUpdates of literature

    "The maximum number of entries in ObjectUpdate which must be returned in a single result of WaitForUpdatesEx. See truncated

    An undefined value indicates that there is no maximum. In this case political PropertyCollector can still limit the number of objects that appear in a UpdateSet. »

    But what is the policy of 'PropertyCollector' that it is? I've been trawling the web and will find absolutely no mention of this in all others in the documentation.

    I also tried to put right in a a MaxObjectUpdates = 150 just to see what would happen. Yet once only 100 items returned.

    For reference, here's a more complete article of the code:

    EntityViewBase folderMngObj = GetVsphereVmFolderManagedObjectRefId (vClient, vSpherefolderName);

    If (folderMngObj! = null)
         {
    ManagedObjectReference svcRef = new ManagedObjectReference() {Type = 'ServiceInstance', Value = 'ServiceInstance'};
    SrvInst ServiceInstance = new ServiceInstance (vClient, svcRef);

    ServiceContent sContent = srvInst.RetrieveServiceContent ();
    ViewManager viewManager = new ViewManager (vClient, sContent.ViewManager);
    PropertyCollector pc = new PropertyCollector (vClient, sContent.PropertyCollector);

    ManagedObjectReference cvMngObjRef = viewManager.CreateContainerView (folderMngObj.MoRef, new String() {"VirtualMachine"}, false);
    ContainerView cv = new ContainerView (vClient, cvMngObjRef);
    PropertySpecList list < PropertySpec > = gcnew List < PropertySpec > ();

    foreach (string propertyPath in vmPropertyPaths)
              {
    PropertySpec propSpec = new PropertySpec();
    propSpec.PathSet = new String() {propertyPath ;} }
    propSpec.Type = 'VirtualMachine';
    propertySpecList.Add (propSpec);
              }

    PropertySpec [] propertySpecs = propertySpecList.ToArray ();
    PropertyFilterSpec pfs = new PropertyFilterSpec();
              pfs. ObjectSet = new ObjectSpec [] {CreateObjSpec (cv)};
              pfs. PropSet = propertySpecs;

    / / Create a property with partialUpdate is true
    PropertyFilter pf = new PropertyFilter (vClient, pc. CreateFilter (pfs, true));

    / / Wait that initial udpate with the version string empty
    UpdateSet uSet = pc. WaitForUpdatesEx (string. Vacuum, new WaitOptions() {MaxWaitSeconds = 0})

    / / Here uSet.FilterSet [0]. ObjectSet will always contain not more than 100 items

    viewTable = OutputDataset (uSet);
              pf. DestroyPropertyFilter();
    }

    Any help would be appreciated.

    What is the value of the indicator "truncated" in the returned UpdateSet?

    http://www.VMware.com/support/developer/VC-SDK/visdk41pubs/ApiReference/vmodl.query.PropertyCollector.UpdateSet.html#truncated

    If set to true, you must call waitForUpdatesEx (with the version of the UpdateSet) back to get the rest updates.

  • DBMS_SCHEDULER jobs wait/program end

    Hi all

    I ran into a small limitation on my understanding of DBMS_SCHEDULER.

    I have an executable script that performs a network scan. My goal is to launch this application, wait for them (maybe 5 minutes or 2 hours) for the analysis ends before I return the results.

    Where I am a little confused, is the circulation of works all process when I want to wait for the program complete:

    1 - define a program?

    2 - Apply the arguments?

    3. apply identification information

    4 - set a string?

    Literally, I don't know how to tackle this task. I just want to launch job and wait until it finishes before going to retrieve the file from the server. This is what I have for now, just bits and pieces.

    Mayen simply, I missed something in the docs and I overcomplicate things.

    Thanks in advance to the community for you help.

    Jan S.

    BEGIN
    
      
      
      dbms_scheduler.create_program(
        program_name   => 'network_scan',
        program_type   => 'executable',
        number_of_arguments => 5,
        program_action => 'scan_network.py',
        enabled        =>  FALSE);
      
      dbms_scheduler.define_program_argument('network_scan',1,'x01=1');
      dbms_scheduler.define_program_argument('network_scan',2,'x02=192.168.1.1');
      dbms_scheduler.define_program_argument('network_scan',3,'x03=24');
      dbms_scheduler.define_program_argument('network_scan',4,'x04=D');
      dbms_scheduler.define_program_argument('network_scan',5,'x05=1521-1523,7777');  
    
      vJobName := dbms_scheduler.generate_job_name('NET_SCAN_');
      
      dbms_scheduler.create_job(job_name => vJobName,
                                  job_type => 'EXECUTABLE',
                                  job_action => '/usr/bin/scan_nework.sh',
                                  number_of_arguments => 5,
                                  enabled => FALSE,
                                  auto_drop => FALSE,
                                  comments => 'Network');
    
    dbms_scheduler.set_attribute(vJobName,'credential_name', 'SUCREDENTIALS');
      dbms_scheduler.run_job(vJobName,FALSE);
      
      dbms_scheduler.create_chain (
       chain_name            =>  'net_scan_chain',
       rule_set_name         =>  NULL,
       evaluation_interval   =>  NULL,
       comments              =>  NULL);
      
      dbms_scheduler.define_chain_step('net_scan_chain', 'step1', 'network_scan');
      
      SELECT additional_info, external_log_id
      INTO   l_additional_info, l_external_log_id
      FROM   (SELECT log_id, 
                     additional_info,
                     REGEXP_SUBSTR(additional_info,'job[_0-9]*') AS external_log_id
              FROM   dba_scheduler_job_run_details
              WHERE  job_name = vJobName
              ORDER BY log_id DESC)
      WHERE  ROWNUM = 1;
    
      DBMS_OUTPUT.put_line('ADDITIONAL_INFO: ' || l_additional_info);
      DBMS_OUTPUT.put_line('EXTERNAL_LOG_ID: ' || l_external_log_id);  
      
      
    
        
      -- Wait at least 3 second because its distributed
      dbms_lock.sleep(3);
      SELECT job_name, status, error#, additional_info
      FROM dba_scheduler_job_run_details
      WHERE job_name= vJobName;
       
      
      dbms_lob.createtemporary(l_clob, FALSE);
    
      dbms_scheduler.get_file(
        source_file     => l_external_log_id ||'_stdout',
        credential_name => 'ORACLECREDENTIALS',
        file_contents   => l_clob,
        source_host     => NULL);
    
      DBMS_OUTPUT.put_line('stdout:');
      DBMS_OUTPUT.put_line(l_clob);
    k Scan');
    

    See Tom's last answer in this thread AskTom. It shows how to use the package DBMS_ALERT to notify you.

    http://asktom.Oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:5320945700346034393

  • That redo log files waiting?

    Hello Experts,

    I read articles on the log redo and undo segment files. I was wondering something very simple. That redo log files waiting in there? It stores the sql statements?

    Lets say that my update statement to modify 800 blocks of data. A unique single update statement can modify different data 800 right blocks? Yes, it may be true. I think that these data blocks can not hold buffers to the log to roll forward, right? I mean I know exactly what to do redo log buffer and redo log file. And I know that the task of backgrounding LGWR. But, I wonder if she she holds the data blocks? It is not supposed to hold data like cache buffer blocks, right?

    My second question is, rollback isn't effect to restore the newspaper to the right buffer? Because it does not need log buffer for effect do it again. Conversely, the restoration; statement is included in the restore log buffer by progression when someone isse, am I right?

    As far as I know, rollback interact directly with UNDO TABLESPACE?

    I hope that I have to express myself clearly.

    Thanks in advance.

    Here's my question:

    My second question is, rollback isn't effect to restore the newspaper to the right buffer? Because it does not need log buffer for effect do it again. Conversely, the restoration; statement is included in the restore log buffer by progression when someone isse, am I right?

    As far as I know, rollback interact directly with UNDO TABLESPACE?

    Yes, where else would the undo data come from? Undo tablespace contains the Undo segments that contain the Undo data required for the restoration of your transaction.

    I can say that rollback does not alter the data of the log buffer rede to the past. In other words, change vectors will be remain the same before restoration. Conversely, rollback command is also recorded in the log file of restoration by progression. As the name, all orders are saved in the REDO LOGS.

    I hope that I am wrong so far?

    Not sure why you even the buffer log roll forward for Rollback? This is the reason why I asked you it was for, where occurs the dose the cancellation? And the answer for this is that it happens in the buffer cache. Before you worry about the drivers of change, you must understand that it is not serious what contains where as long as there is no transaction recorded in the operating of the Undo segment table. If the operating table indicates that the transaction is longer there, there must be a cancellation of the transaction. Vectors of change are saved in the file log roll forward, while the restore happens on blocks of data stored in the file "data" undo blocks stored in the undo file "data".

    At the same time I read an article about redo and undo. In this article process transaction is explained. Here is the link http://pavandba.files.wordpress.com/2009/11/undo_redo1.pdf

    I found some interesting information in this article as follows.

    It is worth noting that during the restore process, recovery logs never participate. The only time where redo logs are read is retrieving and archiving. This is the concept of tuning key: redo logs are written on. Oracle does not read during normal processing. As long as you have sufficient devices so that when the ARC is reading a file, LGWR's writing to a different device, then there no contention for redo logs.

    If redo logs are never involved in the restoration process, how is it Oracle will then know the order of the transaction? As far as I know it is only written in redo logs.

    I have thoughts very amazed to Aman.

    Why you ask?

    Now, before giving a response, I say two things. One, I know Pavan and he is a regular contributor to this forum and on several other forums Facebook and two, with all due respect to him, a little advice for you, when you try to understand a concept, to stick to the Oracle documentation and do not read and merge articles/blog-posts from the web. Everone, which publishes on the web, has their own way to express things and many times, the context of the writing makes it more confusing things. Maybe we can erase the doubts that you can get after reading the various search results on the web.

    Redo logs used for the restoration, not to restore. The reason is the redo log files are applied in sequential order, and this is not the case when we look for the restoration. A restore is required to do for a few blocks away. Basically, what happens in a restoration, is that the records of cancellation required for a block of data are sought in the reverse order of their creation. The entry of the transaction is in the slot ITL of the block of data that point to the necessary undo bytes Address (UBA) using which oracle also knows what that undo the blocks would be necessary for the restoration of your transaction. As soon as the blocks of data will be cancelled, the ITL slots would be cleared as well.

    In addition, you must remember, until the transaction is not qualified as finished, using either a commit or a rollback, the cancellation of this data would remain intact. The reason for this is that oracle would ensure that undo data would be available to make the cancellation of the transaction. The reason why Undo data are also recorded in the journals of recovery is to ensure that in the event of the loss of the cancellation of the data file, retrieving them would be possible. Because it would also require changes that's happened on the blocks cancel, restore the vectors change associated with blocks of cancellation are also saved in the buffer log roll forward and, in the redo log files.

    HTH

    Aman...

  • ORA-01124: cannot retrieve the data file 1 - file is in use or recovery

    I'm trying to recover the database in waiting, but it gives the error below.

    ORA-00283: cool cancelled due to errors
    ORA-01124: cannot retrieve the data file 1 - file is in use or recovery, the recovery is already said
    ORA-01110: data file 1: ' I:\ORACLE\QAS\SAPDATA1\SYSTEM_1\SYSTEM. DATA1'

    When I checked in the alert log recovery is not started. and later I hae given ' alter database recover Cancel "and the command to meet with the threshold.

    "media recovery has not started.

    It seems that the recovery was stuck between the two.
    Please advise me how to kill the recovery session that is stuck. because I don't want to bounce the database pending.

    Thanks in advance.

    Dataguard and MRP, you run a script before.

    In a standby scripted, a session to RETRIEVE the DATABASE would an UNTIL clause (SEQUENCE up to THAT most likely). At the end of the recovery at this point (SEQUENCE #), he left and stop at the database.

    In addition, the script is such that when a RECOVERY session is active, another session is not authorized to start. It can loop in pending state or go out and do it again the next scheduled interval.

    Apparently your startup script is not strong enough to prevent another session of RECOVERY to start even though the first is active (or it doesn't have a good up to THAT clause and stop, exit, closing stocks)

    What you have is a custom implementation of a database of pending. Without all the details of the script, the 'blocking' between sessions (to avoid a second RECOVER start when one is already running) etc... We can't really do much to help you.
    Your scripts must be standing with status information. It should be possible for you to discover the 'other' sqlplus session which emanates a DATABASE to RECOVER, but not yet out (p. ex... How about a simple "ps - ef |") grep sql' and ' ps - ef | combination of grep ora"?)

    Hemant K Collette

    Published by: Hemant K Collette on May 29, 2013 17:47

  • ORA-00060: Deadlock detected while you wait the cursor CLOSE resource

    Hello

    I am a new Member of this forum. I work with a problem that we have obtained a few weeks ago. It runs in the lot C Pro executable on 10 threads dealing with > 800 data accessed from more than one table. The error, such as reported was a package.function call.

    This is the error I encountered:
    process_item ~ G *, D * ~-60 ~ ORA-00060: Deadlock detected while you wait resources ~ PACKAGE ERROR = cursor CLOSE C_ * in the R package *. I * 7641

    The slider is a simple SELECT without Table or record locking.

    My questions are:
    * During the occurrence of this error, execution is already in the line of the CLOSE cursor or did the error has occurred between the OPEN and the CLOSE slider? There are several lines of code between the OPENING and CLOSING:
    -one who calls to a package.function that simply stores the values of parameter to a variable
    -another one that retrieves the cursor. The group that contains the values of the cursor is used only by a single function in the package

    * Is it possible for this CLOSE cursor cause a deadlock? What could have caused this?

    * From what I know, Oracle treats blocks by abandoning the blocking process, while others continue, but this impasse caused our program to hang. How is that possible? The origin of the impasse might be our Threading program? This is a rare event and has past that twice this year.

    Thank you
    RAF

    RAF Serrano wrote:
    I see, so it be that blocking has occurred before the CLOSE cursor or it occurred during CLOSING? The cause could be executable ProC

    first cause is NOT ProC

    or is it really an error in PL/SQL

    first cause is NOT PL/SQL.

    cause of ORA-00060 is DML (INSERT, UPDATE, or DELETE)

Maybe you are looking for

  • IPhone5, IOS 9.3.3 Hotspot problem

    Hello I use Iphone5, IOS 9.3.3 I activated the Hotspot for the first time after that latest IOS update.He started well, I had a normal access to the menu functions, but I would not communicate with the host. I dropped. later, I noticed the Hotspot ic

  • Download missing history after upgrading to Firefox 26

    Hi Firefox Team, I've updated my Mac Version of Firefox 25.0.1 and just found out that my story to download is missing. Why it is to be deleted? THX

  • How can I change the colors of the tabs

    I downloaded Firefox 4 on my desktop (XP) and laptop (Win7). On the laptop, the tabs are a bright color, including the legs that are not open. On my desk, they are a dark color and no open tabs are difficult to read. T tried to go to tools/options/co

  • READYNAS using Readycloud Desktop App - incremental backup?

    Hi guys,. Have been using my ReadNAS for some time and it is great, just recently tried the application backup on ReadyCloud and the conclusion that it is always indexing or download. Just test it with a single file that contains the data of 6 GB. I

  • Constants of output for the case of Structures

    Hello I have a pretty basic question about the case structures in labview. As indicated in the attachment below, using the structure case I've pretty much tried to create a three position switch. I'm trying out a value for the first (in the range and