redo_logs
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| redo_logs [2015/12/18 10:27] – created z0hpvk | redo_logs [2025/03/08 22:24] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ==== Resizing Online ==== | ==== Resizing Online ==== | ||
| - | === Add New Online Redo Log Groups === | + | === Add New Log Groups === |
| If we are using OMF then all that is needed is the below 3 commands. | If we are using OMF then all that is needed is the below 3 commands. | ||
| Line 20: | Line 20: | ||
| 2 '/ | 2 '/ | ||
| 3 '/ | 3 '/ | ||
| + | | ||
| + | To add a log file to an existing redo log group ... | ||
| + | < | ||
| + | Note that the status of the logfile will be invalid before it is used. | ||
| + | |||
| + | === Check Status of Current Logs === | ||
| + | |||
| + | < | ||
| + | |||
| + | === Drop Old Logs === | ||
| + | |||
| + | You cannot drop log files if their status is ACTIVE or CURRENT. \\ | ||
| + | |||
| + | If the log file you want to drop is CURRENT then | ||
| + | < | ||
| + | |||
| + | If the log file you want to drop is ACTIVE then | ||
| + | < | ||
| + | |||
| + | < | ||
| + | ALTER DATABASE DROP LOGFILE GROUP 2; | ||
| + | ALTER DATABASE DROP LOGFILE GROUP 3;</ | ||
| + | |||
| + | To drop individual log files from within a group ... | ||
| + | < | ||
| + | |||
| + | === View Current Log Files === | ||
| + | |||
| + | < | ||
| + | col MEMBER format a60 | ||
| + | SELECT A.GROUP#, A.MEMBER, B.BYTES | ||
| + | FROM V$LOGFILE A, V$LOG B WHERE A.GROUP# = B.GROUP#;</ | ||
redo_logs.1450434459.txt.gz · Last modified: (external edit)
