当前位置:首页 » 数据仓库 » 创建数据库用户同时授予权限
扩展阅读
webinf下怎么引入js 2023-08-31 21:54:13
堡垒机怎么打开web 2023-08-31 21:54:11

创建数据库用户同时授予权限

发布时间: 2022-12-10 20:48:42

⑴ 怎么给oracle数据库创建用户,并赋权限

创建用户:
create user shopping identified by 123456;

其中shopping为创建的用户名,123456为用户密码。

创建用户后需要对用户赋予相应的权限,以下是示例,为shopping用户赋予connect,resource,dba三个权限。
授权:
grant connect,resource,dba to shopping;

⑵ SQL SERVER 建好了,如何创建用户以及赋予所有权限

工具/材料:SQL Server Management Studio。

1、首先在桌面上,点击“SQL Server Management Studio”图标。

⑶ oracle 创建用户怎么授予创建数据库的权限

采用sys or system / manager as sysdba; 连接数据库。

创建普通用户konglin: create user konglin identified by pwd_oracle;
删除用户, drop user konglin;

授予用户登录数据库的权限: grant create session to konglin;
授予用户操作表空间的权限:

grant unlimited tablespace to konglin;

grant create tablespace to konglin;
grant alter tablespace to konglin;
grant drop tablespace to konglin;
grant manage tablespace to konglin;
授予用户操作表的权限:

grant create table to konglin; (包含有create index权限, alter table, drop table权限)
授予用户操作视图的权限:
grant create view to konglin; (包含有alter view, drop view权限)
授予用户操作触发器的权限:
grant create trigger to konglin; (包含有alter trigger, drop trigger权限)
授予用户操作存储过程的权限:
grant create procere to konglin;(包含有alter procere, drop procere 和function 以及 package权限)
授予用户操作序列的权限:
grant create sequence to konglin; (包含有创建、修改、删除以及选择序列)
授予用户回退段权限:
grant create rollback segment to konglin;
grant alter rollback segment to konglin;
grant drop rollback segment to konglin;
授予用户同义词权限:
grant create synonym to konglin;(包含drop synonym权限)
grant create public synonym to konglin;
grant drop public synonym to konglin;
授予用户关于用户的权限:
grant create user to konglin;
grant alter user to konglin;
grant become user to konglin;
grant drop user to konglin;
授予用户关于角色的权限:
grant create role to konglin;
授予用户操作概要文件的权限
grant create profile to konglin;
grant alter profile to konglin;
grant drop profile to konglin;
允许从sys用户所拥有的数据字典表中进行选择
grant select any dictionary to konglin;