Terminate process or database session by User ID

I have an web application with Client (JSP etc.) - Application (APACHE TOMCAT) and Database (Oracle) tiers. The application user IDs are managed by application layer and only one user ID is used to connect to database.
As a DBA, how do I identify the "actual" application user that is running a particular process/database session? The purpose of identifying processes is due to many reasons such as to terminate un-used process, intentionally terminating a particular process (due to any reason), monitoring user access to a particular database, tables etc.
Any idea of how to implement the above-mentioned user access control by DBA?
Thanks
ktt

You can't unless the application plays nice and passes it to you.
It is this lack of cooperation that leads many of us to be less than pleased with most middleware.

Similar Messages

  • Single Database Session Per User in ADF/BC Application

    Hi, I am using ADF with BC (JDeveloper 11.1.1.1). My application contains multiple application modules, each connected to the same JDBC data source. On the app server, I have configured the data source to use Identity Based Connection Pooling.
    My current configuration is resulting in numerous database sessions for each user. I have a requirement to use only a single database session per user HTTP session. Is there any way to configure the application modules to achieve this?
    Thanks,
    Brad

    Hi,
    use a single root Am module and make sure the others are used as nested modules. This will create a single connection
    Frank

  • Extract Process creating a lot of database sessions on Source Database

    Hi
    We have a GoldenGate installation with 9 extracts ( and 9 pumps ).
    With all GG processes ( inc MGR) down then there are 25 sessions on the source database, ( as goldengate user ), and when we start all processes there are 358 sessions in the database.
    I can't see anything in doc E35209_01 (or ref guide e29399) as to how to limit sessions that GoldenGate creates. Can anyone assist ?
    Thanks in anticipation of your assistance
    Ian

    Hi
    Info as reqested ( note : some content truncated as just a long list of tables
    [oracle@uknp78sr-RDBMS dirprm]$ cat EPBRM01.prm
    extract EPBRM01
    SETENV (NLS_LANG="ENGLISH_UNITED KINGDOM.AL32UTF8")
    include ./dirinc/SourceConnect.inc
    TRANLOGOPTIONS DBLOGREADER BUFSIZE 4194304
    EOFDELAY 2
    ENCRYPTTRAIL
    --using relative path from $GG_HOME for Trailfiles
    exttrail ./dirdat/EPBRM01/PR
    NOCOMPRESSDELETES
    NODYNAMICRESOLUTION
    WARNLONGTRANS 1h, CHECKINTERVAL 30m
    include ./dirinc/Report_Statements.inc
    include ./dirinc/EPBRM01_Admin_Tables1.inc
    include ./dirinc/EPBRM01_App_Tables1.inc
    [oracle@uknp78sr-RDBMS dirprm]$ cat ../dirinc/SourceConnect.inc
    --Standard Connection String used by Extract ,  Pump ( where not using passthrough )
    USERID GG_USER, password AADAAAAAAAAAAATAHHLEQHQIUFYFFCUISBSHJBQDLJOHNANDVCRABHTBOBLDOCYCAFCICHSDUESGSJEELCJBZGPHTBAAPGNHPEOIGCQCLCWCXFBA ENCRYPTKEY PRBRM_DATABASE
    [oracle@uknp78sr-RDBMS dirprm]$ head -15 ../dirinc/Report_Statements.inc
    REPORTCOUNT EVERY 1 MINUTES, RATE
    Report at 00:00
    Report at 01:00
    Report at 02:00
    Report at 03:00
    Report at 04:00
    Report at 05:00
    Report at 06:00
    Report at 07:00
    Report at 08:00
    Report at 09:00
    Report at 10:00
    Report at 11:00
    Report at 12:00
    Report at 13:00
    [oracle@uknp78sr-RDBMS dirprm]$ cat ../dirinc/EPBRM01_Admin_Tables1.inc
    --Heartbeat Table
    Table GG_ADM.GG_HEARTBEAT_LCL,
    TOKENS (EXT_READTIME = @DATE ("YYYY-MM-DD HH:MI:SS.FFFFFF","JTS",@GETENV ("JULIANTIMESTAMP"))
    FILTER (@STREQ (EXT_NAME, @GETENV ("GGENVIRONMENT","GROUPNAME" )) );
    [oracle@uknp78sr-RDBMS dirprm]$ head -20 ../dirinc/EPBRM01_App_Tables1.inc
    TABLE PIN01.ACCOUNT_EXEMPTIONS_T;
    TABLE PIN01.ACCOUNT_INTERNAL_NOTES_BUF;
    TABLE PIN01.ACCOUNT_NAMEINFO_T;
    TABLE PIN01.ACCOUNT_PHONES_T;
    TABLE PIN01.ACCOUNT_T;
    TABLE PIN01.ACTIVE_RESERVATIONS_T;
    TABLE PIN01.ACTIVE_SESSION_RESV_LIST_T;
    TABLE PIN01.ACTIVE_SESSION_T;
    TABLE PIN01.ACTIVE_SESSION_TELCO_GPRS_T;
    TABLE PIN01.ACTIVE_SESSION_TELCO_GSM_T;
    TABLE PIN01.ACTIVE_SESSION_TELCO_T;
    TABLE PIN01.ADMIN_ACTION_T;
    TABLE PIN01.ADMIN_CLIENT_USER_PREFS_BUF;
    TABLE PIN01.ADMSVC_LOCKINFO_T;
    TABLE PIN01.AES_CRYPT_DETAILS_T;
    TABLE PIN01.AMT_ACCOUNT_BATCH_TABLE_T;
    TABLE PIN01.AMT_BASE_DETAIL_T;
    TABLE PIN01.AMT_METADATA_T;
    TABLE PIN01.AMT_POID_TYPE_MAP_T;
    TABLE PIN01.ASSOCIATED_BUS_PROFILE_T;
    I suspect that due to some datatypes ( CLOB, BLOB, XMLTYPE, User defined type then some fetches may be being triggered ). Would parameter MAXFETCHSTATEMENTS make a difference here ?
    Thanks - Ian

  • How to Identify database sessions used by forms sso user sessions?

    Hi:
    When using forms with SSO, all database sessions are opened by the same OSUSER (usually oracle), from the same machine (usually the forms server) and by the same program (usually [email protected] [TNS V1-V3]).
    I need a way to identify the database session (v$session) that is beeing used by a specific SSO user. By using SSO, we say implicitly that all users using that SSO resource will be connect to the database by a specific database user.
    So, what can I do to identify the database session that a specific forms user is using ?
    Thanks
    Joao Oliveira

    You could try something like the following in a when new form instance trigger:
    declare
    authenticated_username varchar2(30);
    begin
    authenticated_username := get_application_property(`sso_userid');
    DBMS_APPLICATION_INFO.SET_CLIENT_INFO (
    client_info IN VARCHAR2);
    end;
    This will store the sso userid in the client_info field of v$session.
    I hope this works for you.
    Randy McGregor

  • Is Session Method has Asyn. processing while database update is Sync ?

    Hi SAP-ABAP Experts .
    Friends , How it is possible that 'Session Method has Asynchronous processing while database update is
    Synchronous ' , May u plz eloborate it .
    I am thinking if processing is Asynchronous then database update should be Asynchronous .
    How it is Synchronous ?
    Best Regards : Rajneesh

    Hi,
    CALL TRANSACTION tcod ... MODE mode
    The specified processing mode can accept the following values:
    'A' Display screen
    'E' Display screen only if an error occurs
    'N' No display
    If the addition MODE is not specified, the processing mode is set to 'A' .
    The MODE Parameter
    You can use the MODE parameter to specify whether data transfer processing should be displayed as it happens. You can choose between three modes:
    A Display all. All screens and the data that goes in them appear when you run your program.
    N No display. All screens are processed invisibly, regardless of whether there are errors or not. Control returns to your program as soon as transaction processing is finished.
    E Display errors only. The transaction goes into display mode as soon as an error in one of the screens is detected. You can then correct the error.
    Have a look at below link for details:
    Using CALL TRANSACTION USING for Data Transfer
    I hope it helps.
    Thanks,
    Kumar

  • Suddenly Database access to users gets stopped

    Hi All,
    We are in big trouble. Actually we have one mobile web application hosted. We are using Oracle 10g. Application works fine for sometime but suddenly database access to users gets stopped.
    We also have increased TEMP Table space. For now we are considering number of sessions getting established with Database as a cause for this problem. So please suggest me what are the things those may stop database access in such conditions. Which things I need to check to increase max number of users to database.
    Or if you think there is some other cause for this problem kindly help me to resolve it.
    Thanks & Regards,
    Vinayak

    Hi,
    Yes I checked for exact location and it's C:\oracle\product\10.2.0\admin\orcl\bdump.
    I checked with alert logs there and I found error as below but don't know whether this error is cause for our problem,Please have a look;
    Wed Mar 06 10:05:02 2013
    ksvcreate: Process(m000) creation failed
    but I don't think this error is cause for our problem,because latest error was on 06 March 2013 at 10:05 AM but we have faced this problem on yesterday for 14 times and those were number of times after morning 10:05 AM. For eg. 12:36,15:38,15:34,15:59,16:01 and more.... If this is the cause for our problem then there should be same error at mentioned times right?
    please suggest what next I suppose to do.
    Thanks
    Vinayak

  • How to link Form session number with Database session

    Hello all,
    We have some FRM-93000 errors in our application.log
    oracle\FRHome_1\j2ee\OC4J_BI_Forms\ap
    plication-deployments\formsapp\OC4J_BI_Forms_default_island_1\application.log
    The Session numer (in this case 348), is it possible to link this with the database session number, we want to know which users are experiencing these problems.
    07/07/26 15:33:20 formsweb: Forms session <348> aborted: unable to communicate w
    ith runtime process.
    07/07/26 15:33:20 formsweb: Forms session <348> exception stack trace:
    java.io.IOException: FRM-93000: Unexpected internal error.
    Thanks in advance
    Michiel.

    Is it possible to link with V$session. This will give the users connected to the database at that time/.
    Rajesh ALex

  • Forms Server Database session

    HI
    I'm having a problem these days:
    How many database sessions opens the formsserver?
    I saw that when opening a couple of internet connections with forms server under the same database user,formsserver opens only one database conn.
    Can someone clarify wich is logic of the conn opening?
    1.Does the server opens a conn for each web connections wich executes a form under different database user?
    2.Is it true that if opening many web sesions with forms modules using the same database user,the server is opening only one DB conn?
    Thanks,

    1) I believe yes on unix. But I noticed that Oracle on win2003 server, it bases on threads of a process. I did not get my understandings in sync yet.
    2) I think connection should be session based, only open one session for multiple sessions, it is hard to understand. But if it is on win2003 server, then I don't know now.

  • 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 to use your own database with your users to authenticate in a Web app?

    Hello, everybody!
    I'm starting to write my first web application and I'm going to use JSF, JPA and EJB3 in this application. One of the first things that I have to do on it is the authentication part where I'll have a page with a user name and a password for the user to login. So, as I'm new to all this in Java (I've already implemented this on .NET in the past), I was studying the Java EE 5 Tutorial, especifically the section "Example: Using Form-Based Authentication with a JSP Page". But I saw that the users that the sample application uses come from the file realm on the Application Server. The users are created there and assigned a name, a password and a group. After the users are in the Application Server we can simply uses forms authentication declaratively in the deployment descriptor (web.xml).
    But the problem is that this doesn't work to me as I already have my own database with my users, so I want to use it instead of having to create the users on the Application Server.
    So, I'm asking you how to do that. Of course I'm not expecting that you place the code here to me as I know that such a thing could be complicated. Instead, I'm asking if you know about some tutorial, article, book or something that teaches how to do what I want. But I would like to see theses examples using JSF and/or EJB3 because these are the technologies that I'm using to develop. It's a pity that the Java EE 5 Tutorial doesn't have an example using a custom database as I know that this situation is very common in the majority of web sites.
    Thank you very much.
    Marcos

    From memory, it goes like this... You just create a
    raw jdbc connection on your user database using a
    special "login" DB user account, which has
    permissions only to an "authenticate" stored query,
    which accepts two arguments: username & password, and
    returns a boolean 0 or 1 rows found.When I implemented this in .NET's ASP.NET I had the same solution. I had an special user created in the database that I used to log in. When the real user entered his username and password I was already logged in and I had just to check his username and password agains the right table in my database.
    But that was only possible bacause when I connected to the database using my hidden user, I used the rights APIs in ASP.NET that coordinate the authentication process. This means that before login in, no one could access any resources (pages, atc...). So what I'm saying is that I can't manager this manually in Java. Java has to have some API or whatever to allow me to control the login process programmatically, while letting the Application Server control the access to the resources.

  • Connection Pool and Database Sessions

    Hi,
    Is there any way to use the connection pool or Datasource while connecting to database?If I am using a stateless sesssion bean and using a Data Access layer which just creates a database session to write the persistence toplink objects how I can make use of application server connection pool?
    Thanks,
    Vinod

    Hi,
    Is there any way to use the connection pool or Datasource while connecting to database?If I am using a stateless sesssion bean and using a Data Access layer which just creates a database session to write the persistence toplink objects how I can make use of application server connection pool?Hi Vinod,
    Yes, TopLink allows you to use the app server's connection pooling and transaction services. Chapter 2 of the Oracle9iAS TopLink Foundation Library Guide provides details as do the TopLink examples. The easiest way to set this up is by using the sessions.xml file. The sample XML below is from the file <toplink903>\examples\ias\examples\ejb\sessionbean\sessions.xml. Here we are adding the datasource defined in OC4J and specifying that we are using the OC4J transaction controller also.
    <login>
    <user-name>sa</user-name>
    <password></password>
    <datasource>java:comp/env/jdbc/ejbJTSDataSource</datasource>
    <uses-external-transaction-controller>true</uses-external-transaction-controller>
    <uses-external-connection-pool>true</uses-external-connection-pool>
    </login>
    <external-transaction-controller-class>oracle.toplink.jts.oracle9i.Oracle9iJTSExternalTransactionController</external-transaction-controller-class>
    When using this approach you need to change your TopLink code slightly in the EJB methods:
    a. Acquire the ACTIVE unit of work from the server
    session (again, see the EmployeeSessionEJB code
    example) with something like:
    UnitOfWork uow = clientSession.getActiveUnitOfWork();
    b. Calls to uow.commit() can be ommitted or commented out
    because the EJB will handle this. Note that of course
    the methods you create in the EJB that are using this
    approach must have TX Required (default).
    Hope this helps.
    Pete

  • Can there be more than on "saplogon.exe" process in a session context?

    Hi,
    Does anyone know if there can be only a single saplogon.exe process in a windows session (i.e u2013 terminal service session)?  Is it possible to have more than one saplogon.exe process in a session? If so under what conditions?
    Thanks.

    Thanks for the answer Sven, it was very helpful.
    If only one saplogon process is possible for user, is it possible for more than one user to logon to sap in single window session?   So more than one saplogon.exe will be created in single windows session?
    (I currently have only trial version of SAP with single user, so i can't test this scenario myself).
    Thanks.

  • System Copy -- database PRR conains user object belongs to system user dbo

    Hi all,
    I am having an issue while performing the system copy for the sql server.
    Actions taken so far.
    1.Detached the database.
    2.Installed central instance in the target system .
    3.Attached the database using attach as option.
    4.Then used STM coll for the conversion.
    5.Bought sap in Up condition.
    Before detaching the database made export for java addin abap in source system
    Then I am trying to import the java add in abap using sapinst(system copy option)..In the half of the way i am getting the below message as ..
    DATABASE QAS containus user object belongs to system user dbo.
    I have performed the 551915 , 151603 but the still the same message is dispalying.
    In log files.  inserting
    TRACE [iaxxejsexp.cpp:208]
    EJS_Installer::writeTraceToLogBook()
    - Database XIA contains user objects belonging to system user dbo
    TRACE [iaxxbjsmod.cpp:301]
    CJSlibModule::showMessageBox_impl()
    <html> <head></head> <body> <b>Problems were found after checking configuration of database server b><br>- Database XIA contains user objects belonging to system user dbo<br><br>SOLUTION: Fix these problems to continue the installation. </body> </html>
    TRACE [iaxxgenimp.cpp:845]
    showDialog()
    waiting for an answer from gui
    TRACE [iaxxdlghnd.cpp:180]
    CDialogHandler::doHandleDoc()
    ACTION_OK received
    ERROR 2009-01-09 12:52:31 [iaxxinscbk.cpp:289]
    abortInstallation
    MDB-05919 Errors were found when checking connection to or configuration of database server (listed above in the log file).
    TRACE [iaxxejsbas.hpp:270]
    EJS_Base::dispatchFunctionCall()
    JS Callback has thrown std::ESAPinstException: ESAPinstException: error text undefined
    TRACE [syxxcfsmgt.cpp:430]
    CSyFileSystemMgtImpl::getFile(iastring,bool)
    lib=iamodmssql module=CIaNtMssDmo
    WARNING: THE FUNCTIONALITY YOU ARE USING IS DEPRECATED: getFile(const iastring & sFullName, bool bCaseSensitive) const. Use getFile(const PSyFSPath &) const instead.
    TRACE [syxxcfsmgt.cpp:195]
    CSyFileSystemMgtImpl::getNode(iastring,bool)
    lib=iamodmssql module=CIaNtMssDmo
    WARNING: THE FUNCTIONALITY YOU ARE USING IS DEPRECATED: getNode(const iastring & sFullName, bool bCaseSensitive) const. Use getNode(const PSyFSPath &) const instead.
    TRACE [syxxcfsmgt.cpp:921]
    CSyFileSystemMgtImpl::isExisting(iastring,bool)
    lib=iamodmssql module=CIaNtMssDmo
    WARNING: THE FUNCTIONALITY YOU ARE USING IS DEPRECATED: CSyFileSystemMgtImpl::isExisting(const iastring & , bool , ISyNode::eNodeType ) const. Use CSyFileSystemMgtImpl::isExisting(const CSyPath & , ISyNode::eNodeType ) const instead.
    WARNING 2009-01-09 12:52:31 [iaxxccntrl.cpp:477]
    CController::stepExecuted()
    The step dSetActionUnattended with step key J2EE_EngineEnterprise_Addin_OneHost|ind|ind|ind|WebAS|630|0|J2EE_EngineEnterpriseDialogs|ind|ind|ind|WebAS|630|0|J2EE_Engine|ind|ind|ind|J2EE_Engine|630|0|MssJ2eeDBSetup|ind|ind|ind|ind|ind|0|MssDatabaseInfo|ind|ind|ind|ind|ind|0|dSetActionUnattended was executed with status ERROR.
    TRACE [iaxxcsihlp.hpp:301]
    main()
    An error occurred during the installation of component SAP NetWeaver '04 SR1> SAP System Installation> Java Add-In for ABAP> MS SQL Server> Central / Distributed System> Java System Finalization. Press the log view button to get extended error information or press OK to terminate the installation. Log files are written to SAP NetWeaver '04 SR1> SAP System Installation> Java Add-In for ABAP> MS SQL Server> Central / Distributed System> Java System Finalization.
    TRACE [iaxxgenimp.cpp:845]
    showDialog()
    waiting for an answer from gui
    TRACE [iaxxdlghnd.cpp:180]
    CDialogHandler::doHandleDoc()
    ACTION_OK received
    WARNING 2009-01-09 12:52:33 [iaxxcsihlp.hpp:250]
    main()
    An error occurred during the installation.
    Regadrs
    Vijay

    Hi,
    what do you get executing this statement:
    use <SID>
    go
    select * from sys.objects where schema_id =
    (select schema_id from sys.schemas where name = 'dbo')
    go
    Sven

  • Database session rollback.

    How can I issue a database session rollback from within an ADF jpanel?
    Here are a few things I tryied:
    I used:
    panelBinding.getOperationBinding("Rollback");
         -->This does not seem to rollback anything.
    panelBinding.releaseDataControl();
    panelBinding.getApplication().getApplicationModule().getTransaction().rollback();
         -->This two look like they do rollback and release all data everywhere, not just in the panel it was issued, so all my pages will have to bind again (re-query) which makes the app very slow.
    This is supposed to be a read only app.
    I guess what I am looking for is to possible issue a session rollback when exiting an ADF jpanel, without forcing re-binding, equerry of all my ADF views and ADF view links.
    Or probably set a JOB parameter which would make the entire app read only and would never attempt update if any rows displayed were changed my mistake.
    Your input is most appreciated.
    Thanks.
    Edited by: user2456231 on Dec 20, 2010 3:29 PM
    Edited by: user2456231 on Dec 21, 2010 4:20 PM

    Thanks for you response.
    This is a read only app, all the object views are based on read only SQL, but because I have defined in the object view the field displayed to be always updatable so it can be highlighted, and copied into clipboard, so it would be easy to copy and paste stuff into email or other documents, sometime this copy and paste process causes a field to be modified accidentally, so I need to include a rollback statement every time an ADF jpanel is closed, just to clean up and rollback these type of situations.
    You wrote:
    “A rollback is on the transaction, which is held by the Application Module. If you only want to rollback partial changes then you need to first set a savepoint in ADF BC and recover to this savepoint”
    I understand that and I do want to rollback every thing that the application module might have accidentally modified, but once I issue the rollback using the following:
    panelBinding.getApplication().getApplicationModule().getTransaction().rollback();
    This causes the app to rebind, meaning all my ADF object views and pages will have to bind again (re-query) which makes the app very slow to navigate. Is there any way to avoid this? Meaning rollback but do not re-bind, requery or refresh the rows already displayed?
    Thanks.

  • ADF panel opening too many JDBC Thin Client database sessions.

    Hi All,
    I have several ADF Panels, which allows the user to run a few simple queries against an Oracle database done using ADF view objects and ADF view links and ADF application module.
    Each ADF panel as I said contains several View Link queries, and links under the form of Jbuttons to other ADF Panels running other ADF View Links.
    Running the ADF Panel as described here opens up to 21 database sessions displaying as “JDBC Thin Client” when I look them up from v$session.
    Why do I end up with that many database sessions.
    Why doesn’t it just use one or two database sessions to run all these View Links? It seems that it is opening one database session for each of these view links.
    How can I change this destructive behavior? I only one to see one or two database sessions for the entire ADF panel no matter how many ADF View Links it contains.
    Your suggestions are most appreciated.
    Thanks.
    Bobby A.

    Thanks for your response.
    I took a quick look at the docs you pointed me to. It seems that I can set some parameters in bc4j.xcfg of each application module Home to control number of database connections that the application module will create. In that case maybe you can recommend which parameters and what value they should be set to.
    Your response will be most helpful as my background is rather in database admin and not java.
    Thanks.
    Bobby A.

Maybe you are looking for

  • How do I move my contacts from Yahoo to my iCloud on my 4s?

    I transferred all of my contacts onto yahoo from my old phone as this was the only way I could then move them to my 4s. I was wondering how I could move them onto my iCloud aswell as my iPhone and then delete my Yahoo account, so everything is only b

  • In the hope of getting some proper assistance (at last)

    A month ago I started a different discussion, reporting this problem: "I installed the latest CC (2014) versions of Adobe apps both on my Mac and my PC. To my surprise, I found that the CC versions are still in my C drive, taking up lots of valuable

  • How should we we validate the pn structure in hr abap reports?

    Hi Experts,    i am done some coding by using LDB PNP , in that program i got selection screen for PN and PERNR tables. but when i am validating the program by using pernr structure it will pic up the data given by the pernr and personel area. when i

  • Mass export PDFs to CSV/XML?

    Hi, I remember Acrobat Professional used to have a mass export to CSV function a year or so ago, which I think has now been removed as I can't find it anywhere. I have over 200 PDFs I need in a spreadsheet any which way it will spit them out, no part

  • UCCX 8.0 and 8.5 RAM or memory requirements

    All, I reviewed the document: Cisco Unified Contact Center Express (Cisco Unified CCX) Software and Hardware Compatibility Guide Cisco Unified Contact Center Express and Cisco Unified IP IVR Last Updated: June 22, 2011 I see where it list the hardwar