9 Kasım 2009 Pazartesi

aix shell conf

stty
speed 9600 baud; -parity
erase = ^?; eol = ; eol2 =
brkint -inpck -istrip icrnl onlcr tab3
echo echoe echok
$ stty erase "BackspaceKey"
$ stty erase '^H'
$ stty
speed 9600 baud; -parity
eol = ; eol2 =
brkint -inpck -istrip icrnl onlcr tab3
echo echoe echok

http://users.ca.astound.net/baspence/AIXtip/index.html

http://it.toolbox.com/blogs/my-two-cents/customizing-aix-prompt-32801$LOGNAME'@'$(hostname)':$PWD >'

set prompt="`uname -n`:`whoami` \!> "


.kshrc
> # configuring ksh for use with Emacs tramp
> unset HISTFILE
> unset HISTSIZE
> /bin/rm $HOME/.sh_history
http://www.mail-archive.com/emacs-rcp@ls6.cs.uni-dortmund.de/msg02448.html

SAP perf analiz

CPU
sar, vmstat, mpstat, iostat

Memory
sar, vmstat

Disk
sar, iostat

Network
netstat

BR1049W Not enough free space in /oracle/sid/sapdata5/sr3_63
for total maximum size of all database files of tablespace PSAPSR3
located on this disk volume, missing at least 272.222 MB
-------------------------------



"Knowledge is power, but it is only useful if it is shared!"


A sample backup schedule might look like:
1. Hourly - brarchive backup of archive logs
2. Daily - brbackup backup of full database
3. Monthly - file system backup of /sapmnt/, including SAP executables and profile data, and /oracle/SID/_/dbs & network ---making sure you get Oracle/SAP init files and network files (tnsnames.ora, listener.ora,\nnames.ora, etc., though you might have relocated these files elsewhere), & /usr/sap/trans directory.
4. Quarterly - Oracle export performed to tape.

This schedule is good enough for a small system landscape with an orgnanization. If the landscape is huge, then you need to re-think about how backup is done. An integration with Oracle RMAN is good for running incremental backup. This will reduce the number of media needed for running daily full online backup - storage optimization


--------------------------------
Authorization data administrator
Authorization profile administrator
User administrator
System administrator
Database administrator
Customizing project member
ABAP developer
Workplace end user


-----------------------------------
SAP gives you standard Basis role :

SAP_BC_BASIS_ADMIN
SAP_BC_DB_ADMIN or SAP_BC_DB_ADMIN_ORA if you are using Oracle
SAP_BC_CLIENTCOPY
SAP_BC_BATCH_ADMIN
SAP_BC_TRANSPORT_ADMINISTRATOR
SAP_BC_SPOOL_ADMIN

copy that to ZSAP_BC_BASIS_ADMIN, ZSAP_BC_DB_ADMIN, ZSAP_BC_DB_ADMIN_ORA, etc. then modify that Zrole if you need to add or remove tcode and/or authorization objects. and finally assign to your consultant username.

but you have to monitor your consultant for what they did on your production server using STAD.

----------------------

#grep MemTotal /proc/meminfo - Fiziksel Ram
#grep SwapTotal /proc/meminfo - swap
#df -k /tmp - /tmp dizinindeki boş disk
#df -k - Sistemdeki boş disk alanını
# cat /etc/issue - Linux’un versiyon ve distributionu
$ rpm -q package_name - Gerekli paketlerin kurulup kurulmadığını
# uname –r -Gerekli kernel versiyonu
kernel;
Parametre Değer Dosya
semmsl semmns semopm semmni 250 32000 100 128 /proc/sys/kernel/sem
shmall 2097152 /proc/sys/kernel/shmall
shmmax Fiziksel hafızanın yarısı (bytecinsinden) /proc/sys/kernel/shmmax
shmmni 4096 /proc/sys/kernel/shmmni
file-max 65536 /proc/sys/fs/file-max
ip_local_port_range 1024 65000 /proc/sys/net/ipv4 /ip_local_port_range

semmsl, semmns, semopm, semmni #/sbin/sysctl -a | grep sem
Bu komut semaphore parametrelerin değerlerini
sıralı bir şekilde listeler
shmall, shmmax,shmni #/sbin/sysctl -a | grep shm
file-max #/sbin/sysctl -a | grep file-max
ip_local_port_range #/sbin/sysctl -a|grep ip_local_port_range
------------------------
-- Herhangi bir text editor ile, /etc/sysctl.conf ya edit edin yada yaratın ve
aşağıdaki satırları ya ekleyin yada düzeltin:
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
/etc/sysctl.conf dosyasını değistirdiksen sonra, bu değerler sisteminizi reboot
ettikten sonra aktif hale gelecektir.
SUSE sistemleri için, aşağıdaki komutu sistemin reboot olduktan sonra
/etc/sysctl.conf dosyasını okuyabilmesi için giriniz
#/sbin/chkconfig boot.sysctl on

