XMLTYPE in oracle - how much data can hold

Hi Friends,
How much data can we store in XMLTYPE . can it store like CLOB , if the data is huge how to break it into multiple pieces.
Please help.
thanks and regards,
Arun Thomas T

> --
> set LINESIZE 80
> set LONG 100000
> --
> DROP TABLE tmp_xml purge
table TMP_XML dropped.
> DROP TABLE tmp_xml_2 purge
table TMP_XML_2 dropped.
> DROP TABLE tmp_xml_3 purge
table TMP_XML_3 dropped.
> CREATE TABLE tmp_xml
  (doc xmltype
table TMP_XML created.
> SELECT column_name,
  data_type,
  hidden_column,
  virtual_column
FROM user_tab_cols
WHERE table_name = 'TMP_XML'
DOC             XMLTYPE    NO    YES
SYS_NC00002$      BLOB    YES    NO
> --
> SELECT dbms_metadata.get_ddl('TABLE','TMP_XML', USER) FROM dual
  CREATE TABLE "MARCO"."TMP_XML"
  (    "DOC" "XMLTYPE"
  ) SEGMENT CREATION IMMEDIATE
  PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
NOCOMPRESS LOGGING
  STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
  BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
  TABLESPACE "USERS"
XMLTYPE COLUMN "DOC" STORE AS SECUREFILE BINARY XML (
  TABLESPACE "USERS" ENABLE STORAGE IN ROW CHUNK 8192
  NOCACHE LOGGING  NOCOMPRESS  KEEP_DUPLICATES
  STORAGE(INITIAL 106496 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  PCTINCREASE 0
  BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)) ALLOW NONSCHEMA DISALLOW ANYSCHEMA                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   
> CREATE TABLE tmp_xml_2
    doc xmltype
  XMLTYPE COLUMN "DOC" STORE AS BASICFILE CLOB
table TMP_XML_2 created.
> SELECT column_name,
  data_type,
  hidden_column,
  virtual_column
FROM user_tab_cols
WHERE table_name = 'TMP_XML_2'
DOC           XMLTYPE    NO    YES
SYS_NC00002$     CLOB    YES    NO
> SELECT dbms_metadata.get_ddl('TABLE','TMP_XML_2', USER) FROM dual
  CREATE TABLE "MARCO"."TMP_XML_2"
  (    "DOC" "SYS"."XMLTYPE"
  ) SEGMENT CREATION IMMEDIATE
  PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
NOCOMPRESS LOGGING
  STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
  BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
  TABLESPACE "USERS"
XMLTYPE COLUMN "DOC" STORE AS BASICFILE CLOB (
  TABLESPACE "USERS" ENABLE STORAGE IN ROW CHUNK 8192 RETENTION
  NOCACHE LOGGING
  STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
  BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT))                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         
> SELECT schema_url, BINARY FROM user_xml_schemas
emp.xsd                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      NO 
> CREATE TABLE tmp_xml_3
    doc xmltype
  XMLTYPE COLUMN "DOC" STORE AS OBJECT RELATIONAL XMLSCHEMA "emp.xsd" ELEMENT "Employee"
table TMP_XML_3 created.
> SELECT column_name,
  data_type,
  hidden_column,
  virtual_column
FROM user_tab_cols
WHERE table_name = 'TMP_XML_3'
DOC             XMLTYPE          NO    YES
SYS_NC00002$    XMLTYPEEXTRA    YES    NO
SYS_NC00003$    XMLTYPEPI       YES    NO
SYS_NC00004$    XMLTYPEPI       YES    NO
SYS_NC00007$    XDB$RAW_LIST_T  YES    NO
SYS_NC00010$    XDB$RAW_LIST_T  YES    NO
SYS_NC00005$    EmpType835_T    YES    NO
SYS_NC00006$    RAW             YES    NO
SYS_NC00008$    VARCHAR2        YES    NO
SYS_NC00009$    NUMBER          YES    NO
SYS_NC00011$    VARCHAR2        YES    NO
SYS_NC00012$    VARCHAR2        YES    NO
12 rows selected
> SELECT dbms_metadata.get_ddl('TABLE','TMP_XML_3', USER) FROM dual
  CREATE TABLE "MARCO"."TMP_XML_3"
  (    "DOC" "SYS"."XMLTYPE"
  ) SEGMENT CREATION IMMEDIATE
  PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
NOCOMPRESS LOGGING
  STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
  BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
  TABLESPACE "USERS"
