Importan Tablespaces in R/3

Dear All,
Hi to all Basis Gurus'.
I have a critical issue regarding space.
Can anyone tell me what are the critical TableSpace in SAP R/3.I mean which Tablespaces usually get filled at regular Basis and need more space.
Existing Tablespaces are :
PSAP<SID>
PSAP<SID>620
PSAP<SID>USR
PSAPTEMP
PSAPUNDO
SYSTEM
Currently my PSAP<SID> tablespace is 91% used.And available FreeSpace on the disk is 27 GB
I am not sure whether this is sufficent enough to carry on with the development activities.
Regards
KiranKumar.D

Hi,
The regular increase table name is PSAPBTABD & PSAPBTABI.
Regards,
Anil

Similar Messages

  • Goldengate 11.1.1.1 Oracle 11.2 Encrypted tablespace

    Please advise why this error is showing and help us on this situation
    Line: -----
    Windows 2008 x64
    Oracle 11.2.0.1 x64
    Oracle Goldengate 11.1.1.1 x64
    ++++++++++++SOURCE++++++++++++++
    sql>conn / as sysdba
    **************CREATE TABLESPACE AND TABLE********************
    CREATE TABLESPACE encrypted_ts
    DATAFILE 'd:\oradata\test\encrypted_ts01.dbf' SIZE 128K
    SIZE 15M
    AUTOEXTEND ON NEXT 20M
    MAXSIZE UNLIMITED
    LOGGING
    ENCRYPTION USING 'AES192'
    EXTENT MANAGEMENT LOCAL
    SEGMENT SPACE MANAGEMENT AUTO
    DEFAULT NOCOMPRESS STORAGE(ENCRYPT);
    CREATE TABLE TESTA
    ID NUMBER,
    NAME VARCHAR2(16 CHAR)
    LOGGING
    NOCOMPRESS
    NOCACHE
    NOPARALLEL
    MONITORING;
    cmd> mkstore -wrl d:\test\wallet -createEntry ORACLE.SECURITY.CL.ENCRYPTION.ORACLEGG
    Enter <secret> : test
    cmd>mkstore -wrl d:\test\wallet -viewEntry ORACLE.SECURITY.CL.ENCRYPTION.ORACLEGG
    ORACLE.SECURITY.CL.ENCRYPTION.ORACLEGG = test
    sql>ALTER SYSTEM SET ENCRYPTION WALLET CLOSE IDENTIFIED BY 'welcome1';
    sql>ALTER SYSTEM SET ENCRYPTION WALLET OPEN IDENTIFIED BY 'welcome1';
    Compile dbms_internal_clkm package.
    sql>@prvtclkm.plb
    sql>GRANT EXECUTE ON SYS.DBMS_INTERNAL_CLKM TO GGS_OWNER;
    **********************************GOLDENGATE******************************************
    ggsci>dblogin userid ggs_owner, ggs_owner
    ggsci>add extract ext2ts, tranlog, begin now
    ggsci>add rmttrail D:\ggs\dirdat\ts, extract ext2ts
    ggsci>ENCRYPT PASSWORD test ENCRYPTKEY DEFAULT
    Using default key...
    Encrypted password: AACAAAAAAAAAAAEAZAMEFCPGPEOHYDHE
    ggsci>edit params ext2ts
    EXTRACT ext2ts
    USERID ggs_owner, PASSWORD ggs_owner
    RMTHOST 192.168.0.2, MGRPORT 7809
    RMTTRAIL D:\ggs\dirdat\ts
    DBOPTIONS DECRYPTPASSWORD AACAAAAAAAAAAAEAZAMEFCPGPEOHYDHE ENCRYPTKEY DEFAULT -- ???
    TABLE TESTA;
    +++++++++++++TARGET++++++++++++++++
    sql> conn / as sysdba
    **************CREATE TABLESPACE AND TABLE********************
    cmd>
    CREATE TABLESPACE ts
    LOGGING DATAFILE 'd:\oradata\test\ts.dbf'
    SIZE 15M
    AUTOEXTEND ON NEXT 20M
    EXTENT MANAGEMENT
    LOCAL SEGMENT SPACE
    MANAGEMENT AUTO;
    CREATE TABLE TESTA
    ID NUMBER,
    NAME VARCHAR2(16 CHAR)
    LOGGING
    NOCOMPRESS
    NOCACHE
    NOPARALLEL
    MONITORING;
    ************************************GOLDENGATE*****************************************
    ggsci>DBLOGIN USERID ggs_owner, PASSWORD ggs_owner
    ggsci>ADD CHECKPOINTTABLE GGS_OWNER.CHKPTAB
    ggsci>ADD REPLICAT rep1, EXTTRAIL D:\ggs\dirdat\ts, CHECKPOINTTABLE GGS_OWNER.CHKPTAB
    ggsci>EDIT PARAMS rep1
    REPLICAT rep1
    ASSUMETARGETDEFS
    USERID ggs_owner, PASSWORD ggs_owner
    MAP GGS_OWNER.TESTA, TARGET GGS_OWNER.TESTA;
    +++++++++++++TARGET+++++++++++++++
    ggsci>start replicat rep1
    +++++++++++++SOURCE+++++++++++++++
    ggsci>start extract ext2ts
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!EXTRACT - REPORT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    2011-07-05 11:46:50 ERROR OGG-01028 ORA-06521: PL/SQL: Error mapping function
    ORA-06512: at "SYS.DBMS_INTERNAL_CLKM", line 3
    ORA-06512: at line 1.
    2011-07-05 11:46:50 ERROR OGG-01668 PROCESS ABENDING.
    Edited by: Oyunbold on Jul 7, 2011 3:25 AM
    Edited by: Oyunbold on Jul 19, 2011 6:09 PM

    Yesterday, I met the same problem. How do you solve it ? Plz, help me.
    OS : AIX 5.3
    DB : Oracle 11.1.0.7
    OGG : 11.1.1.1
    2011-09-06 15:26:56 INFO OGG-01515 Oracle GoldenGate Capture for Oracle, eora01.prm: Positioning to begin time Sep 2, 2011 6:50:49 PM.
    2011-09-06 15:26:56 ERROR OGG-01028 Oracle GoldenGate Capture for Oracle, eora01.prm: ORA-12427: invalid input value for FLAGS parameter ORA-06512: at "SYS.DBMS_INTERNAL_CLKM", line 3 ORA-06512: at line 1.
    2011-09-06 15:26:56 ERROR OGG-01668 Oracle GoldenGate Capture for Oracle, eora01.prm: PROCESS ABENDING.
    Our Extract configuration is below :
    EXTRACT EORA01
    USERID ogg, PASSWORD AACAAAAAAAAAAADAHBMDHBECUCZBPIYE, encryptkey XKEY
    DBOPTIONS DECRYPTPASSWORD AACAAAAAAAAAAAIARIXFKCQBMFIGFARA ENCRYPTKEY DEFAULT
    ENCRYPTTRAIL
    exttrail ./dirdat/ea
    EOFDELAYCSECS 50
    FLUSHCSECS 50
    DISCARDFILE ./dirrpt/EORA01.DSC, APPEND, MEGABYTES 500
    DISCARDROLLOVER AT 07:30
    TABLE TVANBT.TLF_BUYS_MISS;
    ...

  • Error while creating a new tablespace

    Hi all,
    i got the following errors when i tried to create a new tablespace in my database.
    ORA-00604: error occurred at recursive SQL level string
    ORA-01655: unable to extend cluster string.string by string in tablespace string
    can anyone suggest any possible reason?
    thanks in advance..

    Hi,
    ORA-01655 unable to extend cluster string.string by string in tablespace string
    Cause: Failed to allocate an extent for cluster segment in tablespace.
    Action: Use ALTER TABLESPACE ADD DATAFILE statement to add one or more files to the tablespace indicated
    Pls check out the disk space. The command you issued is working for me and for all. Might be some errors in your disk.
    Regards,
    Raj

  • There is no data in the partitioned  tablespace?

    I am creating a new partition table like this:
    create table PART_TABLE
    eid number(10),
    ename varchar2(30),
    hiredate date,
    jdate date,
    pdate date
    nologging
    parallel
    partition by range(hiredate)
    partition par_new1 values less than
    (to_date('01-JAN-2009','DD-MON-YYYY'))
    tablespace PART_MOHAN,
    partition par_new2 values less than
    (to_date('01-JAN-2010','DD-MON-YYYY'))
    tablespace PART_MOHAN2
    Now,there is no data in the Partitioned table.
    Now, i am inserting rows into the table.
    But, rows are inserting into the table not in the partition tablespaces.
    I checked the used space and free space of tablespaces, there is no change in size after inserting the row also.
    But, when i check the table, rows have inserted into the table.
    But, i dont know , in which tablespace these data are stored. How to find out that?
    SQL> INSERT INTO part_table values(1,'MohanaKr','01-JAN-2008','01-JAN-2009','01-JAN-2009');
    1 row created.
    SQL> /
    1 row created.
    SQL> /
    1 row created.
    SQL> /
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> select count(*) from part_mohan;
    COUNT(*)
    4
    SQL> select * from part_table;
    EID ENAME HIREDATE JDATE PDATE
    1 MohanaKr 01-JAN-08 01-JAN-09 01-JAN-09
    1 MohanaKr 01-JAN-08 01-JAN-09 01-JAN-09
    1 MohanaKr 01-JAN-08 01-JAN-09 01-JAN-09
    1 MohanaKr 01-JAN-08 01-JAN-09 01-JAN-09
    But,
    SQL> select PARTITION_NAME,TABLESPACE_NAME,num_rows from dba_tab_partitions where table_name='PART_MOHAN';
    PARTITION_NAME TABLESPACE_NAME NUM_ROWS
    PAR_NEW1 PART_MOHAN
    PAR_NEW2 PART_MOHAN2

    Firstly, the NUM_ROWS column is populated by statistics gathering. It is not a true realtime accurate of the number of rows in the table but at a point in time. Secondly, try something like the following if you want to see the row count per partition:
    1* select partition_name from dba_tab_partitions where table_name = 'SALES' an
    d table_owner = 'SH'
    PARTITION_NAME
    SALES_1995
    SALES_1996
    SALES_H1_1997
    SALES_H2_1997
    SALES_Q1_1998
    SALES_Q1_1999
    SALES_Q1_2000
    SALES_Q2_1998
    SALES_Q2_1999
    SALES_Q2_2000
    SALES_Q3_1998
    SALES_Q3_1999
    SALES_Q3_2000
    SALES_Q4_1998
    SALES_Q4_1999
    SALES_Q4_2000
    16 rows selected.
    SQL> select count(*) from sh.sales;
    COUNT(*)
    1016271
    SQL> select count(*) from sh.sales partition(sales_q4_2000);
    COUNT(*)
    74736

  • Erro tablespace no GRC, notas paradas após correção

    Olá pessoal,
    Hoje de madrugada houve um problema de tablespace no GRC e todas as notas emitidas durante o período, ficaram paradas com Status 01 (Received from feeder system).
    Após a correção, as novas notas emitidas foram processadas normalmente porém as anteriores ficaram paradas.
    Verifiquei que nesse momento em que ocorreu o problema, as notas que chegaram não foram enviadas para assinatura, occorreu um dump, porém também não temos registro desse erro no monitor do GRC.
    Algumas notas criadas inclusive não geraram histórico nas tabelas XNFE, ficando com Status 00 no monitor.
    Tentamos re-enviar as notas para verificar se o GRC reprocessava as mesmas, porém também sem sucesso.
    Tentamos também forçar um histórico de erro de assinatura na tabela XNFE/BAT_HIST para re-enviar a assinatura, porém no monitor ficou com status "NF-e Data Re-Requested" e não enviou a assinatura.
    Alguem já passou por este problema. Existe alguma forma de re-enviar estas mensagens? Ou de eliminar o histórico das mesmas?
    Obrigada!
    Vanessa

    Bom dia Vanessa,
    Avalie caso a caso o que aconteceu e faça a intervenção sempre inserindo algum histórico novo ao invés de modificar (rastreabilidade) e coloque no campo de usuário algo como CREEEEU rsss (brincadeira, coloque um usuário ou uma identificação tipo o numero do chamado).
    Vamos lá:
    - Primeiro verifique no PI se tem alguma fila (SMQ2) que possa ser restartada ou se a mensagem chegou e está scheduled (SXI_MONITOR) com opção de restart. Isso pode diminuir as intervenções manuais necessárias.
    - Para as que ficaram paradas como 01 ou 02 ou 00, insira um status novo na nfe_hist 02 / 24 (erro de assinatura) permitirá você fazer o restart no monitor. Ao restart o GRC irá chamar no ERP a função J_1B_NFE_MS_REQUESTS_DATA (veja se SAP Note 1234054)
    Atenciosamente, Fernando Da Rö

  • ORA-01658: unable to create INITIAL extent for segment in tablespace

    NEW REPOSITORY INSTALLATION ERROR!!
    I want to install a new Repository using Oracle9iR9.2.0.1 and iDS10g on windowsXP Professional the same machine.
    After running all the SQL scripts ( ckqa,ckvalqa,ckcreate,ckreport) with success to installing a new Repository on my Database using "the Scripts Method",I start the Repository Administration Utility( RAU) to scheck the priveleges and so on.
    After pressing the Install button in the RAU:
    -I take public synonyms
    -I scheck the box for "Support Designer Objects", then
    -The Repository size is Medium
    -I have not change the defauft Tablespace of the Repository_Manager names TEMPORARY_TABLES to store the index and table of System Data....Diagram Data.
    After Starting, the Installation began an stop by installing some Tables like schown :
    Operation: Started : 07/03/04 20:26:32
    Reading File: cktabs.sql
    Object : TABLE CDDL_TMP_TBL
    Executing statement(s)...
    Verifying...
    .and so on till....uns so weiter bis
    Reading File: cktabs.sql
    Object : TABLE RM$INFO
    Executing statement(s)...
    Error Submitting Definition: User intervention required...
    RME-02124: Failed to execute SQL statement: CREATE TABLE RM$INFO
    (NAME VARCHAR2(128) NOT NULL
    ,VALUE VARCHAR2(128)
    Storage (initial 4K next 4K pctincrease 0) Tablespace TEMPORARY_TABLES
    ORA-01658: unable to create INITIAL extent for segment in tablespace TEMPORARY_TABLES
    Dumping Buffer...
    CREATE TABLE RM$INFO
    (NAME VARCHAR2(128) NOT NULL
    ,VALUE VARCHAR2(128)
    ...End of Buffer
    User Requested: Stop Process
    When I read the Help of the Error the
    CAUSE was: Failed to find sufficient contiguous Space to allocate INITIAL extend for Segment being created.
    ACTION: Use ALTER TABLESPACE ADD DATAFILE to add additional space to the tablespace or retry with a smaller Value for initial.
    I then try to resolve it by schecking and changing the Values of INITIAL_VALUE and NEXT_VALUE in the ckparams.txt to 500k.I change the Values of TEMPORARY_TABLES(10214 to 51200k) and TEMPORARY_INDEXES from (20000 to 100000k).Then I run the scripts @ckparams.txt, @ckvalqa, @ckcreate but
    -pressing the Scheck Privileges Button on the RAU still give me 106k for the INITIAL_ and NEXT_VALUE.
    -And the installato still stop with the same Error.
    Question: How schould I resolve this Configuration?
    You could respond in ENGLICH, GERMAN or FRENCH
    Thank you for your Help!

    You are running into database errors. You should refer to the database documentation on how to adjust the size your tablespaces. The online Designer installation guide will advise you as to the sizes of tablespaces you require. (http://otn.oracle.com/pls/wocprod/docs/page/ocom/technology/products/designer/supporting_doc/Des10g_9044/cmnhlp72/rep_insgde/igttl_9i.htm)
    Regards
    Sue

  • Index on Partitioned Table with Some ReadOnly Tablespaces

    We have a warehouse with fact tables range partitioned on date - daily partitions with each month worth of partitions put into a specific monthly tablespace. Each month, we set the prior month's tablespace to READONLY. So our table ends up having data in readonly and read-write tablespaces.
    We now have a change we need to make to one of the fact tables - we need to add a new column AND add an index to that column. But because we have partitions in readonly state, Oracle doesn't let us create the index and it also doesn't let us update the local unique key (unique index).
    Is there a way we can do this without having to put the tablespaces in read-write mode? As importantly, what happens when we offline or drop some of the older tablespaces (for archiving purposes)? We need to find a way to add the index on just the read-write partitions.
    Thanks.

    We have a warehouse with fact tables range
    partitioned on date - daily partitions with each
    month worth of partitions put into a specific monthly
    tablespace. Each month, we set the prior month's
    tablespace to READONLY. So our table ends up having
    data in readonly and read-write tablespaces.
    We now have a change we need to make to one of the
    fact tables - we need to add a new column AND add an
    index to that column. But because we have partitions
    in readonly state, Oracle doesn't let us create the
    index and it also doesn't let us update the local
    unique key (unique index).
    Is there a way we can do this without having to put
    the tablespaces in read-write mode? As importantly,
    what happens when we offline or drop some of the
    older tablespaces (for archiving purposes)? We need
    to find a way to add the index on just the read-write
    partitions.
    Thanks.Hi,
    Improvements in Oracle 10g to maintain local-partitioned indexes when you use partition DDL commands:
    add partition, split partition, merge partiton, move partition.
    ALSO, the associated indexes NO LONGER have to be stored on the same tablespace as the table (i.e. answer to your question).
    On Oracle 9i: Local indexes are recommended on data warehouse platforms. In an OLTP system, global indexes are more common. On a data data warehouse, problems can be isoloted to one partition, the partitions moved, made r/o (like yours), no local indexes need to be rebuilt
    Regarding your issue:
    We now have a change we need to make to one of the
    fact tables - we need to add a new column AND add an
    index to that columnTo maintain the simplicity + functionality of your DW configuration, I think you need to change the TS to R/W, update the objects, then alter to R/O.
    fyi
    http://www.oracle.com/technology/deploy/availability/htdocs/online_ops.html

  • Backing up and restoring tablespaces with RMAN

    We have some tables that we want to backup and other tables that we don't.
    We are separating these tables by tablespaces and schema.
    SchemaA uses tablespaceA
    SchemaB uses tablespacesB
    We are also backing up
    sys
    sysaux
    undo
    tablespaces.
    Lets say we lose our tablespaces and do a restore. I am assuming that all my stored procedures can be restored no matter which schema I save them in. even if I save them in a schema that has a default tablespace that is not being backed up because the code in is in the System tablespace.
    Is my assumption correct?

    Here the key concept is Mean Time To Recover(MTTR), usually it is faster and easier to use an export backup file for this purpose, but this doesn't mean RMAN is bad :) RMAN was, is and will be the best practice for Oracle's B&R.
    Still you may assist your RMAN backup with a daily norows export backup and also maybe a file system backup depending on your environment and application's need. Backup's backup do not harm :)

  • Adding data file to the existing tablespace given wrong format file name

    Hi
    while adding the data file existing tablespace. i given wrong format '/dev/oracle/data/user_data_02' i miss the .dbf extension for this data file.
    Alter tablespace ts2 add datafile '/dev/oracle/data/user_data_02' size 200m
    the data file was created.
    So i want to know. What will happen if the data file is wrong format?
    Thanks in advance

    it doesnt matter what you name the file. oracle will be able to use it. if you need to change the name to meet your naming conventions, then you will need to take the db down and rename the file at the OS level and then startup mount to rename the file at the DB level.
    why are you puting files in /dev? Thats for devices.

  • Data Guard adding new data files to a tablespace.

    In the past, if you were manually updating an Oracle physical standby database there were issues with adding a data file to a tablespace. It was suggested that the data file should be created small and then the small physical file copied to the standby database. Once the small data file was in place it would be resized on the primary database then the repication would change the size on the standby.
    My question is, does Data Guard take care of this automaticlly for a physical standby? I can't find any specific reference on how it handles a new datafile.

    Never mind, I found the answer.
    STANDBY_FILE_MANAGEMENT=auto
    Set on the standby database will create the datafiles.

  • How to release space of SYSAUX tablespace

    Hi,
    I am now using htmldb 2.0 and created tens of tables in one schema. Several tables are stored in tablespace SYSAUX. Since now I am trying to store a big file to the table(1GB), I found the tablespace grows pretty fast and I have to extend the size. The odd thing is when I delete that file from my table, SYSAUX tablespace seems not release any room and when I insert the big file again into the table, SYSAUX grows again. How can I release the space then? I can't image that why it can't release any room. I also check the occupants of SYSAUX and found one occupant called "other" takes over 90% of space. I tried to move it out of SYSAUX, it doesn't work. What do "other" do actually? I got completely lost. Any help will be greatly appreciated.
    Linke

    Hi,
    if you drop a table in Oracle 10g,
    you will find teh extents of this table in
    DBA_FREE_SPACE.
    in DBA_FREE_SPACE???
    I don't think so.
    SQL >select ddf.tablespace_name,round(total/1024/1024,3) ttlSize,round((total-nvl(freespace,0))/1024/1024,3) used, round((total-nvl(freespace,0))/total*100,2) usedpct
    from
    (select tablespace_name,sum(bytes) total from dba_data_files group by tablespace_name) ddf,
    (select tablespace_name,sum(bytes) freespace from dba_free_space group by tablespace_name) dfs
    where ddf.tablespace_name=dfs.tablespace_name(+) and ddf.tablespace_name='USERS'; 
    TABLESPACE_NAME                   TTLSIZE       USED    USEDPCT
    USERS                                  16      2.813 17.58
    SQL >create table test (col1 number) storage(initial 2m)
      2  /
    Table created.
    SQL >select ddf.tablespace_name,round(total/1024/1024,3) ttlSize,round((total-nvl(freespace,0))/1024/1024,3) used, round((total-nvl(freespace,0))/total*100,2) usedpct
    from
    (select tablespace_name,sum(bytes) total from dba_data_files group by tablespace_name) ddf,
    (select tablespace_name,sum(bytes) freespace from dba_free_space group by tablespace_name) dfs
    where ddf.tablespace_name=dfs.tablespace_name(+) and ddf.tablespace_name='USERS'; 
    TABLESPACE_NAME                   TTLSIZE       USED    USEDPCT
    USERS                                  16      4.813 30.08<--used 2mb
    SQL >select sum(bytes)/1024/1024 from dba_segments where tablespace_name='USERS'
      2  /
    SUM(BYTES)/1024/1024
                    6.75
    SQL >drop table test
      2  /
    Table dropped.
    SQL >select sum(bytes)/1024/1024 from dba_segments where tablespace_name='USERS'
      2  /
    SUM(BYTES)/1024/1024
                    6.75 <-- kept in the same tablespace

  • 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

  • Performance problem - Tablespace Free Space

    Hi,
    Version 10204
    I am running the following statment in order to monitor tablespace free space.
    There are some tablespaces that i am not interesting to monitor , and i also whant to be alert
    only when less than 4 GB left in the tablespace.
    I build the following statment.
    Using the hint : /*+ NO_CPU_COSTING */ gave me the best performance but there are alot of time
    that its took to this statment few minute to run befor it finished.
    Could one help to improve its performance ?
    Please note that it performe even less good when i used the RULE hint or not using hint at all.
    SELECT  /*+ gather_plan_statistics */  'tablespace_free_space;'||to_char(pct_used,'999.99')||','||TBSNAME
    FROM( SELECT *
          FROM( SELECT NVL(b.tablespace_name, NVL(a.tablespace_name,'UNKOWN')) TBSNAME,
                       MBytes_alloc,
                           maxbytes,
                           MBytes_max,
                       ROUND(MBytes_alloc-NVL(MBytes_free,0),2) used,
                       ROUND(NVL(MBytes_free,0),2) free,
                       MBytes_free,
                       ROUND(DECODE( MBytes_max, 0,((MBytes_alloc-NVL(MBytes_free,0))/MBytes_alloc)*100,100*(MBytes_alloc) / maxbytes),2)PCT_USED
                FROM ( SELECT /*+ NO_CPU_COSTING */  SUM(bytes)/1024/1024 MBytes_free,
                              MAX(bytes)/1024/1024 largest,
                              tablespace_name
                       FROM   sys.DBA_FREE_SPACE
                       WHERE  TABLESPACE_NAME NOT IN
                              ('Q405_CALLS_TS','Q405_ICALLS_TS',
                               'Q305_CALLS_TS','Q305_ICALLS_TS',
                               'Q205_ICALLS_TS','Q306_CALLS_TS',
                               'Q406_CALLS_TS','Q206_CALLS_TS',
                               'Q205_CALLS_TS','Q105_CALLS_TS',
                               'Q105_ICALLS_TS','Q206_CALLS_TS','Q106_CALLS_TS',
                               'Q306_ICALLS_TS','Q107_ICALLS_TS','Q406_ICALLS_TS',
                               'Q206_ICALLS_TS','UNLMT_INTERNET_CALLS_2006_TS',
                               'UNLMT_INTERNET_CALLS_2007_TS',
                               'UNLMT_INTERNET_CALLS_2008_TS',
                               'Q107_ICALLS_TBS','Q107_CALLS_TBS',
                               'Q207_ICALLS_TBS','Q207_CALLS_TBS',
                               'Q307_ICALLS_TBS','Q307_CALLS_TBS',
                               'Q407_ICALLS_TBS','Q407_CALLS_TBS',
                               'Q408_ICALLS_TS','Q408_CALLS_TS',
                               'Q308_ICALLS_TS','Q308_CALLS_TS',
                               'Q208_ICALLS_TS','Q208_CALLS_TS',
                               'Q108_ICALLS_TS','Q108_CALLS_TS',
                               'Q109_ICALLS_TS','Q109_CALLS_TS',
                               'UNLMT_INT_CALLS_Q308_TS',
                               'UNLMT_INT_ICALLS_Q308_TS',
                               'UNLMT_INT_CALLS_Q408_TS',
                               'UNLMT_INT_ICALLS_Q408_TS'
                       GROUP BY tablespace_name ) a,
                     ( SELECT  SUM(bytes)/1024/1024 MBytes_alloc,
                              SUM(maxbytes)/1024/1024 MBytes_max,
                              SUM(DECODE (autoextensible,'YES',maxbytes/1024/1024,'NO', BYTES/1024/1024 )) maxbytes,
                              tablespace_name
                       FROM   DBA_DATA_FILES
                       WHERE  TABLESPACE_NAME NOT IN
                              ('Q405_CALLS_TS','Q405_ICALLS_TS',
                               'Q305_CALLS_TS','Q305_ICALLS_TS',
                               'Q205_ICALLS_TS','Q306_CALLS_TS',
                               'Q406_CALLS_TS','Q206_CALLS_TS',
                               'Q205_CALLS_TS','Q105_CALLS_TS',
                               'Q105_ICALLS_TS','Q206_CALLS_TS',
                               'Q106_CALLS_TS','Q306_ICALLS_TS',
                               'Q107_ICALLS_TS','Q406_ICALLS_TS',
                               'Q206_ICALLS_TS','UNLMT_INTERNET_CALLS_2006_TS',
                               'UNLMT_INTERNET_CALLS_2007_TS',
                               'UNLMT_INTERNET_CALLS_2008_TS',
                               'Q107_ICALLS_TBS','Q107_CALLS_TBS',
                               'Q207_ICALLS_TBS','Q207_CALLS_TBS',
                               'Q307_ICALLS_TBS','Q307_CALLS_TBS',
                               'Q407_ICALLS_TBS','Q407_CALLS_TBS',
                               'Q408_ICALLS_TS','Q408_CALLS_TS',
                               'Q308_ICALLS_TS','Q308_CALLS_TS',
                               'Q208_ICALLS_TS','Q208_CALLS_TS',
                               'Q108_ICALLS_TS','Q108_CALLS_TS',
                               'Q109_ICALLS_TS','Q109_CALLS_TS',
                               'UNLMT_INT_CALLS_Q308_TS',
                               'UNLMT_INT_ICALLS_Q308_TS',
                               'UNLMT_INT_CALLS_Q408_TS',
                               'UNLMT_INT_ICALLS_Q408_TS'
                       GROUP BY tablespace_name) b
                WHERE a.tablespace_name (+) = b.tablespace_name
                AND (a.MBytes_free<4000 or a.MBytes_free is null)
             ORDER BY PCT_USED DESC
    WHERE TBSNAME not in (select tablespace_name from dba_tablespaces where contents in ('UNDO'))
    and ROWNUM =1;
    select * from table(dbms_xplan.display_cursor('42hppgtx2h1gb',0,'ALLSTATS LAST'));
    Plan hash value: 2979461796
    PLAN_TABLE_OUTPUT
    | Id  | Operation                               | Name             | Starts | E-Rows | A-Rows |   A-Time   | Buffers | Reads  |  OMem |  1Mem | Used-Mem |
    |*  1 |  COUNT STOPKEY                          |                  |      1 |        |      1 |00:00:15.52 |     146K|   8927 |       |       |      |
    |*  2 |   FILTER                                |                  |      1 |        |      1 |00:00:15.52 |     146K|   8927 |       |       |      |
    |   3 |    VIEW                                 |                  |      1 |      3 |      1 |00:00:15.52 |     146K|   8927 |       |       |      |
    |   4 |     SORT ORDER BY                       |                  |      1 |      3 |      1 |00:00:15.52 |     146K|   8927 |  2048 |  2048 | 2048  (0)|
    |*  5 |      FILTER                             |                  |      1 |        |     16 |00:00:15.52 |     146K|   8927 |       |       |      |
    |*  6 |       HASH JOIN OUTER                   |                  |      1 |      3 |     25 |00:00:15.52 |     146K|   8927 |   561K|   561K|  982K (0)|
    |   7 |        VIEW                             |                  |      1 |      2 |     25 |00:00:02.95 |     105K|      0 |       |       |      |
    |   8 |         HASH GROUP BY                   |                  |      1 |      2 |     25 |00:00:02.95 |     105K|      0 |   447K|   447K|  977K (0)|
    |   9 |          VIEW                           | DBA_DATA_FILES   |      1 |      2 |    217 |00:00:03.25 |     105K|      0 |       |       |      |
    |  10 |           UNION-ALL                     |                  |      1 |        |    217 |00:00:03.25 |     105K|      0 |       |       |      |
    |  11 |            NESTED LOOPS                 |                  |      1 |      1 |      0 |00:00:00.67 |     219 |      0 |       |       |      |
    |  12 |             NESTED LOOPS                |                  |      1 |      1 |      0 |00:00:00.67 |     219 |      0 |       |       |      |
    |  13 |              MERGE JOIN CARTESIAN       |                  |      1 |      1 |  52297 |00:00:00.22 |       0 |      0 |       |       |      |
    |* 14 |               FIXED TABLE FULL          | X$KCCFN          |      1 |      1 |    217 |00:00:00.01 |       0 |      0 |       |       |      |
    |  15 |               BUFFER SORT               |                  |    217 |    100 |  52297 |00:00:00.06 |       0 |      0 | 11264 | 11264 |10240  (0)|
    |  16 |                FIXED TABLE FULL         | X$KCCFE          |      1 |    100 |    241 |00:00:00.01 |       0 |      0 |       |       |      |
    |* 17 |              TABLE ACCESS BY INDEX ROWID| FILE$            |  52297 |      1 |      0 |00:00:00.52 |     219 |      0 |       |       |      |
    |* 18 |               INDEX UNIQUE SCAN         | I_FILE1          |  52297 |      1 |    217 |00:00:00.24 |       2 |      0 |       |       |      |
    |* 19 |             TABLE ACCESS CLUSTER        | TS$              |      0 |      1 |      0 |00:00:00.01 |       0 |      0 |       |       |      |
    |* 20 |              INDEX UNIQUE SCAN          | I_TS#            |      0 |      1 |      0 |00:00:00.01 |       0 |      0 |       |       |      |
    |  21 |            NESTED LOOPS                 |                  |      1 |      1 |    217 |00:00:02.58 |     105K|      0 |       |       |      |
    |  22 |             NESTED LOOPS                |                  |      1 |      1 |  52297 |00:00:01.89 |     104K|      0 |       |       |      |
    |  23 |              MERGE JOIN CARTESIAN       |                  |      1 |      1 |  52297 |00:00:00.22 |     217 |      0 |       |       |      |
    |  24 |               NESTED LOOPS              |                  |      1 |      1 |    217 |00:00:00.02 |     217 |      0 |       |       |      |
    |* 25 |                FIXED TABLE FULL         | X$KCCFN          |      1 |      1 |    217 |00:00:00.01 |       0 |      0 |       |       |      |
    |* 26 |                FIXED TABLE FIXED INDEX  | X$KTFBHC (ind:1) |    217 |      1 |    217 |00:00:00.01 |     217 |      0 |       |       |      |
    |  27 |               BUFFER SORT               |                  |    217 |    100 |  52297 |00:00:00.11 |       0 |      0 | 11264 | 11264 |10240  (0)|
    |  28 |                FIXED TABLE FULL         | X$KCCFE          |      1 |    100 |    241 |00:00:00.01 |       0 |      0 |       |       |      |
    |* 29 |              TABLE ACCESS CLUSTER       | TS$              |  52297 |      1 |  52297 |00:00:01.41 |     104K|      0 |       |       |      |
    |* 30 |               INDEX UNIQUE SCAN         | I_TS#            |  52297 |      1 |  52297 |00:00:00.37 |       2 |      0 |       |       |      |
    |* 31 |             TABLE ACCESS BY INDEX ROWID | FILE$            |  52297 |      1 |    217 |00:00:00.57 |     219 |      0 |       |       |      |
    |* 32 |              INDEX UNIQUE SCAN          | I_FILE1          |  52297 |      1 |    217 |00:00:00.28 |       2 |      0 |       |       |      |
    |  33 |        VIEW                             |                  |      1 |   1401 |     25 |00:00:12.56 |   40846 |   8927 |       |       |      |
    |  34 |         HASH GROUP BY                   |                  |      1 |   1401 |     25 |00:00:12.56 |   40846 |   8927 |   465K|   465K|  982K (0)|
    |  35 |          VIEW                           | DBA_FREE_SPACE   |      1 |   1401 |  73133 |00:00:14.19 |   40846 |   8927 |       |       |      |
    |  36 |           UNION-ALL                     |                  |      1 |        |  73133 |00:00:14.04 |   40846 |   8927 |       |       |      |
    |  37 |            NESTED LOOPS                 |                  |      1 |      1 |      0 |00:00:00.01 |      45 |      0 |       |       |      |
    |  38 |             NESTED LOOPS                |                  |      1 |      1 |      0 |00:00:00.01 |      45 |      0 |       |       |      |
    |  39 |              TABLE ACCESS FULL          | FET$             |      1 |      1 |      0 |00:00:00.01 |      45 |      0 |       |       |      |
    |* 40 |              INDEX UNIQUE SCAN          | I_FILE2          |      0 |      1 |      0 |00:00:00.01 |       0 |      0 |       |       |      |
    |* 41 |             TABLE ACCESS CLUSTER        | TS$              |      0 |      1 |      0 |00:00:00.01 |       0 |      0 |       |       |      |
    |  42 |            NESTED LOOPS                 |                  |      1 |      5 |   7271 |00:00:00.20 |    1156 |      0 |       |       |      |
    |  43 |             NESTED LOOPS                |                  |      1 |      6 |   7271 |00:00:00.14 |    1154 |      0 |       |       |      |
    |* 44 |              TABLE ACCESS FULL          | TS$              |      1 |      2 |     25 |00:00:00.01 |      45 |      0 |       |       |      |
    |* 45 |              FIXED TABLE FIXED INDEX    | X$KTFBFE (ind:1) |     25 |      3 |   7271 |00:00:00.11 |    1109 |      0 |       |       |      |
    |* 46 |             INDEX UNIQUE SCAN           | I_FILE2          |   7271 |      1 |   7271 |00:00:00.04 |       2 |      0 |       |       |      |
    |  47 |            NESTED LOOPS                 |                  |      1 |   1394 |  65862 |00:00:17.73 |   39476 |   8927 |       |       |      |
    |  48 |             NESTED LOOPS                |                  |      1 |  30528 |  65862 |00:00:16.94 |   39474 |   8927 |       |       |      |
    |* 49 |              HASH JOIN                  |                  |      1 |   2540 |   8927 |00:00:00.03 |      90 |      0 |   811K|   811K| 1397K (0)|
    |  50 |               TABLE ACCESS FULL         | RECYCLEBIN$      |      1 |   8319 |   8935 |00:00:00.01 |      45 |      0 |       |       |      |
    |* 51 |               TABLE ACCESS FULL         | TS$              |      1 |      2 |     25 |00:00:00.01 |      45 |      0 |       |       |      |
    |* 52 |              FIXED TABLE FIXED INDEX    | X$KTFBUE (ind:1) |   8927 |     12 |  65862 |00:00:11.66 |   39384 |   8927 |       |       |      |
    |* 53 |             INDEX UNIQUE SCAN           | I_FILE2          |  65862 |      1 |  65862 |00:00:00.45 |       2 |      0 |       |       |      |
    |* 54 |            TABLE ACCESS BY INDEX ROWID  | RECYCLEBIN$      |      1 |      1 |      0 |00:00:00.01 |     169 |      0 |       |       |      |
    |  55 |             NESTED LOOPS                |                  |      1 |      1 |      1 |00:00:00.01 |     169 |      0 |       |       |      |
    |  56 |              NESTED LOOPS               |                  |      1 |      1 |      0 |00:00:00.01 |     169 |      0 |       |       |      |
    |  57 |               NESTED LOOPS              |                  |      1 |      1 |      0 |00:00:00.01 |     169 |      0 |       |       |      |
    |  58 |                TABLE ACCESS FULL        | UET$             |      1 |      1 |      0 |00:00:00.01 |     169 |      0 |       |       |      |
    |* 59 |                INDEX UNIQUE SCAN        | I_FILE2          |      0 |      1 |      0 |00:00:00.01 |       0 |      0 |       |       |      |
    |* 60 |               TABLE ACCESS CLUSTER      | TS$              |      0 |      1 |      0 |00:00:00.01 |       0 |      0 |       |       |      |
    |* 61 |                INDEX UNIQUE SCAN        | I_TS#            |      0 |      1 |      0 |00:00:00.01 |       0 |      0 |       |       |      |
    |* 62 |              INDEX RANGE SCAN           | RECYCLEBIN$_TS   |      0 |   1188 |      0 |00:00:00.01 |       0 |      0 |       |       |      |
    |* 63 |    TABLE ACCESS FULL                    | TS$              |      1 |      1 |      0 |00:00:00.01 |      45 |      0 |       |       |      |
    Predicate Information (identified by operation id):
       1 - filter(ROWNUM=1)
       2 - filter( IS NULL)
       5 - filter(("A"."MBYTES_FREE"<4000 OR "A"."MBYTES_FREE" IS NULL))
       6 - access("A"."TABLESPACE_NAME"="B"."TABLESPACE_NAME")
      14 - filter(("INST_ID"=USERENV('INSTANCE') AND "FNNAM" IS NOT NULL AND BITAND("FNFLG",4)<>4 AND "FNTYP"=4))
    PLAN_TABLE_OUTPUT
      17 - filter(("F"."SPARE1" IS NULL AND "F"."TS#" IS NOT NULL))
      18 - access("FE"."FENUM"="F"."FILE#")
           filter("FNFNO"="F"."FILE#")
      19 - filter(("TS"."NAME"<>'Q405_CALLS_TS' AND "TS"."NAME"<>'Q405_ICALLS_TS' ... AND "TS"."NAME"<>'UNLMT_INT_ICALLS_Q408_TS'))
      20 - access("F"."TS#"="TS"."TS#")
      25 - filter(("INST_ID"=USERENV('INSTANCE') AND "FNNAM" IS NOT NULL AND BITAND("FNFLG",4)<>4 AND "FNTYP"=4))
      26 - filter("FNFNO"="HC"."KTFBHCAFNO")
      29 - filter(("TS"."NAME"<>'Q405_CALLS_TS' AND "TS"."NAME"<>'Q405_ICALLS_TS' AND ... AND "TS"."NAME"<>'UNLMT_INT_ICALLS_Q408_TS'))
      30 - access("HC"."KTFBHCTSN"="TS"."TS#")
      31 - filter("F"."SPARE1" IS NOT NULL)
      32 - access("FE"."FENUM"="F"."FILE#")
           filter("FNFNO"="F"."FILE#")
      40 - access("F"."TS#"="FI"."TS#" AND "F"."FILE#"="FI"."RELFILE#")
    PLAN_TABLE_OUTPUT
           filter(("FI"."TS#" IS NOT NULL AND "FI"."RELFILE#" IS NOT NULL))
      41 - filter(("TS"."TS#"="F"."TS#" AND "TS"."BITMAPPED"=0 AND "TS"."NAME"<>'Q405_CALLS_TS' AND "TS"."NAME"<>'Q405_ICALLS_TS' AND
                  "TS"."NAME"<>'Q305_CALLS_TS' AND "TS"."NAME"<>'Q305_ICALLS_TS' AND ... "TS"."NAME"<>'UNLMT_INT_ICALLS_Q408_TS'))
      44 - filter(("TS"."BITMAPPED"<>0 AND INTERNAL_FUNCTION("TS"."ONLINE$") AND .... "TS"."NAME"<>'UNLMT_INT_ICALLS_Q408_TS'))
      45 - filter("TS"."TS#"="F"."KTFBFETSN")
      46 - access("F"."KTFBFETSN"="FI"."TS#" AND "F"."KTFBFEFNO"="FI"."RELFILE#")
           filter(("FI"."TS#" IS NOT NULL AND "FI"."RELFILE#" IS NOT NULL))
      49 - access("TS"."TS#"="RB"."TS#")
      51 - filter(("TS"."BITMAPPED"<>0 AND INTERNAL_FUNCTION("TS"."ONLINE$") AND...."TS"."NAME"<>'UNLMT_INT_ICALLS_Q408_TS'))
      52 - filter(("U"."KTFBUESEGTSN"="RB"."TS#" AND "U"."KTFBUESEGFNO"="RB"."FILE#" AND "U"."KTFBUESEGBNO"="RB"."BLOCK#"))
      53 - access("RB"."TS#"="FI"."TS#" AND "U"."KTFBUEFNO"="FI"."RELFILE#")
           filter(("FI"."TS#" IS NOT NULL AND "FI"."RELFILE#" IS NOT NULL))
    PLAN_TABLE_OUTPUT
      54 - filter(("U"."SEGFILE#"="RB"."FILE#" AND "U"."SEGBLOCK#"="RB"."BLOCK#"))
      59 - access("U"."TS#"="FI"."TS#" AND "U"."SEGFILE#"="FI"."RELFILE#")
           filter(("FI"."TS#" IS NOT NULL AND "FI"."RELFILE#" IS NOT NULL))
      60 - filter(("TS"."BITMAPPED"=0 AND "TS"."NAME"<>'Q405_CALLS_TS' AND .... AND "TS"."NAME"<>'UNLMT_INT_CALLS_Q408_TS' AND
                  "TS"."NAME"<>'UNLMT_INT_ICALLS_Q408_TS'))
      61 - access("TS"."TS#"="U"."TS#")
      62 - access("U"."TS#"="RB"."TS#")
      63 - filter((DECODE("TS"."CONTENTS$",0,DECODE(BITAND("TS"."FLAGS",16),16,'UNDO','PERMANENT'),1,'TEMPORARY')='UNDO' AND "TS"."ONLINE$"<>3 AND
                  BITAND("FLAGS",2048)<>2048 AND LNNVL("TS"."NAME"<>:B1)))
    Note
    PLAN_TABLE_OUTPUT
       - cpu costing is off (consider enabling it)

    Version 10204
    I am running the following statment in order to monitor tablespace free space.
    There are some tablespaces that i am not interesting to monitor , and i also whant to be alert
    only when less than 4 GB left in the tablespace.
    And just adding to Dan's reply, if you are on 10g as you mentioned, why not to use the built in Alert mechanism to monitor and get alerts about the tablespace usage using the GC or Database Console than creating a home grown solution like the one you have posted?
    Aman....

  • Generating traffic report of a tablespace or schema

    Hello together,
    at an Oracle 11gR2 (11.2.0.3.0) Enterprise Edition (fully licensed) with RHEL 6 as OS I'm trying to generate a statistic, that shows me a weekly or monthly report over the traffic on a tablespace or a schema.
    Until now, I've worked with the HIST_VIEW dba_hist_tbspc_space_usage (I mean there is also one nearly called so for schema), but that view show me only the grow of a tablespace in a timeline of 1 week. But that would not be the hole traffic. Because SELECT statements will nothing do on the grow of the tablespace but it generates traffic.
    In that case it wouldn't be so important, if it is more tablespace or schema sided because at this database each tablespace has it's own schema and timeline would be nice if it is weekly or monthly.
    Does somebody of you know a way to generate such a report? I know I could do with some tcp_dump, but i would also see if there is also any Oracle database way.
    Thanks and regards,
    David

    Thanks for your answer Justin!
    That is what i meant with fully licensed. Performance and tuning pack is on board.
    Directly, I can try the view tomorrow, I'm not at work right now.
    But it sounded not like that what I'm searching for. Normally traffic should be something in MB or GB I think.
    Better would be to describe, for whgat I need that: my company want's to "outsource" our dedicated server to an IAAS provider. To calculate the cost they need informatioin about:
    The complete size of DB
    Size of each schema / tablespace
    And the traffic, because traffic generate extra cost
    Traffic in this case doesn't mean only the shrink and grow of a schema or a tablespace (insert, update, delete) it also means the read out of data in the database by select or merge or something like that.
    So the shrink and grow I'm able to calculate them by dba_hist_tbspc_space_usage by getting the size of a tablespace each hour and make an addition of the changes of the size. But here I can't see the traffic that is generating by everything else? And you mean, that can I do with DBA_HIST_SEG_STAT?
    Regards,
    David

  • ORA-01652: unable to extend temp segment by 128 in tablespace TEMP2

    Dear all,
    received this error when generate a report.
    check the TEMP1 and TEMP2 they all have lot of spaces.
    check the env $APPLLCSP return empty.
    Please advise how to correct this error.
    Regards,
    Payables: Version : 12.0.0
    APXSSIMP module: Supplier Sites Open Interface Import
    APPLLCSP Environment Variable set to :
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    American_America.UTF8
    Enter Password:
    REP-0069: Internal error
    REP-57054: In-process job terminated:Terminated with error:
    REP-300: MSG-00001: After SRWINIT
    MSG-00002: After Get_Company_Name
    MSG-00003: After Get_NLS_Strings
    MSG-00004: After Importing Suppliers
    MSG-00005: After Get_Header_Information
    ORA-01652: unable to extend temp segment by 128 in tablespace TEMP2
    ==> SELECT assi.org_id C_Rejected_Org_Id,
    MSG-00020: After SRWEXIT
    Report Builder: Release 10.1.2.0.2 - Production on Mon May 11 09:55:36 2009

    >
    check the TEMP1 and TEMP2 they all have lot of spaces.
    >
    How much is "lot" ? :-) How did you determine this "lot" ?
    Pl see MOS Doc 1025288.6 (How to Diagnose and Resolve UNABLE TO EXTEND Errors)
    HTH
    Srini

Maybe you are looking for

  • I have three email accounts query...does anyone ha...

    Hello Members, my phone is 5800 and i have a Hotmail, Googlemail and an AOL email account, i find i need to access them as i still get inportant emails. I understand there are email clients for my phone ie Nokia messaging, OVI, but i don't really wan

  • How can i get high quality slideshowpix on my DvD?

    Hy everyone, I tried to make my own video montage using Slideshow of iPhoto, applied Kern Burn effects and Transitions, everything was absolutely fine until imported my project to iDvD and burn my Project on DvD, the quality wasn't as excellent as i

  • Packaged PDF not showing the navigation sidebar for individual PDFs

    I've created a PDF Ebook as a Package, where individual PDFs are the chapters. My client tells me that some of the customers cannot see the left navigation panel showing all the "chapters", and therefore can only see the cover sheet PDF I haven't bee

  • One GR against multiple PO's

    Hi, I want to know how to make one GR agianst multiple PO's regards, Vimlesh

  • Contents of table BSIS-BUZID (line item ID)

    Dear all, What mean of T, W and blank in field BUZID (line item ID) from table BSIS. Thanks very much. Best Regards, Koesdianto