oracle 12c 創建能用navicat 遠程登錄的帳號


當前模式是在cdb模式,navicat工具能連接。sqlplus用下面賬戶也能連接。

查看當前模式,如果不是cdb,請切換。(上一篇有講)
創建表空間
create tablespace my_space
datafile '/usr/local/yrm/oracle_data/my_space.dbf'
size 50M
autoextend on next 50m maxsize 2048m
extent management local;
創建臨時表空間
create temporary tablespace my_space_temp
tempfile '/usr/local/yrm/oracle_data/my_space_temp.dbf'
size 32m
autoextend on next 32m maxsize 1024m
extent management local;
創建用戶
create user c##my_user_1 identified by 123456 default tablespace my_space
temporary tablespace my_space_temp;

創建角色
create role c##myroles container = all;
grant dba to c##myroles container = all;
授權
grant c##myroles to C##MY_USER_1 container = all;
#grant connect,resource to c##myroles;
grant restricted session to c##myroles;
alter user c##MY_USER_1 account unlock identified by 123456;


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM