- 浏览: 27365 次
- 性别:
- 来自: 北京
最新评论
1.heap table
IOT
PARTITION TABLE
HEAP TABLE
CLUSTER
2.create table t(
id number,
varchar2(80),
name char2(10)
)
pctfree 20
pctused 40
storage(
initial 180k
next 180k
pctincrease 10
miniextents 3
maxextents 5
)
tablespace users
create global temporary table temp(id number,name char(10));
alter table t pctfree 30 pctused 40 storage(initial 180k next 180k minixtents 3 maxextents 5);
alter table t allocate extent(size 600k datafile '/u01/oradata/lsh/data01.dbf');
alter table t move tablespace user1;
truncate table t // no generation undo log,ddl ,can not truncate the table which have refer.realease space. index are truncate
truncate table t reuse storage;
drop table t
alter table t drop column name cascade constraints checkpoint 1000;
alter table t drop columns continue;
alter table t set unused column name cascade constraints;
alter table t dop unused columns checkpoint 1000
alter table t dop columns continue checkpoint 1000
alter table t rename column name to vname
select dbms_metadata.get_ddl('TABLE','T') from dual;
select * from user_object;
select * from user_tables;
1.HEAP TABLE:
Oracle will place the data where it fits, not in any order by date or transaction
You should think of a heap organized table as a big unordered collection of rows. These
rows will come out in a seemingly random order, and depending on other options being used
(parallel query, different optimizer modes, and so on), they may come out in a different order
with the same query. Do not ever count on the order of rows from a query unless you have an
ORDER BY statement on your query!
2.IOT:
Index organized tables (IOTs) are, quite simply, tables stored in an index structure.
We have to make room for both the table and the index on the primary key of the table when using a heap organized table. With an IOT, the space overhead of the primary key index is removed, as the index is the data and the data is the index.
When you want to enforce co-location of data or you want data to be physically stored in a specific order, the IOT is the structure for you.
• Increased buffer cache efficiency, as any given query needs to have fewer blocks in the
cache
• Decreased buffer cache access, which increases scalability
• Less overall work to retrieve our data, as it is faster
• Less physical I/O per query possibly, as fewer distinct blocks are needed for any given
query and a single physical I/O of the addresses most likely retrieves all of them (not
just one of them, as the heap table implementation does)
Each I/O and each consis-tent get requires an access to the buffer cache, and while it is true that reading data out of the buffer cache is faster than disk, it is also true that the buffer cache gets are not free and not totally cheap. Each will require many latches of the buffer cache, and latches are serialization devices that will inhibit our ability to scale.
3.
发表评论
-
from string get number data using pl/sql or sql
2012-02-16 17:32 892declare @aa varchar(80),--- ... -
SQL
2012-02-15 18:01 7341.select sal salary from emp; ... -
modify ip
2012-02-10 17:45 7991.netconfig 2./etc/sysconfig/n ... -
MULTI dbwr or io slaves
2012-02-10 15:21 883thanks dukope of itpub. ... -
FAQS
2012-02-09 15:59 7581.How can I get the largest amo ... -
HOW TO STUDY ORACLE FROM Yong Huang
2012-01-18 14:48 804Assuming you want to study orac ... -
RMAN
2012-01-14 17:07 7081.components of the rman ... -
INSTANCE and CRASH RECOVERY
2012-01-12 10:12 7541.type of checkpoint full c ... -
STARTUP PFILE=
2011-12-31 14:11 12281.vi initdbs.ora spfile=&quo ... -
MONITOR redo size
2011-12-21 17:48 6501.set autot on stat 2.unsin ... -
What do rollback and commit
2011-12-21 11:21 745When we COMMIT, all that is lef ... -
What is the schema ?
2011-12-20 15:18 592A schema is a collection of dat ... -
MANAGE UNDOTABS
2011-12-19 17:15 6791.manual undo_management=ma ... -
DBA SQL
2011-12-19 15:21 4391.select a.name,b.status from v ... -
SEGMENT EXTENTS ORACLEBLOCK
2011-12-15 16:11 7981.SEGMENT: allocated fo ... -
MANAGE TABLESPACE AND DATAFILES
2011-12-13 15:28 5791. tablespace,segment,extent,bl ... -
ORACLE NET
2011-12-12 09:49 6871.net_service_name: servive ... -
SQLPLUS TIPS
2011-12-09 17:51 9101.SQLPLUS : a tool that execute ... -
ORACLE ENVIRONMENT VARIABLES
2011-12-09 17:15 659ORACLE_HOME ORACLE_SID : or ... -
Exam Test1
2011-12-09 16:18 6401.utl_file_dir: indicate the di ...
相关推荐
例如,`el-table`组件可以用来展示数据列表,支持排序、筛选和分页;`el-dialog`用于弹窗交互,`el-form`和`el-form-item`用于表单设计,`el-upload`则方便了文件上传,特别是批量导出Excel的功能。 批量导出Excel...
主要给大家介绍了关于执行python manage.py migrate时报错:django.db.utils.ProgrammingError: (1146, "Table 'test.model_student' doesn't exist" )问题的解决方法,文中将解决的方法介绍的非常详细,需要的朋友...
- `CREATE TABLE manage ( id INT(8) PRIMARY KEY NOT NULL AUTO_INCREMENT, username VARCHAR(8) NOT NULL, password CHAR(20) NOT NULL, level CHAR(8) NOT NULL ); SET NAMES 'GBK';` - 在 book 数据库中创建一...
emWin 设计用于提供高效且独立于处理器和显示控制器的图形用户界面,用于任何使用图形显示进行 操作的应用。它与单任务和多任务环境、专用操作系统或具有任何商业RTOS 兼容,emWin 的发货 形式为C 语言源代码。...
例如,`<table>`用于展示邮件列表,`<form>`则用于创建新邮件或回复邮件的表单,`<input>`则用于用户输入邮件主题、收件人、正文等。 **Element-UI** Element-UI是基于Vue.js的组件库,提供了一系列预先设计和封装...
- **manage.py**:Django项目的命令行接口,用于执行各种管理任务,如启动开发服务器、迁移数据库等。 - **requirements.txt**:列出项目依赖的Python库,用于确保环境的一致性。 - **settings.py**:Django项目的...
django.db.utils.OperationalError: (1050, "Table 'xxx' already exists") 要处理这种情况,如果是数据表都已经存在了,在migrate时直接使用 –fake-initial 来处理 python manage.py migrate –fake-initial 如果...
问题解析 : XXXX中的xx表不存在 问题原因 : 【1】插入数据或更改数据时使用的表输入错误 【2】linux的mysql区分大小写,数据库中的表名与输入的sql语句中的使用的表名大小写不一致导致的 【3】数据库操作时,误删...
操作系统:Win7 IDE:PyCharm4.5.3 Django:1.10.1 报错代码:request.session[‘key’] = value 描述:今天第一次使用Django中的session,只要出现”...1.9之前的执行’python manage.py syscdb’命令(baidu的时候
CREATE TABLE [dbo].[admintable] ( [ID] [int] NULL , [username] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL , [password] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL , [firstname] [varchar] ...
some table about note manage
项目源代码已打包成"Manage.zip",以便后续的修改和复用,但请注意,积分币无法设置为0。 【知识点详解】: 1. PyQt5:PyQt5是Python中的一个强大的图形用户界面(GUI)框架,它是Qt库的Python绑定。它允许开发者...
下面的代码演示了如何创建一个名为`book_manage`的数据库,并指定了其主文件和日志文件的位置、大小以及增长方式。 ```sql USE master; GO CREATE DATABASE book_manage ON ( NAME = book_manage_primary, ...
*该工具目前支持3种数据源的生成方式,分别是:JDBC、.table、PDM *JDBC:选择JDBC是只需要配置数据源就行了,别的不要动 *.table后缀文件:是金蝶BOS中的一个字段属性映射文件 *PDM:Powerdesigner物理逻辑图,选择...
6. `table_manage_autofill.html`、`table_manage_tabletools.html`、`table_manage_colreorder.html`、`table_manage_fixed_columns.html`、`table_manage_fixed_header.html`:这些文件涉及到表格管理,包括自动...
MySQL 语句笔记 MySQL 语句笔记文档中记录了 MySQL .database 的基本操作,包括库操作、...这些操作都是 MySQL 语句笔记的基本操作,Mastering these operations can help you better manage your MySQL database.
servlet_user_managejava servlet_user_manage demo project , Just for Learning Java Servlet采用 grade 依赖管理工具管理项目依赖和构建数据库创建语句users用户表创建CREATE TABLE `users` ( `id` int(11) NOT ...