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

Similar Messages

  • 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.

  • 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

  • How to invalidate the client part of a HTTPS Session with client auth

    Hi to everybody here,
    I'm having an issue with HTTPS and client authentication related with how SSLHandshake works and the behavior of the client browser. I hope you can help.
    I'm setting up a web application that ask for a valid session in order to allow access to the application. If the user has no valid session, he's redirected to the login form, and if the auth process is ok, the user gets a session and is redirected again to the secured pages.
    We are in the way to create a new login service with client certificates, so the user identificates himself with a certificate valid on the application server.
    We have an application server with a secure listener in port 8443. It's configured to request client certificates so we can access to the certificate and validate it and create a session for the user automatically. The user just type his pin code in the browser, no passwords at all. This process is working and sessions are created. The problem comes up when we are trying to log the user out.
    We invalidate the session using a logout.jsp, but if the user goes to the secured pages again, we have observed that the authentication takes place automatically and the user can see the secured pages, so he thinks the logout.jsp doesn't work.
    My questions are: can we access to delete or modify the client browser ssl part in order to reset the https connection established against our application server? Are there any other ways to avoid this behavior?
    Thanks in advance.
    Miss.

    An enduser presents a certificate from a CAC for authentication to our website.
    They pick the Cert off the inserted CAC and submit it. Get logged into the application successfully.
    The user removes the card form the reader and the SSO session times out.
    In the same browser the user clicks log in with CAC and is not prompted for the cert this time the browser just goes ahead and presents the cached cert even though the card is no longer in the reader. The user logs in successfully.
    The desired behavior would be to prompt the user for for a cert again obviously.
    I am wondering how to turn this off as well.

  • Cisco AnyConnect Secured Mobility Client not saving the VPN url after disconnecting from session/restarting client

    Hello there.
    I am having a problem with Cisco AnyConnect version 3.1.04072. When one of my colleagues disconnects from the VPN session, closes out the program, and then later on, reopens the client, the address that he manually entered did not save and it's defaulting on the two now-defunct VPN servers listed.
    Here's an example to see if it makes more sense:
    -User opens Cisco AnyConnect. By default, there are two selections available on the pulldown:
    SSLVPN.abcdefg.com
    access.abcdefg.ca
    These two VPN servers are now defunct and we use a new VPN server:
    access.abcdefg.com
    The user has to manually type it in. He is now able to connect. However, when disconnected. Regardless if the program is closed or not, it does not save the new VPN server address, rather goes back to the default two VPN servers listed.
    I've checked XML, HTML, registry keys, sys files, dll files to see if I can change the default servers manually. No sign of it.
    I'm hoping that someone out there knows a solution to fix it.
    Thanks in advance!

    Hi Vergel ,
    You can create Anyconnect client profile on ASA. In this profile , you can define the hostname/IP that you wish to connect , along with hostname/IP that should be displayed on the client.
    In the client profile , you can define these parameters - "HostName" and "HostAddress" as "access.abcdefg.com" so that any user , who tries to connects , will see "access.abcdefg.com" as the name displayed in the anyconnect connect field.
    On the client, the xml profile (C:\ProgramData\Cisco\Cisco AnyConnect Secure Mobility Client\Profile) [Win 7] can be seen using those parameters as follows:-
            <HostEntry>
                <HostName>access.abcdefg.com</HostName>
                <HostAddress>access.abcdefg.com</HostAddress>
            </HostEntry>
    Ref:- http://www.cisco.com/c/en/us/td/docs/security/vpn_client/anyconnect/anyconnect30/administration/guide/anyconnectadmin30/ac03vpn.html#89103
    Additionally, you can try to delete preferences.xml file to remove the redundant hostnames from the anyconnect connect filed.
    Path for preferences.xml is C:\Users\Cisco\AppData\Local\Cisco\Cisco AnyConnect Secure Mobility Client (Win 7),
    Hope this helps.
    Regards,
    Dinesh Moudgil
    P.S. Please rate helpful posts.

  • Session Bean Client Hangs when one Server in Cluster Fails

    We are testing several failure scenarios and one has come up that concerns us.
    Some background: Were running a WLS6.1 cluster on two separate machines. We
    start a test client consisting of 50 active threads and let them start calling
    into a session bean. After a couple minutes we pull the network plug out of one
    of the machines to simulate an uncontrolled crash of the machine. Once the plug
    is pulled the clients hang and of more concern any new clients that we startup
    also hang. Has anyone successfully solved this problem?

    When we kill one of Weblogic instances in the cluster none of the clients fail.
    All of our clients fail-over to the remaining servers. It's pulling the network
    plug to our of the server that causes everything to hang. Not just or test client,
    but the other servers in the cluster hang. The control panel doesn't respond
    at all either. We currently have a support case open with BEA #348184 about this.
    We've gotten a prompt response in which we were asked to modify our configuration
    by deploying our beans to each individual server rather than the cluster. We
    did this, but the results so far have not changed.
    Thanks for the feedback,
    Howard.
    "Ade Barkah" <[email protected]> wrote:
    We haven't encountered something like that, so it could be a setup problem.
    Can you verify that the t3 url hostname the client threads use resolves
    to the
    ip addresses of each machine in the cluster? Are all machines in the
    cluster
    listening at the same port number? Also, does it matter if you kill one
    of the
    weblogic processes instead of pulling the plug? (i.e., if you leave the
    network
    layer up?)
    Check also that your threads aren't simply blocking each other when the
    server
    goes down? E.g. start multiple test client processes with one thread
    each just
    to test.
    What we notice is (with round-robin cluster policy), as we bring down
    one of
    the servers, the clients will continue to work on the second server,
    but will slow
    down between method invocations as they still attempt to connect to the
    downed
    server.
    After a short period of time (~30 seconds) the clients will fully switch
    to the
    second machine and processing continues at full speed again, until the
    downed
    machine is brought back up, at which point work is distributed evenly
    again.
    Also, when the first server is brought down, some of the clients may
    terminate
    with a PeerGoneException (or something similar to that.) So unless your
    threads
    are catching exceptions, they might terminate as well.
    regards,
    -Ade
    "howard spector" <[email protected]> wrote in message news:[email protected]...
    We are testing several failure scenarios and one has come up that concernsus.
    Some background: Were running a WLS6.1 cluster on two separate machines.We
    start a test client consisting of 50 active threads and let them startcalling
    into a session bean. After a couple minutes we pull the network plugout of one
    of the machines to simulate an uncontrolled crash of the machine. Once the plug
    is pulled the clients hang and of more concern any new clients thatwe startup
    also hang. Has anyone successfully solved this problem?

  • 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

  • How to run Session ejb client program?

    Hi
    I am using weblogic server8.1 . I was running an ejb session client program it throws exception like below. Can any one tell me how to run a client in weblogic server. give the syntax for running ejb client.
    D:\Weblogicserver\user_projects\domains\mydomain\applications\MyEJB\stateful>jav
    a -cp .;c:\j2ee\j2ee.jar;c:\weblogic\classes;D:\Weblogicserver\weblogic81\server
    \lib\weblogic.jar PortfolioClient
    Exception in thread "main" java.lang.NoClassDefFoundError: PortfolioClient (wron
    g name: stateful/PortfolioClient)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
    3)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
    bye

    If stateful is the package for the client application, you should be executing from
    D:\Weblogicserver\user_projects\domains\mydomain\applications\MyEJB
    on the command line. The command should look like -
    java -classpath <whatever should be here> stateful.MyClient

  • [SOLVED] Disconnecting session when client close browser's window or tab

    Hello,
    I'm looking for disconnect my database session and invalidate the session with the "onunload" af:document function. I think that is the same as the "onunload" in "body" html tag.
    I see some documentation about that, for example:
    http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/jsf/doc/tagdoc/core/document.html
    and I see that is enable to put an EL Expression, so I try with this:
    <f:view>
    <af:document binding="#{backing_user.document_user}" id="document_user" onunload="#{backing_user.logout}">
    <af:form binding="#{backing_user.form_user}" id="form_user"/>
    </af:document>
    </f:view>
    and not works, then I try:
    <f:view>
    <af:document binding="#{backing_user.document_user}" id="document_user" onunload="return logout_function()">
    <af:form binding="#{backing_user.form_user}" id="form_user"/>
    </af:document>
    </f:view>
    and as this, I try a lot of combinations, with no result. I take my time searching in various browsers but, surprisingly, I fount not much information about this (rare, I think is a very interesting matter).
    What is the way to be able this funcionallity?
    Thanks,
    Westh
    Edit: obviusly, logout_function() is a correct javascript function :P

    Hello,
    I resolve my problem. Now I go to describe the steps in a little tutorial.
    Remmember that this is a very basic tutorial that only allow you to do this matter, but not in deep. See bottom links for more information.
    Step's list:
    1) Download Shale framework from http://shale.apache.org/index.html#download
    2) Import all .jar libraries in your application.
    3) Open your web.xml file and add this:
    <context-param>
    <param-name>org.apache.shale.remoting.DYNAMIC_RESOURCES</param-name>
    <param-value>/dynamic/*:org.apache.shale.remoting.impl.MethodBindingProcessor</param-value>
    </context-param>
    4) Consider this:
    4.1) Managed bean --> userBean.java that have this method:
    public void logout () {
    /* Your logout code */
    and this name in faces-config.xml:
    <managed-bean>
    <managed-bean-name>userBeanId</managed-bean-name>
    <managed-bean-class>userBean</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
    </managed-bean>
    4.2) JSP Page --> home.jsp that have this code:
    A clinet listener:
    <af:clientListener method="unloadEvent" type="load"/>
    and this javascript functions:
    <f:verbatim>
    <script type="text/javascript">
    function unloadEvent () {
    window.onunload = function () {
    processUnload();
    function processUnload () {
    var httpRequest;
    if (window.XMLHttpRequest) {
    httpRequest = new XMLHttpRequest();
    } else if (window.ActiveXObject) {
    httpRequest = new ActiveXObject("Microsoft.XMLHTTP");
    httpRequest.overrideMimeType('text/xml');
    httpRequest.onreadystatechange = function() { alertContents(httpRequest); };
    httpRequest.open('GET', 'dynamic/userBeanId/logout.faces', false);
    httpRequest.send('');
    function alertContents(httpRequest) {
    if (httpRequest.readyState == 4) {
    if (!httpRequest.status == 200) {
    alert('There was a problem with the request. Http code: ' + httpRequest.status);
    </script>
    </f:verbatim>
    Assuming the suffix '.faces' is mapped to the JSF servlet.
    With this, you are able to acces to logout method of userBean (using ajax) when client closes window or tab. No servlets, no 'logout.jsp' pages, etc; and the most important thing: the code never be repeat! it's funny :)
    Westh
    Resources:
    http://thepeninsulasedge.com/blog/2007/06/22/adf-faces-rc-more-on-javascript/
    http://thepeninsulasedge.com/frank_nimphius/adf-faces-rich-client-javascript-programming/
    http://www.oracle.com/technology/products/adf/adffaces/11/doc/multiproject/adf-richclient-api/tagdoc/af_clientListener.html
    http://shale.apache.org/shale-remoting/apidocs/org/apache/shale/remoting/package-summary.html
    http://shale.apache.org/shale-remoting/index.html

  • Some questions (ha cluster / switching sessions / 1 session- many clients)

    * is it possible to run a sun-ray-server on a sun-cluster-server to provide real HA (not just a failover-group)?
    * using smartcard-based hot-desking (mobile sessions). is it possible to switch the session from one smartcard to another (in case a smartcard is lost)?
    * is it possible to (at least) view a session of another user like provided by vnc (1 session on the server and more then one client)?

    * is it possible to run a sun-ray-server on a sun-cluster-server to provide real HA (not just a failover-group)?What do you mean by HA? If you're asking whether a user's login session can survive the death of the node it's executing on then the answer is no. If the node dies, the session dies too.
    * using smartcard-based hot-desking (mobile sessions). is it possible to switch the session from one smartcard to another (in case a smartcard is lost)?
    /opt/SUNWut/sbin/utuser -a -i ... should let you do that.
    * is it possible to (at least) view a session of another user like provided by vnc (1 session on the server and more then one client)?Sun Ray does not provide a built-in way of doing that. You might be able to do it by using x11vnc or Vino, just as for any other X session.

  • How to set time zone for a session in Client Only installation

    Environment:
    OS : Unix (HP-UX 11.0)
    Oracle DB : Ver 8.0.5
    Developer : Ver 1.6 ( Client only Installation)
    Developer also on Unix.
    RDBMS and Developer Installed on different
    home directories.
    Our development is Forms 4.5 on X windows.
    Runtime is forms character mode.
    Probelm Description:
    To run the application I am using TWO_TASK to connect to the database. In our application we have to take care of time zones. For that in previous versions(NO TWO_TASK used) I used TZ unix environment variable, to get time zone dependent time wherever sysdate is used.
    Now because I am using TWO_TASK, oracle is no more using users TZ settings.
    Question : Is there any way I can make oracle to use the TZ environment setting

    Thanks for replying Johnny!
    What you are referring to is adding a city. I need to know how to set the time zone in settings -> Date & Time -> Timezone. Unless & untill this is set properly the iPod will never show me the right time. Please help me with it.
    I will definately use your advice on the second query.
    Thanks once again!
    Windows XP Pro

  • Open LMS Session from client host

    Dear all,
    i have a LMS application installed on a server X, the campus manager version is 3.2.
    the application version is pretty old, but it is just working fine.
    LMS is opening normally from the server itself.
    My problem is that if i try to open Campus Manager/Topology services from a host different than the server itself a java screen opens mentioning trying to connect to ani server, and it just freeze and do not proceed. if i reopen from the server itself it works fine.
    the server and the client host are on the same vlan, so no network access limitation exists.
    Note: When i open the http request on LMS server from the client side, i authenticate and enter to the app normally but if i try to open the topology services or path analysis it do not proceed.
    While checking the logs i found that it is like denying the Client Host name or IP Address.
    please find log attached.

    Dear Afroj,
    Concerning the above mentioned debug steps; i don't find the option in the sequence on my server.
    Point 1)      I can find LMSHomeScreen --> ServerConfiguration --> Setup --> ANI ServerAdmin --> DebuggingOptions
    Point 2) & 3) I Select "Enable tracing on the selected modules". From the drop down list i check the "Trace enable" check box for the Module "topo".
           On the same page down, i check the "Record trace messages in log file", i enter the name and the path for the log file, C:\ANI_Debug
           And i press  apply,
    Point 4) & 5) From here i am not able to continue, there is no button to start debug nor under LMSHomeScreen --> ServerConfiguration --> Setup --> ANI Server        Admin --> Debugging Options nor  under LMSHomeScreen --> Campus Manager --> Topology Services
      There no path Campus Manager --> Admin
    Point 6) How to run a new data collection?!
    Point 7) if i enable "debugging" of java from control panel and i select to "show" java console, how to view Java Logs?
    Thank you for your help

  • Java.lang.NoClassDefFoundError running session bean client program

    hi
    I am using weblogic 8.1 server, while i run the client program it throws following exception. i am using standalone server.
    D:\Weblogicserver\user_projects\domains\mydomain\applications\statelessSession>a
    nt run
    Buildfile: build.xml
    run:
    [java] java.lang.NoClassDefFoundError: examples/ejb20/basic/statelessSessio
    n/Client
    [java] Exception in thread "main"
    BUILD FAILED
    file:D:/Weblogicserver/user_projects/domains/mydomain/applications/statelessSess
    ion/build.xml:76: Java returned: 1
    Plz guide me to rectify this exception.
    bye
    jaiganesh

    Hi,
    set the setWLSEnv in classpath and try again.
    Regards
    Anilkumar kari

  • What is the "Session Client"?

    Hi.
    Could you please let me know what the "Session Client" is?
    It can be given to each user, and seems to be used for "the filtering in content models".
    This might be a basic question, but I don't really understand how I can use it.
    I could not find any descriptions in the HANA manuals.
    Thank you,
    -mamoru

    HI Mamoru,
    the "session client" is a NetWeaver heritage.
    SAP ERPs data model allows the separation of clients (business clients - not pieces of software) in a way that the same technical system can be used by several clients (business clients) while having all data separated.
    That way a user "JONES" in ciient "100" can only access data from client "100" and not from any other client.
    These clients can be created by the system admins at will and differ from customer system to customer system.
    Now if you want to create an analysis model for ERP in HANA it's obviously required to take care of this client modelling.
    Our developers decided to handle this requirement by creating a session variable $$CLIENT$$ that can be assigned to a HANA user.
    Whenever this user logs on to HANA this variable is set for this session and the current value is used in the analytic view, attribute view or wherever you used it.
    For more information check the SQL reference manual at "SESSION_CONTEXT", "ALTER SESSION SET..." and "ALTER USER SET PARAMETER..."
    regards,
    Lars

  • JCO-Java application unable to open a Frontend GUI session

    Hello,
    <P>
    I am having a problem opening a GUI session on a client PC through the JCo java call. It works on some PC's when I am logged in, but not on my PC. But other persons who login on my PC do not have a problem with the application opening a GUI session. I am at a loss. I have had a basis consultant look into this and he could not find a reason for the problem. I have submitted a customer message to SAP and am being told to file this issue in the forum, so here it is. If this is the wrong forum, please let me know which forum would be the correct one.
    </P>
    <P>
    Problem:</br>
    For test purposes, I have created a Java application using the SAP standalone SAPJCO3 vers. 3.0.1. The R/3 backend is 4.6C. The SAPGui version is 7.1 patch level 13 installed on a Windows XP Pro client PC. The application is supposed to start a Frontend GUI session as part of the initial process. This is not working on all PCu2019s for all users. The following are scenarios for two different users on two different PCu2019s, logged on and executing the Java application. The parameters for the Java application are: User, Password, and System Id in this order on the command line after the Java applicationu2019s name. The system Id in our example is PRP in uppercase. This problem happens while connecting to any of our R/3 instances.
    </P>
    <P>
    Testing of the issue:</br>
    Scenario 1:</br>
    User gmcghie: This user is the primary user of his/her PC. This PC has not had its registry entries cleaned up for a long time. Starting the Java application from the Windows command line with the supplied parameters, the program is executed and makes the initial connection with the R/3 backend. When the R/3 system sends back a request to start the GUI session, the SAP Logon is executed and opens on the PC. Nothing seems to happen after this.
    <P>
    Here is the JCO exception from the log file:
    JCoException eDest: (136)com.sap.conn.jco.JCoException: (136) JCO_ERROR_ILLEGAL_STATE: Launching SAP GUI failed, though it was requested (error message: Communication with SAPGUI timed out)
    </P>
    <P>
    When you right click on the SAP Logon icon that is in the Windows System Tray on the PC you see an entry that shows a session for Client 000. This is the wrong client being called by the application. The client being called is 600 in this particular scenario.
    </P>
    <P>
    Here is the connection string sent to backend for scenario 1:</br>
    TYPE=A DEST=PRP USER="gmcghie" PASSWD=********** CLIENT=600 LANG=E ASHOST=10.212.120.53 SYSNR=00 TRACE=1 PCS=1 USE_SAPGUI=2
    </P>
    <P>
    Scenario 2:</br>
    User mshin: This user is the primary user of his/her PC. This PC has had the OS re-installed on it within the last few years, hence the registry is likely more clean. Starting the Java application from the Windows command line with the supplied parameters, the program is executed and makes the initial connection with the R/3 backend. When the R/3 system sends back a request to start the GUI session, the SAP Logon is executed and opens on the PC. The connection is made to Client 600 and the process ends. The screens that appear above for the other scenario are not present when the connection is successful. The log file is not included for this as it was empty because it succeeded.
    </P>
    <P>
    Here is the connection string sent to backend for scenario 2:</br>
    TYPE=A DEST=PRP USER="mshin" PASSWD=********** CLIENT=600 LANG=E ASHOST=10.212.120.53 SYSNR=00 TRACE=1 PCS=1 USE_SAPGUI=2
    </P>
    I have the same issue on my PC as the first scenario.
    <P>The steps I took to try to get this to work are as follows.</br>
    1. Un-installed and re-installed the SAPGui, several times with no change.</br>
    2. Compared the registry settings of SAPGui between working and non-working PCu2019s. These were essentially the same.</br>
    3. Compared the system variables between working and non-working PCu2019s. These were essentially the same.</P>
    It should also be noted that if user u2018gmcghieu2019 from scenario #1 logs into another PC, the program executes correctly (for most other PCs but not all). Finally, if user u2018mshinu2019 from scenario #2 (certain other users as well) logs into Windows on the primary PC for user u2018gmcghieu2019 from scenario #1, and user u2018gmcghieu2019 is used to connect to SAP using the Java program, the program executes correctly. It seems that this would indicate some problem with the useru2019s Windows account on certain PCs.</P>
    Why is the connection information being dropped? How is the process of opening the SAPGui on the frontend done?</P>
    Any help with this issue is greatly appreciated.</P>
    Thanks,</br>
    Mark Shirkey

    Created Customer Message and got answer. There were settings in Windows Registry for starting the SAP Logon Launch Pad which had to have a value of 1.

