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

Oracleѧϰ±Ê¼Çժ¼2

    µ¥Ðк¯Êý   ·µ»ØÖµÖ»ÓÐÒ»¸ö
      
   ·Ö×麯Êý   ·µ»ØÖµÊǶàÌõ¼Ç¼
      group by
      sum
      avg            
      
µ¥Ðк¯Êý
  ×Ö·ûº¯Êý
    concat Á¬½Ó  ||
   <1>ÏÔʾdnameºÍlocÖмäÓÃ-·Ö¸ô
     select deptno,dname||'----'||loc from dept;
     
     dualÑÆÔª±í   ûÓбíÐèÒª²éѯµÄʱºò ¿ÉÒÔÓÃËü
         select 'Hello World' from dual;
         select 1+1 from dual;
         ²éѯϵͳʱ¼ä
          select sysdate from dual;
   <2>  initcap Ê××Öĸ´óд
       select ename,initcap(ename) from emp;
   <3>  lower   ת»»ÎªÐ¡Ð´×Ö·û
        select ename,lower(ename) from emp;
   <4> upper ת»»Îª´óд
        update dept set loc=lower(loc);
        update dept set loc=upper(loc);
   <5> LPAD ×óÌî³ä
        select deptno,lpad(dname,10,' '),loc from dept;
   <6> RPAD ÓÒÌî³ä
   <7> LTRIM È¥³ý×ó±ßµÄ¿Õ¸ñ
       RTRIM È¥³ýÓұߵĿոñ
       ALLTRIM  È¥³ýÁ½±ßµÄ¿Õ¸ñ
   <8>replace    Ìæ»»
      translate  ת»»
       select ename,replace(ename,'S','s') from emp;
           ÓÃ'


Ïà¹ØÎĵµ£º

oracleÓï¾äËæд

 
ΪÁËÈ·¶¨±í¿Õ¼äÖаüº¬ÄÇЩÄÚÈÝ£¬ÔËÐУº
select owner,segment_name,segment_type
from dba_segments
where tablespace_name='<name of tablespace>'
 
 
²éѯ±í¿Õ¼ä°üº¬¶àÉÙÊý¾ÝÎļþ¡£
select file_name, tablespace_name
from dba_data_files
where tablespace_name ='<name of t ......

OracleÊý¾Ý¿âÖØÐÂÆô¶¯²½Öè

 ±¾ÎÄÏêϸµÄ½éÉÜÁËOracleÊý¾Ý¿â½ÏºÃµÄÊ®ÖÖÖØÐÂÆô¶¯²½Öè¡£
¡¡¡¡1. Í£Ó¦ÓòãµÄ¸÷ÖÖ³ÌÐò¡£
¡¡¡¡2. Í£oralceµÄ¼àÌý½ø³Ì:
¡¡¡¡$lsnrctl stop
¡¡¡¡3. ÔÚ¶ÀÕ¼µÄϵͳÓû§Ï£¬±¸·Ý¿ØÖÆÎļþ:
¡¡¡¡SQL>alter database backup controlfile to trace;
¡¡¡¡4. ÔÚ¶ÀÕ¼µÄϵͳÓû§Ï£¬ÊÖ¹¤Çл»ÖØ×÷ÈÕÖ¾Îļþ£¬È·±£µ±Ç°ÒÑÐ޸Ĺýµ ......

Íêȫɾ³ýOracleÊý¾Ý¿â

  ºÜ¶àÅóÓÑÖ»ÓÃÁËOracleµÄɾ³ý£¬µ«ºÜ¶àÇé¿öÏ£¬Ëû»á·¢ÏÖÖØа²×°Ê±£¬µãÁËÏÂÒ»²½°²×°½çÃæ¾ÍÏûʧÁË£¬ÍùÍùÎÞÄÎÏÂÖ»ºÃÖØװϵͳ£¬ÆäʵֻÊÇÄãÊý¾Ý¿âûɾ¸É¾»£¬É¾¸É¾»¾Í²»»á³öÏÖÕâÖÖÇé¿öÁË¡£
¡¡¡¡ÊµÏÖ·½·¨£º
¡¡¡¡1¡¢¿ªÊ¼->ÉèÖÃ->¿ØÖÆÃæ°å->¹ÜÀí¹¤¾ß->·þÎñÍ£Ö¹ËùÓÐOracle·þÎñ¡£
¡¡¡¡2¡¢¿ªÊ¼->³ÌÐò->Oracl ......

OracleÊý¾Ý¿âµÄ±¸·Ý¼°»Ö¸´²ßÂÔÑо¿

1¡¢¶à¹¤Áª»úÖØ×÷ÈÕÖ¾Îļþ
¡¡¡¡Ã¿¸öÊý¾Ý¿âʵÀý¶¼ÓÐÆä×Ô¼ºµÄÁª»úÖØ×÷ÈÕÖ¾×飬ÔÚ²Ù×÷Êý¾Ý¿âʱ£¬OracleÊ×ÏȽ«Êý¾Ý¿âµÄÈ«²¿¸Ä±ä±£´æÔÚÖØ×÷ÈÕÖ¾»º³åÇøÖУ¬ËæºóÈÕÖ¾¼Ç¼Æ÷½ø³Ì£¨LGWR£©½«Êý¾Ý´Óϵͳ¹²ÓÃÇøSGA£¨System Global Area£©µÄÖØ×÷ÈÕÖ¾»º³åÇøдÈëÁª»úÖØ×÷ÈÕÖ¾Îļþ£¬ÔÚ´ÅÅ̱ÀÀ£»òʵÀýʧ°Üʱ£¬¿ÉÒÔͨ¹ýÓëÖ®Ïà¹ØµÄÁª»úÖØ×÷ÈÕÖ¾ ......

oracle ¹éµµÈÕÖ¾

 C:\Documents and Settings\Administrator>sqlplus/nolog
SQL> CONNECT/AS SYSDBA
SQL> SHUTDOWN NORMAL/IMMEDIATE
SQL> STARTUP MOUNT
SQL> ARCHIVE  LOG  LIST                    
SQL> ALTER DATA ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