Wednesday, 27 November 2013

How to Extend Tablespace with SAP BRTOOLS

Login to your SAP R/3 DB instance Windows using [sid]adm or ora<SID> user. Open your command prompt.

Type BRTOOLS to enter BRTOOLS menu.

2. Select option 2 – Space Management
BR0280I BRTOOLS time stamp: 2011-03-24 03.32.13
BR0656I Choice menu 1 - please make a selection
-------------------------------------------------------------------------------
BR*Tools main menu
 
 1 = Instance management
 2 - Space management
 3 - Segment management
 4 - Backup and database copy
 5 - Restore and recovery
 6 - Check and verification
 7 - Database statistics
 8 - Additional functions
 9 - Exit program
 
Standard keys: c - cont, b - back, s - stop, r - refr, h - help
-------------------------------------------------------------------------------
BR0662I Enter your choice:
2
 
BR0280I BRTOOLS time stamp: 2011-03-24 03.32.59
BR0663I Your choice: '2'
3. Select option 1 = Extend tablespace
BR0280I BRTOOLS time stamp: 2011-03-24 03.32.59
BR0656I Choice menu 5 - please make a selection
-------------------------------------------------------------------------------
Database space management
 
 1 = Extend tablespace
 2 - Create tablespace
 3 - Drop tablespace
 4 - Alter tablespace
 5 - Alter data file
 6 - Move data file
 7 - Additional space functions
 8 - Reset program status
 
Standard keys: c - cont, b - back, s - stop, r - refr, h - help
-------------------------------------------------------------------------------
BR0662I Enter your choice:
1
 
BR0280I BRTOOLS time stamp: 2011-03-24 03.33.12
BR0663I Your choice: '1'
4. Select 3 to enter the Tablespace name.
BR0280I BRTOOLS time stamp: 2011-03-24 03.33.12
BR0657I Input menu 81 - please check/enter input values
-------------------------------------------------------------------------------
BRSPACE options for tablespace extension
 
 1 - BRSPACE profile (profile) ...... [init<SID>.sap]
 2 - Database user/password (user) .. [/]
 3 ~ Tablespace name (tablespace) ... []
 4 - Confirmation mode (confirm) .... [yes]
 5 - Scrolling line count (scroll) .. [20]
 6 - Message language (language) .... [E]
 7 - BRSPACE command line (command) . [-p init<SID>.sap -s 20 -l E -f tsextend]
 
Standard keys: c - cont, b - back, s - stop, r - refr, h - help
-------------------------------------------------------------------------------
BR0662I Enter your choice:
3
BR0280I BRTOOLS time stamp: 2011-03-24 03.34.25
BR0663I Your choice: '3'
 
BR0280I BRTOOLS time stamp: 2011-03-24 03.34.25
BR0681I Enter string value for "tablespace" []:
PSAPSR3
5. Verify the tablespace name.
BR0280I BRTOOLS time stamp: 2011-03-24 03.34.25
BR0663I Your choice: '3'
 
BR0280I BRTOOLS time stamp: 2011-03-24 03.34.25
BR0681I Enter string value for "tablespace" []:
PSAPSR3
BR0280I BRTOOLS time stamp: 2011-03-24 03.35.10
BR0683I New value for "tablespace": 'PSAPSR3'
 
BR0280I BRTOOLS time stamp: 2011-03-24 03.35.10
BR0657I Input menu 81 - please check/enter input values
-------------------------------------------------------------------------------
BRSPACE options for tablespace extension
 
 1 - BRSPACE profile (profile) ...... [init<SID>.sap]
 2 - Database user/password (user) .. [/]
 3 ~ Tablespace name (tablespace) ... [PSAPSR3]
 4 - Confirmation mode (confirm) .... [yes]
 5 - Scrolling line count (scroll) .. [20]
 6 - Message language (language) .... [E]
 7 - BRSPACE command line (command) .
     [-p init<SID>.sap -s 20 -l E -f tsextend -t PSAPSR3]
                                       
 
Standard keys: c - cont, b - back, s - stop, r - refr, h - help
-------------------------------------------------------------------------------
BR0662I Enter your choice:
c
6. Press ‘c’ to continue.
BR0280I BRTOOLS time stamp: 2011-03-24 03.35.48
BR0663I Your choice: 'c'
BR0259I Program execution will be continued...
 
BR0291I BRSPACE will be started with options
'-p init<SID>.sap -s 20 -l E -f tsextend -t PSAPSR3'
 
BR0280I BRTOOLS time stamp: 2011-03-24 03.35.48
BR0670I Enter 'c[ont]' to continue, 'b[ack]' to go back, 's[top]' to abort:
c
7. At this point, you will see the details of last datafile added and the new datafile to be add. You can change the file size or the storage location. If nothings to change, type ‘c’ to continue
BR0280I BRTOOLS time stamp: 2011-03-24 03.36.12
BR0257I Your reply: 'c'
BR0259I Program execution will be continued...
 
