2008年7月5日
摘要: Some performance considerations for temporary tablespaces: - Always use temporary tablespaces instead of permanent content tablespaces for sorting (no logging and uses one large sort segment to reduce... 阅读全文
posted @ 2008-07-05 01:47 Alex.Zhang 阅读(177) 评论(0) 推荐(0) 编辑
  2008年7月3日
摘要: Define the purpose of tablespaces and data files #数据库中的block是操作系统的2的n 次幂倍,如0, 2, 4, 8 .... #database 中的一个table 至少要有一个segment. # SYSTEM tablespce created with database , contains the data dictionary, c... 阅读全文
posted @ 2008-07-03 17:09 Alex.Zhang 阅读(308) 评论(0) 推荐(0) 编辑
摘要: Explain the purpose of online redo log files Record all changes made to data Provide a recovery mechanism at least two groups required online redo log file group : identical copies of online redo lo... 阅读全文
posted @ 2008-07-03 13:36 Alex.Zhang 阅读(318) 评论(0) 推荐(0) 编辑
摘要: uses of the control file a. binary file b. define current state of physical database d. 只要data file 和redo log file 不丢,control file 还是有可能恢复的 ---------------------------------- cd dbs ls -al strings spf... 阅读全文
posted @ 2008-07-03 12:34 Alex.Zhang 阅读(251) 评论(0) 推荐(0) 编辑
  2008年7月2日
摘要: 详细字典内容如下: ALL_CATALOG All tables, views, synonyms, sequences accessible to the user ALL_COL_COMMENTS Comments on columns of accessible tables and views ALL_COL_GRANTS_MADE Grants on columns for w... 阅读全文
posted @ 2008-07-02 22:14 Alex.Zhang 阅读(205) 评论(0) 推荐(0) 编辑
摘要: Data dictionary (read-only / in system tablespace / owned by sys / maintained by Oracle / Accessed with select ) #当执行DDL语句的时候Oracle 自动会对数据字典进行维护. #DD view is the static view , not means absolutely sta... 阅读全文
posted @ 2008-07-02 17:12 Alex.Zhang 阅读(272) 评论(0) 推荐(0) 编辑
摘要: 在 undo segment中,Insert是记录rowid,update 记录被更改数据的前镜像,delete 记录整行数据。因此delete产生的undo最多。 select segment_name,tablespace_name,status from dba_rollback_segs; select xidusn,xidslot,xidsqn,ubablk,ubafil from v... 阅读全文
posted @ 2008-07-02 15:17 Alex.Zhang 阅读(785) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2008-07-02 13:32 Alex.Zhang 阅读(14) 评论(0) 推荐(0) 编辑
  2008年6月30日
摘要: A.List the prerequistites necessarey for database creation 1)确定数据库类型(OLTP or OLAP) 2)规划数据库架构, 如datafile, logfile 等存放磁盘, tablespace, 性能安全 (可以参考Oracle 建议的OFA:Optimal Felxible Arch) 用DBCA创建后的目录结构如下: orad... 阅读全文
posted @ 2008-06-30 15:15 Alex.Zhang 阅读(289) 评论(0) 推荐(0) 编辑
摘要: conn / as sysdba 因为我们已经通过密码验证进入了操作系统这一层,这样的话,oracle就默认为你有了起动和关闭DB的权限. shutdown -> nomount(instance started) -> mount(control file open) -> open ----------------------------------- startup nomount p... 阅读全文
posted @ 2008-06-30 13:18 Alex.Zhang 阅读(250) 评论(0) 推荐(0) 编辑
摘要: Do not use the pfile init.ora as it is to old for us. we can copy from expert. if we use the dbca to setup the db, it will create one pfile ans spfile automaticlly. -----------------------------------... 阅读全文
posted @ 2008-06-30 11:58 Alex.Zhang 阅读(271) 评论(0) 推荐(0) 编辑
  2008年6月29日
