Managed Odp - failed to read a previously inserted decimal

OLA,

I work with the managed Odp.net driver. The version of the Assembly is 4.121.1.0.

My oracle server is

----------------------------------------------------------------

Oracle Database 10 g Release 10.2.0.2.0 - 64 bit Production

PL/SQL Release 10.2.0.2.0 - Production

CORE 10.2.0.2.0 Production

AMT for IBM/AIX RISC System/6000: Version 10.2.0.2.0 - production

NLSRTL Version 10.2.0.2.0 - Production

the problem I face is that I am not able to read a decimal value inserted previously.

When I change the driver to the non managed odp pilot, without changing the code it works fine.

Is this a bug in the driver?

Thanks for your replies

 using (IDbConnection con = new Oracle.ManagedDataAccess.Client.OracleConnection(connectionString))
 {
 con.Open();

 try
 {
 using (IDbCommand cmd = con.CreateCommand())
 {
 cmd.CommandText = "DROP TABLE testtable";
 cmd.ExecuteNonQuery();
 }
 }
 catch (OracleException)
 {
 }

 using (IDbCommand cmd = con.CreateCommand())
 {
 cmd.CommandText = "create table testtable (numbercolumn number not null)";
 cmd.ExecuteNonQuery();
 }

 using (IDbCommand cmd = con.CreateCommand())
 {
 cmd.CommandText = "insert into testtable (numbercolumn) values (:1)";
 IDataParameter p = cmd.CreateParameter();
 p.DbType = DbType.Decimal;
 p.Value = (21.1m * 2m / 3m);
 cmd.Parameters.Add(p);
 cmd.ExecuteNonQuery();
 }

 using (IDbCommand cmd = con.CreateCommand())
 {
 cmd.CommandText = "select numbercolumn from testtable";
 using (IDataReader rdr = cmd.ExecuteReader())
 {
 rdr.Read();

 Console.WriteLine(rdr.GetDataTypeName(0)); // print decimal
 Console.WriteLine(rdr.GetDecimal(0)); // throw InvalidCastException
 }
 }
 }

Hello

Thank you for the information.

We have been able to reproduce the issue and filed a bug (18836131) in your name.

We will fix this problem in a future release.

Tags: Database

