cancel
Showing results for 
Search instead for 
Did you mean: 

sapinst Failed to write enable (OS error code 11000)

zhihongbu
Explorer
0 Kudos

Dear Gurus,

I'm trying to install a new Q78 but I met below issue with sapinst.

MSG: file "/sapdb/Q78/db/doc/FirstSteps/index.html" modified by installer

MSG: file "/sapdb/Q78/db/doc/FirstSteps/Perl/HowToPerl.html" modified by installer

MSG: file "/sapdb/Q78/db/doc/FirstSteps/Python/HowToPython.html" modified by installer

MSG: file "/sapdb/Q78/db/doc/FirstSteps/ODBC/HowToODBC.html" modified by installer

MSG: file "/sapdb/Q78/db/doc/FirstSteps/Java/HowToJava.html" modified by installer

MSG: file "/sapdb/Q78/db/misc/create_demo_db.sh" modified by installer

MSG: file "/sapdb/Q78/db/misc/drop_demo_db.sh" modified by installer

MSG: file "/sapdb/Q78/db/doc/FirstSteps/maxdbenv.sh" modified by installer

SYS: /sapdb/Q78/db/bin/dbmsrvctl start

SYS: /sapdb/programs/bin/dbmcli -R /sapdb/Q78/db inst_reg -k /sapdb/Q78/db: ERR

SYS: /sapdb/programs/bin/dbmcli -R /sapdb/Q78/db inst_reg -k /sapdb/Q78/db: -24994,ERR_RTE: Runtime environment

error

SYS: /sapdb/programs/bin/dbmcli -R /sapdb/Q78/db inst_reg -k /sapdb/Q78/db: 1,could not write to registry, error

message: Failed to write enable (OS error code 11000)

STDERR: error occured while executing /sapdb/programs/bin/dbmcli -R /sapdb/Q78/db inst_reg -k /sapdb/Q78/db

STDERR: /sapdb/programs/bin/dbmcli -R /sapdb/Q78/db inst_reg -k /sapdb/Q78/db: ERR

/sapdb/programs/bin/dbmcli -R /sapdb/Q78/db inst_reg -k /sapdb/Q78/db: -24994,ERR_RTE: Runtime environment error

/sapdb/programs/bin/dbmcli -R /sapdb/Q78/db inst_reg -k /sapdb/Q78/db: 1,could not write to registry, error mess

age: Failed to write enable (OS error code 11000)

STDERR: installation exited abnormally at Th, Jul 23, 2009 at 06:00:52

FYI.

/sapdb 755 root:root

/sapdb/Q78 775 root:root

/sapdb/Q78/db 555 sdb:sdba

Accepted Solutions (0)

Answers (2)

Answers (2)

zhihongbu
Explorer
0 Kudos

With restore of history /sapdb/data backup, and use sdbuninst to uninstall the Q78 successfully.

After that, the SAPINST still get the "failed to write enable" error.

After several try and comparison with other systems. I change below owner and groups for below files, then the write enable error is gone and the DB installation is finished.

sdb sdba /sapdb/data/config/Databases.ini

sdb sdba /sapdb/data/config/Installations.ini

the previous owner and group is q78adm:sapsys

Thank you all for the assistance and I'll definately use standard process to remove an instance next time.

zhihongbu
Explorer
0 Kudos

New error comes out in log XCMDOUT.LOG

I've removed the Q78 related entries in /sapdb/data/config/ Installations.ini & Runtimes.ini & Databases.ini

=====================================================

> Subprocess starts at 20090723095830

Execute Command : /sapdb/programs/bin/dbmcli -n dbq7805 inst_enum

Start subprocess as user with uid: root

> Subprocess stops at 20090723095830

OK

7.6.00.35 /sapdb/P78/db

7.6.05.15 /sapdb/S78/db

7.6.06.04 /sapdb/T78/db

7.6.06.04 /sapdb/D78/db

7.6.00.35 /sapdb/Q78/db

-


> Subprocess starts at 20090723095830

Execute Command : /sapdb/programs/bin/dbmcli -R /sapdb/Q78/db db_create Q78 CONTROL,CONTROL

Start subprocess as user with uid: root

> Subprocess stops at 20090723095830

ERR

-24953,ERR_DBEXIST: database instance already exists

-


Former Member
0 Kudos

Hi,

use sdbreg for deleting the registry information of your database. Don't do this manually next time!

Regards

André

zhihongbu
Explorer
0 Kudos

Hello Andre,

Thanks for your attention and help.

I tried with below command,

./sdbreg -d Q78 -u -sw_kernel

Independent data path is not unique: "" vs. "/sapdb/data"

Did I miss something here?

zhihongbu
Explorer
0 Kudos

Tried sdbuninst, still not working.

/sapdb/programs/bin # ./sdbuninst -package "Database Kernel" -package_dir /sapdb/Q78/db

uninstall following package(s):

Database Kernel /sapdb/Q78/db 7.6.00.35 64 bit

start uninstallation now (y/n)?y

found instance Q78

cannot remove package "Database Kernel": first you have to remove all instances

fatal error at Th, Jul 23, 2009 at 15:59:32