invoker apos s rights versus definer apos s rights authid clause

Tài liệu PL/SQL User''''s Guide and Reference pdf

Tài liệu PL/SQL User''''s Guide and Reference pdf

Ngày tải lên : 24/01/2014, 08:20
... Privileges on Invoker' s Rights Subprograms 8-17 Using Roles with Invoker' s Rights Subprograms 8-18 Using Views and Database Triggers with Invoker' s Rights Subprograms 8-18 Using ... "Fundamentals of the PL/SQL Language" Focuses on the small-scale aspects of PL/SQL: lexical units, scalar datatypes, user-defined subtypes, data conversion, expressions, assignments, block structure, ... parameters, privileges, datatypes, RMAN keywords, SQL keywords, SQL*Plus or utility commands, packages and methods, as well as system-supplied column names, database objects and structures, usernames,...
  • 492
  • 1.7K
  • 0
Oracle® Database PL/SQL User''''s Guide and Reference potx

Oracle® Database PL/SQL User''''s Guide and Reference potx

Ngày tải lên : 30/03/2014, 22:20
... Using Roles with Invoker' s Rights Subprograms 8-19 Using Views and Database Triggers with Invoker' s Rights Subprograms 8-19 Using Database Links with Invoker' s Rights Subprograms ... as lexical units, scalar datatypes, user-defined subtypes, data conversion, expressions, assignments, block structure, declarations, and scope Chapter 3, "PL/SQL Datatypes" Discusses PL/SQL 's ... program, such as SQL*Plus, to read and display the data passed to DBMS_OUTPUT SQL*Plus does not display DBMS_OUTPUT data unless you first issue the SQL*Plus command SET SERVEROUTPUT ON as follows: SET...
  • 496
  • 1.1K
  • 0
Chapter 27: An Introduction to PL/SQLThe Exception Handling section of a PL/SQL block is pot

Chapter 27: An Introduction to PL/SQLThe Exception Handling section of a PL/SQL block is pot

Ngày tải lên : 07/08/2014, 14:20
... privileges of the user executing the procedure If a procedure uses invoker rights, the user must have access to all of the database objects accessed by the procedure Unless stated otherwise, the ... developers, since it consolidates all the database events that depend on a single table Setting Inserted Values You may use triggers to set column values during inserts and updates The previous examples ... ora_partition_pos; new_stmt := substr(sql_text, 1, n-1) || ‘ ‘ || my_partition _clause || ‘ ‘ || substr(sql_text, n)); n := ora_server_ error_depth; This value is used with other functions such as ora_server_error...
  • 108
  • 588
  • 0
Trả lời bài tập ORACLE PL/SQL

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

Ngày tải lên : 22/08/2012, 09:51
... SQL thực cursor ngầm, bao gồm lệnh update, insert, delete lệnh select không thực cursors tường minh Một trỏ tường minh đặt tên developer Nó lệnh select đặt tên Bất kỳ lệnh select s dụng cursor ... cursor tường minh cách s dụng cú pháp cursor cursor_name is Khi lệnh select đặt cursor tường minh, developer có toàn quyền điều khiển thực lệnh DECLARE CURSOR employee_cursor IS SELECT * FROM employee; ... trò s • %found đònh có tìm hàng không Giá trò trả TRUE hay FALSE, ngược với %notfound • %isopen đònh cursor đề cập đến có mở s n s ng s dụng hay không Trả TRUE hay FALSE Có loại vòng lặp PL/SQL?...
  • 2
  • 3.1K
  • 42
Giáo trình SQL và PL/SQL

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

