Customise Consent Preferences

We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.

The cookies that are categorised as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... 

Always Active

Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.

No cookies to display.

Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.

No cookies to display.

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.

No cookies to display.

Performance cookies are used to understand and analyse the key performance indexes of the website which helps in delivering a better user experience for the visitors.

No cookies to display.

Advertisement cookies are used to provide visitors with customised advertisements based on the pages you visited previously and to analyse the effectiveness of the ad campaigns.

No cookies to display.

Temp Tablespace and UNDO Tablespace management

Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
  • User AvatarKiran Dalvi
  • 07 Jun, 2019
  • 0 Comments
  • 43 Secs Read

Temp Tablespace and UNDO Tablespace management

Check UNDO tablespace usage

SELECT file_name, tablespace_name, bytes/1024/1024 UNDO_SIZE_MB, SUM

(bytes/1024/1024) OVER() TOTAL_UNDO_SIZE_MB

FROM dba_data_files d

WHERE EXISTS (SELECT 1 FROM v$parameter p WHERE LOWER

(p.name)=’undo_tablespace’ AND p.value=d.tablespace_name);

Add datafile to undo tablespace

ALTER TABLESPACE UNDOTBS1 ADD DATAFILE E:\APP\ANKUSH\ORADATA\MYDB\UNDOTBS02.DBF’ size 10M;

Query to see Current Temp Datafiles State

set pages 999

set lines 400

col FILE_NAME format a75

select d.TABLESPACE_NAME, d.FILE_NAME, d.BYTES/1024/1024 SIZE_MB, d.AUTOEXTENSIBLE, d.MAXBYTES/1024/1024 MAXSIZE_MB, d.INCREMENT_BY*(v.BLOCK_SIZE/1024)/1024 INCREMENT_BY_MBfrom dba_temp_files d, v$tempfile vwhere d.FILE_ID = v.FILE#order by d.TABLESPACE_NAME, d.FILE_NAME;

Add tempfile to temp tablespace

ALTER TABLESPACE TEMP ADD TEMPFILE ‘E:\APP\ANKUSH\ORADATA\MYDB\TEMP02.DBF’ SIZE 10M;