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

相关推荐
数据组小组5 小时前
免费数据库管理工具深度横评:NineData 社区版、Bytebase 社区版、Archery,2026 年开发者该选哪个?
数据库·测试·数据库管理工具·数据复制·迁移工具·ninedata社区版·naivicat平替
悟空聊架构12 小时前
基于KaiwuDB在游乐场“刷卡+投币”双模消费系统中的落地实践
数据库·后端·架构
IvorySQL12 小时前
PostgreSQL 技术日报 (3月4日)|硬核干货 + 内核暗流一网打尽
数据库·postgresql·开源
进击的丸子15 小时前
虹软人脸服务器版SDK(Linux/ARM Pro)多线程调用及性能优化
linux·数据库·后端
NineData1 天前
NineData智能数据管理平台新功能发布|2026年1-2月
数据库·sql·数据分析
IvorySQL1 天前
双星闪耀温哥华:IvorySQL 社区两项议题入选 PGConf.dev 2026
数据库·postgresql·开源
ma_king1 天前
入门 java 和 数据库
java·数据库·后端
jiayou642 天前
KingbaseES 实战:审计追踪配置与运维实践
数据库
NineData2 天前
NineData 迁移评估功能正式上线
数据库·dba
NineData2 天前
数据库迁移总踩坑?用 NineData 迁移评估,提前识别所有兼容性风险
数据库·程序员·云计算