Unix Technical Forum

Re: DBEXPORT failed with *** prepare unldobj & 201 - A syntax error

This is a discussion on Re: DBEXPORT failed with *** prepare unldobj & 201 - A syntax error within the Informix forums, part of the Database Server Software category; --> --0__=09BBE512DFF2022A8f9e8a93df938690918c09BBE512DF F2022A Content-type: multipart/alternative; Boundary="1__=09BBE512DFF2022A8f9e8a93df938690918c 09BBE512DFF2022A" --1__=09BBE512DFF2022A8f9e8a93df938690918c09BBE512DF F2022A Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: quoted-printable Hi, 9.40.UC7 on Solaris create database ...


Go Back   Unix Technical Forum > Database Server Software > Informix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-20-2008, 08:22 AM
Fnu Gaurav
 
Posts: n/a
Default Re: DBEXPORT failed with *** prepare unldobj & 201 - A syntax error


--0__=09BBE512DFF2022A8f9e8a93df938690918c09BBE512DF F2022A
Content-type: multipart/alternative;
Boundary="1__=09BBE512DFF2022A8f9e8a93df938690918c 09BBE512DFF2022A"

--1__=09BBE512DFF2022A8f9e8a93df938690918c09BBE512DF F2022A
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: quoted-printable






Hi,

9.40.UC7 on Solaris

create database checkdb;
create table tab1(case int);
create table tab2(ref int);

I did a dbexport, dropped the database and did dbimport. No problems. I=
do
not believe that such problem can be platform specific so it would be f=
are
to say that the problem has been fixed in latest version.

Thanks and Regards,
Gaurav


=

Ben Thompson =

<ben@nomonitorsof =

tspam.com> =
To
Sent by: informix-list@iiug.org =

owner-informix-li =
cc
st@iiug.org =

Subj=
ect
Re: DBEXPORT failed with *** =

01/04/2005 06:18 prepare unldobj & 201 - A syntax=

AM error =

=

=

Please respond to =

Ben Thompson =

=

=





Hari Gupta wrote:
> --------------------------------------------
> A VERY HAPPY NEW YEAR - 2005 TO ALL OF YOU
> --------------------------------------------
>
> IDS 9.40.UC3
> RHL 7.3
>
> dbexport is failing over with following error:
>
>

-----------------------------------------------------------------------=
--------

> { TABLE "auth".syscolformats row size =3D 875 number of columns =3D 1=

6 index
size =3D
> 204 }
> { unload file name =3D sysco00773.unl number of rows =3D 0 }
>
> create table "auth".syscolformats
> (
> owner char(32),
> tabname char(32),
> colname char(32),
> extowner char(32),
> priority smallint,
> typeface char(64),
> fontsize smallint,
> fontstyle smallint,
> fontcolor integer,
> aidfa char(30),
> formatmask char(256),
> format4gl char(128),
> align char(1),
> case char(1),
> ruletype char(1),
> checktext char(256)
> ) extent size 16 next size 16 lock mode row;
> revoke all on "auth".syscolformats from "public";
>
> *** prepare unldobj
> 201 - A syntax error has occurred.
>

-----------------------------------------------------------------------=
-------

>
> dbexport by:
>
> dbexport -d <database name> -ss
>
> - There is no row in this table (syscolformats).
> - Last night onchecks did not report any thing unusual.
>
> Question:
>
> 1. Root cause of this error and can it be prevented ?


I have reproduced your problem by creating a test database and creating=

this table in it. The problem is because you have a column called 'case=
'
which appears to be a reserved word. There is a bug in dbexport where i=
f
there is a column name that is a reserved word it will fail like this. =
A
favourite of mine is 'ref' - if you have a column of this name it will
fail as well.

I don't think I have raised this bug with technical support as I can
work around it (see below) but if anyone is listening and would like to=

fix it, then it's easy to reproduce and I would be grateful.

> 2. Is it safe to drop this system table ?


Is this a system table? I know its name starts with 'sys' but it doesn'=
t
exist in any database I have. Can anyone else verify this?

> 3. If yes, should it be dropped first and continue dbexport; recreate=

it
after
> dbexport is over ?
> OR
> Drop and recreate the table and then start dbexport ?


Rename the column case to case1 as follows, provided you are sure this
is NOT a system table - do not take my word for it:
rename column syscolformats.case to case1;
Do the dbexport.
Rename it back using a similar SQL statement:
rename column syscolformats.case1 to case;
Edit the dbexport unload file and change the column name back to what i=
t
was. Dbimport has no problems with reserved words.

Ben.
=

--1__=09BBE512DFF2022A8f9e8a93df938690918c09BBE512DF F2022A
Content-type: text/html; charset=US-ASCII
Content-Disposition: inline
Content-transfer-encoding: quoted-printable

<html><body>
<p>Hi,<br>
<br>
9.40.UC7 on Solaris<br>
<br>
create database checkdb;<br>
create table tab1(case int);<br>
create table tab2(ref int);<br>
<br>
I did a dbexport, dropped the database and did dbimport. No problems. I=
do not believe that such problem can be platform specific so it would =
be fare to say that the problem has been fixed in latest version.<br>
<br>
Thanks and Regards,<br>
Gaurav<br>
<img src=3D"cid:10__=3D09BBE512DFF2022A8f9e8a93df938@us .ibm.com" width=3D=
"16" height=3D"16" alt=3D"Inactive hide details for Ben Thompson &lt;be=
n@nomonitorsoftspam.com&gt;">Ben Thompson &lt;ben@nomonitorsoftspam.com=
&gt;<br>
<br>
<br>

<table width=3D"100%" border=3D"0" cellspacing=3D"0" cellpadding=3D"0">=

<tr valign=3D"top"><td style=3D"background-image:url(cid:20__=3D09BBE51=
2DFF2022A8f9e8a93df938@us.ibm.com); background-repeat: no-repeat; " wid=
th=3D"40%">
<ul>
<ul>
<ul>
<ul><b><font size=3D"2">Ben Thompson &lt;ben@nomonitorsoftspam.com&gt;<=
/font></b><font size=3D"2"> </font><br>
<font size=3D"2">Sent by: owner-informix-list@iiug.org</font>
<p><font size=3D"2">01/04/2005 06:18 AM</font>
<table border=3D"1">
<tr valign=3D"top"><td width=3D"168" bgcolor=3D"#FFFFFF"><div align=3D"=
center"><font size=3D"2">Please respond to<br>
Ben Thompson</font></div></td></tr>
</table>
</ul>
</ul>
</ul>
</ul>
</td><td width=3D"60%">
<table width=3D"100%" border=3D"0" cellspacing=3D"0" cellpadding=3D"0">=

<tr valign=3D"top"><td width=3D"1%" valign=3D"middle"><img src=3D"cid:3=
0__=3D09BBE512DFF2022A8f9e8a93df938@us.ibm.com" border=3D"0" height=3D"=
1" width=3D"58" alt=3D""><br>
<div align=3D"right"><font size=3D"2">To</font></div></td><td width=3D"=
100%"><img src=3D"cid:30__=3D09BBE512DFF2022A8f9e8a93df938@us .ibm.com" =
border=3D"0" height=3D"1" width=3D"1" alt=3D""><br>
<font size=3D"2">informix-list@iiug.org</font></td></tr>

<tr valign=3D"top"><td width=3D"1%" valign=3D"middle"><img src=3D"cid:3=
0__=3D09BBE512DFF2022A8f9e8a93df938@us.ibm.com" border=3D"0" height=3D"=
1" width=3D"58" alt=3D""><br>
<div align=3D"right"><font size=3D"2">cc</font></div></td><td width=3D"=
100%"><img src=3D"cid:30__=3D09BBE512DFF2022A8f9e8a93df938@us .ibm.com" =
border=3D"0" height=3D"1" width=3D"1" alt=3D""><br>
</td></tr>

<tr valign=3D"top"><td width=3D"1%" valign=3D"middle"><img src=3D"cid:3=
0__=3D09BBE512DFF2022A8f9e8a93df938@us.ibm.com" border=3D"0" height=3D"=
1" width=3D"58" alt=3D""><br>
<div align=3D"right"><font size=3D"2">Subject</font></div></td><td widt=
h=3D"100%"><img src=3D"cid:30__=3D09BBE512DFF2022A8f9e8a93df938@us .ibm.=
com" border=3D"0" height=3D"1" width=3D"1" alt=3D""><br>
<font size=3D"2">Re: DBEXPORT failed with *** prepare unldobj &amp; 20=
1 - A syntax error</font></td></tr>
</table>

