Cursors are not closed when using Ref Cursor Query in a report  ORA-01000

Dear Experts
Oracel database 11g,
developer suite 10.1.2.0.2,
application server 10.1.2.0.2,
Windows xp platform
For a long time, I'm hitting ORA-01000
I have a 2 group report (master and detail) using Ref Cusor query, when this report is run, I found that it opens several cursors (should be only one cursor) for the detail query although it should not, I found that the number of these cursors is equal to the number of master records.
Moreover, after the report is finished, these cursors are not closed, and they are increasing cumulatively each time I run the report, and finally the maximum number of open cursors is exceeded, and thus I get ORA-01000.
I increased the open cursors parameter for the database to an unbeleivable value 30000, but of course it will be exceeded during the session because the cursors are increasing cumulatively.
I Found that this problem is solved when using only one master Ref Cursor Query and create a breake group, the problem is solved also if we use SQL Query instead of Ref Query for the master and detail queries, but for some considerations, I should not use neither breake group nor SQL Query, I have to use REF Cursor queries.
Is this an oracle bug , and how can I overcome ?
Thanks
Edited by: Mostafa Abolaynain on May 6, 2012 9:58 AM

Thank you Inol for your answer, However
Ref Cursor give me felxibility to control the query, for example see the following query :
function QR_1RefCurDS return DEF_CURSORS.JOURHEAD_REFCUR is
temp_JOURHEAD DEF_CURSORS.JOURHEAD_refcur;
          v_from_date DATE;
          v_to_date DATE;
          V_SERIAL_TYPE number;
begin
SELECT SERIAL_TYPE INTO V_SERIAL_TYPE
FROM ACC_VOUCHER_TYPES
where voucher_type='J'
and IDENT_NO=:IDENT
AND COMP_NO=TO_NUMBER(:COMPANY_NO);
     IF :no_date=1 then
               IF V_SERIAL_TYPE =1 THEN     
               open temp_JOURHEAD for select VOCH_NO, VOCH_DATE
               FROM JOURHEAD
               WHERE COMP_NO=TO_NUMBER(:COMPANY_NO)
               AND IDENT=:IDENT
          AND ((TO_NUMBER(VOCH_NO)=:FROM_NO and :FROM_NO IS NOT NULL AND :TO_NO IS NULL)
          OR (TO_NUMBER(VOCH_NO) BETWEEN :FROM_NO AND :TO_NO and :FROM_NO IS NOT NULL AND :TO_NO IS NOT NULL )
          OR (TO_NUMBER(VOCH_NO)<=:TO_NO and :FROM_NO IS NULL AND :TO_NO IS NOT NULL )
          OR (:FROM_NO IS NULL AND :TO_NO IS NULL ))
               ORDER BY TO_NUMBER(VOCH_NO);
               ELSE
               open temp_JOURHEAD for select VOCH_NO, VOCH_DATE
               FROM JOURHEAD
               WHERE COMP_NO=TO_NUMBER(:COMPANY_NO)
               AND IDENT=:IDENT               
          AND ((VOCH_NO=:FROM_NO and :FROM_NO IS NOT NULL AND :TO_NO IS NULL)
          OR (VOCH_NO BETWEEN :FROM_NO AND :TO_NO and :FROM_NO IS NOT NULL AND :TO_NO IS NOT NULL )
          OR (VOCH_NO<=:TO_NO and :FROM_NO IS NULL AND :TO_NO IS NOT NULL )
          OR (:FROM_NO IS NULL AND :TO_NO IS NULL ))     
               ORDER BY VOCH_NO;          
               END IF;
     ELSE
               v_from_date:=to_DATE(:from_date);
               v_to_date:=to_DATE(:to_date);                         
          IF V_SERIAL_TYPE =1 THEN
               open temp_JOURHEAD for select VOCH_NO, VOCH_DATE
               FROM JOURHEAD
               WHERE COMP_NO=TO_NUMBER(:COMPANY_NO)
          AND IDENT=:IDENT                         
               AND ((voch_date between v_from_date and v_to_date and :from_date is not null and :to_date is not null)
               OR (voch_date <= v_to_date and :from_date is null and :to_date is not null)
               OR (voch_date = v_from_date and :from_date is not null and :to_date is null)
               OR (:from_date is null and :to_date is null ))     
               ORDER BY VOCH_DATE,TO_NUMBER(VOCH_NO);     
          ELSE
               open temp_JOURHEAD for select VOCH_NO, VOCH_DATE
               FROM JOURHEAD
               WHERE COMP_NO=TO_NUMBER(:COMPANY_NO)
               AND IDENT=:IDENT                         
          AND ((voch_date between v_from_date and v_to_date and :from_date is not null and :to_date is not null)
               OR (voch_date <= v_to_date and :from_date is null and :to_date is not null)
               OR (voch_date = v_from_date and :from_date is not null and :to_date is null)
               OR (:from_date is null and :to_date is null ))     
               ORDER BY VOCH_DATE,VOCH_NO;          
          END IF;
     END IF;               
     return temp_JOURHEAD;
end;

Similar Messages

  • How can i set songs within a playlist, or an entire playlist, so that they are not included when using the shuffle function on IPOD Classic? Is this possible?

    How can i set songs within a playlist, or an entire playlist, so that they are not included when using the shuffle function on IPOD Classic?
    Is this possible?

    You can set any song to Skip when shuffling.
    In your iTunes Library, highlight the song and right-click/Get Info. On the Options tab is the Skip when shuffling box. Select that and then Sync the iPod with your Library.

  • Open cursors are NOT closed only by closing the ResultSet or Statement

    I've realised that the open cursors are only closed by closing the connection.
    In my example code I have for-loop with a vector of table-names. For every table-name I start a query to retrieve metainformation (row-size, column-names). Although I close the ResultSet (which automatically closes the PreparedStatement/Statement) I reached after the 150th loop a max-cursor-exception (ora-01000) ?!
    It seems that there is only the workaround to close and re-open the connection at the end of the for-loop. Which is performance-side pretty bad :-(.
    Is there really no other solution?
    Besides: does anyone know WHY the statement.close() also closes the ResultSet?? I think this is a bad design (hence to tight dependency between both classes). What if the garbage collector closes the statement (and hence to the JDOC the statement.close()-method also closes the ResultSet)? For example if a method uses a local Statement and returns a ResultSet (and the Statement-garbage is collected), then the ResultSet would cause an exception?!
    Thanks for the help in advance
    Tai

    I've realised that the open cursors are only closed by
    closing the connection.Or by closing the Statement!
    In my example code I have for-loop with a vector of
    table-names. For every table-name I start a query to
    retrieve metainformation (row-size, column-names).
    Although I close the ResultSet (which automatically
    closes the PreparedStatement/Statement) I reached
    after the 150th loop a max-cursor-exception
    (ora-01000) ?!Closing the ResutSet does not automatically close the PreparedStatement/Statement.
    >
    It seems that there is only the workaround to close
    and re-open the connection at the end of the for-loop.
    Which is performance-side pretty bad :-(.
    Is there really no other solution?
    Just explicitly close the PreparedStatement/Statement!
    Besides: does anyone know WHY the statement.close()
    also closes the ResultSet?? You need to think of a resultset as a live connection to the database.
    Consider SELECT * FROM ABIGTABLE, it would be inefficient to populate the Resultset with all of the rows (could even eat up all memory) so the first n rows are returned ( n = Statement.getFetchSize() ) and the next n rows are returned as needed.
    I think this is a bad
    design (hence to tight dependency between both
    classes). What if the garbage collector closes the
    statement (and hence to the JDOC the
    statement.close()-method also closes the ResultSet)?
    For example if a method uses a local Statement and
    returns a ResultSet (and the Statement-garbage is
    collected), then the ResultSet would cause an
    exception?!You should use a statment and resultset, read all your data into a collection or a CachedRowSet (http://www.javaworld.com/javaworld/jw-02-2001/jw-0202-cachedrow.html) then close the statment as soon as possible. Never return a resultset form your data tier: that is tight coupling between the tiers of your application!

  • Items in shared mailbox are not visible when using cached mode in Outlook 2013

    Hi all,
    When using Outlook 2013 working with the users own mailbox works great, but when a user connects an additional mailbox to its mailbox, this mailbox is shown correctly, but it contains no items. The folder list is shown correctly, but there are no items to be
    seen.
    These users (I have seen it with 3 different users and 2 shared mailboxes already) have full access to these mailboxes (Exchange 2010), but somehow the items aren't shown... When these users turn off cached mode, it works fine and when they use Outlook 2010
    it also works fine, but using Outlook 2013 with cached mode will only show their own items and not the items in an additional shared mailbox.
    What is the cause of all this?
    Kind regards,
    Erik

    Maybe something interesting...
    When looking at article http://support.microsoft.com/kb/982697/en-us
    I saw that Outlook 2013 by default caches everything and that's what I wanted. I tested however adding this regkey to see what happened and after that the email shows up in the mailboxes... Somehow the mail from shared mailboxes doesn't want to be
    cached...
    Does anyone know what this could be? I want everything to be cached, also the shared mailboxes but somehow this doesn't work and it does when using Outlook 2010....

  • Help topics are not displaying when using Windows 7 / IE 9 / RH10

    We recently upgraded our library from RH8 to RH10.  Also used a trial version of  RH9 in this process. Now when we compile several of the projects have issues where help topics do not display when selected in the TOC or when a link to the topic is clicked within another internal topic. It is in a continous loop in the browser (like it is trying to load).  If you right-click on the topic it displays (we are currently using this as the work-around).  Anyone else having this problem?? I saw something similiar for Windows8/IE10, but the fix does not apply here (http://forums.adobe.com/message/5138909#5138909#5138909).

    Hi,
    I (April) apologize I have been OOO and have not been able to respond to your replies.  
    Let’s start over. 
    We have an issue where help topics do not display when selected in the TOC or when a link to the topic is clicked within another internal topic. It is in a continous loop in the browser (flickering like it is trying to load). If you right-click on the topic it displays (we are currently using this as the work-around).
    We use Windows 7, IE9 and RH10 for all our projects. (Recently upgraded from RH8 to RH10)
    Turns out the problem is not isolated. I have run across it in at least one other project, which leads me to think it also occurs in others.
    "Does this only occur when the help is called from your software? Is it OK if you double click the start page?"
              No. I it ALSO occurs when launched from the start page. 
    Have you tried deleting the CPD file and reopening Rh and the project?
              Yes, without success.
    Are you using any redirects?    
              Per (Adrienne), “I am not using any redirects. I encounter this issue only in IE. If I paste the .htm into a Firefox browser, the help displays as it should.” 
              I will add that the project also displays incorrectly in Google Chrome.
    Thanks  April

  • Retro entires in HR Forms are not printed when using device type ZHPP3005

    Hi All,
    We are doing a HCM implementation. We are using HP P3005n printer and ZHPP3005 device type to print our HR forms. We are using ZCalibri font.These are smartforms. Everything was printing perfectly.
    Then there were retro calculations made to these forms.Strangely, the forms doesn't display these retro entries in the print preview using ZHPP3005 device type. Only the retro entries throughout the form are not printing. All other entries get printed.
    When we use device type HPLJIIID, we get these retro entries printed in our form however the format of the form gets changed.
    Now, we want to use device type ZHPP3005 and get these retro entries printed. How would we achieve this? Is this a device type issue? Or, anything needs to be done in the smartform? Why is this issue?
    Please help. Quick response will be appreciated. We are nearing our Go Live date and needs this resolved immediately.
    Thanks in Advance.

    Hi,
    Check the assigned page format to your custom device type. Try to assign all the page format which are available for
    HP*** which you gives you desired result.
    Regards,
    Vamshi.

  • Enterprise DNS servers are not responding when using Windows NLB with Direct Access 2012

    Hi
    We have installed Direct Access 2012 as one server installation:
    - Two network cards. First one in DMZ and second one in internal network
    - Two consecutive IP addresses configured in DMZ because of Teredo
    - PKI because of Win7 Clients IPSec
    - Our corporate network is native IPv4 so we use DNS64/NAT64 and DA-server is configured as DNS
    - DA-servers are VMWare virtual machines 
    One server installation works fine and now we want to use Windows NLB as load balancing. NLB installation goes fine too,
    but problem is DNS. If we still try to use DA-server as DNS there comes error message below
    None of the enterprise DNS servers 2002:xxxx:xxxx:3333::1 used by DirectAccess clients for name resolution are responding. This might affect DirectAccess client connectivity to corporate resources.
    When trying to configure DNS using Infrastructure access setup, DNS cannot be validated when using DA-servers DIP or cluster VIP. Only domain local DNS looks to be ok but those have no IPv6 addressess. So how DNS should be configured when using multicast
    NLB? 
    Tried to remove name suffix then adding again => Detect DNS server => DA-server IPv6 address found => validate => The specified DNS server is not responding...
    Then tried to ping detected address => General failure
    NLB clusters are configured as multicast and static ARPs are configured too. Both clusters can be connected from those subnets as they should be. 
    Any clues how to fix this?
    ~ Jukka ~

    Hi,
    Your question falls into the paid support category which requires a more in-depth level of support.  Please visit the below link to see the various
    paid support options that are available to better meet your needs.
    http://support.microsoft.com/default.aspx?id=fh;en-us;offerprophone
    Regards,
    Mike
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Header Fields are not displayed when there is no data in the report

    Hi,
    I am having this strange situation in my webi report.
    When I refresh my report and when there is no data, column names are not being displayed in my report. All it is showing is two empty rows. When I have data, then report is displaying data along with column headings.
    Please suggest me where I am going wrong.
    Thanks,
    VenMen

    Thanks for the update.
    Can you try this.
    Run the report first time for some data.
    When the report is rendered select the table that is displayed.
    On the left pane side properties tab.
    Expand display and check all the options
    Show rows with empty measures
    show rows with empty dimensions
    Show when empty
    Hope this will help
    Regards
    Kultar

  • Help topics are not displaying when using Windows 8/IE 10

    I have a WebHelp system created in RoboHelp 7. When opening that Help from our application using Windows 8 with Internet Explorer 10 and allowing blocked content, the Help topics do not display in the right pane when clicking a topic from the Contents in the left pane. Below are the steps:
    1. Open the Help system from the Help menu within the application.
    2. The Allow Blocked Content displays and I allow it.
    3. The Help opens and if I click a topic from the TOC in the left pane, the topic doesn't display in the right pane.
    A workaround we found was to widen the left pane and the topic then displays. Also, if you don't allow blocked content, this issue doesn't happen. However, I need to allow blocked content in order for PDFs within the Help to open properly and also because the Search doesn't display without allowing blocked content.
    We also tested this with a Help system that was created using Robohelp 9 and have the same issue. I'm wondering if RoboHelp 10 would solve this problem.
    Does anyone know if IE 10 requires Help systems to be created in RoboHelp 10 to work properly, at least when allowing blocked content?

    It seems to be time for the old divide and conquer approach.
    Zip up the project so you have a copy that cannot accidentally be opened and worked on. That gives you a copy that you can safely revert to later if needed. Save the zip file somewhere safe.
    Then create another copy of the project so that you have two copies that can be worked on.
    Open Copy 1 and delete half the topics. Ignore any broken links reported. Generate the help from that copy.
    Open Copy 2 and delete the other half of the topics. Generate the help from that copy.
    It should be the case that one copy is now OK and one still has the problem.
    Trash the good copy and then create a second copy of the copy with the problem.
    Repeat the process until you have located whatever is causing the problem.
    The process takes less time than you might think.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Constraints are not created when using a cart

    Hi all,
    I have created a cart in SQL Developer with all the tables from HR schema. If I apply the cart to my database cloud service the tables and data are there but most of the constraints are missing.
    In log I can see error messages like:
    Error starting at line 5 in command:
    ALTER TABLE "EMPLOYEES" ADD CONSTRAINT "EMP_DEPT_FK" FOREIGN KEY ("DEPARTMENT_ID")
          REFERENCES "DEPARTMENTS" ("DEPARTMENT_ID") ENABLE
    Error report:
    SQL Error: ORA-02270: no matching unique or primary key for this column-list
    02270. 00000 -  "no matching unique or primary key for this column-list"
    *Cause:    A REFERENCES clause in a CREATE/ALTER TABLE statement
               gives a column-list for which there is no matching unique or primary
               key constraint in the referenced table.
    *Action:   Find the correct column names using the ALL_CONS_COLUMNS
               catalog view
    Primary key constraints are completely missing in the log.
    I have tried it with option "Disable constraints before loading data" checked and unchecked.
    How can I transfer the schema (tables, data, constraints) to my cloud service. I don't want to create the constraints manually because I have a web service which is based on the exact structure of HR schema in my local database.
    Kind regards
    Juergen

    You should actually look at the headers first, IMO. Not knowing "what is going on in there" is a very bad reason to discard that solution. The Content-Type header is meant to indicate exactly the type of content you are getting (your want the text/html mime-type).
    Not all servers report the correct content type all the time in this header so it won't be a 100% solution.
    BTW, the Aperture project is specifically intented to extract content and metadata from various sources, including websites. You might be able to use that.

  • Users with a https home page are not redirected when using web-passthrough on WLC 5508

    I have a Cisco 5508 running version 7.0.116.0.  This controller hosts an open public wifi that requires users to accept a terms agreement via a Web-Passthrough setup that redirects them to the terms splash page.  For most people this works without any issue.  However, if a user has their homepage for their default browser set to a https site, such as https://www.google.com, then they are never redirected to the terms splash page.  The page will just spin and spin until finally they get a timeout error.
    Has anyone else had this experience?  If so did you find a solution or is this some sort of short coming of the controller?
    Any and all comments/information is appreciated!
    Thanks,
    Jim

    This is a known issue (see bug ID CSCar04580).
    CSCar04580 Bug Details
    web auth (redirect) doesn't work when client users a https url
    Symptom:A client whose home page is an HTTPS (HTTP over SSL, port 443) one will never
    be redirected by Web Auth to the web authentication dialog. Therefore, such
    a client will not know to authenticate, and will fail to connect to the
    network.
    Workaround:The client should attempt to open any HTTP (port 80) web page.

  • Tabs are not stable when using t:panelTabbedPane

    Hi
    I am using the t: panelTabbedPane for one of my screen and i divided into 4 different tabs.
    Each and every tab consists of Apply, Save, Cancel and Pagination controls.
    When I am performing action in first tab and going to the second tab clicking on pagination the page is navigating into the first tab because we are performing action previously there.
    If suppose I am performing action in another tab at that time it is going to the previously action performed page.
    So what can I do to resolve the issue?
    Thanks in advance.
    Regards,
    Satish

    It seems to be time for the old divide and conquer approach.
    Zip up the project so you have a copy that cannot accidentally be opened and worked on. That gives you a copy that you can safely revert to later if needed. Save the zip file somewhere safe.
    Then create another copy of the project so that you have two copies that can be worked on.
    Open Copy 1 and delete half the topics. Ignore any broken links reported. Generate the help from that copy.
    Open Copy 2 and delete the other half of the topics. Generate the help from that copy.
    It should be the case that one copy is now OK and one still has the problem.
    Trash the good copy and then create a second copy of the copy with the problem.
    Repeat the process until you have located whatever is causing the problem.
    The process takes less time than you might think.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Detecting when files are not HTML when using a httpURLConnection/HTMLEditor

    I have created a Spider application that can extract info from a web page using a combination of a httpURLConnection and HTMLEditorKit.ParserCallback
    However every so often links to not html pages are found
    ie. pdfs,zip files, excel spreadsheets etc...
    Would anybody know how I can check the type of a downloaded page without rooting through the headers (I am not sure what is going on in there) ofrchecking the extention of the file, this would end up being a massive list of banned url extentions and would never be fully complete.
    Thanks.

    You should actually look at the headers first, IMO. Not knowing "what is going on in there" is a very bad reason to discard that solution. The Content-Type header is meant to indicate exactly the type of content you are getting (your want the text/html mime-type).
    Not all servers report the correct content type all the time in this header so it won't be a 100% solution.
    BTW, the Aperture project is specifically intented to extract content and metadata from various sources, including websites. You might be able to use that.

  • Record count not matching when using HS while querying.

    Hello,
    We are using 10gr2.
    I created a Database link connecting to lotus notes using HETROGENEOUS SERVICES and ODBC.
    When we query the table in Lotus Notes using database link oracle is showing less records.
    For example.
    Lotus Notes database have a table which contains 873 records.
    When we query this table from oracle we are getting the count of 722 records.
    Any ideas why this is happening.
    Thank you for the help.
    Regards
    Seshadri Thope

    Oracle Corporation --- THURSDAY JAN 29 2009 10:34:23.786
    Heterogeneous Agent Release
    10.2.0.4.0
    (0) hoagprd (2): ; hoagprd Entered.
    (0) HOACONN.C (270): ; [Generic Connectivity Using ODBC] version: 10.2.0.0.0080
    (0) HOACONN.C (323): ; Class version: 300
    (0) hoagprd (2): ; hoagprd Exited with retcode = 0.
    (0) hoainit (3): ; hoainit Entered.
    (0) (0): ; connect string is: defTdpName=DATABASEA;SYNTAX=(ORACLE8_HOA, BASED_ON=ORACLE8, IDENTIFIER_QUOTE_CHAR="", CASE_SENSITIVE=CASE_SENSITIVE_QUOTE);BINDING=<navobj><binding><datasources><datasource name='DATABASEA' type='ODBC' connect='socrates'><driverProperties disableExtendedFetch='true'/></datasource></datasources><remoteMachines/><environment><optimizer noFlattener='true'/><misc year2000Policy='-1' consumerApi='1' codepage='WE8ISO8859P15' sessionBehavior='4'/><queryProcessor parserDepth='2000' tokenSize='1000' noInsertParameterization='true'
    noThreadedReadAhead='true' noCommandReuse='true'/><debug generalTrace='true'/></environment></binding></navobj>
    (0) ORACLE GENERIC GATEWAY Log File Started at 2009-01-29T10:34:24
    (0)
    (0) hoainit (3): ; hoainit Exited with retcode = 0.
    (0) hoalgon (7): ; hoalgon Entered. name = .
    (0) Created new ODBC connection (32056720)
    (0) hoalgon (7): ; hoalgon Exited with retcode = 0.
    (0) hoaulcp (4): ; hoaulcp Entered.
    (0) hoaulcp (4): ; hoaulcp Exited with retcode = 0.
    (0) hoauldt (5): ; hoauldt Entered.
    (0) hoauldt (5): ; hoauldt Exited with retcode = 0.
    (0) hoabegn (9): ; hoabegn Entered. formatID = 306206, hoagttln = 38, hoagttid = DATABASEA.e53cf895.2.35.27286, hoagtbln = 10, hoagtbid = , tflag = 0, initial = 1
    (0) hoabegn (9): ; hoabegn Exited with retcode = 0.
    (0) hoadtab (26): ; hoadtab Entered. count = 1
    (0) hoadtab (26): ; schema_name = , table_name = TABLEA
    (0) odbc_rec: select * from "TABLEA"
    (0) nvOUT (D:\Work_Builds\connect_5010\src\qp\QP_SQTXT.C 89): select NON_UNIQUE, INDEX_NAME, TYPE, SEQ_IN_INDEX, COLLATION, CARDINALITY, COLUMN_NAME from NAV_PROC:SP_STATISTICS('DATABASEA', '%', 'TABLEA', 1, 0, 0) order by 3, 1, 2, 4
    (0) nvRETURN (D:\Work_Builds\connect_5010\src\qp\qpsynon.c 1171): -1
    (0) <<<<<<<<<<<<<<<<<<< Execution Strategy Begin <<<<<<<<<<<<<<<<<<<<<<<<<<<<
    (0) Original SQL:
    (0) select NON_UNIQUE , INDEX_NAME , TYPE , SEQ_IN_INDEX , COLLATION , CARDINALITY , COLUMN_NAME from NAV_PROC : SP_STATISTICS ( 'DATABASEA' , '%' , 'TABLEA' , 1 , 0 , 0 ) order by 3 , 1 , 2 , 4
    (0)
    (0)
    (0) Accessing saved query spec SP_STATISTICS()
    (0) from NAV_PROC DB
    (0)
    Execution Strategy End >>>>>>>>>>>>>>>>>>>>>>>>>>>>(0) HOAUTIL.C (1284): ; ------ hoadtab (hoat) -------:
    (0) HOAUTIL.C (1287): ; hoatnam: TABLEA, hoatnml: 20, hoatnrw: 711, hoatarl: 110000
    (0) HOAUTIL.C (1298): ; ------ hoadtab (hoai) -------:
    (0) HOAUTIL.C (1299): ; n_index_stat: 0
    (0) HOAUTIL.C (1249): ; -------- hoadtab for table TABLEA---------:
    (0) HOAUTIL.C (1250): ; hoadamsz: 22, hoadasiz: 22, hoadambr: 1, hoadabrc: 0, hoadawht: 5
    (0) HOAUTIL.C (1253): ; row 0 - hoadambl: 4000, hoadadty: 108, hoadaprc: 0, hoadacst: 0
    (0) HOAUTIL.C (1257): ; row 0 - hoadascl: 0, hoadanul: 1, hoadanml: 7, hoadanam: Subject, hoadabfl: 4000, hoadamod: 0
    (0) HOAUTIL.C (1253): ; row 1 - hoadambl: 4000, hoadadty: 108, hoadaprc: 0, hoadacst: 0
    (0) HOAUTIL.C (1257): ; row 1 - hoadascl: 0, hoadanul: 1, hoadanml: 11, hoadanam: DateCreated, hoadabfl: 4000, hoadamod: 0
    (0) HOAUTIL.C (1253): ; row 2 - hoadambl: 4000, hoadadty: 108, hoadaprc: 0, hoadacst: 0
    (0) HOAUTIL.C (1257): ; row 2 - hoadascl: 0, hoadanul: 1, hoadanml: 18, hoadanam: CustomerFacingUnit, hoadabfl: 4000, hoadamod: 0
    (0) HOAUTIL.C (1253): ; row 3 - hoadambl: 4000, hoadadty: 108, hoadaprc: 0, hoadacst: 0
    (0) HOAUTIL.C (1257): ; row 3 - hoadascl: 0, hoadanul: 1, hoadanml: 12, hoadanam: OFFERNUMBERS, hoadabfl: 4000, hoadamod: 0
    (0) HOAUTIL.C (1253): ; row 4 - hoadambl: 4000, hoadadty: 108, hoadaprc: 0, hoadacst: 0
    (0) HOAUTIL.C (1257): ; row 4 - hoadascl: 0, hoadanul: 1, hoadanml: 13, hoadanam: textedPricing, hoadabfl: 4000, hoadamod: 0
    (0) HOAUTIL.C (1253): ; row 5 - hoadambl: 4000, hoadadty: 108, hoadaprc: 0, hoadacst: 0
    (0) HOAUTIL.C (1257): ; row 5 - hoadascl: 0, hoadanul: 1, hoadanml: 22, hoadanam: textedShortDescription, hoadabfl: 4000, hoadamod: 0
    (0) HOAUTIL.C (1253): ; row 6 - hoadambl: 4000, hoadadty: 108, hoadaprc: 0, hoadacst: 0
    (0) HOAUTIL.C (1257): ; row 6 - hoadascl: 0, hoadanul: 1, hoadanml: 21, hoadanam: textedLongDescription, hoadabfl: 4000, hoadamod: 0
    (0) HOAUTIL.C (1253): ; row 7 - hoadambl: 4000, hoadadty: 108, hoadaprc: 0, hoadacst: 0
    (0) HOAUTIL.C (1257): ; row 7 - hoadascl: 0, hoadanul: 1, hoadanml: 14, hoadanam: textedBenefits, hoadabfl: 4000, hoadamod: 0
    (0) HOAUTIL.C (1253): ; row 8 - hoadambl: 4000, hoadadty: 108, hoadaprc: 0, hoadacst: 0
    (0) HOAUTIL.C (1257): ; row 8 - hoadascl: 0, hoadanul: 1, hoadanml: 18, hoadanam: textedAboutAuthors, hoadabfl: 4000, hoadamod: 0
    (0) HOAUTIL.C (1253): ; row 9 - hoadambl: 4000, hoadadty: 108, hoadaprc: 0, hoadacst: 0
    (0) HOAUTIL.C (1257): ; row 9 - hoadascl: 0, hoadanul: 1, hoadanml: 13, hoadanam: textedContent, hoadabfl: 4000, hoadamod: 0
    (0) HOAUTIL.C (1253): ; row 10 - hoadambl: 4000, hoadadty: 108, hoadaprc: 0, hoadacst: 0
    (0) HOAUTIL.C (1257): ; row 10 - hoadascl: 0, hoadanul: 1, hoadanml: 23, hoadanam: textedDiffByMedia_Print, hoadabfl: 4000, hoadamod: 0
    (0) HOAUTIL.C (1253): ; row 11 - hoadambl: 4000, hoadadty: 108, hoadaprc: 0, hoadacst: 0
    (0) HOAUTIL.C (1257): ; row 11 - hoadascl: 0, hoadanul: 1, hoadanml: 20, hoadanam: textedDiffByMedia_CD, hoadabfl: 4000, hoadamod: 0
    (0) HOAUTIL.C (1253): ; row 12 - hoadambl: 4000, hoadadty: 108, hoadaprc: 0, hoadacst: 0
    (0) HOAUTIL.C (1257): ; row 12 - hoadascl: 0, hoadanul: 1, hoadanml: 26, hoadanam: textedDiffByMedia_Internet, hoadabfl: 4000, hoadamod: 0
    (0) HOAUTIL.C (1253): ; row 13 - hoadambl: 4000, hoadadty: 108, hoadaprc: 0, hoadacst: 0
    (0) HOAUTIL.C (1257): ; row 13 - hoadascl: 0, hoadanul: 1, hoadanml: 23, hoadanam: textedDiffByMedia_Other, hoadabfl: 4000, hoadamod: 0
    (0) HOAUTIL.C (1253): ; row 14 - hoadambl: 4000, hoadadty: 108, hoadaprc: 0, hoadacst: 0
    (0) HOAUTIL.C (1257): ; row 14 - hoadascl: 0, hoadanul: 1, hoadanml: 10, hoadanam: BookStatus, hoadabfl: 4000, hoadamod: 0
    (0) HOAUTIL.C (1253): ; row 15 - hoadambl: 4000, hoadadty: 108, hoadaprc: 0, hoadacst: 0
    (0) HOAUTIL.C (1257): ; row 15 - hoadascl: 0, hoadanul: 1, hoadanml: 9, hoadanam: Published, hoadabfl: 4000, hoadamod: 0
    (0) HOAUTIL.C (1253): ; row 16 - hoadambl: 4000, hoadadty: 108, hoadaprc: 0, hoadacst: 0
    (0) HOAUTIL.C (1257): ; row 16 - hoadascl: 0, hoadanul: 1, hoadanml: 4, hoadanam: ISBN, hoadabfl: 4000, hoadamod: 0
    (0) HOAUTIL.C (1253): ; row 17 - hoadambl: 4000, hoadadty: 108, hoadaprc: 0, hoadacst: 0
    (0) HOAUTIL.C (1257): ; row 17 - hoadascl: 0, hoadanul: 1, hoadanml: 5, hoadanam: Pages, hoadabfl: 4000, hoadamod: 0
    (0) HOAUTIL.C (1253): ; row 18 - hoadambl: 4000, hoadadty: 108, hoadaprc: 0, hoadacst: 0
    (0) HOAUTIL.C (1257): ; row 18 - hoadascl: 0, hoadanul: 1, hoadanml: 7, hoadanam: Binding, hoadabfl: 4000, hoadamod: 0
    (0) HOAUTIL.C (1253): ; row 19 - hoadambl: 4000, hoadadty: 108, hoadaprc: 0, hoadacst: 0
    (0) HOAUTIL.C (1257): ; row 19 - hoadascl: 0, hoadanul: 1, hoadanml: 11, hoadanam: ProductSize, hoadabfl: 4000, hoadamod: 0
    (0) HOAUTIL.C (1253): ; row 20 - hoadambl: 4000, hoadadty: 108, hoadaprc: 0, hoadacst: 0
    (0) HOAUTIL.C (1257): ; row 20 - hoadascl: 0, hoadanul: 1, hoadanml: 12, hoadanam: DateModified, hoadabfl: 4000, hoadamod: 0
    (0) HOAUTIL.C (1253): ; row 21 - hoadambl: 4000, hoadadty: 108, hoadaprc: 0, hoadacst: 0
    (0) HOAUTIL.C (1257): ; row 21 - hoadascl: 0, hoadanul: 1, hoadanml: 15, hoadanam: ProductItemCode, hoadabfl: 4000, hoadamod: 0
    (0) hoadtab (26): ; hoadtab Exited with retcode = 0.
    (0) hoadafr (23): ; hoadafr Entered. id = 0.
    (0) hoadafr (23): ; hoadafr Exited with retcode = 0.
    (0) hoapars (15): ; hoapars Entered. stmtType = 0, id = 1.
    (0) nvOUT (D:\Work_Builds\connect_5010\src\qp\QP_SQTXT.C 89): SELECT COUNT(*) FROM "TABLEA" A1
    (0) nvRETURN (D:\Work_Builds\connect_5010\src\qp\qpsynon.c 1171): -1
    (0) SELECT COUNT(*) AS c000 FROM "TABLEA" "A1"
    (0)
    (0) <<<<<<<<<<<<<<<<<<< Execution Strategy Begin <<<<<<<<<<<<<<<<<<<<<<<<<<<<
    (0) Original SQL:
    (0) SELECT COUNT ( * ) FROM "TABLEA" A1
    (0)
    (0)
    (0) Accessing Database 'DATABASEA' with SQL:
    (0) SELECT COUNT(*) AS c000 FROM "TABLEA" "A1"
    (0)
    (0)
    Execution Strategy End >>>>>>>>>>>>>>>>>>>>>>>>>>>>(0) hoapars (15): ; hoapars Exited with retcode = 0.
    (0) hoaopen (19): ; hoaopen Entered. id = 1.
    (0) hoaopen (19): ; hoaopen Exited with retcode = 0.
    (0) hoadscr (16): ; hoadscr Entered. id = 1.
    (0) hoastmt.c (304): ; Array fetch size is: 1.
    (0) HOAUTIL.C (1249): ; ------ hoadscr() -------:
    (0) HOAUTIL.C (1250): ; hoadamsz: 1, hoadasiz: 1, hoadambr: 1, hoadabrc: 1, hoadawht: 5
    (0) HOAUTIL.C (1253): ; row 0 - hoadambl: 4, hoadadty: 8, hoadaprc: 10, hoadacst: 0
    (0) HOAUTIL.C (1257): ; row 0 - hoadascl: 0, hoadanul: 1, hoadanml: 8, hoadanam: $$CALC_1, hoadabfl: 4, hoadamod: 0
    (0) hoadscr (16): ; hoadscr Exited with retcode = 0.
    (0) hoaftch (21): ; hoaftch Entered. id = 1.
    (0) apiutil.c (0): ; hoaftch()::
    (0) apiutil.c (0): ; Column 0 - pszName: $$CALC_1, size: 4, id: 8, width: 0, scale: 0, flags: 12.
    (0) SELECT COUNT(*) AS c000 FROM "TABLEA" "A1"
    (0)
    (0) hoaftch (21): ; hoaftch Exited with retcode = 0, hoadabrc = 1.
    (0) hoaftch (21): ; hoaftch Entered. id = 1.
    (0) hoaftch (21): ; hoaftch Exited with retcode = 1403, hoadabrc = 0.
    (0) hoaclse (22): ; hoaclse Entered. id = 1.
    (0) hoaclse (22): ; hoaclse Exited with retcode = 0.
    (0) hoadafr (23): ; hoadafr Entered. id = 1.
    (0) hoadafr (23): ; hoadafr Exited with retcode = 0.
    (0) hoacomm (11): ; hoacomm Entered. keepinfo = FALSE, tflag = 1.
    (0) hoacomm (11): ; hoacomm Exited with retcode = 0.
    (0) hoalgof (8): ; hoalgof Entered. tflag = 1.
    (0) hoalgof (8): ; hoalgof Exited with retcode = 0.
    (0) hoaexit (6): ; hoaexit Entered.
    (0) hoaexit (6): ; hoaexit Exited with retcode = 0.
    (0) (0): ; Closing log file at THU JAN 29 10:38:55 2009.

  • Ref Cursor - How to append records into ref cursor?

    Hi,
    Is it possible to append ref cursor?
    Iam having a procedure which accepts 1 string as input
    parameter. That string will have list of ID delimited by comma.
    I want to extract & match every ID with some tables.
    My problem is for first ID i would get 10 records
    and for 2nd ID i 'l get other 20 records. But while returning
    i need to send the same(10 + 20 records) as ref cursor(OUT parameter).
    But in below given code i could send only last 20 records. first
    10 records are not append/updated into ref cursor.
    How to append 2nd 20 records with 1st 10 records? so that i can
    send all the 30 records.
    Here goes my code...
    CREATE OR REPLACE PROCEDURE getCRMGroupsAndRollups_PRC
    in_groupId IN VARCHAR2,
    out_getCRMGroups OUT TYPES.DATASET
    IS
    v_temp VARCHAR2(500) := in_groupId ||',';
    v_temp_split VARCHAR2(500);
    v_pos1 NUMBER := 0;
    v_pos2 NUMBER := 1;
    v_pos3 NUMBER := 0;
    v_extract_char VARCHAR(1) := NULL;
    v_comma_cnt NUMBER := 0;
    BEGIN
    -- check in for null input parameters
    IF ( in_groupId IS NOT NULL ) THEN
    -- loop to count no of in_groupId
    FOR j IN 1..LENGTH(v_temp)
    LOOP
         v_extract_char := SUBSTR(v_temp,j,1);
         IF (v_extract_char = ',') THEN
              v_comma_cnt := v_comma_cnt + 1;
         END IF;     
    END LOOP;
    -- loop to extract in_group Id
    FOR i IN 1..v_comma_cnt
    LOOP
         v_pos1 := instr(v_temp,',',(v_pos1 + 1));
         v_pos3 := ((v_pos1-1) - v_pos2 )+ 1;
         v_temp_split := SUBSTR(v_temp,v_pos2,v_pos3);
         v_pos2 := v_pos1 + 1;
    -- query to return dataset filled BY list of all the current
    -- CRM groups and the associated rollup groups
    OPEN out_getCRMGroups FOR
    SELECT
    DISTINCT
    gcs.crm_st_id_cd,
    gcs.lgcy_roll_up_grp_num,
    gcs.lgcy_roll_up_grp_name,
    gcs.grp_xwalk_complt_dt,
    gcs.crm_grp_num,
    gcs.facets_gnat_id,
    gcs.crm_grp_name
    FROM
    grp_convsn_stat gcs
    --lgcy_xref_elem lxe
    WHERE
    ( gcs.mbrshp_convsn_aprvl_dt = NULL )
    OR ( gcs.mbrshp_convsn_aprvl_dt < (SYSDATE - 7 ) )
    AND ( gcs.facets_grp_stat_actv_ind = 'Y' )
    AND ( gcs.lgcy_roll_up_grp_num = v_temp_split );
    END LOOP;
    END IF;
    EXCEPTION
    WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE('INTERNAL ERROR');
    END getCRMGroupsAndRollups_PRC;
    in this v_temp_split will have extracted id & iam opening
    ref cursor for each & every ID extracted from list.
    2) How to handle no_data_found exception for this ref cursor?
    Please help me....
    -thiyagarajan.

    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:110612348061
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:210612357425
    Message was edited by:
    Kamal Kishore

Maybe you are looking for

  • Alarm date is ignored - 6280 (v3.81)

    Hi, I got my 6280 yesterday and have noticed a bug in the calendar. When I enter a birthday and set an alarm for it with an earlier date, eg. 7 days before the birthday, and save, when I go back and look at the entry I notice that the alarm date has

  • Sudden Motion Sensor being too sensitive?

    So, I bought my early 2011 mbp in august of 2011. Everything was fine, until my hard drive suddenly crashed/failed/died last may (2013). After having my hard drive replaced, I started to encounter random shut downs even when I was on the computer (no

  • "This item has been deleted" in between the discussion in the forum.

    Hi Everone, I posted a query in some forums and someone responded to that, he was asking some more details so that he can help to resolve the issue. I was responding to him by adding screenshots, suddenly the post got disappeared and messaage I got i

  • Fund Management - Issues in Upgrade from 4.6C to ECC6

    Hello, We are upgrading SAP Application for a client who is on 4.6C to ECC6. The client is currently using Funds Management in 4.6C. With ECC6 I understand that this functionality is moved into Public Sector and is available only on activation of IS-

  • TS4002 Shopping spam email on iPhone & iPad mini

    I am now getting serious spam email and would like to block it from going to iPhone & iPad, but can't figure out how to do it... HELP it is overtaking my email!