unix command how to dispaly no of records in oracle?
Answer Posted / david
hey guys ..you are not getting the question .what the actual
question is ......
you have to display the no of records from the oracle table
by unix command ....
and the answer is ...
vi script.sh
sqlplus sys/123 as sysdba << abc
spool on
spool file_name
select * from scott.emp;
spool off
abc
exit
a=cat file_name|wc -l
echo this is ur $a no. of records in oracle's emp records...
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
How does unix operating system works?
How to check the date in unix?
How many types of files are there in unix?
What does a pipe(|) do?
What is unix structure?
Is unix an operating system?
What is unix computer?
Is unix a language?
What is source unix?
What is the core of unix operating system?
Why is it that it is not advisable to use root as the default login?
Explain pid.
What are the main features of unix?
If we are terminated at the middle of the program execution in UNIX,what will happen to the program, it will continue running r terminate r the o/p will be send to your mail?
How do I run a unix script?