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


Please Help Members By Posting Answers For Below Questions

What are the main features of korn shell?

730


How to print/display the last line of a file in Unix?

755


What do you understand by the term filters?

735


Which language unix is written?

785


Which language is used in unix?

681


How to create files in unix?

715


What do you understand by unix shell?

733


What is ps1 and ps2 in unix?

727


What does the swapping system do if it identifies the illegal page for swapping?

837


What are the components of unix kernel?

762


How to check logs in unix?

789


What is unix kernel?

689


How do you determine and set the path in unix?

762


Why is it that it is not advisable to use root as the default login?

814


How to find out what processes are running in the background in unix?

763