Thứ Sáu, 26 tháng 9, 2014

LOAD_TRFO_PROGRAM_MISMATCH short dump

Hôm nay tự dư SOLMAN bị lỗi runtime tùm lum, dù chạy Dialog hay Batchjob, ST22 ghi nhận lỗi như ở phần tiêu đề ===> làm theo cái Note sau ok nè

Cái này lâu rồi và được SAP ghi nhận là lỗi trên tất cả các phiên bản SAP Netweaver ...mà sao giờ mới gây ra lỗi không biết. Dù sao thì SAP cũng có cái Note này để fix

1918773 - LOAD_TRFO_PROGRAM_MISMATCH short dump when executing transformation



Thứ Sáu, 19 tháng 9, 2014

Upgrade - Phase Execution Failed in MAIN_TRANSEXEC/KX_SWITCH_TRANS

Vấn đề này lặp đi lặp lại mà không biết sao SAP chưa cập nhật lại phần mềm

Dùng SUM v10.0 để thực hiện upgrade/update cái ERP (ECC), cứ đến phase 5.6 - Execution là failed như sau:

       Severe error(s) occurred in phase MAIN_TRANSEXEC/KX_SWITCH_TRANS!
Last error code set: Deleting 'F:\usr\sap\QAS\DVEBMGS00\exe\sapstartsrv.exe' failed: Access is denied. <br/>

Có một số files như vậy chứ không chỉ riêng file này

Tạm thời chưa có solution nào, chỉ có work around là vào chỗ đó RENAME file đó đi, mà có những file rename cũng chẳng giải quyết được (*.dll..) thì thử move đi chỗ khác (để ở folder khác phòng khi cần..)


Upgrade SAP ERP - SUM failed on phasePREP_PRE_CHECK/DBCHK_PRE!

Hôm nay Upgrade trên 1 Distribution System với SUM
Mới vào phần PRE đã bị lỗi

Phase: PREP_PRE_CHECK/DBCHK_PRE!    
Error code set: OSQL call failed for MSSUPGGETREL


--> Mất cả buổi search & download, setup, stop SUM, re-unzip SUM, restart lại mới qua được bước này

Thì ra với hệ thống dạng Distribution này nó cần thêm cái goin là SqlCmdLnUtils


Tóm lại là xem Note này:
1690835 - MSS: Add. Info. - Software Update Manager 1.0 SP4

