View previous topic :: View next topic |
Author |
Message |
drammo Beginner
Joined: 13 Jan 2006 Posts: 20 Topics: 10
|
Posted: Thu Oct 13, 2011 1:37 pm Post subject: Is Package executable? |
|
|
We have a stored procedure which calls a few subroutines. The subroutines & the stored proc have DB2 and they are all bound as packages.
None, including the stored proc, are plans.
I am able to execute the stored procedure fine. What am I missing? |
|
Back to top |
|
 |
drammo Beginner
Joined: 13 Jan 2006 Posts: 20 Topics: 10
|
Posted: Thu Oct 13, 2011 2:28 pm Post subject: |
|
|
Found answer in the manuals
Quote: | If the stored procedure contains SQL statements, you must process them like they are in any
other SQL application program through the DB2 pre-compiler or the SQL statement
co-processor, and you must bind the resulting DBRM into a package. It does not require a
plan since it runs under the thread for the calling application. |
Quote: | Packages must exist in collections. During execution, DB2 always requires a plan that has
established a connection to DB2. Except for packages such as triggers, stored procedures,
and distributed applications, packages must belong to a plan.
|
|
|
Back to top |
|
 |
|
|