10-19-2007
Set Lines
Hi Deepak
The parameter you are looking for is the SET LINESIZE. It sets the number of characters as page width of the query results.
In you example, put this line after 'echo "set head off"':
echo "SET LINESIZE 300"
Regards,
Er
10 More Discussions You Might Find Interesting
1. Solaris
Hi Gurus,
I had downloaded the below script from the net and used it to get the Link and duplex settings in my Sun servers.
In all except one(Sol-5.10 on X86) i am getting output format like below:
root: /var/ADMIN/bin/speed_duplex.sh
Interface Speed Duplex
--------- ... (2 Replies)
Discussion started by: Hari_Ganesh
2 Replies
2. Shell Programming and Scripting
Hi,
I have two files , one file with data file with attributes that need to be sent to another file to generate a predefined format.
Example:
File.txt
AP|{SSHA}VEEg42CNCghUnGhCVg==
APVG3|{SSHA}XK|"password"
AP3|{SSHA}XK|"This is test"
....
etc
---------
test.sh has... (1 Reply)
Discussion started by: hudson03051nh
1 Replies
3. Shell Programming and Scripting
Hi
I have developed bash script to connect to database and execute .sql files. I am logging some statements in to log file using echo. While logging I am adding the date in front of the log statements which makes sense. I am unable to add date in front of output from the sqlplus and sqlldr,... (8 Replies)
Discussion started by: murtymvvs
8 Replies
4. Shell Programming and Scripting
Hi All,
I tried searching a lot about this but to no avail. I have a HTML file. I used
links -dump file_page.html > text_html.txt
What the above command gave me was a filtered text from the HTML file with tags removed. Now, the the output from the above command looked something like this:... (1 Reply)
Discussion started by: shoaibjameel123
1 Replies
5. Shell Programming and Scripting
Dear Friends,
Need your help.
$cat input.txt
TITLE
Date:01-01-2011
Day: Friday
Details Particulares Qty
$
$
$
$
$
$more test.sh
cat input.txt | while read line
do
echo "${line}"
done
$
$ (5 Replies)
Discussion started by: anushree.a
5 Replies
6. UNIX and Linux Applications
On psql
select titolo,lingua from titolo where titolo ~* 'brivid';
titolo | lingua
------- + ------
Brivido | 1
On Sqlplus/gqsql
SQL> select titolo,genere,anno,lingua from titolo where titolo like '%rivid%';
TITOLO... (6 Replies)
Discussion started by: Linusolaradm1
6 Replies
7. Shell Programming and Scripting
Hi All,
In unix is there any command to format the file in exact order.I have a file which there is no order in the fileds, I need to order it. Its a dat file
wrong format
TDEAIG36533827CB1210004241 EUR20130610BL1300351 refers to CB|CCI|A|A|C|R|T 246.76 ... (1 Reply)
Discussion started by: nag_sathi
1 Replies
8. Shell Programming and Scripting
i am using bash shell
Whenever i declare an array, and then using sqlplus, i am getting sqlplus error and return code 127.
IFS=","
declare -a Arr=($Variable1);
SQLPLUS=sqlplus -s "${DBUSER}"/"${DBPASS}"@"${DBASE}
echo "set head off ; " > ${SQLCMD}
echo "set PAGESIZE 0 ;" >> ${SQLCMD}... (6 Replies)
Discussion started by: arghadeep adity
6 Replies
9. Shell Programming and Scripting
Hi ,
i am generating some data by firing sql query with connecting to the database by my solaris box.
The below one should be the header line of my excel ,here its coming in separate row.
TO_CHAR(C. CURR_EMP_NO
---------- ---------------
LST_NM... (6 Replies)
Discussion started by: dani1234
6 Replies
10. UNIX for Beginners Questions & Answers
Hi,
I have some questions about sqlplus running from bash. I am still new and learning. I have the code shown below:
echo "exit" | sqlplus... (10 Replies)
Discussion started by: mohca2020
10 Replies
RESET(7) SQL Commands RESET(7)
NAME
RESET - restore the value of a run-time parameter to a default value
SYNOPSIS
RESET variable
RESET ALL
INPUTS
variable
The name of a run-time parameter. See SET [set(7)] for a list.
ALL Resets all settable run-time parameters to default values.
DESCRIPTION
RESET restores run-time parameters to their default values. Refer to SET [set(7)] for details. RESET is an alternate spelling for
SET variable TO DEFAULT
The default value is defined as the value that the variable would have had, had no SET ever been issued for it in the current session. The
actual source of this value might be a compiled-in default, the postmaster's configuration file or command-line switches, or per-database
or per-user default settings. See the Administrator's Guide for details.
See the SET manual page for details on the transaction behavior of RESET.
DIAGNOSTICS
See under the SET [set(7)] command.
EXAMPLES
Set DateStyle to its default value:
RESET DateStyle;
Set geqo to its default value:
RESET GEQO;
COMPATIBILITY
RESET is a PostgreSQL extension.
SQL - Language Statements 2002-11-22 RESET(7)