Join IIUG
 for   
 

Informix News
18 Nov 13 - ZDNet - Top 20 mobile skills in demand... Read
09 Sep 13 - telecompaper - Shaspa and Tatung have shown a new smart home platform at Ifa in Berlin. Powered by the IBM Informix software... Read
06 Sep 13 - IBM data magazine - Mission Accomplished - Miami, Florida will be the backdrop for the 2014 IIUG Informix Conference... Read
01 Feb 13 - IBM Data Magazine - Are your database backups safe? Lester Knutsen (IBM Champion) writes about database back up safety using "archecker"... Read
14 Nov 12 - IBM - IBM's Big Data For Smart Grid Goes Live In Texas... Read
3 Oct 12 - The Financial - IBM and TransWorks Collaborate to Help Louisiana-Pacific Corporation Achieve Supply Chain Efficiency... Read
28 Aug 12 - techCLOUD9 - Splunk kicks up a SaaS Storm... Read
10 Aug 12 - businessCLOUD9 - Is this the other half of Cloud monitoring?... Read
3 Aug 12 - IBM data management - Supercharging the data warehouse while keeping costs down IBM Informix Warehouse Accelerator (IWA) delivers superior performance for in-memory analytics processing... Read
2 Aug 12 - channelbiz - Oninit Group launches Pay Per Pulse cloud-based service... Read
28 May 12 - Bloor - David Norfolk on the recent Informix benchmark "pretty impressive results"... Read
23 May 12 - DBTA - Informix Genero: A Way to Modernize Informix 4GL Applications... Read
9 Apr 12 - Mastering Data Management - Upping the Informix Ante: Advanced Data Tools... Read
22 Mar 12 - developerWorks - Optimizing Informix database access... Read
14 Mar 12 - BernieSpang.com - International Informix User Group set to meet in San Diego... Read
1 Mar 12 - IBM Data Management - IIUG Heads West for 2012 - Get ready for sun and sand in San Diego... Read
1 Mar 12 - IBM Data Management - Running Informix on Solid-State Drives.Speed Up Database Access... Read
26 Feb 12 - BernieSpan.com - Better results, lower cost for a broad set of new IBM clients and partners... Read
24 Feb 12 - developerWorks - Informix Warehouse Accelerator: Continuous Acceleration during Data Refresh... Read
6 Feb 12 - PRLOG - Informix port delivers unlimited database scalability for popular SaaS application ... Read
2 Feb 12 - developerWorks - Loading data with the IBM Informix TimeSeries Plug-in for Data Studio... Read
1 Feb 12 - developerWorks - 100 Tech Tips, #47: Log-in to Fix Central... Read
13 Jan 12 - MC Press online - Informix Dynamic Server Entices New Users with Free Production Edition ... Read
11 Jan 12 - Computerworld - Ecologic Analytics and Landis+Gyr -- Suitors Decide to Tie the Knot... Read
9 Jan 12 - planetIDS.com - DNS impact on Informix / Impacto do DNS no Informix... Read
8 Sep 11 - TMCnet.com - IBM Offers Database Solution to Enable Smart Meter Data Capture... Read
1 Aug 11 - IBM Data Management Magazine - IIUG user view: Happy 10th anniversary to IBM and Informix... Read
8 Jul 11 - Database Trends and Applications - Managing Time Series Data with Informix... Read
31 May 11 - Smart Grid - The meter data management pitfall utilities are overlooking... Read
27 May 11 - IBM Data Management Magazine - IIUG user view: Big data, big time ( Series data, warehouse acceleration, and 4GLs )... Read
16 May 11 - Business Wire - HiT Software Announces DBMoto for Enterprise Integration, Adds Informix. Log-based Change Data Capture... Read
21 Mar 11 - Yahoo! Finance - IBM and Cable&Wireless Worldwide Announce UK Smart Energy Cloud... Read
14 Mar 11 - MarketWatch - Fuzzy Logix and IBM Unveil In-Database Analytics for IBM Informix... Read
11 Mar 11 - InvestorPlace - It's Time to Give IBM Props: How many tech stocks are up 53% since the dot-com boom?... Read
9 Mar 11 - DBTA - Database Administration and the Goal of Diminishing Downtime... Read
2 Feb 11 - DBTAs - Informix 11.7 Flexible Grid Provides a Different Way of Looking at Database Servers... Read
27 Jan 11 - exactsolutions - Exact to Add Informix Support to Database Replay, SQL Monitoring Solutions... Read
25 Jan 11 - PR Newswire - Bank of China in the UK Works With IBM to Become a Smarter, Greener Bank... Read
12 Oct 10 - Database Trends and Applications - Informix 11.7: The Beginning of the Next Decade of IBM Informix... Read
20 Sep 10 - planetIDS.com - ITG analyst paper: Cost/Benefit case for IBM Informix as compared to Microsoft SQL Server... Read
20 Jul 10 - IBM Announcements - IBM Informix Choice Edition V11.50 helps deploy low-cost scalable and reliable solutions for Apple Macintosh and Microsoft Windows... Read
20 Jul 10 - IBM Announcements - Software withdrawal: Elite Support for Informix Ultimate-C Edition... Read
24 May 10 - eWeek Europe - IBM Supplies Database Tech For EU Smart Grid... Read
23 May 10 - SiliconIndia - IBM's smart metering system allows wise use of energy... Read
21 May 10 - CNET - IBM to help people monitor energy use... Read
20 May 10 - ebiz - IBM Teams With Hildebrand To Bring Smart Metering To Homes Across Britain... Read
19 May 10 - The New Blog Times - Misurare il consumo energetico: DEHEMS è pronto... Read
19 May 10 - ZDNet - IBM software in your home? Pact enables five-city smart meter pilot in Europe... Read
17 March 10 - ZDNet (blog) David Morgenstern - TCO: New research finds Macs in the enterprise easier, cheaper to manage than... Read
17 March 2010 - Virtualization Review - ...key components of Big Blue's platform to the commercial cloud such as its WebSphere suite of application ser vers and its DB2 and Informix databases... Read
10 February 2010 - The Wall Street Journal - International Business Machines is expanding an initiative to win over students and professors on its products. How do they lure the college crowd?... Read


