0

new features for dbas and developers

Tài liệu Apress Oracle Database 11g New Features for DBAs and Developers Nov 2007 pdf

Tài liệu Apress Oracle Database 11g New Features for DBAs and Developers Nov 2007 pdf

Cơ sở dữ liệu

... 11g New Features for DBAs and Developers ■■■ Sam R Alapati and Charles Kim Alapati_910-1FRONT.fm Page ii Thursday, October 25, 2007 7:01 AM Oracle Database 11g: New Features for DBAs and Developers ... enhancements for 11g, and thus we dedicate a chapter to reviewing the new features in managing ASM Please refer to Chapter for the new ASM features Both the new system privilege sysasm and the new operating ... and SA roles via the sysasm role • New manageability options for the check, mount, and drop commands • A copy command to copy files between diskgroups, across ASM instances, and between ASM and...
  • 632
  • 1,813
  • 1
Trả lời bài tập ORACLE PL/SQL

Trả lời bài tập ORACLE PL/SQL

Kỹ thuật lập trình

... vòng lặp PL/SQL? Các kiểu vòng lặp có sẵn PL/SQl là: • Lệnh loop-exit • Lệnh while-loop • Lệnh for- loop Phân biệt trỏ (cursor) ngầm trỏ tường minh? Cursor ngầm đòa không đặt tên lệnh SQL xử lý...
  • 2
  • 3,060
  • 42
Giáo trình SQL và PL/SQL

Giáo trình SQL và PL/SQL

Kỹ thuật lập trình

... 1000 AND 2000 AND JOB = MANAGER; SELECT DEPTNO, JOB, ENAME, SAL FROM EMP WHERE SAL BETWEEN 1000 AND 2000 OR JOB = MANAGER; SELECT DEPTNO, JOB, EMPNO, ENAME, SAL FROM EMP WHERE SAL > 1500 AND JOB ... Chỉnh định dạng nhãn column COLUMN ename HEADING Employee|Name FORMAT A15 COLUMN sal JUSTIFY LEFT FORMAT $ 99,990.00 COLUMN hiredate FORMAT A9 NULL Not hired Vd: Hiển thị định dạng column COLUMN ... FROM EMP WHERE SAL BETWEEN 1000 AND 2000 ; Truy vấn liệu với nhiều điều kiện Mệnh đề WHERE cho phép ghép đợc nhiều điều kiện thông qua toán tử logic AND/ OR Toán tử AND yêu cầu liệu phải thoả mãn...
  • 78
  • 620
  • 5
Oracle PL SQL cơ bản

Oracle PL SQL cơ bản

Cơ sở dữ liệu

... phải có số liệu Foreign Key Là column tập columns có tham chiếu tới bảng bảng khác Foreign Key xác định mối quan hệ bảng Constraints Là ràng buộc liệu bảng thuộc database Ví dụ: Foreign Key, Primary ... hutonline.net Oracle - SQL PL/SQL COLUMN ename HEADING ‘Employee|Name’ FORMAT A15 COLUMN sal JUSTIFY LEFT FORMAT $ 99,990.00 COLUMN hiredate FORMAT A9 NULL ‘ Not hired’ Ví dụ 2: Hiển thị định dạng column ... AND/ OR Toán tử AND yêu cầu liệu phải thoả mãn điều kiện Toán tử OR cho phép liệu thoả mãn điều kiện Ví dụ: SELECT DEPTNO, JOB, ENAME, SAL FROM EMP WHERE SAL BETWEEN 1000 AND 2000 AND JOB = ‘MANAGER’;...
  • 105
  • 871
  • 2
Một số ưu điểm khi sử dụng PL/SQL để truy xuất dữ liệu

Một số ưu điểm khi sử dụng PL/SQL để truy xuất dữ liệu

Cơ sở dữ liệu

... vòng lặp PL/SQL? Các kiểu vòng lặp có sẵn PL/SQl là: • Lệnh loop-exit • Lệnh while-loop • Lệnh for- loop Phân biệt trỏ (cursor) ngầm trỏ tường minh? Cursor ngầm đòa không đặt tên lệnh SQL xử lý...
  • 2
  • 2,566
  • 18