###############################################################################
 
BR1001I BRSPACE 7.00 (32)
BR1002I Start of BRSPACE processing: sefmufom.tse 2011-03-24 03.36.12
BR0484I BRSPACE log file: /oracle/<SID>/sapreorg/sefmufom.tse
 
BR0280I BRSPACE time stamp: 2011-03-24 03.36.13
BR1009I Name of database instance: <SID>
BR1010I BRSPACE action ID: sefmufom
BR1011I BRSPACE function ID: tse
BR1012I BRSPACE function: tsextend
 
BR0280I BRSPACE time stamp: 2011-03-24 03.36.13
BR0657I Input menu 303 - please check/enter input values
-------------------------------------------------------------------------------
Options for extension of tablespace PSAPSR3 (1. file)
 
 1 * Last added file name (lastfile) .......
 [/oracle/<SID>/sapdata4/sr3_20/sr3.data20]
 2 * Last added file size in MB (lastsize) . [2160]
 3 - New file to be added (file) ...........
 [/oracle/<SID>/sapdata4/sr3_21/sr3.data21]
 4 ~ Raw disk / link target (rawlink) ...... []
 5 - Size of the new file in MB (size) ..... [2160]
 6 - File autoextend mode (autoextend) ..... [yes]
 7 - Maximum file size in MB (maxsize) ..... [10000]
 8 - File increment size in MB (incrsize) .. [20]
 9 - SQL command (command) ................. [alter tablespace PSAPSR3 add datafile
'/oracle/<SID>/sapdata4/sr3_21/sr3.data21'size 2160M autoextend on next 20M maxsize 10000M]
 
Standard keys: c - cont, b - back, s - stop, r - refr, h - help
-------------------------------------------------------------------------------
BR0662I Enter your choice:
c
BR0280I BRSPACE time stamp: 2011-03-24 03.39.30
BR0670I Enter 'c[ont]' to continue, 'b[ack]' to go back, 's[top]' to abort:
c
BR0280I BRSPACE time stamp: 2011-03-24 03.40.06
BR0257I Your reply: 'c'
BR0259I Program execution will be continued...
8. Type ‘y’ to add one more datafile or ‘n’ / ‘c’ to continue.
BR0280I BRSPACE time stamp: 2011-03-24 03.40.06
BR1091I Next data file can be specified now
 
BR0675I Do you want to perform this action?
BR0676I Enter 'y[es]' to perform the action, 'n[o]/c[ont]' to skip it, 's[top]'to abort:
c
BR0280I BRSPACE time stamp: 2011-03-24 03.41.25
BR0257I Your reply: 'c'
BR0678I The action will be skipped...
BR0259I Program execution will be continued...
9. Wait the process till done
BR0280I BRSPACE time stamp: 2011-03-24 03.41.25
BR0370I Directory /oracle/<SID>/sapreorg/sefmufom created
 
BR0280I BRSPACE time stamp: 2011-03-24 03.41.26
BR0319I Control file copy created:
/oracle/<SID>/sapreorg/sefmufom/cntrlTR3.old 13844480
 
BR0280I BRSPACE time stamp: 2011-03-24 03.41.26
BR0370I Directory /oracle/<SID>/sapdata4/sr3_21 created
BR0370I Directory /oracle/<SID>/sapdata4/sr3_22 created
 
BR0280I BRSPACE time stamp: 2011-03-24 03.41.26
BR1088I Extending tablespace PSAPSR3...
10. Tablespace PSAPSR3 extended successfully.
BR0280I BRSPACE time stamp: 2011-03-24 03.44.27
BR1016I SQL statement 'alter tablespace PSAPSR3 add datafile
'/oracle/<SID>/sapdata4/sr3_21/sr3.data21'size 2160M autoextend on next 20M maxsize 10000M,
'/oracle/<SID>/sapdata4/sr3_22/sr3.data22'size 2160M autoextend on next 20M maxsize 10000M' executed successfully
BR1051I Tablespace PSAPSR3 extended successfully with files:
/oracle/<SID>/sapdata4/sr3_21/sr3.data21 2160M
11. To verify, go to transaction code DB02

9 comments:

  1. Very well explained .. . simply superb

    ReplyDelete
  2. Nice explained , Kindly post the other option of brtools

    ReplyDelete
  3. Hi,

    Thanks dude.wonder full preparation......

    ReplyDelete
  4. now i understand ..sir can u pls expain when we go for extending the table space ?? and is there is any other way to do the tablespace mgmt ??

    ReplyDelete
  5. It was very nice blog to learn about SAP BASIS. Thanks for sharing.SAP basis

    ReplyDelete