Accessing MsSQL Database from ABAP

Hi Guys,
     I want to connect to an external MsSQL Database running in a window environment from an ABAP Report program where the SAP instance running in a Linux OS with DB2 as a Database. I tried all options suggested in all public forums like maintaining DBCON table entry & placing compatible dll files. I need answers from individuals who have done it in the recent past with this environment not beating bushes.
Thanks in advance.
Regards
Vijaya

hi,
see on oss note  Question 4
Note 555223 - FAQ: Microsoft SQL Server
Q4: My SAP System runs under Oracle (DB2, SAPDB, ...) and I want to
exchange data with a non-SAP Microsoft SQL Server directly from ABAP.
Q4: My SAP System runs under Oracle (DB2, SAPDB, ...) and I want to exchange data with a non-SAP Microsoft SQL Server directly from ABAP. A4: The establishing and use of connections from an R/3 system to another non-SAP database (from the same vendor or not) is called multi-connect and is described in note 178949.
But you must have a specific application server running on Windows if you want to connect SAP to your Microsoft SQL server with DBCON.
Rgds
Edited by: stéphane mouraux on Feb 27, 2010 11:21 PM

Similar Messages

  • Trying to access 10gr2 database from sqlplus utility but it connects to 11g

    Hi All,
    I am facing below issue while access 10gr2 database from sqlplus.
    I am having two oracle homes on one server one belongs to 11gr2 and another belongs to 10gr2.
    I want to access a 10gr2 database through sqlplus utility.but instaed of connecting to 10gr2 it is connecting to 11gr2 after I enter a user name and passowrd.
    I have set all the env variables such as oracle_home ,oracle_sid and path with respect to Oracle 10gr2.
    Can you please let me kno what I need to do to connect to 10gr2 database and not 11gr2 database through sql plus.
    Let me know if I need to give any more details on this.
    Best Regards,
    Dipti S

    Hi Rocky,
    I got the resolution.
    I made a mistake by creating an oracle instance/service(e.g. fsdmo) when Oracle_home was pointing to 11gR2 Directory.so that service was refering to 11gr2 oracle home.
    hence when I was setting oracle_sid(fsdmo) and trying to access database instance from 11g sqlplus utility ,it was directing to 11g and not 10g since oracle service was pointing to 11g.
    So now after chnaging the oracle home directory to 11g,I am creating a service and its working fine.
    thank you so much for responding.
    hope I am clear with my reply.
    Best Regards,
    Dipti S

  • WHY can't I access my database from an applet???????????

    The security code won't let my applet access its own database (from its own server)..
    I'm using getDocumentBase()
    to try and tell it that it is my own damn file..
    I keep getting :
    java.securityAccessControlException: access denied <java.util.PropertyPermission jdbc.drivers write>
    ...etc.
    This applet crap is really starting to piss me off. I can see why they came out with JSP.
    All I need to do is access my database, update it, etc. It kind of defeats the purpose of being able to do jdbc from applets if you can't even access the database on your own damn server.
    If you all don't have a clue, I'm freakin switching to PHP--I'm tired of this crap-I was thinking Java was a damn good language until I hit applets.

    The simple answer to your question is: Because of security concerns.
    The somewhat longer answer is that directly accessing a database from an applet is generally not a good idea. A lot of security-critical code like DB username/password must be hidden in the applet which potentially can be downloaded (and disassembled) by anyone that hits your webpage. Maybe you do an intranet solution with trusted users but that is not what applets were originally designed for.
    The clean way is to make your applet talk to a servlet that talks to your database.
    If that is not the way you want to do it, make sure that all client policy files (yes, on the browser machine) contain the permissions that your applet needs.

  • How to bring MSSQL database from suspended mode to online mode?

    Hi,
    I restarted services through SAP MMC & couldnt restart the service. ABAP work processes Ended & disp+work.exe stopped.
    I checked all SAP related & SQL related services; they were up, but when i tried logging in to the database it was in Suspended mode. I could not login to the database.
    Can anyone tell me the reason for my database going to suspended mode & help me getting my MSSQL 2005 database from suspended mode to online mode??
    Thanks,
    Jigar

    I somehow managed to get my database up but still when i m trying to start the services from SAP MMC then disp+work.exe stops after  sometime.
    Below is the developer trace of disp+work.exe ; plz help
    trc file: "dev_disp", trc level: 1, release: "700"
    sysno      00
    sid        PRD
    systemid   560 (PC with Windows NT)
    relno      7000
    patchlevel 0
    patchno    133
    intno      20050900
    make:      multithreaded, Unicode, optimized
    pid        1888
    Tue Feb 26 14:34:16 2008
    kernel runs with dp version 232000(ext=109000) (@(#) DPLIB-INT-VERSION-232000-UC)
    length of sys_adm_ext is 576 bytes
    SWITCH TRC-HIDE on ***
    ***LOG Q00=> DpSapEnvInit, DPStart (00 1888) [dpxxdisp.c   1239]
         shared lib "dw_xml.dll" version 133 successfully loaded
         shared lib "dw_xtc.dll" version 133 successfully loaded
         shared lib "dw_stl.dll" version 133 successfully loaded
         shared lib "dw_gui.dll" version 133 successfully loaded
         shared lib "dw_mdm.dll" version 133 successfully loaded
    rdisp/softcancel_sequence :  -> 0,5,-1
    use internal message server connection to port 3900
    Tue Feb 26 14:34:22 2008
    WARNING => DpNetCheck: NiAddrToHost(1.0.0.0) took 5 seconds
    ***LOG GZZ=> 1 possible network problems detected - check tracefile and adjust the DNS settings [dpxxtool2.c  5371]
    MtxInit: 30000 0 0
    DpSysAdmExtInit: ABAP is active
    DpSysAdmExtInit: VMC (JAVA VM in WP) is not active
    DpIPCInit2: start server >srvsappd_PRD_00                         <
    DpShMCreate: sizeof(wp_adm)          30160     (1436)
    DpShMCreate: sizeof(tm_adm)          4270848     (21248)
    DpShMCreate: sizeof(wp_ca_adm)          24000     (80)
    DpShMCreate: sizeof(appc_ca_adm)     8000     (80)
    DpCommTableSize: max/headSize/ftSize/tableSize=500/8/528056/528064
    DpShMCreate: sizeof(comm_adm)          528064     (1048)
    DpSlockTableSize: max/headSize/ftSize/fiSize/tableSize=0/0/0/0/0
    DpShMCreate: sizeof(slock_adm)          0     (96)
    DpFileTableSize: max/headSize/ftSize/tableSize=0/0/0/0
    DpShMCreate: sizeof(file_adm)          0     (72)
    DpShMCreate: sizeof(vmc_adm)          0     (1544)
    DpShMCreate: sizeof(wall_adm)          (38456/34360/64/184)
    DpShMCreate: sizeof(gw_adm)     48
    DpShMCreate: SHM_DP_ADM_KEY          (addr: 068C0040, size: 4942392)
    DpShMCreate: allocated sys_adm at 068C0040
    DpShMCreate: allocated wp_adm at 068C2090
    DpShMCreate: allocated tm_adm_list at 068C9660
    DpShMCreate: allocated tm_adm at 068C9690
    DpShMCreate: allocated wp_ca_adm at 06CDC190
    DpShMCreate: allocated appc_ca_adm at 06CE1F50
    DpShMCreate: allocated comm_adm at 06CE3E90
    DpShMCreate: system runs without slock table
    DpShMCreate: system runs without file table
    DpShMCreate: allocated vmc_adm_list at 06D64D50
    DpShMCreate: allocated gw_adm at 06D64D90
    DpShMCreate: system runs without vmc_adm
    DpShMCreate: allocated ca_info at 06D64DC0
    DpShMCreate: allocated wall_adm at 06D64DC8
    MBUF state OFF
    DpCommInitTable: init table for 500 entries
    ThTaskStatus: rdisp/reset_online_during_debug 0
    Tue Feb 26 14:34:23 2008
    EmInit: MmSetImplementation( 2 ).
    MM global diagnostic options set: 0
    <ES> client 0 initializing ....
    <ES> InitFreeList
    <ES> block size is 1024 kByte.
    Using implementation view
    <EsNT> Using memory model view.
    <EsNT> Memory Reset disabled as NT default
    <ES> 1023 blocks reserved for free list.
    ES initialized.
    Tue Feb 26 14:34:25 2008
    rdisp/http_min_wait_dia_wp : 1 -> 1
    ***LOG CPS=> DpLoopInit, ICU ( 3.0 3.0 4.0.1) [dpxxdisp.c   1629]
    ***LOG Q0K=> DpMsAttach, mscon ( srvsappd) [dpxxdisp.c   11799]
    DpStartStopMsg: send start message (myname is >srvsappd_PRD_00                         <)
    DpStartStopMsg: start msg sent
    CCMS: AlInitGlobals : alert/use_sema_lock = TRUE.
    Tue Feb 26 14:34:26 2008
    CCMS: start to initalize 3.X shared alert area (first segment).
    DpMsgAdmin: Set release to 7000, patchlevel 0
    MBUF state PREPARED
    MBUF component UP
    DpMBufHwIdSet: set Hardware-ID
    ***LOG Q1C=> DpMBufHwIdSet [dpxxmbuf.c   1050]
    DpMsgAdmin: Set patchno for this platform to 133
    Release check o.K.
    Tue Feb 26 14:35:05 2008
    ERROR => DpHdlDeadWp: W0 (pid 888) died [dpxxdisp.c   14507]
    ERROR => DpHdlDeadWp: W1 (pid 2704) died [dpxxdisp.c   14507]
    ERROR => DpHdlDeadWp: W2 (pid 924) died [dpxxdisp.c   14507]
    ERROR => DpHdlDeadWp: W3 (pid 2088) died [dpxxdisp.c   14507]
    ERROR => DpHdlDeadWp: W4 (pid 1780) died [dpxxdisp.c   14507]
    ERROR => DpHdlDeadWp: W5 (pid 2932) died [dpxxdisp.c   14507]
    ERROR => DpHdlDeadWp: W6 (pid 1328) died [dpxxdisp.c   14507]
    ERROR => DpHdlDeadWp: W7 (pid 1332) died [dpxxdisp.c   14507]
    ERROR => DpHdlDeadWp: W8 (pid 2948) died [dpxxdisp.c   14507]
    ERROR => DpHdlDeadWp: W9 (pid 492) died [dpxxdisp.c   14507]
    my types changed after wp death/restart 0xbf --> 0xbe
    ERROR => DpHdlDeadWp: W10 (pid 1976) died [dpxxdisp.c   14507]
    ERROR => DpHdlDeadWp: W11 (pid 2288) died [dpxxdisp.c   14507]
    ERROR => DpHdlDeadWp: W12 (pid 2716) died [dpxxdisp.c   14507]
    my types changed after wp death/restart 0xbe --> 0xbc
    ERROR => DpHdlDeadWp: W13 (pid 2564) died [dpxxdisp.c   14507]
    my types changed after wp death/restart 0xbc --> 0xb8
    ERROR => DpHdlDeadWp: W14 (pid 712) died [dpxxdisp.c   14507]
    ERROR => DpHdlDeadWp: W15 (pid 3080) died [dpxxdisp.c   14507]
    ERROR => DpHdlDeadWp: W16 (pid 1588) died [dpxxdisp.c   14507]
    ERROR => DpHdlDeadWp: W17 (pid 3084) died [dpxxdisp.c   14507]
    my types changed after wp death/restart 0xb8 --> 0xb0
    ERROR => DpHdlDeadWp: W18 (pid 1616) died [dpxxdisp.c   14507]
    my types changed after wp death/restart 0xb0 --> 0xa0
    ERROR => DpHdlDeadWp: W19 (pid 2856) died [dpxxdisp.c   14507]
    ERROR => DpHdlDeadWp: W20 (pid 1912) died [dpxxdisp.c   14507]
    my types changed after wp death/restart 0xa0 --> 0x80
    DP_FATAL_ERROR => DpWPCheck: no more work processes
    DISPATCHER EMERGENCY SHUTDOWN ***
    increase tracelevel of WPs
    NiWait: sleep (10000ms) ...
    NiISelect: timeout 10000ms
    NiISelect: maximum fd=1505
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Tue Feb 26 14:35:15 2008
    NiISelect: TIMEOUT occured (10000ms)
    dump system status
    Workprocess Table (long)               Tue Feb 26 09:05:15 2008
    ========================
    No Ty. Pid      Status  Cause Start Err Sem CPU    Time  Program          Cl  User         Action                    Table
    0 DIA      888 Ended         no      1   0        0                                                                         
    1 DIA     2704 Ended         no      1   0        0                                                                         
    2 DIA      924 Ended         no      1   0        0                                                                         
    3 DIA     2088 Ended         no      1   0        0                                                                         
    4 DIA     1780 Ended         no      1   0        0                                                                         
    5 DIA     2932 Ended         no      1   0        0                                                                         
    6 DIA     1328 Ended         no      1   0        0                                                                         
    7 DIA     1332 Ended         no      1   0        0                                                                         
    8 DIA     2948 Ended         no      1   0        0                                                                         
    9 DIA      492 Ended         no      1   0        0                                                                         
    10 UPD     1976 Ended         no      1   0        0                                                                         
    11 UPD     2288 Ended         no      1   0        0                                                                         
    12 UPD     2716 Ended         no      1   0        0                                                                         
    13 ENQ     2564 Ended         no      1   0        0                                                                         
    14 BTC      712 Ended         no      1   0        0                                                                         
    15 BTC     3080 Ended         no      1   0        0                                                                         
    16 BTC     1588 Ended         no      1   0        0                                                                         
    17 BTC     3084 Ended         no      1   0        0                                                                         
    18 SPO     1616 Ended         no      1   0        0                                                                         
    19 UP2     2856 Ended         no      1   0        0                                                                         
    20 UP2     1912 Ended         no      1   0        0                                                                         
    Dispatcher Queue Statistics               Tue Feb 26 09:05:15 2008
    ===========================
    --------++++--
    +
    Typ
    now
    high
    max
    writes
    reads
    --------++++--
    +
    NOWP
    0
    4
    2000
    5
    5
    --------++++--
    +
    DIA
    5
    5
    2000
    5
    0
    --------++++--
    +
    UPD
    0
    0
    2000
    0
    0
    --------++++--
    +
    ENQ
    0
    0
    2000
    0
    0
    --------++++--
    +
    BTC
    0
    0
    2000
    0
    0
    --------++++--
    +
    SPO
    0
    0
    2000
    0
    0
    --------++++--
    +
    UP2
    0
    0
    2000
    0
    0
    --------++++--
    +
    max_rq_id          12
    wake_evt_udp_now     0
    wake events           total     8,  udp     2 ( 25%),  shm     6 ( 75%)
    since last update     total     8,  udp     2 ( 25%),  shm     6 ( 75%)
    Dump of tm_adm structure:               Tue Feb 26 09:05:15 2008
    =========================
    Term    uid  man user    term   lastop  mod wp  ta   a/i (modes)
    Workprocess Comm. Area Blocks               Tue Feb 26 09:05:15 2008
    =============================
    Slots: 300, Used: 1, Max: 0
    --------++--
    +
    id
    owner
    pid
    eyecatcher
    --------++--
    +
    0
    DISPATCHER
    -1
    WPCAAD000
    NiWait: sleep (5000ms) ...
    NiISelect: timeout 5000ms
    NiISelect: maximum fd=1505
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Tue Feb 26 14:35:20 2008
    NiISelect: TIMEOUT occured (5000ms)
    DpHalt: shutdown server >srvsappd_PRD_00                         < (normal)
    DpJ2eeDisableRestart
    DpModState: buffer in state MBUF_PREPARED
    NiBufSend starting
    NiIWrite: hdl 2 sent data (wrt=110,pac=1,MESG_IO)
    MsINiWrite: sent 110 bytes
    MsIModState: change state to SHUTDOWN
    DpModState: change server state from STARTING to SHUTDOWN
    Switch off Shared memory profiling
    ShmProtect( 57, 3 )
    ShmProtect(SHM_PROFILE, SHM_PROT_RW
    ShmProtect( 57, 1 )
    ShmProtect(SHM_PROFILE, SHM_PROT_RD
    DpWakeUpWps: wake up all wp's
    Stop work processes
    Stop gateway
    killing process (2404) (SOFT_KILL)
    Stop icman
    killing process (308) (SOFT_KILL)
    Terminate gui connections
    wait for end of work processes
    wait for end of gateway
    [DpProcDied] Process lives  (PID:2404  HANDLE:1476)
    waiting for termination of gateway ...
    NiWait: sleep (1000ms) ...
    NiISelect: timeout 1000ms
    NiISelect: maximum fd=1505
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Tue Feb 26 14:35:21 2008
    NiISelect: TIMEOUT occured (1000ms)
    [DpProcDied] Process died  (PID:2404  HANDLE:1476)
    wait for end of icman
    [DpProcDied] Process lives  (PID:308  HANDLE:1484)
    waiting for termination of icman ...
    NiWait: sleep (1000ms) ...
    NiISelect: timeout 1000ms
    NiISelect: maximum fd=1505
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Tue Feb 26 14:35:22 2008
    NiISelect: TIMEOUT occured (1000ms)
    [DpProcDied] Process lives  (PID:308  HANDLE:1484)
    waiting for termination of icman ...
    NiWait: sleep (1000ms) ...
    NiISelect: timeout 1000ms
    NiISelect: maximum fd=1505
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Tue Feb 26 14:35:23 2008
    NiISelect: TIMEOUT occured (1000ms)
    [DpProcDied] Process lives  (PID:308  HANDLE:1484)
    waiting for termination of icman ...
    NiWait: sleep (1000ms) ...
    NiISelect: timeout 1000ms
    NiISelect: maximum fd=1505
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Tue Feb 26 14:35:24 2008
    NiISelect: TIMEOUT occured (1000ms)
    [DpProcDied] Process lives  (PID:308  HANDLE:1484)
    waiting for termination of icman ...
    NiWait: sleep (1000ms) ...
    NiISelect: timeout 1000ms
    NiISelect: maximum fd=1505
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Tue Feb 26 14:35:25 2008
    NiISelect: TIMEOUT occured (1000ms)
    [DpProcDied] Process lives  (PID:308  HANDLE:1484)
    waiting for termination of icman ...
    NiWait: sleep (1000ms) ...
    NiISelect: timeout 1000ms
    NiISelect: maximum fd=1505
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Tue Feb 26 14:35:26 2008
    NiISelect: TIMEOUT occured (1000ms)
    [DpProcDied] Process lives  (PID:308  HANDLE:1484)
    waiting for termination of icman ...
    NiWait: sleep (1000ms) ...
    NiISelect: timeout 1000ms
    NiISelect: maximum fd=1505
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Tue Feb 26 14:35:27 2008
    NiISelect: TIMEOUT occured (1000ms)
    [DpProcDied] Process lives  (PID:308  HANDLE:1484)
    waiting for termination of icman ...
    NiWait: sleep (1000ms) ...
    NiISelect: timeout 1000ms
    NiISelect: maximum fd=1505
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Tue Feb 26 14:35:28 2008
    NiISelect: TIMEOUT occured (1000ms)
    [DpProcDied] Process lives  (PID:308  HANDLE:1484)
    waiting for termination of icman ...
    NiWait: sleep (1000ms) ...
    NiISelect: timeout 1000ms
    NiISelect: maximum fd=1505
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Tue Feb 26 14:35:29 2008
    NiISelect: TIMEOUT occured (1000ms)
    [DpProcDied] Process lives  (PID:308  HANDLE:1484)
    waiting for termination of icman ...
    NiWait: sleep (1000ms) ...
    NiISelect: timeout 1000ms
    NiISelect: maximum fd=1505
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Tue Feb 26 14:35:30 2008
    NiISelect: TIMEOUT occured (1000ms)
    [DpProcDied] Process lives  (PID:308  HANDLE:1484)
    waiting for termination of icman ...
    NiWait: sleep (1000ms) ...
    NiISelect: timeout 1000ms
    NiISelect: maximum fd=1505
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Tue Feb 26 14:35:31 2008
    NiISelect: TIMEOUT occured (1000ms)
    [DpProcDied] Process lives  (PID:308  HANDLE:1484)
    waiting for termination of icman ...
    NiWait: sleep (1000ms) ...
    NiISelect: timeout 1000ms
    NiISelect: maximum fd=1505
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Tue Feb 26 14:35:32 2008
    NiISelect: TIMEOUT occured (1000ms)
    [DpProcDied] Process died  (PID:308  HANDLE:1484)
    DpStartStopMsg: send stop message (myname is >srvsappd_PRD_00                         <)
    NiIMyHostName: hostname = 'srvsappd'
    AdGetSelfIdentRecord: >                                                                           <
    AdCvtRecToExt: opcode 60 (AD_SELFIDENT), ser 0, ex 0, errno 0
    AdCvtRecToExt: opcode 4 (AD_STARTSTOP), ser 0, ex 0, errno 0
    DpConvertRequest: net size = 189 bytes
    NiBufSend starting
    NiIWrite: hdl 2 sent data (wrt=562,pac=1,MESG_IO)
    MsINiWrite: sent 562 bytes
    send msg (len 110+452) to name                    -, type 4, key -
    DpStartStopMsg: stop msg sent
    NiIRead: hdl 2 received data (rcd=274,pac=1,MESG_IO)
    NiBufIIn: NIBUF len=274
    NiBufIIn: packet complete for hdl 2
    NiBufReceive starting
    MsINiRead: received 274 bytes
    MSG received, len 110+164, flag 1, from MSG_SERVER          , typ 0, key -
    DpHalt: received 164 bytes from message server
    NiIRead: hdl 2 received data (rcd=274,pac=1,MESG_IO)
    NiBufIIn: NIBUF len=274
    NiBufIIn: packet complete for hdl 2
    NiBufReceive starting
    MsINiRead: received 274 bytes
    MSG received, len 110+164, flag 1, from MSG_SERVER          , typ 0, key -
    DpHalt: received 164 bytes from message server
    NiIRead: hdl 2 received data (rcd=274,pac=1,MESG_IO)
    NiBufIIn: NIBUF len=274
    NiBufIIn: packet complete for hdl 2
    NiBufReceive starting
    MsINiRead: received 274 bytes
    MSG received, len 110+164, flag 1, from MSG_SERVER          , typ 0, key -
    DpHalt: received 164 bytes from message server
    NiIRead: hdl 2 received data (rcd=274,pac=1,MESG_IO)
    NiBufIIn: NIBUF len=274
    NiBufIIn: packet complete for hdl 2
    NiBufReceive starting
    MsINiRead: received 274 bytes
    MSG received, len 110+164, flag 1, from MSG_SERVER          , typ 0, key -
    DpHalt: received 164 bytes from message server
    NiIRead: hdl 2 received data (rcd=274,pac=1,MESG_IO)
    NiBufIIn: NIBUF len=274
    NiBufIIn: packet complete for hdl 2
    NiBufReceive starting
    MsINiRead: received 274 bytes
    MSG received, len 110+164, flag 1, from MSG_SERVER          , typ 0, key -
    DpHalt: received 164 bytes from message server
    NiIRead: hdl 2 received data (rcd=274,pac=1,MESG_IO)
    NiBufIIn: NIBUF len=274
    NiBufIIn: packet complete for hdl 2
    NiBufReceive starting
    MsINiRead: received 274 bytes
    MSG received, len 110+164, flag 1, from MSG_SERVER          , typ 0, key -
    DpHalt: received 164 bytes from message server
    NiIRead: hdl 2 received data (rcd=274,pac=1,MESG_IO)
    NiBufIIn: NIBUF len=274
    NiBufIIn: packet complete for hdl 2
    NiBufReceive starting
    MsINiRead: received 274 bytes
    MSG received, len 110+164, flag 1, from MSG_SERVER          , typ 0, key -
    DpHalt: received 164 bytes from message server
    NiIRead: hdl 2 recv would block (errno=EAGAIN)
    NiIRead: read for hdl 2 timed out (0ms)
    DpHalt: no more messages from the message server
    DpHalt: send keepalive to synchronize with the message server
    NiBufSend starting
    NiIWrite: hdl 2 sent data (wrt=114,pac=1,MESG_IO)
    MsINiWrite: sent 114 bytes
    send msg (len 110+4) to name           MSG_SERVER, type 0, key -
    MsSndName: MS_NOOP ok
    Send 4 bytes to MSG_SERVER
    NiIRead: hdl 2 recv would block (errno=EAGAIN)
    NiIPeek: peek successful for hdl 2 (r)
    NiIRead: hdl 2 received data (rcd=114,pac=1,MESG_IO)
    NiBufIIn: NIBUF len=114
    NiBufIIn: packet complete for hdl 2
    NiBufReceive starting
    MsINiRead: received 114 bytes
    MSG received, len 110+4, flag 3, from MSG_SERVER          , typ 0, key -
    Received 4 bytes from MSG_SERVER                             
    Received opcode MS_NOOP from msg_server, reply MSOP_OK
    MsOpReceive: ok
    MsSendKeepalive : keepalive sent to message server
    NiIRead: hdl 2 recv would block (errno=EAGAIN)
    Tue Feb 26 14:35:33 2008
    NiIPeek: peek for hdl 2 timed out (r; 1000ms)
    NiIRead: read for hdl 2 timed out (1000ms)
    DpHalt: no more messages from the message server
    DpHalt: sync with message server o.k.
    detach from message server
    ***LOG Q0M=> DpMsDetach, ms_detach () [dpxxdisp.c   12145]
    NiBufSend starting
    NiIWrite: hdl 2 sent data (wrt=110,pac=1,MESG_IO)
    MsINiWrite: sent 110 bytes
    MsIDetach: send logout to msg_server
    MsIDetach: call exit function
    DpMsShutdownHook called
    NiBufISelUpdate: new MODE -- (r-) for hdl 2 in set0
    SiSelNSet: set events of sock 1380 to: ---
    NiBufISelRemove: remove hdl 2 from set0
    SiSelNRemove: removed sock 1380 (pos=2)
    SiSelNRemove: removed sock 1380
    NiSelIRemove: removed hdl 2
    MBUF state OFF
    AdGetSelfIdentRecord: >                                                                           <
    AdCvtRecToExt: opcode 60 (AD_SELFIDENT), ser 0, ex 0, errno 0
    AdCvtRecToExt: opcode 40 (AD_MSBUF), ser 0, ex 0, errno 0
    AdCvtRecToExt: opcode 40 (AD_MSBUF), ser 0, ex 0, errno 0
    blks_in_queue/wp_ca_blk_no/wp_max_no = 1/300/21
    LOCK WP ca_blk 1
    make DISP owner of wp_ca_blk 1
    DpRqPutIntoQueue: put request into queue (reqtype 1, prio LOW, rq_id 15)
    MBUF component DOWN
    NiICloseHandle: shutdown and close hdl 2 / sock 1380
    NiBufIClose: clear extension for hdl 2
    MsIDetach: detach MS-system
    cleanup EM
    EsCleanup ....
    EmCleanup() -> 0
    Es2Cleanup: Cleanup ES2
    ***LOG Q05=> DpHalt, DPStop ( 1888) [dpxxdisp.c   10417]
    Good Bye .....

  • Accessing mysql database from oracle using dg4odbc

    I've been trying to create a database link from a MySQL database to Oracle using the Oracle dg4odbc gateway. I downloaded and installed DataDirect's ODBC package which includes mysql ODBC library (ddmysql24.so) and a generic ODBC libary (libodbc.so). After creating the DSN in odbc.ini, I tested it and it can connect to the mysql database. Then I created the init{SID}.ora file in hs/admin directory, added dg4odbc lines in the listener.ora, and added lines in tnsnames.ora. Then I tnspinged the new SID with success. Finally, I created the database link. However, when I tried to access the database link using the commands "select * from mdl_user@moodle;", I got the ORA-28500 error like the following:
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [DataDirect][ODBC 20101 driver][20101]You have an error in your SQL syntax;
    check the manual that corresponds to your MySQL server version for the right
    syntax to use near '"mdl_user"' at line 1
    ORA-02063: preceding 2 lines from MOODLE
    My mysql database is utf8 by default. Do I have to use latin1?
    It seems to me that the dg4odbc translates the sql commands incorrectly (having double quotes around the selected table).
    Any help is greatly appreciated.
    Jeffrey

    The syntax error occures for example when MySQL isn't running in ANSI mode and thus does not allow double quotes around the objects. DG4ODBC 11.1.0.6 by default always adds double quotes to table/column/view names.
    A quick test to check if you hit the double quote issue would be to set the MySQL DB into ANSI mode:
    - Open SQL*Plus
    - execute:
    DECLARE
    ret integer;
    c integer;
    BEGIN
    c := DBMS_HS_PASSTHROUGH.OPEN_CURSOR@moodle;
    DBMS_HS_PASSTHROUGH.PARSE@moodle(c, 'SET SESSION SQL_MODE=''ANSI_QUOTES'';');
    ret := DBMS_HS_PASSTHROUGH.EXECUTE_NON_QUERY@moodle(c);
    dbms_output.put_line(ret ||' passthrough output');
    DBMS_HS_PASSTHROUGH.CLOSE_CURSOR@moodle(c);
    END;
    - Now run your select statement
    => if it now works, you can permanently change the MySQL config to be ANSI compliant or you can apply the 11.1.0.7 patchset to DG4ODBC.

  • Querying an SQL Database from ABAP

    Is is possible from within ABAP in R/3 (or NetWeaver) to query a non-SAP database? For example, can I write ABAP code which will go after data in say a non SAP DB2 database at some remote location?
    Kevin

    Hi
    Connecting to an External database from SAP
    Step 1: Create an entry for the External database in DBCON table using Trxn: DBCA.
    Table: DBCON (Description of Database Connections)
    Field Name Description Value (For: E.g.:)
    CON_NAME Logical name for a database connection RAJ
    DBMS Database system MSS
    USER_NAME Database user <username>
    PASSWORD Password for setting up the connection to the database <pwd>/<pwd>
    CON_ENV Database-specific information for a database connection MSSQL_SERVER=depotserver MSSQL_DBNAME=HOF_INDORE
    DB_RECO Availability type for an open database connect  
    Step 2: Now you can write code to connect to the external database…
    Your Sample code can be something like this……
    DATA: BEGIN OF wa,
    c_locid(3),
    c_locname(50),
    c_locstate(5),
    END OF wa.
    EXEC SQL.
    CONNECT TO 'RAJ' AS 'V'
    ENDEXEC.
    EXEC SQL.
    SET CONNECTION 'V'
    ENDEXEC.
    *- Get the data from MS-SQL Server
    EXEC SQL.
    open C1 for
    select
    loc_id,
    loc_name,
    loc_state
    from ho_loc_mast
    ENDEXEC.
    DO.
    EXEC SQL.
    FETCH NEXT C1 into :wa-c_locid, :wa-c_locname, :wa-c_locstate
    ENDEXEC.
    IF sy-subrc = 0.
    PERFORM loop_output.
    ELSE.
    EXIT.
    ENDIF.
    ENDDO.
    EXEC SQL.
    CLOSE C1
    ENDEXEC.
    *& Form LOOP_OUTPUT
    Output
    FORM loop_output .
    WRITE: /5 wa-c_locid, 10 wa-c_locname, 65 wa-c_locstate.
    CLEAR wa.
    ENDFORM. " LOOP_OUTPUT
    Regards
    Raj

  • Accessing another database from HTMLDB

    All is there a way to do selects on another database from within an HTMLDB application.

    We have several applications on our intranet, all requiring login & password. I was unable to hit the needed tables directly outside the application as I'm not a DBA and they've never given me access to the schema names. So while trying to connect to those same tables as I do with Crystal Reports, I just went to the network drive where the TNSNAMES file is located, hunted for the IP of the server I was looking for, used that SID and did the following:
    Database Link Name - (whatever I want)
    Connect to Schema - (used my username that I use with crystal)
    Password - (same password used in crystal)
    Remote Hostname or IP - used stolen IP found in TNSNAMES
    Remote Host Port - used port found in TNSNAMES
    SID or Service Name - same as in crytal but also found in tnsnames.
    After that I had no problem hitting the tables I wanted as my username and login gets me the access I need.
    I can't tell for sure why I don't need the actual schema name and why my username works instead. I'm just glad it does as I can now use the necessary tables to do MY authentication scheme without relying having to ask to get access to the scheme used by the department. They wouldn't give it to me anyway:)
    Hope that helped, I know it didn't explain why it works tho.
    Not sure what you mean by the SQL query... that is done for you in HTML DB in the connect string created by the link.
    If you mean how do you hit the link you use it prefaced by the at sign "@" as in gimme what I want from the database @(the link name you made)

  • Access DB2 database from IRIX machine.

    Hi ,
    I am using DB2 database ,which is sitting on AIX machine.
    And i want to access database from IRIX 6.5 (SGI machine).
    I think there is no driver to connect DB2.
    If any body knows how to access
    Thank you for your help.

    Since I've never used DB2, and Irix last ten years ago, I feel fully qualified to answer :-)
    Get a JDBC driver. Googling for db2 jdbc driver site:ibm.com gives 3860 hits; remove site:ibm.com if you are interested in third party drivers.
    Check if your DB2 installation contains the file db2jcc.jar - that seems to be the "DB2 Universal JDBC Driver", apparently a Type 4 driver (type 4 is a Good Thing). I can't find offhand if the driver is a separate product or comes with DB2.
    Check out e.g. http://publib.boulder.ibm.com/infocenter/db2help/index.jsp?topic=/com.ibm.db2.udb.doc/ad/t0010264.htm

  • Access oracle database from microsoft access?

    It is possible access to an'ORACLE database from Microsoft Access?

    Yes, that's possible.
    You can find several threads for this on the forum,e.g.
    Oracle & MS Access

  • Efficient access to database from web services

    Hi
    I'm implementing a web service interface to a database. The interface allows its clients to perform a series of independent operations which change some values in a database. Each of these operations is an independent web service, but all of them use the same database.
    My first approach was to make each service completely self-contained, and have it create its own JDBC connection to access the database. However this doesn't sound very efficient.
    I mean, isn't the application server there precisely to provide these types of services to the applications it hosts? So, is it possible to have it manage a pool of connections of some kind and make the web services get their connections from that pool?
    Thanks in advance
    Pedro

    Hi Cemal,
    Try the following.
    IWDClientUser user  = WDClientUser.getCurrentUser();
    user.getSAPUser().getUniqueName();
    Please check old postings in the forum.
    Regards, Anilkumar

  • How to access MDB database from JSP Web Application?

    hi
    i am using tomact and developing appplication in which i have to insert data into MDB database and read/Update/Delete Data in MDB DataBase.
    could any help in this issue?
    Thanks
    Regards
    Oersla Afroze Ahmed

    Hi,
    For accessing MDB database, you must have a jdbc:odbc driver, u can get it from sun site.
    just put it into the lib folder of web server.
    or
    just follow the following link:
    http://www.developer.com/db/article.php/3571661
    keshri

  • Accessing a Database from multiple threads

    I would like to create a database application where more then one thread can access this database at once. What is the best way to synchronize access to it so as to prevent errors?

    Actually, I wasn't thinking of using an SQL database since I haven't studied it. But, would it be a good idea to have one object of type "Database", and use 'synchronize' to control thread access?
    Also, the database access needs to be restricted based on different users, so I am using a SecurityManager. I was thinking the structure would look something like this:
    security manager
    database manager
    database
    in this way, a request to retrieve data from the database would need to be requested from my security manager. If the request is allowed, it would be filtered down to the database manager. Is this the best way to do this?
    And finally, someone told me that using something like an "event queue" to access data would work but I've never tried this. My database manager thread would process the requests one at a time. would this work well?

  • Readin IDM database from ABAP

    Hello,
    I would like to know where could I find an API description how to communicate from ABAP to the IDM database. IDM is said to be opened, so other system can read from it. That should mean ABAP too. Can anybody point me to such information source, provide a link to an example code, something to start from?
    Thanks Otto

    I have the similar requirement. Please help me.
    The IdM (7.2) has been directly connected to ECC clients via Jco RFC (No VDS). But for the other business suit clients (CRM, SRM, ..), it is connected via VDS.
    Here is my requirement. Due to the security reasons, we have decided to maintain some translation data in the IdM instead of SAP tables. Translation data is very simple. It will have two columns with ZID and EID.
    Forward Translation is from ZID to EID
    Reverse Translation is from EID to ZID
    We would like to use these translations in the interfaces and conversions. During the execution of interface/conversion, if the program encounters ZID, it should be translated to EID using some methods. Since the data is not in SAP tables, we have to get it from IdM.
    Since there is no VDS, do I need to read the IdM database directly? What are the steps involved in this process from ABAP developer point of view and also from IdM team? It would be great, it you suggest some examples.
    Thanks for reading and your help will be greatly appreciated.

  • Accessing LDAP Directory from ABAP

    Hi all,
    is there an easy posibility to access LDAP Users with their orgnanizational data from ABAP? I also would need to access the roles that are created on the LDAP as it is the general UME.
    Thanks and best regards,
    Dennis Junker

    Hello Dennis,
    You can synchronize your data between LDAP and ABAP with certain limitations. For example, passwords cannot be synchronized. Refer to SAP  notes:                                                               
      793191 - FAQ: User master synchronization with LDAP directories     
      603208 - Passwords during the LDAP user master synchronization                                                                               
    If you are trying to use the LDAP for authenticating SAP users, this is not possible too. Have a look at SAP note 448360. An excerpt:  
    o  Logging on to the SAP system                                                                               
    The Application Server ABAP does not support the direct use of     
       the directory to authenticate a user.                              
    But you could use the LDAP to authenticate your users via portal.
    Regards,
    Désiré

  • How to access UWL tasks from ABAP ?

    Hello workflow experts!
    We are using UWL adhoc workflows (java workflow) in connection with Portal collaboration rooms. The system creates the tasks in the java workflow with relation to the collaboration room - so far so good.
    Now I would need to read adhoc tasks (or workflows) from ABAP. I have not found any API yet. Does someone know how to get Java workflow tasks from ABAP ?
    Thank you in advance!
    Johannes

    Hi Johannes ,Please see if this information helps.
    WebFlow offers the open interface called Wf-XML.The Wf-XML interface is based on XML and allows workflows from different vendors to communicate with each other.Wf-XML is the only open interface for supporting interoperability of business processes.
    Wf-XML comes from the Workflow Management Coalition, an independent body of workflow vendors.
    The Actional control broker integrates directly into SAP WebFlow enabling proxy objects to be called directly from the workflow step. When called, the proxy method will make a call to the outside system either as a background task or as a dialogue step.
    These proxy objects are generated in the SAP system using a converter which converts the objects interface  to the SAP syntax.
    A detailed description of the interface is available on the WfMCs web site at www.wfmc.org.
    Edited by: Umakanth R on Dec 9, 2008 12:49 PM

Maybe you are looking for

  • Inter -Company Sales

    Hi This thread is related to Intercompany sales.Say I have two company codes 1000 and 2000. One customer orders material X from Sales Org 1000 which belongs to company code 1000.And in Sales org 1000 a special scheme is running say if you buy 100 nos

  • Purchase order history in PO

    Hi everyone, Could you please say where i have the link to change the reference doc field which appears in PO history tab of PO.  Help says that it can have the reference number of vendor or customer.  Where do i change it. Siva

  • IMac iSight G5 will not power up

    Here's what got me here... I installed a 500 gig drive about 6 months ago maybe. Annoying and time consuming, but everything went fine. Well so I thought anyways. In the last couple days, I began experiencing random freezing and kernel panics. I susp

  • Md_restore doesn't work

    Hello everyone, I was testing md_backup and md_restore commands in 11g R1 on my test system. I backed up the metadata using md_backup and intentionally crashed one of my disks to simulate the disk crashed. Then I restarted the ASM instance but instan

  • Maleware Attack mentioning skype

    All of a sudden over the last few days my Maleware Bytes has been reporting the following at random times during the day Blocked Access to potentially malicious website 188.130.177.4 Port 36929, Process: skype.exe now what I am trying to find out is