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

show tables in schema oracle

SELECT TABLE_NAME FROM ALL_TABLES WHERE OWNER = 'SCHEMA_NAME';
--GET TABLE NAMES OF A SCHEMA IN ORACLE
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 :: providername system.data. mysql 
Sql :: postgresql copy backup table 
Sql :: pgsql commit rollback example 
Sql :: mysql check if entry exists 
Sql :: TSQL Code Snippet For Optimized Sales Query 
Sql :: mariadb current date plus 1 day 
Sql :: PL SQL Adding elements to VARRAY from a cursor 
Sql :: odoo there is no primary key for referenced table "res_users" 
Sql :: get who is hired in month in sql 
Sql :: mysql pv progres 
Sql :: mysql beautifier terminla 
Sql :: cara menampilkan tabel yang tidak mengandung kata di sql server 
Sql :: row = 1 oracle sql 
Sql :: pypi sqlparse 
Sql :: convert sql query to linq online 
Sql :: sql how to get courses that i have made prerequisites 
Sql :: psql use query result convert Decimal python numpy psycopg2 
Sql :: oracle date summer time 
Sql :: kill slow queries mysql 
Sql :: mysql a from on this page has 
Sql :: mysql et python 
Sql :: openquery update linked server 
Sql :: alter check command 
Sql :: create user faunadb 
Sql :: mysql service not starting 
Sql :: mysql extract number from string 
Sql :: Manage Database in MySQL 
Sql :: pass timestamp in sql quqey of sql server 
Sql :: <sql:datasource var="Snapsho" 
Sql :: site:av.ru "files" 
ADD CONTENT
Topic
Content
Source link
Name
3+1 =