UPDATE pets…
SELECT….FROM pets
INSERT INTO pets…
ALTER TABLE pets…
2.PETS法
第1题:
You are responsible for a data warehouse application that uses records from an external table to update one of the dimension tables periodically. The records in the external table may contain data for new rows in the dimension table, or for updates to its existing rows. Which type of SQL command would you use to transfer the data from the external table to the dimension table as efficiently as possible?()
第2题:
One of the users in the PROD database, Adams, complains that his update on the table, TRANS, is taking an unusually long time to complete. You find that the table gets locked by another database user before Adams starts his transactions, and you are unable to contact the user holding the table lock. As Adams is updating some crucial rows in the table, he should get the highest priority. Which method would you use to overcome this problem?()
第3题:
User SCOTT executes the following command on the EMP table but has not issued COMMIT, ROLLBACK, or any data definition language (DDL) command: SQL> SELECT ename FROM emp 2 WHERE job=’CLERK’ FOR UPDATE OF empno; SCOTT has opened another session to work with the database instance. Which three operations wouldwait when issued in SCOTT’s second session()
第4题:
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?()
第5题:
A user issues a SELECT command against the Oracle database. Which of the following choices describes a step that Oracle will execute in support of this statement?()
第6题:
User SCOTT executes the following command on the EMP table but has not issued COMMIT, ROLLBACK,or any data definition language (DDL) command: SQL> SELECT job FROM emp 2 WHERE job=’CLERK’ FOR UPDATE OF empno; SCOTT has opened another session to work with the database. Which three operations would wait when issued in SCOTT’s second session?()
第7题:
Acquire locks on table queried
Generate redo for statement
Fetch data from disk into memory
Write changes to disk
第8题:
The ALTER TABLE command modifies the column successfully.
The DDL operation gets higher priority and transaction for user A is rolled back.
The ALTER TABLE command waits indefinitely until user A ends the transaction.
The ALTER TABLE command fails after waiting for 60 seconds due to the resource being busy
第9题:
execute the command, ALTER SESSION KILL .., to kill the blocking session
execute the DBMS_SESSION.KILL_SESSION procedure to kill the blocking session
execute the command, ALTER SYSTEM KILL SESSION .., to kill the blocking session
execute the command, ALTER SESSION UNLOCK .., to release the lock for the blocking session
execute the command, ALTER SYSTEM UNLOCK SESSION .., to release the lock for the blocking session
第10题:
REVOKE SELECT FROM user2 ON TABLE org.tab1
REVOKE SELECT ON TABLE org.tab1 FROM user2
REVOKE READ ACCESS FROM user2 ON TABLE org.tab1
REVOKE READ ACCESS ON TABLE org.tab1 FROM user2
第11题:
individually
drastically
particularly
universally
第12题:
UPDATE pets…
SELECT….FROM pets
INSERT INTO pets…
ALTER TABLE pets…
第13题:
You execute the following command to audit database activities: SQL> AUDIT DROP ANY TABLE BY scott BY SESSION WHENEVER SUCCESSFUL; What is the effect of this command()
第14题:
The user Sue issues this SQL statement: GRANT SELECT ON sue. EMP TO alice WITH GRANT OPTION; The user Alice issues this SQL statement: GRANT SELECT ON sue. EMP TO reena WITH GRANT OPTION; The user Reena issues this SQL statement: GRANT SELECT ON sue. EMP TO timber; The user Sue issues this SQL statement: REVOKE select on sue. EMP FROM alice; For which users does the revoke command revoke SELECT privileges on the SUE.EMP table?()
第15题:
User SCOTT executes the following command on the EMP table but has not issued COMMIT, ROLLBACK, orany data definition language (DDL) command: SQL> SELECT ename FROM emp WHERE job=’CLERK’ FOR UPDATE OF empno; SCOTT has opened another session to work with the database instance. Which three operations would waitwhen issued in SCOTT’s second session()
第16题:
The user HR owns the EMP table. The user HR grants privileges to the user SCOTT by using this command: SQL> GRANT SELECT,INSERT,UPDATE ON emp TO scott WITH GRANT OPTION; The user SCOTT executes this command to grant privileges to the user JIM: SQL> GRANT SELECT,INSERT,UPDATE ON hr.emp TO jim; Now, the user HR decides to revoke privileges from JIM using this command: SQL> REVOKE SELECT,INSERT,UPDATE ON emp FROM jim; Which statement is true after HR issues the REVOKE command()
第17题:
User A issues the command: LOCK TABLES pets READ; Which command can User B execute against the pets table?()
第18题:
One audit record is created for every successful DROP TABLE command executed in the session of SCOTT.
One audit record is generated for the session when SCOTT grants the DROP ANY TABLE privilege to otherusers.
One audit record is created for the whole session if user SCOTT successfully drops one or more tables inhis session.
One audit record is created for every session of any other user in which a table owned by SCOTT isdropped successfully.
One audit record is created for every successful DROP TABLE command executed by any user to drop Tables owned by SCOTT
第19题:
The ALTER TABLE command modifies the column successfully.
The DDL operation gets higher priority and transaction for user a is rolled back.
The ALTER TABLE command waits indefinitely until user a ends the transaction.
The ALTER TABLE command fails after waiting for 60 seconds due to the resource being busy.
第20题:
Alice only
Alice and Reena
Alice, Reena, and Timber
Sue, Alice, Reena, and Timber
第21题:
The database instance is not available.
The ALTER TABLE command does not have WAIT option
The table or a row in the table is currently locked by another user session.
The database instance is busy processing other user sessions commands.
The CUSTOMERS table has no long running query active at the time when this request is made.
The server process executing the ALTER TABLE command is busy with another command execution
第22题:
The command fails because SCOTT still has privileges.
The command succeeds and privileges are revoked from JIM.
The command fails because HR cannot revoke the privileges from JIM.
The command succeeds and only HR has the privilege to perform the SELECT, INSERT, and UPDATEoperations on the EMP table.
第23题:
CREATE SYNONYM ord FOR orders; This command is issued by OE
CREATE PUBLIC SYNONYM ord FOR orders; This command is issued by OE
CREATE SYNONYM ord FOR oe.orders; This command is issued by the database administrator
CREATE PUBLIC SYNONYM ord FOR oe.orders; This command is issued by the database administrator
第24题:
The transaction for user A is rolled back.
The ALTER TABLE command modifies the column successfully.
The ALTER TABLE command fails due to the resource being busy.
The ALTER TABLE command waits until user A ends the transaction.