Are you familiar with OCA and OCP? Would you like to try this quiz? OCA stands for Oracle Certified Associate, while OCP stands for Oracle Certification Program. OCA is a beginner’s exam, while OCP is the next step toward certification, and this exam is more in-depth when it comes to knowledge of technology. If you want to learn more about OCA and OCP, this is the quiz for you.
SHOW FUNCTION_ERROR
SHOW USER_ERRORS
SHOW ERRORS
. SHOW ALL_ERRORS
Rate this question:
VARCHAR2
BOOLEAN
OUT
IN
Rate this question:
DURING
IN PLACE OF
ON SHUTDOWN
BEFORE
ON STATEMENT EXECUTION
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:
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:
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:
ACCOUNT_TRANSACTION;
RUN ACCOUNT_TRANSACTION
START ACCOUNT_TRANSACTION
EXECUTE ACCOUNT_TRANSACTION
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:
ALTER TABLE long_tab MODIFY (LONG_COL CLOB);
EXECUTE dbms_lob.migrate(long_tab, long_col, clob)
EXECUTE dbms_manage.lob.migrate(long_tab, long_col, clob)
EXECUTE utl_lob.migrate(long_tab, long_col, clob)
EXECUTE utl_manage_lob.migrate(long_tab, long_col, clob)
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:
1
10
None
A value equal to the number of rows in the EMP table
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 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:
Cursor
Constant
Trigger
Sequence
View
Rate this question:
DROP gen_email_name;
REMOVE gen_email_name;
DELETE gen_email_name;
DROP FUNCTION gen_email_name;
SELECT CALC_PLAYER_AVG(PLAYER_ID) FROM PLAYER_BAT_STAT;
EXECUTE CALC_PLAYER_AVG(31);
CALC_PLAYER('RUTH');
CALC_PLAYER_AVG(31);
START CALC_PLAYER_AVG(31)
Rate this question:
PROCEDURE combine;
PROCEDURE combine (p_no NUMBER);
PROCEDURE combine (p_val_1 VARCHAR2, p_val_2 NUMBER;
PROCEDURE concat_all (p_num_val VARCHAR2, p_char_val NUMBER);
Rate this question:
Local variables
Arguments
Boolean variables
Substitution variables
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
C. 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:
USER_PROCEDURES
USER_PROCS
USER_OBJECTS
USER_PLSQL_UNITS
Rate this question:
CALC_TAX
INSERT_EMP
UPDATE_SAL
DELETE_EMP
UPDATE_EMP /MANAGE_EMPS
Row
Statement
ORACLE FORM trigger
Before
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:
Add_dept;
Add_dept('Accounting');
Add_dept(, 'New York');
Add_dept(p_location=>'New York');
Rate this question:
USER_PROC_DEPENDS
USER_DEPENDENCIES
USER_REFERENCES
USER_SOURCE
Rate this question:
1
2
3
4
5
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
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:
If you remove the package specification, then the package body and the stand alone stored function CALC_HEIGHT are removed.
If you remove the package body, then the package specification and the stand alone stored function CALC_HEIGHT are removed
If you remove the package specification, then the package body is removed.
If you remove the package body, then the package specification is removed.
If you remove the stand alone stored function CALC_HEIGHT, then the METRIC_CONVERTER package body and the package specification are removed. /The stand alone function CALC_HEIGHT cannot be created because its name is used in a packaged function.
Rate this question:
View
Sequence
Privilege
Procedure
Packaged procedure or function
Rate this question:
When a row is inserted into the EMP table.
When the value of the SAL or JOB column in a row is updated in the EMP table.
When any column other than the SAL and JOB columns in a row are updated in the EMP table.
Only when both values of the SAL and JOB columns in a row are updated together in the EMP 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:
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:
DEPTREE
IDEPTREE
INDENT_TREE
I_DEPT_TREE
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:
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:
Packages can be nested.
You can pass parameters to packages.
A package is loaded into memory each time it is invoked
The contents of packages can be shared by many applications.
You can achieve information hiding by making package constructs private
Rate this question:
You need to execute the command CALCTAX(1000);.
You need to execute the command EXECUTE FUNCTION calctax;.
You need to create a SQL *Plus environment variable X and issue the command :X := CALCTAX(1000);.
You need to create a SQL *Plus environment variable X and issue the command EXECUTE :X := CALCTAX;
You need to create a SQL *Plus environment variable X and issue the command EXECUTE :X := CALCTAX(1000);
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
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:
HEADER only
DECLARATIVE
EXECUTABLE and HEADER
DECLARATIVE,EXECUTABLE and EXCEPTION HANDLING
Rate this question:
VALIDATE_PLAYER_STAT cannot recompile and must be recreated
VALIDATE_PLAYER_STAT is not invalidated
VALDIATE_PLAYER_STAT is invalidated
VALIDATE_PLAYER_STAT and BB_PACK are invalidated
Rate this question:
A package.
A stored function.
A stored procedure
Another database trigger
Rate this question:
An statement is not allowed in a subprogram declaration
Procedure LOG_EXEC should be declared before any identifiers.
Variable v_name should be declared before declaring the LOG_EXEC procedure
The LOG_EXEC procedure should be invoked as EXECUTE log_exec with the AUDIT_EMP procedure.
Rate this question:
ERROR at line 1:
Row is: Row is: Row is:
Row is: 1 Row is: 2 Row is: 3
. Row is: 4 Row is: 5 Row is: 6
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:
It persists across transactions within a session.
It persists from session to session for the same user.
It does not persist across transaction within a session
It persists from user to user when the package is invoked
It does not persist from session to session for the same user.
Rate this question:
Quiz Review Timeline (Updated): Mar 21, 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.