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

Oracleµ÷ÕûÓëSQL Óï¾äµÄµ÷ÓŵĹØϵ

Oracleµ÷ÕûÓëSQL Óï¾äµÄµ÷ÓŵĹØϵ
ÔÚOracleµ÷ÕûÖÐÎÒÃÇ»¹»áÉæ¼°µ½SQL Óï¾äµÄµ÷ÓÅ£¬ÎÒÃǽÓÏÂÀ´¾ÍÀ´¿´ÒÔÏ嵀 SQL Óï¾äµÄµ÷ÓÅ¡£ÎÒÃǶ¼ÖªµÀ Oracle ÖÐµÄ SQL µ÷ÓÅÊÇÒ»¸öÏ൱¸´ÔÓµÄÖ÷Ì⣬ÉõÖÁÊÇÐèÒªÕû±¾ÊéÀ´½éÉÜ Oracle SQL µ÷ÓŵÄϸ΢²î±ð¡£
²»¹ýÓÐһЩ»ù±¾µÄ¹æÔòÊÇÿ¸ö Oracle DBA ¶¼ÐèÒª¸ú´ÓµÄ£¬ÕâЩ¹æÔò¿ÉÒÔ¸ÄÉÆËûÃÇϵͳµÄÐÔÄÜ¡£ SQL µ÷ÓŵÄÄ¿±êÊǼòµ¥µÄ£º
Ïû³ý²»±ØÒªµÄ´ó±íÈ«±íËÑË÷£º²»±ØÒªµÄÈ«±íËÑË÷µ¼Ö´óÁ¿²»±ØÒªµÄ I/O £¬´Ó¶øÍÏÂýÕû¸öÊý¾Ý¿âµÄÐÔÄÜ¡£µ÷ÓÅר¼ÒÊ×ÏÈ»á¸ù¾Ý²éѯ·µ»ØµÄÐÐÊýÄ¿À´ÆÀ¼Û SQL ¡£ÔÚÒ»¸öÓÐÐòµÄ±íÖУ¬Èç¹û²éѯ·µ»ØÉÙÓÚ 40% µÄÐУ¬»òÕßÔÚÒ»¸öÎÞÐòµÄ±íÖУ¬·µ»ØÉÙÓÚ 7% µÄÐУ¬ÄÇôÕâ¸ö²éѯ¶¼¿ÉÒÔOracleµ÷ÕûΪʹÓÃÒ»¸öË÷ÒýÀ´´úÌæÈ«±íËÑË÷¡£
¶ÔÓÚ²»±ØÒªµÄÈ«±íËÑË÷À´Ëµ£¬×î³£¼ûµÄµ÷ÓÅ·½·¨ÊÇÔö¼ÓË÷Òý¡£¿ÉÒÔÔÚ±íÖмÓÈë±ê×¼µÄ B Ê÷Ë÷Òý£¬Ò²¿ÉÒÔ¼ÓÈë bitmap ºÍ»ùÓÚº¯ÊýµÄË÷Òý¡£Òª¾ö¶¨ÊÇ·ñÏû³ýÒ»¸öÈ«±íËÑË÷£¬Äã¿ÉÒÔ×Ðϸ¼ì²éË÷ÒýËÑË÷µÄ I/O ¿ªÏúºÍÈ«±íËÑË÷µÄ¿ªÏú£¬ËüÃǵĿªÏúºÍÊý¾Ý¿éµÄ¶ÁÈ¡ºÍ¿ÉÄܵIJ¢ÐÐÖ´ÐÐÓйأ¬²¢½«Á½Õß×÷¶Ô±È¡£
ÔÚһЩÇé¿öÏ£¬Ò»Ð©²»±ØÒªµÄÈ«±íËÑË÷µÄÏû³ý¿ÉÒÔͨ¹ýÇ¿ÖÆʹÓÃÒ»¸ö index À´´ïµ½£¬Ö»ÐèÒªÔÚ SQL Óï¾äÖмÓÈëÒ»¸öË÷ÒýµÄÌáʾ¾Í¿ÉÒÔÁË¡£
ÔÚÈ«±íËÑË÷ÊÇÒ»¸ö×î¿ìµÄ·ÃÎÊ·½·¨Ê±£¬½«Ð¡±íµÄÈ«±íËÑË÷·Åµ½»º´æÖУ¬µ÷ÓÅר¼ÒÓ¦¸ÃÈ·±£ÓÐÒ»¸öרÃŵÄÊý¾Ý»º³åÓÃ×÷Ðлº³å¡£ÔÚ Oracle7 ÖУ¬Äã¿ÉÒÔʹÓà alter table xxx cache Óï¾ä£¬ÔÚ Oracle8 »òÒÔÉÏ£¬Ð¡±í¿ÉÒÔ±»Ç¿ÖÆΪ·Åµ½ KEEP ³ØÖлº³å¡£
È·±£×îÓŵÄË÷ÒýʹÓà £º¶ÔÓÚ¸ÄÉƲéѯµÄËٶȣ¬ÕâÊÇÌرðÖØÒªµÄ¡£ÓÐʱ Oracle ¿ÉÒÔÑ¡Ôñ¶à¸öË÷ÒýÀ´½øÐвéѯ£¬µ÷ÓÅר¼Ò±ØÐë¼ì²éÿ¸öË÷Òý²¢ÇÒÈ·±£ Oracle ʹÓÃÕýÈ·µÄË÷Òý¡£Ëü»¹°üÀ¨ bitmap ºÍ»ùÓÚº¯ÊýµÄË÷ÒýµÄʹÓá£
È·±£×îÓÅµÄ JOIN ²Ù×÷£ºÓÐЩ²éѯʹÓà NESTED LOOP join ¿ìһЩ£¬ÓÐЩÔòÊÇ HASH join ¿ìһЩ£¬ÁíÍâһЩÔòÊÇ sort-merge join ¸ü¿ì¡£
ÕâЩ¹æÔò¿´À´¼òµ¥£¬²»¹ýËüÃÇÕ¼ SQL µ÷ÓÅÈÎÎñµÄ 90% £¬²¢ÇÒËüÃÇÒ²ÎÞÐèÍêÈ«¶®µÃ Oracle SQL µÄÄÚ²¿ÔË×÷¡£ÒÔÏÂÎÒÃÇÀ´¼òµ¥¸ÅÀÀÒÔÏ Oracle SQL µÄÓÅ»¯¡£
ÎÒÃÇÊ×ÏȼòÒª²é¿´ Oracle µÄÅÅÐò£¬²¢ÇÒ¿´Ò»¿´ÅÅÐò²Ù×÷ÊÇÈçºÎÓ°ÏìÐÔÄܵġ£
µ÷Õû Oracle µÄÅÅÐò²Ù×÷
ÅÅÐòÊÇ SQL Óï·¨ÖÐÒ»¸öСµÄ·½Ã棬µ«ºÜÖØÒª£¬ÔÚ Oracle µ÷ÕûÖУ¬Ëü³£³£±»ºöÂÔ¡£µ±Ê¹Óà create index ¡¢ ORDER BY »òÕß GROUP BY µÄÓï¾äʱ£¬ Oracle Êý¾Ý¿â½«»á×Ô¶¯Ö´ÐÐÅÅÐòµÄ²Ù×÷¡£Í¨³££¬ÔÚÒÔϵÄÇé¿öÏ Oracle »á½øÐÐÅÅÐòµÄ²Ù×÷£º
ʹÓà Or


