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?

Similar Messages

  • To see all sessions in OEM 10g DBConsole

    I 'm trying to see all sessions in OEM 10g DBConsole, but I didn't find where to see, I only can see the main sessions... is there a way to see all sessions in database?

    Hi,
    It is best to not compare the 9i OEM to the 10g Grid Control, while some of the features may have been incorporated, they are very different.

  • How can i use jpg extension with forms 10g and webutil

    I have a form with webutil and i want to open imege jpg extension but thier are Bmp but my
    image jpg and image item has no jpg extension .
    How can i use jpg extension with forms 10g and webutil ?

    You can use the JFIF image format for jpg files.

  • Can't see the icons on Forms Server

    Hi
    I have a little, but at the same time great for me.
    I can't see the icons on the Forms Server, and I have translated
    all Icons to Gifs.
    I need re-compile the forms to apply this changes?
    Where I have put the icons? (The correct path on the Alias of
    Apache)
    Thanks and best regards.
    Carlos Hernandez
    Barcelona

    Hi
    I just got my Apache web server running and added the images
    into a folder in the ORACLE_HOME\Apache\Apache folder. Then in
    the httpd.conf file look for where to add an Alias add in your
    Reports virtual path along with the directory and stop and start
    the apache web server then open the forms. Good luck
    -Nina

  • Monitor Sessions can't see most sessions?

    Symptom: Session Monitor nearly always displays “No text available” for a session’s current statement.
    Diagnosis:
    1.     I can’t see SQL for most sessions, even if I login as user SYS with the SYSDBA privilege.
    2.     Manual says:
    Monitor Sessions: Displays the status of one or more sessions, using information from the V$RSRC_SESSION_INFO view, which shows how the session has been affected by the Oracle Database Resource Manager.
    3.     When connected as system, I can select from the table Session Monitor uses, both on the server and via SQL Developer:
    SQL> select count(*) from V$RSRC_SESSION_INFO;
    50
    4.     In comparison, TOAD can display SQL for any user if I connect as user system . Run side by side, TOAD displays SQL for sessions that SQL Developer won’t display.

    Might be that TOAD displays the last executed statement rather than sqldev's current executing statement?
    K.

  • Applications missing from EAS and can't see designated HBR on forms in workspace

    Hi!
    Just finished patching our EPM system;
    11.1.2.1.600: Oracle Hyperion EPM Workspace, HSS and Planning, fusion edition.
    11.1.2.1.103: EAS
    After installing the patches the systems were up and running and everything was just fine until yesterday around noon, when suddenly all of our applications disappeared from EAS.
    At the same time HBR Associated to the different forms was\is nowhere to be seen (in Workspace) when opering the planning forms.
    If I try opening forms in planning (not via WS), I can see all of the HBR associated to the forms, run them and push data back to essbase.
    Regards, Tom L

    We are currently using approximately 25 applications. I can only see the server in EAS, but no apps.
    Also create application is greyed out so it would seem that I don't have the sufficient rights which would be strange due to
    the face that I've got admin rights.
    Regarding HBR we have no problems seeing and running HBR for our classic apps in planning. The problems with HBR is related to WS.
    Thx!

  • JSF / Struts - I can't see attributes of my form.

    Hi,
    i've a problem with JSF. I'm using struts in my projects and I need to use a JSF component. So, i integrated JSF & Struts using struts-faces.jar. I converted my jsp file and I succeeded to fill combos but when I submitted form I can't get attributes of my form in action. ( i can see but all of them are null)
    Anybody help me?
    <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="/WEB-INF/struts-faces.tld" prefix="s"%>
    <%@taglib uri="http://www.ibm.com/jsf/html_extended" prefix="hx"%>
    <%@taglib uri="http://www.ibm.com/jsf/rte" prefix="r"%>
    <script>
         function gonder() {
              if ( confirm('E-Postay&#305; göndermek istedi&#287;inizden emin misiniz?') ) {
                   document.forms[0].action = "/Admin/admin/testMail.do?method=kurumUygulamaGonder";
                   //alert("document.forms[0].elements['_id0:konu'].value : " + document.forms[0].elements['_id0:konu'].value);
                   document.forms[0].submit();
    </script>
    <f:view>
         <body>
         <hx:scriptCollector id="scriptCollector1">
              <s:form action="/admin/testMail" >
                   <jsp:include page="/common/header_center.jsp" />
                   <center>
                   <fieldset style="width: 80%">
                        <table border="0" align="center" id="oddEvenTable" width="98%">
                             <tbody>
                                  <tr class="listOddEven">
                                       <td><h:outputText value="Kurum" /></td>
                                       <td><br>
                                            <h:selectManyListbox styleClass="selectManyListbox"
                                       id="kurumlar" value="#{mailForm.kurumlar}" size="7">
                                       <f:selectItems
                                            value="#{selectitems.requestScope.kurumList.kurumAdi.kurumAdi.toArray}" id="selectItems0" />
                                  </h:selectManyListbox>
                                       </td>
                                       <td></td>
                                       <td><h:outputText value="Uygulama" /></td>
                                       <td>
                                            <h:selectManyListbox styleClass="selectManyListbox"
                                       id="uygulamalar" value="#{mailForm.uygulamalar}" size="7">
                                       <f:selectItems
                                            value="#{selectitems.requestScope.uygulamaList.uygulamaAdi.uygulamaAdi.toArray}"
                                            id="selectItems1" />
                                  </h:selectManyListbox>                         
                                       </td>
                                  </tr>
                                  <tr class="listOddEven">
                                       <td><h:outputText value="Konu" /></td>
                                       <td colspan="4"><h:inputText id="konu" size="118" value="#{mailForm.konu}"/></td>
                                  </tr>
                                  <tr class="listOddEven">
                                       <td><h:outputText value="&#304;çerik" /></td>
                                       <td align="center" colspan="4"><r:inputRichText width="702"
                                            height="352" id="content" value="#{mailForm.content}"></r:inputRichText>
                                       </td>
                                  </tr>
                                  <tr class="listOddEven">
                                       <td colspan="5" align="center" valign="middle">
                                       <hx:commandExButton
                                                 type="button" value="Gönder" styleClass="commandExButton"
                                                 id="btnKriterlereGoreAra" onclick="gonder()">
                                            </hx:commandExButton>
                                       </td>
                                  </tr>
                             </tbody>
                        </table>
                   </fieldset>
                   </center>
              </s:form>
    </f:view>

    Settings>Mail, Contacts, Calendars>Show
    http://i1224.photobucket.com/albums/ee374/Diavonex/382b7c7505f26ac775b54ce257655 5b4.jpg

  • Can't Import java class in form 10g

    Hi All,
    I have tried to call a web service from oracle form 10g
    so, I read your available document (How to call Web service from Form 10g)
    http://www.oracle.com/technology/obe/obe_as_10g/deploy/callws_fromforms/forms_webservice.htm#r1
    but when I've created a web service from WSDL file and I've deployed it to JAR file using Jdeveloper 10g (10.1.2.1.0).
    I tried to import it into form builder 10g but i have the error :
    java.lang.NoClassDefFoundError: oracle/jdeveloper/webservices/runtime/WrappedDocLiteralStub
    Please, can any body help me to solve this problem?

    Have you put the jar file in the classpaths??

  • How can i attach a file in Form 10g

    Hi all
    I have searched in otn about attaching a file in forms but no proper solution i got.
    Actually I want to attach a file in Forms 10G . How can I do that anyone can help me??
    Thanks

    Which one of the various solutions did you try, and what error did you get?
    http://www.google.com/search?q=send+email+attachment+oracle
    Note that when sending mails from the database the email attachment file needs to reside on the filesystem of the database (or any location the database server has access to).
    Did you configure your mailserver properly? Or do you want to send a E-Mail via a Mailprogram from the client? And last but not least: what database version on which platform do you use? Questions over questions...
    cheers

  • Where can i see all Tax /HR FORMS layout

    Hi everybody,
    I was going through the HR forms that undergone changes with the lates HRSP for year end.
    I could see some forms under SE71 but not all of them.
    EX: I could see
         1. HR_F_w2
         2. HR_F_941PR so on
        Could not see :
       1. HR_F_MMREF_1
       2. HR_F_MMREF_1_ME  so on.
    I am not sure if there is any other place for seeing HR Form layouts.
    Could some one help me out with this.
    Appreciate your help.
    Thanks
    Mamatha

    Hi All,
    At one point while i was going thru tax related stuff, i read that not all forms are shown directly in SE71. some forms are linked to the other forms. In that case we wont be able to see all of them under SE71.
    My question got answered.
    Closing this thread

  • Oracle Forms 10g Trigger help

    Dear Techies,
    I have a query in form triggers : when User enters a cost center and transaction year n go to lines a trigger should fire and query the existing transaction if it has the same cost center and transaction year. Please check the below detail explanation.
    Headers block : transaction no , cost center and transaction year
    Lines block : project no project code task and amount
    Example : Headers : cost center : 232428 Transaction Year : 2012 Transaction no : 0000111 (Sequence generator which will effect after we enter d lines and save the form)
    Lines : Project no : 455 Project code : xyz task : 788 Amount : 15500.
    I have saved the form with above details. Next time I reopened the form and entered the same cost center : 232428 Transaction Year : 2012 (Same as above transaction) and
    when i go to lines (click) a trigger should fire and query the existing transaction (0000111) since the transaction 0000111 has same cost center and year.
    Please help me how can i achieve this.
    Thanks and Regards,
    Lakshmi

    nani chowdary wrote:
    also this error : FRM : 40654: Record has been updated by another user. Requery to see the change.
    But no body is working on this form except me.After this post, i made a form and tested. There is no problem i get. i do it in a simple form of Scott schema. Here is the code
    declare
         b number;
    begin
         if :emp.empno is null then
              if :dept.deptno is not null then
                   select count(empno) into b
                   from emp
                   where emp.deptno=:dept.deptno;
                   if b>0 then
                        go_block('dept');
                        b:=:dept.deptno;
                        clear_block(no_commit);
                        set_block_property('dept',default_where,'deptno='||b);
                        execute_query;
                   end if;
              end if;
         end if;
    end;May be you have any other trigger which change the state of the form and caused this problem. Check that.
    Hope this helps
    Hamid

  • Run SQLPlus script from Forms 10g

    Hellou.
    In Forms 10g I am generating sql script which need to be run under sqlplus. It contains some selects and thay are spooled into file (It need to be like this) But generating this script is in the form and I need althoug call this script from form.
    So my question is> How can I call sqlplus commands uder forms 10g?? For exmaple like this:
    sqlplus: @ Report.sql or other??
    Thanks Zoffob

    Hello,
    If you know the syntax used on the DOS command line, put it "as is" in a Webutil Client_Host() built-in (see the documentation)
    Francois

  • Pivot table in forms 10g

    Hello All,
    I have seen Pivot table as one of the ocx control in forms 6i ...but in forms 10g ocx controls are not supported ..instead of that it is recommended to go for equivalent PJC ...i tried to find it out, but could'nt locate any ...
    Pls guide if some one knows some thing about this.
    I m new to forms 10g and Java.
    Pls help to get such PJC or show me some guide line.
    Thanks and Regards,
    Jinesh

    Hello all,
    I am in urgent need of this kind of solution ...some one pls guide me how can i achieve this functionality in forms 10g.
    hoping to get some help from forum.
    Regards,
    Jinesh

  • How to create business charts in Forms 10g?

    In the old days, before and in 8i, we can still create business charts using Graphics Builder with the following graph types. How can we build business charts in forms 10g?
    Column: Shows discrete values using vertical columns
    Bar: Shows discrete values using horizontal bars
    Gantt: Shows task or project scheduling information using horizontal bars
    High-Low: Shows multiple Y-axis values for each X-axis point
    Line: Shows data values as points connected by lines to show trends
    Mixed: Combines a column and line chart
    Pie: Shows how individual data values contribute to an overall total
    Scatter: Plots 2 sets of potentially related data to identify possible trends
    Table: Shows text data in a table
    Double-Y: Shows a column or line chart with multiple values for the same X-axis value

    On the samples page on OTN there is a piece on how to use BI beans to achieve business charts. Search for "BI bean Graphs in Forms".

  • PL/SQL engine in Forms 10g Release 2

    Hello,
    Can anyone tell me if in Forms 10g Release 2 I can use these?
    - Native dinamic SQL
    - Indexed arrays by VARCHAR2 instead of BINARY_INTEGER
    Thanks

    Hello,
    1. EXECUTE IMMEDIATE is as server side instruction, so it cannot be used within a Forms pl/sql block.
    2. Yes, Indexed arrays by VARCHAR2 work fine in 10gR2 ;o)
    Francois

Maybe you are looking for