determine the free space of the tablespace
Hi allHow to determine free space of the tablespace?
Can use this:
select tablespace_name,
case when sum(bytes) >= 1073741824 then round(sum(bytes)/1073741824,2)||'gb'
when sum(bytes) >=1048576 then round(sum(bytes)/1048576,2)||'mb'
when sum(bytes) >=1024 then round(sum(bytes)/1024,2)||'kb'
else sum(bytes)||'bytes'
end free_space
from
(select tablespace_name, bytes from dba_free_space
union all
select TABLESPACE_NAME, 0 from dba_tablespaces where CONTENTS != 'TEMPORARY' -- this will add full tablespaces
union all
select tablespace_name, maxbytes-bytes
from dba_data_files where AUTOEXTENSIBLE='YES' and maxbytes>bytes)
group by tablespace_name order by sum(bytes);
Tags: Database
Similar Questions
-
to know the amount of free space in a tablespace
Hello
I'm learning to oracle 9i release 9.2.0.1.0. I had created a tablespace 'TOOLS' to use the default tablespace for Statspack.
I would like to know the amount of free space available in this table space. To do this, I ran the following query, but there was no selected lines:-
SQL > select tablespace_name, bytes from dba_free_space
2 where nom_tablespace = 'TOOLS. '
no selected line
SQL > select name from v$ tablespace;
NAME
------------------------------
CWMLITE
DRSYS
EXAMPLE OF
INDX
ODM
SYSTEM
TOOLS
UNDOTBS1
USERS
XDB
TEMP
Can someone say the reason for this.Strange that the difference of 0.625 MB does not appear in free_space...
But anyway, this tablespace is good as COMPLETE. -
ORA-01659: impossible to allocate MINEXTENTS beyond 2 in the tablespace test
Hello
I created a table and tried to insert records over 2 million and I'm getting an error such as ORA-01659: impossible to allocate MINEXTENTS beyond 2 in the tablespace test.
Used tablespace percentage is only 73%.
I used below when creating table
tablespace TEST
PCTFREE 10
INITRANS 1
maxtrans 255
Please suggest me how to solve this problem.
Thank you
Suri
Hi @Suri
I see no problem in storage settings in your table.
But the number of rows helps you insert and in the free space in your tablespace.
Perhaps too much space is needed for your data and storage space can not support.
The only things you can do is the following:
(a) try PCT_INCREASE to 0, this product extensions to equal size.
(b) put the PCT_FREE less than the default of 10. But it is advisable if you make updates to your table.
(c) maybe create your table with the clause compress, just for bulk inserts, but this depends on the use of the table.
(d) ask your DBA to increase the data files of the TEST table space or add more data files.
(e) using the package DBMS_SPACE, you can calculate the space used by your table in tablespace TEST. g 10 and later versions.
See the following example:
SQL> SET SERVEROUTPUT ON SQL> DECLARE lc_tablespace VARCHAR2(100) DEFAULT 'CC_TBSD001_MOVI_DOMICILIOS'; lc_megabytes SIMPLE_INTEGER DEFAULT 1024*1024; lc_estimated_rows SIMPLE_INTEGER DEFAULT 45000000; lc_pct_used SIMPLE_INTEGER DEFAULT 10; l_cost_columns SYS.CREATE_TABLE_COST_COLUMNS; l_mbytes_to_be_used NUMBER; l_mbytes_to_be_allocated NUMBER; BEGIN l_cost_columns := SYS.CREATE_TABLE_COST_COLUMNS( SYS.CREATE_TABLE_COST_COLINFO('NUMBER' ,15) ,SYS.CREATE_TABLE_COST_COLINFO('NUMBER' ,10) ,SYS.CREATE_TABLE_COST_COLINFO('NUMBER' , 4) ,SYS.CREATE_TABLE_COST_COLINFO('VARCHAR2', 6) ,SYS.CREATE_TABLE_COST_COLINFO('VARCHAR2', 4) ,SYS.CREATE_TABLE_COST_COLINFO('NUMBER' , 1) ,SYS.CREATE_TABLE_COST_COLINFO('NUMBER' , 4) ); DBMS_SPACE.CREATE_TABLE_COST(lc_tablespace ,l_cost_columns ,lc_estimated_rows ,lc_pct_used ,l_mbytes_to_be_used ,l_mbytes_to_be_allocated ); l_mbytes_to_be_used := l_mbytes_to_be_used/lc_megabytes; l_mbytes_to_be_allocated := l_mbytes_to_be_allocated/lc_megabytes; DBMS_OUTPUT.PUT_LINE('Megabytes to be used: '||TO_CHAR(l_mbytes_to_be_used)); DBMS_OUTPUT.PUT_LINE('Megabytes to be allocated: '||TO_CHAR(l_mbytes_to_be_allocated)); END; /
A few ref, pleas read
http://docs.Oracle.com/CD/B28359_01/server.111/b28286/clauses009.htm#SQLRF30013
Hope this can help you.
Kind regards
Juan M
-
No way of knowing where the tablespace used for a period of time
Hi all
I have a very generic question:
We have a daily report for information storage space in our production approx. In a 30.97% of free space in a tablespace on 27/06/2009. 28/06/2009 it reported only a 1.53% free. I would like to know what segments of the entire space went during this period. I looked in the dba_extents but could not see at all times by related information, which tells me that when the extents allocated. Anyone can share this info with me?
Thanks a lot for your help in advance!
Shirley_DELTA usually indicates a change (i.e. the size has changed during the snapshot interval).
Justin
-
How to find space in a Tablespace?
Hello
I have limited access to the objects in my database (do not have access to several tables).
I have 300 GB in size in my table space that allows me to create my objects.
Now, I want to know how much this size of table space allotted to me have exhausted. I don't have access to dba_data_files and dba_segments.
Is there a way out for me? Could someone show me a way please?
This query will give you the necessary information, but it uses DBA tables.
SELECT B.TABLESPACE_NAME, TBS_SIZE SIZEGB, A.FREE_SPACE FREEGB
from (select nom_tablespace, round (sum (bytes) / 1024/1024/1024, 2) as free_space)
from dba_free_space
GROUP BY TABLESPACE_NAME),
(select tablespace_name, sum (bytes) / 1024/1024/1024 as tbs_size)
from dba_data_files
Group by tablespace_name b)
where (+) a.tablespace_name = b.tablespace_name;
However, you said that you are aware of the details of your tablespace then the above query can be modified to get the free space in your tablespace. Now I use user_frees_space and not dba_free_space. In general the user tables are and must be accessible to users.
Select nom_tablespace, round (sum (bytes) / 1024/1024/1024, 2) as free_space
of user_free_space
where nom_tablespace = "your name of the tablespace.
GROUP BY TABLESPACE_NAME;
Ishan
-
Determine the space allocated to the tablespace on disk and the database free summer
Hello
Using oracle 11.2.0.3 and want to determine that some new storage space will be large enough to hold the data that we intend to move in them these is large enough.
When watching in Oracle enterprise manager see tablespaces but all look to have a default value 1024 MB and when run query below don't even see the tablespaces.
Another team created these and advised 4 GB but want to verify this.
How can we be sure that 4 GB was allotted to each of the tablespaces concerned before moving data.
Select df.tablespace_name "Tablespace"
totalusedspace 'Used MB',
(df.totalspace - tu.totalusedspace) "MB free.
DF. TotalSpace 'Total MB. "
round (100 * ((df.totalspace-tu.totalusedspace) / df.totalspace))
"PCT free."
Of
(select nom_tablespace,
Round (Sum (bytes) / 1048576) TotalSpace
from dba_data_files
Group by tablespace_name) df,.
(select round (sum (bytes) /(1024*1024)) totalusedspace, nom_tablespace)
from dba_segments
where nom_tablespace like '% % refund '.
you group by tablespace_name)
where df.tablespace_name = tu.tablespace_name
order by 1
Thank you
Hello
Use this query and display the results:
CLEAR COLUMNS SET LINES 200 COLUMN "Tablespace" FORMAT A34 TRUNC COLUMN "AllocSize (M)" FORMAT 999,990 COLUMN "AllocFree (M)" FORMAT 999,990 COLUMN "AllocUsed (%)" FORMAT A16 COLUMN "MaxSize (M)" FORMAT 999,990 COLUMN "MaxFree (M)" FORMAT 999,990 COLUMN "MaxUsed (%)" FORMAT A16 SELECT /*+choose*/ CASE f.status WHEN 'ONLINE' THEN '+' WHEN 'OFFLINE' THEN '-' ELSE '=' END || '|' || SUBSTR (f.CONTENTS, 1, 1) || '|' || f.tablespace_name "Tablespace", f.nallocsize "AllocSize (M)", f.free "AllocFree (M)", '[' || RPAD (NVL (RPAD ('#', ROUND (f.nusedpct / 10), '#'), '_'), 10, '_') || ']' || LPAD (TO_CHAR (f.nusedpct), 3, ' ') || '%' "AllocUsed (%)", f.nmaxsize "MaxSize (M)", (f.free + f.nmaxsize - f.nallocsize) "MaxFree (M)", '[' || RPAD (NVL (RPAD ('#', ROUND (f.nmaxusedpct / 10), '#'), '_'), 10, '_' ) || ']' || LPAD (TO_CHAR (f.nmaxusedpct), 3, ' ') || '%' "MaxUsed (%)" FROM (SELECT e.status, e.tablespace_name, e.CONTENTS, e.nallocsize, e.free, e.nmaxsize, (CASE nallocsize WHEN 0 THEN 0 ELSE ROUND ((100 - (e.free / e.nallocsize * 100))) END ) nusedpct, (CASE nmaxsize WHEN 0 THEN 0 ELSE ROUND ( 100 - (e.free + e.nmaxsize - e.nallocsize) / e.nmaxsize * 100 ) END ) nmaxusedpct FROM (SELECT d.status, d.tablespace_name, d.CONTENTS, ROUND (a.BYTES / (1024 * 1024)) nallocsize, ROUND (NVL (s.BYTES, 0) / (1024 * 1024)) free, (CASE WHEN NVL (a.maxbytes, 0) < a.BYTES THEN ROUND (a.BYTES / (1024 * 1024)) ELSE ROUND (NVL (a.maxbytes, 0) / (1024 * 1024)) END ) nmaxsize FROM (SELECT status, tablespace_name, CONTENTS FROM dba_tablespaces WHERE CONTENTS != 'TEMPORARY') d, (SELECT tablespace_name, SUM (NVL (BYTES, 0)) BYTES, SUM (CASE WHEN NVL (maxbytes, 0) < NVL (BYTES, 0) THEN NVL (BYTES, 0) ELSE NVL (maxbytes, 0) END ) maxbytes FROM dba_data_files GROUP BY tablespace_name) a, (SELECT tablespace_name, SUM (BYTES) BYTES FROM (SELECT tablespace_name, SUM (BYTES) BYTES FROM dba_free_space GROUP BY tablespace_name ) GROUP BY tablespace_name) s WHERE d.tablespace_name = a.tablespace_name AND d.tablespace_name = s.tablespace_name(+) UNION ALL SELECT d.status, d.tablespace_name, d.CONTENTS, ROUND (a.BYTES / (1024 * 1024)) nallocsize, ROUND (NVL (s.BYTES, 0) / (1024 * 1024)) free, (CASE WHEN NVL (a.maxbytes, 0) < a.BYTES THEN ROUND (a.BYTES / (1024 * 1024)) ELSE ROUND (NVL (a.maxbytes, 0) / (1024 * 1024)) END ) nmaxsize FROM (SELECT status, tablespace_name, CONTENTS FROM dba_tablespaces WHERE CONTENTS = 'TEMPORARY') d, (SELECT tablespace_name, NVL (SUM (BYTES), 0) BYTES, NVL (SUM (maxbytes), 0) maxbytes FROM dba_temp_files GROUP BY tablespace_name) a, (SELECT h.tablespace_name, SUM ( (h.bytes_free + h.bytes_used) - NVL (p.bytes_used, 0) ) BYTES FROM v$temp_space_header h, v$temp_extent_pool p, dba_temp_files f WHERE p.file_id(+) = h.file_id AND p.tablespace_name(+) = h.tablespace_name AND f.file_id = h.file_id AND f.tablespace_name = h.tablespace_name GROUP BY h.tablespace_name) s WHERE d.tablespace_name = a.tablespace_name AND d.tablespace_name = s.tablespace_name(+)) e) f where f.tablespace_name like '%RTRN%' ; PROMPT (+) = ONLINE (P) = PERMANENT PROMPT (=) = READ ONLY (U) = UNDO PROMPT (-) = OFFLINE (T) = TEMPORARY PROMPT
Edit:
Example of output:
Tablespace AllocSize (M) AllocFree (M) AllocUsed (%) MaxSize (M) MaxFree (M) MaxUsed (%) ---------------------------------- ------------- ------------- ---------------- ----------- ----------- ----------------
+| P | XDB 1 374 0 [#] 100% 8 192 6 818 [# _] 17% If the column "MaxFree (M)" you show no space required, then your data files are not configured well. Your DBA must configure the parameters 'CanGrow' and 'maxsize' adequate level data file in each tablespace.
Kind regards
Juan M
-
Is it difficult for oracle follow the news of free space in the tablespace Temp?
DB version: 11.1
http://docs.Oracle.com/CD/B28359_01/server.111/b28320/statviews_5056.htm
!!!!FREE_SPACE : Total free space available, in bytes, including space that is currently allocated and available for reuse and space that is currently unallocated ALLOCATED_SPACE : Total allocated space, in bytes, including space that is currently allocated and used and space that is currently allocated and available for reuse
I know that temporary tablespace is 'temporary' and varies according to gender, creating index... etc. But, can't they say just free space in bytes.
Lets say my temporary tablespace size is 2 GB and if the DBA_TEMP_FREE_SPACE.free_space column is 500 MB. What does that mean?>
Lets say my temporary tablespace size is 2 GB and if the DBA_TEMP_FREE_SPACE.free_space column is 500 MB. What does that mean?
>
This means for a locally managed temporary tablespace, reduce the size to the amount of space currently in use; in other words, reclaim the space unallocated and allocated space is unused.TABLESPACE_SIZE - FREE_SPACE
See Shrinking a temporary Tablespace locally managed in the DBA Guide
http://docs.Oracle.com/CD/B28359_01/server.111/b28310/tspaces007.htm
>
The great sorting operations performed by the database can cause a temporary tablespace more and taking a considerable amount of disk space. When the sort operation is complete, the extra space is not released; It is just marked as free and available for reuse. Therefore, a single operation of large size can result in a large amount of temporary space that remains unused, once the sort operation. For this reason, the database allows to shrink the locally managed temporary tablespaces and free up unused space.
. . .
Shrinking frees as much space as possible while maintaining the other attributes of the tablespace or tempfile. -
How to free space on the hard drive?
Hello, in my "On Mac" section, it says I 233 MB of space on my 121 GB of Flash storage. Previously, I thought it was video files, but it was buggy mac section. I refreshed, hoping he would show me how much space I had left, but he stayed the same. That is the problem. I use my macbook for College written work and - maximum - work on Adobe Creative Suite. When I work on these I use a separate USB key due to the size of the files.
The only files I have actively created/downloaded on my macbook are the files in the files of my 'Documents', 'Pictures' and 'Applications '. When I use "Get Info" on each, I see that my photo folder is great, My Documents folder is large 1.17 GB and my Applications folder is large 14,68 GB 889,9 MB. These are the only files that I use and backup the files needed for my Macbook running and working properly, the only files I want to keep.
My question is, basically, if there is a way to lose all the files on my hard drive that are not necessary to keep. I'm not too good when it comes to computers, so I don't want to not just randomly start deleting things. Just to get these road, my garbage can is completely empty and I have nothing in my downloads folder. I have also no large files to film and, when I searched my Macintosh HD for files larger than 500 MB, there is no evidence, so I guess that this is caused by a large amount of small files (I tried to restrict research naturally but then come files that I wasn't sure of what they have done and therefore have not removed the still). If it helps, my about Mac filed 100,64 GB of my free space as 'other '. But I know that is not how much space was taken when I got the Macbook earlier this year and it should not be the size of the files that comes with it by default. There is also a way to restore all the files on my macbook at their stage of default, that I would also be interested, especially if there is a way to do it without rid of files I already have.
I guess that's a very basic question, can someone help out me?
1. never remove all the files that you do not understand the purpose. If you do, it's like opening the hood of your car and take bits out of the engine ebcause you think they are not necessary.
2. it seems more likely that you must rebuild your Spotlight index.
See the following page:
https://www.macissues.com/2014/12/12/how-to-determine-when-your-Spotlight-index-besoins-be-rebuilt.
Towards the end.
-
What is the free space in Vista variant of +/-50 GB?
Last night when I went to bed my system reported that I had 60 GB free. This afternoon, he pointed out that I have more than 111 GB of free. I have not emptied the trash, run Disk Cleanup, installed updates (it is set to "notify me but do not install" after this update in the fall of 2009, which made me unable to get on the internet) or anything that could justify such a wide gap.
Accustomed to the amount of free space fluctuating by the swap file systems, I'm my system has only 6 GB RAM and what I have observed, I rarely fully used that. I expect a variance of + / 12 GB or more, not 50 GB.Is it normal for Vista 64-bit home premium with AVG free or is something current weird that I should try to trace? I only noticed because I knew I had to free 20 GB (probably more like 30-40) for a 580 GB partition on a drive of 500 GB of images and was preparing to move some installers downloaded from CDs and DVDs.
To study disk space, use download and install Treesize (freeware).
https://www.Jam-software.de/customers/downloadTrial.php?ARTICLE_NO=80&language=en&PHPSESSID=6odgempt76un9q9nkj7luf5be0Information about Treesize
http://www.Jam-software.com/treesize_free/
When you open Treesize scan select in the Menu and you will see a list of drives. Click on C and it will generate a list of files. Display names and 6 larger files sizes and the total at the top of the list.
To reconcile Treesize figures with the size of a partition (or drive), you must make allowances according to this formula:
Partition C + folder System Volume Information + Free space + file compression gain = ability to drive or partitionTo determine the size of the System Volume Information folder, select Start, Control Panel, system, System Protection, click Configure under Protection settings. What is the figure of the current use?
-
determine the storage space for the upgrade of the APEX
I put on my 11.2.0.3.12 level APEX APEX to APEX 4.2.4.00.08 version 3.2.1.00.12 version database. I understand that I must perform the full upgrade, I am moving from version 3.2.x to 4.2.x.
According to the APEX 4.2 Installation Guide for the full development environment, I have to spend in the following arguments:
@apexins.sql tablespace_apex tablespace_files tablespace_temp images
Where:
tablespace_apex
is the name of the storage space for the user of the Oracle Application Express application.tablespace_files
is the name of the storage space for the user to Oracle Application Express files.tablespace_temp
is the name of the temporary tablespace and tablespace group.images
is the virtual directory for the images of Oracle Application Express. To support future upgrades Oracle Application Express, set the directory of the virtual image that/i/
.
How can I determine which user is the " " " User of the oracle Application Express application" and which the user is the user Oracle Application Express 'files' (if I can then watch their default storage spaces)?
Hi Mimi Miami,
Mimi Miami wrote:
I put on my 11.2.0.3.12 level APEX APEX to APEX 4.2.4.00.08 version 3.2.1.00.12 version database. I understand that I must perform the full upgrade, I am moving from version 3.2.x to 4.2.x.
According to the APEX 4.2 Installation Guide for the full development environment, I have to spend in the following arguments:
@apexins.sql tablespace_apex tablespace_files tablespace_temp images
Where:
tablespace_apex
is the name of the storage space for the user of the Oracle Application Express application.tablespace_files
is the name of the storage space for the user to Oracle Application Express files.tablespace_temp
is the name of the temporary tablespace and tablespace group.images
is the virtual directory for the images of Oracle Application Express. To support future upgrades Oracle Application Express, set the directory of the virtual image that/i/
.
How can I determine which user is the user Oracle Application Express 'application' and that the user is the user Oracle Application Express 'files' (so I can then look at their default storage spaces)?
APEX 3.2.x installation that follows is users:
- Oracle Application Express Application user: APEX_030200
- Oracle Application Express user files: FLOW_FILES
So to determine the tablespace_apex and the tablespace_files you must connect with the user sys with sysdba privilege and run the following query:
SELECT USERNAME , DEFAULT_TABLESPACE FROM DBA_USERS WHERE USERNAME IN ('FLOWS_FILES','APEX_030200')
Then use the APEX_030200 user as tablespace_apex tablespace and a tablespace of the FLOW_FILES user as tablespace_files.
I hope this helps!
Kind regards
Kiran
-
Remove the constraint of PK to win space on INDEX tablespace
I dropped a huge table (which has recently imported for testing) INDEX by deleting the PK constraint to win space on INDEX tablespace. But INDEX tablespace is not reduced image.
Please notify.
Kind regards
Veera
The tablespace not to shrink because it's a performance inhibitor.
However, you can see the free space within the increase of tablespace, and this space is generally available for other objects.
-
Free space on the virtual?
I'm having a moment.
I'm under ESXi 4.1. I have a virtual named 'ISOs' which is where I put my ISO of Windows files. How can I determine how much free space I have in this virtual for more ISO? I might add to the top of the size of the files manually, of course.
What confuses me is that in the client software under summary for this virtual I see 80.25 gigabytes of storage allocated and used 80 GB storage. My ISO something near that don't take much place. Where is the quick way to see how much actual physical space is available so that I can know how much over 3 gig ISO I can put in this store?
Thank you.
Mike Gallery
When you are in the folder, you can select the iso file and it displays the size on the lower left hand side. However, it will not display the size of the content in the nested folders.
/
ISO
Folder1
Folder2
ISO1
ISO2
IF you select all the content under the ISO, it will display the size of the ISO1 and ISO2.
-
How to add space in the tablespace?
Hello
How can I add 180M of space in the tablespace SALES_DETAIL_TS_IDX ?
I mean I need to add an another data file with a size of 180M or I have to resize any person of the data file listed below?
If resizing, what size to resize to?
Tablespace size (MB) free (MB) % free used
------------------------------ ---------- ---------- ---------- ----------
SALES_DETAIL_TS 122001.563 32000 26 74
SQL > Select File_Name, nom_tablespace, File_ID in dba_data_files where nom_tablespace = 'SALES_DETAIL_TS_IDX' Order by Desc File_ID.
FILE_NAME
--------------------------------------------------------------------------------
FILE_ID TABLESPACE_NAME
------------------------------ ----------
/D01/U05/oradata/PSRDM/sales_detail_ts_idx_27.dbf
SALES_DETAIL_TS_IDX 1016
/D01/U15/oradata/PSRDM/sales_detail_ts_idx_26.dbf
SALES_DETAIL_TS_IDX 978
/D01/U15/oradata/PSRDM/sales_detail_ts_idx_25.dbf
SALES_DETAIL_TS_IDX 975
FILE_NAME
--------------------------------------------------------------------------------
FILE_ID TABLESPACE_NAME
------------------------------ ----------
/D01/U10/oradata/PSRDM/sales_detail_ts_idx_21.dbf
SALES_DETAIL_TS_IDX 908
/D01/U15/oradata/PSRDM/sales_detail_ts_idx_20.dbf
SALES_DETAIL_TS_IDX 837
/D01/U15/oradata/PSRDM/sales_detail_ts_idx_19.dbf
SALES_DETAIL_TS_IDX 836
FILE_NAME
--------------------------------------------------------------------------------
FILE_ID TABLESPACE_NAME
------------------------------ ----------
/D01/U15/oradata/PSRDM/sales_detail_ts_idx_18.dbf
SALES_DETAIL_TS_IDX 835
/D01/U15/oradata/PSRDM/sales_detail_ts_idx_17.dbf
SALES_DETAIL_TS_IDX 834
/D01/U12/oradata/PSRDM/sales_detail_ts_idx_16.dbf
SALES_DETAIL_TS_IDX 217
FILE_NAME
--------------------------------------------------------------------------------
FILE_ID TABLESPACE_NAME
------------------------------ ----------
/D01/U15/oradata/PSRDM/sales_detail_ts_idx_15.dbf
SALES_DETAIL_TS_IDX 216
/D01/U15/oradata/PSRDM/sales_detail_ts_idx_14.dbf
SALES_DETAIL_TS_IDX 204
/D01/U15/oradata/PSRDM/sales_detail_ts_idx_13.dbf
SALES_DETAIL_TS_IDX 203
FILE_NAME
--------------------------------------------------------------------------------
FILE_ID TABLESPACE_NAME
------------------------------ ----------
/D01/U15/oradata/PSRDM/sales_detail_ts_idx_12.dbf
SALES_DETAIL_TS_IDX 202
/D01/U12/oradata/PSRDM/sales_detail_ts_idx_24.dbf
SALES_DETAIL_TS_IDX 156
/D01/U12/oradata/PSRDM/sales_detail_ts_idx_23.dbf
SALES_DETAIL_TS_IDX 155
FILE_NAME
--------------------------------------------------------------------------------
FILE_ID TABLESPACE_NAME
------------------------------ ----------
/D01/U10/oradata/PSRDM/sales_detail_ts_idx_22.dbf
SALES_DETAIL_TS_IDX 145
/D01/U15/oradata/PSRDM/sales_detail_ts_idx_21.dbf
SALES_DETAIL_TS_IDX 137
/D01/U15/oradata/PSRDM/sales_detail_ts_idx_11.dbf
SALES_DETAIL_TS_IDX 125
FILE_NAME
--------------------------------------------------------------------------------
FILE_ID TABLESPACE_NAME
------------------------------ ----------
/D01/U12/oradata/PSRDM/sales_detail_ts_idx_10.dbf
SALES_DETAIL_TS_IDX 124
/D01/U12/oradata/PSRDM/sales_detail_ts_idx_09.dbf
SALES_DETAIL_TS_IDX 123
/D01/u08/oradata/PSRDM/sales_detail_ts_idx_08.dbf
SALES_DETAIL_TS_IDX 122
FILE_NAME
--------------------------------------------------------------------------------
FILE_ID TABLESPACE_NAME
------------------------------ ----------
/D01/u08/oradata/PSRDM/sales_detail_ts_idx_07.dbf
SALES_DETAIL_TS_IDX 121
/D01/U07/oradata/PSRDM/sales_detail_ts_idx_06.dbf
SALES_DETAIL_TS_IDX 120
/D01/U07/oradata/PSRDM/sales_detail_ts_idx_05.dbf
SALES_DETAIL_TS_IDX 119
FILE_NAME
--------------------------------------------------------------------------------
FILE_ID TABLESPACE_NAME
------------------------------ ----------
/D01/U06/oradata/PSRDM/sales_detail_ts_idx_04.dbf
SALES_DETAIL_TS_IDX 118
/D01/U06/oradata/PSRDM/sales_detail_ts_idx_03.dbf
SALES_DETAIL_TS_IDX 117
/D01/U05/oradata/PSRDM/sales_detail_ts_idx_02.dbf
SALES_DETAIL_TS_IDX 116
FILE_NAME
--------------------------------------------------------------------------------
FILE_ID TABLESPACE_NAME
------------------------------ ----------
/D01/U05/oradata/PSRDM/sales_detail_ts_idx_01.dbf
SALES_DETAIL_TS_IDX 115
/D01/U04/oradata/PSRDM/sales_detail_ts_idx_27.dbf
SALES_DETAIL_TS_IDX 63
DF - kh
Size used for free
u12zp/u12 392 347 G G G 44 89% / d01/u12
u13zp/u13 392 G 340 G G 51 87% / d01/u13
u08zp/u08 392G 317 G 74 82% / d01/u08
u09zp/u09 392 G 348 G G 44 89% / d01/u09
u06zp/u06 392G 318 G 74 82% / d01/u06
u11zp/u11 392 G 350 G 42 G 90% / d01/u11
u04zp/u04 392G 324 G 68 83% / d01/u04
u05zp/u05 392 G 349 G G 43 89% / d01/u05
u07zp/u07 392G 331 G 60 G 85% / d01/u07
u10zp/u10 392G 342 G 50 G 88% / d01/u10
u15zp/u15 392G 324 67 G 83% / d01/u15
u16zp/u16 392G 275 G 116 G 71% / d01/u16
u14zp/u14 G 392, 316 G 76 81% / d01/u14
u90zp/u90 392G 1.2 G 391G 1% / d01/u90
Thanks in advance.
Published by: 951121 on November 7, 2012 11:52select file_name, bytes/(1024*1024*1024), autoextensiable, maxsize/(1024*1024) from dba_data_files where tablespace_name='SALES_DETAIL_TS_IDX' ;
find the data file that is not reached the maximum size (32GB if its 8 k block) and resize it to match your needs.
alter database datafile '
' resize ; Otherwise, you can add the new data file. Blow is the simple add datafile statement:
alter tbalespace add datafile '
' size ; -
Calculation of the free space in a data file
Hello
I use Oracle database 11g (11.1.0.6). I need to calculate available disk space that exist in a special database for inserting new records. I look in the table dba_data_files for this information. I use the sub query to get the value of maxsize allocated in GB this until datafile that it can grow.
Select maxbytes/1024/1024/1024 of dba_data_files where nom_tablespace = 'XXXX '.
How to get the disk space available for the insertion of new records in a particular data file or a bunch of data files in a tablespace?
Kind regards
007007 wrote:
Hi Helios - Gunes EROL,The Select sum (bytes) / 1024/1024/1024 "GB" of dba_data_files where nom_tablespace = 'xx' query tells you the sum of all files of size data in a tablespace. But I need the free space available in these data files. How to get it?
Kind regards
007
Use
select sum(bytes/1024/1024/1024) GB from dba_free_space where tablespace_name='tablespace name'
Know schemae storage space
select default_tablespace from dba_users where username='schema name';
Know the perticular table tablespace
select TABLESPACE_NAME from dba_tables where table_name='table name';
Utimetly you will be insert in tablespace, little matter how many data file you have and how many girl and how many of them have the space available.
So just to worry when the table space is saturated. -
Free space in the data store is lower we shouldn't
Hello
I'm under VMware ESXi on HP Proliant DL380 G5 server - the data store has a global capacity of 678 GB, with now 34 GB free. I have 5 VMs running:
reader1/lecteur2
(1) Win2k3: 50 / 100
(3) Win2k3: 50 / 50
(1) Windows XP: 10
Oh - and the two models, one for the server (50) and a XP (10)
Yesterday, I created a couple of clones of the XP, 1 with Vmkfstools - i and the other with vConverter - especially for the practice, but they are only 10 GB. Before my creations, free space read about 115 GB - then she got at the moment, I noticed 34GB. I deleted the two new virtual machines thinking I came home back from space, but no dice. Math is not my best subject, but this does not seem to add up. Do something wrong, I missed something?
Is it possible to reclaim that space? Before I thought to check with you guys, it dawned on me that I could stop all VMs and restart the host, but if there is another way, I want to know it.
Linda
Browse the data store - go to the "Home" view - inventory - data warehouses, click a data store, and then select Browse.
Look in the subdirectory for each virtual computer and determine that seem abnormal large size files and total size of all files that exceed the size of the virtual disks assigned to the virtual machine. If you specify then what are the names of the files a plan for how to get rid of them.
Maybe you are looking for
-
Uninstall HP customer Security
I have a new HP ZBook 15. It comes with HP Client Security 8.1.2.1464 The HP Client Security features are not compatible with the security requirements of the organization. I need to uninstall. When I try to uninstall, I get an error message of not
-
How to fix audio and video?
Yes while watching a video (whether on Youtube, etc.) or a downloaded in Quicktime video format will stop after a minute and the buffer or simply freeze (Note: though it has already loaded or is already on my hard drive!), will be so audio. After 15
-
I tried to close some startup programs in msconfig and key to start diagnosis and now my computer don't return to normal startup,
-
Why my CapsLock led flashes 5 times and stop with no display on the screen?
-
Hello I did a new install of Win 7 homebasic SP1 64 bit and installed all the latest drivers of Lenovo for my E320. The UltraNav driver version is 15.3.27.1. If I push the TrackPoint, right, the cursor moves to the low right direction If I push the T