Reorganization of Tables in Database

Did anyone reorganized the tables in database to reclaim the fragmented space within the Tablespace. If so please suggest how to identify which are all the tables have more fragmentation in order to reorganize it within the tablespace.
Regards,
Subramaniam PL

Its Locally Managed only But if I run the following query asper the note id 1019709.6 it shows fragmentation in few tablespaces.
select
total.tablespace_name tsname,
count(free.bytes) nfrags,
nvl(max(free.bytes)/1024,0) mxfrag,
total.bytes/1024 totsiz,
nvl(sum(free.bytes)/1024,0) avasiz,
(1-nvl(sum(free.bytes),0)/total.bytes)*100 pctusd
from
dba_data_files total,
dba_free_space free
where
total.tablespace_name = free.tablespace_name(+)
and total.file_id=free.file_id(+)
group by
total.tablespace_name,
total.bytes;
Tablespace Name : APPS_TS_TX_DATA
Fragmentation : 2GB
I wanted to reclaim this fragmented space.
Regards,
Subramaniam PL

Similar Messages

  • Reorganization of Tables in EBS Database

    Did anyone reorganized the tables in EBS database to reclaim the fragmented space within the Tablespace. If so please suggest how to identify which are all the tables have more fragmentation in order to reorganize it within the tablespace.
    Regards,
    Subramaniam PL

    DUPLICATE
    do NOT cross/multi-post!
    Reorganization of Tables in Database

  • OBIEE Error while importing table from database

    Hi
    I am getting the following error when i am trying to import table from database.
    [nQSError: 16001]ODBC error state: IM004 code:0 message:
    [Microsoft][ODBC Driver Manager] Driver`s SQLAllocHandle on SQL_HANDLE_ENV failed.
    Any idea y such error.
    Thanks and Regards,
    Andy

    Looks like an error in the ODBC driver, not OBIEE as such.
    Have you tried googling it?
    Can you post details about your OS and DB.

  • Parent-Child Join on tables in Database Adapter

    Hi,
    We are doing a join on two tables(T1 and T2) in Database adapter for an Insert operation. There is no Reference Integrity between these two tables in Database, but join is done through bpel database adapter.
    Here is a scenario - when we try to insert a record(parent-child), into these two tables, If there is any data issue in any of the child record, Adapter inserts parent-record, also inserts few child-records it processed before it encountered this data issue and terminates.
    Issue here is , We want this to be transactional, it means, If any of the child record fails adapter should rollback the entire insert operation both from parent and child tables and exit with an error. Instead BPEL inserting half records into child table.
    Is there any parameter I need to set or am I missing anything? Someone please suggest.
    Thanks,
    Phani

    There are a few options I guess.
    1. Add the referential key constraint.
    2. Add custom logic in your BPEL project to compensate for any errors you encounter in your BPEL processes.

  • How to find the value in the table in database ?

    Hi, Could you please advise me, How to findout the data-value in the table in database ?

    what do you mean by value ?
    --Girish                                                                                                                                                                                                                           

  • There is no table  in database system BW_POS

    hi gurus,
    i am trying to access tables from SQL Server using DB connect.i have created one source system using SAP library help.
    when right click source system and selected
    'select Database tables' i am getting the following error.
    <b>"There is no table in database system BW_POS"</b>
    BW_POS is my source system name.
    help needed urgently.
    thanx in advance..

    hi guys,
    thanx for your advices,
    while creating the source system i have followed that note <b>512739</b> and i checked that the all the tables and fields are in UPPER case.even the roles and authorizations are given for create VIEW and selct the DB tables.when i check the same DBuser with the client and executed the SQLquery(in SQL Query Analyzer) i am getting the records in that.
    hi dinesh,
    i have checked the source system also it is saying that source system OK.
    <b>the problem is not solved.</b>
    is there any way of checking the source system using any tables or to check any table entries..
    help is appreciated and advance thanx.

  • Easy way to write out internal table to database table ?

    hi friends,
    i have a special requirement:
    as i do not want to change the profile settings on an r/3 4.6c machine, i want to modify my program so it can handle even large amount of data. the plan is to fill internal table and for say every 100000 rows write those out to a table on database. how could i do this most performant ?
    thanks,
    clemens

    Hi Clemens,
    This solution worked for me, which was suggested by Seshu. May be you can try this,
    Modify ZPPPRICE(your database table name) from table t_final(internal table name).
    In my case I updated Custom table.
    The internal table is of same structure as database table.
    Modify command will insert the record the record if it is new, if the record is existing then it will update the record with the internal table values.
    I got data from Excel file in to my internal table.
    Regards,
    Neelu.

  • Loading internal table to database table

    Hi all,
    I have created a ztable .also i created an internal table with the same structure as ztable.I have some data in internal table.how to load these data from internal table into database table.how thre insert statement will be.

    Hi,
             Check whether entries are there in the internal table. Also check for the structure.
    MODIFY dbtab FROM TABLE itab.
    UPDATE dbtab FROM TABLE itab.
    just read this.
    If you just want to write (INSERT) 1.5 million rows of an internal table into a database table, use:
    INSERT <table name> FROM TABLE <itab>.
    Transaction Log Size could be a problem, therefore writing in packages could help, but this depends on your row size, your database configuration and on the current changes to your database. May be it runs in one package, if the rows are small (few bytes) then one package will be the fastest but you'll not much faster than with reasonable packages (3-20 MBytes). On Oracle with rollback segments you will probably have no problems at 1.5 million rows.
    <b>Rewrad points</b>
    Regards

  • Script task to read the column names dynamically and create a table in database based on excel column structure

    Hello,
    Can anyone help me out to write a vb.net script.
    I need to read the column names from excel and based on that column names I need to create a table in database(I have more than one sheet in excel).
    For each sheet columns will be changing and should create a table dynamically for each sheet.
    Any help would be appreciated.

    Refer the below script to read columns in each sheet.
    Dim excelfile As String = Dts.Variables("ExcelPath").Value.ToString
    Dim connectionstring As String = "Provider=Microsoft.Jet.OLEDB.4.0;" +
    "Data Source=" + excelfile + ";Extended Properties=Excel 8.0"
    Dim oledbcon As New OleDb.OleDbConnection(connectionstring)
    oledbcon.Open()
    Dim dt As DataTable
    Dim schemaTable As DataTable
    Dim OLEDBCMD As New OleDb.OleDbCommand
    Dim oledbdatareader As OleDb.OleDbDataReader
    Dim columns As String = ""
    dt = oledbcon.GetSchema("Tables")
    Dim TABCOMMAND(20) As String
    Dim TABCOUNT As Integer = 0
    For Each row As DataRow In dt.Rows
    TABCOMMAND(TABCOUNT) = "SELECT * FROM [" & row.Item("TABLE_NAME").ToString & "]"
    OLEDBCMD.CommandText = TABCOMMAND(TABCOUNT)
    OLEDBCMD.Connection = oledbcon
    oledbdatareader = OLEDBCMD.ExecuteReader(CommandBehavior.KeyInfo)
    schemaTable = oledbdatareader.GetSchemaTable()
    For Each myfield As DataRow In schemaTable.Rows
    For Each myproperty As DataColumn In schemaTable.Columns
    If myproperty.ColumnName = "ColumnName" Then
    columns = columns & myfield(myproperty).ToString & ","
    MsgBox(myfield(myproperty).ToString)
    End If
    Next
    Next
    oledbdatareader.Close()
    OLEDBCMD.Dispose()
    Next
    oledbcon.Close()
    Regards, RSingh

  • I created new table in database and want to bind with system form

    Hi All,
    1) i created new table in database and want to bind with system form .
    2) How i bind this field to system form sale order where i added new folder tab in that i added some fields that fields i want to bind with database. when i click on the next ,previous ,first and last button
    bind value should change.
    Awaiting soon reply
    Rajkumar G.

    hi,
    try this
    Public Sub BindDataToForm()
            Dim oItem As SAPbouiCOM.Item
            Dim oEdit As SAPbouiCOM.EditText
            Dim oComboBox As SAPbouiCOM.ComboBox
            '// getting the matrix column by the UID
            'oItem = oForm.Items.Item("docname")
            'oComboBox = oItem.Specific
            'oComboBox.DataBind.SetBound(True, "OSRI", "BaseType")
            'oItem = oForm.Items.Item("docno")
            'oEdit = oItem.Specific
            'oEdit.DataBind.SetBound(True, "OSRI", "BaseEntry")
            oColumn = oColumns.Item("Code")
            'oColumn.DataBind.SetBound(True, "", "DSCardCode")
            oColumn.DataBind.SetBound(True, "OSRI", "ItemCode")
            oColumn = oColumns.Item("Serial")
            oColumn.DataBind.SetBound(True, "OSRI", "IntrSerial")
            Try
                oColumn = oColumns.Item("Inspection")
                oColumn.DataBind.SetBound(True, "OSRI", "U_Inspection")
            Catch ex As Exception
                MessageBox.Show(ex.Message)
            End Try
            oColumn = oColumns.Item("Quality")
            oColumn.DataBind.SetBound(True, "OSRI", "U_Quality")
            oColumn = oColumns.Item("Status")
            oColumn.DataBind.SetBound(True, "OSRI", "U_Status")
            oColumn = oColumns.Item("Finish")
            oColumn.DataBind.SetBound(True, "OSRI", "U_Finish")
            oColumn = oColumns.Item("Thickness")
            oColumn.DataBind.SetBound(True, "OSRI", "U_Thickness")
            oColumn = oColumns.Item("uom")
            oColumn.DataBind.SetBound(True, "OSRI", "U_NetUOM")
            oColumn = oColumns.Item("length")
            oColumn.DataBind.SetBound(True, "OSRI", "U_Length")
            oColumn = oColumns.Item("height")
            oColumn.DataBind.SetBound(True, "OSRI", "U_Height")
            oColumn = oColumns.Item("sqf")
            oColumn.DataBind.SetBound(True, "OSRI", "U_sqf")
            oColumn = oColumns.Item("sqm")
            oColumn.DataBind.SetBound(True, "OSRI", "U_sqm")
        End Sub

  • Portal activity report, which tables in database?

    Hi,
    Could someone say, which tables in database have information for Portal Activity Report?
    I need to build my own report which I cant build using standart Portal Activity Report template.
    great thanks

    Hi,
    you really shouldn't access SAP portal db tables. These tables and the structure can change and SAP won't communicate this. This will give you more controll about the reports, as more data is collected.
    The data stored in the DB tables for the PAR are only aggregated data. If you need more detailed data, the PAR data won't help you. In fact, what can be displayed with the PAR data in the DB, can be achieved with the PAR reports.
    If you need to generate your own activity reports, you should considre using the other possibilities delivered with SAP Portal, like the Activity Data Collector:
    SAP Help: http://help.sap.com/saphelp_nw70/helpdata/en/47/873c99c84a199ce10000000a42189d/content.htm
    br,
    Tobias

  • Dimension table in database [H1]

    Hi Expert,
    Can Yours share some info with me about dimension table in database.
    Example for my dimension Entity I have 3 parent in this dimension ,
    then in database I will have table :
    mbrEntity
    dim_Entity
    dim_EntityH1
    dim_EntityH2
    dim_EntityH3
    The more parent I create in my dimension will generate more table.
    I just want to know what is different between this 5 table.
    Because some time I query for MDX I will need something like  [Entity].[H1]
    I just no idea what for need to put this.... [H1]
    and some dimension just dunt need [H1]..
    Thanks..

    actually I want to know how come entity dimension have so many table like :
    mbrEntity
    dim_Entity
    dim_EntityH1
    dim_EntityH2
    dim_EntityH3
    meanwhile my dim category is only 2 table
    mbrCategory
    dim_Categorry
    thanks.

  • How to create tables in Database when webdynpro project is deployed

    Hi
    I Created a project.in that i created stuctures using simpletypes.Based on structure  i created the Context,then created screens.Now how to create tables in database using this structures .Because i want to store the values in the database.Please help.this is very urgent.i will give good points
    thanks
    prasad

    Hi Prasad,
    You can write normal JDBC code in your controller.
    Check this Web Dynpro Java
    You can use the tool for generating the classes from your DB.Check this too
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/dfad6017-0301-0010-bdb8-a8b7d2006f36
    Best Regards, Anilkumar

  • Automation of transaferring Excel data to table in Database

    Hi,
           I am new to SSIS. I need to do automation process to transfer data from excel to table in database. I will get the report daily. So how to make the automation process without manually placing the excel table into excel source everyday?
    1. The excel names changes everyday.
    2. Everyday the excel must be load into same table.
    3. while loading the excel I need to get rid of some rows in excel. Is it is possible in automation process?
    4. Will automation process can form a column with current date as a new column while transferring the data? 
    Thanks in advance....
    BALUSUSRIHARSHA

    Hi BALUSUSRIHARSHA,
    After testing the issue in my environment, we can refer to the following steps to achieve your requirement:
    Create two variables, VarFolderPath stores the folder path in which our files exist, VarFileName stores the date value in the file name like below:
    (DT_STR, 4, 1252) DATEPART("yy" , GETDATE())+ "-" + RIGHT("0" + (DT_STR, 2, 1252) DATEPART("mm" , GETDATE()), 2) + "-" + RIGHT("0" + (DT_STR, 2, 1252) DATEPART("dd"
    , GETDATE()), 2)
    In the Data Flow Task, drag an Excel Source with the as Excel Connection Manager.
    Add the property below the Excel Connection Manger expression:
    Property: ExcelFilePath      Expression: @[User::VarFolderPath] + @[User::VarFileName]
    Drag a Conditional Split Transformation that connect to the Excel Source, then add some conditions to filter some rows.
    Drag a Derived Column Transformation that connect to the Conditional Split Transformation, then add a Derived Column Name with <add a new column> option and use GETDATE() as Expression.
    Drag an OLE DB Destination that connect to the Derived Column Transformation, then configure a table to store the data.
    The following screenshot are for your references:
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Polling table with Database Adapter

    Hi All,
    I have created a Database Adapter to poll the table for the new record or modified.
    I have added a receive activity to that Adapter and deployed.
    However the instance is not completing and its in always running state and waiting at receive activity.
    Can you please help me out
    Thanks

    hello,
    i have to do database polling..this is wat i have done.but instance is not getting created in BPEL..
    i have created a sequence in databse.
    i have created a source table in database which has three colums id,name,sequence.(generated by doin seq.nextval)
    i have created a table as seqhelper table which has two fields table_name and seqid.
    now i hav dragged a db adapter.I hav chosen poll,update seq table..and given my seq table name,seqname filed as table_name,seqvalue field as seqid.and sequence fiels ad sequence column of source table ...and done polling frequency as 5 seconds.
    now created a bpel process,chosen interface as based on wsdl and selected db adapters wsdl file and linked to bpel after removing the default exposed service of bpel..so bpel as one receive activity joined to db adapter...
    WHEN<
    i am inserting any new records to source table....instance is not getting created...please help..

Maybe you are looking for