Long tables in tablespace

Hello experts,
We need to list out the LONG (RAW) tables in one of the tablesspace in ECC system
SAP: ECC 6.0 / 700 ker
ENV: Solaris/Oracle 10.2G
please let us know the sql query to view the LONG (RAW) tables only.
Thanks
Malai

A quick Google search would have given you the answer.
from http://sap.ittoolbox.com/groups/technical-functional/sap-dev/long-raw-field-in-oracle-1638663
spool /tmp/SAP_long;
SELECT substr(owner,1,12) owner, substr(TABLE_NAME,1,12) TABLE_NAME, substr(DATA_TYPE,1,12) DATA_TYPE, DATA_LENGTH FROM all_tab_columns WHERE OWNER='SAPR3' and DATA_TYPE LIKE 'LONG%';
spool off;

Similar Messages

  • How to define tablespaces in Oracle 10g and how put tables on tablespaces

    Hello,
    I'm having trouble to define the structure of tablespaces and how to distribute the tables/indexes/lobs on these tablespaces.
    Do you know some rules on how to define this?
    What I have until now:
    1) Put table indexes in separate tablespace
    2) Put lobs in separate tablespace and use storage clause when defining the lob column. Not sure how many tablespaces to use, I have tables with millions of lobs and tables with just one lob (with row containing the lob).
    3) Please fill more rules here ...
    Thank you, Alex.

    Long story: I received database and schema creation scripts defined in Oracle 9i. I want to redesign the tablespaces number/storage and also to change the distribution of tables into tablespaces.
    As an example I will show how tablespaces are created now. There is one tablespace for indexes BLUE_AUTO_INDX and one for each EXTENT MANAGEMENT of:
    - 64K for BLOB , name BLUE_K064_BLOB
    - 64K for tables , name K064_NTAB
    - 128K for tables, name BLUE_K128_NTAB
    - 512K for CLOB , name BLUE_K512_CLOB
    - 4M for BLOB , name BLUE_M004_BLOB
    - 64M for CLOB , name BLUE_M064_CLOB
    - 8M for tables , name BLUE_M008_NTAB
    - 1M for tables , name BLUE_M001_NTAB
    - 256M for tables, name BLUE_M256_NTAB
    Definition of each tablespace is like:
    CREATE TABLESPACE BLUE_AUTO_INDX DATAFILE 'BLUE_AUTO_INDX01.DBF' SIZE 200M REUSE AUTOEXTEND ON NEXT 100M MAXSIZE UNLIMITED LOGGING ONLINE PERMANENT EXTENT MANAGEMENT LOCAL UNIFORM SIZE 64M SEGMENT SPACE MANAGEMENT AUTO;
    CREATE TABLESPACE BLUE_K064_BLOB DATAFILE 'BLUE_K064_BLOB01.DBF' SIZE 20M REUSE AUTOEXTEND ON NEXT 10M MAXSIZE UNLIMITED LOGGING ONLINE PERMANENT EXTENT MANAGEMENT LOCAL UNIFORM SIZE 64K SEGMENT SPACE MANAGEMENT AUTO;
    CREATE TABLESPACE BLUE_K064_NTAB DATAFILE 'BLUE_K064_NTAB01.DBF' SIZE 20M REUSE AUTOEXTEND ON NEXT 20M MAXSIZE UNLIMITED LOGGING ONLINE PERMANENT EXTENT MANAGEMENT LOCAL UNIFORM SIZE 64K SEGMENT SPACE MANAGEMENT AUTO;
    CREATE TABLESPACE BLUE_K128_NTAB DATAFILE 'BLUE_K128_NTAB01.DBF' SIZE 20M REUSE AUTOEXTEND ON NEXT 10M MAXSIZE UNLIMITED LOGGING ONLINE PERMANENT EXTENT MANAGEMENT LOCAL UNIFORM SIZE 128K SEGMENT SPACE MANAGEMENT AUTO;
    CREATE TABLESPACE BLUE_K512_CLOB DATAFILE 'BLUE_K512_CLOB01.DBF' SIZE 20M REUSE AUTOEXTEND ON NEXT 10M MAXSIZE UNLIMITED LOGGING ONLINE PERMANENT EXTENT MANAGEMENT LOCAL UNIFORM SIZE 512K SEGMENT SPACE MANAGEMENT AUTO;
    CREATE TABLESPACE BLUE_M004_BLOB DATAFILE 'BLUE_M004_BLOB01.DBF' SIZE 20M REUSE AUTOEXTEND ON NEXT 10M MAXSIZE UNLIMITED LOGGING ONLINE PERMANENT EXTENT MANAGEMENT LOCAL UNIFORM SIZE 4M SEGMENT SPACE MANAGEMENT AUTO;
    CREATE TABLESPACE BLUE_M064_CLOB DATAFILE 'BLUE_M064_CLOB01.DBF' SIZE 400M REUSE AUTOEXTEND ON NEXT 100M MAXSIZE UNLIMITED LOGGING ONLINE PERMANENT EXTENT MANAGEMENT LOCAL UNIFORM SIZE 64M SEGMENT SPACE MANAGEMENT AUTO;
    CREATE TABLESPACE BLUE_M008_NTAB DATAFILE 'BLUE_M008_NTAB01.DBF' SIZE 200M REUSE AUTOEXTEND ON NEXT 100M MAXSIZE UNLIMITED LOGGING ONLINE PERMANENT EXTENT MANAGEMENT LOCAL UNIFORM SIZE 8M SEGMENT SPACE MANAGEMENT AUTO;
    CREATE TABLESPACE BLUE_M001_NTAB DATAFILE 'BLUE_M001_NTAB01.DBF' SIZE 100M REUSE AUTOEXTEND ON NEXT 50M MAXSIZE UNLIMITED LOGGING ONLINE PERMANENT EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M SEGMENT SPACE MANAGEMENT AUTO;
    CREATE TABLESPACE BLUE_M256_NTAB DATAFILE 'BLUE_M256_NTAB01.DBF' SIZE 512M REUSE AUTOEXTEND ON NEXT 256M MAXSIZE UNLIMITED LOGGING ONLINE PERMANENT EXTENT MANAGEMENT LOCAL UNIFORM SIZE 256M SEGMENT SPACE MANAGEMENT AUTO;
    Does this structure of tablespaces ok? I mean if the logic of one tablespace for different EXTENT SIZEs looks ok?

  • How to find Fragmentation of tables and tablespaces in oracle 8i

    Hi,
    How can i measure the fragmentation of Tables and Tablespaces in oracle 8i.
    Do any one have any handy script to find the same.
    What are the attributes to be determined to do health checkup of a database.

    how many such empty blocks are there in the table and of what size.Again Tom Kyte reference :
    http://asktom.oracle.com/pls/ask/f?p=4950:8:7760471022221195640::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:231414051079
    For tablespace, fragmentation is the regular termAbout tablespace, the link from post above can help.
    Nicolas.

  • Physical Model - Propagate table property "Tablespace" doesn't seem to be working in 4.0EA2

    I'm to switching from v3.3.0.747 to 4.0EA2 but experiencing some issues.
    In the physical model when I try to propagate the table property "Tablespace" for the remaining tables a silent error happens and as result the value is not propagated.
    The error appears in the log file:
    2013-09-24 16:31:31,776 [AWT-EventQueue-0] WARN  PropertyWrapper - oracle.dbtools.crest.model.design.storage.oracle.v11g.TableProxyOraclev11g.setTableSpace(oracle.dbtools.crest.model.design.storage.oracle.TableSpaceOracle)
    java.lang.NoSuchMethodException: oracle.dbtools.crest.model.design.storage.oracle.v11g.TableProxyOraclev11g.setTableSpace(oracle.dbtools.crest.model.design.storage.oracle.TableSpaceOracle)
      at java.lang.Class.getMethod(Class.java:1624)
      at oracle.dbtools.crest.util.propertymap.PropertyWrapper.setValue(PropertyWrapper.java:65)
      at oracle.dbtools.crest.swingui.editor.storage.PropertiesPropagationDialog.applyTo(PropertiesPropagationDialog.java:353)
      at oracle.dbtools.crest.swingui.editor.storage.PropertiesPropagationDialog.setProperties(PropertiesPropagationDialog.java:337)
      at oracle.dbtools.crest.swingui.editor.storage.PropertiesPropagationDialog.access$400(PropertiesPropagationDialog.java:46)
      at oracle.dbtools.crest.swingui.editor.storage.PropertiesPropagationDialog$11.actionPerformed(PropertiesPropagationDialog.java:300)
      at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
      at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
      at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
      at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
      at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
      at java.awt.Component.processMouseEvent(Component.java:6505)
    However if I try to propagate the tablespace value for indexes this  works fine.
    Some ideas?
    Thanks.

    Hi,
    Thanks for reporting this.  I've logged a bug.
    I'm afraid you won't be able to propagate Tablespaces on Tables until it's fixed.
    David

  • Change table's tablespace

    hi
    is it possible to move a table from one tablespace to another?

    As an aside, with the alter table move command, I believe that the new tablespace can be the same tablespace that the table is currently in (i.e. you can move the table from tablespaceA to tablespaceA, which is a neat rebuild/modify table trick). The one small downside is that you need enough space for two copies of the table while the alter table move command is being executed.
    Daniel

  • In which oracle release alter table move tablespace introduce

    Hi,
    Can you please provide me one information that from which oracle realease oracle introduce alter table move tablespace tablespace_name; ...
    Thanks

    user644122 wrote:
    Hi,
    Can you please provide me one information that from which oracle realease oracle introduce alter table move tablespace tablespace_name; ...
    ThanksDon't know whether it was in Oracle 7, but documentation says that it was in Oracle 8i
    Look at this link:
    http://www.oracle.com/pls/db102/print_hit_summary?search_string=move+tablespace
    By the way, why you need this information?
    Edited by: Kamran Agayev A. on Oct 2, 2009 11:54 PM

  • Exception when trying to use 1-char long table name (or bug in ojdbc?)

    Hello,
    I`ve got exception while trying to prepare SQL statement using "prepareStatement(String sql, String columnNames[])"
    Please have a look at the following test
            Connection con = null;
            String tblName = "k";
            try
                Class.forName("oracle.jdbc.driver.OracleDriver");
                con = DriverManager.getConnection("jdbc:oracle:thin:@oracle:1521:server", "usr", "passwd");
                con.prepareStatement("create table "+tblName+"(id number primary key)").execute();
                PreparedStatement stmt = con.prepareStatement("insert into "+tblName+"(id) VALUES (?)", new String[] {"id"});
                stmt.setInt(1, 1);
                stmt.executeUpdate();
            catch (Exception e)
                e.printStackTrace();
            finally
                try
                    con.prepareStatement("drop table " + tblName).execute();
                    con.close();
                catch (SQLException e)
                    e.printStackTrace();
            }The result of the above is the following stacktrace:
    java.sql.SQLException: Invalid argument(s) in call
         at oracle.jdbc.driver.AutoKeyInfo.getTableName(AutoKeyInfo.java:252)
         at oracle.jdbc.driver.T4CConnection.doDescribeTable(T4CConnection.java:3640)
         at oracle.jdbc.driver.PhysicalConnection.prepareStatement(PhysicalConnection.java:6427)
         at X.tst(X.java:22)
         at X.main(X.java:46)Now, if I change tblName to be kk (two characters long), it runs with no exceptions.
    Has anyone ever faced the same problem?
    Looks like a bug in JDBC driver... Or may be it is a known issue which I`m now aware of.
    p.s. I`m using Oracle JDBC v. 11.2.0.1.0.

    Well... this is definitelly not a requirement.
    The code snippet came from the test (junit) for something which is much bigger. And of course the 1-char long table name has nothing to do with desing. At all.
    We have a system where a user defines (named) xml structures, so to say. The structures are then "translated" into DB entities. So the result DB schema is fully auto-generated. The system supports 4 different SQL dialects. Oracle is just one of them.
    Having restrictions like "name of a structure must be at least two characters" is no problem. But I still can`t believe Oracle has such a limitation. It does not sound logical (to me at least). And I had a hope may be someone has an explanation for that thing.
    The code above works just fine if I do not request certain columns back after the statement is executed. (e.g. without the second parameter).
    But anyway... I would post a bug for this, if I knew where to post it to :)
    Thanks.

  • Splitting Long Table Into Shorter Ones

    I have a very long table in Pages and now I need to add a little text in between some of the rows.  Is there any way to split the table into a bunch of smaller ones where I need to?  Or am I going to have to recreate each new table individually somehow...?!
    Thanks so much for any help!

    You could insert a row and put your text where you want it,
    or
    Duplicate the table and delete the parts you don't want.
    Peter

  • How to import tables, indexes, tablespace, etc from a DMP.

    Hello,
    I like to know how to import tables, indexes, tablespace, etc from an DMP export of a Oracle 10.2.0.1 to be apply on a Oracle 11.2.0. When I import the DMP file all the data is going to one single Tablespace, for example, Users tablespace.
    On the original database we have various tablespace's each separated with different content (tables, indexes) and I like to know if it posible to import the same schema,tables, indexes, tablespace all made with one single DMP Export. I can't use DBUA because the software of the database on the 10.2 is missing, I have only a DMP file (24GB) of DMP!.
    Thanks for the reply,
    Sorry for my english :).
    Regards.

    thanks for that but is not what Im looking for.
    Look, on my ORCL directory of the oracle 10.2 I have for example this:
    CONTROL01.CTL
    EXAMPLE01.DBF
    REDO01-1.LOG
    REDO01.LOG
    REDO02-2.LOG
    REDO02.LOG
    REDO03-3.LOG
    REDO03.LOG
    RMAN.DBF
    SYSAUX01.DBF
    SYSTEM01.DBF
    TEMP01.DBF
    UNDOTBS01.DBF
    USERS01.DBF
    TABLESPACE1.ORA
    TABLESPACE2.ORA
    TABLESPACE3.ORA
    TABLESPACE4.ORA
    TABLESPACE5.ORA
    I make a full export to a DMP. Then in my 11.2 version first I created the user then when import the DMP file none of the tablespace (TABLESPACE1, TABLESPACE2, ETC...) is created, all is going to the USERS tablespace, SO, im looking a way to tell imp command that generates the exactly tablespace structure that i was have on the 10.2.
    Hope this can explain more my problem.
    Thanks again!.

  • How do I paginate a long table?

    I imported a file from Excel that had page breaks in a long (vertically) table, but they did not import.  This is a common exercise in Excel, but I cannot locate how to insert a page break or properly paginate a long table in Pages.

    Don,
    If you print your long table, it will be divided into pages with margins, headers and footers that you define in the Sheet Inspector. If you want to preview how your printout will look, switch to Print View, as Wayne advises. The reason that you don't now see the page breaks is that the Blank Template you are using defaults to Sheet View, as opposed to Print View. In the lower left portion of your Numbers window you have the view controls:
    This single icon indicates that you are in Sheet View mode. If you click it your view will switch to Page View and you will see:
    To adjust what is on a particular page can be done by adjusting margins or zoom or by splitting up the table into page size parts. Spllitting the table is far easier than you may guess, but shouldn't be done if you have plans to use Sort and other table-wide features in the future on this data.
    Jerry

  • Move tables (some with LONG datatypes) across tablespaces in Oracle 9i

    I have a 14GB tablespace which about 3,000 tables (and only tables) in. Only 2.6GB is used so I would like to resize the tablespace to about 3GB initially.
    I moved the tables with "alter table <owner>.<tablename> move tablespace <tablespace>" and this worked for most of the tables but failed on some with this kind of error:
    alter table IFSAPP.COMMAND_SYS_BUFFER_TAB move tablespace IFSAPP_DATA_TEMP
    ERROR at line 1:
    ORA-00997: illegal use of LONG datatypeI then moved the other tables back to the original a little frustrated.
    Further reading suggested exporting and importing the tables is the way to go.
    I prefer the alter table because Oracle manages the lock whilst it moves. If I export and import, the table could change in between, potentially ending with me importing an old copy, couldn't it? [It seems neigh on impossible to guarantee an available window to do much!]
    So I though I could you the alter table move for ALL tables and those that are left, use export/import, to minimise the risk.
    How should I proceed?
    1) Create TEMP_TABLESPACE as 3GB
    2) "alter table ... move tablespace ..." for all tables in ORIGINAL_TABLESPACE to TEMP_TABLESPACE
    3) For the remaining tables, individually:
    a) lock table (not sure how)
    b) export table: exp user/pass tables=tablename file=exp.dmp rows=yes
    c) drop table
    d) create table in TEMP_TABLESPACE*
    e) import table: imp user/pass tables=tablename
    * this means I need to know how to re-create the table. It also means views and indexes and packages are going to become invalid.
    4) drop tablespace ORIGINAL_TABLESPACE
    5) Create ORIGINAL_TABLESPACE as 3GB
    6) "alter table ... move tablespace ..." for all tables in TEMP_TABLESPACE to ORIGINAL_TABLESPACE
    7) For the remaining tables, individually:
    a) lock table (not sure how)
    b) export table: exp user/pass tables=tablename file=exp.dmp rows=yes
    c) drop table
    d) create table in ORIGINAL_TABLESPACE
    e) import table: imp user/pass tables=tablename
    This seems high risk and messy.
    Has anyone advice or tips to make it simpler?
    As it stands I am considering leaving alone, the risks worry me!
    Thanks

    Interesting idea.. so this would create a temporary table in the temporary tablespace.
    Rather than set the default tablespace, can I merely add the tablespace clause?
    COPY FROM user/password@database CREATE TmpTblName TABLESPACE TmpTablespace USING SELECT
    * FROM Table_name;
    Either way - can you confirm for each table, I would need to:
    COPY FROM user/password@database CREATE TmpTblName TABLESPACE temp_tablespace USING SELECT * FROM Table_name;
    At this point all indexes for these will be invalid.
    Drop tablespace ORIGINAL_TABLESPACE
    Create ORIGINAL_TABLESPACE as 3GB
    COPY FROM user/password@database CREATE TblName TABLESPACE original_tablespace USING SELECT * FROM TmpTable_name;
    rebuild any indexes which are unusable.
    recompile any invalid objects

  • ORA-00977 Error When Moving Table Between Tablespaces

    I used the "Alter table <tablename> move tablespace <newtablespace>" command on tables that contain a LONG datatype, and get an ORA-00977 error. Was successful with other tables that did not contain a LONG. This was on a 8.1.7.0 database, running on Solaris 8. Any idea what the problem is?

    Like most other useful Oracle features, it is not supported on tables with long columns. In order to change tablespaces with this table, you will have to export it, drop it, recreate it in the new tablespace then import the data into the new table.
    Your other choice is to rebuild the table using clob instead of long.

  • External Table's Tablespace

    Hi,
    When creating a external table, does the table always reside in the SYSTEM tablespace? Is there a way we can store it in a specified Tablespace. What is the syntax for this?

    Since the data for an external table is stored external to the database, I'm not sure what you are trying to accomplish here. There is nothing to store in a tablespace when you have an external table.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Unable to extend table in tablespace

    Hi,
    I have a Oracle Database 11g Release 11.1.0.6.0 - 64bit Production With the Real Application Clusters option.
    I'm receiving the unable to extend table T_DATA in tablespace USER
    I'm using ASM.
    This is the situation of datafiles of USER tablespace (dimension is in GB):
    +DATA/evodb/datafile/users.277.737627613     USERS     9,97265625
    +DATA/evodb/datafile/users.275.731805999     USERS     60,97265625
    +DATA/evodb/datafile/users.261.662113927     USERS     63,999969482421875
    +DATA/evodb/datafile/users.264.705345395     USERS     63,999969482421875
    +DATA/evodb/datafile/users.265.698502565     USERS     63,999969482421875
    +DATA/evodb/datafile/users.268.718788313     USERS     63,999969482421875
    It seems I still have 2 datafile that can grow (maximium size is 63,999969482421875)
    This is the situation of DATA group (the one to which USER tablespace belongs):
    Group # | Name | Free_mb | Usable_file_mb | total_mb
    2     DATA     300051     300051     1134809
    And this is the situation of every device belonging to DATA diskgroup:
    Path | disk_number | group_name | group_number | header_status| free_mb | os_mb | total_mb
    /dev/asm212     13     DATA     2     MEMBER     56627     208500     208500
    /dev/asm9     7     DATA     2     MEMBER     12607     48127     48127
    /dev/asm6     4     DATA     2     MEMBER     12600     48127     48127
    /dev/asm8     6     DATA     2     MEMBER     12595     48127     48127
    /dev/asm11     9     DATA     2     MEMBER     13315     51199     51199
    /dev/asm211     11     DATA     2     MEMBER     56555     208500     208500
    /dev/asm5     3     DATA     2     MEMBER     12611     48127     48127
    /dev/asm3     1     DATA     2     MEMBER     12614     48127     48127
    /dev/asm12     10     DATA     2     MEMBER     0     5115     5115
    /dev/asm7     5     DATA     2     MEMBER     12584     48127     48127
    /dev/asm213     12     DATA     2     MEMBER     60138     228352     228352
    /dev/asm4     2     DATA     2     MEMBER     12608     48127     48127
    /dev/asm10     8     DATA     2     MEMBER     12598     48127     48127
    /dev/asm2     0     DATA     2     MEMBER     12599     48127     48127
    Why table cannot extend??
    And more:
    if I try to add a datafile to USER tablespace, I got:
    ORA-17502: ksfdcre:4 Failed to create file +DATA
    ORA-15041: diskgroup space exhausted
    01119. 00000 - "error in creating database file '%s'"
    Any suggestion??
    thanks in advance,
    Samuel

    OK, but what does FREE_MB mean?
    Is it the unallocated space?
    Is it possible that this disk:
    path | disk_number | group_name | group_number | header_status| free_mb | os_mb | total_mb
    /dev/asm12 10 DATA 2 MEMBER 0 5115 5115
    is causing the error?
    Does it make sense to try to remove it from the diskgroup? I should have more than enough space on other disks of the DATA diskgroup.
    Edited by: Samuel Rabini on Jan 12, 2011 6:14 PM

  • Cannot get long table on second page of BSP

    I want to create a BSP with 2+ pages.  The first page is a letter, and the second and subsequent pages contain a table which could be one or more pages long.
    If I put the letter in the main window of the first page, and the table in the main window of the second page, I do not get a table. 
    If I put the letter in the main window of the first page, and the table in a secondary window of the second page, then I get the table.  But it truncates at the end of the page.  It does not  go on to multiple pages.
    If I put the table on the first page in the main window, then I get the entire table for as many pages as it takes to contain it.
    I want the letter on the first page, and the entire table on as many subsequent pages as it takes to contain it.  What am I doing wrong?

    Hi,
    actually I did not get it.
    Do you work with frames?
    Do you use server side cookies?
    What are you doing in the events of page1 and page2?
    Best regards
    Renald

