Search
 
SCRIPT & CODE EXAMPLE
 

SQL

show all tables in oracle

SELECT * FROM USER_TABLES;		-- Tables from connected schema
SELECT * FROM ALL_TABLES;		-- Tables available to connected schema
	SELECT * FROM ALL_TABLES WHERE OWNER = 'SCHEMA_NAME';
	SELECT * FROM ALL_TABLES WHERE TABLE_NAME = 'TABLE_NAME';
SELECT * FROM DBA_TABLES;		-- All database Tables
Comment

show all tables in oracle

SELECT * FROM ALL_TABLES;
Comment

oracle all tables

-- NOTE: for Oracle ONLY

select * 
from all_tables;
Comment

show tablespace oracle

Select t.tablespace_name  "Tablespace",  t.status "Status",  
    ROUND(MAX(d.bytes)/1024/1024,2) "MB Size",
    ROUND((MAX(d.bytes)/1024/1024) - 
    (SUM(decode(f.bytes, NULL,0, f.bytes))/1024/1024),2) "MB Used",   
    ROUND(SUM(decode(f.bytes, NULL,0, f.bytes))/1024/1024,2) "MB Free", 
    t.pct_increase "% increase", 
    SUBSTR(d.file_name,1,80) "File"  
FROM DBA_FREE_SPACE f, DBA_DATA_FILES d,  DBA_TABLESPACES t  
WHERE t.tablespace_name = d.tablespace_name  AND 
    f.tablespace_name(+) = d.tablespace_name    
    AND f.file_id(+) = d.file_id GROUP BY t.tablespace_name,   
    d.file_name,   t.pct_increase, t.status ORDER BY 1,3 DESC
Comment

PREVIOUS NEXT
Code Example
Sql :: search column name sql 
Sql :: sql exclude duplicates and find even id 
Sql :: create schema postgres 
Sql :: sql datetime as date 
Sql :: pyodbc connect to sql server 
Sql :: drop column if exists sql server 
Sql :: mysql format date 
Sql :: Starting mysql shell lampp ubuntu 
Sql :: mysql dump mysql db cli 
Sql :: oracle failed login attempts 
Sql :: mssql remove column 
Sql :: jooq convert using gbk 
Sql :: mysql add column default value 
Sql :: sql beginning of previous month 
Sql :: add new column to the table mysql 
Sql :: how to start mysql in terminal mac 
Sql :: postgres check timezone 
Sql :: role does not exist psql 
Sql :: oracle sql first day of year 
Sql :: how to check mysql version in xampp 
Sql :: how to get ddl for materialized view 
Sql :: c# get sql min date 
Sql :: ALL_TAB_PARTITIONS 
Sql :: sql last week 
Sql :: how to delete table in mysql 
Sql :: t SQl Checking Your Username 
Sql :: get first n letter of department name in sql 
Sql :: strict in postgres SQL 
Sql :: mariadb.service: Main process exited, code=exited, status=1/FAILURE 
Sql :: oracle asynchronous update 
ADD CONTENT
Topic
Content
Source link
Name
6+5 =