新建用户、付权限命令
生活随笔
收集整理的這篇文章主要介紹了
新建用户、付权限命令
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
刪除已有用戶及與用戶相關的
drop user usernam cascade;?
以DBA登錄sqlplus sys/gis@lxgh as sysdba
創建表空間
create tablespace work datafile ' E:\ghoa\ldghTableSpace\work.dbf' size 400m autoextend on next 20m online;
創建新用戶
create user work identified by work;
給新建用戶付 權限
Alter user? work ? default tablespace work quota unlimited on work;grant create session to work;
grant connect, resource, dba to work ;
grant create table to work;
grant create view to work;
grant create trigger to work;
grant select any table to work;
grant create sequence to work;
grant create procedure to work;
grant create role to work;
grant create type to work;
grant GRANT ANY PRIVILEGE to work;
總結
以上是生活随笔為你收集整理的新建用户、付权限命令的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 20180223
- 下一篇: Modbus通讯模拟环境的搭建(一) —