sqlplus @ not working sqlplus \@ working..


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting sqlplus @ not working sqlplus \@ working..
# 1  
Old 03-24-2011
sqlplus @ not working sqlplus \@ working..

Hi All,
I am facing a strange problem on one of my unix servers.
When i try to login using the standard method:
it fails with below message

Code:
>sqlplus REF1SSTDBO1/REF1SSTDBO1@TKS3N10G

> TKS3N10G
ksh: TKS3N10G:  not found

But it works perfectly when i escape with ;\

Code:
>sqlplus REF1SSTDBO1/REF1SSTDBO1\@TKS3N10G

SQL*Plus: Release 10.2.0.3.0 - Production on Thu Mar 24 11:47:44 2011

Copyright (c) 1982, 2006, Oracle.  All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
SQL> exit

Can someone help me with how to solve this strange problem!! Smilie


Please find below the OS details:
Code:
> uname -a
HP-UX indhp046 B.11.31 U ia64 4153157837 unlimited-user license

Regds,
Kunwar

Last edited by kunwar; 03-24-2011 at 06:34 AM.. Reason: Added the OS details
# 2  
Old 03-24-2011
What Shell are you using?
Quote:
echo $SHELL
How is your keyboard mapped? We're looking for "@" remapped.
Code:
stty -a

Quote:
sqlplus REF1SSTDBO1/REF1SSTDBO1@TKS3N10G
In this line, what do each of the field names mean? Is the Oracle listener on this computer or another computer?
What do you expect this sqlplus line to do?

Has someone intercepted sqlplus?
Code:
type `whence sqlplus`

# 3  
Old 03-24-2011
I tried something to solve this issue I manually type the below. This thing has solved the login problem but gives rise to anothe problem Smilie.
1. When i press backspace it hits ENTER.
2. When i press the SHIFT+BACKSPACE it presses ^H character.

stty kill ^K (character above 6 in keypad and K)

Now Backspace is not working..which was working with Shift+Backspace earlier!!

Hi Please find below the details which you asked(After the changes which i tried Smilie)
Code:
> echo $SHELL
/bin/ksh
> stty -a
speed 38400 baud; line = 0;
rows = 37; columns = 154
min = 4; time = 0;
intr = DEL; quit = ^\; erase = #; kill = ^K
eof = ^D; eol = ^@; eol2 <undef>; swtch = ^@
stop = ^S; start = ^Q; susp <undef>; dsusp <undef>
werase <undef>; lnext <undef>
-parenb -parodd cs8 -cstopb hupcl cread -clocal -loblk -crts
-ignbrk brkint ignpar -parmrk -inpck istrip -inlcr -igncr icrnl -iuclc
ixon ixany -ixoff -imaxbel -rtsxoff -ctsxon -ienqak
isig icanon -iexten -xcase echo -echoe echok -echonl -noflsh
-echoctl -echoprt -echoke -flusho -pendin
opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel -tostop

sqlplus REF1SSTDBO1/REF1SSTDBO1@TKS3N10G

By the above command i am trying to a login to a db named TKS3N10G ,REF1SSTDBO1 is the username ,REF1SSTDBO1 is the password.
# 4  
Old 03-24-2011
Without seeing the "stty -a" before you made changes this is too difficult.

Assuming you are on a telnet session with some sort of vt220 emulator, the stty settings posted are a bit weird.

The erase key depends on what your keyboard backspace key actually generates. Your main problems are the intr and erase keys.
I would expect the important keys to be set to something like this (but do check the erase key):
Quote:
intr = ^C; quit = ^\; erase = ^H; kill = ^U
eof = ^D
Note that when a value is unset it shows as ^@ (i.e. null - not to be confused with just @).

Having the erase key set to hash is definitely not a good idea when using Shell !

Also, the value of $TERM is important. It should be correct for your type of terminal.
What sort of terminal do you have?
What is the value of $TERM?
Code:
echo $TERM

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

"SQLPLUS -S " is not working in one environment where same code is working in another

