<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">博客园_酷鸭战线_分类_4.数据库</title><id>http://feed.cnblogs.com/blog/u/7702/category/14396/rss</id><updated>2012-05-28T07:45:32Z</updated><generator>feed.cnblogs.com</generator><link rel="alternate" type="text/html" href="http://www.cnblogs.com/QDuck/category/14396.html"/><link rel="self" type="application/atom+xml" href="http://feed.cnblogs.com/blog/u/7702/category/14396/rss"/><entry><id>http://www.cnblogs.com/QDuck/archive/2012/05/04/2482372.html</id><title type="text">How To Add Day, Hour, Minute, Second to a Date Value in Oracle</title><summary type="text">Add a day.select to_date('02-22-2008 10:30:30','mm-dd-yyyy hh24:mi:ss') today,to_date('02-22-2008 10:30:30','mm-dd-yyyy hh24:mi:ss')+1 next_dayfrom dual;TODAY NEXT_DAY------------------------- -------------------------02-22-08 10:30:30 02-23-08 10:30:30Add an hour.sel</summary><published>2012-05-04T03:05:00Z</published><updated>2012-05-04T03:05:00Z</updated><author><name>QDuck</name><uri>http://www.cnblogs.com/QDuck/</uri></author><link rel="alternate" href="http://www.cnblogs.com/QDuck/archive/2012/05/04/2482372.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/QDuck/archive/2012/05/04/2482372.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/QDuck/archive/2012/04/11/2442025.html</id><title type="text">oracle 密码规则</title><summary type="text">From what I've read on the web, I'm guessing that the following rules applyThe password must start with a letter (Oracle database passwords are not case sensitive)Subsequent characters may be letters, numbers, or the symbols # (pound sign), $ (dollar sign) or _ (underscore).Also do not use w</summary><published>2012-04-11T03:29:00Z</published><updated>2012-04-11T03:29:00Z</updated><author><name>QDuck</name><uri>http://www.cnblogs.com/QDuck/</uri></author><link rel="alternate" href="http://www.cnblogs.com/QDuck/archive/2012/04/11/2442025.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/QDuck/archive/2012/04/11/2442025.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/QDuck/archive/2011/12/06/2278381.html</id><title type="text">ORACLE 11g R2 归档模式</title><summary type="text">archive log listshow parameter clusterstartup nomountalter database mount;alter database archivelog;archive log list;</summary><published>2011-12-06T11:06:00Z</published><updated>2011-12-06T11:06:00Z</updated><author><name>QDuck</name><uri>http://www.cnblogs.com/QDuck/</uri></author><link rel="alternate" href="http://www.cnblogs.com/QDuck/archive/2011/12/06/2278381.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/QDuck/archive/2011/12/06/2278381.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/QDuck/archive/2011/09/05/2167727.html</id><title type="text">Oracle PLSQL 学习笔记(块、控制结构、过程、函数、包)</title><summary type="text">Oracle PL/SQL学习笔记一、PL/SQL 块块定义语法：DECLARE/* 定义部分——定义常量、变量、复杂数据类型、游标*/BEGIN/* 执行部分——PL/SQL语句和SQL语句*/EXCEPTION/* 异常处理部分——处理运行错误*/ END; 注：PL/SQL中结束输入使用‘/’字符dbms_output.put_line(“输出的字符串内容”);dbms_output是oracle提供的系统包；put_line 是该包中的过程，用于输出字符串信息。当使用dbms_output包时必须要先激活服务器输出激活服务器输出语句： set serveroutput on示例：DEC</summary><published>2011-09-05T09:01:00Z</published><updated>2011-09-05T09:01:00Z</updated><author><name>QDuck</name><uri>http://www.cnblogs.com/QDuck/</uri></author><link rel="alternate" href="http://www.cnblogs.com/QDuck/archive/2011/09/05/2167727.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/QDuck/archive/2011/09/05/2167727.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/QDuck/archive/2011/09/02/2163585.html</id><title type="text">Exp出这个错</title><summary type="text">Exp出这个错PLS-00201: 必须宣告识别项 'DMSYS.DBMS_DM_MODEL_EXP'即将汇出设定的使用者 .... 正在汇出预先纲要程序对象与动作EXP-00008: ORACLE 错误 6550 发生ORA-06550: 第 1 行, 第 13 个字段:PLS-00201: 必须宣告识别项 'DMSYS.DBMS_DM_MODEL_EXP'ORA-06550: 第 1 行, 第 7 个字段:PL/SQL: Statement ignoredEXP-00083: 当呼叫 DMSYS.DBMS_DM_MODEL_EXP.schema_info_e</summary><published>2011-09-02T04:15:00Z</published><updated>2011-09-02T04:15:00Z</updated><author><name>QDuck</name><uri>http://www.cnblogs.com/QDuck/</uri></author><link rel="alternate" href="http://www.cnblogs.com/QDuck/archive/2011/09/02/2163585.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/QDuck/archive/2011/09/02/2163585.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/QDuck/archive/2011/07/06/2098964.html</id><title type="text">利用SqlBulkCopy快速大批量导入数据(SqlBulkCopy强大 转）</title><summary type="text">实际的开发可能会遇到数据大批量插入数据的问题，若是一条条的循环倒数效率非常低下，这个较好的解决方案12 protected void Button1_Click(object sender, EventArgs e)3 {45 DateTime beginTime = DateTime.Now;6 Response.Write("开始时间：" + beginTime.ToString("yyyy年MM月dd日：HH:mm:ss:fff"));78 //构造一个Datatable存储将要批量导入的数据9 DataTable dt = new DataTab</summary><published>2011-07-06T02:36:00Z</published><updated>2011-07-06T02:36:00Z</updated><author><name>QDuck</name><uri>http://www.cnblogs.com/QDuck/</uri></author><link rel="alternate" href="http://www.cnblogs.com/QDuck/archive/2011/07/06/2098964.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/QDuck/archive/2011/07/06/2098964.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/QDuck/archive/2011/06/30/2094996.html</id><title type="text">RHEL 5防火墙说明</title><summary type="text">众所周知防火墙是计算机的安全性的重要保障，所以在RHEL 5防火墙的设置中也很很要，也正是因为它很重要所以在这里要对这个重要而又繁琐的RHEL 5防火墙设置进行一下详细的描述。在RHEL5.2上安装好了Oracle，可以开始进行Oracle练习了。由于我的RHEL是安装在虚拟机上的，总在虚拟机里操作终归不是那么方便并且响应速度也较慢。好在Oracle 10g里已经有了B/S的管理界面，那么在VM的Host上操作岂不是简单、快捷！虚拟机(VM)IP:10.10.10.197，虚拟机主机(HOST)IP:10.10.10.198，桥接方式（Bridged）连接。可当我在浏览器地址栏输入地址http</summary><published>2011-06-30T13:09:00Z</published><updated>2011-06-30T13:09:00Z</updated><author><name>QDuck</name><uri>http://www.cnblogs.com/QDuck/</uri></author><link rel="alternate" href="http://www.cnblogs.com/QDuck/archive/2011/06/30/2094996.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/QDuck/archive/2011/06/30/2094996.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/QDuck/archive/2011/06/27/2091702.html</id><title type="text">example how to build RPM package from source package</title><summary type="text">This is example how to build RPM package from source package (libaio-0.3.105-2.src.rpm). Note gcc, make and rpm-build (and dependent) packages must be already installed on your system.# rpm -ivh libaio-0.3.105-2.src.rpm# cd /usr/src/redhat/SPECS/# rpmbuild --target i386 libaio.spec# cd ../RPMS/i386/</summary><published>2011-06-27T14:25:00Z</published><updated>2011-06-27T14:25:00Z</updated><author><name>QDuck</name><uri>http://www.cnblogs.com/QDuck/</uri></author><link rel="alternate" href="http://www.cnblogs.com/QDuck/archive/2011/06/27/2091702.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/QDuck/archive/2011/06/27/2091702.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/QDuck/archive/2011/06/18/2084407.html</id><title type="text">LINUX配置网络IP地址。成功设置。</title><summary type="text">#vi /etc/syssconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 BOOTPROTO=static HWADDR= ;这里是你网卡的物理地址，通常检测到的网卡你就不用输入了 ONBOOT=yes IPADDR=192.168.0.1 NETMASK=255.255.255.0 NETWORK=192.168.1.0 BROADCAST=192.168.1.255 GATEWAY= ;这里输入你的网关，路由器的IP地址 保存退出 ＃/sbin/service network restart 如果网卡启动是OK的话就说明IP地址设定成功了。另外我</summary><published>2011-06-18T13:37:00Z</published><updated>2011-06-18T13:37:00Z</updated><author><name>QDuck</name><uri>http://www.cnblogs.com/QDuck/</uri></author><link rel="alternate" href="http://www.cnblogs.com/QDuck/archive/2011/06/18/2084407.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/QDuck/archive/2011/06/18/2084407.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/QDuck/archive/2011/06/17/2083573.html</id><title type="text">Linux系统中增加Swap分区大小(转)</title><summary type="text">1、检查当前的分区情况:[root@localhost]#free -m2、增加交换分区文件及大小，如果要增加2G大小的交换分区，则命令写法如下，其中的 count 等于想要的块大小。[root@localhost]# dd if=/dev/zero of=/home/swap bs=1024 count=20480003、设置交换文件：[root@localhost]# mkswap /home/swap4、立即启用交换分区文件 [root@localhost]# swapon /home/swap5、如果要在引导时自动启用，则编辑 /etc/fstab 文件，添加行：/home/swap </summary><published>2011-06-17T06:10:00Z</published><updated>2011-06-17T06:10:00Z</updated><author><name>QDuck</name><uri>http://www.cnblogs.com/QDuck/</uri></author><link rel="alternate" href="http://www.cnblogs.com/QDuck/archive/2011/06/17/2083573.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/QDuck/archive/2011/06/17/2083573.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/QDuck/archive/2011/06/16/2082848.html</id><title type="text">Oracle Database 11g Release 2 (11.2) Installation On Oracle Linux 6</title><summary type="text">Oracle Database 11g Release 2 (11.2) Installation On Oracle Linux 6This article describes the installation of Oracle Database 11g Release 2 (11.2) (64-bit) onOracle Linux 6(64-bit). The article is based on a server installation with a minimum of 2G swap, with both SELinux and the firewall disabled. </summary><published>2011-06-16T08:41:00Z</published><updated>2011-06-16T08:41:00Z</updated><author><name>QDuck</name><uri>http://www.cnblogs.com/QDuck/</uri></author><link rel="alternate" href="http://www.cnblogs.com/QDuck/archive/2011/06/16/2082848.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/QDuck/archive/2011/06/16/2082848.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/QDuck/archive/2011/06/16/2082840.html</id><title type="text">Oracle Linux 6 Installation</title><summary type="text">This article provides a pictorial guide for performing a default installation ofOracle Linux 6.Basic InstallationFirewallSELinuxBasic InstallationBoot from the DVD. At the boot screen, press the "Enter" key.Press the "tab" key to move focus to the "Skip" key, then press</summary><published>2011-06-16T08:36:00Z</published><updated>2011-06-16T08:36:00Z</updated><author><name>QDuck</name><uri>http://www.cnblogs.com/QDuck/</uri></author><link rel="alternate" href="http://www.cnblogs.com/QDuck/archive/2011/06/16/2082840.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/QDuck/archive/2011/06/16/2082840.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/QDuck/archive/2011/01/28/1946800.html</id><title type="text">ORA-12518 TNS:监听程序无法分发客户机连接 解决办法(转)</title><summary type="text">ORA-12518: TNS:listener could not hand off client connection2008-06-23 08:57ORA-12518: TNS:listener could not hand off client connectionCause: The process of handing off a client connection to another process failed.Action: Turn on listener tracing and re-execute the operation. Verify that the liste</summary><published>2011-01-28T02:20:00Z</published><updated>2011-01-28T02:20:00Z</updated><author><name>QDuck</name><uri>http://www.cnblogs.com/QDuck/</uri></author><link rel="alternate" href="http://www.cnblogs.com/QDuck/archive/2011/01/28/1946800.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/QDuck/archive/2011/01/28/1946800.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/QDuck/archive/2010/12/27/1917838.html</id><title type="text">Oracle数据库创造TPC-C性能测试世界纪录(转)</title><summary type="text">权威性能测试组织TPC美国时间12月3日确认，Oracle公司前一天提交的SPARC T3-4 Supercluster以tmpC（每分钟处理的事务数）30 249 688创造了TPC-C性能测试的新纪录。原记录由IBM Power 780 Server Model 9179-MHB于今年8月创造。而且Oracle的新机器性价比也远较IBM出色。在该测试的前10名里，IBM占据了5席，Oracle两席，富士通两席，HP和Bull各一席。如果按数据库来分，则基本上是DB2与Oracle平分秋色。操作系统中AIX占据5席，Red Hat Enterprise Linux 2席，Solaris 2席</summary><published>2010-12-27T04:33:00Z</published><updated>2010-12-27T04:33:00Z</updated><author><name>QDuck</name><uri>http://www.cnblogs.com/QDuck/</uri></author><link rel="alternate" href="http://www.cnblogs.com/QDuck/archive/2010/12/27/1917838.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/QDuck/archive/2010/12/27/1917838.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/QDuck/archive/2010/12/22/1914003.html</id><title type="text">面向程序员的数据库访问性能优化法则(不得不转)</title><summary type="text">面向程序员的数据库访问性能优化法则特别说明：1、本文只是面对数据库应用开发的程序员，不适合专业DBA，DBA在数据库性能优化方面需要了解更多的知识；2、本文许多示例及概念是基于Oracle数据库描述，对于其它关系型数据库也可以参考，但许多观点不适合于KV数据库或内存数据库或者是基于SSD技术的数据库；3、本文未深入数据库优化中最核心的执行计划分析技术。读者对像：开发人员：如果你是做数据库开发，那本文的内容非常适合，因为本文是从程序员的角度来谈数据库性能优化。架构师：如果你已经是数据库应用的架构师，那本文的知识你应该清楚90%，否则你可能是一个喜欢折腾的架构师。DBA（数据库管理员）：大型数据库</summary><published>2010-12-22T08:27:00Z</published><updated>2010-12-22T08:27:00Z</updated><author><name>QDuck</name><uri>http://www.cnblogs.com/QDuck/</uri></author><link rel="alternate" href="http://www.cnblogs.com/QDuck/archive/2010/12/22/1914003.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/QDuck/archive/2010/12/22/1914003.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/QDuck/archive/2010/11/20/1882796.html</id><title type="text">从完好的数据文件恢复oracle数据库</title><summary type="text">作者: ddvip, 出处:IT专家网论坛,责任编辑: 陈子琪,2010-04-12 07:00有数据文件、控制文件和日志文件的备份1.服务器重装了操作系统，Oracle也重装了。如果重装的oracle和以前损坏的数据库是一模一样的结构，那么此时的恢复是比较简单的。一。有数据文件、控制文件和日志文件的备份1.服务器重装了操作系统，Oracle也重装了。如果重装的oracle和以前损坏...</summary><published>2010-11-20T14:10:00Z</published><updated>2010-11-20T14:10:00Z</updated><author><name>QDuck</name><uri>http://www.cnblogs.com/QDuck/</uri></author><link rel="alternate" href="http://www.cnblogs.com/QDuck/archive/2010/11/20/1882796.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/QDuck/archive/2010/11/20/1882796.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/QDuck/archive/2010/10/28/1863387.html</id><title type="text">今天遇到Oracle审计表AUD$数据过大问题</title><summary type="text">How to truncate or delete rows from audit trail table sys.aud$ 1)Only appropriate privileged user can do delete operation on SYS.AUD$ table. The user must have either of the following privileges.-SYS ...</summary><published>2010-10-28T05:36:00Z</published><updated>2010-10-28T05:36:00Z</updated><author><name>QDuck</name><uri>http://www.cnblogs.com/QDuck/</uri></author><link rel="alternate" href="http://www.cnblogs.com/QDuck/archive/2010/10/28/1863387.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/QDuck/archive/2010/10/28/1863387.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/QDuck/archive/2010/10/22/1858061.html</id><title type="text">DBA案例分析：如何解决CPU占用100%的问题</title><summary type="text">摘要：本文来自于DBA实践第一线，具体情况，具体分析，全程回放，如何解决CPU占用率达100%的过程和全景。在持续调整优化表和索引，并且重新组织索引碎片后，SQL SERVER 2005的CPU再度从平均50%下降到10%左右了。</summary><published>2010-10-22T02:27:00Z</published><updated>2010-10-22T02:27:00Z</updated><author><name>QDuck</name><uri>http://www.cnblogs.com/QDuck/</uri></author><link rel="alternate" href="http://www.cnblogs.com/QDuck/archive/2010/10/22/1858061.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/QDuck/archive/2010/10/22/1858061.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/QDuck/archive/2010/10/22/1858046.html</id><title type="text">用sp_lock诊断SQL Sever的性能问题(数据库管理员不得不看)转的。</title><summary type="text">在IT 专家中有一种普遍的误解，就是认为“锁定是不好的东西”，你必须尽一切可能保证数据库锁定不会使得进程无法正常运行。为了能够确保一个一致的数据库环境，在对资源进行修改时，数据库引擎必须利用一种机制来获得对资源的独占权。SQL Server中也用锁定，它们是指为了达到这种一致性，数据库引擎用来保证每一次只有一个线程同时访问同一个资源的对象。如果不用锁定的话，各个进程同时进行...</summary><published>2010-10-22T02:13:00Z</published><updated>2010-10-22T02:13:00Z</updated><author><name>QDuck</name><uri>http://www.cnblogs.com/QDuck/</uri></author><link rel="alternate" href="http://www.cnblogs.com/QDuck/archive/2010/10/22/1858046.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/QDuck/archive/2010/10/22/1858046.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/QDuck/archive/2010/09/14/1826016.html</id><title type="text">让sqlserver恢复到某个时间点(转)</title><summary type="text">如果要让sqlserver恢复到某个时间点的状态，是否可行呢？答案是肯定的，下面就教您这种sqlserver恢复的方法，供您参考，希望在您学习sqlserver恢复的过程中能起到些许作用。【编辑推荐】</summary><published>2010-09-14T08:22:00Z</published><updated>2010-09-14T08:22:00Z</updated><author><name>QDuck</name><uri>http://www.cnblogs.com/QDuck/</uri></author><link rel="alternate" href="http://www.cnblogs.com/QDuck/archive/2010/09/14/1826016.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/QDuck/archive/2010/09/14/1826016.html"/><content type="html"/></entry></feed>
