SDO_RDF.CREATE_RDF_NETWORK

Hello,
when i execute this comand :
sqlplus khaos/passw @C:\app\Administrator\product\11.1.0\db_1\md\admin\catsem11i.sql
i had this error:
ORA-20000: cannot proceed. Only SYS with DBA privilege can perform this operation.
but my user "khaos" has dba privilege.
and when i try it with the user System, i had the same problem
when i try it with the user sys, i had that connection as sys should be as sysdba or sysoper
what can i do?
thanks

Its seems you should execute that sql in sys user only.
Try to execute sql like below.
let's post what are you getting now?
sqlplus sys/oracle as sysdba @"C:\app\Administrator\product\11.1.0\db_1\md\admin\catsem11i.sql"

Similar Messages

  • Spatial in Oracle 11G

    After installing Oracle11g, I tried to create RDF models in it, but failed in :EXECUTE SDO_RDF.CREATE_RDF_NETWORK('rdf_tblspace'); i only found similar package : SDO_RDF_IMG, anyone know that problem?

    I have a similar problem. After installing Oracle 11g I am unable to create the rdf network.
    SQL> EXECUTE SDO_RDF.CREATE_RDF_NETWORK('rdf_tblspace11');
    BEGIN SDO_RDF.CREATE_RDF_NETWORK('rdf_tblspace11'); END;
    Error on line 1:
    ORA-06550: line 1, column 7:
    PLS-00201: Identifier SDO_RDF.CREATE_RDF_NETWORK must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    Anyone have a solution?

  • Create rdf_network and drop it

    Hi,
    When I'm trying to create rdf network for a table space I get an error message that
    "RDF NETWORK already exists"
    However when I'm trying to drop the rdf network as the following
    "EXECUTE SDO_RDF.DROP_RDF_NETWORK;"
    I again get an error message as
    "ORA-13199: Drop RDF NETWORK error occurred"
    What can the problem be?
    Thanks for your help

    EXEC SDO_NET.DROP_NETWORK('RDF');
    Yes, that will help, except that the argument passed into DROP_NETWORK has to be 'RDF', not 'rdf_tblspace' (which is the tablespace name). This command has to be executed as someone with dba privileges, the user you used to create the network.
    In addition in case you need further cleanup you could try:
    -- connect as the MDSYS user before running this script --
    DELETE FROM sdo_network_metadata_table WHERE network='RDF';
    DROP TABLE RDF_NODE$;
    DROP TABLE RDF_LINK$;
    DROP TABLE RDF_MODEL$;
    DROP TABLE RDF_PATH$;
    DROP TABLE RDF_PLINK$;
    DROP TABLE RDF_NAMESPACE$;
    DROP TABLE RDF_BLANK_NODE$;
    DROP TABLE RDF_VALUE$;
    DROP SEQUENCE rdf_value_id_sq;
    DROP SEQUENCE rdf_node_id_sq;
    DROP SEQUENCE rdf_link_id_sq;
    DROP SEQUENCE rdf_model_id_sq;
    DROP SEQUENCE rdf_namesp_id_sq;
    DROP SEQUENCE rdf_long_lit_id_sq;
    I wonder why you are in this situation however. Did your very first attempt to create an rdf network using sdo_rdf.create_rdf_network('rdf_tblspace') fail? And does it fail again after the above cleanup when you retry? If so one possibility is that your database does not have partitioning enabled. That is necessary for the RDF functionality.
    Melli

  • Errors creating rdf network

    Hello.
    I have installed an Oracle 11.2 and didn't knew that the patch for semantic technologies comes different than for release 11.1. So i copied all the necesary files from the Oracle_home/md/admin from the release 11.1 and executed catsem10i.sql and catsem11i.sql. After i realised that the patch for release 11.2 exists on the oracle website.
    ........I have runned semremov.sql to remove any semantic technology support. After that i runned catsem.sql....
    The problem is the following:
    I am trying to create an RDF network. I connect with sys as sysdba to the database and I execute the following:
    EXECUTE SDO_RDF.CREATE_RDF_NETWORK('rdf_tblspace');
    and i get:
    BEGIN SDO_RDF.CREATE_RDF_NETWORK('rdf_tblspace'); END;
    ERROR at line 1:
    ORA-55321: network already exists
    ORA-06512: at "MDSYS.MD", line 1723
    ORA-06512: at "MDSYS.MDERR", line 17
    ORA-06512: at "MDSYS.SDO_RDF_INTERNAL", line 7726
    ORA-06512: at "MDSYS.SDO_RDF", line 1089
    ORA-06512: at line 1
    After that, when i log in the database with mdsys user and try to create the semantic model, i execute the following:
    SQL> EXECUTE SDO_RDF.CREATE_RDF_MODEL('articles', 'articles_rdf_data', 'triple');
    BEGIN SDO_RDF.CREATE_RDF_MODEL('articles', 'articles_rdf_data', 'triple'); END;
    ERROR at line 1:
    ORA-13199: Tablespace "" does not exist
    ORA-06512: at "MDSYS.MD", line 1723
    ORA-06512: at "MDSYS.MDERR", line 17
    ORA-06512: at "MDSYS.SDO_RDF", line 974
    ORA-06512: at line 1
    Can you please tell me what is the problem?
    Thank you.
    Catali

    Hi. Here is the result.
    NAMESPACE ATTRIBUTE
    VALUE
    DESCRIPTION
    COMPONENT RDFCTX
    INSTALLED
    Semantic (Text) Search component
    COMPONENT RDFOLS
    INSTALLED
    RDF Optional component for OLS support
    NAMESPACE ATTRIBUTE
    VALUE
    DESCRIPTION
    COMPONENT RDFVPD
    INSTALLED
    RDF Optional component for VPD support
    MDSYS SEM_VERSION
    112
    NAMESPACE ATTRIBUTE
    VALUE
    DESCRIPTION
    VALID
    Catalin

  • Import of RDF-Triple - HOW?

    Hello,
    i have some problem:
    I have just installed Oracle 11g. Now, i want to upgrade the database so that I can import RDF-Triple of the type "N3" into my Database. My questions now are:
    1. What do I have to do, to be able to import these triples? Is there any tutorial, that explaines, how I can upgrade for RDF-Import?
    2. When I successfully upgraded my database, how can I import my triples? Can I import N3-TRIPLES or do I have to convert them?
    It would be nice, if anyone can help me.
    Chris

    Hello guys,
    I am trying to Import some N3-Triple to my Database.
    I opened SQL*PLUS and logged in with user: 'SYSTEM'
    First, I installed the RDF-stuff with SQL'PLUS by typing @catsem11i.sql;
    Then, i did the following steps:
    1) CREATE TABLESPACE rdf_tablespace
    DATAFILE '/local/oracle/app/oracle/oradata/THESEUSDl/rdf_tablespace.dat' SIZE 1024M REUSE
    AUTOEXTEND ON NEXT 256M MAXSIZE UNLIMITED
    SEGMENT SPACE MANAGEMENT AUTO;
    2) EXECUTE SDO_RDF.CREATE_RDF_NETWORK('rdf_tablespace');
    3) GRANT EXECUTE ON MDSYS.RDF_APIS_INTERNAL TO SYS;
    4) CREATE TABLE RDF_DATA (id NUMBER, triple SDO_RDF_TRIPLE_S);
    5) EXECUTE SDO_RDF.CREATE_RDF_MODEL('RDF', 'RDF_DATA', 'TRIPLE');
    Well, then I took my littel Java-file for importing the triples:
    here is my code:
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.PrintStream;
    import java.sql.SQLException;
    import oracle.spatial.rdf.client.jena.GraphOracleSem;
    import oracle.spatial.rdf.client.jena.ModelOracleSem;
    import oracle.spatial.rdf.client.jena.Oracle;
    import oracle.spatial.rdf.client.jena.OracleBulkUpdateHandler;
    import com.hp.hpl.jena.graph.GraphUtil;
    import com.hp.hpl.jena.rdf.model.Model;
    import com.hp.hpl.jena.rdf.model.ModelFactory;
    import com.hp.hpl.jena.util.FileManager;
    public class Import {
         * @param args
         * @throws ClassNotFoundException
         * @throws SQLException
         * @throws IOException
         public static void main(String[] args) throws ClassNotFoundException,
                   SQLException, IOException {
              PrintStream psOut = System.out;
              String tbs = "rdf_tablespace";
              int method = 1;
              String className = "oracle.jdbc.driver.OracleDriver"; // path of driver
              // class
              Class.forName(className); // Load the Driver
              String DB_URL = "jdbc:oracle:thin:@URL:1521:THESEUSDB"; // URL of database
              String DB_USER = "SYSTEM"; // database user id
              String DB_PASSWD = "secret_pw"; // database password
              String DB = "Oracle"; // database type
              // Create database connection
              Oracle oracle = new Oracle(DB_URL, DB_USER, DB_PASSWD);
              // darf nicht mit einer zahl anfangen
              String modelName = "onehoundred";
              // create or open the default model
              Model model = ModelFactory.createDefaultModel();
              GraphOracleSem graph = new GraphOracleSem(oracle, modelName);
              // read data
              String filename = "C:\\Path\\sp2b_100000.n3";
              InputStream is = FileManager.get().open(filename);
              // for n3 files
              model.read(is, "", "N3");
              is.close();
              ModelOracleSem modelDest = ModelOracleSem.createOracleSemModel(oracle,
                        modelName);
              GraphOracleSem g = modelDest.getGraph();
              g.dropApplicationTableIndex();
              //batch
                   psOut.println("start batch load");
                   ((OracleBulkUpdateHandler) g.getBulkUpdateHandler()).addInBatch(
                             GraphUtil.findAll(model.getGraph()), tbs);
                   psOut.println("end size " + modelDest.size());
              g.rebuildApplicationTableIndex();
              modelDest.close();
              // Close the database connection
              oracle.dispose();
              System.out.println("Ready.");
    I run it - it takes about 3 minutes - and the i get the following result:
    start batch load
    end size 100073
    Ready.
    So far, so good. But now, i have a little problem. If i look into my Database (with DBVisualizer) , i cannot find my imported triples...
    I don't understand why. In my Java Code, I have "String tbs = "rdf_tablespace"" which I also created before with SQL*Plus. And in that tablespace should be my table "RDF_DATA", i guess. So do I understand anything wrong? Did I forget any step?
    Who can help? I am very desperate right now :-)

  • Is Oracle correct about RDF support?

    RDF support is available in 10.2g standard and enterprise. I installed standard.
    Then I tried to run the suggested quick-start commands below from the "RDF Support in Oracle" document (Oracle Semantic website), but it barfs on the lack of "partitioning" support, which is an special add-on feature, and only for paid Enterprise licenses too no?
    SQL> execute sdo_rdf.create_rdf_network('rdf_tblspace');
    BEGIN sdo_rdf.create_rdf_network('rdf_tblspace'); END;
    ERROR at line 1:
    ORA-00439: feature not enabled: Partitioning
    ORA-06512: at "MDSYS.SDO_RDF_INTERNAL", line 2209
    ORA-06512: at "MDSYS.SDO_RDF", line 137
    ORA-06512: at line 1

    Clarification: RDF support is not available in standard edition, it is only available in enterprise edition and requires a Spatial license.

  • Can't create rdf model

    Hi!
    I'm trying to create rdf_model.
    I use this script
    EXECUTE SDO_RDF.CREATE_RDF_MODEL('articles', 'articles_rdf_data', 'triple');
    and obtain this error message stack:
    ORA-13199: Model error occurred
    ORA-06512: on "MDSYS.MD", line 1723
    ORA-06512: on "MDSYS.MDERR", line 17
    ORA-06512: on "MDSYS.SDO_RDF_INTERNAL", line 1779
    ORA-06512: on "MDSYS.SDO_RDF", line 117
    ORA-06512: on line 2
    Before it, i created a table "articles_rdf_data" with column "triple" for storing rdf triples and run CREATE_RDF_NETWORK.
    What can a problem be in?
    Database 10g enterprise.
    P. S. I am sorry for my English

    A problem is apparently in that I logged under an user SYS. When I logged under other user, a script was executed without errors

  • Can not create more than one model on one table

    My table and tablespace, and semnetwork have been created successfully, with following SQL:
    CREATE TABLESPACE MYONTOLOGY_TBS
    DATAFILE 'C:\Oracle\oradata\odb1\myontology_tbs.dat' SIZE 1024M REUSE
    AUTOEXTEND ON NEXT 256M MAXSIZE UNLIMITED
    SEGMENT SPACE MANAGEMENT AUTO;
    EXECUTE SEM_APIS.CREATE_SEM_NETWORK('MYONTOLOGY_TBS');
    CREATE TABLE MYASSERTIONS
    ID NUMBER NOT NULL,
    ASSERTION MDSYS.SDO_RDF_TRIPLE_S NOT NULL
    TABLESPACE "MYONTOLOGY_TBS";
    Then, I tried to create two models on that table, as following:
    EXECUTE sem_apis.create_sem_model('amodel', 'MYASSERTIONS', 'ASSERTION');
    EXECUTE sem_apis.create_sem_model('bmodel', 'MYASSERTIONS', 'ASSERTION');
    The result was:
    anonymous block completed
    anonymous block completed
    Error starting at line 2 in command:
    EXECUTE sem_apis.create_sem_model('bmodel', 'MYASSERTIONS', 'ASSERTION');
    Error report:
    ORA-13199: Internal error in SDO_RDF.CREATE_RDF_MODEL: SQLERRM=ORA-55300: model bmodel does not exist dss=
    SELECT count("ASSERTION") FROM "MYASSERTIONS"
    ORA-06512: at "MDSYS.MD", line 1723
    ORA-06512: at "MDSYS.MDERR", line 17
    ORA-06512: at "MDSYS.SDO_RDF", line 937
    ORA-06512: at "MDSYS.SDO_RDF", line 972
    ORA-06512: at "MDSYS.RDF_APIS", line 726
    ORA-06512: at line 1
    13199. 00000 - "%s"
    *Cause:    This is an internal error.
    *Action:   Contact Oracle Support Services.
    It seems that more than one model can not coexist on one single table, is that right? And is it means that, if I wanna manage a large number of models, I must create and manage the same large number of table? On my case, I have hundreds of models to handle and thousands of predicates in each on average, I don't think managing hundreds of tables is a good approach, is there another way?

    Oracle may think manage metadata of their database is a simple and interesting task, but I don't think so. I believe that manage database metadata should only be oracle's duty, I would never involve even one single line of DDL in my software. So if I can not store multiple model in a single table, or at least a certain number of tables, I have to discard oracle's solution, and build one of myself.

  • Getting error while creating model error

    Hello
    Iam hitting folowing error while creating the model
    created new table with this command
    SQL> CREATE TABLE health_rdf_data (id NUMBER, triple SDO_RDF_TRIPLE_S);
    Table created.
    for create model
    SQL> EXECUTE SDO_RDF.CREATE_RDF_MODEL('health', 'health_rdf_data', 'triple');
    then i hitting this following error
    ERROR at line 1:
    ORA-06550: line 1, column 7:
    PLS-00905: object SEMANTIC.SDO_RDF is invalid
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    please suggest me clear this error
    thanking you,
    Madhan.

    could you do the following and let me what is the results?
    select * from mdsys.rdf_model$;

  • Batch loading with sdordf.jar.

    Hi Guys
    I have just tried a batch load with sdordf.jar.
    In my first attempt there was a mistake in the n3 file.
    After correcting the file and re running I now get the error.
    Connecting to jdbc:oracle:thin:...........
    Append mode
    Copy existing data out
    Just load triples into one column
    Temporary table already exists!
    java.sql.SQLException: ORA-00955: name is already used by an existing object
    ORA-06512: at "MDSYS.SDO_RDF_INTERNAL", line 3326
    ORA-06512: at "MDSYS.SDO_RDF_INTERNAL", line 3362
    ORA-06512: at "MDSYS.RDF_APIS", line 786
    ORA-06512: at line 1
    Can anyone tell me what the name of this temporary table is, so that I can get rid of it.
    Cheers
    Phil

    Hi Mellie
    After having a little break I have installed the jena patch during which I had to drop the network and model created before.
    I tried running a batch load as before but I still get the error message saying the temporary table already exists.
    I tried the clean up routine as suggested but get the error.
    SQL> exec sdo_rdf.cleanup_batch_load('researchdata')
    BEGIN sdo_rdf.cleanup_batch_load('researchdata'); END;
    ERROR at line 1:
    ORA-13199: Batch load cleanup failed. ORA-00942: table or view does not exist
    ORA-06512: at "MDSYS.MD", line 1723
    ORA-06512: at "MDSYS.MDERR", line 17
    ORA-06512: at "MDSYS.SDO_RDF", line 1016
    ORA-06512: at "MDSYS.SDO_RDF", line 1022
    ORA-06512: at line 1
    I run it as mdsys as you said.
    Any other suggestions?
    Cheers
    Phil

  • Errors: ORA-29913 ORA-29400 KUP-03154, when executing SEM_APIS.LOAD_INTO_STAGING_TABLE

    Hi all,
    I use Oracle 12c Spatial and Graph and I need to load a N-QUAD file with large literals.
    To do so I first create a directory and a source external table
    SQL> CREATE DIRECTORY DATA_DIR AS '/tmp';
    SQL> EXECUTE sem_apis.create_source_external_table(source_table => 'STAGE_TABLE_SOURCE', def_directory => 'DATA_DIR', bad_file => 'CLOBrows.bad');
    SQL> ALTER TABLE "STAGE_TABLE_SOURCE" LOCATION ('data.nq');
    then I change the READSIZE parameter of the external table (because the literals of the file are more than 512KB).
    SQL> ALTER TABLE STAGE_TABLE_SOURCE DEFAULT DIRECTORY DATA_DIR ACCESS PARAMETERS (READSIZE 1048576);
    the I try to load data into the staging table
    SQL> EXECUTE SEM_APIS.LOAD_INTO_STAGING_TABLE(staging_table => 'STAGE_TABLE', source_table  => 'STAGE_TABLE_SOURCE', input_format  => 'N-QUAD');
    but I get the following error:
    ERROR at line 1:
    ORA-13199: During LST: SQLERRM=ORA-29913: error in executing ODCIEXTTABLEOPEN
    callout
    ORA-29400: data cartridge error
    KUP-03154: kudmxo-03:invalid_dump_header
    (Arguments:  staging_table=STAGE_TABLE source_table=STAGE_TABLE_SOURCE
    input_format=N-QUAD parallel= source_table_owner= staging_table_owner= flags=)
    [ORA-06512: at "MDSYS.SDO_RDF", line 884
    ORA-06512: at "MDSYS.MD", line 1723
    ORA-06512: at "MDSYS.MDERR", line 17
    ORA-06512: at "MDSYS.SDO_RDF", line 906
    ORA-06512: at "MDSYS.RDF_APIS", line 883
    ORA-06512: at line 1
    I could not find any information about error KUP-03154.
    Any hint about how to solve this problem will be very appreciated.

    Yes all privileges and permissions seem to be OK.
    To be more specific, the linux user (oracle) that executes sqlpls has both read and write permissions both on data directory and the input N-QUAD file.
    The SQL user is the owner of the directory object and it has also been granted the SELECT privilege on external table and SELECT, UPDATE on staging table.
    I think that the problem is something about the external table and the large literals of my input file (e.g., a literal consists 658KB). Because after changing the location of the external table to this file, even a simple query like counting its tuples causes the same error. On the other hand if I use a file with smaller literals everything works fine.
    Best regards

  • Bulk Complete Error

    Hello,
    I am currently having an issue with the Complete Bulk stored proc call that I am executing through the Jena Adapter. The problem is when the stored proc attempts to load an invalid date, here is the exception:
    ERROR[2012-02-03 23:02:40,115] - [[STUCK] ExecuteThread: '0' ] - [OracleJenaModelProvider] - Could not complete bulk update due to SQL Exception.
    java.sql.SQLException: ORA-13199: During LBV: [03-FEB-12 11.14.56.611349000 PM -05:00]
    ORA-13199: Element Parse Error: Invalid date/time value [debug info: GCVN-timestamp: 0000-00-00T00:00:00] (value: "0000-00-00T00:00:00"^^<http://www.w3.org/
    2001/XMLSchema#dateTime>) [
    ORA-06512: at "MDSYS.MD", line 1723
    ORA-06512: at "MDSYS.MDERR", line 17
    ORA-06512: at "MDSYS.SDO_RDF", line 29
    ORA-06512: at "MDSYS.SDO_RDF_INTERNAL", line 1233
    ORA-06512: at line 1
    ORA-06512: at "MDSYS.SDO_RDF_INTERNAL", line 2465
    ORA-06512: at "MDSYS.MD", line 1723
    ORA-06512: at "MDSYS.MDERR", line 17
    ORA-06512: at "MDSYS.SDO_RDF_INTERNAL", line 2616
    ORA-06512: at "MDSYS.SDO_RDF_INTERNAL", line 6091
    ORA-06512: at "MDSYS.SDO_RDF", line 707
    ORA-06512: at "MDSYS.RDF_APIS", line 893
    ORA-06512: at line 1
    We pass the date through the XSDDatatype.XSDdateTime.unparse(value) method to return the Node that we insert into the staging table. This does not throw any exception or error stating that the string created is "Invalid".
    We are running with the 11.2.0.3 version of Oracle DB and the latest Jena Adapter.
    Thanks
    -MichaelB

    This is more or less the code that we are using to load the data into the Staging table.
    public void performBulkUpload(Model model) throws Exception {
    GraphOracleSem graph = getModel().getGraph();
    OracleBulkUpdateHandler handler = graph.getBulkUpdateHandler();
    handler.prepareBulk(model, "SEM_DATA", null, null, null);
    This is how we complete bulk:
    public void completeBulk(String completeBulkFlags) throws Exception {
    GraphOracleSem graph = null;
    try {
    graph = getModel().getGraph();
    try {
    graph.dropApplicationTableIndex();
    } catch (SQLException e) {}
    graph.getBulkUpdateHandler().completeBulk(completeBulkFlags, null);
    graph.rebuildApplicationTableIndex();
    finally {
    if (graph != null)
    graph.close();
    We are not using a StatusListener. I looked at that and assumed since the triple was inserted into the staging table the StatusListener would not help in this situation.
    Does the StatusListener pick up that this date is considered invalid?
    Thanks
    -MichaelB

  • How to remove namespace

    Hello,
    i have again a little problem, i don't know, how to remove a namespace. I can insert namespaces using SDO_RDF.ADD_NAMESPACES, bit i can't find something like SDO_RDF.DEL_NAMESPACES..any suggestions?

    Hi,
    Deleting a namespace will have to be done by deleting it directly from the table where it is stored, which is the rdf_namespace$ table in the mdsys schema. For example:
    connect mdsys/<mdsys password>
    delete from rdf_namespace$ where namespace_name = '............';
    Please note that the namespaces stored in this table are not used by any of Oracle's operations. This table is merely a convenience for the user, and a similar table can be created in the user's schema, which is likely to be much more convenient than storing it in the mdsys schema. Going forward that is the approach we recommend, as future versions of the product might not include the rdf_tablespace$ table in the mdsys schema (nor the associated add_namespace() API).
    Melli

  • Cannot Create RDF View in R2RML Conversion Example

    Hi All,
    In a project I want to do a R2RML conversion. I folowed below steps according to 12c Release 1 tutorial.
    1. Create a stage table with below command.
    CREATE TABLE stage_table_name(
                         RDF$STC_sub varchar2(4000) not null,
                         RDF$STC_pred varchar2(4000) not null,
                         RDF$STC_obj varchar2(4000) not null,
                         RDF$STC_graph varchar2(4000)
    2. Grant select and insert this stage table for user MDSYS
    GRANT SELECT, INSERT ON STAGETAB TO MDSYS;
    3. Load r2rml mapping to this stage table with running below java code.
    Oracle oracle = new Oracle (connectionUrl, user, password);      
    GraphOracleSem graph = new GraphOracleSem(oracle, modelName);
    FileInputStream is = new FileInputStream(mappingFile);
    graph.getBulkUpdateHandler().prepareBulk(is,//inputstream
          "http://example.com", // base URI
          "TTL", // data file type: can be RDF/XML, N-TRIPLE, etc.
          "rdf_users", // tablespace
          null, // flags
          null, // listener
          stageTableName// staging table name.
    graph.close();
    oracle.dispose();
    4. Create RDF View with this stage table to execute below command.
    BEGIN
    sem_apis.create_rdfview_model(
    model_name => 'rdf_view_name',
    tables => NULL,
    r2rml_table_owner => 'user',
    r2rml_table_name => 'stage_table_name'
    END;
    I performed first 3 steps successfully. Stage table has been created and r2rml mapping has been loaded to this stage table. But in the last step there is an error like this;
    [Error] Execution (1: 3): ORA-00904: "CHILDCOL$RDFTERM": invalid identifier
    ORA-06512: at "MDSYS.SDO_RDF_INTERNAL",  line 14308
    ORA-06512: at "MDSYS.SDO_RDF",  line 3616
    ORA-06512: at "MDSYS.RDF_APIS",  line 1253
    ORA-06512: at  line 2
    How can I solve this problem?
    Thanks

    Hi Pinar,
    I created the same staging table, loaded up exactly the same mapping file, run the create_rdfview_model, and
    could not reproduce the problem.
    Note that I created the "staging_table_name"  under schema SCOTT. And these are the commands I used.
    public class Test2616990
      public static void main(String[] args) throws Exception
        String szJdbcURL = args[0];
        String szUser    = args[1];
        String szPasswd  = args[2];
        String szModelName = args[3];
        Oracle oracle = new Oracle(szJdbcURL, szUser, szPasswd);
        ModelOracleSem model = ModelOracleSem.createOracleSemModel(oracle, szModelName);
        GraphOracleSem graph = model.getGraph();
        FileInputStream is = new FileInputStream("map.rdf");
        graph.getBulkUpdateHandler().prepareBulk(is,//inputstream 
          "http://example.com", // base URI 
          "N3", // data file type: can be RDF/XML, N-TRIPLE, etc. 
          "SYSAUX", // tablespace 
          null, // flags 
          null, // listener 
          "stage_table_name" // staging table name. 
        model.close();   
        oracle.dispose();
    alwu:lib/% cat run.sh
    java -classpath ./classes:jena-arq-2.9.2.jar:jena-core-2.7.2.jar:jena-iri-0.9.2.jar:log4j-1.2.16.jar:ojdbc6.jar:sdordfclient.jar:sdordf.jar:slf4j-api-1.6.4.jar:slf4j-simple-1.6.4.jar:xercesImpl-2.10.0.jar:xml-apis-1.4.01.jar Test2616990 jdbc:oracle:thin:@<host>:1521:rel12101  scott  <password>  zhe1
    BEGIN 
        sem_apis.create_rdfview_model( 
        model_name => 'rdf_view_name', 
        tables => NULL, 
        r2rml_table_owner => 'SCOTT', 
        r2rml_table_name => 'STAGE_TABLE_NAME' 
        END; 
    SQL>   2    3    4    5    6    7    8    9 
    PL/SQL procedure successfully completed.
    Hope it helps,
    Zhe Wu

  • RDF insert results in error ?

    hi,
    When trying to insert the following in an oracle 10g release 2 db (on linux) the following error resulted:
    ORA-13199: RDF:Error occurred
    ORA-06512: at "MDSYS.MD", line 1723
    ORA-06512: at "MDSYS.MDERR", line 17
    ORA-06512: at "MDSYS.SDO_RDF_TRIPLE_S", line 98
    the statement was:
    INSERT INTO things_rdf_data(triple) VALUES (
         SDO_RDF_TRIPLE_S('things'
    ,'http://www.things.vertis.nl/disease/Pellagrin'
    ,'http://www.things.vertis.nl/relatie/disease/komtVoorIn'
    ,'http://www.things.vertis.nl/pubmed/3578280'));
    The string 'http://www.things.vertis.nl/pubmed/3578280' is the cause of the error. The funny thing is that if this string is altered in any way (delete a character, alter a single character) the insert succeeds. The position of this string is not relevant, it can serve as subject, predicate or object.
    does anyone have any idea wat the cause of this problem is ?
    the workaround we used to circumvent the problem is to use 'things.vertis.nl' as prefix instead of 'www.things.vertis.nl'
    and now we pray not to find another one of these problem-strings....

    Hi Bryan,
    "ORA-13199: RDF:Error occurred" happens when NULL or invalid data is
    passed to the RDF constructor. This may happen if you are running out of
    cursors. JDBC Statements can open database cursors. If cursors are
    continually opened without being freed, then the database will run out
    of cursors. If you are opening Statements, please remember to close them (see JDBC manual).
    Example problem code:
    for( int i=0; i<stmts.length; i++ ) {
    Statement stmt = test.conn.createStatement();
    System.out.print( ""+i+" " );
    stmt.execute( stmts[ i ] );
    Example fixed code:
    for( int i=0; i<stmts.length; i++ ) {
    Statement stmt = test.conn.createStatement();
    System.out.print( ""+i+" " );
    stmt.execute( stmts[ i ] );
    stmt.close();
    When the database runs out of cursors and the RDF constructor is called with
    NULL entries, the "ORA-13199 RDF:Error occurred" error message is seen.
    This issue is not related to RDF. Your RDF data can be inserted into the database without any problem:
    SQL> create table things_rdf_data (triple sdo_rdf_triple_s);
    Table created.
    SQL>
    SQL> exec sdo_rdf.create_rdf_model('things','things_rdf_data','triple');
    PL/SQL procedure successfully completed.
    SQL>
    SQL> INSERT INTO things_rdf_data(triple) VALUES (
    2 SDO_RDF_TRIPLE_S('things', 'http://www.example.org/base2/#subject129','http://www.example.org/b
    ase2/#predicate92425',
    3 'http://www.example.org/base2/#object129'));
    1 row created.
    SQL> INSERT INTO things_rdf_data(triple) VALUES (
    2 SDO_RDF_TRIPLE_S('things', 'http://www.example.org/base2/#subject129','http://www.example.org/b
    ase2/#predicate92425',
    3 'http://www.example.org/base2/#object129'));
    1 row created.
    SQL> INSERT INTO things_rdf_data(triple) VALUES (
    2 SDO_RDF_TRIPLE_S('things', 'http://www.example.org/base3/#subject129',
    3 'http://www.example.org/base3/#predicate129',
    4 'http://www.example.org/base3/#object92425'));
    1 row created.
    SQL> INSERT INTO things_rdf_data(triple) VALUES (
    2 SDO_RDF_TRIPLE_S('things', 'http://www.example.org/#subject92426',
    3 'http://www.example.org/#predicate130','http://www.example.org/#object130'));
    1 row created.
    SQL> commit;
    Commit complete.
    SQL>

Maybe you are looking for

  • Can I embed OpenType fonts in Flash CS 5.5?

    I just reopened an old-ish Flash project and the fonts aren't working. The project was worked on previously in CS 3 or 4 - don't recall - on a Mac running some earlier version of OS X. I'm currently running Lion and Flash CS 5.5, and some of the font

  • IP addresses.

    How can I get IP addresses of client and host in a web application. Not just in servlets, I want to know how to get these values in a simple java class. Thanks,

  • Validity Table Question - 0CALDAY and 0PLANT

    Hi, I have an Inventory InfoCube 0IC_C03 and I noticed that the validity table has both 0CALDAY and 0PLANT checked.  I read the documentation that it's best to have just 0CALDAY. http://help.sap.com/scenarios_bus2004/helpdata/en/42/266241fe918347e100

  • After installation photoshop cs5 extended is not working properly

    don't know what the problem is?

  • AS91 & OASV

    Dear All, We are trying to upload legacy asset balances. The understanding is that T-Code AS91 is to be used to upload individual asset balances into FI- AA module first and then for accounting the APC and accumulated depreciation (in GL accounts) T-