I am trying to create a store proc that contain a create index with
the cluster option and I receive
DB21034E The command was processed as an SQL statement because it was
not a
valid Command Line Processor command. During SQL processing it
returned:
SQL0623N A clustering index already exists on table "PGIR.TF_RRCE".
LINE
NUMBER=35. SQLSTATE=55012
I did try to use
CALL SET_ROUTINE_OPTS('DYNAMICRULES RUN VALIDATE RUN')
before calling the create store proc but I still get the error.
If I skip the cluster option in the create index, then the create proc
work!!!
Any idea how to create the store proc in db2 without object
validation?
Thanks in advance
$ db2level
DB21085I Instance "db2dev6" uses "64" bits and DB2 code release
"SQL08024"
with level identifier "03050106".
Informational tokens are "DB2 v8.1.1.104", "s060120", "U805924", and
FixPak
"11".
Product is installed at "/usr/opt/db2_08_FP11". 4 3587
On Feb 2, 8:06 am, "JohnnyDeep" <jean-guy....@desjardins.comwrote:
I am trying to create a store proc that contain a create index with
the cluster option and I receive
DB21034E The command was processed as an SQL statement because it was
not a
valid Command Line Processor command. During SQL processing it
returned:
SQL0623N A clustering index already exists on table "PGIR.TF_RRCE".
LINE
NUMBER=35. SQLSTATE=55012
I did try to use
CALL SET_ROUTINE_OPTS('DYNAMICRULES RUN VALIDATE RUN')
before calling the create store proc but I still get the error.
If I skip the cluster option in the create index, then the create proc
work!!!
Any idea how to create the store proc in db2 without object
validation?
Thanks in advance
$ db2level
DB21085I Instance "db2dev6" uses "64" bits and DB2 code release
"SQL08024"
with level identifier "03050106".
Informational tokens are "DB2 v8.1.1.104", "s060120", "U805924", and
FixPak
"11".
Product is installed at "/usr/opt/db2_08_FP11".
Hi, Johnny:
I'm sure you're aware that only one clustering index can exist on a
table at any one time. There's no way around this. So, is there a step
in your procedure where you're deleting this "other" clustering index
first, and your issue/question is really one of timing? Are you
getting the error when trying to create (as opposed to run) the SP?
--Jeff
On Feb 2, 1:27 pm, "jefftyzzer" <jefftyz...@sbcglobal.netwrote:
On Feb 2, 8:06 am, "JohnnyDeep" <jean-guy....@desjardins.comwrote:
I am trying to create a store proc that contain a create index with
the cluster option and I receive
DB21034E The command was processed as an SQL statement because it was
not a
valid Command Line Processor command. During SQL processing it
returned:
SQL0623N A clustering index already exists on table "PGIR.TF_RRCE".
LINE
NUMBER=35. SQLSTATE=55012
I did try to use
CALL SET_ROUTINE_OPTS('DYNAMICRULES RUN VALIDATE RUN')
before calling the create store proc but I still get the error.
If I skip the cluster option in the create index, then the create proc
work!!!
Any idea how to create the store proc in db2 without object
validation?
Thanks in advance
$ db2level
DB21085I Instance "db2dev6" uses "64" bits and DB2 code release
"SQL08024"
with level identifier "03050106".
Informational tokens are "DB2 v8.1.1.104", "s060120", "U805924", and
FixPak
"11".
Product is installed at "/usr/opt/db2_08_FP11".
Hi, Johnny:
I'm sure you're aware that only one clustering index can exist on a
table at any one time. There's no way around this. So, is there a step
in your procedure where you're deleting this "other" clustering index
first, and your issue/question is really one of timing? Are you
getting the error when trying to create (as opposed to run) the SP?
--Jeff- Hide quoted text -
- Show quoted text -
Hi Jeff,
I am receiving the error while trying to create the store procedure.
I am aware that only one cluster index should be create for a table.
I just want to create the store procedure without dropping the index
first.
The funny part is that if I create the store procedure containing a
create index on a table currently having the index, it work. It`s only
the cluster option that seem to be validate at the creation of the
store procedure (and not the fact that the index already exists)
There should be a way to create a store procedure without checking the
status of the objects within the store procedure at bind time. I just
can find the way to solve that issue.
Regards,
On Feb 5, 7:29 am, "JohnnyDeep" <jean-guy....@desjardins.comwrote:
On Feb 2, 1:27 pm, "jefftyzzer" <jefftyz...@sbcglobal.netwrote:
On Feb 2, 8:06 am, "JohnnyDeep" <jean-guy....@desjardins.comwrote:
I am trying to create a store proc that contain a create index with
the cluster option and I receive
DB21034E The command was processed as an SQL statement because it was
not a
valid Command Line Processor command. During SQL processing it
returned:
SQL0623N A clustering index already exists on table "PGIR.TF_RRCE".
LINE
NUMBER=35. SQLSTATE=55012
I did try to use
CALL SET_ROUTINE_OPTS('DYNAMICRULES RUN VALIDATE RUN')
before calling the create store proc but I still get the error.
If I skip the cluster option in the create index, then the create proc
work!!!
Any idea how to create the store proc in db2 without object
validation?
Thanks in advance
$ db2level
DB21085I Instance "db2dev6" uses "64" bits and DB2 code release
"SQL08024"
with level identifier "03050106".
Informational tokens are "DB2 v8.1.1.104", "s060120", "U805924", and
FixPak
"11".
Product is installed at "/usr/opt/db2_08_FP11".
Hi, Johnny:
I'm sure you're aware that only one clustering index can exist on a
table at any one time. There's no way around this. So, is there a step
in your procedure where you're deleting this "other" clustering index
first, and your issue/question is really one of timing? Are you
getting the error when trying to create (as opposed to run) the SP?
--Jeff- Hide quoted text -
- Show quoted text -
Hi Jeff,
I am receiving the error while trying to create the store procedure.
I am aware that only one cluster index should be create for a table.
I just want to create the store procedure without dropping the index
first.
The funny part is that if I create the store procedure containing a
create index on a table currently having the index, it work. It`s only
the cluster option that seem to be validate at the creation of the
store procedure (and not the fact that the index already exists)
There should be a way to create a store procedure without checking the
status of the objects within the store procedure at bind time. I just
can find the way to solve that issue.
Regards,- Hide quoted text -
- Show quoted text -
One thing you might want to try is to rewrite the CREATE INDEX
statement in the stored proc as dynamic SQL.
--Jeff
This error is produced when DB2 compiles /(checks the correctness of)
the stored procedure. It notices that you already have a clustered
index on the table, and tells you so.
Like Jeff mentioned, if you turn the CREATE INDEX statement into
dynamic SQL then you shouldn't have a problem. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Philip Yale |
last post by:
I'm probably going to get shot down with thousands of reasons for
this, but I've never really heard or read a convincing explanation, so
here goes...
|
by: Guy Deprez |
last post by:
Hi,
i'm having a problem to create indexes.
STEP 1
-----------
Connection is OK (you can find the string at the end of the message)
Table...
|
by: Adam Kavan |
last post by:
I have a table that II am constantly inserting into (around 10 times a
second right now but hope to increase latter). I hold these rows for a
week...
|
by: Robin Lawrie |
last post by:
Hi,
Looking for some help here!
I'm adding records to a SQL 2000 DB using the objRS.AddNew and objRS.Update
methods.
What I'd like to do is...
|
by: Dhruba Bandopadhyay |
last post by:
Validation of viewstate MAC failed. If this application is hosted by a Web
Farm or cluster, ensure that <machineKey> configuration specifies the...
|
by: dunleav1 |
last post by:
The table is a many row and many column table that is in a 16K page
size. I am running row compression on the table. A have an index that
over time...
|
by: dunleav1 |
last post by:
I have a many row and many column table that is in a 16K page size.
I have four indexes on the table.
I am running row compression on the table....
|
by: rdsandy |
last post by:
Hi,
I have a table Risk, a table Mitigation and a table RiskArchive. I am taking the RiskID, Criticality and MitigationPlan fields from Risk, and...
|
by: Ian |
last post by:
Henry J. wrote:
MDC *guarantees* clustering, whereas a table with a clustering index
will eventually require maintenance (a.k.a. reorg) to...
|
by: Kemmylinns12 |
last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
|
by: jalbright99669 |
last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
|
by: antdb |
last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine
In the overall architecture, a new "hyper-convergence" concept was...
|
by: Matthew3360 |
last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
|
by: AndyPSV |
last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
|
by: Arjunsri |
last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
|
by: Matthew3360 |
last post by:
Hi,
I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
|
by: BLUEPANDA |
last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS...
|
by: Rahul1995seven |
last post by:
Introduction:
In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python...
| |