• No results found

Lessons from the time machine

N/A
N/A
Protected

Academic year: 2021

Share "Lessons from the time machine"

Copied!
41
0
0

Loading.... (view fulltext now)

Full text

(1)

Worldwide

Managed Services for

OpenVMS and Rdb

(2)



About

 

Software

 

Concepts

 

International

 

LLC



About

 

Software

 

Concepts

 

International,

 

LLC



Questions

 

to

 

Consider



How

 

to

 

Upgrade

 

to

 

Rdb

 

V7 2



How

 

to

 

Upgrade

 

to

 

Rdb

 

V7.2



Moving

 

Your

 

Data

Validating

 

the

 

Mo ed

 

Data



Validating

 

the

 

Moved

 

Data



Cutting

 

Over

 

to

 

New

 

System

Q

i

 

d

 

F db k

(3)

About

 

Software

 

Concepts

 

International

About

 

Software

 

Concepts

 

International…



The

 

leading

 

provider

 

of

 

managed

 

services

for

 

Rdb

 

DBMS

 

and

 

OpenVMS

for

 

Rdb,

 

DBMS

 

and

 

OpenVMS



24+

 

years

 

in

 

the

 

business



Performed

 

many

 

many

 

many

 

successful

 

Rdb

 



Performed

 

many,

 

many,

 

many

 

successful

 

Rdb,

 

DBMS

 

and

 

OpenVMS

 

migrations

 

from

 

VAX

Æ

Alpha

 

VAX

Æ

Integrity and

 

VAX

Æ

Alpha,

 

VAX

Æ

Integrity and

 

(4)



About

 

Software

 

Concepts

 

International

 

LLC



About

 

Software

 

Concepts

 

International,

 

LLC



Questions

 

to

 

Consider



How

 

to

 

Upgrade

 

to

 

Rdb

 

V7 2



How

 

to

 

Upgrade

 

to

 

Rdb

 

V7.2



Moving

 

Your

 

Data

Validating

 

the

 

Mo ed

 

Data



Validating

 

the

 

Moved

 

Data



Cutting

 

Over

 

to

 

New

 

System

Q

i

 

d

 

F db k

(5)

1

What

 

version

 

of

 

Rdb

 

are

 

you

 

on

 

now?

1.

What

 

version

 

of

 

Rdb

 

are

 

you

 

on

 

now?

2.

Are

 

y

you

 

physically

p y

y

 

moving

g

 

the

 

database

 

to

 

new

 

storage?

(6)

Rdb

 

on

 

Integrity

 

and

 

Rdb

 

on

 

Alpha

Rdb

 

on

 

Integrity

 

and

 

Rdb

 

on

 

Alpha

share

 

the

 

exact

 

same

 

on

disk

 

structures

(the

 

data

 

is

 

the

 

same)

This

 

means

This

 

means…

if

f

y

you

 

are

 

running

g

 

Rdb

 

v7.2

 

on

 

Alpha

p

 

and

y

you

 

are

 

operating

p

g

 

in

 

a

 

mixed

architecture

 

Alpha/Integrity

 

cluster

 

then…

Congratulations!

(7)

In

 

it’s

 

simplest

 

form*

 

upgrading

 

to

 

Rdb

 

v7 2

 

is

 

In

 

it s

 

simplest

 

form ,

 

upgrading

 

to

 

Rdb

 

v7.2

 

is

 

as

 

easy

 

as

 

using

 

RMU/CONVERT

 

to

 

update

 

the

 

RDB

 

root

 

file

update

 

the

 

RDB

 

root

 

file.

….Fast!

  

Done!

Thank you for your time…

(now,

 

the

 

small

 

print…)

*This

 

assumes

 

that:

(8)

f



What

 

if

 

you

 

are

 

running

 

Rdb

 

v6.1

 

or

 

earlier?



What

 

if

 

the

 

database

 

is

 

being

 

physically

 

moved

 

to

 

new

 

storage?



What

 

if

 

the

 

new

 

storage

 

is

 

not

 

available

 

from

 

the

 

old

 

hardware?

(9)

1.

How

 

to

 

upgrade

 

Rdb

 

versions…

I

 

th

 

d t

 

i

(10)



About

 

Software

 

Concepts

 

International

 

LLC



About

 

Software

 

Concepts

 

International,

 

LLC



Questions

 

to

 

Consider



How

 

to

 

Upgrade

 

to

 

Rdb

 

V7 2



How

 

to

 

Upgrade

 

to

 

Rdb

 

V7.2



Moving

 

Your

 

Data

Validating

 

the

 

Mo ed

 

Data



Validating

 

the

 

Moved

 

Data



Cutting

 

Over

 

to

 

New

 

System

Q

i

 

d

 

F db k

(11)

Depends on:



Your

 

prior

 

version



