SQL> oradebug dumpvar sga kcsgscn_ kcslf kcsgscn_ [7000000000182A0, 7000000000182D0) = 00000943 93E2E077...00000000 00000000 00000000 00000000 00000000 07000000 00017F80 kcsgscn_就是SCN的值,所以其值会不断往上增长: SQL> oradebug dumpvar...SQL> oradebug dumpvar sga kcsgscn_ kcslf kcsgscn_ [06001AD30, 06001AD60) = 40012D2C 00000000 00000000...SQL> oradebug dumpvar sga kcsgscn_ kcslf kcsgscn_ [06001AD30, 06001AD60) = 00000000 00000000 00000000...0x80000000 BEFORE: [06001AD30, 06001AD34) = 00000000 AFTER: [06001AD30, 06001AD34) = 80000000 SQL> oradebug dumpvar
SQL> oradebug dumpvar sga kcsgscn_ kcslf kcsgscn_ [700000000019B70, 700000000019BA0) = 00000000 00000000...700000000019B78) = 00000000 00000000 AFTER: [700000000019B70, 700000000019B78) = 00000007 96013308 SQL> oradebug dumpvar...conn /as sysdba SQL>startup nomount; SQL>@create_controlfile.sql SQL>oradebug setmypid SQL>oradebug dumpvar...sga kcsgscn_ SQL>oradebug poke 0x700000000019B70 8 32681432564 SQL>oradebug dumpvar sga kcsgscn_ SQL
power(2,32) + 2516661000 from dual; 32581432072 使用oradebug poke进行SCN推进: oradebug setmypid oradebug dumpvar...sga kcsgscn_ oradebug poke 0x700000000019B70 8 32581432072 oradebug dumpvar sga kcsgscn_ 推进SCN后,尝试直接开库报错...SQL> oradebug dumpvar sga kcsgscn_ kcslf kcsgscn_ [700000000019B70, 700000000019BA0) = 00000000 00000000...recover again.. conn /as sysdba startup nomount; @create_controlfile.sql oradebug setmypid oradebug dumpvar...sga kcsgscn_ oradebug poke 0x700000000019B70 8 32681432564 oradebug dumpvar sga kcsgscn_ recover database
SYS@orcl> oradebug dumpvar sga kcsgscn_ kcslf kcsgscn_ [06001AE70, 06001AEA0) = 00000000 00000000 00000000...06001AE78) = 00000000 00000000 AFTER: [06001AE70, 06001AE78) = 1008DE74 00000001 SYS@orcl> oradebug dumpvar...c代表:Arg [c] dependent SCN WRAP d代表:Arg [d] dependent SCN BASE oradebug setmypid oradebug dumpvar sga...kcsgscn_ oradebug poke 0x060012658 8 10014077592 oradebug dumpvar sga kcsgscn_ alter database open; 最后要说的是
*power(2,32) + 2516661000 from dual; 32581432072 使用oradebug poke进行SCN推进: oradebug setmypid oradebug dumpvar...sga kcsgscn_ oradebug poke 0x700000000019B70 8 32581432072 oradebug dumpvar sga kcsgscn_ 推进SCN后,尝试直接开库报错...SQL> oradebug dumpvar sga kcsgscn_ kcslf kcsgscn_ [700000000019B70, 700000000019BA0) = 00000000 00000000...recover again.. conn /as sysdba startup nomount; @create_controlfile.sql oradebug setmypid oradebug dumpvar...sga kcsgscn_ oradebug poke 0x700000000019B70 8 32681432564 oradebug dumpvar sga kcsgscn_ recover database
SYS@orcl> oradebug dumpvar sga kcsgscn_ kcslf kcsgscn_ [06001AE70, 06001AEA0) = 00000000 00000000 00000000...06001AE78) = 00000000 00000000 AFTER: [06001AE70, 06001AE78) = 1008DE74 00000001 SYS@orcl> oradebug dumpvar...c代表:Arg [c] dependent SCN WRAP d代表:Arg [d] dependent SCN BASE oradebug setmypid oradebug dumpvar sga...kcsgscn_ oradebug poke 0x060012658 8 10014077592 oradebug dumpvar sga kcsgscn_ alter database open;
oracle/app/oracle/oradata/trsdb/undotbs02.dbf' ; 3、使用oradebug poke推进SCN 1)oradebug setmypid 2)oradebug dumpvar...sga kcsgscn_ 3)oradebug poke 0x060012658 8 10014077592 4)oradebug dumpvar sga kcsgscn_ 5)alter database...c代表:Arg [c] dependent SCN WRAP d代表:Arg [d] dependent SCN BASE oradebug setmypid oradebug dumpvar sga...kcsgscn_ oradebug poke 0x060012658 8 10014077592 oradebug dumpvar sga kcsgscn_ alter database open; 注意
SQL> oradebug dumpvar sga kcsgscn_ kcslf kcsgscn_ [700000000019B70, 700000000019BA0) = 00000000 00000000...00000000 00000000 AFTER: [700000000019B70, 700000000019B78) = 00000E97 80000000 SQL> oradebug dumpvar
_dumpvar(v) def _dumpvar(self, var): val = getattr(self, var) def parts(s, l):
SQL> oradebug dumpvar sga kcsgscn_ kcslf kcsgscn_ [0600113B8, 0600113E8) = 00050F5D 00100E0F 将这个数字放到前面的表格中
SQL> oradebug DUMPvar SGA kcsgscn_ kcslf kcsgscn_ [06001AE70, 06001AEA0) = 014F14A2 00000001 00000000...00000000 AFTER: [06001AE70, 06001AE74) = 014F133E) 再次查看确实已经变成了014F133E(对应10进制是21959486) SQL> oradebug DUMPvar
Set trace event in process SESSION_EVENT Set trace event in session DUMPVAR
finish:结束仿真dumpvar,dumpfile:生成波形文件,保存到指定的文件中。 6、tasks用于实现常用的验证功能。tasks可以有输入,输出,并且可以包含时序控制。
SQL> oradebug setmypid SQL> oradebug dumpvar sga kcsgscn_ kcslf kcsgscn_ [06001AE70, 06001AEA0) = 00000000
dumpvar.mk 在 Build 开始之前,显示此次 Build 的配置信息。 config.mk 整个 Build 系统的配置文件,最重要的 Make 文件之一。
) def FindSymbolsDir(): cmd = "CALLED_FROM_SETUP=true make -f build/core/envsetup.mk " \ + "dumpvar-abs-TARGET_OUT_UNSTRIPPED
debug.mk ├── depends.mk ├── device.mk ├── device_table.txt ├── download.mk ├── dumpvar.mk
领取专属 10元无门槛券
手把手带您无忧上云