Tablespace getting full quite often [cannot extend tbs], need a script to add data files on reaching the threshold!!
Good morning Techies,
I have a OBIEE environment where developers work on continuous data loads and the tablespaces are filled up quite often throwing cannot extend.
I have a request from the customer to generate some script or automatic adding up of datafiles.
Can someone here help with the ways of automizing or easing this situation through some script where it ask the users for the path and DB file size etc and creates a datafile with the inputs.
Or advise any other ways to handle the situation.
Regards,
RanG
Oracle does not but you can write your own job to execute when you reach certain threshold. You can also do this in a GRID so whenever the metric threshold reached, it executes your procedure. Make sure you check your file system space before adding a datafile.
With BIGFILE tablespace, you might need to change your backup policies.
Check these link as well:
tablespace - Can oracle tablesspaces automatically add smallfile datafiles? - Stack Overflow
Can Oracle Create New Datafile Automatically?
Similar Messages
-
my iphone6 screen is off since last few days i have tried all the options like pressing the home and sleep button together but still its not switching it on before it was getting hanged quite often it had full battery charged but still it is off can anyone please help ......
hi i m currently in pakistan and there is no apple store here . i will b back to australia after 2 weeks i was wondering if thei can b any fix as i have all my contacts and everything else in my mobile
-
TEMP tablespace getting full while inserting a CLOB in Trigger
We have a Oracle 10g (10.2.0.4.0) DB on a Solaris 9 box which also runs our J2EE web-service application on Weblogic 8sp6 server.
We get around 220K web-service requests from upstream callers daily to insert data in the main table, say TABLE1, which has daily partitions on a date column. This table has around 21 columns out of which 1 is a CLOB column.
Now this table has an AFTER INSERT trigger which calls a package procedure to insert the same record into another table, say TABLE2.
From Java application insert statement in executed in below format using a weblogic jdbc connection pool :
INSERT INTO TABLE1(COLUMN1, COLUMN2, ........., CLOB_COLUMN,........, COLUMN21) VALUES (:1, :2, :3, :4, :5, :6, :7, :8, :9, :10, :11, :12, :13, :14, :15, :16, :17, :18, :19, :20);
Clob object is prepared in application using ojdbc14.jar.
We are observing a strange issue here. The TEMP tablespace utilization keeps on growing as more and more inserts are executed by application and after ~125K inserts the TEMP tablespace gets full and we start getting ORA-01652 error.
On further analysis we could see that there are only 7-10 session being maintained but as more and more inserts happen TEMP tablespace utilization goes on increasing for each of these sessions.
When we tried with inserting just few records and then watching the session details in v$session_wait then we could see that it is in INACTIVE state and waiting for the event ‘SQL*Net message from client’. This does not seem correct as the session has successfully inserted the data and committed the transaction and we can see the data in the tables as well.
The confusing thing here is when we modify the trigger to pass blank string('' ) instead of the CLOB column to TABLE2 then this issue does not occur. All 200K records are inserted properly and TEMP tablespace utilization also keep always below 1%.
Can you please help us in solving this issue. Is this related to any oracle issue?
Inside the package we have tried using DBMS_COPY statement to copy the CLOB column after insert but still same result.
Code for reference:
Trigger:
=====================================
CREATE OR REPLACE TRIGGER trg
AFTER INSERT OR UPDATE
ON TABLE1
REFERENCING NEW AS NEW OLD AS OLD
FOR EACH ROW
BEGIN
IF (:NEW.date_col > SYSDATE - 2)
THEN
IF (:NEW.cat IN (1001, 1002))
THEN
pkg.process_change
(:NEW.COLUMN1,
:NEW.COLUMN2,
:NEW.CLOB_COLUMN,
FLAG
END IF;
END IF;
END;
=====================================
Package:
=====================================
procedure PKG.Process_change(
p_COLUMN1 number,
p_COLUMN2 varchar2,
p_CLOB_COLUMN clob,
flag boolean
) is
v_watermark pls_integer;
v_type varchar2(1);
begin
if (flag) then
v_type := 'U';
else
v_type := 'I';
end if;
select t_seq.nextval into v_watermark from dual;
insert into TABLE2(
COLUMN1 number,
COLUMN2 varchar2,
CLOB_COLUMN clob,
watermark,
dml_type
)values (
p_COLUMN1 number,
p_COLUMN2 varchar2,
p_CLOB_COLUMN clob,
v_watermark,
v_dml_type
end;
=====================================My first thought on reading your post is that not only are you using a database version that is now so old it is in extended support and even then not even the most recent patchset for it.
The first thing I would do is move to 11gR2 and if you can't do that at least get to 10.2.0.5 and apply CLOB relevant patches as well.
Same goes for your operating system. Solaris 9 is ancient: So move to 10 which has vastly improved memory management.
To help you further it would be really valuable to know the table layout. For example is this a heap table or an IOT? Is it partitioned? Is this RAC? What size are the CLOBs? Are they stored in-line? Chunk size? etc.
This page should start you down the right road:
http://docs.oracle.com/cd/B19306_01/appdev.102/b14249/adlob_tables.htm#sthref204
But I am also wondering why you would use a trigger to, as you say, "insert the same record into another table." This description is a poster child for "bad design." -
My phone connects intermittantly and quite often cannot find the network. Also does not reconnect automatically? Most of the time says unable to join network? My laptop and ipad seem fine? Very annoying Please help!
All the information you need is right here: http://www.apple.com/iphone/specs.html
Notice there is no mention of WiMax.
It doesn't really matter anyway as Sprint is rolling their WiMax network down for use by MVNOs. Actual Sprint customers will not have access to WiMax at all. It was a failed experiment. -
where can i download quicktime 7.5.5? A compatibility version gets downloaded but its not what I need. Im unable to open my ITUNES without the quicktime 7.5.5 upgrade or higher. Anything higher isnt supported by my mac ( OS X 10.5)
I had the same problem when re-installing my old iBook recently. You can find it here:
http://support.apple.com/kb/DL27 -
My undo tablespace is getting full because of uncommited deletes performed by jdbc thin client sessions.
How can I solve this problem permanently?
Size of undo tablespace is 5.5GB
I am facing an undo tablespace full issue
Below are the sessions which maybe causing the problem.
select s.sid,
s.serial#,
s.sql_id,
s.prev_sql_id,
s.SCHEMANAME ,
s.OSUSER ,
s.program,
USED_UBLK,USED_UREC from v$session s, v$transaction t where s.taddr=t.addr order by USED_UREC;
3909 30842 fgcp0qn1bqzx9 XLTDB5 xltwrk5 JDBC Thin Client 504 45257
5133 53593 fgcp0qn1bqzx9 XLTDB5 xltwrk5 JDBC Thin Client 07 54482
4525 35108 fgcp0qn1bqzx9 XLTDB10 xltwrk10 JDBC Thin Client 2381 192853
4428 38484 fgcp0qn1bqzx9 XLTDB1 xltwrk1 JDBC Thin Client 8682 634540
For this sql id :fgcp0qn1bqzx9 there are more than 14k executions per hour.
Below is the query for this sql id:
/* TJAPI_SubTrxTransient_deleteTrb1SubTrxTransient_0 */ DELETE FROM TRB1_SUB_TRX_TRANSIENT
Some other details
++++++++++++
Oravle version:11.1.0.7
OS:SunOS
++++++++++++Perhaps an interesting link:
http://oracledisect.blogspot.com/2008/05/who-is-using-your-undo-space.html
Perhaps you can use Oracle Resource Manager, create a resource plan and switch sessions to a different consumer group once they reach a certain treshold.
http://download.oracle.com/docs/cd/B28359_01/server.111/b28310/dbrm004.htm
Btw are these distributed transactions?
DBA commit other session's transaction?
Edited by: Markus Waldorf on Sep 9, 2010 7:57 PM -
I loaded cleartune a while back, there are upgrades/updates available, which I'm trying to load. When I choose update, it asks for my password, which I provide and I get a message saying "cannot connect to Itunes store" I have many other apps I've loaded and upgraded just fine. However this one, the one I actually wanted bad enough to pay for, is wanting me to delete it and buy another copy. How can I update Cleartune without buying it again?
Hi all,
This is a very interesting situation. I did try to update one of my apps within itunes as was suggested. That worked !!
But then I noticed that I had 2 different logins that I must have created over the years. I almost forgot. I have a apple ID and an AOL ID. It seems that I purchased (actually they are all free) some apps with one ID and other apps with the other ID. I must have done this by accident.
So when I log out of one of the IDs on my Touch and then log in with the other ID, I can update the apps.
It seems that something changed on Apple's servers. It seems that until recently I was able to update free apps regardless of what ID I originally bought them with. Now it seems that's not the case. Apple must check this now.
Now that I know what the issue is, I'll make sure I use one ID all the time.
Thanks,
Steve -
SGEN and tablespaces getting full
Hello gurus
I'm running SGEN in a system that I've just installed, and I've noticed that the process of SGEN affects two tablespaces PSAPES620I and PSAPEL620D and I've to increase their sizes in 4Gb total (3gb to PSAPEL620D and 1gb PSAPES620I, is that a normal behavior of SGEN?
RegardsHello,
Yes. It is quite normal. Don't worry
Thanks,
Siva Kumar -
Is this how I start my new thread?
Thanks.
"Can you right-click, save the pdf file to your desktop (or wherever) then open it using File>Open in Reader?" I tried and was not successful.
I do not know ow to access the PDF viewer of Safari, and BTW the problem may lie in the fact that i have not upgraded from 10.8.5.
And I do not know where the "open with" box might be or if it is a global or app-attached box. -
Any suggestions?
Hi Swolfie1!
I have an article here that can help you troubleshoot this issue a little further:
Can't connect to the iTunes Store
http://support.apple.com/kb/TS1368
Thanks for being a part of the Apple Support Communities!
Regards,
Braden -
Error in Add Data File by using Extend Table Space
Hi All,
I am trying to extend tablespace by adding a datafile.
I am using BRTOOLS.
But it is giving the following error:-
BR0301E SQL error -1580 at location BrCtlCopy-1
ORA-01580: error creating control backup file /oracle/<SID>/sapreorg/sdzautpx/cntrlJTD.old
ORA-27040: skgfrcre: create error, unable to create file
IBM AIX RISC System/6000 Error: 13: Permission denied
BR0320E Copying of control file to /oracle/<SID>/sapreorg/sdzautpx/cntrlJTD.old failed
BR0280I BRSPACE time stamp: 2008-10-16 14.11.56
BR0700E Fatal errors occurred - terminating processing...
BR1020I Number of tablespaces processed: 0
BR1004E BRSPACE function 'tsextend' failed
I am using BRTOOLS 7.0 and Patch Lavel 34 on Oracle 9.2 and AIX 5.3.At the time of running BRTOOLS I am using ORA<SID> User and owner is ora<sid> dba.
Please let me know why I am getting this error.Please help me out from this problem.
Regards
JoydeepHi all,
I have given 777 permission to sapreorg and also run ./saproot.sh SID from exe directory.But still it shows same error as below.
BR0370I Directory /oracle/JTD/sapreorg/sebgptqk created
BR0280I BRSPACE time stamp: 2009-08-18 09.11.15
BR0301E SQL error -1580 at location BrCtlCopy-1, SQL statement:
'/* BRSPACE */ ALTER DATABASE BACKUP CONTROLFILE TO '/oracle/JTD/sapreorg/sebgptqk/cntrlJTD.old''
ORA-01580: error creating control backup file /oracle/JTD/sapreorg/sebgptqk/cntrlJTD.old
ORA-27040: skgfrcre: create error, unable to create file
IBM AIX RISC System/6000 Error: 13: Permission denied
BR0320E Copying of control file to /oracle/JTD/sapreorg/sebgptqk/cntrlJTD.old failed
Please check and give me some light on this problem.
Thanks & Regards
Joydeep -
Set alert for tablespace in grid control when tablespace get 85% full.
Hi,
I want to set a tablespace alert in grid control when the tablespace in database get 85% full.
We should get a alert through a grid control.
Could you please let me know how to set a alert in grid control for tablsepace usage?
Thanks,HI
Thanks for the reply.
I have set the alert the way you asked me do.
However i am not getting an alert when the tablespace get full by 85%.
I am not getting alert to our mail.
Could you please let me know do we need to do anything else.
I tried using through user defined sql metrics.
The query which i am using is
DECLARE
Type v_filenames is table of dba_data_files.FILE_NAME%type
index by pls_integer;
filename v_filenames;
type v_currsize is table of dba_data_files.BYTES%type
index by pls_integer;
currsize v_currsize;
type v_maxsize is table of dba_data_files.MAXBYTES%type
index by pls_integer;
maxsize v_maxsize;
mark75 number;
mark500 number;
n_maxsize number;
i pls_integer default 1;
total_files sys.dba_data_files.BYTES%type;
SUM_BYTES sys.dba_data_files.BYTES%type;
SUM_MAXBYTES sys.dba_data_files.MAXBYTES%type;
BEGIN
SELECT SUM(BYTES)/(1024*1024),SUM(MAXBYTES)/(1024*1024) INTO sum_bytes,SUM_MAXBYTES FROM DBA_DATA_FILES WHERE TABLESPACE_NAME='&&1';
select SUM(bytes*4/3-maxbytes)/(1024*1024),500-SUM(MAXBYTES)/(1024*1024) into mark75,mark500 FROM DBA_DATA_FILES WHERE TABLESPACE_NAME='&&1';
if mark75>=mark500 then
n_maxsize:=mark75;
else
n_maxsize:=mark500;
END IF;
will the above query will work.
I dont what condition to put in my case.
I want to put this condition
if mark75>=mark500 then
n_maxsize:=mark75;
however i am not using it in where clause.
Thanks. -
Cannot extend package Error while saving changes in Query
Dear Gurus
When i am trying to save changes made in the query i get an error message Cannot extend package YBW. kindly help me in resolving this as the changes are required in multiple queries.thanks for your relpy Jaya..i checked the properties...the check box package not extendable check box is unchecked and the main package checkbox is also unchecked.
i check the below post...not exactly related to my issue
creation of package(Package can not be extended)
Edited by: SAP Learner license on Mar 30, 2011 9:16 AM -
ASM diskgroups unmounting, getting ORA-01157: cannot identify/lock data fil
All,
We've recently purchased a RAMSAN device for better throughput. I created the initial diskgroup with the following syntax:
CREATE DISKGROUP EMTPRD0X_SSD01 NORMAL REDUNDANCY
FAILGROUP RS1 DISK '/dev/rdsk_ramsan_primary' NAME ssd_prim
FAILGROUP RS2 DISK '/dev/rdsk_ramsan_backup' NAME ssd_bkup;
and then created a temporary tablespace on top of that diskgroup:
create temporary tablespace temp04 tempfile '+EMTPRD0X_SSD01' size 25g, '+EMTPRD0X_SSD01' size 25g, '+EMTPRD0X_SSD01' size 25g, '+EMTPRD0X_SSD01' size 25g, '+EMTPRD0X_SSD01' size 25g;
Everything seemed fine at first and then end users started seeing the following errors in the alert log:
SUCCESS: diskgroup EMTPRD0X_SSD01 was mounted
SUCCESS: diskgroup EMTPRD0X_SSD01 was dismounted
SUCCESS: diskgroup EMTPRD0X_SSD01 was mounted
SUCCESS: diskgroup EMTPRD0X_SSD01 was dismounted
Tue Oct 12 16:12:51 2010
Errors in file /opt/oracle/oradump/emtprd02/udump/emtprd02_ora_11578.trc:
ORA-01157: cannot identify/lock data file 3009 - see DBWR trace file
ORA-01110: data file 3009: '+EMTPRD0X_SSD01/emtprd0x/tempfile/temp04.256.732210281'
After talking with Oracle support I was told that the only workaround for diskgroups unmounting themselves is to put a control file/redo log/dummy tablespace inside of that diskgroup and continually write/read from it.
Does that make sense?
They pointed me to note 603204.1 - Why FRA Diskgroup Gets Mounted/Dismounted.
The system is a 3 node Oracle 10.2.0.4 rac running on ASM Solaris x86 64bit.
Any ideas?
Thanks,
BrianPost Operating System (OS) name & version for DB server system.
Post results of
SELECT * from v$version
My db is not in archivelog mode poor choice
and no backup was taken. Worse choise
Is there any way I can recover this db? Recover as in no data loss?
Very doubtful.
Possible to open with data loss.
01157, 00000, "cannot identify/lock data file %s - see DBWR trace file"
// *Cause: The background process was either unable to find one of the data
// files or failed to lock it because the file was already in use.
// The database will prohibit access to this file but other files will
// be unaffected. However the first instance to open the database will
// need to access all online data files. Accompanying error from the
// operating system describes why the file could not be identified.
// *Action: Have operating system make file available to database. Then either
// open the database or do ALTER SYSTEM CHECK DATAFILES.What exactly cause this mess?
Edited by: sb92075 on Jan 7, 2010 8:59 PM -
I can no longer import photos from my PC because I get this message: iPhoto cannot import your photos because there is not enough free space on the volume containing your iPhoto library. How can I fix this problem?
Option 1
Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
If that fails:
Option 2
Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
Regards
TD
Maybe you are looking for
-
Is it possible to change the genre name...
Can I change the name of the genre for an artist without changing the genre on every single song? Is it possible to change the genre name for all songs by an artist by just typing in the new genre for that artist just once?
-
Hi we have taken loan say $10000 and want to repay over a period of 10 months with interest rate of 10% at reducing balance method and interest also will be calculated accordingly on the balance outstanding. How can it be done through Oracle payable?
-
Multiple JCO to different ECC systems
Dear Portal Gurus, We have this need where in we need to point the BP for ESS to point to 2 ECC 6.0 env i.e. DEV and QA ECC. For the same how do we create JCOs to point to 2 different ECC from the same Portal server. We are at EP 7 SPS10. Thanks, Ash
-
I currently use Chrome as my web browser and am not able to access the Ancestry.com website using it. Every attempt to sync my records fails and the manual suggests use of Internet Explorer or Firefox 3.6 However, the current download available is no
-
Re-installing ver 10.3 after dowloadad by mistake ver 10.0.4
I have an iMac G5 Mac OS X Ver. 10.3 and by mistake I dowloaded Mac OS X ver. 10.04 thinking it was version 10.4. I need to know how to restore the original version, since I have been trying with the installer discs but it give me an error when I am