ISQL syntax


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting ISQL syntax
# 1  
Old 07-20-2011
ISQL syntax

Hi All,

I'm niks and i'm a newbie here and newbie in shell, i'm just wondering what is the meaning of -U -P -S in the sample script below.

"-U iccbs_dbo -P iccbsdbo -S CCB_REO"

Thanks,
# 2  
Old 07-20-2011
execute the below command

Code:
 
$ isql --help

Code:
 
 
$ isql --help
usage: isql [option1] [option2] ... where [options] are ...
  -b                   Disables the display of the table headers output.
  -e                   Echoes input.
  -F                   Enables the FIPS flagger.
  -p                   Prints performance statistics.
  -n                   Removes numbering and prompt symbol when used with -e.
  -v                   Prints the version number and copyright message.
  -W                   Turn off extended password encryption on
                       connection retries.
  -X                   Initiates the login connection to the server with
                       client-side password encryption.
  -Y                   Tells the Adaptive Server to use chained transactions.
  -Q                   Enables the HAFAILOVER property.
  -a display_charset   Used in conjunction with -J to specify the character set
                       translation file (.xlt file) required for the conversion.
                       Use -a without -J only if the client character set is
                       the same as the default character set.
  -A packet_size       Specifies the network packet size to use for
                       this isql session.
  -c cmdend            Changes the command terminator.
  -D database          Selects the database in which the isql session begins.
  -E editor            Specifies an editor other than the default editor vi.
  -h header            Specifies the number of rows to print between
                       column headings.
  -H hostname          Sets the client host name.
  -i inputfile         Specifies the name of the operating system file
                       to use for input to isql.
  -I interfaces_file   Specifies the name and location of the interfaces file.
  -J client_charset    Specifies the character set to use on the client.
  -K keytab_file       Specifies the path to the keytab file used
                       for authentication in DCE.
  -l login_timeout     Specifies the number of seconds to wait for the server
                       to respond to a login attempt.
  -m errorlevel        Customizes the error message display.
  -M labelname labelvalue
                       Used for security labels. See CS_SEC_NEGOTIATE
                       for more details.
  -o outputfile        Specifies the name of an operating system file to 
                       store the output from isql.
  -P password          Specifies your Adaptive Server password.
  -R remote_server_principal
                       Specifies the principal name for the server as defined 
                       to the security mechanism.
  -s col_separator     Resets the column separator character, which is
                       blank by default.
  -S server_name       Specifies the name of the Adaptive Server to which.
                       to connect to.
  -t timeout           Specifies the number of seconds before a SQL command
                       times out.
  -U username          Specifies a login name. Login names are case sensitive.
  -V [security_options]
                       Specifies network-based user authentication.
                       Valid [security_options]:
                       c - Enable data confidentiality service.
                       i - Enable data integrity service.
                       m - Enable mutual authentication for connection
                           establishment.
                       o - Enable data origin stamping service.
                       q - Enable out-of-sequence detection.
                       r - Enable data replay detection.
                       d - Requests credential delegation and forwards
                           client credentials.
  -w column_width      Sets the screen width for output.
  -y sybase_directory  Sets an alternate location for the Sybase home directory.
  -z localename        Sets the official name of an alternate language to
                       display isql prompts and messages.
  -Z security_mechanism
                       Specifies the name of a security mechanism to use
                       on the connection.
  -x trusted.txt_file  Specifies an alternate trusted.txt file location.
  --retserverror       Forces isql to terminate and return a failure code when
                       it encounters a server error of severity greater than 10.
  --conceal [wildcard] Obfuscates input in an ISQL session. The optional
                       wildcard will be used as a prompt.
  --appname application_name
                       Replaces the default 'isql' application name in
                       the server with 'application_name'.
  --history [p]length [--history_file file_name]
                       Activates command history of <length> commands in isql.
                       With 'p' history will be saved at the end of the session.
                       --history_file file_name  Path to, and including name of
                                                 the command history file.

# 3  
Old 07-20-2011
Quote:
Originally Posted by itkamaraj
execute the below command

Code:
 
$ isql --help

