Search
 
SCRIPT & CODE EXAMPLE
 

SQL

query to check temp space in oracle

SELECT A.tablespace_name tablespace, D.mb_total,
    SUM (A.used_blocks * D.block_size) / 1024 / 1024 mb_used,
    D.mb_total - SUM (A.used_blocks * D.block_size) / 1024 / 1024 mb_free
   FROM v$sort_segment A,
    (
   SELECT B.name, C.block_size, SUM (C.bytes) / 1024 / 1024 mb_total
    FROM v$tablespace B, v$tempfile C
     WHERE B.ts#= C.ts#
      GROUP BY B.name, C.block_size) D
    WHERE A.tablespace_name = D.name
    GROUP by A.tablespace_name, D.mb_total;
Comment

PREVIOUS NEXT
Code Example
Sql :: sql queries for interview 
Sql :: mysql readable output 
Sql :: in query in sql 
Sql :: psql delete table 
Sql :: oracle parse string 
Sql :: sqlite rename table 
Sql :: subquery in Insert 
Sql :: convert varchar to time sql 
Sql :: modify column name in tsql 
Sql :: Executing an update/delete query 
Sql :: multiple values insert in sql 
Sql :: sql select data from one database and insert into a different database 
Sql :: Adding a new table psql 
Sql :: how to format tables in sqlplus 
Sql :: add column mssql 
Csharp :: unity next scene 
Csharp :: unity hide mouse 
Csharp :: wpf round button 
Csharp :: loop over object properties c# 
Csharp :: get date of tomorrow c# 
Csharp :: how to run an external program with c# 
Csharp :: how to get the current gameobject animator in unity 
Csharp :: c# random enum 
Csharp :: c# get free space on drive 
Csharp :: set player position unity 
Csharp :: unity change sprite source image 
Csharp :: unity C# catch index out or range exception 
Csharp :: c# remove non-alphanumeric characters from string 
Csharp :: instantiate an object at a certain position unity 
Csharp :: get key unity 
ADD CONTENT
Topic
Content
Source link
Name
6+4 =