Skip to Content
author's profile photo Former Member
Former Member

Problem with R/3 4.7 Database Export

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Jul 22, 2012 at 05:44 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.