on 02-17-2010 10:36 AM
Hi,
We are trying to resolve a missing index in development system. We are
getting ZMM_TANK_ITEM-0 missing index in development system. We tried
resolving it Reorganization of database tables sap note 84081. But stillwe are not able to resolve at customer end.
When we try to create it with se14 we get following error:
***************************************************
The SQL statement was not executed
Index could not be created completely in the database
Index ZMM_TANK_ITEM-0 could not be created
***************************************************
Kindly provide your inputs on same as this table is productive but its
giving problem in development system
Regards,
Prasad
Most likely there is another table in the database schema that has a primary key constraint with the same name. For example, if you have created a table with the same name and primary key constraint before and then renamed that table, the primary key name does not get renamed.
To identify the table that has the same primary key name, you can use interactive SQL (STRSQL, SQLUTIL or System i Navigator) and execute the following SQL statement:
SELECT TABLE_NAME, TABLE_SCHEMA
FROM R3E03DATA/SYSCST
WHERE CONSTRAINT_NAME = 'ZMM_TANK_ITEM+0'
After identifying the table, you can decide what to do with it: Drop the table or drop the primary key constraint. There is no rename function for the primary key, so the only way to "rename" it is to drop it and create a new one with a different name.
Kind regards,
Christian Bartels.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Prasad,
You can either go through DB4COCKPIT or DB02. In DB02 you can click on "Missing Indexes', then click on "Create in DB", this should create those missing indexes for you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mike,
We tried that in db02/dbacockpit but as alreay intimated we are getting following error:
*********************************************************************************************************
Request: Create Index ZMM_TANK_ITEM-0 (SPLRFC/18.02.10/10:12)
Process: SPLDEVQA_2
sql:
ALTER TABLE R3E03DATA/"ZMM_TANK_ITEM"
ADD CONSTRAINT "ZMM_TANK_ITEM+0" primary key
("MANDT",
"ZTANKNO",
"ZMATERIAL",
"ZDATE")
"ZMM_TANK_ITEM+0" in R3E03DATA type *N already exists. MSGID= Jo
b=092590/E0303/WP02
DDL time(___1): .....9,848 milliseconds
The SQL statement was not executed
Index could not be created completely in the database
Index ZMM_TANK_ITEM-0 could not be created
Request for ZMM_TANK_ITEM could not be executed
*********************************************************************************************************
Regards,
Prasad
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.