BASIS-- SAP: Troubleshooting Server Startup

Checklist for troubleshooting SAP server startup:

What to Check How to Check It Tips
Network
  1. Make sure that your database is mounted and open.
  2. Use either Control Panel >> Services >> Oracle TNSListener, or the command lsnrctl (preferable) to start the listener service
  3. execute tnsping
  4. execute tp connect (from /usr/sap/trans/bin dir). If it doesn't work, do a tp go to show the environment variables.
Check listener.ora, tnsnames.ora, sqlnet.ora. Using lsnrctl gives more feedback, which is recorded in the file listener.log. Also see sqlnet.log
Database Use svrmgr or sqldba to check database startup and shutdown:
  1. connect internal
  2. shutdown
  3. startup
  1. add the immediate or abort options to shutdown if necessary
  2. divide startup into phases by starting startup nomount, then continuing with alter database mount and alter database open
  3. try alter database recover after a crash or power failure
Applications After successfully starting the database, start the application services (from NT, use the SAP Service Manager). From UNIX, use the startsap r3 script).
  • Check the logs in the directory usr/sap/SID/DVEBMGS/work
  • For NT, make sure the Oracle and SAP Services are started. Also check that the NT service RPC is started and working (test it by adding a new printer; if the first screen shows up, it should be OK).
SAP DB + Applications If both the DB and applications startup are fine when performed separately, try starting them together with the SAP Service Manager (NT) or startsap (UNIX). For NT, the startsap script can be found in usr/sap/SID/SYS/exe/run/strdbs.cmd


Troubleshooting other applications:

Application How to Check It Tips
SQL*Plus Make sure that
  1. the services OracleServiceSID and OracleTNSListener are started
  2. the database is started and opened
  3. the command tnsping returns OK (see above for tips on troubleshooting the listener)
First try running the SQL*Plus client from the server (Start >> Oracle for Windows NT >> SQL_Plus 3.x), Enter system/manager for username/password and for host string.
  1.  

Sample Oracle Network Configuration Files for SAP 

These are sample files for configuring the Oracle network services. The three files involved are listenter.ora, tnsnames.ora, and sqlnet.ora. These files can be generated using the NETV8.EXE utility (included on the SAP 4.0B upgrade CD). The utility can generate files for different Oracle versions, including 7.2, 7.3, and 8.0.

These are sample files for an SAP server called "sap2" with a system ID of "D01". Note that network files for Oracle 7 are located in the folder /Network/Admin; those for Oracle 8 are located in the folder /Net80/Admin. 


 Sample Oracle Network LISTENER.ORA Files 
 ################
# Filename......: listener.ora (for Oracle 8)
# Node..........: local.world
# Date..........:
################
LISTENER =
        (ADDRESS =
          (COMMUNITY = TCP.world)
          (PROTOCOL = TCP)
          (Host = sap2)
          (Port = 1527)
        )
        (ADDRESS=
          (COMMUNITY= TCP.world)
          (Host = sap2)
          (PROTOCOL= TCP)
          (Port= 1521)
        )
        (ADDRESS=
          (COMMUNITY= TCP.world)
          (Host = sap2)
          (PROTOCOL= TCP)
          (Port= 1526)
        )
  )
STARTUP_WAIT_TIME_LISTENER = 0
CONNECT_TIMEOUT_LISTENER = 10
TRACE_LEVEL_LISTENER = OFF
SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SDU = 4096)
      (SID_NAME = D01)
      (ORACLE_HOME = C:/ORANT)
      (PRESPAWN_MAX = 10)
    )
    (SID_DESC =
      (SID_NAME = ORCL)
    )
  )
PASSWORDS_LISTENER = (oracle)


 

 

Sample Oracle Network TNSNAMES.ORA Files

# TNSNAMES.ORA (for Oracle 8)
Tcp-loopback.world =
  (DESCRIPTION =
    (ADDRESS_LIST =
        (ADDRESS =
          (COMMUNITY = tcp.world)
          (PROTOCOL = TCP)
          (Host = 127.0.0.1)
          (Port = 1521)
        )
    )
    (CONNECT_DATA = (SID = ORCL)
    )
  )
