我试图将 gVim 与 dbext 插件一起使用。我的 _vimrc 中的设置是:
let g:dbext_default_profile_myoradb = 'type=DBI:driver=Oracle:user=ora1:passwd=ora1:conn_parms=myoradbr:driver_parms=AutoCommit=0;CommitOnDisconnect=0'
let g:dbext_default_profile = 'myoradb'
如果我在缓冲区中执行简单的语句,例如:SELECT * FROM emp;
我收到以下消息:
Connection: T(DBI) I(Oracle) C(myoradbr) P(AutoCommit=0;CommitOnDisconnect=0) U(ora1) at 14:59
E. DBQp:SQLCode:911:ORA-00911: invalid character (DBD ERROR: error possibly near <*> indicator at char 21 in ' SELECT * FROM emp<*>;'):S1000
To change connection parameters:
:DBPromptForBufferParameters
Or
:DBSetOption user|passwd|dsnname|srvname|dbname|host|port|...=<value>
:DBSetOption user=tiger:passwd=scott
Last command(rc=0):
perl DBI
Last SQL:
SELECT * FROM emp;
没有 ';' 或在视觉模式下(如果';'不是选择的一部分)它工作正常。dbext 似乎无法识别语句末尾的分号。
全局 cmd_terminator 似乎正确设置为 ';'
:DBGetOption
Connection: T(DBI) I(Oracle) C(myoradbr) P(AutoCommit=0;CommitOnDisconnect=0) U(ora1) at 15:03
------------------------
** Connection Options **
------------------------`
profile = myoradb
type = DBI
integratedlogin =
user = ora1
passwd = ora1
dsnname =
srvname =
dbname =
host =
port =
extra =
bin_path =
login_script =
driver = Oracle
conn_parms = myoradbr
driver_parms = AutoCommit=0;CommitOnDisconnect=0
cmd_terminator = ;
出了什么问题?谷歌搜索几乎没有返回任何内容。