Similar Questions

  • Recovery Manager is unable to read disk backup files

    Product name:

    HP G56-129WM

    Operating system:

    Windows 7

    I used HP (F11) Recovery Manager to back up my files instead of using Windows backup. The HP Recovery Manager back uped my files on dvd disks 2. Then I restored my laptop to factory settings. When I go to restore my files, it will only go to 40% and then ask me to insert the DISC 2 backup. When I insert the disc, it will fail to read. The disc will eject and I receive a request to insert DISC 2. What is going on?

    Unfortunately all backup HP of grab files, you specify and one bunch of others you really, why I don't know, as HP backup does not restore files to the original location, when restore.exe work (only not in your case), he plunges them correctly just in a folder for you to browse, not not very different from the use of 7 - zip to decompress.

    You need to decide what is important to you and copy them in where you want, unfortunately is not a very good backup program, it simply records your files for HP recovery does not remove the.

  • Save the attachment script gives error "Mail has been a mistake: AppleEvent Manager has failed. ' number - 10000

    Hi all

    I'm completely ignorant when it comes to Apple Script and I'm trying to get this simple script to work. The purpose of the script is to save attachments in a folder named when I run on the Apple Mail messages via a rule.

    This is the code:

    Tell application "Mail".

    theMessages set of selection

    Repeat with thisMessage in theMessages

    the value of the theAttachments attached to a letter of thisMessage

    Repeat with thisAttachment in theAttachments

    the value theAttachmentFileName ((chemin d'accès àle texte riche de la règle de type dossier de départ) & ' treatment of the Documents record: Hazel ") & name of the thisAttachment

    Save thisAttachment in file theAttachmentFileName

    end repeat

    end repeat

    tell the end


    The folder does not exist, but I get a "error " Mail has been a mistake: AppleEvent Manager has failed. ' number - 10000 "when I run.

    The code in the Script Editor editor also inserts "type of rule" in my code, so I guess that my syntax is faulty.

    Any help would be greatly appreciated.

    Kind regards

    Beem

    If ' folder of treatment of Hazel ' already exists in the Documents folder, the following script of GUI, which seems to work perfectly under OS X 10.11.3, should do what you ask for:

    Try

    game of theDestinationFolder to ((path to the documents folder) as text) & "Hazel treatment record" as alias

    on error - file does not exist

    return Beep 3

    end try

    say application "Mail".

    activate

    the value theMessages to the selection

    Repeat with thisMessage in theMessages

    thisMessage Open

    say application 'System events' to say process "Mail".

    click on menu item "Save attachments...". " of 1 of the 'file' menu bar item menu of the menu bar 1

    Repeat until sheet 1 window 1 is

    end Repeat

    key sequence "o" using { control down,shift down}

    key sequence "Nutty".

    click on button 'Save' of the sheet 1 of window 1

    Repeat while sheet 1 window 1 is

    end Repeat

    key sequence 'w', using {control down} - close this message

    end say

    end Repeat

    end say

  • My DVD RW drive (E) does not recognize or read any disk inserted.

    My DVD RW drive (E) does not recognize or read any disk inserted. I have a desktop HP with Windows Vista home premium. I used to be able to play CDs & DVDs, but also to burn discs on it. Now it will not read discs program even not. This happened earlier & I never understood the problem so I just gave up. Now I need to use a program disk to use a wireless router & I can't because my reader will not read the disc. I already checked the Device Manager and it says that all drivers are at day & work properly.

    Hello

    Step 1: Please do all the same underneath if you did some before as is often total
    a process that solves the problem.

    Try this - Panel - Device Manager - CD/DVD - double click on the device - driver tab.
    Click on update drivers (this will probably do nothing) - RIGHT click ON the drive - uninstall.
    RESTART this will refresh the default driver stack. Even if the reader does not appear to continue
    below.

    Then, work your way through these - don't forget the drive might be bad, could be a coward
    cable or slight corrosion on the contacts (usually for a laptop) and other issues.

    Your CD or DVD drive is missing or is not recognized by Windows or other programs
    http://support.microsoft.com/kb/314060 - a Mr Fixit

    Try this fix manually if the Fixit 314060 does not work
    http://www.pchell.com/hardware/cd_drive_error_code_39.shtml

    Your CD or DVD drive is missing or is not recognized by Windows or other programs-
    a Mr Fixit
    http://support.Microsoft.com/kb/982116

    The CD drive or the DVD drive does not work as expected on a computer that you upgraded to
    for Windows Vista
    http://support.Microsoft.com/kb/929461

    When you insert a CD or a DVD, Windows Vista may not recognize the disc
    http://support.Microsoft.com/kb/939052

    Your CD or DVD drive cannot read or write media - A Mr Fixit
    http://support.Microsoft.com/GP/cd_dvd_drive_problems

    CD/DVD drive does not appear in Windows Vista, or you receive this error in Windows
    Vista installation after booting from the DVD (AHCI)
    http://support.Microsoft.com/kb/952951
    Drive CD - R or CD - RW Drive is not recognized as a recordable device
    http://support.Microsoft.com/kb/316529/

    Hardware devices not detected or not working - A Mr Fixit
    http://support.Microsoft.com/GP/hardware_device_problems

    Another possibility is that the cables are loose. Remove ALL power, then make sure that the cables in both
    ends. Remove and replace, do not just tight. For laptops, you can often clean power and
    contacts data with a pencil eraser.

    Some DVD players do not use the Windows default drivers so check with the manufacturer of system and
    manufacturer of device to see if there is a firmware or drivers for your drive if necessary.

    ===============================

    Step 2: You have disc problems as the CD/DVD is actually 4 discs in 1 case (CD & DVD
    Burn and CD and DVD read). So it is not unusual for 1 or 2 operational so that other parts
    do it right.

    Did you follow the Troubleshooting Guide for the reader who still does not work? There are
    the entries in registry that the troubleshooter does not solve and those who "might" be the cause.

    Check with your Maker system and a device for the two possible firmware updates and
    the correct registry entries for your car.

    Here are the keys that I of course are those in question - for the subkeys of the CD/DVD drive
    as there will be other subkeys in these keys. Do not forget to ask specific keys involved as well as
    the parameters.

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\IDE

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Hardware Profiles\0001\System\CurrentControlSet\Enum\IDE

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\ {4D36E965-E325-11CE-BFC1-08002BE10318}

    -----------------------------------------------------------------------

    You can probably find more info here and maybe even the exact registry for your CD/DVD settings
    drive from someone with the same model.

    Forums - a lot of expert real help
    http://Club.myce.com/

    CD/DVD units
    http://www.myce.com/storage/

    Use DevManView to locate the CD/DVD in the registry (be careful and do a prior Restore Point)
    nothing change) - find the DevManView device and then make a right click on it free in RegEdit.

    DevManView - free - an alternative to the standard Windows Device Manager, which displays all the
    devices and their properties in flat table, instead of the tree viewer
    http://www.NirSoft.NET/utils/device_manager_view.html

    I hope this helps.

  • Media Player 11 - fails to read the MOD files

    Using Media Player 11 - had previously played MOD video files from a JVC Everio camera.  Recently, the MP is unable to play the video file.  Do not lock or freeze - just fails to read the file.  (Works with AVI or other files).

    Trying to install a pack of codec as the pack k - lite codec to fix: http://download.cnet.com/K-Lite-Mega-Codec-Pack/3000-13632_4-10794603.html

  • Cannot install After Effects CS6 for Mac running Yosemite 10.10.3. Tried to run the update, does not. Tried the update of the application Manager initialization failed. Referred to as Support Advisor, abandoned.

    Cannot install After Effects CS6 for Mac running Yosemite 10.10.3. Tried to run the update, does not. Tried the update of the application Manager initialization failed. Referred to as Support Advisor, abandoned.

    start at the top and work your way down to apply applicable patches until your problem is solved.

    If (win) cc: https://helpx.adobe.com/creative-cloud/kb/creative-cloud-desktop-application-failed.html

    If your error is:

    "Setup failed to initialize. File not found. ' or 'could not initialize installation. This could be due to missing files.

    first of all, rename folder OOBE OOBE.old.

    to find the OOBE:

    Win 64 bit OS: Program Files x86\Common Files\Adobe\OOBE

    Win 32 bit OS: Program Files \Common Files\Adobe\OOBE

    Mac os: HD > library > application support of > adobe > caps

    Mac os: USER > library > application support of > adobe > OOB

    If it fails or isn't the exact error you see, uninstall, clean (http://www.adobe.com/support/contact/cscleanertool.html) and reinstall.

    If you use an installation dvd:

    Copy the contents of the drive in a desktop folder and install from this directory.

    If you are using a mac:

    1. try to create a new user account in Mac with administrator privileges.

    2. connect to the new user, navigate to Mac HD > Application > utilities > Adobe Installer folder, locate products such as Adobe Reader, Adobe Flash, Adobe Air and uninstall the

    3. navigate to the user library > Application Support > Adobe and Adobe put in the trash.

    4. navigate to Mac HD > library > Application Support > Adobe and Adobe put in the trash.

    5 restart the installation.

    If everything is applicable above fails, check your Setup logs:

    http://helpx.Adobe.com/Photoshop-elements/KB/troubleshoot-install-using-logs-elements.html

  • View 5.0 - SCOM Management Pack fail?

    view5_scom.JPGHello

    I imported the SCOM management packs included on the install View5 media - but noticed that after a while of waiting for scans to take place - nothing appeared in none of the articles cited for vmware view.

    Please see attached screenshot - am I right to think that group management packs are for an older version of view? -J' read a previous post that mentions that there is a pack of upgrade for 4.6, however, it is lower than the version on the media-, but still is unable to interpret all the current view v5 infrastructure.

    We have a flat network with no firewall rule from the SCOM server environmental view - is there something else, I'm missing?

    Any ideas would be helpful!

    see you soon

    Even if it shows the version as 4.5, it should work fine.

    See management packs will be available in c:\Program View\Server\extras\ManagementPacks VMware on the login server.

    Import Management Packs and installation. Discover the servers. Right-click on the discovered server and check "allow this agent to act as a proxy... "and say OK.

  • Time machine can not read my previous record

    I have reinstalled mac system and erase hard drive 3 weeks ago, but I didn't completely copy all of the files of music, so when I use time machine to restore it save only sometime after I reinstalled my mac.

    I wonder how I will get my previous record? What is the problem of the authority, if time machine won't let me read the previous record?

    someone knows how to fix this?

    Should have immediately restored the files... It will now make a mess.

    I assume that all the music files means your iTunes library... If not, what do you mean?

    Did you use the same name for Mac as it did on the old installation?

    You did backup on top of the existing backup or did you start a new backup.

    If you started a new backup, you can migrate files... open the utility Directory migration wizard and select the previous backup...

    However, there are questions if you used the same user name that you currently have... Tell me if you use the same computer name or the same username.

  • Isass.EXE - Security Accounts Manager initialization failed OXC0000001 to start Windows XP

    Original title: Isass. EXE-SYSTEM ERROR MESSAGE IS ON AN ANOTHER COMPUTER & WON "T START.

    This is the error message when I turn on computer ISASS. EXE-system error Security Accounts Manager... Intialzation failed due to the following error: a device attached to the system is not fuctioning - OXC0000001 error status

    Jacqui T Hi,.

    (1) since when are you facing this problem?

    (2) remember to make changes to the computer before this problem?

    This problem may occur if the file Security Accounts Manager (SAM) is damaged or missing.

    Step 1: You can follow the steps mentioned in the article below

    Error message "Security Accounts Manager initialization failed" when you start Windows XP

    http://support.Microsoft.com/kb/316751

    Thank you, and in what concerns:

    Ajay K

    Microsoft Answers Support Engineer

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Boot Manager Windows fails error 0xc000041c

    original title: laptop CRASH

    I HAVE A LAPTOP TOSHIBA SATELLITE THAT BROKE DOWN.  BOOT MANAGER WINDOWS fails to START, WITH AN ERROR CODE OF Oxc000014c, a FILE of the REGISTRY SYSTEM IS MISSING OR DAMAGED.  IS THERE A POSSIBLE SOLUTION.  I DON'T HAVE MY WINDOWS INSTALLATION DISC.

    Hello

    Try this

    the link below is how to download and get a vista disk startup repair, which you can start from the

    http://NeoSmart.net/blog/2008/Windows-Vista-recovery-disc-download/

    Here's how to use startup repair system restore command prompt, etc. to bleepingcomputers link below

    http://www.bleepingcomputer.com/tutorials/tutorial148.html

    to boot from the dvd drive to be able to you will see a way to get into the bios Setup at the bottom of the screen or command menu start

    It would be F2 or delete etc to enter the BIOS or F12 etc. for the start menu

    Change boot order it do dvd drive 1st in the boot order

    http://helpdeskgeek.com/how-to/change-boot-order-XP-Vista/

    and if all else fails and you need to reinstall vista are the normal methods for computers preinstalled vista portable

    Contact the computer manufacturer and ask them to send vista recovery discs

    they do it for a nominal cost of $

    also ask them if you have a recovery partition on your hard drive to get back to the way you bought

    you would normally press F10 or F11 or Alt + F10, 0 at startup to start the recovery process according to the manufacturer

    Ask them of the exact key sequence

  • Task Manager has been disabled by the previous administrator. How can I activate it?

    Task Manager has been disabled by the previous administrator. How can I activate it?

    Here is the procedure.  You must be logged as an administrator yourself to make this work. http://www.vistax64.com/tutorials/103275-task-manager-enable-disable.html.

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Managed Server failed with error libOvd

    Dear Experts,

    I have cluster with 6 Managed server environment configured in Machine 3. Machine has Admin and 2 Managed Server, Machine B has 2 Managed Server and Machine 3 has 2 Managed server. Recently, I have restarted all the managed server. The server managed on computer A another start that all servers are STATE of shows like "FAILED_NOT_REACHABLE". After that, I refer to the journal it shows the message below


    Log file:

    " The Managed server fails to start with this error: "JPS-02592: item"PoolCleanupinterval"could not send ldap configuration data to libOvd for the instance of service 'identity.ldap' in the context of JPS '..." "" not planned "

    The managed server fails to start with this error: "JPS-02592: failed to chase ldap config data to libOvd for instance 'identity.ldap' service in the context of JPS '..." "element" maxPoolConnectionIdleTime' does not wait

    For this issue, I refer doc oracle (Doc ID 1999999.1) . but this doc not provide patch for OAM managed server for custom weblogic. I recently installed 11g Oracle HTTP Server in the path of Middleware in the Admin of Machine (Machine A)

    Is this Cause Oracle HTTP Server problem? If it means, but I installed the HTTP server on the Server Admin not on Machine B and C, because the server could not start Machine B and C.

    Is this bug?. Can I use this patch for the normal weblogic instead of OAM managed server

    Note: I have weblogic version 10.3.6.

    This cause a major problem. Please give suggestions.

    Kind regards

    Ove.

    Hi Florent.

    My hypothesis is correct. After that I installed webtier on Machine A (Server Admin), it changes some files in the Ovdlib in the House of Middleware does level not the domain level. If the Remote Machine B and C of the Machine does not have this change so that the servers in the remote computer does not start. After that I installed the webtier on machine B and C changes that happened in the Machine B and C.Then servers managed in the Machine B and C are started... Thanks for your help;

    Kind regards

    Ove.

  • Update for the application manager has failed. Impossible to reinstall. Cannot use my apps. Get the 43 error message when I try to re - install. Is it possible to fix this problem without a wipe and load?

    Update for the application manager has failed. Impossible to reinstall. Cannot use my apps. Get the 43 error message when I try to re - install. Is it possible to fix this problem without a wipe and load?

    Error 43 https://forums.adobe.com/thread/2070909

  • VMware Update Manager - Setup failed with an unknown error. vCenter credentials could not be validated

    Hi all

    I have my getting the error next message when I try to install VUM.

    VMware Update Manager - Setup failed with an unknown error. vCenter credentials could not be validated

    Help, please.

    Hi John,.

    Please follow the link below.

    http://www.virtualmvp.com/VMware-Update-Manager-Setup-failed-with-an-unknown-error-vCenter-credentials-could-not-be-validated/

    Thank you

    Venance

  • Can I use Adobe Reader DC to insert bookmarks and hyperlinks in documents that have been scanned in pdf?

    Can I use Adobe Reader DC to insert bookmarks and hyperlinks in documents that have been scanned in pdf?

    Hello

    I'm sorry, but you can't add bookmarks and hyperlinks to PDF using CD player. It isn't the apt software to carry out the Assembly.

    You will need Acrobat to perform this function.

    Concerning

    Sukrit diallo

Maybe you are looking for