Oracle 创建用户以及表空间Sql
—创建表空间 —创建 用户 语法格式:create user userName identified by password; 一般创建用户都需要制定默认的属性: 所有的数据都包含有内部账户(internal accounts),这些自动创建的用户,使得特别的 用户创建过程中的注意事项: 创建的用户的sql格式: create user oracleusr –用户名:oracleuser 创建yygh格式案例: 0-------------创建用户 create user yygh identified by yygh default tablespace REGISTRY quota 40m on users temporary tablespace temp; 1-------------赋予用户权限 grant create session to yygh;//授予yygh用户创建session的权限,即登陆权限 grant connect,resource to yygh; ---登录和资源权限 grant unlimited tablespace to yygh;//授予yygh用户使用表空间的权限 grant create any table to yygh;//授予创建表的权限 grant delete any table to yygh;//授予删除表的权限 grant insert any table to yygh; //插入表的权限 grant update any table to yygh;//修改表的权限 grant select any table to yygh; ----查询表的权限 grant create any sequence to yygh;----创建序列 grant select any table to yygh;–查询表的权限 grant execute any procedure to yygh; ---执行存储过程的权限 grant create any view to yygh; ---创建视图的权限 参考资料【1】http://www.cnblogs.com/shlcn/archive/2011/07/21/2112879.html (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |