What roolback trans is inside undo tbs
We got a ORA-30036 last night. UNDO tbs jump to 54 GB, it only has 1 datafile and has fillup the whole drive.
I want to know what exact transcation cause the fillup. Is there any system tables where I can see the rollback transcation in UNDO??
Thanks in Advanced
carlton
You can check V$UNDOSTAT to see whats the statistics for the particular undo. There would be 10 default undo segments created for any undo tablespace. For each of them you can see whether it has expired or not from DBA_ROLLBACK_SEGS.
From V$TRANSACTION, you can see the transaction id and lot other information about the transaction along with the ses_adr which you can combine with v$session to see who is using that transaction. in V$SESSION you have address and hash_value of the sessions latest sql which you can combine with V$SQLAREA or V$SQLTEXT to get the exact SQL which is performing the DML operation.
HTH
Similar Messages
-
How would I know what is the required UNDO tbs space for a job to run successfully.
I cannot view the code of the job.
How can I calculate the UNDO tbs requirement for that particular job.
Following is the error I am facing while running that job :
*** Starting go_ifs_gb_publish_data_det.sh at Fri Feb 12 14:13:21 EST 2010.
BEGIN fdw.gb_rpt_publish_data; END;
ERROR at line 1:
ORA-30036: unable to extend segment by 4 in undo tablespace 'UNDOTBS'
ORA-06512: at "FDW.GB_RPT_PUBLISH_DATA", line 140
ORA-06512: at line 1
Job Failed: go_ifs_gb_publish_data_det Error Code: 84
*** go_ifs_gb_publish_data_det.sh Ending at Fri Feb 12 20:49:56 EST 2010.There is no thumb rule for setting size of the undo for any trasaction or transactions.
few suggestions : monitor for few days in peak time of usage of undo and adjust as per requirement.
: try to do a intermediate commit for transaction instead of running long transactions.
Below query will give you some help in tuning the undo tablespace and retention ( Check the feasiblity , as said there is no thumb rule )
SELECT d.undo_size/(1024*1024) "ACTUAL UNDO SIZE [MByte]",
SUBSTR(e.value,1,25) "UNDO RETENTION [Sec]",
(TO_NUMBER(e.value) * TO_NUMBER(f.value) *
g.undo_block_per_sec) / (1024*1024)
"NEEDED UNDO SIZE [MByte]"
FROM (
SELECT SUM(a.bytes) undo_size
FROM v$datafile a,
v$tablespace b,
dba_tablespaces c
WHERE c.contents = 'UNDO'
AND c.status = 'ONLINE'
AND b.name = c.tablespace_name
AND a.ts# = b.ts#
) d,
v$parameter e,
v$parameter f,
SELECT MAX(undoblks/((end_time-begin_time)*3600*24))
undo_block_per_sec
FROM v$undostat
) g
WHERE e.name = 'undo_retention'
AND f.name = 'db_block_size'
Regards,
Anil Malkai
if it is help ful or answered your query mark it as answered.
Edited by: Anil Malkai on Feb 15, 2010 3:32 AM -
Hello all,
I have 11gr2 with r12.
we have 60GB undo tbs, retention is 900s set.
since last 2 days our undo is showing 98% used, no recent changes done.
I googled, lots of sql's are there to know what is consuming UNDO, but the list what I am getting as an output result are in KB's.
for example:
select * from V$SYSMETRIC_HISTORY;
select
s.username
,s.sid
,s.serial#
,s.osuser
,s.logon_time
,s.status
,s.machine
,t.used_ublk
,t.used_ublk*8192/1024 undo_usage_kb
from v$session s
,v$transaction t
where t.addr = s.taddr;
above query is giving me num of sessions but all are in kb's, then where is undo been consumed.
Please help me to find out the culprit.
Thanks in ADVDOA wrote:
Thanks for the prompted reply.
I was just wanted to know the transaction which are currently running are consuming how much UNDO space ?
second while checking EXPIRED I am getting around 3000 count.
Plz suggest.
Thanks!
Nothing is consuming any undo space if all the extents are EXPIRED. An extent in use by transaction is ACTIVE. An extent that was used by transaction that committed less recently than your undo_retention is UNEXPIRED. Clear? -
Hi all experts,
I want to know if found fragmentation in undo tablespace.
Is it recommaned to treat it the same way as usual permanent non system fragmented TBSs.
i.e. do fragmentation
I wonder if temp/undo tbs needs to be defragmented.
Looking for your kind and professional advices and references.
ThanksBeing Locally Managed, TEMP and UNDO are self-managed by Oracle.
I also wonder if you are "de-fragmenting" other tablespaces. If they are Locally Managed and Allocation_Type is either UNIFORM or AUTO, you do not need to "de-fragment" them. If using UNIFORM, set the appropriate Extent Size when you create the Tablespace.
If your Tablespace has been converted from Dictionary Managed to Locally Managed, the Extent Management may appear as "USER" -- in which case you have odd-sized extents brought forward from DMT. Again, "fragmentation" is not an issue once they are Locally Managed.
You could consider rebuilding the tablespaces as LMT with UNIFORM or AUTO when you get an opportunity. (Obviously : TEST, TEST , TEST and measure the effort and downtime -- it may not be justifiable to even expend that effort).
Hemant K Chitale -
2 Undo Tablespace both ONLINE, How to drop previous undo tbs
Hello Team,
Undo management=auto
After Cloning :-
To reclaim space i created another undo tablespace, but now both are online, but as per oracle as soon as you switch undo tablespace, previous undo TBS gets in Pending offline mode,offline mode, (So that transaction get finished)
But in my case Both UNDO Tablespaces are online
Previous Undo TBS1:- 600 GB
New UNDo Tb2s:- 100GB
Please suggest how to drop this online undo TBS1
TABLESPACE_NAME ONLINE_
APPS_UNDOTS1 ONLINE
APPS_UNDOTS1 ONLINE
APPS_UNDOTS1 ONLINE
APPS_UNDOTS1 ONLINE
APPS_UNDOTS1 ONLINE
APPS_UNDOTS1 ONLINE
APPS_UNDOTS1 ONLINE
APPS_UNDOTS1 ONLINE
APPS_UNDOTS1 ONLINE
APPS_UNDOTS2 ONLINE
APPS_UNDOTS2 ONLINE
TABLESPACE_NAME ONLINE_
APPS_UNDOTS2 ONLINEHi As per
select segment_name,owner,tablespace_name,status from dba_rollback_segs where tablespace_name like 'UNDOTBS1';
All Are offline for UNDOTBS1(Previous)
SEGMENT_NAME OWNER TABLESPACE_NAME STATUS
SYSSMU49861044602693$ PUBLIC APPS_UNDOTS1 OFFLINE
SYSSMU4893847838046$ PUBLIC APPS_UNDOTS1 OFFLINE
SYSSMU48682660477388$ PUBLIC APPS_UNDOTS1 OFFLINE
SYSSMU47753309457002$ PUBLIC APPS_UNDOTS1 OFFLINE
SYSSMU47131240212364$ PUBLIC APPS_UNDOTS1 OFFLINE
434 rows selected. -
What is the difference between undo tablespace and online redo log files.
what is the difference between undo tablespace and online redo log files. I am confused
as per my knowledge undo tablespace is used to store the undo information when a table is being updated so that, just incase we need to rollback a transaction we know what was present in the table earlier.
when a transaction fails the SMON performs the rollback of the data.
This undo data is stored in the undo tablespace and read consistency if any is enforced.
is my understanding till here correct?
Now, can this undo data/before image not be stored in the redo log buffer and online redolog files?
can redo-log files not store this information?
in fact, is it that when undo tablespaces exist in a database, the undo data/before image is stored in both the undo tablespace and also the redo log files?
kindly clarify my doubt.
thank you.This question has been asked many times before. The answer is always the same.
Yes, redo contains the before image of data (and the after-image). Therefore, it **COULD** be used to roll back a transaction.
BUT... Redo is written sequentially. Using it to rollback your transaction would involve reading through all the redo written by maybe thousands of other people. It would be painfully slow.
Your transaction is, however, directly linked to just the UNDO that it generates (which is JUST the before image of the data). So, your undo is your undo and doesn't share space with anyone else's undo. Therefore, using it to roll back YOUR transaction is fast.
The fact that undo is only the before image of the data also makes it faster than wading through a sea of before and AFTER images as you'd find in redo. About twice as fast, in fact, since there's half the data. Roughly.
Redo also gets written and flushed to disk whenever there's a commit, 3 seconds are up or too much (1MB, actually) redo gets generated between flushes caused by other factors. Your redo gets flushed when those things happen, even if you haven't actually committed your transaction. And redo logs recycle themselves, meaning that your redo -even if your transaction hasn't been committed yet- can be over-written by later transactions. Try rolling back when that's happened, if redo was the source of your rollback data!
Undo, however, cannot be over-written if the transaction has not been committed. Ever. If you don't commit for three years, there will be three years' undo stored in your database (assuming you had the space, of course!).
I could go on, but that will do. Redo is there fore RECOVERY, after catastrophe. Undo is there for read-consistency (and the occasional change of mind). Two different functions. Two different mechanisms. Each one highly tuned to doing what it does, why it does it, most efficiently and effectively. -
Ext.HDD Toshiba Canvio Basics. What HDD is used inside?
Hi!
ext.HDD Toshiba Canvio Basics. What Hard Disks used inside?I guess it’s a common 2.5” SATA HDD.
-
How to expdp table with a BLOB field when table is larger than UNDO tbs?
We have a 4-node RAC instance and are at 11.1. We have a 100 gig schema with a few hundred tables. One table contains about 80 gig of data. the table has pictures in it (BLOB column). Our 4 node RAC has 4 12 gig undo tablespaces.
We run out of undo when export a schema or just this table due to the size of the table.
According to metalink note ID 1086414.1 this can happen on fragmented tables. According to segment advisor, we are all good and not fragmented at all.
I also followed the troubleshooting advice in ID 833635.1 and ID 846079.1, but everything turned out ok.
LOBs and ORA-01555 troubleshooting [ID 846079.1]
Export Fails With ORA-02354 ORA-01555 ORA-22924 and How To Confirm LOB Segment Corruption Using Export Utility? [ID 833635.1]
initially we tried just to export it without special parameters.
expdp MY_SCHEMA/********@RACINSTANC DUMPFILE=MYFILE.dmp PARALLEL=8 directory=DATA_PUMP_DIR SCHEMAS=MY_SCHEMA
ORA-31693: Table data object "MY_SCHEMA"."BIGLOBTABLE" failed to load/unload and is being skipped due to error:
ORA-02354: error in exporting/importing data
ORA-01555: snapshot too old: rollback segment number 71 with name "_SYSSMU71_1268406335$" too small
then tried to export just the table into 8 files of 8G each (the failing table is about 90% of the schema size)
expdp MY_SCHEMA/******@RACINSTANCE DUMPFILE=MYFILE_%U.dmp PARALLEL=8 FILESIZE=8G directory=DATA_PUMP_DIR INCLUDE=TABLE:\"IN ('BIGLOBTABLE') \"
ORA-31693: Table data object "MY_SCHEMA"."BIGLOBTABLE" failed to load/unload and is being skipped due to error:
ORA-02354: error in exporting/importing data
ORA-01555: snapshot too old: rollback segment number 71 with name "_SYSSMU71_1268406335$" too small
We eventually resorted to exporting chunks out of the table by using the QUERY parameter
QUERY=BIGLOBTABLE:"WHERE BIGLOBTABLEPK > 1 AND BIGLOBTABLEPK <=100000"
and that worked but it is a kludge.
Since we will have to export this again down the road I was wondering if there is an easier way to export.
Any suggestions are appreciated.Note that undo data for LOB is not stored in UNDO tablespace but in LOB segments. So I am not sure ORA-1555 is directly linked to LOB data.
What is your undo_retention parameter ?
How long does EXPDP run before getting ORA-1555 ?
You could try to increase undo_retention parameter to avoid ORA-1555.
Are you running Entreprise Edition ? If yes, trying to transport the tablespace storing the table could be a solution. -
i have oracle 9i release 2 on unix box. The database is up but the undo tablespace got corrupted which i can see using v$recover_file view. End users have begin performing DML activities but at the midst of the transaction undo got corrupted . I have a backup of undo .
what should i do shall i shutdown and recover at the mount mode or recover the undo tablespace online??
please help me
its very urgentYou don't need to go for offline recovery.Do you mind elaborating that.
Question, let us say undo is corrupted, can we do a online recovery?
My reserach says
rman>restore datafile '/u02/undotbs01.dbf';--will complain about enqueue.
Also, You cannot take a undo tablespace offline.
You cannot drop a undo tablespace while it is in use.
My thoughts :- Take the database to mount state. Restore/recover. -
What is mean "peer" inside awt?
hi, i just wondering what the difference between swing and peer component beside the heavyweight and lightweight ?
what i mean is ---- the paint() code inside a component, say a Button (heavyweight) is built on native code that can invoke the system interface call or win32 API (if windows operating system ) at particular OS then it will create out the Button base on the OS ??
or is something else ?
thank for helpno exactly, java does this but thats not called a peer.
If you create an AWT-Frame, java internally created an Windows-Windows, X11-Window... and if you call JFrame.setSize() java sends the command to the peer, in this case the windows-window, x11 window or whatever.
So not the platform-abstraction is called peer but the platform dependent object (you don't have access to) which is affected by java through the abstracted functionality provided by java.
lg Clemens -
An update was requested in my iphone settings to sync my iphone with itunes. In my attempt to do this, I chose to sync with my old phone and lost all recent photos and apps. Is there any way to reverse this mess and retrieve what I had?
So, what i need to is
1. Check my iphone backup first if avaiable
2. Do ' restore ' my iphone at itunes
Is it correct?
After i do all of this, what is the next step? Is it
1. Just plug in back my iphone and itunes will automatically sync asking to use a backup ipnone?
Or need to do manually?
Make me confuse is, if i do all the step as previous mention, but pc still recognize my iphone as a ipod everytime i plug in into itunes.
How if i in pc dont have my iphone backup ? Because since first time plug in into itunes, i was used the ipod backup?
Sorry to ask too much since i really need help from your guys -
Hi all, I am using Oracle 10gR2 on Solaris 10.
The application using my DB does a lot of commits and rollbacks, because of which my undo tablespace is always full. I have a RAC with two nodes, so two undo tablespaces, which are always full. Now, when Oracle has no room to write into the undo, it stops processing the application processes, because of which there are a lot of INACTIVE sessions and they keep increasing because the application sends them to be processed but they are not.
NAME TYPE VALUE
undo_management string AUTO
undo_retention integer 900
undo_tablespace string UNDOTBS1Should I reduce my undo_retention so that Oracle does not keep the undo info for that long and it empties up space faster?
Regards.....Generally the users ask DBA's before running such a long tansactions..Not being funny mate, but in my experience too often people have no idea about undo and the affect their changes have. But the DBA has to gently talk, cajole, persuade them to change their ways and not used 100GB of resource; "please please pretty please don't do that" then they do it again anyway.... Even if you resort to less polite methods....
Summing up for the OP yes you need to identify the users/batch using undo and attempt to change the usage of those.
Hope this helps, a script another DBA gave me;
no idea who the original author is....
but as it helped me I'm passing on to help others.
select distinct r.name rollname,
l.sid loc_sid,
s.sid session_sid,
l.addr lock_addr,
l.kaddr lock_kaddr,
nvl(s.username,'Internal') username,
decode(s.command,2,'Insert',3,'Select',6,'Update',7,'Delete',44,'Commit',45,'Rollback','Other') trans_type
from
v$lock l,
v$process p,
v$rollname r,
v$session s,
sys.user$ sysuser,
sys.obj$ sysobj
where l.sid = s.sid
and sysobj.obj# = decode(L.ID2,0,L.ID1,1)
and sysuser.user# = sysobj.owner#
and trunc(l.id1(+)/65536) = r.usn
and s.type != 'BACKGROUND'
order by r.name
/ -
I have made my entire Macbook Pro desktop larger and cannot reduce it back down to the original size. I cannot view both my dock and toolbar at the same time because of this. Suggestions?
Go to the Apple menu >System Preferences > Universal Access and turn off Zoom.
-
What are the inside settings in infopackagegroup?
Hi gurus,
Can anyone explain me the what are the settings inside the infopackagegroup...
Thanks,
S ramShiva,
Please do not start new threads for older threads..
FAST LOADING...
the same thread can be used to follow up on answers .. or close the first thread as answered and then open a new one pointing people to the new thread instead... that way answers can be collated properly and followed accordingly..
Arun
Hope it helps... -
How to I undo what was done after clicking on a link from a spammed email?
Hello...
I am usually Never one to click on any suspicious emails, let alone links within the emails, but I recieved an email from my Uncle that looked slightly suspicious, but I let myself click on the link within it. It turned out to be a spammed email with a BS link from "msnbc" reharding jobs. What happened when I clicked that spammed link, and what can I do to undo what was done? I am terrified that I unintentionally installed something on my Mac Air through clicking on this link. What do I need to do to erase what was do, and how to I find out what was done? Thank you very much for your help. I greatly appreciate any advice.Without knowing what webpage the link opened and what you did after you opened it, it is impossible to be 100% certain of anything that may have resulted from that. An email itself cannot install anything. If the webpage did not result in any unusual activity, and you did not deliberately install or supply any personal information then you have no cause for concern.
"Unusual activity" would include symptoms such as a webpage you cannot close or navigate away from, and that would be a mere nuisance that is easily solved. If Safari or the browser you used is behaving normally then rest easy.
Most of these spam emails do nothing but bombard you with ads or attempt to install a browser "toolbar" that does the same. Malicious emails include phishing scams and most of them are laughable (but they are getting better). Others carry Windows malware that cannot affect your Mac.
To edit your profile click on your name at the top of this page (where it says Welcome, saratee14), scroll down to the heading My Products, click edit, and on the page that follows select your version of OS X from the dropdown menu. The only reason I questioned this was to confirm you have been updating OS X.
Maybe you are looking for
-
Companion CD for 10g file corrupt after download
I have for 2 days tried to download Oracle Database 10g Companion CD release 2 (10.2.0.1.0) for AIX5L. But the file is corrupt and when I try to gunzip it I get the error message "Invalid archive directory".
-
Powers on then turns off almost immediately - HP 2000-363NR Notebook
I bought an HP laptop 11/25/11. Didn't open or use it until mid last year (currently still has protective plastic on it along with all stickers, etc.) Anyways, just the other day I went to use it, and as soon as I power it on, it immediatly powers of
-
I'm making a cheat sheet for my fantasy football league. To this point I have separate sheets that list players at various positions (the sheets are characterized by the positions they cover i.e. quarterback/running back etc). I also have at the end
-
Hi Kodo people, I'm trying out Kodo 3.2.0, most specifically for the spiffy new setRange() functionality. However, I'm somewhat confused because while the docs clearly indicate that the setRange() method is available on the standard javax.jdo.Query i
-
Problems with the installation (JWSDP-1.3)
Hello, I have to install the JWSDP-1.3 on a server (Windows 2003) with the Java Version 1.4.2_04 (j2sdk1.4.2_04). I need this applications for a special software. Only these version from your software is able to run my Software. The Java Software Dev