Machine-translated by Google. Questions are authored in English.
Top

Managing Databases with Oracle Questions and Answers

41.

The left-leaning slash tells Oracle to execute whatever statement is in the buffer.

Answer: B

Correct answer: False

It is the forward slash that executes the buffer, not a backslash, and typing a backslash achieves nothing. The distinction matters in practice because the slash is how a statement is re-run after being corrected, and how a PL/SQL block is submitted - a semicolon cannot end such a block, since its body is full of semicolons already.

Please log in or register to report this question.

42.

What type of failure occurs when Oracle fails due to an operating system or computer hardware failure?

Answer: B

Correct answer: Instance Failure

Instance failure is the loss of the Oracle instance itself - the memory structures and background processes - through an operating system crash, a hardware fault or a power loss. The datafiles are undamaged, so recovery is automatic on the next startup: Oracle rolls forward the redo log and rolls back uncommitted transactions. Media failure, by contrast, means the files themselves are damaged and needs a restore.

Please log in or register to report this question.

43.

Which of the following is NOT an Oracle-supported trigger?

Answer: B

Correct answer: DURING

Oracle triggers fire BEFORE or AFTER the triggering statement, or INSTEAD OF it, the last being used on views that are not otherwise updatable. There is no DURING option, and there could not usefully be one, since the statement is atomic from the trigger’s point of view.

Please log in or register to report this question.

44.

The semicolon terminates a SQL statement (and executes it).

Answer: A

Correct answer: True

A semicolon at the end of a line terminates the statement and submits it for execution in one action, which is the ordinary way of running a single SQL statement. The alternative is a slash on a line of its own, which executes whatever is already in the buffer and is needed for PL/SQL blocks.

Please log in or register to report this question.

45.

The default extension for SQL*Plus is .sql.

Answer: A

Correct answer: True

SQL*Plus assumes the extension .sql when a file name is given without one, so a script saved as build.sql is run simply as @build. The convention is worth following, since a file with any other extension has to be named in full every time it is used.

Please log in or register to report this question.

Answer: B

Correct answer: ON UPDATE CASCADE

Oracle supports ON DELETE CASCADE but not ON UPDATE CASCADE, so a change to a parent key value cannot be propagated automatically to the children; it must be done with a trigger or, better, avoided by using a surrogate key that never changes. The two sequence commands are both supported.

Please log in or register to report this question.

47.

What is the type of Oracle backup in which all uncommitted changes have been removed from the datafiles?

Answer: B

Correct answer: Consistent backup

A consistent backup is taken with the database cleanly shut down, so every datafile is at the same system change number and no uncommitted change remains in it. It can be restored without applying redo. An inconsistent backup is taken with the database open and does require redo to be applied before it can be used.

Please log in or register to report this question.

48.

Oracle directly supports the definition of surrogate keys.

Answer: B

Correct answer: False

Oracle has no declaration that makes a column a surrogate key. The usual construction is a sequence to generate the values together with a trigger that assigns the next value on insert, or in later versions an identity column, but neither is a direct definition of a surrogate key in the sense the statement claims.

Please log in or register to report this question.

49.

After a table has been created, its structure can be modified using the SQL command:

Answer: C

Correct answer: ALTER TABLE [ TableName ].

ALTER TABLE is the standard command for changing an existing table - adding or dropping a column, changing a datatype, adding or removing a constraint. UPDATE changes data rather than structure, and the other two are not SQL commands at all.

Please log in or register to report this question.

Loading…

Other Subjects

Tags: Managing Databases with Oracle Questions and Answers || Managing Databases with Oracle MCQ Questions and Answers || Managing Databases with Oracle GK Questions and Answers || Managing Databases with Oracle GK MCQ Questions || Managing Databases with Oracle Multiple Choice Questions and Answers || Managing Databases with Oracle GK || GK on Managing Databases with Oracle || Database Questions and Answers || Database MCQ Questions and Answers || Database GK Questions and Answers || GK on Database