dbTalk Databases Forums  

FYI: DB2 9.7.4 has been released with new SQL function

comp.databases.ibm-db2 comp.databases.ibm-db2


Discuss FYI: DB2 9.7.4 has been released with new SQL function in the comp.databases.ibm-db2 forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Serge Rielau
 
Posts: n/a

Default FYI: DB2 9.7.4 has been released with new SQL function - 04-19-2011 , 03:31 PM






https://www-304.ibm.com/support/docv...id=swg24029745

Some interesting SQL Enhancements:
* Pass ROWs and ARRAY's of ROWs between
JDBC and SQL Procedures and Functions
* LIKE with non constant patterns (e.g. LIKE as a "join predicate")
* Multi-Action triggers (One trigger for UPDATE/INSERT/DELETE)
* Allow UPDATE/DELETE/INSERT/MERGE in BEFORE triggers

Enjoy
Serge
--
Serge Rielau
SQL Architect DB2 for LUW, IBM Toronto Lab
Blog: tinyurl.com/SQLTips4DB2
Wiki: tinyurl.com/Oracle2DB2Wiki
Twitter: srielau

Reply With Quote
  #2  
Old   
The Boss
 
Posts: n/a

Default Re: FYI: DB2 9.7.4 has been released with new SQL function - 04-19-2011 , 03:35 PM






On 19 apr, 22:31, Serge Rielau <srie... (AT) ca (DOT) ibm.com> wrote:
Quote:
https://www-304.ibm.com/support/docv...id=swg24029745

Some interesting SQL Enhancements:
* Pass ROWs and ARRAY's of ROWs between
* *JDBC and SQL Procedures and Functions
* LIKE with non constant patterns (e.g. LIKE as a "join predicate")
* Multi-Action triggers (One trigger for UPDATE/INSERT/DELETE)
* Allow UPDATE/DELETE/INSERT/MERGE in BEFORE triggers

Enjoy
Serge
Sounds like it's time for a new sequel in the "SQL on Fire!"
series... ;-)

--
Jeroen

Reply With Quote
  #3  
Old   
Serge Rielau
 
Posts: n/a

Default Re: FYI: DB2 9.7.4 has been released with new SQL function - 04-19-2011 , 03:57 PM



On 4/19/2011 4:35 PM, The Boss wrote:
Quote:
On 19 apr, 22:31, Serge Rielau<srie... (AT) ca (DOT) ibm.com> wrote:
https://www-304.ibm.com/support/docv...id=swg24029745

Some interesting SQL Enhancements:
* Pass ROWs and ARRAY's of ROWs between
JDBC and SQL Procedures and Functions
* LIKE with non constant patterns (e.g. LIKE as a "join predicate")
* Multi-Action triggers (One trigger for UPDATE/INSERT/DELETE)
* Allow UPDATE/DELETE/INSERT/MERGE in BEFORE triggers

Enjoy
Serge

Sounds like it's time for a new sequel in the "SQL on Fire!"
series... ;-)
Hehe, hard to keep up.
Prepping a talk about the "SQL PL Profiler" (see blog) for IMTC
Bangalore in two weeks.

Cheers
Serge

--
Serge Rielau
SQL Architect DB2 for LUW, IBM Toronto Lab
Blog: tinyurl.com/SQLTips4DB2
Wiki: tinyurl.com/Oracle2DB2Wiki
Twitter: srielau

Reply With Quote
  #4  
Old   
Frederik Engelen
 
Posts: n/a

Default Re: FYI: DB2 9.7.4 has been released with new SQL function - 04-19-2011 , 04:41 PM



On 19 apr, 22:57, Serge Rielau <srie... (AT) ca (DOT) ibm.com> wrote:
Quote:
On 4/19/2011 4:35 PM, The Boss wrote:> On 19 apr, 22:31, Serge Rielau<srie... (AT) ca (DOT) ibm.com> *wrote:
https://www-304.ibm.com/support/docv...id=swg24029745

Some interesting SQL Enhancements:
* Pass ROWs and ARRAY's of ROWs between
* * JDBC and SQL Procedures and Functions
* LIKE with non constant patterns (e.g. LIKE as a "join predicate")
* Multi-Action triggers (One trigger for UPDATE/INSERT/DELETE)
* Allow UPDATE/DELETE/INSERT/MERGE in BEFORE triggers

Enjoy
Serge

