You are on page 1of 5

Bi 1: SQL oraclehng dn ci t 1. Tm quan trng ca oracle Oracle, sql, my sql, new sql 2.

Ci t Win 7, ci t oracle 10G Download: goole: oracle: http://www.oracle.com/index.html > download > database EE> accept > http://www.oracle.com/technetwork/database/enterprise-edition/downloads/112010win64soft-094461.html http://download.cnet.com/Oracle-Database-10g-Express-Edition/3001-10254_475220235.html?spi=7e34e3c874db6679b8b4509187973afc&dlm=0 http://cdth5.blogspot.com/2012/04/bo-cai-at-oracle-10g-va-sql-developer.html Thit lp bin mi trng

cch chy 1: run administrator chay >Bin> sqlplus cch chy 2: cmd n ctrl+shift > kch vo cmd > sqlplus

Cai dat thanh cong ci thm tool

Sql developer l tool chng ta truy vn oracle. > tool c h tr giao din ngi dng.

Bi 2: SQL plus v SQL developer

Li 125do service ca oracle cha c start. sa li: nh vo terminal : servicemsc > open> tm n phn oracle > bt start Oracle service ORCL Khi start ny th s connect bnh thng.

trong sql.

mun xa mn hnh > host > cls > exit. dng / thc hin cu lnh trc. sql developer

ging sqlplus, khc l n c giao din ngi dng ban u chy phi link ti java.exe SID: orcl

Bi 3: SQL command

Alter: thay th, thay i nhng thng tin lin quan n kiu d liu

Cu lnh lin quan n iu khin. grant, revoke > lin quan n gn quyn v g quynthng c s dng rt nhiu trong sql oracle.

Lin quan ti 1 phin giao dch Rollback: khi phc li n ln commnit cui cng. Savapoint l c th quay li thi im d liu cv d xa, v commit ln th vn c th cu c nh savepoint.

Bi 4: HR Schema. Oracle sample schema Diagrams

Bai 5: cau lenh select

Select dong de han che muc luong, tim nguoi co bat dau bang D. Cau truc select basic Select colum_name from table; Bai sau c th select nhiu bng nh join. Select A,B from C Select abc as demo from dual; > thng thng tn bng s hin th ra l abc, mun hin th theo mun tn bng v d l demo th dng as

Bai 6: 2 tu khoa

You might also like