My Commands
-
Upload
pillinagaraju -
Category
Documents
-
view
215 -
download
0
Transcript of My Commands
-
8/18/2019 My Commands
1/5
******** FOR RE-Initiate OR TRIGGER ************
smsap backup create -profile hostname_sid -full -online -retain -weekly -label DAILY_DB_SID_BKUP(date) -verbose
********************************************************************************
*******************************************
************** Sql Query for monitoring TS *****************************
select df.tablespace_name "Tablespace", totalusedspace "Used MB",(df.totalspace - tu.totalusedspace) "Free MB", df.totalspace "Total MB", round(100 * ((df.totalspace - tu.totalusedspace)/df.totalspace)) "Pct. Free" from (select tablespace_name,round(sum(bytes)/1048576) TotalSpace from dba_data_files group by tablespace_name) df,
(select round(sum(bytes)/(1024*1024)) totalusedspace, tablespace_name from dba_segments group by tablespace_name) tuwhere df.tablespace_name = tu.tablespace_name;
***********************************************************************
cdexepwdcd ..ls -ltrcp -Rip linuxx86_64 linuxx86_64_742_222cd linuxx86_64_742_222
mv SPACAR SAPCAR_OLD./SAPCAR_OLD -xvf /sapcd/sapwebdisp_742/sapwebdisp_222-80000041.sar
**********************************************************************
df -h
df -h | grep sapdata -- To show SAP Systems
df -h | grep sapdata*
df -h | grep -l smsap
****************************************************************************
To Find Brtools ( If Any Systen deosn't have Brtools )
Cd /use/sap/BP9 -- Press Enter
cd SYS --- Enter
cd run - Enter
|| -- Enter
-
8/18/2019 My Commands
2/5
Now find Brtools in file list , copy that path and run it .
*******************************************************************************
Cleanipc 44 remove
During every operation in an SAP system data is been sent and received through operating system files also. At the point of shutting down the system, there may be some data passing through from SAP to OS. so we need to clear of this data.
You can use command cleanipc to clear or delete the old shared memory
The cleanipc command is used to clear the shared memeory occupied by the SAP system.
*****************************************************************************************************
**************** Upgarde Kernel On Unix *************************
1) stopsap2) clean shared memory3) saposcol -k4) ps -ef | grep sapstartsrv ( instead of ps -ef | grep sidadm )5) kill6) cleanipc7) lsnrctl stop8) backup your kernel
9) cd /sapmnt/10) cp -pr exe exe.00111) extract new kernel12) cd exe13) SAPCAR -xvf14) Start saposcol15) startlistener16) startsap
***************************************************************************************
procedure for NetWever 7.0 ABAP stack only KERNEL UPGRADE ?
1) stopsap2) clean shared memory3) saposcol -k4) ps -ef|grep sapstartsrv5) kill6) cleanipc7) lsnrctl stop8) backup your kernel9) cd /sapmnt/
10) cp -pr exe exe.00111) extract new kernel12) cd exe
-
8/18/2019 My Commands
3/5
13) SAPCAR -xvf14) Start saposcol15) startlistener16) startsap
********************************************************************************
*** To show SQLVersion
sqlplus / as sysdba
OR
sqlplus "/ as sysdba"
**************************************************************************************
Command to Checking Backup Profiles:
Syntax: smsap profile list | grep [SID]
Example : smsap profile list | grep AD8
******************************************************************************************************
How to check BRTOOLS version
Switch you user to ora[sid] user :
#su - oraids
Type this command :
>brtools -V
OR
>brtools -V all
********************************************************************************************************
How to find BRTOOLS path
BRTOOLS are located in the directory /usr/sap//exe/run. BRTOOLS consist of the following set of files:
* SAPDBA
* BRCONNECT
* BRRESTORE
* BRBACKUP
-
8/18/2019 My Commands
4/5
* BRARCHIVE********************************************************************************************************
To Show the Data Files for Particular Data Base
df -ph |column -t
******************************************************************************************************To Known the KERNEL Version ------ disp+ ork
To Known the KERNEL path --- cdexe
To Known theSAP Profile Directory path --- cdpro
*******************************************************************************************************
In ORACLE , to give full permission --- chmod 775 filename
In OS Level to give full permission --- chmod 774 filename
*********************************************************************************************************
To Show SandBox BackUP :
bbcsapx024l
cd /oracle/GS8/sapbackup/
ls -ltrnow check the .ans File on corresponding date . If it is not exit then try withcrontab -l
crontab -l press enter
goto ------------------- /oracle/GS8/scripts/ path for that
cd /oracle/GS8/scripts/ls -ltrcopy rmanbackup.ksh file and view for that
more rmanbackup.ksh
goto ---- cd /oracle/GS8/sapdata1/RMAN/ path for that
cd /oracle/GS8/sapdata1/RMAN/
ls -ltr
check rman backup file
-
8/18/2019 My Commands
5/5