Questions
Which of the following commands will cause an automatic commit to occur?
- CONNECT
- RENAME
- SELECT
- INSERT
- DELETE
The following INSERT statement was issued:
INSERT /* +APPEND */ INTO arch.curr_order_hist
SELECT * FROM ord.curr_order;
What type of INSERT is performed?
- Conventional
- Direct-Load
- Parallel Direct-Load
- Serial-Conventional
What must be confirmed before changing the CURSOR_SPACE_FOR_TIME parameter in the initialization file to TRUE?
- The TIMED_STATISTICS parameter is set to TRUE.
- The hit percentage in the buffer cache is at least 95%.
- The OPEN_CURSOR parameter is set to at least twice the default value.
- The value in the RELOADS column of V$LIBRARYCACHE is consistently zero.
For an unconditional approach to a particular part of a complex PL/SQL block, which of the following control structures can be used?
- a
- If-Then-Else
- While loop
- GoTo
- Decode
You want to view the current time. Which of the following function(s) can be used to view the current time?
- TO_DATE
- DATE
- SYSDATE
- SYSTIME
- Not Possible
A company hired ALLEN, a DBA who will be working from home. Allen needs to have the ability to start the database remotely.A password file was created for the database and REMOTE_LOGIN_PASSWORDFILE = EXCLUSIVE was set in the parameter file. Which of the following commands adds Allen to the password file, allowing him remote DBA access?
- GRANT DBA TO ALLEN;
- GRANT SYSDBA TO ALLEN;
- GRANT RESOURCE TO ALLEN;
- orapwd file=orapwdSTUD user=ALLEN password=DBA
While checking the alert log for the database many lines are discovered that say "Checkpoint Not Complete". How can the problem be solved?
- Delete archived log files
- Add more online redo log groups
- Increase the size of archived log files
- increase the size of online redo log files
Using synonyms is a good way to implement location transparency.
- True
- False
To obtain the structure of an Oracle table, the command used is _______.
- STRUCTURE [TableName]
- DESCRIBE [TableName]
- DESCRIBE STRUCTURE [TableName]
- DESC TABLE [TableName]
In which of the following sections is a user-defined exception trapped?
- Declaration
- Execution
- Exception
- Header
For referential integrity to hold, any field in a table that is declared a super key can contain only values from a parent table's primary key or a candidate key.
- True
- False
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?
- Up to 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
The current password file allows for five entries. New DBAs have been hired and five more entries need to be added to the file, for a total of ten. How can the allowed number of entries be increased in the password file?
- Manually edit the password file and add the new entries
- Alter the current password file and resize if to be larger
- Add the new entries; the password file will automatically grow
- Drop the current password file, recreate it with the appropriate number of entries and add everyone again
Which data dictionary view(s) are needed to query to find the following information about a user?
Whether the user's account has expired
The user's default tablespace name
The user's profile name
- DBA_USERS only
- DBA_USERS and DBA_PROFILES
- DBA_USERS and DBA_TABLESPACES
- DBA_USERS, DBA_TS_QUOTAS, and DBA_PROFILES
Which type of join should be written to perform an outer join of tables A and B that returns all rows from B?
- Any outer join
- A left outer join
- A cross join
- A right outer join
- An inner join
Which script displays '01-MAR-03' when the JOIN_DATE value is '03-MAR-03'?
- SELECT ROUND(join_date, 'YEAR') FROMEmp
- SELECT ROUND(join_date, 'DAY') FROMEmp
- SELECT ROUND(join_date, 'MONTH') FROMEmp
- SELECT ROUND(TO_CHAR(join_date, 'YYYY')) FROMEmp
Which of the following files is a part of the Oracle database?
- Control file
- Password file
- Parameter files
- Archived log files