cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with R/3 4.7 Database Export

Former Member
0 Kudos

Hi guys,

I have to export the database of an R/3 4.7 Enterprise (47x200 SR1) SAP system and I encounter some errors

First of all I want to mention that I execute the sapinst in the following conditions:

- AIX 6.1, Oracle 10.2, Kernel is 6.40

- I log in as <sid>adm

- I change the shell to Korn with "ksh -o vi"

- I set environment variable JAVA_HOME and I add it also to PATH

- I set LIBPATH to /sapmnt/<SID>/exe/:/usr/lib:/lib:/usr/sap/<SID>/SYS/exe/run

- I go to directory /tmp/tmp1 (or /tmp/tmp2, /tmp/tmp3 etc.)

- I execute sapinst via sudo: "sudo /<installation kit path>/sapinst" (this is the only possibility to execute sapinst due to security policy)

- I follow the normal steps from the installer in order to export the database (without updating statistics)

1) The first error related to LIBPATH environment variable, in the sapinst log:

ERROR 2012-07-20 03:17:35

MUT-02044  The following paths expected but not found in the library path environment variable (LIBPATH) /sapmnt/<SID>/exe/.

I managed to bypass the error for a few times, but I don't know how. Each time I started a new session and re-executed the steps described above, sometimes it worked, sometimes not.

2) The second error occurs only in cases when I manage to bypass the first one and it is (R3ldctl.log):

cat R3ldctl.log

Could not load program /sapmnt/<SID>/exe/R3ldctl:

        Dependent module libsapu16.so could not be loaded.

Could not load module libsapu16.so.

System error: No such file or directory

I also have some strange messages in the sapinst log, related to the environment variables listed below. But all these environment variables are set when I display them logged in as <sid>adm. Maybe in the root environment these variables are not set. Could this be the problem?

TRACE[E]   [syxxccuren.hpp:192]

           CSyCurrentProcessEnvironmentImpl::getEnvironmentVariable(iastring)

Unable to get value for environment variable dbms_type.

TRACE[E]   [syxxccuren.hpp:192]

           CSyCurrentProcessEnvironmentImpl::getEnvironmentVariable(iastring)

Unable to get value for environment variable dbs_ora_schema.

TRACE[E]   [syxxccuren.hpp:192]

           CSyCurrentProcessEnvironmentImpl::getEnvironmentVariable(iastring)

Unable to get value for environment variable dbs_ora_tnsname.

TRACE[E]   [syxxccuren.hpp:192]

           CSyCurrentProcessEnvironmentImpl::getEnvironmentVariable(iastring)

Unable to get value for environment variable DIR_LIBRARY.

TRACE[E]   [syxxccuren.hpp:192]

           CSyCurrentProcessEnvironmentImpl::getEnvironmentVariable(iastring)

Unable to get value for environment variable NLS_LANG.

TRACE[E]   [syxxccuren.hpp:192]

           CSyCurrentProcessEnvironmentImpl::getEnvironmentVariable(iastring)

Unable to get value for environment variable ORACLE_BASE.

TRACE[E]   [syxxccuren.hpp:192]

           CSyCurrentProcessEnvironmentImpl::getEnvironmentVariable(iastring)

Unable to get value for environment variable ORACLE_HOME.

TRACE[E]   [syxxccuren.hpp:192]

           CSyCurrentProcessEnvironmentImpl::getEnvironmentVariable(iastring)

Unable to get value for environment variable ORACLE_SID.

TRACE[E]   [syxxccuren.hpp:192]

           CSyCurrentProcessEnvironmentImpl::getEnvironmentVariable(iastring)

Unable to get value for environment variable SAPDATA_HOME.

TRACE[E]   [syxxccuren.hpp:192]

           CSyCurrentProcessEnvironmentImpl::getEnvironmentVariable(iastring)

Unable to get value for environment variable SAPSYSTEMNAME.

TRACE[E]   [syxxccuren.hpp:192]

           CSyCurrentProcessEnvironmentImpl::getEnvironmentVariable(iastring)

Unable to get value for environment variable ORA_NLS33.

Please let me know if you have any idea.

Thanks in advance,

Alex

Accepted Solutions (1)

Accepted Solutions (1)

former_member189725
Active Contributor
0 Kudos

This issue is because LIBPATH is a restricted variable and does not pass on when sudo is executed rather it is stripped.

Once you set all the variables (TMP,JAVA_HOME etc) , try running sudo /usr/bin/env

and check the output.

LIBPATH will not be seen in the output even though you have set it .

I suggest you create a wrapper script like sapinst_wrapper.ksh and invoke it using sudo

sudo <path>/sapinst_wrapper.ksh

The contents of sapinst_wrapper.sh

*********************************************************

#!/bin/ksh

. /<path>/environ_for_sapinst

/<installation kit path>/sapinst

*********************************************************

The contents for environ_for_sapinst

******************************************

LIBPATH=/sapmnt/<SID>/exe

export LIBPATH

*****************************************

This is just an example . You can test it out in your own way.

Regards

Ratnajit

Former Member
0 Kudos

Hello Ratnajit,

Your answer is most probably the solution to the problem. I will do the test with a dirty export these days and reply to you if problem is solved.

Thanks a lot,

Alex

Former Member
0 Kudos

The problem were indeed the environment variables. We didn't use the wrapper script because we gained root access, but your idea is great anyway.

Thanks a lot !

Answers (0)