Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Not able to find the UNDO tablespace details

user8400219Oct 26 2017 — edited Oct 26 2017

Oracle version:

Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production

PL/SQL Release 12.1.0.2.0 - Production

CORE 12.1.0.2.0 Production

TNS for Linux: Version 12.1.0.2.0 - Production

NLSRTL Version 12.1.0.2.0 - Production

Hi Team,

While inserting data(Data is small already tried inserting into chinks) for a table into a database through DB Link encountered an error

"ORA-30036: unable to extend segment by 8 in undo tablespace 'UNDOTBS1'"

So in order to investigate further to look out whether the details for undo table space(Like space allocated, free space, file allocated to it, Auto Extendable or not etc.), checked out few of the dictionary views but there were not any records for Undo table space.

Step 1:

Select NAME,VALUE,DESCRIPTION

From V$parameter where name='undo_tablespace';

pastedImage_4.png

Step 2:

Select NAME,VALUE,DESCRIPTION

From V$parameter where name='undo_management';

pastedImage_5.png

Step 3:

select

( select sum(bytes)/1024/1024 from dba\_data\_files

   where tablespace\_name like 'UND%' )  allocated,

( select sum(bytes)/1024/1024 from dba\_free\_space

   where tablespace\_name like 'UND%')  free,

( select sum(bytes)/1024/1024 from dba\_undo\_extents

   where tablespace\_name like 'UND%') USed

from dual

pastedImage_8.png

Step 4:

select tablespace_name, contents from dba_tablespaces where contents = 'UNDO';

pastedImage_11.png

select substr(file_name,1,60) FileNAme from dba_data_files where tablespace_name = 'UNDOTBS1' order by 1;

pastedImage_16.png

So my Questions are:

1. how i will be able to find out the details for Undo Table space.

2. how can i remove this error, most probably by setting it to auto extendable or by adding the data file to the table space.

Thanks

DK

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 23 2017
Added on Oct 26 2017
12 comments
2,704 views