Trigger parse in 10g

Hi,
Some time ago I've read the sentence above,
"The SQL you code in packages and procedures will be cached for your entire session, thus reducing the number of parse calls. The SQL inside a trigger is cached only for the duration of the triggering statement, causing additional soft parses whenever the trigger is executed."
What I want to know is if the described trigger's behavior is valid for Enterprise Server 10g.
Thank you all in advance.
Best regards,
Carla Almeida

You can easy check it using Tom Kyte's example:
http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:7507706875149
in 10G:
SQL> create table t ( x int );
&nbsp
Table created.
&nbsp
SQL> create or replace procedure p
  2  as
  3            l_cnt int;
  4  begin
  5           select count(*) into l_cnt from dual IN_PROCEDURE;
  6  end;
  7  /
&nbsp
Procedure created.
&nbsp
SQL> create or replace trigger t_trigger
  2  before insert on t for each row
  3  declare
  4            l_cnt number;
  5  begin
  6           select count(*) into l_cnt from dual IN_TRIGGER;
  7            p;
  8  end;
  9  /
&nbsp
Trigger created.
&nbsp
SQL> alter session set sql_trace=true;
&nbsp
Session altered.
&nbsp
SQL> insert into t values(1);
&nbsp
1 row created.
&nbsp
SQL> /
&nbsp
1 row created.
&nbsp
SQL> /
&nbsp
1 row created.
&nbsp
SQL> /
&nbsp
1 row created.
&nbsp
SQL> /
&nbsp
1 row created.
&nbsp
SQL> /
&nbsp
1 row created.
&nbsp
SQL> alter session set sql_trace=false;
&nbsp
Session altered.
&nbspAnd in trace file using tkprof we find:
SELECT COUNT(*)
FROM
DUAL IN_TRIGGER
&nbsp
&nbsp
call     count       cpu    elapsed       disk      query    current        rows
Parse        6      0.00       0.00          0          0          0           0
Execute      6      0.00       0.00          0          0          0           0
Fetch        6      0.00       0.00          0          0          0           6
total       18      0.00       0.00          0          0          0           6
&nbsp
SELECT COUNT(*)
FROM
DUAL IN_PROCEDURE
&nbsp
&nbsp
call     count       cpu    elapsed       disk      query    current        rows
Parse        1      0.00       0.00          0          0          0           0
Execute      6      0.00       0.00          0          0          0           0
Fetch        6      0.01       0.00          0          0          0           6
total       13      0.01       0.00          0          0          0           6Rgds.

