Oracle Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesOracle Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 10th, 2005, 03:58 PM
Swathi newbie Swathi newbie is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2005
Posts: 1 Swathi newbie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 26 m 30 sec
Reputation Power: 0
Lightbulb Exporting from Access 2000 to Oracle 9i

Hi Guys,

I am trying to export 10-71 tables(imported into access from oracle to make some manipulations) from Access to Oracle. I read couple of the postings in this forum and researched Sql*loader. I have a some questions regarding sql loader and about the control file

1. Is sql*loader the best tool that can be used for such exports?

2. During the process of exporting, do we have to export each table in Access into a delimited text file and then use loader to load it into Oracle?If there is an alternative , please explain. Can we do the exporting into oracle directly from access without the intermediate transformations into text files and also without the process of creating a table structure in oracle for the loader to later load the data from the delimited text file ?

3. What does Position in a control file mean.Is it compulsory to use it. I did read couple of references regarding it online, but I am still not clear on the concepts of its usage.

4. I tried the sql*loader, but I am facing some problems.Can someone please take a look and let me know where I need to make changesand what i should to solve my problem

The control file is:

part I:
_____

--This is a sample control file to load the tblcustomers table into oracle
LOAD DATA
INFILE 'd:\Database Tables\tblcustomers.txt'
BADFILE 'sample.bad'
DISCARDFILE 'sample.dsc'
--REPLACE
--APPEND
INSERT
INTO TABLE tblcustomers
fields terminated by ',' optioanlly enclosed by '"'
(CustomerID, CustomerName, Address, DicountRate, Term)

--------------------------------------
Tried the above code once, when by running the sqlldr at the command prompt with the oracle username/password and control file name with extension,

I am getting a message that
" commit point reached -- logical record count 4 "

My table tblcustomers in Access has only 4 records in it . So untill here everything is fine,however all my records are sent to the bad file rather than to my oracle table. What should I do to rectify this.
_____________________________________________
I tried using an other set of code for my control file with positions and stuff, which is given below
Part II
----------

--This is a sample control file to load the tblcustomers table into oracle
LOAD DATA
INFILE 'd:\Database Tables\tblcustomers.txt'
BADFILE 'sample.bad'
DISCARDFILE 'sample.dsc'

INSERT
INTO TABLE tblcustomers

(CustomerID POSITION(36) INTEGER,
CustomerName VARCHAR(38:90),
Address VARCHAR(100:200),
DiscountRate POSITION(*) FLOAT EXTERNAL,
Term POSITION(*) INTEGER EXTERNAL)

