<< Prev Question Next Question >>

Question 31/47

A procedure is created in the SYS schema to allow users to change the password as follows: CREATE OR REPLACE PROCEDURE change_password(p_username VARCHAR2 DEFAULT NULL, p_new_password VARCHAR2 DEFAULT NULL)
IS
v_sql_stmt VARCHAR2(500);
BEGIN
v_sql_stmt := 'ALTER USER '||p_username ||' IDENTIFIED BY '
|| p_new_password;
EXECUTE IMMEDIATE v_sql_stmt;
END change_password;
The SYS user has granted EXECUTE privilege on the procedure to the OE user. But OE is able
to change the password for SYS by using this procedure. How would you protect this?

LEAVE A REPLY

Your email address will not be published. Required fields are marked *

Question List (47q)
Question 1: Identify two strategies against SQL injection. (Choose two.)...
Question 2: View the Exhibit and examine the structure of the EMPLOYEES ...
Question 3: Which two statements are true about REF CURSOR types? (Choos...
Question 4: You executed the following command: SQL&gt; ALTER SESSION SE...
Question 5: Examine the structure of the DEPARTMENTS table. (Exhibit) Na...
Question 6: Match the following external C procedure components with the...
Question 7: Examine the following settings for a session: PLSQL_CODE_TYP...
Question 8: Which two statements are true about the migration of BasicFi...
Question 9: Which two statements are true about cursor variables? (Choos...
Question 10: Identify three guidelines for the DBMS_ASSERT package. (Choo...
Question 11: Examine the structure of the EMPLOYEES table that exists in ...
Question 12: You created a procedure as follows: CREATE OR REPLACE PROCED...
Question 13: Which two statements are true about the tuning of PL/SQL cod...
Question 14: Examine the PL/SQL code for the GET_TABLE_MD function given ...
Question 15: The result cache is enabled for the database instance. Exami...
Question 16: Examine the commands: CREATE TYPE typ_course_tab IS VARRAY(5...
Question 17: Which two statements are true about the extproc process? (Ch...
Question 18: Examine the code in the following PL/SQL block: DECLARE TYPE...
Question 19: In which two situations is the body of a result-cached funct...
Question 20: Which statements are true about temporary LOBs? (Choose all ...
Question 21: Which two types of query results cannot be stored in the que...
Question 22: The PLSQL_OPTIMIZE_LEVEL parameter is set to 2 for the sessi...
Question 23: View the Exhibit and examine the PL/SQL code. (Exhibit) Whic...
Question 24: Which two statements are true about the working of fine-grai...
Question 25: Identify two factors that you consider for compiling a PL/SQ...
Question 26: View Exhibit1 and examine the structure of the EMPLOYEES and...
Question 27: You executed the following command to alter the session para...
Question 28: Examine the structure of the TEST_DETAILS table: Name Null? ...
Question 29: Which two statements are true about cursor variables? (Choos...
Question 30: In which two situations is the body of a result-cached funct...
Question 31: A procedure is created in the SYS schema to allow users to c...
Question 32: View the Exhibit and examine the procedure to create a trigg...
Question 33: Which two statements are true about SecureFile LOB options? ...
Question 34: To examine the dependencies between all PL/SQL objects and t...
Question 35: Which two types of query results cannot be stored in the que...
Question 36: Examine the following line of code that is part of a PL/SQL ...
Question 37: Examine the following parameter values for a session: PLSQL_...
Question 38: In a user session, tracing is enabled as follows: SQL&gt; EX...
Question 39: Identify the method that is used by fine-grained access (FGA...
Question 40: Which two statements are true about nested tables and varray...
Question 41: Examine the following settings for a session: PLSQL_CODE_TYP...
Question 42: When do you use static SQL as a technique for avoiding SQL i...
Question 43: DATA_FILES is a directory object that contains the DETAILS.T...
Question 44: Identify two methods for immunizing PL/SQL code against SQL ...
Question 45: Examine the structure of the LOB_STORE table. (Exhibit) Name...
Question 46: Examine the code in the following PL/SQL block: DECLARE TYPE...
Question 47: To examine the dependencies between all PL/SQL objects and t...