Solved

How can I do this?

Posted on 2011-03-09
5
390 Views
Last Modified: 2012-05-11
I want to create a temporary table called TempSKUs using a comma delimited text file named
"TestData" stored in C:\Test folder.

I want to use the temporary table linked to tables from a database on a server.

How can this be done?

Thanks
0
Comment
Question by:kosenrufu
5 Comments
 
LVL 7

Expert Comment

by:MrNed
ID: 35090598
Two main ways:

1. Import the data into a table via SQL* Loader - http://www.orafaq.com/wiki/SQL*Loader_FAQ

2. Create an External Table which points to the file - http://www.orafaq.com/node/848
0
 

Author Comment

by:kosenrufu
ID: 35090733
Can I create a temp table using a .csv file?
0
 
LVL 7

Expert Comment

by:MrNed
ID: 35090761
Yes, either of those methods I linked to can achieve it. The first one moves the data into the database, the second one allows the database to read the data which stays in the file.
0
 
LVL 76

Expert Comment

by:slightwv (䄆 Netminder)
ID: 35094328
They really don't create a 'temp' table.  The only thing in Oracle that resembles a temp table is a Global Temporary Table and even those are persistent database objects (The stay around).

I also want to point out that with external tables, the text file has to be on the database server.  Using sql*loader the file can be anywhere.
0
 
LVL 2

Accepted Solution

by:
swadhinray earned 500 total points
ID: 35124968
You can go with external table to load access you file from oracle DB for more details please check this below link:

http://forums.oracle.com/forums/thread.jspa?threadID=2185649&tstart=0&messageID=9413234

And to get a grip on external table please check the links provided before by MrNed and also this link too:

http://www.morganslibrary.org/reference/externaltab.html

As this has shown a good example.

0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

744 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

12 Experts available now in Live!

Get 1:1 Help Now