What is the maximum rows allowed in PLSQL array table type?

Hi,
I have a procedure and it contains the cursor which will fetch more than 500 records. And i have 5 output parameters to store the values coming from the cursor. I don't want to store that into custom table. I want to save it one table type array or something like that. Now i want to know what is the maximum storage of array table type? If i store more than 500 data, how will be the performance? Then is there any other way to achieve this? And that should not decrease the preformace.Let me know your thoughts.
Thanks

It really depends on what you are planning to do with the records once you return them from your stored procedure, and what client is on the receiving end of the results.
One option would be to just return a ref cursor and let the client deal with retreiving the rows themselves, whether one by on or by a bulk collect. Another option would be to declare a table of records matching the result set and do a bulk collect into that table type in your procedure and return the table type to the caller. You could also declare a table type for each field in the resultset, bulk collect the records into thos types and return one for each field.
Personally, I would likely go with returning a ref cursor. Both of the collect the resultset in your procedure and then return collections to the caller methods require memory on the database server to hold the entire resultset and memeory on the client to hold the entire resultset. While 500 records is probably not going to be too bad on memory, if the result set grows, you will run into memory issues at some point.
John

Similar Messages

  • Question to "Your range has been reduced to the maximum rows allowed"

    I have about 5000 records in my Xcelsius. Once I preview it, system show "Your range has been reduced to the maximum rows allowed". Should I reduce records only less than 512 records?

    Dreshof,
    You need to increase the No. of rows in the settings...
    Goto File --> Preferences --> Excel Options  and set the maximun no of rows as per your requirement...
    -Anil

  • What is the maximum number of columns allowed on a table?

    What is the maximum number of columns that a table can have? I have a research team that wants to have 140,000 columns on one table and 2000 rows.
    What would be the best way to input (SQL*Loader?) that data on this table and retrieve data from this table? The highest number of columns that I have implemented on a table was 500.
    Any feedback would be greatly appreciated.
    Thanks. ;-)

    Holy cow 140,000 columns and 2000 rows!! I think you are going to have to tell someone to come up with a better design because that doesn't sound like a relational table. Besides, I found this in the Oracle 8.1.7 Reference Manual:
    "The absolute maximum number of columns in a table is 1000. However, when you create an object table (or a relational table with columns of object, nested table, varray, or REF type), Oracle maps the columns of the user-defined types to relational columns, creating in effect "hidden columns" that count toward the 1000-column limit. For details on how Oracle calculates the total number of columns in such a table, please refer to Oracle8i Administrator's Guide."

  • Maximum rows allowed

    I know how to choose Preferences, Excel Options and change the maximum rows allowed.  However, I've done this and am still having problems.  My spreadsheet has 2100 rows and i've set the maximum at 5000 (I've tried several numbers) and I still get the error message "your range has been reduced to the maximum allowed rows".  In preview I don't get any data at all.
    I can't find any thing in the forums about this.  Thanks

    Hi,
    Hopefully you will figure out which component/cells in the spreadsheet are referencing more than the max rows...
    You might want to read [best practices|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a084a11c-6564-2b10-79ac-cc1eb3f017ac;jsessionid=(J2EE3417500)ID1872008150DB01381451962267013005End] ans also one of our partners recommends in a webinar to use no more than 2000 for max rows.
    You should only be pulling in enough data to fill your components in Xcelsius and remove any unnessary information from the spreadsheet because this will slow down generation time and SWF init time too as well as make the SWF file bigger.
    Regards
    Matt

  • I have a 13 inch macbook (late 2007) what is the maximum allowable height for a hard drive?

    what is the maximum allowable height for an internal hard drive. I want to replace my hard drive are there any other things I should make sure of in terms of compatability?

    timfromdoylestown wrote:
    would they erase it and reformat it? what is the purpose of doing so?
    they have to format it to make it mac "compatible", for a lack of better terms.  I don't know what they would do.

  • 6230i - What's the maximum attachment size for EMa...

    Hi
    I got my new 6230i (Firmware 3.40 on T-Mobile) yesterday and have just set up my email on it and discovered that you can attach files to emails. Only problem seems to be that it says my attachments exceed the limit. That's a bit unfortunate as I've tried to attach only one image (~350kB) which I took with the built in camera.
    Anyone know what the maximum size allowed for an attachment is and is there a way around it?
    Thanks
    Thomas

    We are talking about 6230i (and not 6630).
    In 6230i case, the max. size is limited:
    Sending: 100kB
    Receiving: 50kB
    This is limited by the phone (and not network or email provider).Message Edited by embedded_system on 19-May-2006
    10:17 AM
    Message Edited by embedded_system on 19-May-2006
    10:33 AM

  • What is the maximum length of LONG data type in Forms 6i?

    What is the maximum length of LONG data type in Forms 6i?

    Do you mean the maximum size of a LONG that Forms 6i can display or the maximum size that can be stored in the database which sits behind your Forms application?
    Regards, APC

  • HT204149 What is the maximum resolution available for use with the Apple Mini DisplayPort to Dual-Link DVI adapter?

    What is the maximum resolution available for use with the Apple Mini DisplayPort to Dual-Link DVI adapter?

    Hey guys,
    I found out an answer by myself...
    The missing link : the MacBook Pro needs to be powered... as in you need to plug the charger in...
    In conclusion, you simply plug everything, turn on the MacBook Pro, close the lid, and there you go !

  • What is the maximum hard drive size can I install into my MacBook Pro 15 "late 2008 ?

    Hello community, I play with the thought in my MacBook Pro 15 "late 2008 equipped with an SSD hard drive. What is the maximum hard drive size can I install? Thank you in advance
    Dirk

    mende1, greetings:
    mende1 wrote:
    I don't recommend you to install a hard drive bigger than 2 TB if you are going to install Windows in Boot Camp or you may have problems
    The largest 2.5" SATA HDDs of 9.5 mm thickness that I am aware of are 1 TB in capacity.  There is a 12.5 mm thick  HDD that will fit some MBPs.  But I have not seen any of larger capacity. 
    Are there now 2 TB HDDs available for MBPs?    If so, I am interested.
    Ciao.
    Both OWC and Crucial have SSDs of about 1 TB capacity.
    Message was edited by: OGELTHORPE

  • I want to upgrade my macbook pro 15-inch i7 2.3GHz memory and I want to know what is the maximum RAM it could take

    I want to upgrade my macbook pro 15-inch i7 2.3GHz memory and I want to know what is the maximum RAM it could take

    Welcome to Apple Support Communities
    It looks like you have got an Early 2011 or newer MacBook Pro, so you can use 16 GB of RAM. You can buy more RAM at OWC or Crucial. Remember that you cannot upgrade RAM in MacBooks Pro with Retina display
    In case you have got a Mid 2010 MacBook Pro, you can only install 8 GB of RAM

  • What is the maximum filesize for a FTP Adapter?

    I have xml files with 1000's of records to read in. The file size can range anywhere from a few MB up to ~100MB. Most of them are about 50 MB.
    The FTP adapter works when I have a small file, but with larger ones it apparently times out. Once it runs into a big file like this, it won't process any more files until I restart the process. It doesn't show any faults or even any record of a running instance in the BPEL Console, so I have no idea specifically when it breaks. I uploaded a 10MB file to my ftp server and left it for a half hour, but nothing showed up, so I'm assuming it's broken rather than just taking a long time.
    What is the maximum file size for a FTP adapter? Can I change this somewhere? I looked in the ...\application-deployments\default\FtpAdapter\oc4j-ra.xml file but couldn't find any settings to change.

    Well no luck on my end and it doesn't look like anybody else has any ideas either. This thread Re: FTP Adapter, Java Embedding, ... says that if you can't get the functionality you need out of the default one, you should write your own FTP adapter in JCA. I looked at JCA and would like to write a simple polling adapter and then put all my FTP code in embedded java.
    Can somebody explain how I could achieve the basic FTP Adapter polling functionality in JCA? I'm having difficulty figuring out how to have an ongoing polling process without instantiating a BPEL process itself, like the existing FTP adapter does. I don't want to set off on writing my own adapter if it's going to be a much larger undertaking than I have time for.
    Also, is the source code open for the default FTP adapter? It would be great if I could just modify the few things I need to change rather than write one from scratch.

  • In my ALV o/p what is the maximum length of column, I can display ( because

    In my ALV o/p what is the maximum length of column, I can display ( because the length of the text some times exceeding 600 chars ) ?
    Thanks in ADVANCE

    I have declared like
    <b>  S_LAYOUT-MAX_LINESIZE = 1000.
      S_LAYOUT-COLWIDTH_OPTIMIZE = 'X'.</b>
    However ALV output not displaying the entire length.
    Call the following function to display output in ALV form
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
           EXPORTING
                I_CALLBACK_PROGRAM = 'ZFRSBOI0'
                IS_LAYOUT          = S_LAYOUT
                IT_FIELDCAT        = FIELDCAT
                IT_EVENTS          = P_EVENTS[]
               it_sort            = p_it_sort[]
                I_SAVE             = 'A'
           TABLES
                T_OUTTAB           = PDET_OTAB_ALV1
           EXCEPTIONS
                PROGRAM_ERROR      = 1
                OTHERS             = 2.
    If the function call is not successful, raise error message
    and come out from the program
      IF SY-SUBRC <> 0.
        MESSAGE E000(00) WITH
                          'Unable to display report'(E01).
        EXIT.
      ENDIF.

  • What is the maximum number of characters in an Oracle 10G Instance Name

    All,
    Can I know what is the maximum number of characters in an oracle 10g instance name under AIX? Is it 7 characters or 8 characters?
    regards
    Santhosh

    One should really make the difference between db_name and instance_name: if instance_name default value is db_name it can be different
    (even on a non RAC database).
    For example with Oracle 10.2.0.4 you can create a database named DB78 with instance_name=DB12345678:
    $ uname -a
    Linux lx01.localdomain 2.6.18-92.el5 #1 SMP Fri May 23 22:17:30 EDT 2008 i686 i686 i386 GNU/Linux
    $ ps -fu oracle | grep smon
    oracle    6353     1  0 20:30 ?        00:00:01 ora_smon_DB12345678
    oracle    6412  5596  0 20:37 pts/1    00:00:00 grep smon
    $ export ORACLE_SID=DB12345678
    $ sqlplus / as sysdba
    SQL*Plus: Release 10.2.0.4.0 - Production on Wed Sep 8 20:34:26 2010
    Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> show parameter name
    NAME                                 TYPE        VALUE
    db_file_name_convert                 string
    db_name                              string      DB78
    db_unique_name                       string      DB78
    global_names                         boolean     FALSE
    instance_name                        string      DB12345678
    lock_name_space                      string
    log_file_name_convert                string
    service_names                        string      DB78I would not recommend this practice: but it's interesting to know to avoid confusing between db_name and instance_name.

  • Satellite Pro 4600 - What is the maximum HDD size?

    My aged Satellite Pro 4600 has a 20GB HDD. As these are now very difficult to get hold, does anyone know whether higher capacy HDDs can be used and, if so, what is the maximum size of HDD.
    (In spite of it's age I still use the Satellite Pro for certain jobs.)

    Hi!
    This is a pretty old notebook, Satellite Pro 4600 ;)
    As far as I know this notebook has a 28bit LBA limitation and that means you can only use HDDs up to 128GB or lets say HDD with a capacity of 120GB.
    By the way, here you can read more about this limitation: http://www.48bitlba.com/
    Normally you can every HDD up to 120GB but dont forget that the HDD must have a IDE connector.
    I have good experience with Western Digital and Seagate HDDs.
    Bye

  • What's the maximum internal space for Mid 2010 MacBook Pro

    Ok guys I'm about to upgrade my internal drive on my MacBook Pro and would like to know what is the maximum space to put in. I'm also gong to replace optibay a 128GB SSD. Is any 1TB 2.5" good?

    I suggest that you install the SSD in the same place as your current HDD.  Install the 1 TB drive  in the DVD drive location.
    I have HGST 1 TB drives, both 5400 rpm and 7200 rpm.  Both work satisfactorily.
    Ciao.
    I also have the HGST 1.5 TB HDDs but they are only available in 5400 rpm versions.
    Message was edited by: OGELTHORPE

Maybe you are looking for

  • Premiere Pro CS6 serious error has occurred, crash troubleshooting

    ERROR MESSAGE: Sorry, a serious error has occurred that requires Adobe Premiere to shut down. We will attempt to save your current project Problem: Starting last night Premiere would crash with this error message. This has been happening increasingly

  • Issue is Nokia Asha 306

    Hi Friends, I have bought Nokia Asha 306 , and I found following issues , Please let me know if there is any solution . 1. Whatsapp is not working, although its pre-loaded . It opens but when I reach license agreement page I can't press 'Accept' Howe

  • Event handler vs workflow

    I need to build a simple process that would handle specific types of documents in SharePoint. Documents would "travel" between folders and would be assigned to different person. Every time a person should get an email, and adds new documents to folde

  • Error 50 when attempting to copy iTunes folder

    I back up iTunes by simply dragging and dropping the folder to another hard drive. Recently, however, I came across an "Error 50" glitch, which pops up after just a few seconds of copying. I've seen this error message related to other things, such as

  • Initializing collections

    I am working with 8.1.5 and have defined a new object (i.e. period_t). I also wanted to make a nested table of the new object (i.e. element_t) which is defined like: create or replace type element_t as TABLE of period_t; However when I try to run a s