Solved

How can I do this?

Posted on 2011-03-09
5
391 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.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Cannot open form error 6 65
how to replace '&' and '()' in sql query for oracle using regex 8 59
Oracle Public Synonyms and Privileges 2 50
Queries 15 34
How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.

929 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

16 Experts available now in Live!

Get 1:1 Help Now