HOME   ·Î±×ÀΠ  ȸ¿ø°¡ÀÔ
    
ȸ¿ø°¡ÀÔ
ºñ¹Ð¹øÈ£ ã±â ÀÚµ¿·Î±ä
ÀÌÀü°Ô½ÃÆÇ
   free_board
   °Ç°­°Ô½ÃÆÇ
   ¿À¶óŬDB
   Linux
   HTML/javascript
   Áú¹®°ú ´ä
È£¼­±â
   À̹ÌÁö°Ô½ÃÆÇ  
   °Ç°­°Ô½ÃÆÇ  
   À½¾ÇÀÚ·á  
   ¼ºÁØÀÌ °Ô½ÃÆÇ  
[ÀϹÝ] [DB] ¿À¶óŬ ½ºÅĹÙÀÌ ¼­¹ö ±¸ÃàÇϱâ #1
  È£¼® ´Ô²²¼­ ¾´ ±ÛÀÔ´Ï´Ù - 121.¢½.39.7 ÀÐÀ½:3138  
Creating physical standby database

 

1. standby controlfile »ý¼º(At Primary DB)
SQL>alter database create standby controlfile as '/data1/standby.ctl';
SQL>shutdown immediate;

 

 

2. Copy datafiles, standby controfile, archive logs, online logs from Primary to Standby
-- ÆĶó¹ÌÅÍ ÆÄÀÏÀº ¹Ì¸® º¹»çÇÑ ÈÄ standby db¿¡ ¸Â°Ô ¼öÁ¤ÇØ ³õ¾Æ¾ßÇÑ´Ù.

-- control file º¹»ç

cp /data1/standby.ctl /data1/oradata/STBY/control01.ctl

cp /data1/standby.ctl /data1/oradata/STBY/control02.ctl

cp /data1/standby.ctl /data1/oradata/STBY/control03.ctl

 

 

3. Start and Mount Standby instance(At Standby DB)
sqlplus "/as sysdba"
SQL>startup nomount
SQL>alter database mount standby database;

 

-- standby redo log »ý¼º(online redo log¿Í °°Àº Å©±â·Î »ý¼ºÇؾßÇÑ´Ù.)
SQL>alter database add standby logfile '/data1/oradata/standby01.log' size 1M;
SQL>alter database add standby logfile '/data1/oradata/standby02.log' size 1M;

 

Note: ¾Æ·¡ 3°¡Áö ¹æ¹ý Áß ¸¶Áö¸· ¹æ¹ýÀ» »ç¿ëÇÑ´Ù.
SQL>recover standby database; (normal recovery mode)
...
Specify log:{<RET>=suggested | filename | auto | cancel}

- or -

SQL>recover managed standby database; (by forground process. waiting)

- or -

SQL>recover managed standby database disconnect (from session) (parallel n); (by MRP process)

 

 

4. È®ÀÎ
(At Primary)
SQL>select database_role, protection_mode from v$database;
DATABASE_ROLE  PROTECTION_MODE
-------------------------------------------
PRIMARY             MAXIMUM PERFORMANCE

 

(At Standby)
SQL>select database_role, protection_mode from v$database;
DATABASE_ROLE       PROTECTION_MODE
------------------------------------------------
PHYSICAL STANDBY   MAXIMUM PERFORMANCE

 

 

5. Archive Àü¼Û Test
(At Primary)
SQL>alter system switch logfile;
SQL>alter system switch logfile;
SQL>alter system switch logfile;
...
SQL>col error format a20
SQL>select dest_id, status, error from v$archive_dest
        where dest_id <=2;
DEST_ID  STATUS  ERROR
-------------------------------------
1  VALID
2  VALID

 

(At Standby)
archive log file È®ÀÎ

 

 

6. Data Àü¼Û È®ÀÎ Test
(At Primary)
SQL>create table hr.test(a number);
SQL>insert into hr.test values(100);
SQL>commit;
SQL>alter system archive log current;

 

(At Standby)
SQL>recover managed standby database cancel;
SQL>alter database open read only;
SQL>select * from hr.test;
 A
---------
      100

 

-- Read only => managed recovery mode Àüȯ
SQL>shutdown
SQL>startup nomount
SQL>alter database mount standby database;
SQL>recover managed standby database disconnect;


¸ñ·Ï

ºÐ·ù ¼±ÅÃ
ÀÏ¹Ý [DB] ¿À¶óŬ ½ºÅĹÙÀÌ ¼­¹ö ±¸ÃàÇϱâ #1 È£¼® 09-02-03 3139
114 ÀÏ¹Ý oracle 10G drop µÈ Å×ÀÌºí º¹±¸Çϱâ recycle È£¼® 09-03-04 3486
115 ÀÏ¹Ý ¿À¶óŬ replace »ç¿ëÇϱâ È£¼® 09-03-10 5328
116 ÀÏ¹Ý »ç¿ëÀÚ »ý¼º ¹× ±ÇÇѼ³Á¤ È£¼® 09-03-20 3643
117 ÀÏ¹Ý ¿À¶óŬ trace ÆÄÀÏÀÇ °ü¸® ¿À¶óŬ°ü·Ã È£¼® 09-04-04 3953
118 ÀÏ¹Ý ÇÁ·Î½ÃÁ®¿¡¼­ ¹è¿­·Î º¯¼ö ó¸®Çϱâ È£¼® 09-04-23 4048
119 ÀÏ¹Ý ¿À¶óŬ ÀÓÀÇÀ¸ ¼öÀڹ߻ý½ÃÅ°±â È£¼® 09-10-23 2847
120 ÀÏ¹Ý µðºñ ÀÏ°ýó¸®Çϱâ [Ç¥ÁØ,Ä¿¼­,CURSOR] È£¼® 09-12-28 2806
121 ÀÏ¹Ý multi join update È£¼® 10-01-19 3305
122 ÀÏ¹Ý ÆÄƼ¼Ç Å×ÀÌºí °ü·Ã ±×¸®°í ´ë¿ë·® ºü¸¥ ÀÛ¾÷¼öÇà È£¼® 10-01-26 3183
123 ÀÏ¹Ý ÆÄƼ¼ÇÅ×À̺í À妽ºÀÇ °ü¸®ÀûÀÎ ºÎºÐ¿¡ ´ëÇؼ­ È£¼® 10-01-26 4101
124 ÀÏ¹Ý Standby Database ±¸Ãà È£¼® 10-01-31 2870
125 ÀÏ¹Ý pfile°ú spfile ÀÇ Â÷ÀÌÁ¡ È£¼® 10-02-01 3463
126 ÀÏ¹Ý ¿À¶óŬ ¼³Ä¡½Ã ÀÚ¹Ù°ü·Ã ¿¡·¯Ã³¸® ÄÉÀ̽º È£¼® 10-02-17 2776
127 ÀÏ¹Ý ¿À¶óŬ ¹é¾÷ ¹æ¹ý ( cold ¹é¾÷, hot¹é¾÷, export ¹é¾÷ ) È£¼® 10-02-17 3525
óÀ½ÀÌÀü  [1] [2] [3] [4] [5] [6] [7] [8] [9] 10  ´ÙÀ½¸Ç³¡

 
Copyright © zenos.pe.kr. All rights reserved.