Floats/Numbers, and Changes between Oracle 8,9,10 and 11

Hi
I'm trying to get our application to support Oracle 11, it works fine with Oracle 10 and before. I wonder if someone can help me with this.
Suppose you have an SQL statement with a constant like this:
select my_agent_id, 0 team_id
from my_agent
Note: The second column is a constant (0).
In Oracle 8, 9, 10, when this statement is described, Oracle says that the team_id column is an integer type (number). But in Oracle 11, it reports it as a floating-point type.
This causes errors: our datasets are expecting interger types, but Oracle now says these are floats.
Can anyone help? Please don't say 'take the constant out' because that's quite hard, as we have datasets that are in some cases used with different sql statements. Oracle upgrades are usually easy because Oracle are pretty good at version compatibility.
Here is some additional info.
Our app is an OCI app written using MSVC. The code that says the team_id is a float is here (I have removed error checking code):
               luiResult = OCIAttrGet(     (ORAVOID *)lpssParam,
                                             OCI_DTYPE_PARAM,
                                             (ORAVOID *)&cSc,
                                             0,
                                             OCI_ATTR_SCALE,
                                             (OCIError *)opuoTrans->opssError);
               if (luiResult != OCI_SUCCESS) {     
                    return BINDOUTPUT_GET_PREC;
               if (cSc == 0) {
                    *aiType = DBPROV_INT; // Oracle 8,9,10 goes here
               } else {
                    *aiType = DBPROV_FLOAT; // Oracle 11 returns -127 so here
The value of cSc is -127, the code for FLOAT as written in the manual.
Anyway, this seemingly small thing is enough to make the application go bang.
Any help appreciated.

I believe what you're seeing here is expected behavior. Oracle 9.2.0.3 and later fixed the old behavior. Your code should be looking for a non-zero precision and a scale of -127 to determine that the column is a float.
Metalink 255902.1 Number Datatype Returns -127 instead of 0 for Unspecified Scale seems to be directly on point here.
Justin

Similar Messages

  • Major differences between Oracle 10g Release 1 and Oracle 10g Release 2?

    What are the major changes and differences between Oracle 10.1 and 10.2?
    Thanks

    Why not look through the 10.2 New Features doc?
    In my experience, the "major changes" are almost always environment-specific. "Transliteration for Japanese Kana Conversion", for example, is likely to be a huge deal for a few organizations (i.e. big enough to justify a migration all by itself). Other organizations and applications, on the other hand, won't care in the least.
    Justin

  • Difference between Oracle developer suite 9i and 6i

    Hi -
    Can I know what's the release difference between oracle developer suite 9i and 6i , and what's new in oracle discoverer 9i in compare with last version , we have discoverer version of 4.1...
    I could not able to get from metalink anything like new features in 9i deve;oper suite.
    Existing oracle financial application 11.5.8 have their forms and reports in 6i version.
    What impact will have if changed with new version of application 11.5.10 in future .

    Oracle Developer Suite 9i is now called Oracle 9iDS. Oracle also sells Oracle 9iAS. You need to license iAS in order to run application created using iDS.
    9i is fully J2EE compliant. It offers improved integration between components. Its much more feature rich than 6i. See:
    http://www.oracle.com/ip/develop/ids/
    for more information.
    what's new in oracle discoverer 9i in compare with last versionThis question is best asked in Discoverer Forum.
    What impact will have if changed with new version of application 11.5.10 in future Reports offers backward compatibility between 6i and 9i reports with a few exceptions. See Oracle Reports Obsolescence plan on OTN:
    http://otn.oracle.com/products/reports/htdocs/getstart/whitepapers/movingto9i.pdf
    Regards
    Sripathy

  • Features and Difference between Oracle 7i,8i and 9i

    Hi All,
    Please let me know the features and difference between Oracle 7i,8i and 9i,10g.
    and New features in Oracle 11g.
    Thank you,

    Each release has a New Features Guide:
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28279/chapter1.htm

  • Delta between ORACLE 8.0.5 and ORACLE 8.0.6

    I am looking for information that outlines the major differences (bug fixes, enhancements) between ORACLE 8.0.5 and 8.0.6.
    THanks Joerg
    null

    We are running oracle 8.0.5 on a thru64 unix system. Now one of
    our software suppliers demands us to install oracle 8.1.5. Not a
    big problem, but i want to know the difference between oracle
    8.0.5 and 8.1.5. The difference between 8.0.5 and 8.1.5 ?
    For this I had to write a whole a book,
    there are a lot of new features and enhancements.
    But why to do you need to install 8.1.5 ?
    Is there no 8.1.7 on thru64, because 8.1.5 is the first of 8i and
    there are some important bugs.
    So do yourself a favour and use the latest version.
    Regards,
    Thomas

  • Diff between Oracle 8.1.7 and Oracle 8.1.7.4

    Hi all,
    I'm trying to find the differences between Oracle 8.1.7 and Oracle 8.1.7.4. Can anybody give some inputs regarding this.
    Thanks in advance.

    Hi Justin Cave,
    Thanks for your reply. But where can I download that README txt. I dont have access to metalink, can I get that README txt anywhere other than metalink. Please let me know.
    Gopal Mani

  • Big Colour and detail changes between Original Nikon RAW files and the images created on the Preview page!

    Big Colour and detail changes between Original Nikon RAW files and the images created on the Preview page! Yes there are distinct visual changes when I preview my Nikon NEF RAW Files.Please note I do not use iPhoto at all.
    If you view it as a contact sheet straight from the original folder there are no alterations but the moment you double click and want to 'Preview' it, this new preview page introduces very noticeable distortions : lighter shading goes missing and colour goes darker e.g orange turns red and mid blue goes deep blue!  Alarmingly the little column on the left of the preview page showing the collection shows the original file colours and then after a few seconds show the new distorted image...you can see this visible change and it takes place after a few seconds once you double click! Also if you use Apple's 'Cover Flow' to preview, this function will replace your original RAW file with the new 'altered preview' image!
    I have raised this with Apple but they have yet to reply...has anyone ever experienced this? I have used my Mac book for 18months only noticed it about 5 days ago!
    I went to Apple store and we tried it in other laptops and Macs and it happened to all of them so we think this is a software issue and not down to the laptop.
    Any help is much appreciated!

    Big Colour and detail changes between Original Nikon RAW files and the images created on the Preview page! Yes there are distinct visual changes when I preview my Nikon NEF RAW Files.Please note I do not use iPhoto at all.
    If you view it as a contact sheet straight from the original folder there are no alterations but the moment you double click and want to 'Preview' it, this new preview page introduces very noticeable distortions : lighter shading goes missing and colour goes darker e.g orange turns red and mid blue goes deep blue!  Alarmingly the little column on the left of the preview page showing the collection shows the original file colours and then after a few seconds show the new distorted image...you can see this visible change and it takes place after a few seconds once you double click! Also if you use Apple's 'Cover Flow' to preview, this function will replace your original RAW file with the new 'altered preview' image!
    I have raised this with Apple but they have yet to reply...has anyone ever experienced this? I have used my Mac book for 18months only noticed it about 5 days ago!
    I went to Apple store and we tried it in other laptops and Macs and it happened to all of them so we think this is a software issue and not down to the laptop.
    Any help is much appreciated!

  • SQL*LOADER-Deprecated/Obsolete Features Between Oracle 8.1.7 and Oracle10G

    Please let me know the Deprecated/Obsolete Features Between Oracle 8.1.7 and Oracle10G for SQL*LOADER.
    I have gone through the documentations and found no notable Deprecated/Obsolete Features for SQL*LOADER.
    If anybody has come across some of the features please publish.
    Thanks in advance

    Please refer
    Migrating PL/SQL source code from Oracle 8.1.7 to Oracle 10g

  • Difference between Oracle Clusterware Network Heartbeat and Disk Heartbeat

    Can soemone please explain the difference between Oracle Clusterware Network Heartbeat and Disk Heartbeat.
    • If a node does not send a network heartbeat for <MissCount> (time in seconds), then node is evicted from cluster
    • If disk heartbeat (voting disk) is not updated in <I/O timeout>, then node is evicted from cluster
    In my openion both communcation uses network. If network is down how come disk heartbeat be updated?

    kamranjalal wrote:
    Can soemone please explain the difference between Oracle Clusterware Network Heartbeat and Disk Heartbeat.
    • If a node does not send a network heartbeat for <MissCount> (time in seconds), then node is evicted from clusterThis is the interconnect messaging miss happening between the nodes. If the nodes are going to get a delay of more than 30 seconds, the node eviction will occur.
    • If disk heartbeat (voting disk) is not updated in <I/O timeout>, then node is evicted from clusterThis is for the disk only. For example, due to some reason, you are not able to access the disk, may be due to a failure in the path or access media or failure in the multipath, that would all result in the disk timeout.
    Aman....

  • No connect between my iphone and itunes .. version is up to date and windows 7 and change between ports .....?

    no connect between my iphone and itunes .. version is up to date and windows 7 and change between ports .....?

    sorry but i need support from apple .................................

  • Difference between "Oracle Certified Specailist (OCS)" and "OPN CS"

    HI,
    I want to know the difference between "Oracle Certified Specailist (OCS)" and "OPN Certified Specailist". Whether both are same ? I have doubt as the logos are different for both . Any idea ...?

    The Oracle Certification Program main page has links to all the certification paths. Those links include the cost of each exam. For example, the Oracle Database 11g Certified Implementation Specialist credential requires the 1Z0-514 exam which costs $195. Different certification exams may have a different cost.
    Justin

  • Pros and cons between the large log buffer and small log buffer?

    pros and cons between the large log buffer and small log buffer?
    Many people suggest that small log buffer (1-3MB) is better because we can avoid the waiting events from users. But I think that we can also have advantage with the bigger on...it's because we can reduce the redo log file I/O...
    What is the optimal size of the log buffer? should I consider OLTP vs DSS as well?

    Hi,
    It's interesting to note that some very large shops find that a > 10m log buffer provides better throughput. Also, check-out this new world-record benchmark, with a 60m log_buffer. The TPC notes that they chose it based on the cpu_count:
    log_buffer = 67108864 # 1048576x cpuhttp://www.dba-oracle.com/t_tpc_ibm_oracle_benchmark_terabyte.htm

  • How to remove and change the color of Java cup and border

    Hi to all,
    How to remove and change the color of Java cup and border.
    Thanks in advance
    khiz_eng

    This is just an Image. You would need to create your own image and call setIconImage(Image) on your JFrame.

  • I have to select a file – get Info – and change – open with and change from preview to another program and CHANGE ALL everytime I boot up

    Why do I have to select a file – get Info – select – open with – and change from Preview to another program and click CHANGE ALL with every file extention everytime I boot up.

    Back up all data.
    This procedure will unlock all your user files (not system files) and reset their ownership and access-control lists to the default. If you've set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it.
    Step 1
    If you have more than one user account, and the one in question is not an administrator account, then temporarily promote it to administrator status in the Users & Groups preference pane. To do that, unlock the preference pane using the credentials of an administrator, check the box marked Allow user to administer this computer, then reboot. You can demote the problem account back to standard status when this step has been completed.
    Triple-click the following line to select it. Copy the selected text to the Clipboard (command-C):
    { sudo chflags -R nouchg,nouappnd ~ $TMPDIR.. ; sudo chown -Rh $UID:staff ~ $_ ; sudo chmod -R u+rwX ~ $_ ; chmod -R -N ~ $_ ; } 2> /dev/null
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V). You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The command will take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear, then quit Terminal.
    Step 2 (optional)
    The first step should give you usable permissions in your home folder. This step will restore special attributes set by OS X on some user folders to protect them from unintended deletion or renaming. You can skip this step if you don't consider that protection to be necessary.
    Boot into Recovery by holding down the key combination command-R at startup. Release the keys when you see a gray screen with a spinning dial.
    When the OS X Utilities screen appears, select
    Utilities ▹ Terminal
    from the menu bar. A Terminal window will open.
    In the Terminal window, type this:
    resetpassword
    That's one word, all lower case, with no spaces. Then press return. A Reset Password window will open. You’re not  going to reset a password.
    Select your boot volume ("Macintosh HD," unless you gave it a different name) if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select
     ▹ Restart
    from the menu bar.

  • HT1918 Hello, I have a $54.and change credit in my itunes accound and i can't purchase anything without a credit card "whats up"

    Hello,
             I have $54 and change in my i tunes account and I keep being asked for a credit card......what's wrong......?

    Contact iTune Support
    http://www.apple.com/emea/support/itunes/contact.html

Maybe you are looking for

  • Strange directory behaviour on NSS volume OES11 SP1

    Hi All, A couple of months ago we installed an OES11 SP1 server with an NSS volume (VOL1:) for all our installation files. In the root of the VOL1: volume, we created a directory named _Install (yes, underscore) In this directory we created a lot of

  • ORacle VM Manager

    Hello guys I just isntall oracle VM Manager And can access teh manager, but it does not find my virtual machines already installed? is there any way I can fix that so it auto detects them iwthout having to reinstall the via the manager? Thanks

  • Multiple tools not working correctly in CS4

    Hello! So I didn't see any topics that related to my issue so here goes: I was drawing in Photoshop, no issues, but after I tried to copy/paste a selection of the picture, I realized that nothing was copying or pasting at that. (Now before anyone ask

  • BUG: ADF BC read-only VO with no Key attrs + af:table

    Hello all, I've got a bug to report - quite easily reproducable with the HR demo schema. To see it: 1). Create a new application from the ADF BC + Faces template 2). Create a read-only VO, use "SELECT employee_id, first_name from employees" and order

  • ABAP Webdynpro-layout Icons-invisible

    Hi Experts, We are having ECC6.0 implemented in our Organisation. I need to develop ABAP webdynpro Object.The layout is ready but Im not able to drag and drop the icons in the layout. What can be the problem?? Expecting your reply at the earliest.