INCLUDED_IN_DATABASE_BACKUP for temporary tablespace
Hi,
The query output from v$tablespace shows the INCLUDED_IN_DATABASE_BACKUP value for temp tablespace in my db is "YES". The only way to have the value "NO" is to configure rman to exclude tbs. But you can not exclude temporary tablespace. Based on the size of total full backup files, the temp tablespace does not seem to be backup by rman. Is this a bug or is there other way to set this value for temporary tablespace to "NO"? I'm using 9iR2. Thanks.
>...The only way to have the value "NO" is to configure rman to exclude tbs. But you can not exclude temporary tablespace.
RMAN doesn't include the temporary tablespace in the backups.
SQL> select * from v$tablespace;
TS# NAME INC
0 SYSTEM YES
7 TEST YES
3 USERS YES
4 TEMP YES
6 UNDO YES
RMAN> list backup of tablespace TEMP;
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of list command at 01/26/2006 20:04:06
RMAN-06004: ORACLE error from recovery catalog database: RMAN-20202: tablespace not found in the recovery catalog
RMAN-06019: could not translate tablespace name "TEMP"
RMAN> list backup of tablespace UNDO summary;
List of Backups
===============
Key TY LV S Device Type Completion Time #Pieces #Copies Tag
3125 B 0 A DISK 22-JUL-05 1 1 TAG20050722T102731
3207 B 0 A DISK 24-OCT-05 1 1 TAG20051024T163622
3248 B 1 A DISK 02-NOV-05 1 1 TAG20051102T225318
3360 B F A DISK 23-JAN-06 1 1 TAG20060123T172135Aron
Similar Messages
-
Script for temporary tablespace in 8.1.7.4.0
Hi,
I am working in oracle 8.1.7.4.0 and HP-UX os.I need a shell script which is to do the following tasks,
1. create a new temporary tablespace
2.assign the new temp tablespace to the database user level
3.drop the old temp tablespace
4. then create a temp tablespace with the old name
5. then assign the new temp tablespace to the database user level
6.drop the new temp tablespace
Kindly provide me the script for oracle 8.1.7.4.0
Rgds..here is one I prepared earlier (just like a TV chef)
set echo on
-- Create a New TEMP TEMP
create temporary tablespace temp2
tempfile 'dir/temp2.dbf' size 5M
autoextend on next 1M maxsize unlimited extent management local uniform size 1M;
-- Make the TEMP2 tablespace temp
alter database default temporary tablespace temp2;
-- Drop the orginal to recreate with new size
drop tablespace temp including contents and datafiles;
CREATE TEMPORARY TABLESPACE TEMP
TEMPFILE 'dir/temp01.dbf' SIZE 100M AUTOEXTEND ON NEXT 100M MAXSIZE 30000M
EXTENT MANAGEMENT LOCAL UNIFORM SIZE 2M;
alter database default temporary tablespace temp;
drop tablespace temp2 including contents and datafiles; -
TEMP datafiles for temporary tablespaces don't have same timestamp
Hi,
This is what I have done:
Installing 10G2 on XP PRO with sample database.
Tried to install Designer Repository with the Wizard, created a user for the toolkit, that failed.
Added 1 temp tablespace size 20Meg from OEM console.
Dropped cascade Toolkit schema owner and recreated it
Tried to install Designer Repository, that failed again
Added 1 temp tablespace size 1giga from OEM console, failed again to import
Dropped cascade Toolkit schema owner and recreated it
Tried to install Designer Repository, that failed again
Gave up for now: I have located a doc about installing manually by running scripts, will do as soon as I feel at ease with OEM.
Then I put the PC on snooze while database was up, crashed it.
Stopped the services, checked the logs, restarted manually and slowly, base up.
Now both extra TEMP datafiles are lagging behind, seen from Windows explorer, but the tablespaces are seen as online from oem, not seen from sqlplus dba_tablespaces view.
So the question is:
Are the TEMP datafiles supposed to stay in sync with the others or is it ok if they show timestamps dating three days back, provided there has not been any users transactions in the database?
I checked the 10G2 DBA online doc, but I can't find where it's mentioned.
Many thanks if you can help.Hi,
Everything allright, they do show!
I'm a bit wary about resizing anything, maybe you remember the resizing bug for SYSTEM tablespace in version 7?
I have to beef up on DBA tricks.
Since I also have a 1 Giga Users tablespace, I'll do some heavy Inserting and Updating and Sorting see if that tickles the Temps.
Many thanks for your prompt reply.
Message was edited by:
JeanParis -
Hi all
I have created a temporary tablespace temp01 and assign it as the default temporary tablespace for the database (10.0.2.0)
How can I drop it without changing the default temporary tablespace?
thanks for helpphaeus wrote:
Hello,
create a new temporary tablespace. Make it to your default database temp tablespace and then you can drop the old one.
A couple of thoughts I'd want to check on that - based on memories of problems in the dim and distant past.
If you take this approach, do you still have to worry about users who have already got the dropped tablespace associated with their temp tablespace in dba_users ? Memory says they'll either get an error message, or they'll fall back to SYSTEM despite there being a new default.
One of the reasons for creating tablespace groups for temporary tablespaces is that you can assign a tablespace group to a user, and then invisibly create and drop temporary tablespaces in that group without having to adjust the users' details. But there used to be a bug that resulted in excessive hits on dc_tablespaces if you did this, and extreme numbers of executions of a query against ts$ (or maybe file$).
Regards
Jonathan Lewis -
In most RAC environments, you use multiple tempfiles in a temp tablespace to avoid contention yet in the Exadata OLTP best practices guide it stats that you should start out by using a bigfile tablespace for temporarty tablespaces. This seemed odd to me since bigfile tablespaces can only have one tempfile. Understanding that OLTP may not have much parallelism, so multiple tempfiles may not be needed but it still seemed odd to use bigfile instead of smallfile tablespaces for something like temp. Does anyone have any experience with using bigfile tablespaces on RAC for temporary tablespaces.
I have used bigfile temporary tablespaces for some intensively parallelized operations and never encountered any contention problems. If I were you, since we are talking about temporary stuff, I would make the change and run some tests.
-
Amount of temporary tablespace size used for index rebuild
Hi All,
I want to know approximate amount of temporary tablespace size used for index rebuild. I need this information to avoid the insufficient temporary tablespace error during the huge index rebuild.
Is there a query or procedure to find it out.
Thank you.Hi,
While creating the index, the temporary segment is created in the permanent tablespace. So permanent tablespace must have sufficient space.
http://www.oracle-base.com/articles/10g/SpaceObjectTransactionManagement10g.php
http://aprakash.wordpress.com/2010/01/05/numeric-segment-name/
Anand -
Using temporary tablespace for sort in select statement without spacifying
how can i use some particular temporary tablespace in select statement for sording without allocating any temporary tablespace to that user
Try to set for the current session the in memory sorting space to 0 before running your query:
SQL> alter session set sort_area_size = 0;The query should use the temporary tablespace.
Message was edited by:
Pierre Forstmann -
How big for the temporary tablespace is proper?
Hi,
I get the error several times per month:
ORA-1652: unable to extend temp segment by 256 in tablespace temp
The size of this temporary tablespace is 1G. Of couse I can inrease to 2G or 10G.
questions:
How to determine the new size for this tablespace properly?
what factors will be considered for it?
ThanksI think more than one 1GB for a 6GB is acceptable. I agree the temp size is not determied by database size, but satistically it should be in a range compared with database size, right?
Well, what I did in this situation is to create a scheduled job, get information from v$sort_usage and kepp it in a table. This job run in every 5 mins. I let it run a couple of days, then I can know which SQL consumes too much temp space. After that, I tune this SQL to resolve the issue. Hopefully it would be help to you. -
ORA-03217: invalid option for alter of TEMPORARY TABLESPACE
Hi all
I have a database with 300 Users approximantely.
Suddenly I was reported about slowly connection and looked to my database. And I saw that Temporary tablespace with name MUVTEMP is 0% used and in it there is no .dbf file
Then I do ls on my data files directory and saw there MUVTEMP01.dbf!
But it's not using it. Then I want to add another .dbf file. It created this file physically but not joined it to my temporary tablespace.
Then I did it with Oracle EM, clicked on "Show SQL" and there was written
ALTER TABLESPACE "MUVTEMP"
ADD
DATAFILE '/home/oracle/OraHome1/oradata/linux/test.dbf' SIZE
5M
I run it from EM it gave this error
ORA-03217: invalid option for alter of TEMPORARY TABLESPACE
Then I run this SQL in sqlplus
ALTER TABLESPACE "MUVTEMP"
ADD
TEMPFILE '/home/oracle/OraHome1/oradata/linux/test.dbf' SIZE
5M
it created file physically, but I can't see this file as temporary tablespace's file. It's not using....
Where is my mistake???
Thanks...Hi,
try this query:
select s.sid || ',' || s.serial# sid, s.username, u.tablespace, substr(a.sql_text, 1, (instr(a.sql_text, ' ')-1)) sql_text,
round(((u.blocks*p.value)/1024/1024),2) size_mb
from v$sort_usage u, v$session s, v$sqlarea a, v$parameter p
where s.saddr = u.session_addr
and a.address (+) = s.sql_address
and a.hash_value (+) = s.sql_hash_value
and p.name = 'db_block_size'
group by s.sid || ',' || s.serial#, s.username, substr(a.sql_text, 1, (instr(a.sql_text, ' ')-1)), u.tablespace, round(((u.blocks*p.value)/1024/1024),2); -
DEFAULT TABLESPACE and TEMPORARY TABLESPACE for eBusiness Suite database
Hi:
What is the
DEFAULT TABLESPACE and TEMPORARY TABLESPACE
for eBusiness Suite database.
I want to create a new schema on the eBusiness Suite database.
Please helpDEFAULT TABLESPACE and TEMPORARY TABLESPACE
for eBusiness Suite database.
I want to create a new schema on the eBusiness Suite database.Create a new tablespace and temporary tablespace for your custom schema (you may use the existing temporary tablespace).
Integrating Custom Applications with Oracle Applications Release 11i [ID 176852.1]
Step By Step Guide to Creating a Custom Application in Applications 11i [ID 216589.1]
Thanks,
Hussein -
Change temporary tablespace for session
hi.
i wonder if it's possible to change temporary tablespace for session in the way other then `alter user <user> temporary tablespace <tbc>'?Hi,
Temporary tablespace is set at database level and user level. It is not set at the session level.
The below is an extract from Oracle Docs for 10gR2
The DEFAULT TEMPORARY TABLESPACE clause of the CREATE DATABASE statement
creates a default temporary tablespace for the database. Oracle Database assigns this
tablespace as the temporary tablespace for users who are not explicitly assigned a
temporary tablespace.
You can explicitly assign a temporary tablespace or tablespace group to a user in the
CREATE USER statement. However, if you do not do so, and if no default temporary
tablespace has been specified for the database, then by default these users are assigned
the SYSTEM tablespace as their temporary tablespace.You can specifically assign a temporary tablespace for the user but not for the session.
regards,
Vijayaraghavan K -
Can i change the temporary tablespace for schemas during the transactions??
In My Prod database some of the tablespaces assigned system as Temporary tablespace. I want to change the temporary tablespace for these schemas and the default temporary tablespace of the database.
Can I make this change while the users are accessing the database. Is there any impact If i make this change while the transactions are running.
Below is the change i want to do........
1. Change the users for SYSTEM to TEMP in the temporary tablespace by executing the following SQL
statements:
alter user SYSTEM temporary tablespace TEMP;
alter user SYS temporary tablespace TEMP;
alter user AD_MONITOR temporary tablespace TEMP;
alter use SI_INFORMTN_SCHEMA temporary tablespace TEMP;
alter user EM_MONITOR temporary tablespace TEMP;
alter user ORDPLUGINS temporary tablespace TEMP;
alter user TSMSYS temporary tablespace TEMP;
alter user XDB temporary tablespace TEMP;
alter user SCOTT temporary tablespace TEMP;
alter user DBSNMP temporary tablespace TEMP;
alter user DIP temporary tablespace TEMP;
alter user OUTLN temporary tablespace TEMP;
alter user ANONYMOUS temporary tablespace TEMP;
alter user ORDSYS temporary tablespace TEMP;
alter user MDDATA temporary tablespace TEMP;
2. Set the default temporary tablespace to TEMP by executing the following SQL statement:
alter DATABASE default temporary tablespace TEMP;user11829256 wrote:
But if one transaction is using the old temporary tablespace and if i change the temporary tablespace of user will that transactions of that user fails which is using the old temp segment....It will continue to use the old one till the end of transaction.
Here a quick test (hopefully readable) :
-- session 1 as a dba user
SQL> grant create session to nga identified by nga;
Grant succeeded.
SQL> alter user nga temporary tablespace tmp;
User altered.
SQL> select temporary_tablespace from dba_users where username='NGA';
TEMPORARY_TABLESPACE
TMP
-- session 2 as NGA
SQL> insert into gtt
2 select * from (select * from all_objects union all select * from all_objects union all select * from all_objects);
80559 rows created.
-- session 1 as a dba user
SQL> select tablespace from v$tempseg_usage where username='NGA';
TABLESPACE
TMP
SQL> alter user nga temporary tablespace pstemp;
User altered.
SQL> select tablespace from v$tempseg_usage where username='NGA';
TABLESPACE
TMP
SQL> select temporary_tablespace from dba_users where username='NGA';
TEMPORARY_TABLESPACE
PSTEMP
-- session 2 as NGA
80559 rows created.
SQL> roll;
Rollback complete.
-- session 1 as a dba user
SQL> select tablespace from v$tempseg_usage where username='NGA';
no rows selected
-- session 2 as NGA
SQL> insert into gtt
2 select * from (select * from all_objects union all select * from all_objects union all select * from all_objects);
80559 rows created.
-- session 1 as a dba user
SQL> select tablespace from v$tempseg_usage where username='NGA';
TABLESPACE
PSTEMPNicolas. -
One db and user for multiple tablespaces or schemas per server?
Hello again.
I installed Oracle 11g on server_1 and created one database db_1.
Using Enterprise Manager, I did the following:
Created a tablespace myname_1.
Created a user myname_1.
Logged in as myname_1 and created a table into the default tablespace myname_1.
When creating this table, the schema field defaulted to myname_1.
Created another tablespace myname_2.
My confusion about the relationship between tablespaces, users, and schemas starts here:
When I try to create a new table for tablespace myname_2, I get an error:
"user myname_2 does not exist"
I am seeking some clarification on these levels of organization in Oracle.
My goal is to setup my server with one database each and one user each per database.
Then, I think I want to create multiple tablespaces and organize objects per tablespace.
Or should it be per schema?
Eventually each tablespace will be moved to a separate server.
Any comments and suggestions are greatly appreciated.
Thank you for helping.Hello,
This error means user MYNAME_2 doesn't exists and you have to create one.
Example 1:
CREATE USER MYNAME_2
IDENTIFIED BY "my_password"
DEFAULT TABLESPACE MYNAME_1
TEMPORARY TABLESPACE TEMP
PROFILE DEFAULT
ACCOUNT UNLOCK;
-- 4 Roles for KLONDIKE
GRANT RESOURCE TO MYNAME_2; ---> This privs give unlimited quota on all the tablespaces
GRANT CONNECT TO MYNAME_2;
ALTER USER MYNAME_2 DEFAULT ROLE NONE;
Then create your table (you were missing "AS" )
create table myname_2.mytable_1 as
select * from source_table@dblink_2;Example 2: If you want to create table mytable_1 in tablespace myname_2 then you have to create tablespace myname_2 first. To create table in different tablespace than user default tablespace
create table mytable_1 tablespace myname_2 as select * from source_table@dblink;Regards
OrionNet -
How do i know if my query using SORT_AREA_SIZE or temporary tablespace ?
Good Morning Everyone !
My DB version is 10.2.0.1
I have large table exactly 3 million records.
SQL> select count(*) from tab1;
COUNT(*)
300000
SQL> select * from tab1 order by no DESC;
sorting ... in process
300000 rows selected.
in Terminal 2 : I tried to find sorting details - ( No rows selected - why ? )
SQL> select USERNAME , USER , TABLESPACE , SQL_ID from v$tempseg_usage ;
no rows selected
SQL> /
no rows selected
When i google i have seen this ;
If Oracle cannot do the sort in memory (SORT_AREA_SIZE initialisation parameter), space will be allocated in a temporary tablespace for doing the sort operation.
REF_LINK : TEMPORARY Tablespaces and TEMPFILES | Oracle FAQ
MY DOUBT QUESTION : How do i know if my query using SORT_AREA_SIZE or temporary tablespace ?
Thanks in advance.@ JohnWatson
I have seen some articles from ORA - FAQ. Good.
SQL> select USERNAME , USER , TABLESPACE , SQL_ID from v$tempseg_usage;
USERNAME USER TABLESPACE SQL_ID
SCOTT SYS TEMP fh9vqgyd6m0d1
PGA management means that sorting only 300000 rows may well occur in memory
Is this (3 million rows) - standard value for 10g version ?
Thanks JohnWatson -
Error : Temporary Tablespace is Empty when doing expdp/impdp
Hi all,
I was doing expdp on my oracle 10.1.0.2.0 DB on Win XP P, though the user is having a default temporary tablespace with a temp file on autoextend enabled, I got the message as...
ORA-25153: Temporary Tablespace is Empty
Then I created a new temporary tablespace for the user with 500M tempfile and autoextend enabled, then expdp went through.
Now I am doing the impdp for the same .dmp file to generate one sqlfile for the DB,
again I am facing the same error message as...
ORA-25153: Temporary Tablespace is Empty
----- PL/SQL Call Stack -----
object line object
handle number name
17FE07EC 13460 package body SYS.KUPW$WORKER
17FE07EC 5810 package body SYS.KUPW$WORKER
17FE07EC 3080 package body SYS.KUPW$WORKER
17FE07EC 3530 package body SYS.KUPW$WORKER
17FE07EC 6395 package body SYS.KUPW$WORKER
17FE07EC 1208 package body SYS.KUPW$WORKER
17ABE058 2 anonymous block
Job "CHECKUP"."SYS_SQL_FILE_FULL_02" stopped due to fatal error at 10:09
The message indicates that...
ORA-25153: Temporary Tablespace is Empty
Cause: An attempt was made to use space in a temporary tablespace with no files.
Action: Add files to the tablespace using ADD TEMPFILE command.
SO my question is every time I do any imp exp have I to add temp file in my temporary tablespace? will it not be cleared on the completion of the job?
Any advice please.Hi Sabdar,
The result of the query is as...
SQL> SELECT * FROM DATABASE_PROPERTIES where
2 PROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
PROPERTY_NAME
PROPERTY_VALUE
DESCRIPTION
DEFAULT_TEMP_TABLESPACE
TEMP
Name of default temporary tablespace
So the default temporary tablespace is TEMP which is not having any tempfile as I cloned this DB from the primary DB, but the user I am using for the impdp is 'checkup' and the temporary tablespace for 'checkup' is 'checkup_temp1' which s having tempfile.
SO then why the impdp job is going to server's temporary tablespace instead of user's temporary tablespace.
Is there any way to get whether 'checkup_temp1' tablespace is the default temporary tablespace for 'checkup' or not?
Can I create create the user mentioning default temporary tablespace anyway because it is giving me error as...
SQL> create user suman identified by suman
2 default tablespace checkup_dflt
3 default TEMPORARY TABLESPACE checkup_temp1;
default TEMPORARY TABLESPACE checkup_temp1
ERROR at line 3:
ORA-00921: unexpected end of SQL command
Then I did ...
SQL> create user suman identified by suman
2 default tablespace checkup_dflt
3 TEMPORARY TABLESPACE checkup_temp1;
User created.
Regards
Maybe you are looking for
-
Eliminating duplicates from subquery...
What is the best way to eliminate duplicates from a subquery: SELECT dept_no, dept_name FROM dept D WHERE EXISTS ( SELECT 'X' FROM emp E WHERE E.dept_no = D.dept_no); OR SELECT dept_no, dept_name FROM dept D WHERE ( SELECT 'X' FROM emp E WHERE E.dept
-
The following thread is corrupted for the last few posts - please help. http://social.msdn.microsoft.com/Forums/en-US/39673f2b-1f37-465e-9401-c66455aff42a/challenge-of-the-month-december-2013?forum=smallbasic#04131d7f-a4de-4517-9d10-1b98a6de06a9
-
I want to inplement a list, it contains some records, and each record has got a few fields, and one of the fields is key. I need the records be sorted by the key field, and certain record can be covieniently located by the key. And basically I need s
-
Hi: We are upgrading 10g to 11g, including the catalog. Some tab names in 10g had the HTML <BR> tag to force a line break. After conversion, we see the HTML tag in the name. We do not see any option for "contains HTML" in the 11g tab preferences. Doe
-
i have a full .mac account....it was due to renew on 7/31/06 and my credit card expired....i didn't get the emails to renew because i was not around. i renewed it today and now i was required to create a new .mac user id to log into the forums....my