Problem in working on 2 sql session :: data become inconsistence

I follow below steps in sequence and land-up into inconsistence data.
Suppose I have a table EMP (EMPNO , SAL ) with record (1, 100);
Session-1
I execute below command and deducted 70 from sal. This Deduction is valid
since sal > 70 . I didn’t COMMIT.
DECLARE
   n   NUMBER (4);
BEGIN
   SELECT sal
     INTO n
     FROM emp
    WHERE empno = 1;
   IF n - 70 > 0
   THEN
      UPDATE emp
         SET sal = sal - 70
       WHERE empno = 1;
   END IF;
END;
--Before committing data in session-1 , I executed below code in session-2 ::
--deducted 50 from sal.
--This Deduction is valid for second session since sal > 50
DECLARE
   n   NUMBER (4);
BEGIN
   SELECT sal
     INTO n
     FROM emp
    WHERE empno = 1;
   IF n - 50 > 0
   THEN
      UPDATE emp
         SET sal = sal - 50
       WHERE empno = 1 ;
   END IF;
END;
The session-2 hangs (in waiting state) since session-1 has locked the record.
As soon as session-1 releases the record (i.e. commit data in session-1) session-2 completes,
which actually give me WRONG value .Problem::
Despite EMP=1 has sal = 100 , 2 transaction occur first for 70 and other for 50.
When I use::
SELECT ….. for UPDATE nowait , I am able to get rid of this.
Can I use NOWAIT option directly in my UPDATE statement?
--I am working on oracle 9i                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

J99 wrote:
I follow below steps in sequence and land-up into inconsistence data.
.. cut ..
As soon as session-1 releases the record (i.e. commit data in session-1) session-2 completes,
which actually give me WRONG value .
.. cut ..
SELECT ….. for UPDATE nowait , I am able to get rid of this. I agree with the others, it is giving the correct value for what the code is doing. The "wrong"ness comes from how you have written your code.
The point of using a "FOR UPDATE" on your select statement is to say "I'm selecting this data with the intention of possibly updating the same" which therefore tells Oracle to hold off actually selecting the data until the table(s) are in a state where you won't get an inconsistency. Currently, you are letting oracle select the data regardless (i.e. not showing any intention of updating it) and then you are updating the data based on a "dirty" read. It is this dirty reading technique that is at fault if you are really intending to update based on what you select.
The NOWAIT option shows your intention to update the data, but also says you don't want to wait for other transactions to complete. In this scenario Oracle will read any rows from the table that have not yet been locked by other transactions and allow you to continue your processing for those rows. This is fine if you are working specifically on data identified by primary keys, but could lead to indeterminate processing if it's a more global select/update scenario without specific keys; i.e. you couldn't be sure which of the transactions will process which rows of data as it will come down to a timing issue of which transaction gets any particular row first.

