ÉÐѧÌÃOracle¾Ñé
×¢: ÕâÊǸöÈË¿´OracleÊÓƵʱдϵıʼÇ, ¶àÓдíÎó, Íû¸÷λÇÐÎðÁßϧ´Í½Ì.
1. Dos
ϵǽ³¬¼¶¹ÜÀíÔ±
£º
sqlplus sys/
ÃÜÂë
as sysdba
2.
¸ü¸Ä¹ÜÀíÔ±
£º
alter user scott account unlock;
3.
Êý¾ÝµÄ±¸·Ý
.
A
µ¼³ö
:
Cmd
ÏÂ
:
exp (
µ÷ÓÃ
Oracle
µÄ³ÌÐò
)
µ¼³ö
B create user
create user JJ (
̞
) identified by Jack (
ÃÜÂë
) default tablespace users quota
10M on users
ÊÚȨ
:
grant create session, create table, create view to JJ
3.
Æð±ðÃû£º
select ename, sal*12
anuual_sal from emp;
--
Ϊ
sal*12
Æð±ðÃû£º
anuual_sal
4.
Èκκ¬ÓпÕÖµ
µÄ±í´ïʽ½á¹û¶¼Îª¿Õ
Öµ£»
¶ÔÓÚ¿ÕÖµµÄ´¦Àí
£º
select ename,
sal ,comm. from emp where comm. is null;(
Ñ¡¿ÕÖµ
)
select ename, sal ,comm. from emp where comm. is not
null;(
Ñ¡·Ç¿ÕÖµ
)
ÈÿÕÖµÔÚÔËËãÖеÈÓÚ
0
£º
select
ename, sal*12 + nvl(comm., 0) from emp;
--
Èô
comm
Ϊ¿ÕÖµ£¬Ôò
comm=0
5.
ת»»Îª×Ö·û´®
:elect ename||sal from emp;
--
½«
ename
Óë
sal
ת»»Îª×Ö·û´®¶øÆä²¢ÔÚÒ»Æ𣨽á¹ûÈ磺
SMITH800
£©
6.
µ¥ÒýºÅ
±íʾ×Ö·û´®
'adkfjkda',
Á¬ÐøµÄÁ½¸öµ¥ÒýºÅÄܱíʾΪһ¸ö×Ö·ûµ¥ÒýºÅ£»Èç
('abc''def'
Æä½á¹ûΪ£º
abc'def
7.
È¥µôÖظ´Öµ
£º
select
distinct deptno from emp;
È¥µã×éºÏºóÖظ´Öµ£º
select distinct deptno, job from
emp;
8. ”
²»µÈÓÚ
”
²»ÊÇ
”
£¡
=&rdq
Ïà¹ØÎĵµ£º
ÒÔÏÂÒÔ½ØͼÐÎʽ¼òÊö¹ØÓÚÔÚIBMСÐÍ»úÉÏ°²×°µ¥»ú°æOracleÊý¾Ý¿âµÄ¹ý³Ì¡£ÒÔ¹©´ó¼Ò²Î¿¼£¬ÒÔ±ã¶ÔÓÚIBMСÐÍ»ú&AIX&Oracle½øÐгõ²½µÄÁ˽⡣ Machine£ºIBM POWER 520 OS&Version£ºAIX_5300-07 Oracle Version:10.2.0.1 ÒÔÏÂÊÇÏêϸ½Øͼ£º 1_OS_Check&Filesets_Check 2_ÀûÓÃsmitty installpÃüÁî½øÈëÈí¼þ£¨°ü£ ......
DSIÊÇData Server
InternalsµÄËõд,ÊÇOracle¹«Ë¾ÄÚ²¿ÓÃÀ´ÅàѵOracleÊۺ󹤳ÌʦʹÓõĽ̲Ä.ÓÉÓÚijÖÖÔÒòÁ÷Â佺þ,
Êܵ½ÖÚ¶àOracle°®ºÃÕßµÄ×·Åõ, ²»¹ýÒªÊǹ¦Á¦²»µ½, ÔĶÁ·´¶øÎÞÒæ. DSI3ÊÇOracle 8ϵÁеÄ, DSI4ÊÇOracle 9ϵÁеÄ.
ÕâÑùµÄÎĵµÉÏͨ³£¶¼Ó¡×Å:Oracle Confidential:For internal Use Only.
DSI301 Advanced S ......
http://www.puschitz.com/InstallingOracle10g.shtml
ÎÒÓõÄÊÇCentos5.4
DVD¹âÅÌ°²×°µÄlinux²Ù×÷ϵͳ£¬°²×°linuxµÄʱºòÑ¡ÉÏ¿ª·¢¹¤¾ß£¬Xmanager,ÓëÊý¾Ý¿âÏà¹ØµÄ°ü¡£
²Ù×÷ϵͳ°²×°Íê³ÉÖ®ºóÐèÒª½øÐÐһϵÁеÄÅäÖòÅÄÜ°²×°oracle10g£¬ÏÂÃæ°Ñ
Ö÷Òª²½Öè¼Ç¼ÏÂÀ´¡£
1.°²×°Íê²Ù×÷ϵͳ֮ºó»¹ÊÇÓÐЩ°üûÓа²×°£¬È»¶ø°²×°oracle10 ......
Oracle ×Ö¶ÎÀàÐÍ
×Ö¶ÎÀàÐÍ
ÃèÊö
×ֶγ¤¶È¼°Æäȱʡֵ
CHAR (size )
ÓÃÓÚ±£´æ¶¨³¤(size)×Ö½ÚµÄ×Ö·û´®Êý¾Ý¡£
ÿÐж¨³¤£¨²»×㲿·Ö²¹Îª¿Õ¸ñ£©£»×î´ó³¤¶ÈΪÿÐÐ2000×Ö½Ú£¬È±Ê¡ÖµÎªÃ¿ÐÐ1×Ö½Ú¡£ÉèÖó¤¶È(size)Ç°Ð迼ÂÇ×Ö·û¼¯Îªµ¥×Ö½Ú»ò¶à×Ö½Ú¡£
VARCHAR2 (size )
ÓÃÓÚ±£´æ±ä³¤µÄ×Ö·û´®Êý¾Ý¡£ÆäÖÐ×î´ó×Ö½Ú³¤ ......