Oracle Streams: Step by Step
|
|
- Eugene Simon
- 5 years ago
- Views:
Transcription
1 Oracle Streams: Step by Step What is Oracle Streams? What is Advanced Queues (AQ)? What is Change Data Capture (CDC)? What is a Logical Change Record (LCR)? How Streams Works How do you configure Streams, AQ and CDC? How do you use Streams in your programs? Adding records automatically Adding record programmatically Pulling records off the queue
2 Who am I Lewis R Cunningham Oracle ACE Certified PL/SQL Developer Author Blogger Database Geek Member of SOUG, IOUG, ODTUG, ACM
3 What is Oracle Streams? Streams enables data and event movement Movement may be within or between databases Can implement replication Data and events can be captured explicitly: programatically Implicitly: redo log Performant Log mining reduces overhead Downstreams mining reduces it even more
4 What is Oracle Streams?, cont'd Streams Features Distinct capture/propagation/apply services Message Queueing (via AQ) Publish Subscribe Rules based Capture/Transform/Apply Database integration Easy configuration Flexible Inline transformations
5 What is Oracle AQ? Oracle's messaging solution Queue based Persistent queues protect data Buffered, non-persistent queues offer maximum performance Oracle provides all of the maintenance code Secure Queue Level Access Control Messages Types Raw XML Object Anydata
6 What is Oracle AQ?, cont'd Publish/Subscribe Multi-consumer Multi-message types RAC integration API support OCI (C), OCCI (C++) Java JMS PL/SQL OO40 (COM) Internet Data Access (IDAP) ODBC via Heterogeneous Gateways
7 What is Change Data Capture? CDC efficiently identifies changed data and make it available for downstrean use CDC enables efficient warehouse loading No flat files Direct data movement Changes are queued Multiple subscribers are allowed Subscribers can receive changed data Data may be transformed Changes can include DDL and DML
8 What is an LCR? LCR = Logical Change Record Committed records generate an LCR to the redo log An LCR shows the difference between an existing record and the new record For DDL, the record is a database object For DML, the record is table data
9 What is an LCR?
10 How it works Source Database Target Database Table 10
11 Data Changes Source Database Target Database Table Data Manipulation Log Writer 11
12 DB Writes to OS File Source Database Target Database Table Log Writer Writes To REDO LOG 12
13 Streams Takes Over Source Database Target Database Table Log Writer REDO LOG Capture Process Reads Redo and Extracts the Logical Change Record (LCR) Streams Capture 13
14 Streams Queues The LCR Source Database Target Database Table Streams Queue Log Writer REDO LOG Streams Capture Streams Capture Process writes the LCR to a local OR REMOTE Streams Queue Table 14
15 LCR Propagates Source Database Target Database Table Streams Queue Streams Queue Log Writer REDO LOG Streams Capture Streams Capture Process writes the LCR to a local OR REMOTE Streams Queue Table 15
16 Changes Are Applied Source Database Target Database Table Streams Queue Streams Queue Log Writer REDO LOG Streams Capture Streams Apply Streams Apply can also transform for one record to many, add columns, etc. Streams Capture Process writes the LCR to a local OR REMOTE Streams Queue Table 16
17 Target Database Source Database Target Database Table Streams Queue Streams Queue Table Log Writer Table REDO LOG Streams Capture Streams Apply Table Streams Capture Process writes the LCR to a local OR REMOTE Streams Queue Table Oracle Streams Overview - US IFS 17
18 The Scenario Capture changes to the Employee table in 10g ORCL instance) Send changes to Employee_audit in 9i (SECOND instance) We will start with capture and apply in 10g Once the capture and apply is working, we will modify the stream to send the data to 9i
19 We need to create the Admin user and streams tablespace sqlplus / as sysdba create tablespace streams_tbs datafile 'c:\temp\stream_tbs.dbf' size 25M reuse autoextend on maxsize unlimited; create user strmadmin identified by strmadmin default tablespace streams_tbs quota unlimited on streams_tbs;
20 We need to grant the appropriate permissions grant dba to strmadmin; BEGIN DBMS_STREAMS_AUTH.GRANT_ADMIN_PRIVILEGE( grantee => 'strmadmin', grant_privileges => true); END; / conn hr/hr grant all on hr.employees to strmadmin;
21 Create the Audit Table CREATE TABLE employee_audit( employee_id NUMBER(6), first_name VARCHAR2(20), last_name VARCHAR2(25), VARCHAR2(25), phone_number VARCHAR2(20), hire_date DATE, job_id VARCHAR2(10), salary NUMBER(8,2), commission_pct NUMBER(2,2), manager_id NUMBER(6), department_id NUMBER(4), upd_date DATE, user_name VARCHAR2(30), action VARCHAR2(30));
22 Grant read on the audit table to the admin user grant all on hr.employee_audit to strmadmin; Connect as the streams admin user and create a monitor table conn strmadmin/strmadmin CREATE TABLE streams_monitor ( date_and_time TIMESTAMP(6) DEFAULT systimestamp, txt_msg CLOB );
23 Create the CDC queue BEGIN DBMS_STREAMS_ADM.SET_UP_QUEUE( queue_table => 'strmadmin.streams_queue_table', queue_name => 'strmadmin.streams_queue'); END; /
24 Create capture rules BEGIN DBMS_STREAMS_ADM.ADD_TABLE_RULES( table_name => 'hr.employees', streams_type => 'capture', streams_name => 'capture_emp', queue_name => 'strmadmin.streams_queue', include_dml => true, include_ddl => false, inclusion_rule => true); END; /
25 Add extra attributes BEGIN DBMS_CAPTURE_ADM.INCLUDE_EXTRA_ATTRI BUTE( capture_name => 'capture_emp', attribute_name => 'username', include => true); END; /
26 Mark redo entry as starting point (SCN) DECLARE iscn NUMBER; BEGIN iscn := DBMS_FLASHBACK.GET_SYSTEM_CHANGE_NUMBER(); DBMS_APPLY_ADM.SET_TABLE_INSTANTIATION_SCN ( source_object_name => 'hr.employees', source_database_name => 'ORCL', END; / instantiation_scn => iscn);
27 Create DML Handler Proc CREATE OR REPLACE PROCEDURE emp_dml_handler(in_any IN ANYDATA) IS lcr SYS.LCR$_ROW_RECORD; rc PLS_INTEGER; command VARCHAR2(30); old_values SYS.LCR$_ROW_LIST; BEGIN -- Access the LCR rc := in_any.getobject(lcr); -- Get the object command type command := lcr.get_command_type(); -- I am inserting the XML equivalent of the LCR into the monitoring table. insert into streams_monitor (txt_msg) values (command DBMS_STREAMS.CONVERT_LCR_TO_XML(in_any) );
28 Create DML Handler (cont'd) -- Set the command_type in the row LCR to INSERT lcr.set_command_type('insert'); -- Set the object_name in the row LCR to EMP_DEL lcr.set_object_name('employee_audit'); -- Set the new values to the old values for update and delete IF command IN ('DELETE', 'UPDATE') THEN -- Get the old values in the row LCR old_values := lcr.get_values('old'); -- Set the old values in the row LCR to the new values in the row LCR lcr.set_values('new', old_values); -- Set the old values in the row LCR to NULL lcr.set_values('old', NULL); END IF;
29 Create DML Handler (cont'd) -- Add a SYSDATE for upd_date lcr.add_column('new', 'UPD_DATE', ANYDATA.ConvertDate(SYSDATE)); -- Add a user column lcr.add_column('new', 'user_name', lcr.get_extra_attribute('username') ); -- Add an action column lcr.add_column('new', 'ACTION', ANYDATA.ConvertVarChar2(command)); -- Make the changes lcr.execute(true); commit; END; /
30 Register DML Handler BEGIN DBMS_APPLY_ADM.SET_DML_HANDLER( object_name => 'hr.employees', object_type => 'TABLE', operation_name => 'INSERT', error_handler => false, user_procedure => 'strmadmin.emp_dml_handler', apply_database_link => NULL, END; / apply_name => NULL); Do the exact same for update and delete.
31 Create the apply rule DECLARE emp_rule_name_dml VARCHAR2(30); emp_rule_name_ddl VARCHAR2(30); BEGIN DBMS_STREAMS_ADM.ADD_TABLE_RULES( table_name => 'hr.employees', streams_type => 'apply', streams_name => 'apply_emp', queue_name => 'strmadmin.streams_queue', include_dml => true, include_ddl => false, source_database => 'ORCL', dml_rule_name => emp_rule_name_dml, ddl_rule_name => emp_rule_name_ddl); DBMS_APPLY_ADM.SET_ENQUEUE_DESTINATION( rule_name => emp_rule_name_dml, destination_queue_name => 'strmadmin.streams_queue'); END; /
32 Turn off disable on error, start the apply and capture processes BEGIN DBMS_APPLY_ADM.SET_PARAMETER( apply_name => 'apply_emp', parameter => 'disable_on_error', value => 'n'); END; / BEGIN DBMS_APPLY_ADM.START_APPLY( apply_name => 'apply_emp'); END; / BEGIN DBMS_CAPTURE_ADM.START_CAPTURE( capture_name => 'capture_emp'); END; /
33 Test Insert a record into hr.employees Select from hr.employee_audit to see audit records Select from streams_monitor to see LCR information
34 Configure 9i instance (SECOND) sqlplus / as sysdba create tablespace streams_second_tbs datafile 'c:\temp\stream_2_tbs.dbf' size 25M reuse autoextend on maxsize unlimited; create user strmadmin identified by strmadmin default tablespace streams_second_tbs quota unlimited on streams_second_tbs; grant dba to strmadmin;
35 Create the Audit Table in the 9i instance CREATE TABLE employee_audit( employee_id NUMBER(6), first_name VARCHAR2(20), last_name VARCHAR2(25), VARCHAR2(25), phone_number VARCHAR2(20), hire_date DATE, job_id VARCHAR2(10), salary NUMBER(8,2), commission_pct NUMBER(2,2), manager_id NUMBER(6), department_id NUMBER(4), upd_date DATE, user_name VARCHAR2(30), action VARCHAR2(30));
36 Create the AQ queue in SECOND BEGIN DBMS_AQADM.CREATE_QUEUE_TABLE( queue_table => 'lrc_emp_t', queue_payload_type => 'sys.anydata', multiple_consumers => TRUE, compatible => '8.1'); DBMS_AQADM.CREATE_QUEUE( queue_name => 'lrc_emp_q', queue_table => 'lrc_emp_t'); DBMS_AQADM.START_QUEUE ( queue_name => 'lrc_emp_q'); END; /
37 Create a link from SECOND to ORCL CREATE DATABASE LINK orcl.world CONNECT TO strmadmin IDENTIFIED BY strmadmin USING 'orcl.world'; Create a link from ORCL to SECOND CREATE DATABASE LINK second.world CONNECT TO strmadmin IDENTIFIED BY strmadmin USING 'second.world';
38 In 10g (ORCL), as strmadmin, create a propagation schedule for the captured data BEGIN DBMS_STREAMS_ADM.ADD_TABLE_PROPAGATION_RULES( table_name => 'hr.employees', streams_name => 'orcl_2_second', source_queue_name => 'strmadmin.lrc_emp_q', destination_queue_name => 'strmadmin.lrc_emp_q@second.world', include_dml => true, include_ddl => FALSE, source_database => 'orcl.world'); END; /
39 Modify the DML Handler Proc (add this just before the lcr.execute procedure). DECLARE enqueue_options DBMS_AQ.enqueue_options_t; message_properties DBMS_AQ.message_properties_t; message_handle RAW(16); recipients DBMS_AQ.aq$_recipient_list_t; BEGIN recipients(1) := sys.aq$_agent( 'anydata_subscriber', NULL); message_properties.recipient_list := recipients;
40 Modify the DML Handler Proc (in 10g) DBMS_AQ.ENQUEUE( queue_name => 'strmadmin.lrc_emp_q', enqueue_options message_properties => message_properties, payload => anydata.convertobject(lcr), => enqueue_options, msgid EXCEPTION WHEN OTHERS THEN insert into streams_monitor (txt_msg) values ('Anydata: ' DBMS_UTILITY.FORMAT_ERROR_STACK ); END; => message_handle);
41 Create a DEQUEUE proc in 9i CREATE OR REPLACE PROCEDURE emp_dq (consumer IN VARCHAR2) AS msg ANYDATA; row_lcr SYS.LCR$_ROW_RECORD; num_var pls_integer; more_messages BOOLEAN := true; navigation VARCHAR2(30); BEGIN navigation := 'FIRST MESSAGE'; WHILE (more_messages) LOOP DBMS_OUTPUT.PUT_LINE('Looping thru messages'); BEGIN DBMS_STREAMS_MESSAGING.DEQUEUE( queue_name => 'strmadmin.streams_queue', streams_name => consumer, payload => msg, navigation => navigation, wait => DBMS_STREAMS_MESSAGING.NO_WAIT);
42 Create a DEQUEUE proc in 9i IF msg.gettypename() = 'SYS.LCR$_ROW_RECORD' THEN num_var := msg.getobject(row_lcr); DBMS_OUTPUT.PUT_LINE(row_lcr.GET_COMMAND_TYPE ' row LCR dequeued'); END IF; navigation := 'NEXT MESSAGE'; COMMIT; EXCEPTION WHEN SYS.DBMS_STREAMS_MESSAGING.ENDOFCURTRANS THEN navigation := 'NEXT TRANSACTION'; WHEN DBMS_STREAMS_MESSAGING.NOMOREMSGS THEN more_messages := false; DBMS_OUTPUT.PUT_LINE('No more messages.'); WHEN OTHERS THEN RAISE; END; END LOOP; END; /
43 Test Insert a record into hr.employees@orcl Run emp_dq@second Select from hr.employee_audit@second to see audit records
44 Summary Oracle Streams: As easy as it gets! Flexible, performant, easy Follow items are AnyData XMLType Queues Read my blog An Expert's Guide to Oracle Technology
Oracle Streams Extended Examples. 18c
Oracle Streams Extended Examples 18c E83782-01 February 2018 Oracle Streams Extended Examples, 18c E83782-01 Copyright 2008, 2018, Oracle andor its affiliates. All rights reserved. Primary Author: Roopesh
More informationUpgrading Oracle 9i Database to Oracle 10g Database with Near-Zero Downtime
Upgrading Oracle 9i Database to Oracle 10g Database with Near-Zero Downtime Author: Mohammed Asif Momen Banque Saudi Fransi Riyadh, Saudi Arabia Email: asif.momen@gmail.com Abstract An Oracle database
More informationOracle 9i Streams. Inderpal S. Johal Principal Consultant Data Softech, Inc. July 24, 2003
Oracle 9i Streams Inderpal S. Johal Principal Consultant Data Softech, Inc. July 24, 2003 Agenda Available High Availability Solution What is Oracle 9i Streams Architecture of Oracle Streams Common terminology
More informationOracle 9i/10g Streams. Inderpal S. Johal Manager, Database Administration December 11,2003
Oracle 9i/10g Streams Inderpal S. Johal Manager, Database Administration Indy.johal@prnewswire.com December 11,2003 Agenda Available High Availability Solution What is Oracle 9i Streams Architecture of
More informationData Replication in HP DMA
Technical white paper Data Replication in HP DMA HP Database and Middleware Automation version 10.00 Data Replication and HP DMA To help HP Database and Middleware Automation (HP DMA) extend across broader
More informationOracle Streams. Michal Hanzeli DBI013
Oracle Streams Michal Hanzeli DBI013 Introduction Oracle Streams enables information sharing Each unit of shared information is called a message Propagation of information within a database or from one
More informationSo whether you like it or not, you ll have to queue. The trick is to manage these queues to get optimal performance for your system.
Oracle Advanced Queuing (AQ) A customer asked me to do a presentation about AQ (Advanced Queuing). This article is a rewrite of that presentation. We ll be getting some hands-on experience with AQ, and
More informationIntroducing Oracle Queuing/Messaging Technology. Anthony D. Noriega MSCS, MBA, BSSE, OCP-DBA
Introducing Oracle Queuing/Messaging Technology Anthony D. Noriega MSCS, MBA, BSSE, OCP-DBA Objectives Emphasize technical concepts and Oracle queuing infrastructure technology. Highlight programming techniques,
More informationDatabase Foundations. 6-4 Data Manipulation Language (DML) Copyright 2015, Oracle and/or its affiliates. All rights reserved.
Database Foundations 6-4 Roadmap You are here Introduction to Oracle Application Express Structured Query Language (SQL) Data Definition Language (DDL) Data Manipulation Language (DML) Transaction Control
More informationApplication Development with. Jeffrey M. Jacobs Senior Data Architect, PayPal
Application Development with Oracle Advanced Queuing #238 Jeffrey M. Jacobs Senior Data Architect, PayPal Qualifications(?) Two centuries experience with Oracle Extensive consulting and training experience
More informationOracle CDC 调研报告 林子雨 北京大学计算机系数据库实验室 2006 年 11 月 10 日
Oracle CDC 调研报告 林子雨 北京大学计算机系数据库实验室 2006 年 11 月 10 日 The Redo Log and a Capture Process Redo log Every Oracle database has a set of two or more redo log files. The redo log files for a database are collectively
More informationOracle Streams. An Oracle White Paper October 2002
Oracle Streams An Oracle White Paper October 2002 Oracle Streams Executive Overview... 3 Introduction... 3 Oracle Streams Overview... 4... 5 Staging... 5 Propagation... 6 Transformations... 6 Consumption...
More informationData Manipulation Language
Manipulating Data Objectives After completing this lesson, you should be able to do the following: Describe each data manipulation language (DML) statement Insert rows into a table Update rows in a table
More informationManipulating Data. Copyright 2004, Oracle. All rights reserved.
Manipulating Data Copyright 2004, Oracle. All rights reserved. Objectives After completing this lesson, you should be able to do the following: Describe each data manipulation language (DML) statement
More informationTáblák tartalmának módosítása. Copyright 2004, Oracle. All rights reserved.
Táblák tartalmának módosítása Copyright 2004, Oracle. All rights reserved. Objectives After completing this lesson, you should be able to do the following: Describe each data manipulation language (DML)
More informationRe-instantiating Schema Replication with Oracle Streams Downstream Capture
Re-instantiating Schema Replication with Oracle Streams Downstream Capture Have you ever had Streams fail to replicate data to a target database (for whatever reason) during heavy load on the source database
More informationReferent: Jens Rosenfeld Deutsche Telekom AG, T-Com Geschäftseinheit T-Online. Koreferent: Markus Ganss Opitz Consulting Bad Homburg GmbH
Referent: Jens Rosenfeld Deutsche Telekom AG, T-Com Geschäftseinheit T-Online Koreferent: Markus Ganss Opitz Consulting Bad Homburg GmbH ! "! " # $ # % " & ! "# # $ ( ) *! & # +,-, -. / * / 0 ' % & ' (
More informationRMOUG Training Days 2018
RMOUG Training Days 2018 Pini Dibask Product Manager for Database Tools February 22 nd, 2018 Oracle Database Locking Mechanism Demystified About the Speaker Pini Dibask, Product Manager for Database Tools,
More informationXStream Guide 12c Release 1 (12.1)
[1]Oracle Database XStream Guide 12c Release 1 (12.1) E53119-01 June 2014 Oracle Database XStream Guide, 12c Release 1 (12.1) E53119-01 Copyright 2009, 2014, Oracle and/or its affiliates. All rights reserved.
More informationOracle 1z z0-146 Oracle Database 11g: Advanced PL/SQL. Practice Test. Version QQ:
Oracle 1z0-146 1z0-146 Oracle Database 11g: Advanced PL/SQL Practice Test Version 1.1 QUESTION NO: 1 Which two types of metadata can be retrieved by using the various procedures in the DBMS_METADATA PL/SQL
More informationUsing DDL Statements to Create and Manage Tables. Copyright 2004, Oracle. All rights reserved.
Using DDL Statements to Create and Manage Tables Copyright 2004, Oracle. All rights reserved. Objectives After completing this lesson, you should be able to do the following: Categorize the main database
More informationUsing DDL Statements to Create and Manage Tables. Copyright 2004, Oracle. All rights reserved.
Using DDL Statements to Create and Manage Tables Copyright 2004, Oracle. All rights reserved. Objectives After completing this lesson, you should be able to do the following: Categorize the main database
More informationIT Certification Exams Provider! Weofferfreeupdateserviceforoneyear! h ps://
IT Certification Exams Provider! Weofferfreeupdateserviceforoneyear! h ps://www.certqueen.com Exam : 1Z0-146 Title : Oracle database 11g:advanced pl/sql Version : Demo 1 / 9 1.The database instance was
More informationOracle Database E
Oracle Database 2 Day + Data Replication and Integration Guide 11g Release 2 (11.2) E17516-04 August 2010 Covers using Oracle Streams, materialized views, and other distributed database functionality Oracle
More informationRestricting and Sorting Data. Copyright 2004, Oracle. All rights reserved.
Restricting and Sorting Data Copyright 2004, Oracle. All rights reserved. Objectives After completing this lesson, you should be able to do the following: Limit the rows that are retrieved by a query Sort
More informationIntroduction in Eventing in SOA Suite 11g
Introduction in Eventing in SOA Suite 11g Ronald van Luttikhuizen Vennster Utrecht, The Netherlands Keywords: Events, EDA, Oracle SOA Suite 11g, SOA, JMS, AQ, EDN Introduction Services and events are highly
More informationUsing DbVisualizer Variables
Using DbVisualizer Variables DbVisualizer variables are used to build parameterized SQL statements and let DbVisualizer prompt you for the values when the SQL is executed. This is handy if you are executing
More informationOracle 1Z0-053 Exam Questions & Answers
Oracle 1Z0-053 Exam Questions & Answers Number: 1Z0-053 Passing Score: 660 Time Limit: 120 min File Version: 38.8 http://www.gratisexam.com/ Oracle 1Z0-053 Exam Questions & Answers Exam Name: Oracle Database
More informationThe On-Commit Database Trigger. Philipp Salvisberg
Philipp Salvisberg @phsalvisberg DOAG2017 Our Company Trivadis is a market leader in IT consulting, system integration, solution engineering and the provision of IT services focusing on and technologies
More informationRestricting and Sorting Data. Copyright 2004, Oracle. All rights reserved.
Restricting and Sorting Data Objectives After completing this lesson, you should be able to do the following: Limit the rows that are retrieved by a query Sort the rows that are retrieved by a query Use
More informationDatabase Foundations. 6-3 Data Definition Language (DDL) Copyright 2015, Oracle and/or its affiliates. All rights reserved.
Database Foundations 6-3 Roadmap You are here Introduction to Oracle Application Express Structured Query Language (SQL) Data Definition Language (DDL) Data Manipulation Language (DML) Transaction Control
More informationCourse Overview. Copyright 2010, Oracle and/or its affiliates. All rights reserved.
Course Overview Course Objectives After completing this course, you should be able to do the following: Manage application navigation by using hierarchical lists with images, database-driven navigation,
More informationOracle User Administration
Oracle User Administration Creating user accounts User accounts consist of two components. These are: 1. User name - The name of the account. 2. Password - The password associated with the user account.
More informationRetrieving Data Using the SQL SELECT Statement. Copyright 2009, Oracle. All rights reserved.
Retrieving Data Using the SQL SELECT Statement Objectives After completing this lesson, you should be able to do the following: List the capabilities of SQL SELECT statements Execute a basic SELECT statement
More informationDatabase Programming with PL/SQL
Database Programming with PL/SQL 3-3 Objectives This lesson covers the following objectives: Construct and execute PL/SQL statements that manipulate data with DML statements Describe when to use implicit
More informationTRN5515 Industrial-strength Microservice Architecture with Next-Generation Oracle Database
TRN5515 Industrial-strength Microservice Architecture with Next-Generation Oracle Database Wei Hu, Vice President of Development Anil Madan, Director of Development Dominic Giles, Master Product Manager
More informationCOMP 430 Intro. to Database Systems. Encapsulating SQL code
COMP 430 Intro. to Database Systems Encapsulating SQL code Want to bundle SQL into code blocks Like in every other language Encapsulation Abstraction Code reuse Maintenance DB- or application-level? DB:
More informationAsynchronous Change Data Capture Cookbook. April 2007
Asynchronous Change Data Capture Cookbook April 2007 Asynchronous Change Data Capture Cookbook Concepts and terminology...4 Publishers and subscribers...4 CDC implementation methods...5 Supplemental logging...6
More informationRetrieving Data Using the SQL SELECT Statement. Copyright 2004, Oracle. All rights reserved.
Retrieving Data Using the SQL SELECT Statement Copyright 2004, Oracle. All rights reserved. Objectives After completing this lesson, you should be able to do the following: List the capabilities of SQL
More informationQuestion No : 1 Which statement is true about triggers on data definition language (DDL) statements?
Volume: 103 Questions Question No : 1 Which statement is true about triggers on data definition language (DDL) statements? A. They can be used to track changes only to a table or index. B. They can be
More informationMisc. Triggers Views Roles Sequences - Synonyms. Eng. Mohammed Alokshiya. Islamic University of Gaza. Faculty of Engineering
Islamic University of Gaza Faculty of Engineering Computer Engineering Dept. Database Lab (ECOM 4113) Lab 9 Misc. Triggers Views Roles Sequences - Synonyms Eng. Mohammed Alokshiya December 7, 2014 Views
More informationRETRIEVING DATA USING THE SQL SELECT STATEMENT
RETRIEVING DATA USING THE SQL SELECT STATEMENT Course Objectives List the capabilities of SQL SELECT statements Execute a basic SELECT statement Development Environments for SQL Lesson Agenda Basic SELECT
More informationDEFAULT Values, MERGE, and Multi-Table Inserts. Copyright 2009, Oracle. All rights reserved.
DEFAULT Values, MERGE, and Multi-Table Inserts What Will I Learn? In this lesson, you will learn to: Understand when to specify a DEFAULT value Construct and execute a MERGE statement Construct and execute
More informationArchitecture. Architecture. Introduction to Oracle 10g Express Edition. Help
Architecture Introduction to Oracle 10g Express Edition Client-server system Server: SERVEDB, Internal addess (from the lab) 192.168.0.252 External address (from home with OpenVPN) 10.17.2.91 Client: Web
More informationAssignment 6. This lab should be performed under the Oracle Linux VM provided in the course.
Assignment 6 This assignment includes hands-on exercises in the Oracle VM. It has two Parts. Part 1 is SQL Injection Lab and Part 2 is Encryption Lab. Deliverables You will be submitting evidence that
More informationReal Application Security Administration
Oracle Database Real Application Security Administration Console (RASADM) User s Guide 12c Release 2 (12.2) E85615-01 June 2017 Real Application Security Administration Oracle Database Real Application
More informationUsing DDL Statements to Create and Manage Tables. Copyright 2006, Oracle. All rights reserved.
Using DDL Statements to Create and Manage Tables Objectives After completing this lesson, you should be able to do the following: Categorize the main database objects Review the table structure List the
More informationCreating and Managing Tables Schedule: Timing Topic
9 Creating and Managing Tables Schedule: Timing Topic 30 minutes Lecture 20 minutes Practice 50 minutes Total Objectives After completing this lesson, you should be able to do the following: Describe the
More informationMANAGING DATA(BASES) USING SQL (NON-PROCEDURAL SQL, X401.9)
Technology & Information Management Instructor: Michael Kremer, Ph.D. Class 4 Professional Program: Data Administration and Management MANAGING DATA(BASES) USING SQL (NON-PROCEDURAL SQL, X401.9) AGENDA
More informationGoldenGate Zbigniew Baranowski
GoldenGate Zbigniew Baranowski Outline What is GoldenGate? Architecture Performance GoldenGate vs. vs Streams Monitoring Summary What is GoldenGate? Real-time data integration solutions Continuous data
More informationAn Alternative Approach to Summary Table Management Using Advanced Queues
An Alternative Approach to Summary Table Management Using Advanced Queues By Arup Nanda O ne of the biggest challenges facing the designer of a data warehouse demanding near real time synchronization is
More informationOracle Database. 2 Day Developer's Guide, 11g Release 1 (11.1) B
Oracle Database 2 Day Developer's Guide, 11g Release 1 (11.1) B28843-01 July 2007 Oracle Database 2 Day Developer's Guide, 11g Release 1 (11.1) B28843-01 Copyright 2005, 2007, Oracle. All rights reserved.
More informationAPEX installation on Linux - Step by Step
APEX installation on Linux - Step by Step http://dba-story.blogspot.co.id/2013/08/apex-installation-on-linux-step-by-step.html You can download the latest Apex version from: http://www.oracle.com/technetwork/developer-tools/apex/downloads/index.html
More informationBsc (Hons) Software Engineering. Examinations for / Semester 1. Resit Examinations for BSE/15A/FT & BSE/16A/FT
Bsc (Hons) Software Engineering Cohort: BSE/16B/FT Examinations for 2017-2018 / Semester 1 Resit Examinations for BSE/15A/FT & BSE/16A/FT MODULE: DATABASE APPLICATION DEVELOPMENT MODULE CODE: DBT2113C
More informationRetrieving Data Using the SQL SELECT Statement. Copyright 2004, Oracle. All rights reserved.
Retrieving Data Using the SQL SELECT Statement Objectives After completing this lesson, you should be able to do the following: List the capabilities of SQL SELECT statements Execute a basic SELECT statement
More informationCreating Other Schema Objects
Creating Other Schema Objects Objectives After completing this lesson, you should be able to do the following: Create simple and complex views Retrieve data from views Database Objects Object Table View
More informationSecurity Benefits of Implementing Database Vault. -Arpita Ghatak
Security Benefits of Implementing Database Vault -Arpita Ghatak Topics to be covered Why Do we need Database Vault? The Benefits Components of Database Vault Oracle Database access control Components Other
More informationIntroduction to Oracle
Introduction to Oracle Architecture Client-server system Server: SERVEDB, Internal addess (from the lab) servedb.ing.man External address (from home with OpenVPN) 10.17.2.91 Client: Web interface: http://
More informationOracle Database. JPublisher User's Guide 11g Release 1 (11.1) B
Oracle Database JPublisher User's Guide 11g Release 1 (11.1) B31226-03 September 2007 Oracle Database JPublisher User's Guide, 11g Release 1 (11.1) B31226-03 Copyright 1999, 2007, Oracle. All rights reserved.
More informationInstitute of Aga. Network Database LECTURER NIYAZ M. SALIH
2017 Institute of Aga Network Database LECTURER NIYAZ M. SALIH Database: A Database is a collection of related data organized in a way that data can be easily accessed, managed and updated. Any piece of
More informationVendor: Oracle. Exam Code: 1Z Exam Name: Oracle database 11g:advanced pl/sql. Version: Demo
Vendor: Oracle Exam Code: 1Z0-146 Exam Name: Oracle database 11g:advanced pl/sql Version: Demo QUESTION 1 Which two types of metadata can be retrieved by using the various procedures in the DBMS_METADATA
More informationOracle 11g Alter Table Move Tablespace Example
Oracle 11g Alter Table Move Tablespace Example If you cannot afford to lose the table after you have created it (for example, you Using the ALTER TABLE MOVE statement also enables compression for data
More informationLab Assignment 9 CIS 208A PL/SQL Programming and SQL
Lab Assignment 9 CIS 208A PL/SQL Programming and SQL Section 9-1, Exercise #2, 3 2. Function full_name: A. Create a function called full_name. Pass two parameters to the function: an employee s last name
More informationDatabase Programming with PL/SQL
Database Programming with PL/SQL Trapping Oracle Server Exceptions 1 Copyright 2013, Oracle and/or its affiliates. All rights Objectives This lesson covers the following objectives: Describe and provide
More informationLab # 4. Data Definition Language (DDL)
Islamic University of Gaza Faculty of Engineering Department of Computer Engineering ECOM 4113: Lab # 4 Data Definition Language (DDL) Eng. Haneen El-Masry November, 2014 2 Objective To be familiar with
More informationActual4Test. Actual4test - actual test exam dumps-pass for IT exams
Actual4Test http://www.actual4test.com Actual4test - actual test exam dumps-pass for IT exams Exam : 1z0-144 Title : Oracle Database 11g: Program with PL/SQL Vendor : Oracle Version : DEMO Get Latest &
More informationINDEX. 1 Basic SQL Statements. 2 Restricting and Sorting Data. 3 Single Row Functions. 4 Displaying data from multiple tables
INDEX Exercise No Title 1 Basic SQL Statements 2 Restricting and Sorting Data 3 Single Row Functions 4 Displaying data from multiple tables 5 Creating and Managing Tables 6 Including Constraints 7 Manipulating
More informationDatabase Programming with PL/SQL
Database Programming with PL/SQL 3-2 Objectives This lesson covers the following objectives: Recognize the SQL statements that can be directly included in a PL/SQL executable block Construct and execute
More informationYou Don t Have Database Vault
You Don t Have Database Vault So, What Can You Do Instead? 1 Legal Notice Database Vault Or Not! Published by PeteFinnigan.com Limited 9 Beech Grove Acomb York England, YO26 5LD Copyright 2018 by PeteFinnigan.com
More informationInstitute of Aga. Microsoft SQL Server LECTURER NIYAZ M. SALIH
Institute of Aga 2018 Microsoft SQL Server LECTURER NIYAZ M. SALIH Database: A Database is a collection of related data organized in a way that data can be easily accessed, managed and updated. Any piece
More informationAsynchronous Autolog Change Data Capture Cookbook. September 2007
Asynchronous Autolog Change Data Capture Cookbook September 2007 Asynchronous Autolog CDC Cookbook Concepts and terminology...4 Publishers and subscribers...4 CDC implementation methods...5 Supplemental
More informationIntroduction to Oracle9i: SQL
Oracle 1z0-007 Introduction to Oracle9i: SQL Version: 22.0 QUESTION NO: 1 Oracle 1z0-007 Exam Examine the data in the EMPLOYEES and DEPARTMENTS tables. You want to retrieve all employees, whether or not
More informationOracle Database SQL Basics
Oracle Database SQL Basics Kerepes Tamás, Webváltó Kft. tamas.kerepes@webvalto.hu 2015. február 26. Copyright 2004, Oracle. All rights reserved. SQL a history in brief The relational database stores data
More informationAppendix A Practices and Solutions
Appendix A Practices and Solutions Table of Contents Practices and Solutions for Lesson I... 3 Practice I-1: Accessing SQL Developer Resources... 4 Practice I-2: Using SQL Developer... 5 Practice Solutions
More informationMonitoring and Resolving Lock Conflicts. Copyright 2004, Oracle. All rights reserved.
Monitoring and Resolving Lock Conflicts Objectives After completing this lesson you should be able to do the following: Detect and resolve lock conflicts Manage deadlocks Locks Prevent multiple sessions
More informationOracle Database. Installation and Configuration of Real Application Security Administration (RASADM) Prerequisites
Oracle Database Real Application Security Administration 12c Release 1 (12.1) E61899-04 May 2015 Oracle Database Real Application Security Administration (RASADM) lets you create Real Application Security
More informationLab # 2. Data Definition Language (DDL) Eng. Alaa O Shama
The Islamic University of Gaza Faculty of Engineering Department of Computer Engineering ECOM 4113: Database Lab Lab # 2 Data Definition Language (DDL) Eng. Alaa O Shama October, 2015 Objective To be familiar
More informationDisaster Recovery: Restore Database from One Server to another Server when Different Location
Disaster Recovery: Restore Database from One Server to another Server when Different Location Mohamed Azar Oracle DBA http://mohamedazar.wordpress.com 1 Mohamed Azar http://mohamedazar.wordpress.com Step
More informationOracle Database Auditing
By Craig Moir craig@mydba.co.za http://www.mydba.co.za August 2012 Version 1 WHY AUDIT? Allows organizations to enforce the trust-but-verify security principle. Satisfying compliance regulations. Enables
More informationGet Oracle Schema Ddl Syntax With Dbms_metadata
Get Oracle Schema Ddl Syntax With Dbms_metadata It there an easy way to extract DDLs from an Oracle 10 schema (tables and route, then rather than trying to convert Oracle DDL syntax to H2 you'd be better
More informationD T A A T B A A B S A E S E AD A MI
DATABASE ADMINISTRATOR Database Security BASIC Password Additional details DB Security Default DB Name Default Language PASSWORD GUIDANCE AREA Avoid that are too short Concatenating with a symbol/number
More informationDumpsKing. Latest exam dumps & reliable dumps VCE & valid certification king
DumpsKing http://www.dumpsking.com Latest exam dumps & reliable dumps VCE & valid certification king Exam : 1z1-062 Title : Oracle Database 12c: Installation and Administration Vendor : Oracle Version
More informationData Integration and ETL with Oracle Warehouse Builder
Oracle University Contact Us: 1.800.529.0165 Data Integration and ETL with Oracle Warehouse Builder Duration: 5 Days What you will learn Participants learn to load data by executing the mappings or the
More informationManaging Your Database Using Oracle SQL Developer
Page 1 of 54 Managing Your Database Using Oracle SQL Developer Purpose This tutorial introduces Oracle SQL Developer and shows you how to manage your database objects. Time to Complete Approximately 50
More informationTransaction Management Chapter 11. Class 9: Transaction Management 1
Transaction Management Chapter 11 Class 9: Transaction Management 1 The Concurrent Update Problem To prevent errors from being introduced when concurrent updates are attempted, the application logic must
More informationHR Database. Sample Output from TechWriter 2007 for Databases
Table of Contents...3 Tables... 4 COUNTRIES... 5 DEPARTMENTS... 6 EMPLOYEES... 7 JOBS... 9 JOB_HISTORY... 10 LOCATIONS...12 REGIONS...13 Views...14 EMP_DETAILS_VIEW... 15 Procedures...17 SECURE_DML...18
More informationDUE: 9. Create a query that will return the average order total for all Global Fast Foods orders from January 1, 2002, to December 21, 2002.
CIS 207 Oracle - Database Programming and SQL HOMEWORK: # 10 DUE: Run the following queries in Oracle Application Express. Paste a copy of each query Into this word document below the questions or notepad.txt
More informationData Definition Language (DDL)
Islamic University of Gaza Faculty of Engineering Computer Engineering Dept. Database Lab (ECOM 4113) Lab 6 Data Definition Language (DDL) Eng. Mohammed Alokshiya November 11, 2014 Database Keys A key
More informationInstalling and Configuring Oracle 10g Express Edition. for use with the ETM System
Installing and Configuring Oracle 10g Express Edition for use with the ETM System Contents Oracle 10g XE Installation and Configuration 1 Preparing Oracle 10g XE for use with the ETM System...1 Installation...1
More informationExploring Oracle Database 12c Multitenant Best Practices for your Cloud
Exploring Oracle Database 12c Multitenant Best Practices for your Cloud Ami Aharonovich Oracle ACE & OCP Ami@DBAces.com Oracle ACE About Me Oracle Certified Professional DBA (OCP) Founder and CEO, DBAces
More informationExploring Oracle Database 12c Multitenant Best Practices for your Cloud Ami Aharonovich
Exploring Oracle Database 12c Multitenant Best Practices for your Cloud Ami Aharonovich Oracle ACE & OCP Ami@DBAces.com Oracle ACE About Me Oracle Certified Professional DBA (OCP) Founder and CEO, DBAces
More informationOracle Database 12c: JMS Sharded Queues
Oracle Database 12c: JMS Sharded Queues For high performance, scalable Advanced Queuing ORACLE WHITE PAPER MARCH 2015 Table of Contents Introduction 2 Architecture 3 PERFORMANCE OF AQ-JMS QUEUES 4 PERFORMANCE
More informationExamples Installation Guide
Oracle Database Examples Installation Guide 12c Release 2 (12.2) E85784-01 May 2017 Examples Installation Guide This document describes how to install and configure the products available on the Oracle
More informationITCertMaster. Safe, simple and fast. 100% Pass guarantee! IT Certification Guaranteed, The Easy Way!
ITCertMaster Safe, simple and fast. 100% Pass guarantee! http://www.itcertmaster.com IT Certification Guaranteed, The Easy Way! Exam : 1Z0-870 Title : MySQL 5.0, 5.1 and 5.5 Certified Associate Exam Vendors
More informationOracle 9i release 1. Administration. Database Outsourcing Experts
Administration Default Temporary Tablespace The system will automatically allocate new users an appropriate temporary tablespace without you needing to specify it explicitly in the create user statement.
More informationStudies for Implementing Triggers
Studies for Implementing Triggers Objectives After completing this appendix, you should be able to do the following: Enhance database security with triggers Enforce data integrity with DML triggers Maintain
More informationPL/SQL. Exception. When the PL/SQL engine cannot execute the PLSQL block it raise an error. Every Oracle error has an error number
PL/SQL Exception When the PL/SQL engine cannot execute the PLSQL block it raise an error. Every Oracle error has an error number Exceptions must be handled by name. PL/SQL predefines some common Oracle
More informationTibero Migration Utility Guide
Tibero Migration Utility Guide Copyright 2014 TIBERO Co., Ltd. All Rights Reserved. Copyright Notice Copyright 2014 TIBERO Co., Ltd. All Rights Reserved. 5, Hwangsaeul-ro 329beon-gil, Bundang-gu, Seongnam-si,
More information1. Using Bitvise SSH Secure Shell to login to CS Systems Note that if you do not have Bitvise ssh secure shell on your PC, you can download it from
60-539 Fall 2016 Some SQL Commands 1. Using Bitvise SSH Secure Shell to login to CS Systems Note that if you do not have Bitvise ssh secure shell on your PC, you can download it from http://www.putty.org/..
More informationOracle Internal & Oracle Academy
D49990GC11 Edition 1.1 April 2009 D59428 Oracle Database 11g: PL/SQL Fundamentals Student Guide Authors Tulika Srivastava Lauran K. Serhal Technical Contributors and Reviewers Tom Best Christoph Burandt
More information