Creating / deleting indexes using a Package

In SchemaA:
CREATE OR REPLACE PACKAGE TESTPACKAGE AS
PROCEDURE Create_Indexes;
PROCEDURE Drop_Indexes;
END TESTPACKAGE;
/

CREATE OR REPLACE PACKAGE BODY TESTPACKAGE AS
PROCEDURE Create_Indexes
IS
BEGIN
EXECUTE IMMEDIATE 'CREATE UNIQUE INDEX SCHEMAB.IDX1 ON SCHEMAB.TABLEA (COLUMN_PK) NOLOGGING NOPARALLEL';
COMMIT;
EXCEPTION
   WHEN NO_DATA_FOUND THEN
       DBMS_OUTPUT.PUT_LINE('NO DATA FOUND IN BASE TABLES' );
   WHEN OTHERS THEN
      DBMS_OUTPUT.PUT_LINE('ERROR MESSAGE:' || SQLERRM );
END;

PROCEDURE Drop_Indexes
IS
BEGIN
EXECUTE IMMEDIATE 'DROP INDEX SCHEMAB.IDX1';
COMMIT; 

EXCEPTION
WHEN NO_DATA_FOUND THEN
DBMS_OUTPUT.PUT_LINE('NO DATA FOUND IN BASE TABLES' );
WHEN OTHERS THEN
DBMS_OUTPUT.PUT_LINE('ERROR MESSAGE:' || SQLERRM );
END;

END;
{code}
I have granted the following on SCHEMAB.TABLEA to SCHEMAA

GRANT SELECT, INSERT, UPDATE, DELETE, REFERENCES, ALTER, INDEX ON TABLEA TO SCHEMAA;

The problem is that when i am logged into Oracle 10g I can execute any of the commands i have put into the execute immediate and they work. However when I execute the package it tells me it has completed but the index has not been created nor has it been dropped in SchemaB. I am not getting any error messages displayed.

The reason before anyone asks why is that there is a nightly load of data happening from scratch so the process is basically Schema A will drop the indexes , execute a truncate table statement on the tables in schema B. The populate will happen and then the create indexes will be executed. This is being done for speed.

Any help would be greatly appreciated.
thanks                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                

(1) A ONCE OTHER exception that does not again raise an exception handler is almost certainly a mistake. In your case, you write DBMS_OUTPUT via error message, but unless your front end comes to try to read and display the DBMS_OUTPUT buffer, the error will be ignored. You really want to remove this exception handler.

(2) creating an index will not trigger a NO_DATA_FOUND if there is no data in the table, this exception handler is superfluous.

(3) If you want that the user has to be able to create an index in the schema of the user B, the user must be granted the CREATE ANY INDEX privilege (directly, not through a role). If you get a permissions error after removing incorrect exception handlers, create the index, this is probably the problem. If you get an error of permissions deleting the index after removing incorrect exception handlers, you need to ensure that the user is granted the privilege to DEPOSIT ANY CLUE.

(4) since the different PRIVILEGES (CREATE ANY INDEX, DROP ALL INDEXES, etc.) are powerful enough and not limited to a particular schema, is there a logical reason does not put this code in detail b. first?

Justin

Tags: Database