<table border=3D"0" cellspacing=3D"0" cellpadding=3D"0">
<tr valign=3D"top"><td width=3D"58"><img src=3D"cid:30__=3D09BBE512DFF2=
022A8f9e8a93df938@us.ibm.com" border=3D"0" height=3D"1" width=3D"1" alt=
=3D""></td><td width=3D"336"><img src=3D"cid:30__=3D09BBE512DFF2022A8f9=
e8a93df938@us.ibm.com" border=3D"0" height=3D"1" width=3D"1" alt=3D""><=
/td></tr>
</table>
</td></tr>
</table>
<br>
<tt>Hari Gupta wrote:<br>
&gt; --------------------------------------------<br>
&gt; A VERY HAPPY NEW YEAR - 2005 TO ALL OF YOU<br>
&gt; --------------------------------------------<br>
&gt; <br>
&gt; IDS 9.40.UC3<br>
&gt; RHL 7.3<br>
&gt; <br>
&gt; dbexport is failing over with following error:<br>
&gt; <br>
&gt; ------------------------------------------------------------------=
-------------<br>
&gt; { TABLE &quot;auth&quot;.syscolformats row size =3D 875 number of =
columns =3D 16 index size =3D <br>
&gt; 204 } <br>
&gt; { unload file name =3D sysco00773.unl number of rows =3D 0 } <br>
&gt; <br>
&gt; create table &quot;auth&quot;.syscolformats <br>
&gt; &nbsp; ( <br>
&gt; &nbsp; &nbsp; owner char(32), <br>
&gt; &nbsp; &nbsp; tabname char(32), <br>
&gt; &nbsp; &nbsp; colname char(32), <br>
&gt; &nbsp; &nbsp; extowner char(32), <br>
&gt; &nbsp; &nbsp; priority smallint, <br>
&gt; &nbsp; &nbsp; typeface char(64), <br>
&gt; &nbsp; &nbsp; fontsize smallint, <br>
&gt; &nbsp; &nbsp; fontstyle smallint, <br>
&gt; &nbsp; &nbsp; fontcolor integer, <br>
&gt; &nbsp; &nbsp; aidfa char(30), <br>
&gt; &nbsp; &nbsp; formatmask char(256), <br>
&gt; &nbsp; &nbsp; format4gl char(128), <br>
&gt; &nbsp; &nbsp; align char(1), <br>
&gt; &nbsp; &nbsp; case char(1), <br>
&gt; &nbsp; &nbsp; ruletype char(1), <br>
&gt; &nbsp; &nbsp; checktext char(256) <br>
&gt; &nbsp; ) &nbsp;extent size 16 next size 16 lock mode row; <br>
&gt; revoke all on &quot;auth&quot;.syscolformats from &quot;public&quo=
t;; <br>
&gt; <br>
&gt; *** prepare unldobj <br>
&gt; 201 - A syntax error has occurred. <br>
&gt; ------------------------------------------------------------------=
------------<br>
&gt; &nbsp;<br>
&gt; dbexport by:<br>
&gt; <br>
&gt; dbexport -d &lt;database name&gt; -ss <br>
&gt; <br>
&gt; - There is no row in this table (syscolformats).<br>
&gt; - Last night onchecks did not report any thing unusual.<br>
&gt; &nbsp; &nbsp;<br>
&gt; Question:<br>
&gt; <br>
&gt; 1. Root cause of this error and can it be prevented ?<br>
<br>
I have reproduced your problem by creating a test database and creating=
<br>
this table in it. The problem is because you have a column called 'case=
' <br>
which appears to be a reserved word. There is a bug in dbexport where i=
f <br>
there is a column name that is a reserved word it will fail like this. =
A <br>
favourite of mine is 'ref' - if you have a column of this name it will =
<br>
fail as well.<br>
<br>
I don't think I have raised this bug with technical support as I can <b=
r>
work around it (see below) but if anyone is listening and would like to=
<br>
fix it, then it's easy to reproduce and I would be grateful.<br>
<br>
&gt; 2. Is it safe to drop this system table ? <br>
<br>
Is this a system table? I know its name starts with 'sys' but it doesn'=
t <br>
exist in any database I have. Can anyone else verify this?<br>
<br>
&gt; 3. If yes, should it be dropped first and continue dbexport; recre=
ate it after<br>
&gt; &nbsp; &nbsp;dbexport is over &nbsp;?<br>
&gt; &nbsp; &nbsp;OR <br>
&gt; &nbsp; &nbsp;Drop and recreate the table and then start dbexport ?=
<br>
<br>
Rename the column case to case1 as follows, provided you are sure this =
<br>
is NOT a system table - do not take my word for it:<br>
rename column syscolformats.case to case1;<br>
Do the dbexport.<br>
Rename it back using a similar SQL statement:<br>
rename column syscolformats.case1 to case;<br>
Edit the dbexport unload file and change the column name back to what i=
t <br>
was. Dbimport has no problems with reserved words.<br>
<br>
Ben.<br>
</tt><br>
</body></html>=


