on 12-22-2011 11:13 AM
Dear Gurus,
I was trying extend PSAPTEMP in our Quality system through Brtools
It was successful.
DB02 showing 1 PSAPTEMP with extended size 'PSAPTEMP 4,194,304 4,194,304'.
But from sql level it is showing two PSAPTEMP.
Tablespace Size (MB) Free (MB) % Free % Used
-
-
-
-
-
PSAPTEMP 2048 4080 200 100
PSAPTEMP 2048 1880 146 154
PSAPUNDO 15360 14798.0625 96 4
SYSAUX 1000 816.5625 82 18
SYSTEM 2048 1129.20313 55 45
PSAPPRD700 56162 12955.4375 23 77
PSAPPRD 75511 7529 10 90
PSAPPRDUSR 20 .1875 1 99
Tomorrow we have a client import in this system. Is it going to hamper the import? And why another PSAPTEMP showing in OS level? Could anyone through any light on this.
//Arya
what is the SQL statement you are executing ??
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Ratnajit,
The sql command is :
SELECT /* + RULE */ df.tablespace_name "Tablespace", df.bytes / (1024 * 1024) "Size (MB)", SUM(fs.bytes) / (1024 * 1024) "Free (MB)", Nvl(Round(SUM(fs.bytes) * 100 / df.bytes),1) "% Free", Round((df.bytes - SUM(fs.bytes)) * 100 / df.bytes) "% Used" FROM dba_free_space fs, (SELECT tablespace_name,SUM(bytes) bytes FROM dba_data_files GROUP BY tablespace_name) df WHERE fs.tablespace_name = df.tablespace_name GROUP BY df.tablespace_name,df.bytes UNION ALL SELECT /* + RULE */ df.tablespace_name tspace, fs.bytes / (1024 * 1024), SUM(df.bytes_free) / (1024 * 1024), Nvl(Round((SUM(fs.bytes) - df.bytes_used) * 100 / fs.bytes), 1), Round((SUM(fs.bytes) - df.bytes_free) * 100 / fs.bytes) FROM dba_temp_files fs, (SELECT tablespace_name,bytes_free,bytes_used FROM v$temp_space_header GROUP BY tablespace_name,bytes_free,bytes_used) df WHERE fs.tablespace_name = df.tablespace_name GROUP BY df.tablespace_name,fs.bytes,df.bytes_free,df.bytes_used ORDER BY 4 DESC;
//Arya
Dear Orkun,
Thanks.
The data in DB02 is up-to date also we had refreshed it after the table space extension. It is fine in DB02.
How can i monitor this via brtools?
Client refresh using client export/import method.
We have exported the PRD client and today we will start the import process in Quality.
//Arya
Hi,
Check with this command, this will not show PSAPTEMP but all other table spaces with their usage will be displayed.
From SQL prompt:
SET LINESIZE 100
COLUMN TABLESPACE FORMAT A15
select t.tablespace, t.totalspace as " Totalspace(MB)", round((t.totalspace-fs.freespace),2) as "Used Space(MB)", fs.freespace as "Freespace(MB)", round(((t.totalspace-fs.freespace)/t.totalspace)100,2) as "% Used", round((fs.freespace/t.totalspace)100,2) as "% Free" from (select round(sum(d.bytes)/(10241024)) as totalspace, d.tablespace_name tablespace from dba_data_files d group by d.tablespace_name) t, (select round(sum(f.bytes)/(10241024)) as freespace, f.tablespace_name tablespace from dba_free_space f group by f.tablespace_name) fs where t.tablespace=fs.tablespace order by t.tablespace;
Alternatively to get the tablespace usage from brtools, u cn use below method:
from orasid
brspace -f tsextend
select option 1- extend tablespace... check all tablespaces size and then u cn either stop- or extend particular tablespaces
Cheers !!!
Ashish.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.