Download presentation
Presentation is loading. Please wait.
Published byCory Horn Modified over 5 years ago
1
Oracle @ DESY DV-Seminar 26.01.2009
Harald Falkenberg / Christine Apfel
2
History ongoing replacement of IBM/MVS main frame by Unix systems
replacement needed for DB2 and AS migration of HERA documentation (magnet DB, vakuum DB), H1, M, phonebook applications reqirements on new database system: support multiple OS: IBM/MVS, Mac, Windows 3.x, VMS, Unix: AIX, HP/UX, IRIX, SunOs, Solaris, Ultrix support of embedded C/C++, Fortran, Cobol libraries support of fill-in and reproting tools support of planed new applications: CAD/Cim database, account registry, date book, data analyses of HERA experiments (H1, Zeus)
3
Oracle start in 1993 decision to buy Oracle database licences due to:
multiple user environment very broad OS support for server and client software support of developer and front-end tools: forms, graphics, report support of programming languages (OCI) In the end: start with oracle 7.1
4
History of oracle platforms
5
Oracle Usage and Applications
450 Accounts have Oracle Resource enabled in DESY-Registry Oracle Applications (no complete list) Aleph/ExLibris, AMS, CAD CIM-DB/W1, DACHS/INTERFLEX, Datebook, DOOR, EDMS, GINFO, GIS/FMS, GWO, div H1 Applications, HASYLAB, HASYLAB/JB, HERA-AS, HERA-B, IT-Info, KDS, div M-Applications, M-Logbuch, Mail-PA/-CTL, Mail-Sweaper, Mail-Reporting MKK-Cad/-Climate/-Logbook/-Power/-Water, MKS-AMS, MKS-Epicsora, MKS-Toolbox MCS Webarchiv, SCICON, Self-Registration, EDUCourses, MPY/XFEL PIP/Phonebook, PITZ, POL, div PT/HS Applications, PVSS, PUBDB, Registry, Registry-NAF, RQS NOC WF-Stat, INFEE, IT-Sec Apps SPMS/JACOW, SYMPHA, TTF/XFEL-DB WWW-Apps, Web-Server-Registry, div Zeus-Applications a.s.o. ADF APEX
6
Statistics the following administrative statistics are available in
an apex application user logons per day user average concurrent logon per day user logons per hour - concurrent database storage
7
Overview about oracle service
Application Server (10.2. / 10.3.) RAC (Oracle ) System-Administration APEX Training / Workshops System-Backup Software Supply Database-Support Database-Administration Data-Backup Migration Documentation Applications-Server-Administration Forms/Reports Support in Developertools
8
Oracle RAC Cluster
9
Database Administration
user/application (Creation, Privileges, Resource management (Tablespace, Quota, CPU, Memory usage)) OS-, CS-, ASM-, Database monitoring and status reports AWR/workload repository and application monitoring performance findings and tuning advisors troubleshooting triggered by users and applications database services and SQL*NET/access to DBs ASM (automatic storage management) applying of patches [ rac software / db packages ] goal: keeping a shared resource usable for every user/application
10
Database/Data-Backup and Recovery
Database-Administration on-line Database Backup 2 times the week archive logs and database backup saved on ASM backup disk group backup of ASM backup disk group in TSM nightly export of user data (dumps) User possibilities undo retention of 4 hours (rollback) recycle bin (dropped tables, not garantied) Recovery options recovering of database, tablespaces and datafiles import of exported user data
11
Documentation providing of documentation on
-> services -> databases -> oracle first steps to use oracle at desy user environment in DB, description of tools sqlplus exp/imp sqlloader howtos to embed oracle access in c, java, perl, phython, php... howto use ODBC with MS Office products on-line books (oracle 10g documentation)
12
Trainings / Workshops Training Workshops
in house by desy oracle-service in house with Oracle trainers by request negotiation of fees (discount) for in-house and extern courses Workshops organization of workshop events (also by user requests) inviting speakers from Oracle staff to actual topics Apex Forms/Reports – Migration → ADF BI-Publisher new SQL DB features DOAG in house talks
13
Support / Consultance e-mail address: oracle.service@desy.de
announcements via mailing list: consulting users: troubleshooting, data modelling, sql & pl/sql, performance & tuning, apex, j2ee/oc4j, bi-publisher, client software installation and configuration
14
database migration Process of transforming data from a database system to oracle database system the entire database schema include trigger and stored procedures … and data usefully performed program-matically ***more or less Oracle Migration Workbench precheck for datatypes advisable data verification to determine whether data is accurately transformed data is complete dependent applications are still working
15
Software Supply / Maintenance
Windows NetInstall products oracle client 10g (sqlplus, exp/imp, odbc/jdbc) sql developer jdeveloper forms/reports available by request Linux (sl4 & sl5) oracle 10g client & sqldeveloper already available other tools available by request Solaris oracle 10g client software
16
Processing of sql-statements
Current DB-parameter settings: CURSOR_SHARING = EXACT The database uses this parameter to control whether it will „auto-bind“ a SQL Statement. Goals: scalability and throughput reducing load on the shared pool (sql area) parse once / execute many eliminating literal SQL
17
Query transformation engine
Processing chart Sql-statement(s) Statement Parser Set of query blocks SGA Shared pool CBO (Cost based optimizer) Query transformation engine Data dictionary cache Library cache Estimator Plan generator P-Code, Execution Plan Query Execution
18
Processing of sql-statements
1. submit sql to server 2. determine meta data hash val (username, object-owner, session-parameter,...) and hash of sql statement 3. determine if meta-hash and sql-hash exist in shared pool if not you will get the following overhead: - CBO determines execution plan (CPU, I/O, access statistics) - parsing/compilation of sql (library cache) - storing parsed sql in shared pool (I/O, shared pool consumption) 4. execution of parsed sql statement conclusion: sql statements with literals have always different hash-values and produce overhead using sql statements with bind variables benefit in avoiding overhead and use less database resources and gain performance
19
Bind vs no Bind With Bind Variables Without Bind Variables
public void createStatement() throws SQLException { rs = null; pstmt = null; try { // Create statement pstmt = conn.prepareStatement("SELECT ? FROM dual"); System.out.println("Start: " + new Date()); for (int i = 1; i < ; i++) { // Use bind variable for subsitution pstmt.setString(1, String.valueOf(i)); // Execute the query rs = pstmt.executeQuery(); } System.out.println("End: " + new Date()); } catch (SQLException se) { System.out.println("SQL Exception:"); se.printStackTrace(); finally { pstmt.close(); Die Ausführung der Klasse Bind liefert hingegen folgendes Resultat: Start: Mon Jan 26 09:18:50 CEST 2009 End: Mon Jan 26 09:19:41 CEST 2009 Without Bind Variables public void createStatement() throws SQLException { rs = null; stmt = null; try { // Get Connection stmt = conn.createStatement(); System.out.println("Start: " + new Date()); for (int i = 0; i < ; i++) { // Execute Statement rs = stmt.executeQuery("SELECT " + i + " FROM dual"); } System.out.println("End: " + new Date()); } catch (SQLException se) { System.out.println("SQL Exception:"); se.printStackTrace(); finally { // Close the result set, pstatement and the connection stmt.close(); Die Ausführung dieser Klasse NoBind liefert folgendes Resultat: Start: Mon Jan 26 09:00:33 CEST 2009 End: Mon Jan 26 09:05:21 CEST 2009
20
APEX – Application Express
What is APEX a complete and integrated application development system and runtime system for web applications application builder sql workshop with query builder utility area (data up-/download, schema ddl a.s.o.) development framework via normal internet browser applications are immediately available (after publishing the URL) different authentication methods available incl. kerberos APEX is available with each oracle-Database incl. Oracle XE publicated as best successor for Forms & Reports
21
APEX Advantages intuitive user interface
convenient assistants for application building interactive reports complete designed layout-template master detail forms and reports webservices per mouse-click available Flash-grafics printer friendly output (e.g. pdf, word) web compatible pl/sql editor Note: APEX Workshop in June !!!
22
APEX @ DESY available at DESY since March 2008
up to now 15 Workspaces with currently 28 Applications (more or less complicated) combined with bi-publisher report engine to generate the following output formats: html / xml pdf cvs excel / word flash grafics
23
Oracle Service contact: oracle.service@desy.de
in addition you can contact us any time in case of planing of database applications data modelling evaluation of new database applications and any support questions
Similar presentations
© 2025 SlidePlayer.com Inc.
All rights reserved.