--1__=09BBE512DFF2022A8f9e8a93df938690918c09BBE512DF F2022A--


--0__=09BBE512DFF2022A8f9e8a93df938690918c09BBE512DF F2022A
Content-type: image/gif;
name="graycol.gif"
Content-Disposition: inline; filename="graycol.gif"
Content-ID: <10__=09BBE512DFF2022A8f9e8a93df938@us.ibm.com>
Content-transfer-encoding: base64

R0lGODlhEAAQAKECAMzMzAAAAP///wAAACH5BAEAAAIALAAAAAAQABAAAAIXlI+py+0PopwxUbpu
ZRfKZ2zgSJbmSRYAIf4fT3B0aW1pemVkIGJ5IFVsZWFkIFNtYX J0U2F2ZXIhAAA7

--0__=09BBE512DFF2022A8f9e8a93df938690918c09BBE512DF F2022A
Content-type: image/gif;
name="pic06452.gif"
Content-Disposition: inline; filename="pic06452.gif"
Content-ID: <20__=09BBE512DFF2022A8f9e8a93df938@us.ibm.com>
Content-transfer-encoding: base64

R0lGODlhWABDALP/AAAAAK04Qf79/o+Gm7WuwlNObwoJFCsoSMDAwGFsmIuezf///wAAAAAAAAAA
AAAAACH5BAEAAAgALAAAAABYAEMAQAT/EMlJq704682770RiFMRinqggEUNSHIchG0BCfHhOjAuh
EDeUqTASLCbBhQrhG7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WgICTxiiz0f5dBKquXF6k4senwEhYG nKEFJeGrxUZy8dB8gmAXI/sPvH
ESfCwVt5hTgYiqQqtdRNHQIU1PJ33ZqmzgE90OwLaoJcnMop1W iMmgkPHQRIrwgFuNV90A3doNKT
mrKIN07AnGcI9BQjhCBN4RfA1qIZnMqorJCogKfGQnxSCDilTV IA0yl5ciTovgLuBDKFUDE9aQcw
9SA+rjSNf9/M1gxrj6VwDTS0IUSElMzBfsj0NFXR2kwsV1A5IF1grLgLL/r1R40BZEnuBWgmQEyb
jqRwSAt6bqMCOFkvKFN2GPPkUzIm/SCF8z8pVzpbjVnMsy0vOr1hw3SaSRUhpY09v0z0J1FnwzPl
fmh+xl4WtR0zGu24I4KbMQm3lnVu2oNWxI9W/lcyzA+mCKF4DBikxb/+UWtOGRiFP8qEwAayIgIA
Ow==

--0__=09BBE512DFF2022A8f9e8a93df938690918c09BBE512DF F2022A
Content-type: image/gif;
name="ecblank.gif"
Content-Disposition: inline; filename="ecblank.gif"
Content-ID: <30__=09BBE512DFF2022A8f9e8a93df938@us.ibm.com>
Content-transfer-encoding: base64

R0lGODlhEAABAIAAAAAAAP///yH5BAEAAAEALAAAAAAQAAEAAAIEjI8ZBQA7

--0__=09BBE512DFF2022A8f9e8a93df938690918c09BBE512DF F2022A--

sending to informix-list
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 10:27 AM.


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