Top space consuming Tables (which considers LOBs and Partitions )
11.2.0.3/Solaris
When u run a query like below which lists the top space consuming segments , It will only list segments for LOBs and Partitions of a table separately..
select segment_name, bytes/1024/1024/1024 gb, segment_type from dba_segments where owner = 'MCS_WM_USR' order by gb desc;
SEGMENT_NAME GB SEGMENT_TYPE
WMERROR 14.4287109 TABLE
SYS_LOB0000737548C00014$$ 9.93554687 LOBSEGMENT
WMSERVICE 6.00488281 TABLE
WMSESSION 5.11621093 TABLE
SYS_LOB0000737571C00017$$ 4.61914062 LOBSEGMENT
WMCUSTOMPROCESSDATA 2.8046875 TABLE
SYS_C00511081 1.25097656 INDEX
IDX_SVC_COM1 0.95501708 INDEX
IDX_SESS_AUDTM 0.92291259 INDEX
.Does anyone have a query which will list the actual table sizes which is calculated after summing up all LOBs and Partitions in that table ?
For example;
If table EMP has 3 LOB columns, in user_segments , it will appear something like
SEGMENT_NAME GB SEGMENT_TYPE
EMP 3 TABLE
SYS_LOB0000737548C00014$$ 7 LOBSEGMENT
SYS_LOB0000451978C00014$$ 2 LOBSEGMENT
SYS_LOB0000875128C00014$$ 5 LOBSEGMENTThe total size of EMP table is 3 + 7 + 2 + 5 = 17 GB
I am looking for query which will do a lookup in DBA_LOBS and DBA_PARTITIONS and add up space for each table.
So, my required output will looks like
TABLE_NAME Size
EMP 17g
DEPT 1g
WMERRORS 104g
.
Hi Garry,
the segment_name in DBA_SEGMENTS can be used to group all table partitions of a partitioned table. So we only have to join DBA_LOBS to DBA_SEGMENTS and group the result rows:
with
basedata as (
select owner
, segment_name
, segment_type
, round(sum(bytes)/1024/1024/1024) gb
, sum(bytes) bytes
, count(*) segment_count
from dba_segments s
group by owner, segment_name, segment_type
lobs as (
select owner
, table_name
, segment_name
from dba_lobs
all_segs as (
select coalesce(lobs.table_name, basedata.segment_name) table_name
, basedata.*
from basedata
left outer join
lobs
on (basedata.segment_name = lobs.segment_name
and basedata.owner = lobs.owner)
select table_name
, sum(bytes) bytes
, sum(gb) gb
from all_segs
group by table_name
having sum(gb) > .1;Regards
Martin
Similar Messages
-
Table which Stores Program, and its source code
Dear All,
Can you please let me know the tables which stores program names,its variant, soruce code and related information.
Appreciate your early helpHi,
check this FM : SVRS_GET_REPS_FROM_OBJECT. you can get all the information about programs.
code sample
DATA :repos_tab_old LIKE abaptxt255 OCCURS 0 WITH HEADER LINE,
trdir_tab_old LIKE trdir OCCURS 0 WITH HEADER LINE.
DATA : object_name LIKE vrsd-objname,
object_type LIKE vrsd-objtype,
versno LIKE vrsd-versno,
destination LIKE rfcdes-rfcdest.
CALL FUNCTION 'SVRS_GET_REPS_FROM_OBJECT'
EXPORTING
object_name = object_name
object_type = object_type
versno = versno
DESTINATION = ' '
TABLES
repos_tab = repos_tab_old
trdir_tab = trdir_tab_old
EXCEPTIONS
no_version = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Laxman -
Issue with dynamic table which has RichCommandLink and RichSparkChart
I’m running into an issue when I create a dynamic table with columns of type RichCommandLink and RichSparkChart.
If my table has both of these types of columns, then the RichCommandLink column behaves like a NOP, meaning clicking on it does not cause the link to take effect and does not navigate to the designated page.
If I remove the RichSparkChart column, then the RichCommandLink column behaves properly.
Is there something I’m supposed to be aware of when creating these types of columns? Is there a known problem with RichSparkChart column, like some exception thrown which halts proper rendering of the rest of the columns?
Thanks,
Ania.Turned out that the problem was with ids which I was dynamically assigning. There was an overlap meaning two columns/elements got the same id. Not the manifestation or behavior I would expect as a result, but once I fixed that, having these two columns side by side works well.
-
Looking for a table which contains Datasource and the name of DSO
Hello,
I need to extract a list with the datasource + Name System + DSO. If anyone know a BW table.
Thanks in advance.
Regards,
Santos.Hi Santos,
Please check the table "RSTRAN" -- directory of transformations in your system.
If you have between data loading between DS and DSO, then you should have active data transformations.
In this table, select type of source as data source and type target as DSO and execute.
You will get list of DS and DSO which has active transformations.
If you want details about each DS and DSO then you can check the below tables
RSDODSO --- Directory of all ODS Objects
RSOLTPSOURCE --- Replication Table for DataSources in BW
Regards,
Venkatesh -
<blockquote>Locking duplicate thread.<br>
Please continue here: [[/questions/866419]]</blockquote>
This occurred when I updated my firebox to edition 5.Press the alt key next to the spacebar. Do you see it now? If so, click View -> Toolbars" and check the Menu bar. See [[Menu bar is missing]] for more information.
-
Tables for development class and Message Class
Hi All,
In which table is Message Class and Development class stored.
Thanks,
SantoshHi All,
I am closing this thread..I was looking for a single table which does this and it is TADIR with object = MSAG
Thanks,
Santosh
Edited by: Santosh Kumar KezkhepatMelathil on Aug 29, 2008 1:32 PM -
Tables Relating Support Msg and its partners along with the subject Profile
Dear Friends,
Every support Msg is uniquely identified by ticket nos...
Every support msg thus has Priorities, partners, Short text msg, long txt msg, subject associatated with it...
Please open a ticket using crmd_order..
I want to have all the information about the ticket like who are the partners, what is the subject.
I know of two tables :
crmd_orderadm_H and crmd_activity_h( for determining priority based on the Guid of the ticket).
But i am looking for the table which associates Subject and partners ( like Sold to party, Msg processor, Support team ) with either the ticket nos or the GUID of the ticket.
Any contributions to this thread woiuld be rewarded..
Revert back if u have ny information about it...Hi.
Got a few more. Maybe this helps.
CRMV_LINKPARTNER (guid_hi, partner function)
CRMC_PARTNER_FT (partner function texts)
CRMD_ACTIVITY_H
SCPRIO (priority long text)
CRMD_SRV_SUBJECT (catalog, codes, ...)
QPCT
DNOD_NOTIF_S (support message, component)
DSWPCSNCOMPTXT (component long texts)
/cheers -
How to select data from AZure table storage without row key and partition key
Hi
I need to select a data from azure table storage without rowkey and partition key. how in azure storage emulator click query it display all data from that table.
thanks
rajeshHi rajesh,
It seems that you didn't click query data using storage emulator. But I recommend you could use the azure server explore in your VS to view your data and query data. Please see this document (http://msdn.microsoft.com/en-us/library/azure/ff683677.aspx).
And base on my experience, you may need input the command on Azure storage emulator, such as this page(http://msdn.microsoft.com/en-us/library/azure/gg433005.aspx).
Regards,
Will
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
T-SQL for finding the unused tables which are consuming maximum disk space.
Hi,
Need help in writing a T-SQL that can return me the unused or least used tables in a database and are consuming a lot of disk space.
ThanksRefer
http://gallery.technet.microsoft.com/SQL-List-All-Tables-Space-baf0bbf9
create table #TableSize (
Name varchar(255),
[rows] int,
reserved varchar(255),
data varchar(255),
index_size varchar(255),
unused varchar(255))
create table #ConvertedSizes (
Name varchar(255),
[rows] int,
reservedKb int,
dataKb int,
reservedIndexSize int,
reservedUnused int)
EXEC sp_MSforeachtable @command1="insert into #TableSize
EXEC sp_spaceused '?'"
insert into #ConvertedSizes (Name, [rows], reservedKb, dataKb, reservedIndexSize, reservedUnused)
select name, [rows],
SUBSTRING(reserved, 0, LEN(reserved)-2),
SUBSTRING(data, 0, LEN(data)-2),
SUBSTRING(index_size, 0, LEN(index_size)-2),
SUBSTRING(unused, 0, LEN(unused)-2)
from #TableSize
select * from #ConvertedSizes
order by reservedKb desc
drop table #TableSize
drop table #ConvertedSizes
--Prashanth -
R3load export of table REPOSRC with lob col - error ora-1555 and ora-22924
Hello,
i have tried to export data from our production system for system copy and then upgrade test. while i export the R3load job has reported error in table REPOSRC, which has lob column DATA. i have apsted below the conversation in which i have requested SAP to help and they said it comes under consulting support. this problem is in 2 rows of the table.
but i would like to know if i delete these 2 rows and then copy from our development system to production system at oracle level, will there be any problem with upgrade or operation of these prorgams and will it have any license complications if i do it.
Regards
Ramakrishna Reddy
__________________________ SAP SUPPORT COnveration_____________________________________________________
Hello,
we have are performing Data Export for System copy of our Production
system, during the export, R3load Job gave error as
R3LOAD Log----
Compiled Aug 16 2008 04:47:59
/sapmnt/DB1/exe/R3load -datacodepage 1100 -
e /dataexport/syscopy/SAPSSEXC.cmd -l /dataexport/syscopy/SAPSSEXC.log -stop_on_error
(DB) INFO: connected to DB
(DB) INFO: DbSlControl(DBSL_CMD_NLS_CHARACTERSET_GET): WE8DEC
(DB) INFO: Export without hintfile
(NT) Error: TPRI_PAR: normal NameTab from 20090828184449 younger than
alternate NameTab from 20030211191957!
(SYSLOG) INFO: k CQF :
TPRI_PAR&20030211191957&20090828184449& rscpgdio 47
(CNV) WARNING: conversion from 8600 to 1100 not possible
(GSI) INFO: dbname = "DB120050205010209
(GSI) INFO: vname = "ORACLE "
(GSI) INFO: hostname
= "dbttsap "
(GSI) INFO: sysname = "AIX"
(GSI) INFO: nodename = "dbttsap"
(GSI) INFO: release = "2"
(GSI) INFO: version = "5"
(GSI) INFO: machine = "00C8793E4C00"
(GSI) INFO: instno = "0020111547"
(DBC) Info: No commits during lob export
DbSl Trace: OCI-call 'OCILobRead' failed: rc = 1555
DbSl Trace: ORA-1555 occurred when reading from a LOB
(EXP) ERROR: DbSlLobGetPiece failed
rc = 99, table "REPOSRC"
(SQL error 1555)
error message returned by DbSl:
ORA-01555: snapshot too old: rollback segment number with name "" too
small
ORA-22924: snapshot too old
(DB) INFO: disconnected from DB
/sapmnt/DB1/exe/R3load: job finished with 1 error(s)
/sapmnt/DB1/exe/R3load: END OF LOG: 20100816104734
END of R3LOAD Log----
then as per the note 500340, i have chnaged the pctversion of table
REPOSRC of lob column DATA to 30, but i get the error still,
i have added more space to PSAPUNDO and PSAPTEMP also, still the same
error.
the i have run the export as
exp SAPDB1/sap file=REPOSRC.dmp log=REPOSRC.log tables=REPOSRC
exp log----
dbttsap:oradb1 5> exp SAPDB1/sap file=REPOSRC.dmp log=REPOSRC.log
tables=REPOSRC
Export: Release 9.2.0.8.0 - Production on Mon Aug 16 13:40:27 2010
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Connected to: Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit
Production
With the Partitioning option
JServer Release 9.2.0.8.0 - Production
Export done in WE8DEC character set and UTF8 NCHAR character set
About to export specified tables via Conventional Path ...
. . exporting table REPOSRC
EXP-00056: ORACLE error 1555 encountered
ORA-01555: snapshot too old: rollback segment number with name "" too
small
ORA-22924: snapshot too old
Export terminated successfully with warnings.
SQL> select table_name, segment_name, cache, nvl(to_char
(pctversion),'NULL') pctversion, nvl(to_char(retention),'NULL')
retention from dba_lobs where
table_name = 'REPOSRC';
TABLE_NAME | SEGMENT_NAME |CACHE | PCTVERSION | RETENTION
REPOSRC SYS_LOB0000014507C00034$$ NO 30 21600
please help to solve this problem.
Regards
Ramakrishna Reddy
Dear customer,
Thank you very much for contacting us at SAP global support.
Regarding your issue would you please attach your ORACLE alert log and
trace file to this message?
Thanks and regards.
Hello,
Thanks for helping,
i attached the alert log file. i have gone through is, but i could
not find the corresponding Ora-01555 for table REPOSRC.
Regards
Ramakrishna Reddy
+66 85835-4272
Dear customer,
I have found some previous issues with the similar symptom as your
system. I think this symptom is described in note 983230.
As you can see this symptom is mainly caused by ORACLE bug 5212539 and
it should be fixed at 9.2.0.8 which is just your version. But although
5212539 is implemented, only the occurrence of new corruptions will be
avoided, the already existing ones will stay in the system regardless of the patch.
The reason why metalink 452341.1 was created is bug 5212539, since this
is the most common software caused lob corruption in recent times.
Basically any system that was running without a patch for bug 5212539 at some time in the past could be potentially affected by the problem.
In order to be sure about bug 5212539 can you please verify whether the
affected lob really is a NOCACHE lob? You can do this as described in
mentioned note #983230. If yes, then there are basically only two
options left:
-> You apply a backup to the system that does not contain these
corruptions.
-> In case a good backup is not available, it would be possible to
rebuild the table including the lob segment with possible data loss . Since this is beyond the scope of support, this would have to be
done via remote consulting.
Any further question, please contact us freely.
Thanks and regards.
Hello,
Thanks for the Help and support,
i have gone through the note 983230 and metalink 452341.1.
and i have ran the script and found that there are 2 rows corrupted in
the table REPOSRC. these rows belong to Standard SAP programs
MABADRFENTRIES & SAPFGARC.
and to reconfirm i have tried to display them in our development system
and production system. the development systems shows the src code in
Se38 but in production system it goes to short dump DBIF_REPO_SQL_ERROR.
so is it possible to delete these 2 rows and update ourselves from our
development system at oracle level. will it have any impact on SAP
operation or upgrade in future.
Regards
Ramakrishna ReddyHello, we have solved the problem.
To help someone with the same error, what we have done is:
1.- wait until all the processes has finished and the export is stopped.
2.- startup SAP
3.- SE14 and look up the tables. Crete the tables in the database.
4.- stop SAP
5.- Retry the export (if you did all the steps with sapinst running but the dialogue window in the screen) or begin the sapinst again with the option: "continue with the old options".
Regards to all. -
how to show employee names in descending order but 3rd row is fixed and always top on the table ?
for example employee names is A,B,C, D, E
and output is C,E,D,B,ASince you are posting in the design forum, the short answer is - you don't. Rows in a table have no inherent order that you can rely on and the "position" of rows is a visual characteristic that should be implemented by the application that displays
this information or by the query that is used to generate the resultset.
So the next question is how one accomplishes this particular order within a select statement. That is a tsql question which, for future reference, is best posted to the tsql forum. In addition, many of the questions or issues that you will face
have been discussed in the forums - often many, many times. The first thing you should do when faced with an issue is to simply search the forums and leverage the the knowledge that has already been discussed. In doing so you are quite likely to
see suggestions or related issues that you should consider in your search for a solution.
Now, to answer the question - you need to formulate a order by clause that forces the rows to be sorted in the manner you desire. Effectively you have 2 levels of sorting. The first level divides your rows into 2 groups. Group 1 consists
of rows where name = E and Group 2 is everything else. Following that you then need to sort the rows in each group by name in descending order. Something like:
order by case name when E then 1 else 2 end, name desc -
How to find top 10 SQL statments which are consuming more cpu time.
hi all,
Is there any command or script to monitor the top 10 sql statments which are consuming more cpu time.
I know by using AWR REPORT we can find it, i want the command or script to find the top cpu utilization sql statments.
Regards
Subhash.Subhash,
A quick and dirty Google search could have get you started with the following:
Thread: how to get top CPU consuming sql oracle 10g
Re: how to get top CPU consuming sql oracle 10g
Oracle SQL top sessions
http://www.dba-oracle.com/oracle10g_tuning/t_sql_top_sessions.htm
"How to Find top 10 expensive sql's", version 9.2.0
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:73325450402303
HTH,
Thierry -
From which table check 'cost element' and its corresponding GL account?
Hi,
May i know from which could i check the cost element field and its corresponding GL account field??
Questions:
"the getting cost element should check the corresponding GL account, but I canu2019t find the
corresponding table which include these two fields. So, if you know the table in which cost element can check the corresponding GL account, please tell me ."
Is below way correct:
From table CSKA, i could get the chart of accounts related with the cost elements.
Then from table SKA1, i could get the GL account according to chart of accounts field.
Then i got an relation between Cost element with GL account??
Thanks!!Hi
Could not locate the table, but could find that, if you come to transaction KA02, click on Environment - Display General Ledger account - In Chart of Account/ In Company Code option, then you can display the GL account for individual cost elements.
regards
Parag Bhargava -
I need help. I had an apple account on my old Lap Top to which my iPad and iPhone were synced ? I recently changed my lap top. My problem is the new lap top won't accept my apple I D it asked me to sing up for a new one which I did. After doing this I tried to sync my iPad and phone to the new lap top which I was unable to do as they didn't recognise my new ID. HELP!!!!!!
cathorio wrote:
I recently changed my lap top. My problem is the new lap top won't accept my apple I D it asked me to sing up for a new one which I did.
I am puzzled by this. The laptop doesn't need the Apple ID - but iTunes does. I could be missing something but ....
Why would you not be able to use your existing Apple ID and iTunes account on a new laptop? If you authorized the computer - you should be able to use your existing account - unless you already had 5 computers authorized with the existing ID - and that was why iTunes would not accept the ID. However, I'm sure that you would have received a popup message from iTunes telling you that you had reached the limit.
I just received a new MBP and my daughter did as well. My entire family shares an Apple ID and we had no issues at all with my Apple ID and iTunes on our new computers and I did not have to sign up for a new account. Did you even try the old ID? -
my nephew lend me his iPad and I have wi-fi service @ home, I get the wi-fi icon on top of iPad, it's activated but when I open Safari to go online it ask me for the password which I have and type in. It tells me I have typed incorrect pw. What's wrong? I even called my internet server and they cant help! They're saying my nephew must have a block. I asked my nephew and he said "what r they talking about, I have no block" Can anyone help ME PLZ.
When you go to Settings > WiFi and see your network name does it have a padlock icon to the right of the network name? If so it is a secured network with a password.
How did you connect to your network from the iPad? From Settings > Wifi? Was a network password requested? Was it accepted?
If you touch the ">" to the right of your network name what do you see for IP Address, Subnet Mask, Router, and DNS?
Maybe you are looking for
-
Super Drive won't mount any commercial DVD.
Since I use an eSata cage to back up the majority of my stuff, I can't say how long this has been going on. I believe it happened last week after I did a software update.My superdrive (PIONEER DVD-RW DVR-117D) will not mount or read any commercial DV
-
When I try to open a online pdf form, I get a error message to close the reader and try it again. Sometimes, the message does not come but what I see is just a BLACK screen in Mozilla.
-
Java and windows NT permission
hi, i work in the IT department of medium business and we have recently created a database of assets in teh company. i plan to develope a small application that can be used to track the movements of assets through the company. i would like to have th
-
Problem with Legend Representation.
Dear All, any inputs on this issue .... We have a Pie Chart which represents the data in categories and a LEGEND for understanding the ranges for categories . We have provided navigation block for further data analysis. Quoting an example which gives
-
How to synchronize Identity System Roles with SAP Roles?
Hello, experts! Could you give me an advice? I'm trying to perform role syncronization between SAP R/3 and Identity Manager, but the default task definition (Resource Role Synchronizer) can't find a SAP resource (for example method getResourcesSuppor