91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

給表空間增加數據文件,存儲在ASM

發布時間:2020-06-20 23:42:12 來源:網絡 閱讀:808 作者:新夢傳奇 欄目:數據庫

**管控  10.1.80.174  實例名PGJT2,表空間為ODS已經滿了,申請增加數據文件。

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    使用率達到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

如何查找這個路徑呢?

ps  -ef | grep  smon

會查找到 asm_smon_+ASM2   

[oracle]$ export  ORACLE_SID=+ASM2

[oracle] $ asmcmd

ASMCMD > lsdg

ASMCMD> cd  data

ASMCMD > ls

ASMCMD > cd  DATAFILE

ASMCMD> ls

發現了ods.539.784460919

增加數據文件   alter tablespace ODS add datafile ‘+DATA‘  size 8G;

(說明:直接加+DATA就可以,不用寫/pgjt/datafile/ods.539.784460919,會自動生成。)

驗證:用前面的方法還有查看系統日志

 

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

玉门市| 西乌珠穆沁旗| 巴彦淖尔市| 百色市| 东明县| 沭阳县| 青川县| 蛟河市| 将乐县| 三亚市| 汝州市| 大埔区| 塘沽区| 闻喜县| 扎鲁特旗| 宁国市| 金溪县| 孟州市| 剑阁县| 平江县| 兰考县| 准格尔旗| 天祝| 托克逊县| 平定县| 柯坪县| 新乡县| 卢龙县| 南乐县| 玛曲县| 扬州市| 高清| 琼海市| 收藏| 抚远县| 龙门县| 南宫市| 和龙市| 桂阳县| 宁阳县| 贺州市|