Skip to content

Instantly share code, notes, and snippets.

@schnell18
Last active December 22, 2015 06:59
Show Gist options
  • Save schnell18/6434992 to your computer and use it in GitHub Desktop.
Save schnell18/6434992 to your computer and use it in GitHub Desktop.
A sample dbext profile that enables auto trace so that the execution plan is displayed after the result of SQL statement in a Vim buffer
let g:dbext_default_profile_system = 'type=ORA:user=system@host1_ora:passwd=system'
let g:dbext_default_profile_hr = 'type=ORA:user=hr@host1_ora:passwd=hr'
let g:dbext_default_SQLITE_bin = 'sqlite3'
let g:dbext_default_profile_sqlite = 'type=SQLITE:dbname=/home/mfg/work/000.sqlite'
let g:dbext_default_ORA_cmd_header = "set timing on\n" .
\ "set autotrace on\n" .
\ "set pagesize 50000\n" .
\ "set wrap off\n" .
\ "set sqlprompt \"\"\n" .
\ "set linesize 10000\n" .
\ "set flush off\n" .
\ "set colsep \" \"\n" .
\ "set tab off\n\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment