下載本文檔
版權(quán)說(shuō)明:本文檔由用戶(hù)提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、ORACLE表空間擴(kuò)展方法2011-10-3118:58:59我來(lái)說(shuō)兩句收藏我要投稿字體:小大環(huán)境:linux系統(tǒng)工具:PL/SQLDEVELOPER第一步:查看表空間的名字及文件所在位置:selecttablespace_name,file_id,file_name,round(bytes/(1024*1024),0)total_spacefromdba_data_filesorderbytablespace_name.対SQL窗口-selecttablespacesin巳和md,file_riain巳round(bytes/(1024*10240)total_spacefromdba_da
2、ta.SQL統(tǒng)計(jì)表selecttablespace_name,file_id,file_name,round(bytes/(1024*1024),0)total_spacefromdba_data_filesorderbytablespace_name;g-好至隔ayssMi-TABLESPACENAMEFILEDFILENAMETQTALSPACE1NITATEST-10/home/oraclEbpfVcifdclEfcirchtdfgtiPdCigbnitXEStCiI.citif-102ANITATEST-11/home/ora匚1已掃p時(shí)口日匚1引mcidtdfgtikl0g/anit
3、atest02.dbf-1037040001547551203SYSAUX-3/home/oracle/app/oracle/oradata/gbk10g/sysaux01.dbf-4SYSTEM-1/home/ora匚1已/app/ora匚1已/oradata/gbk10g/system01.dbf-5UNDOTBS1-2/home/ora匚1已/app/ora匚1已/oradata/gbk10g/undotbs01.dbf-6USERS-9/home/ora匚1已/app/oracle/oradata/gbk1Og/usersOB.dbf-二少5:1tablespace-name,varc
4、har2C30optional,NameofthetablespacetowhichthefileOracleTableSpace01.jpg?psid第二步:增大所需表空間大?。篴lterdatabasedatafile表空間位置resize新的尺寸例如:alterdatabasedatafileoracleoradataanita_2008.dbfresize4000m對(duì)于oracleODD的表空間,除了用手動(dòng)增加大小外,還可以增加數(shù)據(jù)文件等方式擴(kuò)展表空間大小。方法一:增加數(shù)據(jù)文件個(gè)數(shù)altertablespace表空間名稱(chēng)adddatafile新的數(shù)據(jù)文件地址size數(shù)據(jù)文件大小例如:a
5、ltertablespaceESPS_2008adddatafileoracleoradataanita_2010.dbfsize1000m方法二:設(shè)置表空間自動(dòng)擴(kuò)展。alterdatabasedatafile數(shù)據(jù)文件位置autoextendonnext自動(dòng)擴(kuò)展大小maxsize最大擴(kuò)展大小例如:alterdatabasedatafileoracleoradataanita_2008.dbfautoextendonnext100mmaxsize10000m方法三:查詢(xún)表空間使用情況:selecta.tablespace_name,a.bytes/1024/1024sumMB,(a.bytes-
6、b.bytes)/1024/1024usedMB,b.bytes/1024/1024freeMB,round(a.bytes-b.bytes)/a.bytes)*100,2)used%from(selecttablespace_name,sum(bytes)bytesfromdba_data_filesgroupbytablespace_name)a,(selecttablespace_name,sum(bytes)bytes,max(bytes)largestfromdba_free_spacegroupbytablespace_name)bwherea.tablespace_name=b.
7、tablespace_nameorderby(a.bytes-b.bytes)/a.bytes)desc;SQL窗口-selecta.tablespace_nameja.bytes/1024/1024sumMB,(a.bytes-b.bytes)/1024/1024usedMBjb.byt.SQL統(tǒng)計(jì)表selecta.tablespace_name,a.bytes/1024/1024sumMB,(a.bytes-b.bytes)/1024/1024usedMB,b.bytes/1024/1024TreeMB,round(a.bytes-b.bytesya.bytesfl00,2)used%fr
8、om(selecttablespace_name,sum(bytes)bytesfromdba_data_filesgroupbytablespace_name)a,(selecttablespace_name,sum(bytes)bytes.max(bytes)largestfromdba_free_spacegroupbytablespace_name)wherea.tablespace_name=b.tablespace_nameorderby(a.bytes-b.bytes)/a.bytes)desc;|TABLESPACENAMEsumMBusedMBfreeMBused%1SYSA
9、UX-370344.687525.312593.162SYSTEM-40002722.6251277.37568.073USERS-140287.937583865.062556422.87559.784UNDOTBS1-15475594.687514880.31253.845ANITATEST-200.2519.751.25SQL窗口-selecta.tablespace_nameja.bytes/1024/1024sumMB,(a.bytes-b.bytes)/1024/1024usedMBjb.byt.SQL窗口-selecta.tablespace_nameja.bytes/1024/1024sumMB,(a.bytes-b.bytes)/1024/1024usedMBjb.byt.=38:430:015行被選擇,耗時(shí)1.015秒SQL窗口-selecta.tablespace_nameja.bytes/1024/1024s
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶(hù)所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶(hù)上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶(hù)上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶(hù)因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 反手推擋球技術(shù)游戲教案高一上學(xué)期體育與健康人教版
- 如何在生產(chǎn)計(jì)劃中引入敏捷管理
- 培養(yǎng)小學(xué)品德教育新風(fēng)尚計(jì)劃
- 養(yǎng)成教育與習(xí)慣培養(yǎng)計(jì)劃
- 提升財(cái)務(wù)分析能力的有效途徑計(jì)劃
- 幼兒園數(shù)字化教育的推進(jìn)方案計(jì)劃
- 河南省周口市項(xiàng)城市2023-2024學(xué)年四年級(jí)(上)月考英語(yǔ)試卷(10月份)
- 幼兒園科學(xué)會(huì)唱歌的罐罐
- 人版九年級(jí)全一冊(cè)同步備課:18.2電功率 教案
- 《創(chuàng)意車(chē)模大賽二》(教學(xué)設(shè)計(jì))六年級(jí)上冊(cè)科學(xué)冀人版
- 小區(qū)智能化工程施工組織設(shè)計(jì)方案
- 第一次月考+(1-2單元)-+2024-2025學(xué)年五年級(jí)上冊(cè)數(shù)學(xué)蘇教版
- GB/T 44280-2024工業(yè)互聯(lián)網(wǎng)平臺(tái)監(jiān)測(cè)分析指南
- 2024至2030年中國(guó)隔熱保溫材料行業(yè)市場(chǎng)前景預(yù)測(cè)與投資戰(zhàn)略咨詢(xún)報(bào)告
- GB/T 24067-2024溫室氣體產(chǎn)品碳足跡量化要求和指南
- GB 44495-2024汽車(chē)整車(chē)信息安全技術(shù)要求
- 工商銀行校園招聘筆試復(fù)習(xí)題集和復(fù)習(xí)資料
- (中級(jí))航空油料特設(shè)維修員(四級(jí))理論考試題庫(kù)-下(判斷題)
- 2024年全國(guó)財(cái)會(huì)知識(shí)競(jìng)賽考試題庫(kù)(濃縮500題)
- 2024年中小學(xué)教師“一考三評(píng)”考試復(fù)習(xí)題庫(kù)附答案
- 醫(yī)院化驗(yàn)單模板 血常規(guī)
評(píng)論
0/150
提交評(píng)論