Maybe you are looking for

  • Problem with cache and applications

    Hello, I'm facing a problem with webcache in my portal (v2). I have some reports and their data it's not renewed unless I restart the webcache. How can I disable webcahe for this applications? Thanks

  • Solaris 8 on HP Pavilion 8665C?

    Greetings, Has anyone installed S8 on a HP Pavilion 8665C? I'm having problem getting it to recognize some hardwares, such as the pci NIC card, the graphic cards, and the modem. (Pretty much all the equipments that came with this pc...) I've tried ru

  • Everything has disappeared from my iTunes...

    The problem listed above, is one of many Been having, what looks to be, a common problem with my iPhone 4 - I suddenly keep getting a warning message telling me that I'm running out of storage on the phone and I should go to settings to change my sto

  • Transfer media to my lumia 720

    Hi. I have been trying to transfer videos and music from my laptop to my Nokia Lumia 720. Some end up playing while most don't, the ones that play end up multiplying themselves. And if I delete the duplicated they don't play. This happens to both mus

  • Thinkpad X230 could not recognize external DVD burner

    Hi, I received my Thinkpad X230 two weeks ago and was planning to make backup media.  However, X230 could not recognize my external DVD burner. It was not responding no matter which USB port I tried. The DVD burner works fine with my T400 and X201. J