473,388 Members | 1,326 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

HADR and C Storred Prcedures

I found this in the doc:

"HADR does not replicate stored procedure and UDF object and library files.
You must create the files on identical paths on both the primary and standby
databases. If the standby database cannot find the referenced object or
library file, the stored procedure or UDF invocation will fail on the
standby database."

I am using XML Extender which is implemented by IBM via some C stored procs.
My HADR servers are identical OS's (RH AS3) and I backed up the primary
database, then restored it on the second server to create a standby
database. Will I have any issues with "objects" or 'libraries" as mentioned
in the above quote?
Nov 26 '05 #1
6 1795
the CREATE PROCEDURE (external) statement has clauses that identify the
physical location of the executable code that forms the procedure. When
you restore the database, the definition of the procedure will exist in
the standby database but the executable code will not. (CREATE PROCEDURE
specifically allows this.)

You must manually copy all of the executable code for external
procedures to the standby system. Code must be copied from every
location where it resides on the primary server. You must also copy new
and updated external procedures to the standby system. Code on the
standby system must be located in the same directories as the primary
system.

Phil Sherman

Mark A wrote:
I found this in the doc:

"HADR does not replicate stored procedure and UDF object and library files.
You must create the files on identical paths on both the primary and standby
databases. If the standby database cannot find the referenced object or
library file, the stored procedure or UDF invocation will fail on the
standby database."

I am using XML Extender which is implemented by IBM via some C stored procs.
My HADR servers are identical OS's (RH AS3) and I backed up the primary
database, then restored it on the second server to create a standby
database. Will I have any issues with "objects" or 'libraries" as mentioned
in the above quote?

Nov 29 '05 #2
"Phil Sherman" <ps******@ameritech.net> wrote in message
news:wR*****************@newssvr17.news.prodigy.co m...
the CREATE PROCEDURE (external) statement has clauses that identify the
physical location of the executable code that forms the procedure. When
you restore the database, the definition of the procedure will exist in
the standby database but the executable code will not. (CREATE PROCEDURE
specifically allows this.)

You must manually copy all of the executable code for external procedures
to the standby system. Code must be copied from every location where it
resides on the primary server. You must also copy new and updated external
procedures to the standby system. Code on the standby system must be
located in the same directories as the primary system.

Phil Sherman


Do you know the executables are located by default?
Nov 29 '05 #3
Ian
Mark A wrote:
"Phil Sherman" <ps******@ameritech.net> wrote in message
news:wR*****************@newssvr17.news.prodigy.co m...
the CREATE PROCEDURE (external) statement has clauses that identify the
physical location of the executable code that forms the procedure. When
you restore the database, the definition of the procedure will exist in
the standby database but the executable code will not. (CREATE PROCEDURE
specifically allows this.)

You must manually copy all of the executable code for external procedures
to the standby system. Code must be copied from every location where it
resides on the primary server. You must also copy new and updated external
procedures to the standby system. Code on the standby system must be
located in the same directories as the primary system.

Phil Sherman


Do you know the executables are located by default?


Generally they are stored in the .../sqllib/function directory, although
it is possible to place them elsewhere (look at the IMPLEMENTATION field
in syscat.procedures).
Nov 29 '05 #4
See the "CREATE PROCEDURE (external)" statement in the SQL Reference v2
for details about where the default locations are. Note that the default
locations for fenced and unfenced procedures are different.

Your RHAS3 systems will have a single directory for each type of
procedure. (.../sqllib/function and ..../sqllib/function/unfenced)

Don't forget that some developers may have specified their own locations
for the executable - see Ian's reply above.

Phil Sherman
Mark A wrote:
"Phil Sherman" <ps******@ameritech.net> wrote in message
news:wR*****************@newssvr17.news.prodigy.co m...
the CREATE PROCEDURE (external) statement has clauses that identify the
physical location of the executable code that forms the procedure. When
you restore the database, the definition of the procedure will exist in
the standby database but the executable code will not. (CREATE PROCEDURE
specifically allows this.)

You must manually copy all of the executable code for external procedures
to the standby system. Code must be copied from every location where it
resides on the primary server. You must also copy new and updated external
procedures to the standby system. Code on the standby system must be
located in the same directories as the primary system.

Phil Sherman

Do you know the executables are located by default?

Nov 29 '05 #5
"Phil Sherman" <ps******@ameritech.net> wrote in message
news:iH****************@newssvr17.news.prodigy.com ...
See the "CREATE PROCEDURE (external)" statement in the SQL Reference v2
for details about where the default locations are. Note that the default
locations for fenced and unfenced procedures are different.

Your RHAS3 systems will have a single directory for each type of
procedure. (.../sqllib/function and ..../sqllib/function/unfenced)

Don't forget that some developers may have specified their own locations
for the executable - see Ian's reply above.

Phil Sherman


All of my C stored procedures are part of the XML Extender.
Nov 29 '05 #6
Object libraries for C Stored Procedures created by XML Extender do not
need to be copied to the HADR standby server, since they are already in
the DB2 install path and have symbolic links pointing to them from
sqllib.

Dec 6 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Bruce M | last post by:
Is there a way to run the db2-generated HADR-create script outside of DB2CC beyond the obvious? My DB2CC generates the HADR script and then abends because of a java error meaning I can't finish my...
3
by: bwmiller16 | last post by:
Why are 2 ports required for a HADR Pair? Environment: RH Linux AS3 UDB Express 8.2 with HADR Option Folks - Working with HADR and getting this setup to work right.
7
by: Mark A | last post by:
If server 01 running HADR in the primary role crashes, and the DBA does a HADR takeover by force on the 02 server to switch roles, then the 02 server is now the primary. What happens when the...
4
by: Joachim Klassen | last post by:
DB2 V8.2 FP10 on Windows I tested the following HADR scenario: - a new tablespace on a new filesytem is created on the primary System - the replay on standby fails because of lacking permissions...
16
by: gumby | last post by:
I'm having trouble getting HADR to work with the sample databases on two HS20 xSeries blades, Red Hat ES4 up3, DB2 8.2.4, getting the following error. SQL1768N Unable to start HADR. Reason code...
8
by: Challenge | last post by:
Hi, I got error, SQL1768N Unable to start HADR. Reason code = "7", when I tried to start hadr primary database. Here are the hadr configuration of my primary db: HADR database role ...
6
by: RayRay | last post by:
I was hoping I might be able to get an answer regarding DB2 and HADR. Let me preface this by saying that I know very little about networking and I'm not familiar with the HADR product or...
0
by: deshaipet | last post by:
Hi - We have primary and standby databases on different servers. Here is my /etc/service entry for HADR pair : On Primary : "vi /etc/services
0
DB2 Warlord
by: DB2 Warlord | last post by:
After countless time I was unabl to find the answer to my HADR questions and getting HADR to work in 9.5 via the Control Center. Please see my fix that seem strange but works. My error was as...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.