[Solved] How to display only output of DBMS_OUTPUT.PUT_LINE , rest should be neglected
Hi All,
I Have written a script through that i am calling sql file
Sqlfile.sql
Its giving me following output
But i want to keep only the output this ie 21652,679 , rest i want to neglect ,
Is it possible to do it in sql only by setting some feature
ie set something off
Thanks
Last edited by radoulov; 05-22-2012 at 09:46 AM..
Reason: Marked as solved.
Hi,
I have created a pl/sql block utilises dbms_output.put_line. This script works fine when I call from sqlplus ie sqlplus @./scriptname but when I embed it within my shell script I get no output to screen so I end up with an empty spool file. I know it's executing successfully when called from... (6 Replies)
Hi folks,
Please advise which command/command line shall I run;
1) to display the command and its output on console
2) simultaneous to save the command and its output on a file
I tried tee command as follows;
$ ps aux | grep mysql | tee /path/to/output.txt
It displayed the... (7 Replies)
Dear All,
As I'm new here, please forgive me if any rule violation occurred.
I have a script like this:
#! /bin/ksh
# Author : Saptarshi
# Date : 18-Mar-2011
# Version : 1.0
Return_op=`sqlplus -s <<ENDOFSQL
db_user/db_pass@db_nm
WHENEVER SQLERROR EXIT 1
set ... (1 Reply)
I am trying to parse through set of data from large txt file and only intersted in output below . i am using below awk command to get the output but it only shows first line , i need to see the rest of the output under hardware inventory. see below
]$ awk '{ if ( $0 ~ "^Hardware inventory" )... (10 Replies)
Hi,
I have one hp-ux sytem date display problem when viewed remotely
hostA 21: date
Fri Jul 5 11:18:51 SST 2013
hostA 22: remsh hostB -l username -n date
2013年07月05日 11時32分27秒
But on actual system it display correctly:confused:
hostB 21: date
Fri Jul 5 11:40:33 SST 2013 (4 Replies)
A simple question, but i am finding it diffcult to find the answer.
Can you please tell me how i can get the output of two line on one.
I am aware i need to enter \ something, but no sure which charcter, can you advice.
CODE
for i in `cat LDN_HOSTS_190813 | grep -i LDN | awk '{print... (7 Replies)
Hello folks,
I've found an HP-UX server with a rare 'ls -l' output. Please see the attached file.
Anybody knows how can I change the output to not have this extra tabulations?
Thanks in advance! (10 Replies)
I have a need to grep a large number of files, but only display the first result from each file. I have tried to use grep, but am not limited to it. I can use perl and awk as well. Please help! (9 Replies)
I have came across a few websites stating some custom actions for Thunar -
crunchbang
ubuntu
I tried inputting the stated commands to Thunar, but it doesn't display at all in mine.
I tried "gksu thunar %f" ( Opens current folder with root permissions.) , but when I right click in a... (0 Replies)
Hello,
I'm trying to print the value of my cursor in the dbms_output.put_line in shell script, but it only shows "PL/SQL procedure successfully completed." nothing else. I have set serveroutput on,
Below is my script : Any advise would be really helpful.
sqlplus -s $ORACLE_LOGON <<EOF >>... (2 Replies)
Discussion started by: mail.chiranjit
2 Replies
LEARN ABOUT DEBIAN
swatch::threshold
Swatch::Threshold(3pm) User Contributed Perl Documentation Swatch::Threshold(3pm)NAME
Swatch::Threshold - Perl extension for thresholding in swatch(1)SYNOPSIS
use Swatch::Threshold;
&Swatch::threshold( SWID => <int>,
TYPE => <limit|threshold|both>,
TRACK_BY => <key>, # like an IP addr
COUNT => <int>,
SECONDS => <int>
);
SWATCH SYNTAX
threshold track_by=<key>,
type=<limit|threshold|both>,
count=<int>,
seconds=<int>
DESCRIPTION
SWID is swatch's internal ID number for the watchfor block
TYPE can be limit, threshold, or both
Limit - Alert on the 1st COUNT events during the time interval,
then ignore events for the rest of the time interval.
Threshold - Alert every COUNT times we see this event during the
time interval.
Both
Alert once per time interval after seeing COUNT occurrences of the
event, then ignore any additional events during the time interval.
SECONDS is the time interval
AUTHOR
E. Todd Atkins, todd.atkins@stanfordalumni.org
SEE ALSO perl(1), swatch(1).
perl v5.10.0 2006-07-21 Swatch::Threshold(3pm)