Save
Upgrade to remove ads
Busy. Please wait.
Log in with Clever
or

show password
Forgot Password?

Don't have an account?  Sign up 
Sign up using Clever
or

Username is available taken
show password


Make sure to remember your password. If you forget it there is no way for StudyStack to send you a reset link. You would need to create a new account.
Your email address is only used to allow you to reset your password. See our Privacy Policy and Terms of Service.


Already a StudyStack user? Log In

Reset Password
Enter the associated with your account, and we'll email you a link to reset your password.
focusNode
Didn't know it?
click below
 
Knew it?
click below
Don't Know
Remaining cards (0)
Know
0:00
Embed Code - If you would like this activity on your web page, copy the script below and paste it into your web page.

  Normal Size     Small Size show me how

DBSA FA2

QuestionAnswer
Start with the _____ keyword to define a user-defined record structure. TYPE
What symbol is used to enclose the elements of the TYPE structure? Note: Do not put space in your answer. ()
In explicit cursor operations, the set of rows returned by a multiple-row query is called RECORD SET. False
The term ________ in exceptions is the same as handling any error by including corresponding exception handler. TRAP
Handle named exceptions whenever possible, instead of using ______ in exception handlers. OTHERS
What is missing in the given exception syntax? ____ EXCEPTION WHEN exception1 [OR exception2 . . .] statement1; statement2; THEN
Each exception handler is consists of a _____ clause, which specifies an exception name. WHEN
The ___________ contains the exceptions handlers. EXCEPTION SECTION
The following statements are examples of exception. Entering an expiration date that has passed Selecting more than one row into a single variable Receiving “no rows returned” from a select statemen True
A block always terminates when PL/SQL raises an exception. True
The OTHERS is an optional exception-handling clause that traps any exceptions that have not been explicitly handled. True
Exception section is mandatory in PL/SQL block. False
The EXECUTE keyword is used in user-defined exception for error notification. False
You can use the EXCEPTION_INIT procedure to return user-defined error messages from stored subprograms. False
The SQLCODE function returns the numeric value for the error code. True
Names for predefined exceptions must be declared in the declaration section. False
The RAISE statement can be used to raise either user-defined or predefined exception. False
exception False
What are/is the type of exception can be raised using the RAISE statement? Non-predefined, User-defined
The declared non-predefined exception is raised ____________. IMPLICITLY
What is the first step in handing non-predefined exception? Exception name declaration
The RAISE statement can be used to raise either ________ or predefined exception. USER-DEFINED
The RAISE statement can be used to raise either user-defined or ________ exception. PREDEFINED
DECLARE v_emp_record employees2%rowtype; BEGIN SELECT * INTO v_emp_record FROM employees2 WHERE employee_id = 100; DBMS_OUTPUT.PUT_LINE('Email for ' || _____________.first_name || ' ' || ____________.last_name); END; False
The given syntax in declaring a user-define record is incorrect. TYPE type_name IS RECORD (field_declaration[,field_declaration]...); identifier type_name ; False
The %ROWTYPE can be used to declare a record based on another record. True
If you omit the ______ keyword, then the Oracle server waits indefinitely until the rows are available. NOWAIT
The NOWAIT keyword is optional in the FOR UPDATE clause. True
What keyword is missing in the given syntax of user-define record? ______ TYPE type_name RECORD (field_declaration[,field_declaration]...); identifier typename ; IS
DECLARE TYPE person_dept IS _________ first_name employees.first_name%TYPE, last_name employees.last_name%TYPE, department_name departments.department_name%TYPE; What is missing in the TYPE section?__________ IS RECORD
In explicit cursor, you need to fetch each row one at a time. True
In explicit cursor, you need to open each row one at a time. False
The exception section begins with the keyword _______. EXCEPTION
Always add ________ whenever there is a possibility of an error occurring. EXCEPTION HANDLERS
Error in PL/SQL is known as ____________. EXCEPTION
The __________ keyword is used in user-defined exception for error notification. RAISE
What is missing in the given exception syntax? ____ EXCEPTION WHEN exception1 [OR exception2 . . .] statement1; statement2; THEN
The OTHERS is an optional exception-handling clause that traps any exceptions that have not been explicitly handled. True
An exception occurs when an error is discovered during the execution of a program that disrupts the normal operation of the program True
When an exception is raised, control immediately shifts to the exception section and the appropriate handler in the exception section is executed. True
Always add exception handlers whenever there is a possibility of an error occurring. True
The user-defined exceptions are declared within the declarative section and are raised implicitly. False
Pragma declaration is used in declaring user-defined exceptions. False
Two methods for raising an exception: Implicit, Explicit
The _______________ is used in non-predefined exception to tell the compiler to associate an exception name with a specific Oracle error PRAGMA EXCEPTION_INIT
What is the first parameter of the PRAGMA EXCEPTION_INIT function? EXCEPTION NAME
PL/SQL record is a composite data type, you can refer to the whole record by its name and/or to individual fields by their names. True
PL/SQL records contain one or more components/fields of any scalar or composite type. True
Types and records are composite structures that can be declared anywhere that scalar variables can be declared. True
You must include the ________ clause in the cursor query so that the rows are locked on OPEN. FOR UPDATE
You must include the FOR UPDATE clause in the cursor query so that the rows are unlocked on OPEN. False
In explicit cursor operations, the set of rows returned by a multiple-row query is called ACTIVE SET. True
The following statements are examples of exception handler. Entering an expiration date that has passed Selecting more than one row into a single variablE Receiving “no rows returned” from a select statement False
When an exception is raised, the rest of the execution section of the PL/SQL block is not executed. True
The ______ returns character data containing the message associated with the error number. SQLERRM
The oracle error number, at the PRAGMA EXCEPTION_INIT function, starts with _____. HYPEN
In non-predefined exception, you must reference the ________ within a WHEN clause in the exception-handling section. Declared exception name
In explicit cursor operations, the set of rows returned by a multiple-row query is called ACTIVE SET. True
The following statements are examples of exception handler. Entering an expiration date that has passed Selecting more than one row into a single variablE Receiving “no rows returned” from a select statement False
When an exception is raised, the rest of the execution section of the PL/SQL block is not executed. True
The ______ returns character data containing the message associated with the error number. SQLERRM
The oracle error number, at the PRAGMA EXCEPTION_INIT function, starts with _____. HYPEN
In non-predefined exception, you must reference the ________ within a WHEN clause in the exception-handling section. Declared exception name
Created by: jxxnixx
 

 



Voices

Use these flashcards to help memorize information. Look at the large card and try to recall what is on the other side. Then click the card to flip it. If you knew the answer, click the green Know box. Otherwise, click the red Don't know box.

When you've placed seven or more cards in the Don't know box, click "retry" to try those cards again.

If you've accidentally put the card in the wrong box, just click on the card to take it out of the box.

You can also use your keyboard to move the cards as follows:

If you are logged in to your account, this website will remember which cards you know and don't know so that they are in the same box the next time you log in.

When you need a break, try one of the other activities listed below the flashcards like Matching, Snowman, or Hungry Bug. Although it may feel like you're playing a game, your brain is still making more connections with the information to help you out.

To see how well you know the information, try the Quiz or Test activity.

Pass complete!
"Know" box contains:
Time elapsed:
Retries:
restart all cards