... on the syntax for the date and time types, see the Oracle Database SQL Reference For examples of performing date/time arithmetic, see Oracle Database Application Developer's Guide - Fundamentals. ... indicator (@), youreference the database linknewyork because the procedure is stored in a remotedatabase In the fourth case, you qualify the procedure name and reference a databaselink Trang ... example: DECLARE grade CHAR(1) := 'B'; appraisal VARCHAR2(120); id NUMBER := 8429862; attendance NUMBER := 150; min_days CONSTANT NUMBER := 200; FUNCTION attends_this_school(id NUMBER) RETURN
Ngày tải lên: 08/08/2014, 20:21
... through SQL 12-17Selecting Objects 12-18Inserting Objects 12-21Updating Objects 12-22Deleting Objects 12-22 Trang 12SET TRANSACTION Statement 13-129Where to Find PL/SQL Sample Programs ... 2-2Identifiers 2-3Literals 2-4Comments 2-7 Declarations 2-8Using DEFAULT 2-9Using NOT NULL 2-9Using the %TYPE Attribute 2-9Using the %ROWTYPE Attribute 2-10Restrictions on Declarations 2-12 PL/SQL ... Comparisons 2-17Logical Operators 2-18Boolean Expressions 2-21CASE Expressions 2-24Handling Null Values in Comparisons and Conditional Statements 2-25 Summary of PL/SQL Built-In Functions 2-28 3
Ngày tải lên: 08/08/2014, 20:21
PL/SQL User''''s Guide and Reference 10g Release phần 3 potx
... va1('hello', 'world'); v2 ntb1; v3 ntb2; v4 tb1; v5 tb1; empty table begin v4(1) := 34 ; v4(2) := 46456; v4(456) := 34 3; v2( 23) := v4; v3 (34 ) := va1 (33 , 456, 656, 34 3); 5-22 PL/SQL User's ... values (t1( 934 5, 5 634 , 432 4 53) ); declare type t2 is table of t1; v2 t2; begin select c1 BULK COLLECT INTO v2 from tab1; dbms_output.put_line(v2.count); prints 2 end; / drop table tab1; drop ... you reference individual elements for array operations, or manipulate the collection as a whole. To reference an element, you Array of Integers 321 x(1) 17 x(2) 99 x(3) 407 x(4) 83 x(5) 622 x(6)
Ngày tải lên: 08/08/2014, 20:21
PL/SQL User''''s Guide and Reference 10g Release phần 4 pptx
... consistency of a database, such as the COMMIT, SAVEPOINT, and ROLLBACK statements These are Oracle features, available through all programming languages, that let multiple users work on the database ... like these: DECLARE CURSOR c1 IS SELECT empno, ename, job, sal FROM emp WHERE sal > 2000; CURSOR c2 RETURN dept%ROWTYPE IS SELECT * FROM dept WHERE deptno = 10; The cursor is not a PL/SQL ... without having to change existing references to the cursor. DECLARE CURSOR c1 (low INTEGER DEFAULT 0, high INTEGER DEFAULT 99) IS SELECT Cursor parameters can be referenced only within the query
Ngày tải lên: 08/08/2014, 20:21
PL/SQL User''''s Guide and Reference 10g Release phần 5 potx
... schema_name VARCHAR2, table_name VARCHAR2) ); / CREATE TYPE BODY Num AS STATIC PROCEDURE new_num ( n NUMBER, schema_name VARCHAR2, table_name VARCHAR2) IS sql_stmt VARCHAR2(200); BEGIN sql_stmt ... TYPE sub_t2 under super_t2 (n2 NUMBER, OVERRIDING MEMBER FUNCTION foo RETURN NUMBER) NOT final; / CREATE TYPE BODY sub_t2 AS OVERRIDING MEMBER FUNCTION foo RETURN NUMBER IS BEGIN RETURN 2; END; ... to the same varray DECLARE TYPE Definition IS RECORD ( word VARCHAR2(20), meaning VARCHAR2(200)); TYPE Dictionary IS VARRAY(2000) OF Definition; lexicon Dictionary := Dictionary(); PROCEDURE
Ngày tải lên: 08/08/2014, 20:21
PL/SQL User''''s Guide and Reference 10g Release phần 6 doc
... Hint on page 11-20 ■ Compiling PL/SQL Code for Native Execution on page 11-22 ■ Overview of Table Functions on page 11-28 How PL/SQL Optimizes Your Programs In releases prior to 10g, the PL/SQL ... templates are correct 2 As the oracle user, create the PL/SQL native library directory for each Oracle database Note: You must set up PL/SQL libraries for each Oracle database Shared libraries ... recent PL/SQL language features. (With the many performance improvements in Oracle Database 10g, any code from earlier releases is a candidate for tuning.) ■ Any program that spends a lot of time
Ngày tải lên: 08/08/2014, 20:21
PL/SQL User''''s Guide and Reference 10g Release phần 7 pptx
... VARCHAR2(30), city VARCHAR2(20), state CHAR(2), zip_code VARCHAR2(5) ); CREATE TYPE Student AS OBJECT ( name VARCHAR2(20), home_address Address, phone_number VARCHAR2(10), status VARCHAR2(10), ... Address AS OBJECT ( street VARCHAR2(35), city VARCHAR2(15), state CHAR(2), zip_code INTEGER) / CREATE TYPE Person AS OBJECT ( first_name VARCHAR2(15), last_name VARCHAR2(15), birthday DATE, home_address ... VARCHAR2(20), manager Person, location VARCHAR2(20)) / INSERT INTO department VALUES ('Payroll', Person('Alan', 'Tsai', ), 'Los Angeles') / The newPerson object stored in columnmanager cannot be referenced
Ngày tải lên: 08/08/2014, 20:21
PL/SQL User''''s Guide and Reference 10g Release phần 8 ppsx
... orNVARCHAR2 Examples The following PL/SQL block contains several examples of dynamic SQL: DECLARE sql_stmt VARCHAR2(200); plsql_block VARCHAR2(500); emp_id NUMBER(4) := 7566; salary NUMBER(7,2); ... Statement Trang 2DELETE StatementTheDELETE statement removes entire rows of data from a specified table or view For a full description of the DELETE statement, see Oracle Database SQL Reference. Returns ... the cursor is opened: DECLARE my_sal NUMBER(7,2); n INTEGER(2) := 2; CURSOR emp_cur IS SELECT n*sal FROM emp; BEGIN OPEN emp_cur; n equals 2 here LOOP FETCH emp_cur INTO my_sal; EXIT
Ngày tải lên: 08/08/2014, 20:21
PL/SQL User''''s Guide and Reference 10g Release phần 9 pps
... OBJECT ( street_address VARCHAR2(35), city VARCHAR2(15), state CHAR(2), zip_code INTEGER ); CREATE TYPE Person AS OBJECT ( first_name VARCHAR2(15), last_name VARCHAR2(15), birthday DATE, home_address ... department_name, location_id INTO dept_rec FROM departments WHERE department_id = 20; Trang 22RESTRICT_REFERENCES PragmaRESTRICT_REFERENCES Pragma To be callable from SQL statements, a stored function ... MeetingTyp IS RECORD ( day DATE, time_of TimeTyp, nested record Trang 21 place VARCHAR2(20), purpose VARCHAR2(50) ); meeting MeetingTyp; seminar MeetingTyp; BEGIN seminar.time_of :=
Ngày tải lên: 08/08/2014, 20:21
PL/SQL User''''s Guide and Reference 10g Release phần 10 ppt
... contains references to columns in the table being UPDATE ( subquery TABLE ( subquery2 ) alias table_reference Trang 5UPDATE Statement13-142 PL/SQL User's Guide and Reference updated, the references ... declarationslast_name1 VARCHAR2(10) := 'DOW'; last_name2 VARCHAR2(10) := 'DOW '; note trailing blanksthe followingIF condition is false: IF last_name1 = last_name2 THEN If aVARCHAR2 value is compared ... of the programs to compare performance of PL/SQL across databasereleases For examples of calling PL/SQL from other languages, see Oracle Database Java Developer's Guide and Pro*C/C++ Programmer's
Ngày tải lên: 08/08/2014, 20:21
Oracle Database 10g The Complete Reference phần 2 ppt
... you would need to execute this query: select SUBSTR('123-456-7890', INSTR('123-456-7890', '-',1,1), INSTR('123-456-7890', '-',1,2)- INSTR('123-456-7890', '-',1,1)) from DUAL; By comparison, the ... Thoreau In New Hampshire 320 Psychologica The Ethnic Neighborhood 246 Faded Issues Relational Design And Enthalpy 279 Entropy Wit Intercontinental Relations 20 LENGTH This one is easy ... FirstName, Phone from ADDRESS; LASTNAME FIRSTNAME PHONE Trang 21LOEBEL FRANK 202-555-1414MOORE MARY 718-555-1638 SZEP FELICIA 214-555-8383 ZIMMERMAN FRED 503-555-7491 Suppose you want just
Ngày tải lên: 08/08/2014, 20:21
Client Failover Best Practices for Highly Available Oracle Databases: Oracle Database 11g Release 2 pdf
... practices for Oracle Database 10g Release 2 and Oracle Database 11g Release 1 Other areas to note: RETRY_COUNT is only available in Oracle Database 11g Release. .. is ... prior to Oracle Database 11g Release 2 can only be set in the sqlnet.ora This means that all oracle net aliases inherit the same value In Oracle Database 11g Release 2 it is ... http://download.oracle.com/docs/cd/E11882_01/network.112/e10836/concepts.htm#NETAG175 6 http://download.oracle.com/docs/cd/E11882_01/server.112/e17120/restart001.htm#ADMIN13388 7 http://www.oracle.com/technetwork/database/clustering/overview/awm11gr2-130711.pdf
Ngày tải lên: 23/03/2014, 12:20
Oracle White Paper—Oracle Database 11g Release 2 High Availability pot
... Downtime 20 Online System Reconfiguration 20 Online Upgrades 21 Data Center Migration 22 Online Data and Application Change 22 Managing Oracle Database High Availability Solutions 25 Oracle ... Trang 1November 2010 Oracle Database 11g Release 2 High Availability Trang 2Introduction 1 Oracle’s High Availability Vision 2 The Traditional Way to High Availability 2 The Oracle Way to ... without requiring any modifications Oracle RAC 11g Release 2 Enhancements With Oracle Database 11g Release 2, managing applications under the control of Oracle Clusterware is made easier through
Ngày tải lên: 30/03/2014, 22:20
Oracle Database 2 Day DBA 11g Release- P4 doc
... Series Overview of the Oracle Instance and Instance Management An Oracle database system consists of an Oracle database and an Oracle instance Oracle database—An Oracle database contains a set ... about the database itself called metadata Information is stored persistently in these files Oracle instance—An Oracle instance (also known as a database instance) contains the set of Oracle Database ... 5–1 Oracle Database Background Processes Background Process Description Database writer (DBWn) The database writer writes modified blocks from the database buffer cache to the files on a disk Oracle
Ngày tải lên: 03/07/2014, 01:20
Oracle Database 2 Day DBA 11g Release- P5 docx
... information Trang 4Figure 6–1 Oracle Database Storage StructuresOracle Database can automate much of the management of its structure Oracle Enterprise Manager Database Control (Database Control) provides ... File" on page 6-24 A_LOG3 Group 3 Group 1 Group 2 Group 3 Group 1 Group 2 Disk A A_LOG1 A_LOG2 B_LOG3 B_LOG2 Disk B B_LOG1 Trang 7About Rollback SegmentsRollback segments were database structures ... database creation Oracle Database uses it to manage the database It contains the data dictionary, which is the central set of tables and views used as a read-only reference for a particular database
Ngày tải lên: 03/07/2014, 01:20
Oracle Database 2 Day DBA 11g Release- P7 ppsx
... "About User Privileges and Roles" on page 7-3 ■ Oracle Database 2 Day + Security Guide Administering Database User Accounts 7-16 Oracle Database 2 Day DBA You must assign Nick a tablespace quota ... following URL: http://www .oracle. com/technology/obe/11gr1_ 2day_ dba/ users/users.htm 7 -20 Oracle Database 2 Day DBA 8 Managing Schema Objects... the Database Password Policy This ... example, for a block size of 32K, the maximum CLOB size is 128 terabytes See Also: ■ ■ Oracle Database SQL Language Reference for a complete list of Oracle Database built-in data types,
Ngày tải lên: 03/07/2014, 01:20
oracle database quick installation guide 10g release 1 (10.1.0.3) for the solaris operating system (x86)
... $SHELL 2 Oracle Database Quick Installation Guide Oracle Database Quick Installation Guide, 10g Release 1 (10.1.0.3) for Solaris Operating System (x86) Part No. B139 72- 01 Copyright â 1996, 20 04, Oracle. ... to support Oracle Database 10g ■ Install the Oracle Database 10g software on a local file system ■ Configure a general-purpose Oracle database that uses the local file system for database file ... the Oracle Database 10g Companion CD which improves the performance of Oracle Database 10g on your system Results of a Successful Installation After you successfully install Oracle Database 10g: ■...
Ngày tải lên: 07/04/2014, 15:52
PL/SQL Packages and Types Reference 10g Release 1 (10.1) Part No. B10802-01 December 2003 .PL/SQL
... Subprograms 121 -2 122 DEBUG_EXTPROC Using DEBUG_EXTPROC 122 -2 Summary of DEBUG_EXTPROC Subprograms 122 -4 123 HTF Using HTF 123 -2 Summary of Tags 123 -4 Summary of HTF Subprograms 123 -9 124 HTMLDB_CUSTOM_AUTH Documentation ... Types ■ Updated Packages ■ Updated Types ■ Oracle9 i Release 2 (9 .2) New Features ■ Oracle9 i Release 1 (9.0.1) New Features ■ Oracle8 i Release 2 (8.1.6) New Features ■ Oracle8 i Release 1 (8.1.5) New Features ... Subprograms 170 -2 171 Oracle Streams AQ TYPEs Summary of Types 171 -2 1 72 Database URI TYPEs Summary of URITYPE Supertype Subprograms 1 72- 2 Summary of HTTPURITYPE Subtype Subprograms 1 72- 9 Summary...
Ngày tải lên: 24/10/2013, 17:15