--------------------------------------------------------
I think that the above code will have to be changed as the position specified might be wrong, however, I am really not able to figure out what I should specify in the control file for say if my CUSTOMERNAME field is of type varchar(50) or (200) what ever and if my column CUSTOMERID is of type number(20) or say float(30)
___________________________________________
The table structure that I created
Name Null? Type
----------------------------------------- -------- ------------
CUSTOMERID NUMBER(20)
CUSTOMERNAME VARCHAR2(50)
ADDRESS VARCHAR2(100
TELEPHONE VARCHAR2(12)
DISCOUNTRATE NUMBER
TERM NUMBER



Some one please help me..

-Thanks for your help in advance

Reply With Quote
  #2  
Old August 10th, 2005, 08:44 PM
expert-database expert-database is offline
Permanently Banned
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 37 expert-database Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 6 h 56 m 52 sec
Warnings Level: 10
Number of bans: 1
Reputation Power: 0
Post

Hello,

SQL Loader is the best very fast , but it is necessary to know.

Try to import data with others tools :

DreamCoder for Oracle
www.mentattech.com

Oracle Migration Workbench
http://www.oracle.com/technology/tech/migration/workbench/index.html

SwisSQL
http://swissql.com/oracle-migration.html

Regards,
Comments on this post
pabloj disagrees: Please, try to help and don't simply advertise products

Reply With Quote
  #3  
Old August 24th, 2005, 06:28 PM
michaeljshannon michaeljshannon is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Posts: 26 michaeljshannon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 38 m 15 sec
Reputation Power: 0
Quote:
Originally Posted by Swathi newbie
Hi Guys,

I am trying to export 10-71 tables(imported into access from oracle to make some manipulations) from Access to Oracle. I read couple of the postings in this forum and researched Sql*loader. I have a some questions regarding sql loader and about the control file

1. Is sql*loader the best tool that can be used for such exports?

2. During the process of exporting, do we have to export each table in Access into a delimited text file and then use loader to load it into Oracle?If there is an alternative , please explain. Can we do the exporting into oracle directly from access without the intermediate transformations into text files and also without the process of creating a table structure in oracle for the loader to later load the data from the delimited text file ?

3. What does Position in a control file mean.Is it compulsory to use it. I did read couple of references regarding it online, but I am still not clear on the concepts of its usage.

4. I tried the sql*loader, but I am facing some problems.Can someone please take a look and let me know where I need to make changesand what i should to solve my problem

The control file is:

part I:
_____

--This is a sample control file to load the tblcustomers table into oracle
LOAD DATA
INFILE 'd:\Database Tables\tblcustomers.txt'
BADFILE 'sample.bad'
DISCARDFILE 'sample.dsc'
--REPLACE
--APPEND
INSERT
INTO TABLE tblcustomers
fields terminated by ',' optioanlly enclosed by '"'
(CustomerID, CustomerName, Address, DicountRate, Term)

--------------------------------------
Tried the above code once, when by running the sqlldr at the command prompt with the oracle username/password and control file name with extension,

I am getting a message that
" commit point reached -- logical record count 4 "

My table tblcustomers in Access has only 4 records in it . So untill here everything is fine,however all my records are sent to the bad file rather than to my oracle table. What should I do to rectify this.
_____________________________________________
I tried using an other set of code for my control file with positions and stuff, which is given below
Part II
----------

--This is a sample control file to load the tblcustomers table into oracle
LOAD DATA
INFILE 'd:\Database Tables\tblcustomers.txt'
BADFILE 'sample.bad'
DISCARDFILE 'sample.dsc'

INSERT
INTO TABLE tblcustomers

(CustomerID POSITION(36) INTEGER,
CustomerName VARCHAR(38:90),
Address VARCHAR(100:200),
DiscountRate POSITION(*) FLOAT EXTERNAL,
Term POSITION(*) INTEGER EXTERNAL)

--------------------------------------------------------
I think that the above code will have to be changed as the position specified might be wrong, however, I am really not able to figure out what I should specify in the control file for say if my CUSTOMERNAME field is of type varchar(50) or (200) what ever and if my column CUSTOMERID is of type number(20) or say float(30)
___________________________________________
The table structure that I created
Name Null? Type
----------------------------------------- -------- ------------
CUSTOMERID NUMBER(20)
CUSTOMERNAME VARCHAR2(50)
ADDRESS VARCHAR2(100
TELEPHONE VARCHAR2(12)
DISCOUNTRATE NUMBER
TERM NUMBER



Some one please help me..

-Thanks for your help in advance
1. There is a tool called Data Junction that is also very good. It has scripting capabilities and a runtime engine that can be used to batch process migrations. It also supports many file formats.

2. An alternative would be to use PERL scripts. You can open Access and Oracle simultaneously and perform a read / write function.

3. Position is used to select columns within a line. The first name of a user may be in columns 1-5 and the social security number may be in columns 12-20.

4. You need to examine the log file created. Also, by default, the loader will stop after 50 errors are encountered. Without knowing what the source file looks like and what ther errors are, it is impossible to surmise exactly what went wrong. Common errors include data type mismatch errors, field width errors and improper handling of NULLs.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesOracle Development > Exporting from Access 2000 to Oracle 9i


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway