Вы находитесь на странице: 1из 12

Work Instructions

Basis
Adding Files to Tablespace

Author: IBM
Owner: IBM
Version: 1.0

Work Instructions - Basis

Contents
1. Objective........................................................................................................................3
2. Scope.............................................................................................................................3
3. Technical Details...........................................................................................................3

Copyright IBM Corporation 2005

v1.0

Work Instructions - Basis

1. Objective
Adding datafiles to tablespace in Oracle Using Brtools

2.

Scope

This document describes on the process for adding datafiles to tablespaces

3.

Technical Details

All RED Colored need to be followed


telnet 180.30.4.12
Unauthorized use of this system is prohibited.
login: ora<SID>
ora<SID>'s Password:
*******************************************************************************
*

*******************************************************************************
Last unsuccessful login: Tue Nov 29 20:33:00 IST 2005 on /dev/pts/0 from 10.0.40
.150
Last login: Sat Dec 24 09:18:26 IST 2005 on /dev/pts/1 from 10.0.40.87
<SID>ad:ora<SID> 1> df -k
Filesystem

1024-blocks

Free %Used

/dev/hd4

262144

242976

/dev/hd2

2359296

187496 93%

36067

45% /usr

262144

218604 17%

694

2% /var

/dev/hd9var

8%

Iused %Iused Mounted on


2276

5% /

/dev/hd3

786432

648984 18%

416

1% /tmp

/dev/hd1

262144

261520

66

1% /home

/proc

Copyright IBM Corporation 2005

1%

- /proc

v1.0

Work Instructions - Basis

/dev/hd10opt

262144

160312 39%

2458

/dev/fslv00

1572864 1572296

/dev/fslv01

262144

261776

1%

/dev/lv00

262144

253872

4%

18

/dev/lvoracle

524288

/dev/lvora<SID>

1%

447644 15%

524288

7% /opt
1% /export/nim

1% /tftpboot
1% /var/adm/csd

1796

257956 51%

2% /oracle

538

1% /oracle/<SID>

/dev/lvorahome

8126464 4450372 46%

17186

/dev/lvmirrloga

262144

159368 40%

1% /oracle/<SID>/mirrlogA

/dev/lvmirrlogb

262144

159368 40%

1% /oracle/<SID>/mirrlogB

/dev/lvoraarch

51118080 29874428 42%

2% /oracle/<SID>/920_64

419

1% /oracle/<SID>/oraarch

/dev/lvorigloga

262144

154512 42%

1% /oracle/<SID>/origlogA

/dev/lvoriglogb

262144

159364 40%

1% /oracle/<SID>/origlogB

/dev/lvsapdata1

22020096 21427836

/dev/lvsapdata2

7077888 5028448 29%

/dev/lvsapdata3

52428800 39517876 25%

18

1% /oracle/<SID>/sapdata3

/dev/lvsapdata4

51380224 32939752 36%

22

1% /oracle/<SID>/sapdata4

/dev/lvsapreorg

2097152 2096360

/dev/lvorastage

2097152

/dev/lvsapmnt

3%

11

1%

58768 98%

/dev/lvsaptrans

2359296 2358576

1% /oracle/<SID>/sapreorg
25% /oracle/stage/920_64

129

1% /sapexe

1%

8126464 8124860

1% /oracle/<SID>/sapdata2

4772

1572864 1158112 27%

/dev/lvusr<SID>

1% /oracle/<SID>/sapdata1

19

1%

16

1% /usr_sap
1% /usr_sap_trans

<SID>ad:ora<SID> 2> df -g
Filesystem

GB blocks

Free %Used

/dev/hd4

0.25

0.23

/dev/hd2

2.25

0.18 93%

/dev/hd9var

0.25

8%

Iused %Iused Mounted on

2276

5% /

36067

45% /usr

694

2% /var

0.21 17%

/dev/hd3

0.75

0.62 18%

416

1% /tmp

/dev/hd1

0.25

0.25

1%

66

1% /home

/proc

- /proc

/dev/hd10opt

0.25

0.15 39%

2458

7% /opt

/dev/fslv00

1.50

1.50

1%

1% /export/nim

/dev/fslv01

0.25

0.25

1%

1% /tftpboot

/dev/lv00

0.25

0.24

4%

18

/dev/lvoracle
/dev/lvora<SID>

0.50
0.50

0.43 15%

1796

0.25 51%

Copyright IBM Corporation 2005

1% /var/adm/csd
538

2% /oracle
1% /oracle/<SID>

v1.0

Work Instructions - Basis

/dev/lvorahome

7.75

4.24 46%

17186

2% /oracle/<SID>/920_64

/dev/lvmirrloga

0.25

0.15 40%

