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: SCHAPI: Error -23197 Database locale infor....

Posted By: John Miller iii
Date: Wednesday, 21 October 2015, at 2:22 a.m.

In Response To: Re: SCHAPI: Error -23197 Database locale infor.... (Peter Lempochner)

Here is an example of how to create a sensor to unload all th= e user

defined table names in systables to an external table. Ple= ase run

this sql

as user informix and it should do everything. I u= sed a sensor as it

will

automatically create the external table.

=

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

DROP DATABASE IF EXISTS test=5Fdbs1;

CREATE DATABASE test=5Fdbs1 = WITH LOG;

create table tab1(c1 char(20));

create table tab2(c1 char(= 20));

DATABASE sysadmin;

DELETE FROM ph=5Ftask WHERE tk=5Fnam= e =3D "systables list";

INSERT INTO ph=5Ftask

(

tk=5Fname,

tk= =5Ftype,

tk=5Fgroup,

tk=5Fdescription,

tk=5Fdbs,

tk=5Fcreate,tk=5Fexecute,

tk=5Fstart=5Ftime,

tk=5Fstop=5Ftime,

tk=5Ffrequenc= y,

tk=5Fdelete

)

VALUES

(

"systables list",

"SENSOR",

= "PERFORMANCE",

"Create an external list of user table names",

"test= =5Fdbs1",

"create external table tablist ( name char(20) ) using ( dataf=

iles('DISK:/tmp/tab.dat'),format 'delimited', rejectfile

'/tmp/tab.rej' );"= ,

"insert into tablist select tabname from systables where tabid > 99=

",

NULL,

NULL,

INTERVAL ( 1 ) MINUTE TO MINUTE,

INTERVAL ( 1 ) = DAY TO DAY

);

John F. Miller III

STSM, Lead = ;Architect

[1]miller3@us.ibm.com<= br>503-747-1366

IBM Informix Dynamic Server (IDS)

[2]-----ids-bounces@iiug.org wrote: -----

>To: [3]ids@iiug.org

>Fro= m: "Peter Lempochner"

>Sent by: [4]ids-bounces@iiug.org

>Date: 10/20/2015 03= :59PM

>Subject: Re: SCHAPI: Error -23197 Database locale infor.... [= 35917]

>

>Hello,

>

>thanks for explanations to all= .

>

