久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網
      最全最豐富的資訊網站

      oracle怎么查詢指定用戶的表空間

      在oracle中,可以利用“select”語句來查詢指定用戶的表空間,語法“select default_tablespace from dba_users where username='用戶名'”。

      oracle怎么查詢指定用戶的表空間

      本教程操作環(huán)境:Windows7系統(tǒng)、Oracle 11g版、Dell G3電腦。

      如何查詢當前用戶的表空間名稱?因為oracle建立索引,需要知道當前用戶的表空間,查找了一下資料

      --查詢語法--  select default_tablespace from dba_users where username='登錄用戶'

      如,我的登錄用戶是TMS21,那么查詢語法是

      /* 查看用戶所屬的表空間 */  select default_tablespace from dba_users where username='TMS21';

      相關查詢的用法,也順便記錄一下

      1)查詢當前用戶表空間

      /* 查看用戶所屬的表空間 */  select default_tablespace from dba_users where username='TMS21';

      2)查詢所有表空間

        /*查看所有的表空間 */    -- 1 )方式1:dba_tablespaces --    select * from dba_tablespaces;     --2 )方式2:v$tablespace --    select * from v$tablespace;

      3)查詢用戶下所有表

        /* 查看用戶下面的所有的表 */    -- 1 )方式1:user_tables --    select * from user_tables;    --2 )方式2: dba_tables --    select * from dba_tables where owner='TMS21';

      4)查詢表空間下的用戶

       /*查看表空間下有多少用戶,tablespace_name表空間 的名字一定要大寫 */    select distinct s.owner from dba_segments s where s.tablespace_name ='TMS21';

      PS:因為我的表空間名稱跟用戶一樣,所以4)中的表空間都是TMS21(以查詢結果為主)

      推薦教程:《Oracle教程》

      贊(0)
      分享到: 更多 (0)
      網站地圖   滬ICP備18035694號-2    滬公網安備31011702889846號