• dba sistem grubunun yaratılması
# groupadd dba
• oracle kullanıcısının yaratılması
#useradd –s /usr/bin/ksh –g dba –d /home/oracle –m oracle

Shell limitlerini artırmak için
-- Aşağıdaki satırları /etc/security/limits.conf dosyasına ekleyin:
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536

mkdir –p /…/app/oracle/product/10.1.0
chown -R oracle:dba /…/app

root kullanıcısı olarak xhost + komutunu çalıştırın
# xhost +
# su - oracle
Xwindow uygulamasının açılıp açılamadığını kontrol etmek için
xclock yada xcalc uygulamalarını çalıştırın.
Red Hat:
# mount /mnt /cdrom
SUSE :
# mount /media/cdrom

---------------------------------------
abap/buffersize : Program Buffer Size
500MB 000 1500MB 000 kb
enque/table_size
16384 96MB 000
ipc/shm_psize_10
150MB 000 000 600MB 000 000
ipc/shm_psize_40 Size of shared memory segment
124MB 000 000 250MB 000 000 byte

RSPLSE
enque/table_size or abap/shared_objects_size_MB

You can check in transactions after executing your planning functions
1. SM12 : give table name RSPLS_S_LOCK
2. SHMA: give area name as CL_RSPLS_ENQ_AREA for table RSPLS_S_LOCK_SYNC
3. LC10 : for table LCA_GUID_STR
-----------------------------------------------
ALTER DATABASE DATAFILE 'F:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSTEM01.DBF' AUTOEXTEND ON NEXT 50M MAXSIZE UNLIMITED;

table;
begin
dbms_stats.gather_table_stats(ownname=> 'SAPSR3', tabname=> 'Ztable', partname=> NULL);
end;

index;
begin
dbms_stats.gather_index_stats(ownname=> 'SAPSR3', indname=> 'Zindex', partname=> NULL);
end;

check;
Parameters: -u / -jid CHECK20090806083734 -c -f check
statistics;
Parameters: -u / -jid STATS20090806084249 -c -f stats -t ALL
brconnect -u / -jid STATS20090806084249 -c -f stats -t ALL



--------------------------------
RSORADLD
ora102
IF ora_release < 'ORA732'. "#EC PORTABLE
MESSAGE e524. "Check only availible for Oracle release > 7.3
SET SCREEN 0. LEAVE SCREEN.
ENDIF


http://stanford.edu/dept/itss/docs/oracle/10g/server.101/b10739/toc.htm
--------------------
tu02 initSID.SAP
al11
-----------------------------------------

SAP Basis Course

Title: SAP BASIS Consultant/ Trainer
Company: LAVIOT
Location: Any where from India
Salary: 200$ per head
Job Type : Part Time
Experience : 2 To 15+ Years

Job Description: The consultant should have hands on experience on SAP BASIS with atleast 3 to 8 years of experience.Job is purely part time. Who ever are interested and passionate about training
people can apply.Everything is online and no need to travel.You can sit at your home and just train.Follow are the contents are

SAP - BASIS ADMINISTRATION - COURSE CONTENT
SAP Basis Administration Training – R/3 with Oracle
• Orientation & Introductions
• SAP R/3,
• What is SAP R/3, New dimension Technology?
ERP Market Place
SAP AG
Overview of R/3, New dimension Technology?
R/3 Components
What is Basis?
R/3 Architecture & Technology
Basis Consultant’s Roles & Responsibilities
Get your hands dirty!
Introduction to Operating Systems – Unix and Windows 2000 Server
Introduction to RDBMS - Oracle
Introduction to R/3 Networking/Communications
Basic Architecture & Technology Concepts
Navigating SAP R/3
Logging On and Off
Graphical User Interface
On-line Help
Starting the R/3 System
Starting an R/3 Instance
Process Overview at the Operating System Level
Assigning Parameter Values R/3 Startup Logs and Traces
Startup Diagnostics
Database Startup Logs and Traces
Before Stopping the R/3 System
Stopping the R/3 System
Stopping R/3: Error Diagnostics
Transaction RZ10:
Profile Maintenance
R/3 Profiles
Maintaining R/3 Profiles
Changing R/3 Profile Parameters
Checking and Comparing R/3 Profiles
Operation Modes:
Concept
Choosing an Operation Mode
Choosing an Operation Mode



