Getting the size of all databases in a grid?
Hi,
We currently using Oracle Enterprise Manager 10g to look after a large number of databases. I have been asked to gather information about them all including their current size.
Is anyone able to advise me of the best way to do this? I tried goggling and searching the forum but have not managed to find anything yet.
I have tried creating a 'Oracle Database Space Usage' report within enterprise manager to give me the database size. I can get the allocated, used and allocated free space for a single database but not all of them in one report. I have also been told that I should be able to get this information from the sysman schema. I have found some sites describing how to get other info from here but not the database size.
I know this is probably a fairly basic question but I am still very new to enterprise manager. Any advice or pointers to relevant docs that I can read would be greatly appreciated.
Thanks,
Andrew.
You could (at least in EM 11g) create a database group or groups and use the report Oracle Database Space Usage (Group)
Or create your own report like Oracle Database Current Space Usage, description "Displays current space usage details for the tablespaces in all Oracle Database"
General:
Catagory - storage
Subcatagory - Oracle Database Space Usage
Targets:
Use the spicified target
Elements
Type - Database table from SQL
Set Parameters
Stattement:
select target_name DB_NAME,host_name Host,sum(trunc(tablespace_size/1024/1024/1024,2)) size_GB_Bruto,
sum(trunc(tablespace_used_size/1024/1024/1024,2)) size_GB_Netto,
(trunc((sum(tablespace_size) - sum(tablespace_used_size))/1024/1024/1024,1)) GB_Verschil
from MGMT$DB_TABLESPACES
group by host_name,target_name
order by host_name,target_name
Statement Type: SQL
Rows to display in Table: 200
Succes,
Eric
Similar Messages
-
How to get the size of all InfoCubes and DSO's?
Hi all,
My client wants a complete list of all InfoCubes and DSO's in terms of size (no records but KB). This list of the Cubes / DSO's gives us a picture of the used storage per Area and can be charged. Iu2019ve seen some threats and looked into the possibilities of ST14 and DB02. ST14 provides the ideal list but with a restriction for the top 30 InfoCubes and the top 30 DSO's. Does anyone know how to get such a list for all InfoCubes and DSO's?
Thnx in advance,
Henk.Hello Henk,
while I am searching for some performance problems in our BI, I tried to look through the new DB02 of BI 7.0. And there is a function which helps a lot creating lists of Cube, DSOs and so on:
Start DB02
On the left side find SPACE -> Additional Functions -> BW Analysis
A Doubleclick will give you a broad survey of the current memory disposition regarding BI/BW objects.
In the BW Area "Cubes & related objects" you can find Infocube E- and F-Facttable. Depending on the Compressed state of your cubes you will find more data in E or F. Just doubleclick on one of these Entries. In my environment currently F-Tables are more effective.
You will then get a list of all Infocubes with size.
You will have to this for E and F Tables and some up over the Infocubes. But, because this will show only the Cubes and not the partitions of the cube it will be much easier to handle than DB02OLD.
Perhaps this helps, because you did not mention your BW/BI release.
Kind regards,
Jürgen -
How can I get the size of all lines or the last line number in a DB?
I want to display a certain number of lines from a DB.
But before I fetch them out, I must know how many lines of this DB has.
I donnot know if there is some methods have this function. I know the last() method can move the cursor to the last line, but some DB cannot support this function.
Could someone know the answer or some examples about displaying data in a jsp?
Thanks a lot.To get the number of rows in a ResultSet, loop over the result set with while(res.next()). Read each row into an object. Add each object into a, say, LinkedList. At the end, you will have the rows nicely converted to objects (which you probably should do anyway), and list.size() will give the number of objects.
There are other ways to get the number of objects, but list.size() is the easy and reliable way. If you don't need the rows converted to objects ...why did you select them in the first place?
Tricks with last() and whatnot sort of work. They read the entire result set into memory. But you'll need to write the while(res.next()) loop anyway. No point in having the computer do the same thing twice. -
Report the size of all SharePoint Databases in a text file using PowerShell?
I am new to Powershell. please help me for following question with step by step process.
How to report the size of all SharePoint Databases in a text file using PowerShell?Hi Paul,
Here is the changed script, which will also include the size for the Config DB.
Please let me know if it worked:
#Get SharePoint Content database sizes
Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue
$date = Get-Date -Format "dd-MM-yyyy"
#Variables that you can change to fit your environment
$TXTFile = "D:\Reports\SPContentDatabase_$date.txt"
$SMTPServer = "yourmailserver"
$emailFrom = "[email protected]"
$emailTo = "[email protected]"
$subject = "Content & Config Database size reports"
$emailBody = "Daily/Weekly/Monthly report on Content & Config databases"
$webapps = Get-SPWebApplication
$configDB = Get-SPDatabase | ?{$_.Name -eq ((Get-SPFarm).Name)}
$ConfigDBSize = [Math]::Round(($configDB.disksizerequired/1GB),2)
Add-Content -Path $TXTFile -Value "Config Database size: $($ConfigDBSize)GB"
Add-Content -Path $TXTFile -Value ""
foreach($webapp in $webapps)
$ContentDatabases = $webapp.ContentDatabases
Add-Content -Path $TXTFile -Value "Content databases for $($webapp.url)"
foreach($ContentDatabase in $ContentDatabases)
$ContentDatabaseSize = [Math]::Round(($ContentDatabase.disksizerequired/1GB),2)
Add-Content -Path $TXTFile -Value "- $($ContentDatabase.Name): $($ContentDatabaseSize)GB"
if(!($SMTPServer) -OR !($emailFrom) -OR !($emailTo))
Write-Host "No e-mail being sent, if you do want to send an e-mail, please enter the values for the following variables: $SMTPServer, $emailFrom and $emailTo."
else
Send-MailMessage -SmtpServer $SMTPServer -From $emailFrom -To $emailTo -Subject $subject -Body $emailBody -Attachment $TXTFile
Nico Martens - MCTS, MCITP
SharePoint 2010 Infrastructure Consultant / Trainer -
Newbie ques : How to get the list of all tables in the database
Hi,
I'm very new to Oracle (using Oracle8i currently). I wanted to know if there is a way to get the list of all tables in the database. Like in mySQL you can use the command " show tables" to get the list of all the tables.
Any help will e greatly appreciated. Please "cc" any reply to [email protected] also.
thanks
DevenHi
Select table_name, owner from all_tables;
will give u all the tables in the database.
all_tables, dba_tables, user_tables
all_objects, dba_objects, dba_objects
there are many, more tables. login as system and query the tab and try to describe the tables.
Thanks
Malar -
Table to get the list of all tables in the database
hi,
please let me knwo the table where i can get the list of all tables in the databasehi,
please let me knwo the table where i can get the list
of all tables in the databaseHi Michael,
Will you EVER start reading some documentation?
I guess it's not far that many regulars won't reply to those kind of questions.
Believe me, reading doesn't hurt (well, at least, most of the times).
Rgds,
Guido -
How to get the value from a database without submitting a jsp page
I have a jsp which has a text box depending on the value entered I want to get the value from a database for other two fields with out submitting jsp page. I am using struts.
Thanks For any assistance provided.Alright,here is an example for you for the first case.
Present.jsp:
============
<html:html>
<head>
<title><html:message key="page.title"/></title>
</head>
<body>
<html:form action="ChangeEvent.do">
<html:hidden property="method"/>
<!-- Submitting the Form onKeyUp of EmpId field and trying to save the
state of the Form in the scope of session -->
Emp Id:<html:text property="empId" size="5" onkeyup="if(true){this.form.elements[0].value='populateDetails';this.form.submit();}"/>
Emp Name:<html:text property="empName" size="10" />
Email Address:<html:text property="email" size="10" />
<html:submit>Submit</html:submit>
</html:form>
</body>
</html:html>struts-config.xml:
==================
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
<struts-config>
<!-- Form bean which stores the properties of all the Form elements -->
<form-beans>
<form-bean name="employeeFormBean" type="org.apache.struts.action.DynaActionForm">
<form-property name="empId" type="java.lang.String"/>
<form-property name="empName" type="java.lang.String"/>
<form-property name="email" type="java.lang.String" />
</form-bean>
</form-bean>
<action-mappings>
<action path="/ChangeEvent" type="Test.GetChangeAction" name="employeeFormBean" scope="request" parameter="method">
<!-- On successful call of DB the Page has to be forwarded to the same page again by
uploading updated form bean values. -->
<forward name="success" path="/Present.jsp"></forward>
<forward name="failed" path="/error.jsp"></forward>
</action>
</action-mappings>
</struts-config>GetChangeAction.java:
=====================
public class GetChangeAction extends DispatchAction{
public ActionForward populateDetails(ActionMapping mapping,ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
DynaActionForm dForm = (DynaActionForm)form;
String empId = dForm.get("empId");
// calling Model / Db and then getting back Employee Details
EmployeeBean eb = ModelUtils.getDetails(empId);
// Updating form bean by updating values from the Model
dForm.set("empName".eb.getEmpName());
dForm.set("email".eb.getEmail());
return mapping.findForward("success");
}well to me this should work regardless to any browser but we need to make sure we put in our logic properly. -
How to find out the size of a database?
I'm not an oracle dba but a report developer. I'd like to find out the size of my database.
Is this possible using simple query?An oracle database consists of data files, redo log files, control files, temporary files. Whenever you say the size of the database this actually means the summation of these files.
select a.data_size+b.temp_size+c.redo_size+d.controlfile_size "total_size in MB"
from
( select sum(bytes)/1024/1024 data_size from dba_data_files ) a,
( select nvl(sum(bytes),0)/1024/1024 temp_size from dba_temp_files ) b,
( select sum(bytes)/1024/1024 redo_size from sys.v_$log ) c,
( select sum(BLOCK_SIZE*FILE_SIZE_BLKS)/1024/1024 controlfile_size from v$controlfile) d;
here
a is megabytes allocated to ALL datafiles
b is megabytes allocated to ALL TEMP files
c is megabytes allocated to ALL redo-logs
d is megabytes allocated to ALL control files
Nimish Garg
Software Developer
*(Oracle & ASP.NET)*
Indiamart Intermesh Limited, Noida
To Get Free Oracle & ASP.NET Code Snippets
Follow: http://nimishgarg.blogspot.com -
Getting the size of an internal frame?
Hi allm
I want to be able to get the size of an internal frame. I have set the size of the main JFrame to that of Windows by calling Toolkit.getScreenSize(); But i can't seem to find an equivalent for internal frames.
Basically I have two components in the internal frame that I want to have equal width. I was going to find out the size of the internal frame and then half it and applay a horizontal strut to each component.
If there is a better way of doing it i'm open to suggestions but any help at all is much appreciated
Thanks
Dylan
BorderLayout border = new BorderLayout();
content.setLayout(border);
Box left = Box.createVerticalBox();
left.add(Box.createHorizontalStrut(400));
JPanel Create = new JPanel();
Create.setBorder(new TitledBorder (new EtchedBorder(), "Create Database"));
left.add(Create);
Box right = Box.createVerticalBox();
right.add(Box.createHorizontalStrut(400));
JPanel Help = new JPanel();
Help.setBorder(new TitledBorder (new EtchedBorder(), "Help"));
right.add(Help);
content.add(left, BorderLayout.CENTER);
content.add(right, BorderLayout.CENTER);The situation is that I have a class that has about 80
instance fields of basic data types. But it was
getting overly complicated. As a number of these
fields related to year and day data I tried to
re-write with GregorianCalendar instead.
There are in the region of 45,000 instance of my clas
being held in an array, however when I tried to use my
modified class (with the Calendar fields replacing the
basic data types) I kept running into OutOfMemoryError
after about 25,000 instances were created. So I
figured that the GregorianCalendar class must be
eating up my memory. Was intrigued, but couldn't find
out how to calculate the size of my new class.
Hmmm, serialize it you say? Ok, I'll try that.ok don't do that ;)
ummm i was giving advice assuming (incorrectly i turns out) that you were trying to see how much space the serialized object would take up when written to disk or over a network etc.
this does not appear to be your problem.
so here are my new more informed suggestions.
1) if you were going to write out the "data" parts of your object so
it could be re-created what would they be. i'm thinking you could
just boil it all down maybe to a long as in Date.getTime(); then
you could have a long[] array with 45,000 slots. this should take up far less memory than having myObject[] with 45,000 slots. then you
could have one actual object that you insert the data into to play
around with. this may not be the idealists solution but if you have a
lot of objects you may not want to carry around all the excess
stuff.
2) as an aside you say you tried to re-write the GregorianCalendar...
have your tried extending it or extending Calendar. the idea of
extending other non-final classes is you can provide your own
implementation of some things or add totally new methods without having
to re-write an existing class.
just some ideas... -
I want to know the size of of database
hi, iam using HP-UX with oracle10G so that, i want to know the size of of database in my system, for that i can use the follwing queries is this is correct or not?
1. select sum(bytes) as total_size from dba_data_files;
ANS is:
TOTAL_SIZE
29718740992
2.select sum(bytes) as free_size from dba_free_space;
ANS is:
FREE_SIZE
6940393472
3. select sum(bytes) as used_size from dba_segments;
ANS is:
USED_SIZE
25215827968
i GOT like this iam not getting is this TOTAL size is 28 GB?????????????
4.select * from DBA_FREE_SPACE_COALESCED;
ANS for this ????????????????
please help me anyone......i want to know the size of of database in my systemDefine "size":
- The total size of the dbf files?
- The total data space used?
- The total tablespace size?
For example, this show the size of a single table, in meg:
select
segment_name table_name,
sum(bytes)/(1024*1024) table_size_meg
from
user_extents
where
segment_type='TABLE'
and
segment_name = 'MYTAB' ;
Mike Ault has a script collection that measures all possible ways to measure database size:
http://www.oracle-script.com
Hope this helps. . .
Don Burleson
Oracle Press author
Author of “Oracle Tuning: The Definitive Reference”
http://www.dba-oracle.com/bp/s_oracle_tuning_book.htm -
Hello
How can I get the size of a model (from a *.w3d-file). The
model does not contain the properties width, height or length, so I
guess that I have to measure the distance between the models
vertices.
But I can't seem to think of a good way to do it in. I guess
a loop of some kind? But it would seem rather unomptimized to
actually loop through each and every vertex point in the model I
wan't measured.
Any suggestions?The closest thing to model's dimensional properties is the
model's boundingSphere property. It gives a radius of an imaginary
sphere that contains all the vertices of the model; the sphere's
diameter is the distance between the two farthest-apart vertices.
However it includes the model's children in the sphere. Set
yourModel.debug = TRUE to see it.
You could loop through each model, add a mesh deform
modifier, go through each mesh[ ].vertexlist, keep track of each
max and min x, y, and z value, the calculate w, l, h from that. It
would take a little time... you probably wouldn't want to do it
every frame. But you could do it on a keypress or something. -
How to get the size of driver[C: or D:]
Hi Friends,
I have a query regarding to java..
I want to get the name of all the drives that r connected to the System including network drives...
and how to get the size of any system drive[For example C: or D: Drive].
I want the output to be displayed like in the following format
Device type size free Usage_Space
for ex.
C: NTFS 37.5Gb 30.5gb 7gb
Output like as linux command df -h
Edited by: KituPrash on Mar 4, 2009 3:29 AMDoes this help for starters?
File[] roots= File.listRoots();
for (int i= 0; i< roots.length; i++)
System.out.println(roots[i]+": "+roots.getTotalSpace());kind regards,
Jos -
How to get the list of all users
Hi,
Is there a way in Grid Control for getting the list of all users on all target databases? I need to count how many Oracle db users in our company.
Thanks a lot.One way to do it might be...
Assuming you have preferred credentials set up for all of your databases, you could run a 'select username from dba_users or all_users;' against all of your databases through grid control.
Click on Targets tab, click Databases, then the 'Execute SQL' link at the bottom of the page. Click 'Add' and 'Select All'. Then run it. It's just running the same sql across all of your databases and the output will be at the bottom for all of them. -
How to get the size of the table
Hi All,
How to get the size of the table in Oracle 10g?
Is there any script which needs to be run?
Regards,
ApoorvHi All,
Sorry but somehow the table user_segments is not populated in my case. But we have another table SYS.ALL_TABLES whose structure is given below. Would I be able to calculate the table size based on the columns given below:
ColumnName Data Type
OWNER VARCHAR2 (30 Byte)
TABLE_NAME VARCHAR2 (30 Byte)
TABLESPACE_NAME VARCHAR2 (30 Byte)
CLUSTER_NAME VARCHAR2 (30 Byte)
IOT_NAME VARCHAR2 (30 Byte)
STATUS VARCHAR2 (8 Byte)
PCT_FREE NUMBER
PCT_USED NUMBER
INI_TRANS NUMBER
MAX_TRANS NUMBER
INITIAL_EXTENT NUMBER
NEXT_EXTENT NUMBER
MIN_EXTENTS NUMBER
MAX_EXTENTS NUMBER
PCT_INCREASE NUMBER
FREELISTS NUMBER
FREELIST_GROUPS NUMBER
LOGGING VARCHAR2 (3 Byte)
BACKED_UP VARCHAR2 (1 Byte)
NUM_ROWS NUMBER
BLOCKS NUMBER
EMPTY_BLOCKS NUMBER
AVG_SPACE NUMBER
CHAIN_CNT NUMBER
AVG_ROW_LEN NUMBER
AVG_SPACE_FREELIST_BLOCKS NUMBER
NUM_FREELIST_BLOCKS NUMBER
DEGREE VARCHAR2 (10 Byte)
INSTANCES VARCHAR2 (10 Byte)
CACHE VARCHAR2 (5 Byte)
TABLE_LOCK VARCHAR2 (8 Byte)
SAMPLE_SIZE NUMBER
LAST_ANALYZED DATE
PARTITIONED VARCHAR2 (3 Byte)
IOT_TYPE VARCHAR2 (12 Byte)
TEMPORARY VARCHAR2 (1 Byte)
SECONDARY VARCHAR2 (1 Byte)
NESTED VARCHAR2 (3 Byte)
BUFFER_POOL VARCHAR2 (7 Byte)
ROW_MOVEMENT VARCHAR2 (8 Byte)
GLOBAL_STATS VARCHAR2 (3 Byte)
USER_STATS VARCHAR2 (3 Byte)
DURATION VARCHAR2 (15 Byte)
SKIP_CORRUPT VARCHAR2 (8 Byte)
MONITORING VARCHAR2 (3 Byte)
CLUSTER_OWNER VARCHAR2 (30 Byte)
DEPENDENCIES VARCHAR2 (8 Byte)
COMPRESSION VARCHAR2 (8 Byte)
DROPPED VARCHAR2 (3 Byte) -
How to get the size of the test put in a JPasswordField ?
I've checked all the methods that may allow me to know the size
of the text in a JPasswordField.
I tested getCaretPosition() , getSelectedEnd()
and they don't satisfy me : they give the current position of the cursor
and not the size of the text typed. The only safe method is the use
of the method getText() which is deprecated, so that i can get the
size of the resulting String.
Is there a method that allow to know the size of a char arrays ?
Any help will be welcome, thanks.JPasswordFieldObj.getPassword().length;the length variable isn't visible in the forte visual parameters.
thanks a lot, it saved me a lot of time and let me keep the
getPassword() secure.
Sorry, don't have more duke dollars, but you should have get some for this.
Maybe you are looking for
-
Skype Group Options are no longer working?
So I'm trying to use the skype options HISTORY_DISCLOSED - Joiners can see the conversation that took place before they joined. The limit that they can see is either 400 messages or two weeks of time, depending on which is reached first. JOINERS_BEC
-
Kernel panic when I insert and restart OSX tiger CD
I have a slot loading imac PowerPC G3 DVD-ROM drive, 256MB RAM and 10GB HD, which shipped with OS9 I have been using it like this since I bought it, but in recent months it had slowed, crashed a lot etc and I thought it was time to get it up to scrat
-
Customer number of business partner can not be determined
Hello, I created the BP for role TR0100 Main Loan Partner and I also added the role for FLCU00 for FI Client where I put the Company Code information and link this BP with the customer number in FI. When I am create a general loan (SAP Banking) the s
-
Hi Guys I recently purchased ilife 08, mainly to get the functionality of being able to embed a Google Map into my website. This works fine on my Macbook, but when I try and upload it to my website (not a .Mac address), whilst the page displays with
-
Hello I installed java me sdk 3.0.5 on windows 7 exactly as shown in tutorials (already have the required softwares). When I go to "All Programs" from start menu to launch the application, I just don't find the icon. I only find: (documentation, unin