Oracle DBA命令參考——alter database
alter database:修改資料檔案
alter database datafile 4 offline;
alter database datafile '/opt/oracle/datafile/users01.dbf' offline;
alter database datafile '/opt/oracle/datafile/users01.dbf' resize 100M;
alter database datafile '/opt/oracle/datafile/users01.dbf' autoextend on next 100M maxsize 1000M;
alter database datafile 4 end backup;
alter database:修改臨時檔案(tempfile)
alter database tempfile 4 resize 100M;
alter database tempfile 4 autoextend on next 100M maxsize 1000M;
alter database tempfile 4 drop including datafiles;
alter database tempfile 4 offline;
alter database:歸檔日誌(archivelog)模式命令
alter database archivelog;
alter database noarchivelog;
alter database force logging;
alter database clear logfile '/opt/oracle/logfiles/redo01.rdo';
alter database clear unarchived logfile '/opt/oracle/logfiles/redo01.rdo';
alter database add supplemental log data;
alter database add supplemental log data (primary key,unique);
alter database drop supplemental log data;
alter database:控制檔案操作
alter database backup controlfile to trace;
alter database backup controlfile to trace as '/opt/oracle/logfile_backup/backup_logfile.trc' reuse resetlogs;
alter database backup controlfile to '/opt/oracle/logfile_backup/backup_logfile.ctl';
alter database:建立資料檔案
alter database create datafile '/opt/oracle/datafile/users01.dbf' as '/opt/oracle/datafile/users01.dbf';
alter database create datafile 4 as '/opt/oracle/datafile/users01.dbf';
alter database create datafile '/opt/oracle/datafile/users01.dbf' as new;
alter database:資料檔案離線/聯機
參見“alter database:修改資料庫檔案”
alter database:日誌檔案命令
alter database add logfile group 2 ('/opt/oracle/logfiles/redo02a.rdo','/opt/oracle/logfile/redo02b.rdo') size 300M reuse;
alter database add logfile member '/opt/oracle/logfiles/redo02c.rdo' to gourp 2
alter database add logfile thread 3 group 2
('/opt/oracle/logfiles/redo02a.rdo','/opt/oracle/logfiles/redo02b.rdo')
size 300M reuse;
alter database drop logfile group 3
alter database drop logfile member '/opt/oracle/logfiles/redo02b.rdo';
alter database:安裝和開啟資料庫
alter database mount;
alter database open;
alter database:移動或重新命名資料庫檔案或聯機重做日誌
注意:資料庫必須已經安裝才能重新命名或移動聯機重做日誌。資料庫必須已經安裝或資料檔案處於離線狀態時,才能移動資料庫中的資料檔案。
alter database rename file '/ora/datafile/oldfile.dbf' to '/ora/datafile/newfile.dbf';
alter database:以只讀方式開啟資料庫
alter database open read only;
alter database:使用resetlogs開啟資料
alter database open resetlogs;
alter database:恢復資料庫
對資料庫的恢復,建議使用recover命令代替。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/30496894/viewspace-1816340/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle ASMCMD命令參考OracleASM
- 7 Oracle DataGuard 命令列參考Oracle命令列
- 【SCN】Oracle推薦scn命令參考Oracle
- 【RMAN】Oracle rman 常用命令參考Oracle
- 【BBED】Oracle bbed常用命令參考Oracle
- 【BLOCK】Oracle壞塊處理命令參考BloCOracle
- Oracle設定日誌引數-ALTER DATABASE ADD SUPPLEMENTAL LOG DATA;OracleDatabase
- alter database disable thread 2Databasethread
- 【SHRINK】Oracle收縮表的詳細命令參考Oracle
- 【RAC】Oracle rac修改IP地址及埠號命令參考Oracle
- oracle 參考資料Oracle
- LVS - ipvsadm命令參考
- Oracle官方參考資料Oracle
- 【RAC】Oracle10g rac新增刪除節點命令參考Oracle
- MySQL ALTER命令MySql
- Oracle 19c DBA's Guide(01): Getting Started with Database AdministrationOracleGUIIDEDatabase
- Redis命令參考之INFO命令詳解Redis
- 【RMAN】Oracle使用rman將11.2.0.4資料庫遷移至Oracle12c命令參考Oracle資料庫
- Redis(四)--- Redis的命令參考Redis
- 【XTTS】 xttdriver.pl命令參考TTS
- 【RMAN】Oracle12c以後rman 備份恢復命令參考Oracle
- HANA SQL參考及Oracle對照SQLOracle
- 【TUNE_ORACLE】ROWID切片SQL參考OracleSQL
- 【PDB】Oracle PDB資源管理參考Oracle
- ORA-279 signalled during: alter database recover logfileDatabase
- 【Datapump】Oracle資料泵遷移資料命令參考(expdp/impdp說明)Oracle
- 2.13 靜默模式DBCA命令參考模式
- mysql的ALTER TABLE命令MySql
- JDK11的工具的命令參考JDK
- [Ext JS] Sencha Cmd命令參考之一JS
- oracle ocp 19c考題8,科目082考試題-logical and physical database structuresOracleDatabaseStruct
- ORACLE database vaultOracleDatabase
- Oracle clone databaseOracleDatabase
- Oracle Database Cloud - Database as a Service Quick StartOracleDatabaseCloudUI
- 【TUNE_ORACLE】列出走了Filter的SQL參考OracleFilterSQL
- PostgreSQL DBA(138) - PG 13(Drop database force)SQLDatabase
- Mimikatz 非官方指南和命令參考_Part3
- Mimikatz 非官方指南和命令參考_Part1
- Mimikatz 非官方指南和命令參考_Part2