Have you practiced all the PL/SQL queries in Oracle? Take this Oracle PL/SQL(1z0-147) Dumps test to see how well you have practiced the queries and commands. This quiz will help you check your knowledge of queries as well as other facts related to the programming language. With this quiz, you can test your understanding as well as enhance your knowledge with instant feedback. Go for it, and all the best! Try to get a perfect score, as it will boost your confidence.
DROP TRIGGER business_hour;
DELETE TRIGGER business_hour;
REMOVE TRIGGER business_hour;
ALTER TRIGGER business_hour REMOVE;
DELETE FROM USER_TRIGGERS WHERE TRIGGER_NAME = .BUSINESS_HOUR;
Rate this question:
Row
Statement
ORACLE FORM trigger
Before
Rate this question:
A table
A column that is a primary key
Stored in the database.
A file stored outside of the database, with an internal pointer to it from a database column.
Rate this question:
To duplicate the functionality of other triggers.
To replicate built-in constraints in the Oracle server such as primary key and foreign key.
To guarantee that when a specific operation is performed, related actions are performed.
For centralized, global operations that should be fired for the triggering statement, regardless of which user or application issues the statement.
Rate this question:
Row level DML trigger
Row level system trigger
Statement level DML trigger
Row level application trigger
Statement level system trigger
Statement level application trigger
Rate this question:
1
10
None
A value equal to the number of rows in the EMP table.
Rate this question:
A comma has been left after the STATS_EXIST_EXCEPTION exception.
The STATS_EXIST_EXCEPTION has not been declared as a number.
The STATS_EXIST_EXCEPTION has not been declared as an exception.
Only predefined exceptions are allowed in the EXCEPTION section.
Rate this question:
DEPTREE
IDEPTREE
INDENT_TREE
I_DEPT_TREE
Rate this question:
DURING
INSTEAD
ON SHUTDOWN
BEFORE
ON STATEMENT EXECUTION
Rate this question:
SHOW FUNCTION_ERROR
SHOW USER_ERRORS
SHOW ERRORS
SHOW ALL_ERRORS
Rate this question:
ALTER TABLE emp ADD constraint_ck_sal CALC(sal BETWEEN sal AND sal*1.1);
CREATE OR REPLACE TRIGGER check_sal BEFORE UPDATE OF sal ON emp FOR EACH ROW WHEN(NEW.SALOLD.SAL*1.1) BEGIN RAISE_APPLICATION_ERROR(-20508, ‘do not decrease salary nor increase by more than 10%’); END;
CREATE OR REPLACE TRIGGER check_sal BEFORE UPDATE OF sal OR emp WHEN (NEW.SALOLD.SAL*1.1) BEGIN RAISE_APPLICATION_ERROR(-20508, ‘Do not decrease salary nor increase by more than 10%’);
CREATE OR REPLACE TRIGGER check_sal AFTER UPDATE OF sal OR emp WHEN (NEW.SALOLD.SAL*1.1) BEGIN RAISE_APPLICATION_ERROR(-20508, ‘Do not decrease salary nor increase by more than 10%’); END;
Rate this question:
None of these commands; you cannot disable multiple triggers on a table in one command.
ALTER TRIGGERS ON TABLE employees DISABLE;
ALTER employees DISABLE ALL TRIGGERS;
ALTER TABLE employees DISABLE ALL TRIGGERS;
Rate this question:
DML trigger
System event trigger
INSTEAD OF trigger
Application trigger
Rate this question:
CREATE OR REPLACE FUNCTION tax_amt (p_id NUMBER) RETURN NUMBER
CREATE OR REPLACE PROCEDURE tax_amt (p_id NUMBER) RETURN NUMBER
CREATE OR REPLACE PROCEDURE tax_amt (p_id NUMBER, p_amount OUT NUMBER)
CREATE OR REPLACE FUNCTION tax_amt (p_id NUMBER) RETURN NUMBER(10,2)
CREATE OR REPLACE PROCEDURE tax_amt (p_id NUMBER, p_amount OUT NUMBER(10, 2))
Rate this question:
USER_PROC_DEPENDS
USER_DEPENDENCIES
USER_REFERENCES
USER_SOURCE
Rate this question:
The trigger fires successfully.
The trigger fails because it needs to be a row level AFTER UPDATE trigger.
The trigger fails because a SELECT statement on the table being updated is not allowed.
The trigger fails because you cannot use the minimum and maximum functions in a BEFORE UPDATE trigger.
Rate this question:
CALC_TAX
INSERT_EMP
UPDATE_SAL
DELETE_EMP
UPDATE_EMP
MANAGE_EMPS
Rate this question:
The view associated with the trigger.
The table associated with the trigger.
The event associated with the trigger.
The package associated with the trigger.
The statement level or for each row association to the trigger.
Rate this question:
VARCHAR2
BOOLEAN
OUT
IN
Rate this question:
Local variables.
Arguments.
Boolean variables.
Substitution variables.
Rate this question:
A package.
A stored function.
A stored procedure.
Another database trigger.
Rate this question:
Use a drop procedure statement to drop a standalone procedure.
Use a drop procedure statement to drop a procedure that is part of a package. Then recompile the package specification.
Use a drop procedure statement to drop a procedure that is part of a package. Then recompile the package body.
For faster removal and re-creation, do not use a drop procedure statement. Instead, recompile the procedure using the alter procedure statement with the REUSE SETTINGS clause.
Rate this question:
PRIVATE
PUBLIC
IN
OUT
Rate this question:
EMP_ID LOG_DATE NEW_SALARY ACTION ---------- -------- ---------- ---------- 201 24-SEP-02 13000 NEW SAL 202 24-SEP-02 600 NEW SAL
EMP_ID LOG_DATE NEW_SALARY ACTION ---------- -------- ---------- ---------- 201 24-SEP-02 14000 NEW SAL 202 24-SEP-02 7000 NEW SAL
EMP_ID LOG_DATE NEW_SALARY ACTION ---------- -------- ---------- ---------- 201 24-SEP-02 NEW SAL 202 24-SEP-02 NEW SAL
No rows are inserted.
Rate this question:
The locations, departments, and employees tables are empty.
The departments table has one row. The locations and the employees tables are empty.
The location table has one row. The departments and the employees tables are empty.
The locations table and the departments table both have one row. The employees table is empty.
Rate this question:
USER_PROCEDURES
USER_PROCS
USER_OBJECTS
USER_PLSQL_UNITS
Rate this question:
ALTER TABLE emp ADD CONSTRAINT ck_sal CHECK (sal BETWEEN sal AND sal*1.1);
CREATE OR REPLACE TRIGGER check_sal BEFORE UPDATE OF sal ON emp FOR EACH ROW WHEN (new.sal < old.sal OR new.sal > old.sal * 1.1) BEGIN RAISE_APPLICATION_ERROR ( - 20508, .Do not decrease salary not increase by more than 10% ); END;
CREATE OR REPLACE TRIGGER check_sal BEFORE UPDATE OF sal ON emp WHEN (new.sal < old.sal OR new.sal > old.sal * 1.1) BEGIN RAISE_APPLICATION_ERROR ( - 20508, .Do not decrease salary not increase by more than 10% ); END;
CREATE OR REPLACE TRIGGER check_sal AFTER UPDATE OR sal ON emp WHEN (new.sal < old.sal OR -new.sal > old.sal * 1.1) BEGIN RAISE_APPLICATION_ERROR ( - 20508, .Do not decrease salary not increase by more than 10% ); END;
Rate this question:
INSERT TEXT_IO.PUT_LINE statement to view data on the screen when the stored procedure is executed.
Insert break points in the code and observe the variable values displayed to the screen as the procedure is executed.
Insert DBMS_OUTPUT.PUT_LINE statement to view data on the screen when the stored procedure is executed.
Insert DEBUG VARIABLE statements to view the variable values on the screen as the procedure is executed.
Rate this question:
You cannot enable multiple triggers on a table in one command.
ALTER TRIGGERS ON TABLE employees ENABLE;
ALTER employees ENABLE ALL TRIGGERS;
ALTER TABLE employees ENABLE ALL TRIGGERS;
Rate this question:
A stored procedure uses the DELCLARE keyword in the procedure specification to declare formal parameters.
A stored procedure is named PL/SQL block with at least one parameter declaration in the procedure specification.
A stored procedure must have at least one executable statement in the procedure body.
A stored procedure uses the DECLARE keyword in the procedure body to declare formal parameters.
Rate this question:
The trigger records an audit trail when a user makes changes to the database.
The trigger marks the user as logged on to the database before an audit statement is issued.
The trigger invoked the procedure audit_action each time a user logs on to his/her schema and adds the username to the audit table.
The trigger invokes the procedure audit_action each time a user logs on to the database and adds the username to the audit table.
Rate this question:
DROP gen_email_name;
REMOVE gen_email_name;
DELETE gen_email_name;
DROP FUNCTION gen_email_name;
Rate this question:
A specific error or any errors occurs.
A database is shut down or started up.
A specific user or any user logs on or off.
A user executes a CREATE or an ALTER table statement
A user executes a SELECT statement with an ORDER BY clause.
A user executes a JOIN statement that uses four or more tables.
Rate this question:
FOR EACH ROW trigger on the EMP table.
Statement-level trigger on the EMP table.
FOR EACH ROW trigger on the AUDIT_TABLE table.
Statement-level trigger on the AUDIT_TABLE table.
FOR EACH ROW statement-level trigger on the EMP table.
Rate this question:
Cursor
Constant
Trigger
Sequence
View
Rate this question:
The errors are stored in the EMP_PROC.ERR file.
The errors are displayed to the screen when the script file is run.
The errors are stored in the procedure_errors data dictionary view.
YOU need to issue the SHOW ERRORS command in the SQL Plus environment to see the errors.
YOU need to issue the display errors command in the SQL Plus environment to see the errors.
Rate this question:
CREATE OR REPLACE PROCEDURE calc (p_no IN NUMBER) RETURN tax IS V_sal NUMBER; Tax NUMBER; BEGIN SELECT sal INTO v_sal FROM emp WHERE EMPNO=p_no; Tax:=v_sal * 0. 05; END;
CREATE OR REPLACE FUNCTION calctax (p_no NUMBER) RETURN NUMBER IS V_sal NUMBER; BEGIN SELECT sal INTO v_sal FROM emp WHERE empno =p_no; RETURN (v_sal* 0. 05); END;
CRETAE OR REPLACE FUNCTION calctax(p_no NUMBER) RETURN NUMBER IS V_sal NUMBER; 20 Tax NUMBER; BEGIN SELECT sal INTO v_sal FROM emp WHERE empno =p_no; Tax:=v_sal * 0. 05; END;
CREATE OR REPLACE FUNCTION calctax(p_no NUMBER)IS V_sal NUMBER; Tax NUMBER; BEGIN SELECT sal INTO v_sal FROM emp WHERE empno =p_no; Tax :=v_sal * 0. 05; RETURN(tax); END;
Rate this question:
ACCOUNT_TRANSACTION;
RUN ACCOUNT_TRANSACTION;
START ACCOUNT_TRANSACTION;
EXECUTE ACCOUNT_TRANSACTION;
Rate this question:
Open, Parse, Bind, Execute, Fetch, Close
Parse, Bind, open, Execute, Close, Fetch
Bind, Open, Parse, Execute, Fetch, Close
Open, Bind, Parse, Execute, Close, Fetch
Rate this question:
EXECUTE UPD_BAT_STAT;
EXECUTE UPD_BAT_STAT(V_AB=>10, V_ID=>31);
EXECUTE UPD_BAT_STAT(31, 'FOUR', 'TWO');
UPD_BAT_STAT(V_AB=>10, V_ID=>31);
RUN UPD_BAT_STAT;
Rate this question:
Use the DBMS_LOB.WRITE procedure to write data to a BFILE.
Use the DBMS_LOB.BFILENAME function to locate an external BFILE.
Use the DBMS_LOB.FILEEXISTS function to find the location of a BFILE.
Use the DBMS_LOB.FILECLOSE procedure to close the file being accessed.
Rate this question:
Querying with the SELECT * notification.
Declaring variables with the %TYPE attribute.
Specifying schema names when referencing objects.
Declaring records by using the %ROWTYPE attribute.
Specifying package.procedure notation while executing procedures.
Rate this question:
You can call the BONUS.CALC_SALARY packaged function from an INSERT command against the EMPLOYEES table.
You can call the BONUS.CALC_SALARY packaged function from a SELECT command against 15 the EMPLOYEES table.
You can call the BONUS.CALC_SALARY packaged function form a DELETE command against the EMPLOYEES table.
You can call the BONUS.CALC_SALARY packaged function from an UPDATE command against the EMPLOYEES table.
Rate this question:
Add_dept;
Add_dept( .Accounting .);
Add_dept(, .New York .);
Add_dept(p_location=> .New York .);
Rate this question:
They are on different nodes.
They are in a different database.
They are on the same node in the same database.
They are on the same node in a different database.
Rate this question:
There is no effect on procedure A, and it runs successfully.
Procedure B is invalidated and recompiles when invoked.
Procedure A is invalidated and recompiles for the first time it is invoked.
Procedure A is invalidated and recompiles for the second time it is invoked.
Rate this question:
Change the trigger type to a BEFORE DELETE.
Take out the COUNT function because it is not allowed in a trigger.
Remove the DBMS_OUTPUT statement because it is not allowed in a trigger.
Change the trigger to a statement-level trigger by removing FOR EACH ROW.
Rate this question:
G_comm has a value of 15 at 9:06am for Smith.
G_comm has a value of 15 at 9:06am for Jones.
G_comm has a value of 20 at 9:06am for both Jones and Smith.
G_comm has a value of 15 at 9:03 am for both Jones and Smith.
G_comm has a value of 10 at 9:06am for both Jones and Smith.
G_comm has a value of 10 at 9:03am for both Jones and Smith
Rate this question:
Quiz Review Timeline (Updated): Aug 28, 2023 +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.