How to reduce the temp tablespace data file
Dear all,I'm using Oracle 11 g on Windows 2003. Due to a SQL select query my temp tablespace data file size has increased significantly. How can I reduce the data temp file?
Thank you
http://download.Oracle.com/docs/CD/B28359_01/server.111/b28310/tspaces007.htm#CFHJFBBJ
Tags: Database
Similar Questions
-
How to move a specific tablespace data file from one directory to another
Database: 10.2.0.1
OS: generic
Description of the problem: how to move a specific tablespace data file of one directory to another account of the database that is on the installer of Oracle Dataguard
* Oracle is working on this issue, but at the same time opens the topic community so that community members can add their views, experience, or knowledge. This will strengthen again all the knowledge bases, including My Oracle Support and My Oracle Support Communities *.
Published by: ram_orcl on August 16, 2010 21:21Dear ram_orcl,
Please follow the procedures here;
http://download-UK.Oracle.com/docs/CD/B19306_01/server.102/b14239/manage_ps.htm#i1034172
8.3.4 Renaming a Datafile in the Primary Database When you rename one or more datafiles in the primary database, the change is not propagated to the standby database. Therefore, if you want to rename the same datafiles on the standby database, you must manually make the equivalent modifications on the standby database because the modifications are not performed automatically, even if the STANDBY_FILE_MANAGEMENT initialization parameter is set to AUTO. The following steps describe how to rename a datafile in the primary database and manually propagate the changes to the standby database. 1. To rename the datafile in the primary database, take the tablespace offline: SQL> ALTER TABLESPACE tbs_4 OFFLINE; 2. Exit from the SQL prompt and issue an operating system command, such as the following UNIX mv command, to rename the datafile on the primary system: % mv /disk1/oracle/oradata/payroll/tbs_4.dbf /disk1/oracle/oradata/payroll/tbs_x.dbf 3. Rename the datafile in the primary database and bring the tablespace back online: SQL> ALTER TABLESPACE tbs_4 RENAME DATAFILE 2> '/disk1/oracle/oradata/payroll/tbs_4.dbf' 3> TO '/disk1/oracle/oradata/payroll/tbs_x.dbf'; SQL> ALTER TABLESPACE tbs_4 ONLINE; 4. Connect to the standby database, query the V$ARCHIVED_LOG view to verify all of the archived redo log files are applied, and then stop Redo Apply: SQL> SELECT SEQUENCE#,APPLIED FROM V$ARCHIVED_LOG ORDER BY SEQUENCE#; SEQUENCE# APP --------- --- 8 YES 9 YES 10 YES 11 YES 4 rows selected. SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL; 5. Shut down the standby database: SQL> SHUTDOWN; 6. Rename the datafile at the standby site using an operating system command, such as the UNIX mv command: % mv /disk1/oracle/oradata/payroll/tbs_4.dbf /disk1/oracle/oradata/payroll/tbs_x.dbf 7. Start and mount the standby database: SQL> STARTUP MOUNT; 8. Rename the datafile in the standby control file. Note that the STANDBY_FILE_MANAGEMENT initialization parameter must be set to MANUAL. SQL> ALTER DATABASE RENAME FILE '/disk1/oracle/oradata/payroll/tbs_4.dbf' 2> TO '/disk1/oracle/oradata/payroll/tbs_x.dbf'; 9. On the standby database, restart Redo Apply: SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE 2> DISCONNECT FROM SESSION; If you do not rename the corresponding datafile at the standby system, and then try to refresh the standby database control file, the standby database will attempt to use the renamed datafile, but it will not find it. Consequently, you will see error messages similar to the following in the alert log: ORA-00283: recovery session canceled due to errors ORA-01157: cannot identify/lock datafile 4 - see DBWR trace file ORA-01110: datafile 4: '/Disk1/oracle/oradata/payroll/tbs_x.dbf'
Hope that helps.
Ogan
-
Not able to reduce the size of data file
Hi all
I use Oracle Database 11.2.0.2 etdansl ASM instance. Today, I noticed that the use of the disk is almost full in my disk groups. I thought so to reduce the size of large size Tablespace data files.
Select file_name, bytes/1024/1024 of dba_data_files where nom_tablespace = 'FRARDTA9T ';
FILE_NAME BYTES/1024/1024
------------------------------------------------------------------------- -------------------------------------
+DATAJDFSWM/t1erp90d/datafile/frardta9t01.dbf 81000
ALTER database datafile '+ DATAJDFSWM/t1erp90d/datafile/frardta9t01.dbf' resize 40000M;
I get the following error.
ERROR on line 1:
ORA-03297: file contains data beyond the requested value of RESIZING
Here is the result for DBA_FREE_SPACE
SQL > select * from dba_free_space where nom_tablespace = 'FRARDTA9T ';
NOM_TABLESPACE, FILE_ID, BLOCK_ID BYTES BLOCKS RELATIVE_FNO
-------------------------------------------- ---------- -------------- ---------- ----------- -----------------
104 97728 5767168 704 1024 FRARDTA9T
104 189016 4521984 552 1024 FRARDTA9T
104 277016 5046272 616 1024 FRARDTA9T
104 277680 655360 80 1024 FRARDTA9T
104 1630336 3288334336 401408 1024 FRARDTA9T
104 2031744 4160749568 507904 1024 FRARDTA9T
104 2539648 4160749568 507904 1024 FRARDTA9T
104 3047552 4160749568 507904 1024 FRARDTA9T
104 3555456 4160749568 507904 1024 FRARDTA9T
104 4063360 4160749568 507904 1024 FRARDTA9T
104 4571264 4160749568 507904 1024 FRARDTA9T
104 5079168 4160749568 507904 1024 FRARDTA9T
104 5587072 1543503872 188416 1024 FRARDTA9T
104 5775616 2616197120 319360 1024 FRARDTA9T
104 6094976 4160749568 507904 1024 FRARDTA9T
104 6637472 2803630080 342240 1024 FRARDTA9T
104 7550488 558694400 68200 1024 FRARDTA9T
104 7618688 4160749568 507904 1024 FRARDTA9T
104 8126592 4160749568 507904 1024 FRARDTA9T
104 8634496 4160749568 507904 1024 FRARDTA9T
104 9142400 4160749568 507904 1024 FRARDTA9T
104 9650304 4160749568 507904 1024 FRARDTA9T
104 10223520 786432 96 1024 FRARDTA9T
Please suggest me how to solve this problem... There's fragmentation the culprit who don't let not releasing me a space?
-Sahathe tablespace is fragmented maybe you defragment to free up space. There are several features to do more or less effective.
-change the movement of the table / index
exp/imp
-reduce the space
-dbms_redefinition
-DECeach technology has advantages and disadvantages...
I suggest starting by shrink space, but do not start with larger items...HTH
-
How to reduce the UNDO Tablespace
Hello
We had an UNDO Tablespace to 22 GB but it's using just 2GB. How to shrink the undo tablespace. We use the database in production cluster 3 node 10.2.0.4
Is there is way we can worry about UNDO Tablespace or should I create an UNDO tablespace and assign the undo tablespace to DB and let fall the old CANCEL?
How to ensure that the transactions are done and free to abandon the old CANCEL?
That's what we must restart all three nodes each node has its own UNDO Tablespace.
Need help on this issue.
would appreciate your quick response.
Thank youNo you have not.
concerning
Mohamed -
How to move a segment in the SYSAUX tablespace data file
Hello
I had a problem with my tablespace SYSAUX growing due to the history of Stats being not properly purged (lots of hits and articles against this known issue). I have since corrected this problem and I did my SYSAUX tablespace so that it is now less than 3 GB. However, the data file unique original behind this tablespace is still 10 GB and I want to reduce again to below 6 GB.
However as a suspect when I try to reduce the data return file I get ORA-03297 file contains data beyond the requested value of RESIZING.
I checked the table dba_extents for this tablespace, which reveals there are approximately 765 segments over my desired fix of 6 GB.
Q1. If there is only 1 or 2 segments above this mark of 6 GB, how would manually move their bottom?
Q2. I gave have 765 segments above this 6 GB brand, what are the recommendations to achieve the mass movement required of these segments?
Thank you
JimThe Alter Table or Alter Index statement will pass all these types of segment?
Lol some are special items.
Here is what I make sure you test something you care to.
And the double test. Frankly, I would like to change the least possible and if I didn't do it, I would avoid.
It might be easily really much, much more trouble than its worth.LOBINDEX
ALTER table
move lob ( ) store (tablespace ); NESTED TABLE
A nested table can be moved to a different tablespace only by moving his table containing storage target.
(Move the parent table, which is only necessary.)PARTITON TABLE
ALTER partitioned table move partition part_2 tablespace
; LOB SEGMENT
ALTER TABLE owner.table_name MOVE LOB (column_name) STORE AS (nom_tablespace);
CLUSTER
I'm not sure.
INDEX PARTITION
example of
ALTER INDEX SYS. I_STREAMS_APPLY_SPILL_MSGS_PT1 CHANGE DEFAULT USERS TABLESPACE ATTRIBUTES;
PARTITION OF LOB
ALTER table
partition of moving
lob ( ) store as (tablespace ); See also - online redefinition of tables
http://Oracle.Su/docs/11g/server.112/e10595/tables007.htm
Oracle Database 10 g Release 2 online data reorganization & redefinition
http://www.Oracle.com/technetwork/database/features/availability/HA-10gR2-online-reorg-TWP-131644.PDF
http://jhdba.WordPress.com/2009/05/19/purging-statistics-from-the-SYSAUX-tablespace/
Best regards
mseberg
-
Lost in the SYSTEM tablespace data file
Version: 10.2.0.5
Platform: AIX 6.1
The only data in the System tablespace file is lost. The DB has crashed.
We have the RMAN backup and the newspaper archive since the last backup of level 1.
With RMAN, where should we go
a. restore, Recover Database
or
b. restore, recover any SYSTEM tablespace?Your database must be mounted State.
RMAN > run {}
allocate channels ch1 disc type;
system restore of tablespace;
recover the system tablespace.
SQL 'ALTER DATABASE OPEN;
}Talip Hakan Öztürk
http://taliphakanozturken.WordPress.com/ -
How to reduce the size of a file Adobe Edge animate?
I'm trying to get the zipped file size up to 150 kb or less, and the closest I can get is 439 kb. I tried the following until now:
- delete unnecessary files before publishing
- toggled active .png for lower quality .jpg assets where I can
- published using the "Host on Adobe CDN runtime files" - I read that it can reduce the size of the file of 80%
I'm pretty new to the software, and there is certainly a chance that I do not have something good. You can view the file here if you are interested in taking a look. If anyone has any suggestions, I would appreciate your insight!
Thank you
Cassie
Yes, I did! First of all that I have lived and made sure I had my images at the smallest possible file size. Then, after the publication in the destination folder, I went in the 'images' folder and deleted the file "thumbs.db" Edge is automatically created. Makes a HUGE difference in the size of the file! Hope that works for you too!
-
Loss of all control files and two independent of the system tablespace data files.
Hello
Loss of the controlfile and 2 data files: February 25, 2010... 15:00
Database: in Archivelog mode
Backup: controlfile and all (6) datafiles on February 20, 2010 and all archive logs are available up to the failure
-Wanted to recover.Even if the controlfiles are restored from a backup, as long as the archive + online redo logs are available, you can make a FULL recovery.
At the end of the recovery, an OPEN RESETLOGS would update the controlfile with correct information about SNA sequence # and headers of files.
(Of course, the RESETLOGS would mean a new incarnation is created and log sequence numbers start from 1 - if you perform a backup as soon as possible after the RESETLOGS).Hemant K Collette
http://hemantoracledba.blogspot.com -
How to change the CSV in dat file
Hello
I want you ask about the data I've had.
In fact, data from csv file. So, can I change directly file dat? Just put c:\Trace.dat?
may or may not?
Need your help.
Thank you.
-
How to reduce the size of the records Quicktime file?
On my Mac, they take as much space as 1 GB for a film record or a screen for 2 minutes.
iPad records take up much less space and are of a higher quality.
Anyone know how to reduce the size of the file, or at least tell me why they use so much space? I have only 128 GB.
A big thank you to you all, good people.
I don't see that you can export out of other than QT. MOV
but you can use an external converter
While it is mainly used to convert video files to DVD it will also convert video files.
-
How to reduce the size of the file CPTX in 8 Captivate?
Hi all
How to reduce the file size of my .cptx in captivate 8? It is the size of the cptx 380MB file, but what I have inside are only a few images to start a new module.
I deleted all unused items in the library and I have only 4 slides with some images in each slide. No interaction and audio included still not even in my master slide.
Please help me. Thank you.
Pak-choi
Copy a new project and test slides.
Anthony
-
How can I reduce the size of PDF file in Adobe Acrobat Reader (free version) ms?
I use Adobe Acrobat Reader DC (free version), ScanSnap ix500 & MAC OS X. I have many documents and statements I want to scan and would like to know how to reduce the size of the document to preserve the memory. I scanned a document, 1 page, converted to PDF format and save it to a folder on my computer. The file size of the PDF file has been 371ko. I can reduce the size without having to buy the standard Adobe Reader or Pro edition?
You can not. You need Acrobat for this kind of task.
-
How to reduce the size of the file for documents
How to reduce the size of the file for documents
The full version of Acrobat can do (not for free Acrobat Reader) for the pdf files.
Please give us some info like what type of file you are talking about and software that you have at least.
-
How can I reduce the size of a file less than 3 MB adobe?
Acrobat Pro can do. However, the rate of reduction depends largely on the content of the PDF file.
I suggest that you install the trial version of https://helpx.adobe.com/acrobat/kb/acrobat-downloads.html
-
PDF file is too big (7MB). Need a pdf with max file size 4 MB. How to reduce the size of a pdf file?
Try optimizing PDF of Acrobat Pro.
Maybe you are looking for
-
My Blu - Ray player does not connect to internet at all after the firmware update
before the update, I use to be able to connect to the internet, but now, it says there was a problem one can not connect. Help, please!
-
synchronization of two DAQ 6218 M-series
Hello world I try to sync both units DAQ 6218, but I get error 89136, declaring that I use incorrect routing. I've been watching a lot of messages and I couldn't find one that explains how the physical linking two devices - less do not so much a newb
-
Mouse Logitech keeps freezing.
Original title: have logitech mouse and it maintains Freising no idea what still When I try to move the mouse around custody Freezin' and have to hit the reset button on mouse any idea of what it is already trying to change batteries should be invest
-
Impossible to completely uninstall Citrix Receiver. I get this error: the global path cannot be retrieved
-
IK start as altijd in geen geluid op pc minutes. Voor het icoontje van speaker staat n x n roll filled cirkel of fusion-Audio service wordt niet uitgevoerd. HEB al vanalles geprobeerd maar weet denies waar in hoe ik het op kan lossen. Iemand?