Sounds like it's time for a new sequel in the "SQL on Fire!"
series... ;-)

Hehe, hard to keep up.
Prepping a talk about the "SQL PL Profiler" (see blog) for IMTC
Bangalore in two weeks.

Cheers
Serge

--
Serge Rielau
SQL Architect DB2 for LUW, IBM Toronto Lab
Blog: * *tinyurl.com/SQLTips4DB2
Wiki: * *tinyurl.com/Oracle2DB2Wiki
Twitter: srielau
"The LISTAGG function aggregates a set of string values for the group
into one string by appending the string-expression values based on the
order specified in the WITHIN GROUP clause."

So no more feeling special because you know how to do it with
XMLAGG? :-(

Joking, nice release...

--
Frederik Engelen

Reply With Quote
  #5  
Old   
Fin
 
Posts: n/a

Default Re: FYI: DB2 9.7.4 has been released with new SQL function - 04-20-2011 , 05:36 PM



Will there be a 9.7.4 release for Express-C anytime soon ?

Reply With Quote
  #6  
Old   
Serge Rielau
 
Posts: n/a

Default Re: FYI: DB2 9.7.4 has been released with new SQL function - 04-23-2011 , 07:37 AM



On 4/20/2011 6:36 PM, Fin wrote:
Quote:
Will there be a 9.7.4 release for Express-C anytime soon ?
Totally forgot about LISTAGG!
Yes, my job is to make myself unnecessary ;-)

For DB2 Express C FP4 I propose asking the question in the Express C
forum. I'd be surprised if there were no refresh.

Cheers
Serge

--
Serge Rielau
SQL Architect DB2 for LUW, IBM Toronto Lab
Blog: tinyurl.com/SQLTips4DB2
Wiki: tinyurl.com/Oracle2DB2Wiki
Twitter: srielau

Reply With Quote
  #7  
Old   
Lennart Jonsson
 
Posts: n/a

Default Re: FYI: DB2 9.7.4 has been released with new SQL function - 05-02-2011 , 02:30 AM



On 2011-04-21 00:36, Fin wrote:
Quote:
Will there be a 9.7.4 release for Express-C anytime soon ?
9.7.4 for is now availible for download


/Lennart

Reply With Quote
  #8  
Old   
Tonkuma
 
Posts: n/a

Default Re: FYI: DB2 9.7.4 has been released with new SQL function - 05-02-2011 , 02:59 AM



Here is an example of LISTAGG(without optional WITHIN GROUP).

http://www.dbforums.com/db2/1666067-...e-session.html

Reply With Quote
  #9  
Old   
Fin
 
Posts: n/a

Default Re: FYI: DB2 9.7.4 has been released with new SQL function - 05-03-2011 , 10:00 AM



I have updated from Express-C 9.7.2 to 9.7.4 and am trying this new
LISTAGG function.

During installation it created the a new SAMPLE database which worked
just fine and the sample LISTAGG command from the info center works
just great. Problem is however that trying the same command (slightly
different syntax of course) in my existing database (ex 9.7.2) fails
with :

SQL0440N No authorized routine named "LISTAGG" of type "FUNCTION"
having
compatible arguments was found. SQLSTATE=42884

Is there some upgrade command, access to grant, permission to set,
bind to perform or something similar I am missing in order to get this
new function working on my existing database ?

Reply With Quote
  #10  
Old   
Helmut Tessarek
 
Posts: n/a

Default Re: FYI: DB2 9.7.4 has been released with new SQL function - 05-03-2011 , 10:52 AM



After apply

On 05/03/2011 11:00 AM, Fin wrote:
Quote:
Is there some upgrade command, access to grant, permission to set,
bind to perform or something similar I am missing in order to get this
new function working on my existing database ?
After applying a fixpak, you usually use the following steps to upgrade
the db.

db2updv9 -d <dbname>

db2 BIND ~/sqllib/bnd/@db2ubind.lst GRANT PUBLIC BLOCKING ALL
db2 BIND ~/sqllib/bnd/@db2cli.lst GRANT PUBLIC BLOCKING ALL
db2 BIND ~/sqllib/bnd/db2schema.bnd BLOCKING ALL GRANT PUBLIC sqlerror
continue

Try those steps and your LISTAGG should be available.

--
Helmut K. C. Tessarek
DB2 Performance and Development
IBM Toronto Lab

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.