End of Support Dates

IIUG on Facebook IIUG on Twitter

[ View Thread ] [ Post Response ] [ Return to Index ] [ Read Prev Msg ] [ Read Next Msg ]

IDS Forum

Re: sh.addShard

Posted By: FRANK
Date: Monday, 23 March 2015, at 4:26 p.m.

In Response To: Re: sh.addShard (ERIKA VON BARGEN)

HI, Erika,

Thanks for the info.

This error was from mongo shell,
-310 Table table-name already exists in database.

This two errors were from jsonlistener log,
-212 Cannot add index.
-130 ISAM error: no such dbspace.

The above three errors do not make any sense to me.

The first error was telling table already exists, NOT true.
The second and third error said no such dbspace. What dbspace did it
want ?

I attached the configuration about SB spaces, also onstat -d ( you can
have a check what else needed).
The SQL who complained is in the log of jsonlistener ( see log)

Thanks
Frank

==========================
(1) mongo output

mongos> db.createCollection("my_collection_4");
{

"code" : null,

"ok" : 0,

"errmsg" : "Unable to create table 'my_collection_4' for namespace
'noaa.my_collection_4' | Table (informix.my_collection_4) already exists in
database. (SQL Code: -310, SQL State: S0001)"
}
mongos>

(2) SB spaces configurations

SBSPACENAME dwsbdata00
SYSSBSPACENAME dwsbdata00
CDR_QDATA_SBSPACE ifx_qdatasbspace2

(3) output of onstat -d

