Solved

Looping through all the lines in a file.

Posted on 2011-03-15
2
348 Views
Last Modified: 2012-06-27
In oracle plsql, how to loop through each and every line in a flat file.

for eg, in and each every line, I need to check the position of a particuar word and store it in a variable.

how to do this?
0
Comment
Question by:sakthikumar
2 Comments
 
LVL 8

Accepted Solution

by:
Rindbaek earned 500 total points
ID: 35137218
Zea zodiac has a good answer here to reading the file line by line line just do what you need to do instead of the   "dbms_output.put_line(l_text);"
http://www.experts-exchange.com/Database/Oracle/Q_21081949.html

If the file is a text file with some sort of a seperator  you could see it as an external table instead.
http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/et_concepts.htm
0
 
LVL 15

Expert Comment

by:Devinder Singh Virdi
ID: 35141593
Can you please provide the sample of your flat file and desired output?
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.

Join & Write a Comment

Note: this article covers simple compression. Oracle introduced in version 11g release 2 a new feature called Advanced Compression which is not covered here. General principle of Oracle compression Oracle compression is a way of reducing the d…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
This video shows how to recover a database from a user managed backup
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

747 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

10 Experts available now in Live!

Get 1:1 Help Now