Précédent   Forum des professionnels en informatique > Bases de données > Oracle
Oracle Forum Oracle : le serveur, les outils, ... Voir F.A.Q Oracle Tutoriels Oracle
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 06/02/2007, 11h23   #1
Candidat au titre de Membre du Club
 
Inscription : février 2003
Messages : 26
Détails du profil
Informations forums :
Inscription : février 2003
Messages : 26
Points : 10
Points : 10
Par défaut archivelog a noarchivelog

Bonjour,

Base Oracle 10g (10.2.0.1)
Linux RHEL4

La base de donnée est actuellement en mode archivelog, et je souhaiterais la passer en mode noarchivelog.
Apres avoir lu diffrents texte a ce sujet, je commence a etre perdu.
Pourriez vous me donner la meilleure marche a suivre pour ne pas commettre d'erreur.

Merci d'avance
Pierre Diaz
pdiaz est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 06/02/2007, 12h10   #2
Membre confirmé
 
Homme Alain
Inscription : mars 2004
Messages : 249
Détails du profil
Informations personnelles :
Nom : Homme Alain
Âge : 43
Localisation : France

Informations forums :
Inscription : mars 2004
Messages : 249
Points : 216
Points : 216
En direct de la doc Oracle
Citation:
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 :
Code :
ALTER DATABASE norachivelog;
4) ouvrir la base : Et bien sur toujours faire un backup AVANT.
Alain B. est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 20h52.


 
 
 
 
Partenaires

Hébergement Web