Questions
___________ is an area on disk which comprises of one or more disk files.
- A package
- A table space
- A partition
- Heap
JOHN is writing a Forms application, and he plans to include several JavaBeans. What should he do to facilitate the communication between Forms and the JavaBeans?
- Write Java wrapper classes to integrate the JavaBean into Forms.
- Use the FBEAN PL/SQL Package and its built-ins to register and invoke the JavaBeans.
- Add a special layer of Java code to register the properties and methods of the JavaBeans.
- He does not need to use any built-in package or write any code to integrate JavaBeans into forms.
Which of the following privileges can only be granted to a user and NOT to a role?
- DELETE
- ALTER
- INSERT
- REFERENCES
For which constraints are indexes created when the constraint is added?
- Check
- Unique
- Not null
- Primary key
- Foreign key
Examine the following statement:
ALTER DATABASE BACKUP CONTROL FILE TO 'control01.bkp';
What does the statement generate?
- A file containing a SQL statement which will re-create the database.
- A text copy to the control file.
- A binary copy of the control file.
- A file containing a SQL statement which will re-create the control file.
What type of message indicates a Forms message that cannot be suppressed?
- A Busy message
- A level 0 message
- A message with a level greater than 25
- A level 25 message
Which of the following packages should be used to grant resource groups to users?
- DBMS_REPCAT_AUTH
- DBMS_REPCAT_ADMIN
- DBMS_RESOURCE_MANAGER
- DBMS_RESOURCE_MANAGER_PRIVS
____________ involves putting different rows into different tables.
- Horizontal partitioning`
- Vertical partitioning
- Range partitioning
- Hash partitioning
Which of the following SQL statements accepts user input for the columns to be displayed, table name, and the WHERE condition?
- SELECT &1, &2FROM &3 WHERE last_name = '&4';
- SELECT &1, '&2' FROM &3 WHERE '&last_name = '&4'';
- SELECT &1, &2 FROM &3 WHERE last_name = '&4';
- SELECT &1, '&2' FROM EMP WHERE last_name = '&4';
Which of the following data dictionary views should be used to get a list of object privileges for all database users?
- DBA_TAB_PRIVS
- ALL_TAB_PRIVS
- USER_TAB_PRIVS
- ALL_TAB_PRIVS_MADE
Tom is developing a Human Resources form for HR clerks to insert, update, and delete records from the EMPLOYEES table. When the user commit records, Forms displays the default informative message 'FRM-40400: Transaction complete: records applied and saved.' He wants to replace that with the message 'Records inserted:', 'Records updated:', 'Records deleted:', Which of the following triggers must be created to modify or to accomplish this?
- On-Message only
- Post-Commit and On-Message
- Post-Database-Commit and On-Message
- Post-Insert, Post-Update, Post-Delete, and On-Message
How do you connect to RMAN without a recovery catalog?
- rman target system/manager nocatalog
- rman system/manager catalog=no
- rman system/manager without catalog
- rman target system/manager rcvcat no
A Profile is assigned to _____.
- a database
- tables
- views
- both (2) and (3)
A database is running on a server that has 3 CPUs, and has these settings for initialization parameters:
db_cache_size= 4M
shared_pool_size= 52428800
db_block_size= 2048
large_pool_size= 614400
java_pool_size = 20971520
db_file_multiblock_read_count= 8
parallel_max_servers= 4
What is a valid statement about the above scenario?
- Tune the number of latches by setting it to db_cache_size(50*db_block_size)
- Tune the number of latches by setting to large_pool_size/1000
- Tune the number of latches by setting it to Number of CPUs *1 *2
- Oracle9i would automatically calculate the number of latches required, based on the environment defined by the initialization parameters for the database and the operating system level parameters
How to force a log switch?
- By using ALTER SYSTEM LOG
- By using ALTER SYSTEM SWITCH LOGFILE
- By using ALTER SYSTEM SWITCH LOGS
- By using ALTER SYS LOGFILES
What represents the value of the ORACLE_HOME environment variable in Oracle 9i?
- @
- !
- #
- &
The ARCn processers are writing online redo log files to one local mandatory destination, one local optional destination, and one remote mandatory destination. The LOG_ARCHIVE_MIN_SUCCEED_DEST parameter is set to 2.
What effect does this parameter have on the automatic archival process?
- After the archival of online redo log files to the two mandatory destinations occurs, the online redo logs may be overwritten.
- After the archival of online redo log files to the two local destinations occurs, the online redo logs may be overwritten.
- No effect because the LOG_ARCHIVE_MIN_SUCCEED_DEST parameter value is NOT equal to the number of local mandatory archive destinations.
- After the archival of online redo log files to the one local mandatory destination occurs, the online redo logs may be overwritten.
_____________ has fixed upper-bound size that has to be specified while it is declared.
- Arrays
- Varrays
- Indexes
- Synonyms
If a database is queried with the following command:
SELECT object_name
FROM all_objects
WHERE object_type = 'TABLE';
Which of the following values are displayed?
- Only the names of all the tables that can be accessed.
- Only the names of all the objects that can be accessed.
- Only the names of the objects that are owned.
- Only the names of the tables that are owned.
An index needs to be created on the EMP_ID column of the EMPLOYEE table which satisfies the following conditions:
- The index will be called EMP_PK.
- The index should be sorted in ascending order.
- The index should be created in the INDEX01 tablespace, which is a dictionary managed tablespace.
- All extents of the index should be 1 MB in size.
- The index should be unique.
- No redo information should be generated when the index is created.
- 20% of each data block should be left free for future index entries.
Which of the following commands create the index and meets all the requirements?
- CREATE UNIQUE INDEX emp_pk ON Employee(Emp_id)
TABLESPACE index0l
PCTFREE 20
STORAGE (INITIAL lm NEXT lm PCTINCREASE 0); - CREATE UNIQUE INDEX emp_pk ON employee(emp_id)
TABLESPACE index0l
PCTFREE 20
STORAGE (INITIAL 1m NEXT 1m PCTINCREASE 0)
NOLOGGING; - CREATE UNIQUE INDEX emp_pk ON Employee(emp_id)
TABLESPACE index0l
PCTUSED 80
STORAGE (INITIAL lm NEXT lm PCTINCREASE 0)
NOLOGGING; - CREATE UNIQUE INDEX emp_pk ON employee(emp_id)
TABLESPACE index0l
PCTUSED 80
STORAGE (INITIAL lm NEXT lm PCTINCREASE 0);
Which of the following options helps in programmatically determining the button a user pressed to respond to an alert?
- Use the GET_ALERT_PROPERTY function
- Use the GET_ALERT_BUTTON_PROPERTY function
- Check the value returned by the SHOW_ALERT function to see if it is 1, 2, or 3
- Check the value returned by the SHOW_ALERT function to see if it is ALERT_BUTTON1, ALERT_BUTTON2, or ALERT_BUTTON3
A SQL SELECT statement containing the ROWNUM pseudocolumn, an ORDER BY clause, and a subquery was created. What construct was created?
- A Complex View
- A Top-n Query
- A Materialized View
- A Hierarchical Report
The DBA added a STATE column defined as VARCHAR2(2) to the State table. This column will contain two-letter state abbreviations because the State table is quite large, storing complete state names would waste space in the database. The DBA asks JOHN to add a corresponding State item to the State block of the Geographical Management form.
JOHN opened the Layout Editor of the Geographical Management form and created a list item on the canvas in the State block. In the Property Palette for the list item, he changed the Name property to State and the Database Item property to Yes. He then open the Elements in List property and add some state abbreviations and names to the list, as shown in the exhibit. When he ran the form to test it, after selecting a value from the list and clicking Commit, he received an FRM error. Its corresponding database error is the following: ORA-01401: inserted value too large for column
What should he do to correct this problem?
- Have the DBA increase the column width in the database.
- Change the List Style property for the State item to Combo Box.
- Change the List Style property for the State item to T-list.
- Change the elements in the list of the State item so that the list elements are the state names and the list element values are the state abbreviations.t.