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

oracle ÈçºÎ°ÑÊý¾Ý¿â±äΪ·Ç¹éµµÈÕ־ģʽ

shutdown immediate
Ç¿Áв»½¨ÒéתΪ·Ç¹éµµÄ£Ê½
startup mount
alter database noarchivelog
alter database open
·Ç¹éµµ×ª¹éµµ
startup mount
alter database archivelog
alter database open
Ôڹ鵵ÈÕ־ģʽÏ£¬ÓпÉÄÜ»áÓöµ½¹éµµÈÕÖ¾´óС³¬¹ý×î´óÖµ¶ø³öÏÖÌÖÑáµÄORA-00257´íÎó£¬Ç°Ãæ˵ÁËÈçºÎ°Ñ¹éµµÈÕÖ¾¿Õ¼ä±ä´ó¡£¶øÔÚÆÕͨµÄ¿ª·¢»·¾³Ï£¬ÆäʵÊǸù±¾Óò»×Ź鵵ÈÕÖ¾µÄ£¬Éè¸öʱºòÎÒÃǾͰÑÊý¾Ý¿âµÄ¹éµµÈÕÖ¾¸ø½ûÓÃÁË£¬Ò²¾ÍÊÇ˵°ÑÊý¾Ý¿â±äΪ·Ç¹éµµÈÕ־ģʽ£¬Ó¦¸ÃÔõô×öÄØ¡£
ÔÚÕâÀïËùÓеIJÙ×÷ÒªÔÚÊý¾Ý¿âµÄÄÇ̨»úÆ÷ÉϲÙ×÷£¬ÓÃSYSÓû§½øÐеǼ£¬Ê×ÏÈÉèÖù鵵½ø³Ì¹Ø±Õ¡£
¡¡¡¡alter system set log_archive_start=false scope=spfile;
È»ºó¹Ø±ÕÊý¾Ý¿â
¡¡¡¡shutdown immediate
ÔÙºóÃæ°ÑÊý¾Ý¿âÆô¶¯µ½mountµÄģʽ
startup mount
¹Ø±ÕflashÉÁ»ØÊý¾Ý¿âģʽ£¬Èç¹û²»¹Ø±ÕµÄ»°£¬ÔÚºóÃæ¹Ø±Õ¹éµµÈÕÖ¾µÄʱºò¾Í»á³öÏÖÌÖÑáµÄORA-38774´íÎó¡£
¡¡¡¡alter database flashback off
½Ó×Å°ÑÊý¾Ý¿â¸ÄΪ·Ç¹éµµÄ£Ê½
¡¡¡¡alter database noarchivelog;
¶¼Ð޸ĺÃÁËÒÔºó£¬È»ºó´ò¿ªÊý¾Ý¿â
¡¡¡¡Alter database open;
²ì¿´Ò»Ï¹鵵ÈÕÖ¾µÄ¿Õ¼ä´óС
¡¡¡¡select * from v$recovery_file_dest;
½Ó×Å¿´Ò»ÏÂlogÈÕÖ¾µÄ״̬
¡¡¡¡select * from v$log;
ÔÙ¿´Ò»ÏÂÉÁ»ØÈÕ־ʹÓÃ×´¿ö
¡¡¡¡select * from v$flash_recovery_area_usage;
ÕâЩ¶¼Ã»ÓÐÎÊÌâÒÔºó£¬Êý¾Ý¿âÎÊÌâ¾Í½â¾öÁË¡£


Ïà¹ØÎĵµ£º

Oracle½âËøÓë¼ÓËø£¨hrÓû§ÎªÀý£©


Oracle½âËøÓë¼ÓËø£¨hrÓû§ÎªÀý£©
SQL*Plus: Release 9.2.0.4.0 - Production on Tue Jul 14 18:12:38 2009
Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
SQL> conn sys/sys as sysdba
Connected.
SQL> show user
USER is "SYS"
SQL> desc dba_users
 Name &nbs ......

oracle×¢ÊÍ£ºcomment onµÄÖØÒªÒâÒå

ÎÞÒÉ×¢ÊÍÏÖÔÚ¶¼±»´ó¼Ò½ÓÊܺÍÈÏ¿É£¬ÔÚ´ó¼Ò±à³ÌÓõÄIDEÖж¼Ìṩ»òÓеÚÈý·½²å¼þÀ´Ö§³ÖÌáȡעÊÍÄÚÈÝʵÏÖ
¿ìËÙÁ˽â½á¹¹µÄ¹¦ÄÜ¡£µ«ÔÚÊý¾Ý¿âµÄ½Å±¾±àд·½ÃæÎÒÒ²ÊǾ­ÀúÁË°Ù°ãÕÛÄ¥ºó×ܽáÁËһЩ¶«Î÷·¢À´Óë´ó¼ÒÇд衣
ÏÂÃæÀ´¿´Ò»¸öOracle½¨±íµÄ·½Ê½¡£
create table ctable_name
(
     ......

Oracle×ܽá


Oracle
Ò»¡¢Êý¾Ý¿âÓïÑÔ£º
DCL:Êý¾Ý¿â¿ØÖÆÓïÑÔ(ÈçÊÂÎñ...)
DQL:Êý¾Ý¿â²éѯÓïÑÔ(select...)
DDL:Êý¾Ý¿â¶¨ÒåÓïÑÔ(create)
DML:Êý¾Ý¿â²Ù×÷ÓïÑÔ(¸üÐÂ....)
¶þ¡¢Oracle°æ±¾£º
Oracle8I   i£º»¥ÁªÍø
Oracle10g g£ºÍø¸ñ£º°Ñ¸´ÔÓµÄÎÊÌâ·Ö²¼´¦Àí£¬×îºó°Ñ½á¹û×ۺϳÉ×î×ܽá¹û
°Ñ¸´ÔÓµÄÎÊÌâ·Ö²¼´¦Àí£¬×îºó°Ñ½á¹û×Ûº ......

oracleÈÕÆÚ´¦ÀíÍêÈ«°æ(תÔØ)

TO_DATE¸ñʽ
Day:
dd number 12
dy abbreviated fri
day spelled out friday
ddspth spelled out, ordinal twelfth
Month:
mm number 03
mon abbreviated mar
month spelled out march
Year:
yy two digits 98
yyyy four digits 1998
24Сʱ¸ñʽÏÂʱ¼ä·¶Î§Îª£º 0:00:00 - 23:59:59....
12Сʱ¸ ......

oracle Ë÷ÒýµÄÀàÐÍÏà¹Ø

Ò»¡¢Ë÷ÒýÀàÐͼ°½á¹¹£º
 
oracleµÄË÷Òý·ÖΪ5ÖÖ:ΨһË÷Òý£¬×éºÏË÷Òý£¬·´Ïò¼üË÷Òý£¬Î»Í¼Ë÷Òý£¬»ùÓÚº¯ÊýµÄË÷Òý
 
Âß¼­ÉÏ£º
Single column µ¥ÁÐË÷Òý
Concatenated ¶àÁÐË÷Òý
Unique ΨһË÷Òý
NonUnique ·ÇΨһË÷Òý
Function-basedº¯ÊýË÷Òý
Domain ÓòË÷Òý
ÎïÀíÉÏ£º
Partitioned ·ÖÇøË÷Òý
NonPartitioned ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