Is any server side cursor concept in jdbc

hello friends,
i am new programmer in java, i am doing one project in which
i have to show the record in group (like user click one <1> link then
he can view first 10 record if <2> then he can view 11 -20 record list) on
same page.
tech - jsp/servlet
database - mysql
and if u know any tutorial jsp and mysql connectivity please tell me.
waiting 4 reply
thanx
nil4u

You will have to implement the caching of the results on the server side and return the results as the user requests them. You can use the CachedRowSet on the server side to help you do this. There may be some utilities and tools available to help with this, try googling.

Similar Messages

  • SQLNCLI11 - Recordset with Server Side cursor and Property PreserveOnCommit = TRUE

    I am migrating an OLEDB application from Microsoft Access to SQL.  I am using the SQL Native Client in my connection string
    "Provider=SQLNCLI11;Server=%s;Database=%s;Trusted_Connection=yes;"
    The application uses the following call to open a table in the database
    m_pRecordset->Open((LPCTSTR)m_strQuery, _variant_t((IDispatch*)mpdb, TRUE), adCursorType, adLockOptimistic, options);
    where m_strQuery is the table name, adCursorType is adOpenKeyset or adOpenDynamic (I've tried both), options is adCmdTable or adCmdTableDirect (I've tried both)
    mpdb is a _ConnectionPtr.  Cursor location can be either adUseClient or adUseServer.
    If I set Cursor location to adUseClient, the PreserveOnCommit Property of the  Recordset is true; if I set Cursor location to adUseServer the PreserveOnCommit property of the Recordset is false.  I cannot set this property after the recordset
    is open
    Is there a way to Open the recorfdset with a server side cursor and PreserveOnCommit TRUE?
    Howard P. Weiss

    Thanks, Dan, that has been very insightful. We will try to move our legacy VBA data access layer to client-side cursors (first for SQLs with CTEs, then for all SQLs, if everything works out well).
    Regarding deprecation: What is the currently recommended way to access SQL Server from VBA projects? I did a bit of research and it appears that all methods I can think of are deprecated in one way or another:
    DAO with ODBCDirect: Support has been dropped with Access 2007.
    DAO via JET: Using JET SQL syntax instead of T-SQL? Not seriously. Anyway, it's considered obsolete by Microsoft.
    ADO with the SQLOLEDB provider: Deprecated.
    ADO with the SQL Server Native OLEDB provider: Won't be supported after SQL Sever 2012.
    ADO with the Microsoft OLE DB provider for ODBC: Not supported: "SQL Server Native Client is not supported from the Microsoft OLE DB provider for ODBC (MSDASQL)."
    What did I miss?
    Best regards
    Heinzi

  • Is there is any server side control do this

    hi
    im asking for a php server control(no client side) that i can
    use it when i hide it won't rendered to the client and its space
    will disappeared and the surrounded controls will be merged as if
    there nothing was here
    this idea will help me in CMS
    any help
    thanks in advance.

    KeyboardReader is, I believe, a class that's distributed with some introductory textbook or the like, to make coding easier for newbies.
    So using it would make the code more non-standard. IMHO it doesn't really make the code any simpler either.
    IMHO the more complicated thing with your code is that you seem to intend to have a mapping from numeric values to actual items (e.g., apple).
    So I'm guessing in the final program you're going to have something like
    if (item == 1) {
      // it's an apple
    } else if (item == 2) {
      // it's a pear
    } else if // etc...I think it would be simpler to read the item as a string, and look up the string in a hashtable or the like to get, say, an Applet object or Pear object, or perhaps a ShoppingBasketItem object whose value is "applet", or whatever. Rather than having to hardcode a mapping from numbers to objects or costs in code.

  • Server Side Cursors

    Hi,
    I want to display sets of results as in search pages.I want the best method suitable to be used against Oracle Database.

    Thanks for the response. A follow-up question then is - is there
    any way to not force the download of large volunes of data to
    the client box? We have a fairly large database that we are
    accessing, and would like to only retrieve the chunks of
    information of current interest. The only method I have found is to append "AND ROWNUM < 100" to
    the WHERE clause on the SELECT statement.
    If a better method exists I'd love to here about it.
    /Mats

  • Does apex support any server side JSP or PHP?

    I have the folowing script that is used to save flash files as images. I am hoping there is some way to make these serverside calls from within apex.
    <%@ page import="java.io.OutputStream"%>
    <%@ page import="java.awt.Color"%>
    <%@ page import="java.awt.Graphics"%>
    <%@ page import="java.awt.image.BufferedImage"%>
    <%@ page import="javax.imageio.ImageIO"%>
    <%
         //Decoded data from charts.
         String data="";
         //Rows of color values.
         String[] rows;
         //Width and height of chart.
         int width=0;
         int height=0;
         //Default background color of the chart
         String bgcolor="";
         Color bgColor;
         //Get the width and height from form
         try{
              width = Integer.parseInt(request.getParameter("width"));
              height = Integer.parseInt(request.getParameter("height"));     
         catch(Exception e){
              //If the width and height have not been given, we cannot create the image.
              out.print("Image width/height not provided.");
              out.close();
         if(width==0 || height==0){
              //If the width and height are less than 1, we cannot create the image.
              out.print("Image width/height not provided.");
              out.close();
         //Get background color from request and set default
         bgcolor =request.getParameter("bgcolor");
         if (bgcolor==null || bgcolor=="" || bgcolor==null){
                   bgcolor = "FFFFFF";
         //Convert background color to color object     
         bgColor = new Color(Integer.parseInt(bgcolor,16));
         //Get image data  from request
         data = request.getParameter("data");
         if(data==null){
              //If image data not provided.
              out.print("Image Data not supplied.");
              out.close();
         try{
              //Parse data
              rows = new String[height+1];
              rows = data.split(";");
              //Bitmap to store the chart.
              //Reference to graphics object - gr
              BufferedImage chart = new BufferedImage(width,height,BufferedImage.TYPE_3BYTE_BGR);
              Graphics gr = chart.createGraphics();
              gr.setColor(bgColor);
              gr.fillRect(0,0,width,height);     
              String c;
              int r;
              int ri = 0;
              for (int i=0; i<rows.length; i++){
                   //Split individual pixels.               
                   String[] pixels = rows.split(",");               
                   //Set horizontal row index to 0
                   ri = 0;
                   for (int j=0; j<pixels.length; j++){                    
                        //Now, if it's not empty, we process it                    
                        //Split the color and repeat factor
                        String[] clrs = pixels[j].split("_");     
                        //Reference to color
                        c = clrs[0];
                        r = Integer.parseInt(clrs[1]);
                        //If color is not empty (i.e. not background pixel)
                        if (c!=null && c.length()>0 && c!=""){          
                             if (c.length()<6){
                                  //If the hexadecimal code is less than 6 characters, pad with 0
                                  StringBuffer str = new StringBuffer(c);
                                  int strLength = str.length();
                                  for ( int p = c.length()+1; p <= 6 ; p ++ ) {
                                            str.insert( 0, "0" );
                                  //Assing the new padded string
                                  c = str.toString();
                             for (int k=1; k<=r; k++){     
                                  //Draw each pixel
                                  gr.setColor(new Color(Integer.parseInt(c,16)));
                                  gr.fillRect(ri, i,1,1);
                                  //Increment horizontal row count
                                  ri++;                              
                        }else{
                             //Just increment horizontal index
                             ri = ri + r;
              //Returns the image
              response.setContentType("image/jpeg");
              response.addHeader("Content-Disposition", "attachment; filename=\"FusionCharts.jpg\"");
              OutputStream os = response.getOutputStream();
              ImageIO.write(chart, "jpeg", os);
              os.close();
         }catch(Exception e){
              //IF the image data is mal-formatted.
              out.print("Image data is not in proper format.");
              out.close();
    %>

    NO, APEX does NOT support running jsp or PHP scripts..
    Thank you,
    Tony Miller
    Webster, TX

  • The query locator has timed out on the server side.

    Hi
    I am getting the error:The query locator has timed out on the server side.
    What to do now?
    AG

    Hi
    Are you using Salesforce.com for creating reports?
    When joining large-sized tables, you may run into a query locator time out
    error. The query locator is a server-side cursor generated by Salesforce.com
    and is used to navigate the query result. It will automatically expire in 15
    minutes without any activity.
    In the case of joining two tables, the report processing engine will read one
    table partly, and then it will process the other table. If the processing time is
    longer than 15 minutes, the Crystal Reports Salesforce.com Driver will try to
    read the rest of the records in the first table and the cursor in that query will
    time out. In the case of joining multiple tables, the chance of running into a
    query locator time issue is higher as the report processing engine might have
    to return to handle the first table after finishing processing other tables,
    increasing the possibility of a query locator time out error in the first table.
    If you run into query locator time out issue, we recommend that you add
    filters into your report to reduce the amount of records you fetch from
    Salesforce.com.
    However, if that is not possible, you can try to reverse the link order in the
    case of joining two tables. For example, you linked table A to table B, then
    you can try to link table B to table A.
    Hope this helps!!
    Regards
    Sourashree

  • Server-side connection pooling for clients in different VM's

    We have a need to centeralize our connection pool manger.
    Is there a server-side connection pooling manger product to allow multiple clients running in different VM's to connect to and share connection objects to the same Database?
    e.g. An applet, and a swing and a servlet/web app application all running in different VM's will connect to this central connection pool manager and share connection objects to the same DB.
    We are using connection pooling for all of our applications but each application is maintaining its own connection pool and it is becomming a nightmare to manage and configure each one.
    Also, we have to have at a miniumum one connection open per application to access the database regardless of wether we are using connection pool or not. This means that 100 apps(running in different VM's) will use at minimum 100 connections... where all of these 100 apps will do just fine with just 10-15 connections.
    while back we used T3 server but can't find this product on BEA web site any more.
    does jdbc 2.2 or 3.0 have any server side pool management specs outlined?
    Please HELP as we can't afford anymore licensing fees for our company.
    oh.. We can't open and close connections on each query as they will be slow.
    any suggestions greatly appreciated.

    if i understand you question, i don't think this is possible, since the Connection interface (and basically all of the related jdbc interfaces) aren't Serializable.. so they can't be sent over the wire to your client(s).
    However, you could feasibly write some server side connection pool, and some server side facade which will allow clients to submit queries (either SQL String's or however you want to do it - obviously a more elegant solution involves a series of classes which dynamically create sql based on query criteria), then the server can grab a connection, execute the query, cycle through the results and populate some result object of your creation and send that back over the wire to your client(s).
    .

  • Server-side flash player version detection

    Does anyone know of a method to pull the users flash-player
    version number (the entire thing, not just
    &quot;&gt;6&quot; or &quot;9&quot; but
    &quot;9,0,115,0&quot;) that does not use browserhawk. We
    are building a troubleshooting page for our LMS built on ASP.net,
    and do not want to use javascript, or vbscript to pull the version
    number. We can use a javascript method if absolutely necessary, but
    want to explore any server-side methods we can use first. We don't
    want to use browserhawk as it is wholly too expensive for our
    purposes.

    I have done that temporarily, but we were hoping to do this
    without placing a Flash SWF on the page. We are building a
    troubleshooting page, and want to keep as many variables out of the
    calculations as we can. IE, if Javascript is the issue, then a
    Javascript to tell us the Flash version would be a bad idea. If
    Flash is the issue, then a flash element would be a bad idea. If we
    keep all of the calculations on the server-side, and not on the
    client-side, then we know that nothing of the clients is messing
    with the information displayed.

  • Server-side workflows against Service Link updated parameter/data

    Is there a way to attach any server-side workflows to service link inbound updates/data other than what is available via parameter mapping and prebuilt functions? I need to manipulate a piece of data that is being updated in to a field by service link inbound message beyond what is available via prebuilt functions...
    Thanks.

    I could probably do it in the XSL, but my goal is to keep the agent configuration, parameter mappings and transformation generic as possible so that it can be reused without modification. For example, I have agent configuration for interacting with an external system, that is passing a certain number of parameters back and forth, but the actual use of these paramters may be different from one service or task to another that is interfacing with this same external system. So the parameter I need to add some logic to for this instance of the task may be representing something different from another task call, even if same parameter is used to carry that data across.
    Adding the logic and manipulation in the transformation will work for us if we can override and use different transformation in the task plan settings, similar to how we can override the parameter mappings, but that is not available today...

  • Can't see BlazeDS server side log

    Hi,
    I'm running JBoss 5 EAP and BlazeDS 3. I don't see any server side log for BlazeDS even though I followed BlazeDS documentation. Following is the logging section in my services-config.xml:
        <logging>
            <target class="flex.messaging.log.ServletLogTarget" level="All">
                <properties>
                    <prefix>[BlazeDS]</prefix>
                    <includeDate>true</includeDate>
                    <includeTime>true</includeTime>
                    <includeLevel>true</includeLevel>
                    <includeCategory>true</includeCategory>
                </properties>
                <filters>
                    <pattern>Endpoint.*</pattern>
                    <pattern>Message.*</pattern>
                    <pattern>Service.*</pattern>
                    <pattern>Configuration</pattern>
                </filters>
            </target>
        </logging>
    According to the documentation, I should see log entries for BlazeDS in JBoss server log. But I didn't. Can anyone help me out with this issue?
    Thanks.

    Sorry, just as an addedum, I can connect through a hard connection, but I can't access Screen Sharing

  • Server side limitations

    Hello,
    are there any server side limitations from acrobat.com, i
    mean regarding the bandwidth etc??

    Hi e-spec1,
    The commercial edition of Cocomo won't have any account
    limits (beyond some sanity limits to make sure you can't impinge on
    service quality).
    A few notes on this kind of structure, and possibilities :
    For your app, your customers will be doing business with you
    (obviously), as a "service provider" - your customers will have
    accounts with you, not Adobe, and your role will be in consuming
    Cocomo services and packaging them up in your app for your
    customers. So it's likely (and here, we're stepping into
    conjecture, but I'd like to float the idea and see your reaction)
    that in this case that you, as the provider of your app, only have
    1 account with Adobe, and use that one account to build rooms for
    all your various customers. You'd pay (in some way) for utilization
    on that account, and pass the costs on in the price of your app to
    your customers.
    hope that made any sense - again, this is a discussion we're
    eager to have with all of you - feedback welcome!
    thanks
    nigel

  • Email without Server Side scripting

    My client's webside does not have any server side scripting support. Is it possible to send email without server side scripting and email programs? Can HTML's emailto send emails from flash?

    You can use a mailto: link in Flash just as you would in html.  It will open the whatever defauklt email program the user has with the email address in the address bar.

  • Insert data 32K into a column of type LONG using the oracle server side jdbc driver

    Hi,
    I need to insert data of more than 32k into a
    column of type LONG.
    I use the following code:
    String s = "larger then 32K";
    PreparedStatement pstmt = dbcon.prepareStatement(
    "INSERT INTO TEST (LO) VALUES (?)");
    pstmt.setCharacterStream(1, new StringReader(s), s.length());
    pstmt.executeUpdate();
    dbcon.commit();
    If I use the "standard" oracle thin client driver from classes_12.zip ("jdbc:oracle:thin:@kn7:1521:kn7a") every thing is working fine. But if I use the oracle server side jdbc driver ("jdbc:default:connection:") I get the exception java.sql.SQLException:
    Datasize larger then max. datasize for this type: oracle.jdbc.kprb.KprbDBStatement@50f4f46c
    even if the string s exceeds a length of 32767 bytes.
    I'm afraid it has something to do with the 32K limitation in PL/SQL but in fact we do not use any PL/SQL code in this case.
    What can we do? Using LOB's is not an option because we have client software written in 3rd party 4gl language that is unable to handle LOB's.
    Any idea would be appreciated.
    Thomas Stiegler
    null

    In rdbms 8.1.7 "relnotes" folder, there is a "Readme_JDBC.txt" file (on win nt) stating
    Known Problems/Limitations In This Release
    <entries 1 through 3 omiited for brevity >
    4. The Server-side Internal Driver has the following limitation:
    - Data access for LONG and LONG RAW types is limited to 32K of
    data.

  • Oracle server side jdbc thin driver throws ORA-01017

    We upgraded our database to 11.2.0.1 from 9.2.0.6.
    When we try to connect to an external database from Oracle JVM using server side jdbc thin driver, it throws invalid user id/password error.
    The below test code simulates the issue and is not working on the upgraded instance. The same code is working in fine in other 11.2.0.1 instances. It worked fine before upgrade. In all cases, we are connecting to the same target database instance which is also in 11.2.0.1. It fails only on this database.
    SEC_CASE_SENSITIVE_LOGON is set to false.
    Any inputs will be highly appreciated.
    Code:_
    create or replace and compile java source named TestConn as
    import java.sql.SQLException;
    import oracle.jdbc.OracleDriver;
    import oracle.jdbc.OracleConnection;
    import java.sql.DriverManager;
    public class TestConn {
         public  static String runTest() {
          String msg = "Start";
          OracleConnection tempOC = null;
          try {
          String pUrl = "jdbc:oracle:thin:@dev:1521:dev";
          String pUser = "tst_user";
          String pPwd = "dummy";
          DriverManager.registerDriver (new oracle.jdbc.OracleDriver());
          tempOC = (OracleConnection)DriverManager.getConnection(pUrl, pUser, pPwd);
    msg = "Success";
    } catch (SQLException sqle) {
          System.out.println(sqle.toString());
          sqle.printStackTrace();
          msg = "Failure";
            return msg;
    CREATE OR REPLACE FUNCTION test_conn RETURN VARCHAR2
    AS LANGUAGE JAVA
    NAME 'TestConn.runTest() return java.lang.String';
    set serverout on
    declare
    c varchar2(4000);
    begin
    dbms_java.set_output(5000);
    c:=test_conn();
    dbms_output.put_line(c);
    end;
    / Error Message_
    java.sql.SQLException: ORA-01017: invalid username/password; logon denied
    java.sql.SQLException: ORA-01017: invalid username/password; logon denied
           at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:439)
           at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:388)
           at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:381)
           at oracle.jdbc.driver.T4CTTIfun.processError(T4CTTIfun.java:564)
           at oracle.jdbc.driver.T4CTTIoauthenticate.processError(T4CTTIoauthenticate.java:431)
           at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:436)
           at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:186)
           at oracle.jdbc.driver.T4CTTIoauthenticate.doOAUTH(T4CTTIoauthenticate.java:366)
           at oracle.jdbc.driver.T4CTTIoauthenticate.doOAUTH(T4CTTIoauthenticate.java)
           at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:359)
           at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java)
           at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:221)
           at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
           at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java)
           at java.sql.DriverManager.getConnection(DriverManager.java)
           at java.sql.DriverManager.getConnection(DriverManager.java)
           at TestConn.runTest(TESTCONN:22) Edited by: sskumar on Mar 6, 2011 1:12 PM

    At the time our issue was resolved, the bug was not published. And, I was told, there was no information in metalink about the isue. I am not sure whether they published some thing in the last few weeks.
    This is what resolved our issue.
    Step 1: alter system set java_jit_enabled=FALSE;
    Step 2: Try your test case. If it is the same issue as ours, your test case will be successful. If it succeeds, Go to step 3. If it does not succeed, it is a different issue.
    Step 3: alter system set java_jit_enabled=TRUE;
    Step 4: Run your test case. If it is the same issue, it is expected to fail. Go to Step 5 in case of failure.
    Step 5: Delete all rows from table java$mc$
    Step 6: Restart the database
    Step 7: Run your test case. It is expected to be successful.

  • Is there any way to setup server side deferred delivery in Exchange 2013?

    We are utilizing 3rd party software to generate reports and email results.  Unfortunately, the software cannot be configured to execute at a specific time, date only.  This means that some reports are being processed and delivered at 12:00 am.
     For business reasons, management would prefer that those emails not be sent at midnight.
    We are looking for a solution that would allow the messages to be generated at midnight but not be delivered by Exchange until several hours later.
    Is there any way to set a deferred delivery option server side in Exchange?  It can be set through Outlook, but only applies to mail sent from Outlook.
    Any advise or recommendations would be greatly appreciated.
    Thanks

    I afraid that it can't be done in Exchange with native features. You might need to develop custom transport agent or need to utilize the 3rd party tool to achieve this...
    You can try in Development forum to see if you can get any help there...
    http://social.technet.microsoft.com/Forums/exchange/en-US/home?forum=exchangesvrdevelopment
    Blog |
    Get Your Exchange Powershell Tip of the Day from here

Maybe you are looking for