associated tablespace data file

Hello
How can we find out what all the data file associated with a tablespace?

Select file_name in dba_data_files where nom_tablespace = «...» » ;

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:21

    Dear 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

  • 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

  • Users tablespace - data file is 24.5 GB, only 1.2 GB used - what should I do?

    Hi all

    In my database I have users tablespace and its data file is users01.dbf. File size is 24.5 GB, but the data used are of 1.2 GB. I got this information from OEM, see image below:
    https://picasaweb.Google.com/100555146235257804098/Oracle_a1#5759303022195932370

    How I can free unused space of 23GB?

    Just to let you know to my knowledge, I am a developer of report OBI.

    Thank you!

    >
    I executed the script sql on your link http://www.oracle-ckpt.com/how-to-shrink-datafiles-adjusting-hwm/

    It gives only 7 GB. If I can save only 7 GB so it will not help me. This is the maximum possible savings, you can do.

    Do you mean if I load 20 GB of data now in the post above, the database uses the current data file to increase the size of the file? Or it adds to the size of the file, that is to say 25 + 20 = 45 GB?

    It seems CanGrow is enabled for the USERS tablespace: CANGROW - YES

    If it uses the size of the file, then I can deal with the current structure. If we add to the file so I can't move forward.

    Your data file already occupied 23 GB, if you load another 20 GB of data. Of course, it can take another 20 GB, if all 23 GB already existing aid. Have you talked about the link that is mentioned by Sir Jonathan Lewis?

  • 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
    Jim

    The 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

  • Tablespace, data file auto-extension

    Hi gurus!

    I'm new here, I have a dout.

    What you recommend me, generate a data file auto-étend or generate more data for a tablespace file?

    Is there a problem with the performance?

    Rigth now I a tablespace with a self-aggrandizing data file ' extends, with an increment of 10240KB, it of a table with a level of transaction gran space every day, allowed the size of increace?

    Thanks in advance

    879411, I'm not sure I understand everytihing say, but in general you want that data files are rarely extend to 100%. You do not want to set the next is large enough that the file would extend only rarely. You would balance against if at some point, you expect the items being supported in the tablespace to each stop growing or the rate of growth slows down significantly.

    Choose a file size which would become perhaps once a week might be a good size to start.

    At least the file extend the size should match the object to the extent that is required. In the case of a managed tablespace locally allocated by self, this could be 64 M.

    HTH - Mark D Powell.

  • Tablespace, data file, Schmeas in 10 gr 2

    Hello

    What are v$ views or tables instances where I can join their data files tablepspaces performs and tablespaces to their corresponding schemas?

    I need to prepare a report for having overview of all data files and its elements, and I need this information in order to complete the report.

    Thank you
    R

    dba_ts_quotas DESC
    DESC DBA_DATA_FILES

  • Undo tablespace/data files

    Oracle 9i

    In production, we get the undo data files:

    SUM (MAXBYTES) SUM (USER_BYTES)
    33554432000 12823953408

    This table has 90 million records

    I estimated the size of the table:
    Num_Rows * avg_row_len = 12875211284

    We need to insert records to the new table 55 million. When insert, I want to just run insert in... . Select statement once, only to commit only once.
    do you think that undo tablespace is large enough to contain 55 million records based on the data above undo files?
    Thank you
    S.

    Also add don't work with it selects only works with INSERT, and you have already created a table in nologging mode. If you are on 10 and your management measure is set to auto, then use it.

    create table st.order_temp
    TABLESPACE USER_DATA
    NOLOGGING
    NoCache
    noparallel
    in select
    ...
    ...
    all columns
    ...
    ...
    of st.order_temp
    When trunc (insert_date) > = add_months (trunc (sysdate, 'MONTH'),-12);

    Published by: OrionNet on December 9, 2008 02:19

  • 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

  • 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/

  • drop tablespace/data file

    version 817 / Solaris 8 operating system
    There is request the user to disconnect the tablespace and then slide it and its file of data... I'll be able start db without problem after that?

    Published by: DBA2011 on March 27, 2012 14:11

    DBA2011 wrote:
    version 817 / Solaris 8 operating system
    There is request the user to disconnect the tablespace and then slide it and its file of data... I'll be able start db without problem after that?

    Published by: DBA2011 on March 27, 2012 14:11

    I expect the answer is YES!

  • CAN I RECOVER DELETED DATA FILE AND ITS TABLESPACE BY USING FLASHBACK DATABASE

    Hello!

    I CREATED THE TABLESPACE WITH ITS DATA FILE.

    SQL > create tablespace usmantbs datafile 'E:\oracle\product\10.2.0\oradata\orcl\usman.dbf' recording petit_fichier the size of 10 M extent management local segment space management auto;

    THEN, I CREATED A USER AND HIM ENTRUST THIS TABLESPACE.

    SQL > create default profil_utilisateur identified by Neil Leal Microsoft account unlock default tablespace usmantbs;
    SQL > grant connect, resources for Neil;

    I CONNECTED WITH Neil as USER AND CREATED a TABLE.

    SQL > conn Leal/Leal
    SQL > create table baseball (id number (9));

    SQL > select current_scn from v$ database;

    CURRENT_SCN
    ---------------------
    545863

    Then I deleted the tablespace including contents and data files...

    SQL > drop tablespace usmantbs including content and data files;

    I have no backup of this data file, but my database is in archive log...

    So I can... .flashback database to the SNA 545863 as it was before the fall... to get back my along its tablespace data file
    Wil I get my datafile back or not? Help, please...

    You can test it by yourself easily :) You will not be able to open your database
    After getting the error, just rename this data file and flashback again. Then open your database

    C:\Documents and Settings\Administrator>sqlplus "/as sysdba"
    
    SQL*Plus: Release 10.2.0.1.0 - Production on Sat Aug 1 14:20:34 2009
    
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    
    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup mount
    ORACLE instance started.
    
    Total System Global Area  293601280 bytes
    Fixed Size                  1248624 bytes
    Variable Size              96469648 bytes
    Database Buffers          192937984 bytes
    Redo Buffers                2945024 bytes
    Database mounted.
    
    SQL> alter database archivelog;
    
    Database altered.
    
    SQL> alter database flashback on;
    
    Database altered.
    
    SQL> alter database open;
    
    Database altered.
    
    SQL> create tablespace tb datafile 'c:\tb.df' size 1m;
    
    Tablespace created.
    
    SQL> create user tb identified by tb;
    
    User created.
    
    SQL> grant dba to tb;
    
    Grant succeeded.
    
    SQL> alter user tb default tablespace tb;
    
    User altered.
    
    SQL> create table tb (id number);
    
    Table created.
    
    SQL> select current_scn from v$database;
    
    CURRENT_SCN
    -----------
         547292
    
    SQL> drop tablespace tb including contents and datafiles;
    
    Tablespace dropped.
    
    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup mount
    ORACLE instance started.
    
    Total System Global Area  293601280 bytes
    Fixed Size                  1248624 bytes
    Variable Size              96469648 bytes
    Database Buffers          192937984 bytes
    Redo Buffers                2945024 bytes
    Database mounted.
    
    SQL> flashback database to scn 547292;
    flashback database to scn 547292
    *
    ERROR at line 1:
    ORA-38795: warning: FLASHBACK succeeded but OPEN RESETLOGS would get error
    below
    ORA-01245: offline file 5 will be lost if RESETLOGS is done
    ORA-01111: name for data file 5 is unknown - rename to correct file
    ORA-01110: data file 5: 'C:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\UNNAMED00005'
    
    SQL> alter database open resetlogs;
    alter database open resetlogs
    *
    ERROR at line 1:
    ORA-01245: offline file 5 will be lost if RESETLOGS is done
    ORA-01111: name for data file 5 is unknown - rename to correct file
    ORA-01110: data file 5: 'C:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\UNNAMED00005'
    
    SQL> select name from v$datafile;
    
    NAME
    --------------------------------------------------------------------------------
    
    C:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST1\SYSTEM01.DBF
    C:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST1\UNDOTBS01.DBF
    C:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST1\SYSAUX01.DBF
    C:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST1\USERS01.DBF
    C:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\UNNAMED00005
    
    SQL> alter database create datafile 'C:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\UNNAMED00005' as 'c:\tb.dbf';
    
    Database altered.
    
    SQL> flashback database to scn 547292;
    
    Flashback complete.
    
    SQL> alter database open resetlogs;
    
    Database altered.
    
    SQL>
    
    SQL> select * from tb;
    
    no rows selected
    
    SQL> select name from v$datafile;
    
    NAME
    --------------------------------------------------------------------------------
    
    C:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST1\SYSTEM01.DBF
    C:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST1\UNDOTBS01.DBF
    C:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST1\SYSAUX01.DBF
    C:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST1\USERS01.DBF
    C:\TB.DBF
    
    SQL> select name from v$tablespace;
    
    NAME
    ------------------------------
    SYSTEM
    UNDOTBS1
    SYSAUX
    USERS
    TEMP
    TB
    
    6 rows selected.
    
    SQL>
    

    - - - - - - - - - - - - - - - - - - - - -
    Kamran Agayev a. (10g OCP)
    http://kamranagayev.WordPress.com
    [Step by step installation Oracle Linux and automate the installation by using Shell Script | http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/]

    Published by: Kamran Agayev, a., July 27, 2009 14:38

  • Can system table space cause multiple data files in several places?

    Hi experts,

    Our current system has a partition to keep the system tablespace data files, but I assumed that the partition is wrongly estimated and the size was maintained only 2 GB. Now the partition's got full and it seems no way to increase the partition from the OS. The only option I have is to create the new data for system tablespace file in another free partition. Is this possible? I have to consider all things important before doing this? Also can I create new data with the regular create command file or need to do something special for system tablespace?

    Thanks in advance

    Yes, you can create two data files for system tablespace into two partitions.

    To reduce the space in the system tablespace - you should check what are segments that occupy the space in the system tablespace.

    To get the examples if you have the Audit DB - then you can move the table to tablespace someother depending on availability.

  • Why the Media recovery is necessary once a data file is brought back to fashion online?

    Hi DBAs,

    Consider the following scenario:

    Offline data file:

    08:09:38 coredev > select status, name from v$ datafile where name like '% UNDO4% ';

    NAME OF THE STATE

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

    F:\ORACLE\ORADATA\CD\UNDO4 ONLINE. DBF

    08:09:47 coredev > alter database datafile ' F:\ORACLE\ORADATA\CD\UNDO4. DBF' offline;

    Database altered.

    08:09:58 coredev > select status, name from v$ datafile where name like '% UNDO4% ';

    NAME OF THE STATE

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

    RETRIEVE F:\ORACLE\ORADATA\CD\UNDO4. DBF

    08:10:02 coredev > select * from v$ tablespace where name = "UNDO";

    ENC FLA BIG TS # NAME INC.

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

    UNDO 33 YES NO YES

    Data file online:

    08:10:53 coredev > alter database datafile ' F:\ORACLE\ORADATA\CD\UNDO4. DBF' online;

    ALTER database datafile ' F:\ORACLE\ORADATA\CD\UNDO4. DBF' online

    *

    ERROR on line 1:

    ORA-01113: file 21 needs media recovery

    ORA-01110: data file 21: ' F:\ORACLE\ORADATA\CD\UNDO4. DBF'

    08:11:04 coredev > recover datafile ' F:\ORACLE\ORADATA\CD\UNDO4. DBF';

    Complete media recovery.

    08:11:13 coredev > alter database datafile ' F:\ORACLE\ORADATA\CD\UNDO4. DBF' online;

    Database altered.

    08:11:49 coredev > select status, name from v$ datafile where name like '% UNDO4% ';

    NAME OF THE STATE

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

    F:\ORACLE\ORADATA\CD\UNDO4 ONLINE. DBF

    Now my doubt is:

    1.Pourquoi Media recovery is necessary once a data file brought to online from offline mode?

    2. why DB not open and throws the error message after brining online of offline?

    3. Why is he asking for recovery of the media?

    I'm very confused...!

    Kind regards

    Ritu

    In order to make the UNDO4 data file. Coherent DBF with other UNDO tablespace data files, when you bring it from OFFLINE to ONLINE, the changes that happened during the period offline needs to be applied to this data file hence it is requires media recovery.

    It is directed by my understanding.

  • data file

    If I use several for a tablespace data files, such as

    create tablespace TEST
    DataFile ' / oradata/ts_01.dbf ' size 32G,.
    ' / oradata/ts_02.dbf ' size 32G


    How ORACLE will write to these files? I mean, he'll write a whole first, after it is full, then write to another? Or he's going to write to both of them, even though none of them are complete?


    Thank you


    Scott

    scottjhn wrote:
    If I use several for a tablespace data files, such as

    create tablespace TEST
    DataFile ' / oradata/ts_01.dbf ' size 32G,.
    ' / oradata/ts_02.dbf ' size 32G

    How ORACLE will write to these files? I mean, he'll write a whole first, after it is full, then write to another? Or he's going to write to both of them, even though none of them are complete?

    Thank you

    Scott

    It depends on.

    See http://edstevensdba.wordpress.com/2012/02/01/allocation-of-extents-in-multi-file-tablespaces/

