dbca创建实例时资源不足的问题
现象:1 dbca创建实例最后一步,进度走到2%(正在创建并启动oracle实例)就不动了,等待1小时后,仍没有反应 2 同时,telnet登录oracle用户时报:Resource...
数据库切换日志的时候,为什么一定要发生检查点
这是这个帖子http://www.itpub.net/viewthread.php?tid=685647,piner面试提出的一个问题这个问题我的理解是这样的:1 alter log switch 会触发常规检查点,即会触发DBWR将全部的脏数据写入数据文件,并会更新数...
v$object_usage可以监控索引的使用情况
v$object_usage可以用来监控系统中索引的使用情况 SQL>conn yang/yang已连接。 SQL>create table test(x int,y int);表已创建。 SQL>alter table test add constraintinde...
SGA_MAX_SIZE
9i的concepts是这样描述的:If SGA_MAX_SIZE specifiedin the initialization parameter file isless than the sum of allcomponents specified or defaulted at initialization time,then the setting in t...
必须了解的SQL执行流程
1解析SQL语句,Oracle分析是硬解析还是软解析2 如果是软解析,直接执行SQL语句3 如果是硬解析,Oracle进行优化流程4 Oracle使用RBO或CBO处理查询,选择最优的计划,并把计划转给行资源生成器...
具有导入导出统计数据能力的DBMS_STATS包
可以将Oracle的统计数据从一个数据库迁移到另一个数据库1 创建统计表SQL> execdbms_stats.create_stat_table(ownname=>'NBA',stattab=>'TEST_STAT',tblspace=>'YANG');PL/SQL 过程已成功完成。 SQ...
9i到10g sort segment的变化
concepts中关于sort segment的描述有这么一段是变化的:(9i)You can manage space for sortoperations more efficiently by designatingtemporarytablespaces exclusively for sorts. Doing so effectively e...
Savepoint release row locks
SQL>create table test(x int,y int) ;表已创建。 SQL>insert into test values(1,1);已创建 1 行。 SQL>insert into test values(2,2);已创建 1 行。 SQL>insert into te...
关于sort segment的一个疑问
concepts中有这样一段One or more temporary tablespaces can be used only for sort segments. A temporary tablespace is not the same as a tablespace that a user designates for temporary segments, which...
Tablespace Offline
准备SQL> drop tablespace yang including contents;表空间已丢弃。 SQL> create tablespace yang 2 logging 3 datafile 'd:\oracle\oradata\game\yang.ora'size 10m reu...
Hint - FIRST_ROWS
公司系统中有个界面的查询显示比较慢,显示首页的速度需要20s以上同事把查询发给我讨论下如何优化,查询大概是这样selecta,b,c,d,e,col1,col2,col3…..col50 from table_a where ….关于这个sql,有以下几点...
一台机器同时安装9i和10g
今天成功在一台机器上同时安装9i和10g,遇到了很多问题 1解压10g的安装文件时,报无法解压autorun.inf点击setup,提示:正在启动 Oracle Universal Installer...error:cannot createC:/DOCUME~1/Y...
Temporary Segment的使用情况
通过v$tempseg_usage可以查看临时段的使用情况 session 1:SQL>drop table test;表已丢弃。 SQL>create table test as select * from dba_objects;表已创建。 SQL>insert into ...
extent最少包含多少数据块
主要是对concepts上一段内容的实验:Atablespace that manages its extents locally can have either uniform. extentsizes orvariableextent sizes that are determined automatically by the system. When ...
block中free space的复用问题
关于这个问题,10g concept是这样写的:Two types of statements can increase the free space of one or more data blocks: DELETE statements, and UPDATE statements that update existing values to smaller ...
extent contiguous on disk?
浏览了很多书后,今天开始看concepts第2遍,这次看英文版,在看的过程中对有的问题会记录,有的问题会做实验加深印象。今天看extent空间是否连续的问题,来源于concepts chapter 2:the extents of a se...
.net framework 3.5安装失败的经历
安装经历了很多的问题,花了3到4天的时间,到最后自己都差点崩溃了 网上有很多关于安装.net framework 3.5失败的信息,很多我都试了,但是没有效果。因为那并不是你的机器,并不是和你一样的场景...
LOB (3)
接LOB(2),除了12个chunk情况外,当lob属性为disable storage in row 时,也会使用到LOBINDEX[code]SQL>create table t2(id int primary key 2 ,t2_lob clob) 3 lob(t2_lo...
LOB (2)
接LOB (1)SQL>insert into t values(4,lpad('a',9000,'a'));已创建 1 行。SQL>commit;提交完成。通过pl/sql developer查看t_lob的大小:4000字节 SQL>insert into t values(5,lpad('a',12000,...
LOB (1)
其实就是对ExpertOracle Database Architecture Architecture.9i.and.10g.Programming.Techniques.and.Solutions中的关于LOB内容的笔记,书上写的关于LOB的非常好 SQL>create table t(id int...