Interesting table
Monday, January 07, 2008
create table test (a integer not null generated always as identity (start with 1 increment by 1))
I cannot insert data since a is defined with "generated always", and there aint no other columns. This is a hole, just found this when I was taking prescription for everyday boredom.
APPGROUP_share_heap error in db2
Thursday, August 30, 2007
SQL0973N Not enough storage is available in the
"APPGROUP_SHARE_HEAP" heap to process the statement. SQLSTATE=57011 ???
For "application group shared heap size" , you need to look at three
parameters....
APPGROUP_MEM_SZ, GROUPHEAP_RATIO, and APP_CTL_HEAP_SZ.
The number of applications in one application group is calculated by:
APPGROUP_MEM_SZ / APP_CTL_HEAP_SZ.
The application group sharedheap size is calculated by: APPGROUP_MEM_SZ
* GROUPHEAP_RATIO /100.
Great article about DB2 locking
Wednesday, August 08, 2007
How Can Statistics Be Updatee Using SQL
Monday, August 06, 2007
DB2 Viper 2 compatibility features
Wednesday, August 01, 2007
Make your applications port easier.
Below is a post by Serge Releiu talking about DB2's sql avatar, and how we can
use them with caution to tackle porting worries..
http://www.ibm.com/developerworks/db2/library/techarticle/dm-0707rielau/
Cursor in UDFs ??
Wednesday, July 25, 2007
SQL PL can be categorized into two technologies.
One is "inline" SQL PL, the other, what I like to call "packaged" or
"compiled" SQL PL.
Procedures are compiled once into static SQL when they are created.
SQL Functions, Methods and Triggers as well as a standalone BEGIN ATOMIC
.... END statement (a dynamic compound) are not compiled into separate
objects. A trigger or SQL function get macro expanded into the
surrounding statement and compield within it's context.
This is very powerful technology, but also very tricky.
Consequently inline SQL PL has only a subset of the statements at its
disposal.
These are:
FOR loop (which is very close to a CURSOR)
WHILE
SET
ITERATE
CONTINUE
SIGNAL
GET DIAGNOSTICs
DECLARE variable
DECLARE condition
IF THEN ELSE
I know of only two things that inline SQL PL can do today that packaged
SQL PL cannot:
Multi column set (SET (a, b, c) = (....))
and SELECT and VALUES without INTO clauses
The former is on the todo list, the later is a historical feature.
Thanks to Serge Rielau, IBM Toronto labs..
Leverage data partitioning for scalability and high performance on Linux
Friday, June 29, 2007
This gives the step by step howto for implementing DPF in a SUSE enterprise v9
A colorful intro to db2 DPF
Secrets surrounding db2 locking behaviour
Thursday, May 31, 2007
http://www.ibm.com/developerworks/db2/library/techarticle/dm-0501melnyk/
Packages : concepts, examples and common problems
Friday, April 20, 2007
I am changing this blog into a full db2 blog that I am going to note down my everyday experiences and links that I wont want to miss.. The 1st of them is about packages, which is not an easily understandable concept in db2 atleast in UDB universe.
Packages : concepts,examples and common problems
Below is the blog of Dwaine Snow, the author of
Advanced db2 dba certification 704 ..book
Dwaine Snow's blog
And atlast this is Susan Visser's blog on IBM pubs in everything DB2 UDB.
Agent survey
Tuesday, October 26, 2004
Way of describing agents -Autonomous, rational ... cant.High-level - has some computing resources that are finite. It cant'- Brooks.Intentional systems - behavior can be predicted by the method of attributing beliefs, desire and rational.
Folk psychology- behaviour is explained using attitudes such as belief and wanting.
First order intentional systems have belief and desire..2nd- belief and desire and other intentional systems about belief and desire of them and others.
McCarthy - intentional stance is most useful when applied to systems whose structure is not fully known.Attitudes for representing agents - info attitudes and pro-attitudes Info- attitudes - Information, belief.Pro- intention, desire, commitment, oblication, choice..Related to each other.Referential opacity - the equivalence sets up context opacity.Intentional systems cant be described in classical 1st order logic since the truth equivalence does not preserve it's meaning.