5.0

 

and

 

before

Depends on:



5.1

 

to

 

6.1



7.0

 

to

 

7.1



Your

 

prior

 

hardware



VAX



Alpha



The

 

chosen

 

upgrade

 

method



RMU/CONVERT

 

or

 

RMU/BACKUP

 

&

 

RESTORE

(12)

There

 

are

 

multiple

 

upgrade

 

options

There

 

are

 

multiple

 

upgrade

 

options…

1.

RMU/CONVERT

2.

RMU/BACKUP

 Æ

RESTORE

3.

SQL

 

EXPORT

 

Æ

IMPORT

(13)

Rdb 7.2

(Alpha or Integrity)

Rdb 7.0 (VAX or Alpha)

Rdb v7.1 (Alpha)

Rdb v5.1, v6.0 or v6.1

(VAX or Alpha)

Rdb v3.0 – 5.0

(VAX)

(14)

1.

Fast

Benefits

1.

Does

 

not

 

move

 

data

 

to

 

Limitations

new

 

storage

2.

Must

 

follow

 

Convert

 

Upgrade

 

Path

Upgrade

 

Path

(may

 

need

 

intermediate

versions

 

of

 

Rdb)

3.

Prior

 

convert

 

must

 

have

 

(15)

1.

Ability

 

to

 

move

 

data

 

to

 

Benefits

1.

Time

 

to

 

backup

Limitations

y

new

 

storage

2.

Preserves

 

prior

 

database

 

i

 

i t t

2.

Time

 

to

 

restore

3.

Time

 

to

 

move

 

backup

 

file

 

 

 

/

version

 

intact

(assuming

 

you

 

do

 

not

 

need

 

to

 

drop

 

the

 

old

 

database

 

for

 

space)

to

 

new

 

system/storage

(if

 

not

 

available

 

directly)

(16)

5

An

 

exact

 

copy

 

of

 

the

 

user

 

Limitations

Benefits

3

An

 

exact

 

copy

 

of

 

the

 

5.

An

 

exact

 

copy

 

of

 

the

 

user

 

storage

 

areas

(no

 

improvement)

 

M t

 

f ll

 

R t

 

3.

An

 

exact

 

copy

 

of

 

the

 

user

 

storage

 

areas

(no

 

risk)

6.

Must

 

follow

 

Restore

 

Upgrade

 

Path

(may

 

need

 

intermediate

versions

 

of

 

Rdb)

(17)

Rdb 7.2

Upgrade and Move

Rdb 7.0 (VAX or Alpha)

Rdb v7 1 (Alpha)

(Alpha or Integrity)

Rdb v5.1, v6.0 or v6.1

(VAX or Alpha)

Rdb v7.1 (Alpha)

Rdb v3.0 – 5.0

(VAX or Alpha)

(18)

Benefits

Limitations

1.

Ability

 

to

 

move

 

data

 

to

 

new

 

storage

R t

t

 

th

 

d t b

1.

Time

 

to

 

export

2.

Time

 

to

 

import

2.

Restructures

 

the

 

database

(Rebuilds

 

indexes,

 

places

 

data

 

based

 

on

 

current

 

storage

 

maps)

Abili

   

k

 

 

h i l

 

3.

Time

 

to

 

move

 

export

 

file

 

to

 

new

 

storage

(if

 

not

 

available

 

directly)

3.

Ability

 

to

 

make

 

some

 

physical

 

changes

 

during

 

the

 

import

4.

Preserves

 

prior

 

version

 

of

 

the

 

(

y)

4.

Storage

 

space

 

for

 

export

4.

Preserves

 

prior

 

version

 

of

 

the

 

database

 

intact

(19)

B

fit

Li it ti

1.

Ability

 

to

 

move

 

data

 

to

 

new

 

Benefits

1.

Time

 

to

 

unload

Limitations

storage

2.

Restructures

 

the

 

database

3

Ability

 

to

 

make

 

physical

 

and

 

2.

Time

 

to

 

load

3.

Storage

 

space

 

for

 

unload

 

files

3.

Ability

 

to

 

make

 

physical

 

and

 

logical

 

changes

 

to

 

the

 

database

4.

Loads

 

of

 

target

 

database

 

may

 

unload

 

files

4.

Complexity

start

 

as

 

unloads

 

complete

(20)



About

 

Software

 

Concepts

 

International

 

LLC



About

 

Software

 

Concepts

 

International,

 

LLC



Questions

 

to

 

Consider



How

 

to

 

Upgrade

 

to

 

Rdb

 

V7 2



How

 

to

 

Upgrade

 

to

 

Rdb

 

V7.2



Moving

 

Your

 

Data

Validating

 

the

 

Mo ed

 

Data



Validating

 

the

 

Moved

 

Data



Cutting

 

Over

 

to

 

New

 

