Alter system in Oracle
ThisURL:
Alter system reset
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
consults
in the initialization file to determine if
is 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 . The
session-id and session-serial parameters
are found in the
view (columns
sid and serial#.
alter system checkpoint
Performs a
alter system checkpoint
alter system dump datafile
This command can be used in order to
of 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 parameter
to true.
Doing so will, however, cause a big security risk.
alter system flush buffer_cache
alter system flush buffer_cache;
This command is not available prior to . It flushes
the in 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 the
process hasn't been startedm, the command might hang, because it waits
for the archiving of the 'next' .
alter system register
Forces the
of 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 change 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
with alter system set DEFERRED ,
otherwise a
ORA-02096: specified initialization
parameter is not modifiable with this option error is returned.
These parameters can be identified as they have a DEFERRED in the isses_modifiable
column 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 an in the
scope=both
Alters an in the as well
as
in the running instance.
Thanks
Thanks to Matt Elliot and Jamey Johnston for
correcting errors on this page.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/90618/viewspace-668187/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- alter system events與alter system event的區別
- oracle中Alter system 命令的總結Oracle
- [alter system dump學習1]alter system dump logfile
- alter system archive log current和alter system switch logfileHive
- 【Oracle】alter system set events 相關知識Oracle
- ALTER SYSTEM SWITCH LOGFILE ALTER SYSTEM ARCHIVELOG CURRENT 區別Hive
- alter system kill sessionSession
- alter database和alter system和alter session的區別DatabaseSession
- alter system switch logfile和alter system archive log current的區別Hive
- alter system switch logfile 和 alter system archive log current 的區別Hive
- alter system check datafiles 命令
- alter session|system set eventsSession
- [轉]alter system switch logfile和alter system archive log current的區別Hive
- zt:alter system switch logfile與ALTER SYSTEM ARCHIVE LOG CURRENT的區別Hive
- alter system dump datafile headerHeader
- ALTER SYSTEM DISCONNECT SESSION ClauseSession
- alter system archive log current noswitch!!Hive
- 忍不住問下alter system 和alter database的區別Database
- alter system kill session 不成功Session
- 【故障-ORACLE】‘ALTER SYSTEM SET service_names='' SCOPE=MEMORY SID=’解釋Oracle
- alter system set events 相關知識
- alter system set events 知識 [final]
- alter system set events相關知識:
- alter system set events相關知識
- oracle switch logfile日誌切換及alter system checkpoint作了什麼Oracle
- alter system archive log current / all / switch logfileHive
- ALTER SYSTEM KILL SESSION這麼沒力?(轉)Session
- Alter table for ORACLEOracle
- alter database in OracleDatabaseOracle
- alter system set event和set events的區別
- 停庫前執行alter system checkpoint 很重要!
- Alter system suspend/resume 導致的bug和特性
- ALTER SYSTEM 中 SCOPE=SPFILE/MEMORY/BOTH 的區別:
- alter system disconnect/kill session 'sid,serial#';Session
- ora-00054 , alter system kill session 'id,serial#'Session
- ORACLE之手動註冊監聽listener。alter system set local_listener="XXX"Oracle
- alter system switch logfile hang住的一種可能
- "alter system kill session" can crash the instance if IO slaves usedSession