Redologs - Command Line Examples
Test Redo group 1
redo01a.log /u02a/redologs/fox/ - remove
redo01b.log /u02a/redologs/fox/ - remove
redo01c.log /u02a/redologs/fox/ - remove
redo1a.log /u02a/redologs/fox/ - add
redo1b.log /u02b/redologs/fox/ - add
Test Redo group 2
redo02a.log /u02b/redologs/fox/ - remove
redo02b.log /u02b/redologsfox/ - remove
redo02c.log /u02b/redologs/fox/ - remove
redo2a.log /u02a/redologs/fox/ - add
redo2b.log /u02b/redologs/fox/ - add
ALTER DATABASE
ADD LOGFILE GROUP 3 ('/u02a/redologs/fox/redo3a.log', '/u02b/redologs/fox/redo3b.log')
SIZE 51200K;
select * from v$log; check inactive
ALTER DATABASE ADD LOGFILE MEMBER '/u02a/redologs/fox/redo1a.log' TO GROUP 1;
ALTER DATABASE ADD LOGFILE MEMBER '/u02b/redologs/fox/redo1b.log' TO GROUP 1;
ALTER DATABASE DROP LOGFILE MEMBER '/u02a/redologs/fox/redo01a.log';
ALTER DATABASE DROP LOGFILE MEMBER '/u02a/redologs/fox/redo01b.log';
ALTER DATABASE DROP LOGFILE MEMBER '/u02a/redologs/fox/redo01c.log';
select * from v$log; check inactive
ALTER DATABASE ADD LOGFILE MEMBER '/u02a/redologs/fox/redo2a.log' TO GROUP 2;
ALTER DATABASE ADD LOGFILE MEMBER '/u02b/redologs/fox/redo2b.log' TO GROUP 2;
ALTER DATABASE DROP LOGFILE MEMBER '/u02b/redologs/fox/redo02a.log';
ALTER DATABASE DROP LOGFILE MEMBER '/u02b/redologs/fox/redo02b.log';
ALTER DATABASE DROP LOGFILE MEMBER '/u02b/redologs/fox/redo02c.log';
redo01a.log /u02a/redologs/fox/ - remove
redo01b.log /u02a/redologs/fox/ - remove
redo01c.log /u02a/redologs/fox/ - remove
redo1a.log /u02a/redologs/fox/ - add
redo1b.log /u02b/redologs/fox/ - add
Test Redo group 2
redo02a.log /u02b/redologs/fox/ - remove
redo02b.log /u02b/redologsfox/ - remove
redo02c.log /u02b/redologs/fox/ - remove
redo2a.log /u02a/redologs/fox/ - add
redo2b.log /u02b/redologs/fox/ - add
ALTER DATABASE
ADD LOGFILE GROUP 3 ('/u02a/redologs/fox/redo3a.log', '/u02b/redologs/fox/redo3b.log')
SIZE 51200K;
select * from v$log; check inactive
ALTER DATABASE ADD LOGFILE MEMBER '/u02a/redologs/fox/redo1a.log' TO GROUP 1;
ALTER DATABASE ADD LOGFILE MEMBER '/u02b/redologs/fox/redo1b.log' TO GROUP 1;
ALTER DATABASE DROP LOGFILE MEMBER '/u02a/redologs/fox/redo01a.log';
ALTER DATABASE DROP LOGFILE MEMBER '/u02a/redologs/fox/redo01b.log';
ALTER DATABASE DROP LOGFILE MEMBER '/u02a/redologs/fox/redo01c.log';
select * from v$log; check inactive
ALTER DATABASE ADD LOGFILE MEMBER '/u02a/redologs/fox/redo2a.log' TO GROUP 2;
ALTER DATABASE ADD LOGFILE MEMBER '/u02b/redologs/fox/redo2b.log' TO GROUP 2;
ALTER DATABASE DROP LOGFILE MEMBER '/u02b/redologs/fox/redo02a.log';
ALTER DATABASE DROP LOGFILE MEMBER '/u02b/redologs/fox/redo02b.log';
ALTER DATABASE DROP LOGFILE MEMBER '/u02b/redologs/fox/redo02c.log';
Comments