---
title: "sqlplus执行@sql.sql的错误"
author: "kebo"
date: "2006-12-27T22:24:00Z"
tags: []
slug: "sqlplus-sql-sql"
draft: false
lastmod: "2006-12-27T22:24:00Z"
id: 255026
url: "https://kebo.iteye.com/blog/255026"
---

今天给数据库执行@spcreate.sql老是出  
SP2-0734:unknown command beginning "spcreate.s..." - rest of line ignored.  
郁闷坏了。经过一番折腾原来是  
solution Description:  
 =====================  
You need to enter a valid SQL\*Plus command.  
In this case, you cannot start svrmgrl from within SQL\*Plus,  
you have to start svrmgrl from the command prompt.  
This error will also occur when trying to execute a  
**the @ symbol is mapped to the key 'Kill'** from the user's keyboard.  
The way to find out the current keyboard mapping in a unix environment is using the command 'stty -a'.  
The way to correct problem is to map 'Kill' to some other keyboard symbol.  
The command example would be '**stty kill ^U**'.  
Having remapped the key you would then log into SQL\*Plus and execute script.  
 -------------------------------纪念一下  
如果出现空行报错的话 记得执行:  
SET SQLBLANKLINES ON