Which of the following is not a PL/SQL program?
Library
Trigger
Function
Procedure
Why would you execute a CREATE OR REPLACE PROCEDURE statement instead of a DROP PROCEDURE and a CREATE PROCEDURE?
It is less typing.
There is no difference between the two.
CREATE OR REPLACE PROCEDURE does not invalidate dependent objects.
DROP PROCEDURE and CREATE PROCEDURE require regranting of privileges.
Which of the following is not a trigger event?
UPDATE
SELECT
NOAUDIT
SERVERERROR
Which of the following statements can be used to enable triggers?
ALTER SYSTEM
ALTER TABLE
ALTER USER
ALTER PACKAGE
Which of the following keywords is used with a Data Pump import to copy data from one schema to another?
fromuser and touser
source_schema and target_schema
rename_schema
remap_schema
The application development manager asks you to make sure the new Oracle10g database that her team will use has PL/SQL warning enabled and the optimizing compiler set to maximum optimization. What do you have to do to satisfy these requirements?
Nothing. They are the default settings.
The optimizing compiler is set to maximum by default, but you have to set the initialization parameter plsql_warnings to ENABLE:ALL.
plsql_warnings is set to maximum by default, but you need to set plsql_optimize_mode =2 to increase it to maximum.
You need to set both plsql_warnings and plsql_optimize_mode to nondefault settings.
Which of the following is not a mode for Data Pump export?
Database
Tablespace
Table
Metadata
To perform a Data Pump import from a live database, which parameter needs to be set?
db_link
network_link
dumpfile
directory
You perform nightly metadata-only Data Pump exports of your development database. One morning, you get a frantic call from a developer who accidentally dropped a package he had been working on for the past week. Which Data Pump import parameter will you need to extract the package DDL from the dump file?
show
sqlfile
reuse_datafiles
tablespaces
What will the following Data Pump import command do?
impdp system/password network_link=sys_test schemas="GL" remap_schema="GL:GLI" content=both nologfile=y include=TABLE:"LIKE 'PROD%'"
Copy the GL tables whose names start with PROD from the sys_test database, placing them into the GLI schema.
Copy the GLI tables whose names start with PROD from the sys_test database, placing them into the GL schema.
Load the data in file sys_test.dmp into the table GLI.products.
Copy the metadata from user GL in sys_test into the local database.
Your requirements call for loading a lot of data from a flat file dumped from the mainframe into the orders table at night while a few users in Singapore enter orders interactively. You are using SQL*Loader to load the data, but it takes longer than desired. What might you do to speed up the process?
Switch to direct path mode.
Increase the bind size.
Write a Java program to parse and load the data.
Write a C program to parse and load the data.
Which type of PL/SQL program can be called in the select list of a SQL statement?
Trigger
Procedure
Function
None of the above
You need to let an application role execute the SLEEP procedure in the DBMS_LOCK package, but do not want to let an application role have access to the other more powerful capabilities of the DBMS_LOCK package. How can you satisfy these requirements best?
Grant EXECUTE on DBMS_LOCK to the application role.
Grant EXECUTE on DMBS_LOCK.SLEEP to the application role.
Write your own procedure to mimic the functionality of the DBMS_LOCK.SLEEP procedure.
Which of the following triggering events fire when statistics are gathered on a table?
ANALYZE and DDL
ASSOCIATE STATISTICS and ANALYZE
GATHER STATISTICS and DDL
ASSOCIATE STATISTICS and DISASSOCIATE STATISTICS
Which Data Pump export mode captures user definitions?
Table mode
Tablespace mode
DBA mode
Schema mode
You need to copy the GL schema from production to qa_test, changing the tablespace for indexes from gl_index to fin_indx. What is the best way to satisfy these requirements?
First, use Data Pump to copy the schema without indexes. Then, change the default tablespace for user GL in qa_test to fin_indx. Next, use Data Pump to copy the indexes. Finally, change the default tablespace for user GL back to gl_data.
Use the dbms_metadata package to extract table and index DDL. Then, use Notepad (or sed) to edit this DDL, changing the tablespace for the indexes. Finally, run the DDL in the qa_test database.
Use Data Pump import, specifying a remap_datafile parameter to change the datafile location for indexes.
Use Data Pump import specifying a remap_tablespace parameter to change the tablespace location for indexes.
Which of the following INSERT statements raises an exception?
INSERT INTO ORDERS SELECT * FROM STANDING_ORDERS
INSERT FIRST WHEN ORDER_TYPE IN (2,5,12) THEN INSERT INTO ORDERS SELECT * FROM STANDING_ORDERS
INSERT FIRST WHEN ORDER_TYPE IN (2,5,12) THEN INTO ORDERS SELECT * FROM STANDING_ORDERS
INSERT INTO ALL WHEN ORDER_TYPE IN (2,5,12) THEN INTO ORDERS SELECT * FROM STANDING_ORDERS