Oracle 11.2.0.3 - Lob space usage
Hi Everyone,
I would like some advise about how to interrupt LOB space usage given the following statistics. And would appreciate any feedback on whether my understanding of the following is correct:
We have a table with BLOB column which is located on a LOB segment.
This the DDL to create the table and the LOB:
CREATE TABLE BLOB_TEST
TEST_ID NUMBER NOT NULL,
TEST BLOB
LOB (TEST) STORE AS (
TABLESPACE USERS
ENABLE STORAGE IN ROW
CHUNK 8192
RETENTION
NOCACHE
LOGGING
STORAGE (
INITIAL 64K
NEXT 1M
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
BUFFER_POOL DEFAULT
FLASH_CACHE DEFAULT
CELL_FLASH_CACHE DEFAULT
TABLESPACE USERS
RESULT_CACHE (MODE DEFAULT)
PCTUSED 0
PCTFREE 30
INITRANS 10
MAXTRANS 255
STORAGE (
INITIAL 64K
NEXT 1M
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
BUFFER_POOL DEFAULT
FLASH_CACHE DEFAULT
CELL_FLASH_CACHE DEFAULT
LOGGING
NOCOMPRESS
NOCACHE
NOPARALLEL
MONITORING;
The statistics for this table is as follows:
The size of the test blob is:
A.
select sum(dbms_lob.getlength (test))/1024/1024 mb from BLOB_TEST
= 4860 mb
Space above HWM ( using dbms_space.unused_space):
B.
TOTAL_BLOCKS = 778368
TOTAL_BYTES = 6376390656
UNUSED_BLOCKS = 0
UNUSED BYTES = 0
LAST_USED_EXTENT_FILE_ID = 12
LAST_USED_EXTENT_BLOCK_ID = 3383296
LAST_USED_BLOCK = 8192
Space below HWM (using dbms_space.used_space):
C.
TOTAL_BLOCKS = 778368
TOTAL_BYTES = 6376390656
UNUSED_BLOCKS = 0
UNUSED BYTES = 0
LAST_USED_EXTENT_FILE_ID = 12
LAST_USED_EXTENT_BLOCK_ID = 3383296
LAST_USED_BLOCK = 8192
Unformatted Blocks = 0
FS1 Blocks = 0
FS2 Blocks = 0
FS3 Blocks = 0
FS4 Blocks = 0
Full Blocks = 777114
Using the above, this is what I'm interrupting and need your help on this to make sure that this is right.
From A, the total size of the test blob data is: 4806 MB.
From B, the amount of free space ABOVE HWM is 0. This is because there is 0 in the unused_blocks.
From C, the amount of free space BELOW HWM is 0, because all the FS's are 0 and so is UNUSED_BLOCKS as well.
The amount of full blocks = 777114 blocks. This means that 615168 blocks (from 4806MB) is for data. The rest is for undo space as there is 0 for free space?
In addition to this, 778368 - 777114 = 1254 blocks = 9.8 mb (approx) of? I'm not sure what is this.
Am I on the right track here?
Thanks
Pavel wrote:
Hello!
I have Oracle 11.2.0.3 on Aix 64bit installed and see symptoms of bug 13443029 ,
have I downgrade to 11.2.0.2 to appling the patch for fixing this bug ?
README for *13443029*
Patch Details
Oracle Database 11g Release *11.2.0.2.0*
ORACLE DATABASE Patch for Bug# 13443029 for AIX5L Platforms
Released: 13 Jan, 2012Thanks and regards,
PavelOpen SR . you will get help and send you patch if they think its need that .
Similar Messages
-
ORACLE DATABASE SPACE USAGE report not showing all databases in 11g
Hi All,
I have scheduled "Oracle Database Space Usage (Group)" report for all databases available in the OEM11g. But in the report i am not able to see all the databases in the group. Can any one please help on this.
Regards,
GKWe had the same problem in 12c EM. This had to something with "tablespace allocation metric". This metric was disabled for some databases. This could be your case in 11g also. This metalink note might worth seeing .
Oracle Database Tablespace Monthly Space Usage shows no data (Doc ID 1536654.1) -
제품 : ORACLE SERVER
작성날짜 : 2004-08-13
SCOPE
8.1.6 이상의 Standard Edition 부터 지원이 되는 기능입니다.
Subject: Parallel Load - space usage.
I have put together a short summary of how Parallel Load handles
storage allocation in 7.1 which I am going to send to a customer.
This could also quickly turn into a bulletin or PR entry
(if one doesn't already exist).
I'd appreciate if people could review and give corrections/enhancements.
Here is how storage allocation works with parallel loads.
For each parallel loader session, Oracle
1) creates a temporary segment with the INITIAL and NEXT
from the table that is being loaded, and in the datafile
designated by the FILE option.
2) When a load is complete, the final extent used by that
parallel load is trimmed back to the last block which it
used.
3) Lastly, the extents belonging to the temporary segments
are then converted to extents belonging to the table
being loaded.
This creates a couple of problems:
* If your INITIAL and NEXT are different for the table,
then you will end up with multiple extents sized the
same as INITIAL, which doesn't follow general table
growth patterns.
* Extent sizes are not predictable for the last extent of
each load. This can lead to tablespace fragmentation.
What to do about this?
* Size INITIAL and NEXT to be the same.
This will eliminate the first problem listed.
* Oracle 7.2 will have a feature in to specify the storage
parameters used by the parallel load (bug 187319):
OPTIONS (STORAGE=(MINEXTENTS n
MAXEXTENTS n
INITIAL n K
NEXT n K
PCTINCREASE n))
* Enhancement Request 236552 has been filed to allow the
user to select no trimming of the extents.Hi Karen,
The number of workprocess (Dialog/Background) could be reduced also by selecting the loading options in InfoPackage.
In InfoPackage Processing tab, there are various loading options,
PSA & Then into data target (Package by Package) - This option uses only one process at a time. One data package is lifted from the Source System by a background process to PSA, and then the same process lifts it from PSA to datatarget.
PSA & data target in parallel (Package by Package) - This option uses two process at a time. One data package is lifted from the Source System by a background process to PSA, and then another process lifts it from PSA to datatarget. The first process same time, gets busy in lifting another package from Source System to PSA.
The first option is good, but takes more time to load data than the second one, so there is a tradeoff.
Also it is good if you use another process in process chain to activate the ODS instead of setting it up on automatic activation.
Please let me know if you need any more help.
Regards,
Pankaj -
Hi
oracle database for OBI (oracle business intelligence) is 45G and using 10G for temp space. OBI queries are eating up temp space in database. 4-5 queries uses all of temp space. OBI app admin says there is nothing to control sorting columns in OBI. By default OBI just uses all of the columns selected (40-50) in order by clause. Is there any way to control temp space usage from OBI by restricting on sorting options.
ThanksHave you looked at using/increasing pga_agregate_target. Have you spare operating system memory to be able to increase pga memory usage?
There is always a possibility you may be hitting a bug log a call with support. They will be able to help diagnose more. You may end up applying a patch to your database. They usually need a test case sql to create the objects used in the query and some test data, to replicate these type of issues.
You could always trace the processes consuming TEMP space and use TKPROF to review them. Support would find the trace files helpful as well.
alter system set timed_statistics=true;
select sid, serial#, username from v$session where username='USER-YOU-WANT-TO-TRACE';
exec sys.dbms_system.set_sql_trace_in_session(sid-number,serial-number,true);
exec sys.dbms_system.set_sql_trace_in_session(sid-number,serial-number,false);
Also search this forum for pga_agregate_target for more information.
Hope this helps -
Hi,
Has anyone found a utility that can be used to locate disk space usage on the MacBook? I would like to find out what files are eating up my disk space and would prefer to not have to use UNIX commands to accomplish this. I need to delete something off my computer but need help to locate the culprit. Any help is appreciated.
ThanksUse a program such as WhatSize or Disk Inventory X to determine where the space is being used.
(38758) -
Hi all,
how do I determine disk space usage by table1, table2 ?marco wrote:
Hi all,
how do I determine disk space usage by table1, table2 ?Use the _SEGMENTS views for this. Make sure to include dependent objects such as indexes if you're wanting to get an idea of the "total" size of the table. Perhaps you could give us more information on your requirements and what you're seeking to accomplish. -
I don't quite understand what Photos does: it uses 3 times as much disk space as Aperture for the same library.
My Aperture library with some 53k photos (~200GB on external SSD) and a few hundred videos (~100GB on external SSD) uses around 40GB disk space for thumbnails in various sizes, database and so on.
After a few hours of importing, the same library in Photos has grown to 119.9GB.
Settings are: do not copy images to library, no use of iCloud Photo Library (and thus no "optimize Mac space usage").
Inside the library file, the Thumbnails directory uses a sane-looking 16.66GB, Previews is 7.29GB, and Masters uses only 1.35GB, since almost all images are still stored in Aperture referenced masters on external SSD.
The largest directory inside the library is Resources > model resources, with a whopping 86GB for 147k objects (images).
I'm almost sure these are a result of my trying and then disabling iCloud Photo Library during import yesterday afternoon.
Since Photos does not delete those resources for some reason (disk space and RAM are always cheap and plentiful for Apple, I guess) – is there a way for me to get rid of it if I don't want iCloud Photo Library? Would Photos be smart enough to start culling images here when my system disk space, a paltry 256GB SSD, dwindles towards zero?graigsmith wrote:
it could be because the side bar images are square, maybe it caches the square cropped images. Theres a setting to not crop the thumbnails on the sidebar.
wonder if that does anything.
i have noticed that it's way faster now than in beta. The cache probably helps speed it up a lot.
I'm sure that speed is the reason they went with this heavy-handed way of handling faces. This will help a lot when people start having their masters library in the cloud.
However, when Photos simply fills up my system SSD to the point of OSX complaining that it can't work reliably anymore for lack of space, as it did on the first Aperture library import here and was about to do again hours ago, this really is besides the point somewhat. -
Hi,
I have a Swing - ADF - application.
I get this error
(oracle.jbo.PersistenceException) JBO-26035: Secondary entity usage PerioadeDecontare is missing parts of association description.
when I press the Ok button of a Lov on
a view attribute.
The view is composed of four entities . The second one
is PerioadeDecontare. I use a query in expert mode for
this view.
regards,
LucianCan you check this:
http://download.oracle.com/docs/cd/E12839_01/apirefs.1111/e10653/oracle/jbo/CSMessageBundle.html#EXC_MISSING_EO_USAGE_ASSOC_INFO -
Audio Files space usage: noise versus silence
Continuing on from my recent Disk Usage thoughts:
I've noticed that we arm a Logic track connected to a microphone, and begin recording the microphone from the very start of the song, even if the singer doesn't actually start singing until, say, bar 8.
So in the Audio Region, we see a flatline waveform for the first 8 bars before they start singing.
Turning my thoughts to disk space usage:
I've just read the section in the manual that says 1 minute of monophonic audio recorded at 16-bit dynamic resolution and 44.1 kHz frequency consumes 5 Mb of hard disk space.
Does 8 bars of silence use the same amount of disk space as 8 bars of singing? (I assume so - silence would be represented by, at 16-bit dynamic resolution, 16 digital zeros, whereas a sample of noise would 16 ones and zeros)
Moving on - let's assume that a singer has just sang on a track and I have an Audio Region that shows the first 16 bars as being silent. If I'm correct, using the scissors tool and removing the first 16 bars of the Audio Region does not affect the underlying audio file (my understanding: Audio Regions are simply pointers to an underlying file).
So how would I remove silence from the start of an underlying audio file? Do something in the Sampler (double clicking the Audio Region brings up something I think is called the Sampler)?Does 8 bars of silence use the same amount of disk space as 8 bars of singing?
Yes, in this case.
Audio Regions are simply pointers to an underlying file).
Yes.
So how would I remove silence from the start of an underlying audio file?
Adjust the region to your liking, go to audio window, select unused, delete (just removes files or regions from session)
Then select the file and hit optimize or select the file's used regions and create new, then delete old later.
This is safer than optimizing the file, but ore steps.
J -
SQL AGENT JOB FOR DISK SPACE USAGE ALERT
Hello Experts
what is the best way to set up a disk space usage alert for my sql server 2008r2 databases. i want to get a notification or alert whenever the disk usage is >80%, thank you as usual.Hi
You can use sql server job for same. I am using below procedure configured with sql job running every 15 mins
Example: EXEC [DBA_DiskSpaceMntr]
@mailto = 'team mail',
@CDrivethreshold = 1024,
@OtherDrivethreshold = 10240
CREATE PROCEDURE [dbo].[DBA_DiskSpaceMntr]
@mailto nvarchar(4000),
@CDrivethreshold INT,
@DDrivethreshold INT,
@YDrivethreshold INT,
@OtherDrivethreshold INT
AS
BEGIN
declare @count int;
declare @DiskFreeSpace int;
declare @tempfspace int;
declare @tempdrive char(1);
declare @mailbody nvarchar(4000);
declare @MailSubject nvarchar(1000);
declare @AlertMessage nvarchar(4000);
declare @altflag bit;
declare @sub nvarchar(4000);
declare @cmd nvarchar(4000);
set @count = 0;
SET @mailbody = '';
SET @cmd = '';
set nocount on
IF EXISTS(select * from sys.sysobjects where id = object_id('#driveinfo'))
drop table #driveinfo
create table #driveinfo(id int identity(1,1),drive char(1), fspace int)
insert into #driveinfo EXEC master..xp_fixeddrives
SELECT @DiskFreeSpace = fspace FROM #driveinfo where drive in ('C')
IF @DiskFreeSpace < @CDrivethreshold
Begin
SET @MailSubject = 'Drive C: free space is low on ' + cast(Serverproperty('Machinename') as nVarchar)
SET @mailbody = 'Drive C: on ' + cast(Serverproperty('Machinename') as nVarchar) + ' has only ' + CAST(@DiskFreeSpace AS VARCHAR) + ' MB left. Please free up space on this drive. '
--select * FROM #driveinfo where drive in ('L')
EXEC msdb.dbo.sp_send_dbmail
@profile_name = 'SQLDBA_Support',
@recipients= @mailto,
@subject = @MailSubject,
@body = @mailbody,
--@file_attachments = @logfile,
@body_format = 'HTML'
End
SELECT @DiskFreeSpace = fspace FROM #driveinfo where drive in ('D')
IF @DiskFreeSpace < @DDrivethreshold
Begin
SET @MailSubject = 'Drive D: free space is low on ' + cast(Serverproperty('Machinename') as nVarchar)
SET @mailbody = 'Drive D: on ' + cast(Serverproperty('Machinename') as nVarchar) + ' has only ' + CAST(@DiskFreeSpace AS VARCHAR) + ' MB left. Please free up space on this drive. '
EXEC msdb.dbo.sp_send_dbmail
@profile_name = 'SQLDBA_Support',
@recipients= @mailto,
@subject = @MailSubject,
@body = @mailbody,
--@file_attachments = @logfile,
@body_format = 'HTML'
End
SELECT @DiskFreeSpace = fspace FROM #driveinfo where drive in ('Y')
IF @DiskFreeSpace < @YDrivethreshold
Begin
SET @MailSubject = 'Drive Y: free space is low on ' + cast(Serverproperty('Machinename') as nVarchar)
SET @mailbody = 'Drive Y: on ' + cast(Serverproperty('Machinename') as nVarchar) + ' has only ' + CAST(@DiskFreeSpace AS VARCHAR) + ' MB left. Please free up space on this drive. '
EXEC msdb.dbo.sp_send_dbmail
@profile_name = 'profile_name',
@recipients= @mailto,
@subject = @MailSubject,
@body = @mailbody,
--@file_attachments = @logfile,
@body_format = 'HTML'
End
set @mailbody='';
while (select count(*) from #driveinfo ) >= @count
begin
set @tempfspace = (select fspace from #driveinfo where id = @count and drive not in ('C','Q','D','Y'))
set @tempdrive = (select drive from #driveinfo where id = @count and drive not in ('C','Q','D','Y'))
if @tempfspace < @OtherDrivethreshold
BEGIN
SET @altflag = 1;
SET @mailbody = @mailbody + '<p>Drive ' + CAST(@tempdrive AS NVARCHAR(10)) + ' has ' + CAST(@tempfspace AS NVARCHAR(10)) + ' MB free</br>'
--SET @cmd = 'dir /s /-c ' + @tempdrive + ':\ > ' + @logfile
--EXEC xp_cmdshell @cmd
END
set @count = @count + 1
end
IF (@altflag = 1)
BEGIN
SET @sub = 'Monitor Space on ' + cast(Serverproperty('Machinename') as nVarchar)
set @mailbody = 'The below drives on ' + cast(Serverproperty('Machinename') as nVarchar) + ' have low disk space then threshold limit ' + CAST(@OtherDrivethreshold as VARCHAR(10)) +' Please free up the space in below specified drives <p>' + @mailbody
--print 'Space on ' + @tempdrive + ': is very low: ' + str(@tempfspace)+ 'MB'
EXEC msdb.dbo.sp_send_dbmail
@profile_name = 'Profile name',
@recipients= @mailto,
@subject = @sub,
@body = @mailbody,
--@file_attachments = @logfile,
@body_format = 'HTML'
END
drop table #driveinfo
set nocount off
END
Thanks Saurabh Sinha
http://saurabhsinhainblogs.blogspot.in/
Please click the Mark as answer button and vote as helpful
if this reply solves your problem -
Checking the schema-wise disk space usage
hi
can we get the disk space usage for every individual schema separately ?What about this:
select OWNER, sum(BYTES) from DBA_SEGMENTS group by OWNER -
Graphical disk space usage analysers
anyone got any suggestions for other disk space usage analysers?
it's nice that on ncdu's site a few "similar projects" are mentioned.
treesize is a lovely little gui app, does what it needs to, clean n no fuss.
~but it's not in pacman or the AUR.
i'm not really interested in filelight, since it will want to drag along half of kde, and similarly i expect baobab is a bloater for the same reason with gnome. no sign of philesight in the repo either though.
anyone got any suggestions for other disk space usage analysers?
perhaps a lighterweight, less DE-dependent, ring-style one? ...if such a thing exists yet.
or is xdiskusage the best i'll find in the arch repos?Just for the record, you don't have to go to ncdu or treesize webpage to look for alternatives, we have (some of) them listed in our wiki: https://wiki.archlinux.org/index.php/Co … y_Programs
Maybe you can ask sb to put treesize in the AUR: https://bbs.archlinux.org/viewforum.php?id=38 ? -
Good morning,
When I go to 'About this Mac' I see it says I've got 81 GB of videos on my Mid 2013 MacBook Air (OS X Yosemite 10.10.1), but I am sure I don't have that many, also because when I click on the videos folder in Finder it shows I've got about 10 GB of videos. I've deleted all my iTunes movies, even the folders on iTunes Media. How can I free this space?
Thank you,
Luis Garcíamarco wrote:
Hi all,
how do I determine disk space usage by table1, table2 ?Use the _SEGMENTS views for this. Make sure to include dependent objects such as indexes if you're wanting to get an idea of the "total" size of the table. Perhaps you could give us more information on your requirements and what you're seeking to accomplish. -
Is there a way to get a report of available disk space for a host?
We do not autoextend our tablespaces, so whenever we need to add more space
, we have to shell into the OS (Unix) and run a "df -k" to see what mount points have space available.
Is it possible to have the OEM Grid send us this info via notification and how?
Thanks.
Message was edited by:
kaapie
I found an answer: Table/View for Filesystem Space Available Metric?marco wrote:
Hi all,
how do I determine disk space usage by table1, table2 ?Use the _SEGMENTS views for this. Make sure to include dependent objects such as indexes if you're wanting to get an idea of the "total" size of the table. Perhaps you could give us more information on your requirements and what you're seeking to accomplish. -
Monitor tablespace space usage, excluding UNDO
Hi
I tried to setup a monitoring template that enables me to monitor the space usage of all tablespaces but UNDO. It seems to me that Grid Control does not provide this built-in feature and I cannot customize. It monitors ALL tablespaces usage.
If I create RULE, then I need to check all tablespaces names except UNDO. I have almost 200 databases. If doing that, it consumes huge amounts of time.
Any solutions???
Any input is appreciated.
KevinThe current setting is
Tablespace Space Used (%)
UNDOTBS > 101 101 None Every 5 Minutes
All others > 5 10 None Every 5 Minutes
Does that mean that if UNDOTBS is 101% full, which never happens, I will get email.
OEM will not evaluate the second condition if the first condition dissatisfies. If that is the case, I shall never get email.
Then I think I shall reverse the order. When I tried to use [Reorder] button, I cannot reverse the order. Probably, OEM considers [All Others] as the last execution conditionl.
Kevin
Maybe you are looking for
-
i took my phone off the charger and wifi while it was updating and now it wont let me on the phone nor my computer and it just has the apple icon on the screen. how do i get it to finish updating or turn on?
-
Standard report(for open PO order items) with estimated Delivery dates
hi friends i would like to know if there is any standard report(for open PO order items) with estimated Delivery dates on it. thanks alahari
-
Delivery document data transfer to non sap server.
Hi, My requirement is ,when i created delivery label (vl01), this delivery document should be sent to FTP server instead of printer in flat file format. Normally for delivery document printing we use VL71 t.code,but in my requirement i have to crea
-
How can I move all my contacts into a single email group from all the other group?
I've got several email accounts, but my contacts are spread across them. Of course, when I access or search my contacts they do all get searched together, but I need to delete an account and this will result in me losing many contacts. So before I do
-
i get the following error when i try to print to a brother hl 5470dw printer using mac 10.6.8 : /usr/libexec/cups/filter/pstoraster failed