Search This Blog

Wednesday, 15 August 2007

Which user is using the Temporary Tablespace

Some times it is necessary to know which users are using the temporary tablespace. As some times the temporary tablespace might get filled up and if autoextend on, than it can make the file system fill, which can create a severe problem for a DBA.

We can check from SQL Plus which users are using the temporary tablespace.

Here is the query which can be used.............

SELECT b.tablespace, ROUND(((b.blocks*p.value)/1024/1024),2)'M' "SIZE", a.sid','a.serial# SID_SERIAL, a.username, a.program FROM sys.v_$session a, sys.v_$sort_usage b, sys.v_$parameter p WHERE p.name = 'db_block_size' AND a.saddr = b.session_addr ORDER BY b.tablespace, b.blocks
/

manage long running sessions with "screen" on linux OS - handy utility for Oracle APPS DBA for cloning, patching etc

  n Oracle E-Business Suite (EBS), there is no standard   -S   flag for the primary cloning commands ( adpreclone.pl   or   adcfgclone.pl )....