Maybe you are looking for

  • Drive recovery for Equium A60-157 PSA67E

    Has anyone got a copy of the disc recovery issued with an equium A60-157 PSA67E as I am trying to get this laptop for work and unable to get its hotkeys control and be able to work. I think I've worn out my wellcome with Equium forum and technical ap

  • Qosmio X 500-fault of screen not covered by the warranty?

    So as said elsewhere the X 500 series has a certain design/manufacturing fault that allows a "shadow" be visible on the entire length of the screen at the height of the taskbar (so don't not visible in windows, but jobs is full screen, like movies, j

  • The installation of El Capitan on new computer

    I installed El Capitan on my MacBook Pro last December. "But now I have a new MacBook Pro, that came with v10.10.5 of Yosemite). I can't redownload El Capitan. When I go to the App Store, it shows that I have (my account even) has already downloaded

  • Can I remove and reinstall the font without records book?

    On my MacBook Pro 10.6.8 FontBook operates as a two-bob watch - do not let me access policies in Freehand MX that are definitely in the font book, among other things. The operating system used on 10.6.3 and I upgraded to 10.6.8 via a Mac/PC independe

  • compiled VI works not on the same PC, when running as VI works fine

    I have situation where my VI loads external dll, which seems extra charges of the dll. While my VI shows the dependence to only the main DLL, others are not included in the project. This seems not to bother the LabView runtime during execution of the