Home » SQL & PL/SQL » SQL & PL/SQL » Oracle 11g R2 (Red hat linux 6.4)
Oracle 11g R2 [message #609817] Wed, 12 March 2014 12:53 Go to next message
oradba123
Messages: 86
Registered: June 2009
Location: india
Member

Hi folks,

i have 2 tables named F571226, F751226_10march in two different schema testdta, backupdta respectively
Note: F571226 doesnt have any data in testdta schema, both have same columns names
Now my requirement is to insert data into F571226 from F571226_10march

but when i try to insert by below command it taking too time and failed

insert /*+ APPEND PARALLEL*/ into testdta.F571226 value select * from backupdta.F571226_10march14

shall i specify each field (columns name) instead of specifying source table (backupdta.F571226_10march) in the above syntax?. source table has got around 25000000 rows


please correct my syntax if it is wrong

insert /*+ APPEND PARALLEL */ nologging into testdta.F571226 value select col1, col2,col3,col4,col5 ................... from backupdta.F571226_10march.


thanks & regards
Re: Oracle 11g R2 [message #609818 is a reply to message #609817] Wed, 12 March 2014 13:10 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
https://community.oracle.com/thread/3530559

Please read and follow the forum guidelines, to enable us to help you:

http://www.orafaq.com/forum/t/88153/0/

[Updated on: Wed, 12 March 2014 13:11]

Report message to a moderator

Re: Oracle 11g R2 [message #609851 is a reply to message #609818] Thu, 13 March 2014 03:50 Go to previous messageGo to next message
oradba123
Messages: 86
Registered: June 2009
Location: india
Member

Hi black,

i have done that by below statment

insert /*+ APPEND */ into testdta.F571226 select /*+ APPEND */ * from backupdta.F571226_10march14


cheers. Mad

Re: Oracle 11g R2 [message #609853 is a reply to message #609851] Thu, 13 March 2014 03:56 Go to previous messageGo to next message
gazzag
Messages: 1118
Registered: November 2010
Location: Bedwas, UK
Senior Member
You didn't format your code, as requested by BlackSwan, to make it easier to read:

INSERT /*+ APPEND */ INTO testdta.f571226 
SELECT /*+ APPEND */ * 
FROM   backupdta.f571226_10march14 


If you want others to help you, you must also help them.

HTH
-g
Re: Oracle 11g R2 [message #609856 is a reply to message #609851] Thu, 13 March 2014 04:07 Go to previous message
Michel Cadot
Messages: 68645
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator

APPEND hint on SELECT is useless (ignored as irrelevant); you could use PARALLEL or PARALLEL(x) instead if your hardware and concurrent workload allow it.

Previous Topic: ANY,ALL Operators
Next Topic: How to identify special character
Goto Forum:
  


Current Time: Wed Apr 24 19:13:36 CDT 2024