473,560 Members | 3,007 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

a trouble of modifying procedure

i replace the program file in $db2path/sqllib/function with a new one
and call the procedure . it turns out to be the old one , since i
print a massage for notice .
so , now . i have to change my program file name , every time i
modified the procedures .
what's wrong ?

Jan 12 '06 #1
11 1425
The behavior which you have been observing, could be valid if the
database manager keeps the fenced processes thread safe.
And if the KEEP_FENCED is enabled, the the fenced mode
processes/threads would be resued for subsequenced calls, and
termination of such processes/threads happens only when database
manager is stopped.

Jan 12 '06 #2
what benefit would have to be , when KEEP_FENCED is enable . and i
want to make it disabled

Jan 12 '06 #3
The benefit u would have is by enabling the caching fenced mode
processes is, u would not incorporate the over head of creating &
destroying the processes at every transaction.

Jan 12 '06 #4
.. . i change the keepfenced to no .
but it still does not work.

Jan 12 '06 #5
he******@hotmai l.com wrote:
. . i change the keepfenced to no .
but it still does not work.


It appears you may need to DROP the object from DB2...


Serge Rielau
DB2 Solutions Development
DB2 UDB for Linux, Unix, Windows
IBM Toronto Lab
Jan 12 '06 #6
he******@hotmai l.com wrote:
. . i change the keepfenced to no .
but it still does not work.

Is this a trusted (not fenced) or a fenced procedure? KEEP_FENCED=YES only
helps with fenced routines. In the other case, DB2 caches the libraries
for external routines in the hope that it will be needed soon again. This
caching is interfering here.

In such cases, I usually restart DB2. But life might not be that simple for
you. You should try to force the respective agent to get it destroyed and,
thus, the library unloaded.

Knut Stolze
DB2 Information Integration Development
IBM Germany
Jan 12 '06 #7
ye ,.. finally i finished the debug by changing the filename :( ..
it's awful, from ~00 to ~09 ..
but it's more faster than restart . in my situation

Jan 14 '06 #8
You need to DROP and CREATE the function, or at least, GET/PUT. Just
changing the file on disk will not tell the database that new code is


Jan 17 '06 #9
Brian Tkatch wrote:
You need to DROP and CREATE the function, or at least, GET/PUT. Just
changing the file on disk will not tell the database that new code is

This is not true!! You don't need to drop/create the function as this is a
particular troublesome issues if other objects (views, triggers, functions,
procedures, packages) depend on the function. The only thing you have to
ensure is that the cached version of the library is not used any longer,
and ways to accomplish that were already discussed.

I'm not quite sure if changing the external name via ALTER FUNCTION ...
EXTERNAL NAME '...' and using the same library as before would help as
well. I rather doubt it, however, and using a different library name as
the OP did would be the safest way.

Knut Stolze
DB2 Information Integration Development
IBM Germany
Jan 17 '06 #10

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

Similar topics

by: Driesen via SQLMonster.com | last post by:
Hi guys I having trouble with this sproc. I get the following error when testing: Server: Msg 245, Level 16, State 1, Procedure UTL_CompletenessCheckLoan, Line 231 Syntax error converting the varchar value 'danwet w125 ' to a column of data type int. I have declared @Sellername as Varchar. Please can someone tell me what I'm
by: Együd Csaba | last post by:
Hi, I've a problem with some of my stored procs. My config is: RH7.1, Postgres 7.3.2 I had converted a few fields of a few tables from one type to another and after this I made all the necessary changes on the functions and recreated all my types and functions. It seemd to be all right, but the newly created functions won't work anymore.
by: Shanmugasundaram Doraisamy | last post by:
Dear Group, We are using Postgresql 7.3.4 on Redhat 8.0 with Java 1.4.2. We are developing our applications in Java. We call stored procedures from the java program. Order numbers are generated by many departments in the Hospital. We manitain a single table from which to select the order number. The way this works is that the order...
by: vvenk | last post by:
Hello: I wrote a test procedure on Oracle that returns a string and a value. CREATE OR REPLACE PROCEDURE EBMS.p_CSV_Upload ( P_ERROR OUT VARCHAR2, P_ERROR_NO OUT Number ) AS
by: lisa.engblom | last post by:
I have two semi related questions... First, I am trying to output a list of strings to a csv file using the csv module. The output file separates each letter of the string with a comma and then puts each string on a separate line. So the code is: import csv output = csv.writer(open('/Python25/working/output.csv', 'a')) a = for elem...
by: MLH | last post by:
This was contributed by someone in this NG last year... Sub WaitFor(psngSeconds As Single) ' wait for specified number of seconds ' Copyright Trevor Best (tre...@besty.org.uk) <-OK, so I added thisline. Dim sngStart As Single Dim sngET As Single
by: Alfur | last post by:
Hi! I'm writing a shared library in C, it's a loadable package for TCL, my aim is a command procedure, that modifies it's argument a'la: set p 1 my_incr p puts $p expected is 2, of course. I know, the right way is to return an Tcl_Obj and then set the variable to the value: set p 1
by: Zethex | last post by:
At the moment i'm doing a piece of work for school and I'm stuck at the moment. I have a list of words, for example: Sentence = I have another list which I need to use to replace certain words, and its in the form of:
by: IUnknown | last post by:
Ok, we are all aware of the situation where modifying the folder structure (adding files, folders, deleting files, etc) will result in ASP.NET triggering a recompilation/restart of the application. In a nutshell, I understand how this can be considered desireable by some, but I am not one of those people. My situation is that we have a...
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.