Urgent: Need information on Oracle

Hello,
I have 10,000 records in Oracle Database. I need to fetch 1000 records at one time. Is it possible in Oracle. Can someone tell me how?

There are a few ways to do this, the two most common being caching the data in memory, and using ordered data to query agains.
Caching is pretty simple, especially with classes like CachedRowSet to play with. The entire data set is kept in memory and you have to keep track of pointers as you move back and forth through the rows. The larger your dataset, the less functional this approach.
Querying against ordered data allows you to use the rownum pseudocolumn. You start with a known value, get ordered data above/below that value, and use rownum to give you the number of rows you need. The rownum value is assigned before ordering, so you have to order in a subquery.   Statement stmt = conn.createStatement(ResultSet.CONCUR_READ_ONLY, ResultSet.TYPE_SCROLL_INSENSITIVE);
   String query = "select min(field) from schema.table"; //get the starting point
   ResultSet rs = stmt.executeQuery();
   if (!rs.next()) someErrorCondition();
   String startValue = rs.getString(1);
   rs.close();
   query = "select * from schema.table where field in " +
           "(select field from schema.table where field >= " +  
           startValue + ") and rownum <= 1000";
   rs = stmt.executeQuery(query);
   if (!rs.next()) someErrorCondition();
   rs.last();
   startValue = rs.getString(1);
   rs.first(); //loop through the data, etc.
   rs.close();
   //get the next page
   query = "select * from schema.table where field in " +
           "(select field from schema.table where field > " +
           startValue + ") and rownum <= 1000";
   rs = stmt.executeQuery(query);That's a quick look, anyway. A problem with this is the number of trips to the database to accomplish a single page pass; you'll either have to do a rs.last() to find the startValue for the next page, or loop through the entire contents of the page and keep track of the last value.
Oracle gives many reasons for not implementing an easier way to do this (mostly to do with data concurrency) but I think they could work it out if they tried.

