ingres for oracle experienced users -...

27
Confidential — © 2008 Ingres Corporation Slide 1 Ingres for Oracle Experienced Users

Upload: others

Post on 24-Jul-2020

6 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Ingres for Oracle Experienced Users - Actiandownloads.actian.com/online/media/pdf/Education-Series/IngresForO… · Who am I? Product manager at Ingres Father, adventurer and husband

Confidential — © 2008 Ingres Corporation Slide 1

Ingres for Oracle Experienced Users

Page 2: Ingres for Oracle Experienced Users - Actiandownloads.actian.com/online/media/pdf/Education-Series/IngresForO… · Who am I? Product manager at Ingres Father, adventurer and husband

Audience

People who “learned” on Oracle Oracle DBAs PL/SQL Developers Developers of applications that were on Oracle

NOT for:– Ingres experienced people– Other database DBAs and developers

Confidential — © 2008 Ingres Corporation Slide 2

Page 3: Ingres for Oracle Experienced Users - Actiandownloads.actian.com/online/media/pdf/Education-Series/IngresForO… · Who am I? Product manager at Ingres Father, adventurer and husband

Who am I?

Product manager at Ingres Father, adventurer and husband NOT an Ingres Expert!

– Light development and DBA activities on test and production systems… I leave it to the experts, but needed to know!

Long time Oracle user, developer and DBA– Came to the table with notions of “the way things work”– Started on Oracle 6– Production DBA on 7.3-10g– Developed and managed dev teams on Oracle using variety of

tech stacks– OCP on versions 7, 8 and 8i

Confidential — © 2008 Ingres Corporation Slide 3

Page 4: Ingres for Oracle Experienced Users - Actiandownloads.actian.com/online/media/pdf/Education-Series/IngresForO… · Who am I? Product manager at Ingres Father, adventurer and husband

What they have in Common

Enterprise class databases– Large global customers supported 24x7– Enterprise experience from the front line to the CEO– Proven Track Record of mission-critical large

application deployments– Superb recoverability– Superb scalability– Superb standards support

Confidential — © 2008 Ingres Corporation Slide 4

Page 5: Ingres for Oracle Experienced Users - Actiandownloads.actian.com/online/media/pdf/Education-Series/IngresForO… · Who am I? Product manager at Ingres Father, adventurer and husband

Ingres Installation

Oracle Oracle Home

Ingres Ingres Install

Confidential — © 2008 Ingres Corporation Slide 5

• Both used as a unit for patching and upgrading• Can have multiple per OS instance• Each have a unique identifier

Page 6: Ingres for Oracle Experienced Users - Actiandownloads.actian.com/online/media/pdf/Education-Series/IngresForO… · Who am I? Product manager at Ingres Father, adventurer and husband

Ingres… The Database

Oracle “Database” Many databases Per

Install/Home

One big clump, separation by “Schema” or user

Ingres “Database” Many per Install and

Instance!

Databases separated from system ts via iidbdb, cross db users

Confidential — © 2008 Ingres Corporation Slide 6

Page 7: Ingres for Oracle Experienced Users - Actiandownloads.actian.com/online/media/pdf/Education-Series/IngresForO… · Who am I? Product manager at Ingres Father, adventurer and husband

Ingres and Users

Oracle User Typically internally

defined

Specific to db Instance

DBAs defined via roles/privs (“shadow” DBAs)

Ingres OS user driven

Cross db or even Install

DBA defined at createdb

Confidential — © 2008 Ingres Corporation Slide 7

Page 8: Ingres for Oracle Experienced Users - Actiandownloads.actian.com/online/media/pdf/Education-Series/IngresForO… · Who am I? Product manager at Ingres Father, adventurer and husband

Ingres Connectivity

Oracle TNS Name/Service

Name Instance/Listener

Process driven

Ingres Vnode

Install-driven [II]

Confidential — © 2008 Ingres Corporation Slide 8

Page 9: Ingres for Oracle Experienced Users - Actiandownloads.actian.com/online/media/pdf/Education-Series/IngresForO… · Who am I? Product manager at Ingres Father, adventurer and husband

Ingres Backup and Recovery

Oracle Cold Backup

Hot Backup

Exp/imp

Archive Log Mode– By instance

Ingres OS Backup of Locs and

II_SYSTEM

ckpdb

Unloaddb/copydb

Journaling turned on– Per db, always iidbdb @

install

