linux下如何将sql语句写为脚本
对数据库的一些操作我想在linux下面写成一个脚本,然后执行脚本,但不知道如何写.哪位大虾晓得~
下面是对数据库ORACLE的操作
system用户登录执行
drop user ebnewmt cascade
-- Create the user
create user EBNEWMT
identified by "123"
default tablespace EBNEWMT
temporary tablespace TEMP
profile DEFAULT;
-- Grant/Revoke role privileges
grant connect to EBNEWMT;
grant resource to EBNEWMT;
-- Grant/Revoke system privileges
grant unlimited tablespace to EBNEWMT;