Conncetion to database slower w/ jdbc 9i

Hi there.
I have a JSP that uses JDBC to stablish a connection and run a query to an Oracle database.
The JSP was working fine and w/ reasonable connection time to an Oracle 8.1.7.1.1 database.
But, ever since we upgraded the RDBMS to 9i, the same JSP takes forever to connect to the DB (nothing changed in the JSP)!
I replaced the existing JDBC 8i classes12.zip file w/ the 9i version and replaced "oracle.jdbc.driver" with "oracle.jdbc" in my code, but it's still super slow!
What's going on?
Thanks.

We are having the same problem. I still dont have a solution. I submitted a TAR and Oracle support kept telling me I must tune my queries and my DB. That is not the problem. they blew me off. We are considering going back to 8.1.7.
Anthony

Similar Messages

  • Database slow down happeing for aperticular window

    Hi,
    For last few days we are having a issue with database slow down for a perticular window .We took the awr and ash report for that window and it shows the db file sequential read takes more time for aperticular query.But the same query works fine for rest of the day, so how we find the issue happend at that perticular window?
    Thanks

    Hi ,
    there is not a single query running for that window, multiple sessions are running which are exceuting various queries.
    Here is the AWR report for that window( due to size i could past only first half of thw awr report)
    WORKLOAD REPOSITORY report for
    DB Name     DB Id     Instance     Inst num     Release     RAC     Host
    GNVPRD     1315880728     GNVPRD     1     10.2.0.4.0     NO     tpora02
         Snap Id     Snap Time     Sessions     Cursors/Session
    Begin Snap:     22711     07-Jul-10 12:00:31     491     15.1
    End Snap:     22712     07-Jul-10 13:00:29     550     16.2
    Elapsed:          59.97 (mins)          
    DB Time:          376.21 (mins)          
    Report Summary
    Cache Sizes
         Begin     End          
    Buffer Cache:     6,144M     6,144M     Std Block Size:     8K
    Shared Pool Size:     2,048M     2,048M     Log Buffer:     5,200K
    Load Profile
         Per Second     Per Transaction
    Redo size:     572,299.00     9,239.63
    Logical reads:     129,738.24     2,094.59
    Block changes:     3,534.49     57.06
    Physical reads:     990.77     16.00
    Physical writes:     350.18     5.65
    User calls:     3,806.67     61.46
    Parses:     438.64     7.08
    Hard parses:     2.31     0.04
    Sorts:     1,112.23     17.96
    Logons:     5.56     0.09
    Executes:     4,926.11     79.53
    Transactions:     61.94     
    % Blocks changed per Read:     2.72     Recursive Call %:     63.19
    Rollback per transaction %:     0.21     Rows per Sort:     9.73
    Instance Efficiency Percentages (Target 100%)
    Buffer Nowait %:     99.99     Redo NoWait %:     100.00
    Buffer Hit %:     99.25     In-memory Sort %:     100.00
    Library Hit %:     99.70     Soft Parse %:     99.47
    Execute to Parse %:     91.10     Latch Hit %:     99.89
    Parse CPU to Parse Elapsd %:     95.41     % Non-Parse CPU:     98.92
    Shared Pool Statistics
         Begin     End
    Memory Usage %:     87.11     87.32
    % SQL with executions>1:     71.59     67.41
    % Memory for SQL w/exec>1:     78.66     77.94
    Top 5 Timed Events
    Event     Waits     Time(s)     Avg Wait(ms)     % Total Call Time     Wait Class
    db file sequential read     2,120,397     9,932     5     44.0     User I/O
    CPU time          9,284          41.1     
    db file parallel write     25,213     6,943     275     30.8     System I/O
    enq: RO - fast object reuse     553     1,388     2,510     6.1     Application
    log file parallel write     200,039     685     3     3.0     System I/O
    Main Report
    •     Report Summary
    •     Wait Events Statistics
    •     SQL Statistics
    •     Instance Activity Statistics
    •     IO Stats
    •     Buffer Pool Statistics
    •     Advisory Statistics
    •     Wait Statistics
    •     Undo Statistics
    •     Latch Statistics
    •     Segment Statistics
    •     Dictionary Cache Statistics
    •     Library Cache Statistics
    •     Memory Statistics
    •     Streams Statistics
    •     Resource Limit Statistics
    •     init.ora Parameters
    Back to Top
    Wait Events Statistics
    •     Time Model Statistics
    •     Wait Class
    •     Wait Events
    •     Background Wait Events
    •     Operating System Statistics
    •     Service Statistics
    •     Service Wait Class Stats
    Back to Top
    Time Model Statistics
    •     Total time in database user-calls (DB Time): 22572.5s
    •     Statistics including the word "background" measure background process time, and so do not contribute to the DB time statistic
    •     Ordered by % or DB time desc, Statistic name
    Statistic Name     Time (s)     % of DB Time
    sql execute elapsed time     21,791.55     96.54
    DB CPU     9,283.91     41.13
    PL/SQL execution elapsed time     835.47     3.70
    connection management call elapsed time     217.19     0.96
    parse time elapsed     108.39     0.48
    hard parse elapsed time     65.36     0.29
    RMAN cpu time (backup/restore)     6.94     0.03
    repeated bind elapsed time     1.67     0.01
    sequence load elapsed time     1.35     0.01
    PL/SQL compilation elapsed time     1.13     0.01
    inbound PL/SQL rpc elapsed time     0.46     0.00
    hard parse (sharing criteria) elapsed time     0.13     0.00
    failed parse elapsed time     0.11     0.00
    DB time     22,572.52     
    background elapsed time     8,108.80     
    background cpu time     239.28     
    Back to Wait Events Statistics
    Back to Top
    Wait Class
    •     s - second
    •     cs - centisecond - 100th of a second
    •     ms - millisecond - 1000th of a second
    •     us - microsecond - 1000000th of a second
    •     ordered by wait time desc, waits desc
    Wait Class     Waits     %Time -outs     Total Wait Time (s)     Avg wait (ms)     Waits /txn
    User I/O     2,252,192     0.00     10,358     5     10.11
    System I/O     290,991     0.00     7,754     27     1.31
    Application     989     52.88     1,713     1732     0.00
    Other     9,008     4.32     862     96     0.04
    Commit     123,032     0.01     663     5     0.55
    Network     8,045,193     0.00     322     0     36.10
    Administrative     8,083     0.00     222     28     0.04
    Concurrency     14,492     1.19     21     1     0.07
    Configuration     1,039     31.18     3     3     0.00
    Back to Wait Events Statistics
    Back to Top
    Wait Events
    •     s - second
    •     cs - centisecond - 100th of a second
    •     ms - millisecond - 1000th of a second
    •     us - microsecond - 1000000th of a second
    •     ordered by wait time desc, waits desc (idle events last)
    Event     Waits     %Time -outs     Total Wait Time (s)     Avg wait (ms)     Waits /txn
    db file sequential read     2,120,397     0.00     9,932     5     9.51
    db file parallel write     25,213     0.00     6,943     275     0.11
    enq: RO - fast object reuse     553     82.46     1,388     2510     0.00
    log file parallel write     200,039     0.00     685     3     0.90
    log file sync     123,032     0.01     663     5     0.55
    rdbms ipc reply     417     57.31     486     1166     0.00
    db file scattered read     58,713     0.00     334     6     0.26
    enq: TX - row lock contention     212     31.60     325     1535     0.00
    enq: CI - contention     203     32.02     230     1132     0.00
    SQL*Net more data from dblink     697     0.00     197     283     0.00
    enq: TX - contention     50     92.00     142     2840     0.00
    Backup: sbtwrite2     8,070     0.00     92     11     0.04
    read by other session     26,250     0.00     87     3     0.12
    SQL*Net more data from client     111,270     0.00     79     1     0.50
    Backup: sbtbackup     2     0.00     61     30738     0.00
    Backup: sbtremove2     1     0.00     58     57528     0.00
    log file sequential read     2,031     0.00     50     25     0.01
    Log archive I/O     2,012     0.00     46     23     0.01
    SQL*Net more data to client     525,719     0.00     42     0     2.36
    RMAN backup & recovery I/O     3,995     0.00     17     4     0.02
    control file parallel write     2,081     0.00     11     5     0.01
    row cache lock     13     15.38     7     517     0.00
    Backup: sbtclose2     2     0.00     6     3210     0.00
    latch: cache buffers chains     9,632     0.00     6     1     0.04
    Backup: sbtinfo2     2     0.00     4     2249     0.00
    SQL*Net message to client     7,407,395     0.00     4     0     33.24
    Data file init write     130     0.00     3     26     0.00
    latch: library cache     2,556     0.00     3     1     0.01
    db file single write     666     0.00     2     3     0.00
    control file sequential read     55,562     0.00     2     0     0.25
    cursor: pin S wait on X     175     97.14     2     10     0.00
    latch free     952     0.21     1     1     0.00
    log file switch completion     46     0.00     1     26     0.00
    latch: cache buffers lru chain     1,025     0.00     1     1     0.00
    os thread startup     12     0.00     1     88     0.00
    control file single write     48     0.00     1     21     0.00
    write complete waits     1     100.00     1     977     0.00
    latch: library cache pin     706     0.00     1     1     0.00
    log buffer space     126     0.79     1     5     0.00
    LGWR wait for redo copy     3,688     0.41     1     0     0.02
    latch: row cache objects     460     0.00     1     1     0.00
    switch logfile command     3     0.00     0     162     0.00
    enq: TX - index contention     22     0.00     0     18     0.00
    library cache lock     1     0.00     0     341     0.00
    latch: shared pool     137     0.00     0     2     0.00
    latch: enqueue hash chains     103     0.00     0     3     0.00
    wait list latch free     9     0.00     0     21     0.00
    latch: object queue header operation     137     0.00     0     1     0.00
    library cache load lock     6     0.00     0     25     0.00
    kksfbc child completion     4     75.00     0     37     0.00
    latch: messages     493     0.00     0     0     0.00
    SQL*Net break/reset to client     224     0.00     0     1     0.00
    latch: session allocation     258     0.00     0     1     0.00
    latch: cache buffer handles     125     0.00     0     1     0.00
    db file parallel read     12     0.00     0     10     0.00
    reliable message     85     0.00     0     1     0.00
    buffer busy waits     543     0.00     0     0     0.00
    latch: redo writing     543     0.00     0     0     0.00
    latch: redo allocation     65     0.00     0     1     0.00
    Backup: sbtinit     1     0.00     0     66     0.00
    log file single write     10     0.00     0     6     0.00
    latch: In memory undo latch     171     0.00     0     0     0.00
    direct path read temp     45,810     0.00     0     0     0.21
    cursor: pin S     1,325     0.00     0     0     0.01
    Backup: sbtend     1     0.00     0     29     0.00
    latch: library cache lock     56     0.00     0     0     0.00
    log file switch (private strand flush incomplete)     1     0.00     0     21     0.00
    latch: checkpoint queue latch     45     0.00     0     0     0.00
    ktfbtgex     1     100.00     0     10     0.00
    buffer deadlock     18     100.00     0     0     0.00
    undo segment extension     322     100.00     0     0     0.00
    latch: undo global data     4     0.00     0     1     0.00
    direct path write temp     208     0.00     0     0     0.00
    SQL*Net message to dblink     112     0.00     0     0     0.00
    cursor: mutex S     2     0.00     0     0     0.00
    Backup: sbtinit2     1     0.00     0     0     0.00
    direct path read     2     0.00     0     0     0.00
    direct path write     4     0.00     0     0     0.00
    enq: CF - contention     1     0.00     0     0     0.00
    SQL*Net message from client     7,407,362     0.00     499,728     67     33.24
    wait for unread message on broadcast channel     5,829     100.00     5,696     977     0.03
    Streams AQ: waiting for messages in the queue     739     100.00     3,512     4752     0.00
    jobq slave wait     538     96.65     1,563     2905     0.00
    SQL*Net message from dblink     113     0.00     188     1663     0.00
    single-task message     6     0.00     1     91     0.00
    class slave wait     2     0.00     0     1     0.00
    Back to Wait Events Statistics
    Back to Top
    Background Wait Events
    •     ordered by wait time desc, waits desc (idle events last)
    Event     Waits     %Time -outs     Total Wait Time (s)     Avg wait (ms)     Waits /txn
    db file parallel write     25,213     0.00     6,943     275     0.11
    log file parallel write     200,053     0.00     685     3     0.90
    log file sequential read     2,003     0.00     50     25     0.01
    Log archive I/O     1,985     0.00     46     23     0.01
    events in waitclass Other     5,075     0.35     36     7     0.02
    control file parallel write     1,926     0.00     11     5     0.01
    db file single write     665     0.00     2     3     0.00
    db file scattered read     70     0.00     2     21     0.00
    os thread startup     12     0.00     1     88     0.00
    log buffer space     121     0.83     0     3     0.00
    control file sequential read     3,436     0.00     0     0     0.02
    latch: redo writing     543     0.00     0     0     0.00
    log file single write     10     0.00     0     6     0.00
    latch: cache buffers chains     9     0.00     0     1     0.00
    buffer busy waits     4     0.00     0     0     0.00
    latch: In memory undo latch     5     0.00     0     0     0.00
    latch: shared pool     1     0.00     0     0     0.00
    db file sequential read     2,486     0.00     -0     -0     0.01
    rdbms ipc message     270,474     6.59     53,843     199     1.21
    pmon timer     1,199     99.92     3,506     2924     0.01
    smon timer     5,152     0.00     3,477     675     0.02
    class slave wait     1     0.00     0     1     0.00
    Back to Wait Events Statistics
    Back to Top
    Operating System Statistics
    Statistic     Total
    AVG_BUSY_TIME     97,613
    AVG_IDLE_TIME     250,683
    AVG_IOWAIT_TIME     50,858
    AVG_SYS_TIME     40,172
    AVG_USER_TIME     57,332
    BUSY_TIME     1,563,616
    IDLE_TIME     4,012,607
    IOWAIT_TIME     815,513
    SYS_TIME     644,464
    USER_TIME     919,152
    LOAD     1
    OS_CPU_WAIT_TIME     ###############
    RSRC_MGR_CPU_WAIT_TIME     0
    VM_IN_BYTES     8,159,232
    VM_OUT_BYTES     0
    PHYSICAL_MEMORY_BYTES     ###############
    NUM_CPUS     16
    NUM_CPU_SOCKETS     16
    Back to Wait Events Statistics
    Back to Top
    Service Statistics
    •     ordered by DB Time
    Service Name     DB Time (s)     DB CPU (s)     Physical Reads     Logical Reads
    GNVPRD     19,725.00     6,820.70     2,875,582     406,809,618
    SYS$USERS     2,809.60     2,432.80     689,519     59,435,406
    SYS$BACKGROUND     0.00     0.00     5,952     50,964
    Back to Wait Events Statistics
    Back to Top
    Service Wait Class Stats
    •     Wait Class info for services in the Service Statistics section.
    •     Total Waits and Time Waited displayed for the following wait classes: User I/O, Concurrency, Administrative, Network
    •     Time Waited (Wt Time) in centisecond (100th of a second)
    Service Name     User I/O Total Wts     User I/O Wt Time     Concurcy Total Wts     Concurcy Wt Time     Admin Total Wts     Admin Wt Time     Network Total Wts     Network Wt Time
    GNVPRD     2174758     999257     13651     1341     8083     22246     7947374     32088
    SYS$USERS     73011     35601     774     692     0     0     37787     71
    SYS$BACKGROUND     4214     913     31     107     0     0     0     0
    Back to Wait Events Statistics
    Back to Top
    SQL Statistics
    •     SQL ordered by Elapsed Time
    •     SQL ordered by CPU Time
    •     SQL ordered by Gets
    •     SQL ordered by Reads
    •     SQL ordered by Executions
    •     SQL ordered by Parse Calls
    •     SQL ordered by Sharable Memory
    •     SQL ordered by Version Count
    •     Complete List of SQL Text
    Back to Top
    SQL ordered by Elapsed Time
    •     Resources reported for PL/SQL code includes the resources used by all SQL statements called by the code.
    •     % Total DB Time is the Elapsed Time of the SQL statement divided into the Total Database Time multiplied by 100
    Elapsed Time (s)     CPU Time (s)     Executions      Elap per Exec (s)      % Total DB Time     SQL Id     SQL Module     SQL Text
    1,646     200     3,382     0.49     7.29     gj4cun71t2tdz
    RATE@tpora02 (TNS V1-V3)      select cprd.event_num, cp...
    1,476     71     1,724     0.86     6.54     90rxahqy9rntt
    RATE@tpora02 (TNS V1-V3)      SELECT CUSTEVENTSOURCE.EVENT_S...
    1,323     47     1,897     0.70     5.86     bj2k1at7aa2jr
    RATE@tpora02 (TNS V1-V3)      INSERT INTO COSTEDEVENT (ACCOU...
    1,219     220     68,594     0.02     5.40     0s3n1qq8m9qvj
    DEBTage@tpora02 (TNS V1-V3)      SELECT BILLSUMMARY.ACCOUNT_NUM...
    1,112     718     6     185.27     4.92     4rz598nkvfmq6
    SQL*Plus      begin TPP_REFILLS; end;
    989     139     133,363     0.01     4.38     azck89hzzsxzs
    JDBC Connect Client      SELECT NVL(A.OVERDUE, 0), TO_N...
    855     530     1,121     0.76     3.79     ata582x7aa4m7
    custaccmaintenance.exe      SELECT CPD2.START_DAT "START_D...
    788     736     1,006     0.78     3.49     dx0tmr2qk5gtc
    JDBC Connect Client      BEGIN GENEVA_ADMIN.GNV_BE_PROD...
    703     700     345     2.04     3.12     ctfptvsjzpk91
    JDBC Connect Client      SELECT 1 FROM PVCUSTHASPRODUCT...
    676     441     1,121     0.60     3.00     3tb8v001ab9us
    custaccmaintenance.exe      SELECT DISTINCT C.START_DAT "S...
    630     596     4     157.57     2.79     gbrschujps752
    oracle@tpora04 (TNS V1-V3)      SELECT "A1"."ACCOUNT_NUM"||'|'...
    554     544     169     3.28     2.46     gzyxsfa4x9jc9
    JDBC Connect Client      BEGIN GENEVA_ADMIN.GNV_BE_PAYM...
    512     238     2,059,483     0.00     2.27     4nt4x1ty34034
    DEBTage@tpora02 (TNS V1-V3)      SELECT DEBTESCALATIONREQUEST.A...
    475     113     133,143     0.00     2.11     70gcpfy5mud9z
    JDBC Connect Client      SELECT COUNT(*) FROM PVDEBTESC...
    451     152     6     75.23     2.00     9c0hw716bqzra
    SQL*Plus      begin TPP_COLLECTION...
    437     148     6     72.81     1.94     0d4axgbm13s4q
    SQL*Plus      begin TPP_COLLECTION...
    422     131     5     84.44     1.87     axun401xz5b9n
    SQL*Plus      begin TPP_COLLECTION...
    413     99     7     58.98     1.83     0d6b7w315bm45
    SQL*Plus      DECLARE l_stream nu...
    392     80     6     65.26     1.73     bxhccjz09f6gr
    SQL*Plus      (SELECT DISTINCT AC.ACCOUNT_NU...
    385     146     6     64.20     1.71     3abjdvpx6d1km
    SQL*Plus      begin TPP_COLLECTION...
    368     129     5     73.69     1.63     brqj2987r5qug
    SQL*Plus      begin TPP_COLLECTION...
    339     128     5     67.89     1.50     2t3dbft8xna14
    SQL*Plus      begin TPP_COLLECTION...
    335     10     165,568     0.00     1.48     fkp4mg3g9pxhj
    RATE@tpora02 (TNS V1-V3)      SELECT ACCOUNTRATING.ACCOUNT_N...
    299     143     6     49.85     1.33     7zybhxkwuwsz5
    SQL*Plus      begin TPP_COLLECTION...
    290     150     2,087,640     0.00     1.29     4wbvga5zfrw8j
    DEBTage@tpora02 (TNS V1-V3)      SELECT DEBTESCALATIONREQUEST.A...
    279     103     132,265     0.00     1.24     3r6cw5a8hkm0m
    SQL*Plus      SELECT NVL2(SUPPLIER_ORDER_NUM...
    273     272     1,057     0.26     1.21     f5rca5d6by0mz
    JDBC Connect Client      SELECT MAX(PROCESS_START) FROM...
    260     258     966     0.27     1.15     1k5g1um0u2ty9
    JDBC Connect Client      SELECT COUNT(*) FROM TPP_COLLE...
    226     225     169     1.34     1.00     7tz06amad7rhh
    JDBC Connect Client      UPDATE GNV_TR_ADDPAYMENT SET P...
    Back to SQL Statistics
    Back to Top
    SQL ordered by CPU Time
    •     Resources reported for PL/SQL code includes the resources used by all SQL statements called by the code.
    •     % Total DB Time is the Elapsed Time of the SQL statement divided into the Total Database Time multiplied by 100
    CPU Time (s)     Elapsed Time (s)     Executions      CPU per Exec (s)     % Total DB Time     SQL Id     SQL Module     SQL Text
    736     788     1,006     0.73     3.49     dx0tmr2qk5gtc
    JDBC Connect Client      BEGIN GENEVA_ADMIN.GNV_BE_PROD...
    718     1,112     6     119.66     4.92     4rz598nkvfmq6
    SQL*Plus      begin TPP_REFILLS; end;
    700     703     345     2.03     3.12     ctfptvsjzpk91
    JDBC Connect Client      SELECT 1 FROM PVCUSTHASPRODUCT...
    596     630     4     148.95     2.79     gbrschujps752
    oracle@tpora04 (TNS V1-V3)      SELECT "A1"."ACCOUNT_NUM"||'|'...
    544     554     169     3.22     2.46     gzyxsfa4x9jc9
    JDBC Connect Client      BEGIN GENEVA_ADMIN.GNV_BE_PAYM...
    530     855     1,121     0.47     3.79     ata582x7aa4m7
    custaccmaintenance.exe      SELECT CPD2.START_DAT "START_D...
    441     676     1,121     0.39     3.00     3tb8v001ab9us
    custaccmaintenance.exe      SELECT DISTINCT C.START_DAT "S...
    272     273     1,057     0.26     1.21     f5rca5d6by0mz
    JDBC Connect Client      SELECT MAX(PROCESS_START) FROM...
    258     260     966     0.27     1.15     1k5g1um0u2ty9
    JDBC Connect Client      SELECT COUNT(*) FROM TPP_COLLE...
    238     512     2,059,483     0.00     2.27     4nt4x1ty34034
    DEBTage@tpora02 (TNS V1-V3)      SELECT DEBTESCALATIONREQUEST.A...
    225     226     169     1.33     1.00     7tz06amad7rhh
    JDBC Connect Client      UPDATE GNV_TR_ADDPAYMENT SET P...
    220     1,219     68,594     0.00     5.40     0s3n1qq8m9qvj
    DEBTage@tpora02 (TNS V1-V3)      SELECT BILLSUMMARY.ACCOUNT_NUM...
    200     1,646     3,382     0.06     7.29     gj4cun71t2tdz
    RATE@tpora02 (TNS V1-V3)      select cprd.event_num, cp...
    152     451     6     25.38     2.00     9c0hw716bqzra
    SQL*Plus      begin TPP_COLLECTION...
    150     290     2,087,640     0.00     1.29     4wbvga5zfrw8j
    DEBTage@tpora02 (TNS V1-V3)      SELECT DEBTESCALATIONREQUEST.A...
    148     437     6     24.62     1.94     0d4axgbm13s4q
    SQL*Plus      begin TPP_COLLECTION...
    146     385     6     24.34     1.71     3abjdvpx6d1km
    SQL*Plus      begin TPP_COLLECTION...
    143     299     6     23.82     1.33     7zybhxkwuwsz5
    SQL*Plus      begin TPP_COLLECTION...
    139     989     133,363     0.00     4.38     azck89hzzsxzs
    JDBC Connect Client      SELECT NVL(A.OVERDUE, 0), TO_N...
    131     422     5     26.21     1.87     axun401xz5b9n
    SQL*Plus      begin TPP_COLLECTION...
    129     368     5     25.82     1.63     brqj2987r5qug
    SQL*Plus      begin TPP_COLLECTION...
    128     339     5     25.61     1.50     2t3dbft8xna14
    SQL*Plus      begin TPP_COLLECTION...
    113     475     133,143     0.00     2.11     70gcpfy5mud9z
    JDBC Connect Client      SELECT COUNT(*) FROM PVDEBTESC...
    103     279     132,265     0.00     1.24     3r6cw5a8hkm0m
    SQL*Plus      SELECT NVL2(SUPPLIER_ORDER_NUM...
    99     413     7     14.11     1.83     0d6b7w315bm45
    SQL*Plus      DECLARE l_stream nu...
    80     392     6     13.38     1.73     bxhccjz09f6gr
    SQL*Plus      (SELECT DISTINCT AC.ACCOUNT_NU...
    71     1,476     1,724     0.04     6.54     90rxahqy9rntt
    RATE@tpora02 (TNS V1-V3)      SELECT CUSTEVENTSOURCE.EVENT_S...
    47     1,323     1,897     0.02     5.86     bj2k1at7aa2jr
    RATE@tpora02 (TNS V1-V3)      INSERT INTO COSTEDEVENT (ACCOU...
    10     335     165,568     0.00     1.48     fkp4mg3g9pxhj
    RATE@tpora02 (TNS V1-V3)      SELECT ACCOUNTRATING.ACCOUNT_N...
    Back to SQL Statistics
    Back to Top
    SQL ordered by Gets
    •     Resources reported for PL/SQL code includes the resources used by all SQL statements called by the code.
    •     Total Buffer Gets: 466,834,523
    •     Captured SQL account for 66.1% of Total
    Buffer Gets      Executions      Gets per Exec      %Total     CPU Time (s)     Elapsed Time (s)     SQL Id     SQL Module     SQL Text
    97,138,090     1,121     86,653.07     20.81     530.19     855.23     ata582x7aa4m7
    custaccmaintenance.exe      SELECT CPD2.START_DAT "START_D...
    88,649,958     1,121     79,081.14     18.99     441.39     676.20     3tb8v001ab9us
    custaccmaintenance.exe      SELECT DISTINCT C.START_DAT "S...
    21,778,221     1,006     21,648.33     4.67     735.64     787.60     dx0tmr2qk5gtc
    JDBC Connect Client      BEGIN GENEVA_ADMIN.GNV_BE_PROD...
    21,179,373     3,382     6,262.38     4.54     199.85     1646.41     gj4cun71t2tdz
    RATE@tpora02 (TNS V1-V3)      select cprd.event_num, cp...
    20,355,429     345     59,001.24     4.36     699.56     703.43     ctfptvsjzpk91
    JDBC Connect Client      SELECT 1 FROM PVCUSTHASPRODUCT...
    18,462,542     6     3,077,090.33     3.95     717.94     1111.60     4rz598nkvfmq6
    SQL*Plus      begin TPP_REFILLS; end;
    13,979,364     169     82,718.13     2.99     544.48     554.28     gzyxsfa4x9jc9
    JDBC Connect Client      BEGIN GENEVA_ADMIN.GNV_BE_PAYM...
    9,484,600     2,087,640     4.54     2.03     150.20     290.38     4wbvga5zfrw8j
    DEBTage@tpora02 (TNS V1-V3)      SELECT DEBTESCALATIONREQUEST.A...
    8,370,348     2,059,483     4.06     1.79     237.85     512.20     4nt4x1ty34034
    DEBTage@tpora02 (TNS V1-V3)      SELECT DEBTESCALATIONREQUEST.A...
    8,208,700     6     1,368,116.67     1.76     152.29     451.37     9c0hw716bqzra
    SQL*Plus      begin TPP_COLLECTION...
    7,928,935     6     1,321,489.17     1.70     147.70     436.85     0d4axgbm13s4q
    SQL*Plus      begin TPP_COLLECTION...
    7,864,331     6     1,310,721.83     1.68     142.91     299.11     7zybhxkwuwsz5
    SQL*Plus      begin TPP_COLLECTION...
    7,821,595     6     1,303,599.17     1.68     146.06     385.22     3abjdvpx6d1km
    SQL*Plus      begin TPP_COLLECTION...
    7,774,307     1,057     7,355.07     1.67     271.82     273.33     f5rca5d6by0mz
    JDBC Connect Client      SELECT MAX(PROCESS_START) FROM...
    7,073,493     784     9,022.31     1.52     222.56     224.41     dvhuu9xxtth12
    SQL*Plus      SELECT ACCOUNTATTRIBUTE3, ACCO...
    7,003,054     169     41,438.19     1.50     225.02     225.81     7tz06amad7rhh
    JDBC Connect Client      UPDATE GNV_TR_ADDPAYMENT SET P...
    6,824,695     68,594     99.49     1.46     219.66     1218.68     0s3n1qq8m9qvj
    DEBTage@tpora02 (TNS V1-V3)      SELECT BILLSUMMARY.ACCOUNT_NUM...
    6,805,514     5     1,361,102.80     1.46     131.07     422.18     axun401xz5b9n
    SQL*Plus      begin TPP_COLLECTION...
    6,692,517     5     1,338,503.40     1.43     129.11     368.47     brqj2987r5qug
    SQL*Plus      begin TPP_COLLECTION...
    6,615,712     5     1,323,142.40     1.42     128.05     339.44     2t3dbft8xna14
    SQL*Plus      begin TPP_COLLECTION...
    5,860,474     132,265     44.31     1.26     103.31     279.47     3r6cw5a8hkm0m
    SQL*Plus      SELECT NVL2(SUPPLIER_ORDER_NUM...
    5,128,762     5     1,025,752.40     1.10     103.33     177.17     8c6vmvbwp9ja4
    SQL*Plus      begin TPP_COLLECTION...
    Back to SQL Statistics
    Back to Top
    SQL ordered by Reads
    •     Total Disk Reads: 3,565,074
    •     Captured SQL account for 66.6% of Total
    Physical Reads     Executions     Reads per Exec      %Total     CPU Time (s)     Elapsed Time (s)     SQL Id     SQL Module     SQL Text
    581,050     2     290,525.00     16.30     152.66     195.17     d15cdr0zt3vtp
    Oracle Enterprise Manager.Metric Engine      SELECT TO_CHAR(current_timesta...
    278,588     1,724     161.59     7.81     70.51     1475.54     90rxahqy9rntt
    RATE@tpora02 (TNS V1-V3)      SELECT CUSTEVENTSOURCE.EVENT_S...
    263,588     1,897     138.95     7.39     46.73     1322.83     bj2k1at7aa2jr
    RATE@tpora02 (TNS V1-V3)      INSERT INTO COSTEDEVENT (ACCOU...
    260,337     68,594     3.80     7.30     219.66     1218.68     0s3n1qq8m9qvj
    DEBTage@tpora02 (TNS V1-V3)      SELECT BILLSUMMARY.ACCOUNT_NUM...
    256,696     3,382     75.90     7.20     199.85     1646.41     gj4cun71t2tdz
    RATE@tpora02 (TNS V1-V3)      select cprd.event_num, cp...
    232,825     133,363     1.75     6.53     138.65     988.53     azck89hzzsxzs
    JDBC Connect Client      SELECT NVL(A.OVERDUE, 0), TO_N...
    166,786     7     23,826.57     4.68     98.78     412.88     0d6b7w315bm45
    SQL*Plus      DECLARE l_stream nu...
    152,293     6     25,382.17     4.27     80.25     391.58     bxhccjz09f6gr
    SQL*Plus      (SELECT DISTINCT AC.ACCOUNT_NU...
    91,086     133,143     0.68     2.55     113.14     475.35     70gcpfy5mud9z
    JDBC Connect Client      SELECT COUNT(*) FROM PVDEBTESC...
    75,392     6     12,565.33     2.11     152.29     451.37     9c0hw716bqzra
    SQL*Plus      begin TPP_COLLECTION...
    71,522     6     11,920.33     2.01     147.70     436.85     0d4axgbm13s4q
    SQL*Plus      begin TPP_COLLECTION...
    67,724     132,265     0.51     1.90     103.31     279.47     3r6cw5a8hkm0m
    SQL*Plus      SELECT NVL2(SUPPLIER_ORDER_NUM...
    64,148     2,059,483     0.03     1.80     237.85     512.20     4nt4x1ty34034
    DEBTage@tpora02 (TNS V1-V3)      SELECT DEBTESCALATIONREQUEST.A...
    63,710     5     12,742.00     1.79     131.07     422.18     axun401xz5b9n
    SQL*Plus      begin TPP_COLLECTION...
    56,512     6     9,418.67     1.59     146.06     385.22     3abjdvpx6d1km
    SQL*Plus      begin TPP_COLLECTION...
    52,123     6     8,687.17     1.46     717.94     1111.60     4rz598nkvfmq6
    SQL*Plus      begin TPP_REFILLS; end;
    51,966     5     10,393.20     1.46     129.11     368.47     brqj2987r5qug
    SQL*Plus      begin TPP_COLLECTION...
    47,043     5     9,408.60     1.32     128.05     339.44     2t3dbft8xna14
    SQL*Plus      begin TPP_COLLECTION...
    46,992     1,121     41.92     1.32     530.19     855.23     ata582x7aa4m7
    custaccmaintenance.exe      SELECT CPD2.START_DAT "START_D...
    42,104     6     7,017.33     1.18     142.91     299.11     7zybhxkwuwsz5
    SQL*Plus      begin TPP_COLLECTION...
    40,144     1,121     35.81     1.13     441.39     676.20     3tb8v001ab9us
    custaccmaintenance.exe      SELECT DISTINCT C.START_DAT "S...
    Back to SQL Statistics
    Back to Top
    SQL ordered by Executions
    •     Total Executions: 17,725,519
    •     Captured SQL account for 38.5% of Total
    Executions      Rows Processed     Rows per Exec     CPU per Exec (s)     Elap per Exec (s)      SQL Id     SQL Module     SQL Text
    2,087,640     919,180     0.44     0.00     0.00     4wbvga5zfrw8j
    DEBTage@tpora02 (TNS V1-V3)      SELECT DEBTESCALATIONREQUEST.A...
    2,059,483     2,159,051     1.05     0.00     0.00     4nt4x1ty34034
    DEBTage@tpora02 (TNS V1-V3)      SELECT DEBTESCALATIONREQUEST.A...
    596,449     0     0.00     0.00     0.00     9zstg7a7j4mk6
    custaccmaintenance.exe      SELECT STRING_VALUE FROM GPARA...
    267,468     267,431     1.00     0.00     0.00     8bgyqd22xu56f
    JDBC Connect Client      SELECT STRING_VALUE FROM TPP_G...
    203,642     157,264     0.77     0.00     0.00     0h6b2sajwb74n
         select privilege#, level from ...
    165,568     165,565     1.00     0.00     0.00     fkp4mg3g9pxhj
    RATE@tpora02 (TNS V1-V3)      SELECT ACCOUNTRATING.ACCOUNT_N...
    133,424     133,406     1.00     0.00     0.00     5aspmjf2vrnq5
    JDBC Connect Client      update accountattributes set D...
    133,422     133,416     1.00     0.00     0.00     82xjvtb8p8qzw
    JDBC Connect Client      update accountattributes set A...
    133,414     133,416     1.00     0.00     0.00     3cwuq4f267u2p
    JDBC Connect Client      update accountattributes set P...
    133,363     133,340     1.00     0.00     0.01     azck89hzzsxzs
    JDBC Connect Client      SELECT NVL(A.OVERDUE, 0), TO_N...
    Back to SQL Statistics
    Back to Top
    SQL ordered by Parse Calls
    •     Total Parse Calls: 1,578,365
    •     Captured SQL account for 68.8% of Total
    Parse Calls     Executions      % Total Parses     SQL Id     SQL Module     SQL Text
    203,641     203,642     12.90     0h6b2sajwb74n
         select privilege#, level from ...
    133,417     133,422     8.45     82xjvtb8p8qzw
    JDBC Connect Client      update accountattributes set A...
    133,399     133,424     8.45     5aspmjf2vrnq5
    JDBC Connect Client      update accountattributes set D...
    133,373     133,414     8.45     3cwuq4f267u2p
    JDBC Connect Client      update accountattributes set P...
    133,294     133,305     8.45     f2cwgjkfgrd34
    JDBC Connect Client      update accountattributes set A...
    22,476     22,476     1.42     9babjv8yq8ru3
    SQL*Plus      BEGIN DBMS_OUTPUT.GET_LINES(:L...
    20,013     20,013     1.27     0k8522rmdzg4k
         select privilege# from sysauth...
    19,963     20,102     1.26     15zytu14qzw6p
    oracle@tpora04 (TNS V1-V3)      insert into sys.aud$( sessioni...
    19,902     19,902     1.26     1rd8um1taq1fn
         update sys.aud$ set action#=:2...
    19,412     19,412     1.23     459f3z9u4fb3u
         select value$ from props$ wher...
    19,408     19,407     1.23     0ws7ahf1d78qa
         select SYS_CONTEXT('USERENV', ...
    19,388     19,388     1.23     5ur69atw3vfhj
         select decode(failover_method,...
    18,432     18,432     1.17     1uzhrfn574t12
    sqlplus@tpora02 (TNS V1-V3)      SELECT ATTRIBUTE, SCOPE, NUMER...
    18,432     18,432     1.17     c4pc3jhzjcmc7
    sqlplus@tpora02 (TNS V1-V3)      SELECT CHAR_VALUE FROM SYSTEM....
    18,432     18,432     1.17     d6vwqbw6r2ffk
    sqlplus@tpora02 (TNS V1-V3)      SELECT USER FROM DUAL
    18,432     18,432     1.17     dyk4dprp70d74
    SQL*Plus      SELECT DECODE('A', 'A', '1', '...
    18,431     18,431     1.17     g4y6nw3tts7cc
    sqlplus@tpora02 (TNS V1-V3)      BEGIN DBMS_APPLICATION_INFO.SE...
    18,420     18,420     1.17     5qgz1p0cut7mx
    sqlplus@tpora02 (TNS V1-V3)      BEGIN DBMS_OUTPUT.DISABLE; END...
    18,149     18,149     1.15     cb21bacyh3c7d
         select metadata from kopm$ wh...
    18,028     18,028     1.14     b3s1x9zqrvzvc
    SQL*Plus      BEGIN DBMS_OUTPUT.ENABLE(10000...
    Back to SQL Statistics
    Back to Top
    SQL ordered by Sharable Memory
    No data exists for this section of the report.
    Back to SQL Statistics
    Back to Top
    SQL ordered by Version Count
    •     Only Statements with Version Count greater than 20 are displayed
    Version Count      Executions      SQL Id     SQL Module     SQL Text
    37     1     5m21u4xgy81pa
    SQL*Plus      select ord.status_cd Status, ...
    35     1     26hm5bmbzq9sy
    SQL*Plus      select ord.status_cd Status, ...
    23     1     gtn080r95gfr9
    SQL*Plus      insert into connect_pp_monitor...
    Back to SQL Statistics
    Back to Top

  • How To Store pdf or doc file in Oracle Database using Java Jdbc?

    can any one help me out How To Store pdf or doc file in Oracle Database using Java Jdbc in JSP/Serlet? i tried like anything. using blob also i tried. but i am able 2 store images in DB not files. please if u know or else if u have some code like this plz send that to me, and help me out plz. i need that urgent.

    Hi.. i am not getting error, But i am not getting the original contents from my file. i am getting all ASCII vales, instead of my original data. here i am including my code.
    for Adding PDF in DB i used image.jsp
    Database table structure (table name. pictures )
    Name Null? Type
    ID NOT NULL NUMBER(11)
    IMAGE BLOB
    <%@ page language="java" import="java.util.*,java.sql.*,java.io.*" pageEncoding="ISO-8859-1"%>
    <%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
    %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <%
    try{
         Class.forName("oracle.jdbc.driver.OracleDriver");
         Connection con=DriverManager.getConnection("jdbc:oracle:thin:@192.168.1.135:1521:orcl","scott","tiger");
         PreparedStatement ps,pstmt,psmnt;
         ps = con.prepareStatement("INSERT INTO pictures VALUES(?,?)");
    File file =
    new File("D:/info.pdf");
    FileInputStream fs = new FileInputStream(file);
    ps.setInt(1,4);
    ps.setBinaryStream(2,fs,fs.available());
    int i = ps.executeUpdate();
    if(i!=0){
    out.println("<h2>PDF inserted successfully");
    else{
    out.println("<h2>Problem in image insertion");
    catch(Exception e){
    out.println("<h2>Failed Due To "+e);
    %>
    O/P: PDF inserted successfully
    i tried to display that pdf using servlet. i am giving the code below.
    import java.io.IOException;
    import java.sql.*;
    import java.io.*;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    public class DispPDF extends HttpServlet {
         * The doGet method of the servlet. <br>
         * This method is called when a form has its tag value method equals to get.
         * @param request the request send by the client to the server
         * @param response the response send by the server to the client
         * @throws ServletException if an error occurred
         * @throws IOException if an error occurred
         public void service(HttpServletRequest request, HttpServletResponse response)
                   throws ServletException, IOException {
              //response.setContentType("text/html"); i commented. coz we cant use response two times.
              //PrintWriter out = response.getWriter();
              try{
                   InputStream sPdf;
                   Class.forName("oracle.jdbc.driver.OracleDriver");
                        Connection con=DriverManager.getConnection("jdbc:oracle:thin:@192.168.1.135:1521:orcl","scott","tiger");
                        PreparedStatement ps,pstmt,psmnt;
                   psmnt = con.prepareStatement("SELECT image FROM pictures WHERE id = ?");
                        psmnt.setString(1, "4"); // here integer number '4' is image id from the table.
                   ResultSet rs = psmnt.executeQuery();
                        if(rs.next()) {
                   byte[] bytearray = new byte[1048576];
                        //out.println(bytearray);
                        int size=0;
                        sPdf = rs.getBinaryStream(1);
                        response.reset();
                        response.setContentType("application/pdf");
                        while((size=sPdf.read(bytearray))!= -1 ){
                        //out.println(size);
                        response.getOutputStream().write(bytearray,0,size);
                   catch(Exception e){
                   System.out.println("Failed Due To "+e);
                        //out.println("<h2>Failed Due To "+e);
              //out.close();
    OP
    PDF-1.4 %âãÏÓ 2 0 obj <>stream xœ+är á26S°00SIá2PÐ5´1ôÝ BÒ¸4Ü2‹ŠKüsSŠSŠS4C²€ê P”kø$V㙂GÒU×713CkW )(Ü endstream endobj 4 0 obj <>>>/MediaBox[0 0 595 842]>> endobj 1 0 obj <> endobj 3 0 obj <> endobj 5 0 obj <> endobj 6 0 obj <> endobj xref 0 7 0000000000 65535 f 0000000325 00000 n 0000000015 00000 n 0000000413 00000 n 0000000168 00000 n 0000000464 00000 n 0000000509 00000 n trailer <<01b2fa8b70ac262bfa939cc786f8770c>]/Root 5 0 R/Size 7/Info 6 0 R>> startxref 641 %%EOF
    plz help me out.

  • Remote Database connection throught JDBC-ODBC

    Hi everybody
    I've developed an application which connects to a MS Access database throught the JDBC-ODBC bridge; if the database is on my local machine I've no problem at all, but I now need to connect to a database on a remote PC. I've set the DSN entry for the database on the remote computer and try to connect using something like:
    String db_name="jdbc:odbc:remote_pc_name\\\\DSN_db_name";
    Properties db_prop=new Properties();
    db_prop.setProperty("user","username");
    db_prop.setProperty("password","user_password");
    Connection dbconn=DriverManager.getConnection(db_name,db_prop);
    but the ODBC driver gives me the message
    "[Microsoft][ODBC Driver Manager] DSN not found and driver not specified.
    I've tried other possible "connection strings" but I always get the same message.
    The software works properly if I connect to the local DB with:
    String db_name="jdbc:odbc:DSN_db_name";
    Any idea how to connect to a remote DB through ODBC?
    Thanks

    No need for a separate thread really is there? its still relevant to the original.
    import java.awt.*;
    import java.sql.*;
    public class JDBC1 extends Frame {
         private static final String DB = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=\\\\http:\\\\www.cs.stir.ac.uk\\~dcl\\databasename.mdb";
         public static void main(String[] arguments) {
              try {
                   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
                   System.out.println("Driver registered!");
                         Connection conn = DriverManager.getConnection(DB, "", "");
                   System.out.println("Connected!");
                   Statement st = conn.createStatement();
                   System.out.println("Statement created!");
                   ResultSet rec = st.executeQuery("SELECT * FROM people");
                   System.out.println("Queried!");
                   while( rec.next() ) {
                        System.out.println( rec.getString(2) );
                   st.close();          //close the statement
                   conn.close();          //close the connection
              catch( SQLException s ) {
                   System.out.println("SQL Error: "+ s.toString() + " " + s.getErrorCode() );
                   s.printStackTrace();
              catch( Exception e ) {
                   System.out.println("Error: "+ e.toString() + e.getMessage() );
    }

  • Couldnt load database driver: oracle.jdbc.driver.OracleDriver

    Hi,
    I could appreciate some help here.
    I have saved my classes12.zip and nls_charset12.zip in my c:\work\WebDev and I have added this to my classpath. But when I run my servlet, I still get the error of "Couldnt load database driver: oracle.jdbc.driver.OracleDriver"
    I also tried using jar files but still got the same error.
    Any sggestions to solve this?
    Thanks!!

    If it is Tomcat, extract the classes12.zip and place
    in the tomcat-home\common\classes folder.
    I am rather certain that it does not need to be extracted. I am also rather certain that the documentation for Tomcat points out the correct way to install it (which includes changing the extension from zip to jar.)

  • Calling Stored Procedure from Oracle DataBase using Sender JDBC (JDBC-JMS)

    Hi All,
    We have requirement to move the data from Database to Queue (Interface Flow: JDBC -> JMS).
    Database is Oracle.
    *Based on Event, data will be triggered into two tables: XX & YY. This event occurs twice daily.
    Take one field: 'aa' in XX and compare it with the field: 'pp' in YY.
    If both are equal, then
         if the field: 'qq' in YY table equals to "Add" then take the data from the view table: 'Add_View'.
         else  if the field: 'qq' in YY table equals to "Modify"  then take the data from the view table: 'Modify_View'.
    Finally, We need to archive the selected data from the respective view table.*
    From each table, data will come differently, means with different field names.
    I thought of call Stored Procedure from Sender JDBC Adapter for the above requirement.
    But I heard that, we cannot call stored procedure in Oracle through Sender JDBC as it returns Cursor instead of ResultSet.
    Is there any way other than Stored Procedure?
    How to handle Data Types as data is coming from two different tables?
    Can we create one data type for two tables?
    Is BPM required for this to collect data from two different tables?
    Can somebody guide me on how to handle this?
    Waiting eagerly for help which will be rewarded.
    Thanks and Regards,
    Jyothirmayi.

    Hi Gopal,
    Thank you for your reply.
    >Is there any way other than Stored Procedure?
    Can you try configuring sender adapter to poll the data in intervals. You can configure Automatic TIme planning (ATP) in the sender jdbc channel.
    I need to select the data from different tables based on some conditions. Let me simplify that.
    Suppose Table1 contains 'n' no of rows. For each row, I need to test two conditions where only one condition will be satisfied. If 1st condition is satisfied, then data needs to be taken from Table2 else data needs to be taken from Table3.
    How can we meet this by configuring sender adapter with ATP?
    ================================================================================================
    >How to handle Data Types as data is coming from two different tables?
    If you use join query in the select statement field of the channel then whatever you need select fields will be returned. This might be fields of two tables. your datatype fields are combination of two diff table.
    we need to take data only from one table at a time. It is not join of two tables.
    ================================================================================================
    Thanks,
    Jyothirmayi.

  • Populating SAP Database table using JDBC adapter

    Hi Folks,
        I have a requirement to populate a SAP database table say ZTABLE using XI. The Model is the table has to be populated through a file which will be processed by SAP XI. Basically this is a File to JDBC scenario. The database used is ORACLE. Kindly provide me some idea to go ahead.

    I tried to place the MS access table in the shared folder of the Application server system but still it seems the table is not being populated.
    did you check the log in your receiver channel? (/people/sameer.shadab/blog/2005/10/24/connecting-to-ms-access-using-receiver-jdbc-adapter-without-dsn)
    The requirement is to update the tables directly as those are the custom tables.
    i would still say that do not update SAP tables directly from XI/ PI.....this is not a standard architecture/ solution....

  • Inserting Multiple Rows into Database Table using JDBC Adapter - Efficiency

    I need to insert multiple rows into a database table using the JDBC adapter (receiver).
    I understand the traditional way of repeating the statement multiple times, each having its <access> element. However, I am just wondering whether this might be performance-inefficient, as it might insert records one by one.
    Is there a way to ensure that the records are inserted into the table as a block, rather than record-by-record?

    Hi Bhavesh/Kanwaljit,
    If we have multiple ACCESS tags then what happens is that the connection to the database is made only once. But the data is inserted row by row.
    Why i am saying this?
    If we add the following in JDBC Adapter..logSQLStatement = true. Then incase of multiple inserts we can see that there are multiple
    <i>Insert into tablename(EMP_NAME,EMP_ID) VALUES('J','1000')
    Insert into tablename(EMP_NAME,EMP_ID) VALUES('J','2000')</i>
    Doesnt this mean that rows are inserted one by one?
    Correct me if i am wrong.
    This does not mean that the transaction is not guaranted. Either all the rows will be inserted or rolled back.
    Regards,
    Sumit

  • Error database connection in JDBC Adapter

    Hi Experts,
      I am facing errror database connection problem in production system.
    My interface was working fine in production till yesterday but suddenly from today i am facing the error connection problem.
    Below is the error message i am getting.
    Error during database connection to the database URL 'jdbc:oracle:thin:@<ip>:<port>:"' using the JDBC driver 'oracle.jdbc.driver.OracleDriver': 'com.sap.aii.adapter.jdbc.sql.DriverManagerException: Cannot establish connection to URL 'jdbc:oracle:thin:@'jdbc:oracle:thin:@<ip>:<port>:": SQLException: Io exception: The Network Adapter could not establish the connection'
    Please advice what would be the problem.
    I have checked the IP by pinging, its working fine.
    Thanks,
    Swetha Reddy

    Hi Sarvesh,
      I have tried with deactivaing and activating channel.. but facing same problem..
    Nio firewall settings has been changed either side..
    Regarding patch i am not sure what patch should be applied..
    i can tell that BASIS has not applied ant patch..
    Thanks,
    Swetha Reddy

  • OVD Database Adapter w/ JDBC Thin Driver to 10G RAC DB Resource

    I'm looking for feedback as to whether anyone has successfully consumed a RAC database resource through an OVD database adapter? If so, I am interested in what your host value in the adapter ui looked like.
    I am successful with this connection only if I go against one of the RAC nodes directly, thus losing redundancy.
    This is OVD 10G 10.1.4.3 on RHEL4
    RAC DB 10G
    I have tried:
    (DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=ON)(ADDRESS=(PROTOCOL=TCP)(HOST=10.26.4.203)(PORT=1540))(ADDRESS=(PROTOCOL=TCP)(HOST=10.26.4.204)(PORT=1540)))
    (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = myhost)(PORT = 1540))(ADDRESS = (PROTOCOL = TCP)(HOST = myhost2)(PORT = 1540))(LOAD_BALANCE = yes)(CONNECT_DATA = (SERVICE_NAME = SCHTESTS)(FAILOVER_MODE = (TYPE = SELECT)(METHOD = BASIC)(RETRIES = 200)(DELAY = 5))))
    (DESCRIPTION=(LOAD_BALANCE=on)(ADDRESS=(PROTOCOL=TCP)(HOST=myhost)(PORT=1540)) (ADDRESS=(PROTOCOL=TCP)(HOST=myhost2)(PORT=1540))(CONNECT_DATA=(SERVICE_NAME=SCHTESTS)))
    OVD Manager seems to anticipate this format because it then rejects inputs on the host and port form fields which I take as a positive indicator.
    Otherwise, this feels like taking shots in the dark...
    Any assistance or feedback is much appreciated.
    Mark

    Sorted this out:
    Used custom URL and made sure that the OVD Manager IDE was not appending any additional information following the closing bracket of the URL.
    The full successful URL was as follows with no values in any of the other fields:
    jdbc:oracle:thin:@(DESCRIPTION=(LOAD_BALANCE=on)(ADDRESS = (PROTOCOL = TCP)(HOST = host1)(PORT = 1540))(ADDRESS = (PROTOCOL = TCP)(HOST = host2)(PORT = 1540))(CONNECT_DATA=(SERVICE_NAME=SNAME)))

  • Not able to work with multiple Databases using  oracle.jdbc.driver.OracleDr

    Hi all,
    I am using the following Oracle Driver in Weblogic 6.1 sp 4
    oracle.jdbc.driver.OracleDriver / jdbc:oracle:thin:
    Driver. I am not able to select rows from two different table, which resides in two different Databases.
    The Exception is :
    SQL Exception Connection has already been created in this tx context for pool named CDPool. Illegal attempt to create connection
    nother pool: MultiTransactionTest
    Start server side stack trace:
    java.sql.SQLException: Connection has already been created in this tx context for pool named CDPool. Illegal attempt to create c
    on from another pool: MultiTransactionTest
    at weblogic.jdbc.jts.Driver.getExistingConnection(Driver.java:288)
    at weblogic.jdbc.jts.Driver.connect(Driver.java:123)
    at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:214)
    at weblogic.jdbc.common.internal.RmiDataSource_WLSkel.invoke(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:305)
    at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:93)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:274)
    at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:22)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    End server side stack trace
    Can any one help me to fix this issue?
    -Thanks & Regards,
    Shamil.S

    Shamil S wrote:
    Hi all,
    I am using the following Oracle Driver in Weblogic 6.1 sp 4
    oracle.jdbc.driver.OracleDriver / jdbc:oracle:thin:
    Driver. I am not able to select rows from two different table, which resides in two different Databases.
    The Exception is :
    SQL Exception Connection has already been created in this tx context for pool named CDPool. Illegal attempt to create connection
    nother pool: MultiTransactionTestHi. You can't domultiple DBMSes in one transaction unless you use an XA driver and
    an XA transaction. Your workarounds are:
    1 - Use an XA driver, datasource, and tx
    2 - If you're just reading, you can use non-transactional datasources. Do make sure you
    always close your connections...
    Joe
    >
    Start server side stack trace:
    java.sql.SQLException: Connection has already been created in this tx context for pool named CDPool. Illegal attempt to create c
    on from another pool: MultiTransactionTest
    at weblogic.jdbc.jts.Driver.getExistingConnection(Driver.java:288)
    at weblogic.jdbc.jts.Driver.connect(Driver.java:123)
    at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:214)
    at weblogic.jdbc.common.internal.RmiDataSource_WLSkel.invoke(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:305)
    at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:93)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:274)
    at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:22)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    End server side stack trace
    Can any one help me to fix this issue?
    -Thanks & Regards,
    Shamil.S

  • Access database/ java application/ jdbc odbc

    i am building an access database with a java application and get the following error message when i try to run the application. the log in window that i have does not have a password text field, only a field for the odbc name.
    java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Not a valid password.
    at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6106)
    at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:6263)
    at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(JdbcOdbc.java:2488)
    at sun.jdbc.odbc.JdbcOdbcConnection.initialize(JdbcOdbcConnection.java:317)
    at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:160)

    User/password are usually necessary to set up the ODBC source. So you may need find out who set up your ODBC source. Or you need find the correct user/password and reset the ODBC source.
    PC

  • Inner Join Condition For  Database Tables in JDBC Adapter

    Hi
    Is there any restriction for Number of database tables to Write Inner join Condition in JDBC.
    Thanks

    Venkat,
    No there is no restriction in Inner join. If your query executes perfectly in target Database then the same query will exceute perfectly while calling through XI.
    Best regards,
    raj.

  • PJC and database access through JDBC

    Hello,
    I'm trying to access to the database through a PJC via JDBC.
    conn = DriverManager.getConnection ("jdbc:oracle:thin:@machine:1521:XE", "user", "pwd");It works fine on a XE database, but fails on another XE one:
    Oracle JInitiator: Version 1.3.1.22
    java.lang.NullPointerException
         at oracle.jdbc.ttc7.O3log.marshal(O3log.java:606)
         at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:255)
         at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:377)
         at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:515)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:345)
         at java.sql.DriverManager.getConnection(Unknown Source)
         at java.sql.DriverManager.getConnection(Unknown Source)
         at oracle.forms.fd.AsyncJob.connect(AsyncJob.java:68)
         at oracle.forms.fd.AsyncJob.run(AsyncJob.java:121)
         at java.lang.Thread.run(Unknown Source)It also fails on a remote Unix database:
    java.security.AccessControlException: access denied (java.net.SocketPermission monadev resolve)
         at java.security.AccessControlContext.checkPermission(Unknown Source)
    ...so I edit the java.policy file of the Jinitiator directory:
    permission java.net.SocketPermission "machine:port-", "accept,connect,listen,resolve";     and then get the same execption:
    java.lang.NullPointerException
         at oracle.jdbc.ttc7.O3log.marshal(O3log.java:606)
         at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:255)
    ...Finally, it work on only one machine and only a local database.
    I'm probably missing something somewhere.
    Is anyone could give me some light on this ?
    Thanks in advance,
    Francois

    I'm just learning to work with PJC's, so I'm unsure whether I can help, but here goes. I found the following archived on Google Groups (http://groups.google.com):
    Hi. The basic applet security model is that it can only make connections
    back to the machine from which it was downloaded. If you want to do
    JDBC from an applet to a DBMS not on the applet-server machine,
    you need a type-3 JDBC driver. A type-3 JDBC driver has an all-Java
    client driver piece which an applet can download and use. This driver
    piece connects to a proxy piece which is running on the webserver
    machine. This proxy piece then connects to any DBMS anywhere on the
    net, and is the middleman between the JDBC client and DBMS.
       For security, management and performance reasons it's usually better to
    constrain JDBC to a middle tier such as in a servlet, and use HTML to and
    from the client, rather than the space and time involved in downloading a
    full general query engine (a JDBC driver) to a client which typically uses
    .1% of the capability or classes of the JDBC driver.
    Joe Weinstein at BEA HTH,
    Eric Adamson
    Lansing, Michigan

  • Access to Database Access from JDBC

    Hello,
    I have a RFC to JDBC scenario.
    The database is on a different machine to the XI, but from XI is going to map a drive to see the database.
    In the communication channel I specified the drive with the rest of the path:
    jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=Z:/TestDB.mdb
    and I get an error:
    com.sap.aii.af.ra.ms.api.DeliveryException: Database connection could not be established
    Is it possible to access an Access database that is not physically in the machine XI?
    thanks very much,

    hi silvia
    first, you need to install JDBC driver in PI to be able to connect to MS Access.
    please, see these links
    https://forums.sdn.sap.com/click.jspa?searchID=24103238&messageID=7100823
    Re: MS access o XI : External driverof access is required or not.
    Regarding File to JDBC/MS Access database
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f04ce027-934d-2a10-5a8f-fa0b1ed4d88f
    thanks
    PD:points if useful
    Rodrigo

Maybe you are looking for