Oracle 11G OCP 1Z0-052 58
User A executes the following command to update the TRANS table:
SQL> UPDATE B.trans SET tr_amt = tr_amt + 500 WHERE c_code = 'C005';
Before user A issues a COMMIT or ROLLBACK command, user B executes the following command on the TRANS table:
SQL> ALTER TABLE trans MODIFY (tr_type VARCHAR2(3));
What would happen in this scenario?
A. The ALTER TABLE command modifies the column successfully.
B. The DDL operation gets higher priority and transaction for user A is rolled back.
C. The ALTER TABLE command waits indefinitely until user A ends the transaction.
D. The ALTER TABLE command fails after waiting for 60 seconds due to the resource being busy.
答案:(D)
解析:
--在一個會話中建立和修改表 scott@TESTDB11>create table emp1 as select * from emp; Table created. scott@TESTDB11>update emp1 set sal = sal * 2 where empno = 7788; 1 row updated. --D. 在另一個會話中修改表的定義,這個錯誤是立即返回的,本答案稍有瑕疵. scott@TESTDB11>alter table emp1 modify (ename varchar2(30)); alter table emp1 modify (ename varchar2(30)) * ERROR at line 1: ORA-00054: resource busy and acquire with NOWAIT specified or timeout expired |
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/17013648/viewspace-1180139/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle OCP(58):ARCHIVELOG 管理OracleHive
- 【OCP最新題庫解析(052)--題9】You want to install Oracle 11g databaseOracleDatabase
- Oracle OCP(56)Oracle
- Oracle OCP(54):EXPOracle
- Oracle OCP(54):IMPOracle
- Oracle OCP(57):IMPDPOracle
- Oracle OCP(44):LSNRCTLOracle
- Oracle OCP(23):序列Oracle
- Oracle OCP(29):PROFILEOracle
- Oracle OCP(28):USEROracle
- Oracle OCP(25):索引Oracle索引
- Oracle OCP(30):ROLEOracle
- 有關考11g OCP的重要通知!
- Oracle OCP(48):UNDO TABLESPACEOracle
- Oracle OCP(33):官方文件Oracle
- Oracle OCP(20):建立表Oracle
- Oracle OCP(21):管理表Oracle
- Oracle OCP(12):ROLLUP & CUBEOracle
- Oracle OCP(24):檢視Oracle
- Oracle OCP(26):其它ObjectOracleObject
- Oracle OCP(32):SUPPORT:MOSOracle
- 這是考11g OCP最好的時期
- Oracle OCP(60):RMAN 備份Oracle
- Oracle OCP(45):sqlnet.oraOracleSQL
- Oracle OCP(45):TNSNAMES.oraOracle
- Oracle OCP(62):熱備份Oracle
- Oracle OCP(60):冷備份Oracle
- Oracle OCP(35):Database 安裝OracleDatabase
- Oracle OCP(36):DBCA建庫Oracle
- Oracle OCP(04):聚合函式Oracle函式
- Oracle OCP(43):listener.oraOracle
- Oracle OCP(40):程式結構Oracle
- Oracle OCP(18):命名規則Oracle
- Oracle之11g DataGuardOracle
- Oracle OCP和MySQL OCP認證考試內容有哪些?OracleMySql
- Oracle OCP(52):細粒度審計Oracle
- Oracle OCP(51):簡單審計Oracle
- Oracle OCP(49):表空間管理Oracle
- Oracle OCP(55):SQLLDR—CTL檔案OracleSQL