»   »   »

Vim and SQL*Plus

I found a handy vim plugin to launch scripts you're working in in vim using Oracle's SQL*Plus. You can find the plugin here. Once you've downloaded it and copied it into your plugin directory, add the following to your .vimrc (or _vimrc on windows) file:

" sqlplus plugin available from:
" http://www.vim.org/scripts/script.php?script_id=2821
" copy sqlplus.vim into the plugin directory.
"let $ORACLE_HOME = "C:/oracle/product/10.2.0/client_1"
let $ORACLE_HOME = "C:/app/roqet/product/11.2.0/client_1"
" if you want to connect as sys, just enter: "SID as sysdba" when asked,
" or modify g:sqlplus_db below
"let g:sqlplus_userid = "usrname"
"let g:sqlplus_passwd = "pswrd"
"let g:sqlplus_db = "sid"
    

© Roqet :: 2022-03-01 16:07:35