Oracle Database: SQL, RMAN, and IDMS Fundamentals
Comprehensive quiz covering Oracle SQL functions, RMAN backup and recovery, and IDMS network database concepts.
Questions
Which four statements correctly describe functions that are available in SQL? (Choose four.)
- INSTR returns the numeric position of a named character.
- NVL2 returns the first non-null expression in the expression list.
- TRUNCATE rounds the column, expression, or value to n decimal places.
- DECODE translates an expression after comparing it to each search value.
- TRIM trims the heading or trailing characters (or both) from a character string.
- NULLIF compares two expressions and returns null if they are equal, or the first expression if they are not equal.
Which statement creates a new user?
- CREATE USER Susan;
- CREATE OR REPLACE USER Susan;
- CREATE NEW USER Susan DEFAULT;
- CREATE USER Susan IDENTIFIED BY blue;
- CREATE NEW USER Susan IDENTIFIED by blue;
- CREATE OR REPLACE USER Susan IDENTIFIED BY blue;
Mark for review Which SQL statement accepts user input for the columns to be displayed, the table name, and the WHERE condition?
- SELECT &1, "&2"FROM &3 WHERE last_name = '&4';
- SELECT &1, '&2' FROM &3 WHERE '&last_name = '&4'';
- SELECT &1, &2 FROM &3 WHERE last_name = '&4';
- SELECT &1, '&2' FROM EMP WHERE last_name = '&4';
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 Rena WITH GRANT OPTION; The user Rena 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?
- Alice only
- Alice and Rena
- Alice, Rena, and Timber
- Sue, Alice, Rena, and Timber
IDMS stands for _____________?
- Integrated Data Management System
- Integrated Database Management System
- Integrated Database Messaging System
- Internal Database Management System
IDMS is ______ type of database.
- Hierarchical
- Relational
- Network
- Other
In IDMS terminology, a parent record is called an ________ and a child record is called a ______.
- Owner and Child
- Head and Child
- Owner and Member
- Head and Tail
The unit of data that is passed by IDMS from database to application program is known as ________.
- Set
- Page
- Area
- Record Type
The relationship between 2 or more record types is defined by ___?
- Area
- Set Type
- Record Type
- Relation
Data recovery advisor can be accessed from … Choose all that apply
- RMAN prompt
- SQLPLUS prompt
- Oracle Enterprise Manager 11g (OEM)
- DRA prompt
Choose the VALID commands in the context of “Data Recovery Advisor”
- rman > list failure;
- rman > report failure;
- rman > diagnose failure;
- rman > advise failure;
- rman > repair failure preview;
- rman > repair failure;
Which component below can NOT be validated using “VALIDATE” command from rman prompt
- database
- datafile
- tracefile
- spfile
- controlfilecopy
- flash recovery area
What is true about COMPRESSED backups in Oracle 11g? Choose all that apply
- ZLIB compression gives better compression ratio in comparison to BZIP2 compression
- BZIP2 compression gives better compression ratio in comparison to ZLIB compression
- ZLIB compression consumes much lesser CPU in comparison to BZIP2 compression
- BZIP2 compression consumes much lesser CPU in comparison to ZLIB compression
- ZLIB compression comes with additional licensing cost. BZIP2 compression comes with no additional cost
- BZIP2 compression comes with additional licensing cost. ZLIB compression comes with no additional cost
What is the RMAN command to set the compression algorithm to ZLIB?
- rman > configure compression algorithm ‘zlib’;
- rman > configure compression algorithm ‘zlib11g’;
- rman > set compression algorithm ‘zlib’;
- rman > set compression algorithm ‘zlib11g’;
Which scenario below truly achieves “Parallel Backups” using RMAN in Oracle 11g?
- Scenario 1: Backup 2 datafiles each of 20 GB datafile using 4 RMAN channels. Use the default setting for all RMAN channels
- Scenario 2: Backup 2 datafiles each of 20 GB datafile using 4 RMAN channels. Each channel backs up 2 datafiles at the same time with “parallel=2”
- Scenario 3: Backup 2 datafiles each of 20 GB size using 4 RMAN channels. Each channel backs up data with “section size=5GB"
- Scenario 4: Backup 2 datafiles each of 20 GB datafile using 4 RMAN channels. Each channel backs up 2 datafiles at the same time with “parallel backups=2”
What is true about group functions ?
- You can use group functions in any clause of a select statement
- You can use group functions only in the column list of the SELECT statement by grouping on the single row columns
- You can pass column names, expressions, constants or functions as parameters to a group function
- You cannot group the rows of a table by more than one column while using group functions
Which SELECT statement will result "ello world" from the string "Hello World"?
- SELECT SUBSTR('Hello',) FROM dual;
- SELECT INITCAP(TRIM('Hello World',1,1)) FROM dual;
- SELECT LOWER(SUBSTR('Hello World',1,1)) FROM dual;
- SELECT LOWER(SUBSTR('Hello World',2,1)) FROM dual;
- SELECT LOWER(TRIM('H' FROM 'Hello World')) FROM dual;
Can you use both HAVING and WHERE Sql clauses in one SQL statement ?
- True
- False
What best describes the relationship between indexes and SQL performance?
- Indexes are only used in special cases
- Indexes are used to make table storage more efficient
- Indexes rarely make a difference in SQL performance
- Indexes exist solely to improve query speed.
For which two constraints,does the oracle server implicitly creates an index ?
- NOT NULL
- PRIMARY KEY
- FOREIGN KEY
- CHECK
- UNIQUE