上一页 1 2 3 4 5 6 7 8 9 ··· 32 下一页
摘要: 在Oracle 11gR2 RAC 创建实例的时候,会让我们选择配置类型:Admin-Managed 和 Policy-Managed ,如下:官网文档解释如下:6.1 Understanding ServerPools Server pools arelogical divisions of a cluster into pools of servers, which are allocated tohost databases or other applications. Server pools are managed using crsctl andsrvctl commands.Ea 阅读全文
posted @ 2012-07-17 00:41 davedba 阅读(426) 评论(0) 推荐(0) 编辑
摘要: 在Oracle 11gR2 RAC 创建实例的时候,会让我们选择配置类型:Admin-Managed 和 Policy-Managed ,如下:官网文档解释如下:6.1 Understanding ServerPools Server pools arelogical divisions of a cluster into pools of servers, which are allocated tohost databases or other applications. Server pools are managed using crsctl andsrvctl commands.Ea 阅读全文
posted @ 2012-07-17 00:41 davedba 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 一.创建控制文件时:Resetlogs和Noresetlogs当我们将控制文件备份到trace 文件时,可以看到里面包含了2部分的重建语句,一个是使用resetlogs,另一个是使用noresetlogs。备份控制文件的SQL 如下:SQL>alterdatabase backup controlfile to trace有关控制文件的详细说明,参考:Oracle 控制文件http://blog.csdn.net/tianlesoftware/article/details/4974440Set #1. NORESETLOGS caseThe followingcommands will 阅读全文
posted @ 2012-07-16 23:58 davedba 阅读(333) 评论(0) 推荐(0) 编辑
摘要: 一.创建控制文件时:Resetlogs和Noresetlogs当我们将控制文件备份到trace 文件时,可以看到里面包含了2部分的重建语句,一个是使用resetlogs,另一个是使用noresetlogs。备份控制文件的SQL 如下:SQL>alterdatabase backup controlfile to trace有关控制文件的详细说明,参考:Oracle 控制文件http://blog.csdn.net/tianlesoftware/article/details/4974440Set #1. NORESETLOGS caseThe followingcommands will 阅读全文
posted @ 2012-07-16 23:58 davedba 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 在启动数据库的时候,我们可能会遇到如下错误:ORA-1122 :database file %s failedverification checkORA-1110 : datafile :ORA-1207: ORA 1207 file is more recent thancontrol fileORA-1207的主要原因是因为数据库突然掉电,在重启的时候,就会容易遇到这种错误。MOS上对这个错误的解释如下:The informationin this file is inconsistent with information from the control file.The datafil 阅读全文
posted @ 2012-07-16 22:19 davedba 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 在启动数据库的时候,我们可能会遇到如下错误:ORA-1122 :database file %s failedverification checkORA-1110 : datafile :ORA-1207: ORA 1207 file is more recent thancontrol fileORA-1207的主要原因是因为数据库突然掉电,在重启的时候,就会容易遇到这种错误。MOS上对这个错误的解释如下:The informationin this file is inconsistent with information from the control file.The datafil 阅读全文
posted @ 2012-07-16 22:19 davedba 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 相关的理论说明,参考如下Blog:Oracle RACFailover 详解http://blog.csdn.net/tianlesoftware/article/details/5340788How To Configure Server Side TransparentApplication Failover [ID 460982.1]1.创建TAFService[oracle@db1 bin]$ ./srvctl add service -d orcl -s server_taf -r "orcl1,orcl2" -P BASIC--这里的orcl是database 阅读全文
posted @ 2012-07-15 13:41 davedba 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 相关的理论说明,参考如下Blog:Oracle RACFailover 详解http://blog.csdn.net/tianlesoftware/article/details/5340788How To Configure Server Side TransparentApplication Failover [ID 460982.1]1.创建TAFService[oracle@db1 bin]$ ./srvctl add service -d orcl -s server_taf -r "orcl1,orcl2" -P BASIC--这里的orcl是database 阅读全文
posted @ 2012-07-15 13:41 davedba 阅读(322) 评论(0) 推荐(0) 编辑
摘要: 文件传输协议: 文件传输是数据交换的主要形式。在进行文件传输时,为使文件能被正确识别和传送,我们需要在两台计算机之间建立统一的传输协议。这个协议包括了文件的识别、传送的起止时间、错误的判断与纠正等内容。在SecureCRT下的传输协议有ASCII、Xmodem、Ymodem、Zmodem4种。(1)ASCII:这是最快的传输协议,但只能传送文本文件。(2)Xmodem:这种古老的传输协议速度较慢,但由于使用了CRC错误侦测方法,传输的准确率可高达99.6%。(3)Ymodem:这是Xmodem的改良版,使用了1024位区段传送,速度比Xmodem要快。(4)Zmodem:Zmodem采用了串流 阅读全文
posted @ 2012-07-14 09:27 davedba 阅读(250) 评论(0) 推荐(0) 编辑
摘要: 文件传输协议: 文件传输是数据交换的主要形式。在进行文件传输时,为使文件能被正确识别和传送,我们需要在两台计算机之间建立统一的传输协议。这个协议包括了文件的识别、传送的起止时间、错误的判断与纠正等内容。在SecureCRT下的传输协议有ASCII、Xmodem、Ymodem、Zmodem4种。(1)ASCII:这是最快的传输协议,但只能传送文本文件。(2)Xmodem:这种古老的传输协议速度较慢,但由于使用了CRC错误侦测方法,传输的准确率可高达99.6%。(3)Ymodem:这是Xmodem的改良版,使用了1024位区段传送,速度比Xmodem要快。(4)Zmodem:Zmodem采用了串流 阅读全文
posted @ 2012-07-14 09:27 davedba 阅读(1889) 评论(0) 推荐(0) 编辑
摘要: 假设我们只能用Linux的命令模式,此时我们下载Oracle软件只能使用wget,但是Oracle 在权限这块管理越来越高,下载时需要验证帐号,具体使用wget的方式如下:wget -c --http-user=username --http-password=pwd --output-document=patchname.zip "Download_URL" -o logname.log &解释如下:-c 表示断点续传--http-user metalink帐号--http-password metalink密码--output-document 下载的文件名&q 阅读全文
posted @ 2012-07-13 23:35 davedba 阅读(1172) 评论(0) 推荐(0) 编辑
摘要: 假设我们只能用Linux的命令模式,此时我们下载Oracle软件只能使用wget,但是Oracle 在权限这块管理越来越高,下载时需要验证帐号,具体使用wget的方式如下:wget -c --http-user=username --http-password=pwd --output-document=patchname.zip "Download_URL" -o logname.log &解释如下:-c 表示断点续传--http-user metalink帐号--http-password metalink密码--output-document 下载的文件名&q 阅读全文
posted @ 2012-07-13 23:35 davedba 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 在AWR 看到local write waits和 enq: RO - fast object reuse 的 等待事件。 一.Local write waits 等待说明网上对local write waits 的说明:Note 1: Typically DBWRhas to free up some buffers when you want to read something from the disk.During this process there are chances that you will be waiting f... 阅读全文
posted @ 2012-07-10 23:07 davedba 阅读(462) 评论(0) 推荐(0) 编辑
摘要: 在AWR 看到local write waits和 enq: RO - fast object reuse 的 等待事件。 一.Local write waits 等待说明网上对local write waits 的说明:Note 1: Typically DBWRhas to free up some buffers when you want to read something from the disk.During this process there are chances that you will be waiting f... 阅读全文
posted @ 2012-07-10 23:07 davedba 阅读(446) 评论(0) 推荐(0) 编辑
摘要: 在AWR中,我们可能会看到如下信息: 这里是Read byother session 等待占用了很多的时间。关于Read by other session 的说明如下: When informationis requested from the database, Oracle will first read the data from disk intothe database buffer cache. If two or more sessions request the sameinformation, the first se... 阅读全文
posted @ 2012-07-10 22:12 davedba 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 在AWR中,我们可能会看到如下信息: 这里是Read byother session 等待占用了很多的时间。关于Read by other session 的说明如下: When informationis requested from the database, Oracle will first read the data from disk intothe database buffer cache. If two or more sessions request the sameinformation, the first se... 阅读全文
posted @ 2012-07-10 22:12 davedba 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 有时我们会在AWR中看到如下信息: 里面对应的3条SQL 如下:(1)call dbms_space.auto_space_advisor_job_proc( )(2)calldbms_stats.gather_database_stats_job_proc ( )(3)insert into wri$_adv_objspace_trend_dataselect timepoint, space_usage, space_alloc, quality fromtable(dbms_space.object_growth_trend(:... 阅读全文
posted @ 2012-07-10 22:06 davedba 阅读(584) 评论(0) 推荐(0) 编辑
摘要: 有时我们会在AWR中看到如下信息: 里面对应的3条SQL 如下:(1)call dbms_space.auto_space_advisor_job_proc( )(2)calldbms_stats.gather_database_stats_job_proc ( )(3)insert into wri$_adv_objspace_trend_dataselect timepoint, space_usage, space_alloc, quality fromtable(dbms_space.object_growth_trend(:... 阅读全文
posted @ 2012-07-10 22:06 davedba 阅读(793) 评论(0) 推荐(0) 编辑
摘要: 一.Rebuild索引与并行度说明在之前的Blog里整理了一些列有关索引相关的Blog,如下:Oracle 索引 详解http://blog.csdn.net/tianlesoftware/article/details/5347098如何加快建index 索引 的时间http://blog.csdn.net/tianlesoftware/article/details/5664019Oracle 索引扫描的五种类型http://blog.csdn.net/tianlesoftware/article/details/5852106Oracle 索引的维护http://blog.csdn.ne 阅读全文
posted @ 2012-07-10 21:11 davedba 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 一.Rebuild索引与并行度说明在之前的Blog里整理了一些列有关索引相关的Blog,如下:Oracle 索引 详解http://blog.csdn.net/tianlesoftware/article/details/5347098如何加快建index 索引 的时间http://blog.csdn.net/tianlesoftware/article/details/5664019Oracle 索引扫描的五种类型http://blog.csdn.net/tianlesoftware/article/details/5852106Oracle 索引的维护http://blog.csdn.ne 阅读全文
posted @ 2012-07-10 21:11 davedba 阅读(504) 评论(0) 推荐(0) 编辑
摘要: 一.物化视图日志格式说明Oracle 物化视图说明http://blog.csdn.net/tianlesoftware/article/details/4713553Oracle 物化视图 详细错误描述 查看方法http://blog.csdn.net/tianlesoftware/article/details/7719789Oracle 物化视图 快速刷新 限制 说明http://blog.csdn.net/tianlesoftware/article/details/7719679Oracle 的物化视图的快速刷新要求必须建立物化视图日志,通过物化视图日志可以实现增量刷新功能。官网的说 阅读全文
posted @ 2012-07-06 01:08 davedba 阅读(309) 评论(0) 推荐(0) 编辑
摘要: 一.物化视图日志格式说明Oracle 物化视图说明http://blog.csdn.net/tianlesoftware/article/details/4713553Oracle 物化视图 详细错误描述 查看方法http://blog.csdn.net/tianlesoftware/article/details/7719789Oracle 物化视图 快速刷新 限制 说明http://blog.csdn.net/tianlesoftware/article/details/7719679Oracle 的物化视图的快速刷新要求必须建立物化视图日志,通过物化视图日志可以实现增量刷新功能。官网的说 阅读全文
posted @ 2012-07-06 01:08 davedba 阅读(256) 评论(0) 推荐(0) 编辑
摘要: Oracle的物化视图提供了强大的功能,可以用于预先计算并保存表连接或聚集等耗时较多的操作的结果,这样,在执行查询时,就可以避免进行这些耗时的操作,而从快速的得到结果。关于物化视图相关的说明参考:Oracle 物化视图http://blog.csdn.net/tianlesoftware/article/details/4713553Oracle 物化视图 快速刷新 限制 说明http://blog.csdn.net/tianlesoftware/article/details/7719679 在我们创建物化视图失败时,Oracle给的错误信息过于简单,不能帮助我们定位具体的问题,Oracl. 阅读全文
posted @ 2012-07-05 20:02 davedba 阅读(272) 评论(0) 推荐(0) 编辑
摘要: Oracle的物化视图提供了强大的功能,可以用于预先计算并保存表连接或聚集等耗时较多的操作的结果,这样,在执行查询时,就可以避免进行这些耗时的操作,而从快速的得到结果。关于物化视图相关的说明参考:Oracle 物化视图http://blog.csdn.net/tianlesoftware/article/details/4713553Oracle 物化视图 快速刷新 限制 说明http://blog.csdn.net/tianlesoftware/article/details/7719679 在我们创建物化视图失败时,Oracle给的错误信息过于简单,不能帮助我们定位具体的问题,Oracl. 阅读全文
posted @ 2012-07-05 20:02 davedba 阅读(472) 评论(0) 推荐(0) 编辑
摘要: 在备份服务器上upload了很多文件,所以用批处理弄了个脚本,删除N天之前的文件,脚本只有一句,如下:delFiles.batforfiles /p E:\db_backup_history\dave /m * /d -20 /c "cmd /c del @file"forfiles /p E:\db_backup_history\anqing /m * /d -20 /c "cmd /c del @file"根据自己的目录添加forfiles命令,最后把批处理添加到系统的计划任务,定期执行就可以了。--------------------------- 阅读全文
posted @ 2012-06-29 12:31 davedba 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 在备份服务器上upload了很多文件,所以用批处理弄了个脚本,删除N天之前的文件,脚本只有一句,如下:delFiles.batforfiles /p E:\db_backup_history\dave /m * /d -20 /c "cmd /c del @file"forfiles /p E:\db_backup_history\anqing /m * /d -20 /c "cmd /c del @file"根据自己的目录添加forfiles命令,最后把批处理添加到系统的计划任务,定期执行就可以了。--------------------------- 阅读全文
posted @ 2012-06-29 12:31 davedba 阅读(434) 评论(0) 推荐(0) 编辑
摘要: 服务端用的Server-U,客户端是windows 2008,系统防火墙是开启的,win下的批处理脚本很简单,如下:upload.bat@echo offrem ////////////////////////////////////////////rem // Tianlesoftware rem // Files Upload Scriptsrem // 2012-6-29rem ////////////////////////////////////////////echo open 192.168.3.168 > ftp.txtecho username >> ftp 阅读全文
posted @ 2012-06-29 12:09 davedba 阅读(310) 评论(0) 推荐(0) 编辑
摘要: 服务端用的Server-U,客户端是windows 2008,系统防火墙是开启的,win下的批处理脚本很简单,如下:upload.bat@echo offrem ////////////////////////////////////////////rem // Tianlesoftware rem // Files Upload Scriptsrem // 2012-6-29rem ////////////////////////////////////////////echo open 192.168.3.168 > ftp.txtecho username >> ftp 阅读全文
posted @ 2012-06-29 12:09 davedba 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 一.问题描述在Oracle Linux 6.1 上安装11.2.0.1 的RAC,在安装grid时执行root.sh 脚本,报错,如下:[root@rac1 bin]#/u01/app/11.2.0/grid/root.shRunning Oracle 11g root.sh script...The following environment variables are setas:ORACLE_OWNER= oracleORACLE_HOME= /u01/app/11.2.0/gridEnter the full pathname of the local bindirectory: [/ 阅读全文
posted @ 2012-06-27 20:07 davedba 阅读(387) 评论(0) 推荐(0) 编辑
摘要: 一.问题描述在Oracle Linux 6.1 上安装11.2.0.1 的RAC,在安装grid时执行root.sh 脚本,报错,如下:[root@rac1 bin]#/u01/app/11.2.0/grid/root.shRunning Oracle 11g root.sh script...The following environment variables are setas:ORACLE_OWNER= oracleORACLE_HOME= /u01/app/11.2.0/gridEnter the full pathname of the local bindirectory: [/ 阅读全文
posted @ 2012-06-27 20:07 davedba 阅读(256) 评论(0) 推荐(0) 编辑
摘要: Oracle 11.2.0.1 的RAC,运行root.sh时报错,如下:[root@rac1 oracle]#/u01/app/11.2.0/grid/root.sh Running Oracle 11g root.sh script...The following environment variables are setas:ORACLE_OWNER= oracleORACLE_HOME= /u01/app/11.2.0/gridEnter the full pathname of the local bindirectory: [/usr/local/bin]: The file &q 阅读全文
posted @ 2012-06-27 20:01 davedba 阅读(230) 评论(0) 推荐(0) 编辑
摘要: Oracle 11.2.0.1 的RAC,运行root.sh时报错,如下:[root@rac1 oracle]#/u01/app/11.2.0/grid/root.sh Running Oracle 11g root.sh script...The following environment variables are setas:ORACLE_OWNER= oracleORACLE_HOME= /u01/app/11.2.0/gridEnter the full pathname of the local bindirectory: [/usr/local/bin]: The file &q 阅读全文
posted @ 2012-06-27 20:01 davedba 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 一.问题描述在Oracle Linux 6.1 上安装11.2.0.1的RAC,在第二个节点执行root.sh时,报time out,如下:[root@rac2 ~]# /u01/app/11.2.0/grid/root.shRunning Oracle 11g root.sh script...The following environment variables are setas:ORACLE_OWNER= oracleORACLE_HOME= /u01/app/11.2.0/gridEnter the full pathname of the local bindirectory: [ 阅读全文
posted @ 2012-06-27 19:56 davedba 阅读(270) 评论(0) 推荐(0) 编辑
摘要: 一.问题描述在Oracle Linux 6.1 上安装11.2.0.1的RAC,在第二个节点执行root.sh时,报time out,如下:[root@rac2 ~]# /u01/app/11.2.0/grid/root.shRunning Oracle 11g root.sh script...The following environment variables are setas:ORACLE_OWNER= oracleORACLE_HOME= /u01/app/11.2.0/gridEnter the full pathname of the local bindirectory: [ 阅读全文
posted @ 2012-06-27 19:56 davedba 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 一.问题描述 在VBox 上安装Oracle 11.2.0.1 的RAC, 在SSH 配置时报错:INS-06006: Passwordless SSHconnectivity not set up between the following node(s) 注意:这里奇怪的表现是我们setup是成功,仅仅是Test 失败。二.测试一尝试在2个节点手工的执行测试命令:[oracle@rac1 ~]$ ssh rac2 dateTue Jun 26 19:48:01 CST 2012[oracle@rac1 ~]$ ssh rac1 ... 阅读全文
posted @ 2012-06-26 20:47 davedba 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 一.问题描述 在VBox 上安装Oracle 11.2.0.1 的RAC, 在SSH 配置时报错:INS-06006: Passwordless SSHconnectivity not set up between the following node(s) 注意:这里奇怪的表现是我们setup是成功,仅仅是Test 失败。二.测试一尝试在2个节点手工的执行测试命令:[oracle@rac1 ~]$ ssh rac2 dateTue Jun 26 19:48:01 CST 2012[oracle@rac1 ~]$ ssh rac1 ... 阅读全文
posted @ 2012-06-26 20:47 davedba 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 一.DirectPath Reads 说明在oracle 11g以前的版本中,如果对大表进行全表扫描,wait event是:db file scattered read;在11g中,如果对大表进行全表扫描,wait event是:direct path read;即在11g中,大表全表扫描是将数据块直接读入会话的pga区域。(具体的查看方法参考后面的示例)。 在11g中,大表全表扫描时数据块不经过sga而直接进pga,这样会造成每次进行大表全表扫描,物理读都是很大,而在10g中,由于全表扫描的数据块在sga中已经存在,所以执行全表扫描时,它的物理读为0。 但是这里主要是oracle在优化策略 阅读全文
posted @ 2012-06-25 16:46 davedba 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 一.DirectPath Reads 说明在oracle 11g以前的版本中,如果对大表进行全表扫描,wait event是:db file scattered read;在11g中,如果对大表进行全表扫描,wait event是:direct path read;即在11g中,大表全表扫描是将数据块直接读入会话的pga区域。(具体的查看方法参考后面的示例)。 在11g中,大表全表扫描时数据块不经过sga而直接进pga,这样会造成每次进行大表全表扫描,物理读都是很大,而在10g中,由于全表扫描的数据块在sga中已经存在,所以执行全表扫描时,它的物理读为0。 但是这里主要是oracle在优化策略 阅读全文
posted @ 2012-06-25 16:46 davedba 阅读(212) 评论(0) 推荐(0) 编辑
摘要: This chapterexamines the mechanisms Oracle uses to create the linked liststhrough undo records and, most importantly, how the code locates the end pointsof those lists. --这一章主要看一下Oracle 创建和linked undo records,并且确认undorecords list的结束点。在前面的blog里提到Oracle 采用这种UNDO 机制的3个原因:readconsistency 和 Rollback,最后.. 阅读全文
posted @ 2012-06-25 15:16 davedba 阅读(853) 评论(0) 推荐(0) 编辑
摘要: This chapterexamines the mechanisms Oracle uses to create the linked liststhrough undo records and, most importantly, how the code locates the end pointsof those lists. --这一章主要看一下Oracle 创建和linked undo records,并且确认undorecords list的结束点。在前面的blog里提到Oracle 采用这种UNDO 机制的3个原因:readconsistency 和 Rollback,最后.. 阅读全文
posted @ 2012-06-25 15:16 davedba 阅读(391) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 32 下一页