Ads from Google

Showing posts with label Unix. Show all posts
Showing posts with label Unix. Show all posts

Friday, September 28, 2007

problem and how to stop all sap production, start r3, startsap stopsap command

Problem and how to stop all sap production, start r3, startsap stopsap command

command: as sidadm user "stopsap all" contain following command: "saposcol -l","stopsap r3" and "stopsap db". Additional step to fully stop the instance is run "lsnrctl stop" (under orasid) or in Win you can stop services SID*Services (?)
command: as sidadm user "startsap all" contain following command: "stopsap db" and "stopsap r3". Prerequisite for this is run "lsnrctl start" or start Oracle*Listener service in Windows (?). For other database , the command will be different (lsnrctl command and service name)

The command can be used in production, development, and quality assurance system / QAS. In production, it may slightly be different of high availability setting , e.g. starting and stopping script including startsap and stopsap are included in cluster scripts. The scripts will manage SAP instance, file system, IP address, hostname, database instance resources etc as cluster component. Production also may have more nodes and additional application server comparing to Dev and QAS system.

In Unix/Linux/HPUX/HP-UX/AIX/Windows we can use the command stopsap and staratsap.

In Windows only we can use MMC for SAP .

Reference:
SAP MaxDB Administration
SAP DB/MaxDB.
SAP Business All-In-One - 25 Named User Licenses - MaxDB on Linux
SAP Basis Administration Handbook, NetWeaver Edition
Basis Administration for SAP (SAP R/3)
SAP R/3 System Administration: The Official SAP Guide
SAP R/3 Administration for Dummies
SAP BASIS / Netweaver Administration Academies 2007
SAP Basis Administration
Supply Chain Management auf Basis von SAP-Systemen: Perspektiven der Auftragsabwicklung für Industriebetriebe (SAP Kompetent) (German Edition)
SAP Database Administration with Oracle

There is also browser and java based SAP start and stop management menu and script in all supported operating system.

The stopsap and startsap command also will stop or start java stack in dual stack or single stack (standalone java) of SAP j2ee server. The java component can be also started or stopped through jcmon command e.g.
jcmon pf=profileFIleInFullPath

In Netweaver 7.1 and more the jcmon can't be called since it becomes internal command, there is error
"CMon is a tool for internal use only."
In this case, you can use jsmon as text mode or graphical mode of SAP Management console / MMC to the java stack using internet browser with following address
http://hostname:5TwoDigitOfinstanceNumber13/ e.g. http://netweaver71:50013/

MMC will run applet in your local computer and requires correct java run time environment  / JRE installation.

Example of jsmon command is
jsmon pf=profileFIleInFullPath
http://help.sap.com/saphelp_nwpi71/helpdata/en/c9/291745bd4849e980c5d3b2e1312244/frameset.htm

Alternatively start and stop can be found in NWA (Netweaver Administration) with following URL:
http://hostname:5TwoDigitOfinstanceNumber00/nwa e.g. http://netweaver:50000/nwa

In case of starting problem:
- try to start up the database only first
- check connection to database : in OS level, login first as sidadm, then run "R3trans -d" command, if RC or return code = 0 is successful, RC >=8 is error, then check file trans.log in same folder you run R3trans command
- hostname problem: check with starsap all HOSTNAME (error profile not found may refer to hostname problem)
- profile problem: make sure profile entries are correct, there are 3 type of parameters in /sapmnt/SID/profile folder (\\hostname\sapmnt\SID\profile in Windows) : DEFAULT, START, and instance profile. Make sure the consistency using sappfpar / pfcheck command in operating system level


Monday, June 25, 2007

mastering vi editor

When i work in Unix environment such as HP-UX, IBM AIX, Linux, or Solaris; it is very important to be able to edit files. The file could be configuration file, scripts, or just note. I still remember some command of vi after long time not using it (more than 1 year) by limiting to remember only certain important command of vi. I think no need to master vi. Also don’t expect to use easy editor such as pico editor I got 5 years ago in FreeBSD environment, be familiar with vi is a must for people who take care of Unix system.

vi editor , Unix system. Limited command

ESC ESC ESC ….

d

dd

i addition / insert

/text ENTER : search “text″

:angka ENTER : go to “angka”

:q ENTER exit

:w ENTER save file

ending ! to force e.g. :w!, :wq!

backspace?? …try combination move right/left and d (delete char)

“vi namifile.txt”

type i

