PtrSafe声明解决VBA从32位系统迁移到64位的‘Compile Error’问题

最近换了新的电脑,从32位系统升级到64位系统,以前有写一个VBA (Visual Basic Application)的程序,在32位的旧电脑上是可以使用的,但是在新的64位的系统上却有以下问题, === Compile error: The code in this project must be update for use on 64-bit systems. Please review and update Declare statements and then mark them with the PtrSafe attribute. 见下图: 解决方案:在所有出现问题的函数声明之前都加上PtrSafe,问题解决 例如: 原始为: Private Declare Function InternetOpen Lib “wininet.dll” Alias “InternetOpenA” _ (ByVal sAgent As String, ByVal lAccessType As Long, […]

FreeIPA安装后Named service无法启动 – RHEL6.5

在RHEL6.5的环境下,安装FreeIPA后Named service无法启动。错误如下: Configuring DNS (named) [1/9]: adding DNS container [2/9]: setting up our zone [3/9]: setting up reverse zone [4/9]: setting up our own record [5/9]: setting up kerberos principal [6/9]: setting up named.conf [7/9]: restarting named named service failed to start [8/9]: configuring named to start on boot [9/9]: changing resolv.conf to point to […]

ORA-29701 / CRS-4124 Oracle ASM start failed

Encountered CRS-4124, the OHASD cannot be started, it shows as below: [bob@ocp ~]$ crsctl start has CRS-4124: 未能启动 Oracle High Availability Services。 CRS-4000: 命令 Start 失败, 或已完成但出现错误。 Cannot startup the instance: [bob@ocp ~]$ sqlplus / as sysasm SQL*Plus: Release 11.2.0.1.0 Production on 星期三 8月 28 13:56:52 2019 Copyright (c) 1982, 2009, Oracle. All rights reserved. […]

Oracle under Linux – emctl start dbconsole command failed

After certain time of the testing on the Oracle 11.2.0.1.0 on Linux, encountered below errors. [tom@ocp ~]$ emctl start dbconsole Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0 Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved. https://ocp:1158/em/console/aboutApplication Starting Oracle Enterprise Manager 11g Database Control ………………………………………………………………………………… failed. —————————————————————— Logs are generated in directory /u01/app/tom/product/11.2.0/dbhome_1/ocp_orcl/sysman/log Check […]