1% /oracle/<SID>/mirrlogA

/dev/lvmirrlogb

0.25

0.15 40%

1% /oracle/<SID>/mirrlogB

/dev/lvoraarch

48.75

28.49 42%

419

/dev/lvorigloga

0.25

0.15 42%

1% /oracle/<SID>/origlogA

/dev/lvoriglogb

0.25

0.15 40%

1% /oracle/<SID>/origlogB

/dev/lvsapdata1

21.00

20.44

/dev/lvsapdata2

6.75

4.80 29%

/dev/lvsapdata3

50.00

37.69 25%

18

1% /oracle/<SID>/sapdata3

/dev/lvsapdata4

49.00

31.41 36%

22

1% /oracle/<SID>/sapdata4

/dev/lvsapreorg

2.00

2.00

/dev/lvorastage

2.00

0.06 98%

/dev/lvsapmnt
/dev/lvusr<SID>
/dev/lvsaptrans

1.50

3%

1%

1.10 27%

2.25
7.75

2.25
7.75

1%
1%

1% /oracle/<SID>/oraarch

11

9
4772
129
19
16

1% /oracle/<SID>/sapdata1
1% /oracle/<SID>/sapdata2

1% /oracle/<SID>/sapreorg
25% /oracle/stage/920_64
1% /sapexe
1% /usr_sap
1% /usr_sap_trans

<SID>ad:ora<SID> 3> brtools


BR0651I BRTOOLS 6.40 (11)
BR0280I BRTOOLS time stamp: 2005-12-28 15.47.10
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
-------------------------------------------------------------------------------

Copyright IBM Corporation 2005

v1.0

Work Instructions - Basis

BR0662I Enter your choice:


2
BR0280I BRTOOLS time stamp: 2005-12-28 15.47.39
BR0663I Your choice: '2'
BR0280I BRTOOLS time stamp: 2005-12-28 15.47.39
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 input values
Standard keys: c - cont, b - back, s - stop, r - refr, h - help
------------------------------------------------------------------------------BR0662I Enter your choice:
1
BR0280I BRTOOLS time stamp: 2005-12-28 15.48.02
BR0663I Your choice: '1'
BR0280I BRTOOLS time stamp: 2005-12-28 15.48.02
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]

Copyright IBM Corporation 2005

v1.0

Work Instructions - Basis

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: 2005-12-28 15.48.22
BR0663I Your choice: '3'
BR0280I BRTOOLS time stamp: 2005-12-28 15.48.22
BR0681I Enter string value for "tablespace" []:
PSAP<SID>
BR0280I BRTOOLS time stamp: 2005-12-28 15.48.35
BR0683I New value for "tablespace": 'PSAP<SID>'
BR0280I BRTOOLS time stamp: 2005-12-28 15.48.35
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) ... [PSAP<SID>]
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
PSAP<SID>]
Standard keys: c - cont, b - back, s - stop, r - refr, h - help
------------------------------------------------------------------------------BR0662I Enter your choice:
c

Copyright IBM Corporation 2005

v1.0

Work Instructions - Basis

BR0280I BRTOOLS time stamp: 2005-12-28 15.48.49


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 tsext
end -t PSAP<SID>'
BR0280I BRTOOLS time stamp: 2005-12-28 15.48.49
BR0670I Enter 'c[ont]' to continue, 'b[ack]' to go back, 's[top]' to abort:
c
BR0280I BRTOOLS time stamp: 2005-12-28 15.48.53
BR0257I Your reply: 'c'
BR0259I Program execution will be continued...
###############################################################################
BR1001I BRSPACE 6.40 (11)
BR1002I Start of BRSPACE processing: sdrpkfyk.tse 2005-12-28 15.48.54
BR0280I BRSPACE time stamp: 2005-12-28 15.48.55
BR1009I Name of database instance: <SID>
BR1010I BRSPACE action ID: sdrpkfyk
BR1011I BRSPACE function ID: tse
BR1012I BRSPACE function: tsextend
BR0280I BRSPACE time stamp: 2005-12-28 15.48.56
BR0657I Input menu 303 - please check/enter input values
------------------------------------------------------------------------------Options for extension of tablespace PSAP<SID> (1. file)
1 * Last added file name (lastfile) ....... [/oracle/<SID>/sapdata4/<SID>_9/<SID>.dat
a9]
2 * Last added file size in MB (lastsize) . [2000]
3 - New file to be added (file) ........... [/oracle/<SID>/sapdata4/<SID>_10/<SID>.da
ta10]

Copyright IBM Corporation 2005

v1.0

Work Instructions - Basis

4 ~ Raw disk / link target (rawlink) ...... []


