Oracleѧϰ±Ê¼Çժ¼3
¡¶1¡·DDLÓï¾ä(Êý¾Ý¶¨ÒåÓïÑÔ) Data Define Language
create
alter
drop
truncate ¿ªÍ·µÄÓï¾ä truncate table <±íÃû>
Ìصã:<1>½¨Á¢ºÍÐÞ¸ÄÊý¾Ý¶ÔÏó
<2>½¨Á¢ºÍÐÞ¸ÄÖ±½Ó´æÈë¿âÖÐ,Ö±½ÓÉúЧ
½¨Á¢±í
create table class(--°à¼¶±í
classid number(2) primary key,
cname varchar2(20) not null);
/*wdsadsadsad
asdsadsadsadsad
¶àÐÐ×¢ÊÍ
*/
create table student( --ѧÉú±í
xh number(4) primary key, --ѧºÅ
name varchar2(10) not null, --ÐÕÃû
sex char(2) check (sex in ('ÄÐ','Å®')),--ÐÔ±ð
birthday date,--ÉúÈÕ
sal number(7,2), --½±Ñ§½ð
classid number(2) references class(classid) --°à¼¶
);
Íâ¼üÒýÓõÄÁÐÒ»¶¨ÊÇÖ÷¼ü»òÓÐuniqueÔ¼ÊøµÄÁÐ
alter table student add (shengfenzheng number(18));
drop table student; ɾ³ý½á¹¹
delete from student; ֻɾ³ýÊý¾Ý£¬ËÙ¶ÈÂý£¬Êý¾Ý¿ÉÒÔ»Ö¸´
truncate table student; ɾ³ý¼Ç¼µÄ Ëٶȿì Êý¾Ý²»Äָܻ´
¡¶2¡· DMLÓï¾ä(Êý¾Ý²Ù×÷ÓïÑÔ) Data Manupilate Language
select
insert
delete
update
Ïà¹ØÎĵµ£º
תÔØ×Ô http://hi.baidu.com/libinichen/blog/item/9e13ac31175877a95edf0e0b.html
×¢£ºSID - Êý¾Ý¿â±êʶ
HOME_NAME - Oracle HomeÃû³Æ£¬ÈçOraHome92¡¢OraHome81
£¨1£©OracleServiceSID
Êý¾Ý¿â·þÎñ£¬Õâ¸ö·þÎñ»á×Ô¶¯µØÆô¶¯ºÍÍ£Ö¹Êý¾Ý¿â¡£Èç¹û°²×°ÁËÒ»¸öÊý¾Ý¿â£¬ËüµÄȱʡÆô¶¯ÀàÐÍΪ×Ô¶¯¡£·þÎñ½ø³ÌΪORACLE.EXE£¬²ÎÊýÎļþ ......
ÎÄÕÂÌáµ½£¬ÓÃCache hit ratioµÄ·½·¨À´¼ì²éORACLEÐÔÄÜÎÊÌâ¹ýʱÁË£¬ÀïÃæÓоä·Ç³£ÐÎÏóµÄ»°£ºÕâÎÞÒìÓÚÒ»¸öÒ½ÉúÖ»ÖªµÀ¸ù¾ÝѪѹµÄÀ´ÖÎÁƲ¡ÈË£¬¶ø²¡ÈËÓÉÓÚÌÛÍ´£¬Éñ¾ÐË·Ü£¬ÑªÑ¹ÔÚÒ»¸öºÏÀíµÄ·¶Î§ÄÚ£¬Ò½ÉúÈ´¸æËß»¼Õߣ¬Äãû²¡£¬µÈÄãѪѹµÍµÄʱºòÔÙÀ´¡£Í¬ÑùµÄ£¬ÎÒÃDz»Äܽö½ö¸ù¾ÝCache hit ratioÀ´ÅжÏORACLEÊ ......
Oracle
¹éµµÄ£Ê½Óë·Ç¹éµµÄ£Ê½ÉèÖÃ
Oracle
µÄÈÕÖ¾¹éµµÄ£Ê½¿ÉÒÔÓÐЧµÄ·ÀÖ¹
instance
ºÍ
disk
µÄ¹ÊÕÏ£¬ÔÚÊý¾Ý¿â¹ÊÕϻָ´Öв»¿É»òȱ£¬ÓÉÓÚ
oracle
³õʼ°²×°Ä£Ê½Îª·Ç¹éµµÄ£Ê½£¬Òò´ËÐèÒª½«ÆäÉèÖÃΪ¹éµµÄ£Ê½£¬ÏÂÃæ¾ÍÆä·½·¨ºÍ²½Öè×öһЩ×ܽᣬËäÈ»¼òµ¥£¬µ«ÕâÊǹÜÀí
oracle
Êý¾Ý¿â±Ø±¸Ö®¹¤£¬¹ÊÓÐÈçϳÂÊö¡£
Àý×Ó ......
listener.ora¡¢ tnsnames.oraºÍsqlnet.oraÕâ3¸öÎļþÊǹØϵoracleÍøÂçÅäÖõÄ3¸öÖ÷ÒªÎļþ£¬ÆäÖÐlistener.oraÊǺÍÊý¾Ý¿â·þÎñÆ÷¶Ë Ïà¹Ø£¬¶øtnsnames.oraºÍsqlnet.oraÕâ2¸öÎļþ²»½ö½ö¹Øϵµ½·þÎñÆ÷¶Ë£¬Ö÷ÒªµÄ»¹ÊǺͿͻ§¶Ë¹Øϵ½ôÃÜ¡£
¼ì²é¿Í»§¶ËoracleÍøÂçµÄʱºò¿ÉÒÔÏȼì²ésqlnet.oraÎļþ£º
# SQLNET.ORA Network Configuration ......