广西一建董事长简历:在sql plus 中,运行dbms_output.put时提示SP2-0734: unknown command beginning 请问是何缘故?

来源:百度文库 编辑:杭州交通信息网 时间:2024/04/29 04:21:29
新装了oracle 10g(winxp),在sql plus 中,登录system,先已经set serverout on,再运行dbms_output.put时提示SP2-0734: unknown command beginning "dbms_outpu..." - rest of line ignored. 请问是何缘故?

使用 set sqlblanklines on
这是因为有空行导致sql语句加载到机器内存中截断了

或者你看看你的oracle安装目录下\sqlplus\admin中的glogin.sql文件,去掉其中的乱码和中文

imp SISINTERGRATIONMGR/SISINTERGRATIONPWD file=/home/oracle/SISINTERGRATIONMGR.dmp fromuser=SISINTERGRATIONMGR touser=SISINTERGRATIONMGR commit=Y buffer=2048000 log=impSISINTERGRATIONMGR
不能再SQL>下的执行,否则会出现上述错误,需要在[oracle@app ~]$ 下执行就行了