oracle: OCA-047-題解與實驗(2)

來源:互聯網
上載者:User

題目:

逐條分析吧:

A:正確,USER_SYNONYMS describes the private synonyms (synonyms owned by the current user). Its columns (except for OWNER) are the same as those in ALL_SYNONYMS.通過他的描述即可判斷。在資料庫裡同義字就相當於表的別名的功能,用一個別名來代表一個表。如:

SQL> create or replace synonym syn1 for jobs; Synonym created SQL> select * from user_synonyms; SYNONYM_NAME  TABLE_OWNER  TABLE_NAME  DB_LINK------------- ------------ ----------- -------------SYN1          HR           JOBS                            SQL> desc user_synonyms;Name         Type          Nullable Default Comments                                      ------------ ------------- -------- ------- --------------------------------------------- SYNONYM_NAME VARCHAR2(30)                   Name of the synonym                           TABLE_OWNER  VARCHAR2(30)  Y                Owner of the object referenced by the synonym TABLE_NAME   VARCHAR2(30)                   Name of the object referenced by the synonym  DB_LINK      VARCHAR2(128) Y                Database link referenced in a remote synonym   SQL> select * from syn1; JOB_ID     JOB_TITLE                           MIN_SALARY MAX_SALARY---------- ----------------------------------- ---------- ----------AD_PRES    President                                20080      40000AD_VP      Administration Vice President            15000      30000AD_ASST    Administration Assistant                  3000       6000FI_MGR     Finance Manager                           8200      16000

建立synonym的語句格式是: 

CREATE [ OR REPLACE ] [ PUBLIC ] SYNONYM   [ schema. ] synonym   FOR [ schema. ] object [ @ dblink ] ;

B:錯誤,應該是sys使用者,而不是system使用者;

SQL> select count(*) from dba_tables where owner='SYSTEM';   COUNT(*)----------       156 SQL> select count(*) from dba_tables where owner='SYS';   COUNT(*)----------       954 SQL> 

C:錯誤,動態效能檢視並不是全部都開放給所有使用者;
D:錯誤,不是created by the user only 而是owned by the user only,原文檔描述是:USER_OBJECTS describes all objects owned by the current user. Its columns are the same as those in ALL_OBJECTS;
E:正確,DICTIONARY contains descriptions of data dictionary tables and views. 使用者查詢時只會列出使用者可以訪問的資料字典行;

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.