Re: when use IfxDataReader.GetIfxDateTime to NULL
Art, Thanks. I use IfxDataReader.IsDBNull to detect the value of the specified field is NULL or not before getting the value. Your suggestion is workable. I have one thing to share with : when use the...
View ArticleRe: when use IfxDataReader.GetIfxDateTime to NULL
True, but you can't use that to detect NULL strings because a string of spaces will also compress/trim down to am empty string. Art Art S. Kagel, Principal Consultant Advanced DataTools...
View ArticleCannot insert the utf8 data into database
I have created the database of DB_LOCALE = en_us.utf8 on the AIX system. My DB is informix dynamic server 10.00.FC5. My job is to convert the Big5 tables of a old database into a new database of UTF8....
View ArticleRe: How to know if a session is hanged already?
Hi Jack, The flags for your sessions are important. Here is the signification for your flags: Flags in position 1 B - Waiting on Buffer C - Waiting on checkpoint G - Waiting on a logocal log buffer...
View ArticleRe: How to know if a session is hanged already?
Mostly I agree with Khaled. At best you can't tell from the wait flags what's hung. Most hung sessions are either spinning CPU (so look at onstat -g spi) or waiting for a user session that's no longer...
View ArticleRe: Cannot insert the utf8 data into database
Hi, before trying to give a possible explanation, I've to state, that I'm not an expert for this. Most likely, some of the character code that got generated randomly (because the Big5 chinese character...
View ArticleRe: when use IfxDataReader.GetIfxDateTime to N....
You can use the null coalescing operator ( ??) ... public OdbcDataReader dr; // or ifxdatareader (.. read some stuff) string dte = (dr["somedatecol"] ?? "").ToString() ; if (dte.Length > 0) { some...
View Articlesystem table to keep track of dependent views?
Hi All, I am trying to find the list of dependent objects used in the views. So can someone share the query or procedure which will list all the dependent objects used in the body of the views? Or if...
View ArticleRe: system table to keep track of dependent views?
The only way I know of is to search the VIEWTEXT column for your tablename: To find views referencing a single table: select tabname::char(20) as viewname from systables st, sysviews sv where st.tabid...
View ArticleRE: system table to keep track of dependent views?
You could run into a problem when a table name is split over two lines of viewtext like it is in sysdomains tabid 70 seqno 0 viewtext create view "informix".sysdomains (id,owner,name,type) as select...
View ArticleRe: system table to keep track of dependent views?
Good point! I didn't run into that one testing this because I'm running v12.10 and the viewtext column was expanded from 64bytes to 256bytes without documentation so my sysdomains was found just fine....
View ArticleRe: RE: when use IfxDataReader.GetIfxDateTime ....
Hello, The version of Informix products in my environment is: Database server: AIX IBM Informix Dynamic Server Version 10.00.FC5 IBM Informix CSDK Version 2.90 IBM-ESQL Version 2.90.FC4 Client: PC...
View ArticleRe: Cannot insert the utf8 data into database
I think the informix dynamic server should have its own acceptable range of unicode (UTF8). If incoming data contains the data out of its confind range, it shows the "error message" and terminate the...
View ArticleRe: system table to keep track of dependent views?
My version to list all: SELECT t.tabname AS object_name, v.tabname AS view_name FROM sysdepend, systables AS t, systables AS v WHERE btabid > 99 -- ignore system tables AND t.tabid = btabid AND...
View ArticleRe: error syscdcv1 CDC_ERROR_CODE = -83717
Original post: Machine Configuration.... OS Name Linux OS Release 2.6.18-348.12.1.el5 OS Node Name wldbt635 OS Version #1 SMP Mon Jul 1 17:54:12 EDT 2013 OS Machine x86_64 IBM Informix Dynamic Server...
View Articlesyslock on missing session
All, I have a table in which I can insert and select, but can't delete or update. I have run this statement, which I use to detected hung sessions (usually a transaction that gets stuck open for some...
View ArticleRE: syslock on missing session
I should mention that this is in a cluster. If I run an onstat -u, I see the session - it is a low session number (31), so I think this might be a session between the secondary HDR and the primary HDR...
View ArticleRE: syslock on missing session
I have LOG_INDEX_BUILDS set to 1 on all the configs. This specific table though does not have any indexes defined. -Justin -----Original Message----- From: Paul Watson [mailto:paul@oninit.com] Sent:...
View Articlepartitioning performance
IDS 11.70.fc3xc Aix 6.1 Having to rework some fragmentation that was designed several years ago .. and had a question .... in a fragment by expression clause...arethe following going to perform the...
View ArticleRe: partitioning performance
Yes, they will. The trick is to put the ones which are going to get inserted into first = at the top of the list, and remember that the clause gets read left to = right, so make sure that the most...
View Article