Increase in size of database extremely - need to monitor the size of the table
Hi allI need help in the growth of the follow-up tables. It's that the database grows enormously from 192 G at 200 over five days, representing 5% increase in database size. The general scenario is that is that the db is growing 20% annually, but this increase in a week will cause future hardware problems.
Please advice to find the tables that is still growing.
Thank you
DBA Junr.
Hi Georges s/n, do not know if this will help you now, but I did something like this on a daily basis for about 3 years. Literally, I have the size of each segment on a daily basis for this time and can go back in the graphic history of growth. If I had the question you ask the subject that I would be able to tell you exactly what segments are developed. If you need this on a smaller time frame, you can change the data stored in the column "created_date' to all the hours I guess.
Anyway, here's the create statement.
create table db_segment_history
(
db_segment_history_id integer not null,
owner varchar2(30),
segment_name varchar2(81),
partition_name varchar2(30),
segment_type varchar2(18),
created_date date default trunc(sysdate) not null,
tablespace_name varchar2(30),
header_file number,
header_block number,
bytes number,
blocks number,
block_size number,
extents number,
initial_extent number,
next_extent number,
min_extents number,
max_extents number,
pct_increase number,
freelists number,
freelist_groups number,
relative_fno number,
buffer_pool varchar2(7)
);
create sequence db_segment_history_seq cache 1000;
create unique index xpkdb_segment_history on db_segment_history( db_segment_history_id );
alter table db_segment_history add ( constraint xpkdb_segment_history primary key ( db_segment_history_id )
using index );
create unique index ak1db_segment_history on db_segment_history(
owner, segment_name, partition_name, segment_type, created_date );
create trigger db_segment_history_bir
before insert on db_segment_history
for each row
begin
select db_segment_history_seq.nextval
into :new.db_segment_history_id
from dual;
end;
/
This is the insert / select that I use.
insert into db_segment_history(
owner, segment_name, created_date,
partition_name, segment_type, tablespace_name,
header_file, header_block, bytes,
blocks, block_size, extents,
initial_extent, next_extent, min_extents,
max_extents, pct_increase, freelists,
freelist_groups, relative_fno, buffer_pool )
select owner, segment_name, trunc( sysdate ),
partition_name, segment_type, tablespace_name,
header_file, header_block, bytes,
blocks, bytes/blocks block_size, extents,
initial_extent, next_extent, min_extents,
max_extents, pct_increase, freelists,
freelist_groups, relative_fno, buffer_pool
from dba_segments
where tablespace_name in(
select tablespace_name from dba_tablespaces where contents = 'PERMANENT' );
commit;
I hope this helps.
Michael Cunningham
Published by: Michael C on February 21, 2012 14:19
Tags: Database
Similar Questions
-
Hi, I'm developing a simple mobile app in DW CC 2015 using JQuery Mobile. LIKE I need the list view with description of the product, functionality and image, I would like to connect with database instead of "writing" all the tables in the bearings inside the Jquery page. In the future I would also be able to add, to remove the DB records. Any help, tutorial... Thanks TG
I would like to connect with the database instead of "writing" all the tables in the bearings inside the Jquery page
This is usually done with a CMS (content management system). There are commercial products CMS like WordPress, Joomla and perch. You create one or several layouts and then create pages of these page layouts using the CMS. In this way, it is possible to have hundreds of pages, each with unique content, but a page layout that can be managed in a place of sharing.
CMSs on shelf don't require programming skills. Otherwise, some of us write our own CMS with custom functions, but this requires back-end, as with PHP programming.
-
Dear all,
I need to export the table as image format "png".
in case any continuous table is there, sample suite table page 2. I need the same page by page (2 images) required.
Please suggest how to handle these cases in javascript.
Kind regards
Sagna
Thanks Laubender and uwe!
-
Need information about the Tables in database in Oracle Apps
Hello
I am looking for information about the Tables in database in Oracle Apps.
Is it possible that we could see the (column name, description of each column, the primary key, foreign key etc.) the table structure in database (e.g. HZ_PARTIES, CS_INCIDENTS_ALL_B, csf_debrief_headers) used in Oracle 11i applications?
ETRM. Oracle.com
concerning
Pravin
-
Release of PL/SQL version 11.2.0.2.0 - Production
Hi gurus
You need assistance in question. I have the following data:
Sample data
drop table aa;drop table bb;
create table aa
(
cust_no number (5),
cust_name varchar2 (30)
);Insert in the NOA
(
Select 100, 'A' from two
Union of all the
Select 200, 'B' double
Union of all the
Select 300, 'C' of the double
);create table bb
(
cust_no number (5),
cust_caty varchar2 (15)
);
Insert into bb
(
Select NULL, 'Potential' from dual
Union of all the
Select NULL, 'Not Potencial' of the double
Union of all the
Select NULL, "Unknown" of the double
);Now, I want to update my bb with cust_id without no join table...
My required data should be something like below in the table of bb:
CUST_NO, CUST_CATY
100 potential
200 potential not
300 stranger
Please note that it doesn't matter what cust_no arrive at any cust_caty
Concerning
Shu
Hi, Shu,
Here's one way:
MERGE INTO dst bb
WITH THE HELP OF)
WITH aa_r_num AS
(
SELECT cust_no
ROWNUM AS r_num
AA
)
bb_r_num AS
(
SELECT cust_caty
ROWNUM AS r_num
BB
)
SELECT a.cust_no
b.cust_caty
Of aa_r_num one
JOIN bb_r_num b ON b.r_num = a.r_num
) src
WE (dst.cust_caty = src.cust_caty)
WHEN MATCHED THEN UPDATE
SET dst.cust_no = src.cust_no
;
The results I get are exactly what you posted:
CUST_NO CUST_CATY
---------- ---------------
100 potential
200 potential not
300 stranger
But there is no guarantee that the same cust_no at the same cust_caty when you run it.
As posted, which means that bb.cust_caty is unique and not NULL.
If there are N + X lines in the bb, but only N lines in aa, then only N lines in bb will be updated.
Why do you want to do "without no join"? If a join is the most simple, average the most effective to achieve the results expected, so why not use it?
If you really want to avoid the join, you can use a scalar subquery.
-
Need to truncate the table before loading new data
I use sqlldr control file to load a flat file to a table. This file will be provided each month and is a complete replacement file. I need to automate the process to truncate the data already present in the table before loading new records. I can do this in the same ctl file as load or do I need a separate batch file?
He is the current ctl file:
DOWNLOAD THE DATA
INFILE ' D:\DATA\OHNFILES\OHN_PROVIDER_DATA. TXT'
INSERT
PRESERVE SPACES
IN THE WEB OF THE TABLE. OHN_OK_SELECT
(
Position of CHKPPO (0001:0003).
Position of the EFFECTIVEDATE (0004:0011).
Position of TERMDATE (0012:0019),.
CRED_ID position (0020:0024).
LASTNAME position (0025:0099),
Position of FIRSTNAME (0100:0124),
Position of MIDDLENAME (0125:0149),
Position of PROFESSIONALDEGREE (0150:0164),
Position of PRIMARYSPECIALTYID (0165:0214),
Position of PRIMARYSUBSPECIALTYID (0215:0264),
Position of SECONDARYSPECIALTY (0265:0314),
Position of OKLICENSENO (0315:0329),
Position of the Nordic Institute of patents (0330:0339),
Position of TAXIDNO (0340:0348),
Position of MEDICARENO (0349:0365),
Position of OFFICEADDRESS (0366:0465),
Position of BLDGSUITEPO_BOX (0466:0500),
Position of the CITY (0501:0525),
Position of the STATE (0526:0527),
Position of code POSTAL (0528:0537),
Position of TELEPHONE number (0538:0549),
Position of FAX number (0550:0561),
Position of EMAILADDRESS (0562:0611),
Position of the COUNTY (0612:0631),
BILLINGADDRESS position (0632:0731),
BLDGSUITEPO_BOX1 position (0732:0766).
Ville1 position (0767:0791).
STATE1 position (0792:0793).
POSTALCODE1 position (0794:0803).
Telephone1 position (0804:0815).
Position of telecopie1 (0816:0827),
EMAILADDRESS1 position (0828:0877).
MAILINGADDRESS position (0878:0977),
BLDGSUITEPO_BOX2 position (0978:1012).
CITY2 position (1013:1037),
STATE2 position (1038:1039).
POSTALCODE2 position (1040:1049).
Telephone2 position (1050:1061).
Telecopieur2 position (1062:1073).
EMAILADDRESS2 position (1074:1123).
Position of the OST (1124:1163),
Position of CLINIC_GRPNAME (1164:1263),
Position of FEESCHEDULEID (1264:1278),
FILL position (1279:1400)
)customer wrote:
I use sqlldr control file to load a flat file to a table. This file will be provided each month and is a complete replacement file. I need to automate the process to truncate the data already present in the table before loading new records. I can do this in the same ctl file as load or do I need a separate batch file?Same file. Say "TRUNCATE" instead of "INSERT".
LOAD DATA INFILE 'D:\DATA\OHNFILES\OHN_PROVIDER_DATA.TXT' TRUNCATE PRESERVE BLANKS INTO TABLE WEB.OHN_OK_SELECT ( ...
Published by: Frank Kulash, on September 3, 2009 15:12
-
Need to monitor the media port use on 8510
Info on MCU:
Cisco TelePresence MCU MSE 8510
Serial number SM021XXX
Software version 4.4 (3.49)
Build 6.18 (3.49)
Availability 6 days, 22 hours, 15 minutes
It is a HD blade that is configured for the ports of 40 media
I have to be able to look at the use of the port over time to know when we have exceeded the maximum number of ports and the appellant has been abandoned to the audio only
Thoughts?
--
Dan
You can find exactly what you are looking for in the event logs. I just maxed out our 8510 by a participant, the same fall first one I added in the test that matched my allocation of port instead of going 1-sending video of my test results are below.
30330 17:40:09.423 CONFERENCE Info Unable to send the video to "Patrick Sparkman" - allocation exceeded 30331 17:40:09.536 CONFERENCE Info now able to send the video extended to "Patrick Sparkman" -
The map database - how can I update the table
Hello
I develop a bpel using SOA 10.1.3.4 process. The process of bed from a table and writes to a table B. The process must then update table A for lines which it was moved to table B and look for new ones. I can't understand how to do this. Can you please tell me how this could be done.
Thanks in advance for your help.
HDIt's a checkbox when configuraing the data source, it will be either XA or global transactions. I think that, by default, it uses global transactions, so you should be fine.
see you soon
James -
Database for monthly growth monitoring
Guys,
DB = 10.2.0.5.
OS = RHEL 3
I need to monitor the growth of database oracle (db size) for each month. So, when necessary we can get growth of db and opt for a capacity planning.
Do you have any custom for this script?
Thank you
HariSalvation;
Mention of similar question here several times, please use mechanisim of research:
Search:
Re: OEM Database analysis scripts
Salvation;Please see:
http://docs.Oracle.com/CD/B16240_01/doc/EM.102/e10954/sizing.htm< from="">I suggest you also please see below thread
DB growth per month for the last 7 months
How to monitor the growth of the database?
% Of database growth
database growth
How to monitor growth of schema in a database?Respect of
HELIOS -
Hi all
Here is the structure of the table with two expression of virtual columns associated highlighted, now I want to delete these expressions with virtual columns (but must keep my VIRTUAL columns as it is).
Is it possible the alter or I need to raise the table, make a new structure and copy content back to newly structured table... Pleae help!
CREATE TABLE TEST_COL)
SAGE_TRADE_TYPE VARCHAR2 (50 BYTE),
LOCAL_TZ VARCHAR2 (20 BYTE),
ACE GMT_CONV_ENTERED_DT_TS (SAGEDBO. FN_CONVERT_TIMEZONE (LOCAL_TZ, ENTERED_DT_TS)) VIRTUAL,.
ACE GMT_CONV_EXECUTION_DT_TS (SAGEDBO. FN_CONVERT_TIMEZONE (LOCAL_TZ, UPSTREAM_EXECUTION_TS)) VIRTUAL,.
EOD_IND VARCHAR2 (10 BYTE)
);
Thank you very much
Arpit
Try this
ALTER table test_col change gmt_conv_entered_dt_ts (0) virtual;
ALTER table test_col change gmt_conv_execution_dt_ts (1) virtual;
-
How to extract the data in the table in the database
Hi all
IM using PHP/MySQL and I use implode () function to store several values of checkboxes that have been selected in the form. Does store the word 'Table' in my database. How can I get back all of each data I've been record before (each of the checked instead of the word Array value)?
If you don't have that in the database is the Word table, that's all you'll get back out. It sounds like you do not store the information correctly.
Let's say that your form contains a series of checkboxes, all are called options. For all values, you must add square brackets after the name in the form:
Sun roof
Satellite navigation
Air conditioningIf the form is submitted using the POST method, the values will be stored in an array called $_POST ['options']. To store in the database, you must check whether the table exists and then use implode ():
if (isset($_POST['options'])) { $options = implode(',', $_POST['options']); } else { $options = ''; }
Then insert $options into the database.
-
Sudden increase in size of alert file <; SID >; .log
the file < SID > .log Alert is abrubtly increasing in size that is in process girls free disk space, so more no DB connection.
I stop the database, took a bakup of the alert log file, negated the alerts log (using cat/dev/null > alert.log) and started the database.
From now, its OK, but can I cancel this alert log file while the database is running. ???Hi Vicky,
Yes, you can... you can even delete the alert
.ora file that has the database open: Oracle will recreate it just the next you will need to write to it. HTH,
Thierry -
Media Vault - increase in size of the hard drive
I have a Media Vault with two 500 GB hard drives. Is it possible to increase the size of hard drive beyond 500 each?
Bob
I managed to install two 750 gig drives in my Media Vault 2020 in a Raid 1 mirror. To do this, you need to reinstall the operating system on hard drive #1. I used the instructions provided by Lee Devlin at http://www.k0lee.com/hpmediavault/. Tip: Before using Nasload to reload operating systm, turn off the firewall in use.
-
Original title: Clipboard
Hello
I use a software and I have the problem with the paper, I need to change the properties of the Clipboard or to increase the number of characters that can pass from one program to another
where can find Clipboard in windows 7 and how can I change properties?
There is no user-oriented Clipboard option.
For 32-bit applications, the Clipboard can allocate blocks up to 2 GB in size or to a maximum of the amount of virtual memory in the PC has, is the least. The Windows Clipboard does not impose any other size limits.
-
What do I need to use the database shall begin backup mode to perform the backup?
Hi all
I have a primary database to 10g (10.2.0.4) with intelligence on a solaris platform. I need to create a different primary eve for the same database.
I stopped the recovery based on standby and began copy (copy of the os) the existing files pending at the 2nd backup server. But I didn't keep the (mounted) existing standby database into begin backup mode. Is this right?
Thank you
Arun
For a mounted database backup mode?
orclz >
orclz > startup mount
ORACLE instance started.
Total System Global Area 788529152 bytes
Bytes of size 3050600 fixed
373293976 variable size bytes
406847488 of database buffers bytes
Redo buffers 5337088 bytes
Mounted database.
orclz >
orclz > alter database begin backup;
ALTER database begin backup
*
ERROR on line 1:
ORA-01109: database is not open
orclz >
Maybe you are looking for
-
Satellite P200-123 - grx upgrade is possible?
Is it possible to update my grx HD 2600 card or any other part of the laptop? I know it is possible to put more memory in it, but I was hoping to upgrade the grx card in the near future. Thank you very much.
-
Satellite A100 PSAA9C: How to do to record sound played by mixer
I have a Satellite A100 PSAA9C TA902C. (This is my 5th Toshiba laptop) My last was able to do the following: play music written by an author of music, which is through the midi mixing table, and enroll as a wav by Blaze Audio. On the last machine, A2
-
What do you mean by the above error message? How can I complete my program of recovery in factory settings? It stops at 32%, thanks
-
Networks duplicate on the computer.
Windows 7 Pro, card mother Gigabyte GA-Z87X-UD3H. When I boot I have no internet connection. When I go to the network & sharing I find duplicate networks. My home network and an unidentified Public network. Both are of Type of access: Internet and bo
-
Apply a filter condition before aggregation?
Hi allI have a logical column defined in the MDB layer, which is defined as avg (Fact_Table.Sale_Amount).So the SQL code would look likeSELECTAVG (SALE_AMOUNT)OfTABLE_FACTIn the analysis, I want to withdraw any amount of sales that are compared to th