欧美一区二区三区老妇人-欧美做爰猛烈大尺度电-99久久夜色精品国产亚洲a-亚洲福利视频一区二区

oracle怎么找視圖名,oracle視圖在哪看

查看Oracle有哪些表或者視圖

可以嘗試在oracle中用PL/SQL找到對應(yīng)的視圖,然后右擊點(diǎn)“編輯”,就可以看到有哪些表了。

創(chuàng)新互聯(lián)服務(wù)項(xiàng)目包括武定網(wǎng)站建設(shè)、武定網(wǎng)站制作、武定網(wǎng)頁制作以及武定網(wǎng)絡(luò)營銷策劃等。多年來,我們專注于互聯(lián)網(wǎng)行業(yè),利用自身積累的技術(shù)優(yōu)勢、行業(yè)經(jīng)驗(yàn)、深度合作伙伴關(guān)系等,向廣大中小型企業(yè)、政府機(jī)構(gòu)等提供互聯(lián)網(wǎng)行業(yè)的解決方案,武定網(wǎng)站推廣取得了明顯的社會(huì)效益與經(jīng)濟(jì)效益。目前,我們服務(wù)的客戶以成都為中心已經(jīng)輻射到武定省份的部分城市,未來相信會(huì)繼續(xù)擴(kuò)大服務(wù)區(qū)域并繼續(xù)獲得客戶的支持與信任!

oracle 如何查找視圖名稱

查看當(dāng)前用戶的缺省表空間

SQLselect username,default_tablespace from user_users;

查看當(dāng)前用戶的角色

SQLselect * from user_role_privs;

查看當(dāng)前用戶的系統(tǒng)權(quán)限和表級權(quán)限

SQLselect * from user_sys_privs;

SQLselect * from user_tab_privs;

查看用戶下所有的表

SQLselect * from user_tables;

顯示用戶信息(所屬表空間)

select default_tablespace,temporary_tablespace

from dba_users where username='GAME';

1、用戶

查看當(dāng)前用戶的缺省表空間

SQLselect username,default_tablespace from user_users;

查看當(dāng)前用戶的角色

SQLselect * from user_role_privs;

查看當(dāng)前用戶的系統(tǒng)權(quán)限和表級權(quán)限

SQLselect * from user_sys_privs;

SQLselect * from user_tab_privs;

顯示當(dāng)前會(huì)話所具有的權(quán)限

SQLselect * from session_privs;

顯示指定用戶所具有的系統(tǒng)權(quán)限

SQLselect * from dba_sys_privs where grantee='GAME';

顯示特權(quán)用戶

select * from v$pwfile_users;

顯示用戶信息(所屬表空間)

select default_tablespace,temporary_tablespace

from dba_users where username='GAME';

顯示用戶的PROFILE

select profile from dba_users where username='GAME';

2、表

查看用戶下所有的表

SQLselect * from user_tables;

查看名稱包含log字符的表

SQLselect object_name,object_id from user_objects

where instr(object_name,'LOG')0;

查看某表的創(chuàng)建時(shí)間

SQLselect object_name,created from user_objects where object_name=upper('table_name');

查看某表的大小

SQLselect sum(bytes)/(1024*1024) as "size(M)" from user_segments

where segment_name=upper('table_name');

查看放在ORACLE的內(nèi)存區(qū)里的表

SQLselect table_name,cache from user_tables where instr(cache,'Y')0;

3、索引

查看索引個(gè)數(shù)和類別

SQLselect index_name,index_type,table_name from user_indexes order by table_name;

查看索引被索引的字段

SQLselect * from user_ind_columns where index_name=upper('index_name');

查看索引的大小

SQLselect sum(bytes)/(1024*1024) as "size(M)" from user_segments

where segment_name=upper('index_name');

4、序列號

查看序列號,last_number是當(dāng)前值

SQLselect * from user_sequences;

5、視圖

查看視圖的名稱

SQLselect view_name from user_views;

查看創(chuàng)建視圖的select語句

SQLset view_name,text_length from user_views;

SQLset long 2000; 說明:可以根據(jù)視圖的text_length值設(shè)定set long 的大小

SQLselect text from user_views where view_name=upper('view_name');

6、同義詞

查看同義詞的名稱

SQLselect * from user_synonyms;

7、約束條件

查看某表的約束條件

SQLselect constraint_name, constraint_type,search_condition, r_constraint_name

from user_constraints where table_name = upper('table_name');

SQLselect c.constraint_name,c.constraint_type,cc.column_name

from user_constraints c,user_cons_columns cc

where c.owner = upper('table_owner') and c.table_name = upper('table_name')

and c.owner = cc.owner and c.constraint_name = cc.constraint_name

order by cc.position;

8、存儲(chǔ)函數(shù)和過程

查看函數(shù)和過程的狀態(tài)

SQLselect object_name,status from user_objects where object_type='FUNCTION';

SQLselect object_name,status from user_objects where object_type='PROCEDURE';

查看函數(shù)和過程的源代碼

SQLselect text from all_source where owner=user and name=upper('plsql_name');

如何查詢oracle中的所有表和視圖

--查詢所有表,owner為用戶,dba_objects只能由具有dba角色的用戶去查詢,比如system用戶。

select * from dba_objects where owner='SYS' and object_type='TABLE';

--查詢所有視圖

select * from dba_objects where object_type='VIEW';

--查看object_type所有對象類型,你可以看看,需要什么就查什么

select distinct object_type from dba_objects order by object_type asc;

oracle數(shù)據(jù)庫怎樣查看視圖結(jié)構(gòu)

視圖是沒有結(jié)構(gòu)查詢語句的。因?yàn)樵噲D就是一個(gè)別名,如果真的想查,那么可以通過

select * from user_tab_columns where TABLE_NAME='視圖名';查詢,這里不僅有表的信息,也有視圖的相關(guān)信息。

文章題目:oracle怎么找視圖名,oracle視圖在哪看
新聞來源:http://chinadenli.net/article1/dsiphid.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供微信公眾號關(guān)鍵詞優(yōu)化標(biāo)簽優(yōu)化外貿(mào)建站企業(yè)建站手機(jī)網(wǎng)站建設(shè)

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)

網(wǎng)站托管運(yùn)營