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

Oracle Êý¾Ý¿âÔÚarchivelogģʽÏÂÎļþ¶ªÊ§µÄ»Ö¸´

step1
ÔÚÁª»úʱ×ö±¸·Ý(»ùÓÚ»Ö¸´Ä¿Â¼µÄ±¸·Ý£¬×öÁË¿ØÖÆÎļþµÄ×Ô¶¯±¸·Ý)£¬°üÀ¨ËùÓÐÊý¾ÝÎļþ¼°¹éµµµÄÈÕÖ¾Îļþ£º
rman>run{
backup format 'c:\bak\test_full_%u' database;
sql 'alter system archive log current';
backup format 'c:\bak\test_log_%u' archivelog all delete input;
}
step2
sql>insert into lsf.aa values('a','b');
sql>commit;
sql>alter system switch logfile;
rman>shutdown immediate;
ÊÖ¶¯É¾³ýËùÓÐÎļþ(¿ØÖÆÎļþ¡¢Êý¾ÝÎļþ¡¢Áª»úÈÕÖ¾Îļþ)
step3
RMAN> startup nomount;
RMAN> restore controlfile from autobackup;
RMAN> alter database mount;
step4
RMAN> list backup of archivelog from time='sysdate-2';


Ïà¹ØÎĵµ£º

ORACLEÉó¼Æ

1¡¢Ê²Ã´ÊÇÉó¼Æ
Éó¼Æ£¨Audit)ÓÃÓÚ¼àÊÓÓû§ËùÖ´ÐеÄÊý¾Ý¿â²Ù×÷£¬²¢ÇÒOracle»á½«Éó¼Æ¸ú×Ù½á¹û´æ·Åµ½OSÎļþ£¨Ä¬ÈÏλÖÃΪ$ORACLE_BASE/admin/$ORACLE_SID/adump/£©»òÊý¾Ý¿â£¨´æ´¢ÔÚsystem±í¿Õ¼äÖÐµÄ SYS.AUD$±íÖУ¬¿Éͨ¹ýÊÓͼdba_audit_trail²é¿´£©ÖС£Ä¬ÈÏÇé¿öÏÂÉó¼ÆÊÇûÓпªÆôµÄ¡£
²»¹ÜÄãÊÇ·ñ´ò¿ªÊý¾Ý¿âµÄÉó¼Æ¹¦ÄÜ£¬ÒÔÏÂÕâЩ ......

Oracle°²×°ÖеÄDHCPÎÊÌâ

 ¹Ø¼ü×Ö: oracle
Oracle°²×°ÖеÄDHCPÎÊÌâ
1.Linux
ÐÞ¸ÄhostsÎļþ ½«ipµØÖ·ÓëlocalhostÉ趨¾Í¿ÉÒÔÁË£¬ÈçÏÂ
vi /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
192.168.193.129 www.myzhtc.com
192.168.193.129 localhost myzhtc.com
......

oracle×ܽá

²éѯ£ºselectÓï¾ä£¬¶à±í²éѯ£¬group by ·Ö×飬having ¶Ô·Ö×éºóµÄÿһ¸ö×é½øÐйýÂË£¬order by ÅÅÐò¡£(selectÓï¾ä¶à±í²éѯÕâ¸ö×îÖØÒª)
DMLÓï¾ä£ºinsert into emp() values(),insert into emp (select * from emp2),
    delete from emp where...
    update emp set sal =.. where ..
rollback;»Ö¸´ ......

OracleÖ®EXPÓëIMP


 
ʹÓÃEXP
EXPÃüÁîÐÐÑ¡Ïî
1,BUFFER
¸ÃÑ¡ÏîÓÃÓÚÖ¸¶¨ÌáÈ¡ÐÐÊý¾ÝʱµÄ»º³åÇø³ß´ç.ͨ¹ýÉèÖøÃÑ¡Ïî,¿ÉÒÔÈ·¶¨µ¼³öʱÊý¾ÝÌáÆð³ß´ç.¸ÃÑ¡ÏîÖ»ÊÊÓÃÓÚ³£¹æÑ¡Ïî.
Exp scott/tiger tables=dept,emp file=a.dmp buffer=81920
2,COMPRESS
¸ÃÑ¡ÏîÓÃÓÚÖ¸¶¨µ¼Èë¹ÜÀí³õʼÇø(INITIAL)µÄ·½·¨.ĬÈÏֵΪY.µ±ÉèÖøÃÑ¡ÏîΪYʱ,oracle»á½ ......

OracleÖ®¹ÜÀíȨÏÞ


ȨÏÞ(Privilege)ÊÇÖ¸Ö´ÐÐÌض¨ÀàÐÍSQLÃüÁî»ò·ÃÎÊÆäËû·½°¸¶ÔÏóµÄȨÀû,ȨÏÞ°üÀ¨ÏµÍ³È¨Ï޺ͶÔÏóȨÏÞÁ½ÖÖÀàÐÍ.ϵͳȨÏÞ(System Privilege)ÊÇÖ¸Ö´ÐÐÌض¨ÀàÐÍSQLÃüÁîµÄȨÀû,ËüÓÃÓÚ¿ØÖÆÓû§¿ÉÒÔÖ´ÐеÄÒ»¸ö»òÒ»×éÊý¾Ý¿â²Ù×÷.³£ÓõÄϵͳȨÏÞ:
CREATE SESSION Á¬½Óµ½Êý¾Ý¿â
CREATE TABLE ½¨±í
CREATE VIEW ½¨Á¢ÊÓͼ
CREATE PUBLI ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