Oracle SQLPLUS Common Set settings

Source: Internet
Author: User

Sql>set Colsep '; -Field Output delimiter

Sql>set echo off; Displays each SQL command in the script started by the start, which defaults to on

sql> set echo on //Set whether the Run command is to Display statements

Sql> set feedback on; / / settings display "xx row selected"

Sql>set feedback off; //echo the number of record bars processed by this SQL command, default to On

Sql>set heading off; Output field header, default to On

Sql>set pagesize 0; //output number of rows per page, default is 24, in order to avoid paging, can be set to 0.

Sql>set Linesize 80; //output one line of characters, default is 80

Sql>set Numwidth 12; //Output Number Type field length, default is 10

Sql>set termout off; //Show execution results of commands in script, default to On

Sql>set trimout on; Remove trailing spaces per line of standard output, default to Off

Sql>set Trimspool on; Remove redirect (spool) output trailing spaces per line, default to OFF

Sql>set serveroutput on; Set allow display output similar to Dbms_output

Sql> set timing on; //Set display "Time used: XXXX"

Sql> set autotrace on; //settings allow parsing of executed SQL

sql> set Verify off; / / You can turn off and turn on the display of the prompt confirmation information old 1 and new 1.

Export Results to text:

Spool<spool_flat_file>
Example: Spool D:\Spool_flatquery.txt
In this way, Sql*plus will assign all the output and commands on the screen to the file.

Executes the query output. At this point, the system does not save the results to a file, but instead saves them in a buffer.

After the query is finished, close the file. The command format is: Spool off.

Oracle SQLPLUS Common Set settings

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.