{"id":202,"date":"2012-02-16T07:40:00","date_gmt":"1970-01-01T00:00:00","guid":{"rendered":"http:\/\/www.yazilimmutfagi.com\/?p=202"},"modified":"2012-02-16T07:40:00","modified_gmt":"1970-01-01T00:00:00","slug":"rman-duplicate-ile-standby-database-kurulumu","status":"publish","type":"post","link":"https:\/\/www.yazilimmutfagi.com\/index.php\/2012\/02\/16\/rman-duplicate-ile-standby-database-kurulumu\/","title":{"rendered":"RMAN DUPLICATE ILE STANDBY DATABASE KURULUMU"},"content":{"rendered":"\n<h3>RMAN DUPLICATE ILE STANDBY DATABASE KURULUMU<\/h3>\n<p>Standby veritabanlari production veritabanlarinin bire bir kopyasidir ve bu databaseler genelde felaket durumlarinda kullanilmak i&ccedil;in yedek database olarak kullanilir. Bu makalede standby veritabaninin rman duplicate ile nasil kuruldugundan bahsedecegim. Production veritabaninin birebir kopyasini olusturmak i&ccedil;in en kolay y&ouml;ntem recovery manager (RMAN) kullanmaktir. Bunun disinda fiziksel dosya kopyalama y&ouml;ntemi kullanilabilir fakat bu y&ouml;ntemi online yapmak m&uuml;mk&uuml;n degildir. RMAN ile backup alinip bu backup i restore ederek standby database olusturabiliriz fakat 11 g ile network &uuml;zerinden backup almadan duplicate y&ouml;ntemi ile kopya olusturabiliyoruz. 10 g de duplicate yapilabiliyor fakat yine backup alip standby tarafinda bu dosyalari kullanmak durumunda kaliyoruz. Backupin alinmasi, standby tarafina y&uuml;klenmesi ve restore edilmesi adimlari d&uuml;s&uuml;n&uuml;ld&uuml;g&uuml;nde backup-restore y&ouml;nteminde epeyce vakit kaybi yasanmaktadir. Tabiki sunucular arasinda g&uuml;&ccedil;l&uuml; bir network&uuml;n&uuml;z yoksa duplicate de vakit alacaktir ama bana g&ouml;re her hal&uuml;karda bu y&ouml;ntem en iyi metottur.  Bu makalede Oracle ASM &uuml;zerinde &ccedil;alisan bir veritabani i&ccedil;in kurulum anlatilacaktir.  \n<\/p>\n<a href='www.yazilimmutfagi.com'>.<\/a>\n<code>\n<div class=\"code\">\nOS = Linux\/Unix Oracle Database\/Grid Version = 11.2.0.3 PRIMARY\/PRODUCTION \n<br\/>Database = ISTANBUL PRIMARY ASM DISKGROUP = +DATA STANDBY \n<br\/>Database = ANKARA STANDBY ASM DISKGROUP = +DATAFKM \n<br\/>Standby profile dosyasi isletim sistemi kullanicisi i\u00e7in ORACLE_BASE=\/oracle\/product;\n<br\/> export ORACLE_BASE ORACLE_HOME=$ORACLE_BASE\/11.2.0\/db;\n<br\/> export ORACLE_HOME ORACLE_SID=ANKARA;\n<br\/> export ORACLE_SID DISPLAY=`hostname`:0.0;\n<br\/> export DISPLAY PATH=$ORACLE_HOME\/bin:\/usr\/bin:\/etc:\/usr\/bin\/X11:\/usr\/<br\/>local\/bin:$ORACLE_HOME\/OPatch:\/oracle\/product\/11.1.0\/crs\/bin:$PATH;\n<br\/> export PATH LD_LIBRARY_PATH=$ORACLE_HOME\/lib:$ORACLE_HOME\/rdbms\/lib;\n<br\/> export LD_LIBRARY_PATH SHLIB_PATH=$ORACLE_HOME\/lib32:$ORACLE_HOME\/rdbms\/lib32;\n<br\/>export SHLIB_PATH TMP=\/oracle\/oratmp;\n<br\/> export TMP TMPDIR=\/oracle\/oratmp;\n<br\/> export TMPDIR TEMP=\/oracle\/oratmp;\n<br\/> export TEMP TEMPDIR=\/oracle\/oratmp;\n<br\/> export TEMPDIR Production profile dosyasi isletim sistemi kullanicisi i\u00e7in ORACLE_BASE=\/oracle\/product;\n<br\/> export ORACLE_BASE ORACLE_HOME=$ORACLE_BASE\/11.2.0\/db;\n<br\/> export ORACLE_HOME ORACLE_SID=ISTANBUL;\n<br\/> export ORACLE_SID DISPLAY=`hostname`:0.0;\n<br\/> export DISPLAY PATH=$ORACLE_HOME\/bin:\/usr\/bin:\/etc:\/usr\/bin\/X11:\/usr\/local\/<br\/>bin:$ORACLE_HOME\/OPatch:\/oracle\/product\/11.1.0\/crs\/bin:$PATH;\n<br\/> export PATH LD_LIBRARY_PATH=$ORACLE_HOME\/lib:$ORACLE_HOME\/rdbms\/lib;\n<br\/> export LD_LIBRARY_PATH SHLIB_PATH=$ORACLE_HOME\/lib32:$ORACLE_HOME\/rdbms\/lib32;\n<br\/>export SHLIB_PATH TMP=\/oracle\/oratmp;\n<br\/> export TMP TMPDIR=\/oracle\/oratmp;\n<br\/> export TMPDIR TEMP=\/oracle\/oratmp;\n<br\/> export TEMP TEMPDIR=\/oracle\/oratmp;\n<br\/> export TEMPDIR\n \n<\/div><\/code>\n\n<p>Standby Database Kurulumu 1.\t&Ouml;ncelikle production veritabaninda force logging a&ccedil;ilir. Asagidaki komutu &ccedil;alistirarak force logging i a&ccedil;iyoruz. <\/p>\n\n<code>\n<div class=\"code\">alter database force logging<\/div>\n<\/code> \n<p>2.\tStandby veritabaninda Database Software ve Grid Infrastructure kurulduktan sonra primary database den password dosyasi kopyalanir. Standby tarafinda asagidaki komut ile dosyayi kopyalayabilirsiniz. <\/p>\n\n<code>\n<div class=\"code\">\nScp oracle\/password@production_db:$ORACLE_HOME\/dbs\/orapwISTANBUL\n<br\/>$ORACLE_HOME\/dbs\/orapwANKARA Password file kopyalandiktan sonra production veritabanin init dosyasi olusturulur \n<br\/>&nbsp;&nbsp;&nbsp; ve standby tarafina kopyalanir. \n<br\/>&nbsp;Production veritabaninda :   \n<br\/>sqlplus &ldquo;\/as sysdba&rdquo; SQL-&gt; \n<br\/>create pfile=&rsquo;\/home\/oracle\/initANKARA.ora&rsquo; \n<br\/>from spfile;  daha sonra bu dosya standby tarafina kopyalanir.  \n<br\/>Scp oracle\/password@production_db:\/home\/oracle\/initANKARA.ora        \n<br\/>$ORACLE_HOME\/dbs\/\n \n\n<\/div>\n<\/code>\n\n<p>\nInit dosyasini standby database tarafinda kullanabilmek i&ccedil;in birka&ccedil; parametreyi degistirmemiz gerekecek.   Production veritabanindan alinan parametre dosyasi asagidaki gibi olacaktir. \n\n<\/p>\n\n<code>\n<div class=\"code\">\nISTANBUL.__db_cache_size=40533753856 \n<br\/>ISTANBUL.__oracle_base='\/oracle\/product' \n<br\/>ISTANBUL.__shared_pool_size=7784628224 \n<br\/>*._ash_size=134217728 \n<br\/>*.audit_file_dest='\/oracle\/product\/admin\/ISTANBUL\/adump' \n<br\/>*.audit_trail='DB' \n<br\/>*.compatible='11.2.0.0.0' \n<br\/>*.control_files='+DATA\/ISTANBUL\/control01.ctl','+DATA\/ISTANBUL\/control02.ctl' \n<br\/>*.cursor_sharing='EXACT' \n<br\/>*.db_block_size=8192 \n<br\/>*.db_cache_size=43622320128 \n<br\/>*.db_domain='' \n<br\/>*.db_file_multiblock_read_count=32 *.db_files=1000 \n<br\/>*.db_name='ISTANBUL' \n<br\/>*.diagnostic_dest='\/oracle\/product' \n<br\/>*.dispatchers='(PROTOCOL=TCP) (SERVICE=ISTANBULXDB)' \n<br\/>*.java_pool_size=78643200 \n<br\/>*.job_queue_processes=50 \n<br\/>*.large_pool_size=786432000 \n<br\/>*.local_listener='LISTENER_ISTANBUL' \n<br\/>*.log_archive_dest_1='LOCATION=+DATA' \n<br\/>*.log_archive_format='%t_%s_%r.arc' \n<br\/>*.log_buffer=10000000 *.open_cursors=65000 \n<br\/>*.optimizer_dynamic_sampling=1 \n<br\/>*.parallel_execution_message_size=65536 \n<br\/>*.parallel_max_servers=32 \n<br\/>*.parallel_servers_target=32 \n<br\/>*.parallel_threads_per_cpu=1 \n<br\/>*.pga_aggregate_target=10737418240 \n<br\/>*.processes=1000 \n<br\/>*.recyclebin='off' \n<br\/>*.remote_login_passwordfile='EXCLUSIVE' \n<br\/>*.resource_limit=FALSE \n<br\/>*.sga_target=0 \n<br\/>*.shared_pool_size=5368709120 \n<br\/>*.star_transformation_enabled='TRUE' \n<br\/>*.undo_management='AUTO' \n<br\/>*.undo_tablespace='UNDO\n<\/div>\n<\/code>  \n\n\n\n<p>\nAsagidaki gibi d&uuml;zenlenir ve standby tarafinda &ccedil;alisacak hale getirilir. \/oracle\/product\/admin\/ANKARA\/adump ilgili dizin standby tarafinda olusturulmus olmalidir Koyu renkli parametler disindaki parametreler ayni kalmalidir.  <\/p>\n\n\n<code>\n<div class=\"code\">\n*.audit_file_dest='\/oracle\/product\/admin\/ANKARA\/adump' \n<br\/>*.audit_trail='DB' \n<br\/>*.compatible='11.2.0.0.0' \n<br\/>*.control_files='+DATAFKM\/ANKARA\/control01.ctl','+DATAFKM\/ANKARA\/control02.ctl' \n<br\/>*.cursor_sharing='EXACT' \n<br\/>*.db_block_size=8192 \n<br\/>*.db_domain='' \n<br\/>*.db_file_multiblock_read_count=32 \n<br\/>*.db_files=1000 *.db_name='ISTANBUL' \n<br\/>*.db_unique_name='ANKARA' \n<br\/>*.diagnostic_dest='\/oracle\/product' \n<br\/>*.dispatchers='(PROTOCOL=TCP) (SERVICE=ANKARAXDB)' \n<br\/>*.job_queue_processes=50 *.log_archive_dest_1='LOCATION=+DATAFKM' \n<br\/>*.log_archive_format='%t_%s_%r.arc' \n<br\/>*.open_cursors=65000 \n<br\/>*.optimizer_dynamic_sampling=1 \n<br\/>*.parallel_execution_message_size=65536 \n<br\/>*.parallel_max_servers=32 \n<br\/>*.parallel_servers_target=32 \n<br\/>*.parallel_threads_per_cpu=1 \n<br\/>*.pga_aggregate_target=10737418240 \n<br\/>*.processes=1000 \n<br\/>*.recyclebin='off' \n<br\/>*.remote_login_passwordfile='EXCLUSIVE' \n<br\/>*.resource_limit=FALSE \n<br\/>*.sga_target=24737418240 \n<br\/>*.sga_max_size=24737418240 \n<br\/>*.star_transformation_enabled='TRUE' \n<br\/>*.undo_management='AUTO' \n<br\/>*.undo_tablespace='UNDOTBS1'\n\n<\/div>\n<\/code>  \n\n<p>\n3.\tStandby init dosyasi d&uuml;zenlendikten sonra hem standby tarafinda hemde production tarafinda tnsnames.ora dosyasina her iki database i&ccedil;in erisim bilgisi eklenir. $ORACLE_HOME\/network\/admin\/tnsnames.ora dosyasina asagidaki tns bilgileri girilir.  \n<\/p>\n\n<code>\n<div class=\"code\">\n\nISTANBUL =   \n<br\/>(\n<br\/>&nbsp;&nbsp;&nbsp;DESCRIPTION =     \n<br\/>&nbsp;&nbsp;&nbsp;(\n<br\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ADDRESS = \n<br\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(PROTOCOL = TCP)\n<br\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(HOST = istanbul_db_ip_veya_host)\n<br\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(PORT = 1521))     \n<br\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(CONNECT_DATA =       \n<br\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(SERVER = DEDICATED)       \n<br\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(SERVICE_NAME = ISTANBUL)     \n<br\/>&nbsp;&nbsp;&nbsp;)   \n<br\/>)    \n<br\/>ANKARA =   \n<br\/>(\n<br\/>&nbsp;&nbsp;&nbsp;DESCRIPTION =     \n<br\/>&nbsp;&nbsp;&nbsp;(\n<br\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ADDRESS = \n<br\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(PROTOCOL = TCP)\n<br\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(HOST = ankara_db_ip_veya_host)\n<br\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(PORT = 1521))    \n<br\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(CONNECT_DATA =      \n<br\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(SERVER = DEDICATED)      \n<br\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(SID= ANKARA)     \n<br\/>&nbsp;&nbsp;&nbsp;)  \n<br\/>)\n<br\/>\n<\/div>\n<\/code> \n\n<p>\n  4.\tStandby database nomount modda a&ccedil;ilir ve database i dinleyecek listener olusturulur.  <\/p>\n  \n<code>\n<div class=\"code\">\n\nSqlplus &ldquo;\/as sysdba&rdquo; \n<br\/>SQL-&gt; startup nomount;  \n<br\/>$ORACLE_HOME\/network\/admin\/listener.ora \n<br\/>SID_LIST_LISTENER =   \n<br\/>(\n<br\/>&nbsp;&nbsp;&nbsp;SID_LIST =     \n<br\/>&nbsp;&nbsp;&nbsp;(\n<br\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SID_DESC =       \n<br\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(GLOBAL_DBNAME = ANKARA)       \n<br\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(ORACLE_HOME = $ORACLE_HOME)       \n<br\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(SID_NAME = ANKARA)     \n<br\/>&nbsp;&nbsp;&nbsp;)\n<br\/>)  \n<br\/>LISTENER =   \n<br\/>(\n<br\/>&nbsp;&nbsp;&nbsp;DESCRIPTION_LIST =     \n<br\/>&nbsp;&nbsp;&nbsp;(\n<br\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DESCRIPTION =      \n<br\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(\n<br\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ADDRESS = \n<br\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(PROTOCOL = IPC)\n<br\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(KEY = EXTPROC1521))    \n<br\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(ADDRESS = \n<br\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(PROTOCOL = TCP)\n<br\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(HOST = standby_ip_veya_host)(PORT = 1521)\n<br\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)     \n<br\/>&nbsp;&nbsp;&nbsp;)   \n<br\/>)\n\n<\/div>\n<\/code> \n\n\n<p>Listener dosyasi d&uuml;zenlendikten sonra listener a&ccedil;ilir.<\/p>\n \n\n<code>\n<div class=\"code\">\nLsnrctl start LISTENER  \n<br\/>Standby tarafini init dosyasi ile a&ccedil;mistik fakat spfile ile &ccedil;alismak daha kolay olacagi i&ccedil;in spfile create edilir.  \n<br\/>Sqlplus &ldquo;\/as sysdba&rdquo; \n<br\/>SQL -&gt; \n<br\/>create spfile from pfile; \n<br\/>SQL-&gt;shutdown abort; \n<br\/>SQL-&gt;startup nomount; \n<br\/>SQL-&gt;Show parameter spfile;\n<\/div>\n<\/code> \n<a href='www.yazilimmutfagi.com'>.<\/a>\n<p>\n 5.\tSpfile create edildikten sonra standby ve primary database ler i&ccedil;in asagidaki parametler set edilir. Standby database de sql komut satirinda &ccedil;alistirilir   <\/p>\n \n \n \n<code>\n<div class=\"code\">\nALTER SYSTEM SET \n<br\/>LOG_ARCHIVE_CONFIG='DG_CONFIG=( ISTANBUL, ANKARA)' \n<br\/>SCOPE=BOTH; \n<br\/>ALTER SYSTEM SET LOG_ARCHIVE_DEST_2='SERVICE=ISTANBUL LGWR ASYNC  \n<br\/>VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=ISTANBUL' \n<br\/>SCOPE=BOTH ; \n<br\/>ALTER SYSTEM SET DB_FILE_NAME_CONVERT ='+DATA\/ISTANBUL\/', '+DATAFKM\/ANKARA\/' \n<br\/>SCOPE=SPFILE ; ALTER SYSTEM SET STANDBY_FILE_MANAGEMENT=AUTO SCOPE=BOTH ; \n<br\/>ALTER SYSTEM SET FAL_SERVER= ISTANBUL SCOPE=BOTH ;\n<br\/>ALTER SYSTEM SET FAL_CLIENT= ANKARA  SCOPE=BOTH ;\n<br\/>ALTER SYSTEM SET LOG_ARCHIVE_DEST_STATE_2='ENABLE' scope=BOTH; \n<br\/>ALTER SYSTEM SET LOG_ARCHIVE_DEST_STATE_1='ENABLE' scope=BOTH;\n<br\/>ALTER SYSTEM SET log_file_name_convert= '+DATA\/ISTANBUL','+DATAFKM\/ANKARA' \nscope=SPFILE; \n<br\/><br\/><br\/>  production veritabaninda &ccedil;alistirilir  \n<br\/>ALTER SYSTEM SET LOG_ARCHIVE_CONFIG='DG_CONFIG=( ISTANBUL, ANKARA)' \n<br\/>SCOPE=BOTH ; ALTER SYSTEM SET LOG_ARCHIVE_DEST_2='SERVICE=ANKARA LGWR ASYNC \n<br\/>VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=ANKARA' \n<br\/>SCOPE=BOTH ; ALTER SYSTEM SET DB_FILE_NAME_CONVERT ='+DATAFKM\/ANKARA\/', '+DATA\/ISTANBUL\/' SCOPE=SPFILE ;\n<br\/>ALTER SYSTEM SET LOG_FILE_NAME_CONVERT ='+DATAFKM\/ANKARA\/','+DATA\/ISTANBUL\/' SCOPE=SPFILE ; \n<br\/>ALTER SYSTEM SET STANDBY_FILE_MANAGEMENT=AUTO SCOPE=BOTH ; \n<br\/>ALTER SYSTEM SET FAL_SERVER= ANKARA SCOPE=BOTH ; \n<br\/>ALTER SYSTEM SET FAL_CLIENT= ISTANBUL SCOPE=BOTH ;  \n<br\/> ----veritabani duplicate edilene kadar log akisini kesmekte fayda var duplicate s&uuml;\n<br\/>--resince de production ortamdan arsiv loglar silinmezse daha sonra restore etmek zorunda kalmayiz.---- \n<br\/>ALTER SYSTEM SET LOG_ARCHIVE_DEST_STATE_2='DEFER' scope=BOTH ;\n<\/div>\n<\/code>  \n\n<p>\n6.\tHer iki tarafta da parametreler d&uuml;zenlendikten sonra standby tarafi  yeniden baslatilir.  \n<\/p>\n\n\n<code>\n<div class=\"code\">\nSqlplus &ldquo;\/as sysdba&rdquo; SQL -&gt; \n<br\/>shutdown abort; SQL -&gt; startup nomount;\n<\/div>\n<\/code> \n\n<p>7.\tProduction veritabaninda standby log grouplar olusturulur.  <\/p>\n\n<code>\n<div class=\"code\">\nalter database add standby logfile \n<br\/>group 29 ('+DATA') size 128M, \n<br\/>group 30 ('+DATA') size 128M, \n<br\/>group 31 ('+DATA') size 128M, \n<br\/>group 32 ('+DATA') size 128M;\n<\/div>\n<\/code>  \n\n<p>\n8.\tHer ne kadar duplicate ile controlfile kopyalansada production ortaminin controlfile backupi alinir ve standby tarafinda restore edilir. Primary database de :<\/p>\n\n  <code>\n<div class=\"code\">\n\nRman target \/ rman-&gt;\n<br\/>backup current controlfile for standby format '\/home\/oracle\/ForStbCtl_IDM_%U';    \n<br\/>Backup alindiktan sonra standby tarafina kopyalanir.\n<br\/>standby da : scp oracle@production_db:\/home\/oracle\/\tForStbCtl_ISTANBUL_ \/home\/oracle \n<br\/>daha sonra standby da controlfile restore edilir.\n<br\/>Rman target \/ rman-&gt; \n<br\/>restore controlfile from '\/home\/oracle\/ ForStbCtl_ISTANBUL_&rsquo;;\n\n<\/div>\n<\/code> \n\n<p>9.\tProductionda rman e baglanip db duplicate baslatilir.   Asagidaki komutlar production veritabaninda &ccedil;alistirilir. Herhangi bir dizinde duplicate.rman adinda bir dosyaya kaydedecegim ve nohup ile arka planda &ccedil;alismasini saglayacagim.  <\/p>\n   \n<code>\n<div class=\"code\">\n\nCd \/home\/oracle Vi duplicate.rman  \n<br\/>connect target \/ connect auxiliary sys\/sysIDMdb1@ANKARA; \n<br\/>RUN { ALLOCATE AUXILIARY CHANNEL aux1 DEVICE TYPE DISK; \n<br\/>ALLOCATE AUXILIARY CHANNEL aux2 DEVICE TYPE DISK; \n<br\/>ALLOCATE AUXILIARY CHANNEL aux3 DEVICE TYPE DISK; \n<br\/>ALLOCATE AUXILIARY CHANNEL aux4 DEVICE TYPE DISK; \n<br\/>ALLOCATE AUXILIARY CHANNEL aux5 DEVICE TYPE DISK; \n<br\/>ALLOCATE AUXILIARY CHANNEL aux6 DEVICE TYPE DISK; \n<br\/>allocate channel t1 type disk; \n<br\/>allocate channel t2 type disk; \n<br\/>allocate channel t3 type disk; \n<br\/>allocate channel t4 type disk; \n<br\/>allocate channel t5 type disk; \n<br\/>allocate channel t6 type disk; \n<br\/>duplicate target database for standby from active database; \n<br\/>release channel aux1;  \n<br\/>release channel aux2;  \n<br\/>release channel aux3;  \n<br\/>release channel aux4;  \n<br\/>release channel aux5;  \n<br\/>release channel aux6; \n<br\/>release channel t1;  \n<br\/>release channel t2;  \n<br\/>release channel t3; \n<br\/>release channel t4;  \n<br\/>release channel t5; \n<br\/>release channel t6; }   \n<br\/>Production_db_host -&gt; \n<br\/>nohup rman cmdfile duplicate.rman log duplicate.log &amp;  \n<br\/>duplicate.log dosyasi takip edilir\n\n<\/div>\n<\/code>\n\n<p>\n10.\t Duplicate islemi bittikten sonra primary tarafta log g&ouml;nderme a&ccedil;ilir.  <\/p>\n\n<code>\n<div class=\"code\">\nProduction veritabanin da :   sqlplus &ldquo;\/as sysdba&rdquo; SQL-&gt; \n<br\/>ALTER SYSTEM SET LOG_ARCHIVE_DEST_STATE_2='ENABLE' \n<br\/>scope=both;  \n<br\/>Standby tarafinda ise arsiv isleme prosesi baslatilir.  \n<br\/>Sqlplus &ldquo;\/as sysdba&rdquo; \n<br\/>SQL -&gt; \n<br\/>ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT \n<br\/>LOGFILE DISCONNECT;        \n<br\/>Asagidaki sorgu ile standby da prosesin arsiv isleyip islemedigi kontrol edilir.       \n<br\/>SELECT PROCESS, STATUS, THREAD#, SEQUENCE#, BLOCK#, BLOCKS FROM    V$MANAGED_STANDBY;\n<br\/>\n\n<\/div>\n<\/code>\n\n<p>\nRMAN Duplicate y&ouml;ntemi database kopyalamada kullanilabilecek en pratik ve kolay y&ouml;ntemdir sadece dataguard\/standby i&ccedil;in degil production veritabaninizin kopyasina ihtiyaciniz oldugunda da kullanabilirsiniz. Asagidaki linklerden rman duplicate ile nasil veritabani kopyasi olusturulacagi ile iligli detayli bilgiye ulasabilirsiniz.   <\/p>\n\n<p>\nOracle 9.2 = http:\/\/docs.oracle.com\/cd\/B10501_01\/server.920\/a96566\/rcmdupdb.htm <br \/>\nOracle 10gR2 = http:\/\/docs.oracle.com\/cd\/B19306_01\/backup.102\/b14191\/rcmdupdb.htm<br \/> Oracle 11gR1= http:\/\/docs.oracle.com\/cd\/B28359_01\/backup.111\/b28270\/rcmdupdb.htm<br \/>\n<\/p>\n<a href='www.yazilimmutfagi.com'>.<\/a>","protected":false},"excerpt":{"rendered":"<p>Standby veritabanlari production veritabanlarinin bire bir kopyasidir ve bu databaseler genelde felaket durumlarinda kullanilmak i&#231;in yedek database olarak kullanilir. Bu makalede standby veritabaninin rman duplicate ile nasil kuruldugundan bahsedecegim.<\/p>\n","protected":false},"author":551,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[423],"tags":[5142,5718,5132,4383,5709,4392],"_links":{"self":[{"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/posts\/202"}],"collection":[{"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/users\/551"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/comments?post=202"}],"version-history":[{"count":0,"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/posts\/202\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/media?parent=202"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/categories?post=202"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/tags?post=202"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}