How to find the size of a Table
Dear all,
How can i find the size of a table in a schema and size of the schema also.
Thanks
Mahi
Try out with the help of this package, which will give out the total bytes, unused bytes, calculate the free bytes from total byes-unused bytes.
dbms_space.unused_space(
upper(oname),upper(tbname),upper('TABLE'),
total_blocks, total_bytes,
unused_blocks, unused_bytes,
last_used_extent_file_id ,
last_used_extent_block_id,
last_used_block
);
Similar Messages
-
How to find the size of a Oracle 11g table
I want to find the size of a table in Oracle 11g.
I hope, my question is clear.
Please revert with the reply to my query.
Regards--- List all tables sorted by size
set lines 100 pages 999
col segment_name format a40
col mb format 999,999,999
select segment_name
, ceil(sum(bytes) / 1024 / 1024) "MB"
from dba_segments
where segment_type = 'TABLE'
group by segment_name
order by ceil(sum(bytes) / 1024 / 1024) desc
--- List all tables owned by a user sorted by size
set lines 100 pages 999
col segment_name format a40
col mb format 999,999,999
select segment_name
, ceil(sum(bytes) / 1024 / 1024) "MB"
from dba_segments
where owner like '&user'
and segment_type = 'TABLE'
group by segment_name
order by ceil(sum(bytes) / 1024 / 1024) desc
/ -
How to find the list of existing tables in a schema using DB link?
Hi
I know how to find the list of existing tables in a schema using the following query
SQL> select * from tab;
but, how to list the tables using a DB link?
For Example
SQL> select * from tab@dblink_name;
why this doesn't work?
Pl advice me
Thanks
Reddy.ORA-02019: connection description for remote database not foundHave you used this database link successfully for some other queries?
The error posted seems to indicate that the DB Link is not functional at all. Has it worked for any other type of DML operation or is this the first time you ever tried to use the link? -
How to find the size of an arrayList through Expression Builder.
Hai OTN,
How to find the size of an arrayList through Expression. I have a managed bean in View Scope.I am using Jdeveloper 11.1.1.2 with ADF Faces components.
Managed Bean :
ArrayList<IllnessEmployeesObj> employeeGridList =
new ArrayList<IllnessEmployeesObj>();
JSPX :
Value="#{viewScope.PandIVH.employeeGridList.size}"
Error : java.lang.NumberFormatException: For input string: "size"Hi Dinil,
I have provided you with a sample that would show you the how you can get the size of an arraylist
the sample has a page untitled1 and a bean named test.
I have run in on jdev 11.1.2 and it is ok, it will be ok on 11.1.3
after running the sample you will see the 2.
please remember that you must add the JSTL taglib on the viewcontroller.
just right click on viewcontroller, go to tag lib select the jstl.
page
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<f:view>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>untitled1</title>
</head>
<body>
<h:form>
<h:outputText value="#{fn:length(test.a)}"/>
</h:form>
</body>
</html>
</f:view>
bean
import java.util.ArrayList;
public class Test {
public Test() {
a= new ArrayList();
Object o=new Object();
a.add(o);
a.add(o);
ArrayList a;
public void setA(ArrayList a) {
this.a = a;
public ArrayList getA() {
return a;
I hope this sample came handy.
regards, -
How to find the column name and table name with a value
Hi All
How to find the column name and table name with "Value".
For Example i have value named "Srikkanth" This value will be stored in one table and in one column i we dont know the table how to find the table name and column name
Any help is highly appricatable
Thanks & Regards
Srikkanth.M2 solutions by Michaels (the latter is 11g upwards only)...
michaels> var val varchar2(5)
michaels> exec :val := 'as'
PL/SQL procedure successfully completed.
michaels> select distinct substr (:val, 1, 11) "Searchword",
substr (table_name, 1, 14) "Table",
substr (t.column_value.getstringval (), 1, 50) "Column/Value"
from cols,
table
(xmlsequence
(dbms_xmlgen.getxmltype ('select ' || column_name
|| ' from ' || table_name
|| ' where upper('
|| column_name
|| ') like upper(''%' || :val
|| '%'')'
).extract ('ROWSET/ROW/*')
) t
-- where table_name in ('EMPLOYEES', 'JOB_HISTORY', 'DEPARTMENTS')
order by "Table"or
SQL> select table_name,
column_name,
:search_string search_string,
result
from cols,
xmltable(('ora:view("'||table_name||'")/ROW/'||column_name||'[ora:contains(text(),"%'|| :search_string || '%") > 0]')
columns result varchar2(10) path '.'
where table_name in ('EMP', 'DEPT')
TABLE_NAME COLUMN_NAME SEARCH_STRING RESULT
DEPT DNAME ES RESEARCH
DEPT DNAME ES SALES
EMP ENAME ES JONES
EMP ENAME ES JAMES
EMP JOB ES SALESMAN
EMP JOB ES SALESMAN
EMP JOB ES SALESMAN
EMP JOB ES PRESIDENT
EMP JOB ES SALESMAN
9 rows selected. -
How to find the deleted data in tables
guys,
how to find the deleted data in tables example: i want to see whether anyone deleted data in MB5B report tables like mbew, etc.,
regards,Hi,
MBEWH is actually the history table of MBEW. It will record all the changes. As I have told you earlier if you have deleted the record dirctly from the table then it will not come even in the table MBEWH
That means no changes have been made.
regards -
How to find 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?francislazaro wrote:
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?There are many threads related to the same topic,
http://forums.oracle.com/forums/search.jspa?threadID=&q=How+to+find+the+size+of+a+database&objID=f61&dateRange=all&userID=&numResults=15&rankBy=10001
HTH
Aman.... -
How to find the size of the pipe. I mean the total number of bytes/messages available in the named pipe?
NAVEENI'm afraid this forum for Microsoft Project Customization and Programming is not the correct forum for your question. Please Choose correct forum in order
to get help from experts. I think your question is more relevant to SQL server
kirtesh -
How to find the list of all tables populated
How to find the list of tables populated in the implentation of a particular company. DD02L contains all the tables SAP having. But i want only which are configured for a particular company.
Also how to find the list of reports used by all users in a particular company. TSTC contains all transactions. But i require only reports used by a particular company.Hi Mohamed
You use Solution Manager to do the comparison for you. There are some nice features that will highlight all your customised coding. Have a look at the SolMan resources on the Support Portal e.g. using SolMan for upgrade comparisons.
Rgards
Carl. -
How to find the size (in Mb) of a project in Aperture 3?
I do not know a quick way to find the size of the originals e versions in a project in Aperture 3. Would any one know how to do this?
Tks
PedroTake a look in the "More Like This" section in the right-hand column for discussions about this.
The answer is: you can't. Aperture is not so simply structured that you can select a group of Images and "weigh" them.
If needed, your easiest solution is to export the Images as a new Library and include the Originals. The size of that Library is more than but close to the size of the Originals and the Versions.
HTH. -
How to measure the size of a table ?
Dear all,
May I know how to measure the size of a customized table. I have a list of customized table and I want to monitor the growth of the table size on daily basis.
Please advise how do I do it.
Your advice and input will be appreciated.
Thanks.
Regards,
KentGo to DB02 -> Detailed Analysis -> Enter the table name under "Object Name" -> Click history to see the changes in size by day.
Regards
Juan -
How to find the size of a file or folder
How can I find the size of a file or folder?
I am trying to determine the size of my iPhoto and Mail folder.
It says "Size: --" under general from Get Info.It's working fine...
When you ask for that info, and Finder presents those '--' dashes instead of a value, actually, Finder is calculating the value in background.
That's something that i recently noticed and wonder why tha heck he needs to do all that work by himself, kinda re-inventing the wheel of file size value "calculus"...
I posted some thoughts about it here: File / Folder size... How do Finder gets it?
Will appreciate feedback about this!
Props! -
How to find the Cross Dependencies of tables
Hi,
I have table in Database A, but that table is referencing in another database in the instance's SP,Views and Jobs.How to find the full dependencies of the table include cross database.
I tried with below T-sql but no luck..
--object that view depends on..Tables referenced in Below View---
SELECT * FROM sys.sql_expression_dependencies
WHERE referencing_id = OBJECT_ID(N'Table-Name');
GO
--objects depends on the view--
SELECT * FROM sys.sql_expression_dependencies
WHERE referenced_id = OBJECT_ID(N'Table-Name');
GO
pls guide me..I am planning to remove particular table but before i need to find all the dependencies on the table.see
http://visakhm.blogspot.in/2010/01/finding-cross-server-cross-db-object.html
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
How to find the relation between that tables
Hi,
I have to get the data from different tables but I dont have any table relation ship. So If any body can help me to get that relation ship that will be very helpful for me.
my tables are
LFA1
LFB1
LFC1
RFSDO
BSIK
Thanks
Imran>
SURINDER SINGH OBEROI wrote:
> Hi,
>
> LFA1-LIFNR = LFB1-LIFNR = LFC1-LIFNR = BSIK- LIFNR
> LFB1-BUKRS = LFC1-BUKRS = BSIK-BUKRS
> LFC1-GJAHR = BSIK-GJAHR
> LFC1-ERDAT = BSIK-AUGDT
>
> Cheers,
> Surinder
You think, you can fetch accurate data with the above mentioned linkages?
Oh btw, the question i believe the question was How to find the relation....
pk -
How to find the size of a field
Can somebody tell how to find the sie of a varchar2 field?
Thanks.SQL> desc global_name
Name Null? Type
GLOBAL_NAME VARCHAR2(4000)
SQL> select global_name from global_name;
GLOBAL_NAME
ITFD.XXXXX.CO.XX
1* select vsize(global_name) from global_name
SQL> /
VSIZE(GLOBAL_NAME)
16
Maybe you are looking for
-
My MacBook Pro 17 (2009) died. Pushing the power button gets no response. I had had problems with it for some time turning it on, it usually taking many many tries. Plus when I'd try to do a restart after updating software, instead of doing so it'd s
-
JUnit - Regular Expressions and all that Jazz
I can't help you with the JMeter-specific stuff, but your regex has a couple of regex metacharacters that need to be escaped. Also, the template should refer to group #1, becuase that's where the actual id number is matched.Reg Exp: <a href="appointm
-
Hi All, I am getting "winsock error on send " while trying to mount the server in console. Kindly suggest the cause. BR SK
-
Openbox refuses to boot upon login no matter what I try [SOLVED]
I've followed so far a few different guides and recommendations in how to get openbox to launch upon login/boot, needless to say I've just about given up the venture. Note: I'm not running GNOME or KDE at all, I'm attempting to use Openbox by itself
-
Slow performance for context index
Hi, I'm just a newbie here in forum and I would like ask for your expertise about oracle context index. I have my sql and I'm using wild character for searching '%%' . I used the sql below with a context index (ctxsys.context) in order to avoid full