ITPub博客

首页 > Linux操作系统 > Linux操作系统 > oracle中Alter system 命令的总结

oracle中Alter system 命令的总结

原创 Linux操作系统 作者:大米嗵嗵 时间:2012-01-17 11:24:57 0 删除 编辑

Alter system archive log [start|stop|all|...]

alter system archive log all;
alter system archive log next;
alter system archive log sequence 104;
alter system archive log current;
alter system archive log current noswitch;
The following command can be used to stop.
alter system archive log stop
Similarly, arch is started with
alter system archive log start
However, changing the archiver this way doesn't last when the database is restarted. When the database is started, it consultsin the initialization file to determine ifis started.

Alter system archive log all

This command is used to.

alter system disconnect session

alter system kill session

alter system kill session 'session-id,session-serial'
This command kills a. Thesession-idandsession-serialparameters are found in theview (columnssidandserial#.

alter system checkpoint

Performs a
alter system checkpoint

alter system dump datafile

This command can be used in order toof a. The following command dumps blocks 50 through 55 of file 5. Which file 5 is can be found out with
alter system dump datafile 5 block min 50 block max 55;
Note:are only readable by the Oracle account. If you want to change this, set the undocumented initialization parameterto true. Doing so will, however, cause abig security risk.

alter system flush buffer_cache

alter system flush buffer_cache;
This command is not available prior to. It flushes thein the.
9i had an undocumented command to flush the buffer cache:
set events = 'immediate trace name flush_cache';

alter system flush shared_pool

alter system flush shared_pool;
This command flushed the.

alter system quiesce restricted

alter system suspend|resume

alter system switch logfile

Causes a.
alter system switch logfile;
If the database is in, but theprocess hasn't been startedm, the command might hang, because it waits for the archiving of the 'next'.

alter system register

Forces theof database information with the.
alter system register

Alter system set timed_statistics

Setting timed_statistics=true might be usefule when using.

Alter system set sql_trace

Setting sql_trace=true is a prerequisite when using.

Alter system set .... deferred

Alter system can be used to changeon system level. However, some parameters, when changed with alter system don't affect sessions that are already opened at the time when the statement is executet; it only affects sessions started later. These parameters must be changed withalter system set DEFERRED, otherwise aORA-02096: specified initialization parameter is not modifiable with this option error is returned.
These parameters can be identified as they have a DEFERRED in theisses_modifiablecolumn of.

Alter system reset

a parameter.
alter system reset some_param scope=both sid='*';

scope

scope=memory

Changes the parameter's value for the running instance only. As soon as the instance is stopped and started, this change will be lost.

scope=spfile

Alters anin the

scope=both

Alters anin theas well as in the running instance

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/24005010/viewspace-715005/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2010-07-31

  • 博文量
    75
  • 访问量
    150007