Similar Messages

  • Need Urgent Help with trigger in Oracle 10g

    Hello frd,
    I am working on my DBMS Project in VB 6.0 that is Tollbooth management system
    i have to insert one trigger for my project so i had decided to insert time trigger.
    I have total 3 table UserLogin, Vehice and Vehicle_Data
    the 3rd table Vehicle data contain the following fields
    Vehicle_Type, Vehicle_No, Tax_Time, Source, Destination and Tax
    Now i had done coding for tax when you select Vehicle Type, Source and Destination the Tax Field will automatically fillup and all the data will Saved in Oracle table but now my problem is that i want to create trigger for Tax_Time column When any new data inserted current time will stored in that column
    I had create one but it gives error
    create trigger time after insert on vehicle_Data
    for each row
    begin
    insert into Vehicle_Data(Tax_Time) values(to_char(sysdate, 'HH:MI:SSAM DD_MON_YYYY'));
    end;
    Note: I am Using VB 6.0 and Oracle 10g Express Edition

    I had create one but it gives errorWelcome to the forum and many many thanks for not posting the full error message, that is really helpful, since we're all a 100% sure what's going on now (yes, that was ironic ;) ).
    Let me guess: a mutating table error?
    Read:
    http://www.oracle-base.com/articles/9i/MutatingTableExceptions.php
    http://asktom.oracle.com/pls/asktom/ASKTOM.download_file?p_file=6551198119097816936
    But before that, actually you should read:
    http://tkyte.blogspot.com/2005/06/how-to-ask-questions.html

  • Error in trigger, pls help,10g,xp

    Please help me out from the following err in trigger
    Solved
    Thank you
    Edited by: Smile on Feb 19, 2013 2:15 AM                                                                                                                                                                                                                                                           

    83  exception
    84  when others then
    85  dbms_output.put_line('error');
    86  end;The most dangerous code one could write. Must be removed immediately
    http://tkyte.blogspot.com/2007/03/dreaded-others-then-null-strikes-again.html
    Message was edited by:
    karthick_arp

  • How can i implement a doppel click im form 10g?

    Hi all,
    i want to implement a doppel click in my trigger in form 10g, because, wenn i start my form, it appears correctly on the canvas, but it disappears directly when i click the canvas when my mouse. it reappears when i doppelclik on the canvas.
    Have you any ideas how i can resolve this problem?
    thanks in advance for the answers.
    have a nice Weekend.

         I 'd like to play a soend wave file _ say when press a button package sound;
    import oracle.forms.ui.VButton;
    import java.applet.AudioClip;
    import java.applet.Applet;
    import java.net.URL;
    import oracle.forms.properties.ID;
    public class sound extends VButton
    public final static ID PLAY = ID.registerProperty("PLAY");
    public String sou_loc = "FILE:///C:\EAM_original.wav" ;
    public sound()
    public boolean setProperty(ID p0, Object p1)
    if (p0==PLAY)
    { try
    sou_loc = p1.toString();
    URL sou = new URL(sou_loc);
    AudioClip clip = Applet.newAudioClip(sou);
    clip.play();
    } catch (Exception ex)
    {ex.printStackTrace();}
    return super.setProperty(p0, p1);
    }

  • Logon built-in freeze in 10g release 2

    Hi,
    When I make a new logon in the when-new-form-instance trigger on Oracle 10g release2, my application froze.
    When I started my application like this: R090101.fmx&userid=test/test@test
    the connection was made and just after that I make a logon like this : logon('user','pwd@cnt', false) in the when-new-form-instance trigger and it didn't work, the application froze.
    This did not happened on Oracle 10g 9.0.4.
    Can anybody help me?
    Thanks a lot.
    Message was edited by:
    laflsam

    try this:
    ON-LOGON - trigger :
    NULL;

  • Pl/sql block on block trigger

    I have a pl/sql block in when-new-block-instance trigger on forms 10g.
    Basically, these trigger fires after user selection of the search criteria block.
    Exist one condition which is totaly important:
    One of the search criteria is a list of document type. So the user, can check one, all or none of the doc types.
    See this pictures:
    doc type options: TRRLS, ADS, SIQD
    If the user check only the TRRLS, the next block will display only the record match the doc type selected. If the user check none doc type, all the record will be displayed.
    For those purpose, in the trigger I talk before (when new block instance) in the results block, I use two cursors, one for all the record (if the user check none doc type). And the other cursor for the records with specific doc type.
    The first one works just fine, but the second one, do nothing. Part of the where in the cursor is the following:
    where ........... and
    dim.doc:typ IN (:global.doc_typ_where_clasue) and
    The value of the :global.doc_typ_where:clause is the list of all the doc type selected by the user. In example, if the user check TRRLS and ADS, the global variable will have 'TRRLS', 'ADS'.
    But it doesn't work..... I don't know why....
    Any idea to pass a list of doc to a cursor and use in a where clause dynamically.
    thanks a lot,
    abdel.

    If you search for "dynamic in list" on http://asktom.oracle.com/ you'll find a solution to exactly the same problem you're facing. The solution is:
    1. Strip the string into an array
    2. Use the array in the where clause.
    But maybe you can also create your own where clause and use that one by setting set_block_property( <block>, onetime_where, <where clause>)
    HTH
    Roel

  • Missing in or out parameter at index:: 1 when attempting to save a trigger

    Hi there,
    I am trying to make modifications to a trigger on a 10g database in Enterprise Manager. The trigger is compiled and valid, but if I make any changes to it at all, I get the error above.

    Welcome to the forum!
    Why don't you create the trigger with another tool, like SQL*Plus instead of Enterprise Manager? See if that works for you. If it don't copy and paste the full code with the exceptions here in tags (lowercase inside curly brackets)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • FIXML Support in Oracle 10g

    Does Oracle support FIXML Schema handling / Parsing in 10g ?.

    If the following link information is correct, then it appears the xml is wrapped in the FIXML which is defined by the DTD or xmlschema.
    file:///C:/Documents%20and%20Settings/godlewsm.GODLEWSM-SVR/Local%20Settings/Temporary%20Internet%20Files/Content.IE5/S69LGP64/293,35,FIXML: Example Syntax
    If you can register your schema then you should be able to load in the instance documents.

  • HOW TO Call REPORT from FORM usning a Button ?

    Hi All,
    Please Help me and Help other Beginers in this :
    Hot to call a report from a form using WHEN_BUTTON_PRESSED trigger (using Oracle 10g R1)
    Should i save the report as .rdf or .jsp ?
    Should i save the report in a specific path ?
    Should i add the path to the REPORTS_PATH in the registery ?
    What about the Report Server ? should i install it first ?
    What about the report properties ? what should i change ?
    Please Help with Steps to make this sample report with the most important thing which is the PLSQL code we will type in the WHEN_BUTTON_PRESSED trigger.
    Regards,
    PS. i tried to search in the forum .. but u can imagine how hard it is to look within Messages: 164,066 - Threads: 46,773 - Pages: 3,119 :)

    Hi there,
    Most of the things do not come for free. You need to spend some effort in order to obtain results.
    Check run_product, run_report_object built-in.
    Also, download the documentation library and go through:
    http://www.oracle.com/technology/documentation/devsuite.html
    The example of how to use the run_product directly from the book "Oracle Forms Developer Form Builder Reference, Volume 1 - Release 6i.pdf":
    RUN_PRODUCT examples
    ** Built-in: RUN_PRODUCT
    ** Example: Call a Report Builder report, passing the
    ** data in record group ’EMP_RECS’ to substitute
    ** for the report’s query named ’EMP_QUERY’.
    ** Presumes the Emp_Recs record group already
    ** exists and has the same column/data type
    ** structure as the report’s Emp_Query query.
    PROCEDURE Run_Emp_Report IS
    pl_id ParamList;
    BEGIN
    ** Check to see if the ’tmpdata’ parameter list exists.
    349
    pl_id := Get_Parameter_List(’tmpdata’);
    ** If it does, then delete it before we create it again in
    ** case it contains parameters that are not useful for our
    ** purposes here.
    IF NOT Id_Null(pl_id) THEN
    Destroy_Parameter_List( pl_id );
    END IF;
    ** Create the ’tmpdata’ parameter list afresh.
    pl_id := Create_Parameter_List(’tmpdata’);
    ** Add a data parameter to this parameter list that will
    ** establish the relationship between the named query
    ** ’EMP_QUERY’ in the report, and the record group named
    ** ’EMP_RECS’ in the form.
    Add_Parameter(pl_id,’EMP_QUERY’,DATA_PARAMETER,’EMP_RECS’);
    **Pass a Parameter into PARAMFORM so that a parameter dialog
    will not appear
    **for the parameters being passing in.
    Add_Parameter(pl_id, ’PARAMFORM’, TEXT_PARAMETER, ’NO’);
    ** Run the report synchronously, passing the parameter list
    Run_Product(REPORTS, ’empreport’, SYNCHRONOUS, RUNTIME,
    FILESYSTEM, pl_id, NULL);
    END;
    Hope it helps,
    Michael

  • Timer in developer 10.1.2.0.2

    hi all
    i just want to ask about TIMER and WHEN-TIMER-EXPIRED trigger in developer 10g R2, is still ok to use it, i mean it will cause a lot of deficiency for the network traffic, if not advaicable to use it , what is the replacement
    best regards
    Ash

    developer 10g R2 meaning Oracle Forms, or? If I were you, I definitely would have posted this question in the Forms forum for fast and better responses.
    Anyhow, you can still use Timers but be careful not setting them to fire too often. Just think what would happend if you had a trigger fireing 1000 times per second with 1000 users.
    Still, please direct this question to the Forms forum.
    Forms
    Regards,
    Martin

  • How to trap No_Data_Found error?

    I know how to trap this error in a back-end script:
    BEGIN
    select empno
    into v_empno
    where empno = 9999999; --no such employee
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    However when I use this approach within a trigger in Form 10g, it fails me. I've experimented with DBMS_ERROR_CODE, but so far got nowhere. Can same approach be used in Forms as I'm using above? If not, how should I approach it?
    Thanks a lot!

    You should write something like this......
    declare
      v_empno emp.empno%type;
      begin
          begin
              select empno into v_empno
                       from emp
                       where empno=99999;
              exception
                   when no_data_found
                      then
                          message('no employee found');
          end;
          <any other code >
      end;Greetings...
    Sim

  • Facing Parse Errors after upgrading database from 10g to 11g

    Hi,
    We are facing parse errors in the SQL's after upgrading database from 10g to 11g.
    Kindly look into below parse errors.
    ********************************** Parse Error *****************************************************
    Tue Aug 13 14:13:08 2013
    kksSetBindType 16173533-2: parse err=1446 hd=3c73061fb8 flg=100476 cisid=173 sid=173 ciuid=173 uid=173
    PARSE ERROR: ospid=15598, error=1446 for statement:
    SELECT ROWID,ORGANIZATION_CODE,PADDED_CONCATENATED_SEGMENTS,PRIMARY_UOM_CODE,REVISION,SUBINVENTORY_CODE,TOTAL_QOH,NET,RSV,ATP,ORGANIZATION_NAME,ITEM_DESCRIPTION,INVENTORY_ITEM_ID,ORGANIZATION_ID,LOCATOR_ID,LOCATOR_TYPE,ITEM_LOCATOR_CONTROL,ITEM_LOT_CONTROL,ITEM_SERIAL_CONTROL FROM MTL_ONHAND_LOCATOR_V WHERE (INVENTORY_ITEM_ID=:1) and (ORGANIZATION_ID=:2) order by ORGANIZATION_CODE,SUBINVENTORY_CODE,REVISION, organization_code, padded_concatenated_segments
    Tue Aug 13 14:13:10 2013
    kksfbc 16173533: parse err=942 hd=3c387c4028 flg=20 cisid=3266 sid=3266 ciuid=3266 uid=3266
    PARSE ERROR: ospid=29813, error=942 for statement:
    Select feature from toad.toad_restrictions where user_name=USER or user_name in ( select ROLE from sys.session_roles)
    kksfbc 16173533: parse err=942 hd=3c97d83648 flg=20 cisid=3266 sid=3266 ciuid=3266 uid=3266
    PARSE ERROR: ospid=29813, error=942 for statement:
    SELECT password
    FROM SYS.USER$
    WHERE  0=1
    kksfbc 16173533: parse err=6550 hd=35185e4278 flg=20 cisid=3266 sid=3266 ciuid=3266 uid=3266
    ----- PL/SQL Stack -----
    ----- PL/SQL Call Stack -----
      object      line  object
      handle    number  name
    319e277050        30  anonymous block
    319e277050        57  anonymous block
    PARSE ERROR: ospid=29813, error=6550 for statement:
    BEGIN sys.dbms_profiler."146775420110782746251362632012"; END;
    kksfbc 16173533: parse err=942 hd=3c142d8600 flg=20 cisid=3266 sid=3266 ciuid=3266 uid=3266
    ----- PL/SQL Stack -----
    ----- PL/SQL Call Stack -----
      object      line  object
      handle    number  name
    319e277050        67  anonymous block
    PARSE ERROR: ospid=29813, error=942 for statement:
    SELECT 1 FROM plsql_profiler_data WHERE 0 = 1
    Please help.
    Regards
    Suresh

    Hi Suresh,
    Apologies for misunderstanding..
    Tue Aug 13 14:13:08 2013
    kksSetBindType 16173533-2: parse err=1446 hd=3c73061fb8 flg=100476 cisid=173 sid=173 ciuid=173 uid=173
    PARSE ERROR: ospid=15598, error=1446 for statement:
    SELECT ROWID,ORGANIZATION_CODE,PADDED_CONCATENATED_SEGMENTS,PRIMARY_UOM_CODE,REVISION,SUBINVENTORY_CODE,TOTAL_QOH,NET,RSV,ATP,ORGANIZATION_NAME,ITEM_DESCRIPTION,INVENTORY_ITEM_ID,ORGANIZATION_ID,LOCATOR_ID,LOCATOR_TYPE,ITEM_LOCATOR_CONTROL,ITEM_LOT_CONTROL,ITEM_SERIAL_CONTROL FROM MTL_ONHAND_LOCATOR_V WHERE (INVENTORY_ITEM_ID=:1) and (ORGANIZATION_ID=:2) order by ORGANIZATION_CODE,SUBINVENTORY_CODE,REVISION, organization_code, padded_concatenated_segments
    Assuming you see the above error message in the alert log file, which was your original post, follow the below steps:
    1 Get the 'ospid' value from the error
    2. Issue the below command:
    SQL> select request_id,ORACLE_PROCESS_ID
      2 from fnd_concurrent_requests
      3 where request_id = 15598;
    3. After obtaining the request_id
    4, Query it from the front-end using SYSADMIN responsibility
    Hopefully this should get you the respective concurrent report/program.
    Thanks &
    Best Regards,

  • Unable to parse WSDL of partnerlink after migrating from 10g to 11g

    Hi,
    My service is an Sync BPEL process calling a customised WSDL with the partnerlink. I migrated the working code of 10g to 11g. But compiling below is the error i am getting while trying to parse the WSDL of the partnerlink after migration.
    ==========================================
    java.lang.RuntimeException: oracle.tip.tools.ide.pm.modules.sca.util.SCAException: SCA_COMPONENT_NAME_NOT_DEFINEDProcessInteraction_v1
         at oracle.tip.tools.ide.pm.modules.sca.ide.JDevScaProcessListener.modelChanged(JDevScaProcessListener.java:78)
         at oracle.tip.tools.ide.common.bpelparser.implementations.xmlef.ProcessImpl.fireModelChanged(ProcessImpl.java:130)
         at oracle.tip.tools.ide.pm.bpelgraph.editors.partnerlink.PartnerLinkEditPage.firePartnerLinkCreated(PartnerLinkEditPage.java:1426)
         at oracle.tip.tools.ide.pm.bpelgraph.editors.partnerlink.PartnerLinkEditPage.saveToModel(PartnerLinkEditPage.java:360)
         at oracle.tip.tools.ide.pm.bpelgraph.editors.partnerlink.PartnerLinkEditPage.saveChanges(PartnerLinkEditPage.java:224)
         at oracle.tip.tools.ide.pm.bpelgraph.views.nodeeditors.AbstractActivityNodeEditor$PanelManager.saveChanges(AbstractActivityNodeEditor.java:224)
         at oracle.tip.tools.ide.pm.bpelgraph.views.nodeeditors.ApplyCancelPanel.handleOK(ApplyCancelPanel.java:268)
         at oracle.tip.tools.ide.pm.bpelgraph.views.nodeeditors.ApplyCancelPanel.actionPerformed(ApplyCancelPanel.java:339)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
         at java.awt.Component.processMouseEvent(Component.java:6263)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
         at java.awt.Component.processEvent(Component.java:6028)
         at java.awt.Container.processEvent(Container.java:2041)
         at java.awt.Component.dispatchEventImpl(Component.java:4630)
         at java.awt.Container.dispatchEventImpl(Container.java:2099)
         at java.awt.Component.dispatchEvent(Component.java:4460)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
         at java.awt.Container.dispatchEventImpl(Container.java:2085)
         at java.awt.Window.dispatchEventImpl(Window.java:2475)
         at java.awt.Component.dispatchEvent(Component.java:4460)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:178)
         at java.awt.Dialog$1.run(Dialog.java:1045)
         at java.awt.Dialog$3.run(Dialog.java:1097)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.awt.Dialog.show(Dialog.java:1095)
         at java.awt.Component.show(Component.java:1563)
         at java.awt.Component.setVisible(Component.java:1515)
         at java.awt.Window.setVisible(Window.java:841)
         at java.awt.Dialog.setVisible(Dialog.java:985)
         at oracle.tip.tools.ide.common.graph.view.GraphPane.startEditing(GraphPane.java:1899)
         at oracle.tip.tools.ide.common.graph.view.GraphPane.startEditing(GraphPane.java:1830)
         at oracle.tip.tools.ide.common.graph.view.GraphPane.mousePressed(GraphPane.java:2186)
         at oracle.tip.tools.ide.pm.bpelgraph.views.BPELGraphPane.mousePressed(BPELGraphPane.java:2010)
         at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:262)
         at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:262)
         at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:262)
         at java.awt.Component.processMouseEvent(Component.java:6260)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
         at java.awt.Component.processEvent(Component.java:6028)
         at java.awt.Container.processEvent(Container.java:2041)
         at java.awt.Component.dispatchEventImpl(Component.java:4630)
         at java.awt.Container.dispatchEventImpl(Container.java:2099)
         at java.awt.Component.dispatchEvent(Component.java:4460)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4235)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
         at java.awt.Container.dispatchEventImpl(Container.java:2085)
         at java.awt.Window.dispatchEventImpl(Window.java:2475)
         at java.awt.Component.dispatchEvent(Component.java:4460)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    Caused by: oracle.tip.tools.ide.pm.modules.sca.util.SCAException: SCA_COMPONENT_NAME_NOT_DEFINEDProcessInteraction_v1
         at oracle.tip.tools.ide.pm.modules.sca.util.JDevSCAIntegrationUtil.validateNameDefined(JDevSCAIntegrationUtil.java:687)
         at oracle.tip.tools.ide.pm.modules.sca.util.JDevSCAIntegrationUtil.outboundParnerLinkCreated(JDevSCAIntegrationUtil.java:233)
         at oracle.tip.tools.ide.pm.modules.sca.ide.JDevScaProcessListener.createOutboundPartnerLink(JDevScaProcessListener.java:170)
         at oracle.tip.tools.ide.pm.modules.sca.ide.JDevScaProcessListener.modelChanged(JDevScaProcessListener.java:65)
         ... 64 more
    ======================================
    Can someone help me out!
    Thanks in advance:)

    Were you able to resolve this Issue, can you please post the solution
    글 수정: soauser

  • Can't see v$session in forms 10g trigger?

    Forms 9.0.4 against 10g database.
    I'm playing around with finding out who has a row locked so I can trap that annoying "could not reserve record" message that just generates calls to me from confused users.
    Anyway in the process of trying different things, I find that when I try to select from v$locked_object or v$session, in either a block level trigger, a program unit or even a library at compile time it fails with "identifier v$locked_object must be declared". It seems forms cannot see the view. I can select from this view just fine via SQL/Plus or Toad with the same ID.
    What gives!? I mean, if I have rights to select from the view why can't I get to it from forms?
    Gary

    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:4515126525609
    Are you sure you know who locked the record? I created a table and inserted some records. 2 were marked for deletion by 2 separate users and a third user also tried to delete one of those records. Then I ran the first query in the metalink article and couldn't differentiate between the 3 records except for username. The other columns in v$locked_record don't help either.
    On heavily used tables you're unlikely to be able to pick out a particular blocking session so you'll have to resort to telling the users that 'someone' is locking their record. So you'll still get the phone calls. The voodoo doll won't actually help but it might make you feel better about it. A healthy cynicism does the trick just as well.
    As for why forms won't compile, I can't help. I assume you are using the same logon credentials?

  • Parsing xml in 10g

    Hi,
    I want to parse a xml file by plsql procedure and use it by xmldom package.
    It working perfectly when I use oracle 9.2.05, but I can't use file greater than 10926 bytes when I use oracle 10.1.0.3 because this error stack appear.
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00200: could not convert from encoding UTF-8 to UCS2
    Error at line 630
    ORA-06512: at "XDB.DBMS_XMLDOM", line 4180
    ORA-06512: at "XDB.DBMS_XMLDOM", line 4205
    ORA-06512: at "WIPO.TESTXML", line 191
    ORA-06512: at line 1
    Code on line 191 is:
    nl := xmldom.getElementsByTagName(doc, '*');
    When I use file less than 10926 bytes then 10g working like 9i database.
    Can anybody know what's wrong?
    thanks
    Milan

    Hi,
    I want to parse a xml file by plsql procedure and use it by xmldom package.
    It working perfectly when I use oracle 9.2.05, but I can't use file greater than 10926 bytes when I use oracle 10.1.0.3 because this error stack appear.
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00200: could not convert from encoding UTF-8 to UCS2
    Error at line 630
    ORA-06512: at "XDB.DBMS_XMLDOM", line 4180
    ORA-06512: at "XDB.DBMS_XMLDOM", line 4205
    ORA-06512: at "WIPO.TESTXML", line 191
    ORA-06512: at line 1
    Code on line 191 is:
    nl := xmldom.getElementsByTagName(doc, '*');
    When I use file less than 10926 bytes then 10g working like 9i database.
    Can anybody know what's wrong?
    thanks
    Milan

Maybe you are looking for

  • IPhone 4s (6.1) gets message or whatsapp message, vibrates but doesn't display new message notification on screen

    As per title really. Whenever i get a text or whatsapp message my phone vibrates (sometimes twice as if i have two messages) but nothing is displayed on screen. This is ever since updating to 6.1

  • PO - GL Account Field - display only

    Hi, Please could you advise on the options for making G/L Account field display only in ME21n? I think there are probably a few ways of doing it which I am investigating, but would like your opinion and advice if possible. Thanks in advance. As alway

  • Multiple key simultaneous presses

    Dear people please does anyone know using the key.isDown handle how many simultaneous key presses Actionscript 2 can handle, I can't get it to recognise more than 3 simultaneous max.

  • Trouble adding epub and pdf files to Kobo Glo

    Hi there, I've recently downloaded some epub and pdf ebooks that I want to add to my kobo glo.  I'm using a macbook pro computer with OS 10.7.  I've searched online forums that tell me that I can just drag and drop pdf and epub files on to the KOBOer

  • ICal won't sync with Entourage anymore

    I started having trouble with this right after 10.5.2--duplicate events that needed conflict reconciliation. Today I noticed a number of meetings were being duplicated. Sync asked me to resolve conflicts, which I did globally in favor of Entourage. I