Ïà¹ØÎĵµ£º

ÔÚ Windows ÉÏ°²×° Oracle Êý¾Ý¿â 11g

 
ÔÚ Windows ÉÏ°²×° Oracle Êý¾Ý¿â 11g
°²×°Oracle Èí¼þ£¬±ØÐëʹÓà Oracle Universal Installer¡£
1.ÔÚÕâÒ»°²×°ÖУ¬ÄúÐèҪʹÓà DVD »òÏÂÔØ DVD °æ±¾¡£ÔÚ±¾½Ì³ÌÖУ¬½«´ÓÒÑÏÂÔصİ汾½øÐа²×°¡£ÔÚ½âѹËõ DVD ÎļþµÄĿ¼ÖУ¬´ò¿ª Windows ×ÊÔ´ä¯ÀÀÆ÷²¢Ë«»÷ \db\Disk1 Ŀ¼µÄ setup.exe¡£
2.°²×°µÄ²úƷΪ Oracle Da ......

Oracle11gR2 for Linux ¾²Ä¬°²×°±Ê¼Ç


±¾ÎĵµÊÇOracle
Database 11.2.0.1 for RHEL5 Server(°üÀ¨x86ºÍx86_64ƽ̨)µÄ¾²Ä¬°²×°Ö¸ÄÏ. ËùÓвÙ×÷ÎÞÐèʹÓÃͼÐνçÃæ. ¾²Ä¬°²×°ÄܼõÉÙ°²×°³ö´íµÄ¿ÉÄÜÐÔ, Ò²ÄÜ´ó´ó¼Ó¿ì°²×°ËÙ¶È.
# ºó¸úÃüÁî±íʾÒÔ²Ù×÷ϵͳÏÂrootÓû§²Ù×÷;  ºó¸úÃüÁî±íʾÒÔ²Ù×÷ϵͳÏÂoracleÓû§²Ù×÷;
1.1 ÉÏ´«Èí¼þ
¼ÙÈç·ÅÔÚ/wangnc/oracle/11g/Ä ......

C# ±àдSQL SERVER 2005 µÄ´æ´¢¹ý³Ì


ÒÔÏÂÊÇÒ»¸ö²éѯIPµØÖ·¹éÊôµØµÄCLR´æ´¢¹ý³Ì£¬Èý²½£º
1¡¢ÓÃC#À´×öDLL£¬´úÂëÈçÏ£º
//====================================================================
using System;
using System.Collections.Generic;
using System.Text;
using System.Data.SqlTypes;
using System.Data.SqlClient;
using Microsoft.Sq ......

(ת)SQL Server¶àÌõ¼þ²éѯ¾­µäÀý×Ó

ÕâÊÇÒ»¸ö²»´íµÄÀý×Ó£¬ÌØתÔØ·ÖÏíÖ®¡£
 
------------±íÖеÄ×Ö¶Î---------------
CREATE TABLE [dbo].[stuInfo] (
[FNumber] [int] IDENTITY(1,1) NOT NULL ,
[FName] [nvarchar] (30) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[FNameen] [varchar] (35) COLLATE Chinese_PRC_CI_AS ,
[FSex] [char] (1) COLLATE C ......

SQLÊý¾Ý¿â¼ÓÃÜ·½·¨

תÌù×Ôteched½²Ê¦:  Å£¿É 
»ù±¾¸ÅÄî:
µÚÒ»²ã ·þÎñÖ÷ÃÜÔ¿
±¸·Ý·þÎñÖ÷ÃÜÔ¿
backup service master key to file='c:\smk.bak'
encryption by password='P@ssw0rd'
 
restore service master key from file='c:\smk.bak'
decryption by password='P@ssw0rd'
 
µÚ¶þ²ã Êý¾Ý¿âÖ÷ÃÜÔ¿
1)±ØÐëÏÈÔÚ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