VARRAY "DOC"."XMLEXTRA"."NAMESPACES" STORE AS SECUREFILE LOB
  ( TABLESPACE "USERS" ENABLE STORAGE IN ROW CHUNK 8192
  CACHE  NOCOMPRESS  KEEP_DUPLICATES
  STORAGE(INITIAL 106496 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  PCTINCREASE 0
  BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT))
VARRAY "DOC"."XMLEXTRA"."EXTRADATA" STORE AS SECUREFILE LOB
  ( TABLESPACE "USERS" ENABLE STORAGE IN ROW CHUNK 8192
  CACHE  NOCOMPRESS  KEEP_DUPLICATES
  STORAGE(INITIAL 106496 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  PCTINCREASE 0
  BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT))
VARRAY "DOC"."XMLDATA"."SYS_XDBPD$" STORE AS SECUREFILE LOB
  ( TABLESPACE "USERS" ENABLE STORAGE IN ROW CHUNK 8192
  CACHE  NOCOMPRESS  KEEP_DUPLICATES
  STORAGE(INITIAL 106496 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  PCTINCREASE 0
  BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT))
VARRAY "DOC"."XMLDATA"."Addr"."SYS_XDBPD$" STORE AS SECUREFILE LOB
  ( TABLESPACE "USERS" ENABLE STORAGE IN ROW CHUNK 8192
  CACHE  NOCOMPRESS  KEEP_DUPLICATES
  STORAGE(INITIAL 106496 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  PCTINCREASE 0
  BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT))
  XMLTYPE COLUMN "DOC" XMLSCHEMA "emp.xsd" ELEMENT "Employee" ID 4432                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

