Oracle Practice Test - 7

Oracle Practice Test - 7

25 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

What is the use of Translate Function in Oracle?

  1. It performs a word wise replacement of a string of numbers.
  2. It performs a character wise replacement of a number.
  3. It performs a word wise replacement of a string.
  4. It performs a character wise replacement of a string.
Question 2 Multiple Choice (Single Answer)

Dynamic data replication is the way in which updating or inserting records in remote database through _________.

  1. stored procedures
  2. cursors
  3. database procedures
  4. database triggers
Question 3 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 4 Multiple Choice (Single Answer)

How is the HR_PAY role enabled?

  1. SET ROLE hr_pay;
  2. CREATE ROLE hr_pay;
  3. ENABLE ROLE hr_pay;
  4. SET ENABLE ROLE hr_pay;
Question 5 Multiple Choice (Single Answer)

Which of the following operators is used in a correlated subquery?

  1. IN
  2. EXISTS
  3. UNION
  4. INTERSECT
Question 6 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 7 Multiple Choice (Single Answer)

The database is set up to run Multithreaded Server. Which view would show contention for server processes?

  1. V$CIRCUIT
  2. V$SESSION
  3. DBA_USERS
  4. V$QUEUE
Question 8 Multiple Choice (Single Answer)

Which memory structure contains the information used by the server process to validate the user privileges?

  1. Buffer cache
  2. Library cache
  3. Data dictionary cache
  4. Redo log buffer cache
Question 9 Multiple Choice (Single Answer)

The LOG_ARCHIVE_START initialization parameter for NOARCHIVELOG mode database is set to 'TRUE'. The ARCn processes are not automatically copying the online redo log files. While troubleshooting, it was verified that valid archived redo log file destinations are provided using the LOG_ARCHIVE_DEST_n initialization parameters, yet no files are written to these destinations. What should be done next?

  1. Refresh the current online redo log files.
  2. Switch the database from NOARCHIVELOG to ARCHIVELOG mode.
  3. Issue the 'ALTER SYSTEM ARCHIVE LOG START' statement to activate the ARCn processes.
  4. Shut down and restart the database to activate the ARCn processes.
Question 10 Multiple Choice (Single Answer)

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

  1. UPDATE TABLE [TableName]
  2. MODIFY TABLE [TableName]
  3. ALTER TABLE [TableName]
  4. CHANGE TABLE [TableName]
Question 11 Multiple Choice (Single Answer)

Which data dictionary view should be used to get a list of object privileges for all database users?

  1. DBA_TAB_PRIVS
  2. ALL_TAB_PRIVS
  3. USER_TAB_PRIVS
  4. ALL_TAB_PRIVS_MADE
Question 12 Multiple Choice (Single Answer)

A media failure occurred causing NOARCHIVELOG mode database to crash. It was discovered that two of the data files are corrupt. The last whole closed database backup was taken one week ago with a online redo log sequence number of 83. At the time the data files were corrupted, the online redo log sequence number was 85. Although there were few committed transactions after the last backup, as much data as possible has to be recovered. Which recovery process should be used?

  1. Shut down the instance, restore all of the Oracle files from the most recent backup, and restart the instance.
  2. Manually restore and recover the two corrupt data files from the most recent backup.
  3. Shut down the instance, restore the two corrupt data files from the most recent backup, and restart the instance.
  4. Shut down the instance, restore all of the Oracle files from the most recent backup, restart the instance, and open the database using the 'ALTER DATABASE OPEN RESETLOGS' statement.
Question 13 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 14 Multiple Choice (Single Answer)

JOE was allocated 10 MB of quota in the USERS tablespace. He created database objects in the USERS tablespace. The total space allocated for the objects owned by JOE is 5 MB.
In order to revoke JOE's quota from the USERS tablespace, the following command was issued.
ALTER USER JOE QUOTA 0 ON users;
What will be the result?

  1. The statement raises the error: ORA-00940: invalid ALTER command.
  2. The statement raises the error: ORA-00922: missing or invalid option.
  3. The objects owned by JOE are automatically deleted from the revoked USERS tablespace.
  4. The objects owned by JOE remain in the revoked tablespace, but these objects cannot be allocated any new space from the USERS tablespace.
Question 15 Multiple Choice (Single Answer)

