oracleÍü¼Çsys/system/scottÓû§µÄÃÜÂëÔõô°ì
Ò»¡¢Íü¼Ç³ýSYS¡¢SYSTEMÓû§Ö®ÍâµÄÓû§µÄµÇ¼ÃÜÂë¡£
ÓÃSYS (»òSYSTEM)Óû§µÇ¼¡£
CONN SYS/PASS_WORD AS SYSDBA;
ʹÓÃÈçÏÂÓï¾äÐÞ¸ÄÓû§µÄÃÜÂë¡£
ALTER USER user_name IDENTIFIED BY newpass;
×¢Ò⣺ÃÜÂë²»ÄÜÈ«ÊÇÊý×Ö¡£²¢ÇÒ²»ÄÜÊÇÊý×Ö¿ªÍ·¡£·ñÔò»á³öÏÖ£ºORA-00988: ¿ÚÁîȱʧ»òÎÞЧ
¶þ¡¢Íü¼ÇSYSÓû§£¬»òÕßÊÇSYSTEMÓû§µÄÃÜÂë¡£
Èç¹ûÊÇÍü¼ÇSYSTEMÓû§µÄÃÜÂ룬¿ÉÒÔÓÃSYSÓû§µÇ¼¡£È»ºóÓÃALTER USER ÃÜÁî
ÐÞ¸ÄÃÜÂë¡£
CONN SYS//PASS_WORD AS SYSDBA;
ALTER USER SYSTEM IDENTIFIED BY newpass;
Èç¹ûÊÇÍü¼ÇSYSÓû§µÄÃÜÂ룬¿ÉÒÔÓÃSYSTEMÓû§µÇ¼¡£È»ºóÓÃALTER USER ÃÜÁî
ÐÞ¸ÄÃÜÂë¡£
CONN SYSTEM//PASS_WORD ;
ALTER USER SYSTEM IDENTIFIED BY newpass;
Èý¡¢Èç¹ûSYS,SYSTEMÓû§µÄÃÜÂ붼Íü¼Ç»òÊǶªÊ§¡£
ÕâÒ»ÏîÓÈÆäÖØÒª¡£
¿ÉÒÔʹÓÃORAPWD.EXE ¹¤¾ßÐÞ¸ÄÃÜÂë¡£
¿ªÊ¼²Ëµ¥->ÔËÐÐ->ÊäÈë‘CMD’,´ò¿ªÃüÁîÌáʾ·û´°¿Ú£¬ÊäÈëÈçÏÂÃüÁ
orapwd file=D:\oracle\product\10.2.0\db_1\database\pwdctcsys.ora
password=newpass
Õâ¸öÃüÁîÖØÐÂÉú³ÉÁËÊý¾Ý¿âµÄÃÜÂëÎļþ¡£ÃÜÂëÎļþµÄλÖÃÔÚORACLE_HOMEĿ¼ÏÂ
µÄ\databaseĿ¼Ï¡£
Õâ¸öÃÜÂëÊÇÐÞ¸ÄsysÓû§µÄÃÜÂë¡£³ýsysºÍsystemÆäËûÓû§µÄÃÜÂë²»»á¸Ä±ä¡£
Ïà¹ØÎĵµ£º
ÊÓͼµÄ¸ÅÄî
ÊÓͼÊÇ»ùÓÚÒ»Õűí»ò¶àÕűí»òÁíÍâÒ»¸öÊÓͼµÄÂß¼±í¡£ÊÓͼ²»Í¬ÓÚ±í£¬ÊÓͼ±¾Éí²»°üº¬ÈκÎÊý¾Ý¡£±íÊÇʵ¼Ê¶ÀÁ¢´æÔÚµÄʵÌ壬ÊÇÓÃÓÚ´æ´¢Êý¾ÝµÄ»ù±¾½á¹¹¡£¶øÊÓͼֻÊÇÒ»ÖÖ¶¨Ò壬¶ÔÓ¦Ò»¸ö²éѯÓï¾ä¡£ÊÓͼµÄÊý¾Ý¶¼À´×ÔÓÚijЩ±í£¬ÕâЩ±í±»³ÆΪ»ù±í¡£Í¨¹ýÊÓͼÀ´²é¿´±í£¬¾ÍÏñÊÇ´Ó²»Í¬µÄ½Ç¶ÈÀ´¹Û²ìÒ»¸ö(»ò¶à¸ö)±í¡£
Ê ......
[×ÊÁÏÀ´×ÔÓÚORACLEƵµÀ http://oracle.chinaitlab.com/induction/398193.html]
¡¡1. /*+ALL_ROWS*/
¡¡¡¡±íÃ÷¶ÔÓï¾ä¿éÑ¡Ôñ»ùÓÚ¿ªÏúµÄÓÅ»¯·½·¨,²¢»ñµÃ×î¼ÑÍÌÍÂÁ¿,ʹ×ÊÔ´ÏûºÄ×îС»¯.
¡¡¡¡ÀýÈç:
¡¡¡¡SELECT /*+ALL_ROWS*/ EMP_NO,EMP_NAM,DAT_IN from BSEMPMS WHERE EMP_NO='SCOTT';
¡¡¡ ......
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 ......
ÔÚÖ´ÐÐÒ»¸ö´æ´¢¹ý³Ì½¨±íʱ£¬³öÏÖÁËÕâ¸öORA-38301:ÎÞ·¨¶Ô»ØÊÕÕ¾ÖеĶÔÏóÖ´ÐÐDDL/DML´íÎó¡£·¢ÏÖÔÀ´ÕâÊÇ10GµÄÒ»¸öÐÂÌØÐÔ£¬»ØÊÕÕ¾¡£¶ÔÓÚdropµÄ±í²¢²»ÊÇÖ±½Óɾ³ýµôµÄ¡£¶øÊÇ·ÅÔÚ»ØÊÕÕ¾ÖÐÁË¡£RecycleBin¡£
¿ÉÊÇÔÚ»ØÊÕÕ¾ÖÐûÓв鵽Õâ¸ö±í¡£
select * from recyclebin;
ºÜÆæ¹Ö¡£
½øÐÐɾ³ý²Ù×÷¡£
½øÐÐɾ³ýºó£¬»¹ÊDz»ÄܶԸà ......
ÔÚoracleÖÐÅúÁ¿Êý¾ÝµÄµ¼³öÊǽèÖúsqlplusµÄspoolÀ´ÊµÏֵġ£ÅúÁ¿Êý¾ÝµÄµ¼ÈëÊÇͨ¹ýsqlloadÀ´ÊµÏֵġ£
´óÁ¿Êý¾ÝµÄµ¼³ö²¿·ÖÈçÏ£º
/***************************
* sql½Å±¾²¿·Ö demo.sql begin
**************************/
/**************************
* @author meconsea
* @date 20050 ......