oracle 3-02 数据库管理工具
. oraenv
export DISPLAY=:0.0
xhost +
su - oracle
ORCL
export DISPLAY=:0.0
xclock
gedit script.sql 此命令为linux中文本编辑器
在编辑器中写入脚本
select * from departments;
select salary from emloyees;
quit
保存后退出
[oracle@yf ~]$ more script.sql
select * from departments;
select salary from emloyees;
quit
sqlplus hr/hr @script.sql 执行脚本