用如下语句创建用户:
|
1
2
3
|
create user shopping identified by shopping--用户名为shopping,密码为shoppingdefault tablespace shopping --默认表空间为shoppingtemporary tablespace shopping_temp; --默认临时表空间为shopping_temp |
但一般创建用户后,需要赋予一定的权限:下边语句则是给shopping用户赋予connect,resource及dba权限。
|
1
|
grant connect,resource,dba to shopping; |