<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
		<id>https://wiki.kogite.fr/index.php?action=history&amp;feed=atom&amp;title=Standby_database_manuelle_%28cold%29_sur_Standard_Edition</id>
		<title>Standby database manuelle (cold) sur Standard Edition - Historique des versions</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.kogite.fr/index.php?action=history&amp;feed=atom&amp;title=Standby_database_manuelle_%28cold%29_sur_Standard_Edition"/>
		<link rel="alternate" type="text/html" href="https://wiki.kogite.fr/index.php?title=Standby_database_manuelle_(cold)_sur_Standard_Edition&amp;action=history"/>
		<updated>2026-08-06T23:17:30Z</updated>
		<subtitle>Historique des versions pour cette page sur le wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://wiki.kogite.fr/index.php?title=Standby_database_manuelle_(cold)_sur_Standard_Edition&amp;diff=3069&amp;oldid=prev</id>
		<title>Frank : /* Synchronisation des archive logs */</title>
		<link rel="alternate" type="text/html" href="https://wiki.kogite.fr/index.php?title=Standby_database_manuelle_(cold)_sur_Standard_Edition&amp;diff=3069&amp;oldid=prev"/>
				<updated>2011-02-11T10:03:23Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Synchronisation des archive logs&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;fr&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Version précédente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Version du 11 février 2011 à 10:03&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l29&quot; &gt;Ligne 29 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 29 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Synchronisation des archive logs ===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Synchronisation des archive logs ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Mettre en place une copie des fichiers d'archives par rsync (qui les transfèrera à intervalles réguliers) :&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Mettre en place une copie des fichiers d'archives par rsync (qui les transfèrera à intervalles réguliers) :&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;1. Pour que ssh ne demande plus de mot de passe entre le primary et le standby :&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;1. Pour que ssh ne demande plus de mot de passe entre le primary et le standby :&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*créer une clé ssh sur le primary : ssh-keygen -t dsa (tout par défaut, sans passphrase)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*créer une clé ssh sur le primary : ssh-keygen -t dsa (tout par défaut, sans passphrase)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Frank</name></author>	</entry>

	<entry>
		<id>https://wiki.kogite.fr/index.php?title=Standby_database_manuelle_(cold)_sur_Standard_Edition&amp;diff=3068&amp;oldid=prev</id>
		<title>Frank : /* Synchronisation des archive logs */</title>
		<link rel="alternate" type="text/html" href="https://wiki.kogite.fr/index.php?title=Standby_database_manuelle_(cold)_sur_Standard_Edition&amp;diff=3068&amp;oldid=prev"/>
				<updated>2011-02-11T10:03:03Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Synchronisation des archive logs&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;fr&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Version précédente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Version du 11 février 2011 à 10:03&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l29&quot; &gt;Ligne 29 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 29 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Synchronisation des archive logs ===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Synchronisation des archive logs ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Mettre en place une copie des fichiers d'archives par rsync (qui les transfèrera à intervalles réguliers) :&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Mettre en place une copie des fichiers d'archives par rsync (qui les transfèrera à intervalles réguliers) :&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;#&lt;/del&gt;. Pour que ssh ne demande plus de mot de passe entre le primary et le standby :&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;1&lt;/ins&gt;. Pour que ssh ne demande plus de mot de passe entre le primary et le standby :&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*créer une clé ssh sur le primary : ssh-keygen -t dsa (tout par défaut, sans passphrase)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*créer une clé ssh sur le primary : ssh-keygen -t dsa (tout par défaut, sans passphrase)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*copier la clé publique (contenue dans /home/oracle/.ssh/id_dsa.pub)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*copier la clé publique (contenue dans /home/oracle/.ssh/id_dsa.pub)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*créer sur la serveur standby un fichier /home/oracle/.ssh/authorized_keys, et y coller la clé&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*créer sur la serveur standby un fichier /home/oracle/.ssh/authorized_keys, et y coller la clé&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;#&lt;/del&gt;. Créer un script (à planifier à interval régulier, toutes les minutes par exemple) (/oracle/product/10.2.0/db_1/admin/ORCL/scripts/send_archives.sh ):&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;2&lt;/ins&gt;. Créer un script (à planifier à interval régulier, toutes les minutes par exemple) (/oracle/product/10.2.0/db_1/admin/ORCL/scripts/send_archives.sh ):&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; #!/bin/sh &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; #!/bin/sh &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; rsync -e ssh -a --delete /oradata01/ORCL/archives/* 172.16.1.22:/oradata01/ORCL/archives 2&amp;gt;/dev/null&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; rsync -e ssh -a --delete /oradata01/ORCL/archives/* 172.16.1.22:/oradata01/ORCL/archives 2&amp;gt;/dev/null&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Frank</name></author>	</entry>

	<entry>
		<id>https://wiki.kogite.fr/index.php?title=Standby_database_manuelle_(cold)_sur_Standard_Edition&amp;diff=3067&amp;oldid=prev</id>
		<title>Frank : Page créée avec « installer Oracle 10g standard sur les 2 serveurs.  créer des bases identiques sur les 2 serveurs, avec les '''mêmes SID et arborescences'''.  === Sur le serveur primaire ==... »</title>
		<link rel="alternate" type="text/html" href="https://wiki.kogite.fr/index.php?title=Standby_database_manuelle_(cold)_sur_Standard_Edition&amp;diff=3067&amp;oldid=prev"/>
				<updated>2011-02-11T10:02:29Z</updated>
		
		<summary type="html">&lt;p&gt;Page créée avec « installer Oracle 10g standard sur les 2 serveurs.  créer des bases identiques sur les 2 serveurs, avec les &amp;#039;&amp;#039;&amp;#039;mêmes SID et arborescences&amp;#039;&amp;#039;&amp;#039;.  === Sur le serveur primaire ==... »&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;installer Oracle 10g standard sur les 2 serveurs.&lt;br /&gt;
