En direct de la doc Oracle
Envoyé par
la_doc_oracle
Changing the Database Archiving Mode
To change the archiving mode of the database, use the ALTER DATABASE statement
with the ARCHIVELOG or NOARCHIVELOG clause. To change the archiving mode, you
must be connected to the database with administrator privileges (AS SYSDBA).
The following steps switch the database archiving mode from NOARCHIVELOG to
ARCHIVELOG:
1. Shut down the database instance.
SHUTDOWN
An open database must first be closed and any associated instances shut down
before you can switch the database archiving mode. You cannot change the mode
from ARCHIVELOG to NOARCHIVELOG if any datafiles need media recovery.
2. Back up the database.
Before making any major change to a database, always back up the database to
protect against any problems. This will be your final backup of the database in
NOARCHIVELOG mode and can be used if something goes wrong during the
change to ARCHIVELOG mode. See Oracle Database Backup and Recovery Basics for
information about taking database backups.
3. Edit the initialization parameter file to include the initialization parameters that
specify the destinations for the archive log files (see "Specifying Archive
Destinations" on page 7-6).
4. Start a new instance and mount, but do not open, the database.
STARTUP MOUNT
To enable or disable archiving, the database must be mounted but not open.
Dans le cas du passage Archivelog vers non archivelog, on peut résumer
1) arreter la base : 2) démarrer la base en "mount" : 3) passer en mode non archive :
alter database norachivelog;
4) ouvrir la base : Et bien sur toujours faire un backup AVANT.
Partager