Code:
 
 
$ isql --help
usage: isql [option1] [option2] ... where [options] are ...
  -b                   Disables the display of the table headers output.
  -e                   Echoes input.
  -F                   Enables the FIPS flagger.
  -p                   Prints performance statistics.
  -n                   Removes numbering and prompt symbol when used with -e.
  -v                   Prints the version number and copyright message.
  -W                   Turn off extended password encryption on
                       connection retries.
  -X                   Initiates the login connection to the server with
                       client-side password encryption.
  -Y                   Tells the Adaptive Server to use chained transactions.
  -Q                   Enables the HAFAILOVER property.
  -a display_charset   Used in conjunction with -J to specify the character set
                       translation file (.xlt file) required for the conversion.
                       Use -a without -J only if the client character set is
                       the same as the default character set.
  -A packet_size       Specifies the network packet size to use for
                       this isql session.
  -c cmdend            Changes the command terminator.
  -D database          Selects the database in which the isql session begins.
  -E editor            Specifies an editor other than the default editor vi.
  -h header            Specifies the number of rows to print between
                       column headings.
  -H hostname          Sets the client host name.
  -i inputfile         Specifies the name of the operating system file
                       to use for input to isql.
  -I interfaces_file   Specifies the name and location of the interfaces file.
  -J client_charset    Specifies the character set to use on the client.
  -K keytab_file       Specifies the path to the keytab file used
                       for authentication in DCE.
  -l login_timeout     Specifies the number of seconds to wait for the server
                       to respond to a login attempt.
  -m errorlevel        Customizes the error message display.
  -M labelname labelvalue
                       Used for security labels. See CS_SEC_NEGOTIATE
                       for more details.
  -o outputfile        Specifies the name of an operating system file to 
                       store the output from isql.
  -P password          Specifies your Adaptive Server password.
  -R remote_server_principal
                       Specifies the principal name for the server as defined 
                       to the security mechanism.
  -s col_separator     Resets the column separator character, which is
                       blank by default.
  -S server_name       Specifies the name of the Adaptive Server to which.
                       to connect to.
  -t timeout           Specifies the number of seconds before a SQL command
                       times out.
  -U username          Specifies a login name. Login names are case sensitive.
  -V [security_options]
                       Specifies network-based user authentication.
                       Valid [security_options]:
                       c - Enable data confidentiality service.
                       i - Enable data integrity service.
                       m - Enable mutual authentication for connection
                           establishment.
                       o - Enable data origin stamping service.
                       q - Enable out-of-sequence detection.
                       r - Enable data replay detection.
                       d - Requests credential delegation and forwards
                           client credentials.
  -w column_width      Sets the screen width for output.
  -y sybase_directory  Sets an alternate location for the Sybase home directory.
  -z localename        Sets the official name of an alternate language to
                       display isql prompts and messages.
  -Z security_mechanism
                       Specifies the name of a security mechanism to use
                       on the connection.
  -x trusted.txt_file  Specifies an alternate trusted.txt file location.
  --retserverror       Forces isql to terminate and return a failure code when
                       it encounters a server error of severity greater than 10.
  --conceal [wildcard] Obfuscates input in an ISQL session. The optional
                       wildcard will be used as a prompt.
  --appname application_name
                       Replaces the default 'isql' application name in
                       the server with 'application_name'.
  --history [p]length [--history_file file_name]
                       Activates command history of <length> commands in isql.
                       With 'p' history will be saved at the end of the session.
                       --history_file file_name  Path to, and including name of
                                                 the command history file.

oh i see.. thank you very much sir.. this help me a lot as a newbie.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Isql and If Exist syntax error in UNIX script

Hello Everyone, Coming again for your help to solve the below error: In a script, i had created a temp table (Temp_table) and loaded the data in it using bcp command (performed successfully) and I wanted to move it to the preferred table (called Main_table) for further use. hence I have added... (7 Replies)
Discussion started by: Suresh
7 Replies

2. Shell Programming and Scripting

Isql syntax error in UNIX script

Hello Everyone, Coming again for your help to solve the below error: In a script, i had created a temp table (Temp_table) and loaded the data in it using bcp command (performed successfully) and I wanted to move it to the preferred table (called Main_table) for further use. hence I have added... (1 Reply)
Discussion started by: Suresh
1 Replies

3. Programming

New to ISQL

Hello, I am having sybase database want to use ISQL to extract some data. Can someone please provide the link from where i can download freeware ISQL. Also documents which i can read and know 1. How to get he list of tables. 2. How to check data inside the table. 3. How to make queries etc.... (1 Reply)
Discussion started by: rajjev_saini123
1 Replies

4. Shell Programming and Scripting

Can't log in with -P for isql

Hi all, I am a newbie with isql, so couldn't find what is the problem by myself. I am writing script at Solaris which will log in to DB, run some SELECT queries and put in to some file. The problem is that whe I am trying to log in with: /eniq/sybase_iq/OCS-15_0/bin/isql -U username -P... (4 Replies)
Discussion started by: nypreH
4 Replies

5. Shell Programming and Scripting

ISQL syntax can't read

Hi Everyone, newbie here, please help me i can't read the code i'm confused reading this code. select c.net_svc_id, c.inst_st_dt into ${REO_RECON_USERID_LUZON_TEMP} from ${WO_INST_SITE_COMP_FIELDS} a, ${WO_INST_SITE_COMPONENTS} b, ${WO_INST} c where a.cust_ac_no = b.cust_ac_no and... (3 Replies)
Discussion started by: nikki1200
3 Replies

6. Shell Programming and Scripting

ISQL - SELECT AS

I have been given an SQL script I need to convert to ISQl. In the styatement it has the following line which is flagging an error: Select stocknum as 'bipart' this comes up with: 201: A syntax error has occurred Does ISQL support the SELCT AS statement and if not is there a simple... (2 Replies)
Discussion started by: andydb70
2 Replies

7. Shell Programming and Scripting

isql output

hi all i m running following code # set up environment . /u/pimms/pimms_global.ksh echo "Get record from database" #echo ${PIMMS_ID} #echo ${PIMMS_PWD} #echo "1" isql -U${PIMMD_ID} -P${PIMMS_PWD} -S$SRV << eof > /sybase/applications/pimms/bin/automate1.txt use pimms ... (6 Replies)
Discussion started by: d_swapneel14
6 Replies

8. Shell Programming and Scripting

isql - select ... where ...

Hi, Please help me to solve this problem on Unix isql. Following is an example table and expected select result. I need to select NAMEs where those NAMEs don't have a record which TYPE='T1'. I tried, but got both N2 and N3. NAME TYPE DATA --------------------- N1 T1 D11 N2... (0 Replies)
Discussion started by: momi
0 Replies

9. UNIX for Dummies Questions & Answers

regarding isql

can anyone pls explain me the command $ isql -Usa -SIN63DS -Pgoalmal 1>load database STS_IN_PRD from "/STSDBBakup/ AEOD20030509" 2>go thx (2 Replies)
Discussion started by: girish_shukla
2 Replies

10. UNIX for Dummies Questions & Answers

isql

What does the isql command do for solaris 8???? Is this something that comes with solaris because I have it at work but not at home. Plus does anyone know a good SQL site where I could learn all the sql commands thankx (2 Replies)
Discussion started by: eloquent99
2 Replies
Login or Register to Ask a Question