creating table using smartblob - error 606
Posted in 2009
Topics: Storage & Space Management, Security, Permissions & Auditing
Running the following create statement I get this error:
606: Invalid blob space name.
162: ISAM err: BLOBspace does not exist.
create table cc_ent_pages
(
urowid serial not null ,
prowid integer not null ,
page_nbr smallint,
scan_date date,
full_image byte in smartblob,
image_type char(1)
) extent size 500 next size 100 lock mode row;
revoke all on cc_ent_pages from "public";
grant insert, delete, update, select on cc_ent_pages to "rms";
grant insert, delete, update, select on cc_ent_pages to "publica";
create unique index cc_ent_pages_idx1 on
cc_ent_pages (urowid) using btree in data_dbs1 ;
create index cc_ent_pages_idx2 on cc_ent_pages
(prowid,page_nbr) using btree in data_dbs1 ;
606: Invalid blob space name.
162: ISAM err: BLOBspace does not exist.
The blobspace does exist:
[informix@rmsdev]/opt/rms/src $ onstat -d update
IBM Informix Dynamic Server Version 9.40.FC5 -- On-Line -- Up 5 days 23:35:4
8 -- 194096 Kbytes
Dbspaces
address number flags fchunk nchunks flags owner name
c00000000aa18e80 1 0x70001 1 1 N B informix rootdbs
c00000000aa19c00 2 0x60001 2 1 N B informix data_db
s1
c00000000aa19d90 3 0x60001 3 1 N B informix data_db
s2
c00000000ba30030 4 0x60001 4 1 N B informix data_db
s3
c00000000ba301c0 5 0x60001 5 1 N B informix data_db
s4
c00000000ba30350 6 0x42001 6 1 N TB informix dbstemp
c00000000ba304e0 7 0x60001 7 1 N B informix recdbs
c00000000ba30670 8 0x68001 8 2 N SB informix smartbl
ob
c00000000ba30800 9 0x60011 9 4 N BB informix blobspa
ce
c00000000ba30990 10 0x60011 10 1 N BB informix vjb_blo
bs
10 active, 2047 maximum
Waiting for server to update BLOB chunk statistics...
Chunks
address chunk/dbs offset size free bpages flags pa
thname
c00000000aa19030 1 1 0 26000 3 PO-B /d
ev/vgln/raw_lv1
c00000000abcd460 2 2 0 512000 397338 PO-B /d
ev/vgln/raw_lv2
c00000000abcd600 3 3 0 512000 412443 PO-B /d
ev/vgln/raw_lv3
c00000000abcd7a0 4 4 0 512000 402158 PO-B /d
ev/vgln/raw_lv4
c00000000abcd940 5 5 0 512000 415205 PO-B /d
ev/vgln/raw_lv5
c00000000abcdae0 6 6 0 512000 511947 PO-B /d
ev/vgln/raw_lv6
c00000000abcdc80 7 7 0 25600 25547 PO-B /d
ev/vgln/raw_rcv
c00000000abcde20 8 8 0 256000 252430 252430 POSB /d
ev/vgln/raw_sbs
Metadata 3517 114 3517
c00000000aa19240 9 9 0 180000 0 7200 POBB /d
ev/vgln/raw_lv7
c00000000aa193e0 10 10 0 3072000 43661 122880 POBB /d
ev/vgln/raw_jb
c00000000aa19580 11 9 0 8704000 0 348160 POBB /d
ev/vgln/raw_lv30
c00000000aa19720 12 9 0 8704000 0 348160 POBB /d
ev/vgln/raw_lv31
c00000000aa198c0 13 9 0 8704000 271123 348160 POBB /d
ev/vgln/raw_lv32
c00000000aa19a60 14 8 0 512000 504987 504987 POSB /d
ev/vgln/raw_sbs_pdf
Metadata 7010 5677 7010
14 active, 32766 maximum
Expanded chunk capacity mode: always
Any suggestions would be greatly appreciated.
Hi,
You are trying to put a blob datatype into a smartblob space.
Either change your data type to 'blob' (a smart blob data type) or change
your 'IN' clause to reference 'blobspace' instead of 'smartblob'.
Regards
Mark
-----Original Message-----
From: ids-bounces@iiug.org [mailto:ids-bounces@iiug.org] On Behalf Of GLENN
MITCHELL
Sent: 13 May 2009 04:20 PM
To: ids@iiug.org
Subject: creating table using smartblob - error 606 [15736]
Running the following create statement I get this error:
606: Invalid blob space name.
162: ISAM err: BLOBspace does not exist.
create table cc_ent_pages
(
urowid serial not null ,
prowid integer not null ,
page_nbr smallint,
scan_date date,
full_image byte in smartblob,
image_type char(1)
) extent size 500 next size 100 lock mode row; revoke all on cc_ent_pages
from "public"; grant insert, delete, update, select on cc_ent_pages to
"rms"; grant insert, delete, update, select on cc_ent_pages to "publica";
create unique index cc_ent_pages_idx1 on
cc_ent_pages (urowid) using btree in data_dbs1 ; create index
cc_ent_pages_idx2 on cc_ent_pages
(prowid,page_nbr) using btree in data_dbs1 ;
606: Invalid blob space name.
162: ISAM err: BLOBspace does not exist.
The blobspace does exist:
[informix@rmsdev]/opt/rms/src $ onstat -d update
IBM Informix Dynamic Server Version 9.40.FC5 -- On-Line -- Up 5 days 23:35:4
8 -- 194096 Kbytes
Dbspaces
address number flags fchunk nchunks flags owner name c00000000aa18e80 1
0x70001 1 1 N B informix rootdbs c00000000aa19c00 2 0x60001 2 1 N B informix
data_db
s1
c00000000aa19d90 3 0x60001 3 1 N B informix data_db
s2
c00000000ba30030 4 0x60001 4 1 N B informix data_db
s3
c00000000ba301c0 5 0x60001 5 1 N B informix data_db
s4
c00000000ba30350 6 0x42001 6 1 N TB informix dbstemp
c00000000ba304e0 7 0x60001 7 1 N B informix recdbs
c00000000ba30670 8 0x68001 8 2 N SB informix smartblob
c00000000ba30800 9 0x60011 9 4 N BB informix blobspace
c00000000ba30990 10 0x60011 10 1 N BB informix vjb_blo bs 10 active, 2047
maximum
Waiting for server to update BLOB chunk statistics...
Chunks
address chunk/dbs offset size free bpages flags pa thname c00000000aa19030 1
1 0 26000 3 PO-B /d
ev/vgln/raw_lv1
c00000000abcd460 2 2 0 512000 397338 PO-B /d
ev/vgln/raw_lv2
c00000000abcd600 3 3 0 512000 412443 PO-B /d
ev/vgln/raw_lv3
c00000000abcd7a0 4 4 0 512000 402158 PO-B /d
ev/vgln/raw_lv4
c00000000abcd940 5 5 0 512000 415205 PO-B /d
ev/vgln/raw_lv5
c00000000abcdae0 6 6 0 512000 511947 PO-B /d
ev/vgln/raw_lv6
c00000000abcdc80 7 7 0 25600 25547 PO-B /d ev/vgln/raw_rcv c00000000abcde20
8 8 0 256000 252430 252430 POSB /d ev/vgln/raw_sbs
Metadata 3517 114 3517
c00000000aa19240 9 9 0 180000 0 7200 POBB /dev/vgln/raw_lv7
c00000000aa193e0 10 10 0 3072000 43661 122880 POBB /d ev/vgln/raw_jb
c00000000aa19580 11 9 0 8704000 0 348160 POBB /d ev/vgln/raw_lv30
c00000000aa19720 12 9 0 8704000 0 348160 POBB /d
ev/vgln/raw_lv31
c00000000aa198c0 13 9 0 8704000 271123 348160 POBB /d
ev/vgln/raw_lv32
c00000000aa19a60 14 8 0 512000 504987 504987 POSB /d ev/vgln/raw_sbs_pdf
Metadata 7010 5677 7010
14 active, 32766 maximum
Expanded chunk capacity mode: always
Any suggestions would be greatly appreciated.
****************************************************************************
***
Forum Note: Use "Reply" to post a response in the discussion forum.
==================
Please read our Email Disclaimer :
http://www.thefuelgroup.com/disclaimer.html
BYTE type columns are not smart blobs they are simple blobs. BLOB and CLOB
types are smart blobs.
The full_image column must be placed into a BLOBSPACE like your 'blobspace'
or 'vlb_blobs' blobspaces or change the type of the column to BLOB.
Art
Art S. Kagel
Oninit (www.oninit.com)
IIUG Board of Directors (art@iiug.org)
Disclaimer: Please keep in mind that my own opinions are my own opinions and
do not reflect on my employer, Oninit, the IIUG, nor any other organization
with which I am associated either explicitly or implicitly. Neither do
those opinions reflect those of other individuals affiliated with any entity
with which I am affiliated nor those of the entities themselves.
On Wed, May 13, 2009 at 10:20 AM, GLENN MITCHELL <
gmitchell@courts.state.va.us> wrote:
> Running the following create statement I get this error:
> 606: Invalid blob space name.>
> 162: ISAM err: BLOBspace does not exist.>
> create table cc_ent_pages
> (>
> urowid serial not null ,
>
> prowid integer not null ,
>
> page_nbr smallint,
>
> scan_date date,
>
> full_image byte in smartblob,
>
> image_type char(1)
> ) extent size 500 next size 100 lock mode row;
> revoke all on cc_ent_pages from "public";
> grant insert, delete, update, select on cc_ent_pages to "rms";
> grant insert, delete, update, select on cc_ent_pages to "publica";
> create unique index cc_ent_pages_idx1 on>
> cc_ent_pages (urowid) using btree in data_dbs1 ;
> create index cc_ent_pages_idx2 on cc_ent_pages>
> (prowid,page_nbr) using btree in data_dbs1 ;
>
> 606: Invalid blob space name.>
> 162: ISAM err: BLOBspace does not exist.>
> The blobspace does exist:
> [informix@rmsdev]/opt/rms/src $ onstat -d update
>
> IBM Informix Dynamic Server Version 9.40.FC5 -- On-Line -- Up 5 days
> 23:35:4
> 8 -- 194096 Kbytes>
> Dbspaces
> address number flags fchunk nchunks flags owner name
> c00000000aa18e80 1 0x70001 1 1 N B informix rootdbs
> c00000000aa19c00 2 0x60001 2 1 N B informix data_db
> s1
> c00000000aa19d90 3 0x60001 3 1 N B informix data_db
> s2
> c00000000ba30030 4 0x60001 4 1 N B informix data_db
> s3
> c00000000ba301c0 5 0x60001 5 1 N B informix data_db
> s4
> c00000000ba30350 6 0x42001 6 1 N TB informix dbstemp
> c00000000ba304e0 7 0x60001 7 1 N B informix recdbs
> c00000000ba30670 8 0x68001 8 2 N SB informix smartbl
> ob
> c00000000ba30800 9 0x60011 9 4 N BB informix blobspa
> ce
> c00000000ba30990 10 0x60011 10 1 N BB informix vjb_blo
> bs
> 10 active, 2047 maximum
>
> Waiting for server to update BLOB chunk statistics...
>
> Chunks
> address chunk/dbs offset size free bpages flags pa
> thname
> c00000000aa19030 1 1 0 26000 3 PO-B /d
> ev/vgln/raw_lv1
> c00000000abcd460 2 2 0 512000 397338 PO-B /d
> ev/vgln/raw_lv2
> c00000000abcd600 3 3 0 512000 412443 PO-B /d
> ev/vgln/raw_lv3
> c00000000abcd7a0 4 4 0 512000 402158 PO-B /d
> ev/vgln/raw_lv4
> c00000000abcd940 5 5 0 512000 415205 PO-B /d
> ev/vgln/raw_lv5
> c00000000abcdae0 6 6 0 512000 511947 PO-B /d
> ev/vgln/raw_lv6
> c00000000abcdc80 7 7 0 25600 25547 PO-B /d
> ev/vgln/raw_rcv
> c00000000abcde20 8 8 0 256000 252430 252430 POSB /d
> ev/vgln/raw_sbs
>
> Metadata 3517 114 3517
> c00000000aa19240 9 9 0 180000 0 7200 POBB /d
> ev/vgln/raw_lv7
> c00000000aa193e0 10 10 0 3072000 43661 122880 POBB /d
> ev/vgln/raw_jb
> c00000000aa19580 11 9 0 8704000 0 348160 POBB /d
> ev/vgln/raw_lv30
> c00000000aa19720 12 9 0 8704000 0 348160 POBB /d
> ev/vgln/raw_lv31
> c00000000aa198c0 13 9 0 8704000 271123 348160 POBB /d
> ev/vgln/raw_lv32
> c00000000aa19a60 14 8 0 512000 504987 504987 POSB /d
> ev/vgln/raw_sbs_pdf
>
> Metadata 7010 5677 7010
> 14 active, 32766 maximum
>
> Expanded chunk capacity mode: always
>
> Any suggestions would be greatly appreciated.
>
>
>
>
*******************************************************************************
> Forum Note: Use "Reply" to post a response in the discussion forum.
>
>
--001636c5b1c7992a820469cd3a5d
I need to remove the smartblob space that I created because I created
incorrectly. There is no data in the smartblob space but getting message about
metadata.
I'm using the following onspaces command to delete (unsuccessfully):
[informix@rmsdev]/home/informix $ onspaces -d smartblob -o 0 -p
/dev/vgln/raw_sbs_pdf
WARNING: Dropping a chunk.
Do you really want to continue? (y/n)y
Chunk not dropped.
Smart Large Objects: Metadata area in the chunk contains data.
Any suggestions would be greatly appreciated.
I found the command to delete the sbspace.
onspaces -d smartblob -f
Related threads
- IDS 10 table-level restore
- Informix Development Webinar December 11, 2007
- ontape -p/r with changed ROOTPATH
- Migrate from HP PA-RISC to HP ITANIUM by ontape