DBA’s, Oracle Designer and the Development Life Cycle By Peter Wilkinson, Mercury International Ltd. Leslie Tierstein, SCI Consulting, Inc.

Slides:



Advertisements
Similar presentations
Module 13: Performance Tuning. Overview Performance tuning methodologies Instance level Database level Application level Overview of tools and techniques.
Advertisements

MOSS 2007 Document Management Adam McCarthy 1 st April 2009.
Enhanced XA Security CISTECH Security Solutions Belinda Daub, Senior Consultant Technical Services
Stored procedures and views You can see definitions for stored procedures and views in the demo databases but you can’t change them. For views, expand.
Intermediate Visual Basic CISP 371 CRC Prof. Chapman.
1 You’ve Got Mail Mark Castaldo, STR LLC Leslie M. Tierstein, STR LLC.
Building Enterprise Applications Using Visual Studio ®.NET Enterprise Architect.
Chapter 9 Auditing Database Activities
Cornell University Library Instruction Statistics Reporting System Members: Patrick Chen (pyc7) Soo-Yung Cho (sc444) Gregg Herlacher (gah24) Wilson Muyenzi.
DT211 Stage 2 Databases Lab 1. Get to know SQL Server SQL server has 2 parts: –A client, running on your machine, in the lab. You access the database.
Concepts of Database Management Sixth Edition
A Guide to MySQL 3. 2 Objectives Start MySQL and learn how to use the MySQL Reference Manual Create a database Change (activate) a database Create tables.
Attribute databases. GIS Definition Diagram Output Query Results.
Chapter 7 Managing Data Sources. ASP.NET 2.0, Third Edition2.
Working with SQL and PL/SQL/ Session 1 / 1 of 27 SQL Server Architecture.
AGENDA Tools used in SQL Server 2000 Graphical BOL Enterprise Manager Service Manager CLI Query Analyzer OSQL BCP.
SQL Server Management Studio Introduction
Database Administration Chapter 16. Need for Databases  Data is used by different people, in different departments, for different reasons  Interpretation.
Database Updates Made Easy In WebFocus Using SQL And HTML Painter Sept 2011 Lender Processing Services 1.
Simplify your Job – Automatic Storage Management Angelo Session id:
Database Security and Auditing: Protecting Data Integrity and Accessibility Chapter 3 Administration of Users.
Introduction To Databases IDIA 618 Fall 2014 Bridget M. Blodgett.
This presentation will guide you though the initial stages of installation, through to producing your first report Click your mouse to advance the presentation.
Medical Application Giant Squid Michal Cohen Robet Esho Chris Hogan Kate Kuleva Nisha Makwana Alex Rodrigues Rafal Urbanczyk.
A Guide to SQL, Eighth Edition Chapter Three Creating Tables.
Overview of SQL Server Alka Arora.
Creating databases for web applications
Database Security and Auditing: Protecting Data Integrity and Accessibility Chapter 3 Administration of Users.
DBMS By Narinder Singh Computer Sc. Deptt. Topics What is DBMS What is DBMS File System Approach: its limitations File System Approach: its limitations.
Denise Luther Senior IT Consultant Practical Technology Enablement with Enterprise Integrator.
PHP Programming with MySQL Slide 8-1 CHAPTER 8 Working with Databases and MySQL.
Chapter Oracle Server An Oracle Server consists of an Oracle database (stored data, control and log files.) The Server will support SQL to define.
Creating databases for web applications SQL. Systems design. ER diagrams. Data flow diagrams. Storyboards. Homework: Plan database and applications for.
An Investigation of Oracle and SQL Server with respect to Integrity, and SQL Language standards Presented by: Paul Tarwireyi Supervisor: John Ebden Date:
Sofia, Bulgaria | 9-10 October SQL Server 2005 High Availability for developers Vladimir Tchalkov Crossroad Ltd. Vladimir Tchalkov Crossroad Ltd.
PHP meets MySQL.
Eurotrace Hands-On The Eurotrace File System. 2 The Eurotrace file system Under MS ACCESS EUROTRACE generates several different files when you create.
DBSQL 14-1 Copyright © Genetic Computer School 2009 Chapter 14 Microsoft SQL Server.
MySQL. Dept. of Computing Science, University of Aberdeen2 In this lecture you will learn The main subsystems in MySQL architecture The different storage.
Chapter 7 Working with Databases and MySQL PHP Programming with MySQL 2 nd Edition.
ITEC 370 Lecture 16 Implementation. Review Questions? Design document on F, feedback tomorrow Midterm on F Implementation –Management (MMM) –Team roles.
Security.
Oracle 10g Database Administrator: Implementation and Administration Chapter 2 Tools and Architecture.
CERN - IT Department CH-1211 Genève 23 Switzerland t DB Development Tools Benthic SQL Developer Application Express WLCG Service Reliability.
Chapter 5 MYSQL Database. Introduction to MYSQL MySQL is the world's most popular open-source database. Open source means that the source code, the programming.
Database Security and Auditing: Protecting Data Integrity and Accessibility Chapter 9 Auditing Database Activities.
Chapter 8: Objectives Explain how to use a server in a home or office network Install a server Set up a server Manage and monitor a server Design a server-based.
Database Administration
1 MSTE Visual SourceSafe For more information, see:
Introduction to Teradata Client Tools. 2 Introduction to Teradata SQL  OBJECTIVES :  Teradata Product Components.  Accessing Teradata – Database /
1 A Very Brief Introduction to Relational Databases.
T EST T OOLS U NIT VI This unit contains the overview of the test tools. Also prerequisites for applying these tools, tools selection and implementation.
Introduction to MySQL  Working with MySQL and MySQL Workbench.
20 Copyright © 2006, Oracle. All rights reserved. Best Practices and Operational Considerations.
Database Administration Advanced Database Dr. AlaaEddin Almabhouh.
Building the Corporate Data Warehouse Pindaro Demertzoglou Lally School of Management Data Resource Management.
16 Copyright © 2004, Oracle. All rights reserved. Testing the Migrated Oracle Database.
Others Talk, We Listen. Managing Database Projects in Visual Studio 2013.
SQL Database Management
3 A Guide to MySQL.
Building Enterprise Applications Using Visual Studio®
Graphical Data Engineering
SQL and SQL*Plus Interaction
Efficiently Searching Schema in SQL Server
Teaching slides Chapter 8.
DAT381 Team Development with SQL Server 2005
Summit Nashville /3/2019 1:48 AM
Using SQL*Plus.
Databases and Information Management
Professional Services Tools Library (PSTL)
Presentation transcript:

