`

解决windows2003安装PostgreSQLerror code = 601; message

阅读更多
在windows2003系统中安装postgreSQL8遇到错误,几次尝试都无法完成安装,错误日志如下:
1.log.txt
(2008-6-9 16:26:34), Install, com.enterprisedb.isaction.InitDBFailAction, err, ProductException: (error code = 601; message="Initdb Failed"; additional data = [Contents of data folder [E:\Program\Install\PostgresSQL\PostgresPlus\8.3AS\data] are invalid.])
STACK_TRACE: 12
ProductException: (error code = 601; message="Initdb Failed"; additional data = [Contents of data folder [E:\Program\Install\PostgresSQL\PostgresPlus\8.3AS\data] are invalid.])
	at com.enterprisedb.isaction.InitDBFailAction.install(InitDBFailAction.java:75)
	at com.installshield.product.service.product.PureJavaProductServiceImpl.installProductAction(Unknown Source)
	at com.installshield.product.service.product.PureJavaProductServiceImpl$InstallProduct.getResultForProductAction(Unknown Source)
	at com.installshield.product.service.product.InstallableObjectVisitor.visitComponent(Unknown Source)
	at com.installshield.product.service.product.InstallableObjectVisitor.visitInstallableComponents(Unknown Source)
	at com.installshield.product.service.product.InstallableObjectVisitor.visitProductBeans(Unknown Source)
	at com.installshield.product.service.product.PureJavaProductServiceImpl$InstallProduct.install(Unknown Source)
	at com.installshield.product.service.product.PureJavaProductServiceImpl$Installer.execute(Unknown Source)
	at com.installshield.wizard.service.AsynchronousOperation.run(Unknown Source)
	at java.lang.Thread.run(Thread.java:595)

2. install_logs/inidb_stderr.txt
initdb: 无法改变目录 "E:/Program/Install/PostgresSQL/PostgresPlus/8.3AS/data" 的权限: Permission denied

3. install_logs/inidb_stdout.txt
属于此数据库系统的文件宿主为用户 "Administrator".
此用户也必须为服务器进程的宿主.
数据库簇将带有 locale Chinese_People's Republic of China.936 初始化.

修复已存在目录 E:/Program/Install/PostgresSQL/PostgresPlus/8.3AS/data 的权限 ... 

4. install_logs/initerr.txt
CPAU V01.10.00cpp Joe Richards (joe@joeware.net) October 2004

5. install_logs/initout.txt
Adjusting rights for current user to impersonate(required for Windows 2000 based systems)...
 Granting SeTcbPrivilege to WWW-64C854AFFB8\Administrator   ... successful
Calling initdb as user enterprisedb...
Process Created...

The command completed successfully.

Done!


后来到论坛上去查了一下
查到这个页面
http://forums.enterprisedb.com/posts/list/1135.page
他是这样解决的:
Please ensure that secondary logon service is running in your services console. Once it’s started, please try running the installer again and hopefully your issue would be resolved. 

In case it fails again, then run the installer from the command prompt as given below: 

edb-installation_file.exe -use_local_logon 


大概的意思就是
确保服务进程“secondary logon”运行的情况下,进行安装,如果出现了安装错误无法完成的情况,
尝试在命令行进行安装
我如法尝试了一下,最终完成了安装。
运行的命令
edb-installation_file.exe -use_local_logon 

附:edb-installation_file.exe对应为安装原文件,文件名称可能不同,用时需要注意。
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics