c - Informix to Oracle: Dealing with Fetching Null Values -
itemprop = "text">
First little background My company is evaluating whether we will migrate our Informix database to Oracle 10G . We have many ESQL / C programs, I have participated through some Oracle migration workspace and it is pusher through some tests. Now I have realized a few things.
First of all, we have a dynamic SQL statement that is not keeping zero values at all. From what I have read, I must manually modify the query to use the NVL () function or to implement the index variable. Can someone confirm that manual modifications are required? The least amount of manual change in our converted ASQL / C programs is better.
Secondly, we have several questions that draw dates from different tables, and are considered in the types of forms, type-tall, # days after December 31, 1899.
In Pro * C, what format is being chosen as a date? I know that this is not numerical because I tried to select the date field in my long variable and the Oracle error was "found on the given number on DATE". So I'm assuming that we need to modify how we are choosing the date field - either select a date field in a converted way so that it is a long (i.e., since 12/31/1899 of # days) Yes, or change the host to match the variables that are returning to the oracle (what is it, string?).
In the form of the oracle dates (which are stored in Oracle's internal format) in a long integer, Questions have to be changed. Use the following formula for your dates:
to_number (to_char (date_column, 'j')) - to_number (to_char (to_date ('12 / 31/1899 ',' MM / DD Oracle System 'J' (for Julian Date) format is the calculation of the number of days since December 31, 4712 BC. If you If you want to trust from a later date, you will have to reduce the calculation of the Julian day of the date of the date. One suggestion: Have all your questions in your programs Instead of changing (which can cause problems and apply a bug), create a set of scenes in a different schema. These scenes will be named equally to all tables, all with the same column, but NVL ( ) And date () above the formula (like above), then point to your application on the Visa schema instead of the base table schema. For very little testing and less space
For example, All of ours Alikaon Make called "Apeepis_asii put in a schema called" (user "Apeepis_ B ASE is defined by".) Yet another schema / user "Apeepis_ VIEWS". Create a view in APPS_ VIEWS:
Create or change name as EMP, birth date from APPS_BASE.EMP,
Comments
Post a Comment