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

Oracle 10g ÒªµãÕûÀí Ö® Ìåϵ½á¹¹ºÍÊý¾Ý×Öµä

1Á¬½ÓÊý¾Ý¿âʵÀý
£¨1£©Óû§½ø³Ì£ºÈí¼þ£¬SQL*Plus£¬Ê¹ÓÃOracle Net Services£¨ÍøÂç·þÎñ£©ÓëÊý¾Ý¿âͨѶ
£¨2£©Oracle¼àÌýÆ÷£ºlistener.ora£¬¶¨ÒåÁËÊý¾Ý¿âʵÀýÃû£¬Â·¾¶£¬¿ÉÒÔʹÓõÄЭÒ飬¶Ë¿Ú
£¨3£©OracleÍøÂç¿Í»§£ºtnsnames.ora£¬¶¨ÒåÁËͨѶЭÒ飬¶Ë¿Ú£¬·þÎñÆ÷µØÖ·
 
2 ·þÎñÆ÷½ø³Ì
  ¸ºÔðÓû§½ø³ÌºÍOracleʵÀýÖ®¼äµÄµ÷¶ÈÇëÇó¡£ÓÐ2ÖÖÌåϵ½á¹¹£¬¢ÙרÓ÷þÎñÆ÷ģʽ¢Ú¹²Ïí·þÎñÆ÷ģʽ¡£
 
3 Îļþϵͳ
£¨1£©²ÎÊýÎļþ£¨parameter files£©
    ÓÃÓÚÆô¶¯ÊµÀýʱÅäÖÃÊý¾Ý¿â¡£Pfiles ÓÃÓÚOracle 8֮ǰ£¬ÃüÃûΪ£ºinit<ʵÀýÃû>.ora
    Îı¾Îļþ£¬¾²Ì¬³õʼ»¯Îļþ£¬Êý¾Ý¿â¹Ø±ÕºóÐÞ¸ÄÐÅÏ¢»á¶ªÊ§¡£
 
    ³õʼ»¯Îļþ£¨Spfiles£©
    ÓÃÓÚ´úÌ澲̬³õʼ»¯Îļþ£¬ÓÃÓÚOracle 9Ö®ºó£¬ÃüÃûΪspfile<ʵÀýÃû>.ora
    ¶þ½øÖƸñʽ£¬ÓÐ3¸ö²ÎÊý£ºspfiles£¨²»»á¶ªÊ§£©memory£¨ÖØÆô¶ªÊ§£©both£¨²»»á¶ªÊ§£©
    ÓÃalter system Ð޸ġ£
 
£¨2£©¿ØÖÆÎļþ£¨control files£©
    ´æÓÐOracleʵÀýÐÅÏ¢£¬Êý¾ÝÎļþºÍÈÕÖ¾Îļþ½á¹¹Î»ÖÃÐÅÏ¢µÄ¶þ½øÖÆÎļþ¡£
 
£¨3£©Êý¾ÝÎļþ£¨data files£©
     ÓÃÓÚ±£´æÓû§Ó¦ÓÃÊý¾ÝºÍOracleϵͳÄÚ²¿Êý¾ÝµÄÎļþ¡£Ã¿¸ö±í¿Õ¼äÓÐÒ»¸ö»ò¶à¸öÊý¾ÝÎļþ¡£
     Êý¾ÝÎļþ´æ·Å¢ÙϵͳÊý¾Ý¢ÚÓû§Êý¾Ý¡£
     £¨ÔÚDBAÕË»§Ï£¬²é¿´±ídba_data_files¿É²é¿´µ±Ç°Êý¾Ý¿âÏÂËùÓбí¿Õ¼äºÍ¶ÔÓÚµÄÊý¾ÝÎļþ£©
 
£¨4£©ÓÀ¾Ã±í¿Õ¼ä
     ¢ÙSYSTEM±í¿Õ¼ä£º´æ·ÅOracleϵͳÄÚ²¿±íºÍÊý¾Ý×ÖµäµÄÊý¾Ý£¬±í¿Õ¼äÃû³Æ¡¢¿ØÖÆÎļþ¡¢Êý¾Ý×ֵ䡢Êý¾ÝÎļþµÈ¹ÜÀíÐÅÏ¢¡£·½°¸¶ÔÏóµÄ¶¨ÒåÐÅÏ¢¡£ËùÓÐPL/SQL³ÌÐòµÄÔ´´úÂëºÍ½âÎö´úÂë
     ¢ÚSYSAUX±í¿Õ¼ä£º´æ·ÅOracleϵͳÄÚ²¿µÄ³£ÓÃÑùÀýÓû§µÄ¶ÔÏó
     ¢ÛUNDO±í¿Õ¼ä£ºµ±ÎÒÃǶÔÊý¾Ý¿â½øÐÐÐÞ¸Äʱ£¬Oracle»á×Ô¶¯Ê¹ÓÃÕâ¸ö±í¿Õ¼ä´æ·ÅÐÞ¸ÄÆ÷µÄÊý¾Ý£¬µ±Ëù×÷ÐÞ¸ÄÍê³É²¢Ìá½»ºó£¬¾Í»áÊÍ·ÅÕâЩ¼Ç¼Êý¾Ý¡£
     ¢ÜUSERS±í¿Õ¼ä£ºÓû§Ê¹Óõıí¿Õ¼ä¡£
 
