SDO_NET.SPATIAL_PARTITION creates empty table

Hi all,
I tried to partition my network by using the function SDO_NET.SPATIAL_PARTITION. Everything work fine, except, that the partition table is empty.
this is the command I run:
BEGIN
SDO_NET.SPATIAL_PARTITION( 'BZ',  'BZ_PARTITION',  1000,  'LOG_DIR', 'part.log', 'w', 1 );
End;The tuples in the link table have the attribute link_level=1, except 2 tuples which for testing purpose i changed to 2,3,4
From my understanding, the partitioning should be based on the geometry of the links and the nodes. Does the link_level attribute impact the partitioning?
Thanks for any clarification.
The content of the log file is attached.
......@maps:/tmp$ more part.log
      Thu Jun 9 10:43:45 2011
NDM spatial partitioning begins
target network: BZ (max. no. of nodes per partition: 1000)
target link_level >= 1
set partition log to file: part.log in directory: LOG_DIR
check node table: BZ_NODES
check geometry column: GEOMETRY in node table: BZ_NODES
node table: BZ_NODES checked
link level information (link_level = [null or 0] will be treated as 1)
*there are 8173 links at link_level = 1 in link table:BZ_LINKS
there are 2 links at link_level = 2 in link table:BZ_LINKS
there are 1 links at link_level = 3 in link table:BZ_LINKS
there are 2 links at link_level = 4 in link table:BZ_LINKS
link level information took .000 min.
create temp. partition view: NDM_TEMP_PARTITION_V$1
creating temp. partition view took .000 min.
network: BZ has 3162 nodes at link_level >= 1
temp. partition view: NDM_TEMP_PARTITION_V$1 created
multi-level partitioning begins ...
cleanup partitioning temporary tables
temp. partition tables cleaned
begin partitioning of NDM_TEMP_PARTITION_V$1
partition level: 1 min. partition id: 0 max. partition id: 0
generating 4 partitions from level: 0 to level: 1 ...
begin partitioning level: 0...
partitioning level: 0 with 2 partitions took .000 min.
begin partitioning level: 1...
partitioning level: 1 with 4 partitions took .000 min.
completed partitioning of NDM_TEMP_PARTITION_V$1
multi-level partitioning took .000 min.
partition table: BZ_PARTITION renamed to NDM_TEMP_PARTITION_TAB
creating partition table: BZ_PARTITION
partition table: NDM_TEMP_PARTITION_TAB contains 0 link levels
partition result inserted from table: NDM_TEMP_PARTITION_TAB
inserting previous partition result took .000 min.
inserting complete partition result took .000 min.
temp. partition_table_name:NDM_TEMP_PARTITION_TAB dropped
primary key constraint: BZ_PARTITION_PK on BZ_PARTITION(NODE_ID,LINK_LEVEL) added
index: BZ_PARTITION_PL on BZ_PARTITION(PARTITION_ID,LINK_LEVEL) created
index: BZ_PARTITION_P on BZ_PARTITION(PARTITION_ID) created
*target link_level: 1 contains 3162 nodes in  partitions
partition_table_name: BZ_PARTITION in network metadata updated
partition table: BZ_PARTITION now contains 0 link levels
partition table summary:
partitioning summary took .000 min.
partition result committed
temp. partition view: NDM_TEMP_PARTITION_V$1 dropped
NDM spatial partitioning completed.
spatial partitioning took .017 min. ( .000 hr.)----------------------------------------------------------------------
      Thu Jun 9 10:43:46 2011
----------------------------------------------------------------------

I'm curious.
Did you find the solution? What was the problem?

