如果您无法下载资料,请参考说明:
1、部分资料下载需要金币,请确保您的账户上有足够的金币
2、已购买过的文档,再次下载不重复扣费
3、资料包下载后请先用软件解压,在使用对应软件打开
网络数据库总复习第一章概述§1.1数据库在网络管理岗位中的需求分析§1.2关系数据库基本知识:看书数据库基本概念数据库三种模型关系数据库介绍§1.3常用数据库产品简介版本:公司用企业版运行平台:xp不支持企业版(SQLSERVER)SQLSERVER只能运行在windows§1.4数据库新技术第二章数据库启动及常用工具使用§2.1服务的基本概念及其操作服务及其启动类型配置服务的启动类型操作系统命令启停服务数据库管理工具启停服务§2.2Oracle数据库启动Oracle服务Oracle常用工具:SQL*Plus和OracleEnterpriseManager打开与关闭数据库Shutdown状态startupnomountstartupmountstartupopennomount状态shutdown:shutdownmount:alterdatabasemount;open:alterdatabasemount;alterdatabaseopen;mount状态shutdown:shutdownnomount:shutdownstartupnomountopen:alterdatabaseopen;open状态shutdown:shutdownimmediate(最常用)nomount:shutdown----startupnomountmount:shutdown----startupmountshutdownnomountmountopenInstancestartedControlfileopendforthisInstanceshutdownstartup15432Allfileopenddescribedbythecontrolfile网络配置Oracle服务器端网络配置:监听器的配置(ip端口号、实例名)和启动(lsnrctl)、所用文件listener.oraOracle客户端网络配置:网络服务名,所用文件:tnsnames.ora§2.3SQLServer数据库第3章数据库的基本操作§3.1数据库操作语言——SQL1.SQL简介2.SQL功能DDL:createalterdropDML:insertdeleteupdateselectDCL:grantrevokeTCL:rollbackcommit3.SQL特点§3.2数据库连接技术§3.3动态网站中的数据处理读者信息(卡号,姓名,性别,年龄)借书信息(卡号,书号,数量,借阅时间)图书信息(书号,书名,作者,出版社,出版时间)定义网站数据库表Createtablestudent(snochar(11)primarykey,Snamechar(20)notnull,Sageintcheck(sagebetween15and25))Createtablesc(snochar(11)referencesstudent(sno),Cnochar(4)referencescourse(cno),Gradeintcheck(gradebetween0and100),Primarykey(sno,cno))AlterAltertablestudentAddssexchar(2)AltertablestudentModifyssexchar(4)SQLSERVERAltertablestudentAltercolumnssexchar(4)AltertablestudentDropcolumnssexDroptablestudent操纵网站数据InsertintostudentValues(‘1’,’a’,20)Insertintostudent(sno,sname)Values(‘2’,’t’)UpdatestudentSetsage=19Wheresno=‘2’DeletefromstudentWheresno=‘2’查询网站数据看书,粘当初的总结§3.4网站开发中数据字典的运用Dba_all_user_§3.5事务控制事务概念事务的开始和结束SQL*plus的自动提交提交/回滚前后数据状态§3.6完整性控制:参考创建表基本概念定义约束删除约束§3.7存储过程PL/SQL介绍基本概念创建createorreplaceprocedurepro3(xhstudent.sno%type)asbegindeletefromstudentwheresno=xh;end;调用executepro3(2)查看删除