Confidential — © 2008 Ingres Corporation Slide 9

Page 10: Ingres for Oracle Experienced Users - Actiandownloads.actian.com/online/media/pdf/Education-Series/IngresForO… · Who am I? Product manager at Ingres Father, adventurer and husband

Ingres Startup and shutdown

Oracle sqlplus < startup Privileged SQL Driven

Service on Windows

Per Database

Ingres ingstart CLI/Tool Driven

Service on Window

Across databasesBefore even create or recover

Confidential — © 2008 Ingres Corporation Slide 10

Page 11: Ingres for Oracle Experienced Users - Actiandownloads.actian.com/online/media/pdf/Education-Series/IngresForO… · Who am I? Product manager at Ingres Father, adventurer and husband

Ingres Configuration

“init.ora” Changed via OEM and

sqlplus

config.dat Changed via terminal

application or Windows application

Changes tracked via config.log

cbf

Confidential — © 2008 Ingres Corporation Slide 11

Page 12: Ingres for Oracle Experienced Users - Actiandownloads.actian.com/online/media/pdf/Education-Series/IngresForO… · Who am I? Product manager at Ingres Father, adventurer and husband

Ingres Inside

Oracle DBA Views USER_*

DBA_*

V$ views

Ingres Standard Catalogs Standard Catalogs

– iitables,iicolumns, etc.

iidbdb Standard Catalogs

imadb database

Confidential — © 2008 Ingres Corporation Slide 12

Page 13: Ingres for Oracle Experienced Users - Actiandownloads.actian.com/online/media/pdf/Education-Series/IngresForO… · Who am I? Product manager at Ingres Father, adventurer and husband

Ingres Procedural Language

Oracle PL/SQL Triggers Stored Procedures

Ingres Procedures Rules Stored Procedures

No “Packages”

Confidential — © 2008 Ingres Corporation Slide 13

Page 14: Ingres for Oracle Experienced Users - Actiandownloads.actian.com/online/media/pdf/Education-Series/IngresForO… · Who am I? Product manager at Ingres Father, adventurer and husband

Ingres SQL

Oracle Outer Joins via (+)

decode nvl

/ Explain plan

Ingres ANSI Standard outer

join syntax

case ifnull

\g QEP

Confidential — © 2008 Ingres Corporation Slide 14

Page 15: Ingres for Oracle Experienced Users - Actiandownloads.actian.com/online/media/pdf/Education-Series/IngresForO… · Who am I? Product manager at Ingres Father, adventurer and husband

Ingres Journal Analyzer

Oracle LogMiner Used to make sense out

of cryptic data in redo and archive logs

Ingres Journal Analyzer Used to make sense out

of cryptic data in the Transaction Log File and Journal Files

Confidential — © 2008 Ingres Corporation Slide 15

Page 16: Ingres for Oracle Experienced Users - Actiandownloads.actian.com/online/media/pdf/Education-Series/IngresForO… · Who am I? Product manager at Ingres Father, adventurer and husband

Getting things doneConfidential — © 2008 Ingres CorporationSlide 16

Page 17: Ingres for Oracle Experienced Users - Actiandownloads.actian.com/online/media/pdf/Education-Series/IngresForO… · Who am I? Product manager at Ingres Father, adventurer and husband

Ingres: Connectivity ToolsOracle SQL*Plus Oracle Developer Huge selection of 3rd

Party “stuff”

Ingres isql Ingres CAFE Eclipse with the DTP

– Java IDE with integrated SQL and Stored procedure development

Any JDBC, .NET, Python, or Perl IDE

SQuirrelSQL Ingres Visual Tools

– Exhaustive windows toolset

Confidential — © 2008 Ingres Corporation Slide 17

Page 18: Ingres for Oracle Experienced Users - Actiandownloads.actian.com/online/media/pdf/Education-Series/IngresForO… · Who am I? Product manager at Ingres Father, adventurer and husband

How to connect, really… Terminal Connectivity Users: Ingres and others Setting my environment Termcap and TERM_INGRES

– Windows has shortcuts and GUI Tools Ingstart What is my vnode?

– What port am I on? grep NTWK errlog.log Database?

– System databases• iidbdb• imadb

– Infodb CLI Impersonating users… the ubiquitous -uConfidential — © 2008 Ingres Corporation Slide 18