Giới thiệu chung về Oracle PL SQL cơ bản

Giới thiệu chung về Oracle PL SQL cơ bản

Cơ sở dữ liệu

... phải có số liệu Foreign Key Là column tập columns có tham chiếu tới bảng bảng khác Foreign Key xác định mối quan hệ bảng Constraints Là ràng buộc liệu bảng thuộc database Ví dụ: Foreign Key, Primary ... DNAME 10 ACCOUNTING 20 RESEARCH 20 30 SALES MARTIN 30 40 OPERATIONS 7698 BLAKE 30 7782 Row CLARK 10 Foreign key Primary key Column Hình vẽ Minh hoạ thành phần logic database 1.2.2 Các đối tượng database...
  • 4
  • 657
  • 1
Giới thiệu ngôn ngữ PL-SQL

Giới thiệu ngôn ngữ PL-SQL

Cơ sở dữ liệu

... v_sales_count := sales_count + 1; ELSIF (v_dept.dname != 'SALES' )AND( v_Dept.loc!='NEWYORK') THEN Cập nhật liệu cursor UPDATE Dept SET loc = 'NEWYORK' WHERE CURRENT OF c_Dept; Đếm số lượng ghi cập ... DECLARE Khai báo cursor, có cho phép cập nhật liệu CURSOR c_Dept IS SELECT dname, loc FROM dept FOR UPDATE OF loc; Khai báo biến lưu trữ liệu v_Dept c_Dept%ROWTYPE; v_sales_count NUMBER:=0; ... Thoát khỏi lệnh lặp duyệt hết tất liệu EXIT WHEN c_Dept %notfound; IF (v_Dept.dname = 'SALES' )AND( v_Dept.loc!='DALLAS') THEN Cập nhật liệu cursor Trang 80 Quyển sách upload tại: hutonline.net...
  • 8
  • 703
  • 4
GIỚI THIỆU NGÔN NGỮ PL-SQL

GIỚI THIỆU NGÔN NGỮ PL-SQL

Kỹ thuật lập trình

... v_sales_count := sales_count + 1; ELSIF (v_dept.dname != 'SALES' )AND( v_Dept.loc!='NEWYORK') THEN Cập nhật liệu cursor UPDATE Dept SET loc = 'NEWYORK' WHERE CURRENT OF c_Dept; Đếm số lượng ghi cập ... Thoát khỏi lệnh lặp duyệt hết tất liệu EXIT WHEN c_Dept %notfound; IF (v_Dept.dname = 'SALES' )AND( v_Dept.loc!='DALLAS') THEN Cập nhật liệu cursor Trang 80 Quyển sách upload tại: hutonline.net ... DECLARE Khai báo cursor, có cho phép cập nhật liệu CURSOR c_Dept IS SELECT dname, loc FROM dept FOR UPDATE OF loc; Khai báo biến lưu trữ liệu v_Dept c_Dept%ROWTYPE; v_sales_count NUMBER:=0;...
  • 8
  • 523
  • 2
Giới thiệu ngôn gn]c PL-SQL

Giới thiệu ngôn gn]c PL-SQL

Kỹ thuật lập trình

... v_sales_count := sales_count + 1; ELSIF (v_dept.dname != 'SALES' )AND( v_Dept.loc!='NEWYORK') THEN Cập nhật liệu cursor UPDATE Dept SET loc = 'NEWYORK' WHERE CURRENT OF c_Dept; Đếm số lượng ghi cập ... DECLARE Khai báo cursor, có cho phép cập nhật liệu CURSOR c_Dept IS SELECT dname, loc FROM dept FOR UPDATE OF loc; Khai báo biến lưu trữ liệu v_Dept c_Dept%ROWTYPE; v_sales_count NUMBER:=0; ... Thoát khỏi lệnh lặp duyệt hết tất liệu EXIT WHEN c_Dept %notfound; IF (v_Dept.dname = 'SALES' )AND( v_Dept.loc!='DALLAS') THEN Cập nhật liệu cursor Trang 80 Oracle - SQL PL/SQL UPDATE Dept SET...
  • 8
  • 333
  • 0
