Simon Matter schrieb:
> 
> I have upgraded sapdb from 7.3.0.25 to 7.3.0.29 using rpm on RedHat 6.2
> and 7.2. The following two problems occured:
> 
> 1)
> while upgrading the rpms, the message '/root/.bashrc: access denied' (or
> similar, don't remember exactly) appeared.

Found it:

[root@dhcp-141-104 root]# rpm -qi --scripts `rpm -qa | grep sapdb` |
grep su
_o=`su sapdb -c "$DBROOT/bin/dbmcli -s -R $DBROOT inst_reg -k $DBROOT"`
su sapdb -c "$X_PATH/irconf -i -p
/opt/sapdb/interfaces/precompiler/runtime/7300" >/dev/null 2>&1
su sapdb -c "$X_PATH/irconf -r -p 
/opt/sapdb/interfaces/precompiler/runtime/7300" >/dev/null 2>&1
su -s /bin/sh -c "sh /opt/sapdb/testdb/create_demo_db.sh >
create_demo_db.log 2>&1" - sapdb > /dev/null 2>&1
su -s /bin/sh -c "sh /opt/sapdb/testdb/drop_demo_db.sh >
drop_demo_db.log 2>&1" - sapdb > /dev/null 2>&1

Can you change the pre/post install scripts to use

su - sapdb -c "blah blah"
  ^^^

Simon

> 
> 2)
> two lines of the file /var/spool/sql/ini/SAP_DBTech.ini dissappeared.
> The section [Runtime] was empty like this:
> ---------------------------------------------------------
> [Globals]
> IndepData=/var/opt/sapdb/indep_data
> IndepPrograms=/opt/sapdb/indep_prog
> 
> [Runtime]
> 
> [Installations]
> /opt/sapdb/depend=7.3.0.29,/opt/sapdb/depend
> 
> [Databases]
> _OPTSAPD=/opt/sapdb/depend
> TST=/opt/sapdb/depend
> ---------------------------------------------------------
> 
> I restored the [Runtime] section and everything was fine but I'd like to
> know why it fails.
> Error 1) appears on install and upgrade, error 2) only on upgrade.
> 
> Simon
> _______________________________________________
> sapdb.general mailing list
> [EMAIL PROTECTED]
> http://listserv.sap.com/mailman/listinfo/sapdb.general
_______________________________________________
sapdb.general mailing list
[EMAIL PROTECTED]
http://listserv.sap.com/mailman/listinfo/sapdb.general

Reply via email to