&lt;br /&gt;
créer des bases identiques sur les 2 serveurs, avec les '''mêmes SID et arborescences'''.&lt;br /&gt;
&lt;br /&gt;
=== Sur le serveur primaire ===&lt;br /&gt;
Mettre sur la base primaire le paramètre STANDBY_FILE_MANAGEMENT à AUTO (sinon Oracle ne sait pas recréer des fichiers sur la standby, lors de création de tablespaces ou d'ajout de fichiers)&lt;br /&gt;
 SQL&amp;gt; connect / as sysdba&lt;br /&gt;
 SQL&amp;gt; alter system set standby_file_management = AUTO;&lt;br /&gt;
Passer la base primary en archive log :&lt;br /&gt;
 alter system set log_archive_dest_1='LOCATION=/oradata01/ORCL/archives';&lt;br /&gt;
 shutdown immediate;&lt;br /&gt;
 startup mount;&lt;br /&gt;
 alter database archivelog;&lt;br /&gt;
 alter database open;&lt;br /&gt;
&lt;br /&gt;
Tester :&lt;br /&gt;
 alter system switch logfile;&lt;br /&gt;
vérifier que l'archive log se crée au bon endroit.&lt;br /&gt;
&lt;br /&gt;
Sauvegarde à froid complète de la base primary :&lt;br /&gt;
 shutdown immediate;&lt;br /&gt;
 tar -cvzf /oradata01/ORCL.tgz /oradata01/ORCL&lt;br /&gt;
&lt;br /&gt;
Sauvegarde du controlfile en mode standby :&lt;br /&gt;
 startup&lt;br /&gt;
 alter database create standby controlfile as '/oradata01/ctrlstdby.ctl' ;&lt;br /&gt;
(c'est ce qui fera que la standby sera marquée « PHYSICAL STANDBY » et acceptera les recover des archive logs)&lt;br /&gt;
&lt;br /&gt;
=== Synchronisation des archive logs ===&lt;br /&gt;
Mettre en place une copie des fichiers d'archives par rsync (qui les transfèrera à intervalles réguliers) :&lt;br /&gt;
#. Pour que ssh ne demande plus de mot de passe entre le primary et le standby :&lt;br /&gt;
*créer une clé ssh sur le primary : ssh-keygen -t dsa (tout par défaut, sans passphrase)&lt;br /&gt;
*copier la clé publique (contenue dans /home/oracle/.ssh/id_dsa.pub)&lt;br /&gt;
*créer sur la serveur standby un fichier /home/oracle/.ssh/authorized_keys, et y coller la clé&lt;br /&gt;
#. Créer un script (à planifier à interval régulier, toutes les minutes par exemple) (/oracle/product/10.2.0/db_1/admin/ORCL/scripts/send_archives.sh ):&lt;br /&gt;
 #!/bin/sh &lt;br /&gt;
 rsync -e ssh -a --delete /oradata01/ORCL/archives/* 172.16.1.22:/oradata01/ORCL/archives 2&amp;gt;/dev/null&lt;br /&gt;
&lt;br /&gt;
=== Sur la database standby ===&lt;br /&gt;
Transférer le .tgz et le .ctl vers standby (par scp)&lt;br /&gt;
&lt;br /&gt;
paramétrer log_archives_dest_1 vers le répertoire qui recevra les archive log du primary&lt;br /&gt;
&lt;br /&gt;
arrêter la base&lt;br /&gt;
&lt;br /&gt;
écraser la base existante :&lt;br /&gt;
 cd /oradata01&lt;br /&gt;
 tar -xvzf ORCL.tgz&lt;br /&gt;
dupliquer (par cp) le ctrlstdby.ctl en control01.ctl, control02.ctl, control03.ctl&lt;br /&gt;
&lt;br /&gt;
script shell de démarrage de la base standby (/oracle/product/10.2.0/db_1/admin/ORCL/scripts/start_standby.sh) :&lt;br /&gt;
 #!/bin/sh &lt;br /&gt;
 . /home/oracle/.bashrc &lt;br /&gt;
 export ORACLE_SID=ORCL&lt;br /&gt;
 sqlplus / as sysdba &amp;lt;&amp;lt; EOF &lt;br /&gt;
 startup nomount; &lt;br /&gt;
 alter database mount '''standby database''';&lt;br /&gt;
 exit &lt;br /&gt;
 EOF &lt;br /&gt;
&lt;br /&gt;
script sql d'application des logs (à planifier à intervalle régulier avec « &amp;gt;/dev/null 2&amp;gt;&amp;amp;1 ») (/oracle/product/10.2.0/db_1/admin/ORCL/scripts/apply_archive.sh) :&lt;br /&gt;
 #!/bin/sh &lt;br /&gt;
 . /home/oracle/.bashrc &lt;br /&gt;
 export ORACLE_SID=ORCL&lt;br /&gt;
 sqlplus / as sysdba &amp;lt;&amp;lt; EOF &lt;br /&gt;
 recover automatic standby database;&lt;br /&gt;
 #Insérer un retour chariot dans le script avant « exit » sinon il attend indéfiniment&lt;br /&gt;
 &lt;br /&gt;
 exit &lt;br /&gt;
 EOF&lt;br /&gt;
&lt;br /&gt;
* Note 1 : les messages d'info qui s'affichent lors du recover sont aussi loggués dans le fichier alert_ORCL.log. Penser à le remettre à zéro de temps en temps.&lt;br /&gt;
* Note 2 : les fichiers archivelogs ne sont pas supprimés après leur application. Penser à faire le ménage dans le répertoire d'archives.&lt;br /&gt;
&lt;br /&gt;
=== Switch standby en primay ===&lt;br /&gt;
Pour passer la standby en primary (/oracle/product/10.2.0/db_1/admin/ORCL/scripts/standby_to_primary.sh) :&lt;br /&gt;
 #!/bin/sh &lt;br /&gt;
 . /home/oracle/.bashrc &lt;br /&gt;
 export ORACLE_SID=ORCL &lt;br /&gt;
 sqlplus / as sysdba &amp;lt;&amp;lt; EOF &lt;br /&gt;
 alter database activate standby database;&lt;br /&gt;
 alter database open;&lt;br /&gt;
 exit&lt;br /&gt;
 EOF&lt;br /&gt;
&lt;br /&gt;
la standby devient alors PRIMARY et refusera les recover (si on oublie d'enlever le script planifié, les erreurs seront logguées dans l'alert.log)&lt;br /&gt;
&lt;br /&gt;
L'ancienne primary devra être remontée en standby mais pas de &amp;quot;switch back&amp;quot; possible&lt;br /&gt;
&lt;br /&gt;
On peut aussi arrêter la base passée en primary, la copier sur la machine reconstruite (donc &amp;quot;remettre&amp;quot; la primary sur la bonne machine) et recommencer la procédure pour refaire une standby sur la machine 2.&lt;/div&gt;</summary>
		<author><name>Frank</name></author>	</entry>

	</feed>