Oracle表空间的查询与创建
生活随笔
收集整理的這篇文章主要介紹了
Oracle表空间的查询与创建
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
查詢表空間
- 執行:select name from v$datafile 查詢表空間中數據文件具體位置。
- 執行:select * from DBA_DATA_FILES; 查詢表空間中數據文件具體位置和文件名,表空間名等,比上一個全。
創建用戶
#創建臨時表空間 create temporary tablespace score_temp tempfile '/home/usr/oracle/oradata/orcl/score/score_temp.dbf' size 50m autoextend on next 50m maxsize 20480m extent management local;#創建數據表空間 create tablespace score logging datafile '/home/usr/oracle/oradata/orcl/score/score.dbf' size 100m autoextend on next 50m maxsize 20480m extent management local;#創建用戶并指定表空間 create user score identified by score default tablespace score temporary tablespace score_temp;#給用戶授予權限 grant connect,resource to score;總結
以上是生活随笔為你收集整理的Oracle表空间的查询与创建的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: JavaWeb常用的操作
- 下一篇: Tomcat设置网站别名