Gentian Hila
2013-09-19 13:36:48 UTC
I am running archecker with IDS 11.50 to restore a table under schema isys.
Backup is done with ontape -s L 0.
When run as root - the scan works but it does not find the table. No idea
what might be wrong. I know the table is there.
We have only one dbspace that is assigned to data - called datadbs.
However, when I try to run archecker under isys user ( the user that owns
the database - a name that is the same as the schema) it simply bombs with
Unable to initialize resources but I think all the permissions look fine to
me.
Below is the schema file as well. Any suggestion is appreaciated very much.
Genti
RUN AS root USER
[***@dbserver2 ~]# archecker -tdvs -X -f /scratch/tablecmd/
cust_shp_slmn_15.cm
d
IBM Informix Dynamic Server Version 11.50.FC6WE
Program Name: archecker
Version: 8.0
Released: 2009-12-15 22:08:23
CSDK: IBM Informix CSDK Version 3.50
ESQL: IBM Informix-ESQL Version 3.50.FC4
Compiled: 12/15/09 22:08 on Linux 2.6.9-34.ELsmp #1 SMP Fri Feb 24
16:56:28 EST 2006
AC_STORAGE /tmp
AC_MSGPATH /tmp/ac_msg.log
AC_VERBOSE on
AC_TAPEDEV /scratch/backup/archive.info
AC_TAPEBLOCK 1024 KB
AC_LTAPEDEV /scratch/backup/logical.info
AC_LTAPEBLOCK 1024 KB
Dropping old log control tables
Restore only physical image of archive
Target table [cust_shp_slmn_15] already created
Extracting table prod_8_d:cust_shp_slmn into prod_8_d:cust_shp_slmn_15
Please put in Phys Tape 1.
Type <return> or 0 to end:
Tape type: Archive Backup Tape
OnLine version: IBM Informix Dynamic Server Version 11.50.FC6WE
Archive date: Sun Sep 15 23:01:24 2013
Archive level: 0
Tape blocksize: 1048576
Tape size: 50000000
Tape number in series: 1
........................................
........................................
........................................
........................................
Scan PASSED
Control page checks PASSED
Table checks PASSED
Table extraction commands 1
Tables found on archive 0
Tables not located on archive 1
LOADED: prod_8_d:cust_shp_slmn_15 produced 0 rows
[***@dbserver2 ~]#
RUN AS isys USER
[***@dbserver2 root]$ archecker -tdvs -X -f
/scratch/tablecmd/cust_shp_slmn_15.cmd
IBM Informix Dynamic Server Version 11.50.FC6WE
Program Name: archecker
Version: 8.0
Released: 2009-12-15 22:08:23
CSDK: IBM Informix CSDK Version 3.50
ESQL: IBM Informix-ESQL Version 3.50.FC4
Compiled: 12/15/09 22:08 on Linux 2.6.9-34.ELsmp #1 SMP Fri Feb 24
16:56:28 EST 2006
AC_STORAGE /tmp
AC_MSGPATH /tmp/ac_msg.log
AC_VERBOSE on
AC_TAPEDEV /scratch/backup/archive.info
AC_TAPEBLOCK 1024 KB
AC_LTAPEDEV /scratch/backup/logical.info
AC_LTAPEBLOCK 1024 KB
Dropping old log control tables
CRITICAL ERROR: Unable to initialize resources
[***@dbserver2 root]$
Schema file
set commit to 10000;
set workspace to datadbs;
database prod_8_d;
-- source table
CREATE TABLE isys.cust_shp_slmn (
cust_num CHAR(10),
ship_num CHAR(10),
sa_item CHAR(4),
agent_num CHAR(10),
slmn_num CHAR(4),
curr_slmn_num CHAR(4),
changed DATE
) in datadbs;
CREATE TABLE isys.cust_shp_slmn_15 (
cust_num CHAR(10),
ship_num CHAR(10),
sa_item CHAR(4),
agent_num CHAR(10),
slmn_num CHAR(4),
curr_slmn_num CHAR(4),
changed DATE
) in datadbs;
INSERT INTO isys.cust_shp_slmn_15
SELECT cust_num, ship_num, sa_item,agent_num,slmn_num,curr_slmn_num,changed
from isys.ord;
restore to current with no log;
Backup is done with ontape -s L 0.
When run as root - the scan works but it does not find the table. No idea
what might be wrong. I know the table is there.
We have only one dbspace that is assigned to data - called datadbs.
However, when I try to run archecker under isys user ( the user that owns
the database - a name that is the same as the schema) it simply bombs with
Unable to initialize resources but I think all the permissions look fine to
me.
Below is the schema file as well. Any suggestion is appreaciated very much.
Genti
RUN AS root USER
[***@dbserver2 ~]# archecker -tdvs -X -f /scratch/tablecmd/
cust_shp_slmn_15.cm
d
IBM Informix Dynamic Server Version 11.50.FC6WE
Program Name: archecker
Version: 8.0
Released: 2009-12-15 22:08:23
CSDK: IBM Informix CSDK Version 3.50
ESQL: IBM Informix-ESQL Version 3.50.FC4
Compiled: 12/15/09 22:08 on Linux 2.6.9-34.ELsmp #1 SMP Fri Feb 24
16:56:28 EST 2006
AC_STORAGE /tmp
AC_MSGPATH /tmp/ac_msg.log
AC_VERBOSE on
AC_TAPEDEV /scratch/backup/archive.info
AC_TAPEBLOCK 1024 KB
AC_LTAPEDEV /scratch/backup/logical.info
AC_LTAPEBLOCK 1024 KB
Dropping old log control tables
Restore only physical image of archive
Target table [cust_shp_slmn_15] already created
Extracting table prod_8_d:cust_shp_slmn into prod_8_d:cust_shp_slmn_15
Please put in Phys Tape 1.
Type <return> or 0 to end:
Tape type: Archive Backup Tape
OnLine version: IBM Informix Dynamic Server Version 11.50.FC6WE
Archive date: Sun Sep 15 23:01:24 2013
Archive level: 0
Tape blocksize: 1048576
Tape size: 50000000
Tape number in series: 1
........................................
........................................
........................................
........................................
Scan PASSED
Control page checks PASSED
Table checks PASSED
Table extraction commands 1
Tables found on archive 0
Tables not located on archive 1
LOADED: prod_8_d:cust_shp_slmn_15 produced 0 rows
[***@dbserver2 ~]#
RUN AS isys USER
[***@dbserver2 root]$ archecker -tdvs -X -f
/scratch/tablecmd/cust_shp_slmn_15.cmd
IBM Informix Dynamic Server Version 11.50.FC6WE
Program Name: archecker
Version: 8.0
Released: 2009-12-15 22:08:23
CSDK: IBM Informix CSDK Version 3.50
ESQL: IBM Informix-ESQL Version 3.50.FC4
Compiled: 12/15/09 22:08 on Linux 2.6.9-34.ELsmp #1 SMP Fri Feb 24
16:56:28 EST 2006
AC_STORAGE /tmp
AC_MSGPATH /tmp/ac_msg.log
AC_VERBOSE on
AC_TAPEDEV /scratch/backup/archive.info
AC_TAPEBLOCK 1024 KB
AC_LTAPEDEV /scratch/backup/logical.info
AC_LTAPEBLOCK 1024 KB
Dropping old log control tables
CRITICAL ERROR: Unable to initialize resources
[***@dbserver2 root]$
Schema file
set commit to 10000;
set workspace to datadbs;
database prod_8_d;
-- source table
CREATE TABLE isys.cust_shp_slmn (
cust_num CHAR(10),
ship_num CHAR(10),
sa_item CHAR(4),
agent_num CHAR(10),
slmn_num CHAR(4),
curr_slmn_num CHAR(4),
changed DATE
) in datadbs;
CREATE TABLE isys.cust_shp_slmn_15 (
cust_num CHAR(10),
ship_num CHAR(10),
sa_item CHAR(4),
agent_num CHAR(10),
slmn_num CHAR(4),
curr_slmn_num CHAR(4),
changed DATE
) in datadbs;
INSERT INTO isys.cust_shp_slmn_15
SELECT cust_num, ship_num, sa_item,agent_num,slmn_num,curr_slmn_num,changed
from isys.ord;
restore to current with no log;