Professional Documents
Culture Documents
1. The tablespace alert is configured in Sitescope or UNIX crontab (oracle user) for databases.
Below is the sample email subject from Sitescope for tablespace alert.
Warning: TableSpace PHASTAGE1 Monitor >=90% Status: content match error, 0.296 sec, 1
row, tablespace_name -> MAC_DAT, Free MB -> 3233, Used Pct -> 90 (10.62.2...
Below is the sample email subject from crontab for tablespace alert.
catlmsxp137 22:20:18 - PHASTAGE dba0911_spaceprobs.sh
2. Fetch the file, mount, current size, max size & autoextend details for the tablespace in issue.
select file_name, bytes/1024/1024, maxbytes/1024/1024, autoextensible from dba_data_files where
tablespace_name=<tablespace_name>;
FILE_NAME
BYTES/1024/1024 MAXBYTES/1024/1024
AUT
-------------------------------------------------- --------------- ------------------ --/u13_PHASTAGE/oradata/PHASTAGE/mac_dat_06.dbf
780.007813
780.789063 YES
/u05_PHASTAGE/oradata/PHASTAGE/mac_dat_05.dbf
457
459 YES
/u17_PHASTAGE/oradata/PHASTAGE/mac_dat_08.dbf
465
4000 YES
a) For Databases on UNIX Files Systems
i) Check the disk space available in the mounts based on the file names from the above query.
catlmsxp137 | PHASTAGE | /export/home/oracle > df -k|egrep '/u13|/u05|/u17'
/dev/vx/dsk/PHASTAGE_dg/u13_PHASTAGE 61341696 55741136 5556808 91%
/u13_PHASTAGE
/dev/vx/dsk/PHASTAGE_dg/u05_PHASTAGE 67108864 63737904 3344688 96%
/u05_PHASTAGE
/dev/vx/dsk/PHASTAGE_dg/u17_PHASTAGE 125829120 98479747 25640095 80%
/u17_PHASTAGE
ii) From the above output we can make out that mount /u17 25GB free space is available, we can add /
resize a datafile on mount point /u17.
iii) Now we need to determine how much space we need to add, so that tablespace is below 85%
threshold.
Execute the below attached query.
Tus age.s ql
ii) Determine the free space available on +PODS_T1_DATA_01 DG before adding the datafile.
Connect to the ASM instance and determine the free space at DG level as below
> . oraenv
ORACLE_SID = [PODS1] ? +ASM1
catlmsxp200 | +ASM1 | /export/home/oracle
> asmcmd
ASMCMD> lsdg
State Type Rebal Unbal Sector Block
AU Total_MB Free_MB Req_mir_free_MB
Usable_file_MB Offline_disks Name
MOUNTED EXTERN N
N
512 4096 1048576 2332692 666994
0
0 PODS_T1_DATA_01/
666994
As we can notice from the output above, the DG PODS_T1_DATA_01 has 666 GB free space.
iii) To add datafile
ALTER TABLESPACE <tablespace_name> ADD DATAFILE 'DG name'
AUTOEXTEND ON NEXT 100m MAXSIZE 982m;
SIZE 99m
Warning: TableSpace PUTS1 Monitor >=90% Status: matched: Used Pct -> 100, 2.547 sec, 1 row,
tablespace_name -> UNDOTBS2, Free MB -> 16, Used Pct -> 100 (10....
Perform the below steps to resolve the issue.
1) Identify the sessions that are occupying most of the UNDO