Does UNDO data persist after a bounce ?

RDBMS Version : 11.2, 10.2
Platform : Unix
Will Oracle retain the Undo data in UNDO tablespace after a bounce ? If yes, why does oracle want to retain UNDO data which was present before the shutdown ? Is there a way to verify that UNDO data is retained after the bounce ?

Hi
It is probably better to understand the difference between undo and a transaction.
1. Undo data (more accurately undo records) - means undo records stored in the undo blocks of an undo tablespace. Retention of those undo records are controlled by undo_retention parameter (and also by auto undo retention tuning feature). Even if you restart the database, those undo records are still kept in undo tablespace (meaning, undo tablespace is not cleaned out); These undo records are used during Consistent Read copy generation and transaction rollback as discussed in (2) below.
2. Transactions - Shutdown immediate kills the sessions and rolls back active transactions; shutdown transactional will wait for the transaction to complete, but kills the session after completion of current active transaction ; shutdown normal will wait for the session to complete (and so transactions to complete); shutdown abort will kill the session, but does not roll back active transactions.
Further read: http://docs.oracle.com/cd/E11882_01/server.112/e10713/startup.htm#BABDBBAJ
( I really hope, your HR doesn't read this thread. )
Cheers!
Riyaj Shamsudeen
OakTable Member/Oracle ACE Director
Blog: http://orainternals.wordpress.com
Fall 2012: [Advanced RAC seminar | http://www.orainternals.com/services/training/advanced-rac-training/]

Similar Messages

  • How does the data inserted after a delete command

    Hi Folks,
    I have a question regarding a scenario. I deleted some data from a table ( i use the where clause to delete a portion of rows from the table). So after the rows are deleted the space is free but below the high water mark. When i insert new rows in the same table, then where from oracle fetches the space:
    A. Will it use the space that is freed up by deleted the rows
    B. Use the space above the high water mark. ( If it uses this space then Lets say all the extents are completed and we dont have any extents above the high water mark, then will it use the space freed by the deleted rows or will it complain for the addiditional space)
    Please advice.
    Also I would appriciate if you could give me a link for a documentation for the above scenerio.
    Thanks in advance
    Karthik

    A. Will it use the space that is freed up by deleted
    the rows That depends, it's controled by PCTUSED and PCTFREE parameter as described below. Also the free space need to be big enought to hold the new row.
    The PCTUSED Parameter
    The PCTUSED parameter sets the minimum percentage of a block that can be used for row data plus overhead before new rows are added to the block. After a data block is filled to the limit determined by PCTFREE, Oracle considers the block unavailable for the insertion of new rows until the percentage of that block falls beneath the parameter PCTUSED. Until this value is achieved, Oracle uses the free space of the data block only for updates to rows already contained in the data block.
    B. Use the space above the high water mark. ( If it
    uses this space then Lets say all the extents are
    completed and we dont have any extents above the high
    water mark, then will it use the space freed by the
    deleted rows or will it complain for the addiditional
    space)
    When Extents Are Allocated
    When you create a table, Oracle allocates to the table's data segment an initial extent of a specified number of data blocks. Although no rows have been inserted yet, the Oracle data blocks that correspond to the initial extent are reserved for that table's rows.
    If the data blocks of a segment's initial extent become full and more space is required to hold new data, Oracle automatically allocates an incremental extent for that segment. An incremental extent is a subsequent extent of the same or greater size than the previously allocated extent in that segment.
    Please advice.
    Also I would appriciate if you could give me a link
    for a documentation for the above scenerio.
    check Oracle Concept for more detail,
    Data Blocks, Extents, and Segments

  • URGENT HELP NEEDED!!! No data connectivity after a while, weird errors

    I am using T-Mobile's regular prepaid web plan and Wi-Fi just fine, no need for BIS, Rich Email, or BBM (SMS and MMS is just fine). All I ever use are apps that SPECIFICALLY state that they work over standard TCP/IP and Wi-Fi. The problem is, after some time, the apps that one worked over regular data connections and MMS don't connect anymore. Even though the apps said that no BIS is needed, they can't access data. Even RIM's own Facebook app, which claims to work over Wi-Fi (and does) loses data connectivity after a day or so without a full reboot. The only thing that works is the BlackBerry Browser, which still connects to the internet. Along with the apps failing to work, MMS messages also can't be sent.
    Rebooting the phone by a battery pull or alt-shift-delete allows the apps and MMS to work, which after a day (sometimes even shorter) stops working again.
    Here's what I've done so far:
    - Checked and made sure that all permissions for data access
    - Checked that my APN settings are correct: epc.tmobile.com
    - Checked my Wi-Fi router for connectivity
    - Called  T-Mobile tech support for help, wiped my phone upon their instruction
    - Reinstalled my apps and contacts, T-Mobile sent me new service books
    Still the SAME THING with apps and MMS not working after a while. I've narrowed it down to entries in the event log that show up as this, which shows up seconds before my apps and MMS stop working:
    a net.rim.hrtRT - PUpI - 9/23 17:06:58
    a net.rim.hrtRT - EPdp 0x3 - 9/23 17:06:58
    a net.rim.tunnel - Clos-blackberry.net - 9/23 17:06:58
    a net.rim.hrtRT - CClG 0x2 - 9/23 17:06:58
    W net.rim.hrtRT - XMax - 9/23 17:06:58
    W net.rim.hrtRT - XBad - 9/23 17:06:58
    E net.rim.mdp - TEma - 9/23 17:06:58
    W net.rim.mdp - TDtm - 9/23 17:06:58
    i net.rim.mdp - TTex - 9/23 17:06:58
     Can any experts or developers tell me what these Warnings and Errors mean? I am pretty sure that whatever "net.rim.mdp" and "net.rim.hrtRT" is doing isn't good.

    anyone care to help???
    Also, on the 18th I wiped my phone again, and three days later (longest time with no mdp error) the same error occurred in the event log, no internet connectivity afterwards on Wi-Fi or Mobile Network...
    The Tunnel Engineering Screen under Multi-WAF Encineering Screens shows the following:
    1 VPN <7.105.226.218>
    Tunnel ID: 1
    Tunnel Type: VPN
    Tunnel State: UNEXPECTED ERROR
    Tunnal IP Address: 7.105.226.218
    2 WLAN <192.168.1.x>
    Tunnel ID: 2
    Tunnel Type: WLAN
    Tunnel State: UNEXPECTED ERROR
    Tunnel IP Address: 192.168.1.x
    3 3GPP blackberry.net <22.185.134.169>
    Tunnel ID: 3
    Tunnel Type: 3GPP
    Tunnel State: UNEXPECTED ERROR
    Tunnel IP Address: 22.185.134.169
    4 3GPP epc.tmobile.com <26.203.192.238>
    Tunnel ID: 4
    Tunnel Type: 3GPP
    Tunnel State: UNEXPECTED ERROR (shows OPEN_READY only when browsing webpages)
    Tunnel IP Address: 26.203.192.238
    Something tells me that the tunnels are being blocked, since closing and recreating them does the same thing. Anyone else have this problem???

  • Best way to back out data changes after a release

    Hi,
    I'm trying to decide on the best way to backup some production data in case a release fails and we need to roll back the changes. This would be for data updates only, not schema changes. We have extremely limited access to production, and another team handles all the RMAN backups. The people who actually implement our releases are also pretty prone to mistakes.
    I have thought of two options. The tables we want to backup are about 9 MB total in size (it's about 10 codes tables).
    1. Create a bu table for each of the tables before the release. So for JENNSTABLE, we would create a JENNSTABLE_BU using CTAS. If we need to revert, we can drop JENNSTABLE and rename the JENNSTABLE_BU accordingly. The bu table would remain in production until the next release, where it would be reused again. This would be really easy to script and therefore avoid any mistakes by the production support team who implements our instructions. We would also be able to determine what values changed by querying the bu table at any time (currently old values are not retained anywhere).
    2. Use datapump to export the 10 tables, then truncate the tables and import the previously created files to restore the original data. I'm hesitant to use this method because I've never used datapump before, and as we don't have access to the servers, creating file system files makes me a little nervous. If I used a bu table, I can logon to the database and at least tell if it exists.
    Are there any preferred methods for doing this (besides restoring a table w/ RMAN)? Is there a best practice? Any advice is appreciated!
    -Jenn
    Oracle 10g
    UNIX Solaris

    Hi sb92075,
    That's a good suggestion. FLASHBACK_ON is set to no on my database, but if I understand correctly, I can still do a FLASHBACK TABLE and the undo data would be used. Is that correct?
    My concerns w/ using Flashback are ..
    1) The client might decide to rollback the changes a week after they've been executed. The undo data might not be available and the flashback would fail.
    2) If any of the following processes are part of the release, the flashback wouldn't work:
    "The following DDL operations change the structure of a table, so that you cannot subsequently use the TO SCN or TO TIMESTAMP clause to flash the table back to a time preceding the operation: upgrading, moving, or truncating a table; adding a constraint to a table, adding a table to a cluster; modifying or dropping a column; adding, dropping, merging, splitting, coalescing, or truncating a partition or subpartition (with the exception of adding a range partition)."
    Can you address those two issues? Thanks so much for taking the time to respond! This forum has helped me immensely with my work.
    -Jenn

  • Firefox does not start up after an automatic update. Every time i try to open it, it just prompts the Mozilla Crash Reporter.

    Firefox does not start up after an automatic update. Every time i try to open it, it just prompts the Mozilla Crash Reporter.
    ''Add-ons: {972ce4c6-7e08-4474-a285-3208198ce6fd}:3.6.10
    BuildID: 20100914125854
    CrashTime: 1290192405
    EMCheckCompatibility: true
    FramePoisonBase: 00000000f0de0000
    FramePoisonSize: 65536
    InstallTime: 1287124738
    ProductName: Firefox
    ReleaseChannel: release
    SecondsSinceLastCrash: 422
    StartupTime: 1290192405
    Theme: classic/1.0
    Throttleable: 1
    Vendor: Mozilla
    Version: 3.6.10
    This report also contains technical information about the state of the application when it crashed.''
    Same thing happens when i click restart.
    No difference when i run it in Safe mode. And it won't let me create a new profile either. Is there anyway else i can extract my bookmarks? This is driving me crazy!

    Did the crash reporter send any crash reports?<br />
    You can see the crash reports in this folder:
    "C:\Users\&lt;user&gt;\AppData\Roaming\Mozilla\Firefox\Crash Reports"
    See: http://kb.mozillazine.org/Breakpad
    See also [[Firefox crashes when you open it]]
    Create a new profile as a test to check if your current profile is causing the problems.<br /><br />
    See [[Basic Troubleshooting#Make_a_new_profile|Basic Troubleshooting&#58; Make a new profile]]<br /><br />
    There may be extensions and plugins installed by default in a new profile, so check that in "Tools > Add-ons > Extensions & Plugins"<br /><br />
    If that new profile works then you can transfer some files from the old profile to that new profile (be careful not to copy corrupted files)<br /><br />
    See http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox<br /><br />
    If that still causes the same problem then do a clean reinstall and remove the Firefox program folder.
    * Download a fresh Firefox copy from http://www.mozilla.com/firefox/all.html and save the file to the desktop.
    * Uninstall your current Firefox version and remove the Firefox program folder before installing that copy of the Firefox installer.
    * Don't remove personal data when uninstalling.
    * It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    See:
    * http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Clean_reinstall

  • MBP does not come back after hybernation

    Hello everyone,
    I am enjoying my MBP except for one problem. It does not come back after it hybernates sometimes.
    I hit a key, hear the superdrive do it's "thing" and then after much waiting (approximately over 10 minutes) no picture or video on the screen!
    I can tell that it's still powered on because it's plugged in and when I hit the Caps Lock key it lights on and off.
    The only way that I can get it out of this state is to hold down the power button, unplug the power cord, take the battery out, hold in the power button for 4 seconds, reinsert the battery and power back on.
    I have to then cycle the power back off because the first time it does not come back but I just get the blank white boot screen and no 'apple'.
    When I turn it back on the second time, it boots up.
    Anyone else have a problem with this?
    Thanks for listening!
    Mark

    Hello Gweedo!
    Yeah I have the same issue and am up to date. Apparently this is a pretty huge problem with the Macbook Pro since the last Graphics update after updating to 10.5.2.
    http://discussions.apple.com/thread.jspa?threadID=1394449
    I have been perusing through that topic and hopefully they will come up with a fix for this.
    The only work-a-round that I have found (but haven't tested extensively yet) is to disconnect to the wireless, turn off blue tooth, disconnect my external monitor and then go into sleep mode. Then it always comes back. But if I leave it connected to the wireless, bluetooth, and external monitor - it's a crap shoot as to weather or not it will come back up.
    This is pretty frustrating because half of using a laptop is being able to hybernate and sleep properly.
    I even have the 'smartsleep' installed.
    Thanks for commenting everybody!
    Mark

  • F4 Help on Date Field after ALV is generated

    Hi all,
    Now this might sound very simple question, but Im having some difficulty in this.
    My idea is to have an F4 on a date field after the ALV Grid report is executed. From the forum search, Ive got such answers as
    l_fieldcat-edit         = 'X'.
    l_fieldcat-F4AVAILABL = 'X'.
    Now the problem with this is that Im getting an error saying:
    The data object "l_fieldcat does not have a component called "F4AVAILABL".
    And then I tried this:
    l_fieldcat-fieldname    = 'DDATE'.
    l_fieldcat-ref_tabname = 'ZCST001'.
    Now at the report output when I press F4 on the date field it gives me a dump saying:
    Field symbol has not yet been assigned.
    Error in the ABAP Application Program
    The current ABAP program "CL_GUI_ALV_GRID===============CP" had to be terminated because it has come across a statement that unfortunately cannot be executed.
    So Im kinda stuck now. Appreciate your suggestions.
    PS: Im on ECC6.
    PPS:The intended F4 on field is a custom field in a custom table.
    pk

    Run This:
    report ztest.
    TYPE-POOLS : slis.
    tables:mara,makt.
    data: begin of it_final occurs 0,
    matnr like mara-matnr,
    ERSDA like mara-ERSDA,
    end of it_final.
    DATA: it_fieldcat     TYPE slis_t_fieldcat_alv,
          wa_fieldcat     TYPE slis_fieldcat_alv,
          wa_layout       TYPE slis_layout_alv,
          g_repid         TYPE sy-repid.
    START-OF-SELECTION.
    select matnr ERSDA into table it_final from mara up to 10 rows.
      g_repid = sy-repid.
      PERFORM f_populate_fieldcat.
    *  PERFORM fill_zpayroll.
      PERFORM f_call_alv.
    *&      Form  f_populate_fieldcat
    *       text
    *  -->  p1        text
    *  <--  p2        text
    form f_populate_fieldcat .
    "Mat Number
      CLEAR wa_fieldcat.
      wa_fieldcat-tabname     = it_final.
      wa_fieldcat-fieldname   = 'MATNR'.
      wa_fieldcat-seltext_l   = 'MAT No.'.
      wa_fieldcat-outputlen   = 15.
      APPEND wa_fieldcat TO it_fieldcat.
      "Creation date
      CLEAR wa_fieldcat.
      wa_fieldcat-tabname     = it_final.
      wa_fieldcat-fieldname   = 'ERSDA'.
      wa_fieldcat-edit         = 'X'.
    wa_fieldcat-REF_TABname = 'MARA'.
    wa_fieldcat-REF_FIELDname = 'ERSDA'.
      wa_fieldcat-seltext_l   = 'Creation date '.
      wa_fieldcat-outputlen   = 15.
      APPEND wa_fieldcat TO it_fieldcat.
    endform.                    " f_populate_fieldcat
    *&      Form  f_call_alv
    *       text
    *  -->  p1        text
    *  <--  p2        text
    form f_call_alv .
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program     = g_repid
          i_callback_top_of_page = 'TOP-OF-PAGE'
          is_layout              = wa_layout
          it_fieldcat            = it_fieldcat[]
          I_SAVE = 'A'
        TABLES
          t_outtab               = it_final
        EXCEPTIONS
          program_error          = 1
          OTHERS                 = 2.
      IF sy-subrc <> 0.
        EXIT.
      ENDIF.
    endform.                    " f_call_alv
    In custom table date field must be referenced to DATS.
    P.S.I hope you already solved
    Cheers

  • Infocube data loss after BW Upgrade to 7.01 (SP 7)

    HI,
    We have recently upgraded from BW version 3.5 to 7.01 SP 7. It has been noticed that the pre-upgrade data from all the Infocubes have been wiped off since the upgrade. Data that were loaded into the cubes post-upgrade are fine though. The "Manage" screen on each of these cubes shows that all the data load requests (pre and post upgrade) are intact, however the underlying F & E tables do not have any of the pre-upgrade data (which sort of means that this data wasn't deleted from a BW transaction). Also, this has happened only for the Cubes - Master Data and DSO data seems to be fine.
    Prior to the BW Upgrade, the underlying OS & DB were upgraded to versions AIX 6.1 and DB2 9.7 FP2 respectively. The data in the cubes existed after this step.
    Has anyone seen or come across this issue before during the actual upgrade or any of the post-processing steps after that? Any help here will be appreciated!
    Thanks
    Anooj

    Hi Anooj,
    The note says that :-
    When a cube in a source system contains no data, a user can set the
    Line Item flag to TRUE for a particular dimension. If the user then
    decides to transport this into a target system in which the target cube
    DOES contain data, the dimension table is dropped and recreated. As a
    result, DIMIDs in the Fact table now point to invalid entries in the
    new Line Item dimension. This change should NOT be permitted and the
    cube activation should be aborted instead.
    Was the Line Item flag set in your infocubes , which may have led to the loss of data.
    becuase SAP seems to be mentioning more on the Line Item flag side , or is it generally for the program for Infocube activation.
    We have found that we lost the data in the CUBE , though there is no line item flag active.
    Regards,
    Hari

  • Does Editing a clip after using the "Open in Timeline" command in the event browser alter the source media file?

    Does editing a clip after using the "Open in Timeline" command in the event browser alter the source media file?

    C5ELEN wrote:
    . Didn't we have that in 7?  Seems like I remember we could set the number of undo levels.
    Legacy FCP has Revert Project to return to the last saved version, and it has Restore Project to go back to one of the autosaved versions. The maximum number of undo's can be set in user preferences. A lot different than X.
    Russ

  • Data Persistency Query

    What is the meaning of :
    Data Persistency
    Does it mean that this data is available till it is consumed by any
    process.
    What exactly does persistency relate to.

    By the way, any "what is" question is a sure indicator that you ought to use Google.
    http://www.google.com/search?q="what+is+data+persistence"

  • IPhoto does not start up after upgrading

    On my new iMac iPhoto does not start up after migrating. Upgrade from iPhoto 6/Snow Leopard > Lion 10.7.1 with iPhoto 9.1.5. When the conversion is finished I can see the new library, it works allright. And with packet-inspection (or how is that called in English) all maps & data seems to be OK; I can check the seperate pics.
    But: iPhoto won't start up a second time (grey screen with infinite spinning wait cursor). The same thing is happening when I add a new library and drop in some pictures.
    What can cause this problem?

    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
    Regards
    TD

  • Where does the data get saved from (notepad) or Notes on Windows Mobile 5?

    Where does the data get saved from (notepad) or Notes on Windows Mobile 5?
    (ON the Phone)  Sticky note like program WM5
    I ask because I synced my Blackjack 1 to my pc after about a year and MANY notes later, All the notes from the PC remained but ALL new notes on phone (a years worth) were deleted from the phone.
    I would like to attempt a data recovery on my mobile device- that was an insane endeavor but i got it to work now i just need to know what to look for (what type of files to recover) and or where to recover from?
    I did make the phone a drive already and have data recovery software that can pull deleted files from the phone in fat or raw data format.
    Thanks.

    Hi,
    I think this is not the best forum for your question. This forum is for Microsoft Exchange Server's mobile connectivity issues.
    Regards,
    Zoltán
    http://www.clamagent.org - Free Antivirus for Exchange
    http://www.it-pro.hu
    http://emaildetektiv.hu

  • Can the case be changed while uploading the data or after uploading ????

    hi all ,
    can u pls help me ???  can the case of the data in a itab be changed while running the program? the data is uploaded to an internal table and then based on loop at that itab the conditions will evaluate to give the result.... but the problem is like wen the data is given in small letters the worste(last)  condition is executing even the data satisfies the condtion which is not supposed to happen. this is due to case sensitive problem ...can u pls help me ....can the case be changed while uploading the data r after uploading ????

    this is the itab declaration ..
    data: begin of it_input occurs 0 ,
           tra          like tstc-tcode,
         end of it_input.
    and then from the uploaded data the prog should check wheather it is having any userexits or not ...
    here comes the code...
    sort it_input by tra.
    delete adjacent duplicates from it_input  .
    loop at it_input.
               it_itab-sno = sy-tabix.
      select single * from tstc where tcode eq it_input-tra.
    if sy-subrc eq 0.
        select single devclass from tadir into v_devclass
                 where pgmid = 'R3TR'
                        and object = 'PROG'
                        and obj_name = tstc-pgmna.
             if sy-subrc ne 0.
             select single * from trdir where name = tstc-pgmna.
             if trdir-subc eq 'F'.
                select single * from tfdir where pname = tstc-pgmna.
                select single * from enlfdir where funcname =
                tfdir-funcname.
                select single * from tadir where pgmid = 'R3TR'
                                   and object = 'FUGR'
                                   and obj_name eq enlfdir-area.
             move : tadir-devclass to v_devclass.
              endif.
           endif.
           select * from tadir into table jtab
                         where pgmid = 'R3TR'
                           and object = 'SMOD'
                           and devclass = v_devclass.
           if sy-subrc = 0.
            select single * from tstct where sprsl eq sy-langu and
                                            tcode eq it_input-tra.
                      if not jtab[] is initial.
               loop at jtab.
                    select single modtext from modsapt  into str
                         where sprsl = sy-langu and
                                name = jtab-obj_name.
                    it_itab-tra        = it_input-tra.
                    it_itab-i_obj_name = jtab-obj_name.
                    it_itab-i_modtext = str.
                    append it_itab.
                    str = ''.
               endloop.
              endif.
            else.
                    it_itab-tra        = it_input-tra .
                    it_itab-i_obj_name = ' '.
                    it_itab-i_modtext = 'No user Exit exists'.
                     append it_itab.
            endif.
          else.
                    it_itab-tra        = it_input-tra .
                    it_itab-i_obj_name = ' '.
                    it_itab-i_modtext = 'Transaction Code Does Not Exist'.
                     append it_itab.
          endif.
    endloop.

  • Meta dates in AlbumData.xml (date problems after upgrade)

    HI folk,
    Further to my post earlier today about the date mashup after upgrading, I was wondering if a [careful!] edit of the AlbumData.xml file might help.
    If I knew what these fields meant I might be able to work out what to do...
    <key>DateAsTimerInterval</key>
    <real>9850139.000000</real>
    <key>ModDateAsTimerInterval</key>
    <real>206299947.507982</real>
    <key>MetaModDateAsTimerInterval</key>
    <real>206299831.664670</real>
    Which one (if any of these) does iPhoto use when deciding what order to display the photos in? And what are the numbers? Seconds since 1984? Picoseconds since the Woz left the company? Curious minds want to know.
    And yes, I'd use a backup for experimentation.
    Rob

    Rob,
    That timestamp is probably based on the [Unix Epoch|http://en.wikipedia.org/wiki/Unix_time], the basis for almost all time stamps in programs based on Unix and/or the C programming language. If those dates are in fact based on the Unix epoch, they are based on the number of seconds since Jan1, 1970.
    Sometimes such dates are represented as integers (like DateAsTimerInterval seems to be) and sometimes they are represented as floating point numbers (like the other two) in an attempt to circumvent the Year 2038 problem.
    You may find this useful: [http://www.unixtimestamp.com>
    Personally, I would love to find out how your experimentation goes - what fails and what works; if you have to go through any hoops to get iPhoto to recognize your changes; if exporting a photo changes its EXIF timestamps after you play with the XML file, etc.
    nathan

  • Suppress the enter-query mode when no-data-found after execute a query.

    HI,
    Greetings of the day, Can any one suggest me that how to Suppress the enter-query mode when no-data-found after execute a query on the form by a button.
    whenever i execute query on form and result is no data found then form :system.mode is still in enter-query mode.
    i want that if result is no data found then form comes back it initial state.
    i will thank full of him who will help me..
    Thanks in Advance..

    Put this in your Key-ExeQry trigger:Execute_Query;
    If Get_block_property(:System.current_block,query_hits)=0 then
      Exit_form; --this cancels the Enter-Query mode; Does not exit the form.
    End if;You may want to trap and prevent the "FRM-40353: Query cancelled" message, and change the "FRM-40301: Query caused no records to be retrieved. Re-Enter" message. To do that, you need an On-Message form-level trigger:Declare
      Msg_Code Number        := MESSAGE_CODE;
      MSG      Varchar2(150) := SUBSTR('   '||MESSAGE_TYPE||'-'
                             ||TO_CHAR(Msg_Code)||': '||MESSAGE_TEXT,1,150);
    BEGIN
      If Msg_Code=40301 then
           -- 40301: Query caused no records to be retrieved. Re-Enter
        Message('  NO RECORDS FOUND',No_acknowledge);
      Elsif Msg_Code=40353 then -- Query cancelled.
        null;
      Else
        MESSAGE(MSG,NO_ACKNOWLEDGE);
      End if;
    End;

Maybe you are looking for

  • How to delete a script/Automator thing I can't find?

    So a while ago I was trying to resize a big batch of images to make them all the same size, and I did this using Automator (I think) and tutorials online. I believe I made a workflow called "Batch Resize" that was supposed to resize a folder of image

  • Mv control files, redo.log, database fies

    Hello, I installed Oracle 10.2. on Unix. we have created file systems for our data/control files. some how we missed that part to define location for dbf, control & redo.log files during installation. My question is how to mv all control files, redo.

  • Facebook Like box code for Muse

    I need to know how to add a Facebook Like box to my Muse home page. When obtaining this code, there are two items of code to paste: 1. Include the JavaScript SDK on your page once, ideally right after the opening <body> tag. <div id="fb-root"></div>

  • ACE 4710 bundle license backup

    Hello, Is it possible to backup ACE appliance licenses if product is bought as a bundle? ACE-4710-BAS-SK-K9 Promo Bundle - ACE 4710 HW-1Gbps-1K SSL-100MbpsComp-5VC Following is mentioned in the ACE documentation: "If you need to replace the ACE, you

  • How do I install on 10.3.9?

    I have been trying to install AppleWorks 6.2.9 on my wife's Mac that is running 10.3.9. The application starts, gets to the end and tells me I do not have enough privileges to complete the application. But it doesn't ask for me to enter any password.