【Oracle】新建模式,用户,表空间、授权记录

登录sys

cmd + sqlplus

sys/ sys as sysdba

创建用户并授权

create user xpost identified by fmip;

create user xpost_hk identified by fmip;

alert user xpost identified by fmip_modify

drop user xpost cascade

drop user xpost_hk cascade;

grant connect,resource to xpost;

grant connect,resource to xpost_hk;

create tablespace fmip datafile 'd:\app\LNN\tablespace\fmip' size 500m extent management local segment space management auto;

create tablespace XPOST_HK_DATA datafile 'd:\app\LNN\tablespace\XPOST_HK_DATA' size 500m extent management local segment space management auto;

create user fmip identified by fmip default tablespace fmip

grant connect,resource to fmip

grant connect,resource to fmip ;

grant create any sequence to fmip ;

GRANT QUOTA ON USERS TO xpost;

grant create any sequence to xpost ;

grant create any sequence to xpost_hk ;

grant create any table to fmip ;

grant delete any table to fmip ;

grant insert any table to fmip ;

grant select any table to fmip ;

grant unlimited tablespace to fmip ;

grant execute any procedure to fmip ;

grant update any table to fmip ;

grant create any view to fmip ;

grant create any table to xpost ;

grant delete any table to xpost ;

grant insert any table to xpost ;

grant select any table to xpost ;

grant unlimited tablespace to xpost ;

grant execute any procedure to xpost ;

grant update any table to xpost ;

grant create any view to xpost ;

grant create any table to xpost_hk ;

grant delete any table to xpost_hk ;

grant insert any table to xpost_hk ;

grant select any table to xpost_hk ;

grant unlimited tablespace to xpost_hk ;

grant execute any procedure to xpost_hk ;

grant update any table to xpost_hk ;

grant create any view to xpost_hk ;

GRANT CREATE SESSION TO XPOST;

GRANT CREATE SESSION TO XPOST_HK;

grant select, insert, update, delete on FDSTP_DATA to XPOST;

yyyy-mm-dd hh24:mi:ss

2023-08-28 15:14:00

DROP USER xpost CASCADE;

grant create any table to system ;

grant delete any table to system ;

grant insert any table to xpost_hk ;

grant select any table to xpost_hk ;

grant unlimited tablespace to xpost_hk ;

grant execute any procedure to xpost_hk ;

grant update any table to xpost_hk ;

grant create any view to xpost_hk ;

相关推荐
重生之绝世牛码9 分钟前
Linux软件安装 —— ClickHouse单节点安装(rpm安装、tar安装两种安装方式)
大数据·linux·运维·数据库·clickhouse·软件安装·clickhouse单节点
一只自律的鸡22 分钟前
【MySQL】第十一章 存储过程和存储函数
数据库·mysql
翔云12345626 分钟前
MySQL 中的 utf8 vs utf8mb4 区别
数据库·mysql
数据知道35 分钟前
PostgreSQL 实战:索引的设计原则详解
数据库·postgresql
老毛肚1 小时前
Spring 6.0基于JDB手写定制自己的ROM框架
java·数据库·spring
CodeBlossom1 小时前
MySQL进阶 索引
数据库·mysql
未来之窗软件服务1 小时前
数据库优化提速(四)数据库数据批量补齐—仙盟创梦IDE
数据库·数据库调优·仙盟创梦ide·东方仙盟
optimistic_chen2 小时前
【Redis系列】分布式锁
linux·数据库·redis·分布式·缓存
xuekai200809012 小时前
GaussDB-SQL优化案例
数据库·sql·gaussdb
老邓计算机毕设2 小时前
SSM养老院管理系统的设计于实现78fyn(程序+源码+数据库+调试部署+开发环境)带论文文档1万字以上,文末可获取,系统界面在最后面
数据库·计算机毕业设计·养老院管理系统·ssm 框架