摘要: 文章包括CentOS的安装和Oracle9204在CentOS上的安装. http://www.cnblogs.com/Files/yifan268/070608100025.zip 阅读全文
posted @ 2008-06-29 22:41 Alex.Zhang 阅读(127) 评论(0) 推荐(0) 编辑
  2008年6月26日
摘要: This is information about a workaround for manually caching keys on windows clusters for sftp scripts. There is an application that is currently using this process to bypass that initial confirmation ... 阅读全文
posted @ 2008-06-26 11:22 Alex.Zhang 阅读(231) 评论(0) 推荐(0) 编辑
  2008年6月25日
摘要: 摘自----《Oracle备份与恢复》 ----------------------------------------------------------------------------------------------------------------- 一个名叫Sid的男人,狂热地爱好拍摄、保存和整理照片。Sid的妻子名叫Debbie,他们有三个儿子Logan、Archie和Ch... 阅读全文
posted @ 2008-06-25 01:44 Alex.Zhang 阅读(393) 评论(0) 推荐(0) 编辑
  2008年6月24日
摘要: Oracle Architecture Components (Oracle结构组件) 1.由哪些组件组成 2.建立连接时需要哪些组件 ORACLE由两部分:实例和数据库 实例由以下组成: SGA,Shared pool,Database buffer cache,Redo log buffer cache. 数据库由物理文件组成,其中必须有的文件是:数据文件,控制文件,重做日志 另外还有:参数... 阅读全文
posted @ 2008-06-24 09:07 Alex.Zhang 阅读(727) 评论(1) 推荐(0) 编辑
摘要: Oracle中,一个Delete操作的流程 删除(DELETE) 1.Oracle读Block到Buffer Cache(如果该Block在Buffer中不存在) 2.在redo log buffer中记录delete操作的细节 3.在相应回滚段段头的事务表中创建一个undo条目 4.把将要删除的记录创建前镜像,存放到Undo Block中 5.在Buffer Cache中的相应数据块上删除记录,... 阅读全文
posted @ 2008-06-24 00:24 Alex.Zhang 阅读(201) 评论(0) 推荐(0) 编辑
  2008年6月23日
摘要: _disable_logging 对于归档数据库的影响 2008-6-23 事件:为了测试硬盘IO是否是影响数据库性能的瓶颈,将数据库关闭redo log记录。设置_disable_logging=true。测试结束后,直接alter system set "_disable_logging"=false; alter system switch logfile; 后一直做不完,DB Hang... 阅读全文
posted @ 2008-06-23 11:17 Alex.Zhang 阅读(419) 评论(0) 推荐(0) 编辑
  2008年6月21日
摘要: Orale中存在着事务与会话临时表, 它是数据临时, 表是永久的. 即当事务或一次会话结束后,Oracle会自动清空临时表内数据,但是临时表是依然存在的. 临时表的另一个特性是在对临时表时行DML语句操作时,Oracle不会为其加各种锁,也不会写REDO File, 所以我们不能对临时表进行多线程同时操作. 当两个表进行Join的时候,如果两个或多个表都比较大或者一些大,一些... 阅读全文
posted @ 2008-06-21 03:00 Alex.Zhang 阅读(1281) 评论(0) 推荐(0) 编辑
摘要: For Example how to generate the Order_History data through Order_Current table. ETL Rule: 1. Incremental data load 2. Loading: Never truncate the history table, follow the following rules. ... 阅读全文
posted @ 2008-06-21 01:23 Alex.Zhang 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 最近碰到个较为棘手的问题,关于如何实现Dimension数据在Fact Table中的模糊匹配。比如: Fact table 中的Supplier column主要存放一张定单所需供应商的代码,seprected by comma character, For example: AAA, BBB, CCC , 如何设计Dim Table 来实现通过在EV Report 中下拉选择 AAA ... 阅读全文
posted @ 2008-06-21 00:51 Alex.Zhang 阅读(916) 评论(0) 推荐(0) 编辑