Question of tablespace group

11.2.0.2 on Oracle Linux


Default tablespace for the user SCOTT is MDS_TEMP tablespace. Tablespace MDS_TEMP is regularly full due to heavy sort.
We have an another temporary tablespace called RTG_TEMP used by another user, which is less demanding in time and was usually about 20g of free space.


We want to create a tablespace group "combining" MDS_TEMP and RTG_TEMP. But these storage spaces were not initially created with

TABLESPACE GROUP mentioned in clause
http://www.morganslibrary.org/reference/tbspgroup.html
CREATE TEMPORARY TABLESPACE batchtemp TEMPFILE '/u02/oradata/temp04.dbf' SIZE 2G
TABLESPACE GROUP temp_grp;
Is there anyway that I can still do a group of these two storage spaces?

alter tablespace mds_temp tablespace group temp_grp;
alter tablespace rtg_temp tablespace group temp_grp;

Select * from dba_tablespace_groups;

Tags: Database

Similar Questions

  • Tablespace groups

    Hello

    Can someone explain to me please what are groups of Tablespace and the advantages of them?

    Thank you in advance,

    EA

    Hello

    Tablespace groups

    Oracle now has the concept of consolidation of spaces from multiple tables together in what they call a tablespace group. This allows you to create several temporary storage space, assign these temporary storage space to a tablespace group and then use the tablespace as the temporary tablespace default for the database or a user. The advantage that it is, is that a SQL statement or a unique set of SQL statements can use more than the a temporary tablespace, you have created in the past and now cover areas of multiple tables. This offers the following advantages if you create your temporary storage spaces and groups of tablespace correctly.

    1. you can customize the user load to temporary storage areas.
    2. you can allow the large size operations spread and consume several temporary storage space if necessary.
    3. more fine granularity so you can distribute across temporary storage operations.
    4. reduction of restraint when several temporary storage spaces are defined.

    For more information, please have a look at this link, it will answer all your questions about this topic:

    -http://oraclenz.com/category/temp-tablespace/

    See you soon,.

    Francisco Munoz Alvarez
    www.oraclenz.com

  • How to rename the temporary tablespace group name

    How to rename the temporary tablespace group name?  I have to remove all the temporary tablespace under the Group and then re-create the temporary tablespace again.

    EBS r12.1.1

    Database 11.0.1.7

    Please see any id doc.

    concerning

    pritesh Rodriguez

    Thanks for your update. I have solved my problem by creating a new group and add temporary tablespace to new goup.

    concerning

    pritesh Rodriguez

  • Question regarding tablespace TEMP and the o/s file associated with.

    Hello

    I want to write a simple query that returns the existing storage space and files that are part of each tablespace.

    I tried the script / query:
    col tablespace_name format a15
    col datafile_name   format a35
    col MB              format 999999
    col "CreateSize MB" format 999999
    
    --
    -- following two queries present only to show the problem I'm running into
    --
    
    select ts#
         , name
      from v$tablespace;
    
    select ts#
         , name
      from v$datafile;
    
    --
    -- this ALMOST works
    --
    
    select t.name tablespace_name
         , t.bigfile
         , d.name datafile_name
         , d.bytes/(1024*1024) MB
         , d.create_bytes/(1024 * 1024) "Create Size MB"
      from v$tablespace t
      join v$datafile   d
     using (ts#)
    ;
    The last query fails to display the files associated with it and the TEMP tablespace.

    Question: what tables should I ask to get a complete picture (one that is not lack of TEMP and its files)?

    Thank you for your help,

    John.

    V$ tempfile

    dba_temp_files

    Here you get a temporary tablespace.

    Concerning
    Asif kabir

  • A few questions about resource groups

    Oracle documentation says that the creation of Simple Plan of resources automatically adds SYS_GROUP to level 1 of the plan and the OTHER_GROUPS at level 3.

    I checked SYS_GROUP and it seems that the SYSTEM is only the default member. What about SYS or SYSMAN or other dba (user) accounts? If a connect as SYS or with my own dba account to do administrative tasks will be to be considered a member of the SYS_GROUP or should I add "admin" users manually including DBSNMP SYS, SYSMAN, and so on...?

    Second question. Documentation also indicates that there is, at level 3, OTHER_GROUPS catch-all group. I looked at integrated groups of servers by default and there is no OTHER_GROUPS there! Only four.
    -AUTO_TASK_CONSUMER_GROUP
    -DEFAULT_CONSUMER_GROUP
    -LOW_GROUP
    -SYS GROUP

    Where's my OTHER_GROUPS?

    Oracle 10.2.0.4, Linux x 86.

    mishomor wrote:
    Oracle documentation says that the creation of Simple Plan of resources automatically adds SYS_GROUP to level 1 of the plan and the OTHER_GROUPS at level 3.

    I checked SYS_GROUP and it seems that the SYSTEM is only the default member. What about SYS or SYSMAN or other dba (user) accounts? If a connect as SYS or with my own dba account to do administrative tasks will be to be considered a member of the SYS_GROUP or should I add "admin" users manually including DBSNMP SYS, SYSMAN, and so on...?

    Although the system is added to the group member, Sys sessions would be a part of it. I'm not sure, but I can't seem to find the note where his indeedmentioned the Sys and System would use it.

    Second question. Documentation also indicates that there is, at level 3, OTHER_GROUPS catch-all group. I looked at integrated groups of servers by default and there is no OTHER_GROUPS there! Only four.
    -AUTO_TASK_CONSUMER_GROUP
    -DEFAULT_CONSUMER_GROUP
    -LOW_GROUP
    -SYS GROUP

    Where's my OTHER_GROUPS?

    Not sure where you looked, but I could find right away in my 11201 running on Win Xp professional.

    SQL> l
      1* select consumer_group from  dba_rsrc_consumer_groups
    SQL> /
    
    CONSUMER_GROUP
    ------------------------------
    DSS_GROUP
    DSS_CRITICAL_GROUP
    AUTO_TASK_CONSUMER_GROUP
    ORA$AUTOTASK_URGENT_GROUP
    BATCH_GROUP
    ORA$DIAGNOSTICS
    ORA$AUTOTASK_HEALTH_GROUP
    ORA$AUTOTASK_SQL_GROUP
    ORA$AUTOTASK_SPACE_GROUP
    ORA$AUTOTASK_STATS_GROUP
    ORA$AUTOTASK_MEDIUM_GROUP
    INTERACTIVE_GROUP
    OTHER_GROUPS                        <<<<<<<<<<<<<<<<<<<<<<<<<<
    DEFAULT_CONSUMER_GROUP
    SYS_GROUP
    LOW_GROUP
    ORA$APPQOS_0
    ORA$APPQOS_1
    ORA$APPQOS_2
    ORA$APPQOS_3
    ORA$APPQOS_4
    ORA$APPQOS_5
    ORA$APPQOS_6
    ORA$APPQOS_7
    ETL_GROUP
    
    25 rows selected.
    
    SQL> select * from V$version;
    
    BANNER
    -------------------------------------------------------------------------------
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE    11.2.0.1.0      Production
    TNS for 32-bit Windows: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    
    SQL>
    

    HTH
    Aman...

  • Question about Tablespace default temporary

    Hi, all.

    It is a "Newbie Question"

    If I execute the following SQL statement:

    SQL > select tablespace_name, content from dba_tablespaces, this is what I get + other tablespaces.

    NOM_TABLESPACE... CONTENT

    SYSTEM ....................................... PERMANENT
    TEMP .......................................... TEMPORARY

    My question is about the TEMP tablespace. What is the default permanent tablespace defined by the system? In OEM grid control, where it is explicitly stated that it was defined by the permanent system default storage space?

    How to know for sure if storage space is the temporary tablespace default or not, without run the drop command and get the following message:

    SQL > temp DROP TABLESPACE;
    Drop tablespace temp
    *
    ERROR on line 1:
    ORA-12906: cannot remove the temporary tablespace default


    Thank you!

    Published by: ORA_UMAIR on February 18, 2009 10:12

    Published by: ORA_UMAIR on February 18, 2009 10:13

    Published by: ORA_UMAIR on February 18, 2009 10:13

    Select * from database_properties
    where property_name = 'DEFAULT_TEMP_TABLESPACE ';

    HTH...

  • question of tablespace mode standby

    Hi all

    We have a database of active standby mode READ ONLY WITH EFFECTIVE, which is used for purposes considered. Lately users are facing problems of tablespace temp (ORA-01652: unable to extend temp) on this database. How can we increase the size of the tablespace for standby databases in read-only mode. ?

    SQL > select open_mode from v database $;

    OPEN_MODE

    --------------------

    READ ONLY TO APPLY

    DB version: 11.2.0.2

    OS: AIX

    You can normally add tempfiles to database in read mode only open standaby

  • question of tablespace

    Hi all

    Oracle 11 g 2

    RHEL 5

    I am trying to insert data into a table in another schema

    insert into the table table_name select * from .table_name < another_schema > and get the error as

    Impossible to extend the table of 128 in tablespace < nom_tablespace >

    the size of the source table is 700 MB and I have 3.5 GB of free space in the tablespace where im creating.

    Not sure get this eventhough I have space in the tablespace

    Please let me know what I should check

    Regars,

    Hi Hemant,

    The table in the source schema is not compressed.

    No im using the normal insert as an insert statement in the table_name table don't select * from other_schema.table_name.

    But now the problem is solved.

    Here's what I did.

    I found in which data file structure of the object has been created and found it was created by datafile1.

    changed the datafile1 with autoextend on option and I was able to insert the data without any problem.

    Thanks much :-)

  • SQL question: horizontally to group by

    Hello
    I have a problem to find a way to display the result of a join table. Can someone please help?


    SQL > select * from tab1;

    GNAME SNO
    ---------- ----------
    ABC 5
    DEF 2
    ABC 3

    SQL > select * from tab2.

    GNAME SNO
    ---------- ----------
    ABC 10
    XYZ 5
    DEF 15



    My output using a UNION ALL operation current:

    SQL > select gname, sno1 count (*) Group of tab1 by gname
    2 Union all the
    3 select gname, sno2 count (*) of the tab2 group by gname.

    SNO1 GNAME
    ---------- ----------
    ABC 2
    DEF 1
    ABC 1
    DEF 1
    XYZ 1



    The output I expect:

    GNAME SNO1 SNO2
    ---------- ----------     ----------
    1 2 ABC
    1 1 DEF
    0 1 XYZ



    Thanks in advance.

    Way the easiest would be to encapsulate a slightly modified version of your query in an external as query:

    select gname, sum(sno1) sno1, sum(sno2) sno2
    from (select gname, count(*) sno1 0 sno2
          from tab1
          group by gname
          union all
          select gname, 0 sno1, count(*) sno2
          from tab2
          group by gname);
    

    John

  • Questioning Bigfile tablespace

    What will be the minimum size of a single data file for the creation of bigfile tablespace?

    John Stegeman wrote:
    Why do you need to know? As far as I remember, it's small enough (100 k or less)

    "cute" is correct, but I think it may be a little over a megabyte for the latest versions of Oracle - I think that Oracle reserving 1 MB for the mapping of file space recently, I noticed.

    Concerning
    Jonathan Lewis

  • Question about users &amp; groups

    Today, I want you assign authorization to the person named Jacky. In the tab "Users and groups", I create the username "jacky", then assgin at the root. After that, I try to connect to it with the user name and password, is unavailable. Error Msg: you are not allowed to connect to the server. Why?

    Welcome to the VMware community forums.  Take a look at this - http://www.vm-help.com/esx/esx3i/assigning_permissions/assign_permissions.php.  Also, there is a bug in the update 4 and higher now in which the permissions assigned directly to the virtual machines are removed when you restart the host.

  • Reading only question backup Tablespace

    HII!
    I tried to read-only Table backup space. So, first change the tablespace to aid
    SQL > alter tablespace users read-only;
    Tablespace altered.

    2. then taken backup of all the data files by using the copy of the OS command.

    Now, the issue I'm facing is that can I change the read_write mode table space? If Yes, then how? Help, please...

    I tried to read-only Table backup space. So, first change the tablespace to aid
    SQL > alter tablespace users read-only;
    Tablespace altered.

    2. then taken backup of all the data files by using the copy of the OS command.

    Now, the issue I'm facing is that can I change the read_write mode table space? If Yes, then how? Help, please...

    Yes you can do it,

    SQL > alter tablespace users read write;

    After the successful restoration.

    sys@11GDEMO > select tablespace_name, status of dba_tablespaces where nom_tablespace = "CKPT"

    STATUS TABLESPACE_NAME
    ------------------------------ ---------
    CKPT ONLINE

    sys@11GDEMO > alter tablespace ckpt read-only;

    Tablespace altered.

    sys@11GDEMO > select tablespace_name, status of dba_tablespaces where nom_tablespace = "CKPT"

    STATUS TABLESPACE_NAME
    ------------------------------ ---------
    CKPT READ ONLY+.

    sys@11GDEMO > alter tablespace ckpt read write; +

    Tablespace altered.

    sys@11GDEMO > select tablespace_name, status of dba_tablespaces where nom_tablespace = "CKPT"

    STATUS TABLESPACE_NAME
    ------------------------------ ---------
    CKPT online+.

    sys@11GDEMO >
    Published by: CKPT July 6, 2011 11:22

  • Question of Tablespace Temp datafile.

    Hi Oracle gurus,

    the problem occurred when my file temp01.dbf to increase the size of certain MBs to 30 GB! (Within weeks)
    without doing RnD on advice, datafile temp01.dbf has been deleted! ,
    now a text file has been created, I renamed it with the same name 'temp01.dbf '!

    now my tasks fail with the error:

    1157: 64000: java.sql.SQLException: ORA-01157: cannot identify/lock data file 201 - see DBWR trace file
    ORA-01110: data file 201: ' C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\TEMP01. DBF'

    I tried to add a data file over to the storage space according to the steps below:
    1. connect to sqlplus DBA (user sys)
    2. stop; -Removed database and Oracle Instance will stop.
    3. start; -Oracle instance started.
    4 run this query
    alter tablespace temp add datafile
    ' C:\oracle\product\10.2.0\oradata\orcl\TEMP02. DBF' SIZE 32 M;

    but still the error points to Temp01.

    The funny part, I wrote here that I don't get the name of the data file anywhere in the comic book.

    I've run this query below

    SELECT FILE_NAME IN DBA_DATA_FILES;

    and there is no name of data file with "Temp01" or "Temp02".

    I get the name 'TEMP' Tablespace when performing "SELECT TABLESPACE_NAME FROM DBA_TABLESPACES";

    to add more of what the above

    I tried to delete the file with the name 'TEMP01. DBF. "
    by running

    alter tablespace temp drop datafile
    ' C:\oracle\product\10.2.0\oradata\orcl\TEMP01. DBF';

    I get the following error:
    ORA-03219: Tablespace 'TEMP' is managed by dictionary, offline or temporary

    This storage space (TEMP) is temporary (Default) and his allocation_type is uniform


    I'm looking for

    1 remove the Temp01 data file and rename the temp02 with her.
    2 allow the name of auto extension datafile renamed as well as default data temp file features.

    I'm at the point of no return?..... .i am new to this level of work... I tried to solve the problem by taking the forumns References... somwhr but still missing...

    Need help to solve this problem.

    Hello

    4 run this query
    alter tablespace temp add datafile
    ' C:\oracle\product\10.2.0\oradata\orcl\TEMP02. DBF' SIZE 32 M;

    but still the error points to Temp01.

    the query should be as below

    ALTER TABLESPACE
    Add TEMPFILE '' SIZE M;
    example:
    ALTER TABLESPACE temp_new
    Add TEMPFILE ' / u02/oradata/tempnew02.dbf' SIZE 200 M;

    >

    The part funny, I noted here that I don't get the name of the file of data anywhere in the DB.

    I've run this query below

    SELECT FILE_NAME IN DBA_DATA_FILES;

    and there is no name of data file with "Temp01" or "Temp02".

    We are unable to display a temporary file in dba_data_files... It's funny...

    Use tempfile $ v and v$ temp_space_header to view a temporary file...

    to make offline / online
    ALTER DATABASE TEMPFILE '' offline / online;

    MAKE USE OF THE TEMPORARY TABLESPACE DEFAULT

    ALTER TABLESPACE TEMPORARY for executives from the DATABASE default;

    the use of thiese views

    SELECT *.
    FROM database_properties
    Property_name WHERE = 'DEFAULT_TEMP_TABLESPACE ';

    SELECT file_name, nom_tablespace
    FROM dba_temp_files;

    Kind regards
    Deepak

  • Question about tablespace in Oracle 10 g

    In 10g, this view is used to store the State of a tablespace. I need to be able to check whether or not a tablespace is in read-only mode. I understand that I can EM used to show status, but EM tells me that the tablespace is in read/write mode, and users insist that the tablespace is in read-only mode.

    Thank you in advance for your help!

    Are you sure? I think that in READING-WRITING and ONLINE means the same thing.

    SQL> select tablespace_name from dba_tablespaces;
    
    TABLESPACE_NAME
    --------------------------------------------------------------------------------
    SYSTEM
    UNDOTBS1
    SYSAUX
    TEMP
    USERS
    TEST
    
    6 rows selected.
    
    SQL> alter tablespace test read only;
    
    Tablespace altered.
    
    SQL> select tablespace_name, status from dba_tablespaces;
    
    TABLESPACE_NAME
    --------------------------------------------------------------------------------
    STATUS
    ---------------------------
    SYSTEM
    ONLINE
    
    UNDOTBS1
    ONLINE
    
    SYSAUX
    ONLINE
    
    TABLESPACE_NAME
    --------------------------------------------------------------------------------
    STATUS
    ---------------------------
    TEMP
    ONLINE
    
    USERS
    ONLINE
    
    TEST
    READ ONLY
    
    6 rows selected.
    
    SQL> alter tablespace test read write;
    
    Tablespace altered.
    
    SQL> 
    

    Edited by: P. Forstmann may 28, 2009 18:36

  • Qeustion about Group tablespace temp

    Hi all

    I'm new to this concept. I've read about it, but there is something I'm not sure I understand.
    If I have a temporary tablespace group using temp1 and temp2 tablespace and a user to submit a large query, the query will use both temp1 and temp2 or just 1 of them?

    Group name: temp
    Tablespace: temp01 (data temp01.dbf 1 file)
    Tablespace: temp02 (data temp02.dbf 1 file)

    Thank you!

    It would depend if the query is a series or parallel query. If it is a request of series, he'd be with this tablespace itself with which it is associated at the start. But if this is a parallel query, slaves can go to different storage spaces.

    Aman...

Maybe you are looking for