alter database in Oracle
url:
Whenever the database is altered, the should be backed up. alter database datafile
This is the way how the characteristics of
can be changed.
alter database datafile 'DF' end backup
This command can be used for a
Note:There is no alter database datafile 'DF' begin
backup command.
alter database datafile offline drop
This command is not meant to .
It is meant to offline the datafile with the intention of
dropping the .
alter database archivelogalter database
Alter database archivelog is simply an instruction to oracle
not to overwrite an
that has not yet been
.
Either you archive those manually or have
do it.
See and .
See also .
alter database backup controlfile to ['filename' | trace]
This command comes in two versions. One backs up the in
a binary format while the other backs it up in a human readable form.
It is required if the database is running in
and a
.
Backing it up in a binary format:
alter database backup controlfile to '/some/arbitrary/path';
Backing it up in a human readable format:
alter database backup controlfile to trace;
If the human readable form. is chosen, the file can be made usable
if the comments at the beginning are removed and replaced with a .
If the
file is not at its default location, it has to be appended with a pfile=....
in the line containing a startup.
alter database flashback on | offalter database flashback on; alter database [no] force logging
If a database is in force logging mode, all changes, except
those in
, will be logged, independently from
any .
It is also possible to put arbitrary tablespaces into force
logging mode: .
A force logging might take a while to complete because it
waits for all unlogged direct I/O operations to finish.
alter database open
.. yet to be finished ..
alter database open resetlogs
are re-created
. The log sequence is reset to 1.
If the databaseis running in , the archived redo logs
should then be deleted. Otherwise, chances are, that Oracle will
eventually try to create an archived redo log whose filename already
exists.
alter database open read onlyStandby database
The following alter database commands are used for a .
alter database ACTIVATE [phisical|locigal] standby database [skip [standby logfile]]
Changes a database to an active database. This is a preprationlal
step for the database to become a .
The database must be .
and
specify what kind of database is going to be activated.
alter database SET STANDBY DATABASE TO MAXIMIZE [protection| availablity | performance]alter database SET STANDBY DATABASE TO MAXIMIZE ; alter database REGISTER [or replace] [physical | logical] logfile [ redo_log_file_spec [, ...]]alter database MOUNT STANDBY databasealter database CREATE STANDBY CONTROLFILEalter database create standby controlfile as '/some/path/to/a/file';
See creating physical standby databases:
commit switchover clause
Yet to be do
alter database START LOGICAL STANDBY APPLY [ new primary dblink | initial [scn_value]]alter database [STOP | ABORT] logical standby apply |
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/90618/viewspace-668186/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle DBA命令參考——alter databaseOracleDatabase
- alter database datafile offline and alter database tablespace ...offlineDatabase
- alter database create datafileDatabase
- alter database create datafile '' as ''Database
- alter database和alter system和alter session的區別DatabaseSession
- alter database open resetlogs;Database
- alter database offline 與 alter database offline drop效果比對Database
- alter database disable thread 2Databasethread
- ALTER DATABASE RESETLOGS 的作用Database
- DATA GUARD 中alter database 命令Database
- ALTER DATABASE DATAFILE OFFLINEDatabase
- Oracle11gr2新增ALTER DATABASE LINK語法OracleDatabase
- ALTER DATABASE 與 ALTER TABLESPACE OFFLINE的區別Database
- 忍不住問下alter system 和alter database的區別Database
- Oracle設定日誌引數-ALTER DATABASE ADD SUPPLEMENTAL LOG DATA;OracleDatabase
- Oracle OCP 1Z0 053 Q559(Alter Database Begin Backup)OracleDatabase
- ALTER DATABASE CLEAR UNARCHIVED LOGFILE的使用DatabaseHive
- alter database ... create datafile的原理及用途Database
- alter database datafile 4 offline drop;Database
- 恢復一則 alter database create datafile '' as ''Database
- alter database datafile offline drop 與 alter tablespace drop datafile 區別Database
- Alter table for ORACLEOracle
- Alter system in OracleOracle
- Alter database datafile resize ORA-03297 原因解析Database
- UNRECOVERABLE DATAFILE clause in the ALTER DATABASE CLEAR LOGFILE statementDatabase
- VMS: ALTER TABLESPACE/DATABASE TO RENAME FILES on VMS [ID 9560.1]Database
- alter database datafile .... offline drop的問題Database
- alter database backup controlfile to trace的問題Database
- 在alter database mount時的一點收穫Database
- alter database backup controlfile to trace的含義Database
- oracle alter table詳解Oracle
- 重建控制檔案--alter database backup controlfile to traceDatabase
- alter database drop datafile 與 drop tablespace file 的區別Database
- alter database datafile offline drop相關問題Database
- alter database archivelog manual__導致oracle10g switch logfile不自動歸檔DatabaseHiveOracle
- ORA-279 signalled during: alter database recover logfileDatabase
- 425alter database force logging修改那裡Database
- 部署 11G 物理DataGuard時 ALTER DATABASE OPEN 報錯Database