coba ketik pancasila dan beberapa silanya

coba hapus salah satu kata

coba tambah kata di tengah2 baris

coba hapus satu baris

coba cari kata “yang”

simpan file

keluar

keluar sambil ga simpan pake :q!

Monday, June 18, 2007

Idea: Migration Services from Windows to Linux

This is actually not my idea and Im not an expert on Windows and Linux. However it is worth to define the business opportunity around Windows and Linux. Both are great operating system. Some idea regarding on this are:

  • Migration services from Windows to Linux
  • Support services for Windows
  • Support services for Linux server and client
  • Assessment services for Migration: migration blueprint

For migration services:

  • contract based, handed-over to customer with clear delivery strategy
  • clear deliverables: what object to be delivered (document, assessment, blueprint, servers, project, implementation, migration, upgrade, etc)
  • project templates for accelerated-blue print and execution
  • documentation on all possible business scenario on existing system
  • documentation on all possible business risks from migration, escalation strategy, and resolution (solution)
  • clear roadmap and its timeline for migration
  • high-level scenario for the migration
  • divide the migration projects into smaller sub-projects and components, such as server components (web server, email server, etc), office application component, additional tools, etc
  • clear overall cost for migration (please to consider no such free lunch)
  • delta training availability: training on how user use same scenario from previous Windows system in Linux
  • migration support services: onsite support, helpdesk and remote support
  • migration mapping and migration path
  • etc to be continued

Basic Network Administration for SAP Basis

SAP Basis Administrator 1. operating system 2. database admin 3. SAP application server 4. network administration , network admin . basic instalasi, support, proyek teknikal SAP.

Unix, Linux di Windows:

  • ipconfig, ifconfig
    • unix: ifconfig
    • windows: ipconfig /all, ipconfig /release, ipconfig /renew
    • network-interface
  • ping nomorIP, ping -l nomerIP
    • unix: ping www.yahoo.com
    • windows: ping -t www.yahoo.com, ping -l 100 www.yahoo.com
  • traceroute nomerIP, tracert nomerIP
    • unix: tracert www.yahoo.com
    • windows: traceroute www.yahoo.com
    • akses server
    • netstat -a
    • unix: man netstat
    • windows: netstat -a
  • telnet nomerIP nomorport/tcp
  • route print, route add, route delete
  • file services, file hosts
  • konsep IP, mask, gateway
    • nomer IP, hostname. hostname www.yahoo.com yahoo.com (dua hostname 1 alamat IP or 2). Resolve, resolving: hostname diterjemahkan alamat IP from file hosts (Unix di /etc/hosts, Windows di c:\windir\system32\drivers\etc\hosts) or from DNS server.
  • konsep client server: nomer IP, nomer port
  • dasar routing : maksimal manual routing

learning technique

  • praktek not only in Windows , juga di Linux
  • usahakan gunakan CLI (command line interface: parintah DOS, shell)
  • paksakan ngetik, jangan copy paste
  • dokumentasi
    • Windows parameter /h misalnya “ping /h”
    • Linux/Unix : parameter -h contohna “ping -h” (??), kadang parameter –help, kadang “man ping”
  • simulasi kerjaan
  • kalau di Windows, coba juga ingat2 di Linux/Unix (pasti mirip2) juga sebaliknya

Basic tutorial to add IP address to a Windows computer:

  • tambah hardware (Network Card, masih bisa adapter boongan) : dari “Control Panel” Add/Remove Hardware –> Add –> Add New –> No,select from list –> Network Adapter –> Manufacturer = Microsoft , pilih “Microsoft Loopback Adapter”
  • konfigurasi nomer IP: ti “Control Panel” –> Network … –> pilih anu device name = “Microsoft Loopback Adapter” –> component dipilih = “Internet Protocol (TCP/IP)” (jangan di untick!) –> click tombol properties

· use the following IP address

· IP address = 192.168.100.1

· mask = 255.255.255.0

· gateway = bisa dikosongkeun

· klik OK

  • hasilnya komputer ber alamat 192.168.100.1, test “ping localhost”, “ping 192.168.100.1″, “ipconfig /all”

Scheduled Jobs:

  • telnet dan konsep client/server, contoh kasus Web server+ SAP server: contoh “telnet www.yahoo.com 80/tcp” ( response server yahoo.com di port 80 / web server) atau “telnet 1.1.1.1 25/tcp” (akses port smtp/email server)