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

相关推荐
哭泣方源炼蛊11 分钟前
正则表达式c++内容汇集
数据库·c++·mysql·正则表达式
余槐i20 分钟前
EXPLAIN 显示走了索引查询仍慢:回表与选择性在 500 万行表上拉开 10 倍耗时
数据库·postgresql·性能优化·vacuum·explain
深度智能Ai1 小时前
IndexTTS‑2高清音质接口对接文档
数据库
香瓜子rd1 小时前
MySQL InnoDB 并发控制核心原理:事务、隔离级别、MVCC 与锁机制
数据库·后端
Elastic 中国社区官方博客2 小时前
Elasticsearch Serverless 如何通过 hollow shards 将索引节点关闭次数降低 30%
大数据·数据库·elasticsearch·搜索引擎·serverless·全文检索
ycvv2 小时前
手机启动失败后的数据提取评估:系统状态、加密条件与文件验收
服务器·数据库·智能手机
不恋水的雨2 小时前
gbase中union all导致末尾多出空格的坑
数据库·sql·mysql
AI 算法大模型备案~当当3 小时前
各地备案数量怎么看:一份属地公告的认读与台账方法
java·数据库·人工智能
梦帮科技3 小时前
量子张量网络破局大模型:从矩阵乘积态 (MPS) 到张量列 (TT-SVD) 低秩收缩全推导
网络·数据结构·数据库·线性代数·矩阵·架构·模拟退火算法
曹牧4 小时前
PL/SQL Developer:导出建表语句
数据库·sql