Author: mac

  • ORACLE DB数据库常见问题解决及诊断技巧集锦 – ORACLE DBA故障修复必备手册

    ORACLE DBA故障修复必备手册 本文地址:https://www.askmac.cn/archives/oracle-troubleshooting.html     关于Oracle数据库问题诊断信息获取 在对Oracle数据库相关情况及问题进行诊断及信息捕获时, 请:   请确认MAX_DUMP_FILE_SIZE 参数设置, 这将避免用以诊断的追踪文件(trace file)因为空间不足而被截断 !!!   上传alert.log文件。11g中,文本形式的alert.log是放在ADR home相应”trace”目录下。而XML形式的alert.log则是放在ADR home下的”alert”目录下。如需验证ADR home确切位置,可以执行”select * from v$diag_info” 并从其输出中找到。 请看下页诊断追踪文件目录地址信息。   获取RDA收集信息 (版本4.2x以上更佳). 请查看MOS文档 330363.1 及 314422.1以了解更多信息。   请对所遇问题提供详尽描述以便于分析并更快找到问题原因。 对于 较为严重的问题, 请提供: 相关业务及技术评估 两名24×7联系人,并提供相关人员邮件及电话联系方式(askmac.cn)。 一名相关管理联系人,需提供其邮件及电话联系方式。   问题细节描述: 受影响日期时间 相关报错号及其文本信息。 相关问题影响 – 数据库实例奔溃, 进程失败等.? 错误出现频率? 错误是否可重演。 错误是否总在特定日期时间发生? 错误发生是否与数据库相关活动有关?如备份或高负载处理时. 错误是否总是来自于某个应用或某位用户? 第一次产生此错误是在何时?当时是否正在做何改动? 当时是否有其他错误发生(例如ORA-7445 或…

  • PRM-DUL成功助力安徽某乙方恢复了用户数据库

    PRM-DUL成功助理安徽某乙方恢复了用户涉及到大量图片BLOB的数据库,该数据库由于存储异常且无任何备份导致无法打开和恢复:   最新版PRM-DUL下载地址: http://parnassusdata.com/sites/default/files/ParnassusData_PRMForOracle_3206.zip 免费的PRM-DUL License :http://www.parnassusdata.com/zh-hans/node/122     

  • 【Oracle数据库恢复】ORA-00600 [4194]: 内部错误代码, 参数: [4194]又一例

    某用户11.1.0.6的系统在系统断电重启后遭遇了ORA-600 [4194]错误:   Starting background process QMNC Wed Dec 10 21:26:24 2014 QMNC started with pid=21, OS id=2932 Errors in file d:\app\administrator\diag\rdbms\erp\erp\trace\erp_smon_3612.trc (incident=33600227): ORA-00600: 内部错误代码, 参数: [4194], [60], [59], [], [], [], [], [] Incident details in: d:\app\administrator\diag\rdbms\erp\erp\incident\incdir_33600227\erp_smon_3612_i33600227.trc Doing block recovery for file 3 block 4378 Block recovery from logseq 1, block 127 to scn…

  • Oracle 12.1.0.2新特性 Approximate Count Distinct

    [oracle@PD009 ~]$ grep -i approx_count oracle.str settings for approx_count_distinct optimizations qkaGBPushdown: estimated memory without GPD = groupSize (%.2f) * aclsum (%u) = %.2f; estimated memory with GPD = optHllEntry (%u) * # of approx_count_distinct (%d) * parallelDegree (%.0f) = %.2f APPROX_COUNT_DISTINCT APPROX_COUNT_DISTINCT APPROX_COUNT_DISTINCT _approx_cnt_distinct_gby_pushdown = choose _approx_cnt_distinct_optimization = 0 alter system flush shared_pool; alter session…

  • PRM: Warning:scaned 10MB data, couldn’t find file header

    PRM: Warning:scaned 10MB data, couldn’t find file header ,如果在使用PRM-DUL过程中遇到了该问题,则可能是:   1、选择了错误的 BLOCK_SIZE   2、选择了错误的endian ,AIX、HPUX 、Solaris Sparc上的datafile均为Big Endian。 其他的操作系统Windows、Linux、Solaris X86基本都为Little Endian,如上图   3、启动PRM的用户没有足够的权限读取数据文件,这个情况下WIndows下可能出现   4、加入的数据文件的文件头真的丢失 或者损坏了,这个情况请联系我们  [email protected]  

  • more about osysmond.bin

    We have some questions on this guess: 1.What kind of operation osysmond.bin will do when a new disk device is scaned by os? Currently osysmond detects disks only when it starts. If osysmond is running and a new disk is added to system, Osymond will not detect it right away. It will detect it only…

  • about db_lost_write_protect

    SQL> create table lost_write(t1 int) tablespace users; Table created. SQL> SQL> insert into lost_write values(1); 1 row created. SQL> commit; Commit complete. SQL> alter system checkpoint; System altered. select dbms_rowid.rowid_block_number(rowid),dbms_rowid.rowid_relative_fno(rowid) from lost_write; DBMS_ROWID.ROWID_BLOCK_NUMBER(ROWID) DBMS_ROWID.ROWID_RELATIVE_FNO(ROWID) ———————————— ———————————— 222 6 alter system set db_lost_write_protect=typical; SQL> select name from v$datafile where file#=6; NAME ——————————————————————————– /s01/oradata/PDPROD/datafile/o1_mf_users_b2wgb20l_.dbf update lost_write set…

  • 11g以后的space preallocation特性和SMCO/W00N

    11g以后oracle引入了智能空间预分配space preallocation的新特性,该新特性涉及3个领域: 表空间的预分配和扩展 数据段segment的预分配和扩展 LOB chunk的预分配和扩展   以下是一个tablespace 预分配和扩展的例子,可以看到某个表空间对应的FILE#=3的数据文件,由于在一段时间内的空间使用情况预估,所以在几个小时内扩展了不少的空间:   Sat Oct 04 06:07:46 2014 Resize operation completed for file# 3, old size 706560K, new size 716800K Sat Oct 04 08:00:03 2014 www.askmac.cn Thread 1 advanced to log sequence 60 (LGWR switch) Current log# 2 seq# 60 mem# 0: /s01/oradata/PDPROD/onlinelog/o1_mf_2_b2wgc3rf_.log Current log# 2 seq# 60…

  • 12c RMAN新特性restore/recover from service远程恢复

    12c中提供了基于网络的RMAN Restore和recover功能:   About Restoring Files Over the Network RMAN restores database files, over the network, from a physical standby database by using the FROM SERVICE clause of the RESTORE command. The FROM SERVICE clause provides the service name of the physical standby database from which the files must be restored. During the restore operation,…

  • 为12.1 DataGuard配置DGMGRL遇到ORA-16698

    为12.1.0.2 DataGuard配置DGMGRL时遇到了ORA-16698错误:     BANNER CON_ID —————————————————————————————— ———- Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 – 64bit Production 0 PL/SQL Release 12.1.0.2.0 – Production 0 CORE 12.1.0.2.0 Production 0 TNS for Linux: Version 12.1.0.2.0 – Production 0 NLSRTL Version 12.1.0.2.0 – Production 0 DGMGRL> DGMGRL> [oracle@PD009 ~]$ oerr ora 16698 16698, 0000, “LOG_ARCHIVE_DEST_n parameter set…