Problem by adding one spatial column to the version-enabled table

Hello, I'm trying to modify one version-enabled table T1 like this:
--table definition
create table T1
(ID NUMBER NOT NULL PRIMARY KEY,
NAME VARCHAR2 (256),
FUNCTION VARCHAR2 (256));
--enable versioning
EXECUTE DBMS_WM.EnableVersioning('T1','VIEW_WO_OVERWRITE');
I'd like to add one spatial column to this table by:
-- modify metada view for spatial indexing
INSERT INTO USER_SDO_GEOM_METADATA (TABLE_NAME, COLUMN_NAME, DIMINFO, SRID)
VALUES ('T1_LT', 'ANCHOR',
MDSYS.SDO_DIM_ARRAY
(MDSYS.SDO_DIM_ELEMENT('X', 0.000, 100000.000, 0.0005),
MDSYS.SDO_DIM_ELEMENT('Y', 0.000, 100000.000, 0.0005),
MDSYS.SDO_DIM_ELEMENT('Z', -100, 1000, 0.0005)) , 81989002);
-- table modification - add a column and create a spatial index
EXECUTE DBMS_WM.BeginDDL('T1');
ALTER TABLE T1_LTS ADD ("ANCHOR" MDSYS.SDO_GEOMETRY);
CREATE INDEX T1_SPX on T1_LTS(ANCHOR) INDEXTYPE is MDSYS.SPATIAL_INDEX;
EXECUTE DBMS_WM.CommitDDL('T1');
By finishing of the DDL operation with EXECUTE DBMS_WM.CommitDDL('T1') I get an error message:
"SQL> EXECUTE DBMS_WM.CommitDDL('T1');
BEGIN DBMS_WM.CommitDDL('T1'); END;
ERROR at line 1:
ORA-20171: WM error: 'CREATE TABLE' and 'CREATE SEQUENCE' privileges needed.
ORA-06512: at "SYS.WM_ERROR", line 342
ORA-06512: at "SYS.WM_ERROR", line 359
ORA-06512: at "SYS.LTUTIL", line 8016
ORA-06512: at "SYS.LT", line 11925
ORA-06512: at line 1
What is wrong here? The Oracle 10g DB is installed on Windows 2003 Server, OWM_VERSION - 10.2.0.1.0.
Regards,
Viktor

Hi,
You need to explicitly grant the create table and create sequence privileges to the user owning the table. It is not enough for these to be granted by using a role. This restriction is documented in the user guide.
Also, you should add the entry in the user_sdo_geom_metadata view on the t1_lts table, which is the table to which you are actually adding the geometry column, after calling beginDDL. CommitDDL will make the necessary changes, which in this case would be to add an entry for both t1 and t1_lt.
Regards,
Ben

