What grant to ADD_TOPO_GEOMETRY_LAYER ?

Hi,
I'm try-ing to test the topology with a user with CONNECT, RESOURCE and UNLIM.TABLESP. grants.
executing the procedure
SDO_TOPO.ADD_TOPO_GEOMETRY_LAYER(...)
oracle send a
ORA-00942: table or view not available
ORA-06512: a "MDSYS.SDO_TOPO", line 955
ORA-06512: a "MDSYS.SDO_TOPO", line 994
ORA-06512: a line 1
If I try the same command giving to the user the DBA grant.
oracle do the add_topo_geometry_layer without problem.
Is this the only way to do this ?
Many thanks,

Hi,
this is the script I use:
Oracle is 10g Release 2 (linux)
and user has CONNECT, RESOURCE, UNLIM.TABLESP.
create table S3_TP03G_ELEMENTO_STR (
     TP03_ID NUMBER(38,0) not null,
     TP03_GEOMETRIA MDSYS.SDO_GEOMETRY null,
     TP03_CODICE_UTENTE CHAR(15) not null,
     TP03_ID_NODO_IN NUMBER(38,0) not null,
     TP03_ID_NODO_FN NUMBER(38,0) not null,
     TP03_TOPOLOGIA MDSYS.SDO_TOPO_GEOMETRY null, constraint S3_TP03G_ELEMENTO_STR_PK primary key (TP03_ID) USING INDEX PCTFREE 10 INITRANS 2 STORAGE ( INITIAL 5 NEXT 5 MINEXTENTS 1 PCTINCREASE 50 FREELISTS 1 BUFFER_POOL DEFAULT ) TABLESPACE DBTI_Indexes LOGGING NOSORT)
ORGANIZATION HEAP
NOPARALLEL NOCACHE;
create table S3_TP04G_GIUNZIONE_STR (
     TP04_ID NUMBER(38,0) not null,
     TP04_GEOMETRIA MDSYS.SDO_GEOMETRY null,
     TP04_CODICE_UTENTE CHAR(15) not null,
     TP04_COD_TIPO_GIUNZIONE VARCHAR2(6) not null,
     TP04_COD_ORIGINE_DATO VARCHAR2(6) not null,
     TP04_TOPOLOGIA MDSYS.SDO_TOPO_GEOMETRY null, constraint S3_TP04G_GIUNZIONE_STR_PK primary key (TP04_ID) USING INDEX PCTFREE 10 INITRANS 2 STORAGE ( INITIAL 5 NEXT 5 MINEXTENTS 1 PCTINCREASE 50 FREELISTS 1 BUFFER_POOL DEFAULT ) TABLESPACE DBTI_Indexes LOGGING NOSORT)
ORGANIZATION HEAP
NOPARALLEL NOCACHE;
create index S3_TP04I_03_TIPO on S3_TP04G_GIUNZIONE_STR (
     TP04_COD_TIPO_GIUNZIONE ASC)