Ngày tải lên : 23/08/2012, 16:16
... REPLACE(JOB,'SALESMAN', MANAGER MANAGER SALESPERSON SALESPERSON SALESPERSON CLERK SALESPERSON ANALYST CLERK ANALYST CLERK ENAME BLAKE JONES MARTIN ALLEN TURNER JAMES WARD FORD SMITH SCOTT ... -SALESMAN 1250 SALES SALESMAN 1250 SALES SALESMAN 1600 SALES SALESMAN 1500 SALES Đào tạo bản: SQL PL/SQL Trang 37 Công ty cổ phần đầu t phát triển công nghệ - FPT Giáo trình SQL PL/SQL BLAKE ... LOWER(char) SELECT LOWER(DNAME), LOWER(SQL COURSE) FROM DEPT; LOWER(DNAME) -accounting research sales operations LOWER('SQL -sql course sql course sql course sql course Ví dụ hàm UPPER(char) SELECT...
  • 78
  • 621
  • 5
Oracle PL SQL cơ bản

Oracle PL SQL cơ bản

Ngày tải lên : 31/08/2012, 16:46
... REPLACE(JOB,'SALESMAN', ENAME MANAGER MANAGER MANAGER MANAGER SALESMAN SALESPERSON SALESMAN SALESPERSON SALESMAN SALESPERSON CLERK CLERK SALESMAN SALESPERSON ANALYST ANALYST CLERK CLERK ANALYST ANALYST ... JONES FORD SCOTT KING SALESMAN SALESMAN SALESMAN SALESMAN MANAGER MANAGER MANAGER ANALYST ANALYST PRESIDENT GRADE DNAME 1250 1250 1600 1500 2850 2450 2975 3000 3000 5000 2 3 4 4 SALES SALES SALES ... ALLEN TURNER JAMES WARD CLARK MILLER JONES FORD SMITH SCOTT ADAMS SAL JOB PRESIDENT MANAGER SALESMAN SALESMAN SALESMAN CLERK SALESMAN MANAGER CLERK MANAGER ANALYST CLERK SALEMAN CLERK SAL 5000 2850...
  • 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

Ngày tải lên : 01/09/2012, 09:45
... SQL thực cursor ngầm, bao gồm lệnh update, insert, delete lệnh select không thực cursors tường minh Một trỏ tường minh đặt tên developer Nó lệnh select đặt tên Bất kỳ lệnh select s dụng cursor ... cursor tường minh cách s dụng cú pháp cursor cursor_name is Khi lệnh select đặt cursor tường minh, developer có toàn quyền điều khiển thực lệnh DECLARE CURSOR employee_cursor IS SELECT * FROM employee; ... trò s • %found đònh có tìm hàng không Giá trò trả TRUE hay FALSE, ngược với %notfound • %isopen đònh cursor đề cập đến có mở s n s ng s dụng hay không Trả TRUE hay FALSE Có loại vòng lặp PL/SQL?...
  • 2
  • 2.6K
  • 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

Ngày tải lên : 29/09/2013, 05:20
... phẩm SQL SQL cài đặt hệ quản trị CSDL DB2 IBM SQL/DS Ngày nay, SQL s dụng rộng rãi đuợc xem ngôn ngữ chuẩn để truy cập CSDL quan hệ 1.1.2 Chuẩn SQL Năm 1989, viện tiêu chuẩn quốc gia Hoa Kỳ (ANSI) ... SQL (Structured Query Language, đọc "sequel") tập lệnh truy xuất CSDL quan hệ Ngôn ngữ SQL IBM s dụng hệ quản trị CSDL System R vào năm 70 Hệ ngôn ngữ SQL (SEQUEL2) IBM công bố vào tháng 11 năm ... Trang Quyển s ch upload tại: hutonline.net Oracle - SQL PL/SQL Chương GIỚI THIỆU CHUNG 1.1.NGÔN NGỮ SQL 1.1.1 Lịch s phát triển ngôn ngữ SQL Mô hình s liệu (CSDL) quan hệ - RDBMS, E.F Codd...
  • 4
  • 657
  • 1
Giới thiệu ngôn ngữ PL-SQL

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

Ngày tải lên : 29/09/2013, 05:20
... v_non_sales := v_non_sales + 1; END IF; END LOOP; Đóng cursor CLOSE c_Dept; Lưu giữ thông s vừa xác định vào bảng INSERT INTO counts (sales_set, non_sales_set) VALUES (v_sales_count, v_non_sales); ... trả Các bước s dụng biến cursor: Khai báo > mở cursor > lấy liệu để xử lý > đóng cursor Khai báo: CURSOR Tên cursor( danh s ch biến) IS Câu lệnh truy vấn; Ví dụ1: CURSOR c_Dept IS SELECT deptno, ... = '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 Oracle - SQL PL/SQL UPDATE Dept SET loc='DALLAS' WHERE CURRENT OF c_Dept; Đếm s ...
  • 8
  • 703
  • 4
GIỚI THIỆU NGÔN NGỮ PL-SQL

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

Ngày tải lên : 29/09/2013, 05:20
... v_non_sales := v_non_sales + 1; END IF; END LOOP; Đóng cursor CLOSE c_Dept; Lưu giữ thông s vừa xác định vào bảng INSERT INTO counts (sales_set, non_sales_set) VALUES (v_sales_count, v_non_sales); ... trả Các bước s dụng biến cursor: Khai báo > mở cursor > lấy liệu để xử lý > đóng cursor Khai báo: CURSOR Tên cursor( danh s ch biến) IS Câu lệnh truy vấn; Ví dụ1: CURSOR c_Dept IS SELECT deptno, ... = '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 Oracle - SQL PL/SQL UPDATE Dept SET loc='DALLAS' WHERE CURRENT OF c_Dept; Đếm s ...
  • 8
  • 523
  • 2
Giới thiệu ngôn gn]c PL-SQL

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

Ngày tải lên : 02/10/2013, 17:20
... CLOSE c_Dept; Lưu giữ thông s vừa xác định vào bảng INSERT INTO counts (sales_set, non_sales_set) VALUES (v_sales_count, v_non_sales); END; Ghi nhận thay đổi liệu COMMIT; 12.4.CÁC KIỂU DỮ ... Trang 80 Oracle - SQL PL/SQL UPDATE Dept SET loc='DALLAS' WHERE CURRENT OF c_Dept; Đếm s lượng ghi cập nhật v_sales_count := sales_count + 1; ELSIF (v_dept.dname != 'SALES')AND(v_Dept.loc!='NEWYORK') ... trả Các bước s dụng biến cursor: Khai báo > mở cursor > lấy liệu để xử lý > đóng cursor Khai báo: CURSOR Tên cursor( danh s ch biến) IS Câu lệnh truy vấn; Ví dụ1: CURSOR c_Dept IS SELECT deptno,...
  • 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

Ngày tải lên : 06/10/2013, 09:20
... có chức thoát tự động disconnect Để thực hành phần SQL PL/SQL gọi ứng dụng SQL* Plus 1.3 Giới thiệu ngôn ngữ SQL 1.3.1 Lịch s phát triển ngôn ngữ SQL Mô hình s liệu (CSDL) quan hệ E.F Codd đa ... (Structured Query Language, đọc "sequel") tập lệnh truy xuất CSDL quan hệ Ngôn ngữ SQL đợc IBM s dụng hệ quản trị CSDL System R vào năm 70, hệ ngôn ngữ SQL (SEQUEL2) đợc IBM công bố vào tháng ... giới thiệu thơng phẩm SQL, SQL đợc cài đặt hệ quản trị CSDL nh DB2 IBM SQL/DS Ngày nay, SQL đợc s dụng rộng rãi đuợc xem ngôn ngữ chuẩn để truy cập CSDL quan hệ 1.3.2 Chuẩn SQL Năm 1989, viện tiêu...
  • 4
  • 372
  • 0
Tổng quan về PL-SQL và Procedure Builder

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

Ngày tải lên : 06/10/2013, 09:20
... WHERE dname = 'SALES'; END; 17.3 Giới thiệu Procedure builder Trong Procedure Builder xây dựng đoạn chơng trình PL/SQL nh program units, libraries, database triggers client-side server-side Procedure ... THEN actions] [ELSE actions] END IF Ví dụ IF ename := 'SCOTT' THEN beam_me_up := 'YES'; COMMIT; ELSE beam_me_up := 'NO'; ROLLBACK; END IF; Ví dụ IF choice= THEN action := 'Run payroll'; ELSIF choice=2 ... chọn program unit Nội dung program unit lên cửa s Interpreter để debug Cửa s interpreter có phần đánh lệnh PL/SQL sau dấu nhắc PL/SQL> Wizard Cửa s Wizard hiển thị tạo program unit công cụ Wizard...
  • 4
  • 411
  • 1
Tổng quan về PL-SQL và Procedure builder

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

Ngày tải lên : 06/10/2013, 14:20
... WHERE dname = 'SALES'; END; 17.3 Giới thiệu Procedure builder Trong Procedure Builder xây dựng đoạn chơng trình PL/SQL nh program units, libraries, database triggers client-side server-side Procedure ... THEN actions] [ELSE actions] END IF Ví dụ IF ename := 'SCOTT' THEN beam_me_up := 'YES'; COMMIT; ELSE beam_me_up := 'NO'; ROLLBACK; END IF; Ví dụ IF choice= THEN action := 'Run payroll'; ELSIF choice=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; END LOOP;...
  • 5
  • 460
  • 1