D01.world =
  (DESCRIPTION =
    (ADDRESS_LIST =
        (ADDRESS =
          (COMMUNITY = tcp.world)
          (PROTOCOL = TCP)
          (Host = sap2)
          (Port = 1521)
        )
        (ADDRESS =
          (COMMUNITY = tcp.world)
          (PROTOCOL = TCP)
          (Host = sap2)
          (Port = 1526)
        )
    )
    (CONNECT_DATA = (SID = D01)
    )
  )

Sample Oracle Network SQLNET.ORA File (Oracle 7 or 8)

 AUTOMATIC_IPC = ON
 TRACE_LEVEL_CLIENT = OFF
 names.directory_path = (TNSNAMES)
 NAMES.DEFAULT_DOMAIN = world
 NAME.DEFAULT_ZONE = world
 names.default_domain=world 
来源:http://www.geocities.com/SiliconValley/Grid/4858/sap/Basis/startup.htm


Trackback: http://tb.blog.youkuaiyun.com/TrackBack.aspx?PostId=1611192


2025-11-04 15:15:40 CST INFO [main] --- ======== Detect Issues ========2025-11-04 15:15:40 CST INFO [main] ---2025-11-04 15:15:40 CST INFO [main] --- DETECTORS:2025-11-04 15:15:40 CST INFO [main] --- Detector Issue2025-11-04 15:15:40 CST INFO [main] --- EXECUTABLE_FAILED: Maven CLI2025-11-04 15:15:40 CST INFO [main] --- Failed to execute command, returned non-zero (1): D:\NFC\eclipse\apache-maven-3.6.3\bin\mvn.cmd dependency:tree -T12025-11-04 15:15:40 CST INFO [main] ---2025-11-04 15:15:40 CST INFO [main] --- Detector Issue2025-11-04 15:15:40 CST INFO [main] --- EXCEPTION: Maven Project Inspector2025-11-04 15:15:40 CST INFO [main] --- Exception occurred: Unable to locate previous install of the project inspector.2025-11-04 15:15:40 CST INFO [main] ---2025-11-04 15:15:40 CST INFO [main] --- ======== Detect Result ========2025-11-04 15:15:40 CST INFO [main] ---2025-11-04 15:15:40 CST INFO [main] --- Black Duck Project BOM: https://blackduck.hmg-corp.io/api/projects/0883bf43-3328-43c2-a5ee-aeba9fa51454/versions/3bce907f-e7bf-4776-bca8-19e354db488f/components2025-11-04 15:15:40 CST INFO [main] ---2025-11-04 15:15:40 CST INFO [main] --- ======== Detect Status ========2025-11-04 15:15:40 CST INFO [main] ---2025-11-04 15:15:40 CST ERROR [main] --- MAVEN: FAILURE2025-11-04 15:15:40 CST INFO [main] ---2025-11-04 15:15:40 CST INFO [main] --- Signature scan / Snippet scan on D:\D\JAVA17NFC\workspace\NFC_Service: SUCCESS2025-11-04 15:15:40 CST ERROR [main] --- Overall Status: FAILURE_DETECTOR - Detect had one or more detector failures while extracting dependencies. Check that all projects build and your environment is configured correctly.2025-11-04 15:15:40 CST INFO [main] ---2025-11-04 15:15:40 CST INFO [main] --- If you need help troubleshooting this problem, generate a diagnostic zip file by adding '-d' to the command line, and provide it to Synopsys Technical Support. See 'Diagnostic Mode' in the Detect documentation for more information.2025-11-04 15:15:40 CST INFO [main] ---2025-11-04 15:15:40 CST INFO [main] --- ===============================2025-11-04 15:15:40 CST INFO [main] ---2025-11-04 15:15:41 CST INFO [main] --- Detect duration: 00h 17m 23s 559ms2025-11-04 15:15:41 CST ERROR [main] --- Exiting with code 5 - FAILURE_DETECTOR 这个该怎么解决啊
11-05
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值