Oracle Database and Forms Administration
Practice test covering Oracle database administration topics including PL/SQL, SQL*Plus, storage management, archiving, security, privileges, and Oracle Forms development.
Questions
What command is used to encrypt a PL/SQL application?
- DB_ENCRYPT
- DBMS_ENCRYPT
- DBMS_WRAP
- WRAP
When could an index decrease the speed of a query?
- The column is used in a WHERE clause.
- The column contains a wide range of values.
- The table is small.
- The column contains a large number of null values.
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?
- Refresh the current online redo log files.
- Switch the database from NOARCHIVELOG to ARCHIVELOG mode.
- Issue the 'ALTER SYSTEM ARCHIVE LOG START' statement to activate the ARCn processes.
- Shut down and restart the database to activate the ARCn processes.
Which of the following statements is true when connecting to the Oracle instance using the multithreaded server configuration?
- The User Global Area (UGA) may only contain sort areas
- The UGA may be accessible to dedicated servers.
- The UGA components may reside in the large pool.
- The UGA components may reside in the buffer cache.
What are the two types of tables involved in producing a star schema?
- Fact tables and user tables
- Dimension tables and error tables
- Fact tables and dimension tables
- User tables and error tables
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
Which parameters should be set, to limit the number of transactions that can simultaneously make changes to data in a block, and increase the frequency with which Oracle returns a block back on the free list?
- INITRANS and PCTUSED
- MAXTRANS and PCTFREE
- INITRANS and PCTFREE
- MAXTRANS and PCTUSED
When using SQL*Plus, Oracle commands, column names, table names and all other database elements ____.
- are case insensitive
- are case sensitive
- must always be in lower case
- must always be in upper case
A database has several simultaneous long-running insert transactions. The following statement was issued to ensure that multiple server processes are used to roll back uncommitted transactions:
ALTER SYSTEM SET FAST_START_PARALLEL_ROLLBACK = 5;
What is the result?
- Upto five rollback processes may be activated simultaneously.
- The parameter will be ignored because the maximum number of rollback processes is four.
- The parameter will be ignored because it is set to an invalid value.
- This parameter will be ignored unless the RECOVERY_PARALLELISM parameter is used.
A table is being imported and it must be ensured that the table is put into a single contiguous area. There is not a single contiguous area large enough for the entire space allocated to the table. What should be done to achieve this?
- Use the cascade option.
- Use the constraint option.
- Use the primary key option.
- Coalesce the tablespace the table is using.
Which of the following privileges is an object privilege?
- INDEX
- CREATE SESSION
- DROP USER
- BACKUP ANY TABLE
Examine the syntax for creating a DEPARTMENT table:
CREATE TABLE department(
Deptno NUMBER(4),
Dname VARCNAR2(30),
mgr NUMBER(6),
Loc NUMBER(4))
STORAGE(INITIAL 200K NEXT 200K
PCTINCREASE 50 MINEXTENTS 1 MAXEXTENTS 5)
TABLESPACE userdata;
What is the size defined for the fifth extent?
- 200 K
- 300 K
- 450 K
- 675 K
Which ALTER TABLE statement should be used to add a PRIMARY KEY constraint on the MANUFACTURER_ID column of the PRODUCT table?
- ALTER TABLE product
ADD PRIMARY KEY (manufacturer_id); - ALTER TABLE product
MODIFY CONSTRAINT PRIMARY KEY manufacturer_id; - ALTER TABLE product
MODIFY manufacturer_id CONSTRAINT PRIMARY KEY; - ALTER TABLE product
ADD CONSTRAINT manufacturer_id PRIMARY KEY;
How many database resource plans can be active at the same time at the database instance level?
- One
- All
- None
- Up to 2
- Up to 4
Five roles were created using the statements shown:
CREATE ROLE payMANAGER;
CREATE ROLE oeclerk IDENTIFIED BY salary;
CREATE ROLE hr_manager IDENTIFIED EXTERNALLY;
CREATE ROLE genuser IDENTIFIED GLOBALLY;
CREATE ROLE dev IDENTIFIED USING dev_test;
Whichof the following statements indicates that a user must be authorized to use the role by the enterprise directory service before the role is enabled?
- CREATE ROLE payclerk;
- CREATE ROLE genuser IDENTIFIED GLOBALLY;
- CREATE ROLE oeclerk IDENTIFIED BY salary;
- CREATE ROLE dev IDENTIFIED USING dev_test;
- CREATE ROLE hr_manager IDENTIFIED EXTERNALLY;
Which file is part of the Oracle database?
- Control file
- Password file
- Parameter file
- Archived log file
An Application was created based on the Employees Personal Information and the Department in which they work. It consists of two blocks. The first one is the Database Data block based on the Employees Personal Information like Name and Address and the other is non database data block based on the Employees Department Information. At runtime, the cursor is initially in the non database data block, the user clicks the Enter Query toolbar button and tries to search the Personal Information record of Employee whose Name is TOM. What would be the result?
- Query would execute and the Record providing the Department Information of the Employee matching the criteria would be displayed.
- Query would execute and the Record providing the Personal Information of the Employee matching the criteria would be displayed.
- Query would not execute as in the Enter query mode user is not allowed to navigate to other block so user can't even provide the search criteria of Employee Name in the Database data block.
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
JOHN is running a multiple-form application. The Customers Form invoked the Orders Form. When the Orders Form launches, it displays orders for only the active customer from the Customers form. Forms exchange data with the GLOBAL.CUSTOMER_ID variable. The Orders Form should be restricted to the orders for the current customer only when the query is issued for the first time after invoking the Orders form. Which built-in helps him do this by setting the ONETIME_WHERE property to refer dynamically to the GLOBAL.CUSTOMER_ID?
- SET_APPLICATION_PROPERTY
- SET_FORM_PROPERTY
- SET_BLOCK_PROPERTY
- SET_RECORD_PROPERTY
All the buttons in a form should have the same values for several properties as the Exit button has. How can a property class be created and used to implement this?
- Click Create with the Property Classes node selected in the Object Navigator
Open the Property Palette for the new property class
Click Add Property
Control-click the Exit button and in the Property Palette selected the properties to add
Multiselect all the other buttons in the Object Navigator and open their Property Palette
Click Property Class - Open the Property Palette for the Exit button and multiselect the desired properties
Click Property Class
Multiselect all the other buttons in the Object Navigator and open their Property Palette
Set the Subclass Information property to the name of the new property class - Open the Property Palette for the Exit button and multiselect the desired properties
Click Property Class
Multiselect all other buttons in the Object Navigator and open their Property Palette
Click Inherit - Open the Property Palette for the Exit button and multiselect the desired properties
Click Copy Properties
Select the Property Class node in the Object Navigator and click Create
Open the Property Palette for the new Property Class
Click Paste Properties
Multiselect all the other buttons in the Object Navigator and open their Property Palette
Set the Subclass Information property to the name of the new property class