DUAL表误删除恢复
昨天晚上接到同事来电,说dual表不小心被删除了,现在无法创建,于是研究了下dual表的恢复,现在模拟还原如下:dual表是系统的一个虚表,用来构成select的语法规则。如果不小心删除了的话,会导致数据库起不来,报错ORA-01092: ORACLE instance terminated. Disconnection forced。数据库版本10.2.0.4OS:linux[oracle@rac1 ~]$ uname -aLinux rac1 2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:27:17 EDT 2006 i686 athlon i386 GNU/Linux过程如下:[oracle@rac1 ~]$ sqlplus "/as sysdba"SQL*Plus: Release 10.2.0.4.0 - Production on
cursor handle heap0 subheap
SELECT * FROM x$kglob t WHERE t.KGLHDNSP=0;--cursor--3 B7F20884 4 1 804DF308 804DF3EC 4 select count(*) from snap$ s where bitand(s.flag, 8192) = 8192 and s.sowner not in ('SYS', 'SYSTEM', 'SH') <CLOB> 2247622696 a03d50151f420947b377a00e85f80028 2010-12-17 23:50:54 0 0 0 268501248 7F24A62C 2 0 1 0 0 1 0 1 1 0 0 3420 0 0 0 0 0 8136 0 7A4E9B90 00 00 00 00 00 77E7BA68 00 0 0 00 -32496 0 3 b6xx01u2zh018 1 1 1 7
table/procedure handle heap0 subheap
SELECT * FROM x$kglob t WHERE t.KGLHDNSP=1 AND t.kglhdadr='80BB2574';--table/procedure t.kglhdadr = t.kglhdparg_noap.CLT_CM_HWV3R8_BTSPWRC--1 B7F70694 1 1 80BB2574 80BB2574 5 G_NOAP CLT_CM_HWV3R8_BTSPWRC <CLOB> 1758986246 3325057b884121249d976d5468d80006 2010-10-28 14:23:16 1 0 0 33554432 74358D70 4 0 0 0 0 1857 0 5 1 2 0 1436 0 0 0 0 0 18696 0 7AFA99FC 00 00 00 00 00 74359048 00 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
solaris10 修改ip 后是否需要重启?
solaris10 下 修改ip 要更改 几 个文件/etc/hosts ---修改ip -- ln 自 /etc/inet/ipnodes/etc/netmasks --掩码改变时 修改掩码/etc/defaultrouter --网关改变时,重新制定网关。修改完成后 。不需重启机器。使用solaris 的svc 来重启 网卡服务。 svc 类似于 linux 的 service restart network 。 aix 的 startsrc stopsrc lssrc.bash-3.00# svcadm Usage: svcadm [-v] [cmd [args ... ]] svcadm enable [-rst] <service> ... - enable and online service(s) svcadm disable [-st] <service> ... -
asm删除磁盘
11r2 asm和db 分离,如果想用asm 需要先安装grid。 安装grid时推荐添加 grid用户。 #su - grid $ sqlplus "/as sysdba" SQL*Plus: Release 11.2.0.1.0 Production on Fri Dec 24 12:41:59 2010 Copyright (c) 1982, 2009, Oracle. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production With the Automatic Storage Management option SQL> conn /as SP2-0306: Invalid option. Usage: CONN[ECT] [{logon|/|proxy} [AS {SYSDBA|SYSOPER|SYSASM}]
11.2.0.1 exp-00006 exp-00000 bug
Applies to: Oracle Server - Enterprise Edition - Version: 11.1.0.7 to 11.2.0.1 - Release: 11.1 to 11.2Information in this document applies to any platform.SymptomsWhen exporting a composite or system partitioned table using conventional export utility, it fails with EXP-6 and EXP-0 errors.EXP-00006: internal inconsistency errorEXP-00000: Export terminated unsuccessfullyCauseA bug has been filed regarding this problem Bug 7834212However, it should be noted that the new composite partitioning and