£¨5£©¶Î
     ±í¡¢Ë÷Òý´æÔÚÒ»¸ö±í¿Õ¼äÉÏ£¬¶øÕâЩ¶¼ÊÇÕ¼ÓÿռäµÄ¶ÔÏó£¬Oracle°ÑÕ¼ÓÿռäµÄ¶ÔÏóͳһ³ÆΪ¶Î¡£
     ¶ÎÊÇÓɶà¸öÇø¼ä¹¹³É


Ïà¹ØÎĵµ£º

Oracle¿Í»§¶ËNLS_LANGÉèÖÃ


1. NLS_LANG
²ÎÊý×é³É
NLS_LANG
²ÎÊýÓÉÒÔϲ¿·Ö×é³É:
NLS_LANG
=<Language>_<Territory>.<Clients
Characterset>
NLS_LANG
¸÷²¿·Öº¬ÒåÈçÏÂ:
LANGUAGEÖ¸¶¨:
-OracleÏûϢʹÓõÄÓïÑÔ
-ÈÕÆÚÖÐÔ·ݺÍÈÕÏÔʾ
TERRITORYÖ¸¶¨
-»õ±ÒºÍÊý×Ö¸ñʽ
-µØÇøºÍ¼ÆËãÐÇÆÚ¼°ÈÕÆÚµÄÏ°¹ß
CHARACTERSET:
-¿Ø ......

Oracle Óû§¼°½ÇÉ« ½éÉÜ

Ò». Óû§¹ÜÀí
1.1 ½¨Á¢Óû§£¨Êý¾Ý¿âÑéÖ¤£©
     CREATE USER   DAVE IDENTIFIED BY   pwd
     DEFAULT TABLESPACE users
     TEMPORARY   TABLESPACE temp
     QUOTA 5m ON users;
1.2 ÐÞ¸ÄÓû§ ......

oracleµÄһЩ»ù±¾Óï·¨ºÍһЩÓÅ»¯ÎÊÌâ

²éѯ£º
select distinct(empno) , name , age  from t_person t where  (t.age between 21 and 25 or name like '%Íõ%') and
  empno like '32%';
¸üУº
 update t_person set name = 'ww' where empno = '321654';
 update t_person set(empno,name,age) = (select empno,name,age f ......

oracle to_dateÏÝÚå

ORACLE to_date ÏÝÚå
oracle Öв»´øʱ·ÖÃëµÄ×Ö·û´® to_date ת»»Ê±¼äºóÓë´øʱ·ÖÃëµÄdateÐÍ×Ö¶Î×ö´øµÈÖµµÄ±È½Ï (>=,<=,=)ʱ£¬ÓÉÓÚ×Ö·û´®²»´øʱ·ÖÃ룬ËùÒÔת»»ºóʱ·ÖÃëĬÈÏΪ00:00:00,oracleÖбȽÏdateÊÇÒÔÒ»¸öʱ¼äµãÀ´±È½ÏµÄ£¬¾«È·µ½ÃëÉõÖÁºÁÃë΢ÃëÄÉÃë,ËùÒÔdate×ֶεÄʱ·ÖÃ벻Ϊ00:00:00µÄ¾ÍÓë²»´øʱ·ÖÃë×Ö·û´®×ª»»º ......

OracleÐÞ¸ÄSYSÃÜÂë

OracleÌṩÁ½ÖÖÑéÖ¤·½Ê½£¬Ò»ÖÖÊÇOSÑéÖ¤£¬ÁíÒ»ÖÖÃÜÂëÎļþÑéÖ¤·½Ê½£¬Èç¹ûÊǵÚÒ»ÖÖ·½Ê½ÓÃÒÔÏ·½·¨ÐÞ¸ÄÃÜÂ룺
¡¡¡¡sqlplus / as sysdba
¡¡¡¡alter user sys identified by ÐÂÃÜÂë;
¡¡¡¡alter user system identified by ÐÂÃÜÂë;
¡¡¡¡Èç¹ûÊǵڶþÖÖ·½·¨ÓÃÒÔÏ·½·¨ÐÞ¸ÄÃÜÂ룺
¡¡¡¡orapwd file=pwdxxx.ora password=ÄãÉ趨µÄÐ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