<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: sapcheck environment variable in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/sapcheck-environment-variable/qaa-p/2801761#M1164992</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jeff, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another possibility is that brtools/brconnect is looking for this directory in /oracle/SID/920_64 , ie the ORACLE_HOME instead of the SAPDATA_HOME. In which case, you can create a softlink in /oracle/SID/920_64 called sapcheck to point to the /oracle/SID/sapcheck &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The command (which you have to execure while in /oracle/SID/920_64 ) is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ln -s /oracle/SID/sapcheck sapcheck &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you tell me if you have such softlinks in the systems where everything is working fine? Also check that your brtools versions are the same in all systems&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Sep 2007 20:10:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-10T20:10:16Z</dc:date>
    <item>
      <title>sapcheck environment variable</title>
      <link>https://community.sap.com/t5/technology-q-a/sapcheck-environment-variable/qaq-p/2801758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;brconnect jobs in DB13 are failing.  The job log gives me a pretty good indication why: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR0252E Function fopen() failed for '/oracle/BBS/920_64/sapcheck/cdwcvtyd.sta' at location main-9&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR0253E errno 2: No such file or directory&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From this, it appears that it is trying to access the log in the wrong directory (oracle/BBS/920_64) - not /oracle/BBS/sapcheck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Documentation suggests setting the SAPCHECK environment variable to accomplish this.  However, we have not tried this since we would like to understand how / why / where this errant setting setting got there.  Also, we are assuming that if we do add this variable it needs to be added for the &amp;lt;SIDADM&amp;gt; user - is that accurate?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In addition, this is a "stage" system that should be configured identically to the DEV system which is working.  We also have several other ancillary systems that are functioning as expected - which again, makes us hesitant to just add the "band-aid" solution of an environment variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2007 16:06:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sapcheck-environment-variable/qaq-p/2801758</guid>
      <dc:creator>former_member263733</dc:creator>
      <dc:date>2007-09-10T16:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: sapcheck environment variable</title>
      <link>https://community.sap.com/t5/technology-q-a/sapcheck-environment-variable/qaa-p/2801759#M1164990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;brconnect looks the log file from the PATH $SAPDATA_HOME/sapcheck.  make sure for OS user &amp;lt;SID&amp;gt;adm the SAPDATA_HOME is set correctly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2007 16:24:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sapcheck-environment-variable/qaa-p/2801759#M1164990</guid>
      <dc:creator>madhukara_shenoy</dc:creator>
      <dc:date>2007-09-10T16:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: sapcheck environment variable</title>
      <link>https://community.sap.com/t5/technology-q-a/sapcheck-environment-variable/qaa-p/2801760#M1164991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the environement variable for &amp;lt;SIDADM&amp;gt; is set correctly:  SAPDATA_HOME=/oracle/BBS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is what is curious here.  All the other systems we have look like this and they are working.  Again, that's kind of why we don't really want to just try and and a SAPCHECK variable to try and fix this - since we haven't had this problem in any of the other systems...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;good suggestion though - keep'em coming...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2007 16:29:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sapcheck-environment-variable/qaa-p/2801760#M1164991</guid>
      <dc:creator>former_member263733</dc:creator>
      <dc:date>2007-09-10T16:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: sapcheck environment variable</title>
      <link>https://community.sap.com/t5/technology-q-a/sapcheck-environment-variable/qaa-p/2801761#M1164992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jeff, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another possibility is that brtools/brconnect is looking for this directory in /oracle/SID/920_64 , ie the ORACLE_HOME instead of the SAPDATA_HOME. In which case, you can create a softlink in /oracle/SID/920_64 called sapcheck to point to the /oracle/SID/sapcheck &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The command (which you have to execure while in /oracle/SID/920_64 ) is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ln -s /oracle/SID/sapcheck sapcheck &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you tell me if you have such softlinks in the systems where everything is working fine? Also check that your brtools versions are the same in all systems&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2007 20:10:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sapcheck-environment-variable/qaa-p/2801761#M1164992</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-10T20:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: sapcheck environment variable</title>
      <link>https://community.sap.com/t5/technology-q-a/sapcheck-environment-variable/qaa-p/2801762#M1164993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there are no other such soft links, and the versions are the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It does look as though it is looking in ORACLE_HOME instead of SAPDATA_HOME&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will investigate the link fix you provided.  However, we're more than a little curious how it got set that way - and how we might fix it at that root cause level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyhow, thanks again for this suggestion - I really appreciate it!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2007 21:02:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sapcheck-environment-variable/qaa-p/2801762#M1164993</guid>
      <dc:creator>former_member263733</dc:creator>
      <dc:date>2007-09-10T21:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: sapcheck environment variable</title>
      <link>https://community.sap.com/t5/technology-q-a/sapcheck-environment-variable/qaa-p/2801763#M1164994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;perhaps you can start BR* with a higher trace to check what environmetn variables are being taken.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What shell are you using? &lt;/P&gt;&lt;P&gt;If you are NOT using the SAP recommended one ( CSHELL ) then, change to it and try again,&lt;/P&gt;&lt;P&gt;If you are using KSHELL, be sure not only to define the variable, but to EXPORT the variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another question(s)&lt;/P&gt;&lt;P&gt;Does it work if you start it at OS level?&lt;/P&gt;&lt;P&gt;Do you have an SAP instance on the DB Server or only the SAP gateway?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2007 07:49:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sapcheck-environment-variable/qaa-p/2801763#M1164994</guid>
      <dc:creator>fidel_vales</dc:creator>
      <dc:date>2007-09-11T07:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: sapcheck environment variable</title>
      <link>https://community.sap.com/t5/technology-q-a/sapcheck-environment-variable/qaa-p/2801764#M1164995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jeff, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To answer your question regarding which user's  environment variables are used: When you run jobs from db13, the executables are being called from sidadm. However, depending on the permissions and ownership that the executable that is called has, the process can be run by orasid as well. So, if you call something from db13 , it starts with sidadm, but if the executable is owned by orasid and the s flag is set instead of x on the permissions, it will run with orasid. Maybe this is why the ORACLE_HOME is picked up instead of SAPDATA_HOME? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are my permissions, which work fine in 5 installations we have here. Maybe you can run saproot.sh as root (this is under /sapmnt/SID/exe ) as root:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;./saproot.sh SID &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the correct permissions will be set  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-rwsrwxr-x   1 oraprd   sapsys   4898192 Jan 21  2007 brarchive&lt;/P&gt;&lt;P&gt;-rwsrwxr-x   1 oraprd   sapsys   5042888 Jan 21  2007 brbackup&lt;/P&gt;&lt;P&gt;-rwsrwxr-x   1 oraprd   sapsys   6622328 Jan 21  2007 brconnect&lt;/P&gt;&lt;P&gt;-rwxr-xr-x   1 prdadm   sapsys   5409416 Jan 21  2007 brrecover&lt;/P&gt;&lt;P&gt;-rwxr-xr-x   1 prdadm   sapsys   2132496 Jan 21  2007 brrestore&lt;/P&gt;&lt;P&gt;-rwxr-xr-x   1 prdadm   sapsys   6817944 Jan 21  2007 brspace&lt;/P&gt;&lt;P&gt;-rwsrwxr-x   1 oraprd   sapsys   2758224 Jan 21  2007 brtools&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ensure that the brtools, brspace, brconnect etc executables in the system where you have the issue  have exactly the same ownership /permissions with the system where everything works fine. Pay particular attention that the "set user id on execution" bits or flags are correctly set  (the S instad of x )  (rwsr_xr_x)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2007 09:32:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sapcheck-environment-variable/qaa-p/2801764#M1164995</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-11T09:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: sapcheck environment variable</title>
      <link>https://community.sap.com/t5/technology-q-a/sapcheck-environment-variable/qaa-p/2801765#M1164996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to all of you who gave me suggestions&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2007 16:11:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sapcheck-environment-variable/qaa-p/2801765#M1164996</guid>
      <dc:creator>former_member263733</dc:creator>
      <dc:date>2007-10-15T16:11:54Z</dc:date>
    </item>
  </channel>
</rss>

