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

相关推荐
yzs8712 小时前
openGauss branch diff能力解析
数据库·oracle
郭小李13 小时前
spring中@Transactional注解对事务的支持
数据库·spring·oracle
量子物理学16 小时前
oracle plsql instantclient 安装
数据库·oracle
悟道书生1 天前
(一)Navicate为什么转存结构和数据只转存表而不包含建库?
数据库·oracle
时间售卖铺2 天前
Oracle DQL精髓:从基础到高级实战
运维·数据库·云原生·oracle
lusklusklusk2 天前
SQL Server 为什么普通 SELECT 会阻塞 UPDATE?——行级 S 锁到表级 S 锁的锁升级原理与实验验证
数据库·mysql·oracle
瑶总迷弟2 天前
银河麒麟 V10 ARM64 安装 Oracle 19c 静默部署操作手册
数据库·oracle
lusklusklusk2 天前
Python 巡检脚本:进程运行状态、数据库写入时效检查及邮件通知与告警
数据库·python·oracle
悟道书生3 天前
Kingbase数据库使用命令来执行init.sql(包含建库建表语句)
数据库·oracle
晴天¥3 天前
记一次Oracle 归档进程卡死怎么去有效排查
数据库·oracle