Oracle Database Administration and Development - Practice Test 8
Covers Oracle database administration topics including recovery, RMAN, tablespaces, archiving, and SQL operations, plus Oracle Forms development concepts.
Questions
Which initialization parameter affects the roll forward phase of recovery by manipulating the frequency at which checkpoints are written?
- FAST_START_IO_TARGET
- FAST_START_MTTR_TARGET
- LOG_CHECKPOINT_TIMEOUT
- LOG_CHECKPOINT_INTERVAL
The primary key on table EMP is the EMPNO column. Which of the following statements will not use the associated index on EMPNO?
- select * from EMP where nvl(EMPNO, '00000') = '59384';
- select * from EMP where EMPNO = '59384';
- select EMPNO, LASTNAME from EMP where EMPNO = '59384';
- select 1 from EMP where EMPNO = '59834';
What does the TRUNCATE statement do?
- Removes the table
- Removes all rows from a table
- Shortens the tale to 10 rows
- Removes all columns from a table
MILLER is an administrator who has FULL DBA privileges. When he attempts to drop the DEFAULT profile as shown, he receives the error message shown. Which of the following options best explains this error?
SQL> drop profile SYS.DEFAULT;
drop profile SYS.DEFAULT
*
ERROR at line 1:
ORA-00950: invalid DROP option
- The DEFAULT profile cannot be dropped.
- MILLER requires the DROP PROFILE privilege.
- Profiles created by SYS cannot be dropped.
- The CASCADE option was not used in the DROP PROFILE command.
An RMAN recover catalog is to be created which stores information about the STUD database. The database should be named RCSTUD for the storage of the recovery catalog. The steps that should be followed to create a recover catalog are not displayed in the correct order. What is the correct order?
- Grant the appropriate privileges (CONNECT and RESOURCE) and roles (RECOVERY CATALOG OWNER) to the user responsible for performing backup and recover operations.
2. Register the target database in the catalog.
3. Create the catalog using the RMAN command line interpreter.
4. Create a user and schema which will own the recovery catalog.
5. Create tablespace to hold the catalog in the database that has been dedicated for the RMAN recovery catalog.
6. Connect to the target database using SYSDBA privileges.
- 5, 4, 1, 3, 6, 2
- 4, 1, 5, 6, 3, 2
- 4, 3, 1, 5, 6, 2
- 4, 5, 1, 3, 2, 6
- 5, 4, 1, 3, 2, 6
The following command was executed in MOUNT mode:
ALTER DATABASE ARCHIVELOG;
Where is the information that the database is now in ARCHIVELOG mode stored?
- SPFILE
- Archive Log
- Control File
- System Tablespace
Which type of index does the given syntax create?
CREATE INDEX emp_last_name_idx ON emp(last_name) PCTFREE 30
STORAGE(INITIAL 200K NEXT 200K
PCTINCREASE 0 MAXEXTENTS 50) TABLESPACE indx;
- Bitmap
- B-Tree
- Partitioned
- Reverse key
To avoid a large number of extents for big file tablespaces in very large databases, what does Oracle recommend?
- Use the AUTOALLOCATE clause for allocating new extents and set a very high extent size.
- Use the UNIFORM clause and simply let Oracle take care of the extent sizing.
- Use the UNIFORM clause for allocating new extents and set a very high extent size.
- Use the AUTOALLOCATE clause and simply let Oracle take care of the extent sizing.
In this SQL statement, which of the following lines will produce an error?
- CREATE OR REPLACE TRIGGER check_age
- BEFORE INSERT OR UPDATE ON employee FOR EACH ROW
- IS
- years_old NUMBER;
- BEGIN
Evaluate the following DELETE statement:
DELETE employee_id, salary, job_id FROM employees
WHERE dept_id = 40;
Why does the DELETE statement fail when executed?
- There is no row with dept_id 90 in the EMPLOYEES table.
- The JOB_ID column cannot be deleted because it is a NOT NULL column.
- Column names were not specified in the DELETE clause of the DELETE statement.
- The EMPLOYEE_ID column cannot be deleted because it is the primary key of the table.
When a replication site contains subsets of another site's data, what type of replication is used?
- Master site
- Snapshot site
- Either a snapshot or master site
Which of the following statements is correct with regard to Data properties of a text item?
- If the Maximum Length of an item is set to a value that is greater than the value for Width, the item will not be displayed at run time.
- The Initial Value for an item can be set outside the range of values specified by the Lowest Allowed Value and the Highest Allowed Value properties because Initial Value defines an exception to that range.
- If the Required property is set to Yes for an item whose corresponding database column does not have a NOT NULL constraint, an error will occur at run time.
- If Data Length Semantics property is set to BYTE, the Maximum Length property may have to be manually adjusted depending on the character set that is being used.
There is a requirement to invoke the Orders form from the Customers form. Which of the following suggestions names a built-in that will meet the requirements and also offers a correct reason?
- CALL_FORM because NEW_FORM is no longer valid for Web-deployed forms due to the extra network traffic that is caused.
- CALL_FORM because it can be issued in Enter-Query mode and can be constrained to be Query only.
- CALL_FORM because the second form is invoked in a modeless state and it saves on memory resources.
- NEW_FORM because the second form is invoked in a modeless state and the user can navigate freely between the two running forms.
Which of the following statements concerning the Export/Import Utilities is true?
- The direct-path feature allows a user to extract database objects faster than the conventional-path.
- The Export Utility can be used to make a logical backup of a table, a tablespace, or a table's associated data files.
- The FULL database export mode exports all database objects regardless of the schema.
- Performing an export/import of a tablespace is quicker than using the transportable tablespace method to transfer a table and its data.
SMITH was running a form in the debug mode and begins to step through the code of a lengthy subprogram. After stepping through a few lines of its code, he realized that the error came not from the code in that particular subprogram but from code that is executed after it. At this point, how can he jump to the next line of code after the call to the subprogram?
- Clicking Step Over to step over the execution of the subprogram
- Opening the Stack panel, selecting the previous stack frame, and clicking Go
- Clicking Step Out to resume stepping through code after the subprogram is called
- Clicking Stop, setting a breakpoint immediately after the subprogram code is called, and running the form in debug mode again
Top N analysis requires ____________ and ____________.
- the use of rowed, only an inline view
- a GROUP BY clause, only an inline view
- an ORDER BY clause, an inline view and an outer query
- None of the above
Which of the following instance startup stages to a usable state where normal users might access them?
- STARTUP NOMOUNT, STARTUP MOUNT, STARTUP OPEN, STARTUP CLOSE
- STARTUP OPEN, STARTUP CLOSE, START MOUNTALL
- STARTUP EXIT, STARTUP START, STARTUP OPEN, STARTUP CLOSE
- STARTUP MOUNT, STARTUP NOMOUNT, STARTUP OPEN
The following INSERT statement was issued:
INSERT /* +APPEND */ INTO arch.curr_order_hist
SELECT * FROM ord.curr_order;
Which of the following types of INSERT is performed?
- Conventional
- Direct-Load
- Parallel Direct-Load
- Serial-Conventional
Which of the following statements about using PCTFREE and PCTUSED is true?
- Block space utilization can be specified only at the segment level.
- Block space utilization can be specified only in the data dictionary.
- Block space utilization parameters can only be specified at the tablespace.
- Block space utilization can be specified both at the tablespace level and segment level.
MARY used an ALTER DATABASE statement on her database to perform an online control file backup. In which mode is her database operating?
- FAILOVER
- FASTBACK
- ARCHIVELOG
- NOARCHIVELOG