DBA’s, Oracle Designer and the Development Life Cycle By Peter Wilkinson, Mercury International Ltd. Leslie Tierstein, SCI Consulting, Inc

Why Designer Is Useless for a DBA  Always need to reengineer data model  Not up to date  No links to other monitoring tools  Cannot record new database properties  Cannot refine indexes for use  A lot to learn just for a pretty ERD  Expensive

What Can Designer Do for Me?  Can it:  Monitor the database?  Automatically inform me of changes?  Analyze indexes?  Suggest new ones?  Reorganize/partition tables?  Quickly add users?  Integrate with other tools I (may/will) have.

What Can Designer Do for Me  Designer shows what SHOULD be in the database – not what currently is in it  Record and document changes made

Starting with the Server…

Give Me a Good Example  User maintenance  How is user information currently recorded?  Who should have a valid login?  What privileges should they have?  When were changes made?  When did users leave?

User Maintenance

What About Buffer Pools! Got You!  A new property in 8i  Expanded in 9i  Not found in Designer  Very useful to a DBA for tuning table access

User Extensions (1)  Add extra properties to an existing Designer object  Up to 20 extra properties per object  Basic editing properties (numeric/character/date, length)  Define additional objects  Define associations between objects

User Extensions (2)  Where are they stored?  Refer to the document.\CDOC72\model\el_defs\outer_frame2_de.htm  Or use the F5 key in the Design Editor  How can they be used?

Defining a User Extension

SQL> desc ci_table_implementations Name Null? Type CACHED VARCHAR2(1) CHANGED_BY VARCHAR2(30) COMPLETE_FLAG NOT NULL VARCHAR2(1) CREATED_BY NOT NULL VARCHAR2(30) DATABASE_USER_REFERENCE NOT NULL NUMBER(38) ……. STORAGE_DEFINITION_REFERENCE NUMBER(38) TABLE_DEFINITION_REFERENCE NUMBER(38) TABLESPACE_REFERENCE NUMBER(38) TYPES NOT NULL NUMBER(38) USER_DEFINED_PROPERTY_0 VARCHAR2(240) USER_DEFINED_PROPERTY_1 VARCHAR2(240) USER_DEFINED_PROPERTY_ 10 VARCHAR2(240) USER_DEFINED_PROPERTY_11 VARCHAR2(240) …….

User Extensions - Code Generation  Using SQL, log into Designer and access your workarea  Work out which tables/views hold your data  Must be familiar with Designer metamodel  Use the CI_ views  Create a SQL script to generate an implementation script

