Unexplained Tablespace growth then shrinks in 11g
Is there something in the automated jobs that cause a tablespace to show growth, then shrink within 10-15 minutes? We alerted through OEM of a WARNING, followed shortly after by a time CLEAR. I remember reading something on this time, but couldn't find this documentation again. Can anyone help?
FBahr wrote:
John - work Advisor automatic segment running, cause this situation?
Yes, it could... did you read my response? The Advisor of Compression is part of employment Advisor auto segment.
Tags: Database
Similar Questions
-
keeping track of the tablespace growth
Hi all
10g on solaris 10
We want to keep track of the tablespace growth in our production database?
Any idea hw to do this?
KaiBetter to keep the data in a table of data instead of the old email so you can find and process.
Best database dbms_scheduler than cron schedule.for example, something like
create table xxx_datafile_history (date of collect_date, varchar2 (30) nom_tablespace, whole file_id, number of bytes).-can schedule a monthly job to do the following: -.
Select sysdate into double currdate;
insert into xxx_datafile_history select currdate, nom_tablespace, file_id bytes from dba_data_files; -
Hi all
We are 11 GR 2 2 node RAC in win2008r2. I want to get report growth tablespace in good months for the last 6 months. I would be grateful if someone can help out me. The following query gives me a month only. I want month wise. Help, please
SELECT TO_CHAR (sp.begin_interval_time,'DD-MM-YYYY "") days
ts.tsname
, max (round ((tsu.tablespace_size* dt.block_size) /(1024*1024), 2)) cur_size_MB
, max (round ((tsu.tablespace_usedsize* dt.block_size) /(1024*1024), 2)) usedsize_MB
OF DBA_HIST_TBSPC_SPACE_USAGE tsu
DBA_HIST_TABLESPACE_STAT ts
DBA_HIST_SNAPSHOT sp
Dt DBA_TABLESPACES
WHERE tsu.tablespace_id = ts.ts #.
AND tsu.snap_id = sp.snap_id
AND ts.tsname = dt.tablespace_name
AND ts.tsname NOT IN ('SYSAUX', 'SYSTEM')
GROUP OF TO_CHAR (sp.begin_interval_time,'DD-MM-YYYY ""), ts.tsname
ORDER BY ts.tsname, days
/
Can you please send the output you get.
The above query that generate the day wise result (and not wise months).
For the report month wise, you must use TO_CHAR (sp.begin_interval_time, 'MM-YYYY') instead of TO_CHAR (sp.begin_interval_time, 'DD-MM-YYYY') or use trunc (begin_interval_time, 'MM') instead of TO_CHAR (sp.begin_interval_time,'DD-MM-YYYY "")
If you want data day wise but you have found only 1 month data, this means that older data is purged from your database.
You can check this by using query below to see how old instant you have.
Select min (sp.begin_interval_time) DBA_HIST_SNAPSHOT sp.;
Concerning
Anurag.
-
Projection of tablespace growth
Hi all
I want to understand if there is a way to predict the growth of a tablespace, I used dbms_space that predicts the upward trend in a specific table not a tablespace.
Thanks in advancerefer to this link: hope, what can help you
http://www.DBA-Oracle.com/t_database_growth_reports.htm -
Hello guys,.
I have an Oracle (10g version 10.1.0.5.0) database that is not too big, but my phase of temporary tablespace (LMT) too (20 GB)
How can I save a normal or more regular size?
Kind regards.There are reasons of servral why your app (has nothing to do with the size of the database) is using a lot of temporary space. Get your temporary tablespace to small size can not solve. It will still grow after that.
You might want to take a look at these discussions on the parameters of the PGA, etc.
Re: Problem with memory PGA - Oracle 10.2.0.4 on windows 2003
Re: Details on using in the memory of the PGAIf you must reduce the size of your tablespace temp of smaller size, an option is to create a new temp tablespace, change username for this tablespace, drop the old temp tablespace and re-create for small size chosen, then switch users back.
Avoid creating your temporary tablespace with temporary file extension. The size of your tempfiles properly and not use AUTO EXTEND on creating temp tablespace.
-
How to find a tablespace of growth on a daily basis
Hi team,
How can we find a tablespace of growth on a daily basis for a 11.2.0.2 database?
OPERATING SYSTEM: AIX 6.1###########################
!!! Tablespace growth
###########################Change your name of the Tablespace TBS1.
SELECT TO_CHAR (sp.begin_interval_time,'YYYY-MM-DD') days , ts.tsname , max(round((tsu.tablespace_size* dt.block_size )/(1024*1024),2) ) cur_size_MB , max(round((tsu.tablespace_usedsize* dt.block_size )/(1024*1024),2)) usedsize_MB FROM DBA_HIST_TBSPC_SPACE_USAGE tsu , DBA_HIST_TABLESPACE_STAT ts , DBA_HIST_SNAPSHOT sp , DBA_TABLESPACES dt WHERE tsu.tablespace_id= ts.ts# AND tsu.snap_id = sp.snap_id AND ts.tsname = dt.tablespace_name AND ts.tsname IN ('TBS1') GROUP BY TO_CHAR (sp.begin_interval_time,'YYYY-MM-DD'), ts.tsname ORDER BY ts.tsname, days;
Please keep forum clean marking your Post as answer or relatively useful if your question is answered.
Thank you best regards &,.
SID(StepIntoOracleDBA)
E-mail: [email protected]
http://stepintooracledba.blogspot.in/
http://www.stepintooracledba.com/
-
Impdp and transform = segment_attributes to reclaim the space from the tablespac
Hi all
I hope someone can help me here.
I have a data base of production and a couple of copies of the said to develop and test.
Recently there have been made some cleanups on several tables where innitially on milj 50 records were stored, 12 milj got removed, put back, then 34 milj got deleted.
Of course, looking in enterprise manager it tells me there are gigbytes of recoverable space in my workspaces table.
The tables with data I stored in a tablespace called EDB and the indexes created for these tables are stored in the EDB_IDX tablespace.
With Enterprise Manager I can easy to use SHRINK to recover space on EDB_IDX but it does not work on the EDB tablespace.
I did some digging around and tried this on my development server. I had update data from one of these schemes anyway.
So what I've done, this is the option "transform = segment_attributes: No." When tables with data importing was finished I could see my tablespace utilization was even more small 20 GB, it was before so far perfectly good. But then it starts to create the index and these were created in my EDB tablspace rather than the EDB_IDX tablespace where I want them to go.
Logic because the transform option I used with the import data pump bands information.
Is there a way where I can make importation where recoverable space is taken into account but preserves my destination of tablespace?
I'm on 11g by the way. (11.2.0.3 Enterprise Edition)
The production database is on its own database server and schema.
Development environments are on the server to an oracle database separate each with a scheme by environment.
Any help is appreciated.
Best regards, LucHi Luke,.
Try:TRANSFORM = SEGMENT_ATTRIBUTES:n:table
It extends the syntax just make tables or indexes just do - the default is both.
See you soon,.
Harry -
It will frequently commit resolve ora-30036 (cannot extend the undo tablespace)
I use 11.2.0.3 database. I confused on the use of validation to resolve ora-30036.
I have the script in migration once that has many updates and I'm getting ORA-30036 (unable to extend segment by 4 in the "UNDOTBS" undo tablespace) .
Our undo tablespace in NO mode autoextend and like this is just a one time event, we will not increase it. He is currently 6 GB.
We would commit determination ORA-30036 in my case? If not why? Is there a better solution to solve it.
When I say commit frequent, I won't commit after each line, I just want to commit after may be million lines, so that my active cancellation extend turn into cancellation remaining will extend and Oracle will be able to use it in case of pressure of space.
Note:
UNDO_MANAGEMENT: AUTO
UNDO_RETENTION: 2700
Undo tablespace retention is NOGAURANTEE.
I have the script in migration once that has many updates and I'm getting ORA-30036 (unable to extend segment by 4 in the "UNDOTBS" undo tablespace).
Our undo tablespace in NO mode autoextend and like this is just a one time event, we will not increase it. He is currently 6 GB.
Why don't you increase it?
You must use the correct size of UNDO necessary for the work that will be done.
A lot of shops to create a for big lots new UNDO tablespace and then switch to it for batch processing. Once the task is completed, they switch back to the normal UNDO. That prevents the normal RETURN of autoextending far where it is normally necessary:
ALTER SYSTEM SET UNDO_TABLESPACE
-
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.
-
Drop Tablespace without interruption
I'm under Oracle 11.2.0.3 on RedHat 6. I have an empty tablespace where one of the data files is missing on ASM. My ultimate goal is to eliminate the tablespace and I want to avoid any downtime if possible.
Can I drop the tablespace and then go in and manually delete the remaining data files via asmcmd?
Hello
You can drop this tablespace including content and database data files.
If you still see the space is not released, then validate the files that are not be accessed at the level of the ASM using script at the bottom of the document,
HOW to map ASM FILES WITH FILES of DATABASE ONLINE (Doc ID 552082.1)
Then, move these asmcmd data files by using the command "rm" / "file" sqlplus ASM sql.
Kind regards
Loriette -
How to find the history of Tablespace in Oracle database?
Hello
I need to find which data was inserted on the weekly basis in the particular tablespace.
Because we need to find which tables update very frequently, and also we didn't have plenty of space in the server.
If we can find it, it would be useful for us to communicate with the developers.
Thank you
Shiv.
For tablespace growth
==================
Select
TO_CHAR (sp.begin_interval_time,'dd-mm-yyyy "") days.
TS.tsname,
Max (round ((tsu.tablespace_size* dt.block_size) /(1024*1024), 2)) cur_size_mb,.
Max (round ((tsu.tablespace_usedsize* dt.block_size) /(1024*1024), 2)) usedsize_mb
Of
dba_hist_tbspc_space_usage tsu,
dba_hist_tablespace_stat ts,
dba_hist_snapshot sp,
dba_tablespaces dt
where
Tsu.tablespace_id = ts.ts #.
and
Tsu.snap_id = sp.snap_id
and
TS.tsname = dt.tablespace_name
and
TS.tsname not in ('SYSAUX', 'SYSTEM')
Group
TO_CHAR (sp.begin_interval_time,'dd-mm-yyyy ""), ts.tsname
order of ts.tsname, days;
To check the tablespace free sapce
================
Select nom_tablespace, sum (bytes) /(1024*1024*1024) from dba_free_space where nom_tablespace = group 'LARGE_DATA' order by 2 desc nom_tablespace
To check the size of tables
=================
Select sum (bytes) in dba_segments where nom_segment = "XYZ";
Thank you
Harman
-
Problems connecting to the database msaccess 32 bit on 64 bit 11G
Here's the question:
I have a database to 9i (32-bit windows) with a connection hsodbc to an old one to an Access database so once the schema can see and copy data from an access database has said, everything works fine.
I'm about to move the 64 bit 11.2.0.3 on windows 2008 server 64-bit database, database is migrated and tested ok.
The problem comes from the connection dg4odbc, I created the AS400 database connections and they are ok, but I set up an ODBC for the access database, using the 32-bit ODBC interface as MS recommends, but I always get this error message:
ERROR on line 1:
ORA-28500: connection between ORACLE and a non-Oracle system has sent this message:
[Microsoft] [ODBC driver manager] The specified DSN contains an architecture
incompatibility between the driver and the Application {IM014}
ORA-02063: preceding 2 lines of RADERDB
According to MS technet, it is do not use the c:\Windows\SysWOW64\odbcad32.exe to set up the ODBC connection, but I used only executable, when I use the ordinary 64-bit ODBC admin I can't even see msaccess drivers first.
The funny thing is, when I point the tnsnames.ora on the old server 9i entry, it uses the ODBC connection and then the dblink 11G and then works fine. However, it is a band-aid solution and I want to get everything works from the new production database server.
Any suggestions?
Thanks in advance...
The message means you are using a 32-bit with a 64-bit program ODBC driver. It does not work. If you want to connect with the 64-bit DG4ODBC, you must use a 64-bit ODBC driver. A package is available on the Microsoft Technet site (AccessDatabaseEngine_x64 - http://www.microsoft.com/en-gb/download/details.aspx?id=13255 ) that ships the drivers ODBC 64-bit for their Excel/Access programs.
Please note that product installation gateway 32-bit on Windows 64-bit is NOT supported.
-Klaus
-
We have a case opened with the support of the Oracle, but I thought I'd throw it out there if it's ok.
We have a 8.1.7.4 database running on HP - UX 11.11 PA-Risc and it looks like any session that wants to use a temp space is hung a SS enqueue or in some cases is waiting on a waiting "sort request of the segment.
Saturday, we tried to move all users to a new temporary tablespace and drop the old one but the drop suspended and we control-C out of it. We put the users to the original temp. Note that both the old and the new temporary tablespaces are managed locally.
Before trying to leave falling the old tablespace temp that we killed the existing sessions, including one who had worked for two weeks and has been hooked on SMON.
Query v$ fast_start_transactions and x$ ktuxe indicate that SMON is back any large transaction.
In addition, SMON seems to run this query always:
SELECT file #, block #, LENGTH
The UET $
WHERE the ts # =: 1 AND segfile # =: 2 AND segblock # =: 3 AND ext # =: 4
Here are the locks held by SMON for what it's worth:
ADDR KADDR SID TY ID1 ID2 LMODE CTIME BLOCK REQUEST
---------------- ---------------- ---------- -- ---------- ---------- ---------- ---------- ---------- ----------
C000000028C43CD8 C000000028C43CF8 74 16 4 0 59610 TT 8 0
C000000028C43C68 C000000028C43C88 TS 74-666633304 8 6 0 0 59650
C000000028C1CB38 C000000028C1CB58 8 ST 0 0 6 0 13 0ST, space management Transaction
TS, temporary Segment (also TableSpace)
TT, temporary TableSame database has a recovery scenario about a month or to go back due to some deleted data files. Also, during the holidays, we had to rebuild a global index huge and increased our tablespace temp to get it, which is why we strive to reduce now create a smaller. In addition, creating index was still holding in the tablespace existing managed dictionary so we ended up move the index to a managed locally. Also, UET$ has about 33,000,000 lines and most of the data is in the dictionary managed tablespaces. Dba_free_space queries typically take 30 minutes to return - that is, we know it is messed up and has been so for a long time.
Pleasure for us. If anyone has an idea that would be great.
-Bobby
Tablespace name I really used corresponded to ts #= 74 in v$ tablespace.
We plan to rebuild the other indexes in this space in a new locally managed tablespace and then drop the tablespace existing managed dictionary. My only question is whether corruption will drop the tablespace to fail.
Hi Bobby,.
I'm not sure of your current situation hope now, that's better.
I couldn't find the time to reply back yesterday. Looking at the huge amounts of temporary segments in your tablespace (74), just made me think if you or Support of Oracle were you made aware of an event DROP_SEGMENTS which is an event of users can invoke to clear temporary segments. It deletes the temporary segments such as the SMON in the background. This event has the advantage of not having the CPU consumed by SMON.
47400.1 Note : EVENT: DROP_SEGMENTS - forcing cleanup of TEMPORARY segments
There is also a method to the dictionary (changes) patch (not recommended if not). You can enlist the help of Oracle Support
The method is to identify the segment (which you already have) and update the segment_type from temporary to 999.
388619.1 Note: last resort when SMON takes 100% of CPU
Kind regards
Suntrupth
-
Hello
1. create tablespace TS1
2. create restore RP1 point;
3 drop tablespace TS1 (datafile ' / c:/ts1.dbf ') including files
4 restore database to RP1
5 alter database open resetlogs failed with this error:
ERROR on line 1:
ORA-01245: offline file 7 will be lost if RESETLOGS is done
ORA-01110: data file 7: ' / c:/ts1.dbf '
Can you help me please to solve this problem and to understand why it happened.Hello
If you check the log of alerts you will get message similar to
Remove the #7 file recovery:'
/db/dbs/UNNAMED00007 ' of controlfile. Now you have 2 possible
1. If you have backup of the tablespace TS1, then you can restore and recover
If you do not need this tablespace then you drop that datafile offline 7. Open the database in resetlogs mode and drop the tablespace TS1
Thank you
-
Unable to shrink the VMDK disk file
I have a Winxp virtual machine, and it was created with a 40 GB SCSI disk, VMWare has recommended. I used to transfer all kinds of data to and from it, and I noticed that kept virtual disk file becomes larger.
The Windows file as well as all my personal files are total about 4.7 GB. But the VMDK file is not less 21,7 GB...
After that it shrinks normally did not work, I started the machine virtual in Parted Magic and effectively narrowed the entire NTFS partition up to 5 GB - the other 35 showing as empty space. But still, I tried shrinking and he defragmentation on 7 times, he didn't budge 21,7 GB. I even tried to make the option "Get ready to shrink" inside Windows itself, using VMWare Tools, which also did nothing...
I tried in fact to create a new virtual machine identical with a 5 GB drive, then copy the partition through (I had copied on a flashdrive using CloneZilla) - but for some reason, XP does not start if I do that. Even to make all stages of repair does not fix.
So could someone please understand why this file on the disc is so obnoxiously huge for a 4.7 GB VM and how can I reduce the VMDK? I really need keep the hard drive space and it seems really stupid...
the other 35 showing as space vacuum
That's the problem. The process of narrowing in VMware Workstation focuses first on the unused space on the partitions, and then shrink the VMDK file. The free space on the disc does contain not more than one partition, it will not be zero. To resolve this problem, you can temporarily create an additional NTFS partition on unused disk space.
André
Maybe you are looking for
-
Having started out of my wireless connection
Hello world For any reason and without time intervals, my Y530 disconnects from my router. Any suggestions? It's kinda a gene, I know that the router and modem are working well. When I was hard plugged on my modem connection was still scientifically,
-
is it possible to take music off my e-250 and put it on my pc, I guess you call it reverse synchronization? snarehead 123
-
Cannot access network although it has full bars
OK, so we have just changed our internet provider from border to Comcast and my Vista laptop easily accessible network and internet before but now it isn't. We have two other laptops in the House (one is a vista) and it connects fine. Mine shows a bi
-
Install a HDD 3TO in an XPS 8300 gives me 746GB
I know it's a popular topic on the internet, but I have not found enough of my answer. Install a WD 3TO HDD in my machine XPS 8300 WIndows 7 Home Premium 64 - bit as a secondary drive. Not my bootable disk. BIOS, Dell A03, recognizes this. Intel RST
-
I bought a Gammac Muse-on controller, but it is recognized as a keyboard. The turntable is considered to be moving to the left, some of the buttons are 9.0, v and c I think. I was wondering how he could recognize for what it is if I can really use it