oracle的相關資訊

2022-05-07 09:42:11 字數 633 閱讀 1044

[ins-08109] :

[ins-13001]:

--查詢所有的表空間

select distinct tablespace_name from dba_free_space;

--刪除表空間同時刪除表空間所在的物理檔案

drop tablespace mytest including contents and datafiles;

--建立使用者

create user test

identified by "456852"

default tablespace mytest

temporary tablespace temp;

--授權

grant dba to test with admin option;

--刪除使用者

drop user test;

--查詢所有的使用者

select * from all_users;

--oracle怎麼查詢表空間所在的路徑

select * from dba_data_files;

檢視有效表

select table_name from user_tables order by table_name;

Oracle 檢視使用者相關資訊

0 表空間 檢視當前使用者下的角色 系統許可權 表級許可權 所有表 select from user role privs select from user sys privs select from user tab privs select from user tables 1 使用者 檢視當前...

oracle 查詢使用者相關資訊

表 select from all tables where owner upper system 索引 select from all indexes where owner upper system 檢視 select from all views where owner upper syste...

Oracle獲取表的相關資訊的操作

all tab comments,user tab comments,all col comments,user col comments。1 all tab comments,展示當前使用者能訪問到的表和檢視的資訊,表結構如下 2 user tab comments,展示 屬於當前使用者的 表和檢...