Setting Up Operation Modes/Instances
Adapting Instance Definitions and Operation Modes
Operation Mode Switch: Advantage
Scheduling Operation Modes
Switching Operation Modes Manually

Background Processing:
Background Processing
Why Background Processing?
What is a Background Job?
Scheduling of Jobs and Workload Balancing
Defining a Job Using the Job Wizard
Executing Programs as Job Steps
Start Conditions of a Job
Definition and Triggering of Events
Status of a Job
Summary Q & A
SAP R/3 Installation Concepts
Elements in R/3 Installation
Installation Steps
Installation of Presentation Server
Post-installation Steps
R3SETUP and INSTGUI Utilities
Client Instance Strategy
Terminology
Promote to Production Strategies
• Computer Center Management System
Overview of CCMS Concept
Managing Profiles
R/3 Operation Modes
CCMS Monitors
Managing SAP System Alerts
Database Performance Monitor
Operating System Performance Monitor
• Transport Management System
• Workbench/Customizing Organizer
Transports System Concepts
System Types
Using tp, the Transport Control Program
Post Installation Steps
• Database maintenance and architecture
Oracle and SAP R/3
Introduction to BRTOOLS
Table space Administration with BRTOOLS
• SAP Online Support System (OSS)
• SAP Database Administration – Continued\
Backing Up the Database: BRBACKUP
Backing Up the Archived Redo Logs: BRARCHIVE
• R3 Performance tuning
• Management of Users, Authorizations and
Overview of User Administration
Managing User Master Records
• SAP Printing System
• General Admin Utilities
Monitoring User Sessions
Monitoring Work Processes
Monitoring Update Records
Monitoring Lock Entries
Monitoring Client Copies
R/3 System Logs
ABAP/4 Short Dumps
System Traces
SAP Installation – 4.7 and ECC 5.0
a) SQL Installation
b) Service Packs
c) Central Installation
d) Database Installation
Application Server Installation
a) SQL Client Installation
b) SAP Dialogue Installation
Post Installation
a) Check Installation
b) Client Creation
c) Client Copy
d) Add Logical System
e) STMS Configuration
f) Operation Mode
g) Kernel and Patches update
h) Profile changes
User Administration
a) User Creation
b) User Lock/Unlock/Change Password
c) Kill Users
d) Authorization to Users
e) Send Message to Users (Single & Multiple)
Change Request
a) Create CR
b) Release CR
c) Transport CR
d) Merge CR

Authorization/Security
a) Create Role
b) Copy Role
c) Remove Role
d) Add or Remove TCode to Role
e) Add or Remove Object to Role
Job Scheduling
a) Schedule a Job
b) Monitor a Job
c) Delete a Job
Printer
a) Create a Printer
b) Create a local Default Printer
c) Create a Network Printer
d) Attach a Network Printer to a Role
e) Create Cheque Printer
Transport
a) Import CR
b) Transport CR
c) Transport Role
Client
a) Client opening or closing
SAP Market
a) Request/Applying and Status of License Key
b) Generate Developer Access Key
c) Open a Problem via SAP Market Place
d) Download Support Package – SPAM
e) Download Kernel Patches
f) Send Messages to SAP
SMTP Connecter
a) Add an SMTP Connector
b) Modify/Delete Connection
RFC Connection
a) Create RFC Connection
b) Modify/Delete Connection
Background Job
a) Create Background Jobs
b) Modify/Monitor Jobs
Monitoring
a) Global Work Process
b) Work Process
c) Work Loading System
d) Backup
e) Lock Entries
f) Updates
g) Errors
h) Consistency Check
i) Temese Check
j) Memory/CPU Management
Performance Tuning
a) Archiving
ITS Installation
Trouble Shooting
a) SAP System Response Trouble Shooting
b) SAP System Startup Trouble Shooting
c) SAP GUI Trouble Shooting
d) SAP Printer Trouble Shooting
Operation Mode Maintenance
Profile
CCMS
Backup & Recovery
• Typical Basis tasks
Daily
Weekly
Monthly
Q & A
------------------------
Oracle/SAP Database Administration
• DBA tools provided by SAP
• BR*Tools (GUI)
• BR*Tools Studio (web-based)
• DBA Cockpit
• DBA tools provided by Oracle
• Oracle Enterprise Manager / DB
-------------------------------
Egıtım ıcerıklerı asagıdakı gıbıdır

Oracle Mimarisi
System Admin Advanced Level
Data Guard for Oracle
Disaster for Oracle
Performans Tuning for Oracle
Backup for Oracle
Oracle on SAP
---------------------------------

SAP Basis Course

