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 See morewith instant feedback. Go for it, and all the best! Try to get a perfect score, as it will boost your confidence.
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:
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:
A conditional predicate allows you to specify a WHEN-LOGGING-ON condition in the trigger body.
A conditional predicate means you use the NEW and OLD qualifiers in the trigger body as a condition.
A conditional predicate allows you to combine several DBM triggering events into one in the trigger body.
A conditional predicate allows you to specify a SHUTDOWN or STARTUP condition in the trigger body.
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:
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:
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:
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:
Index
Cluster
Package
Function
Synonyms
Dimensions
Database links
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:
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:
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:
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:
DEPTREE
IDEPTREE
INDENT_TREE
I_DEPT_TREE
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:
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:
DROP gen_email_name;
REMOVE gen_email_name;
DELETE gen_email_name;
DROP FUNCTION gen_email_name;
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:
V_PLAYER_AVG := .333;
BB_PACK.UPD_PLAYER_STAT.V_PLAYER_AVG := .333;
BB_PACK.V_PLAYER_AVG := .333;
This variable cannot be assigned a value from outside of the package.
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:
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:
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:
EXECUTE add_dept(p_loc=>2500)
EXECUTE add_dept('Education', 2500)
EXECUTE add_dept('2500', p_loc =>2500)
EXECUTE add_dept(p_name=>'Education', 2500)
EXECUTE add_dept(p_loc=>2500, p_name=>'Education')
Rate this question:
A stored procedure is typically written in SQL.
A stored procedure is a named PL/SQL block that can accept parameters.
A stored procedure is a type of PL/SQL subprogram that performs an action.
A stored procedure has three parts: the specification, the body, and the exception handler part.
The executable section of a stored procedure contains statements that assigns values, control execution, and return values to the calling environment.
Rate this question:
Be stored only in the database.
Have both IN and OUT parameters.
Use the positional notation for parameters.
Return a BOOLEAN or VARCHAR2 data type.
Rate this question:
EXECUTE INSERT_TEAM;
EXECUTE INSERT_TEAM (3, V_NAME=>'LONGHORNS', V_CITY=>'AUSTIN');
EXECUTE INSERT_TEAM (3, 'AUSTIN', 'LONGHORNS');
EXECUTE INSERT_TEAM (V_ID := V_NAME := 'LONGHORNS', V_CITY := 'AUSTIN');
EXECUTE INSERT_TEAM (3, 'LONGHORNS');
Rate this question:
Use the DBMS_MANAGE_LOB.MIGRATE procedure.
Use the UTL_MANAGE_LOB.MIGRATE procedure.
Use the DBMS_LOB.MIGRATE procedure.
Use the ALTER TABLE command.
You cannot migrate from a LONG to a LOB date type for a column.
Rate this question:
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:
A package.
A stored function.
A stored procedure.
Another database trigger.
Rate this question:
USER_PROC_DEPENDS
USER_DEPENDENCIES
USER_REFERENCES
USER_SOURCE
Rate this question:
DURING
INSTEAD
ON SHUTDOWN
BEFORE
ON STATEMENT EXECUTION
Rate this question:
VARCHAR2
BOOLEAN
OUT
IN
Rate this question:
A stored procedure on the server.
A block of code in a PL/SQL library.
A standalone procedure on the client machine.
A block of code in the body of the program unit ORDERTOTAL.
A local subprogram defined within the program unit ORDERTOTAL.
Rate this question:
You use an application trigger to fire when a DELETE statement occurs.
You use a database trigger to fire when an INSERT statement occurs.
You use a system event trigger to fire when an UPDATE statement occurs.
You use INSTEAD OF trigger to fire when a SELECT statement occurs.
EXECUTE UPD_BAT_STAT(V_ID);
UPD_BAT_STAT(V_ID);
RUN UPD_BAT_STAT(V_ID);
START UPD_BAT_STAT(V_ID);
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:
SHOW FUNCTION_ERROR
SHOW USER_ERRORS
SHOW ERRORS
SHOW ALL_ERRORS
Rate this question:
Creating the table has no effect and procedure PROCESS_CUSTOMER still accesses data from public synonym CUSTOMER table.
If the structure of your CUSTOMER table is the same as the public synonym CUSTOMER table then the procedure PROCESS_CUSTOMER is invalidated and gives compilation errors.
If the structure of your CUSTOMER table is entirely different from the public synonym CUSTOMER table then the procedure PROCESS_CUSTOMER successfully recompiles and accesses your CUSTOMER table.
If the structure of your CUSTOMER table is the same as the public synonym CUSTOMER table then the procedure PROCESS_CUSTOMER successfully recompiles when invoked and accesses your CUSTOMER table.
Rate this question:
V_MAX_TEAM_SALARY := 7500000;
BB_PACK.ADD_PLAYER.V_MAX_TEAM_SALARY := 75000000;
BB_PACK.V_MAX_TEAM_SALARY := 75000000;
This variable cannot be assigned a value from outside the package.
Rate this question:
1
10
None
A value equal to the number of rows in the EMP table.
Rate this question:
The value of DISCOUNT_RATE always remain 0. 00 in a session.
The value of DISCOUNT_RATE is set to 0. 10 each time the package are invoked in a session.
The value of DISCOUNT_RATE is set to 1 each time the procedure DISPLAY_PRICE is invoked.
The value of DISCOUNT_RATE is set to 0. 10 when the package is invoked for first time in a session.
Rate this question:
DML trigger
INSTEAD OF trigger
Application trigger
System event trigger
This is an invalid trigger.
USER_PROCEDURES
USER_PROCS
USER_OBJECTS
USER_PLSQL_UNITS
Rate this question:
Employee 108 has his email name updated based on the return result of the function.
The statement fails because functions called from SQL expressions cannot perform DML.
The statement fails because the functions does not contain code to end the transaction.
The SQL statement executes successfully, because UPDATE and DELETE statements are ignoring in stored functions called from SQL expressions.
The SQL statement executes successfully and control is passed to the calling environment.
Trigger type
Trigger body
Trigger event
Trigger timing
Rate this question:
The rows are selected and ordered.
The validity of the SQL statement is established.
An area of memory is established to process the SQL statement.
The SQL statement is run and the number of rows processed is returned.
The area of memory established to process the SQL statement is released.
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.
Wait!
Here's an interesting quiz for you.