设为首页 收藏本站
查看: 547|回复: 0

[经验分享] BASIS-- SAP: Troubleshooting Server Startup

[复制链接]
累计签到:1 天
连续签到:1 天
发表于 2016-11-8 00:01:25 | 显示全部楼层 |阅读模式
Checklist for troubleshooting SAP server startup:
            What to Check             How to Check It             Tips                             Network                        
                   
  • Make sure that your database is mounted and open.               
  • Use either Control Panel >> Services >> Oracle TNSListener, or the command lsnrctl (preferable) to start the listener service               
  • execute tnsping <SID>               
  • execute tp connect <SID> (from /usr/sap/trans/bin dir). If it doesn't work, do a tp go <SID> 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:            
                   
  • connect internal               
  • shutdown               
  • startup            
                                    
                   
  • add the immediate or abort options to shutdown if necessary               
  • divide startup into phases by starting startup nomount, then continuing with alter database mount and alter database open               
  • 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            
                   
  • the services OracleServiceSID and OracleTNSListener are started               
  • the database is started and opened               
  • the command tnsping <SID> 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 <SID> for host string.            
     
                                
  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 <OracleHome>/Network/Admin; those for Oracle 8 are located in the folder <OracleHome>/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

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-297013-1-1.html 上篇帖子: SQL Server使用xp_cmdshell提示“不是内部或外部命令,也不是可... 下篇帖子: 在与 SQL Server 建立连接时出现与网络相关的或特定于实例的错误。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表