PROMPT Connect to Designer database CONNECT SELECT name FROM sdd_workareas ORDER BY 1; ACCEPT p_wa PROMPT 'Select Workarea from above ' EXEC jr_context.set_workarea('&p_wa') Using User Extensions (1)  Connect to the Designer database and workarea

SELECT name FROM ci_application_systems ORDER BY 1; ACCEPT p_app PROMPT 'Select Application System from above ' SELECT orad.name FROM ci_app_sys_databases asda,ci_oracle_databases orad,ci_application_systems apps WHERE orad.id = asda.database_reference AND apps.id = asda.application_system_reference AND apps.name = '&p_app' ORDER BY 1; ACCEPT p_db PROMPT 'Select Master Definition Database from above ' Using User Extensions (2)  Select the application system and database

Using User Extensions (3) REM Store the id of the database to save a join VARIABLE c_orad_id NUMBER BEGIN SELECT orad.id INTO :c_orad_id FROM ci_application_systems apps,ci_app_sys_databases asda,ci_oracle_databases orad WHERE asda.application_system_reference=apps.id AND asda.database_reference=orad.id AND apps.name = '&p_app' AND orad.name = '&p_db'; END; /  Store to ID of the database for later use

SPOOL s:\replication\bms_1\buffer_pools1.sql SELECT 'PROMPT Set buffer pool for ' || dboi.global_synonym_name || chr(10) || 'ALTER TABLE ' || datu.name || '.' || dboi.global_synonym_name || chr(10) || ‘ STORAGE (BUFFER_POOL ' || nvl(dboi.user_defined_property_0,'default') || ');' FROM ci_oracle_databases orad,ci_replication_groups repg,ci_db_object_implementations dboi,ci_database_users datu WHERE orad.id = :c_orad_id AND repg.parent_ivid = orad.ivid AND dboi.replication_group_reference = repg.id AND dboi.complete_flag = 'Y' AND dboi.object_implementation_type = 'TBI' AND dboi.global_synonym_name IS NOT NULL AND datu.id = dboi.database_user_reference ORDER BY datu.name,dboi.global_synonym_name; Using User Extensions (4)

PROMPT Set Buffer Pool for BMS_ANALYSIS_JOBS ALTER TABLE BMS.BMS_ANALYSIS_JOBS STORAGE (BUFFER_POOL RECYCLE); Using User Extensions (5)  The result is a simple, syntactically correct, statement for every table you want to implement

Impress Me Again!  Advanced replication – real generation scripts  Create new properties for priority groups and values  Create new properties for conflict resolution columns  Define databases and replication groups  Define common procedures for handling conflicts

Go On….  Write scripts to  Create database links and initialize the propagator  Install common procedures  Create notification (conflict resolution) packages  Create replication groups and priority groups  Assign database objects (tables/index/packages) to replication groups  Assign default column groups to tables

Getting the Picture…  Write SQL scripts to  Add conflict resolution to tables  Generate replication support  Add table triggers  Add new master sites  Use DBA studio to monitor scripts and tidy up (push/purge jobs)  Finally upload the scripts into your workarea

How is this Done?  Either  Designers will have completed applications in Designer to be implemented in the database  Reverse engineer an existing application  Have your own login and versioning branch  Create your own DBA workarea and application  Grant relevant access to applications you have to manage  Must have VERSIONING

… And Versioning Means What?  Keeps a records of the database before major (or minor) improvements are done  Preserves the techniques used to improve indexes etc. so they can be shown to other DBAs or as a reminder for future work  Useful if new changes do not work out  Designers can learn from your work  Scripts can be stored and versioned

Storing Documents  Your can store many types of documents (ASCII, Word etc.) into Designer where they are safe and versioned  Examples  Project plans  Implementation procedures/notes  Init.ora  Listener.ora

Uploading Files

Merging  Merging versioned objects  Changes from bug fixes, amendments, DBA analysis  Automatic merging (for the brave)  Manual merging (for everyone else)  Shown in Version History Viewer

Merge Window

DBA Benefits  Self documenting  Central control point  Share information with other DBA’s  Feedback to developers  Scripts and other documents are safely stored

Developer Benefits  Can see how their application actually gets implemented  See how their original index/table specifications have been improved  Improve their own design based on how the application is currently implemented  Improve communication between design and DBA groups

Management Benefits  Increase team cooptation and communications  Leverage cost benefits  DBA knowledge is now stored and shareable  Better management/auditing reports  Increase efficiency  Company procedures (defined)/followed

Questions and Answers  Now is the time to ask questions  This is a real project with real data  Thank you all for listening and participating The End

About the Authors  Leslie Tierstein is a Senior Technical Manager at SCI Consulting, Inc. She can be reached at  Peter Wilkinson is a DBA at Mercury International LTD.