Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Creating DB2 tables in DB2 Blu

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Creating DB2 tables in DB2 Blu
 Login/Join
 
Member
posted
We are in process from upgrading our DB2 database from 9.1 to 10.5 fp5 with DB2 Blu acceleration.

A typical focexec would look like this:

TABLE FILE ACCOUNT
PRINT BALANCE CUSTOMER_NAME
BY OPEN_DATE
BY CUSTOMER_ID
ON TABLE HOLD AS M1828CWF1 FORMAT DB2
END

In some cases, it appears to be creating a row organized table and loading the table with no issue.
In other cases, it blows up with an error:
[42858] [IBM] [CLI Driver] [DB2/LINUXX88664] SQL0969N There is no message text corresponding to SQL error "-1667" in the message file on this work station. The error was returned from module "SQLNQ2EA" with original tokens "EDAUSR1.M1828CWF1 ORGANIZE BY COLUMN CREATE INDEX". SQLSTATE-42858

Our DBA says when it works, it creates the table, does the insert, and creates a primary index.
When it fails with that error, it creates the table, does the insert, tries to organize by column and create an index (which I thought he said isn't needed on a columnar table)

My problem is we don't seem to know under what circumstances it tries to create the columnar table. We've had requests where we comment out the BY statements and it works. Other requests have 4 BY statements and loads successfully. The BY statements create unique keys (no duplicates)

Does anyone have experience creating tables in DB2 Blu and can tell me either
1) what the circumstances are when the SQL is translated to try to load a columnar table vs a row organized table
or
2) how to override this - short of writing every step that creates a DB2 table in passthru SQL?

Thanks!

We are running WebFOCUS 8009 on Windows

This message has been edited. Last edited by: FP Mod Chuck,


WebFOCUS 7.6.1
AIX / Windows 2003
 
Posts: 17 | Location: Milwaukee | Registered: February 16, 2006Report This Post
Member
posted Hide Post
Dave found the resolution...
The data was being sorted by a numeric field in DB2 Blu and trying to hold it as a DB2 table.

Either sort by an alpha field, don't sort it when putting into DB2, or sort and HOLD it then load into DB2 without a sort.


Susan
WebFOCUS 8.2.01m Windows 7, SQL, HTML, XLS, CSV, DB2
 
Posts: 10 | Location: US Bank | Registered: June 16, 2008Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Creating DB2 tables in DB2 Blu

Copyright © 1996-2020 Information Builders