- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Sql Loader Help
Operating System - HP-UX
1754914
Members
3885
Online
108827
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-03-2001 02:35 AM
тАО11-03-2001 02:35 AM
Sql Loader Help
Hai All,
I have a text file which contains the data to be inserted into table called INFO..
I have attached that txt file for reference.
I want to insert the data into the following table INFO into 6 different columns
Create table info
(a number,
b number
c number
d number
e number
f number);
For Eg:
-----------
4 2 120 106 24.07 43
442 2 106 104 20.49 35
using SQL LOADER
Any help is Appretiated..
B/Regds
Raj
I have a text file which contains the data to be inserted into table called INFO..
I have attached that txt file for reference.
I want to insert the data into the following table INFO into 6 different columns
Create table info
(a number,
b number
c number
d number
e number
f number);
For Eg:
-----------
4 2 120 106 24.07 43
442 2 106 104 20.49 35
using SQL LOADER
Any help is Appretiated..
B/Regds
Raj
Oracle DBA
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-03-2001 03:08 AM
тАО11-03-2001 03:08 AM
Re: Sql Loader Help
Hi,
how about first processing this file through sed or awk, and replacing all '->' and ':' by whitespace?? Afterwards you can use a very simple sql loader control file (fields seperated by whitespace).
good luck,
Thierry.
how about first processing this file through sed or awk, and replacing all '->' and ':' by whitespace?? Afterwards you can use a very simple sql loader control file (fields seperated by whitespace).
good luck,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-03-2001 03:31 AM
тАО11-03-2001 03:31 AM
Re: Sql Loader Help
Hai,
Thank you for your reply..Presently this database is running on NT.
Is there any alternative method???
B/Regds
Raj
Thank you for your reply..Presently this database is running on NT.
Is there any alternative method???
B/Regds
Raj
Oracle DBA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-03-2001 04:10 AM
тАО11-03-2001 04:10 AM
Re: Sql Loader Help
hi,
how about a perl script then ?
You could try this, I'll use the '>' as a separator, and consider the '-' as a negative sign, and then use its absolute value:
LOAD DATA
INFILE 'yourfile'
APPEND
INTO TABLE info
FIELDS TERMINATED BY whitespace
(a integer external terminated by '>' "abs(:a)" ,
b,
c terminated by ':',
d,
e,
f)
hmmm, not sure about the whole syntax, but gives you something to play with :)
good luck,
Thierry.
how about a perl script then ?
You could try this, I'll use the '>' as a separator, and consider the '-' as a negative sign, and then use its absolute value:
LOAD DATA
INFILE 'yourfile'
APPEND
INTO TABLE info
FIELDS TERMINATED BY whitespace
(a integer external terminated by '>' "abs(:a)" ,
b,
c terminated by ':',
d,
e,
f)
hmmm, not sure about the whole syntax, but gives you something to play with :)
good luck,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP