- 博客(18)
- 收藏
- 关注
原创 确定是否安装IIS服务
控制面板—> 性能与维护->管理工具 无 Internet 信息服务运行里面输入Inetmgr回车弹出: 确定未安装IIS,安装IIS(省略):控制面板—> 性能与维护->管理工具有Internet 信息服务运行里面输入Inetmgr回车弹出: IIS安装成功
2013-12-16 22:21:21 991
原创 rebuild 索引遭遇ORA-02243
rebuild index 是,rebuild要紧跟索引名后面,在其他选项前面,否则会报错:SQL> alter index IND_ABC rebuild;Index altered.SQL> alter index IND_ABC online rebuild;alter index IND_ABC online rebuild
2013-12-12 16:53:13 3334
原创 11gR2修改index状态为unusable,则删除index的segment
11gR2修改index状态为unusable,则相应的segment将会被删除,测试如需:SQL> create table MY_OBJECTS as select * from dba_objects;Table created.SQL> create index ind_object_id on my_objects(object_id);Index creat
2013-12-10 17:25:51 1395
翻译 Using Flashback Drop and Managing the Recycle Bin
Using Flashback Drop and Managing the Recycle Bin使用闪回删除和管理回收站When you drop a table, the database does not immediately remove the space associated with the table. The database renames the table
2013-12-06 16:49:08 1011
原创 Error accessing PRODUCT_USER_PROFILE
$sqlplus / as sysdbaSQL*Plus: Release 11.2.0.3.0 Production on Thu Dec 5 14:33:44 2013Copyright (c) 1982, 2011, Oracle. All rights reserved.Connected to:Oracle Database 11g Enterprise
2013-12-05 14:51:15 1478
原创 oracle实现对表dml错误记录日志
DBMS_ERRLOG提供了一个存储过程CREATE_ERROR_LOG,这个存储过程创建一个错误日志表,当DML出错时,操作不会终止和回滚,而是将相关的错误写到错误日志表中。 CREATE_ERROR_LOG不支持一些数据类型:LONG, CLOB,BLOB,BFILE, and ADT。 简单示例:SQL> create unique index ind
2013-12-05 11:12:24 1228
翻译 oracle 选择数据块大小
选择数据块大小A block size of 8 KB is optimal for most systems.However, OLTP systems occasionally use smaller block sizes and DSSsystems occasionally use larger block sizes. This section discussesconsidera
2013-12-05 11:10:19 1973
原创 oracle dual表
dual表是一个小表,属于sys但是可以被所有用户使用。用户编写的程序可以引用来保证一个已知的结果。当一个值仅仅返回一次,dual表非常有用,例如,查询当前的日期和时间。 dual表只有一列和一行数据,数据为"X",如下:SQL> desc dual Name Null? Type ----------
2013-12-05 11:08:48 1086
原创 /var/tmp/目录无.oracle导致listener启动失败
在测试设备上,原先错误操作,对/var/tmp/目录的权限做过修改,今天在这个测试设备上恢复启动一个oracle数据库,启动监听时报错: [oracle@localhost admin]$ lsnrctl start LSNRCTLfor Linux: Version 10.2.0.2.0 - Production on 04-JAN-201210:10:11 Copy
2013-12-04 15:51:45 1612
原创 linux shell改为英文显示
#vi /etc/sysconfig/i18n将ANG="zh_CN.UTF-8"SYSFONT="latarcyrheb-sun16"改为LANG="en_US.UTF-8"SYSFONT="latarcyrheb-sun16"2.#source /etc/sysconfig/i18n3.exit后重新登录4.检测# chkconfig --l
2013-12-04 15:48:55 4673
原创 ORA-00600: internal error code, arguments: [opifal.1]
oracle版本:10.2.0.2 并做已做data guard操作系统:linux rhat 5.6 x64最近在主库oracle alert日志发现,最近半个月,几乎每天都会产生一次ora 600错误,如下:Errors in file/oracle/admin/hycrm/bdump/hycrm_s000_27823.trc:ORA-00600: internal e
2013-12-04 09:06:51 1215
原创 删除分区表所在表空间遇到ora-14401错误
数据库:oracle11.2.0.3删除分区表所在表空间遇到ora14401错误: SYS@vimop01_b>drop tablespaceUSER_TS_MONI_11B including contents and datafiles;drop tablespace USER_TS_MONI_11B including contents anddatafiles*
2013-12-04 09:05:06 1482
原创 varchar2转化nvarchar2类型乱码
开发人员有个需求,需将一个字符串,转成nvarchar2类型。但是测试是乱码,例句如下:SQL> select(selectutl_raw.cast_to_nvarchar2(utl_raw.cast_to_raw('i am nvarchar2string')) from dual) from dual;(SELECTUTL_RAW.CAST_TO_NVARCHAR2(UTL_R
2013-12-03 17:00:50 5620
翻译 Shrinking a Locally Managed Temporary Tablespace
Shrinking a Locally Managed Temporary Tablespace Large sortoperations performed by the database may result in a temporarytablespace growing and occupying a considerable amount of diskspace. A
2013-12-03 16:58:17 719
转载 可能导致index unusable的维护操作
Six types of maintenance operationscan mark index partitions INDEX UNUSABLE.In all cases, you must rebuild the index partitions when theoperation iscomplete. 1) Operations like Import Parti
2013-12-03 16:56:19 1348
翻译 oracle终止session
有时候,oracle终止当前的session是必要的。例如,你想执行一个管理操作,需要终止所有非管理员的session。下面描述的是终止session的各个方面,包括以下: 1.标识哪些session需要终止 2.终止一个Active Session 3.终止一个Inactive Session 当一个session被终止,session的任何活动事务
2013-12-03 16:54:48 2823
翻译 Row Chaining and Row Migration
Row Chaining and Row Migration行链接和行迁移Introduction------------介绍This article discusses the difference between row chaining andmigration.Guidelines are given on how to detect and resolve
2013-12-03 16:37:40 874
原创 oracle 11gR2 创建无数据对象临时不分配segment
做实验发现oracle11gR2,创建无数据的table、index等对象,oracle为了节省空间,开始并不分配segment,而是等有dml操作时才会分配segment,即使dml回滚,分配的segment并不回收。简单实验如下:SQL> create table test(a number);Table created.SQL> create index ind_test
2013-12-03 10:32:47 832
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人