Title: SAP BASIS Consultant/ Trainer
Company: LAVIOT
Location: Any where from India
Salary: 200$ per head
Job Type : Part Time
Experience : 2 To 15+ Years

Job Description: The consultant should have hands on experience on SAP BASIS with atleast 3 to 8 years of experience.Job is purely part time. Who ever are interested and passionate about training
people can apply.Everything is online and no need to travel.You can sit at your home and just train.Follow are the contents are

SAP - BASIS ADMINISTRATION - COURSE CONTENT
SAP Basis Administration Training – R/3 with Oracle
• Orientation & Introductions
• SAP R/3,
• What is SAP R/3, New dimension Technology?
ERP Market Place
SAP AG
Overview of R/3, New dimension Technology?
R/3 Components
What is Basis?
R/3 Architecture & Technology
Basis Consultant’s Roles & Responsibilities
Get your hands dirty!
Introduction to Operating Systems – Unix and Windows 2000 Server
Introduction to RDBMS - Oracle
Introduction to R/3 Networking/Communications
Basic Architecture & Technology Concepts
Navigating SAP R/3
Logging On and Off
Graphical User Interface
On-line Help
Starting the R/3 System
Starting an R/3 Instance
Process Overview at the Operating System Level
Assigning Parameter Values R/3 Startup Logs and Traces
Startup Diagnostics
Database Startup Logs and Traces
Before Stopping the R/3 System
Stopping the R/3 System
Stopping R/3: Error Diagnostics
Transaction RZ10:
Profile Maintenance
R/3 Profiles
Maintaining R/3 Profiles
Changing R/3 Profile Parameters
Checking and Comparing R/3 Profiles
Operation Modes:
Concept
Choosing an Operation Mode
Choosing an Operation Mode



Setting Up Operation Modes/Instances
Adapting Instance Definitions and Operation Modes
Operation Mode Switch: Advantage
Scheduling Operation Modes
Switching Operation Modes Manually

Background Processing:
Background Processing
Why Background Processing?
What is a Background Job?
Scheduling of Jobs and Workload Balancing
Defining a Job Using the Job Wizard
Executing Programs as Job Steps
Start Conditions of a Job
Definition and Triggering of Events
Status of a Job
Summary Q & A
SAP R/3 Installation Concepts
Elements in R/3 Installation
Installation Steps
Installation of Presentation Server
Post-installation Steps
R3SETUP and INSTGUI Utilities
Client Instance Strategy
Terminology
Promote to Production Strategies
• Computer Center Management System
Overview of CCMS Concept
Managing Profiles
R/3 Operation Modes
CCMS Monitors
Managing SAP System Alerts
Database Performance Monitor
Operating System Performance Monitor
• Transport Management System
• Workbench/Customizing Organizer
Transports System Concepts
System Types
Using tp, the Transport Control Program
Post Installation Steps
• Database maintenance and architecture
Oracle and SAP R/3
Introduction to BRTOOLS
Table space Administration with BRTOOLS
• SAP Online Support System (OSS)
• SAP Database Administration – Continued\
Backing Up the Database: BRBACKUP
Backing Up the Archived Redo Logs: BRARCHIVE
• R3 Performance tuning
• Management of Users, Authorizations and
Overview of User Administration
Managing User Master Records
• SAP Printing System
• General Admin Utilities
Monitoring User Sessions
Monitoring Work Processes
Monitoring Update Records
Monitoring Lock Entries
Monitoring Client Copies
R/3 System Logs
ABAP/4 Short Dumps
System Traces
SAP Installation – 4.7 and ECC 5.0
a) SQL Installation
b) Service Packs
c) Central Installation
d) Database Installation
Application Server Installation
a) SQL Client Installation
b) SAP Dialogue Installation
Post Installation
a) Check Installation
b) Client Creation
c) Client Copy
d) Add Logical System
e) STMS Configuration
f) Operation Mode
g) Kernel and Patches update
h) Profile changes
User Administration
a) User Creation
b) User Lock/Unlock/Change Password
c) Kill Users
d) Authorization to Users
e) Send Message to Users (Single & Multiple)
Change Request
a) Create CR
b) Release CR
c) Transport CR
d) Merge CR