OCP: Oracle8i DBA SQL and PL/SQL Study Guide

OCP: Oracle8i DBA SQL and PL/SQL Study Guide

Ngày tải lên : 16/10/2013, 13:15
... commands are all transaction control statements Session Control Session control statements manage the properties of a user s session The SET ROLE and ALTER SESSION commands are used System Control System ... exception_init(max_sessions, -18); A The exception max_sessions is associated with error number 18 B The database is instructed to accept a maximum of 18 sessions C The exception max_sessions is declared ... ADDRESS_TYPE is defined, it can be used in any number of tables where addresses need to be stored This small example shows you how objects can be reused Oracle uses SQL to access the database In...
  • 505
  • 377
  • 0
Giáo trình SQL và PL SQL part 6

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

Ngày tải lên : 17/10/2013, 19:15
... 7934 MILLER 20 7566 JONES 20 7902 FORD 20 7369 SMITH 20 7876 ADAMS JOB SAL - -PRESIDENT 5000 MANAGER 2850 SALESMAN 1250 SALESMAN 1600 SALESMAN 1500 CLERK 950 SALESMAN 1250 MANAGER 2450 ... 7782 CLARK 10 JONES 2975 7566 JONES 20 FORD 3000 7566 JONES 20 SMITH 800 7566 JONES 20 SCOTT 3300 7566 JONES 20 ADAMS 1100 7566 JONES 20 13 rows selected Đào tạo bản: SQL PL/SQL Trang 43 Công ... JAMES 30 7521 WARD 10 7782 CLARK 10 7934 MILLER 20 7566 JONES 20 7902 FORD 20 7369 SMITH 9.3 JOB SAL - -PRESIDENT 5000 MANAGER 2850 SALESMAN 1250 SALESMAN 1600 SALESMAN 1500 CLERK 950 SALESMAN...
  • 7
  • 414
  • 0