Giới thiệu giáo trình SQL và PL-SQL

Giới thiệu giáo trình SQL và PL-SQL

Kỹ thuật lập trình

... Primary Key thiết phải có số liệu Foreign Key column tập column tham chiếu tới bảng bảng khác Foreign Key xác định mối quan hệ bảng Constraint ràng buộc liệu, ví dụ Foreign Key, Primary Key Đào ... WARD 30 7566 JONES 20 30 SALES 7654 MARTIN 30 40 OPERATIONS 7698 BLAKE 30 7782 Row SMITH CLARK 10 Foreign key Primary key Column 1.5 Danh sách rút gọn đối tợng CSDL Table cấu trúc lu trữ CSDL quan...
  • 4
  • 371
  • 0
Tổng quan về PL-SQL và Procedure Builder

Tổng quan về PL-SQL và Procedure Builder

Kỹ thuật lập trình

... bản: SQL PL/SQL Trang 64 Công ty cổ phần đầu t phát triển công nghệ - FPT Giáo trình SQL PL/SQL New: Tạo Name: Tìm theo program unit Delete: Xoá Close: Đóng Help: Trợ giúp Apply Revert PL/SQL ... vết sửa lỗi Program Unit Tìm vết, sửa lỗi Program Unit PL/SQL interpreter gồm có: Toolbar Command line Tạo breakpoint (nhấn đúp vào số dòng lệnh) để dừng đoạn chơng trình, kiểm tra biến runtime,...
  • 4
  • 411
  • 1
Tổng quan về PL-SQL và Procedure builder

Tổng quan về PL-SQL và Procedure builder

Kỹ thuật lập trình

... LOOP; Ví dụ 2: LOOP EXIT WHEN total_sals = 60000; END LOOP; 18.3 FOR FOR control_variable IN [REVERSE] low_value high_value Ví dụ FOR I IN 2000 LOOP INSERT INTO numbered_rows VALUES (i); preserve_i:=i; ... vết sửa lỗi Program Unit Tìm vết, sửa lỗi Program Unit PL/SQL interpreter gồm có: Toolbar Command line Tạo breakpoint (nhấn đúp vào số dòng lệnh) để dừng đoạn chơng trình, kiểm tra biến runtime, ... bản: SQL PL/SQL Trang 64 Công ty cổ phần đầu t phát triển công nghệ - FPT Giáo trình SQL PL/SQL New: Tạo Name: Tìm theo program unit Delete: Xoá Close: Đóng Help: Trợ giúp Apply Revert PL/SQL...
  • 5
  • 460
  • 1
OCP: Oracle8i DBA SQL and PL/SQL Study Guide

OCP: Oracle8i DBA SQL and PL/SQL Study Guide

Cơ sở dữ liệu

... operand +2 and –5 are examples They have the format Binary Operator Binary operators have two operands + and x are examples They have the format ... to store date and time information This datatype can be converted to other forms for viewing, and it has a number of special functions and properties that make date manipulation and calculations ... default format for character dates is defined by the NLS_DATE_FORMAT initialization parameter and can be overridden for the current session Oracle defaults this format to be DD-MON-YY; this is the format...
  • 505
  • 377
  • 0
Giáo trình SQL và PL SQL part 6

Giáo trình SQL và PL SQL part 6

Kỹ thuật lập trình

... [GROUP BY expr] [HAVING condition] [UNION/UNION ALL/INTERSET/MINUS select command] [ORDER BY expr/position [DESC/ASC]] [FOR UPDATE OF [column]] [NOTWAIT] Các thành phần câu lệnh SELECT DISTINCT ALL ... PRIOR condition] [GROUP BY expr] [HAVING condition] [UNION/UNION ALL/INTERSET/MINUS select command] [ORDER BY expr/position [DESC/ASC]] Trong đó: START WITH Đặc tả điểm đầu hình Không thể để ... ALLEN 30 7844 TURNER 30 7900 JAMES 30 7521 WARD 10 7782 CLARK 10 7934 MILLER 20 7566 JONES 20 7902 FORD 20 7369 SMITH 20 7876 ADAMS JOB SAL - -PRESIDENT 5000 MANAGER 2850 SALESMAN 1250 SALESMAN...
  • 7
  • 414
  • 0
Oracle PL/SQL Language Pocket Reference- P5

Oracle PL/SQL Language Pocket Reference- P5

Cơ sở dữ liệu

... 7.4 The Cursor FOR Loop 7.3 The Numeric FOR Loop There are two kinds of PL/SQL FOR loops: the numeric FOR loop and the cursor FOR loop The numeric FOR loop is the traditional and familiar "counted" ... times, once for each month in the year." Straightforward and easy to understand Now take a look at the next numeric FOR loop: FOR year_count IN years_displayed LOOP IF year_count > 10 AND :store.status ... simple: use variable names for the loop indexes that are meaningful and therefore self-documenting: FOR focus_account IN start_id end_id LOOP FOR day_in_week IN LOOP FOR month_in_biyear IN 24...
  • 50
  • 379
  • 0
SQL and PL/SQL Using Procedure Buider

SQL and PL/SQL Using Procedure Buider

Quản trị mạng

... Oracle: SQL and PL/SQL Using Procedure Builder is an instructor-led course featuring lecture and hands-on exercises The concepts and skills introduced are reinforced by online demonstrations and written ... design, and generation of Oracle applications For more information, see Guide to Oracle Products and Services Introduction IĆ21 Server ÉÉÉÉ SQL and PL/SQL Scripts IĆ22 Introduction to Oracle: SQL and ... SQL*Plus, and PL/SQL SQL, SQL*Plus, and PL/SQL commands are used to access and manipulate data stored in an Oracle database SQL*Plus, SQL, and PL/SQL Language or Tool Description SQL A command language...
  • 322
  • 361
  • 0
Giáo trình SQL và PL SQL part 7

Giáo trình SQL và PL SQL part 7

Kỹ thuật lập trình

... [CONSTRAINT constraint_name] PRIMARY KEY FOREIGN KEY ( Referential ): Chỉ mối liên hệ ràng buộc tham chiếu table với table khác, table Nó mối liên hệ cha-con ràng buộc FOREIGN KEY bảng với PRIMARY KEY ... NUMBER 2 Tạo bảng ASSIGNMENTS với column đợc dới đây, đồng thời cột PROJID foreign key tới bảng PROJECT, cột EMPNO foreign key tới bảng EMP Column name Data Type Size -PROJID ... đổi tên object Dùng lệnh RENAME để thay đổi tên object Cú pháp nh sau: RENAME old TO new Trong đó: Old: Tên cũ New: tên Ví dụ RENAME emp TO employee 12.2.4 Xóa liệu table Dùng lệnh TRUNCATE TABLE...
  • 7
  • 480
  • 3
Giáo trình SQL và PL SQL part 8

Giáo trình SQL và PL SQL part 8

Kỹ thuật lập trình

... view Cú pháp CREATE [OR REPLACE] [FORCE] VIEW view_name [(column, column, )] AS SELECT statement [WITH CHECK OPTION [CONSTRAINT constraint_name]]; Trong OR REPLACE FORCE column, column, WITH CHECK ... bảng có vài row Primaryvà unique key ( khóa khóa nhất) tự động có index, nhng nên có index cho foreign key( khóa ngoại) Số lợng index cho table không giới hạn Tuy nhiên có nhiều index gây ảnh...
  • 7
  • 441
  • 1
Oracle PL/SQL Language Pocket Reference- P6

Oracle PL/SQL Language Pocket Reference- P6

Cơ sở dữ liệu

... the cursor name and before the IS keyword I took out the hardcoded "HUSBAND" and replaced it with "UPPER (category_in)" so that I could enter "HUSBAND", "husband", or "HuSbAnD" and the cursor ... jokes about husbands That's all well and good, but what if I also would like to see lightbulb jokes and then chicken -and- egg jokes and finally, as my ten-year-old would certainly demand, all my knock-knock ... Interaction and Cursors Next: 6.11 SELECT FOR UPDATE in Cursors 6.10 Cursor Parameters You are probably familiar with parameters for procedures and functions Parameters provide a way to pass information...
  • 50
  • 348
  • 0

Xem thêm