Page 19: Ingres for Oracle Experienced Users - Actiandownloads.actian.com/online/media/pdf/Education-Series/IngresForO… · Who am I? Product manager at Ingres Father, adventurer and husband

How to connect, really… via JDBC

Classpath– $II_SYSTEM/ingres/lib/iijdbc.jar– Copy the file to your classpath will work too

Class: com.ingres.jdbc.IngresDriver Connection String

– jdbc:ingres://localhost:II7/demodb Username

– OS User to connect– Impersonating other users as “ingres” or the sysadmin

user in JDBC• Append ;dbms_user=mydbuser to your connect string

Confidential — © 2008 Ingres Corporation Slide 19

Page 20: Ingres for Oracle Experienced Users - Actiandownloads.actian.com/online/media/pdf/Education-Series/IngresForO… · Who am I? Product manager at Ingres Father, adventurer and husband

What happened? Log files and configuration

ingstatus Alert Log = Errlog.log and more

– $II_SYSTEM/ingres/files• errlog.log – system events and errors• iircp.log – recovery/logging errors• iiacp.log – archiver errors• ckpdb.log – backup and recovery logs• config.log – configuration changes logged

What version and patches?– $II_SYSTEM/ingres/version.rel

Configuration– $II_SYSTEM/ingres/files/config.dat

Confidential — © 2008 Ingres Corporation Slide 20

Page 21: Ingres for Oracle Experienced Users - Actiandownloads.actian.com/online/media/pdf/Education-Series/IngresForO… · Who am I? Product manager at Ingres Father, adventurer and husband

Changing Configuration via shell script

iisetres Iigetres Warnings!

– iisetres changes don’t show in config.log– Don’t change config.dat by hand

• Dependent changes will not occur When?

– Initial setup of installs and databases.– Pull out relevant config for use in scripting

Confidential — © 2008 Ingres Corporation Slide 21

Page 22: Ingres for Oracle Experienced Users - Actiandownloads.actian.com/online/media/pdf/Education-Series/IngresForO… · Who am I? Product manager at Ingres Father, adventurer and husband

Cautions: Locking Reads DO lock by default

– Append “;CURSOR=READONLY” to your JDBC connection string

– Run the following at a SQL Prompt:• set lockmode session where readlock = nolock;• http://docs.ingres.com/dba/UserControlledLocking

– Does not preclude inserts, updates and deletes Learn more about Ingres Locking at docs.ingres.com My Finding

– In Oracle, where you manage redo and undo, in Ingres you manage logging and locking

Confidential — © 2008 Ingres Corporation Slide 22

Page 23: Ingres for Oracle Experienced Users - Actiandownloads.actian.com/online/media/pdf/Education-Series/IngresForO… · Who am I? Product manager at Ingres Father, adventurer and husband

Cautions: Tables and being a DBA From the Ingres documentation

– “The new table is owned by the user who creates it. The owner of the table is allowed to perform certain operations on the table that other users are not. For example, only the owner (or a user with the security privilege impersonating the owner) can alter or drop a table.”

Confidential — © 2008 Ingres Corporation Slide 23

Page 24: Ingres for Oracle Experienced Users - Actiandownloads.actian.com/online/media/pdf/Education-Series/IngresForO… · Who am I? Product manager at Ingres Father, adventurer and husband

Learn More

This is NOT the full picture! Ingres Community – http://community.ingres.com

– Wiki– Forums– Documentation – http://docs.ingres.com– Tech Blog

• http://blogs.ingres.com/tech

Confidential — © 2008 Ingres Corporation Slide 24

Page 26: Ingres for Oracle Experienced Users - Actiandownloads.actian.com/online/media/pdf/Education-Series/IngresForO… · Who am I? Product manager at Ingres Father, adventurer and husband

Learn More

Ingres Education: In depth Instructor-Led Training for DBAs, Developers, Performance Tuning and more

Webinars and Whitepapers on Ingres.com

Confidential — © 2008 Ingres Corporation Slide 26

Page 27: Ingres for Oracle Experienced Users - Actiandownloads.actian.com/online/media/pdf/Education-Series/IngresForO… · Who am I? Product manager at Ingres Father, adventurer and husband

Enterprise Access for Migration from Oracle

Make your life easy… Enterprise Access provides an Oracle Gateway

– Access Oracle data directly from Ingres– Commercial Product

• Worth the cost in time and effort to enable migrations, data type mappings, etc.

Confidential — © 2008 Ingres Corporation Slide 27