The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
awk updating one file with another, comparing, updating mecano Shell Programming and Scripting 11 3 Weeks Ago 03:50 AM
unix script for update or insert records from a file to a oracle table unihp1 UNIX for Advanced & Expert Users 1 06-11-2008 12:21 AM
Updating table on UNIX server using SFTP Pallavi_gondkar UNIX for Dummies Questions & Answers 1 04-04-2008 02:47 AM
updating a column in oracle table using shell script sveera Shell Programming and Scripting 3 05-09-2005 10:01 AM
updating a column in a unix table for a particular row thanuman Shell Programming and Scripting 4 04-26-2005 04:59 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-10-2008
Registered User
 

Join Date: Mar 2008
Posts: 4
Stumble this Post!
script for updating table using file(

Hi,

Data file path (.txt)
Control file(.ctl)

I have delimited file(|).
Sample data:
1|name|50009|DS24|0|12
2|name|30009|DS24|0|13
3|name|20409|DS24|0|14
4|name|20009|DS24|0|15
5|name|10009|DS24|0|16
I want to load this data into a oracle table (update and insert)

Please help me the commands and also syntax.
Unix server name is HU-UX

Thanks in advance.

Thanks and Regards,
Suri_unix
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 06-11-2008
Registered User
 

Join Date: Mar 2008
Posts: 4
Stumble this Post!
I tried using a temp table then I loaded the data from a file to temp table.
Once temp table having data, used oracle merge loaded the data in the target table. After the data is loaded into a target table, the temp table is dropped.
It is working fine.

But the DBA is not accepting to create temporary table. i am running my code in multiple instance. If I create more number of tables the performance will degrade.

Please help me on this.

Thanks and Regards,
Suri
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 11:53 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0