UNIX下@符号报SP2-0734错误

Subject: SP2-0734 and/or SP2-0042 Error Immediately When Attempting To Run catpatch.sql
Doc ID: 336920.1

Symptoms

After applying a patchset, the post install documentation instructs you to run the $ORACLE_HOME/rdbms/admin/catpatch.sql script. The script does not run and instead produces the error below:

SQL> @catpatch.sql
SP2-0734: unknown command begining "catpatch.s..." ....

Cause

This is due to the display terminal keyboard configuration of the kill character.

Solution

The problem is with the display terminal keyboard settings. The sqlplus session had trouble interpreting the "@" sign, because it was assigned in the terminal to the "kill" setting. The catpatch.sql script was supposed to be run as "@catpatch.sql" and since the "@" sign had a completely different meaning for this OS session, sqlplus only saw "catpatch.sql".


The solution is to change the display terminal keyboard setting of the kill character to something else. For example:

# stty kill ^u

After making this change the script is interpreted correctly and runs as it should.

[@more@]

TST:[/oracle]$sqlplus /nolog

SQL*Plus: Release 9.2.0.8.0 - Production on Tue Apr 14 10:23:50 2009

Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.

SQL> conn sgj/XXX@ZX1;
SP2-0042: unknown command "ZX1" - rest of line ignored.
SQL> conn / as sysdba
Connected.
SQL> conn rman/XXX
ERROR:
ORA-01017: invalid username/password; logon denied
SQL> conn rman/XXX@rman
SP2-0042: unknown command "rman" - rest of line ignored.

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/9533994/viewspace-1020481/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/9533994/viewspace-1020481/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值