System

Q

i

 

d

 

F db k

(21)



Is

 

the

 

database

 

being

 

moved

 

to

 

different

 

storage?



Are

 

the

 

old

 

and

 

new

 

systems

 

part

 

of

 

the

 

same

 



Are

 

the

 

old

 

and

 

new

 

systems

 

part

 

of

 

the

 

same

 

OpenVMS

 

cluster?



If

 

moving

 

to

 

new

 

storage,

 

is

 

the

 

new

 

storage

 



If

 

moving

 

to

 

new

 

storage,

 

is

 

the

 

new

 

storage

 

accessible

 

to

 

the

 

old

 

system,

 

if

 

yes,

 

how?



Cluster

available

 

storage



DECnet

(22)

1

RMU/BACKUP

 

Æ

RESTORE

1.

RMU/BACKUP

 

Æ

RESTORE

2.

SQL

 

EXPORT

 

Æ

IMPORT

RMU/UNLOAD

 

Æ

CREATE

 

Æ

LOAD

3.

RMU/UNLOAD

 

Æ

CREATE

 

Æ

LOAD

4.

HOT

STANDBY

 

or

 

“warm

 

spare”

(Ph i l

 

AIJ

 

h

i

i

)

(Physical

 

AIJ

 

synchronization)

5.

LOGMINER

(Logical

 

AIJ

 

synchronization)

(Logical

 

AIJ

 

synchronization)

(23)

Key

 

points:

Key

 

points:



CONVERTS

 

are

 

FAST…

MOVES

 

 

l



…MOVES

 

are

 

slow



Need

 

to

 

MOVE

 

the

 

data

 

to

 

the

 

new

 

system

 

first,

 

(24)



Move

 

database

 

before cutover,

 

and

 

apply

 

transactions

 

to

 

database

 

on

 

target

 

storage:



*Applying

 

AIJs



*Hot

standby

l

d



Logminer +

 

JCC

 

loader



At cutover,

 

apply

 

final

 

transactions,

 

and

 

f

 

Rdb

 

 

i

(25)

Source (old)

Target (new)

system

system

database

AIJ

AIJ

AIJ

AIJ

database

AIJ

AIJ

database

AIJ

AIJ

db

db

RMU-

db

db

(26)

RMU-repeat

RMU

/BACKUP

/AFTER

RMU

repeat

database

AIJ

AIJ

AIJ

AIJ

/RECOVER

database

AIJ

AIJ

back

Aij

back

database

AIJ

AIJ

Aij

back

Aij

back

Rdb Hot-standby or

(27)

…but, I’m running Rdb v6.1* on my old system,

and Rdb v6.1 is not available on the new system?

Can I still use the “fast move technique?”

(28)



Only

 

Rdb

 

v7 2

 

runs

 

on

 

Integrity

 



Only

 

Rdb

 

v7.2

 

runs

 

on

 

Integrity

 

(can’t

 

apply

 

AIJs)

M

 

h

 

   

i

 

i



Must

 

have

 

access

 

to

 

prior

 

versions



Cluster

 

member?

l h

l

(29)

One

 

“creative”

 

solution

 

to

 

this

 

problem

 

is

 

through

 

the

 

use

 

One

 

creative

 

solution

 

to

 

this

 

problem

 

is

 

through

 

the

 

use

 

of

 

VAX

 

or

 

Alpha

 

virtualization

 

software

 

to

 

create

 

a

 

VAX

 

or

 

Alpha

 

environment

 

that

 

runs

 

on

the

 

new

 

Hardware.

VAX or Alpha

Integrity Server

OpenVMS v8.3x

Virtualization

(Software)

Rdb v7.2x

OpenVMS v6.2

Rdb v6 1

Rdb v6.1

(30)

Virtual

RMU

/BACKUP

repeat

Virtual

AIJ

/BACKUP

/AFTER

AIJ

RMU

/RECOVER

VAX / Alpha

database

AIJ

AIJ

AIJ

AIJ

Aij

Aij

database

AIJ

AIJ

Aij

(31)



About

 

Software

 

Concepts

 

International

 

LLC



About

 

Software

 

Concepts

 

International,

 

LLC



Questions

 

to

 

Consider



How

 

to

 

Upgrade

 

to

 

Rdb

 

V7 2



How

 

to

 

Upgrade

 

to

 

Rdb

 

V7.2



Moving

 

Your

 

Data

Validating

 

the

 

Mo ed

 

Data



Validating

 

the

 

Moved

 

Data



Cutting

 

Over

 

to

 

New

 

System

Q

i

 

d

 

F db k

(32)



How do I know that the data was not

changed during the migration?

Depending on the method used for

migration, and the type of data, this may

be a real issue…or it may only be an

i

f

h

l

id

(33)

RMU/verify

 

<target

 

db>

 

