PDA

View Full Version : Read Text file into Oracle Reports


Rishka
03-17-2005, 05:40 AM
Hello

I a newbie to Oracle Reports, our requirement is to write a report from
a text file on the UNIX box, not from a database table.
I have knowledge of PL/SQL, and the UTL_FILE ppackage to extract the
file data and manipulate it..
I would write a stored procedure for this, but our managers do not want
us to write this data to a table and read it from there...

Is it possible to extract data using PL/SQL from a text file into
Oracle Reports?

Please advise, or point me to the correct help..

Thanks
R

GreyBeard
03-17-2005, 05:43 AM
On Thu, 17 Mar 2005 05:40:45 -0800, Rishka wrote:
Hello I a newbie to Oracle Reports, our requirement is to write a report from a text file on the UNIX box, not from a database table. I have knowledge of PL/SQL, and the UTL_FILE ppackage to extract the file data and manipulate it.. I would write a stored procedure for this, but our managers do not want us to write this data to a table and read it from there... Is it possible to extract data using PL/SQL from a text file into Oracle Reports? Please advise, or point me to the correct help..

Have you looked at the capability called 'External Table'. Works well if
you can define the external file in terms of one or more columns. Search
for "External Table" in the docco for a currently supported version of
Oracle.

Frank van Bortel
03-17-2005, 06:06 AM
Rishka wrote: Hello I a newbie to Oracle Reports, our requirement is to write a report from a text file on the UNIX box, not from a database table. I have knowledge of PL/SQL, and the UTL_FILE ppackage to extract the file data and manipulate it.. I would write a stored procedure for this, but our managers do not want us to write this data to a table and read it from there... Is it possible to extract data using PL/SQL from a text file into Oracle Reports? Please advise, or point me to the correct help.. Thanks R

Find new managers. Probably better: find other job; any firm
having this kind of managers...

Really... you have the text in a flat file; they want you
to use a monster like Oracle Reports to get the data
IN an Oracle instance, pre-process, report from it, format it
in another process (other machine, perhaps - application
server, anyone?) and create a file, that can
be saved on the filesystsem?!?
--
Regards,
Frank van Bortel

Paul
03-17-2005, 07:54 AM
"Rishka" <rishka@webmail.co.za> wrote:

I a newbie to Oracle Reports, our requirement is to write a report froma text file on the UNIX box, not from a database table.I have knowledge of PL/SQL, and the UTL_FILE ppackage to extract thefile data and manipulate it..I would write a stored procedure for this, but our managers do not wantus to write this data to a table and read it from there...


Why? Create a whole new database with just one table, just to reassure
them that this transferred data can in no way affect the live db?

Is it possible to extract data using PL/SQL from a text file intoOracle Reports?
Please advise, or point me to the correct help..


The only thing that I can think of is to read the file into something
else that Oracle can read - maybe another database? There are some
very good free ones out there!

And then through *_that_* connection via ODBC or whatever, you can
then write your report? Maybe even Excel?

Be sure and explain to your "manager" that these extra steps take
time and also complicate things, leading to an increased risk of
errors being introduced.


Paul...
R

--

plinehan __at__ yahoo __dot__ __com__

XP Pro, SP 2,

if Oracle group then
db := Oracle 9.2.0.1.0;
else
db := Interbase 6.0.2.0;
endif

As a courtesy to those who spend
time analyzing and attempting to
help, please do not top post.


MyLounge.com Site Map
Forum: Cars, Cell Phone, Database, Games, Home Improvement, IT, Music, School, Sports, Web Design, Web Server, Weight Loss

The MyLounge.com forum is intended for informational use only and should not be relied upon and is not a substitute for any advice. The information contained on MyLounge.com are opinions and suggestions of members and is not a representation of the opinions of MyLounge.com. MyLounge.com does not warrant or vouch for the accuracy, completeness or usefulness of any postings or the qualifications of any person responding. Please consult a expert or seek the services of an attorney in your area for more accuracy on your specific situation. Please note that our forums also serve as mirrors to Usenet newsgroups. Many posts you see on our forums are made by newsgroup users who may not be members of MyLounge.com Term of Service