av激情亚洲男人的天堂国语,日韩欧美精品一中文字幕,无码av一区二区三区无码,国产又色又爽又刺激的a片,国产又色又爽又刺激的a片

六分鐘學(xué)會創(chuàng)建Oracle表空間的步驟

經(jīng)過長時間學(xué)習(xí)創(chuàng)建Oracle表空間,于是和大家分享一下,看完本文你肯定有不少收獲,希望本文能教會你更多東西。

成都創(chuàng)新互聯(lián)公司是一家集網(wǎng)站建設(shè),尼瑪企業(yè)網(wǎng)站建設(shè),尼瑪品牌網(wǎng)站建設(shè),網(wǎng)站定制,尼瑪網(wǎng)站建設(shè)報價,網(wǎng)絡(luò)營銷,網(wǎng)絡(luò)優(yōu)化,尼瑪網(wǎng)站推廣為一體的創(chuàng)新建站企業(yè),幫助傳統(tǒng)企業(yè)提升企業(yè)形象加強企業(yè)競爭力??沙浞譂M足這一群體相比中小企業(yè)更為豐富、高端、多元的互聯(lián)網(wǎng)需求。同時我們時刻保持專業(yè)、時尚、前沿,時刻以成就客戶成長自我,堅持不斷學(xué)習(xí)、思考、沉淀、凈化自己,讓我們?yōu)楦嗟钠髽I(yè)打造出實用型網(wǎng)站。

1、先查詢空閑空間

 
 
 
  1. select tablespace_name,file_id,block_id,bytes,blocks from dba_free_space;

2、增加Oracle表空間

先查詢數(shù)據(jù)文件名稱、大小和路徑的信息,語句如下:

 
 
 
  1. select tablespace_name,file_id,bytes,file_name from dba_data_files;

3、修改文件大小語句如下

 
 
 
  1. alter database datafile 
  2. '需要增加的數(shù)據(jù)文件路徑,即上面查詢出來的路徑
  3. 'resize 800M;

4、創(chuàng)建Oracle表空間

 
 
 
  1. create tablespace test
  2. datafile '/home/app/oracle/oradata/oracle8i/test01.dbf' size 8M
  3. autoextend on
  4. next 5M
  5. maxsize 10M;
  6. create tablespace sales
  7. datafile '/home/app/oracle/oradata/oracle8i/sales01.dbf' size 800M
  8. autoextend on
  9. next 50M
  10. maxsize unlimited
  11. maxsize unlimited 是大小不受限制
  12. create tablespace sales
  13. datafile '/home/app/oracle/oradata/oracle8i/sales01.dbf' size 800M
  14. autoextend on
  15. next 50M
  16. maxsize 1000M
  17. extent management local uniform;
  18. unform表示區(qū)的大小相同,默認為1M
  19. create tablespace sales
  20. datafile '/home/app/oracle/oradata/oracle8i/sales01.dbf' size 800M
  21. autoextend on
  22. next 50M
  23. maxsize 1000M
  24. extent management local uniform size 500K;
  25. unform size 500K表示區(qū)的大小相同,為500K
  26. create tablespace sales
  27. datafile '/home/app/oracle/oradata/oracle8i/sales01.dbf' size 800M
  28. autoextend on
  29. next 50M
  30. maxsize 1000M
  31. extent management local autoallocate;
  32. autoallocate表示區(qū)的大小由隨表的大小自動動態(tài)改變,大表使用大區(qū)小表使用小區(qū)
  33. create tablespace sales
  34. datafile '/home/app/oracle/oradata/oracle8i/sales01.dbf' size 800M
  35. autoextend on
  36. next 50M
  37. maxsize 1000M
  38. temporary;
  39. temporary創(chuàng)建字典管理臨時表空間
  40. create temporary tablespace sales
  41. tempfile '/home/app/oracle/oradata/oracle8i/sales01.dbf' size 800M
  42. autoextend on
  43. next 50M
  44. maxsize 1000M
  45. 創(chuàng)建本地管理臨時表空間,如果是臨時表空間,所有語句中的datafile都換為tempfile
  46. 8i系統(tǒng)默認創(chuàng)建字典管理臨時表空間,要創(chuàng)建本地管理臨時表空間要加temporary tablespace關(guān)鍵字
  47. 創(chuàng)建本地管理臨時表空間時,不得使用atuoallocate參數(shù),系統(tǒng)默認創(chuàng)建uniform管理方式
  48. 為表空間增加數(shù)據(jù)文件:
  49. alter tablespace sales add
  50. datafile '/home/app/oracle/oradata/oracle8i/sales02.dbf' size 800M
  51. autoextend on next 50M
  52. maxsize 1000M;

創(chuàng)建本地管理臨時Oracle表空間,如果是臨時表空間,所有語句中的datafile都換為tempfile8i系統(tǒng)默認創(chuàng)建字典管理臨時表空間,要創(chuàng)建本地管理臨時表空間要加temporary tablespace關(guān)鍵字創(chuàng)建本地管理臨時表空間時,不得使用atuoallocate參數(shù),系統(tǒng)默認創(chuàng)建uniform管理方式

為表空間增加數(shù)據(jù)文件:

 
 
 
  1. alter tablespace sales add
  2. datafile '/home/app/oracle/oradata/oracle8i/sales02.dbf' size 800M
  3. autoextend on next 50M
  4. maxsize 1000M;

5、更改自動擴展屬性:

 
 
 
  1. alter database datafile
  2. '/home/app/oracle/oradata/oracle8i/sales01.dbf',
  3. '/home/app/oracle/oradata/oracle8i/sales02.dbf'
  4. '/home/app/oracle/oradata/oracle8i/sales01.dbf
  5. autoextend off;

以上介紹創(chuàng)建Oracle表空間,在這里拿出來和大家分享一下,希望對大家有用。


當(dāng)前文章:六分鐘學(xué)會創(chuàng)建Oracle表空間的步驟
標題鏈接:http://uogjgqi.cn/article/dpphsps.html
掃二維碼與項目經(jīng)理溝通

我們在微信上24小時期待你的聲音

解答本文疑問/技術(shù)咨詢/運營咨詢/技術(shù)建議/互聯(lián)網(wǎng)交流