Open Source Tools for Oracle DBAs - NYOUG · © Heavyweight Internet Group 2005 Open Source Tools...

Post on 30-Mar-2020

6 views 0 download

Transcript of Open Source Tools for Oracle DBAs - NYOUG · © Heavyweight Internet Group 2005 Open Source Tools...

© Heavyweight Internet Group 2005

Open Source Toolsfor Oracle DBAs

© Heavyweight Internet Group 2005

IntroductionNew technology and possibilitiesCommunityExchange of ideasFreedom from licensing issues

© Heavyweight Internet Group 2005

A Short History1992 – First Linux Distro, Oracle v71997 – SCO Comp Lib + Oracle 7.31997 – Oracle releases v8 on Linux2001 - Mod_plsql, Apache – Oracle AS2003 – All Oracle products run on Linux

© Heavyweight Internet Group 2005

System Monitoringwith Nagios

various interfaces – browser, pda*nix platformsuses Apacheauthorization + securityCustomizablehistorical datahttp://nagios.org

© Heavyweight Internet Group 2005

System Monitoringwith Nagios

© Heavyweight Internet Group 2005

System Monitoringwith Nagios

© Heavyweight Internet Group 2005

Monitoring Files withFetchlog

Monitor listener.log, alert.log, backup logs, etcMatches regular expressionsBookmarks where you were last in fileSpecify logfile, bookmarks file, pattern on cmd lineIntegrates easily with Nagios

© Heavyweight Internet Group 2005

Version Control withCVS

Win32 or *nix clientsSource code, config files, docsEasy setupMultiple repositoriesBranches, commit, checkout etc.http://www.cvshome.org

© Heavyweight Internet Group 2005

SecurityLike backups, sometimes ignored at your own perilFile permissionsBuffer overflows, vulnerability alertsSQL InjectionPasswordsSpoofing packets, eavesdroppingEx. Dblink buffer overflow to SYS privileges

© Heavyweight Internet Group 2005

SecurityIntegrit (http://integrit.sourceforge.net/)o creates checksums on files on initial runo monitor ORACLE_HOME directorieso check for changes, patches, relinking, deleted fileso great for auditing

© Heavyweight Internet Group 2005

SecurityBurp Intruder (http://portswigger.net/proxy/)o Audit applications for SQL Injectiono Run various tests against web-based applicationso Hijackingo Cross-site scripting

© Heavyweight Internet Group 2005

SecurityNMapscan servers for open portsOracle listener, ssh, smtp, http etc

© Heavyweight Internet Group 2005

SecurityPete Finnigan’s siteo default password checkero password crackero grants + privs checkingo filesystem vulnerabilitieso various probes + scannerso listing of other tools – free + commercial

© Heavyweight Internet Group 2005

Real ApplicationClusters

RedHat’s GFS vs OCFSCentOS for RedHat Distros w/o SupportXenSource.com – free VMWare

© Heavyweight Internet Group 2005

Real ApplicationClusters

oss.oracle.como endpoint – firewire disk emulationo OCFS test, tools etco watchdog driver patcheso libaio – async I/Oo ASMLib – automatic storage managero compatability – for unsupported Linux distroso NIC failover

© Heavyweight Internet Group 2005

Tuning ToolsOrasrp (http://oracledba.ru/orasrp/)o session resource profiler, monitoring, tracing sessionsDBTop (http://www.scaleabilities.com/tools.shtml)o Java tool, provides TOP like interface to the databaseo resource intensive, but interactive

© Heavyweight Internet Group 2005

Tuning ToolsSQLGotcha (http://www.marcel-jan.nl/oracle/scripts/oracle_script_sqlgotcha.html)o helps you trace a session in Oracle, by tracking

down sid & serial# for youIometer (http://www.iometer.org/)o Linux, Win32, Netware, Solariso stress testingo monitoring

© Heavyweight Internet Group 2005

User Interface Toolsrlwrap (http://utopia.knoware.nl/~hlub/uck/rlwrap/)o provides command completion, history for applications

which use the readline() callgqlplus (http://gqlplus.sourceforge.net/)o SQL*Plus replacementphporaadmin (http://phporaadmin.sourceforge.net/)o based on phpMyAdminyasql (http://yasql.sourceforge.net/)o SQL*Plus replacement

© Heavyweight Internet Group 2005

Developer Toolsorace (http://orace.sourceforge.net/)o Oracle Code Editor, color editing, debugginghammerora (http://hammerora.sourceforge.net/)o stress test your databaseo perform TPC-C benchmarkso 8i, 9i, 10g

© Heavyweight Internet Group 2005

Developer Toolsschemadiff (http://sourceforge.net/projects/schemadiff/)o compare two schemas in a databaseo Perl, DBI, Oracle::DDL libraryTOra (http://sourceforge.net/projects/tora/)o toolkit for Oracleo PL/SQL debugger, editoro color editingo schema browser

© Heavyweight Internet Group 2005

Developer ToolsLOG4PLSQL (http://log4plsql.sourceforge.net/)o uses autonomous transactiono log debug messages to fileso no rollback, exception interruption of messagesutPLSQL (http://utplsql.sourceforge.net/)o Steve Feuerstein’s unit testing frameworkProDBA (http://prodba.sourceforge.net/)o java based color editor, schema browser

© Heavyweight Internet Group 2005

Miscellaneous ToolsOraRep (http://www.izzysoft.de/?topic=oracle)o generate nice HTML formatted reportso HTML reports from statspackm2o.pl(http://www.pythian.com/news/papers/m2o.html)o script to migrate from MySQL to Oracle

© Heavyweight Internet Group 2005

Open SourceDatabases

MySQL (http://www.mysql.com/)triggers, stored procs, views, ACID in v5.xMaxDB (http://www.mysql.com/products/maxdb/)MySQL for SAP implementationsFirebird (http://firebird.sourceforge.net/)based on Interbase, runs on Win32, Linux, HPUX,Solaris, FreeBSDtriggers, stored procs, views, ACID

© Heavyweight Internet Group 2005

Open SourceDatabases

Postgres (http://www.postgresql.org/)triggers, views, stored procs, ACIDIngres (http://opensource.ca.com/projects/ingres)

© Heavyweight Internet Group 2005

Open SourceDatabases

Unlikely to follow the Linux path to ubiquityFollow a different historyMost clients who are using MySQL want to switch to OracleVLDB + Data Warehousing features very limitedBackup, Standby, HA are non-trivialWill continue to feed the low-end market

© Heavyweight Internet Group 2005

Open SourceSoftwareRepositories

http://sourceforge.neto cvs, downloads, homepages, forums etchttp://freshmeat.neto best repository of Open Source softwareo search by keywords, categorieso sort by popularity, relevanceo links to homepage, contact developerso license details

© Heavyweight Internet Group 2005

Misc. Scripts + ToolsPete Finnigan (http://petefinnigan.com)Tom Kyte (http://asktom.oracle.com)Miracle (http://www.miracleas.dk/)OakTable (http://oaktable.net)http://www.trivadis.ch/e/knowhow/downloads/index.asp

© Heavyweight Internet Group 2005

Various ListsOracle-L (http://www.freelists.org/webpage/oracle-l)Lazy DBA (http://www.lazydba.com/)usenet: comp.databases.oracle.serverusenet: comp.databases.oracle.misc

© Heavyweight Internet Group 2005

RecommendedWeblogs

AMIS Tech Corner (http://technology.amis.nl/blog/)David Aldridge (http://oraclesponge.blogspot.com/)Niall Litchfield (http://www.niall.litchfield.dial.pipex.com/)Mark Rittman (http://www.rittman.net/)

© Heavyweight Internet Group 2005

RecommendedWeblogs

Oracle + Open Source (http://oracleopensource.com)Pete Finnigan(http://www.petefinnigan.com/weblog/entries/)

© Heavyweight Internet Group 2005

Contact UsHeavyweight Internet Group<shull@iheavy.com>http://iheavy.comp 646 827 9877