Quantcast
Channel: Toad for IBM DB2 Forum - Recent Threads
Viewing all 389 articles
Browse latest View live

RE: Toad DB2 v6.3.0.508 beta posted

$
0
0

This is great news. I installed yesterday but did not get a chance to check out the compare to excel \ CSV option. I think that I requested this feature and if it works, it will make life a lot easier for me.

Keep up the great work.

Shimon J.


RE: Toad DB2 v6.3.0.508 beta posted

$
0
0

It indeed works great, and  is a real time-saver for me.

RE: Adding a table to the Query Builder diagram adds relations between existing tables

$
0
0

Hi Jeff,

I'm using Toad for DB2 z/OS version 6.2 and beta 6.3. I've been having this problem with a specific table for a while. I'm not sure that the security guys will let me send the DDL's out.

Another interesting behavior that I have found is that when adding a table the the query builder, it often adds two relations to an existing table in the window. I usually want to keep one of the relations. When I click on one of the lines to remove the relation, 9 out of 10  times it removes the relation that I wanted to keep. It doesn't matter on which line I click.

If you would like, I probably could set up a Webex to demonstrate these behaviours.

Sincerely,

Shimon J.

Adding a table to the Query Builder diagram adds relations between existing tables

$
0
0

Hi,

Quite often when I create a complicated query using the Query Builder placing a table on the diagram adds relations that don't exist in the schema. This alone is quite bothersome, but is simple to notice and correct.

What really gets me upset is that sometimes adding a new table causes relationships to be created ( in the query) between already existing tables.

Did anybody else come across this?

I can reproduce this bug, if necessary.

Sincerely,

Shimon J.

P.S. I am using Toad for IBM DB2 version 6.0.0.373 Z/OS base.

RE: Adding a table to the Query Builder diagram adds relations between existing tables

$
0
0

Hi Jeff,

I uploaded the relevant DDLs. I don't think that the third one is important, as it happens with almost any table that I add. Playing around with it in order to send you a simple screenshot, I found a workaround. If I delete the IS_ISUK_BEFOAL table from the querey builder and bring it back, the weird behavior stops.

I have dificulty removing a specific relation from the query builder. Is there an easy way for Toad to add a "Remove" button to the properties window of the relationships of a query builder? This way I can specify which relation should stay and which one should be deleted.

Sincerely,

Shimon J.

How to call a Proc that returns a dataset from within another Proc.

$
0
0

I have a Stored Procedure that returns a datatable.

How do I call that Store Procedure within another Stored Procedure? 

Here is what I have so far:

DROPPROCEDURE PC_KI_KINSHIPGENERALINFO.SpTestItNow!

CREATEPROCEDURE PC_KI_KINSHIPGENERALINFO.SpTestItNow( IN p_RSRC_ID FLOAT) 

SPECIFIC PC_KI_KINSHIPGENERALINFO.SpTestItNow

LANGUAGE SQL

DYNAMIC RESULT SETS 1 

BEGIN   P2 :

BEGIN

Declare c_Return CursorWithReturnto CLIENT For

    --Call PC_KI_KINSHIPGENERALINFO.SpCheckProviderBackground(p_RSRC_ID);

Open c_Return;

END P2;

END!

RE: Db2 Monitoring

$
0
0

Deepshika,

This warning message is stating that one of the STMM parameters could not be adjusted for some reason. STMM was either trying to increase one of the parameters but the memory was not available or STMM was trying to decrease one of the parameters but for some reason could not.

The STMM log should provide you with more information. It is located in /sqllib/db2dump/stmmlog. Look to see what parameter was trying to be adjusted during the timestamp in the db2diag.log.

Also make sure all of the STMM parameters are set to AUTOMATIC including all of the bufferpools.

If all else fails then open a PMR with IBM.

Thanks,

Eric Sheridan

Db2 Monitoring

$
0
0

Hi all,

 I checked logs.Sometimes it shows this error.What is the issue and how we can resolve? please help me out.

AUTHID  : APP_USER             HOSTNAME: UPCDCDDMB01

EDUID   : 12003                EDUNAME: db2agent (UPCMBDB) 0

FUNCTION: DB2 UDB, Self tuning memory manager, stmmSimulateSortMerge, probe:3355

MESSAGE : ZRC=0x87AE0165=-2018639515=STMM_SEVERE_ERROR

          "Severe error encountered in self tuning memory manager"

DATA #1 : String, 91 bytes

ERROR simulation of real configuration has failed - not reporting benefit for this operator

 

2017-02-27-15.39.51.884502+330 I288755625E709        LEVEL: Warning

PID     : 4431                 TID : 47011483084544  PROC : db2sysc 0

INSTANCE: db2inst1             NODE : 000            DB   : UPCMBDB

APPHDL  : 0-36663              APPID: 10.1.1.21.49426.170305100814

AUTHID  : APP_USER             HOSTNAME: UPCDCDDMB01

EDUID   : 7659                 EDUNAME: db2agent (UPCMBDB) 0

FUNCTION: DB2 UDB, Self tuning memory manager, stmmSimulateSortMerge, probe:3355

MESSAGE : ZRC=0x87AE0165=-2018639515=STMM_SEVERE_ERROR

          "Severe error encountered in self tuning memory manager"

DATA #1 : String, 91 bytes

ERROR simulation of real configuration has failed - not reporting benefit for this operator

 

2017-02-27-15.40.34.263479+330 I288756335E709        LEVEL: Warning

PID     : 4431                 TID : 47013009811200  PROC : db2sysc 0

INSTANCE: db2inst1             NODE : 000            DB   : UPCMBDB

APPHDL  : 0-45651              APPID: 10.1.1.25.43103.170305120813

