Command meaning.


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Command meaning.
# 1  
Old 02-14-2005
Command meaning.

what does it mean

set linesize 200;
set linesize 2000;

i am spooling the data into a file .When i give 200 the size of file is 72MB.
When i give 2000 its 720 MB.How do i know if i am getting all the data.......?
# 2  
Old 02-14-2005
FROM GOOGLE

In SQLPLUS use the "set linesize n" command to the maximum line-width of your record.

SET LINESIZE {80|n}
Sets the total number of characters that SQL*Plus displays on one line before beginning a new line. It also controls the position of centered andright-aligned text in TTITLE, BTITLE, REPHEADER and REPFOOTER. You can define LINESIZE as a value from 1 to a maximum that is system dependent.

Example:
EMP:
LASTNAME Varchar2(30)
Firstname varchar2(30)
Phone varchar2(11)Comment varchar2(200)

For a table like that, the max linesize of the record would be 271 + 3 space characters
so I would probably set the linesize to 275.

Note: For checking whether you got all the data,you need to query.Use count for instance eg: select count(*) from tablename.
# 3  
Old 02-14-2005
if you use
Code:
set trimout on

it removes trailing blanks. Otherwise SQLPLUS will pad your output with trailing blanks up to the value of linesize.

And thumbsup is right - just count the lines in file - wc -l <filename>
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Compile command meaning?

cc -Wall -c ctest1.c ctest2.c whats meaning of -(hyphen before c and wall) (1 Reply)
Discussion started by: mahor1989
1 Replies

2. UNIX for Dummies Questions & Answers

Meaning of command ls -la

Hello everyone, I just began studying solaris 10. I have tried searching for the meaning of this command (ls -la ). Can anyone please explain to me what the command ls -la does? example ls -la /etc Thank you (5 Replies)
Discussion started by: cjashu
5 Replies

3. UNIX for Dummies Questions & Answers

meaning of swap -s command

Hi, Please explain about the command and its output swap -s in a very detailed manner (3 Replies)
Discussion started by: Ajoy
3 Replies

4. Shell Programming and Scripting

Meaning of "b" modifier in "sort" command

I need to sort the following file by the rhdiskpower devices in the last column: Total_MB Free_MB OS_MB Name Failgroup Library Label UDID Product Redund Path 1024 851 1024 OCRVOT1_0000 OCRVOT1_0000 System UNKNOWN ... (3 Replies)
Discussion started by: wjssj
3 Replies

5. Shell Programming and Scripting

^$$ meaning

Hi , Can anyone please let me know whta the follwoing piece of code for ScriptName=${0##*/} if pgrep -f "$ScriptName" | grep -v "^$$\$" ; then echo `date`": Sctipt $ScritName is already runnig" exit fi Thnx a lot in advance Please use code tags when posting data and code... (8 Replies)
Discussion started by: Pratik4891
8 Replies

6. UNIX for Dummies Questions & Answers

the meaning of "!:*" in "alias foo 'command\!:*' filename"

Hi: How can I remove my own post? Thanks. (2 Replies)
Discussion started by: phil518
2 Replies

7. UNIX for Dummies Questions & Answers

passwd command what is the meaning

Hello to everybody i have question i do the passwd -s -a commando and what to knos what is the meaning of the second row. PS NL LK to the side is the date of expiraton and then a 7 a 90 what is the meaning of all that? tHANK YOU FOR YOUR TIME. (1 Reply)
Discussion started by: enkei17
1 Replies

8. AIX

What's meaning of "POWER" in diag command.?

I ran 'diag' command to verify disk follow the below steps. DIAG------?task selection-------ssa service aid-----Link verification I found that there are 3 types of status. (Good, Failed and Power). scp2: pdisk23 D69E584F 0 16 Power scp2: pdisk19 D657E7A9 1 15 Power scp2: pdisk28... (1 Reply)
Discussion started by: pattarapongn
1 Replies

9. Shell Programming and Scripting

sed command meaning

Thanks guys for helping me out (2 Replies)
Discussion started by: chris1234
2 Replies

10. Shell Programming and Scripting

Command meaning

I know tr stands for table if i am not wrong but what does this whole command means can anyone give an idea ? | tr ' ' '\n' | sed -e "s/.*=\"\(.*\)\".*/\1/g (2 Replies)
Discussion started by: chris1234
2 Replies
Login or Register to Ask a Question