number(2),fk
empno -employeeename -employee namejob -job titlemgr -manager of employeehiredate -hire datesal -salary(每月)comm -commission(銷售)deptno -department numberdname -department nameloc -location of operation1.下面哪乙個sql語句將建立乙個使用者名為acctsuper、密碼為superpword的新使用者
user acctsuper password superpword;
user acctsuper pass superpword;
user acctsuper identified by superpword;
acctsuper with password superpword;
2.下面哪乙個sql語句將生成emp_fmpno序列中的下乙個值
emp_ from dual;
emp_ from dual;
emp_ from dual;
emp_ from dual;
3.下面哪乙個sql語句將修改現有的檢視emp_sal_vu,使使用者不能更新它顯示的資料
or replace view emp_sal_vu
as select empno,ename,sal,comm from emp
with read only;
view emp_sal_vu with read only;
view emp_vu read only;
or replace emp_sal_vu
as select empno,ename,sal,comm from emp
with check option;
4.在發生下面哪些情況時,oracle9i將自動建立乙個索引選出所有正確的答案.
a.建立乙個序列
b.建立乙個primary key約束
c.成功執行create index命令
d.建立乙個public同義詞
5.下面哪一項可以包括在乙個簡單檢視中
a.組合的資料
b.聯接的表
函式d.列別名
6.下面哪些sql命令向名為acctsuper的使用者授予系統許可權選出所有正確的答案.
insert on emp to acctsuper;
create table to acctsuper;
select on emp to acctsuper;
update any table to acctsuper;
create session to acctsuper;
7.下面哪乙個sql命令將建立乙個檢視,該檢視禁止使用者執行任何這樣的操作:使檢視以後無法訪問檢視當前顯示的行
view eejobs30
as select empno,ename,job
from emp where deptno = 30
with check option;
or replace view eejobs30
as select empno,ename,job
from emp where deptno = 30
with read only;
view eejobs30
as select empno,ename,job
from emp where deptno = 30
with read only;
or replace view eejobs30
as select empno,ename,job
from emp where deptno = 30
8.下面關於簡單和複雜檢視的說法中,哪一種說法是錯誤的
a.在非key-preserved表上不允許dml操作
b.如果一行違反了底層的約束,那麼不能通過檢視將它新增到表中
c.不能通過檢視向表新增null值
d.在包含偽列rownum的簡單檢視上允許dml操作
9.下面哪乙個sql語句需要使用者在下次訪問他的賬號時建立乙個新密碼
user acctsuper identififd by null;
user acctsuper password expire;
user acctsuper expire password;
user acctsuper identififd by password expire;
10.下面哪乙個sql語句將在執行時建立乙個內聯檢視
force view inline_grosspay
as select empno,ename,sal + nvl(comm,0)
from emp;
view inline_grosspay as
inline select empno,ename,sal + nvl(comm,0)
from emp;
view inline_grosspay
as select empno,ename,sal + nvl(comm,0)
from emp;
empno,ename,dname
from(select * from emp natural join dept);
11.下面哪乙個sql語句將刪除public同義詞名稱emploee
synonym employee;
synonym employee;
public synonym employee;
public synonym employee;
public employee;
12.以下關於索引的說法哪乙個是正確的
a.在使用索引時,行檢索總是更慢
b.當表的主鍵上存在乙個索引時,dml操作總是更快
c.索引總是使dml操作變慢
d.基於函式的索引將自動使查詢執行得更慢
13.下面哪乙個術語應用於一組許可權或乙個許可權集合
a.架構
b.角色
c.資料字典
d.許可權
e.組賬號
14.下面哪乙個命令將向兩個使用者smith和blake授予connect角色
connect on database to smith blake;
connect to smith blake;
connect to smith , blake
connect to smith, blake;
15.下面哪乙個命令即使在底層的表不存在時也將建立乙個檢視
force view inline_grosspay
as select empno,ename,sal +nvl (comm,0)
from emp;
view inline_grosspay as
inline select empno,ename,sal + nvl (comm,0)
from emp;
view inline_grosspay
as select empno,ename,sal + nvl (comm,0)
from emp;
empno,ename,dname
from(select * from emp natural join dept);
16.下面哪乙個術語用來說明屬於乙個特定使用者的物件集合
a.使用者帳
b.角色
c.資料字典
d.架構
17.下面哪些命令允許使用者更改他自己的密碼選出所有正確的答案.
user identifide by
user identifide by
user password
18.下面哪乙個命令禁止使用者服務smith檢視儲存在emp表中的資料,但仍然允許他訪問dept表
select on emp from smith;
table emp from smit;
select any table from smith;
user smith restricted access on emp;
19.下面哪乙個命令可以用來修改乙個檢視
view
view
view modiey
table modiey view
e.不能修改檢視
20.下面哪乙個子句不能與alter sequence命令一起使用
by with
oracle經典面試題
hwk,不需要rollback segment 而delete是dml操作,需要rollback segment 且花費較長 時間.8.使用索引的理由 解答 快速訪問表中的data block 9.給出在star schema中的兩種表及它們分別含有的資料 解答 fact tables 和dimen...
Oracle面試題集錦
一 經典面試題 1.oracledba面試題之一解釋冷備份和熱備份的不同點以及各自的優點 解答 熱備份針對歸檔模式的資料庫,在資料庫仍舊處於工作狀態時進行備份。而冷備份指在資料庫關閉後,進行備份,適用於所有模式的資料庫。熱備份的優點在於當備份時,資料庫仍舊可以被使用並且可以將資料庫恢復到任意乙個時間...
oracle面試題目
1.解釋冷備份和熱備份的不同點以及各自的優點 解答 熱備份針對歸檔模式的資料庫,在資料庫仍舊處於工作狀態時進行備份。而冷備份指在資料庫關閉後,進行備份,適用於所有模式的資料庫。熱備份的優點在於當備份時,資料庫仍舊可以被使用並且可以將資料庫恢復到任意乙個時間點。冷備份的優點在於它的備份和恢復操作相當簡...