⑴ 怎麼給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;