Similar Questions

  • the new 12.1 feature creates an Index using Advanced Compression of Index - what is requires an additional license

    I see in one of the new features that you can create an index by using the index advanced compression... not him come with the oracle enterprise database, or you must buy an additional OPTION to use?

    All options are approved separately from the point of view of license Yes you have permission to use this feature.

    It will be useful.

  • Upon resuming from hibernation my computer asks continue logon or delete restoration data. Restore data refers to a previous restoration or a restore point that was created for later use?

    Original title: F8 and troubleshooting.

    After starting my computer Gateway Profile4 after hibernation, I wonder to continue logon or delete restoration data. Restore data refers to a previous restoration or a restore point that was created for later use? If restoring the use of revert to a previous state, you can cancel that catering is also created which I think could be is requested.

    original title: after waking up from hibernation, he asked me to continue logon or delete restoration data.

    Recently, I had this problem.  This link above (http://support.microsoft.com/kb/294427) helped me.

    Basically, it seems to be a corrupted restore point created to go into hibernation.  I think that the system wants to remove that restore point and reboot "fresh."

    Restore data refers to a previous restoration or a restore point that was created for later use?


    A previous restore point.

    If restoring the use of revert to a previous state, you can cancel that catering is also created which I think could be is requested.


    If I understand you correctly, no.

    Hope this helps

    -Rich

  • If you deploy a package that you created with computer mictrosoft, Mac user, you need to use a package of Mac? If so do you need to use a mac to create a package of mac?

    If you deploy a package that you created with computer mictrosoft, Mac user, you need to use a package of Mac? If so do you need to use a mac to create a package of mac?

    Programs Windows will not install on a Mac

  • It's a good idea to create an index on a column used for partitioning

    I'm new to using partitions as well as the index. Can someone help me with the situation below?

    I have a table defined as below


    CREATE TABLE FACT_MASTER
    (
    PERIODCODE NUMBER (8) NOT NULL,
    PRODUCT_CD NUMBER (10) NOT NULL,
    DPT_CD NUMBER (3).
    FACT_VALUE1 NUMBER,
    FACT_VALUE2 NUMBER,
    FACT_VALUE3 NUMBER,
    .....
    .....
    .....
    .....
    .....
    FACT_VALUE50 NUMBER
    )
    PARTITION BY RANGE (PERIODCODE)
    (
    partition P1 lower values (2002),.
    partition P2 lower values (2003).
    lower partition P3 values (2004),
    ...
    ..
    )

    This table is partitioned on the shop period code.

    In a select query on the table, period code and product code are used. I intend to create an index to improve performance. Does make sense to include the period code column in the index? I intend to create indexes only for the product code column. I think that the partition itself behaves as an index for periodcode. Can someone tell me if this is correct? I use 10g.

    Published by: user6794035 on January 21, 2010 08:47

    Published by: user6794035 on January 21, 2010 08:50

    If the index is an overall index, then yes it is worth including. But check that your SQL would actually benefit an overall index.

    If your period still code in SQL, then the partition pruning will natuarally and would therefore not be required to be part of the index!

    P;

  • Why create indexes use non-temporary tables?

    Looking into creating this index R-Tree, I noticed that all the staging tables are created as permanent instead of temporary tables.

    Why create a land index do this?

    Create the staging tables as temporary tables should reduce significant global creation time - what I'm missing here?

    Bryan

    Temporary tables are session-private. In other words, the different parallel slaves

    sessions may not see the same temporary tables.

  • How to call user B to drop/create an indexes on a table owned by the user has?

    Hello!
    We have the following situation:
    = > user B has a table that has an index
    = > user connects to the database and must have sufficient privileges or the ability to drop/create an index for a table owned by the user B.
    Since there are several different schemas in the database, it is not possible to grant the privilege "to create any index' or 'delete any index '.
    for the user.
    = > to do even more complicated: the necessary procedure must not belong to user B

    I tried to solve this problem with a stored procedure (which belongs to user C). Why do we use user C? C the user has several packages,
    procedures and functions that get used by other users (for example for purposes of logging, refresh materialized views,...)

    So the logic is:
    = > user A calls user procedure C. In this procedure the call "run immediately" ALTER SESSION SET CURRENT_SCHEMA = B' "»
    is executed successfully. The next step, the < drop index B.i1 > statement would get executed. But this statement fails with the
    exception ' ORA-01031: insufficient privileges ".

    If this procedure is created in the schema of the user B then everything works fine - but because of our current design of the database, this procedure
    must belong to the user C.

    Does anyone know a solution to this problem?

    Any help will be appreciated

    Rgds
    JH

    I think you need the privilege DROP_ANY_INDEX directly to user C.

  • Create, delete the folder in the application server

    Hello

    I'm new in Oracle forms. My version is forms [32 bit] Version 9.0.2.12.2 (Production), and AS it is WINNING.
    I need to create a folder in the AS and after that I want to delete this folder.

    1. is there a way to create a folder (directory) in the ACE? I have to check if this folder is present.
    If absent, I have to create it.
    If present, then rename it and create another directory with the original name.

    2. is it possible to delete the record in SA? If possible, what is the way?

    3. I confused what are the differences between TEXT_IO & UTL_FILE. If any times that use functions/packages?

    Can someone help me please? Any response is greatly appreciated. Thanks in advance.

    Thank you

    Fabien

    try adding a space after the run.bat. It is a common mistake when trying dynamic query in a string, so always print your final string on the screen or elsewhere to see if the syntax is correct.

    François

  • Cannot create spatial indexes in Oracle 11 g

    Hi all!
    I'm using Oracle 11 g 2 on Windows 2008 (64bitxR2). When I get errors when I create Spatial Index oracle11g2, but it works well with Oracle 10 g. I don't know what I did wrong, or do I need a fix for Oracle Spatial 11 g 2?
    Can you help me? Thanks for any help!


    ORA-29858: an error has occurred in the execution of the routine ODCIINDEXALTER
    ORA-29400: data cartridge error
    ORA-01403: no data found
    ORA-13249: internal error in the Spatial index: [mdidxrbd]
    ORA-13249: error in the Spatial index: index build failed
    ORA-13249: error in the spatial index: [mdrcrtxfergm]
    ORA-13249: error in the spatial index: [mdpridxtxfergm]
    ORA-13200: internal error [ROWID:AAAUmYAAIAAAJuFAAB] in space indexering.
    ORA-13206: [] internal error creating the spatial index
    ORA-13033: invalid data in the SDO_ELEM_INFO_ARRAY in the SDO_GEOMETRY object
    ORA-06512: vid 'MDSYS. SDO_INDEX_METHOD_10I', line 313

    DELETE FROM mdsys.sdo_coord_ref_system WHERE srid = 50632625;
    DELETE FROM mdsys.sdo_coord_op_param_vals WHERE coord_op_id = 50632625;
    DELETE FROM mdsys.sdo_coord_ops WHERE coord_op_id = 50632625;

    -COORD_OP_METHOD_ID = 9807: Transverse Mercator
    INSERT MDSYS. () SDO_COORD_OPS
    COORD_OP_ID, COORD_OP_NAME, COORD_OP_TYPE, COORD_OP_METHOD_ID.
    INFORMATION_SOURCE, DATA_SOURCE,
    SHOW_OPERATION, IS_LEGACY, IS_IMPLEMENTED_REVERSE, IS_IMPLEMENTED_FORWARD, REVERSE_OP)
    values)
    50632625, ' ST_74_0_GON_65: op-1 ', 'CONVERSION', 9807,.
    "Digpro AB, [email protected],"Digpro AB. "
    1, 'FALSE', 1, 1, 1);

    -Setting for the latitude of origin (0)
    INSERT MDSYS. () SDO_COORD_OP_PARAM_VALS
    COORD_OP_ID, COORD_OP_METHOD_ID, PARAMETER_ID, PARAMETER_VALUE, PARAM_VALUE_FILE_REF, UOM_ID)
    VALUES (50632625, 9807, 8801 0.000000, 9102, NULL);

    -Setting for east central meridian 18 ° 03' 28,044 "
    INSERT MDSYS. () SDO_COORD_OP_PARAM_VALS
    COORD_OP_ID, COORD_OP_METHOD_ID, PARAMETER_ID, PARAMETER_VALUE, PARAM_VALUE_FILE_REF, UOM_ID)
    VALUES (50632625, 9807, 8802, 18.05779, NULL, 9102);

    -Setting for the scale factor
    INSERT MDSYS. () SDO_COORD_OP_PARAM_VALS
    COORD_OP_ID, COORD_OP_METHOD_ID, PARAMETER_ID, PARAMETER_VALUE, PARAM_VALUE_FILE_REF, UOM_ID)
    VALUES (50632625, 9807, 8805, 0.99999425, NULL, 9201);

    -Setting for abscissa
    INSERT MDSYS. () SDO_COORD_OP_PARAM_VALS
    COORD_OP_ID, COORD_OP_METHOD_ID, PARAMETER_ID, PARAMETER_VALUE, PARAM_VALUE_FILE_REF, UOM_ID)
    VALUES (50632625, 9807, 8806, 100178.1808, NULL, 9001);

    -Setting for fictitious ordinate
    INSERT MDSYS. () SDO_COORD_OP_PARAM_VALS
    COORD_OP_ID, COORD_OP_METHOD_ID, PARAMETER_ID, PARAMETER_VALUE, PARAM_VALUE_FILE_REF, UOM_ID)
    VALUES (50632625, 9807, 8807,-6500614.7836, NULL, 9001);

    -Adds the system projected on top the geodetic system in rt90_dp_geosystem_102.sql
    -COORD_SYS_ID = 4400: CS Cartesian Axes. 2D: abscissa, ordinate (E, N). Directions: East, North. Unit of measure: m.
    -GEOG_CRS_DATUM_ID = 4619: SWEREF99
    INSERT MDSYS. () SDO_COORD_REF_SYSTEM
    SRID, COORD_REF_SYS_NAME, COORD_REF_SYS_KIND, COORD_SYS_ID.
    DATUM_ID, GEOG_CRS_DATUM_ID, SOURCE_GEOG_SRID, PROJECTION_CONV_ID.
    CMPD_HORIZ_SRID, CMPD_VERT_SRID, INFORMATION_SOURCE,
    DATA_SOURCE, IS_LEGACY, LEGACY_CODE, LEGACY_WKTEXT, LEGACY_CS_BOUNDS,
    IS_VALID, SUPPORTS_SDO_GEOMETRY)
    VALUES)
    50632625,'ST_74_0_GON_65:-1 ', 'PROJECTION', 4400,.
    NULL, 6619, 4619, 50632625,.
    NULL, NULL, 'Digpro AB, [email protected],
    'Digpro AB', 'FALSE', NULL, NULL, NULL,
    "TRUE", "TRUE");

    sqlplus kranskom/password
    -Update the metadata for the KRANSKOM schema
    Insert values (user_sdo_geom_metadata)
    "BOUCHIHAB", "SHAPE", HE SAID.
    () mdsys.sdo_dim_array
    MDSYS.sdo_dim_element ('Y',-100000, 200000, 0.0005).
    MDSYS.sdo_dim_element ('X',-100000, 200000, 0.0005),
    MDSYS.sdo_dim_element ('Z', -1000, 1000, 0.0005)
    ), 50632625
    );

    -Display content in column form (in the table GRAG)
    Insert into GRAG (SHAPE) values (MDSYS. SDO_GEOMETRY (3003,50632625, 'null', MDSYS. SDO_ELEM_INFO_ARRAY (1,5,1,1,2,1), MDSYS. SDO_ORDINATE_ARRAY(276.2339,-179.7433,0,276.2498,-179.7361,0,276.2668,-179.7324,0,276.2842,-179.7325,0,276.6235,-179.7691,0,276.793,-179.7731,0,276.8055,-179.772,0,276.8174,-179.7682,0,276.8281,-179.7619,0,277.073,-179.5793,0,277.2068,-179.4543,0,277.2122,-179.4481,0,277.2162,-179.4408,0,277.2186,-179.4329,0,277.2192,-179.4247,0,277.2159,-179.3107,0,277.3184,-178.9335,0,277.3252,-178.6913,0,277.3265,-178.5765,0,277.3258,-178.5683,0,277.3237,-178.5604,0,277.3201,-178.5531,0,277.3152,-178.5465,0,277.3092,-178.541,0,277.3023,-178.5366,0,277.2947,-178.5337,0,277.2867,-178.5321,0,277.1778,-178.5219,0,277.1731,-178.5219,0,277.1683,-178.5227,0,277.1637,-178.5244,0,277.1595,-178.5268,0,277.1558,-178.5299,0,277.1527,-178.5336,0,277.1503,-178.5378,0,277.1486,-178.5424,0,277.1478,-178.5471,0,277.1478 ,-178.5519,0,277.1536,-178.6151,0,277.1537,-178.6198,0,277.1529,-178.6244,0,277.1515,-178.6289,0,277.0012,-178.9885,0,276.9919,-179.0066,0,276.9797,-179.023,0,276.9651,-179.0373,0,276.2832,-179.6059,0,276.2804,-179.6079,0,276.2773,-179.6093,0,276.274,-179.6101,0,276.2706,-179.6103,0,276.2673,-179.61,0,276.264,-179.609,0,276.2609,-179.6075,0,276.2582,-179.6054,0,276.2559,-179.6029,0,276.2541,-179.6001,0,276.2528,-179.5969,0,276.252,-179.5935,0,276.2476,-179.5581,0,276.247,-179.5555,0,276.2459,-179.5529,0,276.2444,-179.5506,0,276.2425,-179.5485,0,276.2402,-179.5469,0,276.2377,-179.5456,0,276.235,-179.5449,0,276.2322,-179.5446,0,276.2294,-179.5449,0,276.2267,-179.5456,0,276.2242,-179.5468,0,276.2219,-179.5485,0,276.22,-179.5505,0,276.0132,-179.8127,0,276.0105,-179.8169,0,276.0086,- 179.8215,0,276.0076,-179.8263,0,276.0074,-179.8312,0,276.0082,-179.8361,0,276.0099,-179.8408,0,276.0124,-179.845,0,276.0157,-179.8488,0,276.0196,-179.8518,0,276.0239,-179.8541,0,276.0287,-179.8556,0,276.0336,-179.8562,0,276.0385,-179.8558,0,276.0433,-179.8546,0,276.0478,-179.8525,0,276.2339,-179.7433,0)));

    If the 2D, the value of 2002 data. otherwise assign 3002.

    Siva

  • How to use a package as an interface to do DML on a region in a table?

    Hello

    I want to build a page to perform DML. However, I would use a package that contains the procedures to select, insert, update, and delete. The reason is that there is a one-to-many relationship between the table display and tables in the database.

    When the page appears first of all, I wish to draw the SELECTION procedure.
    When the user is done with their changes, I want to loop through the rows and perform
    the DELETION procedure on all deleted rows and
    UPDATE on each changed row procedure.

    What is the best way to do it?
    Where should I start / learning of reading?

    Thank you

    Gabor

    Hello

    This link might help you
    http://Apex-SMB.blogspot.com/2008/07/manually-creating-tabular-form.html

    BR, Jari

  • Creates an Index and now the TOC disappeared on the HR server

    I posted about this before and have not really got an answer that solves our problems. This morning my co-worker has created a system of help using FlashHelp Pro, he has published on the RoboHelp Server... it seems fine. Still, she had not created an index so she went back into RoboHelp and created the index. When it posted its files on the server of HR, the table of contents are now gone. The content pane is there, just no content that the scroll bar is as it is going to take, but disappears. We tried republication, empty the temporary Internet files, screaming at the computer... nothing.

    After much research, we noticed that RoboHelp Server adds a bunch of entries after your .htm file in the address bar. This effectively changes the functions of the HR server on and outside reports. Here is an example: http://server/robo/projects_fhpro/projectname/file.htm# > > prj = Example project > > cap = project example > > pbs = toc | ndx | NLS | GLS > > APB = toc > > pot = > > pan = 0

    When you delete these additions to the address of the table of contents appears again in his project.

    Therefore, he said that RoboHelp is playing with something in the things he puts into the address.

    No idea what's going on? What happened three people enough to chance now, and I get annoyed by it.

    If you have the answer you are looking for, you're officially my hero!

    My question has been answered! RoboHelp Server don't like spaces in the names of your project, so if you have spaces, then replace with underscores or take out all together. In fact, I went in the project folder on my drive local and had to rename my project file with underscore to make it work. After republish it on the server... BOOM... the Table of contents is back. I missed it greatly, but we meet once more

  • run immideate Create spatial index

    I can't create a spatial index in the package when using
    run immideate

    declare

    l_res varchar2 (500);
    Start
    l_res: = ' CREATE INDEXES INDXSDO1_elements
    (GEOMETRY)
    INDEXTYPE IS MDSYS. SPATIAL_INDEX';

    immediately run l_res;
    end;

    I get an exception:

    ORA-29855: an error has occurred in the execution of routine ODCIINDEXCREATE
    ORA-13249: internal error in the Spatial index: [mdidxrbd]
    ORA-13249: error in the Spatial index: index build failed
    ORA-13249: error in R-tree: [mdrcrtscrt]
    ORA-13231: unable to create the index table [$MDRT_FC41] creating R-tree
    ORA-13249: Stmt-run failure: CREATE TABLE 'GMT_TECH '. MDRT_FC41$ (NUMBER, NUMBER OF NODE_LEVEL, BLOB INFO NODE_ID) LOB (INFO) STORE (CACHE) AS NOLOGGING PCTFREE 2
    ORA-29400: data cartridge error
    ORA-01031: insufficient privileges
    ORA-06512: at the 'MDSYS. SDO_INDEX_METHOD_10I', line 10
    ORA-06512: at "GMT_TECH. REBUILDINDEX", line 66
    ORA-06512: at line 3 level

    Why does this happen?
    I can create indexes without immediate execution

    CREATE the INDEX INDXSDO1_elements
    (GEOMETRY)
    INDEXTYPE IS MDSYS. SPATIAL_INDEX


    Thank you!

    Have you granted 'create table' and "create sequence" for the user? To do this explicitly rather than by a role.

  • problems of creating spatial indexes

    Hello

    I downloaded Oracle 10.2 Express edition and installed locally, (they don't want me to play with the regular database here until I learned a little bit about it :), and I'm trying to learn how spatial data in Oracle Locator on the work by working, for example, they have to http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14255/sdo_objrelschema.htm#i1004750

    I created a gisuser with DBA DBA privilege to the SQL command line. GISuser strives through the database homepage.

    Everything seems OK until I try to create indexes

    CREATE INDEX cola_spatial_idx
    ON cola_markets (shape)
    INDEXTYPE IS MDSYS. SPATIAL_INDEX;

    Gives errors:
    ORA-29855: an error has occurred in the execution of routine ODCIINDEXCREATE
    ORA-13203: cannot read the notice USER_SDO_GEOM_METADATA
    ORA-13203: cannot read the notice USER_SDO_GEOM_METADATA

    When I try to check the metadata:
    Select * from user_sdo_geom_metadata;
    gives:
    ORA-00932: inconsistent data types: expected NUMBER obtained MDSYS. SDO_DIM_ARRAY

    Same answer for:
    Select * from mdsys.sdo_geom_metadata_table;

    When I write the same query to command line, I get:

    SQL > select * from mdsys.sdo_geom_metadata_table;

    SDO_OWNER SDO_TABLE_NAME
    -------------------------------- --------------------------------
    SDO_COLUMN_NAME
    --------------------------------------------------------------------------------

    SDO_DIMINFO (SDO_LB, SDO_UB, SDO_DIMNAME, SDO_TOLERANCE)
    --------------------------------------------------------------------------------

    SDO_SRID
    ----------
    ANONYMOUS COLA_MARKETS
    FORM
    SDO_DIM_ARRAY (SDO_DIM_ELEMENT ('X', 0, 20, 005), SDO_DIM_ELEMENT ('Y', 0, 20, 00)

    (5))


    SDO_OWNER SDO_TABLE_NAME
    -------------------------------- --------------------------------
    SDO_COLUMN_NAME
    --------------------------------------------------------------------------------

    SDO_DIMINFO (SDO_LB, SDO_UB, SDO_DIMNAME, SDO_TOLERANCE)
    --------------------------------------------------------------------------------

    SDO_SRID
    ----------

    which seems to me that the metadata is as it should be?

    I will be grateful for any ideas on what to do to solve the problem.

    -partially solved:
    I dropped the index and recreated on the PLSQL command-line. Got error messages:
    ERROR on line 1:
    ORA-29855: an error has occurred in the execution of routine ODCIINDEXCREATE
    ORA-13203: cannot read the notice USER_SDO_GEOM_METADATA
    ORA-13203: cannot read the notice USER_SDO_GEOM_METADATA
    ORA-06512: at the 'MDSYS. SDO_INDEX_METHOD_10I', line 10

    But even you I got these error messages, it strives to make some queries to command line, but not yet to the homepage.

    SQL > SELECT SDO_GEOM. SDO_INTERSECTION (c_a.shape, c_c.shape, 0.005)
    2 OF cola_markets are, cola_markets ikram
    3 WHERE c_a.name = 'cola_a' AND c_c.name = 'cola_c ';

    SDO_GEOM. SDO_INTERSECTION (C_A.SHAPE, C_C.SHAPE, 0.005) (SDO_GTYPE, SDO_SRID, SDO_PO

    --------------------------------------------------------------------------------

    SDO_GEOMETRY (2003, NULL, NULL, SDO_ELEM_INFO_ARRAY (1, 1003, 1), SDO_ORDINATE_ARR)

    AY (4, 5, 3, 3, 5, 3, 5, 5, 4, 5))

    DB home page, I always get:
    ORA-00932: inconsistent data types: expected NUMBER obtained MDSYS. SDO_GEOMETRY

    This means can't work with spatial data in the DB home page?
    Why do I get these errors when I created the index, when it seems to work anyway?

    The last request in example gives errors:
    SQL > CREATE TABLE val_results (ROWID, VARCHAR2 result sdo_rowid (2000));

    Table created.

    SQL > SDO_GEOM APPEAL. VALIDATE_LAYER_WITH_CONTEXT ('COLA_MARKETS', 'FORM',
    2 "VAL_RESULTS", 2);
    DIAL THE SDO_GEOM. VALIDATE_LAYER_WITH_CONTEXT ('COLA_MARKETS', 'FORM',
    *
    ERROR on line 1:
    ORA-13203: cannot read the notice USER_SDO_GEOM_METADATA
    ORA-13203: cannot read the notice USER_SDO_GEOM_METADATA
    ORA-06512: at the 'MDSYS. SDO_3GL', line 665
    ORA-06512: at the 'MDSYS. SDO_GEOM", line 3770
    ORA-06512: at line 1

    SQL > SELECT * from val_results;

    no selected line

    When I check for data

    SQL > select * from user_sdo_geom_metadata;

    no selected line

    but
    Select * from mdsys.sdo_geom_metadata_table
    given that he has given, it is not available in the view. What can I do about it?

    Eija

    Edited by: user12093437 23-Oct-2009 00:55

    Published by: user12093437 on 23-Oct-2009 01:15

    Published by: user12093437 on 23-Oct-2009 01:31

    The SDO_GEOMETRY and other types of objects are not supported in tools, use the command line
    sqlplus to create.
    Similarly, you will not be able to select objects using the tool that you use, so you must use the command line to select them as well.

    If you look at your metadata entry, he was ANONYMOUS for the SDO_OWNER that is the problem.
    So delete this entry and recreate metadata from the command line.

    Siva

  • Re-create all indexes on new data files

    Hello

    on FSCN 9.2 on Win 2008

    We'll re-create all indexes (belonging to sysadm) in the new data files.

    -Are there any script or utility to do this?

    -can you offer me any scenario?

    Otherwise, I think only of:

    0-extract DDL for all areas of storage and index.

    1-drop tablesapces

    2 Create tablespaces (by the DBMS_GETDLL script ('TABLESPACE'...)

    3 re-create all indexes (by the DBMS_GETDLL script ('INDEX',...))

    4 rebuild all indexes.

    Any idea?

    Thank you.

    of 786997.1

    There is no trace of PeopleTools that stores the name of the tablespace for the index.

    Here's how to work the tablespaces.

    There is a table called PSDDLMODEL where we store the information of DOF model for index and table creation, among other things. DDL models contain a template with replaceable parameters. One of the parameters in the create index Oracle is a field called INDEXSPC. This field by default is PSINDEX.

    If you wish to override this value, you can go in the App Designer, open a folder, select Tools-> data Administrations-> select Index to edit the index and then select modify DDL, then select change the setting for the Create Index and Create Unique Index model. This replaces PSINDEX for this record. The name of the underlying table is PSIDXDDLPARM.

    If you want to change the default PSINDEX to something else, go to the utilities Menu and use DOF model by default and change the PSINDEX to something else. Once you change this setting, the next time that you create the index, it will be created in the tablespace.

    If you create an index in a different tablespace outside PeopleSoft, we have no knowledge of this and do not update our tables in order to take into account where he currently resides. Once you have updated the default template and replaced the records you want to replace, you can make a Data Mover, followed of a Data Mover import export and the index will be created as they have been redefined. Or you can just do a SQL Create Index and re-create all of them.

  • Get the 500 error trying to create a table using the REST API

    Hello

    I tried to create a table using the REST API for Business Intelligence Cloud, but I got 500 Internal Server Error for a while now.

    Here are the details that I use to create a table.

    Capture.JPG

    and the json to create the schema that I use is

    [{'Nullable': [false], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ["ROWID"]}]

    , {'Nullable': [true], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ['RELATIONID']},

    {'Nullable': [true], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ['ID']}

    , {'Nullable': [true], 'defaultValue': 'dataType' [null],: ['TIMESTAMP'], 'precision': [0], 'length': [0], 'columnName': ['RESPONDEDDATE']},

    {'Nullable': [true], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [255], 'columnName': ['RESPONSE']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['TIMESTAMP'], 'precision': [0], 'length': [0], 'columnName': ['SYS_CREATEDDATE']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ['SYS_CREATEDBYID']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['TIMESTAMP'], 'precision': [0], 'length': [0], 'columnName': ['SYS_LASTMODIFIEDDATE']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ['SYS_LASTMODIFIEDBYID']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['TIMESTAMP'], 'precision': [0], 'length': [0], 'columnName': ['SYS_SYSTEMMODSTAMP']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [10], 'columnName': ['SYS_ISDELETED']},

    [{'Nullable': [true], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [50], 'columnName': ['TYPE']}]

    I tried this using postman and code, but I always get the following response error:

    Error 500 - Internal server error

    Of RFC 2068 Hypertext Transfer Protocol - HTTP/1.1:

    10.5.1 500 internal Server Error

    The server encountered an unexpected condition which prevented him from meeting the demand.

    I am able to 'get' existing table schemas, delete the tables, but I'm not able to make put them and post operations. Can someone help me to identify the problem, if there is no fault in my approach.

    Thank you

    Romaric

    I managed to create a table successfully using the API - the only thing I see in your JSON which is different from mine is that you have square brackets around your values JSON where I have not. Here is my CURL request and extract my JSON file (named createtable.txt in the same directory as my CURL executable):

    curl u [email protected]: password UPDATED h x ' X-ID-TENANT-NAME: tenantname ' h ' Content-Type: application/json '-binary data @createtable.txt https://businessintell-tenantname.analytics.us2.oraclecloud.com/dataload/v1/tables/TABLE_TO_CREATE k

    [

    {

    'columnName': 'ID',

    'dataType': 'DECIMAL ',.

    'Length': 20,.

    "accuracy": 0.

    'Nullable': false

    },

    {

    'columnName': 'NAME',

    'dataType': 'VARCHAR ',.

    'Length': 20,.

    "accuracy": 0.

    'Nullable': true

    },

    {

    "columnName': 'STATUS."

    'dataType': 'VARCHAR ',.

    'Length': 20,.

    "accuracy": 0.

    'Nullable': true

    },

    {

    "columnName': 'CREATED_DATE."

    'dataType': 'TIMESTAMP '.

    'Length': 20,.

    "accuracy": 0.

    'Nullable': true

    },

    {

    'columnName': 'UPDATED_DATE ',.

    'dataType': 'TIMESTAMP '.

    'Length': 20,.

    "accuracy": 0.

    'Nullable': true

    }

    ]

Maybe you are looking for

  • Display in 3D games problems

    Satellite 5105-s701 (GeForce4 440 Go)Windows xp pro When I play 3D - like CS, Call of Duty and Star Wars KOTOR games a lot of green dots appear in the areas that are supposed to be dark. Sometimes, there are no problems, and sometimes the Green error

  • The Core 2 Duo CPU runs on the Qosmio G30?

    Question is as follows:In 2 months, Intel will come with Core 2 Duo/merom cpu for laptop.Then PC laptop toshiba qosmio todays will support these processors for an upgrade?And I wonder generally how much can be improved with a toshiba laptop?As if I w

  • Initialization problem

    Hello This is my code: int main (int argc, char * argv []){error int = 0; / * initialize and load resources * /.nullChk (InitCVIRTE (0, argv, 0));errChk (panelHandle = LoadPanel (0, "CVI GUI.uir", Panel)); / * display of the control panel and run the

  • mxtask2.exe application error "0x003401dd" referenced memory at "0xffffffff". '0x003401d8' referenced memory at '0x000001d2 '.

    mxtask2.exe application error the instruction at "0x003401dd" referenced memory at "0xffffffff". The memory could not be read.This message is displayed at system startup.The computer is a Dell Latitude D810 running under Windows XP / SP3 / Intel Pent

  • I can't activate my ready Cache! Frustrated

    I'm really frustrated with Support technique Sandisk! My readycahe came without activation key.  I called tech support and they gave me an activation key.  I put the activation key in the box and it says "invalid activation code, please try again." I