Discussions
Categories
- 385.5K All Categories
- 5.1K Data
- 2.5K Big Data Appliance
- 2.5K Data Science
- 453.4K Databases
- 223.2K General Database Discussions
- 3.8K Java and JavaScript in the Database
- 47 Multilingual Engine
- 606 MySQL Community Space
- 486 NoSQL Database
- 7.9K Oracle Database Express Edition (XE)
- 3.2K ORDS, SODA & JSON in the Database
- 585 SQLcl
- 4K SQL Developer Data Modeler
- 188K SQL & PL/SQL
- 21.5K SQL Developer
- 46 Data Integration
- 46 GoldenGate
- 298.4K Development
- 4 Application Development
- 20 Developer Projects
- 166 Programming Languages
- 295K Development Tools
- 150 DevOps
- 3.1K QA/Testing
- 646.7K Java
- 37 Java Learning Subscription
- 37.1K Database Connectivity
- 201 Java Community Process
- 108 Java 25
- 22.2K Java APIs
- 138.3K Java Development Tools
- 165.4K Java EE (Java Enterprise Edition)
- 22 Java Essentials
- 176 Java 8 Questions
- 86K Java Programming
- 82 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.3K Java SE
- 13.8K Java Security
- 208 Java User Groups
- 25 JavaScript - Nashorn
- Programs
- 667 LiveLabs
- 41 Workshops
- 10.3K Software
- 6.7K Berkeley DB Family
- 3.6K JHeadstart
- 6K Other Languages
- 2.3K Chinese
- 207 Deutsche Oracle Community
- 1.1K Español
- 1.9K Japanese
- 474 Portuguese
Sql Loader instead of Insert ?

Hi all,
I have a Insert into Table1 Select * from table2 in one of our procedures.
I am at this point aware that sql loader is used to insert into tables , data from external sources . Can I get this done using Sql loader completely replacing the above mentioned Insert/select.
If this is possible how I can go about it ?
Kindly guide me in this regard
with warm regards
ssr
Answers
-
Whats your version of oracle...?
Cheers,
Manik.
-
Not sure about SQL Loader,
Insert into Table1 Select * from table2 is a very good option. use it with APPEND hint if you are facing some performance issues.
-
hi manik
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
-
thanks Nimish
I will give a try to it ....
-
Yes agreed.. if we know the oracle version we can suggest using external table.. that is why I was curious to ask the version of oracle. That would be something similar to "insert into table select * from externaltable (which is direct replication of file)"
Cheers,
Manik.
-
Use Oracle external table directly and then you can use insert into <yourtable> select * from externaltable -- external table is direct representation of your file.
Read manual about that.
Cheers,
Manik.
-
Dear Manik ,
Thanks for your suggestion and the link
the task which I mentioned
Insert into Table1 Select * from table2
Both the tables Table1 to which records are inserted and Table2 from where records are selected are in the Oracle Database. We could have several tables from where the records are selected and inserted into Table1. Since this insert operation has been taking a long time . there was a suggestion that Sql loader can be used since It is more efficient than Insert . as I mentioned that I understand that sql loader is used for inserting data from external source. I was confused how sql loader can be used to select data from a table residing in oracle database and insert it into another table in the db.. The External Table enables us to access data in external external as if it were in a table in the database.
My predicament is can we use sql loader or External table instead of the Insert into Select from ...
With Warm Regards
ssr
-
Oh your question was ambigous to me.. If you have both tables on Oracle database, then go for
insert /*+ append*/ into <destination_table> select * from <source_table>
Cheers,
Manik.
-
Hey!!! SSR
if ur table2 is in ur database then its not possible to use sql Loader, coz sql loader tool is purely used to insert data into database from external tables which are not present/available in our oracle database which has different file format.
Insert into Table1 Select * from table2 would be ok for this,
or if u want to move the same data with the same structure into another database then u may use Datapump Imp/Exp
Regards,
Yousuf Khosa