Using sql to monitor free/used space
Hi,
Using the next sql statement
SELECT /* + RULE */ df.tablespace_name "Tablespace",
df.bytes / (1024 * 1024) "Size (MB)",
SUM(fs.bytes) / (1024 * 1024) "Free (MB)",
Nvl(Round(SUM(fs.bytes) * 100 / df.bytes),1) "% Free",
Round((df.bytes - SUM(fs.bytes)) * 100 / df.bytes) "% Used"
FROM dba_free_space fs,
(SELECT tablespace_name,SUM(bytes) bytes
FROM dba_data_files
GROUP BY tablespace_name) df
WHERE fs.tablespace_name (+) = df.tablespace_name
GROUP BY df.tablespace_name,df.bytes
UNION ALL
SELECT /* + RULE */ df.tablespace_name tspace,
fs.bytes / (1024 * 1024),
SUM(df.bytes_free) / (1024 * 1024),
Nvl(Round((SUM(fs.bytes) - df.bytes_used) * 100 / fs.bytes), 1),
Round((SUM(fs.bytes) - df.bytes_free) * 100 / fs.bytes)
FROM dba_temp_files fs,
(SELECT tablespace_name,bytes_free,bytes_used
FROM v$temp_space_header
GROUP BY tablespace_name,bytes_free,bytes_used) df
WHERE fs.tablespace_name (+) = df.tablespace_name
GROUP BY df.tablespace_name,fs.bytes,df.bytes_free,df.bytes_used
ORDER BY 4 DESC;from the source
http://www.orafaq.com/wiki/Tablespacethe output is
Tablespace Size (MB) Free (MB) % Free % Used
TS_UNDO 4000 3973,875 99 1
SYSAUX 512 293,5625 57 43
SYSTEM 512 224,3125 44 56
DATA 70000 24346,375 35 65
TS_TEMP 5000 460 9 91
INDX 30000 2349,0625 8 92why doesn't have the ts_temp tablespace almost free space?
becouse if I use the management database sql developer option the ts_temp output is
Tablespace Size (MB) Free (MB) % Free % Used
TS_TEMP null 0 null nullthanks in advanced
The first half of your query seems to work -- just keep in mind that is doesn't consider that the tablespace datafiles might be auto-extendable up to some limit.
The second half doesn't seem to work (I'm in 11g).
Here's what I use to look at temp-space totals:
select f.tblspc as "Tablespace"
, nvl( sum( s.blocks * b.value ), 0 ) as "Bytes-Used"
, f.bytes as "Bytes-Available"
, round( nvl( sum( s.blocks * b.value ), 0 ) / f.bytes * 100, 2 ) as "%-Used"
from ( select tablespace_name as tblspc
, sum(bytes) as bytes
, 'Temporary' as tstype
from dba_temp_files
group by tablespace_name, 'Temp-TblSpc'
union
select tablespace_name as tblspc
, sum(bytes) as bytes
, 'Regular' as tstype
from dba_data_files
where tablespace_name in ( select distinct temporary_tablespace from dba_users )
group by tablespace_name, 'Reg-TblSpc'
) f
left join
v$sort_usage s on ( f.tblspc = s.tablespace )
join
( select value
from v$parameter
where name = 'db_block_size'
) b on (1=1)
group by f.tblspc
, f.tstype
, f.bytes
order by 1 ;And here's what I use to look at which users are using temp-space:
select t.tablespace
, t.username
, f.tstype as type
, round((sum(decode(segtype, 'SORT', t.blocks,0))*b.bsz)/1024/1024,2) as sort_mb
, round((sum(decode(segtype, 'DATA', t.blocks,0))*b.bsz)/1024/1024,2) as data_mb
, round((sum(decode(segtype, 'HASH', t.blocks,0))*b.bsz)/1024/1024,2) as hash_mb
, round((sum(decode(segtype, 'INDEX', t.blocks,0))*b.bsz)/1024/1024,2) as indx_mb
, round((sum(decode(segtype, 'LOB_DATA', t.blocks,0))*b.bsz)/1024/1024,2) as lobs_mb
, round((sum(decode(segtype, 'SORT', 0, 'DATA', 0, 'HASH', 0, 'INDEX', 0, 'LOB_DATA', 0
, t.blocks ))*b.bsz)/1024/1024,2) as othr_mb
, round((sum(t.blocks)*b.bsz)/1024/1024,2) as all_mb
, round((max(u.blks)*b.bsz)/max(f.bytes)*100,2) as "All-TS-%"
, round((max(u.blks)*b.bsz)/1024/1024) ||'/'||
round(max(f.bytes)/1024/1024,2) as "All-TS-Usage-mb"
from v$tempseg_usage t
cross join
( select value as bsz from v$parameter where name = 'db_block_size' ) b
left join
( select tablespace_name as tablespace
, sum(bytes) as bytes
, 'Temporary' as tstype
from dba_temp_files
group by tablespace_name
union
select tablespace_name
, sum(bytes)
, 'Regular'
from dba_data_files
where tablespace_name in
( select distinct temporary_tablespace from dba_users )
group by tablespace_name
) f on ( t.tablespace = f.tablespace )
left join
( select tablespace, sum(blocks) as blks
from v$tempseg_usage
group by tablespace
) u on ( t.tablespace = u.tablespace )
group by t.username, t.tablespace, f.tstype, b.bsz
order by t.tablespace, t.username ;Maybe that helps.
Similar Messages
-
Window 10 On ICONIA W510 using WIMBoot for more free disk space.
What is this ...WIMBoot is a feature that we can boot from .wim file instead of extract content to harddrive.WIMBoot made for computer or tablet that have small size of storage (eg. 32GB OR 16GB) for increase for free storage space. And make device have ability to recover, resetting, reinstall windows without windows installation disk.After windows 8.1 Updated we can use WIMBoot feature and now I use this feature for windows 10 to boot our Iconia W510 tablet.(More about WIMBoot : WIMBoot Overview) (SEE MY PREVIOUS POST ABOUT WIMBoot FOR ICONIA W510 WITH Windows 8.1 Updated : HERE!!) Screen Shot ... This picture is system detail as you see windows is activated! This picture show free space after clean install. Around 24GB free space.In C: drive it have more partition space than windows 8.1 update As you see Windows C: used around 2.79GB for pagefile and hibernate files. With my installation. My windows have activated...
I do not know with your installation it will activate or not, I can't confirm this, you must try for your own risk. What will you get with this. More freespace for your drive. (Around 24GB)Ability to use recovery function of windows (Recover, Resetting, Reinstall) without installation media.Before you go :: Please READ!!This solution is for ICONIA W510. But you can apply to another windows tablet that use Atom z2670 (Or other I can't comfirm must try for your own risk).I add W510 Drivers to this image you can use your docking. If you don't have docking you can use USB Hub for more usb port to use with USB Flashdrive, USB Keyboard, USB Mouse.About windows Activated... I'm not guarantee it will activated or not. MUST TRY ON YOUR OWN RISK. It seem product key in UEFI/BIOS not work.This solution will wipe all your storage partition. Please backup your data to your safe place.This solution cannot downgrade to your old windows.This windows 10 is from media creator tool. It is windows 10 Core Single Language with english version only.(I will add solution to add language to installation later [if i have more time].)If this solution helpful you can buy me some beer!!! Download Tools AND Files.WindowsPE & WIMBoot Image for ICONIA W510.Need 5 files (file .md5 use for check file hash)winpe.isosource.7z.001source.7z.002source.7z.003source.7z.004Download HERE.One Drive : http://1drv.ms/1N90FWTGoogle Drive : https://goo.gl/5bCnlrRufus for create USB Bootable : https://rufus.akeo.ie/7zip for extract file : http://www.7-zip.org/download.htmlRapicCRC for check file hash (IF NEED) : http://rapidcrc.sourceforge.net/YOU NEED USB Flash Drive 4GB or larger. Solution.... 1. preparing Bootable Media.Create bootable flash drive using Rufus. See PICTURE.Prepare WIMBoot fileExtract file "source.7z.00x" using 7zip if it ask for password enter "aphorist".You will see 3 file.partition.txtinstall.cmdinstall_wimboot.wimCopy ALL files to Bootable Flash Drive in folder "SOURCE".2. Preparing Tablet for boot from USB.Shutdown your tablet.When your tablet shutdown completely.
---> Hold down volume down button.
---> Then hold down power button.
---> When acer screen appear release all botton.UEFI appear.
Go to Security and set supervisor password.
(If not you will not able to disable safeboot and can't boot to usb thumdrive.)
(PLEASE REMEMBER YOUR PASSWORD CAFULLY!!!!)
Go to Boot and set Secureboot to Disable. Then move USB HDD: to upper.
Go to Exit and select Exit saving changes. Your tablet will restart and boot as normally. Please shutdown again.3. Boot to Windows PE from USB Flash Drive and install Windows 10.Connect your bootable flash drive (From step 1).For sure you must remove micro-sd card now.Then power on your tablet. AND Wait.......In boot process you don't need to do anything it will boot to flashdrive when it completed you will see command prompt. (Some time it boot so long depend on speed of your USB Flash drive.)Windows PE will look like this.
Thank picture from svrops.comIn the command box. Type.
> d:
> cd source
> installThe script will wipe your drive and recreate it in WIMBoot partition layout then apply image for you.
Now... need to relax go to rest or just watching the screen. When completed your tablet will reboot automatically.If windows ask for product key just click skip.Completed....FYIK.This solution not confirm that you will get windows be activated or not.This windows 10 is "Single Language" edition and in English (United state) language.
If I have more time I will add solution to add another language later.AGAIN if you like this please buy me some beer....I suspect that the problem with the Intel GMA has been fixed, at least my W3 which is effectively the same 2760 archetecture as the W510 installed as update, and a W510 should install normally. For the w3 when Win10 complained about "not enough room" I just pointed it at the 64GB microSD and it put the recovery files there. Why did you need to remove yours ? Giving it a few days then I'll probably upgrade the 510 as well. BTW the W3 is handling dual big monitors & the Targus dock on W10 with no problem. Plays video nicely.
-
To use SQL or to not use SQL ..... That is the question
A couple of posts lately have brought something to my attention that I wanted to discuss between the folks that view this forum because I believe it is important. I highly value the opinions of many of the members here so I think getting your insight would not only benefit me, but many other forum members as well.
This discussion stems from two posts:
{message:id=3786432} (Billy)
...The question that you need to ask yourself is why use such a technique? For rendering the data a specific way in the client? Well, rendering data is NOT a SQL function and in essence a result of ignorance of how to correctly use client-server. Rendering on the client is dealt with by the client itself. Using SQL to do it.. not only nasty (as many of these examples above are), but also far from optimal and efficient SQL. And in most cases, will not scale. Increase the data volume of the table queried and there will be a hefty performance knock as SQL is incorrectly used.
...>
{message:id=3914362} (Sven W.)
...For the Pivot considerations. It is usually much better not to try to do this inside the database. If you think about it. The data itself can be fetch from the database very easily. To do a PIVOT is a kind of GUI/Layout representation for this data. This should be done in the GUI Layer.
>
I tried to respond to the thread Billy posted in, so I'll cut and paste my response here:
Discussion
Where do we as database developers draw the line between the correct use of SQL or not? Or between rendering on the client and just returning data?
Now with LISTAGG, PIVOT and UNPIVOT all available to us would these be considered correct uses of SQL?
Where does this leave the TO_CHAR function? Is this considered rendering?
I'm fully expecting a fuzzy answer with something along the lines of "do the work where it makes the most sense" from a ease of development and maintainability perspective but I just wanted to ask.
Hopefully this is a valuable discussion.
Thanks!Let me give a simple example. You can store images in a table as a LOB. You can serve these images to a web browser client via mod_plsql.
However, the data is static. It requires I/O (and some hefty ones for larger images). What is the biggest performance penalty we have in Oracle? I/O? What is affected by doing I/O to read these images? The buffer cache (which will age out other data in the cache).
Where else can we store this data? The web server. At what cost to the performance of Oracle? None. Impact on web server? Heck, web servers are designed at their very core to do this!
So where is the best place to storage static images in this specific case? Not the database, but the web server.
Now simply extend this concept to the client - where is the best place to render data?
Should the data be formatted for rendering (e.g. converted into HTML) in the database layer, or should it rather be done in the presentation layer?
Now I can already hear the argument that the former is exactly what we are doing using APEX. We create dynamic HTML pages on the Oracle server side and then dish that up to the rendering layer to display.
Two issues that need to be considered. Firstly, this is not done using SQL. This is done using a procedure language called PL/SQL - not using native SQL. PL/SQL in this case is used exactly as Java or PHP or Perl or any other "+app layer+" language would be used. It only happens that PL/SQL resides in the database too. But do not mistake it for what it really is - the application layer.
The second issue drives home the point that even in 3 tier client server, the application layer is not the best place to do the formatting for the rendering layer. Web 2.0 aka AJAX.. Where the app layer delivers a dynamic rendering engine (as Javascript) to the rendering layer. After which rendering and formatting are done solely inside that rendering layer. And interaction between that and the app layer is requests for new/fresh data to be rendered.
Why is AJAX becoming so popular? Key issues and concepts like performance, and a rich client interface and so on.
This all points that the fundamental principle of using the rendering layer to do its thing and using the SQL layer to do its (separate and different) thing, still holds true.
Yes, we may not always stick to this principle - as we do with doing the rendering (creating HTML) in PL/SQL using APEX for example.. but this is not because the principle is unsound. It is because of technology reasons (different browsers, different behaviour), lack of support for W3C standards (hello IE) and so on.
It is only recently that these problem areas have been meaningfully addressed.. and why rendering frameworks like extJS is the (rendering layer) future of 3 tier client server.
If the concept of using SQL to perform rendering and formatting had any substance.. then there would have been a lot of resistance to AJAX for example. The reverse is true.. as we all want to use SQL to do SQL and want the rendering layer to do its thing without us having to code in SQL to specifically support rendering and formatting. It is clunky. It slows down the SQL (every formatting function is a tiny overhead that adds up). It does not bode well for maintenance and changes to the presentation layer. And all those tiny overheads can spell doom for scalability.
I do not see any gray lines here, or a question of "+opinion+", or "+it depends+". The architecture is clear. The fundamentals are sound.
The real issue is how we choose to apply these. But (the "+incorrect+") application (of these fundamentals) does not invalidate the fundamentals. -
I use a macbook pro retina. I use a 32 in. monitor and use it full screen. I size the screen manually. Since i upgraded to maverick, I have to resize the screen each time I change windows.Before the upgrade the screen stayed where I put it.
Please read this whole message before doing anything.
This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, or by a peripheral device.
Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode* and log in to the account with the problem. The instructions provided by Apple are as follows:
Shut down your computer, wait 30 seconds, and then hold down the shift key while pressing the power button.
When you see the gray Apple logo, release the shift key.
If you are prompted to log in, type your password, and then hold down the shift key again as you click Log in.
*Note: If FileVault is enabled under OS X 10.7 or later, or if a firmware password is set, or if the boot volume is a software RAID, you can’t boot in safe mode. Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs. The next normal boot may also be somewhat slow.
The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin. Test while in safe mode. Same problem? After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of the test. -
Hi, I have a requirement to produce several custom free disk space reports based around groups. This will be on a 2012 R2 management group. For a given group, does anyone know the SQL tables and the joins required to produce
both the free space % and free space MB in one query?
Thanks in advance,
Stevewhat did you means of free space % and free space MB?
does it means the HD free or DB free space?
I assume that its means DB free space and you may refer to the following SQL statement
select Path, displayname,ObjectName, CounterName, avg(SampleValue) as Value, getdate() as date
from Perf.vPerfRaw pvpr
inner join vManagedEntity vme on pvpr.ManagedEntityRowId = vme.ManagedEntityRowId
inner join vPerformanceRuleInstance vpri on pvpr.PerformanceRuleInstanceRowId = vpri.PerformanceRuleInstanceRowId
inner join vPerformanceRule vpr on vpr.RuleRowId = vpri.RuleRowId
WHERE ObjectName = 'SQLServer : Database'
AND CounterName like 'DB Total Free Space%'
AND pvpr.DateTime > DATEADD(minute, -60, GETUTCDATE())
AND Path in (select DisplayName + ';MSSQLSERVER' from OperationsManager.dbo.RelationShip r with (nolock) inner join OperationsManager.dbo.basemanagedentity bme
with (nolock) on bme.BaseManagedEntityId = R.TargetEntityId
Where SourceEntityId in ( select BaseManagedEntityId from OperationsManager.dbo.basemanagedentity with (nolock) where DisplayName LIKE
'%SQL computer%') and r.IsDeleted=0)
group by Path, displayname,ObjectName, CounterName
Roger -
How to export data to .csv and send that file to folder using sql commands?
Really hoping someone can provide some code sample or point me in the right direction (with examples using sql).
I am using oracle 11g with plsql developer. My requirement is that the data retrieval should be automatic. That means when query a data in oracle table , the data should be convert into .csv file and then it should send that to some specific folder.
Example: Assume that student_sub1 table have all students subject1 data.when i write a query like select * from student_sub1 where student=1, the student1 data should convert into .csv file and then the .csv file should go to student1 folder.
Hence I am requesting you to suggest me how write a sql code to convert the data into .csv file and to create a folder to send that file using oracle.
Your inputs helps me alot.
Thanks in advance!!!!
Waiting for your replies.... Cheers981145 wrote:
Really hoping someone can provide some code sample or point me in the right direction (with examples using sql).
I am using oracle 11g with plsql developer. My requirement is that the data retrieval should be automatic. That means when query a data in oracle table , the data should be convert into .csv file and then it should send that to some specific folder.
Example: Assume that student_sub1 table have all students subject1 data.when i write a query like select * from student_sub1 where student=1, the student1 data should convert into .csv file and then the .csv file should go to student1 folder.
Hence I am requesting you to suggest me how write a sql code to convert the data into .csv file and to create a folder to send that file using oracle.
Your inputs helps me alot.
Thanks in advance!!!!
Waiting for your replies.... CheersSET COLSEP ,
spool student1.csv
select * from student_sub1 where student=1;
spool off
How do I ask a question on the forums?
SQL and PL/SQL FAQ
Handle: 981145
Status Level: Newbie
Registered: Jan 10, 2013
Total Posts: 25
Total Questions: 10 (8 unresolved)
I extend my condolences to you since you rarely get answers to your questions here. -
Using sql query as a table name
hello,
I have a table(say table1) which is storing the names of some other tables. I want to access the name of a table from table1 using sql query and then use the result of this query as the table name to access the data from
retrieved table name. How can I do this ?
ex:
select * from (select tablename from table1 where tableid='1');
I want to do something likw this. How can I do this?I want to access the name of a table from table1 using sql query and then use the result of this query as the table name to access the data from retrieved table name. How can I do this ?e.g. like this:
SQL> with table1 as (
select 'emp' tablename from dual
select extractvalue(x.column_value, 'ROW/ENAME') ename
from table1, xmltable('ROWSET/ROW' passing dbms_xmlgen.getxmltype('select * from ' || tablename)) x
ENAME
SMITH
ALLEN
WARD
JONES
MARTIN
BLAKE
CLARK
SCOTT
KING
TURNER
ADAMS
JAMES
FORD
MILLER
14 rows selected. -
How to use SQL Developer Debugger
I'm using SQL Developer Version 3.2.20.09 and want to use its debugger option. I tried to get "how to use SQL Developer Debugger" by using google.ca but didn't get any tutorial. I really appreciate if someone suggest me any good and simple tutorial regarding SQL Developer Debugger, Thanks in advance.
Hello,
you can find a tutorial here:
http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/devdays2012/mod2_sqldev/mod2_sqldev.html
Joop -
Connecting Oracle using SQL Plus in command window through LDAP settings?
Hi
Just like to know if it is possible to connect Oracle using SQL Plus with connection type as LDAP.
Generally we connect to Oracle in cmd window as
username/password@DBServiceName
Similarly is it possible to connect Oracle using SQL plus cmd window using LDAP configuration settings.
Eg:-
If my LDAP server is oid:123:456
Context is: cn=OracleContext,dc=abcdefgh,dc=com
DBService is: xyz
Regards
jcSpecify the -L command line option to SQL*Plus, i.e.:
sqlplus -L username/password@db @blah.sql
(this will prevent the second prompt for username/password if the initial login is unsuccessful for any reason, like an invalid password). -
How can free + used space tbs size, can someone explain
Hi Gurus
Can someone explain this, How can free + used space in a tablespace can be greater than size of a tablespace. What am I missing here . Thanks a lot .
I am on 10.2.0.1, HP-UX
14:38:52 SQL> select owner,sum(bytes), sum(BYTES) /1024/1024 "MB" from dba_segments where tablespace
name='USERDB1ADATA' group by owner;
OWNER SUM(BYTES) MB
USERDB1A 839680000 800.78125
1 row selected.
14:40:42 SQL> select bytes, BYTES /1024/1024 "MB" from dba_data_files where tablespace_name='USERDB1
A_DATA';
BYTES MB
3758096384 3584
1 row selected.
14:40:42 SQL> select sum(bytes) , sum(BYTES) /1024/1024 "MB"from dba_free_space where tablespace_nam
e='USERDB1A_DATA';
SUM(BYTES) MB
3067412480 2925.3125
1 row selected.
14:40:43 SQL> select 839680000 + 3067412480 "used + free space" from dual;
used + free space
3907092480
1 row selected.
New DBAGood point, Howard, about the recycle bin. So I cleaned up, recreated the table, filled it, dropped it but did not purge it, and ...
SQL> create table test.x tablespace test as select * from dba_objects where 1=2;
Table created.
SQL> insert into test.x select * from dba_objects;
12617 rows created.
SQL> commit;
Commit complete.
SQL> drop table test.x;
Table dropped.
SQL> with
2 dbf_size as (select sum(bytes) size_
3 from dba_data_files where tablespace_name='TEST'),
4 dbf_free as (select sum(bytes) free_
5 from dba_free_space where tablespace_name='TEST'),
6 dbf_used as (select sum(bytes) used_
7 from dba_segments where tablespace_name='TEST')
8 select size_, free_, used_, (size_ - free_ - used_) left_
9 from dbf_size, dbf_free, dbf_used
10 /
SIZE_ FREE_ USED_ LEFT_
5242880 5177344 2162688 -2097152
SQL>and then I played around with my SQL and came up with
WITH
dbf_size AS (SELECT SUM(bytes) size_
FROM dba_data_files
WHERE tablespace_name='TEST'),
dbf_free AS (SELECT SUM(bytes) free_
FROM dba_free_space
WHERE tablespace_name='TEST'),
dbf_used AS (SELECT SUM(bytes) used_
FROM dba_segments
WHERE tablespace_name='TEST'),
dbf_fbin AS (SELECT SUM(bytes) fbin_
FROM dba_segments
INNER JOIN
dba_recyclebin
ON (tablespace_name=ts_name
AND segment_name=object_name)
WHERE tablespace_name='TEST')
SELECT size_, -- tablespace size
free_, -- free space reported
used_, -- segment space used
fbin_, -- segment space in recycle bin
(size_ - free_ - used_ + fbin_) left_ -- 64K overhead per data file
FROM dbf_size, dbf_free, dbf_used, dbf_fbin
/which does
SQL> WITH
2 dbf_size AS (SELECT SUM(bytes) size_
3 FROM dba_data_files
4 WHERE tablespace_name='TEST'),
5 dbf_free AS (SELECT SUM(bytes) free_
6 FROM dba_free_space
7 WHERE tablespace_name='TEST'),
8 dbf_used AS (SELECT SUM(bytes) used_
9 FROM dba_segments
10 WHERE tablespace_name='TEST'),
11 dbf_fbin AS (SELECT SUM(bytes) fbin_
12 FROM dba_segments
13 INNER JOIN
14 dba_recyclebin
15 ON (tablespace_name=ts_name
16 AND segment_name=object_name)
17 WHERE tablespace_name='TEST')
18 SELECT size_,
19 free_,
20 used_,
21 fbin_,
22 (size_ - free_ - used_ + fbin_) left_
23 FROM dbf_size, dbf_free, dbf_used, dbf_fbin
24 /
SIZE_ FREE_ USED_ FBIN_ LEFT_
5242880 5177344 2162688 2162688 65536
SQL> alter tablespace test add datafile 'C:\ORACLE\ORADATA\XE\TEST2.DBF' size 5m;
Tablespace altered.
SQL> WITH
2 dbf_size AS (SELECT SUM(bytes) size_
3 FROM dba_data_files
4 WHERE tablespace_name='TEST'),
5 dbf_free AS (SELECT SUM(bytes) free_
6 FROM dba_free_space
7 WHERE tablespace_name='TEST'),
8 dbf_used AS (SELECT SUM(bytes) used_
9 FROM dba_segments
10 WHERE tablespace_name='TEST'),
11 dbf_fbin AS (SELECT SUM(bytes) fbin_
12 FROM dba_segments
13 INNER JOIN
14 dba_recyclebin
15 ON (tablespace_name=ts_name
16 AND segment_name=object_name)
17 WHERE tablespace_name='TEST')
18 SELECT size_, -- tablespace size
19 free_, -- free space reported
20 used_, -- segment space used
21 fbin_, -- segment space used in recycle bin
22 (size_ - free_ - used_ + fbin_) left_
23 FROM dbf_size, dbf_free, dbf_used, dbf_fbin
24 /
SIZE_ FREE_ USED_ FBIN_ LEFT_
10485760 10354688 2162688 2162688 131072Message was edited by:
Hans Forbrich
Cleaned up the script and tested with second data file added to verify LMT overhead. -
On 10.4.11 iMac Mac Mail I get this message: "Mail cannot update your mailboxes because your home directory is full. You must free up space in your home folder before using Mail. Delete unneeded documents or move documents to another volume." I can't open mail to do this. I have reinstalled software but no effect. How do I get into Mail to delete?
Found this on the "more like this" Worked like a charm!
With the Mail.app quit and using the Finder, go to Home > Library > Mail. Copy the Mail folder and place the copy on the Desktop for backup purposes.
Go to Home > Library > Mail > Envelope Index. Move the Envelope Index file to the Desktop.
Launch Mail and you will be prompted to import mailboxes. Select OK and allow the import process to complete.
After confirming all mailboxes were successfully imported and available, you can delete the copy of the Mail folder and old Envelope Index file from the Desktop and this should resolve the problem. -
I seem to have 2 iCloud accounts with different names - a free storage that came with my MacBook and one I used when I bought some iCloud space. How can I cancel the free account? Because of this I can't access iMatch and the ICloud account I paid for on my MacBook
Any ideas cos its frustrating that I can't access something I paid for!Sign out of the account you do not wish to use, sign into the one that you do wish to use.
-
I use an external hard drive for my Lightroom library and I notice that all the images shown on there are DNG. On my MAC hard drive I have images shown as NEF. I desperately need to free up space on my hard drive, can I safely delete these NEFs?
dj_paige wrote:
however, I do point out that obtaining an additional hard drive and not throwing anything away seems a preferable solution to me.
heidie22, dj_paige has a very good point there. I would not through away the NEF files; I would archive them to a external drive.
By the way, I am assuming that converting RAW files to DNG is a decision you have made and not an accident. -
If I back up iMovie projects to an external drive does imovie take the media with it? I want to free up space and remove pictures that were in iPhoto...that were used as media by iMovie when project was under way. In short I want archive iMovie stuff. If I pull pics out of iPhoto, and later want to drag an archived projet bac into iMovie and the pics are no longer in iPhoto, will I be able to keep working in the project in iMovie?
Very likely not, as the iPhoto's can be used for something else.
More like it took a copy, or it's referencing that spot on the drive in the editable files and most likely made a copy to create a new permanent export file.
Sample one picture and a iMovie file and see what happens. -
If time machine puts all of my photos onto my external hard drive using time machine, can I then delete the photos from my computer but view them again from the external hard drive? Basically, can I free up space on my mac but not lose years of photos?
To add to Niel's comment bear in mind that if you have a backup copy on an external HD and later delete the orignals on your Mac HD you will then only have one copy - so no backup.
If the pictures are precious you should have at least two copies, and ideally another copy kept off site,
Maybe you are looking for
-
How to create Shopping Category List of item?
I have designed webpage, now i am stuck with one concept.. Please help me Suggest me to design Product page I want Categories names at the left side Bar when click on categories, it should show the items in the categories at the middle of the page. i
-
I am frustrated with the wonderful service I've gotten from Apple (yes, sarcasm is a beautiful way to start with a post). I purchased South Park Season 10 when it was first released as a season pass. I got the first seven episodes of the season. Ever
-
Oracle IAM integration with GRC 10
Hi All, Our client is using Oracle IAM for user provisioning process. Now they have SAP GRC being implemented for two of their SAP systems. Now client wants to integrate SAP GRC Access Risks analysis (ARA) for SOD analysis and User Access Management(
-
PS 6 crashes every time I choose my folders for a batch action. Can I fix this?
I just bought a brand new iMac with 256 Gig SSD running Yosemite on it. After the last update from Adobe for PS (downloaded 4 weeks ago), I experience this problem EVERY TIME I try to run a batch action. Does anyone know how to fix this issue?
-
The problem I ran into is that when I try to load an instrument (nothing particularly) Logic just can't find the sound files needed to open the instrument.It happened so with some Garageband songs as well which I wanted to open in Logic but some inst