Alter system 命令汇总

Alter system 命令汇总

it is fromhttp://www.adp-gmbh.ch/ora/sql/alter_system.html

this is a good personal blog website!

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

 
 
The following command can be used to stop arch .
 
 
Similarly, arch is started with
 
 
However, changing the archiver this way doesn't last when the database is restarted. When the database is started, it consults log_archive_start in the initialization file to determine if arch is started.

Alter system archive log all

This command is used to manually archive redo logs .

alter system disconnect session

alter system kill session

 
 
This command kills a session . Thesession-idandsession-serialparameters are found in the v$session view (columnssidandserial#.

alter system checkpoint

Performs a checkpoint
 
 

alter system dump datafile

This command can be used in order to dump one ore more blocks of a datafile . The following command dumps blocks 50 through 55 of file 5. Which file 5 is can be found out with v$datafile
 
 
Note: trace files are only readable by the Oracle account. If you want to change this, set the undocumented initialization parameter _trace_files_public to true. Doing so will, however, cause abig security risk.

alter system flush buffer_cache

 
 
This command is not available prior to 10g . It flushes the buffer cache in the SGA .
9i had an undocumented command to flush the buffer cache:

alter system flush shared_pool

 
 
This command flushed the shared pool .

alter system quiesce restricted

alter system suspend|resume

alter system switch logfile

Causes a redo log switch .
 
 
If the database is in archive log mode , but the ARCH process hasn't been startedm, the command might hang, because it waits for the archiving of the 'next' online redo log .

alter system register

Forces the registration of database information with the listener .
 
 

Alter system set timed_statistics

Setting timed_statistics=true might be usefule when using tk prof .

Alter system set sql_trace

Setting sql_trace=true is a prerequisite when using tk prof .

Alter system set .... deferred

Alter system can be used to change initialization parameters on 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 v$parameter .

Alter system reset

Resets a parameter.
 
 

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 an initialization parameter in the spfile

scope=both

Alters an initialization parameter in the spfile as well as in the running instance.

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

转载于:http://blog.itpub.net/14999074/viewspace-591080/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值