I did verify the schema and they match. I am using the same user/profile to restore that was used to create the archive... but Im wondering if I need to set the DBDATE environment variable? We have gotten this date error occasionally (very seldom) with some of our apps when the data is actually fine...
Im have cut back to trying to restore just one table... the new cmd file is below -
database crimelab;
create table reportpdf (
reportid INT not null,
reportdate DATETIME YEAR TO MINUTE,
createdby CHAR(8),
reportpdf BYTE
) in crimelab;
create table tlr_reportpdf (
reportid INT not null,
reportdate DATETIME YEAR TO MINUTE,
createdby CHAR(8),
reportpdf BYTE
);
Insert into tlr_reportpdf Select * from reportpdf;
RESTORE to '2010-01-11 13:00:00' ;
SET WORKSPACE to pstemp_1;
Thanks
Laurie
>>> "John Miller iii" <miller3@us.ibm.com> 1/13/2010 10:05 AM >>>
>From the partnum listed you should be able to tell which table is causing
the
problem. After you have identified the problem table please re-verify the
schema
for that table. I see a few of your tables have columns which are
datetimes,
double check the datetime qualifier on these tables, the order of all
columns
and the number of columns.
The error is being produced because archecker is taking the row off the
archive and converting column by column to an ascii value. This conversion
is failing for the datetime values.
John F. Miller III
STSM, Support Architect
miller3@us.ibm.com
503-578-5645
IBM Informix Dynamic Server (IDS)
ids-bounces@iiug.org wrote on 01/13/2010 08:54:07 AM:
> ok- I think I am getting closer...
>
> I added the SET WORKSPACE command.. that took care of the disk space
error.
>
> but... when I run with a filter, I get no rows returned, when I am sure
the
> rows should be in the archive...
> when I run with no filter I get this error:
> ERROR: -1263: A field in a datetime or interval value is incorrect or an
> illegal operation
> ERROR: Unable to convert page(14_799835) for partnum 14680137
> ERROR: "PUT CURSOR" failed
> It seems odd that I would get a date error on every record.. any clues?
>
> note: I have also switched from external tables to regular tables in the
> database.
>
> Any help would be appreciated.
>
> Thanks
> Laurie
>
> >>> "John Miller iii" <miller3@us.ibm.com> 1/12/2010 10:07 AM >>>
> One of the tables you are restoring contains a text blob, this
> requires some staging space which is in the form of a table.
> You can direct this table to a different dbspace or set of
> dbspaces using the SET command in your command file
>
> SET WORKSPACE TO dbspace1;
> or
> SET WORKSPACE TO dbspace1,dbspace2, dbspace3;
>
> John F. Miller III
> STSM, Support Architect
> miller3@us.ibm.com
> 503-578-5645
> IBM Informix Dynamic Server (IDS)
>
> ids-bounces@iiug.org wrote on 01/12/2010 08:25:38 AM:
>
> > [image removed]
> >
> > RE: Archecker Table Level restore [18655]:
> >
> > Plugge, Joe R.
> >
> > to:
> >
> > ids
> >
> > 01/12/2010 08:27 AM
> >
> > Sent by:
> >
> > ids-bounces@iiug.org
> >
> > Please respond to ids
> >
> > That is good news. I have not played around a lot with restores to
> external
> > tables, so was a little worried I may not be able to help you.
> >
> > -----Original Message-----
> > From: ids-bounces@iiug.org [mailto:ids-bounces@iiug.org] On Behalf Of
> Laurie
> > Gustin
> > Sent: Tuesday, January 12, 2010 10:21 AM
> > To: ids@iiug.org
> > Subject: RE: Archecker Table Level restore [18654]
> >
> > Hmmm - I found where you can't do a logical restore to external tables
-
> that
> > must have been causing the error. I didn't want to do a logical restore
> > because I want to filter the data, so I added WITH NO LOG to my restore
> > statement. IT is running now, we will see if it works.
> >
> > Thanks!
> > Laurie
> >
> > >>> "Plugge, Joe R." <JRPlugge@west.com> 1/12/2010 8:30 AM >>>
> > Laurie,
> >
> > Do you have the option (space in dbspace crimelab,or another dbspace)
to
> try
> > this restore to database table instead of external tables? Might be
worth
> a
> > shot to see if there is something amiss with the external table restore
> > functionality. Are you able to or have you in the past restored a table
> on
> > this instance using external table method?
> >
> > Joe
> >
> > -----Original Message-----
> > From: ids-bounces@iiug.org [mailto:ids-bounces@iiug.org] On Behalf Of
> Laurie
> > Gustin
> > Sent: Tuesday, January 12, 2010 9:25 AM
> > To: ids@iiug.org
> > Subject: RE: Archecker Table Level restore [18652]
> >
> > yep - my directories are fine... in fact, it creates the files for the
> > external tables...
> >
> > informix@ [/data2/crimelab]
> > $ ll
> > total 0
> > -rw-rw-r-- 1 informix informix 0 Jan 12 08:19 report_attachment.unl
> > -rw-rw-r-- 1 informix informix 0 Jan 12 08:19 reportpdf.unl
> > -rw-rw-r-- 1 informix informix 0 Jan 12 08:19 reportsubmission.unl
> > -rw-rw-r-- 1 informix informix 0 Jan 12 08:19 reporttext.unl
> >
> > It seems like it just cant create this lock table.. but I dont know
where
> it
> > is trying to create it ..
> >
> > ERROR: "Execute (name lock)" failed
> > ERROR: -261: Cannot create file for table (informix.acu_lock).
> > ERROR: -131: ISAM error: no free disk space
> > I
> >
> > >>> "Plugge, Joe R." <JRPlugge@west.com> 1/12/2010 8:12 AM >>>
> > Are you able to touch a file in that directory?
> >
> > /data2/crimelab/
> >
> > -----Original Message-----
> > From: ids-bounces@iiug.org [mailto:ids-bounces@iiug.org] On Behalf Of
> Laurie
> > Gustin
> > Sent: Tuesday, January 12, 2010 8:54 AM
> > To: ids@iiug.org
> > Subject: RE: Archecker Table Level restore [18650]
> >
> > The command file is listed below... I actually only want one row out of
> each
> > of these tables... but I have to go back beyond the last level 0
> > backup to get
> > it, so I didn't know how to do a physical only.
> >
> > also - Here is the archecker command I used... archecker -b -X -f
> > "/home/infrmx/archecker/ac_cl.cmd" -v -s -lphys
> >
> > ******ac_cl.cmd********
> >
> > database crimelab;
> >
> > create table report_attachment (
> >
> > ra_reportid INT not null,
> >
> > ra_attach_seq SERIAL not null,
> >
> > ra_attached_by CHAR(8),
> >
> > ra_attach_date DATETIME YEAR TO MINUTE,
> >
> > ra_filename CHAR(50),
> >
> > ra_filetype CHAR(4),
> >
> > ra_viewable CHAR(1) default 'Y',
> >
> > ra_attachment BYTE
> > ) in crimelab;
> > create external table tlr_report_attachment (
> >
> > ra_reportid INT not null,
> >
> > ra_attach_seq SERIAL not null,
> >
> > ra_attached_by CHAR(8),
> >
> > ra_attach_date DATETIME YEAR TO MINUTE,
> >
> > ra_filename CHAR(50),
> >
> > ra_filetype CHAR(4),
> >
> > ra_viewable CHAR(1) default 'Y',
> >
> > ra_attachment BYTE
> > )using ("/data2/crimelab/report_attachment.unl", delimited);
> >
> > create table 'informix'.reportsubmission (
> >
> > reportid INT not null,
> >
> > subno INT
> > ) in crimelab;
> > create external table 'informix'.tlr_reportsubmission (
> >
> > reportid INT not null,
> >
> > subno INT
> > )using ("/data2/crimelab/reportsubmission.unl", delimited);
> >
> > create table reporttext (
> >
> > caseindex INT not null,
> >
> > categorycd CHAR(3) not null,
> >
> > reportid SERIAL not null,
> >
> > reporttype CHAR(5),
> >
> > creatorid CHAR(8),
> >
> > createdate DATETIME YEAR TO MINUTE,
> >
> > cosignid CHAR(8),
> >
> > cosigndate DATETIME YEAR TO MINUTE,
> >
> > techreviewid CHAR(8),
> >
> > techreviewdate DATETIME YEAR TO MINUTE,
> >
> > reportstatus CHAR(10),
> >
> > reportblob TEXT
> > ) in crimelab;
> > create external table tlr_reporttext (
> >
> > caseindex INT not null,
> >
> > categorycd CHAR(3) not null,
> >
> > reportid SERIAL not null,
> >
> > reporttype CHAR(5),
> >
> > creatorid CHAR(8),
> >
> > createdate DATETIME YEAR TO MINUTE,
> >
> > cosignid CHAR(8),
> >
> > cosigndate DATETIME YEAR TO MINUTE,
> >
> > techreviewid CHAR(8),
> >
> > techreviewdate DATETIME YEAR TO MINUTE,
> >
> > reportstatus CHAR(10),
> >
> > reportblob TEXT
> > )using ("/data2/crimelab/reporttext.unl", delimited);
> >
> > create table reportpdf (
> >
> > reportid INT not null,
> >
> > reportdate DATETIME YEAR TO MINUTE,
> >
> > createdby CHAR(8),
> >
> > reportpdf BYTE
> > ) in crimelab;
> > create external table tlr_reportpdf (
> >
> > reportid INT not null,
> >
> > reportdate DATETIME YEAR TO MINUTE,
> >
> > createdby CHAR(8),
> >
> > reportpdf BYTE
> > ) using ("/data2/crimelab/reportpdf.unl", delimited);
> >
> > Insert into tlr_report_attachment Select * from report_attachment ;
> > Insert into tlr_reportsubmission Select * from reportsubmission ;
> > Insert into tlr_reporttext Select * from reporttext;
> > Insert into tlr_reportpdf Select * from reportpdf;
> >
> > restore to '2010-01-10 10:00:00';
> >
> > *****************
> >
> > Laurie Gustin
> > IT Programmer Analyst
> > Department of Public Safety
> > lgustin@utah.gov
> > 801-965-4410
> >
> > >>> "Plugge, Joe R." <JRPlugge@west.com> 1/12/2010 7:13 AM >>>
> > Laurie, what does your command file look like for the restore?
> >
> > -----Original Message-----
> > From: ids-bounces@iiug.org [mailto:ids-bounces@iiug.org] On Behalf Of
> Laurie
> > Gustin
> > Sent: Tuesday, January 12, 2010 8:10 AM
> > To: ids@iiug.org
> > Subject: Archecker Table Level restore [18648]
> >
> > Im trying to do a point in time table level restore with archecker..but
I
> get
> > a disk space error. I have checked to see where I may be out of space,
> but
> > can't see anything. Can someone tell me where it is trying to
createthis
> lock
> > table?
> >
> > Thanks
> > Laurie
> >
> > -----------------------------------------
> > STATUS: IBM Informix Dynamic Server Version 10.00.FC8
> > Program Name: archecker
> > Version: 8.0
> > Released: 2008-01-25 23:08:02
> > CSDK: IBM Informix CSDK Version 2.90
> > ESQL: IBM Informix-ESQL Version 2.90.FN431
> > Compiled: 01/25/08 23:09 on HP-UX B.11.11 U
> >
> > STATUS: Arguments [-b -X -f /home/infrmx/archecker/ac_cl.cmd -v -s
> -lphys]
> > STATUS: AC_STORAGE /data2/dbdump/tmp
> > STATUS: AC_MSGPATH /home/infrmx/logs/ac_msg.log
> > STATUS: AC_VERBOSE on
> > STATUS: AC_TAPEBLOCK 62 KB
> > STATUS: AC_IXBAR /home/informix/etc/ixbar.1
> > STATUS: AC_SCHEMA /home/infrmx/archecker/ac_cl.cmd
> > ERROR: "Execute (name lock)" failed
> > ERROR: -261: Cannot create file for table (informix.acu_lock).
> > ERROR: -131: ISAM error: no free disk space
> > ERROR: Unable to commit work
> > ERROR: Lock acquired failed rc=-1 pid=5757
> > ERROR: Failed to acquire lock
> > ERROR: Setup Handles
> > CRITICAL ERROR: Unable to initialize extraction
> > STATUS: archecker completed Physical Restore pid = 5757 exit code: 3
> > You have mail in /var/mail/informix
> >
> > Laurie Gustin
> > IT Programmer Analyst
> > Department of Public Safety
> > lgustin@utah.gov
> > 801-965-4410
> >
> >
> >
>
>
>
*******************************************************************************
>
> > Forum Note: Use "Reply" to post a response in the discussion forum.
> >
> >
> >
>
>
>
*******************************************************************************
>
> > Forum Note: Use "Reply" to post a response in the discussion forum.
> >
> >
> >
>
>
>
*******************************************************************************
>
> > Forum Note: Use "Reply" to post a response in the discussion forum.
> >
> >
> >
>
>
>
*******************************************************************************
>
> > Forum Note: Use "Reply" to post a response in the discussion forum.
> >
> >
> >
>
>
>
*******************************************************************************
>
> > Forum Note: Use "Reply" to post a response in the discussion forum.
> >
> >
> >
>
>
>
*******************************************************************************
>
> > Forum Note: Use "Reply" to post a response in the discussion forum.
> >
> >
> >
>
>
>
*******************************************************************************
>
> > Forum Note: Use "Reply" to post a response in the discussion forum.
> >
> >
> >
>
>
>
*******************************************************************************
>
> > Forum Note: Use "Reply" to post a response in the discussion forum.
> >
>
>
>
*******************************************************************************
> Forum Note: Use "Reply" to post a response in the discussion forum.
>
>
>
*******************************************************************************
> Forum Note: Use "Reply" to post a response in the discussion forum.
>
*******************************************************************************
Forum Note: Use "Reply" to post a response in the discussion forum.