当前位置:网站首页>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 | 大小与操作系统有关 | 用来把非结构化的二进制数据存储在数据库以外的操作系统文件中 |
字段、数据增删改

约束

边栏推荐
- What are functions in C language? What is the difference between functions in programming and functions in mathematics? Understanding functions in programming languages
- How to learn programmable logic controller (PLC)?
- JS中的链表(含leetcode例题)<持续更新~>
- QCOM LCD调试
- Keil C51的Data Overlaying机制导致的函数重入问题
- [JVM] - memory partition in JVM
- Opencv实现目标检测
- gorm事务体验
- Unity delegate
- CPG 固体支持物研究:Lumiprobe通用 CPG II 型
猜你喜欢

mysql导出数据库字典成excel文件

Operation of simulated examination platform of G3 boiler water treatment recurrent training question bank in 2022

活性染料研究:Lumiprobe AF594 NHS 酯,5-异构体

Deeplearning ai-week1-quiz

How high is the gold content of grade II cost engineer certificate? Just look at this

codeforces每日5题(均1700)

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

Yunda's cloud based business in Taiwan construction 𞓜 practical school

WordPress zibll sub theme 6.4.1 happy version is free of authorization

Voltage mode and current mode control of switching power supply
随机推荐
MySQL export database dictionary to excel file
Feign implements path escape through custom annotations
SlicePlane的Heading角度与Math.atan2(y,x)的对应转换关系
DPDK 源码测试时性能下降问题
QCOM LCD调试
Prove that there are infinite primes / primes
Performance degradation during dpdk source code testing
氨基染料研究:Lumiprobe FAM 胺,6-异构体
【LeetCode】12、整数转罗马数字
[untitled] drv8825 stepping motor drive board schematic diagram
Keil C51的Data Overlaying机制导致的函数重入问题
Detailed usage configuration of the shutter textbutton, overview of the shutter buttonstyle style and Practice
[microservices openfeign] openfeign quick start service invocation based on feign
It is the latest weapon to cross the blockade. It is one of the fastest ladders.
jsp连接Oracle实现登录注册
IP datagram sending and forwarding process
Carboxylic acid study: lumiprobe sulfoacyanine 7 dicarboxylic acid
JS text box loses focus to modify width text and symbols
A guide to P2P network penetration (stun) for metartc5.0 programming
CPG 固体支持物研究:Lumiprobe通用 CPG II 型