oracle 全部查詢和表空間,以及其關係

2021-09-07 13:39:49 字數 395 閱讀 3128

select * from dba_users;   檢視資料庫裡面全部使用者,前提是你是有dba許可權的帳號。如sys,system

select * from all_users;     檢視你能管理的全部使用者

select * from user_users; 檢視當前使用者資訊

查詢使用者的表空間:

select username,default_tablespace from dba_users;  查詢資料庫全部使用者所在表空間

select username,default_tablespace from user_users; 產線當前使用者所在表空間

查詢全部表空間名稱:

select tablespace_name from dba_tablespaces;

oracle 表空間 查詢

知道表空間名,顯示該錶空間包括的所有表。select from all tables where tablespace name 表空間名 知道表名,檢視該錶屬於那個表空間 select tablespace name,table name from user tables where table ...

Oracle表空間查詢

查詢表空間使用情況 select upper f.tablespace name 表空間名 d.tot grootte mb 表空間大小 m d.tot grootte mb f.total bytes 已使用空間 m to char round d.tot grootte mb f.total b...

oracle表空間查詢

1.查詢使用者 資料 表空間 select upper f.tablespace name 表空間名 d.tot grootte mb 表空間大小 m d.tot grootte mb f.total bytes 已使用空間 m to char round d.tot grootte mb f.to...