freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內容

oracle數(shù)據(jù)庫基礎及應用第10章管理表空間和文件(編輯修改稿)

2025-03-02 12:31 本頁面
 

【文章內容簡介】 xtentsUSER_extentsV$datafileV$tempfileDBA_datafilesDBA_tempfilesDBA_ts_quotasDBA_free_spaceUSER_free_space? 系統(tǒng)數(shù)據(jù)字典 dba_tablespaces中記錄了關于表空間的信息:select * from 。字段 含義 字段 含義tablespace_name Tablespace_name min_extlen minimum extent size for the tablespaceblock_size tablespace block size status online,offline readinitial_extent default initial extent sizecontents permanent, temporary, undonext_extent default incremental extent sizelogging default logging attributemin_extents default minimum number of extentsforce_logging tablespace force logging modemax_extents default maximum number of extentsextent_managementdictionary, localpct_increase default percent increase for extent sizeallocation_type type of extent allocation in effect for this tablespaceplugged_in segment_space_managementauto, manual列出表空間、表空間文件、分配的空間、空閑空間以及下一個空閑分區(qū)列出數(shù)據(jù)文件、表空間名以及大?。毫谐霰砜臻g、大小、空閑空間以及空閑空間的百分比 計算表空間每個數(shù)據(jù)文件實際的最小空間以及對應的文件名,其大小與磁盤操作系統(tǒng)中顯示的不同 管理數(shù)據(jù)文件 數(shù)據(jù)文件l 數(shù)據(jù)文件是用于存儲數(shù)據(jù)庫中數(shù)據(jù)的操作系統(tǒng)文件。創(chuàng)建數(shù)據(jù)庫時會創(chuàng)建幾個 Oracle系統(tǒng)使用的數(shù)據(jù)文件;l 數(shù)據(jù)文件與表空間密不可分的,創(chuàng)建表空間同時必須為該表空間創(chuàng)建對應的數(shù)據(jù)文件;數(shù)據(jù)文件依賴于表空間,不能獨立存在,在創(chuàng)建數(shù)據(jù)文件時必須指定隸屬的表空間。否則,不會被存取。l DBA可以單獨創(chuàng)建數(shù)據(jù)文件,并必須指定其隸屬的表空間,也可以單獨對其進行管理。創(chuàng)建數(shù)據(jù)文件? 創(chuàng)建數(shù)據(jù)文件的過程實質上就是向表空間中添加文件的過程。? 在創(chuàng)建表空間時,通常會預先估計表空間所需要的存儲空間大小,然后為它建立若干適當大小的數(shù)據(jù)文件。如果在使用過程中發(fā)現(xiàn)表空間存儲空間不足,可以再為它添加新的數(shù)據(jù)文件。創(chuàng)建數(shù)據(jù)文件? 可以在創(chuàng)建表空間、修改表空間、創(chuàng)建數(shù)據(jù)庫時創(chuàng)建數(shù)據(jù)文件。Createtablespace..datafile語句Altertablespace..Adddatafile語句Createtemporarytablespace..tempfile語句Altertablespace…add tempfile語句Createdatabase語句? 例:下面的語句為表空間 tbspace添加一個大小為 20MB的數(shù)據(jù)文件SQLALTERTABLESPACEUSER012adddatafile‘D:\ORADATA\TEST\’size20m。修改數(shù)據(jù)文件大小? 除了創(chuàng)建新的數(shù)據(jù)文件外,另一種增加表空間的存儲空間的方法是改變已經存在的數(shù)據(jù)文件的大小。? 改變數(shù)據(jù)文件大小的方式有兩種:– 設置數(shù)據(jù)文件為自動增長 – 手動改變數(shù)據(jù)文件的大小1.設定數(shù)據(jù)文件自動增長方式 1)創(chuàng)建表空間時設定Createtablespace…Datafile|tempfile…size.. Autoextendonnext..Maxsize..2)表空間中增加一個新的自增文件Alterdatabase… adddatafile…size…Autoextendonnext…maxsize…3)取消已有數(shù)據(jù)文件的自增方式AlterdatabaseDatafile… Autoextendoff。4)如果數(shù)據(jù)文件已創(chuàng)建,現(xiàn)要修改為自增Alterdatabasedatafile…Autoextendonnext…maxsize…。2.手動改變數(shù)據(jù)文件大小 手動方式改變數(shù)據(jù)文件大小時,需要使用 resize語句。例如,下面的語句將數(shù)據(jù)文件的大小增長為 100MB。SQLALTERDATABASE2datafile‘D:\app\Administrator\ORADATA\TEST\’3resize100m。移動數(shù)據(jù)文件? 因不同原因,在創(chuàng)建數(shù)據(jù)文件后,需要考慮移動數(shù)據(jù)文件到新的位置。例如:將一個迅速增長的文件移至磁盤空間較大的盤區(qū);調整 I/O性能;當某個磁盤損毀時,為了使數(shù)據(jù)庫系統(tǒng)繼續(xù)運行,也可能要將一個或幾個數(shù)據(jù)文件移動到其他磁盤上。? 移動分為兩種情況:同一表空間下的數(shù)據(jù)文件移動、多個表空間下的數(shù)據(jù)文件移動。? 注意:移動數(shù)據(jù)文件改變數(shù)據(jù)庫物理結構,在操作之前要對數(shù)據(jù)庫進行備份。以便操作失敗恢復。在完成后要及時備份控制文件,記錄下修改后的數(shù)據(jù)庫物理結構。如:將 demo表空間下的數(shù)據(jù)文件由默認位置移至 D:\下。步驟 : (在 open狀態(tài)下操作 )1.使表空間脫機;2.移動數(shù)據(jù)文件;3.執(zhí)行 altertablespace表空間名renamedatafile‘文件名 ’[,‘文件名 ’]to‘文件名 ’[,‘文件名 ’]。4.使表空間連機; 5.備份控制文件如 :將 teachertbs表空間的 、 studenttbs表空間的 D:\下。步驟 :1.使表空
點擊復制文檔內容
法律信息相關推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1