Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ORACLE STANDBYѧϰʵ¼ù¿Æѧ·¢Õ¹¹ÛÐĵÃÌå»á

ʵ¼ùµÚÒ»½²£º
Ãû´Ê½âÊÍ£º
dataguard£ººÇºÇ ORACLE¸ß¿ÉÓÃÌåϵÖÐÈý¼ÜÂí³µÖ®Ò»£¨RAC¡¢STREAM£©¡£¸ÉÂïÓã¿£¿£¿¾ÍÊÇÒìµØ±¸·Ý¡¢ÈÝÔÖʲôµÄ¡£Ê²Ã´Ô­Àí£¿£¿==ÁĹþ¡£
primary:Êý¾ÝĸÌå
standby:Êý¾ÝĸÌåµÄ¿½±´»ò±¸·Ý»ò¿Ë¡£¨Ö»ÄÜ¿Ë9¸ö Ϊʲô ÒªÎÊORACLE Ϊʲô log_archive_dest_n Õâ¸öÄãNµÄÉÏÏÞÊÇ10ඣ©
ʵ¼ùµÚ¶þ¼þ£º
ʵ¼ù¼ìÑéÕæÀíµÄΨһ±ê×¼£º
ÏÈ˵ Õâ¸östandbyÔõôÀ´µÄ¡£¡£¿´¹ý¾ýÈý˼ÄÇѾµÄBLOGÂð£¬Ñ¾µÄ»¹³öÊ飬Åå·þ°¡¡£²»ÖªµÀ°¡ ÄÇѾµÄ дÁ˺ܶà È¥¿´¿´°É¡£¡£¡£Òª²» ÖªµÀRMAN  duplicate,ÔÙ²»ÐР ¾øÕоÍÊÇCOPY¡£
ÎÒÊÇÕâô¸ãŶ¡£¡£¡£
Ïȱ¸·ÝÊý¾Ý¿â and ¹éµµÈÕÖ¾¡£COPYµ½standbyÄǸö±¸»úÉÏ¡£Â·¾¶ÒªÒ»Ö¹þ¡£
primary Éú³ÉstandbyµÄ¿ØÖÆÎļþ£ºalter database create standby controlfile as '***.ctl',Ò»Ñù¿½±´¹ýÈ¥£¬Ò»ÑùµÄ·¾¶¡£
Õâ¸ö¶«¶«ÄãÔÚrmanÖР list copy ÄÜÕҵõ½¡£
½ÓÏÂÀ´ ¾ÍÊÇ×î×îÖØÒªµÄÄØ£¿£¿£¿
ʲôÄØ£¿£¿Äã²Âprimary ºÍn¸östandbyËüÃÇÊÇÔõô¸ö´î½¨ÒìµØ±¸·ÝµÄÌåϵ¡£
oracleÓÐÁ½¸ö¶«Î÷²»´í£º¹éµµÈÕÖ¾¡¢Áª»úÈÕÖ¾¡££¨ËüÃÇÇø±ð ÖªµÀ°É¡£¡££©
primaryÔڹ鵵Ï£¨ÍæÕâ¸ö±ØÐëÒª¹éµµÄ£Ê½£¬Òª²»Ã»¸ãÍ·£©²»¹Ü¸ÉÂïÁË ¶¼Òª¼ÇÕË¡£×öÍêÁ˾Íͨ¹ý¿ìµÝ¹«Ë¾Ë͵½¸÷¸ö·Ö¶æ¡£¸÷¸ö·Ö¶æ½Óµ½Á쵼ָʾ£¬¾Í¹á³¹Áìµ¼¾«Éñ£¬Ò»Ä£Ò»ÑùµÄ¸ãÒ»±é¡£ºÇºÇÔ­Àí¾ÍÕâÑù¡£
ÄDzÎÊýÔõôÅä¡£¡£¡£¡£¼¸¸öÒªµã£º½Úµã¼äͨÐÅ£¬Äǿ϶¨ÒªÅäÖÃnetworkÂȻºó¾Í¸ÃÔÚ½ÚµãÃǵIJÎÊýÎļþÀï¼ÓÉϼ¸¸ö²ÎÊý£º
db_unque_name
log_archive_config
log_archive_dest_n
log_archive_dest_state_n
fal_server
fal_client
×¢Ò⣺һ¸ödataguardϵÄËùÓнڵãµÄdb_nameÒªÒ»Ö¡£¼ÈÈ»ÊÇͨÐÅ£¬ÄÇÎÒÓ¦¸ÃÒªÖªµÀ¶Ô·½µÄÀ´Í·£¬ÐÕʲô¡£Õâ¸öÈËÔÚÄãµÄnetworkÖж¨Òå¹ýÁË£¬¾ÍÊÇËûÁË¡£²»ÊÇʲôʵÀýÃû»ò·þÎñÃûŶ   ÎÒ±»¾ýÈý˼Îóµ¼¹ý¡£¡£¡£ºÇºÇ ÈË·ÇÊ¥ÏÍ£¬ÊëÄÜÎÞ¹ý¡£
¶¼ºÃÁË¡£¡£»¹ÓÐÒ»¸öÊÂÍüÁË£¨½ÚµãµÄsysÃÜÂëÒªÒ»Ö£¬²»Ò»Ö°¡ Äã¾ÍÖØж¨Ò壩ÄǾ͠ duplicate target database for standby.
¡£¡£¡£¡£¡£¡£Îҵȡ£¡£¡£¡£¡£
ºÃÁË  ¹§Ï²  ³É¹¦Ò»Ð¡²½¡£¡£¡£¡£
½ÓÏÂÀ´  ¿´Äã¾ö¶¨dataguardµÄ±£»¤Ä£Ê½£¬ÒªÇó¸ßÁË ¾ÍÔÚstandbyÉϽ¨¼¸¸östandby log£¬ÕâÀïÎÒÑ¡Ôñ ×î´óÐÔÄÜµÄ ²»½¨ÁË¡£
¼ÌÐø¹þ¡£¡£¡£
ÔÚstandbyÉÏÖ´ÐÐͬ²½£ºrecover managed standby database disconnect from session.
OK!!!·Ö±ðÈ¥Ö÷»úºÍ±¸»úÉϼìÑéÀͶ¯³É¹û¡£
Ôõô¿´¡£¡£¡£¡£select switchover_status fr


