Oracle Database: SQL, RMAN, and IDMS Fundamentals

Comprehensive quiz covering Oracle SQL functions, RMAN backup and recovery, and IDMS network database concepts.

20 Questions Published

Questions

Question 1 Multiple Choice (Multiple Answers)

Which four statements correctly describe functions that are available in SQL? (Choose four.)

  1. INSTR returns the numeric position of a named character.
  2. NVL2 returns the first non-null expression in the expression list.
  3. TRUNCATE rounds the column, expression, or value to n decimal places.
  4. DECODE translates an expression after comparing it to each search value.
  5. TRIM trims the heading or trailing characters (or both) from a character string.
  6. NULLIF compares two expressions and returns null if they are equal, or the first expression if they are not equal.
Question 2 Multiple Choice (Single Answer)

Which statement creates a new user?

  1. CREATE USER Susan;
  2. CREATE OR REPLACE USER Susan;
  3. CREATE NEW USER Susan DEFAULT;
  4. CREATE USER Susan IDENTIFIED BY blue;
  5. CREATE NEW USER Susan IDENTIFIED by blue;
  6. CREATE OR REPLACE USER Susan IDENTIFIED BY blue;
Question 3 Multiple Choice (Single Answer)

Mark for review Which SQL statement accepts user input for the columns to be displayed, the table name, and the WHERE condition?

  1. SELECT &1, "&2"FROM &3 WHERE last_name = '&4';
  2. SELECT &1, '&2' FROM &3 WHERE '&last_name = '&4'';
  3. SELECT &1, &2 FROM &3 WHERE last_name = '&4';
  4. SELECT &1, '&2' FROM EMP WHERE last_name = '&4';
Question 4 Multiple Choice (Single Answer)

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?

  1. Alice only
  2. Alice and Rena
  3. Alice, Rena, and Timber
  4. Sue, Alice, Rena, and Timber
Question 5 Multiple Choice (Single Answer)

IDMS stands for _____________?

  1. Integrated Data Management System
  2. Integrated Database Management System
  3. Integrated Database Messaging System
  4. Internal Database Management System
Question 6 Multiple Choice (Single Answer)

IDMS is ______ type of database.

  1. Hierarchical
  2. Relational
  3. Network
  4. Other
Question 7 Multiple Choice (Single Answer)

In IDMS terminology, a parent record is called an ________ and a child record is called a ______.

  1. Owner and Child
  2. Head and Child
  3. Owner and Member
  4. Head and Tail
Question 8 Multiple Choice (Single Answer)

The unit of data that is passed by IDMS from database to application program is known as ________.

  1. Set
  2. Page
  3. Area
  4. Record Type
Question 9 Multiple Choice (Single Answer)

The relationship between 2 or more record types is defined by ___?

  1. Area
  2. Set Type
  3. Record Type
  4. Relation
Question 10 Multiple Choice (Multiple Answers)

Data recovery advisor can be accessed from … Choose all that apply

  1. RMAN prompt
  2. SQLPLUS prompt
  3. Oracle Enterprise Manager 11g (OEM)
  4. DRA prompt
Question 11 Multiple Choice (Multiple Answers)

Choose the VALID commands in the context of “Data Recovery Advisor”

  1. rman > list failure;
  2. rman > report failure;
  3. rman > diagnose failure;
  4. rman > advise failure;
  5. rman > repair failure preview;
  6. rman > repair failure;
Question 12 Multiple Choice (Single Answer)

Which component below can NOT be validated using “VALIDATE” command from rman prompt

  1. database
  2. datafile
  3. tracefile
  4. spfile
  5. controlfilecopy
  6. flash recovery area
Question 13 Multiple Choice (Multiple Answers)

What is true about COMPRESSED backups in Oracle 11g? Choose all that apply

  1. ZLIB compression gives better compression ratio in comparison to BZIP2 compression
  2. BZIP2 compression gives better compression ratio in comparison to ZLIB compression
  3. ZLIB compression consumes much lesser CPU in comparison to BZIP2 compression
  4. BZIP2 compression consumes much lesser CPU in comparison to ZLIB compression
  5. ZLIB compression comes with additional licensing cost. BZIP2 compression comes with no additional cost
  6. BZIP2 compression comes with additional licensing cost. ZLIB compression comes with no additional cost
Question 14 Multiple Choice (Single Answer)

What is the RMAN command to set the compression algorithm to ZLIB?

  1. rman > configure compression algorithm ‘zlib’;
  2. rman > configure compression algorithm ‘zlib11g’;
  3. rman > set compression algorithm ‘zlib’;
  4. rman > set compression algorithm ‘zlib11g’;
Question 15 Multiple Choice (Single Answer)

Which scenario below truly achieves “Parallel Backups” using RMAN in Oracle 11g?

  1. Scenario 1: Backup 2 datafiles each of 20 GB datafile using 4 RMAN channels. Use the default setting for all RMAN channels
  2. 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”
  3. Scenario 3: Backup 2 datafiles each of 20 GB size using 4 RMAN channels. Each channel backs up data with “section size=5GB"
  4. 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”
Question 16 Multiple Choice (Single Answer)

What is true about group functions ?

  1. You can use group functions in any clause of a select statement
  2. You can use group functions only in the column list of the SELECT statement by grouping on the single row columns
  3. You can pass column names, expressions, constants or functions as parameters to a group function
  4. You cannot group the rows of a table by more than one column while using group functions
Question 17 Multiple Choice (Single Answer)

Which SELECT statement will result "ello world" from the string "Hello World"?

  1. SELECT SUBSTR('Hello',) FROM dual;
  2. SELECT INITCAP(TRIM('Hello World',1,1)) FROM dual;
  3. SELECT LOWER(SUBSTR('Hello World',1,1)) FROM dual;
  4. SELECT LOWER(SUBSTR('Hello World',2,1)) FROM dual;
  5. SELECT LOWER(TRIM('H' FROM 'Hello World')) FROM dual;
Question 18 True/False

Can you use both HAVING and WHERE Sql clauses in one SQL statement ?

  1. True
  2. False
Question 19 Multiple Choice (Single Answer)

What best describes the relationship between indexes and SQL performance?

  1. Indexes are only used in special cases
  2. Indexes are used to make table storage more efficient
  3. Indexes rarely make a difference in SQL performance
  4. Indexes exist solely to improve query speed.
Question 20 Multiple Choice (Multiple Answers)

For which two constraints,does the oracle server implicitly creates an index ?

  1. NOT NULL
  2. PRIMARY KEY
  3. FOREIGN KEY
  4. CHECK
  5. UNIQUE