Oracleϵͳº¯ÊýÖ®ÀàµÄ
×Ö·ûº¯Êý
ÏÂÃæÊÇOracleÖ§³ÖµÄ×Ö·ûº¯ÊýºÍËüÃǵÄMicrosoft SQL ServerµÈ¼Ûº¯Êý¡£
º¯Êý Oracle Microsoft SQL¡¡Server
°Ñ×Ö·ûת»»ÎªASCII :ASCII ASCII
×Ö´®Á¬½Ó: CONCAT --------------(expression + expression)
°ÑASCIIת»»Îª×Ö·û CHR, CHAR
·µ»Ø×Ö·û´®ÖеĿªÊ¼×Ö·û£¨×óÆ𣩠INSTR ,---------------CHARINDEX
°Ñ×Ö·ûת»»ÎªÐ¡Ð´ LOWER ---------------------LOWER
°Ñ×Ö·ûת»»Îª´óд UPPER-------------------- UPPER
Ìî³ä×Ö·û´®µÄ×ó±ß LPAD --------------------N/A
Çå³ý¿ªÊ¼µÄ¿Õ°× LTRIM--------------------LTRIM
Çå³ýβ²¿µÄ¿Õ°× RTRIM --------------------RTRIM
×Ö·û´®ÖеÄÆðʼģʽ£¨pattern£© INSTR --------------------PATINDEX
¶à´ÎÖظ´×Ö·û´® RPAD --------------------REPLICATE
×Ö·û´®µÄÓïÒô±íʾ SOUNDEX --------------------SOUNDEX
Öظ´¿Õ¸ñµÄ×Ö´® RPAD --------------------SPACE
´ÓÊý×ÖÊý¾Ýת»»Îª×Ö·ûÊý¾Ý TO_CHAR --------------------STR
×Ó´® SUBSTR --------------------SUBSTRING
Ìæ»»×Ö·û REPLACE --------------------STUFF
½«×Ö´®ÖеÄÿ¸ö´ÊÊ××Öĸ´óд INITCAP --------------------N/A
·Òë×Ö·û´® TRANSLATE --------------------N/A
×Ö·û´®³¤¶È LENGTH-------------------- DATELENGTH or LEN
ÁбíÖÐ×î´óµÄ×Ö·û´® GREATEST-------------------- N/A
ÁбíÖÐ×îСµÄ×Ö·û´® LEAST --------------------N/A
Èç¹ûΪNULLÔòת»»×Ö´® NVL-------------------- ISNULL
ÈÕÆÚº¯Êý
ÏÂÃæÊÇOracleÖ§³ÖµÄÈÕÆÚº¯ÊýºÍËüÃǵÄMicrosoft SQL ServerµÈ¼Ûº¯Êý¡£
º¯Êý Oracle --------------------Microsoft SQL¡¡Server
ÈÕÆÚÏà¼Ó (date column +/- value) or ADD_MONTHS --------------------DATEADD
Á½¸öÈÕÆڵIJî (date column +/- value) or MONTHS_BETWEEN --------------------DATEDIFF
µ±Ç°ÈÕÆÚºÍʱ¼ä SYSDATE --------------------GETDATE()
Ò»¸öÔµÄ×îºóÒ»Ìì LAST_DAY --------------------N/A
ʱÇøת»» NEW_TIME --------------------N/A
ÈÕÆÚºóµÄµÚÒ»¸öÖÜÈÕ NEXT_DAY --------------------N/A
´ú±íÈÕÆÚµÄ×Ö·û´® TO_CHAR --------------------DATENAME
´ú±íÈÕÆÚµÄÕûÊý TO_NUMBER (TO_CHAR)) --------------------DATEPART
ÈÕÆÚÉáÈë ROUND --------------------CONVERT
ÈÕÆÚ½Ø¶Ï TRUNC --------------------CONVERT
×Ö·û´®×ª»»ÎªÈÕÆÚ TO_DATE ------------------
Ïà¹ØÎĵµ£º
ÔÚ´´½¨Êý¾Ý¿âʱ£¬SPFileÎļþÖв¿·Ö±ØÐ뿼ÂǵIJÎÊýÖµ£º
¡¡¡¡»ù±¾¹æÔò
¡¡¡¡a.ÔÚSPFileÎļþÖУ¬ËùÓвÎÊý¶¼ÊÇ¿ÉÑ¡µÄ£¬Ò²¾ÍÊÇ˵ֻÐèÒªÔÚ³õʼ»¯²ÎÊýÎļþÖÐÁгöÄÇЩÐèÒªÐ޸ĵIJÎÊý£¬ÆäËü±£³ÖĬÈÏÖµ¼´¿É¡£
¡¡¡¡b.SPFileÎļþÖÐÖ»ÄÜ°üº¬²ÎÊý¸³ÖµÓï¾äºÍ×¢ÊÍÓï¾ä¡£×¢ÊÍÓï¾äÒÔ“#”·ûºÏ¿ªÍ·£¬Êǵ¥ÐÐ×¢ÊÍ¡£
¡¡¡¡c.SPFileÎÄ ......
ORACLE¿ª·¢¹¤¾ß²ßÂÔ½éÉÜ
ºÜ¶àͬѧÎÊÆðÎÒÃÇOracle ERP¶þ´Î¿ª·¢ÒÔºó»áʹÓÃʲôÑùµÄÓïÑԺͿª·¢¹¤¾ß£¿Ê×ÏÈÎÒÃÇÀ´¿´¿´Oracle¿ª·¢¹¤¾ß²úÆ·µÄ²ßÂÔ
Oracle¿ª·¢¹¤¾ßµÄ²ßÂÔÊÇÌṩÄܹ»¿ª·¢»ùÓÚInternetÄ£ÐÍÏÂÆóÒµÓ¦ÓõÄÈí¼þ¿ª·¢¹¤¾ß£¬Òò´ËOracleÌṩÁËÁ½¸ö²¢ÐеĿª·¢¹¤¾ßÒÔ¼°ÐµĿìËÙWeb¿ª·¢¹¤¾ß£º
Ò»£¬»ùÓÚPL/SQLÓïÑÔ»·¾³µÄ´«Í³¿ ......
author£ºskate
time£º2010-05-25
Êý¾ÝÎļþ¹ÜÀí
1. datafile add
2. datafile delete
3. datafile resize
4. datafile rename
1. datafile add
Ìí¼Ó±í¿Õ¼ä£¬´Ó¶øÌí¼Ódatafile
SQL> create tablespace tbs_skate
2 datafile '+datagroup' size 20m;
Tablespace created
SQL> sel ......
ÓÃjavaµ÷ÓÃoracle´æ´¢¹ý³Ì×ܽá
1¡¢Ê²Ã´ÊÇ´æ´¢¹ý³Ì¡£´æ´¢¹ý³ÌÊÇÊý¾Ý¿â·þÎñÆ÷¶ËµÄÒ»¶Î³ÌÐò£¬ËüÓÐÁ½ÖÖÀàÐÍ¡£Ò»ÖÖÀàËÆÓÚSELECT²éѯ£¬ÓÃÓÚ¼ìË÷Êý¾Ý£¬¼ìË÷µ½µÄÊý¾ÝÄܹ»ÒÔÊý¾Ý¼¯µÄÐÎʽ·µ»Ø¸ø¿Í»§¡£ÁíÒ»ÖÖÀàËÆÓÚINSERT»òDELETE²éѯ£¬Ëü²»·µ»ØÊý¾Ý£¬Ö»ÊÇÖ´ÐÐÒ»¸ö¶¯×÷¡£ÓеķþÎñÆ÷ÔÊÐíͬһ¸ö´æ´¢¹ý³Ì¼È¿ÉÒÔ·µ»ØÊý¾ÝÓÖ¿ÉÒÔÖ´Ðж¯×÷¡£
......
ΪÕâЩÓû§ÃûÉèÖÃ×㹻ǿ׳µÄ¿ÚÁî»òËø¶¨ÎÞÓõÄĬÈÏÓû§¡£
SQLÓï¾äÐ޸ģº
Á¬½ÓÖÁOracleºóʹÓÃÈçÏÂÃüÁîÐ޸ĿÚÁî:
alter user system£¨Óû§Ãû£© identified by manager£¨ÃÜÂ룩;
Á¬½ÓÖÁOracleºóʹÓÃÈçÏÂÃüÁîËø¶¨Õ˺Å:
alter user test£¨Óû§Ãû£© account lock;
ͼÐδ°¿ÚÐ޸ģº
Oracle·þÎñopenviewÉϵÄÓû§£ºSCOT ......