V$SESSION + Forms Client + database

Hi all,
Why sometimes the "program" column in the V$SESSION is empty ? We use Forms R6i.
So how to make the column provided ? For example patch or something else.
Thank you very much indeed

I am sure this can help you
Re: Polutation column program in view v$session
Regards
P.s.
anyway for some Client(8.0) 'Program VAR' isn't populated
Time ago I found this:
select
   substr(s.username,1,18) username,
   substr(s.program,1,15) program,
   decode(s.command,
       0,'No Command',
       1,'Create Table',
       2,'Insert',
       3,'Select',
       6,'Update',
       7,'Delete',
       9,'Create Index',
      15,'Alter Table',
      21,'Create View',
      23,'Validate Index',
      35,'Alter Database',
      39,'Create Tablespace',
      41,'Drop Tablespace',
      40,'Alter Tablespace',
      53,'Drop User',
      62,'Analyze Table',
      63,'Analyze Index',
         s.command||': Other') command
from
   v$session     s,
   v$process     p,
   v$transaction t,
   v$rollstat    r,
   v$rollname    n
where s.paddr = p.addr
and   s.taddr = t.addr (+)
and   t.xidusn = r.usn (+)
and   r.usn = n.usn (+)
order by 1

Similar Messages

  • Notifying a forms client from the database

    I would like to notify a forms client of a certain things that happens in the database.
    I guess this could be done by having a timer polling a table at certain intervalls.
    I my case that solution is not good because I need a fast reaction (<2 sec) which would require the client to poll in a high frequency.
    Is there any way to do this?
    Could I somehow embedd a java client in the form window that the database could notify and that then notifies the form client or perhaps start a back ground process that could listen to events and the notify the client somehow.
    Any clues anyone?
    Carl Larsson

    Carl
    2 Seconds doesn't sound like a particularly excessive frequency for the polling method, but it would be best combined with DBMS_ALERT as suggested by Jiri rather than looking at a table. I have had an application live for the last two years using this method involving 14 clients polling at one second intervals and have had no performance implications. DBMS_ALERT.WAITONE has the ability to wait a specified time for a reply, but this should be set to zero, so control is returned immediately to the form and all waiting is handled by the timer.
    The Java method should in theory be more efficient if you have the knowledge to implement it (I don't !).

  • Forms Client Java Applet waiting several minutes

    Hello,
    We use Forms 10.1.2.0 and html/javascript/plsql applications.
    All forms applications are working but
    we have the problem that from time to time the client java applet must wait minutes until there is an answer from the forms-servlet (especially when there is high activity in the system).
    More than one user is working in the form with high activity - the applet sends a request
    over the network - after 4 minutes the result is shown and you can go on working
    without problems.
    So a lot of users think the application has crashed and terminate before.
    The applet shows no error messages.
    There is no sign that there is a lost connection between applet and servlet.
    It is not reproducible. That means you can work 2 hours and everything is ok
    or you work 5 minutes and you have to wait.
    network problems?
    firewall problems?
    do requests of the forms servlet to the database have minor priority on the application server
    than html/plsql requests?
    any ideas?

    when the problem occurs (user has to wait 3-4 minutes) we found in the log
    3 heartbeats from the forms client within 2 seconds ?
    after 3-4 minutes the forms client is ok (user can go on working)
    and the pings are every 2 minutes (like it is expected).
    The application.log file may contain duplicate posts requests with
    identical pragma header numbers, indicating that the client
    is resending
    requests due to network packet losses. Under normal circumstances,
    only the last Post request, terminating a Forms session,
    should contain
    a duplicate pragma header number.
    ...a network problem ?
    anyone else who had the same problem ?

  • KIMYONG : Forms Client Runaway 발생시 조치사항

    Purpose
    =========
    f60webmx 이 Runaway process 로 남아있을경우 불필요한 자원을 사용할수 있습니다. 이에 대한 조치사항을 기술하고자 합니다.
    Cause
    =======
    1. Forms client process (f60webmx ) database server process 와의 socket connection 이 끊겨서 발생하수 있습니다.
    2. 어떠한 database server process 도 현재의 Form Session과 연결되어 있지 않습니다.
    3. 오랫동안 inactive상태로 Forms client process가 과도한 CPU를 사용하고 있습니다.
    Solution
    =========
    Solution$ ps -ef|grep 20034
    appbgd1i 20034 18920 82 09:06 ? 07:51:57 f60webmx webfile=5,85970,p11ias1_10013_PBGD1I
    appbgd1i 21372 19679 0 18:38 pts/0 00:00:00 grep 20034
    1)
    Run strace on pid strace –p <pid>
    $ strace -p 20034
    Process 20034 attached - interrupt to quit
    read(47, 0xaffcc2e, 2064) = -1 EAGAIN (Resource temporarily unavailable)
    read(47, 0xaffcc2e, 2064) = -1 EAGAIN (Resource temporarily unavailable)
    read(47, 0xaffcc2e, 2064) = -1 EAGAIN (Resource temporarily unavailable)
    read(47, 0xaffcc2e, 2064) = -1 EAGAIN (Resource temporarily unavailable)
    read(47, 0xaffcc2e, 2064) = -1 EAGAIN (Resource temporarily unavailable)
    read(47, 0xaffcc2e, 2064) = -1 EAGAIN (Resource temporarily unavailable)
    read(47, 0xaffcc2e, 2064) = -1 EAGAIN (Resource temporarily unavailable)
    Note: Some times strace output will ECONN (Connection refused ) instead of EAGAIN ( Resource temporarily unavailable) in such situation also you can kill the process if you get output similar to above you can kill the process
    $ kill -9 20034
    2)
    Run following sql and when asks for CleintPId give forms runaway (f60webmx process pid)
    col program for a15
    col machine for a15
    col terminal for a15
    col sid for 9999
    col serial# for 9999999
    col action for a40
    set lines 152
    select s.sid, s.serial#, '*'||s.process||'*' Client,
    p.spid Server, s.sql_address, s.sql_hash_value,
    s.username, s.program || s.module, s.action, s.terminal,
    s.machine, s.status, s.last_call_et/3600
    from v$session s, v$process p
    where p.addr=s.paddr and s.sid=nvl('&sid',s.sid) and
    p.spid=nvl('&spid',p.spid) and
    nvl(s.process,-1) = nvl('&ClientPid',nvl(s.process,-1));
    If no rows are selected it means that there is no database server process which is serving the present forms process and thus we confirm that it is a runaway.
    3)
    Run above SQL for forms client process (f60webmx) and check for strace on the same process and if it does not give any output follow the present procedure
    Enter value for clientpid: 20034
    old 19: nvl(s.process,-1) = nvl('&ClientPid',nvl(s.process,-1))
    new 19: nvl(s.process,-1) = nvl('20034',nvl(s.process,-1))
    SID SERIAL# CLIENT SERVER SQL_ADDR SQL_HASH_VALUE USERNAME PROG_MODULE
    ACTION TERMINAL
    MACHINE STATUS S.LAST_CALL_ET/3600
    428 5701 *20034* 7660 62DB08BC 1053795750 APPS FNDSCSGN
    PO Manager, BITL p11ias1.beltong INACTIVE 8.76166667
    445 6179 *20034* 7660 00 0 APPS RCVRCVRC
    FRM::PO Manager, BITL p11ias1.beltong INACTIVE 8.75722222
    As per above update the forms runaway process has opened two database sessions 428 and 445. And we should always ignore the SID which has prog_module column as FNDSCSGN (here 428). Look for other sessions which are having status as INACTIVE. If they are INACTIVE for more than 8hrs (time can be conifirmed from callet/3600 column). If session is inactive for more than 8hrs , then you can kill the both sessions and and f60webmx process.
    "alter system kill session ‘SID,SERIAL#’;"
    We needs to check all form nodes for the following:
    · Is Developer 6i at least Developer Patchset 16 (3596539)
    · Set the forms applet heartBeat and FORMS60_TIMEOUT (Developer 6i) or FORMS90_TIMEOUT (Developer 9i) parameter:
    1) Create an environment variable in $APPL_TOP/admin/adovars.env using autoconfig customization tags (see http://metalink.oracle.com/metalink/plsql/ml2_documents.showNOT?p_id=182925.1#implement) called FORMS60_TIMEOUT (Forms 6i) or FORMS90_TIMEOUT (Forms 9i).
    This parameter specifies the amount of time in elapsed minutes before the Forms Server process is terminated when there is no client communication with the Forms Server. The internal default value is 15, and valid values are integers between 1 - 1440 minutes.
    Set FORMS60_TIMEOUT / FORMS90_TIMEOUT to a value of 5:
    · FORMS60_TIMEOUT=5 (or FORMS90_TIMEOUT=5)
    2) Set the forms applet heartBeat parameter:
    In the base html file, insert a new parameter called heartBeat. This parameter sets the frequency at which a client sends a packet to the server to indicate that it is still running. The default value is two minutes. Set this parameter value to greater than the value specified for the FORMS60_TIMEOUT variable, in this case 7 minutes is recommended:
    · <PARAM NAME="heartBeat" VALUE="7">
    Fullfillment Runaway Processes
    Reference
    ============
    Note 402166.1

  • WARNING - Oracle intends to desupport Forms client server mode

    When Forms 6i becomes desupported you will have to move to Forms 9i. Forms 9i runtime can only be run in web mode from a web browser. You will not be able to run client-server forms in native operating systems such as Windows or Unix. The forms will essentially run on the application server with Java applets to being sent to your web browser. Links to third party products will no longer work with host commands executing on your local machine. You will have to include Java code to make local commands work.
    The transition from Forms 6i client-server to Forms 9i web mode will be one of the most painful upgrades Oracle has ever inflicted on its customers.
    Essentially, Oracle is trying to palm us off with running forms from web browsers whether we or our customers like it or not. Java seems to be creeping in. I suspect Developer will eventually turn into JDeveloper, as they will not want to support two products. Easy one line statements and built-ins will be replaced by hundreds of lines of Java nonsense. Developer will move from a 4GL RAD environment to a cumbersome bloated 3GL Java environment.
    You can stop this happening if you want to keep you customers happy by:
    1. Sending Oracle enhancement requests to allow Forms 9i to run in native client-server mode.
    2. Complaining to your Oracle sales contact.
    3. Asking difficult questions at Oracle user groups.

    Duncan et al.,
    I've been wondering why exactly a Forms9i app. needs to run in a web page? Why could the applet not be deployed in a more "standalone" fashion, i.e., an independent application window. This would at least offer the appearance of a native application, complete with the new Java look-and-feel.
    If Oracle really wanted make their customers happy, they would then take the next step and come up with a way to embed OC4J into a client-side deployment executable, which would then effectively allow for a 2-tier client-server architecture.
    It seems to me that 2-tier/3-tier each have their place in the world, depending on the situation. In the extreme "2-tier" example would be an application that is to be deployed on a single client workstation. It would be hard to argue that a separate application server ought to be used. On the other extreme, anybody who has tried to manage the deployment--and upgrade--of a large number of Forms clients is very attracted to the prospect of only having to maintain and upgrade a few application servers.
    I agree with the direction of the product as far as replacing Toolkit2 and the native runtime with the JRE. The advantage of on-demand updating of application code is compelling. The capability of moving application logic to the middle tier is extremely useful. Platform independence is now done using the "universal" JRE instead of TK2.
    If the product could maintain the client-side processing capability--without resorting to Javabeans--it would be just that much stronger. As an application architect, I want to be able to design the application to allocate the work where it makes the most sense, either on the client, the application server, or the database server.
    How hard would it be to put this client-side processing capability back into the product?
    Regards,
    Bruce MacDonald

  • Configuration Manager Error - (-9986)Session to local database...

    Hello guys, I'm with a little problem.
    When I try to open the Configuration Manager in a Sprowler Server, and appears this error: (-9986)Session to local database could not be opened.
    But i try to resolve this problem at ODBC Connection (ODBC Data Source). But all connections is ok.
    I saw that some processes of distributor are oscillating(Distributor rclient). So I saw in distributor log this error:
    10:24:49 dis-nm ICM\ucce\Distributor node error checking health of process rtc.
      Last API Error [109]: The pipe has been ended.
    10:24:49 dis-nm Process rtc on ICM\ucce\Distributor is down after running for 0 seconds. It will restart after delaying 1 seconds for related operations to complete.
    But in SQL Server, the Named Pipes is enable, in second position. I disable the Firewall but no success.
    I don't able to open the Configuration Manager. Somebody can help me?
    Thanks.

    OK, very good.
    Just so I completely understand this ... On the Distributor AW, part of your Sprawler, can you use the Config Tool OK? If so, this means that the real-time feed is established to the Distributor and it can see the local database and so on.
    Is the rtdist process running?
    Now on the AW Client. Assuming  this is configured correctly, it connects to the Distributor. Check the rtdist process to see your client AW IP address connect. Do you see this?
    (I feel like we have discussed this before)
    Regards,
    Geoff

  • Limit session from client.

    Dear all,
    I want to limit session from application on each client to not over 2 sessions
    per clients.Is there anyway to limit session for each client on database level?
    Pls advice.
    Thanks for advance.
    Chara

    Hi, you can review the next documentation for more information.
    <br>
    <br><br>
    User Resource Limits and Profiles
    <br><br>Regards

  • V$SESSION 에서 PC CLIENT 확인하기

    제품 : ORACLE SERVER
    작성날짜 : 1998-05-06
    V$SESSION 에서 PC CLIENT 확인하기
    =================================
    PURPOSE
    다음은 V$SESSION 의 'OSUSER' Column 을 사용하여 Database 에 연결된 PC
    User 를 결정하는 Client PC를 Set up 하는 간단한 방법을 소개한다.
    단, USERNAME 은 PC User 에 의해 수정될 수 있으므로 충분히 믿을만한 방법은
    아니다.
    Explanation
    1. Client Setup
    Client PC 에서 ORACLE.INI File 을 open 하여, PC 를 식별할 Unique 한
    이름을 'USERNAME' Parameter 에 setting 한다.
    예) USERNAME = pcuser582
    SQL*Net V1 이나 V2를 통해 Server 에 Connection 하며,
    Parameter 는 SQLNET_USERNAME 이 아니라 USERNAME 으로 Setting 해야 한다.
    단, 위는 win31 16 Bit 용에 해당하는 내용이며, WIN95 32 Bit 용에서는
    Windows 로그온 user에 따라 즉 Registry 의 HKEY_USER 에 등록된 User 에
    따른다.
    2. Server 에서 User 확인하기
    DBA view V$SESSION 은 OSUSER column 에 Client User 에 대한 정보를
    갖고 있다.
    SELECT ALL SYS.V_$SESSION.OSUSER, SYS.V_$SESSION.USERNAME,
    SYS.V_$SESSION.TERMINAL, SYS.V_$SESSION.PROGRAM,
    SYS.V_$PROCESS.SPID SERVER_PID
    FROM SYS.V_$PROCESS, SYS.V_$SESSION
    WHERE SYS.V_$PROCESS.ADDR=SYS.V_$SESSION.PADDR;
    OUTPUT 예 :
    OSUSER USERNAME TERMINAL PROGRAM SERVER_PI
    rctest73 ? oracle@kr........ 8313
    rctest73 ? oracle@kr........ 1879
    rctest73 ? oracle@kr........ 8276
    rctest73 ? oracle@kr........ 8335
    rctest73 ? oracle@kr........ 5911
    esjo SCOTT Windows 95 OraPgm 2469
    changhc OEM15 CHANGHC VOD.EXE 2469
    kbpark KBPARK KBPARK F45DES32.EXE 2469
    rctest73 SCOTT ttyp1 sqlplus@kr... (TNS V1-V2) 10218
    rctest73 SCOTT ttyp1 sqlplus@kr... (TNS V1-V2) 26421
    rctest73 SYSTEM ttyqf sqlplus@kr... (TNS V1-V2) 11104
    3. Additional Views
    Oracle V7.2에서는 V$SESSION_CONNECT_INFO View 가 소개된다.
    위의 Query 와 Match 되는 OSUSER Column 이 있으며, SQL*Net Banner 를
    포함하고 있다.
    Example
    Reference Document
    ------------------

    Hi,
    Did anyone figured this out? I have exactly same problem.
    Redhat 5.3, Oracle 10.2.0.4.
    Running desc v$process, v$session_event, v$sysstat and a few others, no problem. Type "desc v$session" from a remote Linux client connection (sqlplus user/pass@dbname) hangs the session, ie no response, nothing comes back. The client is running on Windows 7 professional and there is a firewall between client and the server.
    Running the same desc on the local server, or another client (Windows 2008 machine) running on same n/w as Oracle db server i.e. no firewall runs fine.
    It only hangs on v$session and v$database. At least, those are the two I've found so far.
    Any suggestions? I already did a session trace and output is shown below:
    PARSING IN CURSOR #1 len=23 dep=1 uid=0 oct=3 lid=0 tim=1282079426155587 hv=4205271090 ad='9d2d4c80'
    SELECT * FROM V$SESSION
    END OF STMT
    PARSE #1:c=0,e=179,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=4,tim=1282079426155583
    WAIT #0: nam='SQL*Net message to client' ela= 2 driver id=1413697536 #bytes=1 p3=0 obj#=-1 tim=1282079426156226
    WAIT #0: nam='SQL*Net more data to client' ela= 38 driver id=1413697536 #bytes=2003 p3=0 obj#=-1 tim=1282079426156339
    WAIT #0: nam='SQL*Net more data to client' ela= 9 driver id=1413697536 #bytes=2001 p3=0 obj#=-1 tim=1282079426156390
    WAIT #0: nam='SQL*Net more data to client' ela= 5 driver id=1413697536 #bytes=1999 p3=0 obj#=-1 tim=1282079426156434
    WAIT #0: nam='SQL*Net more data to client' ela= 4 driver id=1413697536 #bytes=2002 p3=0 obj#=-1 tim=1282079426156476
    WAIT #0: nam='SQL*Net more data to client' ela= 5 driver id=1413697536 #bytes=2003 p3=0 obj#=-1 tim=1282079426156519
    WAIT #0: nam='SQL*Net more data to client' ela= 4 driver id=1413697536 #bytes=2001 p3=0 obj#=-1 tim=1282079426156562
    WAIT #0: nam='SQL*Net more data to client' ela= 4 driver id=1413697536 #bytes=2000 p3=0 obj#=-1 tim=1282079426156604
    Thanks,
    Paresh

  • Forms client-side pl/sql procdures run in DB or Forms server?

    Hi,
    Does anyone know where Forms client-side pl/sql procdures and pll actually run?
    We plan to convert forms application to web-based application. We want to take out and re-use only business logic in forms procdure/pll and still want to keep them in pl/sql language.
    Our first option is to put the business logic as pl/sql stored procedures in DB server. But my clients worry about the DB server performance. My clients think that forms procedures run in forms server and moving them into DB server will result in additinal workload in DB server.
    Every body says that the best place to execute pl/sql is
    in the database. However if Forms client-side pl/sql procdures run in Forms server, is my client right?
    If so, does anybody know how to make pl/sql procedure in a client-side PL/SQL package and call it from other language (Java or else)?
    Hyunsu Kim

    Forms PL/SQL will run in the Forms Server - if y want to share business logic accross multiple applications you could put it onto the database as you mention. You won't know if performace will be good or bad until you do some tests but its a pretty common scenario - and remember - what you MAY lose in terms of slower processing because of load, you will gain by eliminating network transfers between the Forms server and the database.
    Regards
    Grant Ronald
    Forms Product Management

  • TO REMOVE SESSION, FORMS TIME OUT

    Hi to All,
    our APPS DATABASE version is R12.1.1. i dono't want to put any Session & Forms timeout,can any one plz Helps me what r the Parameters to CHANGE in it
    iSYSTEMADMINISTRATION-->PROFILE-->

    Hi Nicolas;
    Thanks for moving issue here ;)
    @OP please see Hussein Sawwan's great post
    FORMS_TIMEOUT
    Regard
    Helios

  • Daily report for user sessions in oracle10g database

    I would like to genarate the daily report for user sessions in oracle10g database
    daily report of how many of sessions present in oracle database for each user

    Thanks for link ( I know you always post the oracle document link here)
    But I am expecting scripts( someting like logon trigger and logg off trigger) to genarate the user session report.

  • Swapping between client database and web database

    Hi i have completed tutorials etc so can now create the
    sqlite database for my application which is downloaded by the user
    and will run on thier desktop so i am calling it the "client
    database" which contains data they are working with but there is
    another database containing identical tables which i am calling the
    "global database" the idea of this is to transfer data between the
    different clients and backup that information.
    so i am looking for a tutorial or a sample app where the app
    takes information from a web based database and copy's that rob
    into a sqlite database on the clients machine?
    this is the main problem im having and seen people mentioning
    blaze DS and stuff like that, ideally i wouldn't like to use PHP
    but atm is looking like i may have to.
    i will sell my soul to anyone who can help with this lol
    (also i am using FLEX 3.0)

    Hi,
    Yes, if you use LCDS everything is there already for you, so
    that you can complete this application in very less time. Since you
    want to use PHP, you can use Zend PHP, which will support Remoting
    using AMF. Using Zend PHP, write PHP classes which will help you to
    synchronize data between server and client and just invoke those
    from your Flex application when required.
    Hope this helps.

  • Test web service proxy using EJB session bean client...

    Hello!
    I am following this blog /people/abdelmorhit.elrhazi/blog/2009/10/30/how-to-consume-an-inbound-backend-web-service-in-nwdsjboss-environment to create a EJB session bean client to access the web service proxy...
    The blog is not very clear. Where should I be deploying the web service proxy and the EJB session bean (web service client) ? on the PI 7.1 ?
    How to find out the URL for the wsdl ?
    Thanks

    > The blog is not very clear. Where should I be deploying the web service proxy and the EJB session bean (web service client) ? on the PI 7.1 ?
    "To deploy your web service proxy and session bean, right click on your JBoss server in the Servers view, and click on Add Remove Projects, add you ear file and click finish."
    You need a JBoss server.

  • Saving session state in database table rather in websever for Ordering App

    Hi all,
    Ours is a ordering application (telecomm) domain.
    Currently, we are storing user sessions data (Order shopping cart session data) in middle tier (iPlanet web server) which inturn consumes lot of memory resources.
    Shopping cart could be in MBs if order is a huge business order.
    So in order to not to overtax web server (middle tier), we are thinking of storing session data directly in a database table to relieve the overhead on web server and make use of database for storage.
    I read that APEX (html db) is already using this "single metadata table" approach for session data management. But we are not using HTML DB to really look into.
    Can some one advise how to go about storing "user session data" directly in a "database table" for both storage and retrieval purposes instead of storing it in "webserver".
    How does this "metadata table" structure looks like. Is it more generic ?
    Really appreciate your time and help/suggestions.

    Joel,
    Thanks for your response. sorry, i meant to say that "the current application does not use APEX but will look into it".
    To build this is an utterly non-trivial exercise. Oh - it may not be so hard to save session state to a table when you POST a page. But you may want to reference this in many places, and it's a question of can you change all of these references to indirect references from session state in your application.In order to free up the load on webserver, we want to maintain session management in database. Could you please explain the above little more :
    How do we maintain the "user session" with "database table" ?
    Do we need to store "session data" at java object level or by page in database table ? How does the structure of this "metadata table" looks like.
    Thanks for your time.

  • Saving a form in database

    Hi all,
    I am working on Forms 6i and i want to save the form into the database but i am not able to do it. What cases the problem ??
    Is there any method by which i can delete the already saved form in database?
    Can anyone also tell me where these forms are stored in the database and in what format??
    Thanks
    Rohit Taneja

    There are scripts for creating the Database tables in %oracle_home$\tools\DBTAB60 directory.
    See the Documentation in D2KDBTAB.PDF.
    You also have to set your preferences in the Form Builder to offer you the ability to save to the file system or the DB.

Maybe you are looking for