Quantcast
Channel: IIUG Forum: Linux-Informix Forum
Viewing all 90 articles
Browse latest View live

Linux Processor x Informix 11.5FC5WE

$
0
0
Good morning everyone.

I have a IDS 11.5FC5WE installed on Red Hat 6 Linux. I don't want to use
AFFINITY resources and I dont know how to avoid.

My VPCLASS ONCONFIG parameters

MULTIPROCESSOR 1
VPCLASS cpu,num=4,noage,aff=0
VP_MEMORY_CACHE_KB 0
SINGLE_CPU_VP 0

Linux commands output

[root@srvgbdb001 ~]# lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 120
On-line CPU(s) list: 0-119
Thread(s) per core: 2
Core(s) per socket: 15
Socket(s): 4
NUMA node(s): 4
Vendor ID: GenuineIntel
CPU family: 6
Model: 62
Stepping: 7
CPU MHz: 2499.974
BogoMIPS: 4999.28
Virtualization: VT-x
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 38400K
NUMA node0 CPU(s):
0,4,8,12,16,20,24,28,32,36,40,44,48,52,56,60,64,68,72,76,80,84,88,92,96,100,104,108,112,116
NUMA node1 CPU(s):
1,5,9,13,17,21,25,29,33,37,41,45,49,53,57,61,65,69,73,77,81,85,89,93,97,101,105,109,113,117
NUMA node2 CPU(s):
2,6,10,14,18,22,26,30,34,38,42,46,50,54,58,62,66,70,74,78,82,86,90,94,98,102,106,110,114,118
NUMA node3 CPU(s):
3,7,11,15,19,23,27,31,35,39,43,47,51,55,59,63,67,71,75,79,83,87,91,95,99,103,107,111,115,119
[root@srvgbdb001 ~]# dmidecode -t4 | grep 'Core Count'

Core Count: 15

Core Count: 15

Core Count: 15

Core Count: 15
[root@srvgbdb001 ~]# dmidecode -t 4 | grep CPU

Socket Designation: CPU1

Version: Intel(R) Xeon(R) CPU E7-4880 v2 @ 2.50GHz

Socket Designation: CPU2

Version: Intel(R) Xeon(R) CPU E7-4880 v2 @ 2.50GHz

Socket Designation: CPU3

Version: Intel(R) Xeon(R) CPU E7-4880 v2 @ 2.50GHz

Socket Designation: CPU4

Version: Intel(R) Xeon(R) CPU E7-4880 v2 @ 2.50GHz
[root@srvgbdb001 ~]# egrep 'siblings|cpu cores' /proc/cpuinfo | head -2
siblings : 30
cpu cores : 15
[root@srvgbdb001 ~]# cat /proc/cpuinfo | grep "physical id" | sort | uniq | wc
-l
4

I have two questions:

1 - How many CPU do I have to consider to set the cpu VPCLASS ? 4 ? 16 ? 120 ?
2 - How can I disable AFFINITY PROCS on IDS 11.5 ?

Thansk a lot

Amndré Luiz Rufino




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

To post a response via email (IIUG members only):

1. Address it to linux-informix@iiug.org
2. Include the bracketed message number in the subject line: [1624]

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

Raw devices in RHEL 6.4 and IDS 11.7

$
0
0
Good Morning

I would like to know the steps to configure the raw devices for the chunks in
Red Hat 6.4 and IDS 11.7 without Veritas product.

Thanks

Carlos Cambronero




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

To post a response via email (IIUG members only):

1. Address it to linux-informix@iiug.org
2. Include the bracketed message number in the subject line: [1625]

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

Re: Raw devices in RHEL 6.4 and IDS 11.7

$
0
0
Good Morning

I would like to know the steps to configure the raw devices for the chunks in
Red Hat 6.4 and IDS 11.7 without Veritas product.

Thanks

Carlos Cambronero




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

To post a response via email (IIUG members only):

1. Address it to linux-informix@iiug.org
2. Include the bracketed message number in the subject line: [1626]

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

How to use executesql utility

$
0
0
Hi all,

How to use Execute SQL Utility v1.2.1 on linux to run sql statement.

Please guide me.




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

To post a response via email (IIUG members only):

1. Address it to linux-informix@iiug.org
2. Include the bracketed message number in the subject line: [1627]

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

How to use execute sql utility

$
0
0
Hi all,

How to use Execute SQL Utility v1.2.1 on linux to run sql statement.

Please guide me.




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