Which of the following SQL statements defines a FOREIGN KEY constraint on the DEPT NO column of the EMP table?

  1. CREATE TABLE EMP (empno NUMBER(4), ename VARCHAR2(35), deptno NUMBER(7,2) NOT NULL, CONSTRAINT emp_deptno_fk FOREIGN KEY deptno REFERENCES dept deptno);
  2. CREATE TABLE EMP (empno NUMBER(4), ename VARCHAR2(35), deptno NUMBER(7,2) CONSTRAINT emp_deptno_fk REFERENCES dept (deptno));
  3. CRETE TABLE EM (empno NUMBER(4), ename VARCHAR2(35) deptno NUMBER (7,2) NOT NULL, CONSTRAINT em_deptno_fk REFERENCES dept (deptno) FOREIGN KEY (deptno));
  4. CREATE TABLE EMP (empno NUMBER (4), ename VARCHAR2(35), deptno NUMBER(7,2) FOREIGN KEY CONSTRAINT emp deptno fk REFERENCES dept (deptno));
Question 16 Multiple Choice (Single Answer)

The DBA issues the following command:

SQL< alter table ORDER SHRINK SPACE

What be the result of this statement?

  1. There would be only a compacting of the data, not a release of data.
  2. There would be no impact on DML operations in the database.
  3. There would be immediate release of the free space.
  4. There would be an impact on the DML operations in the database.
Question 17 Multiple Choice (Single Answer)

What type of message indicates a Forms message that cannot be suppressed?

  1. A Busy message
  2. A level 0 message
  3. A Working message
  4. A level 25 message
  5. A message with a level greater than 25
Question 18 Multiple Choice (Single Answer)

Consider the following RMAN script:

RUN{

SET NEWNAME FOR DATAFILE '/disk1/database/db1.dbf' TO '/disk2/database/db1.dbf';

SWITCH DATAFILE ALL;

RESTORE DATABASE;

RECOVER DATABASE;

ALTER DATABASE OPEN;

}

When executed, what result will occur?

  1. RMAN will restore the data file to disk1.
  2. The control file will be updated with the data file's new location, and the recovery will be successful.
  3. All database data files will be moved to the new location and recovered.
  4. The control file will not be updated with the data file's new location because the RENAME DATAFILE command is missing.
Question 19 Multiple Choice (Single Answer)

Five data files, that are spread across multiple disks have to be recovered. Which initialization parameter should be set to speed up redo application?

  1. RECOVERY_PARALLELISM
  2. FAST_START_MTTR_TARGET
  3. LOG_CHECKPOINT_INTERVAL
  4. FAST_START_PARALLEL_ROLLBACK
Question 20 Multiple Choice (Single Answer)

Which of the following is the root directory for oracle?

  1. ORACLE_HOME
  2. ORACLE_ROOT
  3. ORACLE_BASE
  4. ORACLE_SERVER
Question 21 Multiple Choice (Single Answer)

What steps should be taken to gather information about checkpoints?

  1. Set the LOG_CHECKPOINTS_TO_ALERT initialization parameter to TRUE.
    Monitor the alert log file.
  2. Set the LOG_CHECKPOINT_TIMEOUT parameter.
    Force a checkpoint by using the FAST_START_MTTR_TARGET parameter.
    Monitor the alert log file.
  3. Set the LOG_CHECKPOINT_TIMEOUT parameter.
    Force a log switch by using the command ALTER SYSTEM FORCE LOGSWITCH.
    Force a checkpoint by using the command ALTER SYSTEM FORCE CHECKPOINT.
    Monitor the alert log file.
  4. Set the FAST_START_MTTR_TARGET parameter to TRUE.
    Force a checkpoint by using the command ALTER SYSTEM FORCE CHECKPOINT.
    Monitor the alert log file.
Question 22 Multiple Choice (Single Answer)

While attempting to connect to a remote server, the following error appeared:

ORA-12533: TNS:illegal ADDRESS parameters

To attempt to resolve the error, the tnsnames.ora file was examined. What should be verified in this file?

  1. That the correct service name exists in the tnsnames.ora file.
  2. That the service name of the database was entered correctly in the connect string.
  3. That the connect descriptor's' protocol-specific parameters located in the ADDRESS section are correct.
  4. That the service name of the database was entered correctly in the connect string.
Question 23 Multiple Choice (Single Answer)

What is the difference between CYCLE/NO CYCLE in a oracle Sequence?

  1. For a cycle values for the column are regenerated MAXVALUE is reached.
  2. For a cycle values for the column are regenerated from MINVALUE once MAXVALUE is reached.
  3. For a no cycle values for the column are regenerated MAXVALUE is reached.
  4. For a no cycle values for the column are regenerated from MINVALUE once MAXVALUE is reached.
Question 24 Multiple Choice (Single Answer)

The following INSERT statement was issued:

INSERT /* +APPEND */ INTO arch.curr_order_hist

SELECT * FROM ord.curr_order;

Which type of INSERT is performed?

  1. Conventional
  2. Direct-Load
  3. Parallel Direct-Load
  4. Serial-Conventional