473,395 Members | 1,558 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,395 software developers and data experts.

Call to SP in partitioned env. not allowed

Hi,
(Infosphere Warehouse v9.5.1)

Encountered a problem migrating a single partition to multi-partition
Database.

Got a SQL error (don't have the exact code but it was something like
SQL2740 reason code 71) when
trying to create a scalar SQL function that has a CALL to a SP. error
message said "this is not allowed
in a partitioned environment".

The call to the SP is only used as a mechanism to eat the SQL
exception when trying to convert a string
that contains non numeric characters to a float, and instead simply
returns Null rather than throwing a SQL
error i.e ignore value (data can be dirty).

An alternative would be to convert(translate) all non numeric chars in
the string first, but this is clumsy as a list of all possible
non numeric characters would be needed.
Another alternative would be to check that the string only contains
numeric characters, but we can't think of a way of doing this that
wouldn't throw an error or incur siginificant overhead checking each
character individually.

any thoughts welcomed...
Jul 30 '08 #1
3 1663
PaulR wrote:
Hi,
(Infosphere Warehouse v9.5.1)

Encountered a problem migrating a single partition to multi-partition
Database.

Got a SQL error (don't have the exact code but it was something like
SQL2740 reason code 71) when
trying to create a scalar SQL function that has a CALL to a SP. error
message said "this is not allowed
in a partitioned environment".

The call to the SP is only used as a mechanism to eat the SQL
exception when trying to convert a string
that contains non numeric characters to a float, and instead simply
returns Null rather than throwing a SQL
error i.e ignore value (data can be dirty).

An alternative would be to convert(translate) all non numeric chars in
the string first, but this is clumsy as a list of all possible
non numeric characters would be needed.
Another alternative would be to check that the string only contains
numeric characters, but we can't think of a way of doing this that
wouldn't throw an error or incur siginificant overhead checking each
character individually.

any thoughts welcomed...
1. Write a Java (or whatever) UDF that does the conversion for you
2. Instead of converting all non-numeric characters convert all numeric
characters fro the test. E.g. if you replace all digits with an empty
string the result should be empty. (Or if you replace all digidt with a
space and trim both sides the result should be empty or a '.'...

Cheers
Serge
--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Jul 31 '08 #2
On 31 Jul, 12:08, Serge Rielau <srie...@ca.ibm.comwrote:
PaulR wrote:
Hi,
(Infosphere Warehouse v9.5.1)
Encountered a problem migrating a single partition to multi-partition
Database.
Got a SQL error (don't have the exact code but it was something like
SQL2740 reason code 71) when
trying to create a scalar SQL function that has a CALL to a SP. error
message said "this is not allowed
in a partitioned environment".
The call to the SP is only used as a mechanism to eat the SQL
exception when trying to convert a string
that contains non numeric characters to a float, and instead simply
returns Null rather than throwing a SQL
error i.e ignore value (data can be dirty).
An alternative would be to convert(translate) all non numeric chars in
the string first, but this is clumsy as a list of all possible
non numeric characters would be needed.
Another alternative would be to check that the string only contains
numeric characters, but we can't think of a way of doing this that
wouldn't throw an error or incur siginificant overhead checking each
character individually.
any thoughts welcomed...

1. Write a Java (or whatever) UDF that does the conversion for you
2. Instead of converting all non-numeric characters convert all numeric
characters fro the test. E.g. if you replace all digits with an empty
string the result should be empty. (Or if you replace all digidt with a
space and trim both sides the result should be empty or a '.'...

Cheers
Serge
--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
OK, Thanks.
I was also interested in the wider nature of the restriction ...

Is this restriction likely to remain for partitioned envs.?

PS. SQLCODE - SQL0270.
Jul 31 '08 #3
PaulR wrote:
Is this restriction likely to remain for partitioned envs.?
For the time being yes. Lifting the restriction is a significant effort
and is not going to happen as an APAR.
So if you need it: Complain - loudly - to your IBM rep.

Cheers
Serge

--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Jul 31 '08 #4

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

Similar topics

1
by: SM | last post by:
/* problem: Trying to get partitioned views to "prune" unneeded partitions from select statements against the partitioned view. There are 5 partitioned tables. Each with a check constraint...
3
by: Thomas R. Hummel | last post by:
Hello, I have a large set of data that I have set up as a partitioned view. The view is partitioned by a datetime column and the individual tables each represent one month's worth of data. I...
3
by: Thomas R. Hummel | last post by:
I am using SQL Server 2000, SP3. I created an updatable partitioned view awhile ago and it has been running smoothly for some time. The partition is on a DATETIME column and it is partitioned by...
4
by: karthik | last post by:
I have a partitioned view sitting over several tables and I'm slowly approaching the 256 number. Can anybody confirm if there is such a limit for the maximum number of tables that a partitioned...
0
by: Jack | last post by:
I am setting up a partitioned db environment and am seeing some slow performance when a query goes off the coordinator node. I have run a global database manager snapshot and these numbers raise...
6
by: Smutny30 | last post by:
Hello, I consider partitioning a huge table. I am not sure wheather it is possioble only in partitioned databases. I found somewhere in docs ( http://tinyurl.com/4oara ) that there are (simple,...
10
by: shsandeep | last post by:
The ETL application loaded around 3000 rows in 14 seconds in a Development database while it took 2 hours to load in a UAT database. UAT db is partitioned. Dev db is not partitioned. the...
0
by: Damir | last post by:
Hello all! I created a range-partitioned table, and noticed that indexes were created as "NOT PARTITIONED" (through db2look), even though I ran the index creating commands without this parameter....
2
by: eeriehunk | last post by:
Hi All, Is it possible to create a partitioned index on a table which is not partitioned? If so what is such a partition called and please explain? I have done some research on partitions and index...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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
marktang
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,...
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...

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.