当前位置:网站首页>Oracle基础知识总结
Oracle基础知识总结
2022-06-28 05:21:00 【辕小白】
Oracle 数据库简介
1.Oracle是关系型的数据库,支持多用户、大事务量的事务处理。 Oracle基于客户端、服务器端。分布式、可移植。
2.管理数据库的后台进程和内存结构的集合称为 Oracle 实例
3.Oracle 的内存结构包含以下两个内存区: 系统全局区 (SGA) 、程序全局区 (PGA)
4.Oracle默认用户,SYS超级管理员,SYSTEM普通管理员,SCOTT普通用户(很多权限无,需要SYSTEM给)。
Windows 中的 Oracle 服务

ORACLE 数据库具有以下特点
1、Oracle跨平台,可移植
2、数据安全性和完整性控制
3、支持多用户、大事务量的事务处理
4、支持分布式数据处理
表的创建、修改与删除
- 表空间是数据库中最大的逻辑单位,一个Oracle数据库至少包含一个表空间,就是名为System的系统空间。
- 数据定义语言(DDL): create、 alter 、drop
数据操纵语言(DML):insert、select、 detele、 update、 truncate
事务控制语言(TCL):commit、 rollback、 savepoint
数据控制语言(DCL): grant、 revoke

数据类型
1.字符型
| 数据类型 | 取值范围 (字节) | 说明 |
|---|---|---|
| varchar2 | 0~4000 | 可变长度的字符串 |
| nvarchar2 | 0~1000 | 用来存储unicode字符集的变长字符型数据 |
| char | 0~2000 | 用于描述定长的字符型数据 |
| nchar | 0~1000 | 用来存储unicode字符集的定长字符型数据 |
| long | 0~2GB | 用来存储变长的字符串 |
2.数值型
| 数据类型 | 取值范围 | 说明 |
|---|---|---|
| number(p,s) | p最大精度是38位(十进制) | p代表的是精度,s代表的是保留小数位数;可以用来存储定长的整数和小数 |
| float | 用来存储126位数据(二进制) | 存储的精度是按二进制计算的,精度范围为二进制的1~126,在转化为二进制时需要乘以0.30103 |
3.日期型
| 数据类型 | 说明 |
|---|---|
| date | 用来存储日期和时间,精确到秒 |
| timestamp | 显示的日期比date更精确,精确到小数秒,还能够显示上午还是下午 |
4.其他数据类型
| 数据类型 | 取值范围(字节) | 说明 |
|---|---|---|
| blob | 最多可以存放4GB | 存储图像、声音、视频等二进制数据 |
| clob | 最多可以存放4GB | 存储字符串数据 |
| bfile | 大小与操作系统有关 | 用来把非结构化的二进制数据存储在数据库以外的操作系统文件中 |
字段、数据增删改

约束

边栏推荐
- Extjs library management system source code intelligent library management system source code
- Leecode question brushing-ii
- 二级造价工程师证书含金量到底有多高?看这些就知道了
- It is the latest weapon to cross the blockade. It is one of the fastest ladders.
- [untitled] drv8825 stepping motor drive board schematic diagram
- Based on the order flow tool, what can we see?
- Informatics Orsay all in one 1360: strange lift
- MCLK configuration of Qualcomm platform camera
- [JVM series] JVM tuning
- 北斗三号短报文终端在大坝安全监测方案的应用
猜你喜欢

【Linux】——使用xshell在Linux上安装MySQL及实现Webapp的部署

【LeetCode】12、整数转罗马数字

Have you finished the examination of level II cost engineer? There are also qualification regulations!

改性三磷酸盐研究:Lumiprobe氨基-11-ddUTP

【JVM系列】JVM调优

codeforces每日5题(均1700)

2022 new version NFT source code source code of China meta universe digital collection art trading platform

Voltage mode and current mode control of switching power supply

Deeplearning ai-week1-quiz

北斗三号短报文终端在大坝安全监测方案的应用
随机推荐
How high is the gold content of grade II cost engineer certificate? Just look at this
? How to write the position to output true
msa.h:没有那个文件或目录
Concurrent wait/notify description
gorm事务体验
2022 safety officer-b certificate examination question bank and answers
Biovendor sRAGE antibody solution
It is the latest weapon to cross the blockade. It is one of the fastest ladders.
Lumiprobe细胞成像分析:PKH26 细胞膜标记试剂盒
改性三磷酸盐研究:Lumiprobe氨基-11-ddUTP
Intensive learning notes
Carboxylic acid study: lumiprobe sulfoacyanine 7 dicarboxylic acid
交流电和直流电的区别是什么?
2022 Western pastry (Advanced) test question simulation test platform operation
Programmer - Shepherd
!‘ Cat 'is not an internal or external command, nor is it a runnable program or batch file.
DPDK 源码测试时性能下降问题
氨基染料研究:Lumiprobe FAM 胺,6-异构体
Excel将一行的内容进行复制时,列与列之间是用制表符“\t”进行分隔的
Sharing | intelligent environmental protection - ecological civilization informatization solution (PDF attached)