1. 安裝oracle 19c 數據庫
參考:https://blog.csdn.net/weixin_44841225/article/details/100782269
2. 創建用戶
create user C##cs_dev identified by cs_dev;
3. 創建表空間
create tablespace test_tbs datafile 'C:\Study\SOFT\oradata\ORCL\test_tbs.dbf ' size 5M autoextend on next 5M maxsize 500M;
4. 修改用戶表空間
關閉數據庫:shutdown immediate
啓動 startup
修改用戶表空間
alter user C##cs_dev default tablespace test_tbs;
5.用戶授權
grant dba to C##cs_dev;
6. 使用創建用戶登錄數據庫
7. 創建數據庫表
create table client(client_id number(9), name varchar2(20),sex varchar2(1),age int) tablespace test_tbs;