多选题When does a transaction complete?()Awhen a DELETE statement is executedBwhen a ROLLBACK command is executedCwhen a PL/SQL anonymous block is executedDwhen a data definition language (DDL) statement is executedEwhen a TRUNCATE statement is executed afte

题目
多选题
When does a transaction complete?()
A

when a DELETE statement is executed

B

when a ROLLBACK command is executed

C

when a PL/SQL anonymous block is executed

D

when a data definition language (DDL) statement is executed

E

when a TRUNCATE statement is executed after the pending transact ion

如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

Evaluate the set of SQL statements:What is true about the set?()

A. The DESCRIBE DEPT statement displays the structure of the DEPT table.

B. The ROLLBACK statement frees the storage space occupies by the DEPT table.

C. The DESCRIBE DEPT statement returns an error ORA-04043: object DEPT does not exist.

D. The DESCRIBE DEPT statement displays the structure of the DEPT table only if there is a COMMIT statement introduced before the ROLLBACK statement.


参考答案:A

第2题:

To make audit information more productive, the DBA executes the following command before startingan audit operation:  SQL> ALTER SYSTEM SET AUDIT_TRAIL=DB,EXTENDED SCOPE=SPFILE;  Which statement is true regarding the audit record generated when auditing starts after restarting thedatabase()

  • A、It contains only the plan for the SQL statement executed by the user.
  • B、It contains the SQL text executed by the user and the bind variables used with it.
  • C、It contains the plan and statistics associated with the SQL statement executed by the user.
  • D、It contains the plan for the SQL statement executed by the user and the bind variables used with it.

正确答案:B

第3题:

View the exhibit and examine the TRANS table‘s storage information.After a massive delete operation, you executed the following statement to shrink the TRANS table:SQL> ALTER TABLE trans SHRINK SPACE CASCADE;Which statement describes the outcome of the command?()

A. An error is produced.

B. The table and all related objects are compacted and the position of the high-water mark (HWM) for the table is adjusted

C. The table and related indexes are compacted but the position of the high-water mark (HWM) for the table remains unchanged

D. The unused space in the table is reclaimed and returned to the tablespace and the data manipulation language (DML) triggers on the table are fired during the shrinking process


参考答案:B

第4题:

Examine the following command:ALTER SYSTEM SET enable_ddl_logging=FALSE;Which statement is true?()

  • A、None of the data definition language (DDL) statements are logged in the trace file.
  • B、Only DDL commands that resulted in errors are logged in the alert log file.
  • C、A new log.xml file that contains the DDL statements is created, and the DDL command details are removed from the alert log file.
  • D、Only DDL commands that resulted in the creation of new database files are logged.

正确答案:A

第5题:

You design a Business Intelligence (BI) solution by using SQL Server 2008. You create a SQL Server 2008 Integration Services (SSIS) package to perform an extract, transform, and load (ETL) process to load data to a DimCustomer dimension table that contains 1 million rows. Your data flow uses the following components: A SQL Destination data flow task to insert new customers An OLE DB Command transform that updates existing customers On average, 25 percent of existing customer records is updated each night. You need to reduce the amount of time required to update customer records. What should you do?()

  • A、 Modify the UPDATE statement in the OLE DB Command transform to use the PAGLOCK table hint. 
  • B、 Modify the UPDATE statement in the OLE DB Command transform to use the TABLOCK table hint. 
  • C、 Stage the data in the data flow. Replace the OLE DB Command transform in the data flow with an Execute SQL task in the control flow.
  • D、 Stage the data in the data flow. Replace the UPDATE statement in the OLE DB Command transform with a DELETE statement followed by an INSERT statement.

正确答案:C

第6题:

A view is created with the following statement:CREATE VIEW v1 AS SELECT col1, col2, col3 FROM t1 WHERE col4 > 1000 ; When will DB2 access the data from table T1 for view V1?()

A.When view V1 is created

B.Each time the REFRESH VIEW v1 statement is executed

C.Each time an SQL statement is executed against view V1

D.Only the first time an SQL statement is executed against view V1


参考答案:C

第7题:

When does a transaction complete?()

  • A、when a DELETE statement is executed 
  • B、when a ROLLBACK command is executed 
  • C、when a PL/SQL anonymous block is executed 
  • D、when a data definition language (DDL) statement is executed 
  • E、when a TRUNCATE statement is executed after the pending transact ion

正确答案:B,D,E

第8题:

Evaluate the SQL statement: TRUNCATE TABLE DEPT; Which three are true about the SQL statement? ()

A. It releases the storage space used by the table.

B. It does not release the storage space used by the table.

C. You can roll back the deletion of rows after the statement executes.

D. You can NOT roll back the deletion of rows after the statement executes.

E. An attempt to use DESCRIBE on the DEPT table after the TRUNCATE statement executes will display an error.

F. You must be the owner of the table or have DELETE ANY TABLE system privileges to truncate the DEPT table


参考答案:B, D, F

第9题:

Which statement correctly describes SQL and /SQL*Plus?()

  • A、Both SQL and /SQL*plus allow manipulation of values in the database.
  • B、/SQL* Plus recognizes SQL satement and sends them to the server; SQL is the Oracle proprietary interface for executing SQL statements.
  • C、/SQL* Plus language for communicating with the Oracle server to access data; SQL recognizes SQL statements and sends them to the server.
  • D、/SQL manipulates data and table definition in the database; /SQL* Plus does not allow manipulation of values in the database.

正确答案:A

第10题:

Which type of PL/SQL construct would you use to automatically correct the error resulting from a statement that was suspended due to a space/x7frelated problem? ()

  • A、function
  • B、package
  • C、procedure
  • D、database trigger
  • E、anonymous PL/SQL block

正确答案:D

更多相关问题