[informix@maggie json]$ onstat -d
IBM Informix Dynamic Server Version 12.10.FC4W1XU -- On-Line -- Up 00:11:17
-- 5946620 Kbytes
Dbspaces
address number flags fchunk nchunks pgsize flags
owner name
4d416028 1 0x70001 1 1 2048 N BA
informix rootdbs
4e9aa7c8 2 0x70001 2 1 2048 N BA
informix dwphylog
4e9aa9f8 3 0x60001 3 1 2048 N BA
informix dwlog1
4e9aac28 4 0x60001 4 1 2048 N BA
informix dwlog2
4e9ab028 5 0x60001 5 1 2048 N BA
informix dwdata00
4e9ab258 6 0x68001 6 1 2048 N SBA
informix dwsbdata00
4e9ab488 7 0x68001 7 1 2048 N SBA
informix ifx_qdatasbspace1
4e9ab6b8 8 0x68001 8 1 2048 N SBA
informix ifx_qdatasbspace2
4e9ab8e8 9 0x60001 9 1 2048 N BA
informix ifx_cdrdbs1
4e9abb18 10 0x42001 10 1 2048 N TBA
informix dwtemp1
4e9abd48 11 0x42001 11 1 2048 N TBA
informix dwtemp2
4e9ad028 12 0x42001 12 1 2048 N TBA
informix dwtemp3
12 active, 2047 maximum
Chunks
address chunk/dbs offset size free bpages
flags pathname
4d416258 1 1 0 950000 928159
PO-B-- /usr/informix/dev-links/nsofopsdw/dwroot_ops
4e9ad258 2 2 0 2000000 999947
PO-B-- /usr/informix/dev-links/nsofopsdw/dwphylog_ops
4e9ae028 3 3 0 5000000 249947
PO-B-- /usr/informix/dev-links/nsofopsdw/dwlog1_ops
4e9af028 4 4 0 5000000 249947
PO-B-- /usr/informix/dev-links/nsofopsdw/dwlog2_ops
4e9b0028 5 5 0 5000000 4995965
PO-B-- /usr/informix/dev-links/nsofopsdw/dwdata00_ops
4e9b1028 6 6 0 5000000 4663292 4663405
POSB-- /usr/informix/dev-links/nsofopsdw/dwsbdata00_ops

Metadata 336542 250429 336542
4e9b2028 7 7 0 7124992 6645376 6645376
POSB-- /dbbackup/dbs-link/jsondb/jsondb1

Metadata 479563 356854 479563
4e9b3028 8 8 0 7124992 6645375 6645376
POSB-- /dbbackup/dbs-link/jsondb/nsofopsjson_tcp_ifx_qdatasbspace2_p_1

Metadata 479563 356854 479563
4e9b4028 9 9 0 102400 96597
PO-BE- /dbbackup/dbs-link/jsondb/nsofopsjson_tcp_ifx_cdrdbs1_p_1
4e9b5028 10 10 0 3000000 2999947
PO-B-- /usr/informix/dev-links/nsofopsdw/dwtemp1_ops
4e9b6028 11 11 0 3000000 2999947
PO-B-- /usr/informix/dev-links/nsofopsdw/dwtemp2_ops
4e9b7028 12 12 0 3000000 2999947
PO-B-- /usr/informix/dev-links/nsofopsdw/dwtemp3_ops
12 active, 32766 maximum
NOTE: The values in the "size" and "free" columns for DBspace chunks are

displayed in terms of "pgsize" of the DBspace to which they belong.

Expanded chunk capacity mode: always

(4) log of Jsonlistener