To post a response via email (IIUG members only):

1. Address it to linux-informix@iiug.org
2. Include the bracketed message number in the subject line: [1628]

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

IDS 11.70 in RHEL6.4 , like to upgrade to RHEL 7.x

$
0
0
I have the IDS 11.70 in RHEL6.4 x86_64 running well ,
the problem is RHEL6.4 g++ is 4.4.7 , which only support
c++0x , not c++11 , so I like to upgrade gcc to 4.82 ,
I am not good at g++ upgrade , so I might like to upgrade
RHEL to 7.x with default gcc version 4.82 !!!

I never use IDS 11.70 in RHEL 7.x before , I like to know
what should I take care to upgrade RHEL6.4 to RHEL7.x ,
Still IDS 11.70 running fine ?!

Any comments are great appreciated !




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

To post a response via email (IIUG members only):

1. Address it to linux-informix@iiug.org
2. Include the bracketed message number in the subject line: [1629]

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

Issue with AUS

$
0
0
Today I got this error related AUS:

17:00:00 SCHAPI: [Auto Update Statistics Refresh 2 62-129] Error -9791 User
Defined Routine (aus_refresh_stats) execution failed.

17:00:00 SCHAPI: [Auto Update Statistics Refresh 41-128] Error -9791 User
Defined Routine (aus_refresh_stats) execution failed.

What does this mean?

I guess it was 3 threads which needs to be run at 5:00pm, out of them 2 got
failed and only one threads runs…




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

To post a response via email (IIUG members only):

1. Address it to linux-informix@iiug.org
2. Include the bracketed message number in the subject line: [1630]

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

Seg. Fault Error When Insert to TEXT Datatype

$
0
0
Hello, I need help, maybe someone already solve this problem,

Operating system: CentOS7 / Fedora 21
PHP version: 5.6.14
Package: PDO_INFORMIX
Problem description:Insert to TEXT or CLOB Datatype Problem in Informix with
Segmentation Fault Error On Latest IDS and PDO Informix

Description:
------------
I'm using PHP 5.6.14, IBM Informix CSDK 4.10, PDO Informix 1.3.1 and IDS
11.70/12.10. Always
got Segmentation Error when insert something to table that have TEXT or
CLOB datatype. Error from log :

[Fri Oct 30 01:08:41.704142 2015] [core:notice] [pid 27963] AH00052:
child pid 27967 exit signal Segmentation fault (11)

sometime also got error "zend_mm_heap corrupted"

Before that, when I compile the pdo informix, no error only warnings but when
I run the "make test" command. The warnings are as below :

[root@localhost PDO_INFORMIX-1.3.1]# make test

Build complete.
Don't forget to run 'make test'.

PHP Warning: PHP Startup: Unable to load dynamic library
'/home/yan/Downloads/PDO_INFORMIX-1.3.1/modules/pdo_informix.so' -
/home/yan/Downloads/PDO_INFORMIX-1.3.1/modules/pdo_informix.so:
undefined symbol: pdo_parse_params in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'/home/yan/Downloads/PDO_INFORMIX-1.3.1/modules/pdo_informix.so' -
/home/yan/Downloads/PDO_INFORMIX-1.3.1/modules/pdo_informix.so:
undefined symbol: pdo_parse_params in Unknown on line 0

=====================================================================
PHP : /usr/bin/php
Warning: PHP Startup: Unable to load dynamic library
'/home/yan/Downloads/PDO_INFORMIX-1.3.1/modules/pdo_informix.so' -
/home/yan/Downloads/PDO_INFORMIX-1.3.1/modules/pdo_informix.so:
undefined symbol: pdo_parse_params in Unknown on line 0

PHP_SAPI : cli
PHP_VERSION : 5.6.14
ZEND_VERSION: 2.6.0
PHP_OS : Linux - Linux localhost.localdomain 3.10.0-229.el7.x86_64
#1 SMP Fri Mar 6 11:36:42 UTC 2015 x86_64
INI actual : /home/yan/Downloads/PDO_INFORMIX-1.3.1/tmp-php.ini
More .INIs :
CWD : /home/yan/Downloads/PDO_INFORMIX-1.3.1
Extra dirs :
VALGRIND : Not used
=====================================================================
TIME START 2015-10-30 07:58:41
=====================================================================

This is my test script :

Test script:
---------------
<?php

