shell 执行oracle sql脚本
时间:2006-12-31 来源:ghbspecial
[oracle@test tmp]$ more sql
#!/bin/sh
sqlplus test/[email protected] << EOF
@/tmp/sqlcreate.sql
exit;
EOF [oracle@test tmp]$ more /tmp/sqlcreate.sql
create table test6 (id number);
insert into test6 values (1);
#!/bin/sh
sqlplus test/[email protected] << EOF
@/tmp/sqlcreate.sql
exit;
EOF [oracle@test tmp]$ more /tmp/sqlcreate.sql
create table test6 (id number);
insert into test6 values (1);
相关阅读 更多 +