[informix@maggie json]$ tail -f jsonlisten.log
2015-03-23 16:53:42 [JsonListener-1] INFO
com.ibm.nosql.informix.server.mongo.MongoListener - JSON server listening
on port: 9170, 0.0.0.0/0.0.0.0
2015-03-23 16:54:10 [JsonListener-1] INFO
com.ibm.nosql.informix.server.mongo.MongoListener - connection accepted
from /127.0.0.1:48264
2015-03-23 16:54:10 [JsonListener-1-thread-1] INFO
com.ibm.nosql.informix.server.mongo.MongoListenerMessageHandler -
connection accepted from: 127.0.0.1:48264 , sessionNumer: 1 ,
listenerNumber: 8
2015-03-23 16:55:45 [JsonListener-1-thread-1] ERROR Session-1 - SQLCODE:
-212 Cannot add index.
2015-03-23 16:55:45 [JsonListener-1-thread-1] ERROR Session-1 - Unable to
create index _id_ for namespace noaa.my_collection_4 on table
my_collection_4 with specification { "v" : 1 , "key" : { "_id" : [ 1 ,
"$string" ] } , "ns" : "noaa.my_collection_4" , "name" : "_id_" , "unique"
: true , "index" : "my_collection_4__id_" } | Cannot add index. (SQL Code:
-212, SQL State: IX000) | ISAM error: no such DBspace (SQL Code: -130, SQL
State: IX000)
java.sql.SQLException: Cannot add index.

at com.informix.util.IfxErrMsg.getSQLException(IfxErrMsg.java:408)

at com.informix.jdbc.IfxSqli.addException(IfxSqli.java:3132)

at com.informix.jdbc.IfxSqli.receiveError(IfxSqli.java:3412)

at com.informix.jdbc.IfxSqli.dispatchMsg(IfxSqli.java:2325)

at com.informix.jdbc.IfxSqli.receiveMessage(IfxSqli.java:2250)

at com.informix.jdbc.IfxSqli.sendStatementExecute(IfxSqli.java:1321)

at com.informix.jdbc.IfxSqli.executeExecute(IfxSqli.java:2180)

at com.informix.jdbc.IfxSqli.executeExecute(IfxSqli.java:2133)

at
com.informix.jdbc.IfxResultSet.executeExecute(IfxResultSet.java:363)

at
com.informix.jdbc.IfxStatement.executeImpl(IfxStatement.java:1144)

at
com.informix.jdbc.IfxStatement.executeImpl(IfxStatement.java:1120)

at com.informix.jdbc.IfxStatement.executeBody(IfxStatement.java:866)

at com.informix.jdbc.IfxStatement.execute(IfxStatement.java:784)

at
com.ibm.nosql.informix.internal.InformixCollectionUtils.createIndex(InformixCollectionUtils.java:1306)

at
com.ibm.nosql.informix.internal.InformixCollectionUtils.createIndexOnIdField(InformixCollectionUtils.java:1173)

at
com.ibm.nosql.informix.internal.InformixCollectionUtils.createCollection(InformixCollectionUtils.java:153)

at
com.ibm.nosql.informix.internal.InformixCollectionUtils.createCollection(InformixCollectionUtils.java:107)

at
com.ibm.nosql.informix.internal.command.administration.CreateCommand.process(CreateCommand.java:39)

at
com.ibm.nosql.informix.internal.command.CommandRegistry.process(CommandRegistry.java:214)

at
com.ibm.nosql.informix.internal.request.InformixRequestHandler.processCommand(InformixRequestHandler.java:498)

at
com.ibm.nosql.informix.internal.request.InformixRequestHandler.processQuery(InformixRequestHandler.java:478)

at
com.ibm.nosql.informix.internal.request.QueryRequest.process(QueryRequest.java:250)

at
com.ibm.nosql.informix.server.mongo.MongoListenerMessageHandler.handleMessage(MongoListenerMessageHandler.java:305)

at
com.ibm.nosql.informix.server.mongo.MongoListenerMessageHandler.run(MongoListenerMessageHandler.java:128)

at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

at java.lang.Thread.run(Thread.java:744)
Caused by: java.sql.SQLException: ISAM error: no such DBspace

