(转:http://www.cnblogs.com/yangy608/archive/2011/08/22/2148893.html) create user TEST identified by "TEST" --创建TEST用户 default tablespace USERS temporary tablespace TEMP profile DEFAULT; grant connect,create view ,resource to TEST; grant unlimit…
--删除用户及及用户下的所有数据 drop user xxx cascade; --创建用户赋予密码 ; --赋予权限 grant dba to xxx; --删除权限 revoke dba from xxx; --赋予用户登录数据库的权限 grant create session to xxx; --授予用户操作表的权限 grant unlimited tablespace to xxx; grant create tablespace to xxx; grant alter tablespa…
grant create view to hospital; --授予查询权限 grant select any table to hospital; --授予权限 grant select any dictionary to hospital; grant SELECT ON Yfgl_YPRuKuDan to hospital; grant SELECT ON Yfgl_YPRukudanmx to hospital; ORA-01031:权限不足的问题 在 脚本更新时,报错:ORA-010…
用户创建的可以参考博客: https://blog.csdn.net/u014427391/article/details/84889023 Oracle授权表权限给用户: 语法:grant [权限名(select|insert |update|delete|all)] on [表名] to [用户名] 例子:给user1授权查询table1的权限:grant select on table1 to user1; 不过上面的有点麻烦,假如表很多的话,或许可以用游标试验,如果对用户表权限不是很严格…
创建: create or replace procedure insert_tbuser ( username nvarchar2,usersex nvarchar2,userage number ) as begin insert into tbuser values(username,usersex,userage); end insert_tbuser; 调用: begin insert_tbuser('linhuide','nan',20); commit; end;…
使用存储过程中,最常用的莫过于查询数据表,并返回结果集. 在SQL SERVER 中,这类操作最简单,通过简单的select * from xx 即可完成.但是在Oracle中并不支持这种写法,那么我们怎么实现跟SQL SERVER同样的功能呢?且看以下代码: create or replace procedure sp_getdept (rep_type in varchar2,sel in varchar2,result out sys_refcursor) as seq ); info )…