oracle dataguard ʵÑé(µ¥Êý¾Ý¿â»·¾³+ÎïÀístandby)
±¾´Îoracle dataguard
»·¾³£º
²Ù×÷ϵͳ£ºwindows 2003 server
Êý¾Ý¿â£ºoracle 10g 10.2.0.1
ORACLE_HOME£ºD:\oracle\product\10.2.0\db_1
archive_dest£ºD:\archivelog
rman_dest£ºd:\rman_backup
»úÆ÷£º1̨
Ö÷¿âÃû³Æ£ºlearn
±¸¿âÃû³Æ£ºlearndg
ʵÑé²½Ö裺Ð޸ĺÃtnsnames¡¢listener¡¢pfileÎļþ£¬Í¨¹ýrmanµÄduplicate»¹Ô±¸¿â
Ò»¡¢Ö÷¿âÉϲÙ×÷£º
alter database force logging;
alter database archivelog;
Ìí¼ÓstandbyÈÕÖ¾×飬±È±¾ÉíµÄredoÈÕÖ¾×é¶à³öÒ»×飨ÓÐÒ»¸öÍƼöµÄ¹«Ê½¿ÉÒÔ×ö²Î¿¼£º(ÿÏ̵߳ÄÈÕÖ¾×éÊý+1)*×î´óÏß³ÌÊý Ïß³ÌÊý¿ÉÒÔÀí½âΪrac½á¹¹ÖеÄrac½ÚµãÊý£©
alter database add standby logfile group 4 ('D:\oracle\product\10.2.0\oradata\learn\STANDBYRDO01.LOG') szie 50M;
create pfile='d:\oracle\init_learn.ora' from spfile;
¸´ÖÆD:\oracle\product\10.2.0\db_1\databaseĿ¼ÏµÄPWDlearn.oraΪPWDlearndg.ora
ÐÞ¸Äcreate³öÀ´µÄpfileÐ޸ĺóÈçÏÂ,ºì×Ö²¿·ÖΪÐ޸ĵĵط½£¨ÀïÃæûÓеÄÔòÌí¼Ó£©
learn.__db_cache_size=276824064
learn.__java_pool_size=4194304
learn.__large_pool_size=4194304
learn.__shared_pool_size=109051904
learn.__streams_pool_size=0
*.audit_file_dest='d:\oracle\product\10.2.0/admin/learn/adump'
*.background_dump_dest='d:\oracle\product\10.2.0/admin/learn/bdump'
*.compatible='10.2.0.1.0'
*.control_files='d:\oracle\product\10.2.0/oradata/learn/\control01.ctl','d:\oracle\product\10.2.0/oradata/learn/\control02.ctl','d:\oracle\product\10.2.0/oradata/learn/\control03.ctl'
*.core_dump_dest='d:\oracle\product\10.2.0/admin/learn/cdump'
*.db_block_size=8192
*.db_domain=''
*.db_file_multiblock_read_count=16
*.DB_FILE_NAME_CONVERT='D:\oracle\product\10.2.0\oradata\learndg','D:\oracle\product\10.2.0\oradata\learn'
*.db_name='learn'
*.db_recovery_file_dest='d:\oracle\product\10.2.0/flash_recovery_area'
*.db_recovery_file_dest_size=536870912
*.DB_UNIQUE_NAME='learn'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=learnXDB)'
*.FAL_CLIENT='learn'
*.FAL_SERVER='learndg'
*.job_queue_processes=10
*.LOG_ARCHIVE_CONFIG='DG_CONFIG=(learn,learndg)'
*.log_archive_dest_1='LOCATION=D:\archive_
Ïà¹ØÎĵµ£º
ÔÚµ±½ñÍøÂçʱ´ú£¬ÎÒÃǶÔÊý¾ÝµÄ´æ´¢ÊÇÔ½À´Ô½¸ß£¬½ö½ö´æ´¢Ð¡ÐÍÎı¾Êý¾ÝÒѾԶԶ²»¹»ÁË£¬ÏÖÔÚÊý¾Ý¿âÐèÒª´æ´¢Í¼Æ¬¡¢ÊÓƵµÈµÈһЩ¶àýÌåµÄÄÚÈÝ£¬Òò´Ëoracle¸øÎÒÃÇÌṩÁËÒ»ÖÖ´óÀàÐÍÊý¾Ý¿â¶ÔÏóLOB(Large Object),¿ÉÒÔÓÃÓÚ´æ´¢´óÐÍÊý¾Ý¡£
Ò»¡¢´ó¶ÔÏóµÄ4ÖÐÊý¾ÝÀàÐÍ
CLOB ×Ö·ûLOBÊý¾ÝÀàÐÍ£¬ÓÃÓ ......
SunÖÕÓÚµ¹ÏÂÁË£¬Ò»¸ö²»µ«´´Ôì¼¼ÊõÉñ»°£¬¸øÊÀ½çIT¼¼Êõ´øÀ´¸ïÃüÐÔÓ°ÏìµÄ¹«Ë¾µ¹ÏÂÁË£¬ÎÒ»³ÄîËü¡£
ÎÒ¸öÈËÈÏΪORACLEºÍSUNµÄºÏ²¢£¬ÊÇÁ½¼Ò
¹«Ë¾µÄÐÒÊ£¬ORACLE½øÒ»²½ÍêÉÆÁ˲úÆ·Ïߣ¬²¢ÇÒ·ûºÏÁËÄ¿Ç°SaaSºÍÔƼÆËãµÄÇ÷ÊÆ£¬³ÉΪһ¸öÔÚ²úÆ·ÏߺͷþÎñÉÏ¿ÉÒÔºÍIBM½øÐоºÕùµÄ¹«Ë¾£¬¶øSUNµÄ
¼¼Êõ¿ÉÄܻᱻORACLE¹«Ë¾µÄÓªÏúÄÜÁ¦·½·¨£¬Ê¹SUNµ ......
Ò»¡¢³£ÓÃÓï·¨ --1. ɾ³ý±íʱ¼¶ÁªÉ¾³ýÔ¼Êø
drop table ±íÃû cascade constraint
--2. µ±¸¸±íÖеÄÄÚÈݱ»É¾³ýºó£¬×Ó±íÖеÄÄÚÈÝÒ²±»É¾³ý
on delete casecade
--3. ÏÔʾ±íµÄ½á¹¹
desc ±íÃû
--4. ´´½¨ÐµÄÓû§
create user [username] identified by [password]
--5. ¸øÓû§·ÖÅäȨÏÞ
grant ȨÏÞ1¡¢È¨ÏÞ2...to Óû§ ......
1.»ù´¡ÈÏʶ
DBMS_RANDOM°üµÄÏêϸÐÅÏ¢£º
select text from all_source
where name = 'DBMS_RANDOM'
......
ÎÒÃǾ³£Ì¸¼°OracleµÄȨÏÞ£¬±ÈÈçConnect£¬DBA£¬resource£¬ sysdba, select any
table,
select_catelog_roleÕâÑùһЩȨÏÞ£¬ÈÃÎÒÃÇÑÛ»¨çÔÂҵģ¬ÄÇôÈçºÎÀ´Çø·ÖÕâЩÖÖÀà·±¶àµÄprivilegeÖв»ÖÁÓÚÑÛÃÔÀëÄØ£¬Õâ¸öÎÄÕ½«
»á¶ÔÄãÔÚÕâ·½ÃæµÄÁ˽âÆðµ½°ïÖú¡£
ÒÔÉÏÎÒÃÇ¿´µ½µÄÕâЩȨÏÞ£¬¶¼ÊÇ¿ÉÒÔͨ¹ýg ......