Similar Messages

  • SQL Concat function seem not to work properly in SQL query data model. BIP 11g

    I try to use this function to show entire name CONCAT(name, ' ', surname) and it doesnt show the surname. it looks like it only tooks 2 arguments. I use it with the option "Add element by expression" within a SQL Query - Data set.
    Lucia

    i don't believe you
    please post more info, may be screen or sql or some more useful statement
    CONCAT(name, ' ', surname) and it doesnt show the surname
    may be because for some case "surname" is empty  or may be you incorrect use concat function
    one way mentioned by BluShadow is " || " operator  - http://docs.oracle.com/cd/B28359_01/server.111/b28286/operators003.htm#SQLRF51156
    and another is concat function http://docs.oracle.com/cd/B28359_01/server.111/b28286/functions026.htm#SQLRF00619
    so for your case it can be like
    CONCAT(CONCAT(name, ' '), surname)

  • Association rule in SQL Server Data Mining

    I have been working on a problem on association rules in SQL Server Data Tools (Visual Studio 2008) for quite a while but have not yet been able to figure out the solution.
    The problem is: I have a table named Sales_history in my SQL database. This table has following columns: CustomerID, ItemID, Month (from May2012 to April 2013), QtyShipped. I am looking to find association between Items and i want to provide recommendation
    to the Customer (In this case CustomerID) based on their purchases.
    Note: there are around 630 customers and about 34000 products in my table. 
    My approach:
    I marked History_Table as both Key and nested. And in the Key, i checked CustomerID as input and Key whereas in nested, i checked ItemId as Key, input and Predict. 
    When i run the model, i get a solution but i am not sure if i am configuring it right. Also i am not sure how i can write prediction join query to generate Item recommendations . I am really struggling with
    this problem, eagerly waiting for the reply. Thank you.

    Hi Tatyana,
    Thank you so much for your reply. I have now been able to create the data mining model using association rule and by writing a DMX query, i am able to generate the item recommendations to be given to customers for items they have purchased. However, i have
    noticed one thing that in the DMX query, it gives the same item recommendation for any item i put inside the query. 
    Also, if i put any item in the DMX query from the generated list of recommended items, the output of that query also shows the item that is inputted inside the query.
    Here is the query, that i am writing to generate item recommendations
    SELECT predictassociation (CrossSellingModelV3.[Ztb Customer Item v3],INCLUDE_STATISTICS,5)
    FROM CrossSellingModelV3
    NATURAL PREDICTION JOIN 
    (SELECT
    (SELECT '17IS56126' as m )
    AS Ms)
    AS t
    What can be the possible reason behind this? Is this something related to the kind of data i have? In my data, there are 632 distinct customers and 34000 distinct products. 
    If i execute this query in management studio.
    select customer_CD, COUNT(Item_CD) from ztb_Sales_History
    group by customer_CD
    order by 2 desc
    the output shows that  there are some customers who have bought just 1 item and also there are customers who have bought 2400 items. i mean the range is very high. 

  • XMLTable Problem - works in PL/SQL, why not standalone?

    What is going on here? Why does the plain SQL return this really helpful error?
    <pre>
    SQL> desc CRMAUTOSAVE
    Name Null? Typ
    AS_AUTOSAVEID NOT NULL NUMBER(10)
    AS_IDENT NOT NULL VARCHAR2(250)
    AS_DATA XMLTYPE
    CREATEDATE NOT NULL TIMESTAMP(6)
    CREATOR NOT NULL VARCHAR2(35)
    DELETEFLAG NOT NULL NUMBER(1)
    DELETEDATE TIMESTAMP(6)
    DELETEBY VARCHAR2(35)
    MODIFICATEDATE TIMESTAMP(6)
    MODIFICATOR VARCHAR2(35)
    SQL> select count(*) from CRMAUTOSAVE;
    COUNT(*)
    14
    SQL> select t2.*
    2 from CRMAUTOSAVE
    3 , XMLTable('//Attachment'
    4 passing CRMAUTOSAVE.AS_DATA
    5 columns
    6 ATTID number(10) PATH '/Attachment/@Id'
    7 ) t2;
    ATTID number(10) PATH '/Attachment/@Id'
    FEHLER in Zeile 6:
    ORA-01780: string literal required
    SQL> set serverout on size 100000
    SQL> declare
    2 cursor c is
    3 select t2.*
    4 from CRMAUTOSAVE
    5 , XMLTable('//Attachment'
    6 passing CRMAUTOSAVE.AS_DATA
    7 columns
    8 ATTID number(10) PATH '/Attachment/@Id'
    9 ) t2;
    10
    11 begin
    12 for x in c loop
    13 dbms_output.put_line(x.ATTID);
    14 end loop;
    15 end;
    16 /
    4455225736
    4449873735
    PL/SQL-Prozedur erfolgreich abgeschlossen.
    </pre>

    Further Info:
    <pre>
    SQL*Plus: Release 10.2.0.1.0 - Production on Mo Feb 15 15:29:08 2010
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Kennwort eingeben:
    Verbunden mit:
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    </pre>
    This is a 10.2.0.3 on SunOS 5.10, Sparc. We connect (apparently) with a 10.2.0.1 windows client.
    It now gets even better, this one works!
    <pre>
    SQL*Plus: Release 10.2.0.4.0 - Production on Mon Feb 15 17:30:52 2010
    Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
    Enter password:
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, Oracle Label Security, OLAP, Data Mining Scoring Engine
    and Real Application Testing options
    SQL>
    SQL>
    SQL>
    SQL>
    SQL> select t2.*
    2 from CRMAUTOSAVE
    3 , XMLTable('//Attachment'
    4 passing CRMAUTOSAVE.AS_DATA
    5 columns
    6 ATTID number(10) PATH '/Attachment/@Id'
    7 ) t2;
    ATTID
    4385310450
    4435025574
    </pre>
    This is a 64-bit 10.2.0.4, running on Debian Lenny. Client is a 10.2.0.4 windows.
    I will experiment a bit with different combinations ;)

  • Problem in working with Japanese data

    Hello,
    We have an application, which should work for both English and Japanese languages. Our application is working fine for English data but in case of Japanese, we are facing problems. In the application, there is a language setting, where the user can select either English or Japanese. This changes the language of the labels to English or Japanese. We are handling this thru' ResourceBundles. But the data that is entered can be independent of this. In English setting also, the data entered or diplayed could be Japanese. Now we are facing problems at vaious places -
    1. When we enter Japanese data and save it, it gets copied into the bean and if there is any error in the saving, the same data from bean comes back on the screen. This data doesn't appear properly in Japanese.
    2. When we try to retrieve the already saved data from database, it doesn't show poperly in Japanese.
    We are using our own 'toUnicode' function, which converts the data to Unicode before saving the data to database. Similarly, we have tried different encodings like SJIS / Shift_JIS / ISO-2022-JP at various places i.e. in 'Page' directive or in HTML Meta tag or various combinations of these two. Nothing is working reliably. Sometimes for some combination, data retained in the first case is correct but it can't be saved. Sometimes it works with Unicode, sometimes without Unicode. Some combination affects the Japanese labels as well. Otherwise the labels at least are displayed properly.
    The same code with just Shift_JIS setting in 'page' directive, worked well in IIS Server for both English and Japanese.
    What could be the problem in WebLogic? Does it matter if WL is installed on English or Japanese machine?
    Kindly answer ASAP, since the project is getting delayed.
    Thanking in anticipation...
    -Medha

    Hi,
    is there a difference in handling Japanese and Chinese chars? If not I
    might be able to give you some hints.
    Daniel
    -----Original Message-----
    From: JSB [mailto:[email protected]]
    Posted At: Monday, February 12, 2001 6:22 PM
    Posted To: internationalization
    Conversation: Problem in working with Japanese data
    Subject: Re: Problem in working with Japanese data
    Have u solved this yet, and how ?
    Medha <[email protected]> wrote in message
    news:[email protected]...
    >
    Hello,
    We have an application, which should work for both English andJapanese
    languages. Our application is working fine for English data but in case
    of
    Japanese, we are facing problems. In the application, there is a
    language
    setting, where the user can select either English or Japanese. This
    changes
    the language of the labels to English or Japanese. We are handling this
    thru' ResourceBundles. But the data that is entered can be independent
    of
    this. In English setting also, the data entered or diplayed could be
    Japanese. Now we are facing problems at vaious places -
    1. When we enter Japanese data and save it, it gets copied into thebean
    and if there is any error in the saving, the same data from bean comes
    back
    on the screen. This data doesn't appear properly in Japanese.
    2. When we try to retrieve the already saved data from database, itdoesn't show poperly in Japanese.
    We are using our own 'toUnicode' function, which converts the datato
    Unicode before saving the data to database. Similarly, we have tried
    different encodings like SJIS / Shift_JIS / ISO-2022-JP at various
    places
    i.e. in 'Page' directive or in HTML Meta tag or various combinations of
    these two. Nothing is working reliably. Sometimes for some combination,
    data
    retained in the first case is correct but it can't be saved. Sometimes
    it
    works with Unicode, sometimes without Unicode. Some combination affects
    the
    Japanese labels as well. Otherwise the labels at least are displayed
    properly.
    The same code with just Shift_JIS setting in 'page' directive,worked
    well in IIS Server for both English and Japanese.
    What could be the problem in WebLogic? Does it matter if WL isinstalled on English or Japanese machine?
    Kindly answer ASAP, since the project is getting delayed.
    Thanking in anticipation...
    -Medha

  • Can SQL Developer Data Modeler work with OBIEE?

    Can SQL Developer Data Modeler work with OBIEE? Can we export the data model from the Data Modeler and import it into OBIEE? Or export the OBIEE metadata to the Data Modeler for Data Model defining?

    no
    Philip

  • Plz hlep my : iso 7  4s /There is a problem in my iPhone device after updating the new version needed to ActiveX wants amyl, bus and my Lord and unfortunately forgot this data, what work Please reply my machine data is

    There is a problem in my iPhone device after updating the new version needed to ActiveX wants amyl, bus and my Lord and unfortunately forgot this data, what work Please reply my machine data is
    Imei: 013055008069758
    SerialNumber:DN*******TC0
    mlbserialNumber: DQ************42D
    plz hlep me
    <Personal Information Edited by Host>

    There is a problem in my iPhone device after updating the new version needed to Active iPhone 4s
    and
    I upgraded to 7.0.3 yesterday and now my battery only lasts about 4 hours with very little active use.
    iOS 7.0.3

  • There is a problem in my iPhone device after updating the new version needed to ActiveX wants amyl, bus and my Lord and unfortunately forgot this data, what work Please reply my machine data is

    There is a problem in my iPhone device after updating the new version needed to ActiveX wants amyl, bus and my Lord and unfortunately forgot this data, what work Please reply my machine data is
    Imei: 013055008069758
    SerialNumber:DN*******TC0
    mlbserialNumber: DQ************42D
    plz plz plz hlep me
    <Edited by Host>

    There is a problem in my iPhone device after updating the new version needed to Active iPhone 4s
    and
    I upgraded to 7.0.3 yesterday and now my battery only lasts about 4 hours with very little active use.
    iOS 7.0.3

  • JDBC persistence of session data not working on iPlanet Web Server, Enterprise Edition 6.0 SP2

    I am using windows 2000.
    iPlanet Web Server, Enterprise Edition 6.0 SP2
    I tried to do jdbc persistence for sessiondata.
    Somehow it didn't work.
    I edited the JdbcStore code and added some system.outs in it.
    From the logs I could note that
    It is going into
    JdbcStore.init(Properties config)//when the server starts up
    JdbcStore.reap(long currentTime) //when the server is brought down
    But it is not going into
    JdbcStore.save(IWSHttpSession session)
    JdbcStore.remove(IWSHttpSession session)
    JdbcStore.load(IWSHttpSession session)
    I did a "select count(*) from sessions" and it got me
    no of rows=0.
    The logs contained
    [06/Mar/2002:11:25:09] info ( 552): IWSSessionManager: Maximum number of sessions is 1000
    [06/Mar/2002:11:25:10] info ( 552): IWSSessionManager: Maximum number of sessions is 1000
    [06/Mar/2002:11:25:14] info ( 552): JdbcStore: initialized with url=jdbc:odbc:LocalServer, driver=sun.jdbc.odbc.JdbcOdbcDriver
    So I should think it was working.
    The pages that are using HttpSession are working ok but should I not get some rows in my table "sessions" when I query?
    This is the webapps.xml I used.
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!-- iWS 6.0 specific web application configuration. -->
    <!DOCTYPE vs PUBLIC "-//Sun Microsystems, Inc.; iPlanet//DTD Virtual Server Web Applications 6.0//EN" "http://developer.iplanet.com/webserver/dtds/iws-webapps_6_0.dtd">
    <vs>
    <!-- Define global configuration -->
    <!-- Configure a session manager and tracking configuration -->
    <session-manager
    class='com.iplanet.server.http.session.IWSSessionManager' >
    <init-param>
    <param-name>maxSessions</param-name>
    <param-value>1000</param-value>
    </init-param>
    <init-param>
    <param-name>timeOut</param-name>
    <param-value>1800</param-value>
    </init-param>
    <init-param>
    <param-name>session-failover-enabled</param-name>
    <param-value>true</param-value>
    </init-param>
    <init-param>
    <param-name>reapInterval</param-name>
    <param-value>600</param-value>
    </init-param>
    <init-param>
    <param-name>session-data-store</param-name>
    <param-value>com.iplanet.server.http.session.JdbcStore</param-value>
    </init-param>
    <init-param>
    <param-name>url</param-name>
    <param-value>jdbc:odbc:LocalServer</param-value>
    </init-param>
    <init-param>
    <param-name>provider</param-name>
    <param-value>sun.jdbc.odbc.JdbcOdbcDriver</param-value>
    </init-param>
    <init-param>
    <param-name>username</param-name>
    <param-value>sa</param-value>
    </init-param>
    <init-param>
    <param-name>password</param-name>
    <param-value>sa</param-value>
    </init-param>
    <init-param>
    <param-name>lookupPool</param-name>
    <param-value>4</param-value>
    </init-param>
    <init-param>
    <param-name>insertPool</param-name>
    <param-value>4</param-value>
    </init-param>
    <init-param>
    <param-name>updatePool</param-name>
    <param-value>4</param-value>
    </init-param>
    <init-param>
    <param-name>deletePool</param-name>
    <param-value>4</param-value>
    </init-param>
    <!--
    <init-param>
    <param-name>session-failover-enabled</param-name>
    <param-value>false</param-value>
    </init-param>
    -->
    </session-manager>
    <session-tracking use-cookies="true" />
    <!-- Define the web applications for this virtual server-->
    <!-- catalog application -->
    <web-app uri="/Web" dir="E:/iPlanet/Servers/docs" enable="true" >
    <!-- Specify a tempory directory. A path returned in the "javax.servlet.context.tempdir" property; defaults to WEB-INF/tmp. -->
    <!--
    <tempdir dir='/var/catalog/tmp'/>
    -->
    <!-- reload classes at every 5 minutes; also include mycatlog.jar file in the classpath -->
    <!--
    <class-loader reload-interval='300' classpath='/home/work/mycatalog.jar' />
    -->
    </web-app>
    </vs>

    I'm trying to do the same thing with a file store, also somewhat unsuccessfully. However, one thing I can point out is that the manual says that the <session-manager> element should be within the <web-app> element in web-apps.xml. In your example, it is outside of it.

  • Problem in EWA session data sent to SAP

    Hi all,
    I am trying to finalise EWA for all my SAP production instances. So far I am able to send EWA session to my Solution manager system or to SAP directly (i.e. to O01)
    In the solution manager system under the edit Solution option there is a button "setup EWA". After clicking on this  and enabling EWA, there is a check box which says "Send to SAP". I have enabled this check box.
    Now does this mean that when the EWA session data arrives in the Solution Manager system, it is also sent to SAP ?
    This was my understanding of the checkbox. Also when the EWA report arrives in the Solution Manager system, there is an envelope icon against the report. The tooltip of the icon says "Session data sent to SAP". However when I look at the service channel inbox the session is not visible.
    Does anyone have any idea what the problem could be ?
    regards,
    Kevin Hill

    Hi all,
    This is what SAP had to say.
    quote from SAP reply *********
    Please note that not every session follows this path:
    Satellite system -> Solution Manager system -> SAP.
    All red sessions are forwarded like this. If all is well, and the sessions are always rated green and yellow, only 1 session per system is forwarded every 4 weeks. None of these forwarded sessions create Service Messages. We have access to the actual session and data, and the customer already has the corresponding reports in the Solution
    Manager System.
    The reports sent to SAP are for SAP's records only. They are not sent back through Service Messages. If you send a red report to SAP, SAP will investigate the cause of the red rating and contact you. It is not possible to receive these reports back on the SAP Service
    MarketPlace.
    The only sessions that create Service Messages are those sent directly to SAP ( without Solution Manager). They are created as per SAP Note 207223, and the session numbers in SDCC start Z...xx.
    quote from SAP reply *********
    Well that settles it I guess. However it definitely was not clear from the FAQ and the docs. SAP's reply makes sense as there is no reason why the session report should be available in both the Solman system as well in the services messages.
    regards,
    Kevin Hill

  • Problem with pl/sql table data type

    hai friends,
    i have one procedure it has some in parameters and one out parameter which fetches values to front end.
    But the out parameter will be pl/sql table data type.
    if it is ref cursor
    then i declared as
    var x refcursor;
    exec procedure_name(1,:x);
    it is ok.
    but for pl/sql table data type is out parameter then what i will do in the prompt .
    give me syntax and clarify my doubt.
    advanced thanks...
    madhava

    The SQL*Plus VARIABLE statement does not support user-defined types, hence it cannot support nested tables. It can support cursors because they can be weakly typed (so we can use the one SQL*Plus VAR to hold any shape of resultset). Nested tables are strongly typed; SQL*Plus is a relatively stupid interface and cannot be expected to understand UDT.
    So, it you want to use nested tables as output you'll need to code a wrapping procedure that can understand your nested table type and handle it accordingly.
    Sorry.
    Cheers, APC

  • ERROR: Error in getting session data: Invalid or Expired Session

    Hi,
    We are using ssrs 2008 r2 and have a report which has links that allow the user to drill down.
    When the link is clicked the same report is run but shows more detail. This works fine but we are now getting the error below for a user. 
    I have increased the time out for the report to 600 seconds.
    Error in getting session data: Invalid or Expired Session: fnxgxhjuveugvd552qfyv3fw
    session!ReportServer_0-6!4b0!03/18/2015-10:51:29:: i INFO: LoadSnapshot: Item with session: fnxgxhjuveugvd552qfyv3fw, reportPath: , userName: doman/user not found in the database
    Any ideas how this can be resolved?

    Hi Nasa1999,
    Based on your error message, If the all the users will sometimes got the same issue, it can be caused by the timeout issue. It happens a lot when rendering big report, and it exceeds the default Session Timeout. You can execute script
    to increase the Session Timeout time. Please refer to following blog:
    Session Timeout during execution. Also increase the value of <Query Timeout> in rsreportserver.config file. This file locate at XX:\Program Files\Microsoft SQL Server\MSRS10.MSSQLSERVER\Reporting Services\ReportServer
    Please also check to set the <legacyImpersonationPolicy> back to true(https://support.microsoft.com/en-us/kb/972328).
    Locate the Aspnet.config file in the following folder:
     %windir%\Microsoft.NET\Framework64\v2.0.50727
    If Microsoft Visual Studio is installed on the computer that is running SQL Server 2005, double-click
    Aspnet.config. If Visual Studio is not installed on the computer, follow these steps:
            a. Right-click Aspnet.config, point to
    Open with, and then click Choose program.
            b. In the Programs list, click
    Notepad, and then click OK.
    Locate the following tag in the <runtime> section of the code.
            <legacyImpersonationPolicy enabled="false"/>
    Change the tag to:
            <legacyImpersonationPolicy enabled="true"/>
    Save the Aspnet.config file.
    Reset IIS.
    Try your report again.
    Similar Thread for your reference:
    Using SharePoint Report Viewer
    Web Part: Error in getting session data: Invalid or Expired Session: xxxxxxxxxxx
    If only the one user or several users will got the issue, the issue can be caused by the permission setting, please reference to below blog:
    http://answers.flyppdevportal.com/categories/sqlserver/sqlreportingservices.aspx?ID=3506231b-9f4d-4f5a-884d-157137c56336
    http://blog.goobol.com/the-permissions-granted-to-user-domainusername-are-insufficient-for-performing-this-operation/
    If your problem still exists, please try to provide more details information as below:
    Did you reporting service installed in native mode or sharepoint mode, If in native mode, please try to provide more error message from the log file:
    C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\LogFiles
    If you still have any problem, please feel free to ask.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • Shared Session Data

    Hello Everyone,
    I have a problem that I could not seem to find a solution or best methods and practices for.
    I have session level data abstracted by a package API and accessed query-inline via a table function. All this works fine; however, there is one caveat that does not. The query SQL is passed to a jobs table and executed by a scheduled job. So the job session can not see the user session data.
    Is there a way to:
    1) Share Session data?
    2) define a table as containing Session temporary data, but public scope?
    3) Group Sessions or grant session privileges (to share scope)?
    4) Run a process/job under a different Session ID, or with specific Session privileges?
    5) Call a procedure or function from one session, but have it Execute under a different session?
    As it stands, I can either copy the data out to a permanent table (and manually implement Session ID, and Session level cleanup), change the current API and underlying global temporary table to a permanent table (and again manually implement Session ID, and Session level cleanup), or before job scheduling parse the SQL, and expand the function table data into the SQL statically.
    None of these are solutions I like. I am looking for something more elegant. Any suggestions would be appreciated.
    *EDIT: sorry, I forgot to add; I'm using Oracle 10g.
    Thank you for your time.
    Edited by: user10921261 on Mar 20, 2009 11:57 AM

    Aequitas wrote:
    I have session level data abstracted by a package API and accessed query-inline via a table function. All this works fine; however, there is one caveat that does not. The query SQL is passed to a jobs table and executed by a scheduled job. So the job session can not see the user session data.Correct. As a job is a brand new session that is created to execute the supplied PL/SQL code. This process does not create the session by inheriting the environment (name space details, temp tables, transactions) of the session that submitted the job.
    Imagine the complexities of this when the session that created the job, terminated 24 hours ago.... would it session state (if kept persistent) still apply? And what about the complexities dealing with the overheads to somehow and somewhere store this session data for the job to re-use.
    Nope.. this is not a workable solution (and nor a sensible one), so Oracle does not support it. When a job is executed, a brand new session is created for that job. (not entirely correct at a technical level as the job queue process may already exist and already have a session - but conceptually, think of a brand new session for a job).
    Is there a way to:
    1) Share Session data?What session data specifically? And what about a session that long since ceased to exist? What about session data that is dynamic and changing? Should then job see the version of that data at the time it was submiited? At the time is started execution? Or the data as it is currently within that session?
    2) define a table as containing Session temporary data, but public scope?Does not need to have a "public scope". It can be managed via an API (PL/SQL), using the job number as unique reference number. It is even possible to create low level access control on such a table that only the job and no-one else can even see the data in that table, except for the job.
    3) Group Sessions or grant session privileges (to share scope)?Nope.
    4) Run a process/job under a different Session ID, or with specific Session privileges?Which session privileges? Remember that each session has two basic memory areas - the PGA (Process Global Area) and UGA (User Global Area). Both are private and non-sharable.
    5) Call a procedure or function from one session, but have it Execute under a different session?Nope.
    As it stands, I can either copy the data out to a permanent table (and manually implement Session ID, and Session level cleanup), change the current API and underlying global temporary table to a permanent table (and again manually implement Session ID, and Session level cleanup), or before job scheduling parse the SQL, and expand the function table data into the SQL statically.Still not sure what you imply with session data.
    In my case I have a process API (running on top of DBMS_JOB ) that developers use to schedule jobs (it manages external processes, mostly used for collecting data from other non-db servers). In some cases, the caller is a Virtual Private Database (VPDB) session - with a name space that contains the keys and tokens and what not that is required for access control and security. The name space cannot be copied across to the job.
    So as part of the process API that creates the job, a logon/authentication/authorisation call is added. With the calling session username. This is the same call that would have been made when the user session was created at logon time. And this call creates the name space that contains the keys and tokens required. Thus creating that batch (job) session in the background, uses the same initialisation processing that an interactive session (created from the app server) would use. The code running in that job is oblivious to the fact that the session was not created via an interactive logon from the app server.
    None of these are solutions I like. I am looking for something more elegant. Any suggestions would be appreciated.If you truly want an IPC mechanism between two sessions in Oracle, two methods come to mind. Database pipes. Advance Queuing.
    This is not really that complex to implement. IPC itself is not difficult. The difficult part is designing the code around cross-session communication and have that work effectively and efficiently. And within the database session context, this can be not only quite difficult to do, but also not always the very sensible thing to do.

  • Work process re-started , session terminated

    Hi Gurus,
    While i creating a purchase order (me21n) , the process runs for a while and then i am getting a SAP GUI message "Work process re - started , session terminated" and the session is closed.Can anyone give me the cause of the problem and solution for the same.
    Developers Trace File Entry:
    trc file: "dev_w0", trc level: 1, release: "640"
    ACTIVE TRACE LEVEL           1
    ACTIVE TRACE COMPONENTS      all, M
    B B Fri Aug 31 16:09:36 2007
    B  create_con (con_name=R/3)
    B  Loading DB library 'C:\usr\sap\I04\SYS\exe\run\dbmssslib.dll' ...
    B  Library 'C:\usr\sap\I04\SYS\exe\run\dbmssslib.dll' loaded
    B  Version of 'C:\usr\sap\I04\SYS\exe\run\dbmssslib.dll' is "640.00", patchlevel (0.26)
    B  New connection 0 created
    M systemid   560 (PC with Windows NT)
    M relno      6400
    M patchlevel 0
    M patchno    25
    M intno      20020600
    M make:      multithreaded, ASCII
    M pid        1680
    M
    M  ***LOG Q0Q=> tskh_init, WPStart (Workproc 0 1680) [dpxxdisp.c   1160]
    I  MtxInit: -2 0 0
    M  DpSysAdmExtCreate: ABAP is active
    M  DpSysAdmExtCreate: JAVA is not active
    M  DpShMCreate: sizeof(wp_adm)        7456    (828)
    M  DpShMCreate: sizeof(tm_adm)        2219848    (11044)
    M  DpShMCreate: sizeof(wp_ca_adm)        18000    (60)
    M  DpShMCreate: sizeof(appc_ca_adm)    6000    (60)
    M  DpShMCreate: sizeof(comm_adm)        192000    (384)
    M  DpShMCreate: sizeof(vmc_adm)        0    (320)
    M  DpShMCreate: sizeof(wall_adm)        (22440/34344/56/100)
    M  DpShMCreate: SHM_DP_ADM_KEY        (addr: 05230040, size: 2506248)
    M  DpShMCreate: allocated sys_adm at 05230040
    M  DpShMCreate: allocated wp_adm at 052317A8
    M  DpShMCreate: allocated tm_adm_list at 052334C8
    M  DpShMCreate: allocated tm_adm at 052334F0
    M  DpShMCreate: allocated wp_ca_adm at 05451438
    M  DpShMCreate: allocated appc_ca_adm at 05455A88
    M  DpShMCreate: allocated comm_adm_list at 054571F8
    M  DpShMCreate: allocated comm_adm at 05457210
    M  DpShMCreate: allocated vmc_adm_list at 05486010
    M  DpShMCreate: system runs without vmc_adm
    M  DpShMCreate: allocated ca_info at 05486038
    M  DpShMCreate: allocated wall_adm at 05486040
    X  EmInit: MmSetImplementation( 2 ).
    X  <ES> client 0 initializing ....
    X  Using implementation std
    M  <EsNT> Memory Reset enabled as NT default
    X  ES initialized.
    M M Fri Aug 31 16:09:37 2007
    M  calling db_connect ...
    C  Thank You for using the SLOLEDB-interface
    C  Using dynamic link library 'C:\usr\sap\I04\SYS\exe\run\dbmssslib.dll'
    C  dbmssslib.dll patch info
    C    patchlevel   0
    C    patchno      26
    C    patchcomment MSSQL: GetNextMsst1 error (754819)
    C  np:(local) connection used on IDES
    C  Using Provider SQLNCLI
    C  Provider Release:9.00.1399.06
    C  Using Provider SQLNCLI
    C C Fri Aug 31 16:09:41 2007
    C  Cache sizes: header 52 bytes, 20000 names (26720000 bytes), 1000 dynamic statements (5432000 bytes), total 32152052 bytes
    C  Using shared procedure name cache IDES_I04I04_I04_MEM initialized by another process.
    C  Connected to db server : [IDES] server_used : [np:(local)], dbname: I04, dbuser: i04
    C  pn_id:IDES_I04I04_I04
    B  Connection 0 opened
    B  Wp  Hdl ConName          ConId     ConState     TX  PRM RCT MAX OPT Date     Time   DBHost         B  000 000 R/3              000000000 ACTIVE       NO  YES NO  255 255 20070831 160937 IDES           C  The IRow interface is supported by this OLEDB provider
    M  db_connect o.k.
    I I Fri Aug 31 16:09:53 2007
    I  MtxInit: 0 0 0
    M  SHM_PRES_BUF            (addr: 098E0040, size: 4400128)
    M  SHM_ROLL_AREA        (addr: 68200040, size: 160432128)
    M  SHM_PAGING_AREA        (addr: 09D20040, size: 72351744)
    M  SHM_ROLL_ADM            (addr: 0E230040, size: 1602056)
    M  SHM_PAGING_ADM        (addr: 0E3C0040, size: 525344)
    M  ThCreateNoBuffer        allocated 320144 bytes for 1000 entries at 0E450040
    M  ThCreateNoBuffer        index size: 3000 elems
    M  ThCreateVBAdm        allocated 7424 bytes (50 server) at 0E4A0040
    X  EmInit: MmSetImplementation( 2 ).
    X  <ES> client 0 initializing ....
    X  Using implementation std
    X  ES initialized.
    B  db_con_shm_ini:  WP_ID = 0, WP_CNT = 9
    B  dbtbxbuf: Buffer TABL  (addr: 134C00C8, size: 30000128, end: 1515C4C8)
    B  dbtbxbuf: Buffer TABLP (addr: 0F3000C8, size: 10240000, end: 0FCC40C8)
    B  dbexpbuf: Buffer EIBUF (addr: 151600D0, size: 4194304, end: 155600D0)
    B  dbexpbuf: Buffer ESM   (addr: 155700D0, size: 4194304, end: 159700D0)
    B  dbexpbuf: Buffer CUA   (addr: 0FCE00D0, size: 3072000, end: 0FFCE0D0)
    B  dbexpbuf: Buffer OTR   (addr: 159800D0, size: 4194304, end: 15D800D0)
    M  rdisp/reinitialize_code_page -> 0
    M  icm/accept_remote_trace_level -> 0
    C C Fri Aug 31 16:09:54 2007
    C  Using Provider SQLNCLI
    C  The IRow interface is supported by this OLEDB provider
    S S Fri Aug 31 16:09:55 2007
    S  *** init spool environment
    S  initialize debug system
    T  Stack direction is downwards.
    T  debug control: prepare exclude for printer trace
    T  new memory block 15EFFBD0
    S  spool kernel/ddic check: Ok
    S  using table TSP02FX for frontend printing
    S  1 spool work process(es) found
    S  frontend print via spool service enabled
    S  printer list size is 150
    S  printer type list size is 50
    S  queue size (profile)   = 300
    S  hostspool list size = 3000
    S  option list size is 30
    S      found processing queue enabled
    S  found spool memory service RSPO-RCLOCKS at 1DF30098
    S  doing lock recovery
    S  setting server cache root
    S  found spool memory service RSPO-SERVERCACHE at 1DF302C8
    S    using messages for server info
    S  size of spec char cache entry: 165020 bytes (timeout 100 sec)
    S  size of open spool request entry: 1152 bytes
    S  immediate print option for implicitely closed spool requests is disabled
    A A  -PXA--
    A  PXA INITIALIZATION
    A  PXA: Fragment Size too small: 195 MB, reducing # of fragments
    A  System page size: 4kb, admin_size: 11476kb.
    A  Attached to PXA (address 24550040, size 400000K)
    A  abap/pxa = shared protect gen_remote
    A  PXA INITIALIZATION FINISHED
    A  -PXA--
    A A A Fri Aug 31 16:09:56 2007
    A  ABAP ShmAdm attached (addr=56AF9000 leng=20955136 end=57EF5000)
    A  >> Shm MMADM area (addr=56E610E0 leng=134752 end=56E81F40)
    A  >> Shm MMDAT area (addr=56E82000 leng=17248256 end=57EF5000)
    A  RFC Destination> destination ides_I04_00 host ides system I04 systnr 0 (ides_I04_00)
    A  RFC Options> H=ides,S=00
    A  RFC FRFC> fallback activ but this is not a central instance.
    A   A  RFC rfc/signon_error_log = -1
    A  RFC rfc/dump_connection_info = 0
    A  RFC rfc/dump_client_info = 0
    A  RFC rfc/cp_convert/ignore_error = 1
    A  RFC rfc/cp_convert/conversion_char = 23
    A  RFC rfc/wan_compress/threshold = 251
    A  RFC rfc/recorder_pcs not set, use defaule value: 1
    A  RFC rfc/delta_trc_level not set, use default value: 0
    A  RFC rfc/no_uuid_check not set, use default value: 0
    A  RFC Method> initialize RemObjDriver for ABAP Objects
    A  Hotpackage version: 38
    M  ThrCreateShObjects        allocated 9394 bytes at 0FFD0040
    N  SsfSapSecin: putenv(SECUDIR=C:\usr\sap\I04\DVEBMGS00\sec): ok
    N N  =================================================
    N  === SSF INITIALIZATION:
    N  ===...SSF Security Toolkit name SAPSECULIB .
    N  ===...SSF trace level is 0 .
    N  ===...SSF library is C:\usr\sap\I04\SYS\exe\run\sapsecu.dll .
    N  ===...SSF hash algorithm is SHA1 .
    N  ===...SSF symmetric encryption algorithm is DES-CBC .
    N  ===...sucessfully completed.
    N  =================================================
    N  MskiInitLogonTicketCacheHandle: Logon Ticket cache pointer retrieved from shared memory.
    N  MskiInitLogonTicketCacheHandle: Workprocess runs with Logon Ticket cache.
    W  =================================================
    W  === ipl_Init() called
    W    ITSP Running against db release 620!
    W    ITSP Disable Kernel Web GUI functionality
    W  === ipl_Init() returns 2, ITSPE_DISABLED: Service is disabled (sapparam)
    W  =================================================
    B B Fri Aug 31 16:10:05 2007
    B  dbtran INFO (init_connection '<DEFAULT>' [MSSQL:640.00]):
    B   max_blocking_factor =  50,  max_in_blocking_factor      = 255,
    B   min_blocking_factor =   5,  min_in_blocking_factor      =  10,
    B   prefer_union_all    =   1,  prefer_union_for_select_all =   0,
    B   prefer_fix_blocking =   0,  prefer_in_itab_opt          =   0,
    B   convert AVG         =   1,  alias table FUPD            =   0,
    B   escape_as_literal   =   0,  opt GE LE to BETWEEN        =   0,
    B   select *            =0x00,  character encoding          =SBCS / []:X,
    B   use_hints           = abap->1, dbif->0x1, upto->0, rule_in->0,
    B                         rule_fae->0, concat_fae->0, concat_fae_or->0
    I I Fri Aug 31 16:10:10 2007
    I  MPI<c>9#3 Peak buffer usage: 5 (@ 64 KB)
    S  server @>SSRV:ides_I04_00@< appears or changes (state 1)
    S  server @>SSRV:ides_I04_00@< appears or changes (state 1)
    S  server @>SSRV:ides_I04_01@< appears or changes (state 1)
    E E Fri Aug 31 16:10:11 2007
    E  Replication is disabled
    N N Fri Aug 31 16:10:28 2007
    N  login/password_change_for_SSO : 1 -> 1
    B B Fri Aug 31 16:10:38 2007
    B  table logging switched off for all clients
    B B Fri Aug 31 16:10:41 2007
    B  dbmyclu : info : my major identification is 3232245831, minor one 0.
    B  dbmyclu : info : Time Reference is 1.12.2001 00:00:00h GMT.
    B  dbmyclu : info : my uuid is 96AAC2654435DC46AFA4C31629BE366F.
    B  dbmyclu : info : current optimistic cluster level: 3
    B  dbmyclu : info : pessimistic reads set to 2.
    S S Fri Aug 31 16:15:55 2007
    S  found spool memory service RSPO-ACTIONS at 1DF34B50
    M M Fri Aug 31 16:20:14 2007
    M  call semaphore clean-up function ...
    M  ***LOG Q0E=> DpSigGenHandler, Exception (c0000005) [dpnttool.c   462]
    M  -
    C-STACK -
    SAP (R) - R/3(TM) Callstack, Version 1.0
    Copyright (C) SAP AG. All rights reserved.
    Application exception occurred:
    Exception : c0000005 (Access Violation)
    App       : disp+work.EXE (pid=1680)
    When      : 8/31/2007 16:20:14.837
    Threads   : 2
    Computer Name       : IDES
    User Name           : SAPServiceI04
    Number of Processors: 2
    Processor Type: x86 Family 15 Model 6 Stepping 4
    Windows Version     : 5.2 Current Build: 3790
    State Dump for Thread Id 9cc
    eax=00000000 ebx=00000000 ecx=00000014 edx=00000000 esi=003860ec edi=003860c0
    eip=7c82ed54 esp=0300daa8 ebp=0300dab8 iopl=0         nv up ei pl nz ac pe nc
    cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00000212
    function : MmxFree2
           00f35dde 2b0568e59701  sub eax,[MmxUheaderSz (0197e568)] ds:0197e568=00000010
           00f35de4 50               push    eax
           00f35de5 68dd000000       push    0xdd
           00f35dea ffb4246c010000   push    dword ptr [esp+0x16c]  ss:0300dc14=7c82f9dd
           00f35df1 e890ac1200       call    memset (01060a86)
           00f35df6 83c40c           add     esp,0xc
           00f35df9 8b4308           mov     eax,[ebx+0x8]          ds:0300d006=2bf38b08
           00f35dfc 8bf3             mov     esi,ebx
           00f35dfe 2b730c           sub     esi,[ebx+0xc]          ds:0300d006=2444890c
           00f35e01 89442418         mov     [esp+0x18],eax         ss:0601aaaf=00000000
    FAULT-> 00f35e05 f60601           test    byte ptr [esi],0x1           ds:003860ec=08
           00f35e08 7513             jnz     MmxFree2+0x4cf (00f35e1d)
           00f35e0a 8bce             mov     ecx,esi
           00f35e0c e814a7ffff       call    MmxIBlockRemove (00f30525)
           00f35e11 8b4308           mov     eax,[ebx+0x8]          ds:0300d006=08460108
           00f35e14 014608           add     [esi+0x8],eax          ds:033930f2=00000000
           00f35e17 89742414         mov     [esp+0x14],esi         ss:0601aaaf=00000000
           00f35e1b 8bde             mov     ebx,esi
           00f35e1d 8b7308           mov     esi,[ebx+0x8]          ds:0300d006=f6f30308
           00f35e20 03f3             add     esi,ebx
           00f35e22 f60601           test    byte ptr [esi],0x1           ds:003860ec=08
           00f35e25 750d             jnz     MmxFree2+0x4e6 (00f35e34)
    --> Stack Back Trace <--
    FramePtr ReturnAd Param#1  Param#2  Param#3  Param#4  Function Name
    0300e648 00746014 3cc00548 3d07d010 06751220 00000000 disp+work!MmxFree2 [mmxx.c (2440)]
    0300e668 006450a7 00000000 00000001 3cc88e78 3cc485e8 disp+work!ab_sqlsclose [absapsql.c (8104)]
    0300e690 006466c6 00000013 00750af1 00000000 000000cd disp+work!ab_popbst [abstacks.c (4763)]
    0300e698 00750af1 00000000 000000cd 00000000 01c720fa disp+work!ab_poprsql [abstacks.c (1167)]
    0300e6cc 006e0f51 00000000 3d170778 00000000 00f00105 disp+work!ab_jsqls [absapsql.c (1306)]
    0300e770 00766be4 3d1715b3 3d170778 00000000 01afb3a4 disp+work!ab_extri [abextri.c (431)]
    0300e784 007ebf1c 00000000 7c36a42b 000004b6 00571b1a disp+work!ab_xevent [abrunt1.c (261)]
    0300e794 00571b1a 3d171080 0000002e 3d170778 3d17139a disp+work!ab_dstep [abdynpro.c (460)]
    0300e7bc 005740de 3d170778 3d170778 7c36a42b 00000000 disp+work!dynpmcal [dymainstp.c (2312)]
    0300e7d4 00573680 3d17139a 3d170778 00000003 0300fdcc disp+work!dynppai0 [dymainstp.c (1043)]
    0300e7f0 00549340 3d170778 00000002 00000001 00000000 disp+work!dynprctl [dymainstp.c (350)]
    0300fdcc 004747f4 00000002 0300fe74 00000001 00497626 disp+work!dynpen00 [dymain.c (1375)]
    0300fddc 00497626 00000002 00000000 003860a8 00000002 disp+work!Thdynpen00 [thxxhead.c (4353)]
    0300feec 004979e0 00000001 7ffd4000 00000000 00000000 disp+work!TskhLoop [thxxhead.c (4117)]
    0300ff04 00421d07 00000000 00000000 0300ff60 00401059 disp+work!tskhstart [thxxhead.c (1038)]
    0300ff14 00401059 00000003 003860a8 00000001 00000000 disp+work!DpMain [dpxxdisp.c (1009)]
    0300ff60 01060bcf 00000003 003860a8 003828f8 0152d000 disp+work!main [thxxanf.c (58)]
    0300ffc0 77e523e5 00000000 00000000 7ffd4000 80a56be3 disp+work!mainCRTStartup [crtexe.c (398)]
    0300fff0 00000000 01060a8c 00000000 00905a4d 00000003 kernel32!IsProcessorFeaturePresent
    State Dump for Thread Id d2c
    eax=0000005e ebx=00000103 ecx=00000010 edx=000719bb esi=00000000 edi=00000000
    eip=7c82ed54 esp=04a1feb0 ebp=04a1fef4 iopl=0         nv up ei pl zr na po nc
    cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00000246
    function : KiFastSystemCallRet
           7c82ed54 c3               ret
           7c82ed55 8da42400000000   lea     esp,[esp]              ss:04a1feb0=7c821514
           7c82ed5c 8d642400         lea     esp,[esp]              ss:07a2ceb7=????????
    --> Stack Back Trace <--
    FramePtr ReturnAd Param#1  Param#2  Param#3  Param#4  Function Name
    04a1fef4 00fc37ec 000006ac 00000000 00000000 0038cd48 ntdll!KiFastSystemCallRet
    04a1ff84 7c349565 00000000 00000000 00000000 0038cbd0 disp+work!SigIMsgFunc [signt.c (559)]
    04a1ffb8 77e6608b 0038cbd0 00000000 00000000 0038cbd0 MSVCR71!endthreadex
    04a1ffec 00000000 7c3494f6 0038cbd0 00000000 00000000 kernel32!GetModuleFileNameA
    M  -
    M M Fri Aug 31 16:20:16 2007
    M  call clean-up function ...
    M  in_ThErrHandle: 1
    M  ThSigHandler: signal (step 4, th_errno 11, action 4)
    M M  Info for wp 0
    M M    stat = 4
    M    reqtype = 1
    M    act_reqtype = 1
    M    rq_info = 0
    M    tid = 9
    M    mode = 0
    M    len = 787
    M    rq_id = 423
    M    rq_source = 1
    M    last_tid = 9
    M    last_mode = 0
    M    int_checked_resource(RFC) = 0
    M    ext_checked_resource(RFC) = 0
    M    int_checked_resource(HTTP) = 0
    M    ext_checked_resource(HTTP) = 0
    M    report = >                                        <
    M    action = 0
    M    tab_name = >                              <
    M M  Modeinfo for User T9/M0
    M M    tm state = 2
    M    uid = 13
    M    term type = 0x4
    M    display = 0x8
    M    cpic_no = 0
    M    cpic_idx = -1
    M    usr = >ABAP1       <
    M    terminal = >DDDC393             <
    M    client = >120<
    M    conversation_ID = >        <
    M    appc_tm_conv_idx = -1
    M    imode = 1
    M    mode state = 0x12
    M    task_type = ZTTADIA
    M    th_errno = 11
    M    rollout_reason = 1
    M    last_rollout_level = 7
    M    async_receives = 0
    M    cpic_receive = 0
    M    em handle = 0
    M    roll state = 4
    M    abap state = 4
    M    em state = 3
    M    eg state = 1
    M    spa state = 3
    M    enq state = 0
    M    next hook = T-1/U-1/M255
    M    master hook = T-1/U-1/M255
    M    slave hook = T-1/U-1/M255
    M    debug_tid = 255
    M    debug_mode = 0
    M    mode type = 0x1
    M    debug = 0
    M    tcode = >ME21N               <
    M    client conversation_ID = >        <
    M    server conversation_ID = >        <
    M    lock = 0
    M    max enq infos = 9
    M    act enq infos = 2
    M    em_hyper_hdl = 57F03BD8
    M    plugin_info = NULL
    M    act_plugin_hdl = -1
    M    act_plugin_no  = 0
    M    max_plugin_no  = 0
    M M  Adresse   Offset  Data from input buffer
    M  -
    M  054A7D70  000000  00000000 00000000 01502700 00000000 |.........P'.....|
    M  054A7D80  000016  00000000 0000009f 74100623 00170000 |........t..#....|
    M  054A7D90  000032  04880131 31363000 77696e64 6f77732d |...1160.windows-|
    M  054A7DA0  000048  31323532 00100409 00033731 3010041d |1252......710...|
    M  054A7DB0  000064  00013010 040f0004 000012ad 10041900 |..0.............|
    M  054A7DC0  000080  02000010 05010016 000d0000 000d002b |...............+|
    M  054A7DD0  000096  a1001fa2 00000000 00000000 0000100c |................|
    M  054A7DE0  000112  08001000 00029f00 00047400 00029f00 |..........t.....|
    M  054A7DF0  000128  00047410 0a010009 00000000 00000000 |..t.............|
    M  054A7E00  000144  00100a03 00090100 00000000 78001f10 |............x...|
    M  054A7E10  000160  0a030009 03000900 00007800 0a100a03 |..........x.....|
    M  054A7E20  000176  00090200 00000300 75000a10 0a030009 |........u.......|
    M  054A7E30  000192  01000000 00007500 0a100a05 00090100 |......u.........|
    M  054A7E40  000208  00000000 75000910 090e00c8 00c80000 |....u...........|
    M  054A7E50  000224  00000075 00090000 23000700 0200000c |...u....#.......|
    M  054A7E60  000240  01000000 00002300 82003c00 00000003 |......#...<.....|
    M  054A7E70  000256  00070000 00070000 00000000 00000000 |................|
    M  054A7E80  000272  00000000 00000000 00020005 00020002 |................|
    M  054A7E90  000288  000c0014 00110003 0001000a 000e0005 |................|
    M  054A7EA0  000304  00060003 000a000f 000c0008 000a000c |................|
    M  054A7EB0  000320  000c0008 00030003 0002000a 0005000a |................|
    M  054A7EC0  000336  0005000a 0005000a 00050005 00011100 |................|
    M  054A7ED0  000352  11001100 11001100 11001100 11001100 |................|
    M  054A7EE0  000368  11001100 11001100 11001100 11001100 |................|
    M  054A7EF0  000384  11001100 11001100 11001100 11001100 |................|
    M  054A7F00  000400  11001100 11001100 11001100 11001100 |................|
    M  054A7F10  000416  11001100 100c0200 18000000 07000000 |................|
    M  054A7F20  000432  23000000 07000000 00000000 00000000 |#...............|
    M  054A7F30  000448  00100909 00180001 00077920 20202020 |..........y     |
    M  054A7F40  000464  20202020 20202020 31303030 0000100a |        1000....|
    M  054A7F50  000480  01000900 00000000 00000000 100a0300 |................|
    M  054A7F60  000496  09010000 00000078 001f100a 03000902 |.......x........|
    M  -
    M M  *****************************************************************************
    M  *
    M  *  LOCATION    SAP-Server ides_I04_00 on host ides (wp 0)
    M  *  ERROR       ThSigHandler: signal
    M  *
    M  *  TIME        Fri Aug 31 16:20:16 2007
    M  *  RELEASE     640
    M  *  COMPONENT   Taskhandler
    M  *  VERSION     1
    M  *  RC          11
    M  *  MODULE      thxxhead.c
    M  *  LINE        9555
    M  *  COUNTER     3
    M  *
    M  *****************************************************************************
    M M  PfStatDisconnect: disconnect statistics
    M  Entering TH_CALLHOOKS
    M  ThCallHooks: call hook >SAP-Trace buffer write< for event BEFORE_DUMP
    M  TrThHookFunc: called for WP dump
    M  ThCallHooks: call hook >ThrSaveSPAFields< for event BEFORE_DUMP
    M  ThrSaveSPAFields: save spa fields
    M  Entering ThSetStatError
    C  SQLBREAK: DBSL_CMD_SQLBREAK: CbOnCancel was set. rc: 1 BREAK_REQUESTED
    M  ThIErrHandle: don't try rollback again
    M  ThIErrHandle: call ThrCoreInfo
    M  ThDelEnqInfo: del enq_own >20070831161118747000000000ides............................</1
    M  ThDelEnqInfo: act enq info: 1
    M  ThDelEnqInfo: del enq_own >20070831161118747000010000ides............................</2
    M  ThDelEnqInfo: act enq info: 0
    A  TH VERBOSE LEVEL FULL
    C Fri Aug 31 16:20:17 2007
    C  SQLBREAK: BREAK_REQUESTED upgraded to BREAK_IN_PROGRESS sloledb.cpp 4187
    M Fri Aug 31 16:20:18 2007
    M  SosSearchAnchor: search anchor for 4
    M  ThIErrHandle: Entering ThReplyToMsg
    M  ThIErrHandle: Entering ThErrHdlUser
    M  ThErrHdlUser: set th_errno (11)
    M  ThErrHdlUser: save context
    M  ThSaveContext: roll out
    M  ThRollOut: roll out T9/U13/M0 (level=7, short_roll_out=0)
    M  ThRollOut: call rrol_out (1)
    M  ThRollOut: act roll state = DP_ROLLED_OUT
    M  ThRollOut: roll level <> 0, don't call ab_rollout
    M  ThRollOut: full roll out of U13 M0 I1 (Level 7) ok
    M  ThCheckEmMagic: check em magic at 3CC00A80 for T9/M0/I1
    M  ThCheckEmMagic: em magic at 3CC00A80 for T9/M0/I1 o.k.
    M  ThEmContextDetach2: detach T9/M0 from em memory (em_hdl=0, force=0)
    M  ThEmContextDetach2: reset local em info
    B  Disconnecting from ALL connections:
    B  Wp  Hdl ConName          ConId     ConState     TX  PRM RCT MAX OPT Date     Time   DBHost         B  000 000 R/3              000000000 ACTIVE       YES YES NO  255 255 20070831 160937 IDES           C  Rollback Work (0)
    B  Disconnected from connection 0
    B  statistics db_con_commit (com_total=149, com_tx=34)
    B  statistics db_con_rollback (roll_total=1, roll_tx=0)
    M  ***LOG Q02=> wp_halt, WPStop (Workproc 0 1680) [dpnttool.c   357]
    M  return from clean-up function ...
    trc file: "dev_w0", trc level: 1, release: "640"
    ACTIVE TRACE LEVEL           1
    ACTIVE TRACE COMPONENTS      all, M
    B B Fri Aug 31 16:20:36 2007
    B  create_con (con_name=R/3)
    B  Loading DB library 'C:\usr\sap\I04\SYS\exe\run\dbmssslib.dll' ...
    B  Library 'C:\usr\sap\I04\SYS\exe\run\dbmssslib.dll' loaded
    B  Version of 'C:\usr\sap\I04\SYS\exe\run\dbmssslib.dll' is "640.00", patchlevel (0.26)
    B  New connection 0 created
    M systemid   560 (PC with Windows NT)
    M relno      6400
    M patchlevel 0
    M patchno    25
    M intno      20020600
    M make:      multithreaded, ASCII
    M pid        2460
    M
    M  ***LOG Q0Q=> tskh_init, WPStart (Workproc 0 2460) [dpxxdisp.c   1160]
    I  MtxInit: -2 0 0
    M  DpSysAdmExtCreate: ABAP is active
    M  DpSysAdmExtCreate: JAVA is not active
    M  DpShMCreate: sizeof(wp_adm)        7456    (828)
    M  DpShMCreate: sizeof(tm_adm)        2219848    (11044)
    M  DpShMCreate: sizeof(wp_ca_adm)        18000    (60)
    M  DpShMCreate: sizeof(appc_ca_adm)    6000    (60)
    M  DpShMCreate: sizeof(comm_adm)        192000    (384)
    M  DpShMCreate: sizeof(vmc_adm)        0    (320)
    M  DpShMCreate: sizeof(wall_adm)        (22440/34344/56/100)
    M  DpShMCreate: SHM_DP_ADM_KEY        (addr: 05230040, size: 2506248)
    M  DpShMCreate: allocated sys_adm at 05230040
    M  DpShMCreate: allocated wp_adm at 052317A8
    M  DpShMCreate: allocated tm_adm_list at 052334C8
    M  DpShMCreate: allocated tm_adm at 052334F0
    M  DpShMCreate: allocated wp_ca_adm at 05451438
    M  DpShMCreate: allocated appc_ca_adm at 05455A88
    M  DpShMCreate: allocated comm_adm_list at 054571F8
    M  DpShMCreate: allocated comm_adm at 05457210
    M  DpShMCreate: allocated vmc_adm_list at 05486010
    M  DpShMCreate: system runs without vmc_adm
    M  DpShMCreate: allocated ca_info at 05486038
    M  DpShMCreate: allocated wall_adm at 05486040
    X  EmInit: MmSetImplementation( 2 ).
    X  <ES> client 0 initializing ....
    X  Using implementation std
    M  <EsNT> Memory Reset enabled as NT default
    X  ES initialized.
    M M Fri Aug 31 16:20:37 2007
    M  calling db_connect ...
    C  Thank You for using the SLOLEDB-interface
    C  Using dynamic link library 'C:\usr\sap\I04\SYS\exe\run\dbmssslib.dll'
    C  dbmssslib.dll patch info
    C    patchlevel   0
    C    patchno      26
    C    patchcomment MSSQL: GetNextMsst1 error (754819)
    C  np:(local) connection used on IDES
    C  Using Provider SQLNCLI
    C  Provider Release:9.00.1399.06
    C C Fri Aug 31 16:20:38 2007
    C  Using Provider SQLNCLI
    C  Cache sizes: header 52 bytes, 20000 names (26720000 bytes), 1000 dynamic statements (5432000 bytes), total 32152052 bytes
    C  Using shared procedure name cache IDES_I04I04_I04_MEM initialized by another process.
    C  Connected to db server : [IDES] server_used : [np:(local)], dbname: I04, dbuser: i04
    C  pn_id:IDES_I04I04_I04
    B  Connection 0 opened
    B  Wp  Hdl ConName          ConId     ConState     TX  PRM RCT MAX OPT Date     Time   DBHost         B  000 000 R/3              000000000 ACTIVE       NO  YES NO  255 255 20070831 162037 IDES           C  The IRow interface is supported by this OLEDB provider
    M  db_connect o.k.
    I  MtxInit: 0 0 0
    M  SHM_PRES_BUF            (addr: 098E0040, size: 4400128)
    M  SHM_ROLL_AREA        (addr: 68200040, size: 160432128)
    M  SHM_PAGING_AREA        (addr: 09D20040, size: 72351744)
    M  SHM_ROLL_ADM            (addr: 0E230040, size: 1602056)
    M  SHM_PAGING_ADM        (addr: 0E3C0040, size: 525344)
    M  ThCreateNoBuffer        allocated 320144 bytes for 1000 entries at 0E450040
    M  ThCreateNoBuffer        index size: 3000 elems
    M  ThCreateVBAdm        allocated 7424 bytes (50 server) at 0E4A0040
    X  EmInit: MmSetImplementation( 2 ).
    X  <ES> client 0 initializing ....
    X  Using implementation std
    X  ES initialized.
    B  db_con_shm_ini:  WP_ID = 0, WP_CNT = 9
    B  dbtbxbuf: Buffer TABL  (addr: 134C00C8, size: 30000128, end: 1515C4C8)
    B  dbtbxbuf: Buffer TABLP (addr: 0F3000C8, size: 10240000, end: 0FCC40C8)
    B  dbexpbuf: Buffer EIBUF (addr: 151600D0, size: 4194304, end: 155600D0)
    B  dbexpbuf: Buffer ESM   (addr: 155700D0, size: 4194304, end: 159700D0)
    B  dbexpbuf: Buffer CUA   (addr: 0FCE00D0, size: 3072000, end: 0FFCE0D0)
    B  dbexpbuf: Buffer OTR   (addr: 159800D0, size: 4194304, end: 15D800D0)
    M  rdisp/reinitialize_code_page -> 0
    M  icm/accept_remote_trace_level -> 0
    C  Using Provider SQLNCLI
    S  *** init spool environment
    S  initialize debug system
    T  Stack direction is downwards.
    T  debug control: prepare exclude for printer trace
    T  new memory block 15EF7370
    S  spool kernel/ddic check: Ok
    S  using table TSP02FX for frontend printing
    S  1 spool work process(es) found
    S  frontend print via spool service enabled
    S  printer list size is 150
    S  printer type list size is 50
    S  queue size (profile)   = 300
    S  hostspool list size = 3000
    S  option list size is 30
    S      found processing queue enabled
    S  found spool memory service RSPO-RCLOCKS at 1DEF0098
    S  doing lock recovery
    S  setting server cache root
    S  found spool memory service RSPO-SERVERCACHE at 1DEF02C8
    S    using messages for server info
    S  size of spec char cache entry: 165020 bytes (timeout 100 sec)
    S  size of open spool request entry: 1152 bytes
    S  immediate print option for implicitely closed spool requests is disabled
    A A  -PXA--
    A  PXA INITIALIZATION
    A  PXA: Fragment Size too small: 195 MB, reducing # of fragments
    A  System page size: 4kb, admin_size: 11476kb.
    A  Attached to PXA (address 24550040, size 400000K)
    A  abap/pxa = shared protect gen_remote
    A  PXA INITIALIZATION FINISHED
    A  -PXA--
    A A  ABAP ShmAdm attached (addr=56AF9000 leng=20955136 end=57EF5000)
    A  >> Shm MMADM area (addr=56E610E0 leng=134752 end=56E81F40)
    A  >> Shm MMDAT area (addr=56E82000 leng=17248256 end=57EF5000)
    A  RFC Destination> destination ides_I04_00 host ides system I04 systnr 0 (ides_I04_00)
    A  RFC Options> H=ides,S=00
    A  RFC FRFC> fallback activ but this is not a central instance.
    A   A  RFC rfc/signon_error_log = -1
    A  RFC rfc/dump_connection_info = 0
    A  RFC rfc/dump_client_info = 0
    A  RFC rfc/cp_convert/ignore_error = 1
    A  RFC rfc/cp_convert/conversion_char = 23
    A  RFC rfc/wan_compress/threshold = 251
    A  RFC rfc/recorder_pcs not set, use defaule value: 1
    A  RFC rfc/delta_trc_level not set, use default value: 0
    A  RFC rfc/no_uuid_check not set, use default value: 0
    A  RFC Method> initialize RemObjDriver for ABAP Objects
    A  Hotpackage version: 38
    M  ThrCreateShObjects        allocated 9394 bytes at 0FFD0040
    N  SsfSapSecin: putenv(SECUDIR=C:\usr\sap\I04\DVEBMGS00\sec): ok
    N N  =================================================
    N  === SSF INITIALIZATION:
    N  ===...SSF Security Toolkit name SAPSECULIB .
    N  ===...SSF trace level is 0 .
    N  ===...SSF library is C:\usr\sap\I04\SYS\exe\run\sapsecu.dll .
    N  ===...SSF hash algorithm is SHA1 .
    N  ===...SSF symmetric encryption algorithm is DES-CBC .
    N  ===...sucessfully completed.
    N  =================================================
    N  MskiInitLogonTicketCacheHandle: Logon Ticket cache pointer retrieved from shared memory.
    N  MskiInitLogonTicketCacheHandle: Workprocess runs with Logon Ticket cache.
    W  =================================================
    W  === ipl_Init() called
    W    ITSP Running against db release 620!
    W    ITSP Disable Kernel Web GUI functionality
    W  === ipl_Init() returns 2, ITSPE_DISABLED: Service is disabled (sapparam)
    W  =================================================
    M  ThCheckPrevUser: clean previous user T9/U13/M0
    M M  Modeinfo for User T9/M0
    M M    tm state = 2
    M    uid = 13
    M    term type = 0x4
    M    display = 0x8
    M    cpic_no = 0
    M    cpic_idx = -1
    M    usr = >ABAP1       <
    M    terminal = >DDDC393             <
    M    client = >120<
    M    conversation_ID = >        <
    M    appc_tm_conv_idx = -1
    M    imode = 1
    M    mode state = 0x12
    M    task_type = ZTTADIA
    M    th_errno = 11
    M    rollout_reason = 1
    M    last_rollout_level = 7
    M    async_receives = 0
    M    cpic_receive = 0
    M    em handle = 0
    M    roll state = 3
    M    abap state = 3
    M    em state = 2
    M    eg state = 1
    M    spa state = 3
    M    enq state = 0
    M    next hook = T-1/U-1/M255
    M    master hook = T-1/U-1/M255
    M    slave hook = T-1/U-1/M255
    M    debug_tid = 255
    M    debug_mode = 0
    M    mode type = 0x1
    M    debug = 0
    M    tcode = >ME21N               <
    M    client conversation_ID = >        <
    M    server conversation_ID = >        <
    M    lock = 0
    M    max enq infos = 9
    M    act enq infos = 0
    M    em_hyper_hdl = 57F03BD8
    M    plugin_info = NULL
    M    act_plugin_hdl = -1
    M    act_plugin_no  = 0
    M    max_plugin_no  = 0
    M C  The IRow interface is supported by this OLEDB provider
    M  ***LOG R47=> ThResFree, delete (001023) [thxxmode.c   1283]

    I Got the same problem but at that time i have installed GUI of lower version. WHen i have upgraded the GUI it worked fine. Better you check once the SAPGUI configuration.

  • How do I access session data through an EJB?

    Hi
    How do I access session data through an EJB?
    I am currantly developing a Web service (using ejb's, JBoss.net and Apache Axis). A client making a call to this Web service, is expecting a bussiness-object in return. My problem is that this bussiness-object i stored in a users session data. How do I retrieve this bussiness-object from the users session.
    I have read that this does not work with httpsessions, is this true? If this is true, is it possible to store the bussiness object in a JavaBean e.g:
    <jsp:useBean id="userContextWebImpl" scope="session" class="com.ac.march.client.UserContextWebImpl">
    <%
    String key = "test";
    String value = "This is the value";
    userContextWebImpl.setValue( key, value1 );
    %>
    </jsp:useBean>
    and then retrieve this information through the EJB? Or is it possible to do this by using Statfull JavaBeans? Or can this be done through a nother solution?
    Please help!

    I have created a JavaBean with scope="application" to store some data. The data is stored when a user prefomes a spesific task.
    A different person then makes a call to a Web-Service on the server. The Web-Service then asks an EJB to retrieve the data stored in the JavaBean (servlet cotext). In other words: How do I retrieve this data from the EJB?
    I have tried with this code, but with no luck.
    (ApplicationContextWebImpl is the JavaBean)
    public static String getBookingResult( String key )
         String myResult = null;
         String myKey = key;
         ApplicationContextWebImpl applicationContextWebImpl = null;
         try
              applicationContextWebImpl = new ApplicationContextWebImpl();
              myResult = (String)applicationContextWebImpl.getValue( key );
         catch ( java.rmi.RemoteException e )
         return myResult;
    }