Maybe you are looking for

  • Want to fetch Material Data from R/3 to cFolders...

    <b>Hellow All,    I want to fetch material data from R/3 to cfolders..Actually I need to use the skeliton of the material,I don't need to create actual material over here..How can I do that? Secondly,when we create a material inside cfiolder,where is

  • Start workflow

    Hi, My friend asked me to post this question in his name here. He wants to create a simple workflow in PM. After user creation of the equipment in IE01 workflow need to be started and give the task for asset number creation to the next user. Do you h

  • Can I use standard RF Menu LM00 for IM Managed facility (No WM at all).

    Can I use standard RF Menu LM00 for perfomring IM goods movement in IM Managed facility (No WM at all).

  • After Hard Disk Crash...Upgraded to iOS4. Backed Up before...result?

    Fact: 1) Hard disk crashed 2) Replaced with a new and bigger drive 3) Installed iTunes 4) Connected my iPod Touch, clicked on Cancel on "Synced to another library...OK to erase message". 5) iTunes suggested upgrade to iOS4 6) Clicked OK on backup bef

  • Difficult in connecting using bluetooth

    i have a ZINX USB BLUETOOTH DONGLE HAVING MODEL NO."ZX-BT2005" I AM TRY TO CONNECT NOKIA 2600 CLASSIC TO PC USING NOKIA PC SUIT 7.1 BY BLUETOOTH. but it shows msg "cannot use the connection type.check that all the needed hardware,software& drivers ar