5 - Size of the new file in MB (size) ..... [2000]
6 - File autoextend mode (autoextend) ..... [no]
7 # Maximum file size in MB (maxsize) ..... []
8 # File increment size in MB (incrsize) .. []
9 - SQL command (command) ................. [alter tablespace PSAP<SID> add dataf
ile '/oracle/<SID>/sapdata4/<SID>_10/<SID>.data10' size 2000M autoextend off]
Standard keys: c - cont, b - back, s - stop, r - refr, h - help
------------------------------------------------------------------------------BR0662I Enter your choice:
c
BR0280I BRSPACE time stamp: 2005-12-28 15.50.14
BR0663I Your choice: 'c'
BR0259I Program execution will be continued...
BR0280I BRSPACE time stamp: 2005-12-28 15.50.14
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: 2005-12-28 15.50.26
BR0257I Your reply: 'c'
BR0678I Action will be skipped...
BR0259I Program execution will be continued...
BR0280I BRSPACE time stamp: 2005-12-28 15.50.26
BR0370I Directory /oracle/<SID>/sapreorg/sdrpkfyk created
BR0280I BRSPACE time stamp: 2005-12-28 15.50.26
BR0319I Control file copy created: /oracle/<SID>/sapreorg/sdrpkfyk/cntrl<SID>.old 49
56160
BR0280I BRSPACE time stamp: 2005-12-28 15.50.26

Copyright IBM Corporation 2005

v1.0

Work Instructions - Basis

BR0370I Directory /oracle/<SID>/sapdata4/<SID>_10 created


BR0280I BRSPACE time stamp: 2005-12-28 15.50.26
BR1088I Extending tablespace PSAP<SID>...
BR0280I BRSPACE time stamp: 2005-12-28 15.50.52
BR1016I SQL statement 'alter tablespace PSAP<SID> add datafile '/oracle/<SID>/sapdat
a4/<SID>_10/<SID>.data10' size 2000M autoextend off' executed successfully
BR1051I Tablespace PSAP<SID> extended successfully by file '/oracle/<SID>/sapdata4/c
rp_10/<SID>.data10' of size 2000 MB
BR0280I BRSPACE time stamp: 2005-12-28 15.50.52
BR0340I Switching to next online redo log file for database instance <SID> ...
BR0321I Switch to next online redo log file for database instance <SID> successful
BR0280I BRSPACE time stamp: 2005-12-28 15.50.53
BR0319I Control file copy created: /oracle/<SID>/sapreorg/sdrpkfyk/cntrl<SID>.new 49
56160
BR0280I BRSPACE time stamp: 2005-12-28 15.50.54
BR0670I Enter 'c[ont]' to continue, 'b[ack]' to go back, 's[top]' to abort:
c
BR0280I BRSPACE time stamp: 2005-12-28 15.52.08
BR0257I Your reply: 'c'
BR0259I Program execution will be continued...
BR0280I BRSPACE time stamp: 2005-12-28 15.52.08
BR1020I Number of tablespaces processed: 1
BR1003I BRSPACE function 'tsextend' completed
BR1008I End of BRSPACE processing: sdrpkfyk.tse 2005-12-28 15.52.08
BR0280I BRSPACE time stamp: 2005-12-28 15.52.09
BR1005I BRSPACE completed successfully
###############################################################################

Copyright IBM Corporation 2005

10

v1.0

Work Instructions - Basis

BR0292I Execution of BRSPACE finished with return code 0


BR0280I BRTOOLS time stamp: 2005-12-28 15.52.09
BR0256I Enter 'c[ont]' to continue, 's[top]' to cancel BRTOOLS:
c
BR0280I BRTOOLS time stamp: 2005-12-28 15.52.19
BR0257I Your reply: 'c'
BR0259I Program execution will be continued...
BR0280I BRTOOLS time stamp: 2005-12-28 15.52.19
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 input values
Standard keys: c - cont, b - back, s - stop, r - refr, h - help
------------------------------------------------------------------------------BR0662I Enter your choice:
b
BR0280I BRTOOLS time stamp: 2005-12-28 15.53.18
BR0663I Your choice: 'b'
BR0673I Going back to the previous menu...
BR0280I BRTOOLS time stamp: 2005-12-28 15.53.18
BR0656I Choice menu 1 - please make a selection
------------------------------------------------------------------------------BR*Tools main menu

Copyright IBM Corporation 2005

11

v1.0

Work Instructions - Basis

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:
9
BR0280I BRTOOLS time stamp: 2005-12-28 15.53.25
BR0663I Your choice: '9'
BR0280I BRTOOLS time stamp: 2005-12-28 15.53.25
BR0680I Do you really want to exit BRTOOLS? Enter y[es]/n[o]:
y

Copyright IBM Corporation 2005

12

v1.0