ORACLE所在linux盤符空間不足的解決辦法
解決辦法有兩個(gè):
1、使用linux命令或者工具增加空間或者增加硬盤,沒有實(shí)際操作過;
2、給oracel數(shù)據(jù)庫增加系統(tǒng)表空間和臨時(shí)表空間,記錄下操作方法:
如果臨時(shí)表空間或者SYSTEM表空間不足,可以進(jìn)行新增數(shù)據(jù)文件到其它盤符(增加opt盤符目錄):
select ts#, name from v$datafile;--查看當(dāng)前的表空間狀況
select * from database_properties where property_name='DEFAULT_TEMP_TABLESPACE';--查看默認(rèn)的臨時(shí)文件
create temporary tablespace temp2 tempfile '/opt/oracle/oracle_tmp/temp02.dbf' size 5000M autoextend on next 100M; --新增臨時(shí)文件
alter database default temporary tablespace "TEMP2"; --修改默認(rèn)臨時(shí)文件設(shè)置
alter database tempfile '/home/oracle/oracle/oradata/portal/temp01.dbf' autoextend off; --關(guān)閉原來的臨時(shí)文件自增長(zhǎng)
增加系統(tǒng)表空間:
alter tablespace SYSTEM add datafile '/opt/oracle/oracle_tmp/system02.dbf' size 500M autoextend on next 5M;
如果startup數(shù)據(jù)庫時(shí),提示:prifile文件找不到,可以從一個(gè)$ORACLE_BASE/admin/portal/pfile目錄下拷貝內(nèi)容過去就可以(注意文件命名和原來使用的保持一樣,只是內(nèi)容不同):
當(dāng)前正在使用的pfile:startup force pfile='/home/oracle/oracle/product/11.0.1/db_1/dbs/initportal.ora';
拷貝:cp $ORACLE_BASE/admin/portal/pfile/init.ora.452011185827 /home/oracle/oracle/product/11.0.1/db_1/dbs/spfileportal.ora
posted on 2012-07-02 14:14 japper 閱讀(1324) 評(píng)論(0) 編輯 收藏 所屬分類: Oracle