Maybe you are looking for

  • Captivate 5 and preloader: Error #1065: Variable CPPreloader is not defined.

    Hi, If I add a preloader swf (any of those which ship with Captivate 5 - in \Gallery\Preloaders\AS3) - then when I publish the movie - the flash player throws an error: ReferenceError: Error #1065: Variable CPPreloader is not defined. Then (mostly) c

  • How do I install windows on SSD and use HDD as data + program storage?

    I just bought a 240 gb SSD drive, it's installed on my X220t laptop and now I'm about to install windows onto it. Before I do that, how do I make sure that I clean install windows 7 on my SSD drive, and have my current drive set as a backup drive for

  • Distribution of forms - Acrobat 9 Pro Extended

    I prepared a form for distribution and used the "distribute via adobe.com" option.  I input several valid email addresses and submitted the file, but nobody received the form and I received an error in my email saying invalid emails!  I immediately t

  • Sharing an SD card or USB stick across the network

    Why won't OSX allow me to share a USB drive or SD card across my network? I can plug it into my Mac, go to System Preferences > Sharing, and add the card/stick/whatever as a Shared Folder, but the ' + - ' buttons allowing me to assign users to it are

  • Safari display "Plug-in - click to load" every time.

    Hi, when Im displaying any flash site safari allways wants me to click on a flash placeholder to enable it. I had clicked the "enable plug-ins" in security options. its on. Please help, its getting really anoying. Thanks.