中文字幕日韩精品一区二区免费_精品一区二区三区国产精品无卡在_国精品无码专区一区二区三区_国产αv三级中文在线

給表空間增加數(shù)據(jù)文件,存儲(chǔ)在ASM

**管控  10.1.80.174  實(shí)例名PGJT2,表空間為ODS已經(jīng)滿了,申請(qǐng)?jiān)黾訑?shù)據(jù)文件。

成都創(chuàng)新互聯(lián)公司專(zhuān)注于吳興網(wǎng)站建設(shè)服務(wù)及定制,我們擁有豐富的企業(yè)做網(wǎng)站經(jīng)驗(yàn)。 熱誠(chéng)為您提供吳興營(yíng)銷(xiāo)型網(wǎng)站建設(shè),吳興網(wǎng)站制作、吳興網(wǎng)頁(yè)設(shè)計(jì)、吳興網(wǎng)站官網(wǎng)定制、微信小程序服務(wù),打造吳興網(wǎng)絡(luò)公司原創(chuàng)品牌,更為您提供吳興網(wǎng)站排名全網(wǎng)營(yíng)銷(xiāo)落地服務(wù)。

col tablespace_name for a15;

select d.tablespace_name,space "sum_space(m)",blocks sum_blocks,space-nvl(free_space,0) "used_space(m)",

round((1-nvl(free_space,0)/space)*100,2) "used_rate(%)",free_space "free_space(m)"                     

from                                                                                                   

(select tablespace_name,round(sum(bytes)/(1024*1024),2) space,sum(blocks) blocks                       

from dba_data_files                                                                                    

group by tablespace_name) d,                                                                            

(select tablespace_name,round(sum(bytes)/(1024*1024),2) free_space                                     

from dba_free_space                                                                                     

group by tablespace_name) f                                                                            

where d.tablespace_name = f.tablespace_name(+) union all                                               

select d.tablespace_name,space "sum_space(m)",blocks sum_blocks,                                       

used_space "used_space(m)",round(nvl(used_space,0)/space*100,2) "used_rate(%)",                        

nvl(free_space,0) "free_space(m)"                                                                       

from                                                                                                   

(select tablespace_name,round(sum(bytes)/(1024*1024),2) space,sum(blocks) blocks                       

from dba_temp_files                                                                                     

group by tablespace_name) d,                                                                       

(select tablespace_name,round(sum(bytes_used)/(1024*1024),2) used_space,                               

round(sum(bytes_free)/(1024*1024),2) free_space                                                        

from v$temp_space_header                                                                               

group by tablespace_name) f                                                                            

where d.tablespace_name = f.tablespace_name(+);

------------ASM-----------------------------

select NAME,TOTAL_MB,FREE_MB from v$asm_diskgroup;

 

查看出 ODS    使用率達(dá)到99%      ,DATA 剩余1.3T

Select  file_name,tablespace_name ,status from dba_data_files where tablespace_name=’ODS’;

 

FILE_NAME                            TABLESPACE_NAME          STATUS

+DATA/pgjt/datafile/ods.539.784460919        ODS                    AVAILABLE

如何查找這個(gè)路徑呢?

ps  -ef | grep  smon

會(huì)查找到 asm_smon_+ASM2   

[oracle]$ export  ORACLE_SID=+ASM2

[oracle] $ asmcmd

ASMCMD > lsdg

ASMCMD> cd  data

ASMCMD > ls

ASMCMD > cd  DATAFILE

ASMCMD> ls

發(fā)現(xiàn)了ods.539.784460919

增加數(shù)據(jù)文件   alter tablespace ODS add datafile ‘+DATA‘  size 8G;

(說(shuō)明:直接加+DATA就可以,不用寫(xiě)/pgjt/datafile/ods.539.784460919,會(huì)自動(dòng)生成。)

驗(yàn)證:用前面的方法還有查看系統(tǒng)日志

 

網(wǎng)站名稱:給表空間增加數(shù)據(jù)文件,存儲(chǔ)在ASM
網(wǎng)站鏈接:http://www.rwnh.cn/article20/jipijo.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供微信小程序、品牌網(wǎng)站制作、網(wǎng)站營(yíng)銷(xiāo)服務(wù)器托管、移動(dòng)網(wǎng)站建設(shè)商城網(wǎng)站

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)

綿陽(yáng)服務(wù)器托管
巴南区| 舞钢市| 阜城县| 新乐市| 丹凤县| 碌曲县| 公主岭市| 漳浦县| 和田市| 准格尔旗| 芦溪县| 综艺| 临泽县| 齐齐哈尔市| 玉树县| 民乐县| 吴川市| 绿春县| 梓潼县| 威远县| 衡水市| 北辰区| 论坛| 隆回县| 乐陵市| 嘉善县| 平和县| 鹰潭市| 明溪县| 黄陵县| 监利县| 尉氏县| 滦南县| 依兰县| 政和县| 宕昌县| 班玛县| 容城县| 文安县| 湖州市| 库尔勒市|