新的Sap实例不起作用。找不到实例配置文件

时间:2019-06-30 22:20:29

标签: sap vmware ubuntu-18.04

我已经在ubuntu虚拟机(vmware)上安装了SAP服务器7.51。安装成功,但是当我开始运行时,出现以下错误:

ubuntu:npladm 1> startsap all
No instance profiles found

please send the tracefile /home/npladm/startsap.trc to support

我输入ifconfig并得到以下信息:

  

ens33:标志= 4163 mtu 1500           inet 192.168.234.130网络掩码255.255.255.0广播192.168.234.255           inet6 fe80 :: e152:4277:1c5f:3311 prefixlen 64 scopeid 0x20           以太00:0c:29:9f:48:53 txqueuelen 1000(以太网)           RX数据包1739字节1139138(1.1 MB)           接收错误0掉线0超限0帧0           TX数据包1406字节145716(145.7 KB)           TX错误0掉线0超限0载波0冲突0

     

lo:标志= 73 mtu 65536           inet 127.0.0.1网络掩码255.0.0.0           inet6 :: 1 prefixlen 128作用域ID 0x10           循环txqueuelen 1000(本地环回)           RX数据包5009字节1102113(1.1 MB)           接收错误0掉线0超限0帧0           TX数据包5009字节1102113(1.1 MB)           TX错误0掉线0超限0载波0冲突0

我检查了主机文件中的IP地址是否正确,如下所示:

cat /etc/hosts
127.0.0.1   localhost
127.0.1.1   ubuntu

# mapping the Ubuntu loopback IP 127.0.1.1 to ubuntu
192.168.234.130 ubuntu  ubuntu.dummy.nodomain

# The following lines are desirable for IPv6 capable hosts ::1     ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters
127.0.0.1   localhost
127.0.1.1   ubuntu

# mapping the Ubuntu loopback IP 127.0.1.1 to vhcalnplci
127.0.1.1   vhcalnplci  vhcalnplci.dummy.nodomain

如您所见,ip地址应该正确(192.168.234.130)并且可以ping通,但仍然无法正常工作。

更新

这也是跟踪日志文件:

Trace of system startup/check of SAP System NPL on Mon Jul  1 01:08:45 PDT 2019


{01:08:45 ## Main() start: @=/usr/sap/NPL/SYS/exe/uc/linuxx86_64/startsap all
 @(#) $Id: //bas/749_STACK/src/krn/startscripts/startsap#1 $
 BASENAME=startsap

 {01:08:45 ## check_user() start: @=npladm
 }01:08:45 ## check_user() done

 #=1
 @=all

 {01:08:45 ## setPlatform() start
  PLATFORM=linuxx86_64
 }01:08:45 ## setPlatform() done

 {01:08:45 ## setPing() start
  PING=/bin/ping
 }01:08:45 ## setPing() done

 {01:08:45 ## setIfconfig() start
  IFCONFIG=/sbin/ifconfig
 }01:08:45 ## setIfconfig() done

 {01:08:45 ## setIp() start
  IP=/sbin/ip
 }01:08:45 ## setIp() done

 {01:08:45 ## setRootDir() start: @=
  USR_SAP=/usr/sap
  USR_SAP_SID=/usr/sap/NPL
  PROFILE_DIR=/usr/sap/NPL/SYS/profile
  DIR_LIBRARY=/usr/sap/NPL/SYS/exe/run
 }01:08:45 ## setRootDir() done

 {01:08:45 ## setDbUser() start: @=
 }01:08:45 ## setDbUser() done

 Argument=all

 {01:08:45 ## getarg() start

  {01:08:45 ## checkInstance() start: @=all
  }01:08:45 ## checkInstance() done: 1

  {01:08:45 ## checkTask() start: @=all
   _opt=all
  }01:08:45 ## checkTask() done: 0

  TASK=ALL
 }01:08:45 ## getarg() done: 1

 {01:08:45 ## setVHostArray() start
  _PROFILES=/usr/sap/NPL/SYS/profile/NPL_ASCS01_ubuntu /usr/sap/NPL/SYS/profile/NPL_D00_ubuntu
  _nrProfiles=2

  {01:08:45 ## pushVHostsFromProfile() start: @=/usr/sap/NPL/SYS/profile/NPL_ASCS01_ubuntu /usr/sap/NPL/SYS/profile/NPL_D00_ubuntu
   _DUMMY=NPL_ASCS01_ubuntu
   _VHOST=ubuntu

   {01:08:45 ## isVHostLocal() start: ubuntu
    VHOST=ubuntu
    _IS_LOCAL=0
   }01:08:46 ## isVHostLocal() done: 0

   _DUMMY=NPL_D00_ubuntu
   _VHOST=ubuntu

   {01:08:46 ## isVHostLocal() start: ubuntu
    VHOST=ubuntu
    _IS_LOCAL=0
   }01:08:46 ## isVHostLocal() done: 0

   VHOSTS=
  }01:08:46 ## pushVHostsFromProfile() done

  VHOSTS=
 }01:08:46 ## setVHostArray() done

 {01:08:46 ## set_instance() start
  NINST=
  INSTFOUND=0
  NINSTFOUND=0
  hasABAP=0
  hasJava=0
  hasSpecial=0
 }01:08:46 ## set_instance() done

No instance profiles found

Exit code 8

关于该错误以及如何解决该错误的其他想法?谢谢。

1 个答案:

答案 0 :(得分:0)

在 /etc/hosts 中更新我的虚拟机的 ip 地址有帮助:

> sudo nano /etc/hosts
..
192.168.1.218   vhcalnplci vhcalnplci.dummy.nodomain

...然后我启动了服务器

> startsap ALL

.. 并检查实例是否正在运行

> sapcontrol -nr 00 -function GetProcessList