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

约束

边栏推荐
- 【SkyWalking】一口气学完分布式链路追踪SkyWalking
- 阴阳师页面
- The heading angle of sliceplane is the same as that of math Corresponding transformation relation of atan2 (y, x)
- 刘海屏手机在部分页面通过[[UIApplication sharedApplication] delegate].window.safeAreaInsets.bottom得到底部安全区高度为0问题
- [leetcode] 12. Integer to Roman numeral
- How high is the gold content of grade II cost engineer certificate? Just look at this
- A guide to P2P network penetration (stun) for metartc5.0 programming
- MySQL 45讲 | 05 深入浅出索引(下)
- Is it enough for the project manager to finish the PMP? no, it isn't!
- What does mysql---where 1=1 mean
猜你喜欢

羧酸研究:Lumiprobe 磺基花青7二羧酸

SlicePlane的Heading角度与Math.atan2(y,x)的对应转换关系

2022 high altitude installation, maintenance and removal examination questions and answers

【JVM】——JVM中內存劃分

Based on the order flow tool, what can we see?
![[leetcode] 12. Integer to Roman numeral](/img/3e/815f24a85a3333ce924acee1856f62.png)
[leetcode] 12. Integer to Roman numeral

The short video local life section has become popular. How to grasp the new opportunities?
![[JVM series] JVM tuning](/img/e1/086f76ec6c9b56d97430b1e073f5a6.png)
[JVM series] JVM tuning

OpenSSL client programming: SSL session failure caused by an obscure function

Gorm transaction experience
随机推荐
高通平台 Camera 之 MCLK 配置
Deeplearning ai-week1-quiz
2022 high altitude installation, maintenance and removal examination questions and answers
Enum
证明素数/质数有无限多个
【JVM】——JVM中内存划分
How does guotaijun charge for safe varieties? Let's talk about the futures account opening process
2022 special operation certificate examination question bank and simulation examination for safety management personnel of fireworks and firecrackers business units
拉萨手风琴
How to design an awesome high concurrency architecture from scratch (recommended Collection)
Docker安装Mysql5.7并开启binlog
Intensive learning notes
JS text box loses focus to modify width text and symbols
阴阳师页面
Online yaml to JSON tool
Unity delegate
How high is the gold content of grade II cost engineer certificate? Just look at this
电源插座是如何传输电的?困扰小伙伴这么多年的简单问题
When using the MessageBox of class toplevel, a problem pops up in the window.
BioVendor sRAGE抗体解决方案