Query the size of a table with a lob field in the Oracle database
Note: Because the lob field has an independent lob segment for storage, for a table with a lob field, you cannot only query dba_segments.
The following scripts are from:
How to Compute the Size of a Table cont
Recently when doing a system maintenance for a customer, you need to look at the size of the database table, the related SQL is as follows:Select the database to be checked and execute the following statement in the top left drop-down box1. exec sp_spaceused ' table name '-(SQL statistics, may not be allowed after a large number of transactional operations)2. exe
1
.
Exec
Sp_spaceused
'
Table Name
'
--
(SQL statistics, which may be inaccurate after a large number of transaction operations)
2
.
Exec
Sp_spaceused
'
Table Name
'
, True
--
(Update the space size of the table. The exact empty size
Data | database sp_spaceused
Displays the number of rows, the reserved disk space, and the disk space used by the tables in the current database, or the disk space that is reserved and used by the entire database.
Grammar
sp_spaceused [[@objname =] ' objname ']
[, [@updateusage =] ' updateusage ']
Parameters
[@objname =] ' ObjName '
is the name of the table for which to request space usage information (reserved and allocated space). The objname dat
I. BACKGROUND
In the performance tuning or need to understand a database table information, the most intuitive way is to list the data of all the table information, including: The number of records of the table, data capture space, index footprint, unused space, etc. (as shown in Figure1), With this information you can simply determine that the pressure on the d
How to view the size of a table footprint--Define Table variablesCreate TABLE T([Name] VARCHAR (max),[Rows] IntReserved VARCHAR (max),Data_size VARCHAR (max),Index_size VARCHAR (max),Unused VARCHAR (max))--Store table usage to table
Label:The following error occurred while operating the MySQL database table. Google search on the internet related issues, found a foreign bull to explain this:
If you ' re running an operation on a large number of rows within a table that uses the InnoDB storage engine, you might see This error:
ERROR 1206 (HY000): The total number of locks exceeds the lock
1.SQL statistics, which may not be allowed after a large number of transaction operationsEXEC sp_spaceused ' table name '2. Exact table space size, but may take some time to countEXEC sp_spaceused ' table name ', True3. Database Size QueryEXEC sp_spaceused4. All user tablesp
Note: Because LOB fields have separate LOB segment to store, it is not possible to query only dba_segments for tables with LOB fields.The following script comes from:How to Compute the Size of a Table containing Outline clobs and blobs[article ID 118531.1]Modified: Changed to NVL (SUM (s.bytes), 0)sql> col "Total TABLE SIZE
Summary 1: About MySQL table data size, we know that mysql stores data files in tablespaces. when mysql uses the innodb Storage engine, mysql uses tables to store data points.
Summary 1: About MySQL table data size, we know that mysql stores data files in tablespaces. when mysql uses the innodb Storage engine, mysql u
Easy way to estimate a table size in the future
The CD also includes a set of stored procedures you can use to calculate estimated space requirements when the table and indexes have already been built. The main procedure is called Sp_esttablesize , And it requires only two parameters: The table
Problem description
When importing data to the Orale database ORA-01658: Unable to create a INITIAL area error for the segment in table Space XXX.
This is due to the amount of data in the data file in the table space that exceeds the initialization size value of the data file when the Oracle creates the table space, an
JSTL dynamically creates a table based on the list size transmitted in the background. jstllist
Recently, a table needs to be dynamically created based on the size of List objects passed in the background in the project, and the information is displayed on the JSP page, and some special information is highlighted in re
SQL1:
Copy codeThe Code is as follows: -- 1. view the table space name and size.
SELECT t. tablespace_name, round (SUM (bytes/(1024*1024), 0) ts_size
FROM dba_tablespaces t, dba_data_files d
WHERE t. tablespace_name = d. tablespace_name
Group by t. tablespace_name;
-- 2. view the name and size of the tablespace physical file.
SELECT tablespace_name,
File_id,
File
mysql resolves the total number of locks exceeds the lock table size error
Online Google search related issues, found a foreign cow to explain this:
If you ' re running a operation on a large number of rows within a table that uses the InnoDB storage engine, you might This error:
ERROR 1206 (HY000): The total number of locks exceeds the lock
jquery implements drag to adjust the table cell size code instance:This section describes the use of jquery to implement table cells can be dragged by the mouse to resize the effect, of course, if let us completely write code, it may be more complex, but there are ready-made plug-ins can be used, as long as a few simple steps to achieve our requirements.I. Introd
Tags: mysql; sizeUse INFORMATION_SCHEMA;To query the size of all data:Select Concat (Round (sum (data_length/1024/1024), 2), ' MB ') as data from tables;To view the size of the specified database:Select Concat (Round (sum (data_length/1024/1024), 2), ' MB ') as data from tables where table_schema= ' DATABASENAME ';To view the size of a
Label:1. For the convenience of database query problem, can establish important table log backup record table, add in Main table, modify, delete add trigger, modify trigger to increase trigger field point, limit condition.The database log table is more convenient than downloading log files from multiple servers on the
jquery implements drag to adjust the table cell size code instance: This section describes the use of jquery to implement table cells can be dragged by the mouse to resize the effect, of course, if let us completely write code, it may be more complex, but there are ready-made plug-ins can be used, as long as a few simple steps to achieve our requirements. I. Intr
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.