473,657 Members | 2,395 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

update db cfg dbheap

Hello all,

I am trying to change a db2 configuration parameter from within my jdbc
code. When I use the following:
Statement stmt2 = con.createState ment();
stmt2.executeUp date(
"update db cfg for sample using dbheap 800");
stmt2.close();

I get the following exception:
[IBM][CLI Driver][DB2/NT] SQL0104N An unexpected token "update db" was
found following "BEGIN-OF-STATEMENT". Expected tokens may include:
"<drop_transf>" . SQLSTATE=42601

How can I change dbheap parameter from jdbc?

Thanks for your help

Nov 12 '05 #1
11 5837
"Issam" <is*****@hotmai l.com> wrote in message
news:11******** **************@ g44g2000cwa.goo glegroups.com.. .
Hello all,

I am trying to change a db2 configuration parameter from within my jdbc
code. When I use the following:
Statement stmt2 = con.createState ment();
stmt2.executeUp date(
"update db cfg for sample using dbheap 800");
stmt2.close();

I get the following exception:
[IBM][CLI Driver][DB2/NT] SQL0104N An unexpected token "update db" was
found following "BEGIN-OF-STATEMENT". Expected tokens may include:
"<drop_transf>" . SQLSTATE=42601
How can I change dbheap parameter from jdbc?

Thanks for your help

That is a DB2 command, not an SQL statement. You need to issue that from a
OS command line (with "db2" prefacing the statement). I assume there is a
way to do that from Java, but I don't know how.
Nov 12 '05 #2
Mark A wrote:
"Issam" <is*****@hotmai l.com> wrote in message
news:11******** **************@ g44g2000cwa.goo glegroups.com.. .
Hello all,

I am trying to change a db2 configuration parameter from within my jdbc
code. When I use the following:
Statement stmt2 = con.createState ment();
stmt2.execute Update(
"update db cfg for sample using dbheap 800");
stmt2.close() ;

I get the following exception:
[IBM][CLI Driver][DB2/NT] SQL0104N An unexpected token "update db" was
found following "BEGIN-OF-STATEMENT". Expected tokens may include:
"<drop_transf >". SQLSTATE=42601
How can I change dbheap parameter from jdbc?

Thanks for your help


That is a DB2 command, not an SQL statement. You need to issue that from a
OS command line (with "db2" prefacing the statement). I assume there is a
way to do that from Java, but I don't know how.

http://publib.boulder.ibm.com/infoce...n/r0012547.htm

Cheers
Serge
--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab
Nov 12 '05 #3
"Serge Rielau" <sr*****@ca.ibm .com> wrote in message
news:3i******** ****@individual .net...
http://publib.boulder.ibm.com/infoce...n/r0012547.htm

Cheers
Serge


Another feature new to FP9 that is not documented in the What's New section.
Nov 12 '05 #4
OK. When I try to use the CALL SYSPROC.ADMIN_C MD command from the
db2 command line, I get the following error:

SQL0440N No authorized routine named "SYSPROC.ADMIN_ CMD" of type
"PROCEDURE" having compatible arguments was found. SQLSTATE=42884

It looks that this procedure does not exist.

I have db2 V8.1. What should I do?

Thanks.

Nov 12 '05 #5
Issam wrote:
OK. When I try to use the CALL SYSPROC.ADMIN_C MD command from the
db2 command line, I get the following error:

SQL0440N No authorized routine named "SYSPROC.ADMIN_ CMD" of type
"PROCEDURE" having compatible arguments was found. SQLSTATE=42884

It looks that this procedure does not exist.

I have db2 V8.1. What should I do?

Thanks.

I suspect you need to run db2updv8 to register the proc for DBs which
were created prior to it's incarnation.

Cheers
Serge
--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab
Nov 12 '05 #6
Thank you for your replies Serge. I have tried to run db2updv8, but it
seems the command is not recognized !

C:\Program Files\IBM\SQLLI B\BIN>db2 db2updv8 -d sample
DB21034E The command was processed as an SQL statement because it was
not a
valid Command Line Processor command. During SQL processing it
returned:
SQL0104N An unexpected token "END-OF-STATEMENT" was found following
"db2updv8
-d sample". Expected tokens may include: "JOIN <joined_table>" .
SQLSTATE=42601
Is there a mistake?

Nov 12 '05 #7

"Issam" <is*****@hotmai l.com> wrote in message
news:11******** **************@ g44g2000cwa.goo glegroups.com.. .
Thank you for your replies Serge. I have tried to run db2updv8, but it
seems the command is not recognized !

C:\Program Files\IBM\SQLLI B\BIN>db2 db2updv8 -d sample
DB21034E The command was processed as an SQL statement because it was
not a
valid Command Line Processor command. During SQL processing it
returned:
SQL0104N An unexpected token "END-OF-STATEMENT" was found following
"db2updv8
-d sample". Expected tokens may include: "JOIN <joined_table>" .
SQLSTATE=42601

Is there a mistake?


You don't need to prefix it with "db2" -- just run "db2updv8 -d sample" from
the command prompt.

