Download Oracle Database 12c: Advanced PL-SQL.1z0-148.Pass4Sure.2019-05-30.47q.vcex

Vendor: Oracle
Exam Code: 1z0-148
Exam Name: Oracle Database 12c: Advanced PL/SQL
Date: May 30, 2019
File Size: 2 MB

How to open VCEX files?

Files with VCEX extension can be opened by ProfExam Simulator.

Purchase
Coupon: EXAM_HUB

Discount: 20%

Demo Questions

Question 1
Which two blocks of code execute successfully?
  1. DECLARE 
    SUBTYPE new_one IS BINARY_INTERGER RANGE 0..9; 
    my_val new_one; 
    BEGIN 
    my_val :=0;
    END;
  2. DECLARE 
    SUBTYPE new_string IS VARCHAR2 (5) NOT NULL; 
    my_str_new_string; 
    BEGIN 
    my_str  := ‘abc’;
    END;
  3. DECLARE 
    SUBTYPE new_one IS NUMBER (2, 1); 
    my_val new_one; 
    BEGIN 
    my_val :=12.5;
    END;
  4. DECLARE 
    SUBTYPE new_one IS INTEGER RANGE 1..10 NOT NULL; 
    my_val new_one; 
    BEGIN 
    my_val :=2;
    END;
  5. DECLARE 
    SUBTYPE new_one IS NUMBER (1, 0); 
    my_val new_one; 
    BEGIN 
    my_val := -1;
    END;
Correct answer: AD
Question 2
Which statement is correct about DBMS_LOB.SETOPTIONS and DBMS_LOB.GETOPTIONS for SecureFiles?
  1. DBMS_LOB.GETOPTIONS can only be used for BLOB data types.
  2. DBMS_LOB.SETOPTIONS can perform operations on individual SecureFiles but not an entire column.
  3. DBMS_LOB. SETOPTIONS can set option types COMPRESS, DUPLICATE, and ENCRYPT.
  4. If a table was not created with compression specified in the store as securefile clause then DBMS_LOB.SETOPTIONS can be used to enable it later.
Correct answer: D
Explanation:
Reference: https://docs.oracle.com/cd/E11882_01/appdev.112/e18294/adlob_smart.htm
Reference: https://docs.oracle.com/cd/E11882_01/appdev.112/e18294/adlob_smart.htm
Question 3
Examine this code executed as SYS:
  
Examine this code executed as SPIDER and the error message received upon execution:
  
What is the reason for this error?
  1. The procedure needs to be granted the DYNAMIC_TABLE_ROLE role.
  2. The EXECUTE IMMEDIATE clause is not supported with roles.
  3. Privileges granted through roles are never in effect when running definer’s rights procedures.
  4. The user SPIDER needs to be granted the CREATE TABLE privilege and the procedure needs to be granted the DYNAMIC_TABLE_ROLE.
Correct answer: C
Question 4
Which codes executes successfully?
  1. CREATE PACKAGE pkg AS 
    TYPE rec_typ IS RECORD (price NUMBER, inc_pct NUMBER); 
    PROCEDURE calc_price (price_rec IN OUT rec_typ); 
    END pkg; 
    CREATE PACAKGE BODY pkg AS 
    PROCEDURE calc_price (price_rec IN OUT rec_typ) AS 
    BEGIN 
    price_rec.price  := price_rec.price + (price_rec.price * price_rec.inc_pct)/100;
    END calc_price; 
    END pkg; 
    DECLARE 
    1_rec pkg. rec_typ; 
    BEGIN 
    1_rec_price :=100;
    1_rec.inc_pct :=50;
    EXECUTE IMMEDIATE ‘BEGIN pkg. calc_price (:rec); END;’ USING IN OUT 1_rec;
    END;
  2. CREATE PACKAGE pkg AS 
    TYPE rec_typ IS RECORD (price NUMBER, inc_pct NUMBER); 
    END pkg; 
    CREATE PROCEDURE calc_price (price_rec IN OUT pkg. rec_typ) AS 
    BEGIN 
    price_rec.price  := price_rec.price + (price_rec.price * price_rec.inc_pct)/100;
    END 
    DECLARE 
    1_rec pkg.rec_typ; 
    BEGIN 
    EXECUTE IMMEDIATE ‘BEGIN calc_price (:rec); END;’ USING IN OUT 1_rec (100, 50);
    END;
  3. CREATE PACKAGE pkg AS 
    TYPE rec_typ IS RECORD (price NUMBER, inc_pct NUMBER); 
    END pkg; 
    CREATE PROCEDURE calc_price (price_rec IN OUT pkg. rec_typ) AS 
    BEGIN 
    price_rec.price  := price_rec.price + (price_rec.price * price_rec.inc_pct)/100;
    END ; 
    DECLARE 
    1_rec pkg. rec_typ; 
    BEGIN 
    1_rec_price :=100;
    1_rec.inc_pct :=50;
    EXECUTE IMMEDIATE ‘BEGIN calc_price (1_rec); END;’; 
    END;
  4. DECLARE 
    TYPE rec_typ IS RECORD (price NUMBER, inc_pct NUMBER); 
    1_rec rec-typ; 
    PROCEDURE calc_price (price_rec IN OUT rec_typ) AS 
    BEGIN 
    price_rec.price := price-rec.price+ (price_rec.price * price_rec.inc_pct)/100;
    END; 
    BEGIN 
    1_rec_price :=100;
    1_rec.inc_pct :=50;
    EXECUTE IMMEDIATE ‘BEGIN calc_price (:rec); END;’ USING IN OUT 1_rec;
    END;
Correct answer: B
Question 5
Examine this function header:
FUNCTION calc_new_sal (emp_id NUMBER) RETURN NUMBER; 
You want to ensure that whenever this PL/SQL function is invoked with the same parameter value across active sessions, the result is not recomputed. 
If a DML statement is modifying a table which this function depends upon, the function result must be recomputed at that point in time for all sessions calling this function. 
Which two actions should you perform?
  1. Ensure RESULT_CACHE_MAX_SIZE is greater than 0.
  2. Enable the result cache by using DBMS_RESULT_CACHE.BYPASS (FALSE).
  3. Add the deterministic clause to the function definition.
  4. Add the RELIES_ON clause to the function definition.
  5. Add the RESULT_CACHE clause to the function definition.
Correct answer: AC
Question 6
Examine this block:
  
Which two will be correct after line 5?
  1. va. LAST and va. LIMIT will return the same value.
  2. va. LAST and va. COUNT will return the same value.
  3. va. LIMIT and va. COUNT will return the same value.
  4. va. LIMIT and va. NEXT (199) will return the same value.
  5. va. LAST will return 200.
  6. va. NEXT (199) will return NULL.
Correct answer: AC
Question 7
Examine the following SQL statement:
ALTER SESSION SET PLSQL_OPTIMIZE_LEVEL=3; 
What is the result of executing this statements?
  1. The PL/SQL optimize level for some existing PL/SQL units will be changed as an immediate result.
  2. The PL/SQL optimize level for subsequently complied PL/SQL units will be set to 3 and inlining will be enabled.
  3. The PL/SQL optimize level for subsequently compiled PL/SQL units will be set to 3 and inlining will be disabled.
  4. This statement will fail because PLSQL_OPTIMIZE_LEVEL can only be set at the system level,
Correct answer: C
Question 8
Examine this code:
  
What is the correct statement to get the value of attribute ACCOUNT_MGR after the procedure has been executed?
  1. SELECT USERENV (‘ACCOUNT_MGR’) FROM dual;
  2. SELECT SYS_CONTEXT (‘USERENV’, ‘ACCOUNT_MGR’) FROM dual;
  3. SELECT SYS_CONTEXT (‘ORDER_CTX’, ‘ACCOUNT_MGR’) FROM dual;
  4. SELECT SYS_CONTEXT (‘ACCOUNT_MGR’, ‘ORDER_CTX’) FROM dual;
  5. SELECT USERENV (‘ORDER_CTX’) FROM dual;
Correct answer: B
Question 9
Examine this code:
  
Examine this DML statement executed in the SCOTT schema:
UPDATE emp SET comm = 1000 WHERE deptno= 20; 
What is the outcome after executing this statement?
  1. COMM is set to 1000 for all records in the EMP table where DEPTNO = 30.
  2. The statement executes successfully but no rows are updated.
  3. COMM is set to 1000 for all records in the EMP table where DEPTNO=20.
  4. The statement fails with error ORA-28115: policy with check option violation.
Correct answer: D
Question 10
Which tablespace is used to store the data collected by PL/Scope?
  1. UNDOTBS1
  2. SYSAUX
  3. SYSTEM
  4. TEMP
  5. USERS
Correct answer: B
Explanation:
Reference: https://docs.oracle.com/cd/B28359_01/appdev.111/b28424/adfns_plscope.htm#BABDGJAF
Reference: https://docs.oracle.com/cd/B28359_01/appdev.111/b28424/adfns_plscope.htm#BABDGJAF
HOW TO OPEN VCE FILES

Use VCE Exam Simulator to open VCE files
Avanaset

HOW TO OPEN VCEX AND EXAM FILES

Use ProfExam Simulator to open VCEX and EXAM files
ProfExam Screen

ProfExam
ProfExam at a 20% markdown

You have the opportunity to purchase ProfExam at a 20% reduced price

Get Now!