zoukankan      html  css  js  c++  java
  • ORACLE学习第二天

    oracle逻辑结构(logical structure)

    (1)、database-->tablespaces-->segments-->extents-->blocks-->os blocks

    (2)、查询dba_tablespaces可以查看所有的表空间

               查询dba_data_files、dba_temp_files可以查看所有的数据文件

               查询dba_segments可以查看表空间使用哪些段

    (3)、表空间分为三种:

               永久:PERMANENT

               undo:

               临时:TEMPORARY

    (4)、使用数据文件比使用临时文件产生更多的日志

    (5)、表定义存放在system表空间

    (6)、表空间自动分配:

               数据量为0 时,自动分配64K空间

               数据量小于1M时,每次扩展64K空间

               数据量大于1M小于64M时,每次扩展1M空间

               数据量大于64M小于1024M时,每次扩展8M空间

               数据量大于1024M时,每次扩展64M空间

    (7)、扩展表空间的三种方式:

              数据文件自动扩展:alter database datafile 5 autoextend on next 1M maxsize 1024M  (unlimited);(每次自动扩展1M,最大可扩展至32G)

              增加数据文件:alter tablespace test  add datafile   '/oracle/oradata/test02.dbf' size 100M;

              RESIZE:alter database datafile '/oracle/oradata/test02.dbf'  resize 200M;

    (8)、手动给表分配空间:alter table tt allocate extent (datafile  '/oracle/oradata/test02.dbf'(必须使用绝对路径)  size 100M) ;    (数据文件需要能自动扩展)     

  • 相关阅读:
    约束constraint
    多表查询
    多表关系
    vue 页面跳转的两种方式
    Java三大特性
    如何搭建vue搭建手脚架(vue-cli 3.0以上版本)
    Mysql高版本不兼容group by解决方案
    springboot整合shiro 报 This application has no explicit mapping for /error, so you are seeing this as a fallback. 错误
    使用Springboot整合redis与mysql
    Springboot登录拦截器
  • 原文地址:https://www.cnblogs.com/cangos/p/2325662.html
Copyright © 2011-2022 走看看