Podcast
Questions and Answers
Which of the following statements is true regarding data dictionary views?
Which of the following statements is true regarding data dictionary views?
How is the data dictionary maintained?
How is the data dictionary maintained?
Which of the following statements is true about views with different prefixes like CDB, DBA, ALL and USER?
Which of the following statements is true about views with different prefixes like CDB, DBA, ALL and USER?
Which of the following statements is true regarding the base tables in the data dictionary?
Which of the following statements is true regarding the base tables in the data dictionary?
Signup and view all the answers
Who owns the data dictionary?
Who owns the data dictionary?
Signup and view all the answers
Which of the following is stored in the data dictionary?
Which of the following is stored in the data dictionary?
Signup and view all the answers
What is the correct SQL query to display details of customers residing in cities starting with the letter D followed by at least two characters?
What is the correct SQL query to display details of customers residing in cities starting with the letter D followed by at least two characters?
Signup and view all the answers
In Oracle, what happens when an unused column is dropped from a database table?
In Oracle, what happens when an unused column is dropped from a database table?
Signup and view all the answers
Which SQL query correctly retrieves data from a table in Oracle?
Which SQL query correctly retrieves data from a table in Oracle?
Signup and view all the answers
When altering a tablespace to READ ONLY in Oracle, what occurs?
When altering a tablespace to READ ONLY in Oracle, what occurs?
Signup and view all the answers
Which action must be taken if using Oracle Managed Files (OMF) when renaming a file?
Which action must be taken if using Oracle Managed Files (OMF) when renaming a file?
Signup and view all the answers
What information does the V$TABLESPACE view display?
What information does the V$TABLESPACE view display?
Signup and view all the answers
Which query can be used to display the unique promotion costs in each promotion category?
Which query can be used to display the unique promotion costs in each promotion category?
Signup and view all the answers
What is the size of the UNDOTBS1 undo tablespace?
What is the size of the UNDOTBS1 undo tablespace?
Signup and view all the answers
What is the UNDO_RETENTION setting for the UNDOTBS1 undo tablespace?
What is the UNDO_RETENTION setting for the UNDOTBS1 undo tablespace?
Signup and view all the answers
What is the AUTOEXTEND setting for the UNDOTBS1 undo tablespace?
What is the AUTOEXTEND setting for the UNDOTBS1 undo tablespace?
Signup and view all the answers
What will happen when the next update is attempted by any transaction after the UNDOTBS1 undo tablespace fills with uncommitted undo 10 minutes after the database opens?
What will happen when the next update is attempted by any transaction after the UNDOTBS1 undo tablespace fills with uncommitted undo 10 minutes after the database opens?
Signup and view all the answers
Which statement about single-row functions is false?
Which statement about single-row functions is false?
Signup and view all the answers
In the absence of an ORDER BY clause, how is the output sorted in a compound query with the UNION operator?
In the absence of an ORDER BY clause, how is the output sorted in a compound query with the UNION operator?
Signup and view all the answers
Which of the following account management capabilities cannot be configured using Oracle profiles?
Which of the following account management capabilities cannot be configured using Oracle profiles?
Signup and view all the answers
Which statement is true regarding the ORDER BY clause in a compound query with the UNION operator?
Which statement is true regarding the ORDER BY clause in a compound query with the UNION operator?
Signup and view all the answers
Which of the following account management capabilities can be configured using Oracle profiles?
Which of the following account management capabilities can be configured using Oracle profiles?
Signup and view all the answers
Which of the following statements about single-row functions is true?
Which of the following statements about single-row functions is true?
Signup and view all the answers
Which of the following tasks is performed by the Process Monitor (PMON) in Oracle?
Which of the following tasks is performed by the Process Monitor (PMON) in Oracle?
Signup and view all the answers
In which situation does a new transaction always start?
In which situation does a new transaction always start?
Signup and view all the answers
Which of the following statements is true about transactions in Oracle?
Which of the following statements is true about transactions in Oracle?
Signup and view all the answers
Which of the following statements correctly describes a situation where a new transaction does NOT start?
Which of the following statements correctly describes a situation where a new transaction does NOT start?
Signup and view all the answers
Study Notes
Data Dictionary Views
- Data dictionary views are maintained by Oracle automatically.
- Views with different prefixes like CDB, DBA, ALL, and USER provide different levels of access to the data dictionary.
- The data dictionary views are based on the base tables in the data dictionary.
Data Dictionary Maintenance
- The data dictionary is maintained by Oracle.
- SYS owns the data dictionary.
Data Dictionary Content
- The data dictionary stores information about the database, including schema objects, users, and storage.
SQL Queries
- The correct SQL query to display details of customers residing in cities starting with the letter D followed by at least two characters is
SELECT * FROM customers WHERE city LIKE 'D_%';
. - The query
SELECT * FROM table_name;
correctly retrieves data from a table in Oracle.
Table and Tablespace Management
- When an unused column is dropped from a database table, the space is not released back to the OS.
- Altering a tablespace to READ ONLY in Oracle makes it unavailable for write operations.
- When using Oracle Managed Files (OMF) and renaming a file, the corresponding database file must be updated.
V$TABLESPACE View
- The V$TABLESPACE view displays information about the tablespace.
Promotion Costs
- The query
SELECT DISTINCT promotion_cost FROM promotions;
can be used to display the unique promotion costs in each promotion category.
Undo Tablespace
- The size of the UNDOTBS1 undo tablespace is 100M.
- The UNDO_RETENTION setting for the UNDOTBS1 undo tablespace is 10 minutes.
- The AUTOEXTEND setting for the UNDOTBS1 undo tablespace is ON.
- When the UNDOTBS1 undo tablespace fills with uncommitted undo 10 minutes after the database opens, the next update will be blocked by any transaction.
Single-Row Functions
- Not all single-row functions can be used in the SELECT, WHERE, and HAVING clauses of a query.
- Single-row functions can be used to perform calculations on a single row.
Compound Queries
- In the absence of an ORDER BY clause, the output of a compound query with the UNION operator is sorted by the first column.
- The ORDER BY clause can be used in a compound query with the UNION operator to specify the sort order.
Account Management
- Oracle profiles can be used to configure account management capabilities, including password policies and resource limits.
- Password expiration and account locking can be configured using Oracle profiles.
Transaction Management
- The Process Monitor (PMON) in Oracle is responsible for rolling back aborted transactions.
- A new transaction always starts when a COMMIT or ROLLBACK statement is executed.
- A new transaction does not start when a DDL statement is executed.
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.
Description
Test your knowledge of SQL query syntax with this quiz. Determine the correct way to select columns from a table based on certain conditions. Choose the right query format to display specific customer details.