当前位置:Gxlcms > 数据库问题 > shell执行oracle sql脚本

shell执行oracle sql脚本

时间:2021-07-01 10:21:17 帮助过:289人阅读

[oracle@test tmp]$ more sql
#!/bin/sh
sqlplus test/test@tnsname.test.com << EOF
@/tmp/sqlcreate.sql
exit;
EOF
 
[oracle@test tmp]$ more /tmp/sqlcreate.sql 
create table test6 (id number);
insert into test6 values (1);

shell执行oracle sql脚本

标签:sqlplus   ber   shel   执行   nbsp   eof   sql脚本   exit   tab   

人气教程排行