if

 

failure

 

verify

 

1.

RMU/verify

 

<target

 

db>

 

– if

 

failure,

 

verify

 

source

 

db

 

(perhaps

 

the

 

source

 

was

 

also

 

bad)

Use

 

RMU/Analyze

 

on

 

both

 

source

 

and

 

target

 

2.

Use

 

RMU/Analyze

 

on

 

both

 

source

 

and

 

target

 

databases

 

to

 

obtain

 

row

 

counts

 

– compare

 

row

 

counts

 

by

 

table.

Note:

If export/import or unload/load was used to move the database

and tables are horizontally partitioned, you need to aggregate

(34)

3.

Perform

 

application

 

audit

 

totals

3.

Perform

 

application

 

audit

 

totals

(compare

 

column

 

totals

 

for

 

key

 

tables/columns)

4.

For

 

the

 

truly

 

paranoid…unload

 

all

 

tables

 

to

 

individual

 

files,

 

sort

 

and

 

checksum

 

each

 

unload

 

file

 

compare

 

sort,

 

and

 

checksum

 

each

 

unload

 

file

 

– compare

 

source/target

 

checksums.

5

Database

 

Protections

 

(RMU

 

and

 

SQL)

5.

Database

 

Protections

 

(RMU

 

and

 

SQL)



Be

 

careful

 

of

 

different

 

identifier

 

values

 

on

 

new

 

server



Three

 

areas

 

to

 

verify



RMU

 

Privileges

 

– database

 

root



RMU

 

Privileges

 

– database

 

root



SQL

 

Privileges

 

– database

 

root

(35)

Data is placed in the

target

database

Data is placed in the

target

database

according

current

storage map definitions

(which may have been modified since the data



For

 

tables

 

that

 

are

 

horizontally

 

partitioned,

 

the

 

placement

 

of

 

the

 

data

 

in

 

the

 

target

 

database

 

may

 

be

 

in

 

different

 

storage

 

areas

 

than

 

that

 

of

 

(which may have been modified since the data

was originally stored in the source database).

in

 

the

 

target

 

database

 

may

 

be

 

in

 

different

 

storage

 

areas

 

than

 

that

 

of

 

the

 

source

 

database.



This

 

is

 

due

 

to

 

partition

 

definitions

 

that

 

were

 

changed

 

in

 

the

 

source

 

database

 

after

 

the

 

data

 

was

 

originally

 

inserted

database

 

after

 

the

 

data

 

was

 

originally

 

inserted.

(36)

Example

 

Partitioning

 

Results:

Example

 

Partitioning

 

Results:

(37)

Results

 

with

 

Subtotals:

Results

 

with

 

Subtotals:

(38)

In some older versions of Rdb, EXPORT

was not able to process views that

R

lt

 

E

t

 

ld

 

f il

referenced system relations.

Result:

 

Export

 

would

 

fail

(39)



About

 

Software

 

Concepts

 

International

 

LLC



About

 

Software

 

Concepts

 

International,

 

LLC



Questions

 

to

 

Consider



How

 

to

 

Upgrade

 

to

 

Rdb

 

V7 2



How

 

to

 

Upgrade

 

to

 

Rdb

 

V7.2



Moving

 

Your

 

Data

Validating

 

the

 

Mo ed

 

Data



Validating

 

the

 

Moved

 

Data



Cutting

 

Over

 

to

 

New

 

System

Q

i

 

d

 

F db k

(40)

1.

Shutdown

 

application

2.

Close

 

database

3.

Execute

 

migration/upgrade

4.

Validate

 

results

4

5.

Test

 

application

6

Open

 

to

 

users

6.

Open

 

to

 

users

(41)

Worldwide

Managed Services for

OpenVMS and Rdb

References

Related documents

The action of the PLdot along with short-term trend lines, time frame analysis and many other Drummond Geometry tools and techniques can help traders determine when that point

The key stakeholders in land sales market are vendors and developers of land; real estate agents, acting for vendors and developers; builders, legal professionals, and

This paper focuses on a deductive, participative, and iterative process for curricular revision at a public Midwestern university in the Merchandising and Fashion Design program..

In an effort to measure the degree to which participants in online graduate courses value critical thinking and their perceptions of the degree to which they are developing

What is the relative importance of the gender, parental involvement, learning experience, and STEM self-efficacy variables in the prediction of high school students’ STEM career

In contrast, Hanks and Eckland (1976) evaluated sport versus non-sport and found sports had little relevance to academic attainment while non-sport participation was a

Silva, Gimbert, and Nolan (2000) identify three evolutionary stages of teacher leadership. In the first stage, schools appointed teacher leaders to serve as department heads or

The Urban Research Program of Griffith University (with funding and in-kind support from the National Climate Change Adaptation Research Facility (NCCARF), and the Urban