How does jdbc fetch a set of records in oracle

Hi,
Oracle does not support server side cursors,if so how does jdbc fetch a set of records(set by setFetchSize(), which is 10 by default) each time I say rs.next().Does this mean Query is re-executed to fetch the next set of records? Can some body throw some light on this?
thanx in advance
Gnayan

You are asking about implementation details of some JDBC driver, but you don't say which one. This makes it very difficult to answer your question. You might want to try asking the question of the people who wrote the driver.

Similar Messages

  • How does JDBC adapter reads or writes the data to DB

    Hi All,
             How does JDBC adapter read the data from a db, is it that it collects all the data in one go and sends to XI, or is it record by record.  And what if it writes to a db?
    Xier

    Hi,
    It collects all record at one time and while writing to DB you can push all data at one go...
    We are using receiver JDBC adapter to push data to DB and its one go..
    Nilesh

  • How to post a table/set of records without losing formatting while posting

    how to post a table/set of records without losing formatting while posting in this message forum. Thanks

    Most forums have a FAQ. This one is no exception.
    It is in the right hand upper corner. It's URL is http://wikis.sun.com/display/Forums/Forums+FAQ
    Sybrand Bakker
    Senior Oracle DBA

  • How does vendor determine if no info record is maintained for the material

    how does vendor determine if no info record is maintained for the material

    Hi
    If you have to determine a vendor, the minimum requirement is Info record. Beyond that, you can ofcourse maintain Source Lists, Quota Arrangements but Info record is bare minimum for automatic determination of vendor.
    Otherwise, you have to maintain the vendor manually in th Purchasing docs.
    Tcodes for Info record are ME11, ME12, and ME13.
    Hope this clarifies.
    Thanks

  • How to fetch 2 set of records in MII from SQL procedure

    Hi Experts,
    I am invoking a SQL procedure from MII which return 2 set of records. But at MII I am able to get only first set of records. Is there any configuration required at MII side or SQL side to get both set of records in MII?
    Here is the SQL Query Structure
    Create procedure Sample_Proc
      @Param1 Varchar(10),
      @Param2 varchar(10),
      @Param3 Varchar(20) OUT,
      SET INCOUNT ON;
    AS
    Begin
      *//Selection statements//*
    END
    SP Executing in MII
    Declare @Param1,
      @Param2,
      @Param3,
    Exec Sample_Proc
      @Param1='name',
      @Param2='Id',
      @Param3=@Param3 OUTPUT,
    Select @Param3
    Our SP is returning values (Say Recordset1)based on the input parameters 1 and 2 , along with Parameter3 value(Say Recordset2) in MS SQL server but in MII its returning only the values(Recordset1) ... how to fetch recordset2 values in MII
    I hope MII can return 2 set of records (rowsets) after executing the procedure.
    MII version -> 12.2.3 Build(182)
    Thanks & Regards,
    Rajasekhar Kantepalli

    Hi Swaroop,
    With MII 14.0 SP5 Patch 11, in a transaction, I get following XML output for a query that executes an SP(returning multiple resultSets) :
    And, results in this format can surely be used for further processing in an MII transaction.
    Thanks Rajasekhar, got to know about this because of your query.
    regards,
    Manisha

  • How does JDBC sender adapter reads data from DB

    Hi ALL,
               I have scenario where the JDBC adapter has to read the data once every month. now how would JDBC adapter know that it has to select data which has been updated after last months select only and not the old data?
    XIer

    Hey
    in the sender JDBC adapter you give the select statement as well as update statement.
    what you do is that once you select the data from data base you use an update query to set a flag to false,so that you dont select that data again next time.
    have a look at this blog
    /people/yining.mao/blog/2006/09/13/tips-and-tutorial-for-sender-jdbc-adapter
    in this he has used both select and update query on the sender side
    Thanx
    Aamir suhail
    Message was edited by:
            Aamir Suhail

  • How does manual fetching of google contacts and calendar work?

    In an effort to possibly save some battery life and/or just use the product as intended I would like to know how this works exactly.    At this point I only have two email accounts I use.  Yahoo and GMail, with GMail being my primary account.  Gmail is the only calendar option I use as well.
    I don't add contacts often, nor do I make tons of calendar entrys every day.  So when I look into the settings for mail, contacts and calendar, then fetch new data (which shows push as on, which I want) and then advanced, the only two things listed on the fetch schedule are google calendar and google contacts.  iCloud and Yahoo mail are listed as push.
    So can I set the fetch schedule to manual as opposed to hourly (the longest setting) due to the fact that I am not in constant need or hourly need really of updates to either?  Or will calendar notifications fail to show up on time and all my contacts disappear or something?
    Battery life or not, if I could have both be "push" I would, as it seems counterintuitive not to, but so does manually looking out every hour for changes to something that likely hasn't changed.

    Going to reply to myself on this one, I tryed switching everything to manual fetch today, and at least with respect to contacts, it appears to only go out and sync when the contacts are opening (ie I saw the spinning wheel and watched a contact I had made while in airplane mode on the phone show up online).  So I think that it would work the same for calendar entrys.

  • Query to fetch a set of records

    My query is expected to fetch a huge number of records, say 20000, depending on the parameters passed through front end. The front end developer wants that these records should be displayed on different pages with each page displaying 100 records. But the next 100 records should be fetched whenever user selects next page option i.e. the query should execute 20000/100 times. If I use order by and rownum (i think can be used, not tried), again it will require sorting and the operation will be slow which is to be avoided. What should be done in this case? Front end is Java and database is Oracle 9i.

    > Will there be any difference in performance in these
    2 approaches ?
    1) Fetch all records with a single query, store in an
    array (in Java) and keep displaying 100 reocrds per
    page.
    2) Execute query multiple times, query will be using
    rownum. If if the query displays a subset of records,
    it has to fetch all the records evey time.
    One of these questions that results in a YES and NO answer.
    Simplistically, yes - significant performance improvement as subsequent page displays do not need to access the Database. The rows are locally cached.
    Unfortunately, some J2EE developers only think that far and code it like that on development. And performance is awesome.
    They fail to realise that problems with this approach are that
    a) it does not scale
    b) it lacks data consistency
    So it gets implemented. The 1st time 20 users hit that J2EE app server, it trashes memory attempting to create huge caches for each user - with each cache containing the all rows that the user may (or may not) be interested in.
    Performance degrades drastically as the swap space is totally trashed. The machine crashes.
    Clever J2EE architects respond with "oh, we must scale" - and want to purchase more hardware, configure these as J2EE servers and cluster the application tier. What a silly and expensive way to achieve scalability!
    The business user on the other hand sees data in the cache - it can be old. It may not reflect the current consistent data in the database. The business user does not know that. He tells the customer "Yes, we still have a 100 units at the special price.. not a problem, I will reserve all 100 for you, my special customer". And then get mud in his face as he proceeds with an attempt to sell a 100 non-existing units that have long since been sold.
    Hmmm.. so the clever J2EE architects come up with the idea of using persistence in the app tier by using something like EJB. Let's cache all the data! And let us share that data between users! Wow!! Great, it now solves that problem!
    But it does not. Instead something like EJB is VERY POOR attempt to emulate what the Database does, and does EXTREMELY WELL.
    J2EE suffers from Let-Us-Reinvent-The-Database-Wheel-In-The-Application-Tier approach. It is fatally flawed. The Database is much more than just a bit bucket wheel. The Database is much more scalable in design and use than a (Java) app tier.
    Despite what the Java prophets proclaim, the J2EE architecture is not The Saviour - and no substitution for common sense and logic.

  • How does a multiple-select list box record its value?

    I assumed that the value of a MSLB would be based on all the values selected, similar to SharePoint column?
    I have a MSLB with 15 choices and I want to hide a section if 2 of the MSLB options are not selected. I have tried a rule on the section using
    MSLB Doesn't Contain "AUD-Public Co"  OR
    MSLB Doesn't Contain "AUD-Public Accountable"  THEN  HIDE.
    This doesn't work, if I change it to Is Equal To, it works but it is in reverse to what I want. If I change it to Is Not Equal To, it doesn't work at all, it stays hidden all the time.
    I created a Text box to be set when the MSLB is checked and it only displays the most recent selection and doesn't clear when all items in the MSLB are cleared. I read a few other postings that were trying to concat into a textbox but this is still only
    showing the last selected item.
    I just want to hide the section if 2 of the MSLB are NOT checked. I am hoping I don't have write a rule using Is Equal To for every option?
    Stunpals - Disclaimer: This posting is provided "AS IS" with no warranties.

    My next question would be, if I promote this field to a column in a SP Doc Lib, how will it be displayed. We are hoping it would be the same as multi select choice field on a regular SP list so we can filter by any of the values?
    Or perhaps there is a better way to accomplish this?
    Stunpals - Disclaimer: This posting is provided "AS IS" with no warranties.

  • How does one move Policy Sets & Policies from one server to another

    Is there a way to export Policy Set and Policy definitions from a development server and import into a production server?

    Not really, the only thing that you may be able to do is replicate the development server LiveCycle database (as this is where the policy set and policy information is stored) and use it for the production system.  remember all domains, ussers etc would have to be the same between development and production as the policy sets and policies contain users.
    The safest thing to do would be to re-create the policy sets and policies (from scratch) on the Production server.
    Regards
    Steve

  • OIM: How does USR_POLICY_UPDATE flag get set?

    We're finding that some of our users are getting the USR_POLICY_UPDATE flag set to "1", which is causing access policy evaluation when the user is updated. In some cases we do not want this evaluation to occur.
    My question is: What task or process is setting this flag? USR_POLICY_UPDATE=1
    Thanks,
    Wayne

    One I know about this is
    There is a OOTB scheduled task "Set User Provisioned Date". which sets the provisioned date to the current date for users for whom all of the following conditions are true:
    *The provisioning date is in the past.
    * The deprovisioned date has not been set.
    * The deprovisioning date has not been reached or is NULL.
    The setting of the provisioned date to the current date causes the policies to be evaluated for the users affected by an access policy update. After the evaluation is completed for the users, the usr_policy_update flag is set to NULL.
    even check ID 981084.1 for more detail

  • How does the "je.maxMemoryPercent" setting relate to shared cache?

    Assume there are two environments which are set to use 50% and 20% of memory. Each environment is configured for shared caching. Wouldn't these settings contradict?
    Thanks,

    Hi,
    From the javadoc
    http://www.oracle.com/technology/documentation/berkeley-db/je/java/com/sleepycat/je/EnvironmentMutableConfig.html#setCachePercent(int)
    we have:
    If setSharedCache(true) is called, setCacheSize and setCachePercent specify the total size of the shared cache, and changing these parameters will change the size of the shared cache.
    So the last call to change the cache size -- for any environment sharing the cache -- will be the one to take effect for the shared cache.
    --mark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How does the Develop Applications on windows working with Oracle on Linux

    Hi list
    I'd built a machine.
    OS: RedHat 9.0
    Database: Oracle 9iR2
    Every service works fine for me (dbstart|dbshut|dbca|oemapp xxx)
    But Now my girl friend needs to use Windows
    XP, so I can't use this machine with a monitor.
    And I would like to use TOAD or DBQwikedit to connect the
    Oracle Database Server. But they always failed by the error messages such as `DLL_UNAVAILABLE'. I was not familiar with Windows XP or 2000.
    Thanks in advanced!
    --Armani Liao

    Hi Armani,
    maybe u need to re-install the program.
    btw how did you solve the linking error of ins_oemagent.mk on the installation of the oracle 9i R2 on RH 9?
    -andi

  • How Does The Account Generator Default The Accounts In Oracle Purchasing

    I enter requisition in iprocurement, add a Project/Task. Where does the workflow look for the default accounts?
    Thank you

    Hi,
    To Default the accounts, the Requisition Account Generator workflow - POWFRQAG would be called.
    It is normal, that POWFRQAG does not default charge account for project based requisition.
    You are required to customize the POWFRQAG workflow.
    Details documented in the note:
    Error APP-PO-14040 in Po Requisition Account Generator (Doc ID 263850.1)
    Regards,
    Paarthy

  • How does a Date Parameter get interpreted using an Oracle Query

    I have a SSRS Report which utilizes an Oracle Data Source and the following query...
    select TRIM(to_char(TO_DATE(:mydate),'Month')) || ' ' || TRIM(to_char(TO_DATE(:mydate),'YYYY')) as compare_month,
    cs.contract_nbr,
    m.hcfa_nbr,
    m.fname,
    m.lname,
    cs.group_nbr,
    cs.division_nbr,
    to_char(to_date(cs.ymdeff,'yyyymmdd'),'mm/dd/yyyy') as date_eff,
    to_char(to_date(cs.ymdend,'yyyymmdd'),'mm/dd/yyyy') as date_end,
    ssw.num_months,
    ssw.ssa_premium_collected,
    ssw.ssa_penalty_collected
    from amiown.contract_span cs
    left join (select distinct
    m.member_nbr,
    m.contract_nbr,
    trim(m.firstname) as fname,
    trim(m.lastname) as lname,
    m.hcfa_nbr
    from amiown.member m
    inner join amiown.member_span ms
    on ms.member_nbr = m.member_nbr
    and trunc(to_date(:mydate),'Month') <= to_date(ms.ymdend,'yyyymmdd') -- beginning of month is <= than end of span
    and add_months(trunc(to_date(:mydate),'Month'),1)-1 >= to_date(ms.ymdeff,'yyyymmdd') -- end of month is >= than beginning of span
    and ms.void = ' '
    and ms.class_x = 'CH' -- contract-holders only
    ) m
    on cs.contract_nbr = m.contract_nbr
    left join (select hno.member_id,
    substr(hno.member_id,1,9) as contract_nbr,
    pw.hic_number,
    pw.report_date,
    pw.start_date,
    pw.end_date,
    pw.num_months,
    pw.part_c_collected + pw.part_d_collected as ssa_premium_collected,
    pw.penalty_collected as ssa_penalty_collected
    from SC_BASE.hcfa_arch_premiumwithhold pw
    left join SC_BASE.hcfa_name_org hno
    on pw.name_id = hno.name_id
    where pw.report_date between pw.start_date
    and pw.end_date -- filter out adjustments
    and trunc(to_date(:mydate),'Month') <= pw.end_date -- beginning of month is <= than end of span
    and add_months(trunc(to_date(:mydate),'Month'),1)-1 >= pw.start_date -- end of month is >= than beginning of span
    order by substr(hno.member_id,1,9)
    ) ssw
    on trim(cs.contract_nbr) = trim(ssw.contract_nbr)
    where cs.division_nbr like '%SSW%'
    and cs.void <> 'V'
    and trunc(to_date(:mydate),'Month') <= to_date(cs.ymdend,'yyyymmdd') -- beginning of month is <= than end of span
    and add_months(trunc(to_date(:mydate),'Month'),1)-1 >= to_date(cs.ymdeff,'yyyymmdd') -- end of month is >= than beginning of span
    The :mydate parameter is defined in the .rdl with a Data type: of Date/Time
    I am trying to trouble shoot this by using a Linked Server to Oracle and even going against Oracle itself...providing the following syntax because I believe this is what's being sent over via SSRS...
    WHERE   TRUNC(TO_DATE(11/30/2014 00:00:00), 'Month')        <=      HCFA_ARCH_PREMIUMWITHHOLD.END_DATE
    However, every time I try this, I get an Oracle error...ORA-01843: not a valid month
    Can anyone help me out in the data transformation from SSRS to Oracle and the syntax that actually gets passed over so that I can try and troubleshoot this?
    Thanks for your review and am hopeful for a reply.

    Hi ITBobbyp,
    Please add the myDate field in the report to check if the myDate have the format like:'MM/DD/YYYY hh:mm:ss AM' or 'MM/DD/YYYY hh:mm:ss PM', If so, your issue can be caused by the format of the :mydate  parameter which is like 'MM/DD/YYYY hh:mm:ss AM'
    or 'MM/DD/YYYY hh:mm:ss PM' in the report ,so it have extra ' AM' or ' PM' compare with that in the TRUNC(TO_DATE('11/30/2014 00:00:00'), 'Month').
    You can get the format wanted 'MM/DD/YYYY hh:mm:ss' from 'MM/DD/YYYY hh:mm:ss AM' as below:
    You can create an new calculated field to get the new date by using expression as below and then create the parameter based on this calculated field:
    =Fields!DateTime.Value.ToString().Replace(" AM","").Replace(" PM","")
    You can also hide the :myDate parameter and then create an new parameter(NewMyDate) based on the :myDate
    parameter which will have the format like 'MM/DD/YYYY hh:mm:ss':
    Specify the available value and default value using below expression:
    =Parameters!myDate.Value.ToString().Replace(" AM","").Replace(" PM","")
    Then you can use the @NewMyDate to add in the query to filter the data.
    If you still have any problem, please feel free to ask.
    Regards
    Vicky Liu
    Vicky Liu
    TechNet Community Support

Maybe you are looking for