A package specification that does not need a package body is called a bodiless package. Only subprogram and cursor declarations in a package specification require an underlying implementation in the package body. If a package specification declares only those package constructs that do not require implementation details (e.g., types, constants, variables, exceptions, and call specifications), the corresponding package body does not need to be created. However, the body can be created to initialize constructs declared in the package specification.
Download free practice test for oracle-pl-sql Oracle PL/SQL Developer exam. Download free practice test for Oracle Oracle9i: Program with PL/SQL exam.Posts Tagged ‘1Z0-147’
What is a bodiless package?
October 30th, 2009What is the UTL_TCP Oracle supplied package?
September 6th, 2009The UTL_TCP package enables PL/SQL applications to communicate with external TCP/IP-based servers by using TCP/IP. Because many Internet application protocols are based on TCP/IP, the UTL_TCP package is useful to PL/SQL applications that use Internet protocols.
What is local dependency?
September 6th, 2009In case of local dependencies, the objects are on the same node in the database. The Oracle server automatically manages all local dependencies by using the database’s internal “depends-on” table. When a referenced object is modified, the dependent objects are invalidated. The next time an invalidated object is called, the Oracle server automatically recompiles it. If the automatic recompilation of the object fails, it remains invalid and Oracle server returns a run-time error.
When is the recompilation of a dependent procedure or function successful?
September 6th, 2009If the definition of a referenced table is altered, the dependent procedures and functions become invalid. The dependent procedures and functions need implicit or explicit recompilation in order to become valid.
The recompilation of a dependent procedure or function is successful in the following cases:
What is the %TYPE attribute?
September 5th, 2009When a PL/SQL variable is declared to hold column values, it must be ensured that the variable is of the correct datatype and precision. If not, a PL/SQL error occurs during execution. Rather than explicitly specifying the datatype and precision of a variable, the %TYPE attribute can be used to declare a variable according to another previously declared variable or database column.
What is a subprogram?
September 5th, 2009A subprogram is a named PL/SQL block that can accept parameters and be invoked. There are two types of subprograms: procedures and functions. A procedure is generally used to perform an action, and a function is used to compute a value. Subprograms can be stored at the server or application level. By using Oracle Developer components (Forms, Reports, and Graphics), procedures and functions can be declared as part of an application (a form or report) and be called from other procedures, functions, and triggers within the same application whenever necessary.
What is the syntax for creating a procedure?
September 5th, 2009Following is the syntax for creating a procedure:
[(parameter [mode] datatype, parameter [mode] datatype, ……)]
IS | AS
PL/SQL block;
where,
What is DBMS_JOB Oracle supplied package?
September 5th, 2009The DBMS_JOB Oracle supplied package is used to schedule PL/SQL programs to run. By using the DBMS_JOB package, a user can submit PL/SQL programs for execution, execute PL/SQL programs on a schedule, identify when PL/SQL programs should run, remove PL/SQL programs from the schedule, and suspend PL/SQL programs from running. The DBMS_JOB package can also be used to schedule batch jobs during non-peak hours or to run maintenance programs during times of low usage.
Click here to download 1Z0-146 test study guide and practice question. Click here to get free 1Z0-147 Oracle9i: Program with PL/SQL exam practice questions.What is the UTL_HTTP Oracle supplied package?
September 5th, 2009The UTL_HTTP Oracle supplied package allows a user to make HTTP requests directly from the database. The UTL_HTTP package makes HTTP callouts from SQL and PL/SQL. The UTL_HTTP package can be used to access data on the Internet or to call Oracle Web Server Cartridges. This package contains two entry point functions: REQUEST and REQUEST_PIECES. Both functions take a string URL (uniform resource locator) as a parameter, contact the site, and return the HTML data obtained from the site. The REQUEST function returns up to the first 2000 bytes of data retrieved from the given URL. The REQUEST_PIECES function returns a PL/SQL table of 2000-byte pieces of the data retrieved from the given URL.
What is the trigger restriction on a mutating table?
September 4th, 2009Reading and writing data into tables by using database triggers are subject to a restriction. The restriction is that the session that issues a triggering statement cannot query (SELECT) or modify (INSERT, UPDATE, DELETE, etc.) a mutating table. A mutating table is a table that is currently being modified by an INSERT, UPDATE, or DELETE statement, or a table that might be updated by the effects of a declarative DELETE CASCADE referential integrity constraint. This restriction prevents a trigger from seeing an inconsistent set of data.
