Home  >  Article  >  Database  >  Oracle的默认配置login.sql

Oracle的默认配置login.sql

WBOY
WBOYOriginal
2016-06-07 17:02:511068browse

SQL*PLUS允许建立一个login.sql文件,每次启动SQL*PLUS时都会执行这个脚本。另外允许建立一个SQLPATH的环境变量,这样,不论这个

SQL*PLUS允许建立一个login.sql文件,每次启动SQL*PLUS时都会执行这个脚本。另外允许建立一个SQLPATH的环境变量,这样,不论这个login.sql脚本具体在哪个目录下,SQL*PLUS都有找到它。

1. 建立login.sql脚本文件,并将login.sql放到/home/Oracle/oracle_install_file目录下,内容如下:

[oracle@localhost oracle_install_file]$ nl login.sql

1  define _editor=vi

2  set serveroutput on size 1000000

2. 在家目录下的.bash_profile隐藏文件中,新增如下一条记录:

export SQLPATH=/home/oracle/oracle_install_file

linux

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn