Query in JDBC

Is it possible to scroll back through the ResultSet while setting its type as TYPE_SCROLL_SENSITIVE and concurrency as CONCUR_UPDATABLE. I tried doing this but it doesn't work for me. I get the exception Resultset type is TYPE_FORWARD_ONLY.
Then one more query. .....
When i use concurrency of resultset as CONCUR_READ_ONLY i am able scroll back, but it takes more time for fetching the data.....
Please resolve my problem
Thanks in advance.....

Hi,
>database connection details dynamically to the JDBC communication channel
To my Knowledge  it is not  possible as of now.
Regards
Agasthuri Doss

Similar Messages

  • Update query in JDBC adapter

    Hi guys help me with this
    1) What is the use of update query in jdbc adapter?
    2) Why do we use the flag field in jdbc table ?

    Hi,
    1) What is the use of update query in jdbc adapter?
    The purpose of the Update Query in JDBC is to change the status of the processed records in the table.
    That is when JDBC query is executed  it select the records from the table in the Database and it sends to the Receiver.
    After that it executes the Update query to change the status of the processed records in the Table.
    2) Why do we use the flag field in jdbc table ?
    Flag field in the table is used to identify which record is processed by Jdbc adapter. Initial stage it will have the status as 0 , if it is successfully processed then it will updated to 1.
    Based on this we can identify processed records which is done by update query.
    Regards
    Sridhar Goli

  • How to use unload query using JDBC with Informix database

    Hi friends,
    How can i use unload query using JDBC with Informix database?
    When i use it as "unload to 'abc.txt' select * from ........" it gives syntax error.I want to take the data of a table to a file.With dbaccess i can use it but i need to do it using jdbc.
    Thanks,
    Raneesh.

    To the best of my ability to tell, the right way to use this product from within Power Query would be to use its API. Unfortunately, we don't currently support either of the methods needed to be able to authenticate with the service (OAuth 2.0 and a relatively-custom
    digest-based method). Adding a mechanism to allow use of arbitrary OAuth-protected resources is a fairly high priority for us, and I hope we'll be able to deliver something before mid-2015.
    Scraping the website is very hard to do well -- both from an authentication and from a data discovery perspective.

  • Executing Select query using JDBC Receiver Adapter

    I created couple types in Oracle and also new function instead of procedure
    Can I execute the above query using JDBC Receiver Adapter.
    select *
    from  the ( select cast( apr.get_distribut('', '', '', 'hdfcgd', 'CAN') as dsrTable )
             from dual );
    If possible how my message structure should look like...

    Hi vikram,
       If you use JDBC as Receiver Adapter you can only post the data to the data base I do no think so we can select the records from the data base.
       If you use JDBC as Sender hope,we can the select query in the sender communication channel.
        Hope I am clear.
      Thanks and Regardds,
      Chandu.

  • Handling any query using JDBC ?

    Hi there,
    I was wondering if their actually exist a way of handling/processing any SELECT statement a user would enter.
    ex: the user enter SELECT * FROM SCOTT.EMP;
    Is it possible to retrieve using JDBC teh metadata associated with "*" ?
    any help would be welcome.
    Regards
    Eric.

    When you get back the result of a query in JDBC you get a ResultSet object.
    Off of that you can obtain a ResultSetMetaData object which fully describes the result set - column names, types, scale and precision, etc. You can use that for dynamic processing of your result set, for example if you wanted to display it in a table.

  • Upto how many characters will accept in SELECT query  SENDER JDBC (PI 7.1)

    Hi Friends,
    I have to use Sender JDBC adapter in SAP PI 7.1, I need to use SELECT query only.
    I have a SELECT query is around 2 pages. Is this will accepet in SENDER JDBC in PI 7.1
    Thanks in advance.

    Hi Challarapu,
    You can check it out and if it is not accepted by the same then you need to check the maximal length @ DB settings or JDBC Settings whether it is limited. If not then you are allowed.
    Hope this helps.
    Regards
    Pothana

  • SQL Query in JDBC Sender

    Hi friends,
    Can u plz tell me when exactly we can use "Query SQL Stmt" and "Update SQL Stmt"?

    If you have a scenario that uses the JDBC adapter to connect to the "sending" system and pull data out of it, you will use these options. 
    You formulate a SQL statement that queries the database and gets certain information, the JDBC adapter then uses that information to populate the message type that you built in the integration repository. 
    You then create an update statement with SQL to tell the database what to do after it has grabbed the data it needs and populated the message type for mapping.
    Say for example you wanted to get all the data from the usr01 table in your SAP database (bad example, but bare with me) you could do something like this:
    <b>SQL QUERY STATEMENT:</b>  SELECT * FROM USR01
    And then following that you wanted to change the MANDT table (once again, don't actually run this command)
    <b>UPDATE SQL STATEMENT:</b>  UPDATE USR01 SET MANDT='100' WHERE MANDT='100'
    Message was edited by:
            Ethan West

  • SQL-Query with JDBC returns error ORA-00600

    Hi,
    I try to execute a SQL-Query using JDeveloper 3.2.3 and the Oracle JDBC-Library 8.1.7
    The following statement
    'ResultSet rset=stmt.executeQuery(SQL-String);'
    where stmt is Statement returns a Database-Error
    ORA-00600 with the Arguments [ttcgcshnd-1], [0] [], [], [], [], [], []
    when the SQL-String queries Varchar2 or CHAR-Columns.
    The Query returns correct values for numeric fields.
    The Database-Server is running on Oracle 9i
    Does anybody know, what could be the reason?
    Thanks, Harold

    I found many forums about it also, but I still haven't got solution yet.
    They talk about the cause, and report to oracle group and so on,
    but I still don't know how to solve my problem and how to enable my oracle 9i jdbc driver working.
    Need help please

  • Strange query from JDBC Thin Client on all_arguments

    Hi,
    in my statspack report I can see that query
    SELECT   package_name AS procedure_cat, owner AS procedure_schem,
             object_name AS procedure_name, argument_name AS column_name,
             DECODE (POSITION,
                     0, 5,
                     DECODE (in_out, 'IN', 1, 'OUT', 4, 'IN/OUT', 2, 0)
                    ) AS column_type,
             DECODE (data_type,
                     'CHAR', 1,
                     'VARCHAR2', 12,
                     'NUMBER', 3,
                     'LONG', -1,
                     'DATE', 93,
                     'RAW', -3,
                     'LONG RAW', -4,
                     'TIMESTAMP', 93,
                     'TIMESTAMP WITH TIME ZONE', -101,
                     'TIMESTAMP WITH LOCAL TIME ZONE', -102,
                     'INTERVAL YEAR TO MONTH', -103,
                     'INTERVAL DAY TO SECOND', -104,
                     'BINARY_FLOAT', 100,
                     'BINARY_DOUBLE', 101,
                     1111
                    ) AS data_type,
             DECODE (data_type,
                     'OBJECT', type_owner || '.' || type_name,
                     data_type
                    ) AS type_name,
             DECODE (data_precision,
                     NULL, data_length,
                     data_precision
                    ) AS PRECISION,
             data_length AS LENGTH, data_scale AS scale, 10 AS radix,
             1 AS nullable, NULL AS remarks, SEQUENCE, overload, DEFAULT_VALUE
        FROM all_arguments
       WHERE owner LIKE :1 ESCAPE '/'
         AND object_name LIKE :2 ESCAPE '/'
         AND data_level = 0
         AND package_name LIKE :3 ESCAPE '/'
         AND (   argument_name LIKE :5 ESCAPE '/'
              OR (argument_name IS NULL AND data_type IS NOT NULL)
    ORDER BY procedure_schem, procedure_name, overload, SEQUENCE
    /its executed 7000 per day and its top logical i/o consuming .
    Whats the functionality behind that ?
    How can I speak with developers to get rid of that :) ?
    DB is 9.2.0.8
    Regards
    GregG

    Whats the functionality behind that ? A quick search over the Internet shows that it seems related to this Java class :
    oracle.jdbc.OracleDatabaseMetaData.getProcedureColumns

  • Not comitting database after the update query in jdbc

    Hi all,
    This is the first time I am posting this. I have query excuting on racle DB. This is update query. after executing the i have called commint using con.commit(). But still it is not showing the modifications in oracle db.
    What could be went wrong? Any sugestion, please let me know. I think it is simple jdbc program. So i don't think i need to post the code. Application running in Unix machine.
    Regards & thanks,
    Nirmala Vijaya Sekhar Varre

    VijayTechM wrote:
    Connection con = null;
    Class.forName("oracle.jdbc.driver.OracleDriver");          
    hi all,
    // following is the code
    con = DriverManager.getConnection("jdbc:oracle:thin:@10.129.239.43:1529:PBILLING","BILLING","BILLING");
    boolean test = con.getAutoCommit(); //here I am getting 'true'
    String invoice_header_query = "update invoice_header set file_traffico = '" + zipFileName + "' where bill_ref_no = '" + billRefNo_ + "' and bill_ref_resets = '" + billRefResets_ + "' and arbor_instance_id = '" + arborID_ + "'";
    System.out.println("invoice_header_query---->"+invoice_header_query);
    smt = con.createStatement();
    int x = stmt.executeUpdate(query); // Here x = 1 printing so it is updating the one record
    // con.commit(); // Even I have tried call this method. But this will be useful when you are using the Transactioon.
    Could you please tell me what went write. I am using ojdbc14.jar.
    regards,
    VijayPost with code tags and where is your claimed exception handling?

  • Stopping query in jdbc

    We gave basically a data mining application that can do unions over 12 dozen tables. If figures out what joins to do based on the columns being returned and the columns being searched on.
    So the user uses the UI in java to specify what data they want and causes the query to be started using jdbc. After 10 minutes of waiting, they still don't have their results and want to cancel the query. The thread is still in jdbc and won't return until the there is data to return.
    So how does the java application stop the query? You don't want to let it run another 12 hours, especially if the user is going to do start and abandon a dozen queries.

    chk this
    http://onjava.com/lpt/a/4938
    also this
    http://download.oracle.com/javase/1.4.2/docs/api/java/sql/Statement.html#cancel%28%29

  • Deciphering column names in a join query using jdbc

    hi all....
    I am making a database adapter for a generic report generater. This adapter would be forming queries involing various tables. There are two ways of doing it . I fire an sql on parent table to get the keys and then go to child table for each one of them or i form a join query to get desired result.
    i want to go with the later approach where my query would be forming a join. The problem comes when table involved in this join has columns with the same name. for eg if a column "NOTE" is there in table A as well as table B on which i have a join. Resultset returns me with two "NOTE" columns and i cannot recognize which one belongs to which table.
    all API calls including getString("Note") seems to be referring to the first occurence of "Note" column.
    Also getTableName() and getSchemaName() APIs on resultsetMetadata doesnt return in anything in case of joins.
    Any pointers would be most appreciated.
    cheers
    vivek

    thanks for suggesting this solution ... though i had thought of the same onece .... unfortunately i cannot implement something like this coz out of the result set i have to instantiate an object hierarchy depending on the schema ....
    this also puts me in a doubt whether i can use join in my case.
    for eg ... .
    lets say we have a customer talbe and and address table which has one to many relationship .... one contact can have multiple addresses.
    Assuming a contanct "Joe Bloggs" having 3 addresses ...a query like following
    select contact.firstname contactfirstname , address.streetname addressstreetname from contact , address where contact.contactid = address.contactid
    this would return me 3 rows and i can also recognize various columns with their aliases ..
    but i would lose an important fact that i have to create one java object for contact class and 3 instances for addresses which i have to return finally.
    this means that i would like to return an object hierarchy with one contact object and 3 address object underneath it linked with contactid.
    Any other suggestions after reading the complete requirement are most welcome ...sorry for not puting the entire thing at first.
    i guess the only soln left is to visit contact and address table separately. :(

  • Dynamically passing the values to IN query in JDBC

    Hi,
    I have a list which contains a single or multiple values which does have CustomerVO as a generic.Here i need to iterate the list pass these values to "IN" query.
    These should happen dynamically, as we dont know whether the list will hold a single or multiple value. If the list.size ==1 , then it contains a single value in it. Hence there is no need for a comma(,) in the IN query else we need to have it, like .... IN (Aaron,Bob). Please help me in this?
    Thanks.

    797836 wrote:
    I have a list which contains a single or multiple values which does have CustomerVO as a generic.Here i need to iterate the list pass these values to "IN" query.
    These should happen dynamically, as we dont know whether the list will hold a single or multiple value. If the list.size ==1 , then it contains a single value in it. Hence there is no need for a comma(,) in the IN query else we need to have it, like .... IN (Aaron,Bob).So basically you need to output the List (capital 'L') as a comma-delimited list (small 'l').
    The procedure for that is usually something like:
    1. Output the first element.
    2. For any further elements:
    2a. Output ","
    2b. Output the element.
    Winston

  • Insert query in JDBC Reciever adapter!!!

    Hi All,
    We have an interface in which we are inserting data in Oracle server using JDBC Reciever Adapter.
    The interface ends up in error on adapter engine level whenever the we are sending long data in one of the field of target structure. The error which we get in communication channel monitoring is that "String too long", on googling i found that in oracle they solve such problem by making the field data type as CLOB.
    Thus can we define target structure field of CLOB type so that while inserting the data in Oracle server we never face the issue of this long string.
    Thanks

    >
    Arpit Seth wrote:
    > Hi All,
    >
    > We have an interface in which we are inserting data in Oracle server using JDBC Reciever Adapter.
    > The interface ends up in error on adapter engine level whenever the we are sending long data in one of the field of target structure. The error which we get in communication channel monitoring is that "String too long", on googling i found that in oracle they solve such problem by making the field data type as CLOB.
    >
    > Thus can we define target structure field of CLOB type so that while inserting the data in Oracle server we never face the issue of this long string.
    >
    > Thanks
    if the field contains very large data then yes, defining the target field in Oracle as a CLOB will solve your issue.
    http://www.herongyang.com/jdbc/MySQL-CLOB-Overview.html

  • Insert Query in JDBC

    How to write sql insert statement if the code is like this:
    String Str1 = "abhishek"
    String St21 = "Agrawal"
    stmt.executeUpdate("insert into my_table values( \"str1\",\"str2\")");
    this is not working
    help ME!!!!!

    first if ur using oracle just check the connection is proper or not just print below
    S.O.P(1); if it prints ur connection is successful. then dont use ur query write complete column name and then values ();
    write ResultSet rs=stmt.executeQuery();
    after tht take a while(rs.next())
    s.o.p.(rs,getint(1)) 1= columname or " ".
    con.close();
    Try this.

Maybe you are looking for

  • How can I upgrade from Infinity to 56K dial-up?

    I have had Infinity for about a month. At first everything was great, 38Mbps. I am about 25m from the cabinet where the optical fibre is terminated so I expected this to be quite consistent. Seven days ago the speed dropped to about 5Mbps and over th

  • Transportation Calendar depends on route - how can this be configured?

    APO GATP - Transportation and Shipment Scheduling Hello, how can a transportation calendar - depending on the route - be considered? When we change the route (e.g. in VA02 sales order change) and trigger an ATP check the correct transit time (TRAN) i

  • JPG images bloat CFDocument PDF 10X

    We're creating PDF files using the CFDocument tag. We're including JPG images in the document. The JPG files are 1MB in file size total but the resulting PDF file is 11+ MEGs (10X). I've been searching the forums and Internet but I'm having trouble f

  • Dbconsole/listener/tnsping  performance 11gR2

    I am seeing performance issue while connecting to dbconsole/listener/tnsping etc & this is tail of my alert log, what could be the issue? Fatal NI connect error 12537, connecting to: (LOCAL=NO) VERSION INFORMATION: TNS for Linux: Version 11.2.0.1.0 -

  • Scaling and Text formatting / Layout - Help needed

    I am having some trouble with the way text is scaled up in flash. When I output and have scaling mode enabled. Objects scale nicely when the user resizes the window. However, text does not. If there is a text box with multiline enabled and text insid