class Test {

public $db = null;

public $dsn = null;

public $user = null;

public $pass = null;

public function __construct( $_dsn = null , $_user = null ,
$_pass = null )

{

$this->user = "informix";

$this->pass = "informix";

$this->db = "uji_database";

$this->svr = "ol_informix1210";

}

public function connect($autoCommit=true)

{

$this->db = new PDO("informix:host=localhost;
service=16339; database=". $this->db ."; server=". $this->svr .";
protocol=onsoctcp;EnableScrollableCursors=1", $this->user, $this->pass
);

$this->db->setAttribute(PDO::ATTR_ERRMODE,
PDO::ERRMODE_EXCEPTION);

$this->db->setAttribute(PDO::ATTR_CASE,
PDO::CASE_UPPER);

$this->db->setAttribute(PDO::ATTR_STRINGIFY_FETCHES,
true);

return $this->db;

}

public function runTest()

{

$this->connect();

try {

/* Drop the test table, in case it exists */

$drop = 'DROP TABLE animals';

$result = $this->db->exec( $drop );

} catch( Exception $e ){}

try {

/* Create the test table */

$server_info =
$this->db->getAttribute(PDO::ATTR_SERVER_INFO);

$create = 'CREATE TABLE animals (id INTEGER, my_clob
CLOB, my_blob byte)';

$res = $this->db->exec( $create );

$stmt = $this->db->prepare('insert into animals
(id,my_clob,my_blob) values (:id,:my_clob,:my_blob)');

$clob = "test clob data\n //testing //testing2 ";

$blob = "test blob data\n";

print "inserting from php variable<br>";

$stmt->bindValue( ':id' , 0 );

$stmt->bindParam( ':my_clob' , $clob , PDO::PARAM_LOB ,
strlen($clob) );

$stmt->bindParam( ':my_blob' , $blob , PDO::PARAM_LOB ,
strlen($blob) );

$stmt->execute();

$stmt = $this->db->prepare( 'select id,my_clob,my_blob
from animals' );

$res = $stmt->execute();

$res = $stmt->fetchAll();

var_dump(

$clob = "test clob data\n //testing //testing2 ...
//test lagi ...dan lagi ";

$blob = "test blob data\n";

print "inserting from php variable<br>";

$stmt->bindValue( ':id' , 0 );

$stmt->bindParam( ':my_clob' , $clob , PDO::PARAM_LOB ,
strlen($clob) );

$stmt->bindParam( ':my_blob' , $blob , PDO::PARAM_LOB ,
strlen($blob) );

$stmt->execute();

$stmt = $this->db->prepare( 'select id,my_clob,my_blob
from animals' );

$res = $stmt->execute();

$res = $stmt->fetchAll();

var_dump( $res );

}

catch (Exception $e ) {

print $e->getMessage();

}

print "done\n";

}

}

$testcase = new Test();

$testcase->runTest();
?>

Expected result:
----------------
inserting from php variable<br>array(1) {
[0]=>
array(6) {

["ID"]=>

string(1) "0"

[0]=>

string(1) "0"

["MY_CLOB"]=>

string(37) "test clob data
//testing //testing2 "

[1]=>

string(37) "test clob data
//testing //testing2 "

["MY_BLOB"]=>

string(15) "test blob data
"

[2]=>

string(15) "test blob data
"
}
}

Actual result:
--------------
inserting from php variable<br>array(1) {
[0]=>
array(6) {

["ID"]=>

string(1) "0"

[0]=>

string(1) "0"

["MY_CLOB"]=>

string(37) "test clob data
//testing //testing2 "

[1]=>

string(37) "test clob data
//testing //testing2 "

["MY_BLOB"]=>

string(15) "test blob data
"

[2]=>

string(15) "test blob data
"
}
}
inserting from php variable<br>Segmentation fault (core dumped)

hope someone can help me .....

Thanks




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

To post a response via email (IIUG members only):

1. Address it to linux-informix@iiug.org
2. Include the bracketed message number in the subject line: [1631]

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

How can we print Special character(§).

$
0
0
Hi Friends,

We had a 4gl report where we need to print a symbol §...but a º sign displays
where a § sign needs to be displayed.

How can we print this special character(§) using the 4gl report features ?




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

To post a response via email (IIUG members only):

1. Address it to linux-informix@iiug.org
2. Include the bracketed message number in the subject line: [1632]

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

How can we print Special character(§).

$
0
0
Hi Friends,

We had a 4gl report where we need to print a symbol §...but a º sign displays
where a § sign needs to be displayed.

How can we print this special character using the 4gl report features ?




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

To post a response via email (IIUG members only):

1. Address it to linux-informix@iiug.org
2. Include the bracketed message number in the subject line: [1633]

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

How can we print Special character(§).

$
0
0
Hi Friends,

We had a 4gl report where we need to print a symbol §...but a º sign displays
where a § sign needs to be displayed.

How can we print this special character using the 4gl report features ?

Kindly help me on this.
Thanks in advance.




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

To post a response via email (IIUG members only):

1. Address it to linux-informix@iiug.org
2. Include the bracketed message number in the subject line: [1634]

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

Printing special character(§) in 4gl reports

$
0
0
Hi Friends,

We had a 4gl report where we need to print a symbol §...but a º sign displays
where a § sign needs to be displayed.

How can we print this special character using the 4gl report features ?

Kindly help me on this.
Thanks in advance.
Hyma P




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

To post a response via email (IIUG members only):

1. Address it to linux-informix@iiug.org
2. Include the bracketed message number in the subject line: [1635]

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

Need help on re-directing errors to db

$
0
0
HI Friends,

We are planning run a program in background without messages to TTY....so we
are trying to insert errors to tables....

Actually program is having transaction.....on any error I think it is
roll-backing data as we are unable to see data in error table defined.

In error function actually there is no rollback work specifically...but

database client
begin work....

if any error
call l_exit_program(1, scratch)

function l_exit_program()
-- write new code to send error to db....
-- Unloaded data to a file from table...unloaded row well..

whenever error continue

close database

whenever error stop

exit program(1)
end

But after program run unable to see record in db errr table....

So how record was rolled back without "rollback work" statement ?
Is it because of "close database" statement ?

How can we insert errors to db even though transaction is there......baseline
functionality should not change with this new process of running background
and sending errors to db....

Kindly help us...
Thank you,
Hyma P




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

To post a response via email (IIUG members only):

1. Address it to linux-informix@iiug.org
2. Include the bracketed message number in the subject line: [1636]

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

Delay to login for 15 min after pwd update

$
0
0
Hi,

I have a query regarding informix database that we are using for our
product.Informix database is taking 15 minutes to get connected and this
behaviour is consistent. It looks like the new password is not getting updated
in the DB. Is this behaviour from the informix Db side ? Is there any
parameter that specifies the password to be synched ?

Thanks,
Siddharth Ravindran




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

To post a response via email (IIUG members only):

1. Address it to linux-informix@iiug.org
2. Include the bracketed message number in the subject line: [1637]

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

15 minutes delay to log in to informix database

$
0
0
Hi,

We are using Informix database and would like to post query regarding a
behavior observed recently.

For the user after changing the password it takes 15 minutes to log in to the
interface . From our analysis it looks like password synch is delayed or
configured to synch every 15 min and would like to know if it is a specific
behavior of Informix database.

Is there any configuration parameter which sets synch time specific to
Informix ?

Thanks,

Siddharth Ravindran




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

To post a response via email (IIUG members only):

1. Address it to linux-informix@iiug.org
2. Include the bracketed message number in the subject line: [1638]

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

Returning variables from linux script to 4gl

$
0
0
HI All,

I had a script where it will prompt user for a file name in their home. We
will show some of lines for confirmation. If it is intended file then return
file to 4gl program.

4gl will call this script.

After getting file name from script we will load lines in file into a temp.
Later i want to process data in temp table.

How can I return file name from script to 4gl program ?

Thank you,
Hyma P




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

To post a response via email (IIUG members only):

1. Address it to linux-informix@iiug.org
2. Include the bracketed message number in the subject line: [1639]

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

Raw Devices

$
0
0
Hello,
I need your help with configuration of raw devices

i have the /dev/raw/raw1 with owner and group informix and permissions 660,

the instance is online perfectly , but when I go offline and online got the
following error:

Requested shared memory segment size rounded from 110629KB to 110632KB
12:26:29 Successfully added a bufferpool of page size 2K.

12:26:29 Event alarms enabled. ALARMPROG =
'/var/informix/etc/alarmprogram.sh'
12:26:29 Booting Language <c> from module <>
12:26:29 Loading Module <CNULL>
12:26:29 Booting Language <builtin> from module <>
12:26:29 Loading Module <BUILTINNULL>
12:26:29 Could not determine encryption mode from page zero.

i don't have shared memory

thank you.




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

To post a response via email (IIUG members only):

1. Address it to linux-informix@iiug.org
2. Include the bracketed message number in the subject line: [1640]

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

Scanning barcode spcial character on informix form

$
0
0
We are stuck at one issue in informix 4gl would be very gratefull if somebody
can help. I am using the informix 7.3 version. Issue is :- we have to read one
barcode which has some kind of delimiter (010732571000136311150630214628^]301)
before 301 value. When i scan the barcode on the informix form it only shows
as (010732571000136311150630214628301) without the ^]. but if i scan it on vi
editor and then copy paste it on informix form it works? wondering why it
doesn't show when we scan directly from the Rf gun.

We have the requirement to scan the barcode and since it's not showing up the
parsing code with delimiter we are stuck.




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

To post a response via email (IIUG members only):

1. Address it to linux-informix@iiug.org
2. Include the bracketed message number in the subject line: [1641]

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

425: Database is currently opened by another user.

$
0
0
Hi,

We are trying to drop a database in informix. And we are gettting below error:
425: Database is currently opened by another user.
107: ISAM error: record is locked.

Before droping database we have changed the informix to administrative mode
using onmode -j -y.
However when we ran onstat –u, shows no session to external user other than
informix.

Any help on this will be appreciated.

Thanks.




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

To post a response via email (IIUG members only):

1. Address it to linux-informix@iiug.org
2. Include the bracketed message number in the subject line: [1642]

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

ODBC/JDBC Auth on openSUSE running PAM/SSSD

$
0
0
Good day Informix gurus,

I am looking for help polishing off a configuration with our new IDS instance.

O/S: openSUSE Leap 42.1
IDS: 12.10.xC7
CSDK: 4.xxx

User authentication has been configured so that most users get authed against
the AD.

I can't seem to figure out what needs to be done so that my configuration
authenticates user logins successfully.

I am including the following file excerpts from the different configuration
and log files related to this situation:

*** Excerpt from $INFORMIXDIR/etc/$ONCONFIG file:
SERVERNUM 200
DBSERVERNAME dmart0
DBSERVERALIASES dmart0prim,dmart0pam

*** Excerpt from $INFORMIXDIR/etc/sqlhosts file:
dmart0 onipcshm phoenix2.cantrexnw.local online_dmart0
g_dmart0 group - - e=dmart0sec
dmart0prim onsoctcp phoenix2.cantrexnw.local on_dmart0prim g=g_dmart0
dmart0sec onsoctcp DRPPhoenix on_dmart0sec g=g_dmart0
dmart0pam onsoctcp phoenix2.cantrexnw.local on_dmart0pam
s=4,pam_serv=(informix),pamauth=(password)

*** Contents of the /etc/pam.d/informix file
auth sufficient pam_sss.so
auth required pam_unix.so debug
#
account sufficient pam_sss.so
account sufficient pam_localuser.so debug
account required pam_unix.so debug

Trying to connect to the database server using the SDK's Connect Test Demo
interface, I get the following error displayed on the client side
ERROR [08004][Informix][Informix ODBC Driver][Informix] Server rejected the
connection.

and the corresponding logged error(s) can be found in the following
/var/log/messages excerpt

*** Excerpt from /var/log/messages
2017-05-15T15:00:04.644047-04:00 phoenix2 oninit: pam_sss(informix:auth):
authentication failure; logname= uid=1001 euid=0 tty= ruser=entrepot
rhost=cantrexbi.cantrexnw.local user=entrepot
2017-05-15T15:00:04.645713-04:00 phoenix2 oninit: pam_sss(informix:auth):
received for user entrepot: 10 (User not known to the underlying
authentication module)
2017-05-15T15:00:04.657913-04:00 phoenix2 oninit: pam_unix(informix:auth):
authentication failure; logname= uid=1001 euid=0 tty= ruser=entrepot
rhost=cantrexbi.cantrexnw.local user=entrepot

I believe that I have tried many combinations so far and I can't seem to
determine why AD users are denied access when connecting through a
client-server connection.

SSH connections work fine (even though they get authenticated through AD and
SSSD but I can't seem to find the right settings to get the Informix PAM
connections working.

Any help would be greatly appreciated.

Daniel Dansereau
Systemes Logikinfo Inc.
daniel.dansereau@logikinfo.com
+1 514-262-3166




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

To post a response via email (IIUG members only):

1. Address it to linux-informix@iiug.org
2. Include the bracketed message number in the subject line: [1643]

*******************************************************************************
Viewing all 90 articles
Browse latest View live