Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To create an application VIP, use the following syntax:

Section
Column
width5%

 

Column
width95
panel No Format
bgColorCCC
appvipcfg create -network=network_number -ip=ip_address -vipname=vip_name


-user=user_name [-group=group_name] [-failback=0 | 1]

Where

...

network_number

...

is

...

the

...

number

...

of

...

the

...

network,

...

ip_address

...

is

...

the

...

IP

...

address,

...

 vip_name

...

is

...

the

...

nameof

...

the

...

VIP

...

(we

...

use

...

dbvrepVIP

...

further

...

on),

...

user_name

...

is

...

root

...

(as

...

root

...

privileges

...

are

...

needed

...

to

...

reconfigure

...

network

...

interfaces). 

The

...

default

...

value

...

of

...

the

...

-failback

...

option

...

is

...

0.

...

If

...

you

...

set

...

the

...

option

...

to

...

1,

...

 then the

...

VIP

...

(and

...

therefore

...

Replicate

...

as

...

well)

...

fails

...

back

...

to

...

the

...

original node when

...

it

...

becomes

...

available

...

again.

 

As root, allow the Oracle Grid infrastructure software owner (e.g. oracle) to run the script to start the VIP.

Section
Column
width5%

 

Column
width95
Panel No Format
bgColorCCC
crsctl setperm resource dbvrepVIP -u user:oracle:r-x

 

To check the status, run:

Section
Column
width5%

 

Column
width95
Panel No Format
bgColorCCC
crsctl status res dbvrepVIP -p

 

As oracle user, start the VIP.

Section
Column
width5%

 

Column
width95
panel No Format
bgColorCCC
crsctl start resource dbvrepVIP

 

Configure and test

Configure the Dbvisit Replication as usual, using the previously connected TNS identifiers for source and target databases and the Applicatio VIPs for location where processes will run (*_LISTEN_INTERFACE settings). 

...

As oracle, create the cluster resource for the dbvrep process:

Section
Column
width5%

 

Column
width95
Panel No Format
bgColorCCC
crsctl add resource resource_name -type cluster_resource -attr


"ACTION_SCRIPT=resource_action_script.scr, CHECK_INTERVAL=30,


START_DEPENDENCIES='hard(dbvrepVIP,dbresource,ASMresource) pullup(dbvrepVIP)',


STOP_DEPENDENCIES='hard(dbvrepVIP)'"

 

Use any name for resource_name, e.g. dbvrepMINE_DDCname like dbvrepMINE_ERP. For action script, use the path to the script created earlier. For start dependencies, use resource name for your database (like ora.orcl.db) and if ASM is used, use ora.asm for ASMresource.

...

Manage the processes
Stop the replication if was started manually.
To manage the replication processes, use:

Section
Column
width5%

 

Column
width95
panel No Format
bgColorCCC
crsctl start resource resource_name


crsctl stop resource resource_name
No Format
crsctl relocate resource resource_name -n nodename -f -- -f
will

Will relocate

...

the

...

VIP

...

as

...

well.

 

 

Note

Do not use “shutdown” from the console; this would cause clusterware to restart the process.

...

Running appvipcfg fails with error:

Section
Column
width5%

 

Column
width95
Panel No Format
bgColorCCC
CRS-0160: The attribute '"USR_ORA_VIP' is not supported in this resource type.

Reason:

...

Oracle

...

bug

...

9964188.

 

 
Workaround:

...

 
edit appvipcfg.pl and remote \” in front of USR_ORA_VIP.

 

See also : patch shown in the bug description at My Orale Oracle Support.