♦False (*)
2. Procedure B has the ZERO_DIVIDE pre-defined exception added to its EXCEPTION section. It is compiled successfully. In Timestamp Mode, Procedure A, which is dependent on remote Procedure B, will compile and execute successfully. True or False?
♦True
♦False (*)
procedure:
– Procedure A is local and has a time stamp of 10 AM
– Procedure B is remote and has a local and remote time stamp of 10:30 AM
successfully at 11 AM. True or False?
♦False
♦False
♦ALTER SYSTEM MAKE REMOTE_DEPENDENCIES_MODE = SIGNATURE
♦ALTER SESSION SET REMOTE_DEPENDENCIES_MODE = SIGNATURE (*)
♦ALTER SYSTEM SET REMOTE_DEPENDENCIES_MODE = SIGNATURE
♦ALTER TABLE locations ADD (climate VARCHAR2(30)); (*)
♦ALTER TABLE locations DROP COLUMN city;
♦ALTER TABLE locations DROP COLUMN postal_code; (*)
d values of the LAST_NAME column of the EMPLOYEES table. To minimize dependency
failures, the variable should be declared as:
v_last_name VARCHAR2(25);
True or False?
♦True
♦False (*)
8. Which of the following will display dependency informat ion which has been generated by executing the DEPTREE_FILL procedure? (Choose two.)
♦The USER_DEPENDENCIES view
♦The DEPTREE view (*)
♦The UTLDTREE script
♦The DISPLAY_DEPTREE view
♦The IDEPTREE view (*)
RETURN NUMBER IS
Which of the following will display the dependency between DEPTFUNC and DEPARTME NTS?
FROM user_dependencies
WHERE name IN (‘DEPTFUNC’,’DEPARTMENTS’);
FROM user_dependencies
WHERE referenced_name = ‘DEPARTMENTS’
AND referenced_type = ‘TABLE’;
(*)
FROM user_dependencies
WHERE name = ‘DEPARTMENTS’
AND type = ‘TABLE’;
FROM user_objects
WHERE object_name IN (‘DEPARTMENTS’,’DEPTFUNC’)
AND referenced = ‘YES’;
WHERE object_type = ‘PACKAGE BODY’
AND status = ‘INVALID’;
(*)
WHERE type = ‘PACKAGE BODY’
AND status = ‘INVALID’;
WHERE object_type LIKE ‘PACKAGE%’
AND status = ‘INVALID’;
table is modified by:
ALTER TABLE employees ADD (resume CLOB);
When will the ORACLE server try to recompile FETCH_EMP automatically?
♦The next time a user session invokes FETCH_EMP (*)
♦When the RESUME column is dropped from the EMPLOYEES table
♦When FETCH_EMP is dropped and recreated
♦The DEPTREE_FILL procedure
♦The USER_DEPENDENCIES view (*)
♦The DEPTREE_TEMPTAB table
ACK.GET_EMP. The following SQL statement is executed:
ALTER TABLE employees ADD (gender CHAR(1));
♦The body of EMPPACK is invalidated, but the specification remains valid. (*)
♦EMPPACK.GET_EMP is invalidated, but other procedures in EMPPACK remain valid.
♦Nothing is invalidated because the PL/SQL code does not reference the GE NDER column.
♦DBMS_DDL.WRAP
♦DBMS_DML.CREATE_WRAPPED
♦PL/SQL wrapper utility program (*)
♦SQL wrapper utility program
1. Create a text file containing your complete unwrapped source code.
2. Execute WRAP to create a second text file containing the wrapped code.
3. Connect to the database and execute the wrapped text file as a script to compile the wrapped code into the Data Dictionary.
♦Create the wrapper using DBMS_DML.
♦Verify the code was hidden in USER_CODE.
♦Grant EXECUTE privileges on the subprogram.
♦Log into the database server computer. (*)
16. You created a package named pkg1. The code is approximately 90,000 characters. What is the statement that you use to obfuscate this package in the database?
♦DBMS_DML.CREATE_WRAPPED (pkg1);
♦WRAP pkg1.sql
♦DBMS_DML.CREATE_WRAPPED (‘CREATE OR REPLACE PACKAGE BODY pkg1…);
♦WRAP INAME=pkg1.sql (*)
♦DBMS_DML.CREATE_WRAP (pkg1);
before compiling that section. True or False?
CREATE OR REPLACE FUNCTION myfunc
♦False
♦Speed up the compilation time of a lengthy PL/SQL subprogram.
♦Determine initialization values during start up of a database session.
♦Activate debugging or tracing statements in the development environment (*)
♦DBMS_DB_VERSION.VERSION (*)
♦DBMS_DB_VERSION.VER_LE_10
♦DBMS_DB_VERSION.VER_LE_11
A PL/SQL program compiles successfully, but contains some code that causes performance to be less than optimal.
♦Warning (*)
♦False
and
ALTER SESSION
♦False (*)
♦PLSQL_OPTIMIZE_LEVEL (*)
♦PLSQL_CODE_TYPE
♦PLSQL_LEVEL
♦USER_PLSQL_OPTIMIZE
♦False (*)
25. When setting PLSQL_OPTIMIZE_LEVEL = 3, the compiled cod e will run more slowly, but it will work with older versions of the Oracle software. True or False?
♦True
♦False (*)
This is good. Thanks!
LikeLike