Authorization/Security
a) Create Role
b) Copy Role
c) Remove Role
d) Add or Remove TCode to Role
e) Add or Remove Object to Role
Job Scheduling
a) Schedule a Job
b) Monitor a Job
c) Delete a Job
Printer
a) Create a Printer
b) Create a local Default Printer
c) Create a Network Printer
d) Attach a Network Printer to a Role
e) Create Cheque Printer
Transport
a) Import CR
b) Transport CR
c) Transport Role
Client
a) Client opening or closing
SAP Market
a) Request/Applying and Status of License Key
b) Generate Developer Access Key
c) Open a Problem via SAP Market Place
d) Download Support Package – SPAM
e) Download Kernel Patches
f) Send Messages to SAP
SMTP Connecter
a) Add an SMTP Connector
b) Modify/Delete Connection
RFC Connection
a) Create RFC Connection
b) Modify/Delete Connection
Background Job
a) Create Background Jobs
b) Modify/Monitor Jobs
Monitoring
a) Global Work Process
b) Work Process
c) Work Loading System
d) Backup
e) Lock Entries
f) Updates
g) Errors
h) Consistency Check
i) Temese Check
j) Memory/CPU Management
Performance Tuning
a) Archiving
ITS Installation
Trouble Shooting
a) SAP System Response Trouble Shooting
b) SAP System Startup Trouble Shooting
c) SAP GUI Trouble Shooting
d) SAP Printer Trouble Shooting
Operation Mode Maintenance
Profile
CCMS
Backup & Recovery
• Typical Basis tasks
Daily
Weekly
Monthly
Q & A
------------------------

SAP role menu

roledeki menuleri bulma;
select * from(
select t1.mandt, t1.agr_name,t1.parent_id,t1.object_id,t1.report ,t2.text,menu_level
from AGR_HIER t1, agr_hiert t2
where
t1.mandt=t2.mandt and t1.mandt='3'
and t1.object_id=t2.object_id
and t2.spras='T'
and t1.agr_name=t2.agr_name and t1.agr_name like 'Z_%' and
t1.agr_name not like 'ZALL%' and t1.agr_name not like'Z%'
--and report='MM03'
order by agr_name, parent_id , object_id) A1

group by parent_id


and parent_id=1
order by object_id
--and spras='T'

----------------------------------------
---------------------------------------------------
select * from(
select t1.mandt, t1.agr_name,t1.parent_id,t1.object_id,t1.report ,t2.text,menu_level
from AGR_HIER t1, agr_hiert t2
where
t1.mandt=t2.mandt and t1.mandt='300'
and t1.object_id=t2.object_id
--and t2.spras='T'
and t1.agr_name=t2.agr_name and t1.agr_name like 'Z:1000_%' and t1.agr_name like 'Z:1000_ELT%' and
t1.agr_name not like 'Z:1000_ALL%' and t1.agr_name not like'Z:1000%'
--and report='MM03'
order by agr_name, parent_id , object_id) A1 ,(select agr_name,object_id,text from AGR_HIERt
where mandt='700'
and agr_name like 'Z:%'
order by object_id) A2
--------------------------------------
SELECT agr_hier.agr_name, agr_hier.object_id, agr_hier.parent_id, agr_hier.sort_order,
agr_hier.menu_level, agr_hier.menu_level, agr_hier.report, agr_hiert.text
FROM agr_hier
INNER JOIN agr_hiert
ON agr_hier.agr_name = agr_hiert.agr_name
AND agr_hier.object_id = agr_hiert.object_id
WHERE agr_hier.agr_name = agr_hiert.agr_name
AND agr_hier.report IN ('_APPATION' , 'APPION22' )
-------------------------------------------

https://wiki.sdn.sap.com/wiki/display/ABAP/Useful+SAP+System+Administration+Transactions
http://help.sap.com/saphelp_nw70/helpdata/EN/44/d8120bdaba5705e10000000a1553f6/frameset.htm
http://wiki.sdn.sap.com/wiki/display/Security/Collection+of+SAP+Security+Tables
http://soumen.wordpress.com/performance-tuning-of-sap-another-experiance/5-st02-another-magic-transaction-for-sap-tuners-ii/

where A1.parent_id=A2.object_id
order by A2.TEXT

select agr_name,object_id,text from AGR_HIERt
where mandt='700'
and agr_name like 'Z:%'
order by object_id
-------------------------------------------

SAP Buffer reset

/$SYNC This resets all buffers of the application server
/$CUA This resets the CUA buffer of the application server
/$TAB This resets the TABLE buffers of the application server
/$NAM This resets the nametab buffer of the application server
/$DYNP - the screen buffer of the application server

/$TAB RSADMIN refreshes buffers for specific tables e.g. RSADMIN
/$TAB refreshes all table buffers + the program buffer
/$SYNC refreshes all table buffers, except the program buffer

SU56 not SM56

SU53 and click authorization values ---> Reset User Buffer.

SU01 -> environment -> mass changes -> reset all user buffers

Executing transaction PFUD or running program RHAUTUPD_NEW

se38 and program: RSUSR405