Best data type to represent a file size

Hi All!
I have to create a table which holds details abou the files which process on a system and maintain the file name process, size of the file in byts, full path location the file is stores etc.
My question is what would be the best data type for a file size, currently the system proceess 4 GB files but I do not know whether this will expand so I need a data type which 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.
Regards, Shaamil.

user8706423 wrote:
Hi All!
I have to create a table which holds details abou the files which process on a system and maintain the file name process, size of the file in byts, full path location the file is stores etc.
My question is what would be the best data type for a file size, currently the system proceess 4 GB files but I do not know whether this will expand so I need a data type which 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.
Regards, Shaamil.Simple as Oracle did in v$datafile's BYTES field:
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

Similar Messages

  • What is the best data type to store XML string

    Hello all,
    If we want to store a XML string in oracle database table for some other program use what is the best data type that we can use in the table to store this XML string..
    Is it VARCHAR? or can we use BLOB type
    Anybody to help please
    Message was edited by:
    user483578

    If your XML data will not be larger than 4000 characters then use VARCHAR2 else CLOB. I don't see a need to use BLOB (unless your XML data contains binary information).

  • What is the best data type for wallet application?

    Hi Friends..
    I want to know what is the best data type for wallet application..
    Assume that, i want to the Total of money saved digitally in Applet Wallet..
    And then if there's any transaction the Total of money which saved digitally in Applet Wallet would be Subtracted or Added depends on how much money that spent or saved..
    Which one is the best implementation of these scenarios :
    1. I save the User ID and Total of money in the Java Card, and then if there's any transactions, it would be added or subtracted directly and then saved again in the Java Card
    2. Or.. I save the User ID in the Java Card whereas Total of money in the Database, and then if there's any transactions, the ID would be read from the Card, and then select the Database based on that ID, and then Add or Subtract the money depends on how much money spent in the Transaction
    Please help me regarding this
    Thanks in advance

    Hi,
    Personally I would choose to store the total amount stored on the card. You could use two shorts (short[] perhaps) to store an integer (add more shorts to increase precision) and simply handle overflow your self. You could even look into using a third party library (or class) that treats a byte array as a big integer etc. There were some posts recently on floating point arithmetic that could be helpful for you since you will probably want to use decimals and JC does not natively support floats.
    Cheers,
    Shane

  • How to write a data type into an excel file?

    Hi everyone,
    What I am trying to do is to get some data from MS SQL then write into an excel file.
    stmtExcel.executeUpdate("Insert into [Output$] (CustomerID, ProductID, [Date], OrderQty) Values(" + rsSQL.getInt("CustomerID") + ", " + rsSQL.getInt("ProductID") + ", '" + (rsSQL.getString("Date")).substring(0,10) + "', " + rsSQL.getInt("OrderQty") + ")");
    There is no problem to write into an excel file, however, after all data is imported, excel sheet treats the the integers or dates as Text format. The funny part is, after I double click one of the cells with an integer value, that cell's format will be changed to integer, same thing happens with the date type.
    I am wondering if there is any way I can write an integer or whatever type into an excel file, which excel can recognize their own types instead of Text format. Thank you so much in advance.
    Sincerely,

    Yes, use an API that supports such things, like Andy
    Khan's JExcel:
    http://www.andykhan.com/
    %Thanks, duffymo. I haven't tried it yet, but according to the website, it seems that is possible! thanks again!

  • Call a method with complex data type from a DLL file

    Hi,
    I have a win32 API with a dll file, and I am trying to call some methods from it in the labview. To do this, I used the import library wizard, and everything is working as expected. The only problem which I have is with a method with complex data type as return type (a vector). According to this link, import library wizard can not import methods with complex data type.
    The name of this method is this:   const std::vector< BlackfinInterfaces::Count > Counts ()
    where Count is a structure defined as below:
    struct Count
       Count() : countTime(0) {}
       std::vector<unsigned long> countLines;
       time_t countTime;
    It seems that I should manually use the Call Library Function Node. How can I configure parameters for the above method?

    You cannot configure Call Library Function Node to call this function.  LabVIEW has no way to pass a C++ class such as vector to a DLL.

  • What is the best seeting to export as smaller file size AVI from FCP?

    Hi, I know the topic sounds very similar to many of AVI post it had been up, however, somehow, I do not find the right answer that I'm looking for.
    I have a couple animation created from QT as "image sequence".
    I simply want to export as avi file.
    Here is the question I have.
    1. If I choose DV/DVCPRO-NTSC, and choose scan mode as Progressive, I get interlacing looking quality video.
    2. If I choose compressor type as "NONE" then even I set as "least" quality, the file size will be over 1G..although, that's the quality I'm trying to archive.
    Is there any other setting I can choose to get good quality with lower file size avi? I have seen or download avi file on the net with very good quality and still download-able file size...

    What is the QT method? (Export from QT Player?)
    Yes, 10 hour plus is ridiculous. I'm guessing that there was either something wrong with your Internet connection and/or at the You Tube end of the uploasd/compression process.
    Innocentius and Hugh are right; using Compressor (or MPEG Streamclip) and using YT's  uploader is the most reliable workflow.(Since Google changed the account verification process, there have been reports of upload problems using Share>You Tube.)  In addition, you have more control over the quality of your movie. You can create multiple custom settings in Compressor and then Share > Compressor custom settings. It will go faster if you export out of FCP as a Pro Res 422 file; should take 3-4 minutes top. The Web encode for a 3 minute video in Compressor might take 15 minutes, depending on your system. MPEG Streamclip is probably a little faster.
    Russ

  • How do I completely crop a PDF so that the cropped data is removed and the file size is reduced?

    How do I completely crop a PDF so that the cropped data is removed and the total file size is reduced?
    When I use the "Crop" function, the cropped data still remains in the file and there is no reduction in file size. I need a way to truly crop a PDF using Acrobat software.

    When you export, try to get the full file path or else you will have to do a lot of manual searching.
    If you downloaded the picture from Messages, the picture is stored in your User Library/Messages. to make your User Library visible, hold down the option key while using the Finder “Go To Folder” command. Enter ~/Library/Messages/Attachments. 
    If you prefer to make your user library permanently visible, use the Terminal command found below.
    http://osxdaily.com/2011/07/04/show-library-directory-in-mac-os-x-lion/
    You might want to bookmark the command. I had to use it again after I installed 10.8.4. I have also been informed that if you drag the user library to Finder it will remain visible.

  • Wrong data type when writing XML file

    We are trying to write an XML file from ODI but we get the following error:
    ODI-1217: Fallo de la sesión CMT_PAQ_CREA_XML (15001) con código de retorno 8000.
    ODI-1226: Fallo en el paso WRITE_XML_SCHEMA después de 1 intento(s).
    ODI-1232: Fallo en la ejecución del procedimiento WRITE_XML_SCHEMA.
    ODI-1228: Fallo en la tarea WRITE_XML_SCHEMA (Procedimiento) en el destino XML conexión CMTInCaMo.
    Caused By: java.sql.SQLException: Could not save the file D:\ODI\oracledi\XMLFiles\Cuentas11g.xml because a class java.sql.SQLException occurred and said: java.sql.SQLException: java.sql.SQLException: Wrong data type: type: <b>NUMERIC (2) expected: INTEGER value: 301000000232</b>
         at com.sunopsis.jdbc.driver.xml.SnpsXmlFile.writeToFile(SnpsXmlFile.java:740)
         at com.sunopsis.jdbc.driver.xml.SnpsXmlConnection.internalExecute(SnpsXmlConnection.java:713)
         at com.sunopsis.jdbc.driver.xml.SnpsXmlPreparedStatement.executeUpdate(SnpsXmlPreparedStatement.java:111)
         at com.sunopsis.sql.SnpsQuery.executeUpdate(SnpsQuery.java:665)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.executeUpdate(SnpSessTaskSql.java:3218)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execStdOrders(SnpSessTaskSql.java:1785)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java:2805)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2515)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:537)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:449)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1954)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:322)
         at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:224)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:246)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:237)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:794)
         at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:114)
         at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:83)
         at java.lang.Thread.run(Thread.java:619)
    The datastores have valid records but when we try to write them in the XML file it didn't work.
    ¿Can somebody help us?

    Thanks, let me give you an update:
    The datatype of the element is defined as follows:
              <xs:element name="AcctNo" minOccurs="1" maxOccurs="1">
                   <xs:simpleType>
                        <xs:restriction base="xs:string">
                             <xs:maxLength value="60"></xs:maxLength>
                        </xs:restriction>
                   </xs:simpleType>
              </xs:element>
    The ODI reverse ingeneering has created the column as VARCHAR(255). I think this ok, because XML driver doesn't takes in account the xsd element defined length.
    We have checked the XSD and is valid.
    In the other hand, I must say that we have created an interface that is loading data into the corresponding datastore without any problem but we couldn't generate an XML file from it.
    Any other advice?

  • Best data type in mySQL for an Image

    What would be the preferred data type in mySQL to store an image
    (jpeg or png)?
    I would think BLOB would serve this purpose best.
    Who is currently doing this and what data type are you using?
    Regards,
    Scott

    Hi GIlly,
    well, we all agreed that the best field type in which to store the image
    would me a blob. I still have not succeeded in storing an actual image
    in  MySQL database (see my post of July 4th).
    UbuntuPenguin has been giving me some ideas but  I can't get
    an image written to the DB. The trick is to encode the image into
    a byteArray and I have code for that and for the decode of the
    image when reading from the database.
    If you take the encoded byteArray and copy it by hand into a blob
    field in MySQL every thing is fine. I just can't get an HTTP service
    call to do it.
    Regards,
    Scott

  • Getting error "Invalid or no mapping to system data types found" after sending file

    Dear Experts,
    I am successfully able to send file from client to gateway using "CREATE_STREAM". After request is completed i am receiving reponse like this
    "Invalid or no mapping to system data types found". I dont know where i went wrong.
    Did anyone experience same issue?
    Pleases suggest.
    Regards
    Prabaharan

    Hi Peter,
    Good to know that it helped you.
    Problem i am having is I dont have this method "SET_AS_CONTENT_TYPE( )" in class "/IWBEP/IF_MGW_ODATA_PROPERTY" because of my SAP Gateway system SP release level is less.
    So i wasn't able to use this snippet.
    IF lo_entity is BOUND.
      lo_property = lo_entity->GET_PROPERTY( IV_PROPERTY_NAME = 'ContentType' ).
      lo_property->SET_AS_CONTENT_TYPE( ).
    ENDIF.
    Is this the reasin i am not getting correct XML response back?
    Regards
    Prabaharan

  • What is the best way to reduce a .mov file size

    I had a music DVD that I converted to a .mov so that I could cut and paste in QT pro which i have done.
    Now I have a .mov file that is 46 gigabits in size and I want to reduce it considerably without ruining the quality of sound or visual.
    Whats the best way to do this.
    Thanks

    punt

  • I have 1920x1080 files to edit in iMovie to show on large movie screen for charity event what is best frame rate and best save option for quality versus file size?

    I shoot a lot of HD video of my kid, and at first I struggled to find a good balance between maintaining the full-resolution original footage and having something a little more reasonable and lightweight to work with. For example, even on my one-year-old iMac, I can't smoothly scrub the full HD video clips in the editor -- but if the clips have been 'optimized' to 960 x 540, they're smooth as butter (and still look good enough for almost every output scenario).
    If, when you're importing the original footage, you enable the "Optimize video" checkbox, you'll get the lightweight version in your event library, but you won't get a copy of the orignal footage as well. It'll still be on your camera (or wherever else you put it before heading to iMovie), but that's not very helpful.
    If you're using iMovie '09 (v.8) or '11 (v.9), there's a decent way to do this that isn't terribly obvious.
    So here's what I do:
    When importing the original footage, disable the 'Optimize video' checkbox, and select the 'Move files' radio button. This will move the full HD clip into /[selected volume]/iMovie Events/[event title]. (Or you can use 'Copy files' and get the same end result.)
    Select the new event in the Event Library in iMovie, and go to File » Optimize Video » Large -- 960x540 (or 'Full,' which is still going to be more compressed than the original HD, but at the same resolution; I find 'Large' to be just fine for my needs, though).
    That second step takes the original HD clip that was in /[selected volume]/iMovie Events/[event title] and moves it into /[selected volume]/iMovie Original Movies/[event title], and then puts the optimized version into /[selected volume]/iMovie Events/[event title].
    Now you've got a fully organized directory structure containing all of your original HD footage, sorted by event, plus an Event Library full of nice lightweight versions for quick editing and exporting.

    Thanks for that info! Even in my time answering questions on iMovie Discussion Group, I never had a good understanding of when and how Optimize Movie came into play. I always would import as Optimized and Large Size and figured that was good enough. But knowing you got much, much more flexibility doing it the way you describe gives me a much better understanding of the different routes you can take into the Event Library.

  • Best trade-off... File size vs. video quality

    For several years, I have been creating a .WMV format video file after recording our church's Sunday sermon (using Premiere Pro).  Today, for example, I processed the 40 minute sermon down to a 40MByte .WMV file with "decent" quality.  The only problem has been that folk who come to our website (sermons are at http://www.calvarychristianchurch.org/index.cfm?fuseaction=dspSermonSeries, if anyone wants to see the current video quality or lack thereof) using a Mac don't seem to be able to play the file WITH SOUND (the video portion works fine)!  So, I'm looking to go to another format, but I would REALLY welcome suggestions as to what would be to best format to get at least as good video quality in a file not TOO much larger than my current .WMVs, that is playable both in WMPlayer on the PC and in whatever the comparable player is on the Mac (I presume QuickTime, but haven't played with a Mac in YEARS, so don't know...)!
    I'm using PPro CS5.5 with an Intel i5 processor, if that helps any.  Oh, one last parameter...  Currently my computer crunches the files in 15-20 minutes.  I could go lnger if I >had< to do so, but would prefer not having to wait forever!
    Thanks in advance!
    - Jim 8^)

    BH,
    Just a quick response...  The minister is wearing a wireless mic, so no boom mic is needed.  I may not have given the recorded video's audio track enough gain, however.
    Thanks!

  • Data type of preprend array size in Flatten To String block

    Hi 
    The data type of the preprend array size in Flatten To String block is given as I32. Is it somehow possible to reduce the data type to I8, since the width and height of my array won't exceed 255 ?. I also need to do the same in Unflatten To String as well. 
    Best regards
    Oesen

    Oesen wrote:
    Hi 
    The data type of the preprend array size in Flatten To String block is given as I32. Is it somehow possible to reduce the data type to I8, since the width and height of my array won't exceed 255 ?. I also need to do the same in Unflatten To String as well. 
    The short answer is no.  This is because the index is an I32.  NI likes to keep integers as an I32 whenever possible for reasons like this.
    Since you are dealing with a 2D array (width and height), it will actually use 2 I32s before the actual data.
    As Ravens stated, you could put in your own array sizes before the array in the string.  But it is worth saving 6 bytes?  Not likely.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • When bouncing- what's best method for smallest file size/highest quality?

    I am in the process of embedding 3 mp3's into a PDF to submit as a portfolio. The PDF also has text, and two scores included, and with the 3 embedded mp3's it can't be more than 10mb.
    So my question is: When bouncing a project out of Logic, what is the best method for getting the smallest file size, but retaining the best audio quality? And once it's out of Logic and it is an mp3 or other type of audio file, is there a best format for compressing it further, and still maintaining the relative quality?
    I bounced out the three projects into wav's. Now I am using Switch for Mac to compress them down to smaller Mp3's. I basically need them to be about 3 mb each. Two of the recordings sound OK at that size, but they are just MIDI(one project is piano and string quartet, the other is just piano- all software instruments. The recording that combines MIDI and Audio and has more tracks (three audio tracks and 10 Midi/software instrument tracks)and sounds completely horrible if I get it under 5 mb as an mp3. The problem is that I need all three to equal around 9mb, but still sound good enough to submit as a portfolio for consideration into a Master's program.
    If anyone can help I would really appreciate it. Please be detailed in your response, because I am new to logic and I really need the step by step.
    Thank you...

    MUYconfundido wrote:
    I am in the process of embedding 3 mp3's into a PDF to submit as a portfolio. The PDF also has text, and two scores included, and with the 3 embedded mp3's it can't be more than 10mb.
    So my question is: When bouncing a project out of Logic, what is the best method for getting the smallest file size, but retaining the best audio quality?
    The highest bitrate that falls within your limits. You'll have to calculate how big your MP3's can be, then choose the bitrate that keeps the size within your limit. The formula is simple: bitrate is the number of kilobits per second, so a 46 second stereo file at 96 kbps would be 96 x 46 = 4416 kbits / 8* = 552 kBytes or 0.552 MB. (*8 bits = 1 Byte)
    So if you know the length of your tracks you can calculate what bitrate you need to keep it within 10 MB total.
    I consider 128 kbps the lowest bearable bitrate for popsongs and other modern drumkit based music. Deterioration of sound quality is often directly related to the quality of the initial mix and the type of instruments used in it. Piano(-like) tones tend to sound watery pretty quickly at lower bitrates, as do crash and ride cymbals. But don't take my word for it, try it out.
    And once it's out of Logic and it is an mp3 or other type of audio file, is there a best format for compressing it further, and still maintaining the relative quality?
    You can only ZIP the whole thing after that, but that is just for transport. You'll have to unzip it again to use it. And no, you cannot compress an MP3 any further and still play it.
    I bounced out the three projects into wav's. Now I am using Switch for Mac to compress them down to smaller Mp3's.
    That is silly, you could have done that in Logic, which has one of the best MP3 encoders built in. And how good encoders are will especially come out at bitrates around or below 128, which you might be looking at.
    I basically need them to be about 3 mb each.
    So, one more scrap of info we need here: how long are those three pieces, exactly? I'll calculate the bitrate for you - but please bounce 'm directly out of Logic as MP3's. They will very probably sound better than your WAV-conversions made with Switch.
    !http://farm5.static.flickr.com/4084/4996323899_071398b89a.jpg!
    Two of the recordings sound OK at that size, but they are just MIDI(one project is piano and string quartet, the other is just piano- all software instruments. The recording that combines MIDI and Audio and has more tracks (three audio tracks and 10 Midi/software instrument tracks)and sounds completely horrible if I get it under 5 mb as an mp3. The problem is that I need all three to equal around 9mb, but still sound good enough to submit as a portfolio for consideration into a Master's program.
    Length of the piece? And does the .Wav bounce you have sound OK?

Maybe you are looking for

  • How to change font size in nokia asha 309

    guys wanna ask how do we change the font size in nokia asha 309?

  • Execute BDC by xi scenario

    HI all, I have a requirement in which I have to execute BDC in ECC5.0 system, this is to be automatically done once the xi scenario is configured in XI Development server. In otherwords, once xi scenario is executed succesfully in xi development serv

  • See if this problem sounds familiar, cause I need HELP!

    Ive had my Ipod since about June and everything has worked fine on it, but Ive sinced moved and unhooked my computer for awhile..I was using tthe Ipod at work and home on other computers and everything worked great, now I set up the computer again, g

  • IPhone will not charge

    I've had my 3GS for three days and actually activated it yesterday. I let the battery run down, so that I could charge it as I do for all rechargable electronics I own. However, this time, my iPhone will not come back on. It has the charging bolt but

  • Trying to increase HD space...

    Hi, I'm using a 2006 60 gig white Macbook. Its running Snow Leopard. I have moved absolutely everything that I can possibly think of over to a terabyte hard drive. So the only things that are on this Macbook are the Apple Apps that came with it. Ok t