Similar Messages

  • Need information on oracle certified security admin for solaris 10

    Hi All,
    I need some information on "oracle certified security admin for solaris 10 OS".The information what i am looking out is eligibility criteria and within oraganization any tranning provided .
    Regards,
    Uma Maheshwar.

    http://education.oracle.com

  • Need information on Oracle products

    Hi,
    I am very new to oracle's products, kindly could you guide me with the below information :
    1)ORA 10 g app and web server : Is this product a combination of both app and web server? or are there individual products for the same?
    2)ORA 10 g database enterprise edition with OLAP option installed and with patch set 2 (10.1.0.4) applied : what is the OLAP option?
    3)Analytic workspace manager 10 g (10.1.0.4) : Need more info on this. Usage and functionality.
    Thank You.

    Here's some info on the Analytic Workspace Manager:
    http://download-east.oracle.com/docs/cd/B19306_01/olap.102/b14349/wiz.htm#i76953
    Press the "Download Oracle Software" button in the top right of the forums page and you should be able to find it.
    Good luck,
    Jim

  • Need information aboout Oracle Cloud Computing.

    Hi,
    I need to prepare the Oracle Cloud Computing solution for Iaas(Infrastucture). Can some body provide me the information or pointer from where i can get the information. Can some body let me know if I want to use cloud computing for Infrastucture. What would be the step need to followed.
    Regards,
    Syed

    Hi,
    Please see the following links.
    Cloud Computing Center
    http://www.oracle.com/technology/tech/cloud/index.html
    Oracle in the Cloud - Frequently Asked Questions
    http://www.oracle.com/technology/tech/cloud/faq.html
    Regards,
    Hussein

  • Need Information on oracle clinicals

    I need some documentation on Oracle clinicals..could anyone suggest me where i can get my hands on some oracle clinical stuff..?
    Thanks,
    Vineet
                                            07-Mar-2002
                                  Plainsboro, New Jersey

    I am afraid that link is no longer working. Check the site:
    http://www.oracle.com/technology/documentation/applications.html (Pharmaceuticals documents)

  • Need Information on oracle Security

    hi,
    Information is required on below senario.DB version oracle 11gR2.
    - From Few IP , I can able to read,write in data base.
    I am having x user in DB, only from two IP, it can be write/read in this user.
    - From All IP , I can able to only read data.
    the rest of other ip can able to read the user x's data.
    Please guide me , how i can achive above two points .

    My question is how can we configure at DB level that From x Ip , it can access of only read/write db.
    and From other IP can having read DB permission.not simply possible by IP only however you may find some option in database vault but this may required extra licence.
    check detail.
    http://www.oracle.com/us/products/database/options/database-vault/overview/index.html

  • Need Information on oracle

    kindly guide me on below Point.
    We are having oracle 11G R2.
    1) more than 1,00,000 TPS . There will be one CSV file which will having approx these much records.
    2) We have to process these records and insert records in Our DB .
    what approach we should follow which will make insert faster.What kind of DB structure/table Structure we have to go for. ?

    user10366531 wrote:
    We are having oracle 11G R2. That is a product name and not a version number. 11.2.0.1 is for example a version number and meaningful. The product name is much less meaningful.
    1) more than 1,00,000 TPS . There will be one CSV file which will having approx these much records. What is TPS? And do you imply that a single CSV file has 1 million rows to load?
    2) We have to process these records and insert records in Our DB . Process how? Does the data in the CSV file need to be transformed prior to loading? Does the data in the CSV simply needs to loaded into a table? You need to be specific about what this entails.
    what approach we should follow which will make insert faster.What kind of DB structure/table Structure we have to go for. ?The fastest loads with SQL*Loader are direct path and parallel loads doing minimal transformation and processing logic in the control file - and loading into a table that has no constraints, no indexes and no triggers.
    However - this may not be suitable and may not meet requirements.
    The fastest way to drive a car is pedal-to-metal going down a straight. But not all roads are straights. Many have tight corners and S-curves and hairpin bends. Pedal-to-metal will simply result in a crash on such a road.

  • Need Information about Oracle DBA 9i Exam

    Hi all,
    I am from saudi arabia, and i would like to write OCP for 9iDBA. I tried to contact saudi arabia oracle. But no use.
    Can any body help regarding to find another center for OCP.
    Reply me on [email protected]
    Bye
    Raj

    You can take the exams at any Prometric testcenter.
    Online registration is available on http://www.2test.com
    More information about OCP can be found on
    http://www.oracle.com/education/certification/

  • Need information about Oracle HTML DB

    What is Oracle HTML DB?
    From where can i get the installation for this software?

    Did you take a look at the product information?
    http://www.oracle.com/technology/products/database/application_express/index.html
    C.

  • Need information about Oracle Forms & Reports server installation

    Hello Friends,
    First of all I am very new user for oracle forums, So please ignore if I posted wrong place.
    We are using Oracle Database 10g and Oracle forms & Reports server 6i version.
    We just purchased oracle forms & reports (currently known as a Oracle Fusion middleware) license.  As per my knowledge latest version doesn't support Oracle 10g database.
    My question is can somebody give me Oracle Database 10g supported Forms & Reports version?
    We are planning to upgrade.
    Help would be really appreciated.
    Thanks & Regards.

    Thanks a lot for prompt response.
    I get my answer from your certification matrix.  I appreciate your response.
    Now second question arise that We are using currently Database version of 10.2.0.1.0.
    And in a certification matrix shows supported version Oracle 10.2.0.4+.
    Now I am bit confused that currently working database supports or not?
    Still i am trying to install on My window 2008 R2 with IIS 7.0.
    Let me check what happens.
    Again Thanks a lot to ccortez and PaulM  for your quick response and help.

  • Need information on oracle enterprise repository

    Hi,
    I am planning to get started on oracle enterprise repository.
    I have read a lot about it st various blogs and now want to have hands on implementation of the same. Can someone  let me know where I can get some tutorials or examples to get started with it. Sincerely appreciate your help.
    Thanks.Sridhar.

    have a look at these links
    Oracle Enterprise Repository
    Installing Oracle Enterprise Repository
    Installation Guide
    ORA:FMW Fusion Middleware: Installing Oracle Enterprise repository 11g
    regards
    Nasir

  • Need info regarding Oracle UCM Accounts and Security Groups behaviour

    Need information regarding Oracle UCM Accounts and Security Groups behaviour.
    Oracle UCM version: 11.1.1.5.0
    Steps:
    1. Log in with "weblogic" user and created a content with id "content1"
    2. Applied "@acc1(R)" and "TestGroup1" to the cotent created in step 1
    3. Log out
    4. Log in as "acc1user1", the user is not able to see the "content1"
    5. Log out
    6. Log in as "role1user1", the user is not able to see the "content1"
    Account and Group information:
    1. User "acc1user1" is part of "@acc1(R)"
    2. User "role1user1" is part of "role1(R)" and is mapped to "TestGroup1" in UCM
    Expected:
    Both "acc1user1" and "role1user1" should be able to see "content1" as they have at least Read permission.
    Please help me understand why the users are not able to see the content.

    ACLs, like Accounts, are optional security setting which may add on some extra functionality to mandatory security groups. Likewise, the resulting permission is taken as an intersection of SG and ACLs.
    But in the second part the number of set of users is huge (approx say 600)I don't get this completely. Does this mean that those "sets of users" (users who see the same data) are distinct and that there is 600 of such groups?
    If you read thoroughly the manual I sent earlier, there is a recommendation that there should be maximum 50 security groups, and you should use accounts, should this number be exceeded. This means you could have all the documents in one security group (and have one common role with Read permission), but combine it with accounts. ACLs are not a good choice here - their performance and manageability is much worse than of accounts. ACLs are primarily used if you expect security settings to change during the lifetime (e.g. a project manager adds temporarily rights to access an item to another user, and revokes it when the user finishes his or her work).
    Note that accounts as well as permissions of users within accounts can also be mapped externally (from LDAP/AD) and it usually follows some kind of org chart.
    I'd feel more comfortable not to speak about users, security groups, roles, etc., but about some real-life objects and scenarios.

  • Urgent Need in Dallas Texas for a Sr. Oracle BPEL Developer

    $$$$$$$$$$$$
    I have an urgent need for a Sr, Oracle BPEL Developer in the Dallas Texas area. With this position, you can interview and start immediately. If you are interested or know of anyone looking please send my way. Or know of companies that use BPEL would be helpful too.
    Warm regards,
    Kim Dobson
    Sr. Account Manager
    Eventus Group Technology Resources
    10100 N. Central Expressway
    Suite 150
    Dallas, TX 75231
    Office 469.916.4857
    Mobile 214.277.2097
    Fax 469.916.3861
    [email protected]

    I was told by Dave Shaffer, Director Product Management, Oracle BPEL Process Manager to do this posting here. I am sorry but this is a critical need for me and was just looking for help.
    Kim Dobson

  • Need Information On R12 Error tables.

    Hi Friends,
    I need information on R12 Error Tables and Staging Error tables. Can you please send me any documention on this.
    Little bit urgent.
    Thanks

    Thanks for you Reply.
    Actually i am new to Apps. I am a OBIEE Developer. Here i will tell you the process. From Flat files to Staging area they are Loading the Data using some Scripts. After that they are using some concurrent programes for clensing the data and load them in to the Interface Tables. Then Those tables are loaded in to the Main oracle Tables.
    Mean while when they loading the data from staging to Interface they clensing the data. If Any errors occur they are moving those tables into some Built in Tables like (MTL_Interface_Errors). This is the process.
    And i don't know how to find the error tables..
    Thanks.
    Edited by: 806756 on Nov 9, 2011 1:34 AM

  • Need docuementaion for Oracle Discoverer plus

    Hi,
    I am in a urgent need of the documentation for "Oracle Discoverer Plus".
    Can any one send me the information(links etc...) regarding this.
    I have to build ad-hoc reports. Plz guide me..
    Thanks...

    Hi Tamir,
    Many thanks for the guidance. They have hundreds of reports so I have asked them to send me a few however, it feel awkward to ask for all. I have Discoverer9i and they are on Discoverer10g. Do you think this may be an issue ?

Maybe you are looking for

  • How do I get my iPhone4s back to iOS 5

    I updates my iPhobe4s to iOS6. Now my iPhone does not work correctly with my handsfree telephone in my ca (Mercedes-Benz W212). How ca i get back my old firmware (iOS) on my phone? Thanks fpr held!

  • Canon G7 x RAW will not open in Photoshop cs6

    My new Canon G7 X RAW files will not open in Photoshop cs 6. I downloaded the new plugin but still won't open.

  • Extending one Region Controller but need hold button id in Another Region

    Hi All, I am extending one Region() Controller.But i need to get control to a Button in a different region(Page Button Bar: (EffDateFooterRN)). I tried to use PageLayoutBean as well as OASubmitButtonBean but it is returning null. Can anyone help on t

  • Is it posible to make a figure or text move across the slide?

    Hi... i am using KN3 and need to know if is posible to move a figure or text across a slide. For instance, a textbox start on left upper corner and then it moves to right lower corner? it is possible to do? thanks in advance

  • ADDING PDF DOWNLOADS TO FLASH SITE!

    Recently, I was given a site to maintain, and I'm having trouble with one aspect of the flash site. The client has PDF downloads on one of their pages and I can't seem to add another file (or zipped pdf) for download. This is new to me and I was hopi