上一页 1 ··· 8 9 10 11 12 13 14 15 下一页
摘要: 转自 http://blog.chinaunix.net/uid-8504518-id-3325718.html今天开发人员问我如何快速并方便的查出一张表最近被更改的记录,这个需求很简单,由于是查最近被更改的数据,查回滚段就可以,下面是我做的小实验。SQL> create table test(id number,name varchar2(10),gender varchar2(5));表已创建。SQL> insert into test values(1,'宋春风','男'); 已创建 1 行。SQL> insert into test v 阅读全文
posted @ 2013-11-19 01:10 princessd8251 阅读(966) 评论(0) 推荐(0) 编辑
摘要: 转自 http://foxmile.blog.163.com/blog/static/81169805201143191957184/我 们要删除表中不用的字段,如果直接drop column,对于大表,进行DDL操作的时间会比较长,会严重阻塞DML语句,导致应用服务器crash,通常的做法是先set unused column column_name 或者 set unused column_name,column_name...,然后再利用停机时间做alter table table_name drop unused columns。做如下实验:SQL> select table_n 阅读全文
posted @ 2013-11-15 17:28 princessd8251 阅读(587) 评论(0) 推荐(0) 编辑
摘要: 转自 http://blog.csdn.net/launch_225/article/details/7523195假设我们的数据库遇到以下情况: 第一,没有备份; 第二,常规方法无法恢复; 第三,数据很重要, 但又无法或成本太高而进行重新输入. 如丢失了Oracle的System表空间, System表空间损坏到无法启动的地步, 意外删除表空间或表, 意外截断(Truncate)表等,在这3中情况下, 最后的方法就是通过工具直接读取数据文件里的数据,将我们的数据找回来。并且工具不需要Oracle 环境的支持。据我目前的了解,有3种工具:(1)Oracle 的内部工具是DUL(Data ... 阅读全文
posted @ 2013-11-15 17:13 princessd8251 阅读(834) 评论(1) 推荐(0) 编辑
摘要: 转自 http://blog.chinaunix.net/uid-20807166-id-1833979.html后台进程为了实现为多用户提供服务且保证系统性能,在一个多进程Oracle系统(multiprocess Oracle system)中,存在多个被称为后台进程(background process)的Oracle进程。一个Oracle实例中可以包含多种后台进程,这些进程不一定全部出现在实例中。系统中运行的后台进程数量众多,用户可以通过V$BGPROCESS视图查询关于后台进程的信息。Oracle实例中可能运行的后台进程有:·数据写入进程(DBWn)·日志写入进程 阅读全文
posted @ 2013-11-04 18:08 princessd8251 阅读(594) 评论(0) 推荐(0) 编辑
摘要: 转自 http://sparklet.blog.sohu.com/523655.html数据库被分成一个或多个逻辑部件称作表空间。而表空间又被分成称作段(segment)的逻辑部件。这些段再细分就叫扩展(extents)。Oracle 一般有如下表空间:SYSTEM 表空间用户多个 表空间工具表空间 只读表空间临时表空间回滚段表空间§1.3 数据块、区间和段Oracle系统的数据块(block)和区间(extent)及段(segment)存在一种关系。了解它们的关系对于管理和优化都有好处。§1.3.1 数据块(data block)Oracle的数据块也叫Oracle块;O 阅读全文
posted @ 2013-11-04 18:07 princessd8251 阅读(527) 评论(0) 推荐(0) 编辑
摘要: How much memory does each of the individual components of the SGA need? Oracle now has methods to determine most of the major parameters all on its own.What is the SGASimply stated, the system global area (SGA) is just shared memory structures that are created at instance startup, hold information a 阅读全文
posted @ 2013-10-30 22:33 princessd8251 阅读(230) 评论(0) 推荐(0) 编辑
摘要: In oracle 10g we can have multiple block sizes at the same time. When a tablespace is created we can assign a block size for the objects that will be created in that tablespace.The DB_BLOCK_SIZE parameter in your initialization parameter file determines the size of your standard block size in the da 阅读全文
posted @ 2013-10-30 22:27 princessd8251 阅读(284) 评论(0) 推荐(0) 编辑
摘要: 数据库装载完毕。ORA-16038: 日志 3 序列号 5035 无法归档ORA-19809: 超出了恢复文件数的限制ORA-00312: 联机日志 3 线程 1:......REDO03.LOG'损坏非当前联机日志: 1、启动数据库,遇到ORA-00312 or ORA-00313错误,如: ORA-00313: open failed for members of log group1 of thread 1 ORA-00312: online log 3 thread 1: '/opt/oracle/db04/oradata/ORCL/redo03.log' 从这 阅读全文
posted @ 2013-09-28 22:30 princessd8251 阅读(227) 评论(0) 推荐(0) 编辑
摘要: 转自 http://www.eygle.com/archives/2004/10/backup_and_recreate_controlfile.html控制文件对于数据库来说是非常重要的数据结构,在进行数据恢复时通常是必不可少的.Oracle提供两种方式备份控制文件:1.生成可以重建控制文件的脚本2.备份二进制的控制文件我们看一下如何获得可以重建控制文件的脚本.Oracle提供如下命令:alter database backup controlfile to trace; 实际操作:[oracle@standby tools]$ sqlplus "/... 阅读全文
posted @ 2013-09-26 00:42 princessd8251 阅读(427) 评论(0) 推荐(0) 编辑
摘要: rman备份控制文件分为两种情况。1、自动备份需要配置configure controlfile autobackup on配置之后,控制文件和spfile会在每次rman备份之后自动备份controlfile和spfile另外在数据库的structure变化之后,也会自动备份controlfile... 阅读全文
posted @ 2013-09-26 00:38 princessd8251 阅读(308) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 下一页