木林森2014

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2014年11月17日

摘要: [oracle@trade1 ~]$ sqlplus user1/user1SQL*Plus: Release 11.2.0.3.0 Production on Tue Aug 6 14:31:15 2013Copyright (c) 1982, 2011, Oracle. All rights r... 阅读全文
posted @ 2014-11-17 16:47 木林森2014 阅读(173) 评论(0) 推荐(0) 编辑

摘要: 前言:需要把本地磁盘的所有数据文件,都移动到存储上去。步骤概要:1.shut immediate 停库2.host cp dbfile to new path3.修改参数中controlfile的位置,把数据库启动到mount4.rename相关文件5.alterdatabaseopen;本次具体实... 阅读全文
posted @ 2014-11-17 16:45 木林森2014 阅读(170) 评论(0) 推荐(0) 编辑

摘要: 目的:在不创建dumpfile前预估出需要的导出文件大小。 适用于export 实验步骤如下:OS: Linux test20 2.6.18-238.el5 #1 SMP Sun Dec 19 14:22:44 EST 2010 x86_64 x86_64 x86_64 GNU/LinuxORA... 阅读全文
posted @ 2014-11-17 16:43 木林森2014 阅读(521) 评论(0) 推荐(0) 编辑

摘要: 1. 在zabbix服务器上安装一下两个包: # yum -y installunixODBCmysql-connector-odbc2. 修改zabbix服务器上ODBC配置:2.1 Vim /etc/odbcinst.ini[MySQL5]Description = MySQL5Driver ... 阅读全文
posted @ 2014-11-17 16:01 木林森2014 阅读(222) 评论(0) 推荐(0) 编辑

摘要: 在11g之前,增加带default值的字段,实现原理如下:alter table t1 add c1 varchar2(20) default 'XX' not null;假设t1表有4千万行数据,oracle在执行上述DDL语句时,同时更新这4千万行数据成功后,才返回“成功提示”给用户。将可能导... 阅读全文
posted @ 2014-11-17 15:40 木林森2014 阅读(781) 评论(0) 推荐(0) 编辑