Solved

How to connect ORACLE and unix

Posted on 1998-11-17
3
364 Views
Last Modified: 2010-04-21
please tell me how to create file that is the search result of
sql(oracle) in shell.
and how to use awk and sed to reedit it ??

thank you!
0
Comment
Question by:alcatelld
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 

Author Comment

by:alcatelld
ID: 2007905
Edited text of question
0
 
LVL 2

Expert Comment

by:seedy
ID: 2007906
Use the SQL*Plus commands
spool <filename>  - to start spooling
spool off  - to stop spooling.
Use this file with awk and sed!
0
 
LVL 3

Accepted Solution

by:
braveheart earned 50 total points
ID: 2007907
Then see the man pages for nawk because they are far more understandable than those for awk. The sed man pages are not too helpful so why not visit the seder's grab bag at http://www.wollery.demon.co.uk/. nawk is likely to be more use for table output, though.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

623 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