How much char(1) occupies?

HI
Here is the simple issue with iam breaking head ;)
create table abc(a char(1));
(It supposed to occupy *1 byte* for every row(AM I CORRECT?).
DBMS_SPACE.UNUSED_SPACE shows
TOTAL_BLOCKS = 2
TOTAL_BYTES = 16384
UNUSED_BLOCKS = 1
Well,so far so good ( It has one block-8192 bytes free space and one block-8292 gone for segment header).
begin
for i in 1..1000 loop
insert into abc values(1);
end loop;
end;
SO,it should occupy *1000 bytes* totally (AM I CORRECT AGAIN?)
It means rows should have very well contained in that AVAILABLE FREEBLOCK with the size of *8192*.
BUT When i check unused space it shows
TOTAL_BLOCKS = 4
TOTAL_BYTES = 32768
UNUSED_BLOCKS = 0
Why it went for extending when it can contain *1000 bytes* in
*1 block*(8192).I don't think this is anything to do with init or pctincrease,nothing but SIMPLE CONCEPT of storage.
Pls answer me guys relevant to this confusion
Praveen Mohan

Sudeendra, the unused_blocks value of 1 is telling you that you have 1 block that has never been used so the block size worth of space is available for use. The entire 8192 bytes cannot be used to hold row data because block overhead will have to be removed from the total.
I do not know if the total block count includes the segment header block. You might want to compare the total blocks in dba_segments to the total dbms_space.unused_space returned to you. Notice that the total unused bytes is just the unused block count X the block size. The utility works at the block level.
The actual row size including direct overhead (row header and null indicators) should be the average row size from a analyze compute. I do not think the block row table entry is included as row size.
-- Mark D Powell --

Similar Messages

  • How Do I Find How Much "space" My Documents uses

    Were can i find how much hard drive space my documents occupies.  I'm trying to save to the cloud but I'm not sure how much I need to purchase....

    Select the folder in Finder, then press Cmd+I, or right-click it and Get Info. You will then see how large the folder is. If it's large, it may take a while to calculate the size.

  • How much would repairing an iPad cost?

    It had fallen from my computer table and struck the prongs of an extention cable plugged into the wall outlet and it was extremely hot. I found a small charred hole about .5-1mm wide, and what appears to be some sort of metal component, possibly where the prong made contact with the electronics inside. I wonder, how much would it be to fix it, let alone know what's wrong with it?

    It will cost you approximately US$219.00 to US$299.00 depending on the model.
    Apple will replace the entire iPad; they don't repair.
    http://support.apple.com/kb/index?page=servicefaq&geo=United_States&product=ipad

  • How to create an occupancy grid map

    I am using a LIDAR sensor (URG-04LX) to map an environment for DaNI 1.0 in LabVIEW Robotics 2010 module.  I want to create an occupancy grid map of the environment to use for path planning purposes. Can anyone provide me with any assistance. I have looked at the examples for path planning using the A* technique on an occupancy grid but I don't understand how to create the occupancy map.

    ... everyone above as told you how to create and LABVIEW occupancy map.... using an occupancy map.
    The labview VI assumes you know exactly what the envrioment is like. Meaning you pretty much have some representation of the enviroment.
    What you want to know is how do I generate and occupancy map using a laserscanner. For this you would need something called SLAM. Simultaneous localisation and Mapping. In order generate an occupancy map you need to continously localise your system so you can map laser measurements with refference to a fixed refferece frame, you then have to localise with respect to your map and repeat. This is non-trivial !
    unfortuently there is no LabviewVi to do this for you, and there is not much working example code. So honestly if you want to do this, i would use a robotic development framework call ROS and using gmapping (which is a SLAM package). Alternatively if you inist on using labview you could create a dll of the gmapping (open source libary) and call it from labview, Our you could try to implement it from scratch yourself....
    I just wish it was easier to use opensource libaries like pcl,opencv and integrate with textbased langauges using a labview system... it would make labview so much better, but labview robotics i feels is not really a good robotic application framework comapared to alternatives like ROS which have much bigger communities and much more modules of code you can use... escpecially for SLAM 
    https://decibel.ni.com/content/docs/DOC-22790 this is the best i have managed to find ( they do implement SLAM for this) 
    http://www.ros.org/wiki/gmapping

  • How much FLDLEN in this strcture?

    How much FLDLEN should i need in Fneeded32(10,FLDLEN V) to acommodate the
    c structure because i want to use Fvstof32 to transfer from measurement structure
    to fml field buffer?
    Thanks a lot!
    struct measurement {                                             
    /* View structure for measurement information */
         long     smid[100];
         char     from[100][10];
         char     localid[100][10];
         char     source[100][40];
         char     target[100][255];
         char     test_type[100][50];
         char     meas_type[100][50];
         long     interval[100];
         short     isactive[100];
    the fml header file:
    /*     fname     fldid */
    #define     SMID     ((FLDID32)33554833)     /* number: 401     type: long */
    #define     FROM     ((FLDID32)167772562)     /* number: 402     type: string */
    #define     LOCALID     ((FLDID32)167772563)     /* number: 403     type: string */
    #define     SOURCE     ((FLDID32)167772564)     /* number: 404     type: string */
    #define     TARGET     ((FLDID32)167772565)     /* number: 405     type: string */
    #define     TEST_TYPE     ((FLDID32)167772566)     /* number: 406     type: string */
    #define     MEAS_TYPE     ((FLDID32)167772567)     /* number: 407     type: string */
    #define     INTERVAL     ((FLDID32)33554840)     /* number: 408     type: long */
    #define     ISACTIVE     ((FLDID32)409)     /* number: 409     type: short */

    I would use sizeof(struct measurement) as a starting point.
         Scott
    betty huang wrote:
    How much FLDLEN should i need in Fneeded32(10,FLDLEN V) to acommodate the
    c structure because i want to use Fvstof32 to transfer from measurement structure
    to fml field buffer?
    Thanks a lot!
    struct measurement {                                             
    /* View structure for measurement information */
         long     smid[100];
         char     from[100][10];
         char     localid[100][10];
         char     source[100][40];
         char     target[100][255];
         char     test_type[100][50];
         char     meas_type[100][50];
         long     interval[100];
         short     isactive[100];
    the fml header file:
    /*     fname     fldid */
    #define     SMID     ((FLDID32)33554833)     /* number: 401     type: long */
    #define     FROM     ((FLDID32)167772562)     /* number: 402     type: string */
    #define     LOCALID     ((FLDID32)167772563)     /* number: 403     type: string */
    #define     SOURCE     ((FLDID32)167772564)     /* number: 404     type: string */
    #define     TARGET     ((FLDID32)167772565)     /* number: 405     type: string */
    #define     TEST_TYPE     ((FLDID32)167772566)     /* number: 406     type: string */
    #define     MEAS_TYPE     ((FLDID32)167772567)     /* number: 407     type: string */
    #define     INTERVAL     ((FLDID32)33554840)     /* number: 408     type: long */
    #define     ISACTIVE     ((FLDID32)409)     /* number: 409     type: short */

  • The coherence cluster supports created how much cache?

    Hi,
    I have runing Oracle Coherence GE 3.6.1 in cluster.
    The coherence cluster supports created how much cache? cache type is Distributed Cache.
    Cache over-population will affect the performance of the cluster?
    Thank you!

    Do a test, the code is as follows:
    cache code
         public final long removeLike(String regex) {
              long l1 = System.currentTimeMillis();
    long result = 0;
    Set<String> setKeys = nc.keySet(new LikeFilter(new KeyExtractor(), regex + "%", (char)0, false));
    long l2 = System.currentTimeMillis();
    System.out.println("removeLike , execute time :" + (l2 - l1));
    return result;
    public final boolean removeStartWith(String prefix) {
    long l1 = System.currentTimeMillis();
    int i = 0;
    try {
    Set<String> keys = nc.keySet();
    Iterator<String> iter = keys.iterator();
    String v = "";
    while (iter.hasNext()) {
    v = iter.next();
    if (v.startsWith(prefix)) {
    ++i;
    long l2 = System.currentTimeMillis();
    System.out.println("removeStartWith , execute time :" + (l2 - l1));
    return true;
    } catch (Exception e) {
    LOG.error(e.getMessage(), e);
    return false;
    The above 2 methods are computational search KEY time, not to delete operation
    test code
         @BeforeClass
    public static void init() {
    try {
    cache = CacheFactory.getCache("testCache");
    } catch (CacheException e) {
    e.printStackTrace();
    cache.clear();
    for (int i = 0; i < 100000; i++) {
    cache.add("test-" + i,i);
    for (int i = 0; i < 100000; i++) {
    cache.add("hello-" + i,i);
    @Test
    public void testReadByDefaultKey1() {
    cache.removeLike("test");
    @Test
    public void testReadByDefaultKey2() {
    cache.removeStartWith("test");
    The test results show that the:
    removeLike , execute time : 637
    removeStartWith , execute time :125
    Circulating KEY faster than using likeFilter quickly.

  • How can you tell how much space is being used up by your iTunes...I am trying to figure out how much space I will need to transfer my iTunes library to an iPod and which iPod to select?

    How can you tell how much space is being used up by your iTunes...I am trying to figure out how much space I will need to transfer my iTunes library to an iPod and which iPod to select?

    Start up iTunes, and select Music, then click Songs.
    Down at the bottom of the iTunes window, it will tell you how much space your library occupies.

  • How much memory an object consumed?

    Via making an internet lookup and writing some code, i made an implementation of
    how to calculate how much memory an object consumes. This is a tricky way.
    However, how can i achieve a better and direct way? Is there a tool for attaching
    to JVM and viewing the memory locations and contents of objects in memory?
    I wrote the tricky way to Javalobby and pasting the same explanation to here too.
    I must say that this tricky way does not belong to me, and i noted where i took
    the main inspiration etc. at the end.
    Because of the underlying structure Java does not let
    users to access and directly change the content of
    instances in memory. Users could not know how
    much memory is used for an object, like in C.
    However this tricky method lets them to know in an
    indirect way.
    To achieve how much memory is used for an object we must
    calculate the used memory before and after the object is
    created.
    MemoryUsage.java
    * User: Pinkman - Fuat Geleri
    * Date: Mar 20, 2005
    * Time: 11:13:50 AM
    * The class which makes the calculation job.
    * Calculating the difference of used memory
    * between calls
    * "start()", and "end()".
    * So if you initiate an object between those
    * calls you can get how much memory the object
    * consumed.
    * Initial inspration from
    * http://javaspecialists.co.za/archive/Issue029.html
    public class MemoryUsage {
         long usage;
         public void start(){
              garbageCollect();
              Runtime r=Runtime.getRuntime();
              usage=r.totalMemory()-r.freeMemory();
         public long end(){
              garbageCollect();
              Runtime r=Runtime.getRuntime();
              return (r.totalMemory()-r.freeMemory())-usage;
         public String memorySizeToString(long l){
              int MB=(int) (l/1048576);
              l=l-1048576*MB;
              int KB=(int) (l/1024);
              l=l-1024*KB;
              return new String(MB+"MB "+KB+"KB "+l+"BYTES");
         private void garbageCollect() {
              Runtime r=Runtime.getRuntime();
              r.gc();r.gc();r.gc();r.gc();r.gc();
              r.gc();r.gc();r.gc();r.gc();r.gc();
              r.gc();r.gc();r.gc();r.gc();r.gc();
    Therefore the first file MemoryUsage.java is coded.
    It simply calculates and stores the used memory when
    start() method is called. After generating some objects,
    the end() method is called to get the
    difference between memory usages, between the start()
    and end() method calls.
    SizeOf.java
    import javax.swing.tree.DefaultMutableTreeNode;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Random;
    * User: Pinkman - Fuat Geleri
    * Date: Mar 20, 2005
    * Time: 6:02:54 PM
    * Arbitrarily size of objects in JAVA..
    * An example of getting how much an
    * object consumed in memory.
    * Like
    *  primitives -> does not consume any
    *  arrays  -> consumes 16 bytes when empty
    *   ex: byte []a=new byte[0];
    *  list    -> consumes 80 byte when empty..
    *  references -> when did not initiated does
    * not consume any memory!.
    * Initial inspration from
    * http://javaspecialists.co.za/archive/Issue029.html
    public class SizeOf {
         MemoryUsage mu=new MemoryUsage();
         public static void main(String []args){
            SizeOf s=new SizeOf();
              s.sizeOfExample();
         //remove the comments in order to make the same checking by yourself..
         private void sizeOfExample() {
              mu.start();
              //byte []b=new byte[0];//<-byte array 16byte,each byte addition equals 1 byte!!
              //String s="How much memory is used?";//string consumes no byte!!
              //byte c=20; //<-consumes no memory!!
                    //Object o=new Object();//object consumes 8 bytes..
              //Object []oa=new Object[100];//<-object array consumes 16 byte! and each addition object 4 bytes!
                    //List list;//non initialized object consumes no memory!!..
              //Integer i=new Integer(1);//an integer object consumes 16 bytes!
              //List list=new ArrayList();//An array list consumes 80 bytes!.
              /*for(int i=0;i<10;i++){ //An array list + 10 integer consumes 240 bytes  :)
                   list.add(new Integer(i));
              Random r=new Random();
              byte []rand=new byte[1];
              int count=100000;
              List list=new ArrayList(count);
              for(int i=0;i<count;i++){
                   r.nextBytes(rand);
                   list.add(new String(rand));//empty string occupies no memory??
              DefaultMutableTreeNode root=new DefaultMutableTreeNode();//8 byte when single!.
              Random r=new Random();
              byte []rand=new byte[10];//when this is one and count is 1 million memory gets overfilled!..
              int count=500000;
              for(int i=0;i<count;i++){
                   r.nextBytes(rand);
                   root.add(new DefaultMutableTreeNode(new String(rand)));
              long l=mu.end();
              System.out.println(""+mu.memorySizeToString(l));
    An example usage can be found in the second file
    SizeOf.java. Simply remove the comments,"//", and execute
    to see how much memory used.
    For example:
    % Primitives does not consume any memory.
    % Non-initialized object references does not consume
    any memory.
    % Empty string and most of the small strings does not consume any memory.
    % Empty byte[] consumes 16 bytes.
    % Empty ArrayList consume 80 bytes.
    % An Integer object consumes 16 bytes.
    % Empty DefaultMutableTreeNode consumes 8 bytes..
    and so on.
    You can find the mentioned files in the attachments.
    I heard the idea of -how much memory is used- from
    Prof. Akif Eyler, and i got the main inspration from
    the site http://javaspecialists.co.za/archive/Issue029.html
    //sorry about my mistakes, and everything :)
    Thanks for your answers beforehand.

    Any good profiler will tell you.
    You can also code your own using jvmpi or jvmti.
    Also note that calling System.gc is a hint to the jvm it may or may not respect your wish.
    Test it with a few different gc algorithms and see what happens.
    /robo

  • How much memory (in buffers) is needed for a simple webservice's call?

    Dear expert,
    I'm doing a research work about analysing the main memory usage in SAP ERP systems.
    I would like to find out the space that a simple webservice's call occupies in the buffers, but there is always something occupying the buffers. I know that my call to get the values occupies memory, that's why I use a webservice to get them (to avoid the SAPGUI), I call first $SYNC and I use a BAPI similar to the transaction ST02.
    So could someone help me to find out the way to mesure the memory used by a single webservice's call (it's a very simple, just to create a material)? Thanks in advance.

    Thanks for that. Will try.
    > Date: Fri, 19 Aug 2011 10:27:50 -0600
    From: [email protected]
    To: [email protected]
    Subject: How much memory (RAM) is needed for Elements 9 to automatically fill in the edges when using photome
    The key to successful use of edge fill is to ensure that you've got all the memory allocated to PSE that you can and that the file that results after you merge the panoramic is not too big. When PSE 9 first came out about a year ago, I fooled around with file sizes and I think that on my particular computer the merged file had to be no larger than 20 megs for edge fill to work. I did a quick search through this forum's history but I couldn't find my posts. Maybe somebody else can find them.
    >

  • How do I find how much space specific documents, applications, music files, etc. are taking up on my hard drive?

    I checked out my hard drive and found it is getting rather full.  Disk Utilities gives me an overall picture of how much disk space is being used and how much remains, but I'd like to find out which individual files may be hogging space.  The Finder window doesn't give that individual information.  I can find out how much space each item takes by clicking info on each, but there must be a more efficient way of finding this information simply by clicking on folders.

    Not free but this is one option.
    http://whatsizemac.com

  • I recently managed to get the whole casing of my 13" Macbook Pro (Mid-2009) replaced due to a missing foot and dodgy spacebar. The lid is dented and scratched so would like to know how much it would cost to replace? I know its not covered by AppleCare.

    So i took my Macbook Pro 13'' (Mid-2009) into Apple because the spacebar was jammed and I had one of the feet of the bottom casing missing which was unusual (black circles). The unibody and bottom plate had a fair few dents and nicks and under AppleCare I was able to get the whole unibody and bottom case fixed for free. Saved myself a good £181!
    This now leaves my lid which has one or two noticeable dents and the bottom right part is suffering from several scratches. I was wondering how much a new lid would cost if I took it into Apple? I know it won't be covered under AppleCare as its accidental damage but want to know whether its worth paying for to have a once again dent free Macbook Pro .
    As a side note, do Apple upgrade your hardware at all, such as the hard drive or memory? I know it would be cheaper to do it at an independant computer shop or by myself but would like to explore my options first.

    http://www.ifixit.com/
    See my reply to your second question elsewhere.

  • Acmcneill1ug 14, 2014 7:16 AM I have IMac OSX 10.9.4, 4GB,Processor 3.06 with Intell2Duo. I would like to check for Malware. I run a TechTool Pro 6 every month and that comes up great. When check how much memory I am using, with only Safar

    Acmcneill1ug 14, 2014 7:16 AM
    I have IMac OSX 10.9.4, 4GB,Processor 3.06 with Intell2Duo. I would like to check for Malware. I run a TechTool Pro 6 every month and that comes up great.
    When check how much memory I am using, with only Safari open I am using 3.9 and more of her 4.0 memory. She is very. very slow in processing. I had 4000
    trash to clean out and it took her over an hour to expel. Also for some reason Safari will not allow me to click on a link, in my G-mail, and let it go to the page.
    It has a sign saying a pop-up blocker is on and will not let me do it. I must open the stamp to look at my e-mails and if I have redirected link now I can do it.
    I have not changed my preferences so where is this pop-up blocker?
    I have looked at preferences on Safari and Google, which I do not understand Google, and do not see where this blocker could be.
    Malware is something I want to make sure is not on my computer. Tech Tool Pro 6 is all I know of and it does not detect Malware.
    Help.
    Ceil

    Try Thomas Reed's Adware removal tool. He posts extensively in the communities.
    Malware Guide - Adware
    Malware Discussion

  • How do I find out how much of my hard drive space is used up

    I have a Mac OS X Version 10.7.5. Processor 2.66 GHz Intel Core 2 Duo; Memory 2 GB 1067 MHz DDR3. Computer is running very slow. I cleared downloads and reset Safari, emptied trash, etc. How  can I find out how much space I have left on my hard drive?

    As you appear to have at least OS 10.7 installed, you can simply highlight your hard drive and press the SPACE bar to get this:

  • I bought an Ipod touch online, how much would it be to get the screan fixed?

    I fell off my back and the top corner of my ipod touch was cracked. How much would it coast to get this fixed? Would they even though I bought it online used?

    Apple will exchange your iPod for a refurbished one for this price. They do not fix yours.
    Apple - iPod Repair price                       
    A third-party place like the following maybe less. Google for more.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens
    Replace the screen yourself if you are up to it
    iPod Touch Repair – iFixit

  • I cracked my iPad 3. How much would it be to repair the screen?

    Hello, I have recently cracked my ipad. I would like to get that apple device repaired. It is the ipad 3 by the way.PLEASE HELP! How much would it cost to get the screen repaired by Apple?

    Apple's Limited Warranty http://www.apple.com/legal/warranty/ for iPad excludes coverage for damage resulting from accident, disassembly, unauthorized service and unauthorized modifications.
    Apple will provide a replacement iPad for:
    iPad model
    Out-of-Warranty Service Fee
    New iPad
    $299
    iPad 2, iPad
    $249
    Make a Genius Bar Reservation
    http://www.apple.com/retail/geniusbar/
    You can get the glass replaced at 3rd party repair sources for less $, however, the Apple warranty will be voided.
    iPad Repair & Screen Replacement Services
    http://www.ifixyouri.com/16-ipad-repairs
    RepairZoom iPad Repair
    http://www.repairzoom.com/ipad-repair.html
    Mission Repair
    http://www.missionrepair.com/Apple_iPad_Repair_Services_s/431.htm
    iGadgetResQ
    http://www.igadgetresq.com/ipad-repair/
     Cheers, Tom

Maybe you are looking for

  • What can I do to get my serial number accepted?

    I have installed Photoshop Elements and Premier Elements on my new computer, but it will not accept

  • SQL query to avoid PL/SQL

    Hello, I am trying to do the below pl/sql block in a single SQL stm, let me know how could we achieve it. Here i am using SELECT * FROM TEMP_ORDER WHERE DB_NAME = V_DBNAME which runs a cursor for get the distinct data base names. could this V_DBNAME

  • Question mark top right of all windows

    There has suddenly appeared a large grey question mark at the top left of all windows, for example,the main HD window and all the folder windows. The finder text font is also different to how it was before. Any ideas? Thanks everyone.

  • Continously Clicking the Browser Off and On

    Whenever i attempt to view a YouTube Video, the browser keeps acting like im clicking off of it and clicking onto it again. It keept repeating that until i closed the tab, then it went back to normal.

  • How can I keep tracks playing when I'm browsing?

    There must be an obvious answer to this question, but I don't know what it is. If I'm playing an album, but then start to browse somewhere else (as one would do if listening to a CD), the music will stop after the track has finished, and not go on to