at com.informix.util.IfxErrMsg.getSQLException(IfxErrMsg.java:408)

at com.informix.jdbc.IfxSqli.receiveError(IfxSqli.java:3417)

... 24 more
2015-03-23 16:55:45 [JsonListener-1-thread-1] ERROR Session-1 - SQLCODE:
-212 Cannot add index.
2015-03-23 16:55:45 [JsonListener-1-thread-1] ERROR Session-1 - Unable to
create table 'my_collection_4' for namespace 'noaa.my_collection_4'
java.sql.SQLException: Table (informix.my_collection_4) already exists in
database.

at com.informix.jdbc.IfxSqli.addException(IfxSqli.java:3130)

at com.informix.jdbc.IfxSqli.receiveError(IfxSqli.java:3412)

at com.informix.jdbc.IfxSqli.dispatchMsg(IfxSqli.java:2325)

at com.informix.jdbc.IfxSqli.receiveMessage(IfxSqli.java:2250)

at com.informix.jdbc.IfxSqli.sendStatementExecute(IfxSqli.java:1321)

at com.informix.jdbc.IfxSqli.executeExecute(IfxSqli.java:2180)

at com.informix.jdbc.IfxSqli.executeExecute(IfxSqli.java:2133)

at
com.informix.jdbc.IfxResultSet.executeExecute(IfxResultSet.java:363)

at
com.informix.jdbc.IfxStatement.executeImpl(IfxStatement.java:1144)

at
com.informix.jdbc.IfxStatement.executeImpl(IfxStatement.java:1120)

at com.informix.jdbc.IfxStatement.executeBody(IfxStatement.java:866)

at com.informix.jdbc.IfxStatement.execute(IfxStatement.java:784)

at
com.ibm.nosql.informix.internal.InformixCollectionUtils.createTableForCollection(InformixCollectionUtils.java:531)

at
com.ibm.nosql.informix.internal.InformixCollectionUtils.createTableForCollection(InformixCollectionUtils.java:308)

at
com.ibm.nosql.informix.internal.InformixCollectionUtils.createCollection(InformixCollectionUtils.java:134)

at
com.ibm.nosql.informix.internal.InformixCollectionUtils.createCollection(InformixCollectionUtils.java:113)

at
com.ibm.nosql.informix.internal.command.administration.CreateCommand.process(CreateCommand.java:39)

at
com.ibm.nosql.informix.internal.command.CommandRegistry.process(CommandRegistry.java:214)

at
com.ibm.nosql.informix.internal.request.InformixRequestHandler.processCommand(InformixRequestHandler.java:498)

at
com.ibm.nosql.informix.internal.request.InformixRequestHandler.processQuery(InformixRequestHandler.java:478)

at
com.ibm.nosql.informix.internal.request.QueryRequest.process(QueryRequest.java:250)

at
com.ibm.nosql.informix.server.mongo.MongoListenerMessageHandler.handleMessage(MongoListenerMessageHandler.java:305)

at
com.ibm.nosql.informix.server.mongo.MongoListenerMessageHandler.run(MongoListenerMessageHandler.java:128)

at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

at java.lang.Thread.run(Thread.java:744)
Caused by: java.sql.SQLException

at com.informix.util.IfxErrMsg.getSQLException(IfxErrMsg.java:408)

at com.informix.jdbc.IfxSqli.receiveError(IfxSqli.java:3417)

... 24 more
2015-03-23 16:55:45 [JsonListener-1-thread-1] ERROR Session-1 - Error
creating collection
com.ibm.nosql.informix.json.api.MongoException: Unable to create table
'my_collection_4' for namespace 'noaa.my_collection_4'

at
com.ibm.nosql.informix.internal.InformixCollectionUtils.createTableForCollection(InformixCollectionUtils.java:547)

at
com.ibm.nosql.informix.internal.InformixCollectionUtils.createTableForCollection(InformixCollectionUtils.java:308)

