【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 ;

相关推荐
2301_8152795216 分钟前
SQL如何利用聚合函数生成业务分析指标_KPI计算基础教程
jvm·数据库·python
qq_3300379917 分钟前
mysql如何排查Out of memory错误_mysql内存分配调优
jvm·数据库·python
weixin_458580121 小时前
如何在 Go 中直接将 AST 编译为可执行二进制文件?
jvm·数据库·python
Highcharts.js3 小时前
Highcharts Grid 中文站正式上线:表格数据处理的全新选择
前端·javascript·数据库·表格数据·highcharts·可视化图表·企业级图表
Elastic 中国社区官方博客7 小时前
Elasticsearch:使用 Agent Builder 的 A2A 实现 - 开发者的圣诞颂歌
大数据·数据库·人工智能·elasticsearch·搜索引擎·ai·全文检索
2301_816660217 小时前
PHP怎么处理Eloquent Attribute Inference属性推断_Laravel从数据自动推导类型【操作】
jvm·数据库·python
qq_372154238 小时前
Go 中自定义类型与基础类型的显式转换规则详解
jvm·数据库·python
_下雨天.8 小时前
NoSQL之Redis配置与优化
数据库·redis·nosql
LiAo_1996_Y8 小时前
CSS如何实现文字渐变效果_通过background-clip实现艺术字
jvm·数据库·python
2401_887724508 小时前
CSS如何让表单在手机端友好展示_利用Flexbox实现堆叠排版
jvm·数据库·python