Oracle PL/SQL Language Pocket Reference- P5

Oracle PL/SQL Language Pocket Reference- P5

Ngày tải lên : 17/10/2013, 22:15
... companion disk: selupdt.sf */ FUNCTION next_task RETURN task.task_id%TYPE IS /* Cursor of all open tasks, assigned and unassigned */ CURSOR task_cur IS SELECT task_id FROM task WHERE task_status = 'OPEN' ... packers their next tasks The packer opens the screen and requests a task The screen finds the next unassigned task and assigns it to the packer A task might involve collecting various products together ... the time; this is straight sequential code and should be written as follows: give_bonus (president_id, 2000000); give_bonus (ceo_id, 5000000); 7.7.4 PL/SQL Loops Versus SQL Processing One of the...
  • 50
  • 379
  • 0
SQL and PL/SQL Using Procedure Buider

SQL and PL/SQL Using Procedure Buider

Ngày tải lên : 19/10/2013, 11:15
... Lesson 11 Manipulating Data Lesson 12 Altering Tables and Constraints Lesson 13 Creating Sequences Lesson 14 Creating Views Lesson 15 Creating Indexes Lesson 16 Controlling User Access Lesson ... as averages, for groups of rows You will discuss how to group rows in a table into smaller sets, and how to specify search criteria for groups of rows Lesson 6: Subqueries This lesson covers ... ends on Day with an optional summary of the PL/SQL section DAY Lesson Selecting Rows Lesson Limiting Selected Rows Lesson Single Row Functions Lesson Displaying Data from Multiple Tables DAY Lesson...
  • 322
  • 361
  • 0
Giáo trình SQL và PL SQL part 7

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

Ngày tải lên : 20/10/2013, 10:15
... phân (precision), p từ đến 38 chữ s s: s chữ s tính từ dấu chấm thập phân bên phải (scale), s từ -84 đến 127 NUMBER(p) s có dấu chấm thập phân cố định với precision p scale NUMBER s với dấu ... phần sau câu lệnh SQL Các mệnh đề WHERE, GROUP BY, ORDER BY, CONNECT BY với tác tử DISTINCT câu lệnh SELECT Các hàm s dụng câu lệnh SQL nh SUBSTR, INSTR Trong danh s ch lựa chọn câu lệnh SELECT ... dụ SYSDATE+1 ngày hôm sau SYSDATE-7 cách tuần SYSDATE+(10/1440) mời phút sau Ngày Julian: Là giá trị s cho biết s ngày kể từ ngày tháng giêng năm 4712 trớc công nguyên Ví dụ Đào tạo bản: SQL...
  • 7
  • 480
  • 3