>I have tried some combinations without success :-(

&g= t;I`m sending info about my small test environment:

>---------------= -----------------

>dbschema -d db1

>

>DBSCHEMA Schema U= tility INFORMIX-SQL Version 11.70.UC3IE

>grant dba to "informix"; >

>{ TABLE "informix".abc row size =3D 80 number of columns =3D = 2

index size

>=3D 0 }

>create table "informix".abc

>

>(

>

>id serial not null ,

>

>c "informix".cl= ob

>

>);

>

>revoke all on "informix".abc from "pu= blic" as "informix";

>

>{ TABLE "informix".abc=5Fext row size = =3D 80 number of columns =3D

2 }

>create external table "informix".a= bc=5Fext

>

>(

>

>id serial,

>

>c "in= formix".clob

>

>)

>using

>

>(

>

= >datafiles

>

>(

>

>"DISK:/tmp/UNLOAD/abc.dat" =

>

>),

>

>format "delimited",

>

>reje= ctfile "/tmp/UNLOAD/abc.rej"

>

>);

>revoke all on "info= rmix".abc=5Fext from "public";

>

>grant select on "informix".a= bc to "public" as "informix";

>grant update on "informix".abc to "pu= blic" as "informix";

>grant insert on "informix".abc to "public" as = "informix";

>grant delete on "informix".abc to "public" as "informix= ";

>grant index on "informix".abc to "public" as "informix";

>= ;

>grant select on "informix".abc=5Fext to "public" as "informix";

>grant insert on "informix".abc=5Fext to "public" as "informix";

&= gt;

>create procedure "informix".abcunl ()

>insert into abc=5F= ext select * from abc;

>end procedure;

>

>grant execute= on procedure "informix".abcunl () to "public" as

>"informix";

&g= t;

>revoke usage on language SPL from public ;

>

>grant = usage on language SPL to public ;

>

>-------------------------=

>task in SYSADMIN database:

>-------------------------

&= gt;tk=5Fid 36

>tk=5Fname test

>tk=5Fdescription execute proce= dure abcunl();

>tk=5Ftype TASK

>tk=5Fsequence 379

>tk= =5Fresult=5Ftable

>tk=5Fcreate

>tk=5Fdbs db1

>tk=5Fexe= cute insert into abc=5Fext select * from abc

>tk=5Fdelete 0 01:00:00=

>tk=5Fstart=5Ftime 00:23:00

>tk=5Fstop=5Ftime

>tk=5Ff= requency 0 00:01:00

>tk=5Fnext=5Fexecution 2015-10-21 00:40:23

&= gt;tk=5Ftotal=5Fexecutio+ 372

>tk=5Ftotal=5Ftime 0,328075723364

= >tk=5Fmonday t

>tk=5Ftuesday t

>tk=5Fwednesday t

>t= k=5Fthursday t

>tk=5Ffriday t

>tk=5Fsaturday t

>tk=5Fs= unday t

>tk=5Fattributes 912

>tk=5Fgroup TABLES

>tk=5F= enable t

>tk=5Fpriority 0

>

>Result:

>----------= --------------

>00:39:10 SCHAPI: Started 2 dbWorker threads.

>= ;00:39:10 SCHAPI: [test 36-377] Error -206 The specified table

>(abc= =5Fext)

>is not in the database.

>

>00:39:10 SCHAPI: [t= est 36-377] Error -111 ISAM error: no record

>found.

>

>= ----------------------------------

>

>If I use tk=5Fexecute=3D= 'insert into db1:abc=5Fext select * from

db1:abc'

>the result is: >SCHAPI: [test 36-380] Error -23197 Database locale

information

>= ;mismatch.

>

>If I use tk=5Fexecute=3D'execute procedure abcun= l();'

>the result is :

>SCHAPI: [test 36-383] Error -674 Rout= ine (abcunl) can not be

>resolved.

>

>I am not able to s= ee what is wrong :-(

>

>D=C3=B2a 20.10.2015 o 20:57 Art Kagel = nap=C3=ADsal(a):

>> Does the task live in the db1 database or in = sysdmin? Usually

>problems

>> like this happen when you put= the procedure into sysadmin which

has

>a

>> different loca= le than the database that contains the table.

>>

>> Art=

>>

>> Art S. Kagel, President and Principal Consultant=

>> ASK Database Management

>> www.askdbmgt.com

>>

>&= gt; Blog: [5]http://informix-myview.blogspot.com/

>>

>> Disc= laimer: Please keep in mind that my own opinions are my own

>opinions=

>> and do not reflect on the IIUG, nor any other organization wi= th

>which I am

>> associated either explicitly, implicitly,= or by inference. Neither

>do

>> those opinions reflect tho= se of other individuals affiliated with

>any

>> entity with= which I am affiliated nor those of the entities

>themselves.

>= ;>

>> On Tue, Oct 20, 2015 at 1:33 PM, Peter Lempochner < <= br>>>

[6]peter.lempochner@dignitas.sk> wrote:

>>

>>&= gt; Hello,

>>>

>>> we are runnig on IDS 11.70.UC3= . I have table with CLOB - for

>example in

>>> database = db1 (COLLATE is sk=5FSK.912):

>>>

>>> create tabl= e abc ( id serial, c clob);

>>>

>>> There are som= e data in this table.

>>> I need to schedule custom task for p= eriodicaly unload data from

>this

>>> table to filesyste= m.

>>> So I have created external table like this:

>>= ;>

>>> CREATE EXTERNAL TABLE abc=5Fext SAMEAS abc

>&= gt;> USING (DATAFILES ("DISK:/tmp/UNLOAD/abc.dat"),REJECTFILE

>&g= t;> "/tmp/UNLOAD/abc.rej");

>>>

>>> When I run= following sql command:

>>> insert into db1:abc=5Ftest select = * from db1:abc;

>>> The result is expected: in /tmp/UNLOAD/abc= .dat are unloaded

data.

>>>

>>> When I create new= task (test) in scheduler with command :

>>> insert into db1:a= bc=5Ftest select * from db1:abc;

>>> I get this error in onlin= e:

>>> SCHAPI: [test 36-104] Error -23197 Database locale info= rmation

>mismatch.

>>> and no record are unloaded.

&= gt;>>

>>> Can you please help me with this issue?

&g= t;>> Thanks for your assistance.

>>>

>>> >>>

>>>

>>

>**********************=

***********************************************

>**********

>&= gt;> Forum Note: Use "Reply" to post a response in the discussion

>= ;forum.

>>>

>>>

>> --001a1140421ad4c2a2= 05228dd31d

>>

>>

>>

>*****************=

****************************************************

>**********

= >> Forum Note: Use "Reply" to post a response in the discussion

forum= .

>

>>

>>

>>

>> -----

>= > No virus found in this message.

>> Checked by AVG - [7]www.avg.com

>> Ver= sion: 2015.0.6172 / Virus Database: 4447/10855 - Release Date:

>10/20= /15

>>

>>

>

>

>*********************=

************************************************

>**********

>= Forum Note: Use "Reply" to post a response in the discussion forum.

&g= t;

>

>

References

1. 3D"mailto:miller3@us.ibm.com"

2. 3D"mailto:-----ids-bounces@iiug=

3. 3D"mailto:ids@iiug.org"

4. file://localhost/tmp/3D"mailt=

5. 3D"http://informix-myview.blogspot.co=/

6. 3D"mailto:peter.lempochner@dignitas=

7. 3D"http://www.avg.com"/

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.