Oracle 1Z0-183 key terms
Oracle 1Z0-183 · Get comfortable with the vocabulary.
- PL/SQL block
- Related: Anonymous block, Declaration section
The basic unit of PL/SQL code, made up of an optional declaration section, a mandatory executable section, and an optional exception-handling section, ending with END.
- Anonymous block
- Related: PL/SQL block
A PL/SQL block without a name that is not stored in the database; it is compiled and run once, usually submitted from a client tool.
- Declaration section
- Related: PL/SQL block, Scalar variable
The optional part of a PL/SQL block, starting with DECLARE, where variables, constants, cursors, types, and local subprograms are defined before executable statements run.
- Scalar variable
- Related: %TYPE
A variable that holds one value of a single data type, such as NUMBER, VARCHAR2, DATE, or BOOLEAN, rather than a collection or a record.
- %TYPE
- Related: Scalar variable, %ROWTYPE
An attribute that gives a variable the same data type as a specified table column or another variable, so the declaration stays correct when the referenced type changes.
- Bind variable
- Related: Anonymous block
A variable created in the host environment, such as SQL*Plus, that PL/SQL references with a colon prefix and that can pass values into and out of a block.
- Implicit cursor
- Related: SQL%ROWCOUNT, Explicit cursor
The internal cursor Oracle opens automatically for every SQL data-manipulation statement run from PL/SQL, whose status is exposed through attributes such as SQL%ROWCOUNT and SQL%FOUND.
- SQL%ROWCOUNT
- Related: Implicit cursor
An implicit cursor attribute that returns the number of rows affected by the most recently run SQL statement, or the number fetched so far by a cursor.
- RETURNING INTO clause
- Related: Implicit cursor, DML trigger
A clause added to INSERT, UPDATE, or DELETE that returns affected column values into PL/SQL variables, avoiding a separate query to retrieve them.
- BULK COLLECT
- Related: FORALL, Associative array
A clause that fetches multiple rows from a query into one or more collections in a single operation, reducing context switches between the PL/SQL and SQL engines.
- FORALL
- Related: BULK COLLECT, Associative array
A PL/SQL statement that sends one DML operation for all elements of a collection in a single SQL call, improving performance compared with DML inside a loop.
- IF-THEN-ELSIF
- Related: CASE expression
A conditional control structure that runs one of several statement groups depending on which Boolean condition is true first, with an optional ELSE branch when none match.
- CASE expression
- Related: IF-THEN-ELSIF
A control structure that returns one value chosen from one or more WHEN branches, evaluated either by comparing a selector or by testing Boolean conditions.
- WHILE loop
- Related: FOR loop, CONTINUE statement
A loop that tests a Boolean condition before each iteration and keeps running its body while the condition remains true; it may run zero times.
- FOR loop
- Related: Cursor FOR loop, WHILE loop
A loop that iterates over a fixed range of integers or over rows returned by a cursor, with the loop index or record implicitly declared and scoped to the loop.
- CONTINUE statement
- Related: WHILE loop, FOR loop
A statement that ends the current loop iteration immediately and transfers control to the next iteration, optionally only when a specified WHEN condition is true.
- Record type
- Related: %ROWTYPE, Associative array
A composite data type that groups related fields, each with its own data type, under one name so they can be handled as a single variable.
- %ROWTYPE
- Related: Record type, Explicit cursor
An attribute that declares a record variable whose fields match the columns of a table, view, or explicit cursor, allowing a row to be fetched into one structure.
- Associative array
- Related: VARRAY, BULK COLLECT
A collection type whose elements are accessed by a unique index key, which may be an integer or a string, and which is not stored in the database schema.
- VARRAY
- Related: Associative array
A variable-size array collection type with a fixed maximum number of elements and sequential integer subscripts, which can also be stored as a database column.
- Explicit cursor
- Related: Cursor FOR loop, Implicit cursor
A named work area declared in PL/SQL for a query, which the developer opens, fetches rows from, and closes, with attributes reporting its current state.
- Cursor FOR loop
- Related: Explicit cursor, FOR loop
A loop that implicitly opens a cursor, fetches each row into a record, runs the loop body, and closes the cursor when no rows remain.
- Cursor attribute
- Related: Explicit cursor, SQL%ROWCOUNT
A property such as %FOUND, %NOTFOUND, %ISOPEN, or %ROWCOUNT that reports the state or row count of an explicit or implicit cursor.
- Predefined exception
- Related: User-defined exception, Exception propagation
A named error condition that Oracle raises automatically for common runtime problems, such as NO_DATA_FOUND or ZERO_DIVIDE, and that developers can handle by name.
- User-defined exception
- Related: Predefined exception, RAISE_APPLICATION_ERROR
An exception declared by the developer in a PL/SQL block or package, raised explicitly with RAISE, and handled in an exception section like a predefined error.
- RAISE_APPLICATION_ERROR
- Related: User-defined exception, Exception propagation
A built-in procedure that stops execution and returns a user-defined error number and message to the caller, using numbers from minus 20000 through minus 20999.
- Exception propagation
- Related: Predefined exception, User-defined exception
The process by which an unhandled exception moves outward from the block where it occurred to enclosing blocks or the calling environment until a handler catches it.
- Stored procedure
- Related: Function, Package specification
A named PL/SQL subprogram stored in the database that performs an action, can accept parameters, and is invoked as a standalone statement rather than inside an expression.
- Function
- Related: Stored procedure, Package specification
A named PL/SQL subprogram stored in the database that computes and returns a value, so it can be called wherever an expression of its return type is allowed.
- Package specification
- Related: Package body
The public interface of a PL/SQL package, declaring the subprograms, types, variables, and constants visible to callers; it must be created before the package body.
- Package body
- Related: Package specification
The implementation part of a PL/SQL package, containing the code for public subprograms plus private declarations that are hidden from callers outside the package.
- DBMS_OUTPUT
- Related: UTL_FILE
An Oracle-supplied package used to write text to an output buffer that a client tool can display, commonly for debugging and simple reporting from PL/SQL.
- UTL_FILE
- Related: DBMS_OUTPUT
An Oracle-supplied package that lets PL/SQL read from and write to operating-system text files on the database server, subject to directory object permissions.
- DML trigger
- Related: INSTEAD OF trigger, :NEW and :OLD
A database trigger that fires automatically in response to INSERT, UPDATE, or DELETE statements on a table or view, running before or after each row or statement.
- INSTEAD OF trigger
- Related: DML trigger
A trigger defined on a view that runs in place of the triggering DML statement, commonly used to make a non-updatable view support inserts, updates, and deletes.
- :NEW and :OLD
- Related: DML trigger
Pseudo-records available in row-level triggers that expose the new column values being written and the old values being replaced or deleted.
- Mutating table
- Related: DML trigger
A table that a row-level trigger queries or modifies while that same table is being changed by the triggering statement, which can cause an Oracle runtime error.
- Dependency
- Related: INVALID status, Conditional compilation
A relationship in which one stored PL/SQL object relies on another, such as a procedure referencing a table or a package body calling a function, and which affects recompilation.
- INVALID status
- Related: Dependency
The state of a stored PL/SQL object whose dependent objects have changed, meaning it must be recompiled successfully before it can be executed again.
- Conditional compilation
- Related: Dependency
A compiler feature that includes or excludes PL/SQL source text based on selection directives such as $IF, $THEN, and $ELSE, often for version-specific or debugging code.