Can size of RBS tablespace be reduced?
Hi folks.
Hope this is the right forum for this question.
Anyway, we're running Oracle 8.1.6 Standard Edition on Win NT
4.0. A few months ago, we ran a SQL Update statement on a table
with 176,000 rows and then did a Commit. As a result our RBS
(rollback?) tablespace grew quite large. Also, as a result, we
now do more frequent Commits. Anyway, my question is: can we
reduce the size of the RBS tablespace and if so how? I tried to
do it using DBA Studio but it wouldn't let me. Do I first have
to remove some Rollback Segments? (We have 6 now, each one 8,192
KB in size.)
Any hints, suggestions, etc. would be appreciated.
Thanks.
Hello Craig
To reduce the size of rollback segment you may issue the
following statement :
alter rollback segment <Segment-Name> shrink to <integer> K ;
If you have given the Optimal value for the specified Rollback
segment, you can shrink it to Optimal value as :
alter rollback segment <Segment-Name> shrink ;
Hope it will help you.
Manish Gupta
Similar Messages
-
How to reduce the size of UNDO tablespace?
Hello,
I was doing client copy from my production system to quality for which I increased
the UNDO tablespace.Now i want to reduce the size of UNDO tablespace so that i can use the
free space for other purpose.
Thanks in advance[Here we go!|Procedure to delete and create PSAPUNDO;
Reagrds, -
When converting word to PDF and reducing the size, the formatting changes how can i keep the format but reduce the size?
The original file is 32 MB:
15 MB is images
15 MB is Content stream
2 MB is everything else
After the PDF/A-1B save as:
The file is 182 MB
Almost 100% is Images
It is an architecture portfolio with many complex images. Is there a setting when I change to PDF/A that can limit the growth of the image files? -
Hi All,
Greetings,
Oracle 8.0.6
SunSolaris
My Rollbacksegment Tablespace datafile size is 1640 MB
but the actual used space is 217 MB.
is there any way to compress the size of 1640MB
Please Help me in this
Thanks in Advance
AdilHi,
01628, 00000, "max # extents (%s) reached for rollback segment %s"
// *Cause: An attempt was made to extend a rollback segment that was
// already at the MAXEXTENTS value.
// *Action: If the value of the MAXEXTENTS storage parameter is less than
// the maximum allowed by the system, raise this value. => Alter your RBS and allow more than 121 extents to be created in this RBS.
Also i found that RBS tablespace is marked as PERMANENT.Yes, it's normal.
..it means the rollback data does not get flushed out periodically?No
Also Should this tablespace be temporary? No, this can't be
How can i counter this problem?Free advise: RTFM about Rollback Segments! Start here (8i doc) or read the Concepts book.
Regards,
Yoann. -
RBS tablespace abnormal growth
I am checking the tablespace size , i am seeing growht of RBS tablespace / it increases 297 MB in one day...Can any body tell me what is the reason & how i can solve that?
As you wish. You can put the other datafile to another disk. Oracle will stripe the data auomatically. Or you can enlarge your existing datafile if you don't have another disk to use.
Less datafiles means less administration effort. So you should trade off if it's worth to add a second or third datafile to your TEMP Tablespace. But more performance will perhaps also increase your salary ;-)
Dim -
To shrink the size of TEMP tablespace
Dear all,
There is a databse with RAC, now in OEM the size of TEMP tablespace has been reached at 99.9%. now we want to shrink the size of TEMP tablespace.
how to we do that???????
plz help me...........Temporary tablespaces usually show they are full, however this space is not actually in use. It is rather allocated. Oracle has evaluated the best way to obtain the most of performance, and he said it is better to allocate once than allocate-deallocate-reallocate extents, so temporary space is not 'released'.
If you want to feel psychologically more confortable with lower allocated space, you can drop your tablespace (create an interim default temporary tablespace first) and recreate it.
You can also rebuild temporary datafiles:
alter tablespace temp add tempfile 'C:\ORACLE\ORACLEXE\ORADATA\XE\TEMP01.dbf' size 32m;
SQL> select name from v$tempfile;
NAME
C:\ORACLE\ORACLEXE\ORADATA\XE\TEMP.DBF
C:\ORACLE\ORACLEXE\ORADATA\XE\TEMP01.DBF
SQL> alter database tempfile 'C:\ORACLE\ORACLEXE\ORADATA\XE\TEMP01.DBF' drop including datafiles;
Database altered. -
Setting the size of a tablespace prior to its creation
Hi guys,
Oracle version: 10.2.0.x
OS: Windows 32bit
I was wondering if there are any 'conditions' in setting the intial size of a tablespace prior to its creation. This is because, one of our customers wants to export and import from one schema into another but set an initial size for a tablespace during its creation and prior to importing data into it, but we have a database wizard tool that creates the accounts/schemas by using the following underlying sql:-
CRETE TABLESPACE <tbl_name> datafile <path><datafile_name>.dbf SIZE 100M AUTOEXTEND ON NEXT 100M MAXSIZE 32000M DEFAULT STORAGE (INITIAL 256 NEXT 256K MINEXTENTS 1 MAXEXTENTS UNLIMITED PCTINCREASE 0) ONLINE;
Under normal circumstances, what he would do is to use our wizard tool and create an account and then import data from an export dump.
But he wants to create a tablespace using a SQL something like:-
CRETE TABLESPACE <tbl_name> datafile <path><datafile_name>.dbf SIZE 2000M AUTOEXTEND ON NEXT 500M MAXSIZE 32000M DEFAULT STORAGE (INITIAL 256 NEXT 256K MINEXTENTS 1 MAXEXTENTS UNLIMITED PCTINCREASE 0) ONLINE;
He thinks this should be ok because his export dump would be on size 2GB and would want to import all of that 'at once' i.e. without actually using autoextend feature for the first 2GB.
Does this make any sense? Do you guys see any difference 'performance-wise' between the 2 create tablespace statements?
I think the second sql (with size 2000M initially) seems to be a more logical approach but I am not really sure of the implications going down the line performance-wise.
Any help/input much appreciated!
Thanks guys1) Provide the facility in your tool to change the default size of datafiles and keep autoextend off.You won't believe it...we had this option in a previous version but now it isn't there anymore!
But why turning off AUTOEXTEND? I mean, our customers are not meant to modify anything in the database other than via using our software, hence we would want our customers to just use the software as it is but have their DBAs monitor the growth of any datafiles etc...
2) Let your tool do what it is doing and then manually increasing the size of the datafiles and making autoextend off once you have created the tablespace and before doing import. This can be done by your tool or loggin to the database.We could do this, but we don't want our customers to manually finger the database as they are/might not be Oracle-efficient and wouldn't want production systems to crash for the same reason.
Hence we could just give them the SQL to be replaced with the 'default' one and then create a tablespace via the tool which would create a tablespace with an initial size of 2GB+ and with greater autoextend facility (such as autoextend on 500M) rather than 100M so that there are fewer autoextends.
Also, in your point 2, are you saying to turn off autoextend only for the import and set it back on by alter tablespace....?
Thank you. -
Hi All ,
I try to create a temporary tablespace
1 create temporary tablespace test1
2 tempfile 'F:\datafile\test1.bdf'
3* size 500k
4 /
create temporary tablespace test1
ERROR at line 1:
ORA-03214: File Size specified is smaller than minimum required
How would we calculate the minimum size required to create a temporary tablespace ?Hi,
You can test it by providing different sizes.
1 create temporary tablespace test1
2 tempfile 'F:\datafile\test1.bdf'
3* size 1024k
4 /
create temporary tablespace test1
ERROR at line 1:
ORA-03214: File Size specified is smaller than minimum required.
1 create temporary tablespace test1
2 tempfile 'F:\datafile\test1.bdf'
3* size 1050k
4 /
Tablespace created.
So that means file size should be greater than 1024K.
Regards
Jafar -
Sometimes when I type fractions they remain full size, other times they automatically reduce to a smaller format. How do I control what my fraction looks like?
Fractions can be found as characters (glyphs) in Unicode fonts. You would need to set the auto-substitution in Pages' preferences to auto substitute to the correct Special characters in Unicode found in:
Menu > Edit > Special Characters…
Peter -
I don't know if this is a "valid" question. We have users running reports on our production system. The sometimes complain about the temp space being too small (due to their queries crashing when using too much temp space).
But I also have a feeling that you can keep throwing disks at TEMP space, and that it will never be enough.
What should the size of a database's TEMP space be - is there a rule of thumb for this ?
DirkThere are several considerations that you should take into account when you try to size your temporary tablespace:
First, how much sort does you average transaction need and how many concurrent transactions does your system need to support. This number gives you a starting point for the minimum workable size for normal operations.
Now, how big is the largest table on your system and do you wish to be able to support select * from biggest order by ? Supporting an unqualified select on your largest table may not be required.
How big is the largest index in your system? It is likely that you need to have enough temp space available to recreate this index in the event of corruption without having to take special action to allocate more space to temp on a temporary basis. But having to add space in the event of a diaster might be acceptable.
Figure out what the largest sort operation you need to be able to support is and then add enough space to handle the number of concurrent average transactions that would be expected to be on the system at the same time. This is the size you should use for your temporary tablespace.
It is better to have all the space you will need for any normal and for any maintenance operation available at all time rather than trying to find additional file space to support special maintenance tasks or diaster recovery operations.
HTH -- Mark D Powell -- -
Can i recover a tablespace in diff database, is it possible ????
i am very frustated as i tried to bakup and recover a
tablespace in diffrent database where i have a tablespace
i would like to tell you (which i want to bkup nad recover)
i have two database one is db01 and the other
is oemrep and i am working on dedicated server i have done few
things on oemrep database i tried few commands which is are..
$ rman target hr@db01
after providing password it connected me to db01 database and
then i backup and recover tablespace test which is on db01 dataabse
i have successfull run backup and recovery command and found no error in that, now i jsut want to know can i see the tablespace
in oemrep database..plese tell me what to do if this in not a right
way to do this..please let me know i wolud be very thankfull of you..
very much thanks from my side....Step 9: Apply this command to see all the options of the export utility
C:\>
C:\>EXP HELP=Y
Export: Release 10.1.0.2.0 - Production on Fri Apr 23 19:48:30 2004
Copyright (c) 1982, 2004, Oracle. All rights reserved.
You can let Export prompt you for parameters by entering the EXP
command followed by your username/password:
Example: EXP SCOTT/TIGER
Or, you can control how Export runs by entering the EXP command followed
by various arguments. To specify parameters, you use keywords:
Format: EXP KEYWORD=value or KEYWORD=(value1,value2,...,valueN)
Example: EXP SCOTT/TIGER GRANTS=Y TABLES=(EMP,DEPT,MGR)
or TABLES=(T1:P1,T1:P2), if T1 is partitioned table
USERID must be the first parameter on the command line.
Keyword Description (Default) Keyword Description (Default)
USERID username/password FULL export entire file (N)
BUFFER size of data buffer OWNER list of owner usernames
FILE output files (EXPDAT.DMP) TABLES list of table names
COMPRESS import into one extent (Y) RECORDLENGTH length of IO record
GRANTS export grants (Y) INCTYPE incremental export type
INDEXES export indexes (Y) RECORD track incr. export (Y)
DIRECT direct path (N) TRIGGERS export triggers (Y)
LOG log file of screen output STATISTICS analyze objects (ESTIMATE)
ROWS export data rows (Y) PARFILE parameter filename
CONSISTENT cross-table consistency(N) CONSTRAINTS export constraints (Y)
OBJECT_CONSISTENT transaction set to read only during object export (N)
FEEDBACK display progress every x rows (0)
FILESIZE maximum size of each dump file
FLASHBACK_SCN SCN used to set session snapshot back to
FLASHBACK_TIME time used to get the SCN closest to the specified time
QUERY select clause used to export a subset of a table
RESUMABLE suspend when a space related error is encountered(N)
RESUMABLE_NAME text string used to identify resumable statement
RESUMABLE_TIMEOUT wait time for RESUMABLE
TTS_FULL_CHECK perform full or partial dependency check for TTS
TABLESPACES list of tablespaces to export
TRANSPORT_TABLESPACE export transportable tablespace metadata (N)
TEMPLATE template name which invokes iAS mode export
Export terminated successfully without warnings.Joel Pérez
http://otn.oracle.com/experts -
Can we create new tablespace in Oracle Database 10g Express Edition?
Hi,
Can we create new tablespace in Oracle Database 10g Express Edition instead of using the default "users" tablespace provided?
Please advise.
Thank you.Correct. The sum of all user tablespaces is not allowed to exceed 4 GIG.
You could try shrinking your tablespaces. Theres a script called maxshrink on http://asktom.oracle.com which is useful for this.
You could compress your tables.
If you are storing lobs, you could consider storing them as bfiles.
Or upgrade to Oracle Standard Edition 1. Its not that expensive. -
Can I recover some tablespace(only current tbs) - RMAN
Hello, I have ang question about RMAN.
If I have full backup database, and next time database is failed.
Can I recover especially tablespace current data?
this below is my step recovery but it's not pass.
I'm not sure, this are correct or not.
bash-2.05$ rman target / catalog user/password@rcat
RMAN> set dbid=1707756540
RMAN> startup nomount
+RMAN> run{+
+2> ALLocate channel ch00 type 'SBT_TAPE';+
+3> Allocate channel ch01 type 'SBT_TAPE';+
+4> SEND 'NB_ORA_CLIENT=holtuv1';+
+5> SEND 'NB_ORA_SERV=holtbk11';+
+6> SEND 'NB_ORA_POLICY=test_orabk_holtuv1';+
+7> restore controlfile ;+
+8> }+
+RMAN> run{+
+2> ALLocate channel ch00 type 'SBT_TAPE';+
+3> Allocate channel ch01 type 'SBT_TAPE';+
+4> SEND 'NB_ORA_CLIENT=holtuv1';+
+5> SEND 'NB_ORA_SERV=holtbk11';+
+6> SEND 'NB_ORA_POLICY=test_orabk_holtuv1';+
+7> restore database skip tablespace 'PERFSTAT', 'YEAR2009';+
+8> }+
RMAN> alter database mount;
+RMAN> run{+
+2> ALLocate channel ch00 type 'SBT_TAPE';+
+3> Allocate channel ch01 type 'SBT_TAPE';+
+4> SEND 'NB_ORA_CLIENT=holtuv1';+
+5> SEND 'NB_ORA_SERV=holtbk11';+
+6> SEND 'NB_ORA_POLICY=test_orabk_holtuv1';+
+7> recover database skip tablespace 'PERFSTAT', 'YEAR2009';+
+8> }+
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 06/04/2010 15:30:41
ORA-00283: recovery session canceled due to errors
RMAN-11003: failure during parse/execution of SQL statement: alter database recover logfile '/data/db01/ORABK_ARCH/ORABK/archivelog/2010_06_03/o1_mf_1_5_60h9p9z0_.arc'
ORA-00283: recovery session canceled due to errors
ORA-16067: activation identifier mismatch in archive log /data/db01/ORABK_ARCH/ORABK/archivelog/2010_06_03/o1_mf_1_5_60h9p9z0_.arc
RMAN> alter database open resetlogs;
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of alter db command at 06/04/2010 15:41:43
ORA-01157: cannot identify/lock data file 5 - see DBWR trace file
ORA-01110: data file 5: '/data/db01/ORABK/perfstat.dbf'
any sugess please.
thank you
SuradechM.Suradech wrote:
RMAN> alter database open resetlogs;
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of alter db command at 06/04/2010 15:41:43
ORA-01157: cannot identify/lock data file 5 - see DBWR trace file
ORA-01110: data file 5: '/data/db01/ORABK/perfstat.dbf'
any sugess please.
thank you
SuradechHi Suradech.This error(ORA-01157,ORA-01110) because in controlfile remain information about of '/data/db01/ORABK/perfstat.dbf'.Due to you restored controlfile from backup.You have to re-create controlfile or you can open database without this datafile.(Also there is YEAR2009' tablespaces datafile).You can try following.
1.
sqlplus "/as sysdba"
alter database datafile '/data/db01/ORABK/perfstat.dbf' offline drop;
alter database open;or
2.
sqlplus "/as sysdba"
alter database backup controlfile to trace as '/data/ctrl'; --then edit this file and remove '/data/db01/ORABK/perfstat.dbf' line(also YEAR2009`s datafile)
shutdown immediate;
startup nomount;
@/data/ctrl;
alter database open resetlogs; also see following metalink note.
How To Recover Database Where Backup Has Tablespace Excluded [ID 732627.1]
Ora-01157 When Running Recover Database Skip Forever Tablespace Noredo [ID 561440.1] -
Can I have a tablespace spanning different drives?
Hi,
I am on Oracle 8i (8.1.7). Can I have a tablespace which can store data in two different dbf files and both these directories reside in different drives?
Even if it can be done, are there any performance issues in this?
Thanks in advance
Manuyes you can do. In fact, for data (tables) and index tablespaces it is recommended, for performance reasons. This is basically what RAID does, after all.
Bear in mind that there are probably no performance benefits to striping several tablespaces across the same two drives.
Regards, APC -
Can segment spread across tablespace?
can segment spread across tablespace?
I guess not cuz segement derive from extent, right?
please elaborate?
thanksA segment is created in a tablespace and can only remain (i.e. allocate extents) within the same tablespace. It cannot span to another tablespace. The extents allocated may be on different datafiles in the same tablespace.
A table with multiple partitions may have each partition in a different tablespace because each partition is a seperate segment. Partitioned indexes also can be managed likewise.
A LOBSEGMENT for a LOB column of a table can be created in a tablespace different from the table itself.
Hemant K Chitale
http://hemantoracledba.blogspot.com
Maybe you are looking for
-
How to connect to an other computer through the internet
Please who can help me with Desktop Remote control and connecting through the internet. I know a lot is written about it, but it is still confusing. So try to explain my situation: I have an MacBook pro with Desktop Remote Control 3 The other compute
-
Lay-out tip(s) for those who dislike FF29 and want a classic (minimal) lay out
Okay, I really really dislike the FF 29 layout and use of it. For me it makes no sense at all and find it also butt ugly. So did some searching and experimenting and thought I shared my finding so maybe others with the same opinion/feelings can benef
-
Lightroom 5.4 and 5.5 crash when trying to go to Preferences
Lightroom 5.4 crashes when attempting to go to the Preferences. Today I updated to 5.5 but have the same problem. As soon as I click on Edit > Preferences the program stops working. Windows 7/ 64; 32GB RAM Any solution? Thanks Ronald
-
Hello to all, would you kind helping me with this issue: platform: Linux, ebiz: 11.5.10.2 Could not start ABM. After returned message error: "FILE_NOT_READABLE" i followed metalink Note:301492.1 but then i try to start ABM - it don't start and return
-
Problem with iPhoto11 order (photobook)
Good morning,I bought 2 picture books, but I had some problems with iPhoto.. it gaves me an error message for two times. I was charged the amount of euro 86,02€ on my credit card, but I never received an order confirmation. So, how can I request a re