日韩无码专区无码一级三级片|91人人爱网站中日韩无码电影|厨房大战丰满熟妇|AV高清无码在线免费观看|另类AV日韩少妇熟女|中文日本大黄一级黄色片|色情在线视频免费|亚洲成人特黄a片|黄片wwwav色图欧美|欧亚乱色一区二区三区

RELATEED CONSULTING
相關(guān)咨詢
選擇下列產(chǎn)品馬上在線溝通
服務(wù)時(shí)間:8:30-17:00
你可能遇到了下面的問題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
六步了解Oracle表空間狀態(tài)

本人很喜歡Oracle表空間,在工作中也很喜歡總結(jié)關(guān)于Oracle表空間狀態(tài)的經(jīng)驗(yàn)教訓(xùn),下面就這個(gè)問題來詳細(xì)說說吧。

1、查詢Oracle表空間狀態(tài)

 
 
 
  1. select tablespace_name,status from dba_tablespaces; 

2、更改Oracle表空間狀態(tài)

 
 
 
  1. alter tablespace book offline/online/read only/read write; 

離線/在線/只讀/讀寫

3、數(shù)據(jù)文件移動(dòng)

 
 
 
  1. select tablespace_name,file_name from dba_data_files;  
  2. alter tablespace book offline; 

將要修改的文件移動(dòng)到新目錄下

 
 
 
  1. alter tablespace book rename datafile '/u01/oradata/oracle8i/sales01.dbf' to '/u02/oradata/oracle8i/sales01.dbf'; 

4、修改數(shù)據(jù)文件的online/offline屬性

archivelog模式下

 
 
 
  1. alter database datafile '/u01/oradata/oracle8i/sales01.dbf' offline; 

noarchivelog模式下

 
 
 
  1. alter database datafile '/u01/oradata/oracle8i/sales01.dbf' offline drop; 

5、數(shù)據(jù)字典表空間與本地化管理表空間的轉(zhuǎn)化為

 
 
 
  1. select tablespace_name,extent_management,allocation_type from dba_tablespace;  
  2. exec dbms_space_admin.tablespace_migrate_to_local('book') 

系統(tǒng)表空間system和臨時(shí)表空間temp不得轉(zhuǎn)換

 
 
 
  1. exec dbms_space_admin.tablespace_migrate_from_local('book')  

6、刪除表空間

 
 
 
  1. drop tablespace student including contents; 

including contents將表空間及實(shí)體刪除

 
 
 
  1. create table test(id number(3)) tablespace test_tablesapce; 

以上介紹Oracle表空間狀態(tài),這里我發(fā)表一下個(gè)人理解,和大家討論討論。


網(wǎng)頁名稱:六步了解Oracle表空間狀態(tài)
路徑分享:http://www.5511xx.com/article/coehpji.html