Oracle ORA 01110´íÎó½â¾ö·½·¨
ÔÚÊý¾Ý¿â·þÎñÆ÷ÉÏ£¬½¨Á¢ÁËÒ»¸öÓû§test£¬È»ºóʹÓÃÃüÁîdrop user test cascadeɾ³ýÁËÓû§£¬½Ó×ÅҲɾ³ýÁËÕâ¸öÓû§µÄÊý¾ÝÎļþ/opt/oracle/oradata/test/testdata.dbf¡£µ±ÔڵǼÊý¾Ý¿âʱ£¬Äܹ»Æô¶¯ÊµÀý£¬µ«ÊÇ´ò²»¿ªÊý¾Ý¿â£¬ÏµÍ³±¨´í£º
ORA-01157: cannot identify/lock data file 10 - see DBWR trace file
ORA-01110: data file 10: '/opt/oracle/oradata/test/testdata.dbf'
ÏÂÃæ²Î¿¼ÍøÉϵÄÃèÊö¸ø³ö½â¾ö·½·¨£ºhttp://topic.csdn.net/u/20090209/16/cdf830ad-72fb-44e5-92b3-690779e10d9a.html
½â¾ö²½ÖèÊÇ£ºÖØд´½¨Ò»¸öÊý¾ÝÎļþ£¬È»ºórecover¹ýÀ´¾Í¿ÉÒÔÁË£¬²»¹ýÇ°ÌáÊÇÈÕÖ¾Îļþ»¹ÔÚ¡£
1. startup mount
2. alter database create datafile '/opt/oracle/oradata/test/testdata.dbf';
3. set autorecovery on;
4. recover datafile '/opt/oracle/oradata/test/testdata.dbf';
5. alter database datafile '/opt/oracle/oradata/test/testdata.dbf' online;
6. alter database open;
Ïà¹ØÎĵµ£º
ÔÚJ2EEÓ¦ÓóÌÐò¿ª·¢ÖУ¬Ó¦ÓóÌÐòÓëÊý¾Ý¿âÁ¬½ÓµÄ½¨Á¢ÊÇÎÒÃǾ³£Óöµ½µÄÎÊÌâÖ®Ò»¡£ÔÚÕâÀïÎÒÖ÷Ҫ̸̸ÔÚ±¾µØÓ¦ÓóÌÐòÖÐͨ¹ýOCI·½Ê½¡¢thin·½Ê½ºÍJdbcOdbcÇÅ·½Ê½Á¬½ÓOracleÊý¾Ý¿â£¬ÔÚiPlanet Application Server 6.5ºÍSun Java System Application Server 7ÖжÔOracleÊý¾Ý¿âÁ¬½Ó³ØµÄÅäÖÃÒÔ¼°Ó¦ÓÃÖÐÈçºÎ´ÓÁ¬½Ó³ØÖлñµÃÁ¬½Ó
Ò»¡¢±¾µ ......
¾ÍÊÇÔÚÒÑÓеÄÊý¾Ý¿âʵÀýÉÏ´´½¨Ò»¸öеÄÕʺţ¬·ÃÎÊһЩеıí
²Ù×÷²½ÖèÈçÏ£º
1¡¢µÇ¼linux£¬ÒÔoracleÓû§µÇ¼£¨Èç¹ûÊÇrootÓû§µÇ¼µÄ£¬µÇ¼ºóÓà su - oracleÃüÁîÇл»³ÉoracleÓû§£©
2¡¢ÒÔsysdba·½Ê½À´´ò¿ªsqlplus£¬ÃüÁîÈçÏ£º sqlplus "/as sysdba"
3¡¢²é¿´ÎÒÃdz£¹æ½«Óû§±í¿Õ¼ä·ÅÖÃλÖà ......
1.ÔÚORACLEÖÐÓÃselect * from all_usersÏÔʾËùÓеÄÓû§£¬¶øÔÚMYSQLÖÐÏÔʾËùÓÐÊý¾Ý¿âµÄÃüÁîÊÇshow databases¡£¶ÔÓÚÎÒµÄÀí½â£¬ORACLEÏîÄ¿À´ËµÒ»¸öÏîÄ¿¾ÍÓ¦¸ÃÓÐÒ»¸öÓû§ºÍÆä¶ÔÓ¦µÄ±í¿Õ¼ä£¬¶øMYSQLÏîÄ¿ÖÐÒ²Ó¦¸ÃÓиöÓû§ºÍÒ»¸ö¿â¡£ÔÚORACLE(db2Ò²Ò»Ñù)Öбí¿Õ¼äÊÇÎļþϵͳÖеÄÎïÀíÈÝÆ÷µÄÂß¼±íʾ£¬ÊÓͼ¡¢´¥·¢Æ÷ºÍ´æ´¢¹ý³ÌÒ² ......
ÊÓͼµÄ¸ÅÄî
ÊÓͼÊÇ»ùÓÚÒ»Õűí»ò¶àÕűí»òÁíÍâÒ»¸öÊÓͼµÄÂß¼±í¡£ÊÓͼ²»Í¬ÓÚ±í£¬ÊÓͼ±¾Éí²»°üº¬ÈκÎÊý¾Ý¡£±íÊÇʵ¼Ê¶ÀÁ¢´æÔÚµÄʵÌ壬ÊÇÓÃÓÚ´æ´¢Êý¾ÝµÄ»ù±¾½á¹¹¡£¶øÊÓͼֻÊÇÒ»ÖÖ¶¨Ò壬¶ÔÓ¦Ò»¸ö²éѯÓï¾ä¡£ÊÓͼµÄÊý¾Ý¶¼À´×ÔÓÚijЩ±í£¬ÕâЩ±í±»³ÆΪ»ù±í¡£Í¨¹ýÊÓͼÀ´²é¿´±í£¬¾ÍÏñÊÇ´Ó²»Í¬µÄ½Ç¶ÈÀ´¹Û²ìÒ»¸ö(»ò¶à¸ö)±í¡£
Ê ......
Oracleʱ¼äÈÕÆÚ²Ù×÷
sysdate+(5/24/60/60) ÔÚϵͳʱ¼ä»ù´¡ÉÏÑÓ³Ù5Ãë
sysdate+5/24/60 ÔÚϵͳʱ¼ä»ù´¡ÉÏÑÓ³Ù5·ÖÖÓ
sysdate+5/24 ÔÚϵͳʱ¼ä»ù´¡ÉÏÑÓ³Ù5Сʱ
sysdate+5 ÔÚϵͳʱ¼ä»ù´¡ÉÏÑÓ³Ù5Ìì
add_months(sysdate,-5) ÔÚϵͳʱ¼ä»ù´¡ÉÏÑÓ³Ù5ÔÂ
add_months(sysdate,-5*12) ÔÚϵͳʱ¼ä»ù´¡ÉÏÑÓ³Ù5Äê
ÉÏÔÂÄ©µÄÈÕÆÚ£ºsel ......