?
Solved

Problems with DECIMALS WHILE IMPORTING ORACLE TABLES

Posted on 2001-08-20
12
Medium Priority
?
507 Views
Last Modified: 2012-08-13
This is the problem:

I need to import Oracle 8.0.5 tables in an Access 2000 database. Some fields in the tables are defined NUMBER 16,8. When I try to import the tables, a message box appears telling me that there is a decimal problems. (If I try to attach the tables, the problem appears too.)

Note: the problem doesn't appear  with Access 1997 and the importation works perfectly.

Could you be of any help?
0
Comment
Question by:her7
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +4
12 Comments
 
LVL 6

Expert Comment

by:PsychoDazey
ID: 6407137
What number is the error message?
0
 

Author Comment

by:her7
ID: 6407604
There is no message number in the dialog box except this information :

"The precision of the decimal field is too small to accept the value you try to add".
Also, there are an OK button and a HELP button, but help is not available.

I try to install Oracle version 8.1.7, but the problem always appears.
0
Does Your Cloud Backup Use Blockchain Technology?

Blockchain technology has already revolutionized finance thanks to Bitcoin. Now it's disrupting other areas, including the realm of data protection. Learn how blockchain is now being used to authenticate backup files and keep them safe from hackers.

 
LVL 1

Expert Comment

by:LogicalMan
ID: 6407664
her7,

  I have found a similar problem when importing currency details from a csv file. My way round this was to link to the import file (table, spreadsheet etc), read the items in as a variant then convert them before writing them to a local table.

HTH

Tony
0
 

Author Comment

by:her7
ID: 6407673
LogicalMan ...

Could you be more explicit ... please!
0
 

Author Comment

by:her7
ID: 6407683
Also,  when I try to link to the import file, all the fields contain "#ERROR".
0
 
LVL 3

Expert Comment

by:Koka
ID: 6407905
I guess it's you ODBC driver problem - try changing it. To my experience, with Oracle 7 I had problems with Oracle diver, while with Oracle 8 with the microsoft one.

If that's one-time task You could also try to import data as string and convert it to numbers in Access (say, create View in oracle with that Number(16,8) field converted to varchar2 and import that view).
Good luck
0
 
LVL 30

Expert Comment

by:hnasr
ID: 6408057
Could be a relevant question:
Question: Oracle numeric primary key showing as text in A/97
http://www.experts-exchange.com/jsp/qShow.jsp?ta=msaccess&qid=20153726

This was my comment:
From: hnasr

I am away from my Oracle to try. But I guess the NUMBER(16) format has no Integer equivalent in Access,
and hence it is translated to TEXT field.
---
The problem could be in the accuracy of the linked oracle table fields.
0
 
LVL 2

Expert Comment

by:hotbudare
ID: 6408273
Have u tried using the Decimal data type?

HTH/EQTA
T.S.U. Mario Osorio
Punto Fijo, falcon, Venezuela
0
 
LVL 7

Expert Comment

by:Nosterdamus
ID: 6408881
Hi her7,

Here are links to Oracle ODBC drivers. I suggest that you try to install the latest (for your version) and try again:

1. Oracle ODBC Drivers
http://otn.oracle.com/software/utilities/software_index.htm

2. Oracle Rdb ODBC Drivers
To download these drivers you have to be a member. Membership is free, so you should not have any problem downloading it once you sign up.

Hope this helps,

Nosterdamus
0
 
LVL 1

Accepted Solution

by:
LogicalMan earned 1200 total points
ID: 6410782
Her 7,

  The drivers you want should be in the MDAC 2.5 driver file available from Micrisoft.com - Downloads (Free download).

  Concerning my previous answer regarding importing. I link the external table, leaving all data types of the linked table to default.
I then open a recordset, in code, to this table, and raed in each field as a variant variable type, and then convert this into the correct variable type (e.g. Date/Time, Integer, String, Double, Long, etc, etc), before writing it out to the local table.
 This has two benefits::
1. You keep control over the data being entered into your local table, and
2. You can convert any dubious data types as you wish.

HTH

Tony
0
 
LVL 2

Expert Comment

by:hotbudare
ID: 6469170
??
0

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…
Suggested Courses

741 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question