100% found this document useful (1 vote)
256 views

AIX Commands

The document contains various SQL commands and notes related to managing Oracle and DB2 databases and tablespaces. It includes commands to alter tablespaces, create temporary tablespaces, drop tablespaces, query backups and archive logs, roll forward databases, and force applications. Database, tablespace, and container names like PSAPSTABD, PSAPTEMP, and S04sapdata4lv are referenced.

Uploaded by

scribdvinodam
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
256 views

AIX Commands

The document contains various SQL commands and notes related to managing Oracle and DB2 databases and tablespaces. It includes commands to alter tablespaces, create temporary tablespaces, drop tablespaces, query backups and archive logs, roll forward databases, and force applications. Database, tablespace, and container names like PSAPSTABD, PSAPTEMP, and S04sapdata4lv are referenced.

Uploaded by

scribdvinodam
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

chsec -f /etc/security/lastlog -a "unsuccessful_login_count=0" -s 'prdadm'

find . -mtime +100 -exec rm -f {} \;


91<airtelnumber>@airtelkk.com
sqlplus \nolog
connect \ as sysdba
SAP Note: 4162
ALTER TABLESPACE PSAPCLUD END BACKUP;
SELECT * FROM V$BACKUP WHERE STATUS = 'ACTIVE';
select * from v$backup where STATUS = 'NON ACTIVE';

Note 533455 - Terminations due to higher number of extents

SELECT MAX_EXTENTS FROM DBA_SEGMENTS WHERE SEGMENT_NAME = 'MSEG';


ALTER TABLE SAPR3.CDCLS STORAGE (NEXT 75000);
alter tablespace add datafile E:\oracle\CRP\sapdata5\ size 50M;

Note 78991 - Update hangs; locks gather


Note 3155 - Termination due to tablespace overflow
Note 3502 - ORACLE Version 6 : ORA1556, Version 7 : ORA1631

alter tablespace PSAPSTABD add datafile E:\oracle\CRP\sapdata5\stabd_19\STABD.DA


TA19.dbf size 600M;
tp import D02K903717 Q02 client=500 pf=/usr/sap/trans/HR/bin/TP_DOMAIN_Q02.PFL
Note 334608 - DB6: SMS tablespace ##(PSAPTEMP##) is FULL
db2 list tablespaces show detail
db2 list tablespace containers for
db2 " create temporary tablespace PSAPTEMP88 PAGESIZE 8192 BUFFERPOOL BP_STD_8K
managed by system using ( '/db2/Q01/saptemp2/NODE0000/temp88/PSAPTEMP88.000' ) "
db2 " drop tablespace PSAPTEMP8 "
PSAPTEMP - 3
db2 " create temporary tablespace PSAPTEMP88 PAGESIZE 8192 managed by system usi
ng ( '/db2/Q01/saptemp2/NODE0000/temp88/PSAPTEMP88.000' ) EXTENTSIZE 16 PREFETCH
SIZE 16 BUFFERPOOL BP_STD_8K "
553
OPC helpdesk - 0177 2677 024

db2 list tablespaces show detail | more


db2 list tablespace containers for 3
db2 list tablespace containers for 28
db2 list tablespace containers for 35
db2 " create temporary tablespace PSAPTEMP44 PAGESIZE 4096 managed by system usi
ng ( '/db2/P01/saptemp2/NODE0000/temp4/PSAPTEMP4.000' ) "
db2 " create temporary tablespace PSAPTEMP88 PAGESIZE 8192 managed by system usi
ng ( '/db2/P01/saptemp2/NODE0000/temp8/PSAPTEMP8.000' ) "
db2 " create temporary tablespace PSAPTEMP166 PAGESIZE 16384 managed by system u
sing ( '/db2/P01/saptemp2/NODE0000/temp16/PSAPTEMP16.000' ) "

db2 " create temporary tablespace PSAPTEMP166 PAGESIZE 16384 managed by system u
sing ( '/db2/P01/saptemp2/NODE0000/temp16/PSAPTEMP16.000' ) EXTENTSIZE 32 PREFET
CHSIZE 16 BUFFERPOOL BP_STD_16K "
db2 "drop tablespace PSAPTEMP"
db2 "drop tablespace PSAPTEMP8"
db2 "drop tablespace PSAPTEMP16"

brdb6brt -bm RETRIEVE -s P01


db2 get db cfg for M03 | grep TSM
db2adutl query full
db2 rollforward db Q15 query status
db6adutl extract archive logs between S0032450 and S0032451 db D03
db6adutl query full D03
db6adutl query archive logs between S0032450 and S0032465 db D03
db2 rollforward db Q15 stop
db2 terminate

lsvg -l saps04vg
lslv S04sapdata4lv
db2 "force application ( 2042 ) " ;

You might also like