Similar Messages

  • How much data can 256GB Flash storage hold?

    How much data can a 256GB Flash storage hold?  The only reason I haven't gone ahead with my purchase is that I'm worried that 256GB is too little.  I wish it were possible to upgrade to 512GB on the base model.

    Depends on what you're gonna put in it.
    How big is your current HD?  Are you 50% full?
    Only you can answer that question.
    I've got a 500GB hard drive and I've only used 80GB since everything else is saved on a external drive for security and privacy purposes in case i lose my MB.

  • HT1766 how much data can I store to iCloud

    how much data can I store to iCloud

    the first 5 gigabytes are free, but not all data you have count against that 5 gigabyte.
    Check out http://support.apple.com/kb/ht4847 for more information and
    http://support.apple.com/kb/ht4874  about more info about upgrading your iCloud storage.
    Good luck
    Stijn

  • How much data can be polled by JDBC adapter at one time

    Hi All,
    how much data we can polled at one time from JBDC adapter?
    Regards
    Manish

    Hi Manish
    How much data can be polled by XI it all depends on your server configuration.
    Idealy message should not be more then 5 mb.
    you can poll more then 70000 records also but conditions apply - if it contains only one column, if having 50 columns then you cant fetch even 70000 also, so all depends on the msg size not on the number of records.
    You can refer my blog to restrict the number of records to be fetched by XI, link is given by Shabarish above.
    Regards
    Dheeraj Kumar

  • How much data can internal tables store?

    ABAPers,
    The function module that I am writing gets used by many of our customers. This module needs to store data temporily for further processing. Depending on individual customer's needs, the storage could be as little as 10000 records or it could run into millions of records.
    While doing my research, I cam across this quote:
    If you expect the size of your list to be greater than
    the amount of memory you want your program to use, then
    use field-groups (actually, if you use internal tables,
    and the number of records exceeds the number of records
    in your OCCURS statement, the system just writes those
    extra records to the paging space. So is there really any
    difference between just using an internal table with an
    OCCURS 0 statement-- which would write the entire table
    to paging space-- and using field-groups? According to
    Gareth M. de Bruyn and Robert Lyfareff in Introduction to
    ABAP/4 Programming for SAP, field-groups are stored more
    efficiently, and have better performance. They recommend
    field-groups for lists of 100,000 or more records).
    Questions:
    1. Is it true that internal tables can store any amount of records, irrespective of the amount of physical memory?
    2. For "OCCURS 0", are all the records ALWAYS stored in the paging space? Or, does the ABAP engine does virtual paging much like an operating system?
    Thank you in advance for your help.
    Pradeep

    Two good questions.......  here are two NOT so good answers.
    1)  The number of records that you are allow in your internal table(s) is limited to a cap for your session.  This is is a system setting.  When you reach the cap, program will end.
    2) You should not be using OCCURS extension anyway, always use TYPE TABLE OF.
    Regards,
    Rich Heilman

  • How much data can I put on the RAID?

    We have always heard not to go over the 80% full mark on our RAID. We have a 7TB (5.4 usable) that has about 1TB free sitting on it. We could really use some of that space for other things. Is 80% a true limit, or should we just start filling until we notice problems? Thanks

    Performance will slow as the RAID fills up. For a few reasons:
    1) As the volume approaches capacity, there are fewer contiguous blocks on the storage. So the volume will get fragmented, which forces the heads to move around substantially more for reads and writes. This will also make the heads work harder -- it could reduce life span of the drives, but truthfully it's likely this isn't enough to be noticeable.
    2) The density of tracks on the inside of the drives is less than the outside. Drives just can't read as fast on the inside, because there are fewer tracks there (given track "length" is constant but the linear distance is less on the inside). So performance reading from the inner tracks is often less than half what it is on the outer tracks.
    3) As the disks fill, the heads have to move more just "in general," in addition to fragmentation. Some files are on the inside, some are on the outside, and the heads have to access all along the radius of the disk to find info (the disks generally fill outside-in, so on a half-full disk the heads are typically "stroking" only half this radius). Moving heads costs time, so this slows things down.
    So the penalty you'll pay is a decrease in speed. At 80% it will be noticeable, and at 90% it's likely it will be dramatic (say, 30% to 40% slower in some cases). Do you need the speed, and is it random access?
    Most professional IT folks I deal with have a standing practice to not let enterprise storage get over 80% full. Their EMC sales reps are "nice enough" to give them a friendly call when they hit 50% capacity, and suggest it's time to start looking for more storage, so they can roll it in when they hit 70%. How helpful
    While this may be a bit excessive for those on lesser budgets, I'd still recommend you consider adding storage before you fill. It will get painful... starting as a dull ache and getting more and more acute as you pass 90%.

  • How much data can iCal accommodate?

    I have used iCal for many years and synchronize it with my iPhone. Are there limitations on the amount of data iCal can accommodate?

    Diapason,
    There are no published iCal data limitations that I am aware of.

  • How much data can you store on 32G iPhone?

    How many movies, tunes, etc. can be stored on a 32G Iphone?

    I have a 16 GB iPhone. Currently it shows 13.73 GB capacity
    Audio 4.6 GB
    Photos 3.6 GB
    Apps 0.81 GB
    Books 0.04 GB
    Other 1.34 GB
    Free 3.3 GB
    The Audio is made up of 933 items. In my case most of those are classical pieces which tend to be long then other types of music. Hence the reason I hedged my answer on my first reply.
    Allan

  • How much data canbe cache in SGA

    Hai everybody,
    my company using Oracle 11g 11.2.0.1.0 - Production database, my os is RHEL 5.5 ,my server's physical memory is 30.9 GB ( cat /proc/meminfo ) ie the SGA size [ (30.9*40/100)=12.5 GB ] so i use 12.5GB SGA size for one instance, we need to cache some data for our application performance how much data can cache in SGA based on 12.5 GB or how to calculate how much data can cache in SGA without any performance degradation.
    Regards Benk

    Aman has it right. WHY?
    the keep pool, alter table cache, etc - I would not be doing ANY of these without a good reason.
    Often times, people think that forcing a table to stay in the cache is a good idea. It rarely is. If you want things in the cache, use them. If they are used, they will naturally have their blocks cached. If you don't use them, they can get flushed out. But if you don't use them, why do you want them using memory that could better be used by other things?
    My advice: don't try to second-guess Oracle's memory management and caching strategy. If you think you have a reason to, post it here and we can help you (or debunk your reason). Based on the fact that you've apparently calculated the SGA using that silly, meaningless "rule" that says give it 40% of your total RAM, I'd guess that you are looking around for a magic bullet, and you don't actually have a problem to solve.
    John

  • Is there a place I can see how much data I uploaded other server like the old version of Sync did?

    In the old version of Firefox Sync you can see what data was uploaded, with the next Sync I see nothing and when I got my account on the website Firefox, I don't see nothing just a sign in and change password screen. Would there be more there soon?

    Hi Kurbo,
    Please do leave feedback for the developers at input.mozilla.org, currently there is not a feature that shows how much data or what data is uploaded.
    However if you are handy at picking up apis there are some apis that can be read about [https://blog.mozilla.org/services/2014/05/08/firefox-accounts-sync-1-5-and-self-hosting/ here]

  • How can I see how much data passes through my Time Capsule?

    I am thinking of using a cellular data plan at home. My current, rural internet provider is slow and unreliable. I use a MiFi as a backup and have 4G service which is much faster and rarely goes down. I need to see how much data is downloaded and uploaded to compare costs. All our data passes through my Time Capsule.

    A similar app to what Bob mentions is peakhour.. it works on any of the newer OS.
    https://itunes.apple.com/au/app/peakhour/id468946727?mt=12
    It is a good app. BUT.. fat ugly BUTT.. just the same as Bob has explained, it depends on SNMP to work.. and so due to apple removing a very useful and functional protocol from its airport range you can no longer use it. Bizarre.
    I strongly recommend a Netgear WNDR3800 (older model now but you can pick up one cheaply on ebay) and a 3rd party firmware called gargoyle. Apple delete my posts if I point you to it, so you will have to search yourself.
    Replace your tall TC with the Netgear as the main router.. bridge the TC to it and you can continue to use its wireless and for TM backups. The advantage is that gargoyle will not only measure everyones usage, by IP, it is able to set a quota on everyone using the net and you can set that quota for hourly, daily or weekly or monthly. It will track the usage and you can see at a glance what everyone has used.
    It is simple to load.. just like a standard firmware update. The interface is as clear as anyone can make it with such of lot of tools. And the actual router is powerful enough to provide excellent QoS and parental controls on top of measurements and quota.

  • How can i see how large an app is and how much data is stored

    In ios7 I could select an app and see it's size and how much data is stored in using it on my iPhone.
    I can't seem to locate that option in ios8.1
    to refresh and app I had the option of deleting it and reinstalling before based on the information held by the app.
    is this clear?
    MyFitnessPal is taking a long time to load, thought I would see how large the app is and how much info is stored
    but as I've redundantly stated here I can't find that option in my phone now.
    thanks in advance for any help you can offer
    iPhone 5 iOS8.1

    For reference in iOS 7 it is under Settings app > General > Usage.
    According to the manual iOS 8 is the same…
    http://manuals.info.apple.com/MANUALS/1000/MA1565/en_US/iphone_user_guide.pdf
    (page 177)
    Usage information
    View cellular usage. Go to Settings > Cellular. See Cellular settings on page 179. View other usage information. Go to Settings > General > Usage to:
    Display battery level as a percentage
    See Battery Usage, including the elapsed time since iPhone has been charged and usage by app
    View overall storage availability and storage used per app
    View and manage iCloud storage
    For me it take a few seconds to load, you may find that the app is being slow to open if it is still downloading some data for it's own caches etc. Try to ensure it has a good internet connection. Obviously it could just be that the service in question is also having issues, so consult their support too.

  • How can i determine how much data an app is using

    on an iphone5, how can i determine how much data an app is using and or which apps are the biggest data users?  do all apps always use wifi when a wifi is connected or do some apps still use cellular data even if wifi is connected?

    Try Settings > General > Usage > Storage > check here.
    To test if app is using cellular data instead of Wi-Fi, switch Airplane mode: ON and switch Wi-Fi: ON manually.

  • How can I find out how much data an update takes

    I have only limited access to data, unless I'm paying big overage charges.  Thereforre I want to know before hand how much data i will download with each update.  No information appears to be available when you want to update your pages, numbers or keynotes.  This applies to apps in MAC.  I operate wit Yosemite OS X. on on a 27inch Mac #)^ GHZ Intel Core 2 Duo. any info would be great.  Thanks.

    Besides the good ideas given so far, you could look into a few Support
    Sites for information such as the App Store as suggested to read each
    item that appears to be available for your existing system version...
    And consider looking through this page and adjoining links within it for more:
    •OS X - Recent Software Updates - Apple Support:
    http://www.apple.com/support/osx/software-updates/
    I've been fairly aware of the limitations and bandwidth overage charges or
    a reduction in available access to the internet when & if one runs over...
    And there is plenty of useless stuff loaded in web pages that can waste it.
    Hopefully you have a good archive to save the important download versions
    (& backups) so you may be able to use them again offline, when possible.
    Good luck & happy computing!

  • Can i view how much data my ipad has used?

    Altho I am on an unlimited internet package I am shocked at the daily usage figures.  Especially as I only watch about an hour of streamed TV per day.
    I'd like to see how much data streaming is happening on my daughter's iPad mini - right before I go and find a method to time restrict the device!
    Thanks in advance
    TC

    Settings>Cellular/Mobile
    Here you can check the amount of data being used. I would suggest to reset the statistics (bottom of the page) then monitor the usage.

Maybe you are looking for