NOPARALLEL PCTFREE 10 INITRANS 2 STORAGE ( INITIAL 5 NEXT 5 MINEXTENTS 1 PCTINCREASE 50 FREELISTS 1 BUFFER_POOL DEFAULT ) TABLESPACE DBTI_Indexes LOGGING;
insert into user_sdo_geom_metadata
values(
'S3_TP03G_ELEMENTO_STR',
'TP03_GEOMETRIA',
mdsys.sdo_dim_array(
mdsys.sdo_dim_element('X',1540000,1780000,0.005),
mdsys.sdo_dim_element('Y',4670000,4930000,0.005)
82087
insert into user_sdo_geom_metadata
values(
'S3_TP04G_GIUNZIONE_STR',
'TP04_GEOMETRIA',
mdsys.sdo_dim_array(
mdsys.sdo_dim_element('X',1540000,1780000,0.005),
mdsys.sdo_dim_element('Y',4670000,4930000,0.005)
82087
create index S3_TP03G_SpatialIdx
on S3_TP03G_ELEMENTO_STR(TP03_GEOMETRIA)
indextype is MDSYS.SPATIAL_INDEX
PARAMETERS('tablespace=DBTI_Spatial');
create index S3_TP04G_SpatialIdx
on S3_TP04G_GIUNZIONE_STR(TP04_GEOMETRIA)
indextype is MDSYS.SPATIAL_INDEX
PARAMETERS('tablespace=DBTI_Spatial');
EXECUTE SDO_TOPO.CREATE_TOPOLOGY('STRADE_TOPOLOGY', 0.00005, null, 'TABLESPACE DBTI_Topology', 'TABLESPACE DBTI_Topology', 'TABLESPACE DBTI_Topology', null);
EXECUTE SDO_TOPO.ADD_TOPO_GEOMETRY_LAYER('STRADE_TOPOLOGY', 'S3_TP03G_ELEMENTO_STR','TP03_TOPOLOGIA','LINE');
EXECUTE SDO_TOPO.ADD_TOPO_GEOMETRY_LAYER('STRADE_TOPOLOGY', 'S3_TP04G_GIUNZIONE_STR','TP04_TOPOLOGIA','POINT');
EXECUTE SDO_TOPO.INITIALIZE_METADATA('STRADE_TOPOLOGY');
running this script I have this message:
BEGIN SDO_TOPO.ADD_TOPO_GEOMETRY_LAYER('STRADE_TOPOLOGY', 'S3_TP03G_ELEMENTO_STR','TP03_TOPOLOGIA','LINE'); END;
ERRORE alla riga 1:
ORA-00942: tabella o vista inesistente
ORA-06512: a "MDSYS.SDO_TOPO", line 955
ORA-06512: a "MDSYS.SDO_TOPO", line 994
ORA-06512: a line 1
BEGIN SDO_TOPO.ADD_TOPO_GEOMETRY_LAYER('STRADE_TOPOLOGY', 'S3_TP04G_GIUNZIONE_STR','TP04_TOPOLOGIA','POINT'); END;
ERRORE alla riga 1:
ORA-00942: tabella o vista inesistente
ORA-06512: a "MDSYS.SDO_TOPO", line 955
ORA-06512: a "MDSYS.SDO_TOPO", line 994
ORA-06512: a line 1
Many thanks.

Similar Messages

  • What grants needed to run APEX Object Reports?

    APEX 3.0
    Oracle 9.2.0.7
    Solaris 8
    The Apex workspace administrator account is unable to run the APEX Object Reports.
    The returned error states the account has no privileges on the APEX_MYAPP schema.
    What grants are needed for running the APEX Object Reports, and on what objects?
    Thank you.

    Yes, the "APEX_MYAPP" was a generic name. The error message actually mentions "APEX_IARS". I began by trying to limit the details of our installation. Just confused things.
    There are two other workspaces defined: another application-building workspace, "comres_ws", and one called "APEX_SAMPLE_APPS".
    The apex_iars workspace had two schemas assigned to it: iars and comres.
    The comres_ws workspace has just one schema assigned to it: comres.
    Thinking that for some reason the association of two schemas to the apex_iars workspace might be causing a problem -- although it has not in the past, I deleted the association of the comres schema from the apex_iars workspace so that now each workspace, the apex_iars workspace and the comres_ws workspace, just have a single schema. This did not fix anything with the apex_iars workspace. The "privileges" error still occurs.
    I logged onto the comres_ws workspace and tried to access the Utilities/Object Reports, and the SQL Commands, and all this works fine, no errors at all.
    I then logged onto the apex_iars workspace again and tried the Object Reports and SQL Commands and still get the error:
    ORA-20000: User <my_use_name> rhas no privileges on the apex_iars schema.
    Does it look like something is messed up for the apex_iars workspace? Are there APEX dictionary tables that may have incorrect or corrupt information for this workspace?

  • Can't see my objects, what grants do I need?

    Hi,
    I created a user and granted resource but also needed create session... I created a bunch of tables, seq, etc...
    Verified all objects existed and the owner was my new user:
    select OWNER, OBJECT_NAME from all_objects
    Tried to connect from Visio and Map the database objects to a ER Diagram.
    The connect was successful.
    The mapping works but the tables I created are not visible to Visio.
    So.. granted select on each table.. but still does not see them.. ?? what other grant do I need to allow Visio to see them?
    Thank you, Bill
    Message was edited by:
    BillC

    Also, the tables show in SQL Plus Worksheet but do not show in Enterprise Manager. But, if I create a table in Enterprise Manager the table shows up in Enterprise Manager AND VISIO!
    in SQL Plus Worksheet I can see all the objects I created in SQL Plus Worksheet as SYSDBA but not as the OWNER "LIFE".
    select OWNER, OBJECT_NAME from all_objects
    where OWNER = 'LIFE'
    LIFE BI_FILE_CATALOG
    LIFE DEBUGTAB
    LIFE FILE_CATALOG
    LIFE FILE_CATALOG_PK
    LIFE FILE_CATALOG_SEQ
    LIFE FL_ACTIONS
    LIFE FL_ACTIONS_SEQ
    LIFE FL_ACTION_GROUP
    LIFE FL_ACTION_GROUP_SEQ
    LIFE FL_ACTION_SEQ
    LIFE FL_ADDRESS
    LIFE FL_AREAS
    LIFE FL_AREA_SEQ
    LIFE FL_ASSOCIATIONS
    Must be grants?
    Thanks, Bill

  • What grant to I need to get fully access all_tab_cols?

    I have a procedure that needs to examine the metatypes on a view. I have to run it as a different user than system or sysdba.
    Here's the proc:
    create or replace procedure simpletest( v_conn_str in varchar2, v_schema in varchar2, v_view_name in varchar2)
    AS
    type meta_col_list is table of all_tab_cols%rowtype index by binary_integer;
    meta_cols meta_col_list;
    meta_cols00 meta_col_list;
    meta_cols01 meta_col_list;
    meta_cols10 meta_col_list;
    meta_cols11 meta_col_list;
    meta_cols75 meta_col_list;
    unquote_view_name varchar2(100);
    quote_view_name varchar2(100);
    v_foo varchar2(100);
    cursor cur75 is select * from all_tab_cols where column_id > 75;
    BEGIN
    select * bulk collect into meta_cols75
    from all_tab_cols
    where column_id > 75;
    dbms_output.put_line( 'dt_pipe.diff_view: meta_cols75.count: ' || meta_cols75.count);
    END simpletest;
    If I run this proc as system or sysdba, I get a count of 5. but, if I run it as foouser, I get a count of 1, even though I have issued the command:
    grant select on all_tab_cols to foouser;
    So, I figure I must be missing a few more grants. Does can anyone help me out here? thanks.

    ALL_TAB_COLS shows you the columns for the tables that the current user can access. So it's always going to filter out columns the procedure owner doesn't have direct access on.
    Might you have intended to use DBA_TAB_COLS? That view shows the columns for all the tables in the system regardless of the current user's privileges on those tables.
    Justin

  • What life is left in my Mac?

    Last week I turned on my Mac pro to find a blue screen and nothing more.  After doing  some trouble shooting I booted up In safe mode.  This worked one time and the computer booted up beyond the blue screen to the desk top.  The next time I booted it up it went into safe mode but before getting to the desk top it shuts down.  This is what it currently does.  In the mean time I located the snow leopard disc and tried to run the disc utility.  It told me it could not repair what was wrong with it.  Next I tried to use the disc utility to copy the drive to an external drive.  This to failed and that is where I'm at.  I think this has to do with the drive.  It's almost 7 years old the same age of the Mac.  I have updated certain parts over the years like ram, other drives and graphics card.  This drive basically holds all application files.  Has anyone had experience with this?  Some of the last programs I added where purchased from apple and downloaded directly.  Will Apple allow me to get these back if they're lost?  I'm not all that worried about other programs because I have the hard disc backups. 

    yup, what Grant Bennet-Alder said
    Hard drives Can and Do fail, eventually. Mine did
    Luckily you were smarter than I was--you have a backup, so restore from that.
    A new hard drive is easy to install, and not too expensive, I paid about $200 for a few TB
    As for Data recovery, you may have two choices, take it to someone, or try a data rescuing program.
    good luck--just wanted to put my 2 cents in.  Tried Disc Warrior, didn't work, tried something else, didn't work
    either, but luckly, I found one that did--however, I bought a new hard drive, got that up and running with Snow Leopard, then rescued the data on the old drive. Got 90% of it or more, but wasn't organized at all. main thing was I got it back......
    JB

  • Granting Privileges.

    Hi all,
    I have created user A.I want A to SELECT,INSERT,UPDATE the tables of user B,but A should not have DELETE privis.
    For granting this privilege.
    If i give GRANT SELECT ANY TABLE TO USER A.? for SELECTing tables..
    Is it right or will the user be able to all the select all tables (OF OTHER USERS ALSO) if I grant this privilege..?
    And for INSERT and UPDATE what grants I need to give.?
    Edited by: soundar on Nov 6, 2009 12:56 AM

    Hi,
    "ANY" privilrges are very tricky. They will grant you access on all objects in DB that means objects on all schemas and not only one.
    If you "GRANT SELECT ANY TABLE" to user A, he can select ffrom any table in DB (including all SYS tables, provided he can access though proper synonyms).
    The best idea would be to grant explicit privileges. You can write a small script to generate all grant statements.
    set pagesize 1000 heading off feedback off
    spool grants.sql
    select 'GRANT SELECT, INSERT, UPDATE ON ' || table_name || ' TO A' from dba_tables where owner = 'B';
    spool offYou can then executee this script as:
    @grants.sql

  • CANNOT GRANT A USER ACCESS TO VIEW A SCHEMA USING PORTAL API'S

    Hi, we are using portal 3.0.9.8.3(UNIX middle tier) on a 8.1.7.3 database (UNIX backend).
    We would like to be able to grant a group of users the rights to view only a specific table or view using the functionality of the wwexp_api_engine package. However the only way to do this seems to be to give the users "view data" privilege to "all schemas" within the portal admin. This presents a large security hole since users can could potentionaly pass in different table names (to a url) and get access to undesired tables.
    Granting executable privileges on the package(and sub packages) to the application database schema(whether public or explicit) still yields the above
    message: Error: Insufficient privileges. (WWV-10600)
    So does anyone know of a way to use the wwexp_api_engine package and restrict it to only a certain table or view of a schema? Or possibly what grants may be needed to allow the package to access the table without giving "view data" portal access to "all schemas".
    Any help would be appreciated.

    Hi,
    Try to grant "Create" global privilege to user and grant explicit privileges on the tables to the user. This way the user can create objects, but can view only those tables on which he has a privilege.
    Thanks,
    Sharmila

  • Grant 1111. Error message when confirming goods

    Hi,
    After creating a PO I try to create a goods confirmation but I get the error message: <b>Grant 1111 does not exist</b>. As a second error message I also get the message: No approval workflow found. Inform system administrator. Is there anyone who knows what can be wrong?
    Johanna

    Hi Sachin,
    Yes I have ensured that the workflows are active. I only get the error message when I am using the German Organization... when doing exactley the same thing with the US Organisation that we have everything works accordingly.
    Do you have any idea what Grant 1111 means and what this is set in the system? I have never heard of it before.
    Johanna

  • How to use dbms_metadata to get object grants for an OBJECT?

    Hi guys. I've already searched around for DBMS_METADATA.GET_GRANTED_DDL but couldn't really find what i'm looking for.
    The regular use-case for the procedure is to find all grants given to a specific user. What if I wanted to find out what grants were related to a table? I only saw grant-related queries like the following:
    SELECT DBMS_METADATA.GET_GRANTED_DDL('ROLE_GRANT','SYS') FROM DUAL;
    SELECT DBMS_METADATA.GET_GRANTED_DDL('SYSTEM_GRANT','SYS') FROM DUAL;
    SELECT DBMS_METADATA.GET_GRANTED_DDL('OBJECT_GRANT','SYS') FROM DUAL;
    SELECT DBMS_METADATA.GET_GRANTED_DDL('TABLESPACE_QUOTA','SYS') FROM DUAL;I already have the SQL query to find this sort of stuff out:
    -- get rights granted to PUBLIC on a certain PL/SQL package (ie. DBMS_JAVA)
    set pagesize 9999 linesize 100
    col grantee format a20
    col owner format a8
    col table_name format a30
    col grantor format a8
    col privilege format a10
    col hierarchy format a3
    select unique grantee
         ,tp.owner
         ,table_name
         ,grantor
         ,privilege
         ,grantable
         ,hierarchy
    from dba_tab_privs tp
    left join dba_objects o on tp.owner=o.owner AND tp.table_name=o.object_name
    where table_name in ('ABC','DEF','GHI'); ... but I was hoping to recreate the metadata instead. Thanks!
    Edited by: lrp1 on Jul 19, 2011 10:55 AM

    lrp1 wrote:
    Hi guys. I've already searched around for DBMS_METADATA.GET_GRANTED_DDL but couldn't really find what i'm looking for.
    The regular use-case for the procedure is to find all grants given to a specific user. What if I wanted to find out what grants were related to a table? I only saw grant-related queries like the following:
    SELECT DBMS_METADATA.GET_GRANTED_DDL('ROLE_GRANT','SYS') FROM DUAL;
    SELECT DBMS_METADATA.GET_GRANTED_DDL('SYSTEM_GRANT','SYS') FROM DUAL;
    SELECT DBMS_METADATA.GET_GRANTED_DDL('OBJECT_GRANT','SYS') FROM DUAL;
    SELECT DBMS_METADATA.GET_GRANTED_DDL('TABLESPACE_QUOTA','SYS') FROM DUAL;
    http://www.petefinnigan.com/tools.htm
    who_can_access.sql

  • Grants required for DBMS_RECTIFIER_DIFF?

    Hello,
    can somebody tell me what grants are required to execute the procedure DIFFERENCES inside the sys package DBMS_RECTIFIER_DIFF?
    One of our DBAs has already granted me EXECUTE dbms_rectifier_diff, but when I try to run the procedure, I get the following error:
    ORA-01031: insufficient privileges
    ORA-02063: preceding line from dblink
    ORA-06512: at "SYS.DBMS_RECTIFIER_DIFF", line 1628
    ORA-06512: at "SYS.DBMS_RECTIFIER_DIFF", line 1219
    ORA-06512: at line 3
    Besides GRANT EXECUTE ANY PROCEDURE, is there another grant set that we can apply here to be able to use the functionality fo the package?
    Regards,
    Thomas

    here's the statement that should call the procedure:
    BEGIN
    DBMS_RECTIFIER_DIFF.DIFFERENCES (
    sname1 => 'testschema',
    oname1 => 'test_diff_one',
    reference_site => 'dblink,
    sname2 => 'testschema,
    oname2 => 'test_diff_two',
    comparison_site => 'dblink,
    where_clause => '',
    column_list => 'column1,column2,pk',
    missing_rows_sname => 'testschema',
    missing_rows_oname1 => 'missing_rows_data',
    missing_rows_oname2 => 'missing_rows_location',
    missing_rows_site => 'dblink',
    max_missing => 500,
    commit_rows => 50);
    END;
    both tabled contain same columns (of course with different content), have primary keys and so on. the site is the local database I work on.

  • Grants needed for form on procedure in other schema

    Hi,
    I'm running Apex 4.1.0.00.32 and want to create a form on a procedure in a package.
    My package is not in the parsing schema.
    The wizard lets me select the schema of the package ("procedure owner") and lists package.procedure in the list.
    When I click next I get
    Error User APEXDEV has no privileges on the RIS schema.
    Contact your application administrator.
    A strange thing here is that APEXDEV is the Apex user I'm logged in as in Apex. There is no schema called that...
    RIS is the schema owning the package, so that's correct.
    I have granted execute on the package to APEXRUN (the parsing schema of the workspace).
    I tried to granet execute to both APEX_PUBLIC_USER and PUBLIC but got the same error.
    A public synonym had no effect either.
    Does anyone know what grants are needed?
    Kind regards
    Tomas

    Well, OOW is over by now...

  • Some apps wont open

    Some apps like VLC, Skype etc. won't open. They show up in the dock and starts to bounce, but all they do is keep on bouncing for 1-2 minutes. I started up my Mac in SafeMode and then the applications worked just fine! So i think its some thirdparty application that messes with my apps. Any ideas?
    Thanks in advance

    hans.slang wrote:
    I've tried reinstalling, and it doesnt work. No, I didn't back up. Do you think I should reinstall Lion and see what happens?
    the only thing I might try is cleaning/rebuilding the user and system caches. Way in the dark ages of OS X (like 10.0 or 10.1) before I knew better I defragged. I fixed the problems by cleaning the caches. I tend to use the paid application TinkerTool System. But there are some free applications that can do it, like Onyx.
    If that doesn't work, then yeah, what Grant said:
    Grant Lenahan wrote:
    maybe, an "archive and install" (or whatever they call it under Lion)
    No backup..penny wise and pound foolish. Get thee a USB hard drive and cloning software (CCC suggested)
    I forgot what they call it in Lion, it's a way of reinstalling the OS while leaving the old OS, applications, User directories, etc. on the HD. So you don't have to reinstall everything again.
    Agree in principle with Grant about external HDs and backup/cloning software. I prefer Firewire because it's generally faster than USB. For clones I use SuperDuper! but Carbon Copy Cloner should be good to. I haven't used CCC in years.

  • ORA-39127: unexpected error from call to export_string := SYS.DBMS_RMGR_GROUP_EXPORT.GRANT_EXP(12425,1,...)

    Hi all,
    I am getting this erro on a Datapump Schema export on 11.2.0.2:
    ORA-39127: unexpected error from call to export_string := SYS.DBMS_RMGR_GROUP_EXPORT.GRANT_EXP(12425,1,...)
    ORA-06502: PL/SQL: numeric or value error: NULL index table key value
    ORA-06512: at "SYS.DBMS_RMGR_GROUP_EXPORT", line 154
    ORA-06512: at line 1
    ORA-06512: at "SYS.DBMS_METADATA", line 7049
    ORA-39127: unexpected error from call to export_string := SYS.DBMS_RMGR_GROUP_EXPORT.GRANT_EXP(12424,1,...)
    ORA-06502: PL/SQL: numeric or value error: NULL index table key value
    ORA-06512: at "SYS.DBMS_RMGR_GROUP_EXPORT", line 154
    ORA-06512: at line 1
    ORA-06512: at "SYS.DBMS_METADATA", line 7049
    ORA-39127: unexpected error from call to export_string := SYS.DBMS_RMGR_GROUP_EXPORT.GRANT_EXP(12423,1,...)
    ORA-06502: PL/SQL: numeric or value error: NULL index table key value
    ORA-06512: at "SYS.DBMS_RMGR_GROUP_EXPORT", line 154
    ORA-06512: at line 1
    ORA-06512: at "SYS.DBMS_METADATA", line 7049
    ORA-39127: unexpected error from call to export_string := SYS.DBMS_SCHED_JOB_EXPORT.GRANT_EXP(2003412,1,...)
    ORA-01031: insufficient privileges
    ORA-06512: at "SYS.DBMS_SCHED_MAIN_EXPORT", line 2296
    ORA-06512: at "SYS.DBMS_SCHED_JOB_EXPORT", line 52
    ORA-06512: at line 1
    ORA-06512: at "SYS.DBMS_METADATA", line 7049
    I believe it requires some specific privileges on DBMS_RMGR_GROUP_EXPORT.
    I have found this below explanation Kevin's Blog: SYS.DBMS_RMGR_GROUP_EXPORT.GRANT_EXP but I am not a DBA, so I am not sure what grant needs to be modified.
    It also complains of unsufficient privileges on DBMS_SCHED_JOB_EXPORT.GRANT_EXP, but I am not sure who needs what grant.
    Could you please advise on how to resolve the issue?
    Thanks

    Hi,
    Can anyone help if possible please?
    Thanks

  • Updating Oracle Application Express VIEWS

    Hi,
    Are the Oracle ApEx Views updateable - if so, what grant is required or which user is allowed to do it as I would like to update the APEX_APPLICATION_PAGES view?
    Thanks.
    Tony.

    Tony,
    The APEX views are all read-only.
    You can use parts of the APEX builder to batch update a number of different APEX page & shared components, but not all of them.
    Thanks,
    - Scott -
    http://spendolini.blogspot.com
    http://www.sumneva.com

  • View package body in another schema

    I have developers who want to view the code in the package body in another's schema.
    I know select text from all_source/ user_source works only for packages in your own schema.
    Granting system privelege 'create any procedure' allows the developer to view as well as update priveleges.
    As the owner of the objects what grants do I need to give to developers so that they can only view the code.

    You can grant select_catalog_role permissions to your developers. This will give your developers select access to all of the V$ views and DBA_% views. Then they can view the dba_source table to view other schema's package code..
    Regards,
    David

Maybe you are looking for