How much space a Date , time , TimeStamp column occupy?
Hi
what is size of a Date , Time and TimeStamp type ?
i mean how much bytes they require ?
Thanks
Apologies if this posts more than once. I got server errors.
Laurent:
Sysdate and systimestamp are actually different types than a date or timestamp column.
SQL> CREATE TABLE dt (dt DATE, ts TIMESTAMP);
Table created.
SQL> INSERT INTO dt VALUES(sysdate, systimestamp);
1 row created.
SQL> COMMIT;
Commit complete.
DUMP(DT)
Typ=12 Len=7: 120,106,6,2,17,43,10
SQL> SELECT DUMP(ts) FROM dt;
DUMP(TS)
Typ=180 Len=11: 120,106,6,2,17,43,10,28,185,249,48
SQL> SELECT DUMP(sysdate) from dual;
DUMP(SYSDATE)
Typ=13 Len=8: 7,214,6,2,16,50,17,0
SQL> SELECT DUMP(systimestamp) from dual;
DUMP(SYSTIMESTAMP)
Typ=188 Len=20: 7,214,6,2,20,50,30,0,48,111,78,168,252,0,5,0,0,0,0,0I seem to recall reading somewhere that sysdate is actually a representation of the C struct_t time structure, while a date column is Oracle's internal format. It looks like something similar is going on with systimestamp, and with the date and timestamp casts you are doing.
The inserts into the table above were done minutes before the selects, but definitely within the same hour. The byte values have no correlation, between the date field and sysdate, nor between the timestamp field and systimestamp, while the the date and timestamp fields are identical to the second. Similarly, the sysdate and systimestamp dumps are identical to the second.
The vsize function reports the physical storage required for the expression passed. My guess would be that it is implicitly casting sysdate and systimestamp to the equivalent internal representation before calculating the size.
John
Similar Messages
-
How do I find out how much space left on Time Capsule?
Hi,
Tried looking at Info but doesn't show me the size of the Time Capsule or how much space have left. Any ideas please? ThanksI followed this thread to System Preferences and to Time Machine, but the space available does not show. I have another external drive that does show its available space but the Time Capsule does not.
Any suggestions? I know it is working because my hard drive recently crashed and I was able to restore everything through Time Capsule. -
How much space per second does video recorded at 240fps or 120fps on an iPhone 6 Plus occupy?
iPhone 6 Plus 128GB
iOS 8.1 (non-Jailbroken)
Native iPhone camera app
I've been taking a lot of slow motion videos since upgrading from an iPhone 4S. I'm curious as to how much space each of my clips are occupying. The usual trick to "email" the file did not work for me.
Thank you all in advance for your help.The engineers of Apple,I bought the iPhone 6 plus,when you restore from a backup phone constantly restarts,i.e falls!After six days of constant torment,I found out that this happens just when I begin to return to their 1100 applications in the phone!Somewhere on 780 application,the phone starts to reboot!Fix this serious bug!I can't use the phone for a week!Make it possible to install in the phone a large number of applications more than 1200 pieces!I want to say that I waited a long time model to 128 GB,and why so much memory,if you can not put so many apps!I ask forgiveness for texta English,it is through the translator!
Put IOS 8.1 beta,put it along the way making up this reserve iphone 6 plus after lags and reboots!Look what happens! -
How much space used by App + Data
Is there any way to determine how much space is used by each app including it's data?
I have estimated how much space my apps should be occupying and it's 2 GB less that what iTunes shows. I can only assume that one ore more of my apps is taking up much more space that I think it would. I do have an app that is storing lots of photos. After estimating the total size based on the size and number of photos and talking to the developer it does not account for the missing space. The best thing is to actually see true app sizes with their data but I can't figure out how.
ThanksHI Steve,
I do have an app that is storing lots of photos.
Something to keep in mind when syncing photos. When syncing photos to iPad, iTunes automatically creates a size optimized for iPad, if necessary. See “Syncing with iTunes” on page 28 from the iPad online user guide available here.
http://manuals.info.apple.com/enUS/iPad_UserGuide.pdf
That could make a difference in the space available on your iPad.
The best thing is to actually see true app sizes with their data but I can't figure out how.
Try resizing images on your computer first, then sync to iPad. If you are PC / Windows, help here:
http://windows.microsoft.com/en-US/windows-vista/Resize-photos-in-Windows-Live-P hoto-Gallery
Carolyn -
How much space on Time machine?
Okay, so I'm totally new to this, and don't know much about anything.
How do I check how much space I have left on my time Machine?
Had a PC before, where I just went to 'My Computer' then checked whichever drive I wanted to check space on. Is there a similar way to check this on the time machine?Gems_ca wrote:
Okay, so I'm totally new to this, and don't know much about anything.
How do I check how much space I have left on my time Machine?
Had a PC before, where I just went to 'My Computer' then checked whichever drive I wanted to check space on. Is there a similar way to check this on the time machine?
It's similar to Windows. Right-click on a desktop disk icon, TM for example, and select "Get Info"
You will get all the information about the drive you need. -
How to insert varchar2 value in timestamp column in table?
Hi all,
Hope doing well,
sir i am using one stored procedure and storing time in varchar2 variable in this format: 08:00:00
now i have to insert this value in timestamp column in table. how to insert this value in timestamp column?
thanks952646 wrote:
Hi all,
Hope doing well,
sir i am using one stored procedure and storing time in varchar2 variable A "Very Bad Idea"(tm)
When you do this, there is no fundamental difference between "08:00:00" and "here's your sign".
Data should always be stored in the correct data type. For dates and times, that data type is either DATE or TIMESTAMP. Period.
in this format: 08:00:00
now i have to insert this value in timestamp column in table. how to insert this value in timestamp column?
Hopefully as remediation to the original bad design.
thanks -
How can I display date+time and not the point number in excell?
Hi everyone,
Could anybody tell me how I can save date + time to a file, so that I can display on a diagram(excel) : date+time in (ox) and data (oy)? :
My program sets in (ox) the point number and not the date+time....( although date and time are written correctly in the column...)
Any help would be great,
Thanks,
regards,
Marchi there,
excel uses 01.01.1900 00:00 as the time offset, LabVIEW uses 01.01.1904 02:00, so you can't display the correct datetime in excel when you write the time as a fractional number of seconds from LabVIEW. you must format the datetime in LabVIEW to a string and write that to the column. use the "Format Date/Time String" - function and for example "%d.%m.%Y %H:%M:%S%3u" as the format string (see the functions help for more examples). you also could format your data to a string using "Format Into String" - function and write the file as a 2D string array. the decimal point you have to use depends on your system and its settings, but you can specify the decimal point in the Format string like "%.;%f" (means fractional number with point as decimal point).
best regards
chris
Best regards
chris
CL(A)Dly bending G-Force with LabVIEW
famous last words: "oh my god, it is full of stars!" -
How do I see a detailed view of what's on my hard drive and how much space it's consuming?
I have an early 2007 iMac (3GB RAM) and a 320 GB hard drive. I'm trying to clear some of the programs and files I don't need to free up space, but I'm not sure how to get a similar look at my files and how much space they take up individually (as I would with a PC). Under system info I'm able to get the high-level overview, but how do I see a detailed view that I can then edit?
Thanks for your help. I did just that and was able to get a much better view with OmniDiskSweeper. I was shocked to find that my MobileSync files were 125 GB of about 270 being used! Guess I shouldn't be surprised with 4 iPhones and 4 iPads syncing to the same iMac at one time or another -- just kind of surprised Apple/iTunes doesn't make it any clearer that this can turn into a big problem if you don't initially create the appropriate backup settings for your devices. Thanks again!
-
How do I find out how much space OSX and applications are taking up on my HDD?
I am thinking of moving my OS and all applications to a SSD to free up space on my MBP.
My question is how do I find out how much space OSX and installed applications are taking up on my HDD so I know how big the SSD needs to be? Also, what is the best way to move these files across to the new SSD once installed?
Many thanks,
Andrew.If you do command-click or right click on your hard drive and select get info, it will tell you how full the HD is.
there are some apps that can show you exactly how big particular apps are
GrandPerspective
Disk Inventory X
I replaced my internal drive with a SSD for performance reasons a few months ago. There are a number of ways to move your files over to the new SSD. I am a fan of the clean install, which might take a bit more time and effort but results in a very fast and trouble free mac. An easy way to do this if you are replacing your internal drive is to put the old drive in an external drive enclosure. Then you install the new SSD and install mavericks on it. In my case I used Diskmaker X to make a Mavericks installer (DiskMaker X (formerly Lion DiskMaker) . Then you can reinstall your apps from scratch, and finally move your documents over from the external drive. -
How to find out how much space is left
Hi,
I know Oracle XE has a 4GB user data limit, and a 5GB overall limit. Using APEX you can find out how much space is left via the administration section.
I'm going to upgrade to APEX 3.0 for testing. However APEX 3.0 will not show me how much space I have left since it's not explicitly written for Oracle XE. What query can I run to find out how much space I have left?
Thanks,
MartinThe following should give you the same results as XE administration => storage :
select total, allocated, 100 - allocated / total * 100 percent_free
from (select 5120 total, sum(bytes)/1024/1024 allocated
from dba_data_files
where tablespace_name != 'UNDO') -
I did an iphone 4 software update. It then asked me to do a "restore" in order for me to be able to use the latest iTunes. I did a "restore" to "factory settings" (this was the only option listed) thinking I'd be able to sync later and get everything back and ended up losing all my purchased apps and iTunes. When I open iTunes, "Welcome to your new iphone" and it says I can re-do the "restore" and choose my lastest update. I assume this will give me back my apps and iTunes. When i choose to do this, it says there isn't enough space on the iPhone. How do I know how much space needs to be freed up? I keep deleting photos and videos from the phone, but I'm still getting the same message every time I re-try. I don't want to delete everything, but I don't know what to do...? Thanks!
Thanks but I think it has something to do with the 'restore'. in the newest iTunes 11, when I click on the tab "iphone", it redirects me to the "welcome to your new iphone" page and asks about doing a 'restore'. I already did a 'restore', but it went to the original factory settings and I want to 'restore' to my lastest back up as of April 12. When I choose that option, it says my iphone doesn't have enough space. I don't know how much I need to delete in order to make it work. I've deleted lots, but it only has 4.1 GB available. I'm not sure why this isn't enough to do a 'restore'. I don't want to delete all my photos and videos, but maybe I will have to?...7.7GB is used up for that. I can't sync or do ANYTHING...
-
APEX CSS - How do I get data in report columns to wrap?
I found information here http://www.orafaq.com/wiki/APEX_FAQ
About How do I get data in report columns to wrap?
This works and another way to do it is by adding the CSS directly into the
Home>Application Builder>Application 137>Page 1>Report Attributes>Column Attributes page
in the Column Formatting area. I added 'white-space:normal' and this works in FF but in
IE it has a different behavior.
In FireFox
testasdgadhad
gadfadgadgadg
adgafhsrgjsgnsfg
nsdfbadfafhafha
dfhadfh
In Internet Explorer
testasdgadhad gadfadgadgadg adgafhsrgjsgnsfg nsdfbadfafhafha dfhadfh
Is there a way to force it so it display in IE the same way that it displays in FF?
The correct display format is FF.
Thanks,
Nestor :)I have try this because I found it during a search and it makes no difference in IE.
This is what I am using now 'display: block; width: 100px;max-width:100px;white-space:normal'
I also tried 'display:block; width:500px'
If I use the values 'normal' or 'pre' for white-space' it works in FireFox but not in IE, The display block
does not seem to make a difference. It seems that all I need is 'white-space:normal' but again
it does not works on IE.
Thanks,
Nestor :-) -
How can you tell how much space is taken by checked items?
I have a large iTunes library (over 270 gb) and managed what goes onto my 160 gb iPod using the checked items. It took me a long time to get it right and I would make changes (unchecking items) to accomodate new songs as I loaded them. Somehow recently I managed to lose that information so that now everything is checked and I need to start all over. So two questions:
Is there anyway to "recover" what had been checked/unchecked at a given point in time?
And, what would be most useful, is there anyway to track the amount of space taken by checked items?
As to the last question, currently at the bottom is a status bar that tells you how many items, how much space and how many (days/hours) are taken by the full library. It would be incredibly useful if that status bar also included the same information for checked items. It would make it so much easier to manage the iTunes library content.As above use playlists. If you really need to recover the checked/unchecked status from earlier in time then I have a script that can be tweaked to do this called ExportImport, as long as earlier in time is the last time your library database got archived into the Previous iTunes Libraries folder. It is currently set up to export and then import playcounts, but adapting it to do Checked would be quite easy.
tt2 -
How much space does JNI_CreateJavaVM
Many of us who try to intialize Java inside another processes address space find problem with space, e.g., we get inexplicable ENOMEM's returned from the JNI_CreateJavaVM call. Apparently, the problem is that the VM needs contiguous address space. But, how does it determine how much it needs?
Consider the solution in [S. Carlson's post|http://forums.sun.com/thread.jspa?threadID=5403763&tstart=0] . This solution looks for a contiguous block of memory large enough to hold the Permanent Generation (+-XX:MaxPermSpace+) space and the maximum heap (+-Xmx+) space. But it doesn't work. I'm guessing this is because the VM wants to put other stuff into that address space. My question is: What? And how do I decide how much space it wants?
Conversely: What would happen if I iterate over the CreateJavaVM call, reducing the space requirement, until it worked? Would that work? I intend to try it, but I'm hoping somebody might tell me if it's a good idea before I waste my time.Conversely: What would happen if I iterate over the CreateJavaVM call, reducing the space requirement, until it worked? Would that work? I intend to try it, but I'm hoping somebody might tell me if it's a good idea before I waste my time.That won't work because CreateJavaVM sets a flag that indicates whether or not the vm creation can be re-attempted. In the case of ENOMEM, it cannot. The second attempt to call CreateJavaVM will return -1.
-
How much space does a blob use?
How much space does a BLOB use?
Does it use allocated anyspace if its empty?It will size appropriately:
TEST.SQL>CREATE TABLE TBLOB
2 (
3 A BLOB
4 ) TABLESPACE _SANITIZED_;
TABLE CREATED.
TEST.SQL>SELECT INITIAL_EXTENT FROM DBA_TABLESPACES WHERE TABLESPACE_NAME='_SANITIZED_';
INITIAL_EXTENT
5242880
TEST.SQL>SELECT * FROM DBA_EXTENTS WHERE SEGMENT_NAME='TBLOB';
OWNER SEGMENT_NAME PARTITION_NAME SEGMENT_TYPE
TABLESPACE_NAME EXTENT_ID FILE_ID BLOCK_ID BYTES BLOCKS RELATIVE_FNO
YJAM TBLOB TABLE
_SANITIZED_ 0 16 1201289 5242880 640 16
TEST.SQL>SELECT * FROM DBA_OBJECTS WHERE CREATED > SYSDATE-1;
OWNER OBJECT_NAME
SUBOBJECT_NAME OBJECT_ID DATA_OBJECT_ID OBJECT_TYPE CREATED LAST_DDL TIMESTAMP STATUS T G S
YJAM SYS_LOB0000920875C00001$$
920876 920876 LOB 14:41:36 14:41:36 2005-11-16:14:41:36 VALID N Y N
YJAM TBLOB
920875 920875 TABLE 14:41:36 14:41:36 2005-11-16:14:41:36 VALID N N N
TEST.SQL>SELECT * FROM DBA_EXTENTS WHERE SEGMENT_NAME='SYS_LOB0000920875C00001$$';
OWNER SEGMENT_NAME PARTITION_NAME SEGMENT_TYPE
TABLESPACE_NAME EXTENT_ID FILE_ID BLOCK_ID BYTES BLOCKS RELATIVE_FNO
YJAM SYS_LOB0000920875C00001$$ LOBSEGMENT
_SANITIZED_ 0 16 1202569 5242880 640 16
TEST.SQL>DECLARE
2 VALINS VARCHAR2(4000);
3 BEGIN
4 VALINS:='1';
5 FOR I IN 1..100000
6 LOOP
7 INSERT INTO TBLOB VALUES (RPAD(VALINS,4000,'0'));
8 END LOOP;
9 END;
10 /
PL/SQL procedure successfully completed.
TEST.SQL>COMMIT;
Commit complete.
TEST.SQL>SELECT * FROM DBA_EXTENTS WHERE SEGMENT_NAME IN ('SYS_LOB0000920875C00001$$','TBLOB');
OWNER SEGMENT_NAME PARTITION_NAME SEGMENT_TYPE
TABLESPACE_NAME EXTENT_ID FILE_ID BLOCK_ID BYTES BLOCKS RELATIVE_FNO
YJAM TBLOB TABLE
_SANITIZED_ 0 16 1201289 5242880 640 16
YJAM TBLOB TABLE
_SANITIZED_ 1 17 1169929 5242880 640 17
YJAM TBLOB TABLE
_SANITIZED_ 2 18 1163529 5242880 640 18
YJAM TBLOB TABLE
_SANITIZED_ 3 19 1176969 5242880 640 19
YJAM TBLOB TABLE
_SANITIZED_ 4 5 379529 5242880 640 5
YJAM TBLOB TABLE
_SANITIZED_ 5 14 375689 5242880 640 14
YJAM TBLOB TABLE
_SANITIZED_ 51 18 1172489 5242880 640 18
YJAM TBLOB TABLE
_SANITIZED_ 52 19 1191689 5242880 640 19
YJAM SYS_LOB0000920875C00001$$ LOBSEGMENT
_SANITIZED_ 0 16 1202569 5242880 640 16
54 rows selected.
TEST.SQL>ANALYZE TABLE TBLOB COMPUTE STATISTICS;
Table analyzed.
TEST.SQL>SELECT * FROM DBA_TABLES WHERE TABLE_NAME='TBLOB';
OWNER TABLE_NAME TABLESPACE_NAME CLUSTER_NAME IOT_NAME PCT_FREE PCT_USED
INI_TRANS MAX_TRANS INITIAL_EXTENT NEXT_EXTENT MIN_EXTENTS MAX_EXTENTS PCT_INCREASE FREELISTS FREELIST_GROUPS LOG B NUM_ROWS BLOCKS EMPTY_BLOCKS AVG_SPACE CHAIN_CNT
AVG_ROW_LEN AVG_SPACE_FREELIST_BLOCKS NUM_FREELIST_BLOCKS DEGREE INSTANCES CACHE TABLE_LO SAMPLE_SIZE LAST_ANA PAR IOT_TYPE T S NES BUFFER_ ROW_MOVE GLO USE
DURATION SKIP_COR MON CLUSTER_OWNER DEPENDEN COMPRESS
YJAM TBLOB _SANITIZED_ 10
1 255 5242880 5242880 1 2147483645 0 YES N 100000 33547 373 1977 0
2042 0 0 1 1 N ENABLED 100000 14:51:22 NO N N NO DEFAULT DISABLED NO NO
DISABLED NO DISABLED DISABLED
TEST.SQL>SELECT BYTES/1024 FROM DBA_SEGMENTS WHERE SEGMENT_NAME='TBLOB';
BYTES/1024
271360
TEST.SQL>TRUNCATE TABLE TBLOB;
Table truncated.
TEST.SQL>BEGIN
2 FOR i IN 1..100000
3 LOOP
4 INSERT INTO TBLOB VALUES ('1');
5 END LOOP;
6 END;
7 /
PL/SQL procedure successfully completed.
TEST.SQL>COMMIT;
Commit complete.
TEST.SQL>ANALYZE TABLE TBLOB COMPUTE STATISTICS;
Table analyzed.
TEST.SQL>SELECT BYTES/1024 FROM DBA_SEGMENTS WHERE SEGMENT_NAME='TBLOB';
BYTES/1024
5120Note: there is a deported blob segment for the pointers I forgot in my previous post.
HTH,
Yoann.
Message was edited by:
Yoann Mainguy
Hmm, forgot that for a full comparison of the avg linesize:
TEST.SQL>SELECT * FROM DBA_TABLES WHERE TABLE_NAME='TBLOB';
OWNER TABLE_NAME TABLESPACE_NAME CLUSTER_NAME IOT_NAME PCT_FREE PCT_USED
INI_TRANS MAX_TRANS INITIAL_EXTENT NEXT_EXTENT MIN_EXTENTS MAX_EXTENTS PCT_INCREASE FREELISTS FREELIST_GROUPS LOG B NUM_ROWS BLOCKS EMPTY_BLOCKS AVG_SPACE CHAIN_CNT
AVG_ROW_LEN AVG_SPACE_FREELIST_BLOCKS NUM_FREELIST_BLOCKS DEGREE INSTANCES CACHE TABLE_LO SAMPLE_SIZE LAST_ANA PAR IOT_TYPE T S NES BUFFER_ ROW_MOVE GLO USE
DURATION SKIP_COR MON CLUSTER_OWNER DEPENDEN COMPRESS
YJAM TBLOB _SANITIZED_ 10
1 255 5242880 5242880 1 2147483645 0 YES N 100000 628 12 1223 0
41 0 0 1 1 N ENABLED 100000 14:56:56 NO N N NO DEFAULT DISABLED NO NO
DISABLED NO DISABLED DISABLED
Maybe you are looking for
-
I have the serial number of my recently purchased software from a store but no DVD player to install. Is there another way to install my purchased product?
-
In my work environment we save and keep all files on our servers (windows). When i try to save a PS file on the server, I get a promt telling me " Could not save because the file name was not valid". The file name is test.jpg - no strange characters
-
I cannot download itunes. I get error messages R6034
I cannot download itunes onto my computer. I get error messages R6034 & 71114
-
Parameter passing from servlet to jsp page
Hi I m facing problem of parameter passing from servlet to jsp .. plz help me... I m using as ... in servlet code I m using ... request.setAttribute("string",parameter); and in jsp.. request.getParameter("string"); regard's JAI KUMAR
-
HP Pavilion p6700z windows 7 64bits
problem Blue srceen code # 1033 (c:\windows\mindump\012113-31761-01.bmp) shutdown need help to fix this problem