Unix Technical Forum

Corrupt record in sysmaster: systabnames

This is a discussion on Corrupt record in sysmaster: systabnames within the Informix forums, part of the Database Server Software category; --> Hello, Please advise: We are having a very strange problem that is causing dbexport to fail. DBEXPORT always fails ...


Go Back   Unix Technical Forum > Database Server Software > Informix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-19-2008, 08:26 PM
Informix User
 
Posts: n/a
Default Corrupt record in sysmaster: systabnames

Hello,

Please advise:

We are having a very strange problem that is causing dbexport to fail.
DBEXPORT always fails when extracting a schema for a particular table.
The error message
is:


=================
table definition is OK ....(Not shown here )

revoke all on "informix".dx_accountSumm from "public";

-284 - A subquery has returned not exactly one row.
======================

When looking at the systmaster.systabnames there are two records with
the same tablename, same owner name and same database. We have no idea
why or how. We are however able to update/insert records into this
table properly. The error occurs only during dbexport causing the
dbexport process to abort with finishing the rest of the tables. It
stops after exporting 87 out 115 tables.

Can I simply delete the record from systabnames that points to the
non-existent table using partnum.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-19-2008, 08:26 PM
Obnoxio The Clown
 
Posts: n/a
Default Re: Corrupt record in sysmaster: systabnames

Informix User wrote:

> When looking at the systmaster.systabnames there are two records with
> the same tablename, same owner name and same database. We have no idea
> why or how. We are however able to update/insert records into this
> table properly. The error occurs only during dbexport causing the
> dbexport process to abort with finishing the rest of the tables. It
> stops after exporting 87 out 115 tables.
>
> Can I simply delete the record from systabnames that points to the
> non-existent table using partnum.


I'd take it up with tech support -- such an action would almost certainly be
unsupported.

--
Ciao,
The Obnoxious One

"Ogni uomo mi guarda come se fossi una testa di cazzo"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-19-2008, 08:28 PM
Art S. Kagel
 
Posts: n/a
Default Re: Corrupt record in sysmaster: systabnames

On Fri, 14 Nov 2003 20:59:32 -0500, Informix User wrote:

> Hello,
>
> Please advise:
>
> We are having a very strange problem that is causing dbexport to fail.
> DBEXPORT always fails when extracting a schema for a particular table. The
> error message
> is:
>
>
> =================
> table definition is OK ....(Not shown here )
>
> revoke all on "informix".dx_accountSumm from "public";
>
> -284 - A subquery has returned not exactly one row. ======================
>
> When looking at the systmaster.systabnames there are two records with the same
> tablename, same owner name and same database. We have no idea why or how. We
> are however able to update/insert records into this table properly. The error
> occurs only during dbexport causing the dbexport process to abort with
> finishing the rest of the tables. It stops after exporting 87 out 115 tables.
>
> Can I simply delete the record from systabnames that points to the
> non-existent table using partnum.


NNNNOOOOOOO!!!!!!!!

The systabnames SMI table is a view into the tablespace tablespace records on
disk and not a real table! I'm not sure the engine would even let you delete a
'row' from that 'table' but you REALLY should not do so. You can try to get
tech support to poke in and change the tablename on the tablespace tablespace
page. Then I'd dbexport the whole database, drop it, and recreate it clean. You
COULD try my dbexport replacement utility myexport which uses different logic to
locate the catalog information and so may not get confused (no guarantee).
Myexport is its own package in the IIUG Software Repository but also requires
my dbschema replacement utility myschema from the utils2_ak package and the
sqlunload and sqlreload utilities from Jonathan Leffler's sqlcmd package. Both
of these are also available for download from the Repository.

Art S. Kagel
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:44 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com