best data type to represent a file size

Hi all!
I need to create a table that contains details abou the files what process on a system and to keep the process of file name, size of the file in byts, full path of the file location is stores etc.
My question is what would be the best data type for a file size, currently the process 4 GB but system files I do not know if this will expand so I need a type of data that will be compatible for any size ther will be no decimal points involved in this.

I hope my question is clear.

Thank you in advance.

Best regards, Nikita.

user8706423 wrote:
Hi all!
I need to create a table that contains details abou the files what process on a system and to keep the process of file name, size of the file in byts, full path of the file location is stores etc.
My question is what would be the best data type for a file size, currently the process 4 GB but system files I do not know if this will expand so I need a type of data that will be compatible for any size ther will be no decimal points involved in this.

I hope my question is clear.

Thank you in advance.

Best regards, Nikita.

Simple like Oracle did field BYTES from v$ datafile:

SQL> desc v$datafile
 Name                                      Null?    Type
 ----------------------------------------- -------- ----------------------------
 FILE#                                              NUMBER
 CREATION_CHANGE#                                   NUMBER
 CREATION_TIME                                      DATE
 TS#                                                NUMBER
 RFILE#                                             NUMBER
 STATUS                                             VARCHAR2(7)
 ENABLED                                            VARCHAR2(10)
 CHECKPOINT_CHANGE#                                 NUMBER
 CHECKPOINT_TIME                                    DATE
 UNRECOVERABLE_CHANGE#                              NUMBER
 UNRECOVERABLE_TIME                                 DATE
 LAST_CHANGE#                                       NUMBER
 LAST_TIME                                          DATE
 OFFLINE_CHANGE#                                    NUMBER
 ONLINE_CHANGE#                                     NUMBER
 ONLINE_TIME                                        DATE
 BYTES                                              NUMBER
 BLOCKS                                             NUMBER
 CREATE_BYTES                                       NUMBER
 BLOCK_SIZE                                         NUMBER
 NAME                                               VARCHAR2(513)
 PLUGGED_IN                                         NUMBER
 BLOCK1_OFFSET                                      NUMBER
 AUX_NAME                                           VARCHAR2(513)
 FIRST_NONLOGGED_SCN                                NUMBER
 FIRST_NONLOGGED_TIME                               DATE
 FOREIGN_DBID                                       NUMBER
 FOREIGN_CREATION_CHANGE#                           NUMBER
 FOREIGN_CREATION_TIME                              DATE
 PLUGGED_READONLY                                   VARCHAR2(3)
 PLUGIN_CHANGE#                                     NUMBER
 PLUGIN_RESETLOGS_CHANGE#                           NUMBER
 PLUGIN_RESETLOGS_TIME                              DATE

Tags: Database

