摘要: 创建一个directory对象,指定备份的目标磁盘位置SQL>create directory myback as 'd:\oraclestudy'; 为scoot用户授予使用该目录的权限SQL>grant read,write on directory myback to scott; 备份数据库 阅读全文
posted @ 2019-08-09 15:52 oraclelast 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 一:日志清理sql语句 USE [master]GOALTER DATABASE YNYY SET RECOVERY SIMPLE WITH NO_WAITGOALTER DATABASE YNYY SET RECOVERY SIMPLE --简单模式GO USE YNYYGODBCC SHRINK 阅读全文
posted @ 2019-08-07 13:19 oraclelast 阅读(2354) 评论(0) 推荐(0) 编辑
摘要: 一:数据库的登录和用户切换 win+r,输入sqlplus 请输入用户名: system输入口令: --密码为密文,不显示 连接到: --登录成功Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit ProductionW 阅读全文
posted @ 2019-08-07 11:47 oraclelast 阅读(1467) 评论(0) 推荐(0) 编辑
摘要: use student--插入所有列,否则会报错:列名或所提供值的数目与表定义不匹配。insert into dbo.student values('120001','张三','男',18,'云南省昆明市五华区',null,null) --插入指定列insert into dbo.student ( 阅读全文
posted @ 2019-07-29 16:35 oraclelast 阅读(354) 评论(0) 推荐(0) 编辑
摘要: --创建student数据库,此处只指定路径,其他属性为默认值create database studenton(name=studentdat,filename='d:\sqlstudy\student.mdf')log on(name=studentlog,filename='d:\sqlstu 阅读全文
posted @ 2019-07-29 15:28 oraclelast 阅读(743) 评论(0) 推荐(0) 编辑