Archecker Table Level restore
Posted in 2010
A user on IDS 10.00.FC8 (HP-UX) tried a point-in-time table-level restore with archecker into external (.unl) tables and hit "Execute (name lock) failed", -261 cannot create file for informix.acu_lock and -131 ISAM no free disk space, despite plenty of space and the .unl files being created. Joe Plugge suggested checking directory writability and trying a restore into real tables instead. The poster then found that logical restore to external tables isn't supported; adding WITH NO LOG to the restore statement let the job run, though the thread ends before confirming success.
Auto-generated by DrWatson from the posts below — may be imperfect; read the full thread.
Topics: Storage & Space Management, Error Codes & Troubleshooting, Connectivity: ESQL/C, 4GL & Embedded SQL, Platform-Specific Issues
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 create this 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
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 create this 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.
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 create this 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.
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 create this 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.
yep - my directories are fine... in fact, it creates the files for the
external tables...
informix@ [/data2/crimelab]
$ lltotal 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 create this 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.
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]
$ lltotal 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 create this 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.
****************************************************************
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]
$ lltotal 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 create this 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.
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]
$ lltotal 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 create this 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: a
A dbspace where sysutils database exists might be running out of space while archecker is trying to create the acu_lock table. - Nilesh - ids-bounces@iiug.org wrote on 01/12/2010 08:10:16 AM: > From: > > "Laurie Gustin" <lgustin@utah.gov> > > To: > > ids@iiug.org > > Date: > > 01/12/2010 08:11 AM > > Subject: > > Archecker Table Level restore [18648]: > > Sent by: > > ids-bounces@iiug.org > > 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. >
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 arch
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 reportsu
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,
> >
> >
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(5
Interesting... I restored a table with no dates, and the archecker process
reported the following
TIME: [2010-01-13 12:27:04] Found Partition reportsubmission in space crimelab
(0x00E00048).
STATUS: Scan PASSED
STATUS: Control page checks PASSED
STATUS: Table checks PASSED
STATUS: Table extraction commands 1
STATUS: Tables found on archive 1
STATUS: LOADED: crimelab:tlr_reportsubmission produced 64559 rows.
TIME: [2010-01-13 12:31:39] Physical Extraction Completed
.
.
.
STATUS: Recovery PIT(Mon Jan 11 13:00:00 2010) reached logid:111341
page:0x00CC0 offset:0x0018
STATUS: All logstreams have been staged by stager 13184
TIME: [2010-01-13 12:59:09] Scanner (13184) is done scanning logs
STATUS: Log stager elapsed processing time 00 H 27 M 29.250 S
TIME: [2010-01-13 12:59:09] Unload Completed
STATUS: archecker completed staging pid = 13184 exit code: 0
STATUS: SQL [SET INDEXES, TRIGGERS, CONSTRAINTS FOR tlr_reportsubmission
ENABLED]
ERROR: "EXECUTE IMMEDIATE" failed
ERROR: -530: Check constraint (n494_734) failed.
STATUS: Logically recovered crimelab:tlr_reportsubmission Inserted 10 Deleted
0 Updated 0
STATUS: Log applier processing time 00 H 27 M 29.602 S
TIME: [2010-01-13 12:59:09] Unload Completed
but - - all the rows were null...
Thanks in advance....
Laurie
>>> "Laurie Gustin" <lgustin@utah.gov> 1/13/2010 10:20 AM >>>
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
I think you should probably call this into support. Does your table have
any ER shadow
columns. Can you try changing the insert statement to the following:
Being that this table has blobs, it must be staged, but
the fact that it reported 64,599 rows inserted as
part of physical restore. Still lead me to believe
the row image on the archive and schema provided do not
match.
Insert into tlr_reportpdf(eportid, reportdate, createdby)
Select eportid, reportdate, createdby from reportpdf;
Support will probably ask you to turn on some additional diagnostic code
which
can be done by adding the following statement into the command file
SET DEBUG [HIGH | MEDIUM | LOW]
This output will be put into the current message log file.
Hope this helps,
John
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 12:31:11 PM:
> [image removed]
>
> RE: Archecker Table Level restore [18672]:
>
> Laurie Gustin
>
> to:
>
> ids
>
> 01/13/2010 12:32 PM
>
> Sent by:
>
> ids-bounces@iiug.org
>
> Please respond to ids
>
> Interesting... I restored a table with no dates, and the archecker
process
> reported the following
>
> TIME: [2010-01-13 12:27:04] Found Partition reportsubmission in
> space crimelab
> (0x00E00048).
> STATUS: Scan PASSED
> STATUS: Control page checks PASSED
> STATUS: Table checks PASSED
> STATUS: Table extraction commands 1
> STATUS: Tables found on archive 1
> STATUS: LOADED: crimelab:tlr_reportsubmission produced 64559 rows.
> TIME: [2010-01-13 12:31:39] Physical Extraction Completed
> ..
> ..
> ..
> STATUS: Recovery PIT(Mon Jan 11 13:00:00 2010) reached logid:111341
> page:0x00CC0 offset:0x0018
> STATUS: All logstreams have been staged by stager 13184
> TIME: [2010-01-13 12:59:09] Scanner (13184) is done scanning logs
> STATUS: Log stager elapsed processing time 00 H 27 M 29.250 S
> TIME: [2010-01-13 12:59:09] Unload Completed
> STATUS: archecker completed staging pid = 13184 exit code: 0
> STATUS: SQL [SET INDEXES, TRIGGERS, CONSTRAINTS FOR tlr_reportsubmission
> ENABLED]
> ERROR: "EXECUTE IMMEDIATE" failed
> ERROR: -530: Check constraint (n494_734) failed.
> STATUS: Logically recovered crimelab:tlr_reportsubmission Inserted 10
Deleted
> 0 Updated 0
> STATUS: Log applier processing time 00 H 27 M 29.602 S
> TIME: [2010-01-13 12:59:09] Unload Completed
>
> but - - all the rows were null...
>
> Thanks in advance....
>
> Laurie
>
> >>> "Laurie Gustin" <lgustin@utah.gov> 1/13/2010 10:20 AM >>>
> 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
> > >@