Similar Questions

  • What the best data type for storing jpeg/gif images?

    Hello
    What the best data type for storing jpeg/gif images?
    Idon't want to use the blob data type
    Ordimage is the best?
    Thank you.

    VDH says:

    What the best data type for storing jpeg/gif images?
    Idon't want to use the blob data type
    Ordimage is the best?

    Don't be stupid.

    If you do not want to use BLOBs then, or you can use the ordimage.

    It uses ordsys.ordsource for the storage of the image data type. This is a user defined Type of data in advance and has a property called LocalData that stores the actual image. And what is its data type? BLOB OBJECT.

  • Data type for representing €

    Hello

    I want to create, a table, a field that represents money, specifically in €.

    looking on the net I found unfortunately that Oracle doesn't have a SPECIFIC type to represent money in euros or dollars.

    My idea was to use a NUMBER type, and then when I put the data try to concatenate the symbol €. But I think that's not possible.

    If I try to use the VARCHAR2 instead of the NUMBER type, but although functions for later converted to NUMBER, I have with that is not very professional and loses the functionality


    What would recommended you?

    Thank you. Concerning

    You can store your number, such as salary value.
    Show the euro sign is a problem with the output screen, and you can get it in the query that retrieve data from db: TO_CHAR (salary, 'L999G999D99')
    L as currency.
    To learn more:
    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14200/functions181.htm#SQLRF06130

    Nicolas.

  • How to change the format of VOB file without loss of quality and file size of balloon?

    I try to save a VOB file on a problematic DVD using first Pro CC 2015. Can anyone help me please with selecting the best export settings?

    My goal is to maintain the quality and size of the file as close to the original as possible. I just need to change the file format to something I can easily view on my computer. Sometimes, he tries to simply change the extension from VOB to MPEG, but in this case, I edited (shortened) the original file so need to save again.

    Most of the output options I tried drastically reduce quality or seriously enlarge the size of output file.

    First gives me the following information from the source:

    Type: MPEG Movie

    File size: 675,20 MB

    Image size: 360 x 288

    Frame rate: 25.00

    Audio Format: 48000 Hz - compressed - stereo

    Project Audio Format: 48000 Hz - 32 bit floating point - stereo

    Total time: 00:59:22:02

    Format of the pixels: 1.0940

    AVI, quality 100 gives a file size of 12 GB. Source H.264 match - high bitrate gives a file size of 2 GB. Where does all that extra data?

    Match sequence settings should be an obvious solution, but it gives me a slightly larger file (706,98 MB) with a sharp drop in quality.

    If I select H.264, corresponds to the size of the original image and approach the source of all other settings as I can, the size of the resulting file is still much greater than if I drop the transmission speed. However, first does not show me bitrate of the source until I put it to maintain the same quality?

    I want just the same file in a different format so that I can view them easily. Simple yet I have not been able to find a solution. Can someone point me in the right direction?

    Thank you very much, Berne

    You can not avoid re-encoding. His first mpeg will not give you made smart on mpeg.

    You need a different program if al you want to do is trim down.

    Best Software MPEG video editor | TMPGEnc MPEG Converter Smart 4

    Match sequence settings does exactly what it says. Your sequence (each) works with a codec to preview.

  • The Illustrator file size is 4 x size placed jpeg

    It's weird. I have a jpeg CMYK placed in Illustrator. It is not embedded. The size of the jpeg is 6.6 MB. When I look at my Illustrator file size, it is 25.6 MB. Is there a way to get around this? I have other files with placed jpegs that only take into account data from Illustrator (vector, IE) into account. Any suggestions? Looks like a rookie question!

    If you save without PDF compatibility and do not embed an ICC profile, your file size should be much smaller.

    When you register with PDF compatibility, you are, indeed, incorporation of the image.

    If you choose the compression option to save, the part PDF readable your .ai (with the embedded image) file, in fact, will compress down with other file data, offering a reduction in file size.

    Whether you need compatibility PDF and/or a profile tag, only you can answer. You pay for them in the size of the file.

  • Best types of files, size etc. of import in InDesign, etc.

    Hello

    Given that my computer is to thrust then with files that are too big (old files that I created when I wasn't aware of the best ways to reduce the size of the file, etc..) I have a few questions.

    • A lot of my files is. EPS, but in this case, I have the original in file. PSD or. PDF (both possible to place in InDesign files). What is the best type of file to be placed in InDesign, because having the same design and in. PSD and in. EPS seems a little stupid to me?
    • What are the best options to place images and files in an InDesign file without creating a huge PDF file afterwards?
    • What are the best options to place files and images in a Photoshop file without making it huge?

    Who can advice me some sites or books that can tell me all about this topic? Since I started my own Graphic Design business, it is a very important subject to me because the file size optimization is something that I still have a lot of problems with!

    Thank you guys!

    to start:- http://indesignsecrets.com/tiff-vs-psd-vs-eps-vs-pdf-vs.php

  • What is the best file size to create an animated logo

    I'm trying to animate a corporate lodge for a chart of the opening of a video. Can you recommend what size of files and the resolution is the best? If I can get a JPEG will apply the same specifications of file size.

    I consider opening the file in Photoshop, selecting and separating logo in layers by using the layers separately to move together as the logo of the motion.

    All your ideas and suggestions are greatly appreciated.

    Thanks in advance for your help.

    tplynchy wrote:

    … I consider opening the file in Photoshop, selecting and separating logo in layers by using the layers separately to move together as the logo of the motion.

    That's exactly how I would do it (too).

    Applications of paint have wonderful tools to bump-out parts of an image, or to 'flatten' areas (cleaning/denoising artifact jpg)...

    size/resolution: depends on the 'action', if you do not zoom in, 1920 x 1080 video hires, is good enough, if you do some z axis fun (fly Thru), a much higher res is needed.

    suggestion: If the logo contains the fonts/text or simple forms, I re - who would enact in movement. because it acts as a 'vector' = resolution independently, as in this example:

    https://youtu.be/abHlSK3QnAI

  • How to record a data type float [64] table in a file?

    I have a table of type float64 [] data I want to save to a file.  I tried to use the ArrayToFile function, but he dislikes the type of data [] float64 .  I'm with LabWindows/CVI version 7.1.

    Why not use the data type double?

  • FILE cannot BE DELETED, the file size of the file type 'file' "0 bytes"

    I downloaded a music file of myfreemp3.eu, he wasn't .mp3.  He was able to play a couple of times, but now does not open.  Now, I can't move or delete it from the downloads folder, system do not see.  its properties are of TYPE 'file' and SIZE '0 bytes. "  Error message is "unable to find this article. It is no longer in xxx, etc.

    I tried many suggestions to remove it without success.

    I have Vista 2007 service pack 2.  I tried in safe mode, tried to move to another folder, tried to run without windows, search, folder to never display thumbnails, tried Mandrake Move, but it was outdated, orders back cmd has tried to delete. Also tried to delete with disabled explorer.exe.

    Any suggestions?

    http://answers.Microsoft.com/en-us/protect/Forum/protect_other-protect_scanning/file-cannot-be-deleted-file-type-file-file-size-0/60d88d01-CD74-4f47-976e-f5d2cb3dc7a1 >

    Thank you Ganesh and Hetti.  I just finally deleted my ghost file.  I used the safe mode and cmd.

    I went into the directory of downloads in the BACK, the used command DIR / X to find out the name of the file.

    He was ~ 1 at the end of the file name.   I used DEL filename ~ 1 and the file disappeared.  I checked the

    trash and he wasn't there either.  I rebooted the computer and found no trace of the file.

    The controls were as follows,

    CD C:\users\my name\downloads

    dir / x (to find the full file name,)

    del (to remove the file)

    I could probably use alternative command

    del *. *.

    Thank you again and maybe it helps someone else.  I ran the control with the repair disc, but that did not remove the ghost file.  I could also not delete the downloads folder.  Create the same named file with 0 bytes not working anymore.  I tried the latest version of Mandrake then.

  • ODI-15005: data type "varchar" does not close in technology: file?

    Hello

    I created the interface that loads data from flat file (source) oracle (target).

    For this, I took LKM SQL FOR SQL and SQL TO ADD FILE IKM.

    Please check the source and target data types.

    [WORK REPOSITORY1] Oracle Data Integrator 11g  ORCL_TO_FLAT_2015-08-11_11-59-12.png

    When I am executing this interface, I get the error as

    ODI-15005: data type "varchar" does not close in technology: file.


    To resolve this error, I changed the types of flat file data.

    I went to the Manager of topology-> select technology of files-> data types: string - > orcle to the number data type.

    Even if I do not correct this error. Please help me.


    Thanks in advance,

    A.Kavya.

    Hello

    Can you please check what are the data types for the columns in your data target store. As you say it's a file, can you check if the data type for the two columns has the String value (and not varchar).

    Thank you

    Ajay

  • BLOB size/type of Java script file attachment limit

    How live validation for fixing shaped region.the following the code in global variable to the page attribute and set the static ID as ATT1 in region.its not fired?

    $('#ATT1').ready( function() {
        //check whether browser fully supports all File API
        if (window.File && window.FileReader && window.FileList && window.Blob)
        {
            //get the file size and file type from file input field as attachment Item
            var fsize = $('#P4_NWM_DOC_FILE_BINARY')[0].files[0].size;
            var ftype = $('#P4_NWM_DOC_FILE_BINARY')[0].files[0].type; 
           switch(ftype)
            {
                case 'image/pdf':
                case 'image/jpeg':
               
                    alert("Acceptable image file!");
                    break;
                default:
                    alert('Unsupported File!');
            }
        }
          else{
            alert("Please upgrade your browser, because your current browser lacks some new features we need!");
              }
    
    
          if(fsize>1048576) //do something if file size more than 1 mb (1048576)
             {
                alert(fsize +" bites\nToo big!");
            }
          else{
                alert(fsize +" bites\nYou are good to go!");
              }
       
         else{
            alert("Please upgrade your browser, because your current browser lacks some new features we need!");
            }
        }
    
    );
    

    Hi Ramani_apex,

    Changed your javascript function:

    function f_checkFileBrowse() {
        var errflag = 0;
        //check whether browser fully supports all File API
        if (window.File && window.FileReader && window.FileList && window.Blob) {
            //get the file size and file type from file input field as attachment Item
            var fsize = $('#P11_BLOB_BINARY')[0].files[0].size;
            var ftype = $('#P11_BLOB_BINARY')[0].files[0].type;
            //alert(ftype);
           switch(ftype)
            {
                case 'image/png':
                case 'image/jpeg':
                    alert("Acceptable image file!");
                    break;
                default:
                    alert('Unsupported File!');
                    errflag = 1;
            }
            if (!errflag > 0) {
              if ( fsize > 1048576 ) {
                //do something if file size more than 1 mb (1048576)
                alert(fsize +" bites\nToo big!");
              } else {
                alert(fsize +" bites\nYou are good to go!");
              }
            }
        } else {
          alert("Please upgrade your browser, because your current browser lacks some new features we need!");
        }
    }
    

    Note: There are a few typos and syntax errors because of which the above mentioned function did not work.

    Also removed the dynamic action and solved the above problem with the approach that I mentioned earlier.

    There is no MIME Type 'image/pdf', that's why he changed to "image/png".

    I hope this helps!

    Kind regards

    Kiran

  • My store of data of 16 TB limit of file size of 2 TB

    Hello.  We have just received a new Dell PowerEdge R630 server with ten 2 TB drives in what I set up as a RAID5.  It is a server that I use in our new site of DR and will be a replication target site.  In any case, I installed the latest version of ESXi on it and it attached to my new vCenter server and then naturally had the precaution to create a data store.  So, through the process of doing this, I noticed at the end it says that there is a maximum file size limit of 2 TB.  See the attachment for my screenshot of it.  I don't know why this is, and in my research, I read that TB 62 is the maximum now.  I'm completely something misunderstanding?  My main concern is that I must be able to replicate my VMs in my production environment, running on an EMC SAN with NFS storage, my DR site using this new server in the target data store.  Some of my production virtual machines have vmdk files more than 2 TB; which is a matter of concern for this reason.  Any advice would be great! Thank you, Adam

    What exactly is this "latest version of ESXi" you are talking about? On ESXi 5.5 and later versions, VMFS5 supports a maximum file size of 62 to

    According to the VMware KB:

    Support of the disks of VMS over 2 TB in VMware ESXi 5.5 (2058287) | VMware KB

    Block the size of a VMFS data store limitations (1003565) | VMware KB

    The limits that apply to VMFS-5 data storage are:

    The maximum size of virtual disk (VMDK) is 2 TB minus 512 B to ESXi 5.0 and 5.1. In ESXi 5.5, size is passed to 62TB.

    If you are on 5.5 or 6.0, then I think that it is simply a cosmetic display bug in the c# Client. Among other new features, the deprecated c# client limits you to create VMDK up to 2 TB. You must use the Web Client to create and manage a VMDK more 2 TB, so maybe it's an indication that remained from previous versions of Client.

  • The file size of data in Windows Server 2003 R2 x 64

    Hello

    I have an Oracle Database 10 g Release 10.2.0.4.0 - Production (single instance) on Windows Server 2003 Enterprise x 64 Edition, 64-bit of the IBM BladeCenter HS22.

    And I would like to know what is the maximum size that a database can reach in an environment like this?

    The real database, have 10 data files and each data file a giga bytes.

    Can someone help me!

    The maximum file size is determined by the block size. For a tablespace petit_fichier (which is almost certainly what you have), it is 4 M blocks, so if you use 8 K blocks (that you are almost certainly) the maximum size is 32 G. A bigfile tablespace can be blocks of 4 G.

  • Why the JPG file size decreases when Lightroom writes meta data?

    Lightroom uses the files sidecar XMP for meta data history for RAW files. When writing the metadata (e.g. tags) to JPG files, they are written directly in the header of the file. This should leave the image information in the file intact. However, the file size decreases (about 0.02 MB) when Lightroom writes metadata for the original JPG file. As far as I could see, the image information remain unchanged and no other information in the header is deleated, but why decreases the size of the file then (I expect to increase slightly or stay the same)? I work with RAW files for most but sometimes I just versions of the files to work with JPG and I don't want to lose any information.

    Thanks in advance for your answers.

    Kind regards

    me

    The number 13 in FAQ on the web site of ExifTool treats this effect:

    http://OWL.PHY.queensu.ca/~Phil/ExifTool/FAQ.html#Q13

  • Size of the numeric data type

    Hello

    Please can anyone suggest what will be the size allocated for a NUMBER data type in a table.

    When we question user_tab_columns all the table illustrates data_length 22 with the NUMBER data type.

    So what is the importance of accuracy on the size it takes to store data on the storage device?

    Please suggest...

    I think it depends on the values that you actually store and you can find with VSIZE.

    Please take a look at this article:

    http://asktom.Oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:1856720300346322149

    Published by: hm on 29.09.2011 05:33

Maybe you are looking for