"SQLPLUS -S " is not working in one environment where same code is working in another getting below error =================================== SQL*Plus: Release 11.2.0.3.0 Production Copyright (c) 1982, 2011, Oracle. All rights reserved. Use SQL*Plus to execute SQL, PL/SQL and SQL*Plus... (1 Reply)
Discussion started by: yogendra.barode
1 Replies

2. Shell Programming and Scripting

Disk Space Utilization in HTML format working in one environment and not working on the other

Hi Team, I have written the shell script which returns the result of the disk space filesystems which has crossed the threshold limit in HTML Format. Below mentioned is the script which worked perfectly on QA system. df -h | awk -v host=`hostname` ' BEGIN { print "<table border="4"... (13 Replies)
Discussion started by: Harihsun
13 Replies

3. Shell Programming and Scripting

Sqlplus not working through ssh

Hi Gurus, I was trying to execute sqlplus command remotely like ssh -q IP venkat@"which sqlplus" am getting error as which: no sqlplus in (/usr/local/bin:/bin:/usr/bin) if i connect manually and executing which sqlplus it working fine. Please help to fix the issue. Regard's Venky (7 Replies)
Discussion started by: venky.b5
7 Replies

4. Shell Programming and Scripting

Automating pbrun /bin/su not working, whenever manually it is working using putty

I am trying to automate a script where I need to use pbrun /bin/su but for some reason it is not passing thru the pbrun as my code below. . ~/.bash_profile pbrun /bin/su - content c h 1 hpsvn up file path I am executing this from an external .sh file that is pointing to this scripts file... (14 Replies)
Discussion started by: jorgejac
14 Replies

5. Shell Programming and Scripting

Working with UTF char sqlplus

I have below SQL that I wasnt to run from a solaris machine using sqlplus select * from TABLE_NAME where regexp_like(field_value, 'Α|Β|Γ|Δ|Ε|Ζ|Η|Θ|Ι|Κ|Λ|Μ|Ν|Ξ|Ο|Π|Ρ|Σ|Τ|Υ|Φ|Χ|Ψ|Ω|α|β|γ|δ|ε|ζ|η|θ|ι|κ|λ|μ|ν|ξ|ο|π|ρ|σ|τ|υ|φ|χ|ψ|ω'); When I cat the file UTF char shows perfect however when i run... (1 Reply)
Discussion started by: varun22486
1 Replies

6. UNIX and Linux Applications

Problem on SQLplus command ""bash: sqlplus: command not found""

Hi all, i face an error related to my server ""it's running server"" when i use sqlplus command $ sqlplus bash: sqlplus: command not found the data base is up and running i just need to access the sqlplus to import the dump file as a daily backup. i already check the directory... (4 Replies)
Discussion started by: clerck
4 Replies

7. AIX

SQLPLUS -S option not working

Hi All, I am using the following script to run some sql on database but i am not getting the result. When i tried the same by removing "-s" option it is working fine but getting other things as well with my input as shown below. Can anyone please suggest why "-s" option is not working in AIX and... (2 Replies)
Discussion started by: ssk250
2 Replies

8. Shell Programming and Scripting

Sqlplus error - sqlplus -s <login/password@dbname> : No such file or directory

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

Sqlplus Set Heading not Working

Hello, Could someone tell me why this still returns headings? echo "SELECT columnA from tableA group by columnA;" | sqlplus -s ${DB_CONNECT} set heading OFF | while read line do arr="$line" echo ${arr} let i=$i+1 done (2 Replies)
Discussion started by: flowervz
2 Replies

10. Shell Programming and Scripting

Multiple SQLPLUS background processes not working properly

Hi All, I am running 25 background process from a Unix shell script which calls a single Oracle procedure with different paramenters each time. These 25 process creates 25 different files. When i run these 25 Background SQLPLUS processes, few files are not created completly but if i run 25... (1 Reply)
Discussion started by: rawat_me01
1 Replies
Login or Register to Ask a Question