Similar Messages

  • Create empty Table for input

    I want to create a table with 10 colums. The colums should be empty so the user can input some values.
    ArrayList emptyTable = new ArrayList();
         for (int i = 0; i < 10; i++) {
         // Create empty Entries
         elem = wdContext.nodeXXX().createXXXElement();
              elem.setFirstName("");
              wdContext.nodeXXX().addElemen(elem);
    Does someone know a better way?

    Hi,
        According to your code -
        Context
                 nodeXXX
                              FirstName
    Ten elements created for the node .
    So , i think they are rows ............not columns
    FirstName = ""
    FirstName=""
    When you refer to a column ,,,, there must be different attributes...like
    Context
                 nodeXXX
                              FirstName
                              SecondName
                              LastName
                              Address
                              Phone number...
    Code wise , when you have decided fixed number of columns ...for loop is essential.
    Your code is OK . but take care of what u r doing ,,,whether rows or columns???
    xxxxxxxxxxxxxxxxx
    Let me know , further if u have any doubts.
    Thanks ,
    Srini
    Edited by: Armin Reichert on Apr 26, 2008 6:57 PM

  • Creating empty table segment

    whenever i create a table, it allocates to table segment
    4 mb size although it contains 0 records.
    Is it possible to create a table with its segment having
    0 size. Whenever i insert any row, then only it should
    allocate extents to the segment.

    user11846260 wrote:
    whenever i create a table, it allocates to table segmentI believe you mean 'extent', not 'segment'
    4 mb size although it contains 0 records.That is correct, documented, and expected behavior.
    Is it possible to create a table with its segment having
    0 size.No.
    Whenever i insert any row, then only it should
    allocate extents to the segment.Why should it? Allocating additional disk space is a very expensive operation. That's exactly why Oracle is designed to get it in relatively large chunks called 'extents'. That's also why once an extent is allocated, it takes special and deliberate intervention to release it, even if it has become empty again.

  • Creating a manual tabular form on an empty table

    Hi all,
    I am trying to create a manual tabular form on an empty table. Is it possible to display textboxes and column headers, when I run the report I get "no data found".
    Regards,

    Hi Denes and thank you for your valuable input.
    My problem is in fact that, I have created the tabular form by using a report region with a SQL query, something like,
    select apex_item.display_and_save(1, p.bolge) bolge,
    apex_item.display_and_save(2, p.hafta) hafta,
    apex_item.display_and_save(3, p.yil) yil,
    apex_item.display_and_save(4, p.mamul) mamul,
    apex_item.display_and_save(5, p.tahmin1) tahmin1,
    apex_item.display_and_save(6, p.tahmin2) tahmin2,
    apex_item.display_and_save(7, p.tahmin3) tahmin3,
    apex_item.display_and_save(8, p.tahmin4) tahmin4,
    apex_item.display_and_save(9, p.tahmin5) tahmin5,
    apex_item.display_and_save(10, p.tahmin6) tahmin6,
    apex_item.display_and_save(11, p.revize4) revize4,
    apex_item.display_and_save(12, p.revize5) revize5,
    apex_item.display_and_save(13, p.revize6) revize6
    from portal_link.v_planlama p
    The problem is that, since there is no data in the table, when I run the page, I cant get the form to be rendered, and I get a nice "no data found". There should be a way to get the form rendered, hence making it available for data input.
    Regards,
    Onur

  • How to create editable table with one empty row ?

    I'm looking for solution how to create editable table with one empty row using ADF BC. I have seen this solution in application that was created in JHeadstart and it's very well idea to use it insead of creation form.

    hammm, i do it this:
    drop the VO on the page, select Table->ADF Table....
    so, drop the botton create, from de VO->operations->create (the firts), and right botton (mouse) Edit binding....
    in Data collection select the VO, in Select an action select CreateInsert
    luck

  • How to create a Table of Contents using Pages 09?

    Hi guys,
    I have little problems creating a Table of Contents in Pages, though it seems quite simple. I'm working with the template 'Term Paper' and I use paragraph styles (Title, Heading I, II, etc.). I have some very long documents (about 80 pages long) so I wanted to create a TOC (using sections) but it says:
    The table of contents is empty because none of the paragraph styles selected in the Document Inspector are used in the document.
    When I compare the paragraph styles I do use and the paragraph styles in the Document Inspector, they match. So I'm a bit upset about this because I really need to use this great feature!
    Thanks for you answers guys!

    I would say: Try and Error. Create a copy of your document and unmark in the copied document in the document inspector all boxes for the TOC. Then mark them again. Maybe you should also delete the paragraph styles and mark them again. If that doesn't work, try to copy the complete text of your document to a new created one. Maybe that works.
    Good luck!
    P.S.: If that doesn't work look here. Maybe this helps.

  • How to create a table and add columns to it with a stored procedure

    Hi,
    I hope that someone can help me.
    I want to create an empty table with the same columns as another
    table but with 4 columns more.
    So it's actualy a copy of a table but with 4 added columns.
    I have to do it in a stored procedure but I don't know which
    statements I have to use. I need to give 3 parameters : schema,
    table and prefix(e.g. the pers from column pers_number)
    Can someone help me?
    Thanks in advance, Ann

    you can !!
    here is some examples
    DECLARE
    sql_stmt VARCHAR2(200);
    plsql_block VARCHAR2(500);
    emp_id NUMBER(4) := 7566;
    salary NUMBER(7,2);
    dept_id NUMBER(2) := 50;
    dept_name VARCHAR2(14) := 'PERSONNEL';
    location VARCHAR2(13) := 'DALLAS';
    emp_rec emp%ROWTYPE;
    BEGIN
    EXECUTE IMMEDIATE 'CREATE TABLE bonus (id NUMBER, amt
    NUMBER)';
    sql_stmt := 'INSERT INTO dept VALUES (:1, :2, :3)';
    EXECUTE IMMEDIATE sql_stmt USING dept_id, dept_name, location;
    sql_stmt := 'SELECT * FROM emp WHERE empno = :id';
    EXECUTE IMMEDIATE sql_stmt INTO emp_rec USING emp_id;
    plsql_block := 'BEGIN emp_pkg.raise_salary(:id, :amt); END;';
    EXECUTE IMMEDIATE plsql_block USING 7788, 500;
    sql_stmt := 'UPDATE emp SET sal = 2000 WHERE empno = :1
    RETURNING sal INTO :2';
    EXECUTE IMMEDIATE sql_stmt USING emp_id RETURNING INTO salary;
    EXECUTE IMMEDIATE 'DELETE FROM dept WHERE deptno = :num'
    USING dept_id;
    EXECUTE IMMEDIATE 'ALTER SESSION SET SQL_TRACE TRUE';
    END;

  • Unable to create a table in cloudscape with solaris

    Hi experts,
    I have WLS6.1 running on Solaris. I'm trying to create tables in cloudscape but
    it throughs NullPointerException. I'm able to run java utils.Schema jdbc:cloudscape:test;create=true
    COM.cloudscape.core.JDBCDriver
    -verbose test.ddl
    This is the error :
    CREATE TABLE test ( id varchar(32), name varchar(32))
    SQL Exception: Java exception: ': java.lang.NullPointerException'.
    SQL Error Code: 0
    SQL State: XJ001
    It creates empty database. I have the required permission. And I can run java
    COM.cloudscape.tools.cview but when I try to create a table even using cview it
    throughs NullPointerException.
    Any help is appreciated.

    Try this SQL statement:
    CREATE TABLE myTable (myField COUNTER)
    This creates a table with name 'myTable' and a column 'myField' of type AutoNumber.

  • Creating a table of contents in a PDF - which program to use?

    I have created many pdf-files from multiple sources and would like to include a table of contents to each of them. Not the side-bar bookmarked table of contents but a traditional one which prints with the document (as you can easily create in Word or Pages).
    As I have to create a table of contents for 60 different pdf-files, it would take ages to do this by hand (what I would do is create a empty word document with the chapters in the right pages and create a table of contents. I can then make a PDF of the table of contents and insert that page into my PDF-file, but it's a lot of work!)
    I have Adobe Acrobat X, but it doesn't seem to be possible with it. Searching the internet, I found some Windows programs which might do the trick, but I only have Apple computers. Does anyone know a program which can do this on an Apple?
    Thanks,
    Emile

    Can Adobe automatically create a table of contents for a document and if
    so how is that generated?
    Adobe will not create table of contents for you.

  • DB proc - do you need to create a table to pass a ref cursor record type?

    I want to pass a limited selection of columns from a large table through a DB procedure using a REF CURSOR, returning a table rowtype:
    CREATE OR REPLACE package XXVDF_XPOS_DS021_ITEMS AS
         TYPE XXVDF_XPOS_DS021_ITEM_ARRAY
         IS REF CURSOR
         return XXVDF_XPOS_DS021_ITEM_TABLE%ROWTYPE;
    Do I need to create this dummy table?
    I can't get a TYPE to work, where the type is an OBJECT with the desired columns in it.
    So a dummy empty table will sit in the database...
    Is there another way?
    thanks!

    You can use RECORD type declaration:
    SQL> declare
      2   type rec_type is record (
      3    ename emp.ename%type,
      4    sal emp.sal%type
      5   );
      6   type rc is ref cursor return rec_type;
      7   rc1 rc;
      8   rec1 rec_type;
      9  begin
    10   open rc1 for select ename, sal from emp;
    11   loop
    12    fetch rc1 into rec1;
    13    exit when rc1%notfound;
    14    dbms_output.put_line(rec1.ename || ' ' || rec1.sal);
    15   end loop;
    16   close rc1;
    17  end;
    18  /
    SMITH 800
    ALLEN 1600
    WARD 1250
    JONES 2975
    MARTIN 1250
    BLAKE 2850
    CLARK 2450
    SCOTT 3000
    KING 5000
    TURNER 1500
    ADAMS 1100
    JAMES 950
    FORD 3000
    MILLER 1300or use, for example, VIEW to declare rowtype:
    SQL> create view dummy_view as select ename, sal from emp;
    View created.
    SQL> declare
      2   type rc is ref cursor return dummy_view%rowtype;
      3   rc1 rc;
      4   rec1 dummy_view%rowtype;
      5  begin
      6   open rc1 for select ename, sal from emp;
      7   loop
      8    fetch rc1 into rec1;
      9    exit when rc1%notfound;
    10    dbms_output.put_line(rec1.ename || ' ' || rec1.sal);
    11   end loop;
    12   close rc1;
    13  end;
    14  /
    SMITH 800
    ALLEN 1600
    WARD 1250
    JONES 2975
    MARTIN 1250
    BLAKE 2850
    CLARK 2450
    SCOTT 3000
    KING 5000
    TURNER 1500
    ADAMS 1100
    JAMES 950
    FORD 3000
    MILLER 1300 Rgds.

  • How to create hashed table in runtime

    hi experts
    how to create hashed table in runtime, please give me the coading style.
    please help me.
    regards
    subhasis

    Hi,
    Have alook at the code, and pls reward points.
    Use Hashed Tables to Improve Performance :
    report zuseofhashedtables.
    Program: ZUseOfHashedTables                                        **
    Author: XXXXXXXXXXXXXXXXXX                                 **
    Versions: 4.6b - 4.6c                                              **
    Notes:                                                             **
        this program shows how we can use hashed tables to improve     **
        the responce time.                                             **
        It shows,                                                      **
           1. how to declare hashed tables                             **
           2. a cache-like technique to improve access to master data  **
           3. how to collect data using hashed tables                  **
           4. how to avoid deletions of unwanted data                  **
    Results: the test we run read about 31000 rows from mkpf, 150000   **
             rows from mseg, 500 rows from makt and 400 from lfa1.     **
             it filled ht_lst with 24500 rows and displayed them in    **
             alv grid format.                                          **
             It needed about 65 seconds to perform this task (with     **
             all the db buffers empty)                                 **
             The same program with standard tables needed 140 seconds  **
             to run with the same recordset and with buffers filled in **
    Objetive: show a list that consists of  all the material movements **
             '101' - '901' for a certain range of dates in mkpf-budat. **
    the columns to be displayed are:                                   **
             mkpf-budat,                                               **
             mkpf-mblnr,                                               **
             mseg-lifnr,                                               **
             lfa1-name1,                                               **
             mkpf-xblnr,                                               **
             mseg-zeile                                                **
             mseg-charg,                                               **
             mseg-matnr,                                               **
             makt-maktx,                                               **
             mseg-erfmg,                                               **
             mseg-erfme.                                               **
    or show a sumary list by matnr - menge                             **
    You'll have to create a pf-status called vista -                   **
    See form set_pf_status for details                                 **
    tables used -
    tables: mkpf,
            mseg,
            lfa1,
            makt.
    global hashed tables used
    data: begin of wa_mkpf, "header
          mblnr like mkpf-mblnr,
          mjahr like mkpf-mjahr,
          budat like mkpf-budat,
          xblnr like mkpf-xblnr,
          end of wa_mkpf.
    data: ht_mkpf like hashed table of wa_mkpf
          with unique key mblnr mjahr
          with header line.
    data: begin of wa_mseg, " line items
          mblnr like mseg-mblnr,
          mjahr like mseg-mjahr,
          zeile like mseg-zeile,
          bwart like mseg-bwart,
          charg like mseg-charg,
          matnr like mseg-matnr,
          lifnr like mseg-lifnr,
          erfmg like mseg-erfmg,
          erfme like mseg-erfme,
          end of wa_mseg.
    data ht_mseg like hashed table of wa_mseg
          with unique key mblnr mjahr zeile
          with header line.
    cache structure for lfa1 records
    data: begin of wa_lfa1,
          lifnr like lfa1-lifnr,
          name1 like lfa1-name1,
          end of wa_lfa1.
    data ht_lfa1 like hashed table of wa_lfa1
          with unique key lifnr
          with header line.
    cache structure for material related data
    data: begin of wa_material,
          matnr like makt-matnr,
          maktx like makt-maktx,
          end of wa_material.
    data: ht_material like hashed table of wa_material
            with unique key matnr
            with header line.
    result table
    data: begin of wa_lst, "
          budat like mkpf-budat,
          mblnr like mseg-mblnr,
          lifnr like mseg-lifnr,
          name1 like lfa1-name1,   
          xblnr like mkpf-xblnr,
          zeile like mseg-zeile,
          charg like mseg-charg,
          matnr like mseg-matnr,
          maktx like makt-maktx,
          erfmg like mseg-erfmg,
          erfme like mseg-erfme,
          mjahr like mseg-mjahr,
          end of wa_lst.
    data: ht_lst like hashed table of wa_lst
            with unique key mblnr mjahr zeile
            with header line.
    data: begin of wa_lst1, " sumary by material
          matnr like mseg-matnr,
          maktx like makt-maktx,
          erfmg like mseg-erfmg,
          erfme like mseg-erfme,
          end of wa_lst1.
    data: ht_lst1 like hashed table of wa_lst1
            with unique key matnr
            with header line.
    structures for alv grid display.
    itabs
    type-pools: slis.
    data: it_lst            like standard table of wa_lst with header line,
          it_fieldcat_lst   type slis_t_fieldcat_alv with header line,
          it_sort_lst       type slis_t_sortinfo_alv,
          it_lst1           like standard table of wa_lst1 with header line,
          it_fieldcat_lst1  type slis_t_fieldcat_alv with header line,
          it_sort_lst1      type slis_t_sortinfo_alv.
    structures
    data: wa_sort         type slis_sortinfo_alv,
          ls_layout       type slis_layout_alv.
    global varialbes
    data: g_lines type i.
    data: g_repid like sy-repid,
          ok_code       like sy-ucomm.
    selection-screen
    "text: Dates:
    select-options: so_budat for mkpf-budat default sy-datum.
    "text: Material numbers.
    select-options: so_matnr for mseg-matnr.
    selection-screen uline.
    selection-screen skip 1.
    "Text: show summary by material.
    parameters: gp_bymat as checkbox default ''.
    start-of-selection.
      perform get_data.
      perform show_data.
    end-of-selection.
          FORM get_data                                                 *
    form get_data.
            select mblnr mjahr budat xblnr
                into table ht_mkpf
               from mkpf
              where budat in so_budat. " make use of std index.
    have we retrieved data from mkpf?
      describe table ht_mkpf lines g_lines.
      if g_lines > 0.
    if true then retrieve all related records from mseg.
    Doing this way we make sure that the access is by primary key
    of mseg.
    The reason is that is faster to filter them in memory
    than to allow the db server to do it.
        select mblnr mjahr zeile bwart charg
                 matnr lifnr erfmg erfme
          into table ht_mseg
          from mseg
            for all entries in ht_mkpf
         where mblnr = ht_mkpf-mblnr
           and mjahr = ht_mkpf-mjahr.
      endif.
    fill t_lst or t_lst1 according to user's choice.
      if gp_bymat = ' '.
        perform fill_ht_lst.
      else.
        perform fill_ht_lst1.
      endif.
    endform.
    form fill_ht_lst.
      refresh ht_lst.
    Example: how to discard unwanted data in an efficient way.
      loop at ht_mseg.
      filter unwanted data
        check ht_mseg-bwart = '101' or ht_mseg-bwart = '901'.
        check ht_mseg-matnr in so_matnr.
      read header line.
        read table ht_mkpf with table key mblnr = ht_mseg-mblnr
        mjahr = ht_mseg-mjahr.
        clear ht_lst.
    * note : this may be faster if you specify field by field.
        move-corresponding ht_mkpf to ht_lst.
        move-corresponding ht_mseg to ht_lst.
        perform read_lfa1 using ht_mseg-lifnr changing ht_lst-name1.
        perform read_material using ht_mseg-matnr changing ht_lst-maktx.
        insert table ht_lst.
      endloop.
    endform.
    form fill_ht_lst1.
      refresh ht_lst1.
    Example: how to discard unwanted data in an efficient way.
             hot to simulate a collect in a faster way
      loop at ht_mseg.
      filter unwanted data
        check ht_mseg-bwart = '101' or ht_mseg-bwart = '901'.
        check ht_mseg-matnr in so_matnr.
    * note : this may be faster if you specify field by field.
        read table ht_lst1 with table key matnr = ht_mseg-matnr
        transporting erfmg.
        if sy-subrc <> 0. " if matnr doesn't exist in sumary table
        " insert a new record
          ht_lst1-matnr = ht_mseg-matnr.
          perform read_material using ht_mseg-matnr changing ht_lst1-maktx.
          ht_lst1-erfmg = ht_mseg-erfmg.
          ht_lst1-erfme = ht_mseg-erfme.
          insert table ht_lst1.
        else." a record was found.
        " collect erfmg.  To do so, fill in the unique key and add
        " the numeric fields.
          ht_lst1-matnr = ht_mseg-matnr.
          add ht_mseg-erfmg to ht_lst1-erfmg.
          modify table ht_lst1 transporting erfmg.
        endif.
      endloop.
    endform.
    implementation of cache for lfa1.
    form read_lfa1 using p_lifnr changing p_name1.
            read table ht_lfa1 with table key lifnr = p_lifnr
            transporting name1.
      if sy-subrc <> 0.
        clear ht_lfa1.
        ht_lfa1-lifnr = p_lifnr.
        select single name1
           into ht_lfa1-name1
          from lfa1
        where lifnr = p_lifnr.
        if sy-subrc <> 0. ht_lfa1-name1 = 'n/a in lfa1'. endif.
        insert table ht_lfa1.
      endif.
      p_name1 = ht_lfa1-name1.
    endform.
    implementation of cache for material data
    form read_material using p_matnr changing p_maktx.
      read table ht_material with table key matnr = p_matnr
      transporting maktx.
      if sy-subrc <> 0.
        ht_material-matnr = p_matnr.
        select single maktx into  ht_material-maktx
          from makt
         where spras = sy-langu
           and matnr = p_matnr.
        if sy-subrc <> 0. ht_material-maktx = 'n/a in makt'. endif.
        insert table ht_material.
      endif.
      p_maktx = ht_material-maktx.
    endform.
    form show_data.
      if gp_bymat = ' '.
        perform show_ht_lst.
      else.
        perform show_ht_lst1.
      endif.
    endform.
    form show_ht_lst.
      "needed because the FM can't use a hashed table.
      it_lst[] = ht_lst[].
      perform fill_layout using 'full display'
                           changing ls_layout.
      perform fill_columns_lst.
    perform sort_lst.
      g_repid = sy-repid.
      call function 'REUSE_ALV_GRID_DISPLAY'
           exporting
                i_callback_program       = g_repid
                i_callback_pf_status_set = 'SET_PF_STATUS'
                is_layout                = ls_layout
                it_fieldcat              = it_fieldcat_lst[]
               it_sort                  = it_sort_lst
           tables
                t_outtab                 = it_lst
           exceptions
                program_error            = 1
                others                   = 2.
    endform.
    form show_ht_lst1.
      "needed because the FM can't use a hashed table.
      it_lst1[] = ht_lst1[].
      perform fill_layout using 'Sumary by matnr'
                           changing ls_layout.
      perform fill_columns_lst1.
    perform sort_lst.
      g_repid = sy-repid.
      call function 'REUSE_ALV_GRID_DISPLAY'
           exporting
                i_callback_program       = g_repid
                i_callback_pf_status_set = 'SET_PF_STATUS'
                is_layout                = ls_layout
                it_fieldcat              = it_fieldcat_lst1[]
               it_sort                  = it_sort_lst
           tables
                t_outtab                 = it_lst1
           exceptions
                program_error            = 1
                others                   = 2.
    endform.
    form fill_layout using p_window_titlebar
                   changing cs_layo type slis_layout_alv.
      clear cs_layo.
      cs_layo-window_titlebar        = p_window_titlebar.
      cs_layo-edit                   = 'X'.
      cs_layo-edit_mode              = space.
    endform.                    " armar_layout_stock
    form set_pf_status using rt_extab type slis_t_extab.
    create a new status
    and then select extras -> adjust template -> listviewer
      set pf-status 'VISTA'.
    endform.        "set_pf_status
    define add_lst.
      clear it_fieldcat_lst.
      it_fieldcat_lst-fieldname     = &1.
      it_fieldcat_lst-outputlen     = &2.
      it_fieldcat_lst-ddictxt       = 'L'.
      it_fieldcat_lst-seltext_l       = &1.
      it_fieldcat_lst-seltext_m       = &1.
      it_fieldcat_lst-seltext_m       = &1.
      if &1 = 'MATNR'.
        it_fieldcat_lst-emphasize = 'C111'.
      endif.
      append it_fieldcat_lst.
    end-of-definition.
    define add_lst1.
      clear it_fieldcat_lst.
      it_fieldcat_lst1-fieldname     = &1.
      it_fieldcat_lst1-outputlen     = &2.
      it_fieldcat_lst1-ddictxt       = 'L'.
      it_fieldcat_lst1-seltext_l       = &1.
      it_fieldcat_lst1-seltext_m       = &1.
      it_fieldcat_lst1-seltext_m       = &1.
      append it_fieldcat_lst1.
    end-of-definition.
    form fill_columns_lst.
    set columns for output.
      refresh it_fieldcat_lst.
      add_lst 'BUDAT' 10.
      add_lst   'MBLNR' 10.
      add_lst  'LIFNR' 10.
      add_lst  'NAME1' 35.
      add_lst  'XBLNR' 15.
      add_lst    'ZEILE' 5.
      add_lst    'CHARG' 10.
      add_lst   'MATNR' 18.
      add_lst   'MAKTX' 30.
      add_lst   'ERFMG' 17.
      add_lst   'ERFME' 5.
      add_lst   'MJAHR' 4.
    endform.
    form fill_columns_lst1.
    set columns for output.
      refresh it_fieldcat_lst1.
      add_lst1 'MATNR' 18.
      add_lst1 'MAKTX' 30.
      add_lst1 'ERFMG' 17.
      add_lst1 'ERFME' 5..
    endform.
    Regards,
    Ameet

  • Unable to export empty tables

    I use this command:
    exp userid=clix_db file=clix.dmp log=dump.log consistent=y
    to export all tables from user "clix_db".
    But when I take a look into the log file, I notice that not all tables have been exported. All empty tables are missed.
    e.g. the table "LIC_REPORTLOG" does exists! OK, the table is empty.
    But it is not exported. When I import the clix.dmp into another empty database, there is no table "LIC_REPORTLOG"
    When I export only this table with
    exp userid=clix_db file=clix_lic.dmp log=dump_lic.log consistent=y tables=LIC_REPORTLOG
    I get an error message:
    EXP-00011: CLIX_DB.LIC_REPORTLOG does not exist
    If I take a look into the table "all_tables", everything is fine:
    Enter user-name: clix_db
    Enter password:
    Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> select table_name from all_tables where table_name='LIC_REPORTLOG';
    TABLE_NAME
    LIC_REPORTLOG
    SQL> select * from CLIX_DB.LIC_REPORTLOG;
    no rows selected
    Any ideas?

    Hello,
    I think that with such a new release you should use DataPump (expdp/impdb) to
    export Tables.
    For exporting a complete Schema you may use the following syntax:
    expdp {color:red}+user+{color}/{color:red}+password+{color} PARFILE=pfexport.txt_With pfexport.txt as bellow:_
    SCHEMAS={color:red}+schema_name+{color}
    FLASHBACK_TIME="TO_TIMESTAMP(to_char(SYSDATE,'DD-MM-YYYY HH24:MI:SS'),'DD-MM-YYYY HH24:MI:SS')"
    CONTENT=ALL
    DIRECTORY=EXP_DIR
    DUMPFILE={color:red}+dump_file_name+{color}
    LOGFILE={color:red}+log_file_name+{color}Then, in this example, you'll get the "dump file" and the "log file" into the EXP_DIR Oracle directory (if it exists).
    You can check your Oracle Directories with the following query:
    select * from dba_directories;Then, you can use one of these Directories or create a new one with the following statement
    CREATE OR REPLACE DIRECTORY {color:red}+directory_name+{color} AS '{color:red}+directory_path+{color}';
    GRANT READ,WRITE ON DIRECTORY {color:red}+directory_name+{color} TO {color:red}+user_name+{color};Hope it can help,
    Best regards,
    Jean-Valentin
    Edited by: Lubiez Jean-Valentin on Nov 28, 2009 12:08 PM

  • Create empty row

    Hi All,
    I face some problem to create empty row. I need a empty row to show user that is end of operation.
    The output that I need as below.
    OprA     OprB     Data
    A100     (null)     Definition
    (null)     B100     Definition
    (null)     (null)     (null)
    A200     B200     Definition
    A200     (null)     Definition
    (null)     B200     Definition
    (null)     B200     Definition
    all of the null column from row 1, 2, 4, 5, 6, 7 is direct select from table. The row 3 is what I want to create. example A100 is same group with B100. After show last B100, is end of operation '100'. and need a empty or null row. Then continue with operation '200'.
    Thanks for who help me on this.

    Hi Skymonster,
    Not sure how you would be doing your processing.
    However assuming if you are doing it one after the other, meanig you first process 100 display it (here is where you want to append 200 now)
    here is one way of doing it.
    with data as (
    select 'A100' a,null b ,'DEFINiTION' c from dual union all
    select null,'B100','DEFINiTION' from dual),
    dat2 as (
    select null,'B200','DEFINiTION' from dual union all
    select 'A200',null,'DEFINiTION' from dual union all
    select null,'B200','DEFINiTION' from dual)
    select * from data
    group by rollup(a,b,c)
    having (grouping(a)=1 and grouping(b)=1 and grouping(c)=1) or
    (grouping(a)=0 and grouping(b)=0 and grouping(c)=0)
    union all
    select * from dat2However i am of the strong opinion that formatting should be handled by front end application and not in such a manner especially in this case.
    Peter's example is much better than mine where you directly uinon NULL
    Howver if you can give a clue how we can identify end of a record that will be helpfull.
    Regards,
    Bhushan

  • Procedures Creating a table in Oracle

    Hi DBAs
    I am new to oracle technology.
    I have created the database using dbca.
    Is it for creating a table we just require the sql create statement.
    On a server I have two databases running. If I do a sql create statement how do I specify in which database to create the table.
    I have connect as sysdba using command
    connect / as sysdba
    Also I want to know how to create separate database logins just as we do in MS SQL Server.
    Please help...
    deepak.

    > Hi DBAs
    Few DBAs here.. mostly developers. As the topic of this forum is not Oracle RDBMS administration, but the development languages called PL/SQL and SQL.
    > I am new to oracle technology.
    Then you need to make The Oracle Manuals your best friends. Go to http://tahiti.oracle.com and find the "List of Books" for the Oracle version you are using.
    Read the following manuals:
    - Oracle® Database Concepts
    - Oracle® Database Administrator's Guide
    > Also I want to know how to create separate database logins just as we do in
    MS SQL Server.
    The two have very little in common. Oracle != MS SQL-Server.
    The best you can do is to forget about what you have learned as a DBA or developer in SQL-Server - empty the old cup of SQL-Server in order to get stuck and start drinking the Oracle brew instead.
    Databases are different. In Oracle a logical database is called a schema. Concurrency is different. Locking is different. PL/SQL is a real/proper/formal procedural programming language and not a macro scripting language like Transact SQL. Oracle has many more index types than just B+trees. And a lot more features. And instead of BCP, there is SQL*Loader, Data Pump, Export/Import and external tables. The list goes on and on.
    My suggestion is read the complete Concepts guide and then browse through the Admin guide. The SQL Reference manual contains all you need to know about Oracle. The PL/SQL Reference manual does the same for PL/SQL. And when you want to develop, make sure you have read the Application Developer's Fundamentals guide.
    And yes - this is what you need to do to learn what Oracle is, and how to use it. There are no shortcuts to being a good Oracle DBA or developer.
    If the intention is being a mediocre one then of course, don't bother. :-)

  • Create a table from a spreadsheet

    Hi All,
    I know you can load data to a table from a spreadsheet using sqlldr, sql developer, toad, etc.. My only knowledge is loading a table from the spreadsheet, but first the table must exist.
    Is there any utility that enable you to create and loada table from a spreadsheet? i.e. without having to create the empty table first.
    Regards,
    kp

    I found my script. This should work on a csv format file from 1-15 columns. It creates an external table called csv data. You can then query against it and run reports or load into other tables.
    CREATE OR REPLACE DIRECTORY &1 as '<directory_path>';
    grant read on directory &1 to public;
    alter session set current_schema=&1;
    --drop table csv_data;
    CREATE TABLE csv_data
    col1 VARCHAR2(250),
    col2 VARCHAR2(250),
    col3 VARCHAR2(250),
    col4 VARCHAR2(250),
    col5 VARCHAR2(250),
    col6 VARCHAR2(250),
    col7 VARCHAR2(250),
    col8 VARCHAR2(250),
    col9 VARCHAR2(250),
    col10 VARCHAR2(250),
    col11 VARCHAR2(250),
    col12 VARCHAR2(250),
    col13 VARCHAR2(250),
    col14 VARCHAR2(250),
    col15 VARCHAR2(250)
    ORGANIZATION EXTERNAL
    ( TYPE ORACLE_LOADER
    DEFAULT DIRECTORY &1
    ACCESS PARAMETERS
    (RECORDS DELIMITED BY newline
    NOBADFILE
    NODISCARDFILE
    NOLOGFILE
    SKIP 0
    FIELDS TERMINATED BY ","
    OPTIONALLY ENCLOSED BY '"'
    RTRIM
    MISSING FIELD VALUES ARE NULL
    REJECT ROWS WITH ALL NULL FIELDS
    col1 CHAR, col2 char,col3 char,col4 char,col5 char,col6 char,col7 char,col8 char,col9 char,
    col10 char,col11 char,col12 char,col13 char,col14 char,col15 char
    LOCATION (&1:'csv_data')
    REJECT LIMIT Unlimited
    NOPARALLEL
    NOMONITORING
    grant select on &1 .csv_data to public
    /

Maybe you are looking for

  • FCP and iMovie HD not seeing HDV video

    On my work dual G5 I can control my Sony HDV camera with either iMovie HD 6.03 or FCP 5.04, but neither see the video. The fact that the machine control works proves that the Firewire cabling is ok, and the fact that the video shows up in iMovie on m

  • Bridge is slow and lags when selecting multiple files to open.

    I currently have CS6 latest version (ver. 13.0 x64) My problem is in my Bridge software (5.0.2.4 x64) I have been getting a 4 or 5 second delay when trying to select multiple files or navigating through the menu and functions. (Photoshop also delays

  • Photoshop hangs on launch of encore menu

    I've been using a menu repeatedly in different projects for a month or so... and now suddenly when I click the 'edit in photoshop button' on my menu's, photoshop hangs, followed by the error 'Adobe Photoshop Cs5 has stopped working.' and then windows

  • Itunes wifi sync does not work after upgrade to OS X Yosemite

    Hi, After upgrade to OS X Yosemite itunes wifi sync with my ipad and iphone stopped working. After attaching the iphone and ipad with a cable, I could sync, but as soon as the cable was removed, the ipad and iphone disappeared again from itunes. And

  • Problem in running WAR file developed through NetBeans Visual Web

    hi all, actually i developed a web application in JSF using IDE NetBeans Visual Web. application is having a table which is connected to database ( MySQL ).... i dragged my database table on visual web's table and all the connections were automatical