Oracle Database Administration and SQL Practice Test

Comprehensive Oracle practice test covering SQL, PL/SQL, RMAN backup, SQL*Plus commands, shared server architecture, networking, character sets, sequences, and data dictionary views.

23 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

The information for a dynamic performance view is gathered from the control file.

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

What is the probable cause for getting the following error stack?
ERROR: ORA-01034: ORACLE not available
ORA-07318: smsget: open error when opening sgadef.dbf file.
HP-UX Error: 2: No such file or directory

  1. The Oracle segment is shutdown that they are trying to access.
  2. The Oracle namespace is shutdown that they are trying to access.
  3. The Oracle instance is shutdown that they are trying to access.
  4. None of the above
Question 3 Multiple Choice (Single Answer)

The local naming method is being used to connect to a remote server and the service name is being provided in the connection request. This service name is mapped to a network address contained in a _________.

  1. Connect Descriptor
  2. Connect Identifier
  3. Connect String
  4. Connected Directory
Question 4 Multiple Choice (Single Answer)

What is a feature of procedural replication?

  1. Useful in performing batch processing at multiple sites
  2. Includes automatic conflict detection
  3. Does not need conflict resolution techniques
  4. Automatically disables row-level replication when called at each site
Question 5 Multiple Choice (Single Answer)

Employee table has salary field in this case if we give the query : select * from employee where sal<2000 and sal>9000 which will yield result as _______.

  1. rows with Sal<2000 and Salary>9000 will be displayed.
  2. all the rows are displayed with any one of the condition satisfied.
  3. no rows will be selected.
  4. between sal 2000 and 9000 will be displayed.
Question 6 Multiple Choice (Single Answer)

The longest row in table DEPT is 8096 bytes long. What is the minimum buffer size that should be set in an import of DEPT?

  1. 4096
  2. 8096
  3. 8192
  4. 17210
Question 7 Multiple Choice (Single Answer)

If the following command is issued:
rman> CONFIGURE CONTROLFILE AUTOBACKUP ON;
Which of the following statements is true?

  1. The autobackup of the control file will occur even if a backup set that included a control file backup just occurred.
  2. The control file autobackup will occur only after a BACKUP command is issued.
  3. The autobackup of the control file will not occur if an identical control file backup currently exists on the device to be written.
  4. The 'CONFIGURE CONTROLFILE AUTOBACKUP ON;' command has no effect because the control file autobackup feature is enabled by default.
Question 8 Multiple Choice (Single Answer)

You have linked SQLPlus to an external text editor. To invoke the text editor for use within SQLPlus, which command do you use?

  1. Open [FileName]
  2. Show [FileName]
  3. Alter [FileName]
  4. Edit [FileName]
Question 9 Multiple Choice (Single Answer)

Can one listener process listen for more than one database?

  1. Yes
  2. No
Question 10 Multiple Choice (Single Answer)

Which datatype is assigned to a SQL*Plus variable when created with a DEFINE command?

  1. CHAR
  2. DATE
  3. NUMBER
  4. VARCHAR2
Question 11 Multiple Choice (Single Answer)

Can we pass a parameter to a cursor?

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

A database is currently configured with the database character set to WEBIS08859P1 and national character set to AL16UTF16.

Business requirements dictate the need to expand language requirements beyond the current character set, for Asian and additional Western European languages, in the form of customer names and addresses.

Which solution saves space storing Asian characters and maintains consistent character manipulation performance?

  1. Use SQL CHAR data types and change the database character set to UTF8.
  2. Use SQL NCHAR data types and change the national character set to UTF8.
  3. Use SQL CHAR data types and change the database character set to AL32UTF8.
  4. Use SQL NCHAR data types and keep the national character set to AL16UTF16.
Question 13 Multiple Choice (Single Answer)

Which of the following data dictionary views displays the objects owned by the user?

  1. DICTIONARY
  2. TABLE_PRIVILEGES
  3. ALL_VIEWS
  4. USER_OBJECTS
Question 14 Multiple Choice (Single Answer)

The following command was issued:

SELECT emp_id_seq.CURRVAL
FROM SYS.dual;

Which value is displayed?

  1. Values of the EMP_ID_SEQ columnCurrent value of the EMP_ID_SEQ cursor
  2. Current value of the EMP_ID_SEQ sequence
  3. Current value of the EMP_ID_SEQ cursor
  4. Current value of the EMP_ID_SEQ sequence
Question 15 Multiple Choice (Single Answer)

Where is the GROUP BY clause statement placed in a SELECT statement that includes a WHERE clause?

  1. Immediately after the SELECT clause
  2. Before the WHERE clause
  3. After the ORDER BY clause
  4. After the WHERE clause
Question 16 Multiple Choice (Single Answer)

Under the Oracle Shared Server architecture, client-user processes ultimately connect to a __________.

  1. service
  2. listener
  3. dispatcher
  4. shared server process
Question 17 Multiple Choice (Single Answer)

When allowing RMAN to backup archived redo log files, how does RMAN know which archived redo logs to back up from the archive log destination?

  1. RMAN keeps a list of archived logs in a text file.
  2. The DBA must manually tell RMAN which archive logs to backup.
  3. RMAN has access to target control file and/or catalog information.
  4. RMAN looks at the ARCHIVE_LOG_DEST parameter of the target database and backs up all archive logs found.
Question 18 Multiple Choice (Single Answer)

To see the contents of the SQL*Plus buffer, type _____.

  1. CONTENTS
  2. BUFFER
  3. CURRENT
  4. LIST
Question 19 Multiple Choice (Single Answer)

If SGA size is greater than 128 MB, what is the size of Granules?

  1. 2
  2. 4
  3. 16
  4. 64
Question 20 Multiple Choice (Single Answer)

What is the correct use of the Trunc command on a date?

  1. TRUNC=To_Date('09-Jan-02,DD-MON-YY,'YEAR',"Date" from Dual;
  2. Select TRUNC(To_Date('09-Jan-02,DD-MON-YY,YEAR')) "DATE" from Dual;
  3. Date =TRUNC(To_DATE('09-Jan-02','DD-MON-YY'),'YEAR'),'YEAR)"DATE: from DUAL;
  4. SELECT TRUNC(TO_DATE('12-Feb-99','DD-MON-YY'), 'YEAR') "Date " FROM DUAL;
Question 21 Multiple Choice (Single Answer)

Which command will delete all data from a table and will not write to the rollback segment?

  1. DROP
  2. DELETE
  3. CASCADE
  4. TRUNCATE
Question 22 Multiple Choice (Single Answer)

User Smith created indexes on some tables owned by user John. The following needs to be displayed:

index names
index types

Which data dictionary view(s) should be queried?

  1. DBA_INDEXES only
  2. DBA_IND_COLUMNS only
  3. DBA_INDEXES and DBA_USERS
  4. DBA_IND COLUMNS and DBA_USERS