標籤:log 增加 檔案的 轉換 name port stat lte rom
直接登入主機後;
如果需要轉換資料庫的執行個體,則在Windows裡輸入,需要在ORACLE的根目錄下輸入set oracle_id=...,在AIX系統裡輸入export ORACLE_SID=.....
認證方式:AIX echo $ORACLE_SID
Windows set oracle_id
直接輸入sqlplus /nolog;
直接輸入conn /as sysdba
進入ORACLE介面後
1)增加資料檔案大小
輸入select
from v$instance,查詢現在使用的資料庫名
輸入select ts#,name from v$tablespace,查詢現在各個資料表空間對應的TS
輸入select name,bytes,status from v$datafile where ts#=10;查詢TS為10的資料表空間對應檔案名稱
如果是暫存資料表空間:
輸入 select name,bytes,status from v$tempfile where ts#=10;
可以輸入col name format a30,對欄位的顯示長度進行調整
輸入alter database datafile ‘+SZCG_ASM_GROUP/szcg/datafile/tbs_dxpt.dbf‘ resize 1500M,
如果是暫存資料表空間:
輸入alrter database tempfile ‘+SZCG_ASM_GROUP/szcg/datafile/tbs_dxpt.dbf’ resize 1500M;
對於bigfile檔案處理格式的,輸入alter tablespace system resize 1500M;
2)增加資料檔案的檔案數
輸入select from v$instance,查詢現在使用的資料庫名
輸入select ts#,name from v$tablespace,查詢現在各個資料表空間對應的TS
輸入select name,bytes,status from v$datafile where ts#=10;查詢TS為10的資料表空間對應檔案名稱
輸入select free_mb from v$asm_diskgroup;查看ASM還有多少的空餘空間,
輸入desc v$asm_diskgroup; 查看ASM表結構
輸入alter tablespace system add datafile ‘+system_dg’ size 100m;
如果是暫存資料表空間:
輸入alter tablespace temp add tempfile ‘+system_dg’ size 2G;
oracle擴充資料庫的資料表空間