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

oracle instr


¶ÔÓÚinstrº¯Êý£¬ÎÒÃǾ­³£ÕâÑùʹÓ㺴ÓÒ»¸ö×Ö·û´®ÖвéÕÒÖ¸¶¨×Ó´®µÄλÖá£Àý
È磺
SQL> select
instr('yuechaotianyuechao','ao') position from dual;
 
  POSITION
----------
        
6
 
´Ó×Ö·û´®'yuechaotianyuechao'µÄµÚÒ»¸öλÖÿªÊ¼£¬Ïòºó²éÕÒµÚÒ»¸ö³öÏÖ×Ó´®'ao'³öÏÖµÄλÖá£
 
Æäʵinstr¹²ÓÐ4¸ö²ÎÊý£¬¸ñʽΪ“instr(string, substring, position,
occurrence)”¡£¿ÉʵÏÖ×Ó´®µÄÈçÏÂËÑË÷£º
1.´ÓÖ¸¶¨Î»ÖÿªÊ¼ËÑË÷×Ó´®
2.Ö¸¶¨ËÑË÷µÚ¼¸´Î³öÏÖµÄ×Ó´®µÄλÖÃ
3.´ÓºóÏòÇ°ËÑË÷
 
--1.´ÓµÚ7¸ö×Ö·û¿ªÊ¼ËÑË÷
SQL> select
instr('yuechaotianyuechao','ao', 7) position from dual;
 
  POSITION
----------
       
17
 
--2.´ÓµÚ1¸ö×Ö·û¿ªÊ¼£¬ËÑË÷µÚ2´Î³öÏÖ×Ó´®µÄλÖÃ
SQL> select
instr('yuechaotianyuechao','ao', 1, 2) position from dual;
 
  POSITION
----------
       
17
--3.´Óµ¹ÊýµÚ1¸ö×Ö·û¿ªÊ¼£¬ËÑË÷µÚ1´Î³öÏÖ×Ó´®µÄλÖÃ
SQL> select
instr('yuechaotianyuechao','ao', -1, 1) position from dual;
 
  POSITION
----------
       
17
 
--3.´Óµ¹ÊýµÚ1¸ö×Ö·û¿ªÊ¼£¬ËÑË÷µÚ2´Î³öÏÖ×Ó´®µÄλÖÃ
SQL> select
instr('yuechaotianyuechao','ao', -1, 2) position from dual;
 
  POSITION
----------
        
6


Ïà¹ØÎĵµ£º

Oracle ASM Ïê½â


 
ASM:Automatic Storage Management, ÊÇOracle Ö÷ÍƵÄÒ»ÖÖÃæÏòOracleµÄ´æ´¢½â¾ö·½°¸£¬ ASM ºÍ RDBMS ·Ç³£ÏàËÆ£¬ASM Ò²ÊÇÓÉʵÀýºÍÎļþ×é³É£¬ Ò²¿ÉÒÔͨ¹ýsqlplus ¹¤¾ßÀ´Î¬»¤¡£ 
1. ASM ÊµÀýÓÉSGA ºÍºǫ́½ø³Ì×é³É¡£
1.1 SGA  ......

oracle Êý¾Ý¿âµÄµ¼Èë/µ¼³ö

OracleÊý¾Ýµ¼Èëµ¼³öimp/exp¾ÍÏ൱ÓÚoracleÊý¾Ý»¹Ô­Ó뱸·Ý¡£expÃüÁî¿ÉÒÔ°ÑÊý¾Ý´ÓÔ¶³ÌÊý¾Ý¿â·þÎñÆ÷µ¼³öµ½±¾µØµÄdmpÎļþ£¬impÃüÁî¿ÉÒÔ°ÑdmpÎļþ´Ó±¾µØµ¼Èëµ½Ô¶´¦µÄÊý¾Ý¿â·þÎñÆ÷ÖС£
Ö´Ðл·¾³£º¿ÉÒÔÔÚSQLPLUS.EXE»òÕßDOS£¨ÃüÁîÐУ©ÖÐÖ´ÐУ¬ DOSÖпÉÒÔÖ´ÐÐʱÓÉÓÚ ÔÚoracle 8i ÖР °²×°Ä¿Â¼ora81BIN±»ÉèÖÃΪȫ¾Ö·¾¶£¬ ¸ÃÄ¿ ......

oracle¼ÓÃܺ¯Êý

http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_crypto.htm
oracle×Ô´øÎĵµÐ´µÄ±È½ÏÇå³þ
24

DBMS_CRYPTO
DBMS_CRYPTO
provides an interface to encrypt and
decrypt stored data, and can be used in conjunction with PL/SQL
programs running network communications. It provides suppo ......

oracleÊý¾ÝÎļþ»Ö¸´

1.    ×¼±¸¹¤×÷
°Ñ¾ÉµÄORACLEËùÓÐÎļþ¶¼COPY±¸·ÝÏÂÀ´,ɾ³ý¾ÉĿ¼,ÔÙÖØа²×°ORACLE,Ŀ¼ºÍ¾ÉĿ¼һÑù(Èç¹û²»Ò»Ñù,ÒªÐ޸ĵĵط½±È½Ï¶à).Ö»°²×°ORACLE,²»´´½¨Êý¾Ý¿â¡£Òª»Ö¸´µÄʵÀýΪORCL ¡£
2.ÓÃÃüÁʽ£¬Í¨¹ýÒª¾ÉµÄORAÎļþ´´½¨ÐµÄʵÀýORCL
a)     oradim -new -sid ORCL£¨´´½¨ÊµÀý£ ......

ÔÚORACLEµÃµ½Ä³¸ö±íµÄÖ÷¼ü×Ö¶ÎÃû

select column_name from all_cons_columns cc
where owner='SSH'  --SSHΪÓû§Ãû³Æ£¬Òª×¢Òâ´óСд
and table_name='SYS_DEPT' --SYS_DEPTΪ±íÃû£¬×¢Òâ´óСд
and exists (select 'x' from all_constraints c
where c.owner = cc.owner
and c.constraint_name = cc.constraint_name
and c.constraint_type ='P' ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