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

oracle ¹éµµÈÕÖ¾

 C:\Documents and Settings\Administrator>sqlplus/nolog
SQL> CONNECT/AS SYSDBA
SQL> SHUTDOWN NORMAL/IMMEDIATE
SQL> STARTUP MOUNT
SQL> ARCHIVE  LOG  LIST                    
SQL> ALTER DATABASE ARCHIVELOG;    
SQL> ARCHIVE  LOG  LIST
SQL> ALTER  DATABASE  OPEN;
--×öÒ»´ÎÍêÈ«±¸·Ý,ÒòΪ·Ç¹éµµÈÕ־ģʽϲúÉúµÄ±¸·ÝÈÕÖ¾¶ÔÓڹ鵵ģʽÒѾ­²»¿ÉÓÃÁË.ÕâÒ»²½·Ç·Ç³£ÖØÒª!
ÆôÓÃ×Ô¶¯¹éµµ: LOG_ARCHIVE_START=TRUE
--¹éµµÄ£Ê½ÏÂ,ÈÕÖ¾Îļþ×é²»ÔÊÐí±»¸²¸Ç(ÖØд),µ±ÈÕÖ¾ÎļþдÂúÖ®ºó,Èç¹ûûÓнøÐÐÊÖ¶¯¹éµµ,ÄÇôϵͳ½«¹ÒÆð,ÖªµÀ¹éµµÍê³ÉΪֹ.
--ÕâʱֻÄܶÁ¶ø²»ÄÜд.
--ÔËÐйý³ÌÖйرպÍÖØÆô¹éµµÈÕÖ¾½ø³Ì
SQL>ARCHIVE LOG STOP
SQL>ARCHIVE LOG START
--oracle 10g Ö´ÐÐÊÖ¹¤¹éµµ±ØÐëALTER DATABASE ARCHIVELOG MANUALÔÙ ¹éµµÖØ×öÈÕÖ¾ ALTER SYSTEM ARCHIVELOG ALL
ÊÖ¶¯¹éµµ: LOG_ARCHIVE_START=FALSE
SQL>ALTER SYSTEM ARCHIVE LOG CURRENT;                        --¹éµµµ±Ç°ÈÕÖ¾Îļþ
SQL>ALTER SYSTEM ARCHIVE LOG SEQUENCE 052;            --¹éµµÐòºÅΪ052µÄÈÕÖ¾Îļþ
SQL>ALTER SYSTEM ARCHIVE LOG ALL;                                --¹éµµËùÓÐÈÕÖ¾Îļþ
SQL>ALTER SYSTEM ARCHIVE LOG CURRENT TO '&PATH';--¸Ä±ä¹éµµÈÕ־Ŀ±ê
ÅäÖöà¸ö¹éµµ½ø³Ì
--Èç¹û¹éµµ¹ý³Ì»áÏûºÄ´óÁ¿µÄʱ¼ä,ÄÇô¿ÉÒÔÆô¶¯¶à¸ö¹éµµ½ø³Ì,ÕâÊǸö¶¯Ì¬²ÎÊý,¿ÉÒÔÓÃALTER SYSTEM¶¯Ì¬ÐÞ¸Ä.
SQL>ALTER SYSTEM SET LOG_ARCHIVE_MAX_PROCESSES=10;
--Oracle9iÖÐ×î¶à¿ÉÒÔÖ¸¶¨10¸ö¹éµµ½ø³Ì
--Óë¹éµµ½ø³ÌÓйصĶ¯Ì¬ÐÔÄÜÊÓͼ
v$bgprocess,v$archive_processes
ÅäÖù鵵Ŀ±ê,¶à¹éµµÄ¿±ê,Ô¶³Ì¹éµµÄ¿±ê,¹éµµÈÕÖ¾¸ñʽ
--¹éµµÄ¿±ê LOG_ARCHIVE_DEST_n
--±¾µØ¹éµµÄ¿±ê:
SQL>LOG_ARCHIVE_DEST_1 = "LOCATION=D:ORACLEARCHIVEDLOG";
--Ô¶³Ì¹éµµÄ¿±ê:
SQL>LOG_ARCHIVE_DEST_2 = "


Ïà¹ØÎĵµ£º

MySQLºÍOracleµÄһЩ²Ù×÷Çø±ð

 ÓкܶàÓ¦ÓÃÏîÄ¿, ¸ÕÆð²½µÄʱºòÓÃMYSQLÊý¾Ý¿â»ù±¾ÉÏÄÜʵÏÖ¸÷ÖÖ¹¦ÄÜÐèÇó£¬Ëæ×ÅÓ¦ÓÃÓû§µÄÔö¶à£¬Êý¾ÝÁ¿µÄÔö¼Ó£¬MYSQL½¥½¥µØ³öÏÖ²»¿°ÖظºµÄÇé¿ö£ºÁ¬½ÓºÜÂýÉõÖÁå´»ú£¬ÓÚÊǾÍÓаÑÊý¾Ý´ÓMYSQLǨµ½ORACLEµÄÐèÇó£¬Ó¦ÓóÌÐòÒ²ÒªÏàÓ¦×öһЩÐ޸ġ£±¾ÈË×ܽá³öÒÔϼ¸µã×¢ÒâÊÂÏϣÍû¶Ô´ó¼ÒÓÐËù°ïÖú¡£
1£® ×Ô¶¯Ôö³¤µÄÊý¾ ......

OracleµÄ³£ÓÃÃüÁî

 Ò»¡£Oracle·þÎñÆ÷µÄ³£ÓÃÃüÁîÐÐÏêϸ½²½â
1.Êý¾Ý¿â¹ÜÀíÏà¹Ø

 
¡¡¡¡bbed.exe¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡Êý¾Ý¿éä¯ÀÀºÍ±à¼­¹¤¾ß
¡¡¡¡dbv.exe¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡Êý¾ÝÎļþÂß¼­¼ì²â¹¤¾ß
¡¡¡¡exp.exe¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡Êý¾Ýµ¼³ö¹¤¾ß
¡¡¡¡imp.exe¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡Êý¾Ýµ¼È빤¾ß
¡¡¡¡mig.exe¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡Êý¾Ý¿âÒÆÖ²¹¤¾ß
¡¡¡ ......

OracleÖÐStart with...Connect ByÀí½â¼°Ó÷¨

oracleÖÐconnect by priorʵÏֵݹé²éѯ
ÊÕ¼¯µÄ¼¸ÌõÔÚoracleÖÐͨ¹ýconnect by priorÀ´ÊµÏֵݹé²éѯ
Start with...Connect By×Ó¾äµÝ¹é²éѯһ°ãÓÃÓÚÒ»¸ö±íά»¤Ê÷ÐνṹµÄÓ¦Óá£
´´½¨Ê¾Àý±í£º
CREATE TABLE TBL_TEST
(
ID    NUMBER,
NAME VARCHAR2(100 BYTE),
PID   NUMBER &nbs ......

toad for oracle(µ¼Èëµ¼³öʵÀý)

Àý£º
create user his identified by his default tablespace users temporary tablespace temp;
grant connect,resource,dba to his;
create tablespace his
logging
datafile 'd:\oracle\product\10.2.0\oradata\zjxsh\his.ora' size 100M extent
management local segment space management auto;
exp his/ny@ny ......

OracleÖд´½¨¡¢Ð޸ġ¢É¾³ýÐòÁÐ

1¡¢´´½¨ÐòÁÐÓï·¨£º(ÐèÒªCREATE SEQUENCEϵͳȨÏÞ)
CREATE SEQUENCE ÐòÁÐÃû
[INCREMENT BY n] ---ÓÃÓÚ¶¨ÒåÐòÁеIJ½³¤¡£
                                ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