Questions
Under the Oracle Shared Server architecture, client-user processes ultimately connect to a __________.
- service
- listener
- dispatcher
- shared server process
Which of the following is not a responsibility of DBWR process?
- Defers writes for I/O optimization
- Uses a LRU algorithm to keep most recently used blocks in memory
- Writes to database redo log files as people COMMIT data
- Writes all changed (i.e. dirty) buffers to datafiles
Evaluate the following SQL script:
CREATE USER hr IDENTIFIED BY hr01;
CREATE ROLE manager;
CREATE ROLE clerk;
GRANT clerk TO manager;
CREATE ROLE director;
GRANT manager TO director;
GRANT director TO hr
/
How many roles will the HR users have access to?
- 0
- 1
- 2
- 3
The DBA is creating a new user. Which of the following is not defined at user creation?
- default tablespace
- profile
- idle_time
- default role
___________ are padded with space characters to match the specified length.
- VARCHAR
- VARCHAR2
- CHAR
- CHAR2
The ____________ are the views that get continuously updated even while the database is open or in use.
- materialized views
- dynamic performance views
- oracle view
- Both (1) and (2)
A loss of data files was experienced in a database. The control files however, were not lost. RMAN was being used to restore and recover the database. Currently, the instance is shut down. Which sequence of commands is correct to restore and recover the database?
- RMAN> STARTUP NOMOUNT;
RMAN> RESTORE DATABASE;
RMAN> RECOVER DATABASE;
RMAN> ALTER DATABASE OPEN; - RMAN> STARTUP MOUNT;
RMAN> RESTORE DATABASE;
RMAN> RECOVER DATABASE;
RMAN> ALTER DATABASE OPEN - RMAN> STARTUP NOMOUNT;
RMAN> RESTORE DATABASE;
RMAN> RECOVER DATABASE;
RMAN> ALTER DATABASE OPEN RESETLOGS; - RMAN> STARTUP MOUNT;
RMAN> RESTORE DATABASE;
RMAN> RECOVER DATABASE;
RMAN> ALTER DATABASE OPEN RESETLOGS;
An application uses a menu that contains a Check type Menu Item. Which built-in should be used to programmatically toggle the checked/unchecked state of the Check item?
- FIND_MENU_ITEM
- GET_ITEM_PROPERTY
- SET_ITEM_PROPERTY
- SET_MENU_ITEM_PROPERTY
- GET_MENU_ITEM_PROPERTY
In a DSS application, the sales summary report queries data from seven different tables and groups the data by region and period. Which one of the following storage structures is a good design choice to improve query performance?
- IOT
- Cluster
- Materialized View
- Partion Table
Which of the following statements is correct with regard to Query Record Group?
- The Record Group is associated with a query.
- The Record Group can be created only at run time.
- The Record Group can be created and modified only at design time.
- The Record Group can be created and modified at design time or at run time.
- The query associated with this Record Group can be defined only at design time.
Which of the following SELECT statements will get the result 'elloworld' from the string 'HelloWorld'?
- SELECT SUBSTR('HelloWorld',1) FROM dual;
- SELECT INITCAP(TRIM('HelloWorld', 1,1) FROM dual;
- SELECT LOWER(SUBSTR ('HelloWorld', 2,1) FROM dual;
- SELECT LOWER(SUBSTR('HelloWorld', 2,1) FROM dual;
- SELECT LOWER(TRIM ('H' FROM 'Hello World')) FROM dual;
When attempting to connect to an instance that is down, which Oracle Net feature or component facilitates automatic connect-time fail-over to another instance for the user?
- Oracle Names Server
- Heterogeneous Services
- Oracle Connection Manager
- Dynamic Service Registration
How does Oracle decide how to retrieve the necessary data whenever a valid SQL statement is processed?
- Using Rule Based Optimizer
- Using Cost Based Optimizer
- Both (1) and (2)
- SQL-level tuning
The EMP table contains the following columns:
EMPNO NUMBER(6)
HIREDATE DATE
Review the following SELECT statement:
SELECT empno, TO_DATE('31-DEC-05') - hiredate
FROM emp
WHERE hiredate BETWEEN '31-DEC-04' AND '31-DEC-05';
What are the results of this statement?
- Only numeric values are returned.
- The employee numbers of any employees hired on January 1, 2004 are displayed.
- Date and numeric values are returned.
- The employee numbers of all employees hired before the year 2000 are displayed.
- Only the employee numbers of all employees are displayed because the BETWEEN operator used in the WHERE clause condition is a number function.
An Application needs a Department Module to be created. A Developer creates a Database data block using the Data Block Wizard, after creating the block based on the Departments table, while creating the Layout wizard, various items were placed on the canvas. The user wants to change the Employee_id Text Item to Display Item. How would it be possible?
- It is not possible to change the item type once its been created.
- The item type can be changed while placing the item on the canvas using layout wizard.
- Create a new Display Item and name it as Employee_id.
- None of the above
Intermittent hardware problems are being experienced with the disk drive on which the control file is located. It is decided to multiplex the control file.
While the database is open, the following steps were performed:
- A copy of the control file was made using an operating system command.
- A new file name was added to the list of files for the CONTROL FILES parameter in the text initialization parameter file, using an editor.
- The instance was shut down.
- The STARTUP command was issued to restart the instance, mount, and open the database.
The instance starts, but the database mount fails. Why?
- The control file was copied before shutting down the instance.
- An operating system command was used to copy the control file.
- The Oracle server does not know the name of the new control file.
- A new control file name was added to the CONTROL_FILES parameter before shutting down the instance.
The Child_Birth .fmb module has one content canvas, which displays information about the Number of Births Taken place during the year 2004-2005. TOM wants to increase the canvas display area by creating an overlay canvas to enable images of selected the child to be displayed on request. How can he size the display area of the overlay canvas?
- Define the display area for a stacked canvas by using the built-in procedure Set_Canvas_Property.
- Define the display area for a stacked canvas by using the built-in procedure Set_Window_Property
- Define the display area for a content canvas by using the built-in procedure Set_Canvas_Property.
- Define the display area for a content canvas by using the built-in procedure Set_View_Property.
- Define the display area for a stacked canvas by using the built-in procedure Set_View_Property.
A database was started with the command STARTUP PFILE=initEMPLOYEE.ora.
A value in the initEMPLOYEE.ora parameter file is LOG_ARCHIVE_START=false.
While the database is open, ALTER SYSTEM ARCHIVE LOG START; command was issued to start the Archiver process.
The database was shut down to take a backup and restart it using the initEMPLOYEE.ora parameter file again. When the status of the Archiver was checked, it was disabled. Why?
- When a backup is taken, the Archiver process is disabled.
- The Archiver can only be started by issuing the ALTER DATABASE ARCHIVELOG command.
- LOG_ARCHIVE_START is still set to FALSE because the PFILE is not updated when you issue the ALTER SYSTEM command.
- The Archiver can only be started by issuing the ALTER SYSTEM ARCHIVE LOG START command each time the database is opened.
JOHN is developing a form for customers to order tickets to events. There is a Date item in the Tickets block of the form that has a LOV whose record group uses the following query:
SELECT event_name, event_date
FROM events
ORDER BY event_date;
In the Choose_Event block of the form, he wants users to be able to select an event name into an Event_Name item.The event name will be selected from a LOV that is sorted by the name of the event.
He does not want to modify either LOV or record group at run time. Which of the following statements is correct with regard to LOV and record group as specified at design time?
- He must define a new LOV for the Choose_Event.Event_Name item that uses a different record group.
- He must define a new LOV for the Choose_Event.Event_Name item, but he can base it on the same record group.
- He can use the same LOV and record group for the Choose_Event.Event_Name item that he used for the Tickets.Date item.
- He can use the same LOV for both items, but he should specify that each item must use a different record group for the LOV.
Where can you find the non default parameters when the instance is started?
- Alert log
- Online redo log
- Archiver redo log
- System user's trace file
Which of the following statements is true with regard to the shared pool?
- The shared pool cannot be dynamically resized.
- The shared pool contains only fixed structures.
- The shared pool consists of the library cache and buffer cache.
- The shared pool stores the most recently executed SQL statements and the most recently accessed data definitions.