Solved

Problems with DECIMALS WHILE IMPORTING ORACLE TABLES

Posted on 2001-08-20
12
489 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
  • 3
  • 2
  • 2
  • +4
12 Comments
 
LVL 6

Expert Comment

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

Expert Comment

by:PsychoDazey
ID: 6407163
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
 
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
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 
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 300 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

It took me quite some time to sort out all the different properties of combo and list boxes available from Visual Basic at run-time. Not that the documentation is lacking: the help pages are quite thorough and well written. The problem was rather wh…
Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

920 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now