Ïà¹ØÎĵµ£º

OracleµÄ¾Û´Ø±í

Ë÷Òý¾Û´Ø±í
create cluster emp_dept_cluster
(deptno number(2)) size 1024;
size 1024 ±íʾÿ¸ö¾Û´Ø¼üÖµ¹ØÁª´óÔ¼1024×Ö½ÚµÄÊý¾Ý,
oracle»áÔÚÓÃÕâ¸öÊý¾Ý¿â¿éÉÏͨ¹ýsize¼ÆËã×î¶à¿ÉÒԷŶàÉÙ¸ö´Ø
Èç¹û¿éÊÇ8KB,ÄÇôÕâ¸ö¿éÉÏ×î¶à·Å7¸ö¾Û´Ø¼ü
Ïò¾Û´ØÖзÅÊý¾Ý֮ǰ,ÐèÒªÏȶԾ۴ؽ¨Á¢Ë÷Òý.
create index emp_dept_cluster_id ......

²é¿´¡¢ÐÞ¸Äoracle×Ö·û¼¯£¬²é¿´oracle°æ±¾

1¡¢²é¿´Êý¾Ý¿â×Ö·û¼¯
Êý¾Ý¿â·þÎñÆ÷×Ö·û¼¯select * from nls_database_parameters£¬ÆäÀ´Ô´ÓÚprops$£¬ÊDZíʾÊý¾Ý¿âµÄ×Ö·û¼¯¡£
¡¡¡¡
¡¡¡¡¿Í»§¶Ë×Ö·û¼¯»·¾³select * from nls_instance_parameters,ÆäÀ´Ô´ÓÚv$parameter£¬
¡¡¡¡
¡¡¡¡±íʾ¿Í»§¶ËµÄ×Ö·û¼¯µÄÉèÖ㬿ÉÄÜÊDzÎÊýÎļþ£¬»·¾³±äÁ¿»òÕßÊÇ×¢²á±í
¡¡¡¡
¡¡¡¡»á»°×Ö·û¼¯» ......

Oracle session×ܽá

  ´ÓÉÏÖÜÆ𣬷þÎñÆ÷OracleÊý¾Ý¿â³öÏÖÎÊÌ⣬Óò»µ½°ëÌ죬¾Í»á±¨maxsession£¨150£©µÄÎÊÌ⣬¿Ï¶¨ÊÇÊý¾Ý¿âµÄ»á»°³¬¹ý×î´óÊýÁË¡£
  ÓÉÓÚ·þÎñÆ÷ÅܵÄÊÇÎļþ´«ÊäÓ¦Óã¬Õ¼ÓõÄÇëÇóºÍ»á»°¿Ï¶¨ºÜ´ó£¬Òò´ËÓû§Êý²»´ó¾ÍÒѾ­ÈÃoracleµÄ»á»°Êý´ïµ½×î´óÖµ¡£
  ´¦Àí·½Ê½²»ÍâºõÁ½ÖÖ£ºÀ©´óoracle×î´ósessionÊýÒÔ¼°Çå³ýinact ......

Oracle ·ÖÒ³

<!-- 
@Name£º·ÖÀàͳ¼ÆÃ÷ϸ
@Time£º2010.01.05
@author JZP
--->
<%@ page language="java" import="java.util.*" pageEncoding="GBK"%>
<%@ page language="java" import="wfc.service.database.DB"%>
<%@ page import="java.sql.Connection"%>
<%@ page import="java.sql.Resul ......

Oracle È¡µÃµ±Ìì0ʱ0·Ö0ÃëºÍ23ʱ59·Ö59Ãë

--È¡µÃµ±Ìì0ʱ0·Ö0Ãë
select TRUNC(SYSDATE) from dual;
--È¡µÃµ±Ìì23ʱ59·Ö59Ãë(ÔÚµ±Ìì0ʱ0·Ö0ÃëµÄ»ù´¡ÉϼÓ1ÌìºóÔÙ¼õ1Ãë)
SELECT TRUNC(SYSDATE)+1-1/86400 from dual;
--È¡µÃµ±Ç°ÈÕÆÚÊÇÒ»¸öÐÇÆÚÖеĵڼ¸Ìì,×¢Ò⣺ÐÇÆÚÈÕÊǵÚÒ»Ìì
select to_char(sysdate,'D'),to_char(sysdate,'DAY') from dual;
--ÔÚoracleÖÐÈçºÎµÃ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