Last active
December 20, 2015 09:49
-
-
Save jmorenoamor/6111156 to your computer and use it in GitHub Desktop.
SQLPlus setup file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- ----------------------------------------------------------------------------- | |
-- SQLPlus dump setup file | |
-- Jesús Moreno Amor <[email protected]> | |
-- May 2012 | |
-- | |
-- Execute: | |
-- sqlplus -S user/password@database @DumpSetup.sql RealQuery.sql | |
-- ----------------------------------------------------------------------------- | |
-- SQLPlus session configuration | |
SET PAGESIZE 1 | |
SET HEADING OFF | |
SET LINESIZE 32767 | |
SET TRIMOUT ON | |
SET COLSEP '|' | |
SET FEEDBACK OFF | |
SET ECHO OFF | |
SET TERMOUT OFF | |
SET TRIMSPOOL ON | |
-- Spool to file named as the query | |
Spool &1..txt | |
-- Execute the query | |
@@&1 | |
Spool Off | |
Exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment