5 6061978178002355489
5 6061978178002355489
5 6061978178002355489
Q.Which of the following Can be used to replace in following procedure to enable successful
execution?
create procedure my_new_proc(cRES OUT varhar2) is begin execute immediate
A.select * from dual into cRES B. select * into cREs from dual C.begin Select* into value from
dual;end,using out cRES
Ans. IN
Q. The EXISTS operator tests for existence of rows in the results set of the subqurey. what happens
when a subqurey row value is found
A. SQLCODE
SQLERRM
Q.Evaluate the SQl statement How many roles will user scott have access to? CREATE ROLE clerk;
Ans. 1
Q. You have been asked to lock employee table using the LOCK TABLE… which type of lock you will
use here?
Q. User-defined functions can be used in: A. Check Constraint B. Indexes C. Virtual columns
Ans. Both A and C
Q. How you can reduce or minimize network traffic when passing Host Cursor Variables to PL/SQl?
Ans. You can reduce network traffic by grouping OPEN_FOR statements
Q. Which interface allow the DBA to administer that part …shared pool that is used SQL result cache
and PL/SQL function result cache?
Ans. DBMS_RESULT_CACHE package
Q. What impact does the below statement has on the rows in the table employee,department?
Ans. No Row is locked by this statement.
Q. When you retrieve into a ROWID variable, you can use which built-in function?
Ans. ROWIDTOCHAR
Q. you have been asked to use the dynamic SQL Statement that is a DMl statement with a
RETURNING INTO clause. What will you do with the bind variables?
Ans. Put in-bind arguments in the USING clause and out-bind arguments in the RETURNING INTO
clause.
Q. You have written a code which fails due system failure with disk storage or memory which has no
relation how you will handle these type of situations?
Ans. Handle named exceptions whenever possible, instead of using WHEN OTHERS in exception
handlers.
Q. Which of the following is true about functions when called from SQL statements.
Ans. When called from INSERT,UPDATE, or DELETE statement, function cannot query or modify any
database tables modified by that statement
When called from SELECT, INSERT ,UPDATE OR DELETE ……….ALTER SYSTEM
Q. Which of the following is true about the WHERE CURRENT OF clasue is CURSORS
Ans. IF A CURSOR IS DECLARED…
THIS ALLOWS UPDATES….
THIS CLAUSE EVALUATES TO THE ROW…….
Q. Which features are a part of the procedures in the DBMS_STATS package that are not used by the
ANALYZE command?