at
com.ibm.nosql.informix.internal.InformixCollectionUtils.createCollection(InformixCollectionUtils.java:134)

at
com.ibm.nosql.informix.internal.InformixCollectionUtils.createCollection(InformixCollectionUtils.java:113)

at
com.ibm.nosql.informix.internal.command.administration.CreateCommand.process(CreateCommand.java:39)

at
com.ibm.nosql.informix.internal.command.CommandRegistry.process(CommandRegistry.java:214)

at
com.ibm.nosql.informix.internal.request.InformixRequestHandler.processCommand(InformixRequestHandler.java:498)

at
com.ibm.nosql.informix.internal.request.InformixRequestHandler.processQuery(InformixRequestHandler.java:478)

at
com.ibm.nosql.informix.internal.request.QueryRequest.process(QueryRequest.java:250)

at
com.ibm.nosql.informix.server.mongo.MongoListenerMessageHandler.handleMessage(MongoListenerMessageHandler.java:305)

at
com.ibm.nosql.informix.server.mongo.MongoListenerMessageHandler.run(MongoListenerMessageHandler.java:128)

at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

at java.lang.Thread.run(Thread.java:744)
Caused by: java.sql.SQLException: Table (informix.my_collection_4) already
exists in database.

at com.informix.jdbc.IfxSqli.addException(IfxSqli.java:3130)

at com.informix.jdbc.IfxSqli.receiveError(IfxSqli.java:3412)

at com.informix.jdbc.IfxSqli.dispatchMsg(IfxSqli.java:2325)

at com.informix.jdbc.IfxSqli.receiveMessage(IfxSqli.java:2250)

at com.informix.jdbc.IfxSqli.sendStatementExecute(IfxSqli.java:1321)

at com.informix.jdbc.IfxSqli.executeExecute(IfxSqli.java:2180)

at com.informix.jdbc.IfxSqli.executeExecute(IfxSqli.java:2133)

at
com.informix.jdbc.IfxResultSet.executeExecute(IfxResultSet.java:363)

at
com.informix.jdbc.IfxStatement.executeImpl(IfxStatement.java:1144)

at
com.informix.jdbc.IfxStatement.executeImpl(IfxStatement.java:1120)

at com.informix.jdbc.IfxStatement.executeBody(IfxStatement.java:866)

at com.informix.jdbc.IfxStatement.execute(IfxStatement.java:784)

at
com.ibm.nosql.informix.internal.InformixCollectionUtils.createTableForCollection(InformixCollectionUtils.java:531)

... 13 more
Caused by: java.sql.SQLException

at com.informix.util.IfxErrMsg.getSQLException(IfxErrMsg.java:408)

at com.informix.jdbc.IfxSqli.receiveError(IfxSqli.java:3417)

... 24 more

On Fri, Mar 20, 2015 at 6:12 PM, ERIKA VON BARGEN <vonbarg@us.ibm.com>
wrote:

> When you create a collection, a unique index on the _id field is also
> automatically created. It seems that your collection table was created
> successfully but the index creation failed. You might want to check what
> your
> default sbspace is set to. Otherwise, if you restart the listener with
> -loglevel debug, it will also print out the actual SQL statement to the
> listener log. That should tell you where it is trying create the index.
>
> Now technically, having a unique index on the _id field is not required in
> Informix. The listener does it to be Mongo compatible. So if you don't
> really
> care about that index, you don't have to recreate it. However, you should
> still resolve the underlying error because otherwise you'll run into it
> again.
>
> Thanks,
> Erika
>
>
>
> *******************************************************************************
> Forum Note: Use "Reply" to post a response in the discussion forum.
>
>

--001a1146fe62ef6eaa0511f7d1d0

Messages In This Thread

[ View Thread ] [ Post Response ] [ Return to Index ] [ Read Prev Msg ] [ Read Next Msg ]

IDS Forum is maintained by Administrator with WebBBS 5.12.