ORACLE 新建数据库及权限赋予
生活随笔
收集整理的這篇文章主要介紹了
ORACLE 新建数据库及权限赋予
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
新裝的oracle數據庫,默認的表空間是ORCL,現在想創建一個新的庫,在新庫下面建表。
按照如下步驟:
以system超級管理員用戶進入
1、首先,創建(新)用戶: create user username identified by password;
username:新用戶名的用戶名 password: 新用戶的密碼
也可以不創建新用戶,而仍然用以前的用戶,如:繼續利用scott用戶 2.創建表空間:create tablespace tablespacename datafile 'd:\data.dbf' size xxxm;tablespacename:表空間的名字d:\data.dbf':表空間的存儲位置xxx表空間的大小,m單位為兆(M) create tablespace BIGDATATEAM datafile 'D:\ORACLE\ORADATA\BIGDATATEAM.dbf' size 100m autoextend on next 32m maxsize 2048m 3.將空間分配給用戶:alert user username default tablespace tablespacename;將名字為tablespacename的表空間分配給username alter user suyd default tablespace BIGDATATEAM 4.給用戶授權:grant create session,create table,unlimited tablespace to username; grant create session,create table,unlimited tablespace to suyd5、接下來,直接切換回原用戶,直接建表就可以了
總結
以上是生活随笔為你收集整理的ORACLE 新建数据库及权限赋予的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: tableau 如何发布到public
- 下一篇: TensorFlow 安装protoc