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

°²×°ÍêÁËOracleÊý¾Ý¿â£¬¸øscottÕË»§½âËø·½·¨

    ×°ÍêÁËOracle 10gÊý¾Ý¿â£¬ÍüÁ˸øscottÕË»§½âËø¡£Õâʱ¿ÉÒÔÔÚsql plus¹¤¾ßÀ¿ªÊ¼|ËùÓгÌÐò|<Oracle-Home>|Ó¦ÓóÌÐò¿ª·¢|SQL Plus£©£¬Ò²¿ÉÒÔÔÚ¿ØÖÆ̨ͨ¹ýÃüÁîÐиøscottÕË»§½âËø¡£
    ÔÚµÚÒ»ÖÖÇé¿öÏ£¬ÒÔsystemÕË»§µÇ¼SQL Plus£¬È»ºóʹÓÃÃüÁî“alter user scott account unlock;”À´½âËø¡£½âÍêÒÔºó£¬Ê¹ÓÃÏÂÃæµÄÃüÁîÀ´²é¿´£º"select username,account_status from dba_users;"£¬¿ÉÒÔ¿´µ½scottÕË»§ÒѾ­½âËø£¬µ«ÊÇ״̬»¹ÊÇ“expired”(ÃÜÂë¹ýÆÚ)µÄÒâ˼¡£Ã»¹Øϵ£¬ÔÙÊäÈëÕâÑùµÄÃüÁî“alter user scott identified by tiger;”£¬¾Í¸øÆ丳ÁËÒ»¸öеĿÚÁî¡£Í˳ö£¬ÒÔscott/tigerµÇ¼¼´¿É¡£
    ÔÚµÚ¶þÖÖÇé¿öÏ£¬Ê¹ÓÃWindowsµÄ¿ØÖÆ̨£¨³ÌÐò|ÔËÐУ¬ÊäÈëcmd´ò¿ª£©¡£ÔÚÃüÁîÐÐÏ£¬ÊäÈësqlplus/nolog£¬»Ø³µ£¬³öÏÖSQL>ÃüÁîÌáʾ·û£¬È»ºó°´ÏÂÃæµÄ˳ÐòÊäÈëÃüÁ
     SQL>conn/as sysdba
     SQL>alter user scott account unlock;
     SQL>disconnect
     SQL>conn scott/tiger@oral;
      Õâʱ»áÌáʾÃÜÂëÒѾ­¹ýÆÚ£¬ÇëÊäÈëеĿÚÁȻºóÊäÈëÁ½´Îж¨ÒåµÄ¿ÚÁî·Ö±ð»Ø³µÈ·Èϼ´ÎªscottÕË»§¸³ÓèÁËеĿÚÁî¡£´ò¿ªSQL Plus£¬ÔÙÒÔscottÕË»§¾Í¿ÉÒԵǼÁË¡£
±¾ÎÄÀ´×ÔCSDN²©¿Í£¬×ªÔØÇë±êÃ÷³ö´¦£ºhttp://blog.csdn.net/xlw2003/archive/2010/01/09/5164575.aspx


Ïà¹ØÎĵµ£º

¹ØÓÚOracleµÄsession

¹ØÓÚOracleµÄsession
      1.ÈçºÎ²é¿´session¼¶µÄµÈ´ýʼþ£¿
µ±ÎÒÃǶÔÊý¾Ý¿âµÄÐÔÄܽøÐе÷Õûʱ£¬Ò»¸ö×îÖØÒªµÄ²Î¿¼Ö¸±ê¾ÍÊÇϵͳµÈ´ýʼþ¡£$system_event,v$session_event,v$session_waitÕâÈý¸öÊÓͼÀï¼Ç¼µÄ¾ÍÊÇϵͳ¼¶ºÍsession¼¶µÄµÈ´ýʼþ£¬Í¨¹ý²éѯÕâЩÊÓͼÄã¿ÉÒÔ·¢ÏÖÊý¾Ý¿âµÄһЩ²Ù×÷µ½µ×ÔÚµÈ ......

LinuxÏÂOracle×Ô¶¯±¸·Ý½Å±¾

LinuxÏÂOracle×Ô¶¯±¸·Ý½Å±¾
http://freeglad.javaeye.com/blog/586444
½Å±¾Îļþ£º
backup.sh
rq=`date '+%Y%m%d%H%M'`
su - oracle -c "exp zjhk/zjhk_123 owner=zjhk file=/home/oracle/zjhk_$rq.dmp"
cronÊÇÒ»¸ölinuxϵĶ¨Ê±Ö´Ðй¤¾ß£¬¿ÉÒÔÔÚÎÞÐèÈ˹¤¸ÉÔ¤µÄÇé¿öÏÂÔËÐÐ×÷Òµ¡£ÓÉÓÚCron ÊÇLinuxµÄÄÚÖ÷þÎñ£¬µ«Ëü²»×Ô¶ ......

ORACLEÔÚAIXϵݲװ¼°É¾³ý

´´½¨DATAVG
´´½¨LV,oracle,oradata,oratab
LV¹ÒÔÚµ½/oracle,/oradata,/oratab
´´½¨oinstall,oradba×é
´´½¨oracleÓû§,ÊôÓÚoinstall,oradba×é
su - oracle
passwd
ÊäÈëoracleÃÜÂë
chown -R oracle:oinstall /oracle
chmod -R 775 /oracle
ÓÃoracleµÇ½µ½Í¼ÐνçÃæ
vi .dtprofiel½«×îºóÒ»ÐеÄ×¢ÊÍÈ¥µô
vi .profile ......

OracleÖÐÐòÁÐsequence Ó÷¨

 1£© ½¨Á¢ÐòÁÐÃüÁî
    CREATE SEQUENCE [user.]sequence_name
    [increment by n]
    [start with n]
    [maxvalue n | nomaxvalue]
    [minvalue n | nominvalue];
    INCREMENT BY£º Ö¸¶¨ÐòÁкÅÖ®¼äµÄ¼ä¸ô ......

OracleÖÐÔ¼ÊøʹÓÃ

ÒÔϼ¸ÖÖÔ¼Êø ¡¢²¢ Ò»Ò»Áо٣º
1.Ö÷¼üÔ¼Êø£º
Òª¶ÔÒ»¸öÁмÓÖ÷¼üÔ¼ÊøµÄ»°£¬ÕâÁоͱØÐëÒªÂú×ãµÄÌõ¼þ¾ÍÊÇ·Ö¿Õ
ÒòΪÖ÷¼üÔ¼Êø£º¾ÍÊǶÔÒ»¸öÁнøÐÐÁËÔ¼Êø£¬Ô¼ÊøΪ£¨·Ç¿Õ¡¢²»Öظ´£©
ÒÔÏÂÊÇ´úÂë  Òª¶ÔÒ»¸öÁмÓÖ÷¼ü£¬ÁÐÃûΪid,±íÃûΪemp
¸ñʽΪ£º
alter table ±í¸ñÃû³Æ add constraint Ô¼ÊøÃû³Æ Ôö¼ÓµÄÔ¼ÊøÀàÐÍ £¨ÁÐÃû£©
À ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