AUTHID  : APP_USER             HOSTNAME: UPCDCDDMB01

EDUID   : 12031                EDUNAME: db2agent (UPCMBDB) 0

FUNCTION: DB2 UDB, Self tuning memory manager, stmmSimulateSortMerge, probe:3355

MESSAGE : ZRC=0x87AE0165=-2018639515=STMM_SEVERE_ERROR

          "Severe error encountered in self tuning memory manager"

DATA #1 : String, 91 bytes

ERROR simulation of real configuration has failed - not reporting benefit for this operator

 

2017-02-27-15.41.21.620961+330 I288757045E709        LEVEL: Warning

PID     : 4431                 TID : 46912841443072  PROC : db2sysc 0

INSTANCE: db2inst1             NODE : 000            DB   : UPCMBDB

APPHDL  : 0-46753              APPID: 10.1.1.25.43243.170305120906

AUTHID  : APP_USER             HOSTNAME: UPCDCDDMB01

EDUID   : 12033                EDUNAME: db2agent (UPCMBDB) 0

FUNCTION: DB2 UDB, Self tuning memory manager, stmmSimulateSortMerge, probe:3355

MESSAGE : ZRC=0x87AE0165=-2018639515=STMM_SEVERE_ERROR

          "Severe error encountered in self tuning memory manager"

DATA #1 : String, 91 bytes

ERROR simulation of real configuration has failed - not reporting benefit for this operator

[db2inst1@UPCDCDDMB01 db2dump]$


Toad for DB2 freeware - db2 client.

$
0
0

Currently using Toad for Db2 freeware version 5.1.0, which has the db2 client built in ... wanting to upgrade to latest version 6.2, but it does not have the client built in .. is it possible to get this latest version with built in client .. ?  I'm new to a company that is a db2 shop, all previous developers have left company, no one seems to know where our db2 client is installed.

Repairt TableSpace

$
0
0

Hello,

Has anyone ever tried repair a table space inside TOAD for DB2 z./OS?

Command running:

REPAIR
SET TABLESPACE [Database Name].[TableSpace Name] NORCVRPEND#

Error MessagE:

 DSNU180I  %[Database Name] 062 09:29:51.47 DSNUGUCC - UTILITY IS NOT COMPATIBLE WITH THE LOAD UTILITUTILID = [utility id ID], OBJECT = [Database Name].[TableSpace Name]

Using Toad for DB2 6.2.0.315.

I am just trying to figure out how to do this so I dont have to write JCL to repair a tablespace.

Thanks for you help!

Robert 

RE: Repairt TableSpace

$
0
0

It could be that a load utility is running or stopped on that database/tablespace.

I do not believe DB2 allows a repair on a tablespace that also has a running/stopped utility process.

You view running and stopped utilities in Toad on the subsystem utilities tab:

RE: Toad for DB2 freeware - db2 client.

$
0
0

Larry,

The latest versions of Toad DB2 do not come with a built-in DB2 client.

You will have to install a DB2 client on your own (versions 9.7.6 or greater).

You should be able to find the IBM DB2 client download site via searching for:

"db2 client downloads".

Hope that helps.

RE: Repairt TableSpace

$
0
0

Thanks Jeff! This is valuable information. 

I just have one question.  I don't seem to see the subsystem utilities tab.  How do you enable that to view it? I actually don't see any of those tabs you have in your screen shot. I am thinking I don't have something enabled to view them.

RE: Repairt TableSpace

$
0
0

You will need a DB2 DB-admin add-on license to view the Utilities tab.

Perhaps contact your Toad DB2 sales person to get a trial with such license.

Or you can check out the Toad DB2 6.3 beta which has those features enabled.

RE: Repairt TableSpace

$
0
0

Great!  Looks like I will be installing the beta version tomorrow.  I was reading the release notes and you guys added a suggestion I had last year.  That is pretty sweet!!  You guys rock. Keep up the good work.


Fetch FIRST 1 ROW ONLY IN SUBSELECT GIVES SYNTAX ERROR IN TOAD for DB2 zos

$
0
0

Hi Folks

Toad complains as SYNTAX Error when you a FETCH FIRST 1 ROW ONLY in a subselect of a query. Does anybody know  across this situation. Not sure if this is a bug in Toad version 6.2.0.315 for DB2 zos.

Thanks.

"Processing was cancelled due to an interrupt" with SQL0952N

$
0
0

Hi all,

"Processing was cancelled due to an interrupt"

with SQL0952N

I have already googled and tried resolving the issue

one was asking me to update the QUERYTIMEOUTINTERVAL=0 in the db2cli.ini file.

which I have already done .however, there was no improvement

Moreover, when i tried to resolve the issue from application and bypass the issue by using the CommandTimeout=0; then, it is not throwing the exception. However, we are not getting the desired output as well.

Please help me out.

Thanks,

Deepshika

RE: Repairt TableSpace

$
0
0

I think the command works now with Beta version!  Thanks again.

RE: Construct of select and subselect

$
0
0

try "case when ratcod in (6, 7, 8)..."

RE: Construct of select and subselect

$
0
0

- Error still -

[Code: -104, SQL State: 37000]  [IBM][System i Access ODBC Driver][DB2 for i5/OS]SQL0104 - Token . was not valid. Valid tokens: ON FULL LEFT CROSS INNER RIGHT USING EXCEPTION.

select acctno, ratcod, ssno
from (select acctno, ratcod, ssno from resdat19.lnmast lnmast
group by ssno
having sum(case when ratcod in (6, 7 ,8) then 1 else 0 end) > 0
and sum(case when ratcod in (6, 7, 8) then 0 else 1 end) > 0
)
as ASum
JOIN
ON lnmast.ssno = ASum.ssno

Viewing all 389 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>