XI JDBC Measurement

Hi Experts,
is there a possibility to measure JDBC-operations?
e.g. i poll every 60 seconds with the jdbc-adapter,
how much traffic is generated with this action?
Im looking for a way to measure the traffic or the load of the XI.
Thanks in advance
Christian

Hi,
don't forget that into the RWB, you have:
.. - End-to-End Monitoring
.. - Performance Monitoring
But I think that these tools never measure each JDBC call that does NOT sent an info. Indeed, as your polling is 60s, we can supposed that most of time the JDBC does not sent data to XI... but this call consume a few time, process, etc...
Else into RWB > Message Monitoring > Adapter Engine, you have the possibility to see EACH JDBC call, even them which does not return data (have a look on start and end date).
Regards.
Mickael

Similar Messages

  • Sender JDBC adapter not picking up data

    Hi,
    I'm using an adpater to poll dta from two tables using the below query:
    SELECT TPartOrderMaster., (the editor convert the star to bold),   TPartOrderDetail.    FROM TPartOrderMaster INNER JOIN TPartOrderDetail ON TPartOrderMaster.OdrNo = TPartOrderDetail.OdrNo  WHERE (((TPartOrderMaster.DocStatusCode)='OA'))
    UPDATE TPartOrderMaster SET LastUpdatedDate= GETDATE(),  DocStatusCode='OP' WHERE DocStatusCode ='OA'
    However, the adapter doesn't pick any data and gives the below log continuously.
    11/13/09 5:35:50 PM  7c2bb696-0832-423d-2d59-8e955a3d6e6e  Processing finished successfully
      11/13/09 5:35:30 PM                                                                         Processing started
      11/13/09 5:33:50 PM 7c2bb696-0832-423d-2d59-8e955a3d6e6e   Polling interval started. Length: 120.0 seconds
    I have tried running th equery in the SQL server and it works properly.
    I even tried restarting the adapter, inactivating and activating it, restarted the adapter in Visual admin. There are no locks for the jdbc adapter in the Visual admin.
    Can anyone please suggest what other measures can I take to solve this issue.
    Thanks and Regards,
    Merrilly
    Edited by: Merrilly Don Thomas on Nov 13, 2009 5:50 PM

    SELECT TPartOrderMaster., (the editor convert the star to bold), TPartOrderDetail. FROM TPartOrderMaster INNER JOIN TPartOrderDetail ON TPartOrderMaster.OdrNo = TPartOrderDetail.OdrNo WHERE (((TPartOrderMaster.DocStatusCode)='OA'))
    I doubt whether this works with Jdbc adapter even though the query fetches data when executed on database. The query selects two tables (TPartOrderMaster and TPartOrderDetail) which could be problamatic. Instead can you list out the resultant table(after join) fields in Select query instead of table names?
    Refer this blog-
    http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3414800)ID0202753750DB11861200566708306426End?blog=/pub/wlg/1725

  • Analytic View activation fails because of a Calculated Measure

    I'm working with HANA SPS02 here.
    Step 1
    I have an Analytic View where I have CALDAY among Private Attributes and VALUE in Measures. I add an Attribute View with UCALDAY (whatever it means) and implement a new calculated measure CALCVAL with logic as follows: if( (date("CALDAY") <= date("ATV_SEL_UCALDAY")), "VALUE", 0). It works fine.
    Step 2
    I added another Attribute View where the key attribute is its own CALDAY field, making a join by that field. Activated the Analytic View failed with the error log as follows:
    Error preparing and executing OLAP column view DDL: SAP DBTech JDBC: [2048] (at 15): column store error: <?xml version="1.0" encoding="utf-8"?><createCubeResult version="1.0"><status><message>The scenario XML is not valid</message><errorCode>2112</errorCode></status><details><errors><detail><element>CalculationNode (finalAggregation) -> attributes -> calculatedAttribute (CALCVAL) -> expression</element><code>46</code><message>Attribute 'CALDAY' is missing in node finalAggregation</message></detail></errors><warnings><detail><element>cubeSchema</element><code>46</code><message>Default language not set. Use 'en'</message></detail></warnings></details></createCubeResult>
    Exception: class com.sap.db.jdbc.exceptions.JDBCDriverException
    com.sap.db.jdbc.exceptions.SQLExceptionSapDB.createException(SQLExceptionSapDB.java:284)
    com.sap.db.jdbc.exceptions.SQLExceptionSapDB.generateDatabaseException(SQLExceptionSapDB.java:149)
    com.sap.db.jdbc.packet.ReplyPacket.createException(ReplyPacket.java:98)
    com.sap.db.jdbc.ConnectionSapDB.throwSQLError(ConnectionSapDB.java:1124)
    com.sap.db.jdbc.ConnectionSapDB.execute(ConnectionSapDB.java:774)
    com.sap.db.jdbc.ConnectionSapDB.execute(ConnectionSapDB.java:639)
    com.sap.db.jdbc.CallableStatementSapDB.execute(CallableStatementSapDB.java:433)
    com.sap.db.jdbc.CallableStatementSapDB.execute(CallableStatementSapDB.java:309)
    com.sap.db.jdbc.trace.PreparedStatement.execute(PreparedStatement.java:153)
    com.sap.ndb.studio.sdk.resource.deployment.bi.DeploymentExecutor.getAndExecuteActivationDDl(Unknown Source)
    com.sap.ndb.studio.bi.deployment.DeploymentJob.activateObjects(Unknown Source)
    com.sap.ndb.studio.bi.deployment.DeploymentJob.run(Unknown Source)
    org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
    Step 3
    If I delete that CALCVAR measure, Analytic View can be activated just fine.
    No hints in OSS Notes so far. Any ideas what went wrong?

    Hello,
    it is extremely hard from such description to figure out what is the problem...
    You might need to paste the screenshots so that we can take a look...
    Just one hint - make sure that you do not take attribute and use it as calculated measure or vice versa - this will definitely lead to error.
    Tomas

  • Monitoring total number of JDBC connections

    We have our application deployed in the Oracle 10g Application server, it uses Toplink 10g for the Persistence and OR mapping and the Oracle 9i database for data storage, the database connection pool is built and maintained by Toplink.
    We observed that on the administration screen for each container, there are 2 parameters, number of active database connections and the total number of JDBC connections.
    We did some load testing for the application and observed the following behaviour on the container.
    1. When the number of parallel users are 10, behaviour seems to be normal, the active database connections are less than 20(used by the connection pool built by Toplink) and the total number of JDBC connections is the same as the number of database connections.
    2. When the number of parallel users is increased to 50, we see that the active database connections is still less than 20, but the total number of JDBC connections just blowed up to 4000+ in less than 2 minutes and still growing. We have no valid explanation for this behaviour as the active sessions is still less than 20. Also we see no obnormal behaviour in our application log files.
    The questions i have are
    1. What could be the reason for the above abnormal behaviour?
    2. How this parameter "Total number of JDBC connections" for a container is actually measured?
    3. DOes this parameter gets affected by how we run the database i.e. in Dedicated server mode or Despactcher mode?
    Many thanks for any information on this topic..

    Perhaps your connection inactivity timeout is slightly too low, so that your connections are being closed and reopened at almost the same frequency. Try increasing the timeout.
    Good Luck,
    Chris

  • Use of JDBC Trace feature

    I want to see what SQL statements are executed against HANA when I run BObj Analysis for Excel on top of HANA views I had created. Accordingly to the HANA Development Guide p.63 it should be possible. Actually, I don't see my SQL statements in the log.
    Details are as follows:
    1. I have enabled JDBC Trace in HANA Studio, in properties of the HANA db instance I'm working with. Well, the Guide advises to use a separate NGDBC.JAR for it, but I assumed that would be the same functionality. Q1: Is there any difference in terms of JDBC Trace contents, depending on the way it's been enabled with?
    2. I have an analytic view MYCONTENT.ANV_001 that has, say, attributes SHIPTO and CALMONTH and a measure SALES. When I open the view in BObj Analysis for Excel, I expect it to run a SQL statement like SELECT SALES FROM MYCONTENT.ANV_001
    3. Yet I don't see anything like that. The only SQL statement that may be related is "select * from DUMMY".
    4. I tried to navigate through the view in Analysis for Excel, e.g. do some drilldowns and filters, but it continued running the same SQL statement against HANA.
    Q2: Have I picked the executed SQL statement right? If yes, does it mean that BObj Analysis for Excel always generates most generic query against HANA? If no, how can I check what is the SQL statement being executed?
    Update 5. I tried to enable JDBC Trace using the NGDBC.JAR library, but see no trace logs appearing at all. Q3: Could it be something wrong with the trace settings (well, there are just 4 of them, and it would be hard to make a mistake)? Q4: Does Analysis for Excel use JDBC Driver at all to access HANA?
    Thanks!
    /RB
    Edited by: Roman Bukarev on Dec 13, 2011 4:53 AM
    Edited by: Roman Bukarev on Dec 13, 2011 4:54 AM

    I second that. Using JFrame instead of JApplet is easy once you've seen an example:
    http://java.sun.com/docs/books/tutorial/uiswing/learn/example1.html
    When learning Swing, I can think of only disadvantages to using JApplet over
    JFrame. Why do textbooks use applets? Old habits die hard and they
    are out-of-date in their view of Java.
    Side comment: when learning a new topic, like JDBC, I would
    strongly advice you to write the simplest possible code at first.
    In other words, skip the Swing and write simple console apps:
    1. select and dump the contents of a table.
    2. gradually do more sophisticated selects...
    3. insert a record into a table using some fixed values.
    3. delete records from a table.
    4. update records using some fixed values.
    Once you are comfortable doing CRUD, and used PreparedStatement!,
    then add a GUI. And if your code is well-written, the GUI and the back-end
    are separate enough anyway, that you can write and test them apart.

  • Measuring query execution speed

    Is there a way to measure how long it takes to execute a query? I have tried recording the time just before and after a call to execute() but this is not giving usable results as it depends on so many other things. What I am after is some sort of database independent query timing ability. Is it possible in JDBC?
    Thanks,
    -JT

    Using JAMon I time all my jdbc and also how long each individual query takes. Got to http://www.fdsapi.com and go to the live demo. This allows you to enter queries adn then go to the JAMonAdmin page and you will see a sortable html report that allows you to view the statistics.
    JAMon is flexible due to the fact it just takes a String. That string can represent anything such as a specific query (in sybase for example a stored proc), a page hit, a method call or anything else that makes sense to you. It is a simple stopwatch based API that couldn't be easier to use. Simply import the jar and call start() and stop(). What's nice about this it is flexible enough to monitor more in your app than queries, such as jsp pages, and it is fast enough to run in production.
    There is a servlet filter at the site that keeps stats for any pages within your web site and you don't have to do any code to get this capability. JAMon keeps track of hits, avg time, max time, min time, concurrency and scalability.
    // Note it is a simple 2 method api.  Every time this metho is called new aggregate stats will be gathered, and displayed via JAMonAdmin.jsp
    public List getEmployee(String empID) {
      Monitor mon=MonitorFactory.start("com.mypackage.Employee.getEmployee");
       try {
           ....my code...
        } finally {
          mon.stop();
    }steve - http://www.jamonapi.com - a performance tuning API
    http://www.fdsapi.com - a simple api for generating xml and html

  • JDBC: send batch of SQL commands as anonymous PL/SQL block

    Hi All,
    I did a little measurement to see if I can improve jdbc
    applications by batching dissimilar SQL commands into one
    anonymous PL/SQL block and execute it once. To my surprise, for
    a batch of 5 SQL commands, it take 60% more time than execute
    each of the 5 SQL commands separately.
    The same JDBC code, using similar SQL text batching, running
    against Sybase or MSSQL shows 60%-300% improvement.
    Is there any other way to batch dynamic dissimilar SQL commands
    in Oracle other than using anonymous PL/SQL block? Here is an
    example of how the "text-batching" PL/SQL block looks like:
    "begin insert into testtab1(col1, col2) values(1, 'row1');
    insert into testtab2(col1, col2) values(100, 1);....; end;"
    Thanks,
    Nam Nguyen
    null

    If you do:
    declare
    l_sql varchar2(32767);
    l_value varchar2(32767);
    begin
    select query_sql into l_sql from lov where lov_id = 100;
    dbms_output.put_line(l_sql);
    end;
    You'll see something like that:
    SELECT
    l.DESCRIPTION || decode(l2.DESCRIPTION,null,'',l2.description, '-' || l2.description) || decode(a.DT,'Y',' - Distributed Training','N',null,null) as value1
    FROM ACTIVITY a
    ,MOUNTAINEERING m
    ,LOV l
    ,LOV l2
    WHERE a.JSATFA_ID = 82
    AND a.SPECIFIC_ACTIVITY_LOV_ID = l.LOV_ID
    AND m.ACTIVITY_ID(+) = a.ACTIVITY_ID
    AND m.CLASSIFICATION_LOV_ID = l2.LOV_ID(+);
    you need to duplicate the '
    you can do many things like:
    CTH@> select * from sqls;
    C
    select first_name || ' ' || last_name as value1 from employees where rownum=1
    1 fila seleccionada.
    CTH@>
    CTH@> ;
    1 declare
    2 l_sql varchar2(32767);
    3 l_value varchar2(32767);
    4 type generic_cursor is ref cursor;
    5
    6 c generic_cursor;
    7
    8 begin
    9 select replace(c, ''', ''''') into l_sql from sqls;
    10
    11 execute immediate l_sql into l_value;
    12 dbms_output.put_line(l_value);
    13* end;
    CTH@> /
    Ellen Abel
    Procedimiento PL/SQL terminado correctamente.
    CTH@>

  • PI RWB - Measurement in secs

    Hi,
    I'm looking for a way in RWB (or any PI internal table) which shows me how much time (in secs) an specific interface took to execute the the IDoc triggering within ECC until be inserted into JDBC DB.
    I'm trying through Performance Monitoring in RWB but it shows several information that does not match the total of messages in SXMB_MONI.
    The filter I'm performing in both is: All messages from yesterday, from 09/28/2011 00:00:00 until 09/29/2011 00:00:00.
    Is there something being considered in one that is not being considered by another? Is there any other way to measure how much time an specific interface takes from start to finish running?
    Tks !

    Hi Veera,
    Tks.
    My analysis needs to be based on a total of messages (daily or weekly would be fine).
    I tried this way you suggested but the Message Monitoring shows me in HH MM SS. It's not enough to define precisely how much time was spent during the message processing.
    Also, still in Msg Monitoring, when trying to see details of a given message, the tabs Inbound CAdapter and Queue Monitor doesn't work. It shows this message:
    Service cannot be reached
    URL http://gsipp1.gsi.local:50000/sap/bc/gui/sap/its/webgui/! call was terminated because the corresponding service is not available.
    Anyway, the one I need is a kind of report which says the total time spent hourly or daily (just like the Performance Monitoring, however it allows us to filter at least by minutes and it give us only a column Processing TIme[s] which looks like an average time.  So I don't have accurateness in the analysis. It seems to be showing information that doesn't match (like, processing 1600 ORDERS05 IDocs in 6 secs).
    Interval Start          End of Interval          Number     Size (Bytes)     Processing Time [s]     Rate [msg./h]
    29.09.11 00:00:00     29.09.11 01:00:00     376     16,959          0.387               376
    29.09.11 01:00:00     29.09.11 02:00:00     25     9,212          0.406               25
    29.09.11 13:00:00     29.09.11 14:00:00     26     8,003          0.603               26
    29.09.11 14:00:00     29.09.11 15:00:00     83     22,104          0.444               83
    29.09.11 15:00:00     29.09.11 16:00:00     94     12,943          0.447               94
    29.09.11 16:00:00     29.09.11 17:00:00     103     7,890          0.427               103
    29.09.11 17:00:00     29.09.11 18:00:00     179     13,266          0.501               179
    29.09.11 18:00:00     29.09.11 19:00:00     73     10,638          0.437               73
    29.09.11 19:00:00     29.09.11 20:00:00     78     8,399          0.519               78
    29.09.11 20:00:00     29.09.11 21:00:00     112     8,621          0.449               112
    29.09.11 21:00:00     29.09.11 22:00:00     169     13,939          0.51               169
    29.09.11 22:00:00     29.09.11 23:00:00     106     16,280          0.495               106
    29.09.11 23:00:00     30.09.11 00:00:00     193     19,855          0.426               193

  • JDBC adapter performnce in PI

    Hi,
    Regarding JDBC adapter in PI 7.0 and performance I have below 2 queries:
    1. What are the different ways in which we can measure the performance of various components (IS, AE etc) in a JDBC scenario.
    2. How to determine what is the optimum number of JDBC calls that can be made in a specific time period without affecting PI performance.
    Appreciate your response on these queries
    Thanks,
    Girish

    Hi
    1. What are the different ways in which we can measure the performance of various components (IS, AE etc) in a JDBC scenario.
    It depends on various parameters for instance the kind of mapping involved (if it is xslt mapping time taken would be more than a graphical mapping), database you are trying to connect. In general there is a document on SDN that talks about the XI performance and tuning.
    2. How to determine what is the optimum number of JDBC calls that can be made in a specific time period without affecting PI performance.
    This would depend again on the database being used. Also various parameters in XI like "Disconnect from the DB after each message process".
    Regards
    Monika

  • Measuring performance of EJBs

    Hi,
    I am interested in measuring the performance of my beans. I realize that "performance" by itself is rather generic. To be very specific, I want to measure the time taken by my EJB to perform a database activity. For example, how does the update of my CMP bean compare with a JDBC call from a BMP bean ?
    Is the capture of such timing data possible from the affected bean itself ? I thought of using AOP for this but ran into issues which caused me to dump that approach.
    Are there any tools available which can be used to capture such data - even from a client perspective ?
    Thanks

    try:
    http://www.jamonapi.com it can measure JSP, SErvlets, EJB and more
    but just for EJB it is maybe better write own tool, it can not be so difficult.
    System.currentMillis(); at the begginig and end might be easiest and maybe best
    performance tool.
    Point not to slow donw process be measuring tool itself.
    Marian

  • How to close open JDBC connections

    Hi people. I´m Using Jdev 10.1.3.2 and OAS 10g.
    In my application when a User closes the browser or click in logout, the JDBC connection remains active on the server.
    I wonder what the best measure to close these connections on logout of the system?
    Thanks Willian

    You might want to read the chapter about how ADF BC handles the database connections and what variables you have to control it:
    http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/bcservices.htm#CHDJDBJB
    http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/bcampool.htm#sm0306
    http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/deployment_topics.htm#CHDFJADJ

  • JDBC-ODBC Bridge is too slow

    Why the Sun JDBC-ODBC Bridge is so slow? When i use the ms bridge it is as faster than a JDBC connection, but i found a bug on the ms bridge that it returns NULL when the value is a "" (blank)
    Anyone how to make sun bridge has a acceptable perfomance?
    I am using MySQL 3.23 and tested on Sun JDKs 1.1.8, 1.2, 1.4
    My comp is a K6-2 400 with 128 RAM
    Thanks

    isjm said
       I've found using a pure JDBC driver (ashna's JTurbo) to be
       roughly 40% faster than the bridge after doing some
       (admitidly) small amount of bench testing. I also found
       it resolved a number of issues (bugs??) with the bridge
       (e.g. no longer throws an occasional fractional truncation
       exception when inserting timestamps). As for the bridge
       being used only for test purposes check out this URL:
       http://java.sun.com/J2se/1.3.0/docs/guide/jdbc/getstart/bridge.doc.html
       They recommend using the bridge only for experimental use or when a
       pure driver is not available. I guess you could consider this as test purposes only.There is no such thing as a 'pure driver' (or 'pure jdbc driver' from a different post.)
    The doc you site suggests a 'pure java' driver - a type 4. I question that. I know there are number of things that one can do in ODBC and in OCI which speed up requests. And obviously one can't do those in java.
    Performance problems are caused by the following:
    -Requirements-most impact
    -Design
    -Environment (cpu,network,thread, etc bottlenecks)
    -Language/intefaces - least impact.
    Changing requirements/design can easily produce impacts of orders of magnitude (by removing one requirement I reduce a 4-8 hour report to less than 30 seconds.) So how much impact did the 40% you saw impact your total application? Did you profile your application/system under load using a automated tool to measure the speed?
    I would suspect also that the suggestion that the driver is 'experimental use or when no other alternative is available' might be slightly biased as the driver was produced by Merant who is actively selling drivers too. One would suppose that they were not allowed to deliberately introduce bugs into the code. However, they might have insisted that some language be introduced to suggest that someone should buy the product.
    anarquia said
       But i can't believe i've tested today again and the sun
       bridge is working as fast the ms bridge! i can't
       understand, yesterday i've tested a million times
       and it was about 30 times slower, i'll try to find
       what's happened yesterdayDid you use a closed network? Did you use isolated servers?

  • Hierarchical Queries / Rowsets via JDBC?

    I have an application that requires data from an SQL database to be displayed in a hierarchical directed graph (i.e. a JTree). Is it possible to construct Hierarchical Queries that return Hierarchical Rowsets in servlets via JDBC? This would be akin to using a Microsoft ADODB Hierarchical Recordset object, but I need a Java solution that's portable and isn't dependent on proprietary extensions in a server (i.e. iPlanet, etc.).
    Any help would be appreciated.
    Thanks.

    Is it possible to construct Hierarchical Queries that
    return Hierarchical Rowsetsin servlets via JDBC?No. JDBC only speaks in flat rows and columns.
    What type of hierarchical rowset are you referring to? Is it multidimensional data? For example MSSqlServer OLAP with row, column and measure dimensions? Or, is it simply grouped data for which you are both summarizing and displaying detail?

  • JDBC Statement Profiling

    Hi,
    I have turned on JDBC Statement Profiling on my server. I can
    get the statements being executed, but the Start & Stop times or
    all Statements is the same. The relevant code and output follows.
    Anybody see what I am doing wrong.
    thanks,
    Harish.
    public static void printJDBCStatement(JDBCStatementProfile mb) {
    System.out.println("\tStatement: " + mb.getStatementText());
    System.out.println("\t\ttime = " + mb.getTimeTaken());
    System.out.println("\t\tstarttime = " + mb.getStartTime());
    System.out.println("\t\tendtime = " + mb.getStopTime());
    System.out.println("\t\tthread = " + mb.getThreadId());
    System.out.println("\t\tParams:");
    int cnt = mb.getParameterCount();
    for(int i=0; i<cnt;i++) {
    System.out.println("\t\t\tParam " + (i+1) + mb.getParameter(i+1));
         Statements:
         Statement: INSERT INTO QUERY (ID, TYPE, OWNER, OBJVERSION) VALUES (?, ?, ?,
    0)
              time = 0
              starttime = 1033591935157
              endtime = 1033591935157
              thread = Thread-15
              Params:
                   Param 132397
                   Param 212650
                   Param 399999999
         Statement: SELECT OBJVERSION FROM QUERY WHERE ID = ? FOR UPDATE NOWAIT
              time = 0
              starttime = 1033591935167
              endtime = 1033591935167
              thread = Thread-15
              Params:
                   Param 132397
         Statement: DELETE FROM SELECT_LIST WHERE QUERY_ID = ?
              time = 0
              starttime = 1033591935177
              endtime = 1033591935177
              thread = Thread-15
              Params:
                   Param 132397
         Statement: SELECT 5, OBJVERSION, 0 FROM QUERY WHERE ID = ?
              time = 0
              starttime = 1033591935187
              endtime = 1033591935187
              thread = Thread-15
              Params:
                   Param 132397

    "Harish" <[email protected]> wrote in message
    news:[email protected]..
    >
    I know for a fact that the statements take more than a 1ms.Could you try to run this code and tell what it prints?
    public class test {
    public static void main(String args[]) throws Throwable {
    long previousTime = 0;
    long currentTime = 0;
    for (int i = 1; i < 1000000; i++) {
    previousTime = System.currentTimeMillis();
    // Thread.sleep(20);
    currentTime = System.currentTimeMillis();
    if (currentTime != previousTime) {
    System.out.println("Difference: " + (currentTime - previousTime));
    Regards,
    SlavaImeshev
    >
    thanks,
    Harish.
    "Slava Imeshev" <[email protected]> wrote:
    Hi Harish,
    AFAIR this fact means that execution time is
    less than 1ms. It's because java timer is not
    very good at measuring precise periods of time.
    So these digits are pretty good :)
    Regards,
    Slava Imeshev
    "Harish" <[email protected]> wrote in message
    news:3d9b6cfd$[email protected]..
    Hi,
    I have turned on JDBC Statement Profiling on my server. I can
    get the statements being executed, but the Start & Stop times or
    all Statements is the same. The relevant code and output follows.
    Anybody see what I am doing wrong.
    thanks,
    Harish.
    public static void printJDBCStatement(JDBCStatementProfile mb){>
    Statements:
    Statement: INSERT INTO QUERY (ID, TYPE, OWNER, OBJVERSION) VALUES
    0)
    time = 0
    starttime = 1033591935157
    endtime = 1033591935157
    thread = Thread-15
    Params:
    Param 132397
    Param 212650
    Param 399999999
    Statement: SELECT OBJVERSION FROM QUERY WHERE ID = ? FOR UPDATE NOWAIT
    time = 0
    starttime = 1033591935167
    endtime = 1033591935167
    thread = Thread-15
    Params:
    Param 132397
    Statement: DELETE FROM SELECT_LIST WHERE QUERY_ID = ?
    time = 0
    starttime = 1033591935177
    endtime = 1033591935177
    thread = Thread-15
    Params:
    Param 132397
    Statement: SELECT 5, OBJVERSION, 0 FROM QUERY WHERE ID = ?
    time = 0
    starttime = 1033591935187
    endtime = 1033591935187
    thread = Thread-15
    Params:
    Param 132397

  • Need help with Thin JDBC connecting Oracle to SQL server.

    I am fairly new to JAVA. We have ORACLE 8.1.7 running on Solaris 8. I have a need to
    periodically extract data from ORACLE DB and transfer it to SQL Server. I am limited to
    moving data from the ORACLE/UNIX environment to SQL Server side.
    From what I have read, Server-side Thin driver should work.
    1) Are there any issues in trying to achieve this with ORACLE running on the UNIX platform?
    2) Will the Server-side Thin driver talk to both the DBs ?
    3) Is it possible to provide some sample code ?
    Thanks in advance,
    Solomon

    Quattro,
    I had complete success in reading from Oracle and writing to SQL Server. First of all let me thank you for all your help. I do have one last request. Its more on optimization than any thing else.
    I was trying to optimize my code by grouping both the connections in one place and to keep my reads and inserts together so that I don't commit at the end of each insert etc. I don't seem to have the scope rules under control yet. Could you suggest how to improve this:
    import java.sql.*;
    public class Test_Combined2 {
    public static void main(String args[]) throws SQLException {
    // Load the Oracle JDBC driver
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    // Connect to the database
    // You must put a database name after the @ sign in the connection URL.
    // You can use either the fully specified SQL*net syntax or a short cut
    // syntax as <host>:<port>:<sid>. The example uses the short cut syntax.
    Connection con2 = DriverManager.getConnection ("jdbc:oracle:thin:@Test:1521:PSDEVElOP",
    "SOLOMON","SOL1");
    // Create a Statement
    Statement stmt2 = con2.createStatement ();
    String url = "jdbc:microsoft:sqlserver://INTRADEV:1433;DatabaseName=Measure";
    Connection con;
    String query = "select dataYear, dataMonth, yieldRate from tblYield " ;
    Statement stmt;
    try {
    Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
    } catch(java.lang.ClassNotFoundException e) {
    System.err.print("ClassNotFoundException: ");
    System.err.print(e.getMessage());
    // Select the ENAME column from the EMP table
    ResultSet rset = stmt2.executeQuery ("select year_start, monthofyear, percent_comp " +
    " from ps_usm_ytd_yield ");
    // Iterate through the result and print the employee names
    while (rset.next ()) {
    System.out.println (rset.getFloat (3));
    int ps_dataYear = rset.getInt(1);
    int ps_dataMonth = rset.getInt(2);
    float ps_yieldRate = rset.getFloat(3);
    try{
    con = DriverManager.getConnection (url, "tmpuser","tmppush");
    stmt = con.createStatement();
    PreparedStatement insertTblYield;
    String insertString = "insert into tblYield " +
    " values(?, ?, ?)";
    //con.setAutoCommit(false);
    insertTblYield = con.prepareStatement(insertString);
    insertTblYield.setInt(1, ps_dataYear);
    insertTblYield.setInt(2, ps_dataMonth);
    insertTblYield.setFloat(3, ps_yieldRate);
    insertTblYield.executeUpdate();
    con.commit();
    //con.setAutoCommit(false);
    /*ResultSet rs = stmt.executeQuery(query);
    System.out.println("dataYear, dataMonth, yieldRate");
    while (rs.next()) {
    int dataYear = rs.getInt(1);
    int dataMonth = rs.getInt(2);
    float yieldRate = rs.getFloat(3);
    System.out.println(" " + dataYear + ", " + dataMonth + ", " + yieldRate);
    stmt.close();
    con.close();
    } catch(SQLException ex) {
    System.err.print("SQLException: ");
    System.err.println(ex.getMessage());
    } //while
    stmt2.close();
    con2.close();

Maybe you are looking for

  • Unable to create IDocs

    I have downloaded Idoc(Already existing in the system with status 53) data using FM IDOC_READ_COMPLETELY(by passing an Idoc number) and passing this downloaded data to FM MASTER_IDOC_DISTRIBUTE to create new Idoc with same data. Idoc does gets create

  • Problem viewing flex in Safari

    I'm new to Flex and unable to view my Flex work in Safari... Firefox works fine. Here's one simple example: http://www.papaya.net/test/flex/1/firstAnimation.html You should see a red ball moving across the screen like this screen cap from Firefox: ht

  • Photoshop CS5 & (64bit)

    Using Photoshop CS5 with Windows 7. If I open my photoshop cs5 from a desktop short cut I get it from Programs Files/Adobe/Photoshop CS5 (64bit) which will not work with some of my old plugins, Having placed a short cut of the other photoshop cs5 ont

  • Scroll wheel not working in Mavericks

    Update to OS X Mavericks resulted in mouse scroll wheel not working any more at all in any application.  Any suggestions for get scroll wheel function working would be appreciated.  Thanks!

  • Tcode in a role

    Hello Gurus, I'm trying to delete a tcode  vk11 from a role. To find which all role has this tcode, i used SUIM. Under one role i found this tcode in s_tocde field, but when i assigned this role to a dummy user( without removing the tcode) I was not