Similar Messages

  • Applying the 10.2.0.4 database patchset with version-enabled tables

    We recently applied the 10.2.0.4 database patchset to a database where we had a few version-enabled tables. Applying the patchset took a bit longer than expected and looking through the log, it took about 30 minutes to upgrade Workspace Manager.
    1) I know in the past that Workspace Manager patches were separate from database patches. Metalink NOTE:341353.1 "Why does the Workspace Manager version differ from the current RDBMS patchset version" seems to indicate that this is no longer the case,
    >
    From patchset release V10.2.0.4 onwards, the Oracle Workspace Manager updates are integrated with the generic RDBMS patchsets.
    >
    But that statement seems to be an afterthought in a document clarifying a separate behavior. Is there another document (Metalink or otherwise) that discusses this change directly?
    2) Does anyone have a good feeling for how long applying this and future patchsets should take when there are potentially large version-enabled tables in the system? I am hoping/ assuming that it is not a linear relationship, because the version-enabled tables we have at the moment are rather small. But I don't know whether the upgrade time is basically a constant or whether there is a dependency on the size of the version-enabled tables, the number of version-enabled tables, etc.
    I am concerned that we may end up with very large version-enabled tables which would require substantial downtime when we apply future patchsets whether or not we needed the Workspace Manager fixes. I hope/ expect that this is not the case, but thought I would double-check.
    Justin

    Hi Justin,
    #1. I could not find another document that discusses this, but I may just be missing it. I will see if there is something else, and let you know if I find something.
    #2. There is a fixed and variable part of the upgrade for Workspace Manager. The fixed potion recompiles all of the packages/views, modifies metadata tables, etc used directly by Workspace Manager. The other potion is done for each version enabled table. First, the view and triggers maintained by Workspace Manager are rebuilt. This is generally a quick operation as it is not dependent on the size of the table. There is also the potential for data migration for each of the rows of the versioned table. If needed, this would take much longer to complete, but this type of migration has not been needed since about version 9.2. If you are upgrading from a version newer than this, then this part of the migration wold not be necessary.
    Regards,
    Ben

  • Performance problem on view with spatial column - resolved

    I have had a problem with queries on a view that had a spatial column, where the view did not belong to the logged in user. Where my spatial window was retrieved by a sub-query, the spatial scan did a full table scan instead of using the spatial index.
    I have found that the problem can be resolved by granting MERGE VIEW on the view to the querying user.
    The view can be as simple as SELECT * FROM table.
    The badly performing query could be as simple as
    select id from T1.tstview
    where SDO_RELATE(coordinates,
    (SELECT coordinates FROM T1.tstWINDOW WHERE ID = '1')
    ,'mask=INSIDE+COVEREDBY querytype=WINDOW') = 'TRUE'  ;
    I think this is a bug, and have raised an SR - MERGE VIEW is supposed to override issues with the "security intent" of a view.
    The workaround is simple enough once you're aware of it and I thought it was worth passing on.

    Thanks for sharing this workaround!
    Which ORACLE version did you test ?

  • How to use one report column into the another report in obiee

    How to use one report column into the another report in obiee

    i dont want to use column as a filter for another report it should be report column for another report
    Thanks,
    Vivek

  • How to add a column at the end of table in already designed document..?

    Hi,
    I am writing a javascript for adding a column at the end of table in Indesign document. using our plug-in we have created the Indesign document.
    Each table i want to add one extra column at the end. Is it possible..? please help me if anyone has idea regarding this.
    Thanks,
    Vimala L

    Hi Vimala,
    Please try the below JS code, This code will add the new column in every table last column after.
    var myTable = app.activeDocument.stories.everyItem().tables.everyItem().getElements();
    for(i=0; i<myTable.length; i++){
       myTable[i].columns.add(LocationOptions.after, myTable[i].columns[-1]);
    thx,
    csm_phil

  • Fact table have tow column reference the same dim table

    In my analytic domain, my fact table have tow column reference the same dim table, but in physical diagram, between two table ,can only have one join, so i create a copy of the dim table, then finish the join in physical. This method can resolve this question, but not so good, Anyone have perfect solution?

    user4497169 wrote:
    Thanks,
    yours method is very very good, I don't know this method before. Where do you get this imfomation?The sample sales RPD has (good) modelling references you can refer to, otherwise think about how you'd write the SQL Statement yourself, you'd need to use an alias to access the same table on seperate joins.

  • How to Organize the columns in the dynamic internal table?

    Hello Folks!
    How to Organize the columns in the dynamic internal table? i tried passing the parameter COL_POS to the fieldcatalog, Which is not working.

    Organize in What order ? What is your way to output ?
    If you use ALV, you need to create fresh FIELD CATALOG for your dynamic table and then assign the column position.
    Regards,
    Diwakar

  • Problem with version enabling tables with ric.

    Hello,
    i have the a problem when i want to version enable tables having ref. int. constraits having delete rule cascade or set null.
    Is it possible that i can't version enable the tables because of these constraints? How i could solve this problem if i want to keep the delete rule?
    thanks,
    Orsi Gyulai

    Hi,
    We are internally creating a <table_name>_g procedure that transfers privileges to the necessary users.  If you have a table with that name, it would explain the error.
    When using ignore_last_error, it will skip the statement that is selected from the all_wm_vt_errors view. Sometimes, the statement can be safely skipped, while in other cases it cannot be. This procedure will always eventually complete when it is repeatedly called with ignore_last_error set to true. However in doing so, some required objects or privileges may not exist or be in an invalid state.
    In your case, you most likely had to skip the 3 or so statements that dealt with the <table_name>_g procedure.  Typically, these statements should not be skipped, but you may or may not see a problem with it due to a number of factors.
    The best course of action may be to drop the trigger in a beginDDL/commitDDL session, and then recreate it in a separate session. Of course, only do this after renaming the <table_name>_g table that you have.  Unfortunately, there is currently no way of getting around this naming convention.
    Thanks,
    Ben

  • Adding new customized column in the Bex Report

    Hi Experts,
    I have an existing column (say A ) in Bex and I want to add one more column (say B) based on the values that I have in column A.
    For e.g.,
    A          B  
    5          5   (=A1)
    8          3   (=A2 - A1)
    15        7   (=A3 - A2)
    I am able to create a new column B and bring the values based on above formula to get the expected results. Though the results are correct and also I saved the report as workbook, when I try to refresh the query again and open the workbook, the new column 'B' is getting disappeared.
    Could someone please help me on this?
    Thanks in advance for your help.
    Bregards,
    Krish

    Hi Pavel
    I'm hitch-hiking on this thread.
    Can you please explain what do you mean by "the grid becomes static" when you use "Convert to Formula"?
    I'm studying Excel integration in the BEx Analyser and it seems to me that when you select Convert to Formula and save the query, then you load new records into the Cube, when you open the query again it's no longer refreshed (even if you select "Refresh Workbook on Open". Is it what you mean?
    I'd appreciate more detailed explanation. I'd appreciate too this documentation about BExGetData.
    Thanks
    César Menezes

  • Problem with attachtment XLS (last column of the xls)

    Hi,
    iam working on interface in which i will be sending an email along with attachtment where my email along with attachtment are working perfectly ,the problem is with the XLS where the last column of the XLS is taking 255 char which is the length of the field .
    How i have to  restrict it ?
    solution on this would be helpfull .
    Thanks ,
    shankar.
    I have attached the sample code too.
    FUNCTION zemail_send_attachment.
    ""Local Interface:
    *" IMPORTING
    *" VALUE(EMAILID)
    *" VALUE(SUBJECT)
    *" VALUE(ATYPE)
    *" TABLES
    *" ATTACH_FILE STRUCTURE SOLISTI1
    *" BODY OPTIONAL
    This table requires information about how the data in the
    tables OBJECT_HEADER, CONTENTS_BIN and CONTENTS_TXT are
    to be distributed to the documents and its attachments.
    DATA objpack LIKE sopcklsti1 OCCURS 2 WITH HEADER LINE.
    This table must contain the summarized data dependent on each object type.
    SAPscript objects store information here about forms and styles,
    for example. Excel list viewer objects store the number of rows and columns
    amongst other things and PC objects store their original file name.
    DATA objhead LIKE solisti1 OCCURS 1 WITH HEADER LINE.
    This table must contain the summarized content of the objects identified as binary objects.
    DATA objbin TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0
    WITH HEADER LINE.
    This table must contain the summarized content of the objects identified as ASCII objects.
    DATA objtxt LIKE solisti1 OCCURS 10 WITH HEADER LINE.
    This table must contain the document recipients.
    DATA reclist LIKE somlreci1 OCCURS 5 WITH HEADER LINE .
    This structure must contain the attributes of the document to be sent.
    DATA: doc_ching LIKE sodocchgi1.
    DATA: tab_lines LIKE sy-tabix.
    Create the internal table for body , subject
    DATA: it_body LIKE solisti1 OCCURS 10 WITH HEADER LINE.
    CONSTANTS: con_cret TYPE c VALUE cl_abap_char_utilities=>horizontal_tab,
    con_tab TYPE c VALUE cl_abap_char_utilities=>cr_lf.
    Move Body to Internal Table (body into it_body)
    LOOP AT body .
    MOVE body TO it_body .
    APPEND it_body .
    ENDLOOP.
    doc_ching-obj_descr = subject. "Subject of the Email
    Move the Subject and Body to OBJTXT
    objtxt[] = it_body[].
    DESCRIBE TABLE objtxt LINES tab_lines.
    READ TABLE objtxt INDEX tab_lines.
    doc_ching-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objtxt ).
    CLEAR objpack-transf_bin.
    objpack-head_start = 1.
    objpack-head_num = 0.
    objpack-body_start = 1.
    objpack-body_num = tab_lines.
    objpack-doc_type = 'RAW'.
    APPEND objpack.
    Convert IT to Excel format
    IF atype = 'XLS' .
    LOOP AT attach_file .
    REPLACE ALL OCCURRENCES OF '#' IN attach_file WITH con_cret ."INTO objbin.
    IF sy-tabix = 1.
    MOVE attach_file TO objbin.
    ELSE.
    CONCATENATE con_tab attach_file INTO objbin.
    ENDIF.
    APPEND objbin.
    ENDLOOP.
    ELSEIF atype = 'TXT' .
    Convert IT to Text format
    LOOP AT attach_file .
    REPLACE ALL OCCURRENCES OF '#' IN attach_file WITH con_cret. " INTO objbin.
    CONCATENATE attach_file con_tab INTO objbin .
    APPEND objbin .
    ENDLOOP.
    ENDIF.
    DESCRIBE TABLE objbin LINES tab_lines.
    objhead = subject. APPEND objhead.
    Creating the entry for the compressed attachment
    objpack-transf_bin = 'X'.
    objpack-head_start = 1.
    objpack-head_num = 1.
    objpack-body_start = 1.
    objpack-body_num = tab_lines.
    IF atype = 'XLS'.
    objpack-doc_type = atype.
    ELSEIF atype = 'TXT'.
    objpack-doc_type = 'RAW'.
    ENDIF.
    objpack-obj_name = 'ATTACHMENT'.
    objpack-obj_descr = 'TEST'. "Attachment File Name
    objpack-doc_size = tab_lines * 255.
    APPEND objpack..
    reclist-receiver = emailid.
    reclist-rec_type = 'U'.
    APPEND reclist.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    document_data = doc_ching
    put_in_outbox = 'X'
    commit_work = 'X'
    IMPORTING
    SENT_TO_ALL =
    NEW_OBJECT_ID =
    TABLES
    packing_list = objpack
    object_header = objhead
    contents_bin = objbin
    contents_txt = objtxt
    receivers = reclist
    EXCEPTIONS
    too_many_receivers = 1
    document_not_sent = 2
    operation_no_authorization = 4
    OTHERS = 99 .
    ENDFUNCTION.

    I had this problem after migrating to JDeveloper 10.1.3. Problem was with inconsistent DB column types. In our case, the DB column was CHAR containing only numbers, but VO defined it as NUMBER. This caused no problem in 9.0.3 we used before.
       <ViewAttribute
          Name="ParentFlagNew"
          IsPersistent="false"
          Precision="1"
          Type="oracle.jbo.domain.Number"
          ColumnType="NUMBER"
          AliasName="PARENT_FLAG_NEW"
          Expression="PARENT_FLAG_NEW"
          SQLType="NUMERIC" >
          <Properties>
             <Property Name ="DISPLAY_LIST" Value ="1=Yes,0=No" />
             <Property Name ="DISPLAY_LIST_sk" Value ="1=Áno,0=Nie" />
             <Property Name ="Renderer" Value ="sk.transacty.cm_iface.bc4j_common.ListFieldRenderer" />
          </Properties>
          <DesignTime>
             <Attr Name="_DisplaySize" Value="1" />
          </DesignTime>
       </ViewAttribute>

  • Adding a hidden column in the report

    i have to add a column to the existing form,the newly added column should not visible at the run time .whenever i am inserting the data into the form automaticallly the newly added column should update with the flag as 'N'.
    Note:i will not enter any data manually in the newly added column.it's automatically get the flag in backend

    i have 3 tables whenever i am updating the data into the first table automatically corresponding columns in to the other 2 tables should get updated.
    if i want put a condition like c1='y' c2='y' then it should update the data in all tables at a time.and
    if c1='y',c2='n',c3= some date at this time it should update according to the date.
    what should i do?
    can i use pre update or post update triggers if so how can i use them

  • Problem when adding ascx user control in the MasterPage: Parser Error Message: The referenced file ... is not allowed on this page.

    Hello,
    I have to maintain a SharePoint 2010 project, in which a TopNavigation User Control for SiteCollection is registered in the MasterPage in this way:
    <%@ Register TagPrefix="ABC" TagName="TopNavigation" src="~/_layouts/ABCApplication/MainSite/Navigation/TopNavigation.ascx" %>
    <asp:ContentPlaceHolder id="PlaceHolderTopNavBar" runat="server">
    <asp:ContentPlaceHolder id="PlaceHolderHorizontalNav" runat="server">
                                        <ABC:TopNavigation ID="TopNavi" XMLDataLocation="/_layouts/ABCApplicatopm/MainSite/TopNavigation.xml" IsRoot="true"
    runat="server" />
    </asp:ContentPlaceHolder>
    </asp:ContentPlaceHolder>
    When I deploy the SiteCollection, the TopNavigation user control is working correctly. Unfortunately when i modify the masterpage over SharePoint Designer, the following error message comes allways, regardless of the art of changes i did in the MAsterPage
    ( even if I open the MasterPage, add an space and do save/close the MasterPage).
    "Problem when adding user control in my custom master page, Parser Error Message: The referenced file '/_layouts/Navigation/TopNavigation.ascx' is not allowed on this page."
    Any ideas?

    Hi Simon,
     When we use UserControl in SharePoint Page or MasterPage, and the UserControl is kept in any folder other than ControlTemplates, we will got the error. Here is an article about this issue and provided the solution:
    http://sharepoint-tina.blogspot.com/2009/07/referenced-file-pathxyzascx-is-not.html 
    The solution can also be used in SharePoint 2010.
    Qiao Wei
    TechNet Community Support

  • Compressor is adding ONE random frame to the beggining of my videos... why?

    I am exporting a video with the settings depicted in the screenshot below. 
    For some UNKNOWN AND IDIOTIC REASON, compressor is grabbing one random frame from the middle of my video and adding it to the front of my video.
    You can see it in all of it's stupid action here:
    http://howtofightnow.com/check-your-****-email/
    This causes an odd flash, and just generally looks horrible.
    Why is it doing this inexplicable and absolutely unnecessary stupidity?

    Sure.... transcode before you bring into the editor and then youre files are 150 times the size that they need to be for editing.  Having filled up about 5 dfferent 4tb drives even after media manager, I'm done with that.  How does a 64gb memory card filled turn into 450 gb when logged and transferred?  It's too much.
    NAS is related to distributed processing because you can't simply expect your Mac's to efficiently access a drive simply because it's shared. 
    For example, I have a 12tb G-Speed drive... the fastest connection I can provide to that drive is a Firewire 800 from my MacPro.  That means that everyone is limited to that connection speed, as opposed to having the ability to connect directly to the data with a 1gb ethernet connection... wayyyyyyyyyy faster.  That's multiple computers with a dedicated lighning fast connection, instead of everyone sharing one single moderate connection.
    Additionally, if my editor is working and I restart my computer with the shared drive... media disconnect for him.  I'm essentially tied to his activities.   Beyond that, even if we share a project, you have to reconnect media from every computer you use because the path of referenced media is changed... instead of:
    /gspeed/media being the source for media (if I saved it on my home computer), everyone needs to reconnect to:
    macpro/shared/gspeed/media... this is a huge headache when multiple people are working on projects.
    The NAS drive allows the absolute fastest, uninterruptable connection to data... my transcoding time has been cut down to about a FIFTH of what it was.  You can do this through a normal shared folder, but depending on the hardware involved in your network, you might find yourself incredibly limited. 

  • Spatial Query across schemas. one version enabled table another not -Hanged

    Hi,
    I am executing a PL/sql procedure where a Spatial query run across two schemas. One table(in x schema) is version enabled and second table(in y schema) is Unversioned. Add to that complexity I am running the procedure from third user logon. I think I have enough previleges, as I won't get any error message.
    But, Procedure worked fine when there is no table is version enabled. It started giving problem when one table got version enabled.
    I have tried by setting " DBMS_WM.Gotoworkspace('LIVE');" before running spatial query. But still no luck, process just hangs on the spatial query.
    I tried by using physical name of the Table (table1_LT) which is making it to work. But, as per Workspace manager guide, applications, programs should NOT use, this physical tables(because it is not the correct way on versioned table).
    1. How can I hint to my query, to use a table from only live version?
    2. Why Query is hanging forever (even tried by leaving it over night....)
    Normally it used to take one or two minutes(before versioning..)
    I have posted it Workspace manager forum, But No Luck (people seems to be shy away after seeing "Spatial query" )
    Any help is highly appriciated

    Hi,
    I will need to know more details about the specific query you are performing. So, please do the following:
    1. list the actual query that you are using
    2. generate an explain plan of the query both before and after the table was version enabled. use @?/rdbms/admin/utlxpls or anything that generates the predicate information.
    3. also, give any pertinent details about the table(size of the table, number of rows expected to be returned, column types in the table, etc).
    Based on that, I will see if I can suggest a possible hint that may be able to improve the performance of your query.
    Regards,
    Ben

  • Add columns in the existing Customer table in a Subject Area

    Hi All,
    Well I need to add two columns from Sales table(new table i created which has customer Id) and join it to the Customer Table which has the Customer Id and several columns. The Customer table was already in the RPD which has all the customer information. Now that i have this new requirement to add few columns from the Sales table to the Customer table in one Subject Area.
    What i have done so far is that I imported the sales table into the rpd, made a join in PHYSICAL LAYER on the customer ID of the Sales table to the Customer id of the Customer table and simply dragged the sales table to the Customer LTS in the BMM layer(NO MORE JOINS IN BMM)and dragged and dropped the same into the Presentation layer. The customer table is linked to one fact table in that subject area. So i thought that dragging the sales table columns in the customer table LTS will work because customer is linked to one fact in that subject area.
    Now, In the Answers when I dragged columns from customer & sales table I see only one record that is the first customer_id record from my Sales table but i know there are many common customer_ids between those two tables but its only picking the first customer id from the sales table.
    Any help will be appreciated..
    Normally if we need to add some columns to the existing tables in one subject area what is the best approach??

    Hi Balajee,
    SAPMM06E 0111 CUSTSCR1 SAPLXM06 0111 Subscreen: PO item
    for more information check with these links
    ADDING NEW FIELDS IN me21n
    ADDING NEW FIELDS IN me21n - (Screen exit / enhancment)
    hope this will useful to you.
    Regards!

Maybe you are looking for

  • Switch users/accounts in snow leopard

    i have a visitor coming to my house today and i am trying to figure out how to switch users. i followed all the instructions on the site about checking the necessary boxes in system preferences/accounts. however, my icon in the menu bar and the login

  • Troubles with shared libraries

    I have some problems with shared libraries. This is the partial result of a ./configure checking if libtool supports shared libraries... no checking whether to build shared libraries... no checking whether to build static libraries... yes checking fo

  • Mocha tracking not working when applied to AE clip

    Thank you in advance for reading this. I'm a complete newbie to AE and, frankly, video editing in general. I'm trying to replace faces in a video with png pictures. I'm really not trying to go for the professional look and my skills wouldn't allow it

  • Can I install 10.5.1

    I have powerbook with 10.4.11 can I install 10.5.1 or .2?

  • Batch numbers needed 4 an update!

    hey guys.. wanna update my database release 10.2.0.1.0 enterprise edition to 10.2.0.3 or higher (on windows xp) does anybody know the batch numbers/names needed to download from metalink? thanx