và làm theo thông tin ở phần
3   Preparing the EPHI

  • 23/April/2010
    ABAP/ABAP+JAVA:
    SQLCMD must be installed on the central instance host as a prerequisite for any update (EhP installation) of an SAP system running on SQL Server 2005 and higher. Especially in case of a distributed SAP system (i.e. database instance and central instance are not running on the same host), SQLCMD might not be installed when following the SAP installation documentation.
    SQLCMD is part of the "Feature Pack for Microsoft SQL Server" and can be downloaded at:
    • http://www.microsoft.com/downloads/details.aspx?familyid=d09c1d60-a13c-4479-9b91-9e8b9d835cdc&displaylang=en (for SQL Server 2005)
    • http://www.microsoft.com/en-us/download/details.aspx?id=30440 (for SQL Server 2008) -> SqlCmdLnUtils
    • http://www.microsoft.com/download/details.aspx?id=29065 (for SQL 2012) -> Microsoft® SQL Server® 2012 Command Line Utilities



               You can check whether SQLCMD is installed by calling the following command from the command line:
    sqlcmd -?
    SQLCMD shows the version at the beginning of the output, e.g. Version 9.00.4035.00 NT AMD64.
               If sqlcmd can still not be found, check if the path to sqlcmd (usually %ProgramFiles%\Microsoft SQL Server\<ver>\Tools\Binn) is part of your PATH environment variable. If this is not the case, please add the path to the PATH envrionment variable and restart SUM.

    Thứ Tư, 17 tháng 9, 2014

    Install - Update SDM trên SOLMAN

    Hôm nay Update cái SOLMAN
    Đến phần Java thì gặp một số vấn đề...chưa gặp phải

    Đầu tiên thì vẫn theo cái Note 1059901 để dùng cái SDM mà update (theo cách mới,,,)
    Sau đó thì có 1 file để update chính cái SDM ( SMDKIT*.jar)

    Loay hoay một hồi rồi cũng update được cái này với Link sau

    http://wiki.scn.sap.com/wiki/display/TechTSG/(ASJava)(Deploy)H024+-+SDM+-+How+to+install+or+update+the+SDM+server

    Sẽ tiếp tục update các SCA files...

    Thứ Tư, 23 tháng 7, 2014

    Thay HDD Setup SAP & SAP Service không start được

    HDD đang được cài đặt SAP execution có vấn để và cần thay đĩa.
    Mình đã làm như sau

    Add thêm 1 đĩa mới (từ SAN) có dung lượng bằng đĩa cũ
    Đĩa cũ tên là X, cái mới add tên là Y
    Copy toàn bộ đĩa X sang Y

    ---
    Stop SAP system, services...
    Hoán đổi tên 2 cái đĩa kia và offline luôn cái đĩa cũ (giờ nó là Y)
    Khởi động lại OS

    ---
    Vào service, các SAP service không thể start được và lỗi cũng rất sở sài, rất khó biết nguyên nhân
    --->Vào thư mục \DVEBMGS<instance no>\work và  Rename các files

    1. sapstart.log
    2. sapstartsrv.log

    ==> thế là Service có thể restart được.

    ---
    Nhưng lúc này thì vào MMC, không start được SAP
    Lý do là mất Permission

    Có lẽ lúc thay đổi các thuộc tính ổ đĩa mà các SAP account bị mất
    ==> Vào phần Security (Properties) của thư mục "sap", kiểm tra và add thêm 2 Group là SAP_LocalAdmin & SAP_DAA_GlobalAdmin


    Khởi động lại OS và start SAP thành công

    Chủ Nhật, 13 tháng 7, 2014

    Thay đổi SQL Collation

    SQL sử dụng Collation để so sánh các chuỗi ký tự (bảng mã), khi setup, SQL tự chọn mặt định một collation dựa trên các thiết lập của Windows, việc này thường gây ra lỗi khi chạy các ứng dụng sử dụng SQL và các bảng tạm (#(#)table trên Temp DB)

    Cách 1: (với SQL 2005 trở lên???!!!)
    - mở cmd (admin), go to folder setup of SQL
    - setup /Quiet /Action=RebuildDatabase /InstanceName=MSSQLServer /SQLSysAdminAccounts=STDomain\Administrator /SAPWD=sqladm /SQLCollation=SQL_Latin1_General_CP1_CI_AS

    Cách 2: (với SQL 2000)
    - Backup & Detatch các Users DB
    - Shutdown SQL và chạy chương trình có sẵn Rebuildm.exe (Program Files\Microsoft SQL Server\80\Tools\Binn)
    - Browse tới thư mục Data của source cài đặt SQL (Chú ý: không phải thư mục Data trong thư mục cài đặt SQL). Nếu không có thì cứ copy cái thư mục DATA trong x86 của Source bỏ vào HDD rồi browse chỉ tới đấy
    - Ở nút Settings, Click rồi tìm chọn cái Collation như mong muốn
    Ví dụ: muốn Collation = SQL_Latin1_General_CP1_CI_AS
    Thì chọn tùy chọn "SQL Collations (Used for...) và "Dictionary order, case-insensitive, for use with 1252 Character Set"

    - Restart SQL & Restore/Attach user DB & test


    Thứ Năm, 19 tháng 6, 2014

    Sử dụng SDM để upgrade một số Java Components

    Lâu nay mình vẫn dùng JSPM để update/upgrade cho các Java components (*.SCA,...)
    Nhưng hôm nay phải upgrade Wily Introscope Agent từ version 8.2.4.0-2012-01-27 lên 8.2.4.0-2012-06-26
    Sau khi tìm và down được file yêu cầu từ SMP, làm hoài với cái JSPM không được.

    Thì ra cái này (và một số thứ khác nữa...) phải dùng cái SDM (Software Deployment Manager) để thực hiện
    ==> Chưa bao giờ làm cái này...

    Có một số chỉ dẫn linh tinh khác để tham khảo về các lựa chọn, step... Tuy nhiên, điều cơ bản cần làm là theo cái Note sau là được.

    1059901 - How to deploy patches with SDM


    Kết quả là: Dữ liệu Java của ISA cho SOLMAN được thu thập và các khoảng mục "Java System Data for SOL" -> "Availability of Java Performance Data" & "Service Data Quality" -> "Quality of Service Data in Solution Manager Diagnostics - BW" to be GREEN.

    *********************************************************************************

    Solution

    To deploy an SCA or SDA, proceed as follows:
      1. Make sure you have downloaded the SCA or SDA from SAP Service Marketplace.
      2. Start the SDM GUI. To do this, execute the following file:
      a) Windows: RemoteGui.bat in folder \usr\sap\<SID>\<instance>\SDM\program
      b) Unix: RemoteGui.sh in folder /usr/sap/<SID>/<instance>/SDM/program
      3. The SDM GUI screen appears.
      Note: With SAP Web Application Server 6.30 the SDM server is started whenever you start the SAP system. To check whether the SDM server is running, use the tools SAP Management Console (Windows) or jcmon (UNIX).
      4. Choose "SDM Gui -> Login" or the icon "Connect to SDM Server". The dialog box "Enter Login Information for SDM Server" appears.
      5. Enter the following information:
      a) Password
      The initial password is "sdm" (without quotes).
      b) User description (optional)
      c) Hostname
      d) Port
      With instance number 00, the default port number is 50018. If your instance number is different from 00, the port number changes to
      Port = 50018 + 100 x <instance number>.
      You have to calculate the new port number and enter it manually.
      6. Choose "Login". The SDM GUI appears.
      7. Choose tab "Deployment".
      8. Choose "Add SCA/SDA to Deployment List (Local File Browser)". A file selection screen appears.
      9. Select the SCA or SDA file you would like to deploy.
      10. In the Deployment Configuration area of the screen, which you can open or close with the arrow icons, choose "Update deployed SDAs/SCAs that have any version"
      11. Choose "Next" until the "Start" button appears.
      12. Choose "Start". After the SCA or SDA has been completely deployed, a success message appears.
      13. Choose "Confirm" to return to the SDM GUI.
      14. When you have finished work, log out from the SDM server. Choose "Deployment -> Logout" or the icon "Disconnect from SDM server" for this.
    For more information on deploying Java Support Packages, see the SDM online documentation.