oracle的sqlplus默认会执行的脚本

我原来是知道sqlplus会默认执行$ORACLE_HOME/sqlplus/admin/glogin.sql这个脚本

今天在一个陌生的环境调用sqlplus时总会默认执行两条语句 但是就是找不到被执行的文件在哪里

后来发现是在环境变量 ORACLE_PATH下的login.sql文件

ORACLE_PATH这个环境变量是sqlplus这个工具使用的一个环境变量

ORACLE_PATH Environment variable to specify the location of SQL scripts. If

SQL*Plus cannot find the file in ORACLE_PATH, or if

ORACLE_PATH is not set, it searches for the file in the current

working directory.

Not applicable to Windows

相关推荐
码出财富2 小时前
SQL语法大全指南
数据库·mysql·oracle
听雪楼主.13 小时前
Oracle Undo Tablespace 使用率暴涨案例分析
数据库·oracle·架构
老虎06272 天前
数据库基础—SQL语句总结及在开发时
数据库·sql·oracle
Apple_羊先森2 天前
Oracle数据库操作深入研究:备份、数据删除与性能优化
数据库·oracle·性能优化
好记忆不如烂笔头abc3 天前
另类pdb恢复方式-2
oracle
Menior_3 天前
【补充】数据库中有关系统编码和校验规则的简述
数据库·mysql·oracle
H2122021653 天前
SQLite3库链接与加载问题解决方案
数据库·oracle·sqlite
开航母的李大4 天前
Navicat 全量&增量数据库迁移
数据库·oracle
Apple_羊先森4 天前
Oracle表数据维护全流程指南:备份、删除与性能优化
数据库·oracle·性能优化
汤姆花花5 天前
OCI编程高级篇(八) LOB写操作
oracle·asm·dul·oracle oci 编程