使用kfed修复磁盘组DSKGRP2
[@more@]1>. 编译产生kfed cd $ORACLE_HOME/rdbms/lib make -f ins_rdbms.mk ikfed chmod 751 /oracle/app/oracle/product/10.2.0/db_1/bin/kfed 2>. 查看磁盘组信息 select name,path,total_mb,free_mb,failgroup from v$asm_disk order by name ALTER DISKGROUP DSKGRP2 ADD DISK '/oracle/oradata/asmdisk04'; set lines 200 pages 80 col name for a20 col path for a40 select name,path,STATE,total_mb,free_mb,failgroup from v$asm_disk order by name; NAME PATH TOTAL_MB FREE_MB FAIL
Linux恢复误删的数据
如果由于某些原因误删了linux的数据文件,可以恢复的途径很多,现在介绍一个Linux本身自带的工具:debugfs,这里只是简单的介绍一下,debugfs实现的功能很多,大家有兴趣可以自己去研究研究:[@more@]进入debugfs模式:debugfs /dev/sdb1查找已经被删除的数据:debugfs 1.39 (29-May-2006)debugfs: lsdelInode Owner Mode Size Blocks Time deleted229870 0 100644 1511 1/ 1 Fri Jul 30 08:55:11 2010229871 0 100644 1625 1/ 1 Fri Jul 30 08:55:17 2010196613 0 40700 0 1/ 1 Fri Jul 30 08:55:30 2010212993 0 40700 0 1/ 1 Fri Jul 3
转载.Linux三大文件系统比较
最具权威的Linux三大文件系统比较分析报告,来自新墨西哥州的阿尔布开克,Gentoo首席执行官Daniel Robbins的报告:[@more@]关于作者作者作者 Daniel Robbins 住在美国新墨西哥州的阿尔布开克(Albuquerque)。他是 Gentoo Technologies,Inc. 的总裁兼 CEO、 Gentoo Linux(用于 PC 的高级 Linux)的创始人,以及 Portage 系统(Linux 的下一代 移植系统)的创始人。他还是 Macmillan 出版的 Caldera OpenLinux Unleashed、 SuSE Linux Unleashed和 Samba Unleashed 等书籍的作者。Daniel 自小学二年级起就与计算机结下不解之缘,那时他首先
转 Ext2 文件系统的硬盘布局
本文主要讲述 Linux 上比较流行的 ext2 文件系统在硬盘分区上的详细布局情况。Ext2 文件系统加上日志支持的下一个版本是 ext3 文件系统,它和 ext2 文件系统在硬盘布局上是一样的,其差别仅仅是 ext3 文件系统在硬盘上多出了一个特殊的 inode(可以理解为一个特殊文件),用来记录文件系统的日志,也即所谓的 journal。由于本文并不讨论日志文件,所以本文的内容对于 ext2 和 ext3 都是适用的。[@more@]前言本文的资料来源是 Linux 内核中 ext3 文件系统的源代码。为了便于读者查阅源代码,本文中一些关键的技术词汇都使用了内核源代码中所
IMP-00013: 只有 DBA 才能导入由其他 DBA 导出的文件
今天项目里需要导入一个dmp文件,可是导入的时候报:[@more@]连接到: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - ProductionWith the Partitioning, OLAP and Data Mining options经由常规路径由 EXPORT:V10.02.01 创建的导出文件IMP-00013: 只有 DBA 才能导入由其他 DBA 导出的文件IMP-00000: 未成功终止导入后来将源数据库的用户的DBA权限收回,重新导出,再重新导入:连接到: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - ProductionWith the Partitioning, OLAP and Data Mining options经由常规
Linux 文件系统剖析
在文件系统方面,Linux® 可以算得上操作系统中的 “瑞士军刀”。Linux 支持许多种文件系统,从日志型文件系统到集群文件系统和加密文件系统。对于使用标准的和比较奇特的文件系统以及开发文件系统来说,Linux 是极好的平台。本文讨论 Linux 内核中的虚拟文件系统(VFS,有时候称为虚拟文件系统交换器),然后介绍将文件系统连接在一起的主要结构。 [@more@]基本的文件系统体系结构Linux 文件系统体系结构是一个对复杂系统进行抽象化的有趣例子。通过使用一组通用的 API 函数,Linux 可以在许多种存储设备上支持许多种文件系统。例如,
用Powerdesigner的PDM生成数据库及逆向生成
pdm做好后,最终是要将其转化为数据库实体的。[@more@]1.确认当前Powerdesigner设置的dbms是否正确,即是否是我们要生成的数据库类型,我在这里使用的是sqlserver2000:Powerdesigner->数据库->更改当前dbms,选择您的数据库类型。2.配置Powerdesigner与数据源的连接Powerdesigner->数据库->配置连接->用户dsn(或系统dsn)->选择、添加您的数据源3.连接Powerdesigner->数据库->连接->设置好您刚才建立的dsn确定。OK,设置好连接后我们就可以将pdm生成sql语句了。4.数据库生成Powerdesigner->数据库->生成数据
PowerDesigner 中将Comment(注释)及Name(名称)内容互相COPY的VBS代码
[@more@]按住:ctrl+shift+xPowerDesigner->Tools->Execute Commands->Edit/Run Scripts代码一:将Name中的字符COPY至Comment中'****************************************************************************** '* File: name2comment.vbs '* Purpose: Database generation cannot use object names anymore ' in version 7 and above. ' It always uses the object codes. ' ' In case the object codes are not aligned with your ' object names in your model, this script will copy ' the object Name onto the object C
安装oracle10gRAC在node2节点上执行root.sh失败的问题
在node1节点上可以执行完root.sh脚本,可是在node2上执行的时候居然是:[root@node2 ~]# /opt/ora10g/product/10.2.0/crs_1/root.sh WARNING: directory '/opt/ora10g/product/10.2.0' is not owned by rootWARNING: directory '/opt/ora10g/product' is not owned by rootWARNING: directory '/opt/ora10g' is not owned by rootChecking to see if Oracle CRS stack is already configuredOracle CRS stack is already configured and will be running under init(1M)解决:mv /etc/oracle/scls_scr/node2/oracle/cssfatal /etc/oracle/
安装CRS失败后的清除操作
1、执行rootdelete.sh 、rootdeinstall.sh script文件在$ORA_CRS_HOME/install 目录下2、Stop the Nodeapps on all nodes:srvctl stop nodeapps -n 3、以root执行以下删除:[@more@]Sun:rm /etc/init.d/init.cssd rm /etc/init.d/init.crs rm /etc/init.d/init.crsd rm /etc/init.d/init.evmd rm /etc/rc3.d/K96init.crsrm /etc/rc3.d/S96init.crsrm -Rf /var/opt/oracle/scls_scr rm -Rf /var/opt/oracle/oprocdrm /etc/inittab.crs cp /etc/inittab.orig /etc/inittabLinux:rm /etc/oracle/*rm -f /etc/init.d/init.cssd rm -f /etc/ini
安装oracleRAC遇到的执行rootconfig: line 815: 10338 Segmentation fault
今天再安装OracleRAC的时候在执行root.sh脚本的时候遇到了以下错误:WARNING: directory '/opt/ora10g/product/10.2.0' is not owned by rootWARNING: directory '/opt/ora10g/product' is not owned by rootWARNING: directory '/opt/ora10g' is not owned by rootChecking to see if Oracle CRS stack is already configured Setting the permissions on OCR backup directorySetting up NS directories/opt/ora10g/product/10.2.0/db_1/install/rootconfig: line 815: 10338 Segmentation fault $CH/bin/ocrconfig -upgrade $CRS_
ERROR: ld.so: object '/lib/libcwait.so' from /etc/ld.so.preload cannot be preloaded: ignored.
今天再安装rpm包的时候居然碰到了ERROR,如下:ERROR: ld.so: object '/lib/libcwait.so' from /etc/ld.so.preload cannot be preloaded: ignored.ERROR: ld.so: object '/lib/libcwait.so' from /etc/ld.so.preload cannot be preloaded: ignored.ERROR: ld.so: object '/lib/libcwait.so' from /etc/ld.so.preload cannot be preloaded: ignored.ERROR: ld.so: object '/lib/libcwait.so' from /etc/ld.so.preload cannot be preloaded: ignored.ERROR: ld.so: object '/lib/libcwait.so' from /etc/ld.so.preload cannot be preloaded:
Bug 3111951 - OERI[ktspscaninit-d] 被阻断后的TRUNCATE
今天一个朋友在删除某个表的数据时,遇到了600错误:ksedmp: internal or fatal errorORA-00600: internal error code, arguments: [ktspScanInit-d], [46206537], [], [], [], [], [], []Current SQL statement for this session:delete table_tests Product (Component)Oracle Server (Rdbms)Range of versions believed to be affectedVersions < 10.1.0.2 Versions confirmed as being affected9.2.0.4 Platforms affectedGeneric (all / most platforms affected 在以下版本中存在该问题:9.2.05、10.1.0.2问题描述:ORA-600 [
ORACLE11G解决ORA-00845错误
在linux系统上,当启动oracle11g的时候会提示:ORA-845: MEMORY_TARGET not supported on this system[@more@]在这alter log文件里你也会发现以下提示:ORA-04031 errors ORStarting ORACLE instance (normal)WARNING: You are trying to use the MEMORY_TARGET feature.This feature requires the /dev/shm file system to be mounted for atLeast <size> bytes.The /dev/shm is either not mounted or is mountedWith available space less than this size.Please fix this so that MEMORY_TARGET can work as expected.Current a
安装oracle11g遇到的Oracle11g Error in invoking target类错误
OS:REDHAT5.3 64bitkernel:2.6.18ORACLE11G 64BIT FOR LINUX在安装oracle11g的时候copy完文件,进行link的时候报了许多Error in invoking target 类错误,说明是找不到lib包或者是编译器错误,检查gcc等编译器都是OK的,1、将/usr/bin下的gcc和gcc++替换为gcc34和gcc++342、在bash_profile内加入LD_LIBRARY_PATH=$ORACLE_HOME/lib3、重装OK[@more@]
安装oracle11g遇到的执行root.sh脚本问题
环境:REDHAT 5.3 64BITORACLE11G RAM 2G在安装到最后执行root.sh脚本的时候遇到以下错误:./root.sh: line 4: /oracle/app/oracle/product/11.2.0/grid/install/unix/rootadd.sh: Permission denied./root.sh: line 9: /oracle/app/oracle/product/11.2.0/grid/network/install/sqlnet/setowner.sh: Permission denied./root.sh: line 14: /oracle/app/oracle/product/11.2.0/grid/rdbms/install/rootadd_rdbms.sh: Permission denied./root.sh: line 16: /oracle/app/oracle/product/11.2.0/grid/rdbms/install/rootadd_filemap.sh: Perm
VM启动报:failed to launch peer process
是因为在进程里已经存在了:vmware-vmx.exe进程,kill掉该进程后重新启动则可![@more@]
【转】使用alternatives,自由切换linux的jdk版本
以前自己装上jdk之后,都是把java,javac做成链接替换掉/usr/bin/里面的gij的java和javac。但是这么做一直感觉都不是很“正规”,像是旁门左道。[@more@]前一阵子在网上看到有人说可以用一个叫做alternativs的工具来实现linux下软件版本的迁移,就决定使用alternatives来把jdk从gij迁移至我新装的jdk6.0。alternatives在/usr/sbin目录下首先需要把新安装的jdk添加到alternatives:[root@djn-laptop sbin]# ./alternatives --install /usr/bin/java java /usr/share/jdk1.6.0_02/bin/java 300[root@djn-laptop sbin]# ./alternatives --ins
Configure the hangcheck-timer Kernel Module
[@more@]Configure the hangcheck-timer Kernel Module Perform the following configuration procedures on all nodes in the cluster! Oracle9i Release 1 (9.0.1) and Oracle9i Release 2 ( 9.2.0.1) used a userspace watchdog daemon called watchdogd to monitor the health of the cluster and to restart a RAC node in case of a failure. Starting with Oracle9i Release 2 (9.2.0.2) (and still available in Oracle 10g Release 2), the watchdog daemon has been deprecated by a Linux kernel module named hangcheck-timer
LVM命令详解
[@more@]L dumpconfig 将LVM的配置信息展现出来formats 列出可用的格式化类型help 显示帮助信息lvchange 改变逻辑卷的属性lvconvert 改变逻辑卷的布局lvcreate 创建 逻辑卷lvdisplay 显示逻辑卷的信息lvextend 向一个逻辑卷里增加空间lvmchange 已经废弃lvmdiskscan 显示当前系统内是物理卷的设备lvmsadc 收集活动的数据lvmsar 创建活动报告lvreduct 减小当前卷的大小lvremove 从当前系统中删除逻辑卷lvrename 重命名逻辑卷lvresize 重置逻辑卷的大小lvs 显示逻辑卷的信息lvscan 显示所有逻辑组中的逻辑卷pvchange 更改物理卷的属性pvresi