--
Matt Emmerton
Nov 12 '05 #8
"Matt Emmerton" <me******@nospa m.yahoo.com> wrote in message
news:3q******** ************@ro gers.com...

You don't need to prefix it with "db2" -- just run "db2updv8 -d sample"
from
the command prompt.

--
Matt Emmerton

System Commands in Chapter 1 of the Command Reference are executable
programs or scripts and do not need the "db2" prefix.

CLP Commands on Chapter 3 need the "db2" prefix.
Nov 12 '05 #9

Serge Rielau wrote:
Hello all,

[quoted text clipped - 16 lines]
OS command line (with "db2" prefacing the statement). I assume there is a
way to do that from Java, but I don't know how.


http://publib.boulder.ibm.com/infoce...n/r0012547.htm

Cheers
Serge


Serge, perhaps this does not belong right here ...
still: I wanted to see the link you sent, but I can't getting the following
message:
The topic that you have requested is not available. The link may be wrong, or
you may not have the corresponding product feature installed. This online
help only includes documentation for features that are installed.

How come? I thought this is the Internet ?? And I do have ESE FP 9 installed,
so I sure dunno what to do about it..

Thank you,
Juliane
--
Message posted via DBMonster.com
http://www.dbmonster.com/Uwe/Forums....m-db2/200507/1
Nov 12 '05 #10

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

Similar topics

7
248459
by: Dave | last post by:
I have 2 tables, one with names, and another with addresses, joined by their CIVICID number (unique to the ADDRESSINFO table) in Oracle. I need to update a field in the NAMEINFO table for a particular surname in a particular town. I can select the records fine with this syntax (testing in Oracle SQL* Plus) SELECT NAMEINFO.LASTNAME, NAMEINFO.FIRSTNAME, NAMEINFO.MIDDLENAME, NAMEINFO.GENDER, ADDRESSINFO.REGION FROM NAMEINFO, ADDRESSINFO...
8
89305
by: Lauren Quantrell | last post by:
In VBA, I constructed the following to update all records in tblmyTable with each records in tblmyTableTEMP having the same UniqueID: UPDATE tblMyTable RIGHT JOIN tblMyTableTEMP ON tblMyTable.UniqueID = tblMyTableTEMP.UniqueID SET tblMyTable.myField = tblMyTableTEMP.myField, tblMyTable.myField2 = tblMyTableTEMP.myField2,
27
2521
by: VK | last post by:
<http://www.jibbering.com/faq/#FAQ3_2> The parts where update, replacement or add-on is needed are in <update> tag. 3.2 What online resources are available? Javascript FAQ sites, please check these first:- <http://developer.irt.org/script/script.htm>
16
17004
by: Philip Boonzaaier | last post by:
I want to be able to generate SQL statements that will go through a list of data, effectively row by row, enquire on the database if this exists in the selected table- If it exists, then the colums must be UPDATED, if not, they must be INSERTED. Logically then, I would like to SELECT * FROM <TABLE> WHERE ....<Values entered here>, and then IF FOUND UPDATE <TABLE> SET .... <Values entered here> ELSE INSERT INTO <TABLE> VALUES <Values...
3
5412
by: Mark | last post by:
In a DB2 V8.1 performance tuning document from a 3rd party vendor, I found this statement. Can anyone verify this? "DB2 requires 100 bytes of memory for every buffer pool and extended storage page that is allocated to a database for use as a descriptor in the database heap, so the size of the DBHEAP configuration parameter should be considered before creating large buffer pools. For example, a 1 gigabyte buffer pool with a page size of 4...
3
3441
by: Shapper | last post by:
Hello, I have created 3 functions to insert, update and delete an Access database record. The Insert and the Delete code are working fine. The update is not. I checked and my database has all the necessary records in it when testing it. I get the error "No value given for one or more required parameters." when I try to update the database. Can you tell me what am I doing wrong?
9
12973
by: jaYPee | last post by:
I have search a lot of thread in google newsgroup and read a lot of articles but still i don't know how to update the dataset that has 3 tables. my 3 tables looks like the 3 tables from northwind database that has an employees, orders, and order details. the following are the 3 tables in my sql database students schyrsem
8
2689
by: Zorpiedoman | last post by:
I keep getting a concurrency exception the second time I make a change and attempt to update a dataadapter. It appears this is by design, so there must be something I can do to avoid it. Example: I have a dataadapter that contains one table with one row. I change the value of the 'FisrtName' column in that row from Jack to John. I call ..update on the dataadapter it goes through fine. Now I change that same column in that same row...
2
2015
by: Joachim Klassen | last post by:
Hi all, Env: DB2 ESE/DPF 8.1.6 64 Bit on AIX 5.2.0 we recently had problems with an offline backup of a database with 5 partitions that fails with SQL0956 - Not enough storage in dbheap. DBHEAP at that time was 5000 Pages per partition. The last backup ran just fine with that dbheap - no objects (bufferpools, tablespaces, tables ..) were added or changed since then. We rerun the failing backup with greater dbheap sizes until it...
0
8826
Oralloy
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8732
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8503
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
7330
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6166
isladogs
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5632
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4306
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1955
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.