Brspace -f tbreorg -t "*" -a cleanup command
Hi All
we have around 124GB for stuck #$ table after online reorg fail,can you please update me how safe is command brspace -f tbreorg -t "*" -a cleanup command in running system?, and its impact on EDI40 table?
Thanks
Dinesh
Hi Dinesh,
> can you please update me how safe is command brspace -f tbreorg -t "*" -a cleanup command in running system?, and its impact on EDI40 table?
It is safe and has no impact on the original table. The database objects with the suffix "#$" are related to the interim (table) object and it is cleaned up with PL/SQL procedure DBMS_REDEFINITION.ABORT_REDEF_TABLE (and following drop).
http://docs.oracle.com/cd/E11882_01/appdev.112/e40758/d_redefi.htm#i998327
Regards
Stefan
Similar Messages
-
Brspace command for Oracle on SAP system
Hi all!
I need to perform a complete "reorg" of my sap BW 7 system (NW2004s).
I check the sap note 646681 but I din't find anything for a complete database reorganization.
I try to execute the following command:
BRSPACE -F TBREORG -T SAPSR3DB
after that I receive the following error message:
ORA-01116: error in opening database file 5
ORA-01110: data file 5: '/oracle/EPT/sapdata4/sr3db_2/sr3db.data2'
ORA-27092: size of file exceeds file size limit of the process
BR0280I BRSPACE time stamp: 2010-07-06 18.06.17
BR0815I Number of indexes in schema of owner SAPSR3DB: 957
BR1107E Table(s) 'SAPSR3DB' not found
BR0182E Checking parameter/option '-t|reorg_table' failed
BR0669I Cannot continue due to previous warnings or errors - you can go back to repeat the last action
Someone can help me?
Thanks in advance!> ORA-01116: error in opening database file 5
> ORA-01110: data file 5: '/oracle/EPT/sapdata4/sr3db_2/sr3db.data2'
> ORA-27092: size of file exceeds file size limit of the process
What operating system are you using?
What are the shell limits of user ora<sid>?
Markus -
Running 5 commands using array elements and waiting between?
Hi All,
Trying to learn PS so please be patient with me ;)
System: PSv3 on Win2012 server running WSUS role
I am wanting to execute 5 commands using a 'foreach' loop but wait until one finishes before moving onto the next. Can you please check out what I have and provide some suggestions of improvement? or scrap it completely if it's rubbish :(
Current code:
#### SCRIPT START ####
#Create and define array and elements
$Array1 = @(" -CleanupObsoleteComputers"," -DeclineSupersededUpdates -DeclineExpiredUpdates"," -CleanupObsoleteUpdates"," -CleanupUnneededContentFiles"," -CompressUpdates")
#Run the cleanup command against each element
foreach ($element in $Array1) {
Get-WsusServer | Invoke-WsusServerCleanup $element -Whatif
#### SCRIPT END ####
I am assuming that I need to use @ to explicitly define elements since my second element contains two commands with a space between?
The cleanup command doesn't accept '-Wait' so I'm not sure how to implement a pause without just telling it to pause for x time; not really a viable solution for this as the command can sometime take quite a while. They are pretty quick now that I do
this all the time but just want it to be future proof and fool proof so it doesn't get timeouts as reported by others.
I have found lots of code on the net for doing this remotely and calling the .NET assemblies which is much more convoluted. I however want to run this on the server directly as a scheduled task and I want each statement to run successively so it
doesn't max out CPU and memory, as can be the case when a single string running all of the cleanup options is passed.
Cheers.Thank you all for your very helpful suggestions, I have now developed two ways of doing this. My original updated (thanks for pointing me in the right direction Fred) and Boe's tweaked for my application (blew my mind when I first read that API code
Boe). I like the smaller log file mine creates which doesn't really matter because I am only keeping the last run data before trashing it anyway. I have also removed the verbose as I will be running it on a schedule when nobody will be accessing it anyway,
but handy to know the verbose commands ;)
Next question: How do I time these to see which way is more efficient?
My Code:
$Array1 = @("-CleanupObsoleteComputers","-DeclineSupersededUpdates","-DeclineExpiredUpdates","-CleanupObsoleteUpdates","-CleanupUnneededContentFiles","-CompressUpdates")
$Wsus = Get-WsusServer
[String]$Logfile = 'C:\Program Files\Update Services\LogFiles\ArrayWSUSCleanup.log'
[String]$Logfileold = 'C:\Program Files\Update Services\LogFiles\ArrayWSUSCleanup.old'
If (Test-Path $Logfileold){
Remove-Item $Logfileold
If (Test-Path $Logfile){
Rename-Item $Logfile $Logfileold
foreach ($Element in $Array1)
Get-Date | Out-File -FilePath $LogFile -Append -width 50
Write-Output "Performing: $($Element)" | Out-File -FilePath $LogFile -Append -width 100
. Invoke-Expression "`$Wsus | Invoke-WsusServerCleanup $element" | Out-File -FilePath $LogFile -Append -width 100
Logfile Output {added 1 to show what it looks like when items are actions}:
Wednesday, 27 August 2014 2:14:01 PM
Obsolete Computers Deleted:1
Wednesday, 27 August 2014 2:14:03 PM
Obsolete Updates Deleted:1
Wednesday, 27 August 2014 2:14:05 PM
Expired Updates Declined:1
Wednesday, 27 August 2014 2:14:07 PM
Obsolete Updates Deleted:1
Wednesday, 27 August 2014 2:14:09 PM
Diskspace Freed:1
Wednesday, 27 August 2014 2:14:13 PM
Updates Compressed:1
Boe's Updated Code:
[String]$WSUSServer = 'PutWSUSServerNameHere'
[Int32]$Port = 8530 #Modify to the port your WSUS connects on
[String]$Logfile = 'C:\Program Files\Update Services\LogFiles\APIWSUSCleanup.log'
[String]$Logfileold = 'C:\Program Files\Update Services\LogFiles\APIWSUSCleanup.old'
If (Test-Path $Logfileold){
Remove-Item $Logfileold
If (Test-Path $Logfile){
Rename-Item $Logfile $Logfileold
[Void][reflection.assembly]::LoadWithPartialName("Microsoft.UpdateServices.Administration")
$Wsus = [Microsoft.UpdateServices.Administration.AdminProxy]::getUpdateServer($WSUSServer,$False,$Port)
$CleanupMgr = $Wsus.GetCleanupManager()
$CleanupScope = New-Object Microsoft.UpdateServices.Administration.CleanupScope
$Properties = ("CleanupObsoleteComputers","DeclineSupersededUpdates","DeclineExpiredUpdates","CleanupObsoleteUpdates","CleanupUnneededContentFiles","CompressUpdates")
For ($i=0;$i -lt $Properties.Count;$i++) {
$CleanupScope.($Properties[$i])=$True
0..($Properties.Count-1) | Where {
$_ -ne $i
} | ForEach {
$CleanupScope.($Properties[$_]) = $False
Get-Date | Out-File -FilePath $LogFile -Append -width 50
Write-Output "Performing: $($Properties[$i])" | Out-File -FilePath $LogFile -Append -width 100
$CleanupMgr.PerformCleanup($CleanupScope) | Out-File -FilePath $LogFile -Append -width 200
Logfile Output {added 1 to show what it looks like when items are actions}:
Wednesday, 27 August 2014 2:32:30 PM
Performing: CleanupObsoleteComputers
SupersededUpdatesDeclined : 0
ExpiredUpdatesDeclined : 0
ObsoleteUpdatesDeleted : 0
UpdatesCompressed : 0
ObsoleteComputersDeleted : 1
DiskSpaceFreed : 0
Wednesday, 27 August 2014 2:32:32 PM
Performing: DeclineSupersededUpdates
SupersededUpdatesDeclined : 1
ExpiredUpdatesDeclined : 0
ObsoleteUpdatesDeleted : 0
UpdatesCompressed : 0
ObsoleteComputersDeleted : 0
DiskSpaceFreed : 0
Wednesday, 27 August 2014 2:32:34 PM
Performing: DeclineExpiredUpdates
SupersededUpdatesDeclined : 0
ExpiredUpdatesDeclined : 1
ObsoleteUpdatesDeleted : 0
UpdatesCompressed : 0
ObsoleteComputersDeleted : 0
DiskSpaceFreed : 0
Wednesday, 27 August 2014 2:32:36 PM
Performing: CleanupObsoleteUpdates
SupersededUpdatesDeclined : 0
ExpiredUpdatesDeclined : 0
ObsoleteUpdatesDeleted : 1
UpdatesCompressed : 0
ObsoleteComputersDeleted : 0
DiskSpaceFreed : 0
Wednesday, 27 August 2014 2:32:38 PM
Performing: CleanupUnneededContentFiles
SupersededUpdatesDeclined : 0
ExpiredUpdatesDeclined : 0
ObsoleteUpdatesDeleted : 0
UpdatesCompressed : 0
ObsoleteComputersDeleted : 0
DiskSpaceFreed : 1
Wednesday, 27 August 2014 2:32:43 PM
Performing: CompressUpdates
SupersededUpdatesDeclined : 0
ExpiredUpdatesDeclined : 0
ObsoleteUpdatesDeleted : 0
UpdatesCompressed : 1
ObsoleteComputersDeleted : 0
DiskSpaceFreed : 0 -
Trying to use brspace to do a reorg
I am trying to reorg ALL the tables in one tablespace at once:
brspace -f tbreorg -a reorg -i psapfact2i -m offline -n psapfact2d -s psapfactd -t "*"
I get this back:
BR1001I BRSPACE 7.00 (33)
BR1002I Start of BRSPACE processing: sdxtkjdu.tbr 2008-04-22 11.57.42
BR0484I BRSPACE log file: /oracle/BQA/sapreorg/sdxtkjdu.tbr
BR0280I BRSPACE time stamp: 2008-04-22 11.57.45
BR1009I Name of database instance: BQA
BR1010I BRSPACE action ID: sdxtkjdu
BR1011I BRSPACE function ID: tbr
BR1012I BRSPACE function: tbreorg
BR0280I BRSPACE time stamp: 2008-04-22 11.57.47
BR1039I Selecting information about tables and indexes...
BR0285I This function can take several seconds/minutes - be patient...
BR0280I BRSPACE time stamp: 2008-04-22 11.57.49
BR0814I Number of tables/partitions in schema of owner SAPR3: 15948/1024
BR0280I BRSPACE time stamp: 2008-04-22 11.57.56
BR0815I Number of indexes/partitions in schema of owner SAPR3: 21106/6021
BR0280I BRSPACE time stamp: 2008-04-22 11.57.56
BR0660I List display 352 - no selection possible
List of tables for reorganization
Pos. Owner Table Pt. DgPk. Rows Space[KB] Data[KB:%]
1 - SAPR3 /BI0/E0BWTC_C02 NO 1 0 72 0:0
2 - SAPR3 /BI0/E0BWTC_C03 NO 1 0 72 0:0
3 - SAPR3 /BI0/E0BWTC_C04 NO 1 0 72 0:0
4 - SAPR3 /BI0/E0BWTC_C05 NO 1 0 72 0:0
5 - SAPR3 /BI0/E0BWTC_C06 NO 1 0 72 0:0
6 - SAPR3 /BI0/E0BWTC_C07 NO 1 0 72 0:0
7 - SAPR3 /BI0/E0BWTC_C09 NO 1 0 72 0:0
8 - SAPR3 /BI0/E0BWTC_C11 NO 1 0 72 0:0
9 - SAPR3 /BI0/E0PCA_C01 YES 1 0 584 0:0
10 - SAPR3 /BI0/E0PCA_C02 NO 1 0 72 0:0
11 - SAPR3 /BI0/F0BWTC_C02 YES 1 5405 1040 713:69
12 - SAPR3 /BI0/F0BWTC_C03 YES 1 0 72 0:0
13 - SAPR3 /BI0/F0BWTC_C04 YES 1 0 72 0:0
14 - SAPR3 /BI0/F0BWTC_C05 YES 1 128 144 6:4
15 - SAPR3 /BI0/F0BWTC_C06 YES 1 0 72 0:0
16 - SAPR3 /BI0/F0BWTC_C07 YES 1 0 72 0:0
17 - SAPR3 /BI0/F0BWTC_C09 YES 1 0 72 0:0
18 - SAPR3 /BI0/F0BWTC_C11 YES 1 0 72 0:0
19 - SAPR3 /BI0/F0PCA_C01 YES 1 9985560 715472 565588:79
20 - SAPR3 /BI0/F0PCA_C02 YES 1 3964200 144840 100654:69
Press <Rtn> - scroll, 'c' - cont, 'h' - header, 's' - stop ...
21 - SAPR3 /BIC/E100000 NO 1 289140 18440 13836:75
22 - SAPR3 /BIC/E100001 NO 1 147720 9224 7069:77
23 - SAPR3 /BIC/E100002 NO 1 587930 50184 40191:80
24 - SAPR3 /BIC/EMMPUR_C01 NO 1 0 72 0:0
25 - SAPR3 /BIC/EZCO_C50 NO 1 0 72 0:0
26 - SAPR3 /BIC/EZCO_C51 NO 1 0 72 0:0
27 - SAPR3 /BIC/EZECCS_C04 NO 1 0 72 0:0
28 - SAPR3 /BIC/EZMMPURC01 NO 1 0 72 0:0
29 - SAPR3 /BIC/EZPCA_C03 YES 1 0 488 0:0
30 - SAPR3 /BIC/EZPURC001 YES 1 0 2664 0:0
31 - SAPR3 /BIC/EZPURC002 YES 1 0 296 0:0
32 - SAPR3 /BIC/EZQM_C50 YES 1 0 16488 0:0
33 - SAPR3 /BIC/EZRC_C50 NO 1 0 72 0:0
34 - SAPR3 /BIC/EZRC_C51 YES 1 0 488 0:0
35 - SAPR3 /BIC/F100000 YES 1 0 72 0:0
36 - SAPR3 /BIC/F100001 YES 1 0 72 0:0
37 - SAPR3 /BIC/F100002 YES 1 0 72 0:0
38 - SAPR3 /BIC/FMMPUR_C01 YES 1 590150 53328 42648:80
39 - SAPR3 /BIC/FZCO_C50 YES 1 478120 55552 41555:75
40 - SAPR3 /BIC/FZCO_C51 YES 1 32610 4176 2898:69
Press <Rtn> - scroll, 'c' - cont, 'h' - header, 's' - stop ...
41 - SAPR3 /BIC/FZECCS_C04 YES 1 744980 34696 25463:73
42 - SAPR3 /BIC/FZMMPURC01 YES 1 9719 976 655:67
43 - SAPR3 /BIC/FZPCA_C03 YES 1 11251680 741872 593350:80
44 - SAPR3 /BIC/FZPURC001 YES 1 0 72 0:0
45 - SAPR3 /BIC/FZPURC002 YES 1 0 8 0:0
46 - SAPR3 /BIC/FZQM_C50 YES 1 0 72 0:0
47 - SAPR3 /BIC/FZRC_C50 YES 1 62090 4576 1819:40
48 - SAPR3 /BIC/FZRC_C51 YES 1 0 8 0:0
49 - SAPR3 RSDMFACTAB NO 1 0 72 0:0
50 - SAPR3 RSMDMCNVTAB NO 1 0 72 0:0
Standard keys: c - cont, b - back, s - stop, r - refr, h - help
BR0662I Enter your choice:
c
BR0280I BRSPACE time stamp: 2008-04-22 11.58.02
BR0663I Your choice: 'c'
BR0259I Program execution will be continued...
BR0280I BRSPACE time stamp: 2008-04-22 11.58.02
BR0657I Input menu 353 - please enter/check input values
Options for reorganization of tables: SAPR3./BI0/E0BWTC_C02,... (50 tables)
1 ~ New destination tablespace (newts) ........ [PSAPFACT2D]
2 ~ Separate index tablespace (indts) ......... [PSAPFACT2I]
3 - Parallel threads (parallel) ............... [1]
4 ~ Table/index parallel degree (degree) ...... []
5 # Create DDL statements (ddl) ............... [yes]
6 ~ Category of initial extent size (initial) . []
7 # Sort by fields of index (sortind) ......... []
8 - Table reorganization mode (mode) .......... [offline]
Standard keys: c - cont, b - back, s - stop, r - refr, h - help
BR0662I Enter your choice:
Why is it only doing 50 of the 353 tables?From DB02 then saved to an excel file:
Owner Object Type Tablespace KBytes Blocks Extents MaxExtents Next (K)
1 SAPR3 /BIC/EZQM_C50200509 TABLE PART PSAPFACTD 64 8 1 -1 0
2 SAPR3 /BIC/EZQM_C50200508 TABLE PART PSAPFACTD 64 8 1 -1 0
3 SAPR3 /BIC/EZQM_C50200507 TABLE PART PSAPFACTD 64 8 1 -1 0
4 SAPR3 /BIC/EZQM_C50200506 TABLE PART PSAPFACTD 64 8 1 -1 0
595 SAPR3 /BIC/EZRC_C5192003003 TABLE PART PSAPFACTD 64 8 1 -1 0
596 SAPR3 /BIC/EZRC_C5192003002 TABLE PART PSAPFACTD 64 8 1 -1 0
597 SAPR3 /BIC/EZRC_C5192003001 TABLE PART PSAPFACTD 64 8 1 -1 0 -
Partitioning a table with brspace
Hello,
we are under SAP 46C and oracle 10.2.0.2.
we have a table that size over than 200GB, we would to go ahead with partitioning and archiving into a lot of parts.
My question:
in the past we use a full oracle method with exchange partition. Actually we would use brspace, but i cannot find the command line to use to partitioned a new table.
Can you please help me on this issue?
Thank youOrkun Gedik wrote:
> As far as I know that it is not allowed partitioning on brspace. Instead you can check the note 1333328 - Partitioning Engine for Oracle
Well, it is in fact allowed, allthough it takes a small ride through some notes.
You should know what you are doing, but
- Note 104047 (point 60.) allows partitioning (with minor restrictions)
- Note 722188 describes partitioning in general and esp. the syntax required in the sql statements.
- Note 646681 describes (point 5) how to stop brspace after createing the ddl.sql file to have the possibility to adjust as needed.
I applied hash partitioning on a a table once using this way (editing ddl.sql) with an online reorg using brspace and that was way back in version 9.
So I think it is still valid, but you should verify the procedure on a QA-system first and may be do a 4 eyes check on ddl.sql!
Volker -
I did a :
brspace -f tbreorg -a reorg -i psapods2i -m offline -n psapods2d -s psapodsd -t "*"
then a:
brspace -f tbreorg -a reorg -i psapodsi -m offline -n psapodsd -s psapods2d -t "*"
Now dataloads are failing. They are trying to create things in PSAPODS2I which does not exist any more. When I created the DDL for one of the failing loads I get the following. Notice the PSAPODS2I at the end? Where is that stored? I have looked ALL over SAP/Oracle..
Oracle 10.2.0.2 on HP-UX Itanium 64
BRSPACE is version 33.
Thanks-
Vince
CREATE UNIQUE INDEX "SAPR3"."/BIC/B0000282000~0" ON
"SAPR3"."/BIC/B0000282000"
("REQUEST", "DATAPAKID", "PARTNO", "RECORD")
LOCAL
PARTITION "/BIC/B00002820000000000002"
STORAGE (
INITIAL 16384
NEXT 65536
MAXEXTENTS UNLIMITED
PCTINCREASE 0
FREELISTS 1
FREELIST GROUPS 1
PCTFREE 10
INITRANS 2
MAXTRANS 255
TABLESPACE "PSAPODSI"
LOGGING,
PARTITION "/BIC/B00002820000000000003"
STORAGE (
INITIAL 16384
NEXT 65536
MAXEXTENTS UNLIMITED
PCTINCREASE 0
FREELISTS 1
FREELIST GROUPS 1
PCTFREE 10
INITRANS 2
MAXTRANS 255
TABLESPACE "PSAPODSI"
LOGGING,
PARTITION "/BIC/B00002820000000000004"
STORAGE (
INITIAL 16384
NEXT 65536
MAXEXTENTS UNLIMITED
PCTINCREASE 0
FREELISTS 1
FREELIST GROUPS 1
PCTFREE 10
INITRANS 2
MAXTRANS 255
TABLESPACE "PSAPODSI"
LOGGING,
PARTITION "/BIC/B00002820000000000005"
STORAGE (
INITIAL 16384
NEXT 65536
MAXEXTENTS UNLIMITED
PCTINCREASE 0
FREELISTS 1
FREELIST GROUPS 1
PCTFREE 10
INITRANS 2
MAXTRANS 255
TABLESPACE "PSAPODSI"
LOGGING,
PARTITION "/BIC/B00002820000000000006"
STORAGE (
INITIAL 16384
NEXT 65536
MAXEXTENTS UNLIMITED
PCTINCREASE 0
FREELISTS 1
FREELIST GROUPS 1
PCTFREE 10
INITRANS 2
MAXTRANS 255
TABLESPACE "PSAPODSI"
LOGGING,
PARTITION "/BIC/B00002820000000000008"
STORAGE (
INITIAL 16384
NEXT 65536
MAXEXTENTS UNLIMITED
PCTINCREASE 0
FREELISTS 1
FREELIST GROUPS 1
PCTFREE 10
INITRANS 2
MAXTRANS 255
TABLESPACE "PSAPODSI"
LOGGING,
PARTITION "/BIC/B00002820000000000010"
STORAGE (
INITIAL 16384
NEXT 65536
MAXEXTENTS UNLIMITED
PCTINCREASE 0
FREELISTS 1
FREELIST GROUPS 1
PCTFREE 10
INITRANS 2
MAXTRANS 255
TABLESPACE "PSAPODSI"
LOGGING,
PARTITION "/BIC/B00002820000000000011"
STORAGE (
INITIAL 16384
NEXT 65536
MAXEXTENTS UNLIMITED
PCTINCREASE 0
FREELISTS 1
FREELIST GROUPS 1
PCTFREE 10
INITRANS 2
MAXTRANS 255
TABLESPACE "PSAPODSI"
LOGGING,
PARTITION "/BIC/B00002820000000000012"
STORAGE (
INITIAL 16384
NEXT 65536
MAXEXTENTS UNLIMITED
PCTINCREASE 0
FREELISTS 1
FREELIST GROUPS 1
PCTFREE 10
INITRANS 2
MAXTRANS 255
TABLESPACE "PSAPODSI"
LOGGING,
PARTITION "/BIC/B00002820000000000013"
STORAGE (
INITIAL 16384
NEXT 65536
MAXEXTENTS UNLIMITED
PCTINCREASE 0
FREELISTS 1
FREELIST GROUPS 1
PCTFREE 10
INITRANS 2
MAXTRANS 255
TABLESPACE "PSAPODSI"
LOGGING,
PARTITION "/BIC/B00002820000000000014"
STORAGE (
INITIAL 16384
NEXT 65536
MAXEXTENTS UNLIMITED
PCTINCREASE 0
FREELISTS 1
FREELIST GROUPS 1
PCTFREE 10
INITRANS 2
MAXTRANS 255
TABLESPACE "PSAPODSI"
LOGGING,
PARTITION "/BIC/B00002820000000000015"
STORAGE (
INITIAL 16384
NEXT 65536
MAXEXTENTS UNLIMITED
PCTINCREASE 0
FREELISTS 1
FREELIST GROUPS 1
PCTFREE 10
INITRANS 2
MAXTRANS 255
TABLESPACE "PSAPODSI"
LOGGING,
PARTITION "/BIC/B00002820000000000016"
STORAGE (
INITIAL 16384
NEXT 65536
MAXEXTENTS UNLIMITED
PCTINCREASE 0
FREELISTS 1
FREELIST GROUPS 1
PCTFREE 10
INITRANS 2
MAXTRANS 255
TABLESPACE "PSAPODSI"
LOGGING,
PARTITION "/BIC/B00002820000000000017"
STORAGE (
INITIAL 16384
NEXT 65536
MAXEXTENTS UNLIMITED
PCTINCREASE 0
FREELISTS 1
FREELIST GROUPS 1
PCTFREE 10
INITRANS 2
MAXTRANS 255
TABLESPACE "PSAPODSI"
LOGGING
STORAGE (
INITIAL 2
NEXT 320
MAXEXTENTS 2147483645
PCTINCREASE 0
FREELISTS 1
PCTFREE 10
INITRANS 2
MAXTRANS 255
NOCOMPRESS
LOGGING
TABLESPACE "PSAPODS2I"
NOPARALLEL;
Edited by: Vince Laurent on May 6, 2008 11:27 PMhow?
SQL> desc rsts;
Name Null? Type
TRANSTRU NOT NULL VARCHAR2(27)
OBJVERS NOT NULL VARCHAR2(1)
OBJSTAT NOT NULL VARCHAR2(3)
ACTIVFL NOT NULL VARCHAR2(1)
TSMETHODE NOT NULL VARCHAR2(1)
ODSTYPE NOT NULL VARCHAR2(1)
ODSNAME NOT NULL VARCHAR2(30)
ODSVERSION NOT NULL VARCHAR2(3)
TRANSTRU_APPL NOT NULL VARCHAR2(30)
TRANSTRU_CHAR NOT NULL VARCHAR2(27)
TRANSTRU_IDOC NOT NULL VARCHAR2(27)
TRANSTRU_IDOC3 NOT NULL VARCHAR2(10)
OBJSTATOLTP NOT NULL VARCHAR2(3)
PROGNAME NOT NULL VARCHAR2(40)
FORMNAME NOT NULL VARCHAR2(30)
GLBCODE NOT NULL VARCHAR2(25)
OWNER NOT NULL VARCHAR2(12)
TSTMPOLTP NOT NULL NUMBER(15)
TSTPNM NOT NULL VARCHAR2(12)
TIMESTMP NOT NULL NUMBER(15)
LOGSYS NOT NULL VARCHAR2(10)
CONTREL NOT NULL VARCHAR2(6)
CONTTIMESTMP NOT NULL NUMBER(15)
STARTROUTINE VARCHAR2(25)
EDSFL VARCHAR2(1)
PSADATCLS VARCHAR2(5)
PSASIZCAT VARCHAR2(2) -
Cleanup disk or uninstall software on possible ThinPro 5.1 to reclaim space?
I have been desperately trying to find the most stable version of ThinPro for our Wireless T510's, and I seem to have found it in 5.1. However, these T510s only have 1GB of flash storage which is causing some of the updates to fail to install due to not having enough storage (even though system info says 300 MB free) Is there any cleanup commands or any way to uninstall unused software on ThinPro 5.x? I've installed a few service packs, but I don't know if they do self-cleanup or not. They seem to have consumed a good amount of space.
Have you bothered to do any research at all? Not every app was upgrade to 5.5. Those that weren’t will next be upgraded to CS6.
Bob -
BRSPACE Log being created under incorrect location
I have written a shell script to re-org couple of tables. following is the script:
#!/usr/bin/ksh
# BW Tables re-org and index compression
ORACLE_SID=TST; export ORACLE_SID
ORACLE_HOME=/oracle/TST/112_64; export ORACLE_HOME
PATH=/usr/sbin:/oracle/TST/admin/bin:/oracle/TST/112_64/bin:.:/oracle/TST:/usr/sap/TST/SYS/exe/run:/usr/bin:.:/usr/ccs/bin:/usr/ucb
LD_LIBRARY_PATH=/usr/sap/TST/SYS/exe/run:/oracle/TST/112_64/lib; export LD_LIBRARY_PATH
CURDATE=`date +"%Y-%m-%d-%H:%M"`
LOGFILE=/oracle/$ORACLE_SID/admin/log/tables_reorg.log; export LOGFILE
EMAIL_FILE=/oracle/$ORACLE_SID/admin/log/tables_reorg_email.txt; export EMAIL_FILE
echo "Table Reorg Start Time:`date +"%Y-%m-%d-%H:%M"` " > $EMAIL_FILE
echo " " >> $EMAIL_FILE
brspace -c force -u / -f tbreorg -t BALHDR,RSBATCHDATA > $LOGFILE
echo "Table Reorg End Time: `date +"%Y-%m-%d-%H:%M"`" >> $EMAIL_FILE
echo " " >> $EMAIL_FILE
echo "############ SUCCESS ############" >> $EMAIL_FILE
grep "reorganized successfully" /oracle/$ORACLE_SID/admin/log/tables_reorg.log >> $EMAIL_FILE
echo " " >> $EMAIL_FILE
echo "############ SKIPPED ############" >> $EMAIL_FILE
grep "will be skipped" /oracle/$ORACLE_SID/admin/log/tables_reorg.log >> $EMAIL_FILE
echo " " >> $EMAIL_FILE
echo "############ OVERALL ERRORS ############" >> $EMAIL_FILE
grep "error" /oracle/$ORACLE_SID/admin/log/tables_reorg.log >> $EMAIL_FILE
echo " " >> $EMAIL_FILE
cat $EMAIL_FILE | /usr/bin/mailx -s "$ORACLE_SID Table Re-organisation Report " [email protected]
exit
We are required to login to the server using our personal ID and then "sudo su - oratst" to connect to oratst. When I login like this and execute the above script it works fine. Below is the output:
BR1001I BRSPACE 7.20 (38)
BR1002I Start of BRSPACE processing: seortudn.tbr 2014-09-07 15.35.15
BR0484I BRSPACE log file: /oracle/TST/sapreorg/seortudn.tbr
BR0280I BRSPACE time stamp: 2014-09-07 15.35.16
BR1009I Name of database instance: TST
BR1010I BRSPACE action ID: seortudn
BR1011I BRSPACE function ID: tbr
BR1012I BRSPACE function: tbreorg
BR0134I Unattended mode with 'force' active - no operator confirmation allowed
BR0280I BRSPACE time stamp: 2014-09-07 15.35.18
BR1039I Selecting information about tables and indexes...
BR0285I This action can take several seconds/minutes - be patient...
BR0280I BRSPACE time stamp: 2014-09-07 15.35.33
BR0814I Number of tables/partitions in schema of owner SAPR3: 33913/7699
BR0836I Number of tables treated as info cubes for owner SAPR3: 168
BR0280I BRSPACE time stamp: 2014-09-07 15.35.58
BR0815I Number of indexes/partitions in schema of owner SAPR3: 62579/64258
BR0280I BRSPACE time stamp: 2014-09-07 15.35.58
BR0660I List display 352 # no selection possible
List of tables for reorganization
Pos. Owner Table Pt. DgPk. Rows Used[KB] Data[KB:%]
1 - SAPR3 BALHDR NO 1 752120 228272 193906:85
2 - SAPR3 RSBATCHDATA NO 1 295 136 122:90
Standard keys: c - cont, b - back, s - stop, r - refr, h - help
BR0280I BRSPACE time stamp: 2014-09-07 15.35.58
BR0134I Unattended mode with 'force' active - continuing processing with default reply 'cont'
BR0280I BRSPACE time stamp: 2014-09-07 15.35.58
BR0657I Input menu 353 # please enter/check input values
Options for reorganization of tables: SAPR3.BALHDR,... (2 tables)
1 * Reorganization action (action) ............ [reorg]
2 - Reorganization mode (mode) ................ [online]
3 - Create DDL statements (ddl) ............... [yes]
4 ~ New destination tablespace (newts) ........ []
5 ~ Separate index tablespace (indts) ......... []
6 - Parallel threads (parallel) ............... [1]
7 ~ Table/index parallel degree (degree) ...... []
8 ~ Category of initial extent size (initial) . []
9 ~ Sort by fields of index (sortind) ......... []
10 # Index for IOT conversion (iotind) ......... [FIRST]
11 - Compression action (compress) ............. [none]
12 # LOB compression degree (lobcompr) ......... [medium]
13 # Index compression method (indcompr) ....... [ora_proc]
Standard keys: c - cont, b - back, s - stop, r - refr, h - help
BR0280I BRSPACE time stamp: 2014-09-07 15.35.58
BR0134I Unattended mode with 'force' active - continuing processing with default reply 'cont'
BR0280I BRSPACE time stamp: 2014-09-07 15.35.58
BR1108I Checking tables for reorganization...
BR0280I BRSPACE time stamp: 2014-09-07 15.35.59
BR1112I Number of tables selected/skipped for reorganization: 2/0
BR0370I Directory /oracle/TST/sapreorg/seortudn created
BR0280I BRSPACE time stamp: 2014-09-07 15.35.59
BR1101I Starting 'online' table reorganization...
BR0280I BRSPACE time stamp: 2014-09-07 15.35.59
BR1124I Starting 'online' reorganization of table SAPR3.BALHDR ...
BR0280I BRSPACE time stamp: 2014-09-07 15.36.53
BR1105I Table SAPR3.BALHDR reorganized successfully
BR0280I BRSPACE time stamp: 2014-09-07 15.36.53
BR1141I 1 of 2 tables processed - 752120 of 752415 rows done
BR0204I Percentage done: 98.67%, estimated end time: 15:36
BR0001I *************************************************_
BR0280I BRSPACE time stamp: 2014-09-07 15.36.53
BR1124I Starting 'online' reorganization of table SAPR3.RSBATCHDATA ...
BR0280I BRSPACE time stamp: 2014-09-07 15.37.05
BR1105I Table SAPR3.RSBATCHDATA reorganized successfully
BR0280I BRSPACE time stamp: 2014-09-07 15.37.05
BR1141I 2 of 2 tables processed - 752415 of 752415 rows done
BR0204I Percentage done: 100.00%, estimated end time: 15:37
BR0001I **************************************************
BR0280I BRSPACE time stamp: 2014-09-07 15.37.05
BR1102I Number of tables reorganized successfully: 2
BR0280I BRSPACE time stamp: 2014-09-07 15.37.05
BR1022I Number of tables processed: 2
BR1003I BRSPACE function 'tbreorg' completed
BR1008I End of BRSPACE processing: seortudn.tbr 2014-09-07 15.37.05
BR0280I BRSPACE time stamp: 2014-09-07 15.37.06
BR1005I BRSPACE completed successfully
When I schedule it in the crontab of oratst directly it is trying to create the logfile under $ORACLE_HOME/sapreorg and fails since that folder does not exist. Please see below
BR1001I BRSPACE 7.20 (38)
BR0252E Function fopen() failed for '/oracle/TST/112_64/sapreorg/seortuxs.tbr' at location main-5
BR0253E errno 2: No such file or directory
BR0121E Processing of log file /oracle/TST/112_64/sapreorg/seortuxs.tbr failed
BR0700E Fatal errors occurred - terminating processing...
BR1008I End of BRSPACE processing: seortuxs.tbr 2014-09-07 15.44.00
BR0280I BRSPACE time stamp: 2014-09-07 15.44.00
BR1007I BRSPACE terminated with errors
My question is, why is trying to create log under $ORACLE_HOME/reorg? Where is is picking up this location from?
Any advice from experts?
Thanks in advance.Hello Reagan,
Below is the env of oratst:
HOME=/oracle/TST
LOGNAME=oratst
PATH=/usr/bin:
SHELL=/usr/bin/sh
TZ=US/Eastern
When I sudo su - oratst and do env, this is what I see:
HOME=/oracle/TST
PATH=/usr/sbin:/usr/local/bin:/oracle/TST/112_64:/oracle/TST/112_64/OPatch:/oracle/TST/112_64/admin/bin:/oracle/TST/112_64/bin:/usr/sbin:/usr/local/bin:/oracle/TST/112_64:/oracle/TST/112_64/OPatch:/oracle/TST/112_64/admin/bin:/oracle/TST:/usr/sap/TST/SYS/exe/run:/usr/bin:.:/tools/ca/3.1/services/bin:/tools/ca/3.1/services/tools:/tools/ca/3.1/agents/bin:/opt/EMCpower/bin:/etc/emc/bin:/etc:/usr/ccs/bin:/usr/ucb
LOGNAME=oraTST
HZ=
TERM=xterm
SHELL=/usr/bin/csh
MAIL=/var/mail/oraTST
TZ=US/Eastern
PWD=/tmp
USER=oraTST
AGENTWORKS_DIR=/tools/ca/3.1
CASHCOMP=/opt/CA/SharedComponents
CALIB=/opt/CA/SharedComponents/lib
LD_LIBRARY_PATH=/opt/CA/SharedComponents/lib:/etc/emc/rsa/cst/lib:/usr/sap/TST/SYS/exe/run
LIC_ECHO=echo
SAPSYSTEMNAME=TST
DIR_LIBRARY=/usr/sap/TST/SYS/exe/run
THREAD=NOPS
dbms_type=ORA
dbs_ora_tsname=TST
ORACLE_BASE=/oracle
ORACLE_PSRV=TST
ORACLE_SID=TST
ORACLE_HOME=/oracle/TST/112_64
ORA_NLS10=/oracle/TST/112_64/nls/data
NLS_LANG=AMERICAN_AMERICA.WE8DEC
SAPDATA_HOME=/oracle/TST
EDITOR=vi -
Error after Oracle Migration from DMTS into LMTS
Hello ,
I'm sorry, I posted my question again from ABAP General into this forum ABAP Dictionary. I think that here someone can help me in order to proceed with my job in the Development and in production system.
We are using SAP R/3 4.6C, with SAP kernel 2271, Oracle 9.2.0.5 and HP-UX 11.23
I did the Oracle migration from dictionary into locally managed tablespaces on the QTS system (and before that the same migration on a separate system as a copy from production):
1. export data and index tablespace with Oracle export command (exp: for PSAPCLUD and PSAPCLUI)
2. import into file for creation of indexes
3. Drop the data and corresponding index tablesspace with brtools - brspace
4. recreate the tablespaces with sapdba or with sqlplus (using the ddl scripts created before dropping the tablespaces) - - I think is my problem
5. import the data with Oracle import command
6. import the indexes from the previously created sql file
7. check optimizer statistics, analyze and next extents
But there is one problem.
Because I have also used the sapdba and ddl sql for recreating the tablespaces, I didn't specify the SAP data class for the newly created tablespace.
And in the tables TAORA, IAORA and DDART (what is very unclear for me) 3 rows missing for the USER1, TEMP and ??? data class.
If you try to import some transport in the corresponding tablespace which data class is missing an error ocur.
I have read the Note 646681 - Reorganizing tables with BRSPACE, and I saw the part: If the <reorg_tsp> tablespace contains any of the following tables: SDBAH,SDBAD,DBAML,DBATL,MLICHECK,TGORA,IGORA,TSORA,TAORA, IAORA,SVERS,DD02L,DD09L,DDNTT,DDART,DARTT or SAPLIKEY (SAPLIKEY is only available in NetWeaver 2004s or higher), then you should move them to the tablespace <aux_tsp> by online reorganization using BRSPACE:
brspace -f tbreorg -t <table_list> -n <aux_tsp>
Do you have the same problem?
Do you know how I can solve the problem now after the hole migration was done?
How can I dedicate tablespace data class?
Is it enought to just enter the same rows into the TAORA, IAORA and DDART?
Thanks,
Many regards,
RuzicaApparently you are trying to mix 32-bit code and 64-bit code. You must ensure that the 32-bit or 64-bit option is used consistently on every command, compiling and linking. The form of the option can depend on the version of the C compiler you are using, and whether you are on an x86 or sparc system. Consult the Pro*C and C compiler documentation.
-
Hi,
I want to reorg my database. I am working on ECC6 ,oracle 10g & AIX operating System.I have reorg tablespaces using the option successfully.
brspace -f tbreorg -s psapddicd -t "*" -p 4
But table have long field can not reorg with this option. And if i try to change the LONG field to LOB field.Than it will impact on performance . Beacuse we have no option to convert LOB field to LONG field after reorg.
ThanksHi,
I have start again with the following option
1:- Create a new tablespace using the command
brspace -f tscreate -t PSAPPRD700new -s 20G -a yes -m 20G
-i 1024M -l PSAPPRD700
I have increass the size of new tablespace up to 75 GB, its 30 Gb bigger than old tablespace.
2:- After that i start the online reorg using
brspace -f tbreorg -s PSAPPRD700 -t "*" -n PSAPPRD700new -p 4
But after that i get the following error
BR0301W SQL error -12091 at location BrReorgCheck-5, SQL statement:
'BEGIN DBMS_REDEFINITION.CAN_REDEF_TABLE (UNAME => '"SAPPRD"', TNAME => '"AAB_ID_PROPT"', OPTIONS_FLAG => DBMS_REDEFINITION.CONS_USE_PK); END;'
ORA-12091: cannot online redefine table "SAPPRD"."AAB_ID_PROPT" with materialized views
ORA-06512: at "SYS.DBMS_REDEFINITION", line 137
ORA-06512: at "SYS.DBMS_REDEFINITION", line 1478
ORA-06512: at line 1
BR1111I Reorganization of table SAPPRD.AAB_ID_PROPT will be skipped
Now can you please suggest me some solution .
I am performing reorg on oracle 10g
Thanks & Regards
Rudra -
Hi All
According to note no 646681 we had performed DB reorganization for Oracle 10 G by using BRSPACE commands
Long fields conversion
1. brspace -f tbreorg -a long2lob -t "*" -n psapclud_n -p 4
2. brconnect -u / -c -f stats -t all -f collect -p 4
1. brspace -f tscreate -t psapclud_n -d both -l psapclud
2. brspace -f tbreorg -s psapclud -t "*" -n psapclud_n -p 4
3. brspace -f tsdrop -t psapclud
4. brspace -f tsalter -a rename -t psapclud_n -n psapclud
5. brconnect -u / -c -f stats -t psapclud -f collect -p 4
Currently we have reorganised for single tablespace PSAPCLUD
After all the steps got completed we started sap but
As soon as we logon by logonpad
we are gettin the ABAP dump
DBIF_RSQL_TABLE_UNKNOWN
A table is referred to in an SAP Open SQL statement that either does not
exist or is unknown to the ABAP Data Dictionary.
The table involved is "AGR_DATEU " or another table accessed in the statement
no errors occured during reorganization but are unable to run any transaction codes in sap
Can any please suggest where any logs would be generated
where any errors can be found ,we are clueless please helpHi,
maybe the reorg was done well and only the tablespace rename failed.
Can you check the status of you new tablesapce.
select tablespace_name, status from dba_tablespaces.
should be online.
Check that the table exists in the right schema after reorganisation.
select owner, table_name from dba_tables where table_name = '<TABLE_NAME>';
The reorg protocolls you should find in /oracle/<SID>/sapreorg
Check the ORACLE Alert file also: /oracle/<SID>/saptrace/backgroung/alert_<SID>.log
Regards Ulrich Henkenjohann -
Reorg moving indexes... how to avoid that?
Hi Everyone,
I'm running a db reorg for some tablespaces in oracle by following Note 646681 under section IV.
The problem is that i want to reorg PSAPVOLD into PSAPVOL2D (in order to be able to drop PSAPVOLD and then rename PSAPVOL2D) the problem is that the indexes of the 2 tables inside PSAPVOLD are been moved into PSAPVOL2D (from PSAPVOLI) and i want to avoid it.
I can't find any documentation on how to prevent reorg from touching the indexes, basically i want to do the indexes later in order to keep thing tidy.
I'm using command
brspace -f tbreorg -s <reorg_tsp> -t "*" -n <new_tsp> -p <par_degree>
Any Ideas?
Regards
JuanHi Juan,
the easiest way would obviously be to use the user interface brspace instead of trying to figure out the command line options.
Then you can enter a different target tablespace for indexes.
You may of course as well read the documentation/notes on brspace (or just type in 'brspace -help') and figure out that there is a option like this:
[-i|-indts <tablespace>]
separate index tablespace
default: table tablespace
By the way - there's really no big point in seperating index and data tablespaces. So the 'tidyness' is just a matter of your own gusto.
regards,
Lars -
Long time reorganization table
Hi Support
I tried to run the table reorganization of 128 GB, this run takes 15 hours.
Brtools run this reorganization, the options used were:
- brtools
- (3)
- (1)
- BRSPACE options for reorganization of tables
1 - BRSPACE profile (profile) ...... [initRQ1.sap]
2 - Database user/password (user) .. [/]
3 ~ Reorganization action (action) . []
4 ~ Tablespace names (tablespace) .. []
5 ~ Table owner (owner) ............ []
6 ~ Table names (table) ............ [GLPCA]
7 - Confirmation mode (confirm) .... [yes]
8 - Extended output (output) ....... [no]
9 - Scrolling line count (scroll) .. [20]
10 - Message language (language) .... [E]
11 - BRSPACE command line (command) . [-p initRQ1.sap -s 20 -l E -f
tbreorg -t "GLPCA"]
Standard keys: c - cont, b - back, s - stop, r - refr, h - help
BR0662I Enter your choice:
BR1001I BRSPACE 7.00 (41)
BR1002I Start of BRSPACE processing: sehujakt.tbr 2012-02-01 16.11.59
BR0484I BRSPACE log file: /oracle/RD1/sapreorg/sehujakt.tbr
BR0280I BRSPACE time stamp: 2012-02-01 16.12.03
BR1009I Name of database instance: RD1
BR1010I BRSPACE action ID: sehujakt
BR1011I BRSPACE function ID: tbr
BR1012I BRSPACE function: tbreorg
BR0280I BRSPACE time stamp: 2012-02-01 16.12.08
BR0657I Input menu 353 - please enter/check input values
Options for reorganization of tables: SAPRD1.GLPCA (degree 1)
1 ~ New destination tablespace (newts) ........ []
2 ~ Separate index tablespace (indts) ......... []
3 - Parallel threads (parallel) ............... [1]
4 ~ Table/index parallel degree (degree) ...... []
5 - Create DDL statements (ddl) ............... [yes]
6 ~ Category of initial extent size (initial) . []
7 ~ Sort by fields of index (sortind) ......... []
8 - Table reorganization mode (mode) .......... [online]
Standard keys: c - cont, b - back, s - stop, r - refr, h - help
and its execution was 15 hours
Now this same process we have to do in production, the table has 329GB
GLPCA approx.
This table is archived run now do the reorganization is required to
restore the real space in the table.
I need to run this reorganization with the best option from Sete to avoid
the high execution time of 15 hours in quality, because on average
production would be 35 hours in such execution to this table and not so
far achieved the best way to try to reduce the execution time for this
process of reorganization.
Thanks for your attention, I look forward to your comments
RegardsHi,
Here is a simple execution of an online table reorganization:
-- Check table can be redefined
EXEC Dbms_Redefinition.Can_Redef_Table('SCOTT', 'EMPLOYEES');
-- Create new table with CTAS
CREATE TABLE scott.employees2
TABLESPACE tools AS
SELECT empno, first_name, salary as sal
FROM employees WHERE 1=2;
-- Start Redefinition
EXEC Dbms_Redefinition.Start_Redef_Table( -
'SCOTT', -
'EMPLOYEES', -
'EMPLOYEES2', -
'EMPNO EMPNO, FIRST_NAME FIRST_NAME, SALARY*1.10 SAL);
-- Optionally synchronize new table with interim data
EXEC dbms_redefinition.sync_interim_table( -
'SCOTT', 'EMPLOYEES', 'EMPLOYEES2');
-- Add new keys, FKs and triggers
ALTER TABLE employees2 ADD
(CONSTRAINT emp_pk2 PRIMARY KEY (empno)
USING INDEX
TABLESPACE indx);
-- Complete redefinition
EXEC Dbms_Redefinition.Finish_Redef_Table( -
'SCOTT', 'EMPLOYEES', 'EMPLOYEES2');
-- Remove original table which now has the name of the new table
DROP TABLE employees2;
Regards,
Venkata S Pagolu
Edited by: Venkata Pagolu on Feb 17, 2012 1:48 PM -
Steps for table level reorganisation
Dear Friends.
We are going for Archiving on big tables like EDI40 table.
So I have decided to regain space after archiving by using table level reorg is it ok??
can you please suggest necessary steps and prerequisites.
Thanks in advance.
Regards
JIggiDear All,
I have done following steps:--
Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.
C:\Documents and Settings\wiqadm.WSECCQA>brtools
BR0651I BRTOOLS 7.00 (24)
BR0280I BRTOOLS time stamp: 2009-04-01 15.14.21
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:
3
BR0280I BRTOOLS time stamp: 2009-04-01 15.14.25
BR0663I Your choice: '3'
BR0280I BRTOOLS time stamp: 2009-04-01 15.14.25
BR0656I Choice menu 7 - please make a selection
Database segment management
1 = Reorganize tables
2 - Rebuild indexes
3 - Export tables
4 - Import tables
5 - Alter tables
6 - Alter indexes
7 - Additional segment 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: 2009-04-01 15.14.28
BR0663I Your choice: '1'
BR0280I BRTOOLS time stamp: 2009-04-01 15.14.28
BR0657I Input menu 91 - please check/enter input values
BRSPACE options for reorganization of tables
1 - BRSPACE profile (profile) ...... [initWIQ.sap]
2 - Database user/password (user) .. [/]
3 ~ Reorganization action (action) . []
4 ~ Tablespace names (tablespace) .. []
5 ~ Table owner (owner) ............ []
6 ~ Table names (table) ............ []
7 - Confirmation mode (confirm) .... [yes]
8 - Extended output (output) ....... [no]
9 - Scrolling line count (scroll) .. [20]
10 - Message language (language) .... [E]
11 - BRSPACE command line (command) . [-p initWIQ.sap -s 20 -l E -f tbreorg]
Standard keys: c - cont, b - back, s - stop, r - refr, h - help
BR0662I Enter your choice:
6
BR0280I BRTOOLS time stamp: 2009-04-01 15.14.38
BR0663I Your choice: '6'
BR0280I BRTOOLS time stamp: 2009-04-01 15.14.38
BR0681I Enter string value for "table" []:
BDCP
BR0280I BRTOOLS time stamp: 2009-04-01 15.14.41
BR0683I New value for "table": 'BDCP'
BR0280I BRTOOLS time stamp: 2009-04-01 15.14.41
BR0657I Input menu 91 - please check/enter input values
BRSPACE options for reorganization of tables
1 - BRSPACE profile (profile) ...... [initWIQ.sap]
2 - Database user/password (user) .. [/]
3 ~ Reorganization action (action) . []
4 ~ Tablespace names (tablespace) .. []
5 ~ Table owner (owner) ............ []
6 ~ Table names (table) ............ [BDCP]
7 - Confirmation mode (confirm) .... [yes]
8 - Extended output (output) ....... [no]
9 - Scrolling line count (scroll) .. [20]
10 - Message language (language) .... [E]
11 - BRSPACE command line (command) . [-p initWIQ.sap -s 20 -l E -f tbreorg -t "
BDCP"]
Standard keys: c - cont, b - back, s - stop, r - refr, h - help
BR0662I Enter your choice:
c
BR0280I BRTOOLS time stamp: 2009-04-01 15.14.45
BR0663I Your choice: 'c'
BR0259I Program execution will be continued...
BR0291I BRSPACE will be started with options '-p initWIQ.sap -s 20 -l E -f tbreo
rg -t "BDCP"'
BR0280I BRTOOLS time stamp: 2009-04-01 15.14.45
BR0670I Enter 'c[ont]' to continue, 'b[ack]' to go back, 's[top]' to abort:
c
BR0280I BRTOOLS time stamp: 2009-04-01 15.14.46
BR0257I Your reply: 'c'
BR0259I Program execution will be continued...
BR1001I BRSPACE 7.00 (24)
BR1002I Start of BRSPACE processing: seagjxpe.tbr 2009-04-01 15.14.46
BR0484I BRSPACE log file: F:\oracle\WIQ\sapreorg\seagjxpe.tbr
BR0280I BRSPACE time stamp: 2009-04-01 15.14.48
BR1009I Name of database instance: WIQ
BR1010I BRSPACE action ID: seagjxpe
BR1011I BRSPACE function ID: tbr
BR1012I BRSPACE function: tbreorg
BR0280I BRSPACE time stamp: 2009-04-01 15.14.52
BR0657I Input menu 353 - please check/enter input values
Options for reorganization of tables: SAPSR3.BDCP (degree 1)
1 ~ New destination tablespace (newts) ..... []
2 ~ Separate index tablespace (indts) ...... []
3 - Parallel threads (parallel) ............ [1]
4 ~ Table/index parallel degree (degree) ... []
5 - Create DDL statements (ddl) ............ [yes]
6 ~ Initial extent size category (initial) . []
7 ~ Sort by fields of index (sortind) ...... []
Standard keys: c - cont, b - back, s - stop, r - refr, h - help
BR0662I Enter your choice:
c
BR0280I BRSPACE time stamp: 2009-04-01 15.14.55
BR0663I Your choice: 'c'
BR0259I Program execution will be continued...
BR0280I BRSPACE time stamp: 2009-04-01 15.14.55
BR1108I Checking tables for reorganization...
BR0280I BRSPACE time stamp: 2009-04-01 15.14.56
BR1112I Number of tables selected/skipped for reorganization: 1/0
BR0280I BRSPACE time stamp: 2009-04-01 15.14.56
BR0370I Directory F:\oracle\WIQ\sapreorg\seagjxpe created
BR0280I BRSPACE time stamp: 2009-04-01 15.14.56
BR1101I Starting online table reorganization...
BR0280I BRSPACE time stamp: 2009-04-01 15.14.56
BR1124I Starting reorganization of table SAPSR3.BDCP ...
BR0280I BRSPACE time stamp: 2009-04-01 15.17.24
BR1105I Table SAPSR3.BDCP reorganized successfully
BR0280I BRSPACE time stamp: 2009-04-01 15.17.24
BR1141I 1 of 1 table reorganized - 2152767 of 2152767 rows processed
BR0204I Percentage done: 100.00%, estimated end time: 15:17
BR0001I **************************************************
BR0280I BRSPACE time stamp: 2009-04-01 15.17.24
BR1102I Number of tables reorganized successfully: 1
BR0280I BRSPACE time stamp: 2009-04-01 15.17.24
BR0670I Enter 'c[ont]' to continue, 'b[ack]' to go back, 's[top]' to abort:
c
BR0280I BRSPACE time stamp: 2009-04-01 15.18.05
BR0257I Your reply: 'c'
BR0259I Program execution will be continued...
BR0280I BRSPACE time stamp: 2009-04-01 15.18.05
BR1022I Number of tables processed: 1
BR1003I BRSPACE function 'tbreorg' completed
BR1008I End of BRSPACE processing: seagjxpe.tbr 2009-04-01 15.18.05
BR0280I BRSPACE time stamp: 2009-04-01 15.18.05
BR1005I BRSPACE completed successfully
BR0292I Execution of BRSPACE finished with return code 0
BR0280I BRTOOLS time stamp: 2009-04-01 15.18.05
BR0256I Enter 'c[ont]' to continue, 's[top]' to cancel BRTOOLS:
c
BR0280I BRTOOLS time stamp: 2009-04-01 15.18.10
BR0257I Your reply: 'c'
BR0259I Program execution will be continued...
BR0280I BRTOOLS time stamp: 2009-04-01 15.18.10
BR0656I Choice menu 7 - please make a selection
Database segment management
1 + Reorganize tables
2 - Rebuild indexes
3 - Export tables
4 - Import tables
5 - Alter tables
6 - Alter indexes
7 - Additional segment functions
8 - Reset program status
Standard keys: c - cont, b - back, s - stop, r - refr, h - help
BR0662I Enter your choice:
b
BR0280I BRTOOLS time stamp: 2009-04-01 15.18.13
BR0663I Your choice: 'b'
BR0673I Going back to the previous menu...
BR0280I BRTOOLS time stamp: 2009-04-01 15.18.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:
9
BR0280I BRTOOLS time stamp: 2009-04-01 15.18.15
BR0663I Your choice: '9'
BR0280I BRTOOLS time stamp: 2009-04-01 15.18.15
BR0680I Do you really want to exit BRTOOLS? Enter y[es]/n[o]:
y
BR0280I BRTOOLS time stamp: 2009-04-01 15.18.17
BR0257I Your reply: 'y'
BR0280I BRTOOLS time stamp: 2009-04-01 15.18.17
BR0652I BRTOOLS completed successfully
And I compared space before reorg and after reorg.
I got 5 Gb space back .
I hv done the whole procedure on BDCP table on WIQ.
Shall i do the same procedure on production server.
Thanks in advance.
JIggi -
How to convert bytes to GB inside of a text file
I'm using a PS script to automate WSUS cleanup and then output the results to a text file which is then emailed to me.
The output for Diskspace Freed is displayed in bytes, I would like to convert this to GB, but I am having trouble getting this to work.
Here is what I was attempting to work with, but it is not working properly (the 2nd line).
Get-WsusServer | Invoke-WsusServerCleanup -CleanupObsoleteUpdates -CleanupUnneededContentFiles | Out-File "C:\Users\USER1\Downloads\WSUS Cleanup Log\cleanup $(get-date -f MM-dd-yy).txt"
#(Get-Content "C:\Users\USER1\Downloads\WSUS Cleanup Log\cleanup $(get-date -f MM-dd-yy).txt") | ForEach-Object {$_."diskspace free" / 1MB} | Set-Content "C:\Users\USER1\Downloads\WSUS Cleanup Log\cleanup $(get-date -f MM-dd-yy).txt""C:\WSUS PS Script\cleanup $(get-date -f MM-dd-yy).txt"
Send-MailMessage -to [email protected] -Subject "WSUS Cleanup" -Attachments "C:\Users\USER1\Downloads\WSUS Cleanup Log\cleanup $(get-date -f MM-dd-yy).txt" -SmtpServer 192.X.X.X -from [email protected]Hi Granite,
I've got to guess here - don't have a handy 2012R2 Wsus Server at hand and I'm extrapolating from the Technet Library's documentation example output for Invoke-WsusServerCleanup - but this is what I came up with:
$File = "C:\Users\USER1\Downloads\WSUS Cleanup Log\cleanup $(get-date -f MM-dd-yy).txt"
$Script = {
if ($_ -match "diskspace free")
$Bytes = ($_.Trim().Split(":") | Select -Last 1).Trim()
$String = ($_.Trim().Split(":") | Select -First 1).Trim() + ": "
$String += "{0:n3}" -f ($Bytes / 1GB)
$String += "GB"
$String
else { $_ }
Get-WsusServer | Invoke-WsusServerCleanup -CleanupObsoleteUpdates -CleanupUnneededContentFiles | ForEach-Object $script | Out-File $File
Send-MailMessage -to [email protected] -Subject "WSUS Cleanup" -Attachments $File -SmtpServer 192.X.X.X -from [email protected]
If this doesn't work out for you, please post the actual output of the Cleanup Command.
Cheers,
Fred
There's no place like 127.0.0.1
Thanks for the response, this is exactly what I was looking for!
The script ran with no errors. The output does show as GB, however since the script was already ran today there value is currently 0. I will test this again in a couple of days.
Maybe you are looking for
-
Hello, When I try to open Lightroom, I am getting a message that reads "Lightroom encountered an error when reading from its preview cache and needs to quit." It states it will attempt to fix the problem next time it launches. I haven't been able t
-
Why are apps taking so long to download/update in the app store?
Applications i am trying to download or update in the app store on my macbook air (OS X Yosemite 10.10.1) take days/weeks to load at least half on average. Why is this happening and how can i speed the downloads/updates up, it's frustrating.
-
Hi Everyone, I have a small query Iam sure someone must have done it. Is it possible to attach quickinfo in ALV list. In my assignment I have to show the material description for a material number as quickinfo. Please let me know which parameter we n
-
Arch 2.6.36 not automatically mounting USB devices
Hi, I am new to Arch but up to now i really like it and i am using this for my home server. Now i use 2 external USB 1TB disks for backup which i auto mount using /etc/fstab. The problem is that it is not auto mounting the volumes. /etc/fstab #Extern
-
Can the AirPort Extreme Base Station be plug-in to the power forever?
Hi, sorry for my english but this is my question: Can the AirPort Extreme Base Station be plug-in to the power (electricity) forever? I mean, I don't have to un-plug the Base Station sometimes? Thanks Alvaro