built in objects in javascript pdf

Plug-in JavaScript pdf

Plug-in JavaScript pdf

... designing, writing, and maintaining software for companies ranging from small start-ups to large corporations He currently designs and maintains websites and web applications using PHP, JavaScript, ... again been a pleasure xxiii www.it-ebooks.info This page intentionally left blank www.it-ebooks.info Introduction J avaScript is the free language built into all modern browsers including Internet ... within your web browser Tip╇ If you are interested in PHP programming, my book Plug -in PHP (McGraw-Hill/Professional, 2010) contains 100 PHP plug-ins and an entire chapter devoted to installing...

Ngày tải lên: 08/03/2014, 10:20

433 6,6K 0
Tài liệu Oracle Developer Built-in Package Reference pdf

Tài liệu Oracle Developer Built-in Package Reference pdf

... (servers) in three ways: T importing data T exporting data T executing commands against the DDE Server In this release, DDE does not include the following: T data linking (advise transaction) Oracle ... constructs within the Tool_Err package to handle errors generated by the Debug.Interpret built- in: PROCEDURE error_handler IS /* Call a built- in that interprets a command */ BEGIN Debug.Interpret('.ATTACH ... Developer Built- in Package Reference from the original value retrieved by EXEC_SQL.Define_Column Oracle Developer Built- in Package Reference 15 Using the EXEC_SQL package Executing arbitrary SQL against...

Ngày tải lên: 21/12/2013, 06:16

134 489 1
Oracle Built−in Packages- P5 pdf

Oracle Built−in Packages- P5 pdf

... Packages 13 Chapter Introduction 1.3 Using Built in Packages There are several steps involved in using a built in package: Install the built in package into the database In most cases, this will ... functionality to maintain snapshots, snapshot groups, and snapshot logs This includes refreshing snapshots, changing refresh intervals, adding and removing snapshots from snapshot groups, and purging uneccessary ... You can use DBMS_OFFLINE_SNAPSHOT to instantiate a new snapshot using an export of a master table instead of using the CREATE SNAPSHOT command In some cases, this type of instantiation is quicker...

Ngày tải lên: 07/07/2014, 00:20

5 365 1
Oracle Built−in Packages- P10 pdf

Oracle Built−in Packages- P10 pdf

... JENNIFER 1.2 Built in Packages Covered in This Book 1.4 Examining Built in Package Source Code Copyright (c) 2000 O'Reilly & Associates All rights reserved 1.3.7 Accessing Built in Packaged Technology ... file containing the STANDARD package, standard.sql Dependencies The built in package file can provide you with other valuable information, including which built in packages and/or other objects ... already be in the database before you can proceed with the installation Where you find all of this interesting code? If you are working in a UNIX environment, the files that define the built in packages...

Ngày tải lên: 07/07/2014, 00:20

5 311 0
Oracle Built−in Packages- P16 pdf

Oracle Built−in Packages- P16 pdf

... DBMS_SQL.EXECUTE_AND_FETCH (c IN INTEGER ,exact IN BOOLEAN DEFAULT FALSE) RETURN INTEGER; Parameters are summarized in the following table Parameter Description c The handle or pointer to the cursor originally returned ... DBMS_SQL.COLUMN_VALUE (c IN INTEGER, position IN INTEGER, value OUT , [, column_error OUT NUMBER] [, actual_length OUT INTEGER ]); The COLUMN_VALUE parameters are summarized in the following table ... examine the behavior of this built in function 2.3.7 Fetching Rows 68 [Appendix A] What's on the Companion Disk? 2.3.8 Retrieving Values Oracle: The Show Me Technology If there is one thing I...

Ngày tải lên: 07/07/2014, 00:20

5 234 0
Oracle Built−in Packages- P18 pdf

Oracle Built−in Packages- P18 pdf

... value can come in handy: /* Filename on companion disk: file errpos.sql */* DECLARE cur BINARY_INTEGER := DBMS_SQL.OPEN_CURSOR; errpos BINARY_INTEGER; fdbk BINARY_INTEGER; BEGIN DBMS_SQL.PARSE ... FETCH_ROWS in order to obtain meaningful results You will most likely use this function when fetching from within a loop: CREATE OR REPLACE PROCEDURE show_n_emps (lim IN INTEGER) IS cur PLS_INTEGER ... procedure are summarized in the following table Parameter Description c The pointer to the cursor col_cnt The number of columns in the cursor, which equals the number of rows defined in the PL/SQL table...

Ngày tải lên: 07/07/2014, 00:20

5 322 1
Oracle Built−in Packages- P28 pdf

Oracle Built−in Packages- P28 pdf

... v_line VARCHAR2(2000); v_space PLS_INTEGER; BEGIN /* Load the index−by tables from the file */ fid := UTL_FILE.FOPEN (loc, file, 'R'); BEGIN LOOP UTL_FILE.GET_LINE (fid, v_line); v_space := INSTR ... executing the fileupd.tst script to confirm the results In this case, each row in the empnos index−by table identifies a specific record in the database; the corresponding row in the sals index−by ... processing: /* Filename on companion disk: empfetch.spp */* CREATE OR REPLACE PACKAGE empfetch IS PROCEDURE rows (numrows _in IN INTEGER, where_clause _in IN VARCHAR2 := NULL, append_rows _in IN BOOLEAN...

Ngày tải lên: 07/07/2014, 00:20

5 198 0
Oracle Built−in Packages- P32 pdf

Oracle Built−in Packages- P32 pdf

... pack_send_friend (friend_rec _IN IN friend_rectype ,pipename _IN IN VARCHAR2) IS call_status INTEGER; BEGIN /* ||notice the PACK_MESSAGE overloading */ DBMS_PIPE.PACK_MESSAGE(friend_rec _IN. name); DBMS_PIPE.PACK_MESSAGE(friend_rec _IN. birthdate); ... handlers of programs using UNPACK_MESSAGE procedures • At the beginning of programs designed to pack specific messages into the buffer using PACK_MESSAGE procedures In handling unpack exceptions, ... following restrictions on calling PURGE: • Pipenames are limited to 128 bytes in length, are case−insensitive, and cannot contain NLS characters • Pipenames must not begin with "ORA$", as these names...

Ngày tải lên: 07/07/2014, 00:20

5 282 0
Oracle Built−in Packages- P36 pdf

Oracle Built−in Packages- P36 pdf

... (pipename _IN IN VARCHAR2 ,timeout_secs _IN IN INTEGER := 60 ,replace_message_TF IN BOOLEAN := TRUE); /* || encapsulates DBMS_PIPE.CREATE_PIPE and returns || FALSE if ORA−23322 is raised, indicating ... concept of "packing" message items into a buffer suggested that perhaps the items were also being compressed somehow If this were true, then message items containing strings of repeating characters ... sending or receiving Receiving message one from the pipe overlaid message two in the buffer It is interesting that the second call to SEND_MESSAGE sent the message that was just unpacked into...

Ngày tải lên: 07/07/2014, 00:20

5 209 0
Oracle Built−in Packages- P64 pdf

Oracle Built−in Packages- P64 pdf

... sale IS FUNCTION onsale (product _in IN VARCHAR2) RETURN BOOLEAN; PROCEDURE mark_for_sale (product _in IN VARCHAR2, price _in IN NUMBER, starts_on IN DATE, ends_on IN DATE); PROCEDURE show_expired_sales; ... a certain amount of time has passed These features come in handy when messages in your queue have a "window of applicability" (in other words, when there is a specific period of time in which ... disk: aqtiming.tst */* DECLARE FUNCTION seconds_from_now (num IN INTEGER) RETURN DATE IS BEGIN RETURN SYSDATE + num / (24 * 60 * 60); END; PROCEDURE show_sales_status (product _in IN VARCHAR2)...

Ngày tải lên: 07/07/2014, 00:20

5 299 0
Oracle Built−in Packages- P70 pdf

Oracle Built−in Packages- P70 pdf

... line from the file No IS_OPEN Returns TRUE if the file is already open No NEW_LINE Inserts a newline mark in the file at the end of the current line No PUT Puts text into the buffer No PUT_LINE ... directory in the INIT.ORA file for the database instance The INIT.ORA location is a valid directory or area specification, as shown in these examples: • In Windows NT: 'k:\common\debug' • In UNIX: ... this security by limiting access to files that reside in one of the directories specified in the INIT.ORA file for the database instance on which UTL_FILE is running 6.2.1 Getting Started with UTL_FILE...

Ngày tải lên: 07/07/2014, 00:20

5 192 0
Oracle Built−in Packages- P72 pdf

Oracle Built−in Packages- P72 pdf

... line _in IN VARCHAR2) IS BEGIN UTL_FILE.PUT (file _in, line _in) ; UTL_FILE.NEW_LINE (file _in) ; END; By using add_line instead of PUT, you will not have to worry about remembering to call NEW_LINE ... line in the opened file, but does not append a line terminator You must use the NEW_LINE procedure to terminate the current line or use PUT_LINE to write out a complete line with a line termination ... current line So if you want to insert a blank line in your file, execute the following call to NEW_LINE: UTL_FILE.NEW_LINE (my_file, 2); If you pass or a negative number for lines, nothing is written...

Ngày tải lên: 07/07/2014, 00:20

5 258 0
Oracle Built−in Packages- P86 pdf

Oracle Built−in Packages- P86 pdf

... type, are the following: PROCEDURE DBMS_LOB.READ (lob_loc IN BLOB | BFILE, amount IN OUT BINARY_INTEGER, offset IN INTEGER, buffer OUT RAW); PROCEDURE DBMS_LOB.READ (lob_loc IN CLOB CHARACTER SET ... input The function returns the length (in bytes or characters) of the input LOB, or it returns NULL if the input LOB is NULL or invalid 8.3.2 Reading and Examining LOBs 417 [Appendix A] What's on ... DBMS_LOB.GETLENGTH (lob_loc IN BLOB) RETURN INTEGER; FUNCTION DBMS_LOB.GETLENGTH (lob_loc IN CLOB CHARACTER SET ANY_CS) RETURN INTEGER; FUNCTION DBMS_LOB.GETLENGTH (lob_loc IN BFILE) RETURN INTEGER; The lob_loc...

Ngày tải lên: 07/07/2014, 00:20

5 250 0
Oracle Built−in Packages- P90 pdf

Oracle Built−in Packages- P90 pdf

... ,relative_fno IN NUMBER ,block_number IN NUMBER ,row_number IN NUMBER) RETURN ROWID; Parameters are summarized in the following table Parameter Description 9.1.3 The DBMS_ROWID Interface 437 ... block within the data file • The row in the data block (where the first row is 0) Usually (and always in Oracle7), a ROWID will uniquely identify a row of data Within Oracle8, however, rows in different ... segment Any schema object found in the same segment, such as a cluster of tables, will have the same object number In Oracle8, then, a ROWID contains the following information: • The data object...

Ngày tải lên: 07/07/2014, 00:20

5 216 0
Oracle Built−in Packages- P91 pdf

Oracle Built−in Packages- P91 pdf

... 9.1.3.11.2 Example Interestingly, you can call this numeric function as a kind of Boolean function within SQL Suppose that I want to find all the invalid ROWIDs prior to converting them from restricted ... slicing and dicing of raw data, and bit−fiddling, all described in the next section Other than replication support, there are a number of advantages Oracle can offer in storing raw data in the ... is not already installed, check to see if these files are in your admin subdirectory If so, you can connect as SYS and install this package by running the two scripts in the following order: SQL>...

Ngày tải lên: 07/07/2014, 00:20

5 283 0
Oracle Built−in Packages- P96 pdf

Oracle Built−in Packages- P96 pdf

... or indirectly 9.2.5.3.2 Example In the following procedure, I use the SELECT_OBJECT built in to retrieve the object based on the passed in reference: CREATE OR REPLACE PROCEDURE show_emp (emp _in ... CREATE OR REPLACE PROCEDURE show_emp (emp _in IN REF employee_t) IS emp_obj employee_t BEGIN UTL_REF.SELECT_OBJECT (emp _in, emp_obj); DBMS_OUTPUT.PUT_LINE (emp_obj.name); END; 9.2.5.4 The UTL_REF.UPDATE_OBJECT ... Note the following restrictions on calling SELECT_OBJECT: • The program does not assert a purity level with the RESTRICT_REFERENCES pragma • You cannot call this program from within an SQL statement,...

Ngày tải lên: 07/07/2014, 00:20

5 214 0
Oracle Built−in Packages- P97 pdf

Oracle Built−in Packages- P97 pdf

... the individual components No or tokens in a string PORT_STRING Returns a string describing the Yes platform and version of the current database TABLE_TO_COMMA Moves the names in a PL/SQL table into ... INDEX BY BINARY_INTEGER; DBMS_UTILITY.DBLINK_ARRAY This PL/SQL table type is used to store database links and is defined as follows: TYPE DBMS_UTILITY.DBLINK_ARRAY IS TABLE OF VARCHAR2(128) INDEX ... No In addition to the functions and procedures defined in the package, DBMS_UTILITY also declares five PL/SQL tables that are used either as input into or output from the package's built in modules...

Ngày tải lên: 07/07/2014, 00:20

5 247 0
Oracle Built−in Packages- P102 pdf

Oracle Built−in Packages- P102 pdf

... processed in a call to psdesc.args In other words, it will examine whatever is sitting in the individual arrays • A procedure that returns information about a specified argument (by position in the ... Here are a few lines from that code: c_varchar2 c_number c_object_type CONSTANT PLS_INTEGER := 1; CONSTANT PLS_INTEGER := 2; CONSTANT PLS_INTEGER := 121; • A PL/SQL table containing names to go ... parameter modes These are defined as follows: c _in CONSTANT PLS_INTEGER := 0; c_out CONSTANT PLS_INTEGER := 1; c_inout CONSTANT PLS_INTEGER := 2; • A user−defined record type that parallels the set of...

Ngày tải lên: 07/07/2014, 00:20

5 211 0
Oracle Built−in Packages- P104 pdf

Oracle Built−in Packages- P104 pdf

... referenceable table replacing the original one Any references will then point to the objects in the new table instead of to the objects in the original table With DBMS_DDL, available only in Oracle8, you ... 'INVALID', name _in IN VARCHAR2 := '%', type _in IN VARCHAR2 := '%', schema _in IN VARCHAR2 := USER) IS v_objtype VARCHAR2(100); CURSOR obj_cur IS SELECT owner, object_name, object_type FROM ALL _OBJECTS ... variable for the object type because the definition of the OBJECT_TYPE column in ALL _OBJECTS is as VARCHAR2(12) When I combine PACKAGE and SPECIFICATION into a single "type" for purposes of the recompilation,...

Ngày tải lên: 07/07/2014, 00:20

5 229 0
Oracle Built−in Packages- P109 pdf

Oracle Built−in Packages- P109 pdf

... all db links available to user */ CURSOR all_links_cur IS SELECT db_link FROM all_db_links; BEGIN /* try all links and close the ones you can */ FOR dblink_rec IN all_links_cur LOOP BEGIN DBMS_SESSION.CLOSE_DATABASE_LINK(dblink_rec.db_link); ... IN BOOLEAN DEFAULT FALSE) IS /* declare exceptions for ORA errors */ dblink _in_ use EXCEPTION; PRAGMA EXCEPTION_INIT(dblink _in_ use,−2080); dblink_not_open EXCEPTION; PRAGMA EXCEPTION_INIT(dblink_not_open,−2081); ... DBMS_SESSION.CLOSE_DATABASE_LINK(dblink_rec.db_link); EXCEPTION WHEN dblink_not_open THEN null; WHEN dblink _in_ use THEN IF force_with_commit_TF THEN COMMIT; DBMS_SESSION.CLOSE_DATABASE_LINK(dblink_rec.db_link); END...

Ngày tải lên: 07/07/2014, 00:20

5 183 0
w