VS2003 fatal error C1033: cannot open program database '' 解决办法

文章详细介绍了在Windows 7 RC系统中遇到的无法安装和运行VS2005的错误(FatalErrorC1033),以及通过将快捷方式设置为兼容Windows XP SP3模式来解决问题的方法。当更改快捷方式兼容模式为Windows Vista后,成功解决了编译问题。
 
I got the same thing when trying to build VS 2005 in Windows 7 RC:
Fatal Error C1033: cannot open program database '' (with the database it couldn't open indicated as an empty string)
I had my shortcut to VS 2005 set to compatibility mode for Windows XP SP3.  When I changed it to Windows Vista, I was able to build.
[gbase@gbase8s ~]$ cd /opt/software/gbase8s/script/ [gbase@gbase8s script]$ ./gs_install -X /opt/software/gbase8s/script/gspylib/etc/conf/cluster_config.xml Parsing the configuration file. Check preinstall on every node. Successfully checked preinstall on every node. Creating the backup directory. Last time end with Start cluster. Continue this step. Successfully created the backup directory. begin deploy.. Using gbase:gbase to install database. Using installation program path : /opt/troila/install/app_40afadd8 $GAUSSHOME points to /opt/troila/install/app_40afadd8, no need to create symbolic link. Traceback (most recent call last): File "/opt/troila/install/om/script/local/Install.py", line 841, in <module> functionDict[g_opts.action]() File "/opt/troila/install/om/script/local/Install.py", line 772, in startCluster dn.start(self.time_out) File "/opt/troila/install/om/script/local/../gspylib/component/Kernel/Kernel.py", line 104, in start raise Exception(ErrorCode.GAUSS_516["GAUSS_51607"] % "instance" Exception: [GAUSS-51607] : Failed to start instance. Error: Please check the gs_ctl log for failure details. [2025-07-11 19:46:36.699][18307][][gs_ctl]: gs_ctl started,datadir is /opt/troila/install/data/dn [2025-07-11 19:46:36.748][18307][][gs_ctl]: waiting for server to start... .0 LOG: [Alarm Module]can not read GAUSS_WARNING_TYPE env. 0 LOG: [Alarm Module]Host Name: gbase8s 0 LOG: [Alarm Module]Host IP: gbase8s. Copy hostname directly in case of taking 10s to use 'gethostbyname' when /etc/hosts does not contain <HOST IP> 0 LOG: [Alarm Module]Cluster Name: dbCluster 0 LOG: [Alarm Module]Invalid data in AlarmItem file! Read alarm English name failed! line: 58 0 WARNING: failed to open feature control file, please check whether it exists: FileName=gaussdb.version, Errno=2, Errmessage=No such file or directory. 0 WARNING: failed to parse feature control file: gaussdb.version. 0 WARNING: Failed to load the product control file, so gaussdb cannot distinguish product version. 0 LOG: bbox_dump_path is set to /opt/troila/corefile/ 2025-07-11 19:46:36.846 6870f99c.1 [unknown] 140440970740032 [unknown] 0 dn_6001 DB010 0 [REDO] LOG: Recovery parallelism, cpu count = 4, max = 4, actual = 4 2025-07-11 19:46:36.846 6870f99c.1 [unknown] 140440970740032 [unknown] 0 dn_6001 DB010 0 [REDO] LOG: ConfigRecoveryParallelism, true_max_recovery_parallelism:4, max_recovery_parallelism:4 gaussdb.state does not exist, and skipt setting since it is optional.2025-07-11 19:46:36.852 6870f99c.1 [unknown] 140440970740032 [unknown] 0 dn_6001 00000 0 [BACKEND] LOG: [Alarm Module]can not read GAUSS_WARNING_TYPE env. 2025-07-11 19:46:36.852 6870f99c.1 [unknown] 140440970740032 [unknown] 0 dn_6001 00000 0 [BACKEND] LOG: [Alarm Module]Host Name: gbase8s 2025-07-11 19:46:36.852 6870f99c.1 [unknown] 140440970740032 [unknown] 0 dn_6001 00000 0 [BACKEND] LOG: [Alarm Module]Host IP: gbase8s. Copy hostname directly in case of taking 10s to use 'gethostbyname' when /etc/hosts does not contain <HOST IP> 2025-07-11 19:46:36.852 6870f99c.1 [unknown] 140440970740032 [unknown] 0 dn_6001 00000 0 [BACKEND] LOG: [Alarm Module]Cluster Name: dbCluster 2025-07-11 19:46:36.852 6870f99c.1 [unknown] 140440970740032 [unknown] 0 dn_6001 00000 0 [BACKEND] LOG: [Alarm Module]Invalid data in AlarmItem file! Read alarm English name failed! line: 58 2025-07-11 19:46:36.855 6870f99c.1 [unknown] 140440970740032 [unknown] 0 dn_6001 00000 0 [BACKEND] LOG: loaded library "security_plugin" 2025-07-11 19:46:36.857 6870f99c.1 [unknown] 140440970740032 [unknown] 0 dn_6001 01000 0 [BACKEND] WARNING: could not create any HA TCP/IP sockets 2025-07-11 19:46:36.857 6870f99c.1 [unknown] 140440970740032 [unknown] 0 dn_6001 01000 0 [BACKEND] WARNING: could not create any HA TCP/IP sockets 2025-07-11 19:46:36.858 6870f99c.1 [unknown] 140440970740032 [unknown] 0 dn_6001 00000 0 [BACKEND] LOG: InitNuma numaNodeNum: 1 numa_distribute_mode: none inheritThreadPool: 0. 2025-07-11 19:46:36.858 6870f99c.1 [unknown] 140440970740032 [unknown] 0 dn_6001 01000 0 [BACKEND] WARNING: Failed to initialize the memory protect for g_instance.attr.attr_storage.cstore_buffers (1024 Mbytes) or shared memory (2471 Mbytes) is larger. 2025-07-11 19:46:36.858 6870f99c.1 [unknown] 140440970740032 [unknown] 0 dn_6001 42809 0 [BACKEND] FATAL: could not create shared memory segment: Cannot allocate memory 2025-07-11 19:46:36.858 6870f99c.1 [unknown] 140440970740032 [unknown] 0 dn_6001 42809 0 [BACKEND] DETAIL: Failed system call was shmget(key=15400001, size=2591099208, 03600). 2025-07-11 19:46:36.858 6870f99c.1 [unknown] 140440970740032 [unknown] 0 dn_6001 42809 0 [BACKEND] HINT: This error usually means that openGauss's request for a shared memory segment exceeded available memory or swap space, or exceeded your kernel's SHMALL parameter. You can either reduce the request size or reconfigure the kernel with larger SHMALL. To reduce the request size (currently 2591099208 bytes), reduce openGauss's shared memory usage, perhaps by reducing shared_buffers. The openGauss documentation contains more information about shared memory configuration. 2025-07-11 19:46:36.869 6870f99c.1 [unknown] 140440970740032 [unknown] 0 dn_6001 00000 0 [BACKEND] LOG: FiniNuma allocIndex: 0. [2025-07-11 19:46:37.770][18307][][gs_ctl]: waitpid 18310 failed, exitstatus is 256, ret is 2 [2025-07-11 19:46:37.770][18307][][gs_ctl]: stopped waiting [2025-07-11 19:46:37.770][18307][][gs_ctl]: could not start server Examine the log output. [GAUSS-51607] : Failed to start instance. Error: Please check the gs_ctl log for failure details. [2025-07-11 19:46:36.699][18307][][gs_ctl]: gs_ctl started,datadir is /opt/troila/install/data/dn [2025-07-11 19:46:36.748][18307][][gs_ctl]: waiting for server to start... .0 LOG: [Alarm Module]can not read GAUSS_WARNING_TYPE env. 0 LOG: [Alarm Module]Host Name: gbase8s 0 LOG: [Alarm Module]Host IP: gbase8s. Copy hostname directly in case of taking 10s to use 'gethostbyname' when /etc/hosts does not contain <HOST IP> 0 LOG: [Alarm Module]Cluster Name: dbCluster 0 LOG: [Alarm Module]Invalid data in AlarmItem file! Read alarm English name failed! line: 58 0 WARNING: failed to open feature control file, please check whether it exists: FileName=gaussdb.version, Errno=2, Errmessage=No such file or directory. 0 WARNING: failed to parse feature control file: gaussdb.version. 0 WARNING: Failed to load the product control file, so gaussdb cannot distinguish product version. 0 LOG: bbox_dump_path is set to /opt/troila/corefile/ 2025-07-11 19:46:36.846 6870f99c.1 [unknown] 140440970740032 [unknown] 0 dn_6001 DB010 0 [REDO] LOG: Recovery parallelism, cpu count = 4, max = 4, actual = 4 2025-07-11 19:46:36.846 6870f99c.1 [unknown] 140440970740032 [unknown] 0 dn_6001 DB010 0 [REDO] LOG: ConfigRecoveryParallelism, true_max_recovery_parallelism:4, max_recovery_parallelism:4 gaussdb.state does not exist, and skipt setting since it is optional.2025-07-11 19:46:36.852 6870f99c.1 [unknown] 140440970740032 [unknown] 0 dn_6001 00000 0 [BACKEND] LOG: [Alarm Module]can not read GAUSS_WARNING_TYPE env. 2025-07-11 19:46:36.852 6870f99c.1 [unknown] 140440970740032 [unknown] 0 dn_6001 00000 0 [BACKEND] LOG: [Alarm Module]Host Name: gbase8s 2025-07-11 19:46:36.852 6870f99c.1 [unknown] 140440970740032 [unknown] 0 dn_6001 00000 0 [BACKEND] LOG: [Alarm Module]Host IP: gbase8s. Copy hostname directly in case of taking 10s to use 'gethostbyname' when /etc/hosts does not contain <HOST IP> 2025-07-11 19:46:36.852 6870f99c.1 [unknown] 140440970740032 [unknown] 0 dn_6001 00000 0 [BACKEND] LOG: [Alarm Module]Cluster Name: dbCluster 2025-07-11 19:46:36.852 6870f99c.1 [unknown] 140440970740032 [unknown] 0 dn_6001 00000 0 [BACKEND] LOG: [Alarm Module]Invalid data in AlarmItem file! Read alarm English name failed! line: 58 2025-07-11 19:46:36.855 6870f99c.1 [unknown] 140440970740032 [unknown] 0 dn_6001 00000 0 [BACKEND] LOG: loaded library "security_plugin" 2025-07-11 19:46:36.857 6870f99c.1 [unknown] 140440970740032 [unknown] 0 dn_6001 01000 0 [BACKEND] WARNING: could not create any HA TCP/IP sockets 2025-07-11 19:46:36.857 6870f99c.1 [unknown] 140440970740032 [unknown] 0 dn_6001 01000 0 [BACKEND] WARNING: could not create any HA TCP/IP sockets 2025-07-11 19:46:36.858 6870f99c.1 [unknown] 140440970740032 [unknown] 0 dn_6001 00000 0 [BACKEND] LOG: InitNuma numaNodeNum: 1 numa_distribute_mode: none inheritThreadPool: 0. 2025-07-11 19:46:36.858 6870f99c.1 [unknown] 140440970740032 [unknown] 0 dn_6001 01000 0 [BACKEND] WARNING: Failed to initialize the memory protect for g_instance.attr.attr_storage.cstore_buffers (1024 Mbytes) or shared memory (2471 Mbytes) is larger. 2025-07-11 19:46:36.858 6870f99c.1 [unknown] 140440970740032 [unknown] 0 dn_6001 42809 0 [BACKEND] FATAL: could not create shared memory segment: Cannot allocate memory 2025-07-11 19:46:36.858 6870f99c.1 [unknown] 140440970740032 [unknown] 0 dn_6001 42809 0 [BACKEND] DETAIL: Failed system call was shmget(key=15400001, size=2591099208, 03600). 2025-07-11 19:46:36.858 6870f99c.1 [unknown] 140440970740032 [unknown] 0 dn_6001 42809 0 [BACKEND] HINT: This error usually means that openGauss's request for a shared memory segment exceeded available memory or swap space, or exceeded your kernel's SHMALL parameter. You can either reduce the request size or reconfigure the kernel with larger SHMALL. To reduce the request size (currently 2591099208 bytes), reduce openGauss's shared memory usage, perhaps by reducing shared_buffers. The openGauss documentation contains more information about shared memory configuration. 2025-07-11 19:46:36.869 6870f99c.1 [unknown] 140440970740032 [unknown] 0 dn_6001 00000 0 [BACKEND] LOG: FiniNuma allocIndex: 0. [2025-07-11 19:46:37.770][18307][][gs_ctl]: waitpid 18310 failed, exitstatus is 256, ret is 2 [2025-07-11 19:46:37.770][18307][][gs_ctl]: stopped waiting [2025-07-11 19:46:37.770][18307][][gs_ctl]: could not start server Examine the log output. 给我一个最简单的解决方法
07-15
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值