Oracle data type: on storage data as NUMBER of versus BINARY_DOUBLE?

My request did a lot of scientific computing. The calculation uses double-precision variables in C and Java (both based on IEEE 754).

If my goal is to store these variables in Oracle 11.2 G database between the calculations, such as the value read FROM the database is an exact match with the value that is used to write to the database, would you recommend store variables as an Oracle Data Type of NUMBER of DOUBLE BINARY?

And, why?

Here, I am only concerned about the accuracy (speed or storage).

918175 wrote:
Same double precision in Java and C have figures largely exceeded 17 (decimal) (I forgot the exact number of digits, but he has more than 30 years). I guess what I mean is accurate with respect to the first 17 digits (decimal), as the others have little or no effect in calculations.

If you care just the 17 first decimal digits being the same after the persistence of data, it should not matter if you use NUMBER or BINARY_DOUBLE (or RAW). I prefer strongly NUMBER or BINARY_DOUBLE because then, you can use data outside your application in the future if someone wants to write a report.

Justin

Tags: Database

Similar Questions

  • -Error ORA-00932: inconsistent data types: expected TANK got the NUMBER

    Here is my report query...
    select 
    *
    from   DW_RFA_JOBDATA
    where  FINISH_TIME >= :P1_START_DATE 
    and FINISH_TIME < :P1_END_DATE
         AND RFA_FLAG = (CASE :P1_JOB_CLASSIFICATION WHEN '0' THEN 'LSF'
                                      WHEN '1' THEN 'NON-LSF' 
                                      ELSE RFA_FLAG END)
    The column data type RFA_FLAG is NUMBER(*,0)... I'm view RSA and RSA - not the area of selection, but I get the error ORA-00932: inconsistent data types: expected TANK got the NUMBER >

    I have created a static LOV with LST display 0 return
    Display NON - RSA 1 return...

    Could any body please help me in truble shooting error? How to to convert the data type to number, I have no privileges to make changes to the table...

    Mark you my previous answer as correct? (MOST POINTS!  :))

  • Create a table with all kinds of oracle data types?

    Hello
    who can give me a small example to create a table with all kinds of oracle data types? and the example to insert it?

    Thank you
    Roy

    Hello

    Read the fine manual. It contains examples at the end of the chapter.

    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14200/statements_7002.htm

    I don't know if you know that you can also create your own data types using 'create a type '. So look for examples that are of your interest and not for all types of data.

    Concerning

    Published by: skvaish1 on February 16, 2010 15:33

  • Can anyone tell me about Oracle Data Governance Manager? How to do with it?

    Hai all,

    We plan to implement Oracle Master Data Management.Please Oracle customer hub should be read the following link and tell me how to work on Oracle Data Governance Manager.

    Where can I find it?

    What are the steps in the implementation?

    http://www.Oracle.com/us/products/applications/master-data-management/Oracle-customer-hub-439838.PDF

    Hello Nandini,

    DGM software build can be downloaded from My Oracle Support via the "Patches and updates" tab with the name/number of patch 9329831 (currently password protected; please connect to a service request and ask for a password).

    Installation of the DGM: for more information on how to install the CMD are documented in siebel Guide Version to maintain 8.1.1.x, O Rev., Section: management and governance of data installation (DGM).

    Steps to customize the application of governance (DGM) (Doc ID 1323952.1) data management
    Document provides steps to customize the application of the DGM, makes it easier to change the skin via CSS stylesheet changes in the application of OOTB DGM.

    Reference: Oracle Master Data Management - Information Center Customer Hub (Siebel UCM) - installation of the life cycle (Doc ID 1081980.1).

    Thank you

    Shilpi

  • Unable to see patterns while improving to Oracle Data Integrator 12cR1 (12.1.2.0.0) version

    Hello

    I use windows 7 Professional (service pack 1) 64 bit operating system.

    I am trying to run the ua.bat file to upgrade the system to 12 c.

    I chose the following options after running the upgrade wizard

    patterns-> Oracle Data Integrator.

    Then in step 5.

    Type of database: Oracle database and details to connect to the database.

    But after connecting, I only see the TEST_MASTER schema and nothing else.


    Thanks and greetings

    Sunil



    Hello

    I tried your method, but I discovered that the schema will be shown falling down only if they are created using tool provided by oracle RCU. So what I've done is created a new schema using odi RCU 11.1.1.7 version, then created master repository to help to odi, then any data from the previous version to this same data also imported to repository work and then began the process of upgrading again.

  • ODI LKM Oracle for Oracle Data Pump question

    Hi all

    I have a weird problem, ODI.

    I associate myself with per_all_people_f, fnd_user to load the w_user_ds using Oracle Data Integrator. The used LKM is LKM Oracle for Oracle Data Pump.

    Fine when I run the interface. I am getting below error

    ODI-1227: task failed USER_DATA_SET (load) on the source of connection ORACLE EBS.

    Caused by: java.sql.SQLSyntaxErrorException: ORA-00923: KEYWORD not found where expected

    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:462)

    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)

    at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:931)

    at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:481)

    at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:205)

    at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:548)

    at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:217)

    at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:1115)

    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1488)

    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3769)

    at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3954)

    at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1539)

    at oracle.odi.runtime.agent.execution.sql.SQLCommand.execute(SQLCommand.java:163)

    at oracle.odi.runtime.agent.execution.sql.SQLExecutor.execute(SQLExecutor.java:102)

    at oracle.odi.runtime.agent.execution.sql.SQLExecutor.execute(SQLExecutor.java:1)

    at oracle.odi.runtime.agent.execution.TaskExecutionHandler.handleTask(TaskExecutionHandler.java:50)

    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.processTask(SnpSessTaskSql.java:2913)

    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2625)

    at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:577)

    at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:468)

    at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2128)

    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ 2.doAction(StartSessRequestProcessor.java:366)

    at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)

    at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:300)

    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$ 0 (StartSessRequestProcessor.java:292)

    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ StartSessTask.doExecute (StartSessRequestProcessor.java:855)

    at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:126)

    to oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$ 2.run(DefaultAgentTaskExecutor.java:82)

    at java.lang.Thread.run(Thread.java:662)

    The generated code is

    create the table 780021 X

    (

    C1_FIRST_NAME,

    C2_MID_NAME,

    C3_LAST_NAME,

    C4_FULL_NAME,

    C5_NAME_SUFFIX,

    C6_SEX_MF_CODE,

    C7_SEX_MF_NAME,

    C8_COUNTRY_NAME,

    C9_LOGIN,

    C10_CREATED_BY_ID,

    C11_CHANGED_BY_ID,

    C12_CREATED_ON_DT,

    C13_CHANGED_ON_DT,

    C14_AUX1_CHANGED_ON_DT,

    C15_SRC_EFF_TO_DT,

    C16_INTEGRATION_ID,

    C17_EFFECTIVE_START_DATE

    )

    (EXTERNAL) ORGANIZATION

    TYPE oracle_datapump

    Dat_dir default DIRECTORY

    LOCATION ("X780021.exp")

    )

    PARALLEL

    in SELECT

    ALL_PEOPLE_F.FIRST_NAME,

    ALL_PEOPLE_F.MIDDLE_NAMES,

    ALL_PEOPLE_F.LAST_NAME,

    ALL_PEOPLE_F.FULL_NAME,

    ALL_PEOPLE_F.SUFFIX,

    ALL_PEOPLE_F.SEX,

    ALL_PEOPLE_F.SEX,

    ALL_PEOPLE_F.NATIONALITY,

    USER. USER_NAME,

    ALL_PEOPLE_F.CREATED_BY,

    ALL_PEOPLE_F.LAST_UPDATED_BY,

    ALL_PEOPLE_F.CREATION_DATE,

    ALL_PEOPLE_F.LAST_UPDATE_DATE,

    ALL_PEOPLE_F.CREATION_DATE,

    ALL_PEOPLE_F.EFFECTIVE_END_DATE,

    USER. USER_ID,

    ALL_PEOPLE_F.EFFECTIVE_START_DATE

    from APPS. FND_USER USER, APPS. PER_ALL_PEOPLE_F ALL_PEOPLE_F

    where (1 = 1)

    And (ALL_PEOPLE_F.PERSON_ID = USER. EMPLOYEE_ID)

    I don't see what is the problem here.

    Someone can help me.

    Thank you and best regards,

    Krishna Prasad

    I found the problem, its with the way ODI generated alias for the FND_USER table, by default it produces USER as an alias, which is a keyword from oracle. We just need to rename it to something else, and it worked.

  • Export schema through Oracle data pump with question database Vault enabled

    Hello

    I installed and configured Vault database on an Oracle 11 g - r2 - 11.2.0.3 to protect a specific schema (SCHEMA_NAME) via a Kingdom. I followed the following doc:
    http://www.Oracle.com/technetwork/database/security/TWP-databasevault-DBA-BestPractices-199882.PDF
    to ensure that the system and the network user has sufficient rights to complete a schedule pump data Oracle export operation.

    I.e. I gave sys and system the following:
    execute dvsys.dbms_macadm.authorize_scheduler_user ('sys', 'SCHEMA_NAME');
    execute dvsys.dbms_macadm.authorize_scheduler_user ('system', 'SCHEMA_NAME');

    execute dvsys.dbms_macadm.authorize_datapump_user ('sys', 'SCHEMA_NAME');
    execute dvsys.dbms_macadm.authorize_datapump_user ('system', 'SCHEMA_NAME');

    I also create a second domain on the same schema (SCHEMA_NAME) to allow sys and system to manage indexes for the actual tables protected, in order to allow a system to manage indexes for the tables of protected area and sys. This separate realm was created for all types of indexes: Index, Partition of Index and Indextype, sys and system were allowed as the OWNER of this Kingdom.

    However, when I try and complete an operation of Oracle Data Pump export on the schematic, I get two errors directly after the following line appears in the export log:

    Processing object type SCHEMA_EXPORT/TABLE/INDEX/DOMAIN_INDEX/INDEX:
    ORA-39127: unexpected error of the call to export_string: = SYS. DBMS_TRANSFORM_EXIMP. INSTANCE_INFO_EXP('AQ$_MGMT_NOTIFY_QTABLE_S','SYSMAN',1,1,'11.02.00.00.00',newBlock)
    ORA-01031: insufficient privileges
    ORA-06512: at "SYS." DBMS_TRANSFORM_EXIMP', line 197
    ORA-06512: at line 1
    ORA-06512: at "SYS." Dbms_metadata", line 9081
    ORA-39127: unexpected error of the call to export_string: = SYS. DBMS_TRANSFORM_EXIMP. INSTANCE_INFO_EXP('AQ$_MGMT_LOADER_QTABLE_S','SYSMAN',1,1,'11.02.00.00.00',newBlock)
    ORA-01031: insufficient privileges
    ORA-06512: at "SYS." DBMS_TRANSFORM_EXIMP', line 197
    ORA-06512: at line 1
    ORA-06512: at "SYS." Dbms_metadata", line 9081

    The export is completed, but this error.

    Any help, pointers, suggestions, etc. in fact no matter what will be very welcome at this stage.

    Thank you

    I moved the forum thread on the "database - security. If the document does not help, pl open an SR with Support

    HTH
    Srini

  • Trying to Oracle data BINDING

    This should be very simple, but it gives me a lot of problems. I am return to Oracle data in a datagrid, and then I'm trying to use the BINDING attribute on CFINPUT tag to display the data. The data does not, if I change the data source to something else (MS Access), it works. Has anyone seen problems of Oracle data binding in a CFINPUT tag? Here is my code:

    < cfform format 'AFSContactInfo' = 'flash' width = name = "800" height = "350" >

    < cfformgroup type is "Panel" label is "Contacts" >
    <! - grid with contact names - >
    < name cfgrid = request "contactGrid" = "getAFSInfo" height = "220" rowheaders = "false" >
    < name cfgridcolumn = "obg_no" header = "Debtor" / >
    < name cfgridcolumn = "name" header = "Name" / >
    < cfgridcolumn = header "addr_3" name = "Address" / >
    < name cfgridcolumn = "City" header = "City" / >
    < name cfgridcolumn = "st" header = "State" / >
    < name cfgridcolumn = "zip" header = "Zip" / >
    < / controls cfgrid >

    < cfformgroup type = "horizontal" >


    "< cfinput type ="text"name ="sel_name"bind =" {contactGrid.selectedItem.name} "label =" name of salt: "SIZE ="20">

    < cfinput type = "submit" name = "submitBtn" value = "Submit" / >
    < / cfformgroup >
    < / cfformgroup >
    < / cfform >

    I thought about it. I tried to reference the Oracle column
    contactGrid.selectedItem.name
    and it should have been
    contactGrid.selectedItem.NAME

    Oracle is case sensitive

  • Oracle data protection

    Can someone tell me please in the right direction. Is there a difference between the Oracle Data Protection Tivoli, Tivoli Storage Manager, and Data Protection. What I need to figure out what I need to get working with TDP RMAN. The environment is R2 AIX and Oracle 10 g

    Tivoli Storage Manager (TSM) is the main software.
    Data protection (there are several for Oracle of the different dbs, SQL Server etc.) is specifically designed for backup and restore of the databases.

    You can not install NT without installed first TSM.

    Hope that helps.

  • Why not place the Oracle data files on local disks

    Hi, I want to ask a fundamental question.

    Almost any Oracle installation I've seen, data files have been placed on Mount points, disk etc..

    Is there a reason for this? Why no one does place for local disks oracle data files? I couldn't find the answer on the installation guide

    I ask this because I will install oracle (10g) on vmware and trying to decide whether to put data on the vmdk (virtual computer local disk) files...
    Is - this recommended? If not, why it is recommended to put data files to a disc of fixation for point/external etc..


    Thanks in advance

    Hello

    People store data files on separate disks
    (1) bettter performance
    (2) the data can be in a centralized storage
    (3) if the OS crashes always files are safe
    (4) configurable with raid options
    (5) hot Swapping
    (6) easily can add additional storage

    Kind regards
    Delphine K

  • SSRS for lack of outer join with the Oracle data source

    It seems to be a problem with the Oracle driver used in the Reporting SERVICES query designer.

    When you use an Oracle data source, if I create an outer join in the graphic designer, it automatically inserts '{OJ' before the join and '} ' after her.  This is an incorrect syntax for Oracle and refuses to start.  The curly braces and the JO editable in designer text, but if I go back to the graphic designer and immediately to reintegrate them.

    Only, this has started to happen a year or two ago - before that it worked, but with the old (+) syntax.

    Can it not be healed?  It makes things very difficult.

    -Geoff

    Hi Geoff,

    Thanks for posting in the Microsoft Community.

    However, the question you posted would be better suited in the Forums of the Oracle Support; We recommend that you post your query in Oracle Support Forums to get help:

    https://forums.Oracle.com/forums/main.jspa;JSESSIONID=8d92100c30d8fb401bcbd10b46c38c9ddf1a3242549a.e34SbxmSbNyKai0Lc3mPbhmSc3aNe0? CategoryID = 84

    If you have any other questions or you need Windows guru, do not hesitate to post your questions and we will be happy to help you.

  • I need to know the file current date/time number stamp and the version of "spoolsv.exe" in Vista Home Premium 32-bit with SP2.

    I need to know the file current date/time number stamp and the version of "spoolsv.exe" in Vista Home Premium 32-bit with SP2. My spooler file got corrupted and I need to know what that the stamp of date/time on the latest version of the file: spoolsv.exe. I did a search on my hard drive and found 8 copies of the file with 7 different dates. I need to know which copy in my file C:\windows\system32\. I suspect that the problem was caused by some kind of malware. I think that some of the different versions on my machine of the initial installation of the Vista, SP1 and SP2. 3 copies that would explain. I tried all the suggestions in this forum and several others. I tried sfc/scannow and it simply replaces the corrupted file by another. I understand how works this file and a simple copy will do the trick if I knew that the file to use. I know that I don't want to go back to the first version of 2006.  BTW... my symptoms are all my printers have disappeared, and when I try to 'add a new printer' I get an error message saying that my spooler service does not work. When I opened my services window it shows that indeed, he is arrested, but I will not start because the description column contains only the code garbled machine indicating that the file is corrupted, or it may contain a virus. I had been using F-Prot until this virus got by and now I use AVG. I scanned my machine with several cleaning packages and it is is more infected, but I worry that from this corrupt file grow something. I know that the problem is not with my printers or drivers, because everyone on my home network can print on all of my printers. None of the people I know are on Vista 32 bit. They are all running System 7 or XP. I have XP, except that a few years ago I suffered from the "Syndrome of Pepsi" on my laptop and when I bought a new HP, it came with Vista.

    Version 6.0.6002.18294

    Day 17/08/2010

    Duration 14:11

    Duration may vary in different time zones.

  • RDF Triple in Oracle Data Miner

    Minor data read Oracle triples of RDF data if will want to do a classification to them? or it reads only flat data? There are links on how to use minor oracle data to perform the ranking on triple RDF data?

    Hello

    Very good question! How to get RDF to work with ODM is simple. You can create the view or a physical table based on a query SPARQL (which, in your case, aims to release interesting part of the graph that you want to perform the classification on). After that, simply feed this view or table to ODM tool.

    Following 24-40 presentation of presentation slides on the integration of RDF in R, ODM and OBIEE. They might be useful.

    http://download.Oracle.com/otndocs/tech/semantic_web/PDF/semtech2012_presentations/semtech2012_candidate_v5.PDF

    Thank you

    Zhe Wu

  • How to get the column provided out of the Oracle Data Miner?

    Hi all!

    I use Oracle Data Miner provided with Oracle SQL Developer to predict the loss of customers. If I plan on the table column lets say X (as a target column) of table say T, so how can I get the corresponding values under my model?

    Here is the simplified model for the reference.

    Thanks in advance!

    Customer churn.PNG

    Hello

    Simply connect a node that accepts data to the node to apply it.

    For example, if you want to create a view or table table using the prediction of outputs generated by the node to apply it, and then add a Create Table node and connect the node to apply it.

    For more information, try the Oracle by example tutorials for ODMr.

    You must use the node apply Publisher to revise prediction outputs models to generate as well as the additional columns to include, for example columns id.

    There are a set of predictor columns added by default that may be acceptable.

    THX, mark

  • ORACLE DATA GUARD

    Hello everyone

    Je challenge me make a lab for learn ORACLE DATA GUARD technically, my question is what is possible to make this work between two VM Machine,

    If Yes so What are the Prerequisites at the end of success in this challenge

    thnx

    It is quite possible. I myself learned per virtual machine.

Maybe you are looking for