Issue in Tablespace usage
Hi ,
I am resizing the tablespace size manually that overcome the maxsize, and the tablespace is in "autoextend on".
I want to know whether the tablespace size is increased for usage upto resized level ( 1000M ) Or upto unlimited level due to "autoextend on" ???
SQL> CREATE tablespace egurkhatab datafile '/oracle/product/10.2.0/oradata/orcl/tab02.dbf' size 100M autoextend on maxsize 500M;
Tablespace created.
SQL> alter database datafile '/oracle/product/10.2.0/oradata/orcl/tab02.dbf' resize 1000M;
Database altered.
Thanks & Regards
Hi Girish,
SQL> create tablespace abc datafile
2 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\STANDBY\abcdf.dbf' size 5m autoextend on
maxsize 10m;
Tablespace created.
SQL> conn abc/abc
Connected.
SQL> create table abc1 as select * from all_objects;
Table created.
SQL> conn /as sysdba
Connected.
SQL> select sum(bytes/1024/1024) from v$datafile where file#=5;
SUM(BYTES/1024/1024)
6
SQL> conn abc/abc
Connected.
SQL> create table abc2 as select * from all_objects;
create table abc2 as select * from all_objects
ERROR at line 1:
ORA-01652: unable to extend temp segment by 128 in tablespace ABC
Now,
SQL> conn /as sysdba
Connected.
SQL> select sum(bytes/1024/1024) from v$datafile where file#=5;
SUM(BYTES/1024/1024)
9.0625
SQL> alter database datafile 5 resize 15m;
Database altered.
SQL> conn abc/abc
Connected.
SQL> create table abc2 as select * from all_objects;
Table created.
SQL> conn /as sysdba
Connected.
SQL> select sum(bytes/1024/1024) from v$datafile where file#=5;
SUM(BYTES/1024/1024)
15
SQL> conn abc/abc
Connected.
SQL> create table abc3 as select * from all_objects;
create table abc3 as select * from all_objects
ERROR at line 1:
ORA-01652: unable to extend temp segment by 128 in tablespace ABC
HTH
KSG
Similar Messages
-
Tablespace usage report generated with html tags instead of text
Hi ,
We have a unix shell script scheduled to find tablespace usage and sends the report to our mail id.
For the past few weeks(no changes idone in the script) the report is coming with html tags instead of text as below.
</head>
<body>
<p>
<table border='1' width='90%' align='center' summary='Script output'>
<tr>
<th scope="col">
TABLESPACE_NAME
</th>
<th scope="col">
CUR_USE_MB
</th>
<th scope="col">
CUR_SZ_MB
</th>
<th scope="col">
CUR_PRCT_FULL
</th>
<th scope="col">
FREE_SPACE_MB
</th>
<th scope="col">
MAX_SZ_MB
</th>
<th scope="col">
OVERALL_PRCT_FULL
</th>
</tr>
<tr>
<td>
SYSTEM
</td>
<td align="right">
268
</td>
<td align="right">
500
</td>
<td align="right">
54
</td>
Is this any settings issue or anything to be modified in the script.Could you please reply..
Regards,
Bharath.
Edited by: 870384 on Jul 6, 2011 1:17 AMHi Sven W,
Please find the sql below that is generating the tablespace usage report. In the staring of the script markup is set to ON and at the end it is set to OFF.Do you suggest any changes to this..?
SET ECHO OFF
SET PAGES 999
SET MARKUP HTML ON SPOOL ON
col tablespace_name format a15 trunc
col cur_use_mb for 999999999
col cur_sz_mb for 999999999
col free_space_mb for 999999999
col max_sz_mb for 999999999
compute sum of cur_use_mb on report
compute sum of cur_sz_mb on report
compute sum of free_space_mb on report
compute sum of max_sz_mb on report
break on report
spool tablespace.html
select tablespace_name,
round(sum(total_mb)-sum(free_mb),2) cur_use_mb,
round(sum(total_mb),2) cur_sz_mb,
round((sum(total_mb)-sum(free_mb))/sum(total_mb)*100) cur_prct_full,
round(sum(max_mb) - (sum(total_mb)-sum(free_mb)),2) free_space_mb,
round(sum(max_mb),2) max_sz_mb,
round((sum(total_mb)-sum(free_mb))/sum(max_mb)*100) overall_prct_full
from (select tablespace_name,sum(bytes)/1024/1024 free_mb,0 total_mb,0 max_mb from DBA_FREE_SPACE group by tablespace_name
union select tablespace_name,0 current_mb,sum(bytes)/1024/1024 total_mb,sum(decode(maxbytes, 0, bytes, maxbytes))/1024/1024 max_mb
from DBA_DATA_FILES group by tablespace_name) a group by tablespace_name;
select owner,segment_name,segment_type,bytes/(1024*1024) size_m
from dba_segments
where tablespace_name = 'SYSTEM' and segment_name='FGA_LOG$' order by size_m desc;
spool off;
SET MARKUP HTML OFF SPOOL OFF -
Temporary tablespace usage is always 0%
Friends,
I have this strange issue. My Oracle 9iR2 database always show temp tablespace usage as 0% no matter how much sorting is going on, it is never used.
select status from dba_temp_files;
=> AVAILABLE
select tablespace_name, status from dba_tablespaces where contents = 'TEMPORARY';
=> TEMP1, ONLINE
All users have TEMP1 as temporary tablespace.
I ran this random query to analyze temp usage.
SELECT * FROM DBA_EXTENTS ORDER BY 1,4,2,3,7,8;
I am using this query to analyze temp usage
http://www.oracle.com/technology/oramag/code/tips2004/110104.html
[re]
SELECT s.sid "SID",s.username "User",s.program "Program", u.tablespace "Tablespace",
u.contents "Contents", u.extents "Extents", u.blocks*8/1024 "Used Space in MB", q.sql_text "SQL TEXT",
a.object "Object", k.bytes/1024/1024 "Temp File Size"
FROM v$session s, v$sort_usage u, v$access a, dba_temp_files k, v$sql q
WHERE s.saddr=u.session_addr
and s.sql_address=q.address
and s.sid=a.sid
and u.tablespace=k.tablespace_name;
Any idea what going on here.
Regards,
Vishal V.Hi,
===To find out the who is using the temp space===
SELECT b.tablespace, b.segfile#, b.segblk#, b.blocks, a.sid, a.serial#,
a.username, a.osuser, a.status
FROM v$session a,v$sort_usage b
WHERE a.saddr = b.session_addr
ORDER BY b.tablespace , b.segfile#, b.segblk#, b.blocks;
===== to find out the free space in temp space ===
SQL> select tablespace_name, file_id, bytes_used, bytes_free
2 from v$temp_space_header ; -
Notification of tablespace usage not running
With grid control we have a system generated rule Database Availabilities and Critical States which include Tablespace usage.
if we would like to customized this rules, we are not ablke to select a tablespace part of a Cluster Database. Apparently due to the target type we are not able to select a tablespace of a Cluster database.
I have created a new rules with a Cluster Database as Target type and include the Tablespace metrics but not Email are sent. (Email notification is on and all level Critical, warning, clear and also all correctives actions states.)
if somebody have an idea on this subject ?
Our notification are based on the Grid control but apparently we are not able to be notified for the tablespace usage of cluster database and also for databases not in a cluster.
OMS 10.3.2
DB 11.2.0.1
Edited by: algarra on Apr 13, 2011 9:31 AMIf they are on autoextend you will not get an alert because Oracle will extend.
Turn off autoextend on a tablespace and adjust your threshold and time to test alert.
You will get a email alert. To clear set back to autoextend.
KDSDBA
OCP -
Check and identify cause of previous temp tablespace usage
Hi
Our production ERP database is on solaris and on version 9.2.0.8.0. The application tier and database tier are on two separate nodes.
Recently we observed that the temporary tablespace is being consumed more on a particular day. While monitoring the database,we observed the free temp tablespace was less and hence added 10gb space to it. However within 5-6 hours this space was utilised and certain requests/jobs failed due to no space in temp. This happened on 04th December 2012. Though the situation returned to normal post that,we need to find the cause of consumption of temporary tablespace in such large volumes. We are on 9i database and hence tried identifying the queries through statspack report as no views in particular exist for 9i.
We came across many queries which would help us identfy the current temp usage,but in 9i,we didnot find anything which would guide us on the historic temp tablespace usage. Can it be found via statspack? If yes,what exactly to check for in it? Request you to all please advice. Thanks.
Regards
Rdxdba-- To get historic information for a spesific sid,serial
column temp_mb format 99999999
column sample_time format a25
prompt
prompt DBA_HIST_ACTIVE_SESS_HISTORY
prompt
select sample_time,session_id,session_serial#,sql_id,temp_space_allocated/1024/1024 temp_mb,
temp_space_allocated/1024/1024-lag(temp_space_allocated/1024/1024,1,0) over (order by sample_time) as temp_diff
from dba_hist_active_sess_history
--from v$active_session_history
where
session_id=&1
and session_serial#=&2
order by sample_time asc
prompt
prompt ACTIVE_SESS_HIST
prompt
select sample_time,session_id,session_serial#,sql_id,temp_space_allocated/1024/1024 temp_mb,
temp_space_allocated/1024/1024-lag(temp_space_allocated/1024/1024,1,0) over (order by sample_time) as temp_diff
--from dba_hist_active_sess_history
from v$active_session_history
where
session_id=&1
and session_serial#=&2
order by sample_time asc
=========================================================================
---- For global temp usage info
col sid_serial format a10
col username format a17
col osuser format a15
col spid format 99999
col module format a15
col program format a30
col mb_used format 999999.999
col mb_total format 999999.999
col tablespace format a15
col statements format 999
col hash_value format 99999999999
col sql_text format a50
col service_name format a15
prompt
prompt #####################################################################
prompt #######################LOCAL TEMP USAGE#############################
prompt #####################################################################
prompt
SELECT A.tablespace_name tablespace, D.mb_total,
SUM (A.used_blocks * D.block_size) / 1024 / 1024 mb_used,
D.mb_total - SUM (A.used_blocks * D.block_size) / 1024 / 1024 mb_free
FROM v$sort_segment A,
SELECT B.name, C.block_size, SUM (C.bytes) / 1024 / 1024 mb_total
FROM v$tablespace B, v$tempfile C
WHERE B.ts#= C.ts#
GROUP BY B.name, C.block_size
) D
WHERE A.tablespace_name = D.name
GROUP by A.tablespace_name, D.mb_total;
prompt
prompt #####################################################################
prompt #######################LOCAL TEMP USERS#############################
prompt #####################################################################
prompt
SELECT S.sid || ',' || S.serial# sid_serial, S.username, S.osuser, P.spid,
--S.module,
--P.program,
s.service_name,
SUM (T.blocks) * TBS.block_size / 1024 / 1024 mb_used, T.tablespace,
COUNT(*) statements
FROM v$tempseg_usage T, v$session S, dba_tablespaces TBS, v$process P
WHERE T.session_addr = S.saddr
AND S.paddr = P.addr
AND T.tablespace = TBS.tablespace_name
GROUP BY S.sid, S.serial#, S.username, S.osuser, P.spid,
S.module,
P.program,
s.service_name,TBS.block_size, T.tablespace
ORDER BY mb_used;
--prompt
--prompt #####################################################################
--prompt #######################LOCAL ACTIVE SQLS ############################
--prompt #####################################################################
--prompt
-- SELECT sysdate "TIME_STAMP", vsu.username, vs.sid, vp.spid, vs.sql_id, vst.sql_text,vsu.segtype, vsu.tablespace,vs.service_name,
-- sum_blocks*dt.block_size/1024/1024 usage_mb
-- FROM
-- SELECT username, sqladdr, sqlhash, sql_id, tablespace, segtype,session_addr,
-- sum(blocks) sum_blocks
-- FROM v$tempseg_usage
-- group by username, sqladdr, sqlhash, sql_id, tablespace, segtype,session_addr
-- ) "VSU",
-- v$sqltext vst,
-- v$session vs,
-- v$process vp,
-- dba_tablespaces dt
-- WHERE vs.sql_id = vst.sql_id
-- AND vsu.session_addr = vs.saddr
-- AND vs.paddr = vp.addr
-- AND vst.piece = 0
-- AND vs.status='ACTIVE'
-- AND dt.tablespace_name = vsu.tablespace
-- order by usage_mb;
--prompt
--prompt #####################################################################
--prompt #######################LOCAL TEMP SQLS##############################
--prompt #####################################################################
--prompt
--SELECT S.sid || ',' || S.serial# sid_serial, S.username, Q.sql_id, Q.sql_text,
--T.blocks * TBS.block_size / 1024 / 1024 mb_used, T.tablespace
--FROM v$tempseg_usage T, v$session S, v$sqlarea Q, dba_tablespaces TBS
--WHERE T.session_addr = S.saddr
--AND T.sqladdr = Q.address
--AND T.tablespace = TBS.tablespace_name
--ORDER BY mb_used;
-- -
Need clarification on issue with tablespaces
Hi All,
I needed clarification on this issue with tablespaces.I am following a guideline which says "Presently,The general rule of thumb is to concentrate on tablespaces that are 90% or greater used and have less than 2 GB of free space"
My Scenario:-Now i have tablesace which is 97.23 % and the free space is 10 gb.Please advise me that whats the best next step I can take in this respect?
I am very new to this and just following the guideline,so can you all please explain me some details about this.
ThanksWell, the guideline says "*and* have less than 2 GB of free space"
Since that tablespace as 10GB of free space, the guideline says that you do not need to concentrate on it. Eh ?
I would be careful with guidelines that are hard-coded in this manner. You need to know the context in which the guideline was set.
Assuming that your database/application doesn't grow suddenly by 1GB or larger (or create temporary segments / objects of 1GB or larger), the "2 GB of free space" might make sense. Then, again, it depends on the extent allocation type. What size are extents getting allocated.
You should check with your organisation's senior DBAs on what happens if you don't concentrate on a tablespace because it is outside the guidelines ! -
Find the tablespace usage for the last 6 months time.
I have an Oracle 9i database. Now, there is a requirement to find the tablespace usage for the last 6 months.
Can anyone please tell me, how can I achieve this? I do not have EM configured. So please lemme know if there is any script that can give these details?
Thanks.878226 wrote:
I have an Oracle 9i database. Now, there is a requirement to find the tablespace usage for the last 6 months.
Can anyone please tell me, how can I achieve this? I do not have EM configured. So please lemme know if there is any s?cript that can give these details?
Thanks.refer the link:- http://www.dba-oracle.com/t_v_datafile_database_size.htm
note: i did not check the query and version. please check whether it is applicable to 9i database or not?
10g and above refer:http://maxwellmiranda.wordpress.com/2011/03/22/segmenttablespace-growth-details-script/
Edited by: rajeysh on Aug 28, 2011 12:14 PM -
Hi All,
My undo tablespace is 97% full.
Is there any way to check which process is using more undo tablespace.
Thansk in Advance for your response.
Regards,
Ashwani N.# UNDO tablespace usage
select a.process, a.program, a.module, a.machine, b.USED_UREC, c.sql_text
from v$sql c, v$session a, v$transaction b
where b.addr = a.taddr
and a.sql_address = c.address
and a.sql_hash_value = c.hash_value
order by b.USED_UREC;
SELECT s.sid , s.username , t.used_ublk
FROM v$transaction t
, v$session s
WHERE 1 = 1
AND t.ses_addr = s.saddr
column username format a15;
column segment_name format a15;
SELECT s.sid , s.username , t.used_ublk, round((t.used_ublk*8)/1024) size_in_MB_8kb_Block_size, round((t.used_ublk*16)/1024
) size_in_MB_16kb_Block_size
FROM v$transaction t
, v$session s
WHERE 1 = 1
AND t.ses_addr = s.saddr;
SELECT distinct rpad(s.sid,3) "SID",S.USERNAME,
E.SEGMENT_NAME,
T.START_TIME "Start",
rpad(T.STATUS,9) "Status",
round((t.used_ublk*8)/1024) "Size(MB)"
--T.USED_UBLK||' Blocks and '||T.USED_UREC||' Records' "Rollback Usage"
FROM DBA_DATA_FILES DF,
DBA_EXTENTS E,
V$SESSION S,
V$TRANSACTION T
WHERE DF.TABLESPACE_NAME = E.TABLESPACE_NAME AND
DF.FILE_ID = UBAFIL AND
S.SADDR = T.SES_ADDR AND
T.UBABLK BETWEEN E.BLOCK_ID AND E.BLOCK_ID+E.BLOCKS AND
E.SEGMENT_TYPE in( 'ROLLBACK','TYPE2 UNDO'source:-
http://blog.contractoracle.com/2008/08/undo-tablespace-usage.html -
Clarification on issue with tablespaces
Hi All,
I needed clarification on this issue with tablespaces.I am following a guideline which says _"Presently,The general rule of thumb is to concentrate on tablespaces that are 90% or greater used and have less than 2 GB of free space"_
My Scenario:-Now i have tablesace which is 97.23 % and the free space is 10 gb.Please advise me that whats the best next step I can take in this respect?
I am very new to this and just following the guideline,so can you all please explain me some details about this.
ThanksWhat's the rate of growth? Is 10GB going to last you a day? A week? A month?
Cheers, APC
blog: http://radiofreetooting.blogspot.com -
Issues with data usage Samsung S5
Over the past few months I have been paying outrageous bills due to one of my lines eating all my data when there is no one even touching the phone. I have 3 phones and a tablet on my plan and I am paying 288.00 a month and last month they charged me 15.00 for overage usages because it went over on the last day of the billing cycle. Once again that one line ate up all the data even though it's connected to our wifi or just sitting dormant. I am getting sick of paying these outrageous prices and am about to go somewhere else. I was tricked into the 10.00 a month tablet fee when I signed two phones up under the verizon edge plan. the sales clerk did not tell me I could not cancel the 10.00 a month fee because it would be under a year contract nor did I sign anything saying that, but when I went back in to change the 3rd line over to the Edge plan they told me it would be a $300 or so disconnect charge. So of course I am still paying 10.00 a month for no reason because I have wifi in my home and I only use the tablet in my home. so i need help with trying to figure out the data issues with just one of my lines. I do not have bluetooth on or location. I have went to the play store and uninstalled everything I could. I constantly close out of my applications and clear history etc.,,
So you thought they would just give you a free tablet at $10 a month and it didn't need to be in a contract like phones? I took the free tablet too but common sense told me it was locked into a contract, I didn't even ask as I just knew that would be the case but I didn't care. Mary
-
RAM Issues + High disk usage on MSI GE60
Recently I've noticed that my system slowly eats up RAM. It starts off at 21% and can go as high up as 80% or more. When I'm playing games on it the RAM does not clear up properly either, it stays at 50% or so. This was an issue before that I somehow managed to solve, but it is back again.
As for high disk usage, that's been a problem since I've had the laptop.
OS: Windows 8
Processor: Intel Core i7 4700MQ (2.40GHz)
GPU: NVIDIA GeForce GTX 765M
RAM: 8GB Memory
HDD: 750GB
If you need more info I'll provide it.If you open task manager-> performance -> open resource manager / you will see whats eating up your resources
if its windows see if indexing is off
did you installed 3rd party software diffrent than stock ?
how old is your laptop?
its not normal to have such high usage numbers !! i think its a program causing the problems !
if you check your resource manager you will be able to see whats causing it
ps if possible please post a screen shot and ill look into it -
Tablespace usage in Oracle 11g
Hi Guys,
Not sure if this has been asked before.
I have created a couple of table spaces in my database and one of these tables is holding all my data. For that table space, I have added at least 8 data files so far and it seems that Oracle uses the free space very quickly. I would like to know following things
1. Is there anyway to know that usage of data files with respect to table stored in it? In other words - would I be able to know if Table-A stored in datafile 1?
2. Is there anyway to reuse the old data files?
3. I am not sure if it is an Oracle instance, but it seems to be that Oracle 11g uses the free space very quickly (I can understand that it depends on the data) so just curious to know if there is anyway to minimize the usage.
Any information on this would be useful and appreciated.
Thanks
Regards
JiggyIs there anyway to know that usage of data files with respect to table stored in it? In other words - would I be able to know if Table-A stored in datafile 1? The tables are actually stored in the tablespaces itself , spanned to multiple datafiles. Query dba_segments and dba_extents to find out that in which tablespace and datafile(s) , your tables are spread across.
Is there anyway to reuse the old data files?In what way? If it is a Locally Managed Tablespace, Oracle would reuse the space becoming free automatically within the tablespace for the subsequent data.
I am not sure if it is an Oracle instance, but it seems to be that Oracle 11g uses the free space very quickly (I can understand that it depends on the data) so just curious to know if there is anyway to minimize the usage. No such thing at least in my knowledge. Space being used would solely depend on the incoming data and not on the release of the db.
Aman.... -
When I open up the project plan I see the following in the Resource Usage view for John (resource):
The level of effort for the task is 8 hrs for that day. However I am seeing a discrepancy where the total effort for that day appears as 9.6 hrs. I don't know where the additional 1.6 hrs is coming from.
The issue is the same for the other resources in the project.
Has anyone seen this issue before?
Thanks in advance.Hi Bomasamudram,
And you'll only see this check box for Summary Resource Assignemtns if you choose the account each time you start project pro...
Ben Howard [MVP] | web |
blog |
book | P2O -
Tablespace usage has suddenly jumped, for no apparent reason.
I had 1Gb tablespace that with only 150Mb used. Tables within grow slowly based on the data inputs of a dozen or so staff.
Last week usage jumped suddenly to 1Gb filling the tablespace. I extended the datafile to 2Gb, and a day later usage had gone up to 1.8Gb. I've now extended to 4Gb, although usage is still at 1.8Gb.
I didn't know of a way to see how much space individual tables were using, so I exported each individually to try and locate an oversized table. They all were as expected, total size about 150Mb.
Does anyone know what might be happening?
Thanks,
NeilLooking at the tablespace map in OEM, there is a segment called SYS_LOB0000040601C00003$$ which is taking up most of the space.
What might have created this? -
Generating Report for Monthly Database Tablespace Usage in Grid
I am trying to generate a Report in OEM Grid to obtain the Statistical history of Tablespace Growth for an Oracle Database. When am running the report which is predefined and created as SYSMAN, am getting no rows select for an Oracle 10g database which is the target on a Linux Host. When I try to generate the same for the databases on HPUX, RAC instances I get a detailed report except for couple of databases on Stand Alone Linux servers. Am I missing any Set up?
Please advise!Grid is reporting correctly about this database regarding the Availability, File Systems space Usage Alerts and all that has been set up.
Maybe you are looking for
-
How do I add the Displays icon to the Menu Bar?
In prior OS on my iMac, I was able to add the Display icon to the Menu Bar, making it a quick fix to adjust the resolution. That option no longer appears in the Display section of System Preferences. I am using multiple displays. Could that make a
-
.p12 Certificate import in weblogic server 10.3.6.0
Hi, I am facing a issue regarding certificate import in weblogic server 10.3.6.0. In my project I built a java webservice where a https url is invoked with xml input(correct format).Https url is restricted. I can not open this url from my browser. I
-
We have implemented a servlet that uses a RequestDispatcher to forward to a JSP. The JSP instantiates an object (passing the Request and Response as parameters) that uses the RequestDispatcher once again to include another JSP. This has been working
-
Document Security Not Retaining Permissions
I have created a form in 7.0 and published it to my repository on my hard drive. I've uploaded the form to my site for my users. The form has three signature boxes as it's used in a workflow. I have full blown Acrobat 7 but my users don't. I can sign
-
FM/BAPI for assigning a class and value for the class instead of manually d
Hi guys, Instead of manually adding equipment class and assigning value for the class added can i get a FM or BAPI. this is for transaction IE02. rewards will be given.