Submit sparql using sqlplus

I want to run a sparql query using sqlplus. I got something real simple to work fine like:
select s,typ from table(sem_match('(?s rdf:type ?typ)', sem_models('cnodb'), null, null, null))
However, I get errors when the sparql is a bit more complex like this:
select subj,rel,obj from table(sem_match('(?s rdf:object ?obj . ?s rdf:subject ?subj . ?s dc:relation ?rel)', sem_models('cnodb'), null, null, null))
ERROR at line 1:
ORA-29532: Java call terminated by uncaught Java exception:
oracle.spatial.rdf.server.ParseException: Encountered "." at line 1, column 21.
Was expecting:
ORA-06512: at "MDSYS.RDF_MATCH_IMPL_T", line 203
ORA-06512: at "MDSYS.RDF_MATCH_IMPL_T", line 67
ORA-06512: at line 4
Does anyone know the proper syntax to submit this sparql? Thanks.
Russ

I can run queries with paranthesis syntax.
However, when I run the following query:
select scan_num, rt from table(sem_match(
'{ ?s rdf:type owl:scan.
?s owl:_num ?scan_num.
?s owl:_retentionTime ?rt. }',
sem_models('final1'), null,SEM_ALIASES(SEM_ALIAS('owl','http://www.owl-ontologies.com/mzxml.owl#')),null,null,null));
I get following results:
select scan_num, rt from table(sem_match(
ERROR at line 1:
ORA-29532: Java call terminated by uncaught Java exception:
oracle.spatial.rdf.server.ParseException: Encountered "?s" at line 2, column 4.
Was expecting one of:
"OPTIONAL" ...
"FILTER" ...
ORA-06512: at "MDSYS.RDF_MATCH_IMPL_T", line 203
ORA-06512: at "MDSYS.RDF_MATCH_IMPL_T", line 67
ORA-06512: at line 4
Elapsed: 00:00:00.05
sqlplus OK
May I know what the error could be?

Similar Messages

  • Associating two events with submit button using  javascript in jsp

    Hi
    How can i Associate two events with submit button using javascript in jsp. Firstly it should insert the data to database and secondly it should close the same pop-up window

    Have something like :
    <input type="submit" name="submitbtn" value="Click me" onClick="function1(); function2(); " />
    You just call both functions sequentially, it's that simple. Although using javascript to work with a database, that seems a bit tricky.

  • How to STARTUP multiple Oracle Databases, using sqlplus (SOLARIS)

    Hi guys,
    I am pretty new at solaris and oracle, right now i have oracle 11gr2 installed in my Solaris 10 machine.
    I managed to create 2 databases with 2 different ORACLE_SID, (e.g. A & B)
    my question is, is it possible to have both of this Databases mounted and opened??
    here is the step i have done so far:
    - go to /ORACLE_HOME/bin
    - I started my one and only LISTENER - ./lsnrctl start LISTENER
    - ORACLE_SID=A
    - ./sqlplus / as sysdba
    - SQL>STARTUP
    Everything went well, until i set another ORACLE_SID (in another terminal) to ORACLE_SID=B, and when i tried to start it up using SQLPLUS, i get this "Segmentation Fault - core dumped".
    It seems like i start the 2nd database wrongly, is there proper way to do this?
    i need the 2 databases (SID A & SID B) to be running concurrently.
    thanks

    Hi guys,
    I am pretty new at solaris and oracle, right now i have oracle 11gr2 installed in my Solaris 10 machine.
    I managed to create 2 databases with 2 different ORACLE_SID, (e.g. A & B)
    my question is, is it possible to have both of this Databases mounted and opened??
    here is the step i have done so far:
    - go to /ORACLE_HOME/bin
    - I started my one and only LISTENER - ./lsnrctl start LISTENER
    - ORACLE_SID=A
    - ./sqlplus / as sysdba
    - SQL>STARTUP
    Everything went well, until i set another ORACLE_SID (in another terminal) to ORACLE_SID=B, and when i tried to start it up using SQLPLUS, i get this "Segmentation Fault - core dumped".
    It seems like i start the 2nd database wrongly, is there proper way to do this?
    i need the 2 databases (SID A & SID B) to be running concurrently.
    thanks

  • Inserting non-ascii characters to ORACLE using SQLPLUS

    Hi
    I'm using Oracle 10.2.
    I would like to insert data with non-ascii characters, like éñ etc.
    For example:
    INSERT INTO FOO(NAME) VALUES ('abcñ');
    The problem is this - when I use SQLDeveloper with this query - there's no problem. However when I use SQLPLUS - I see the ñ character messed up.
    Most environments use some kind of escaping mechanism (like the \uXXXX in JAVA or %XX in URL escaping), but I simply can't find how to do so in SQLPLUS.
    Can somebody help please?

    Are you using "char" or "nchar" character datatypes? Make sure that the database character set defines the language script you need to support (see nls_database_parameters).

  • Custom Measure - Unable to Submit Data Using Input Schedule

    We have an application that requires storage of data on a job-to-date basis.  To accommodate this, the application was changed to a YTD application and 3 custom measures were added:
    JTD (base data)
    YTD_JOBS (offsets current period against last month of prior period)
    PERIODIC_JOBS (offsets current period against prior period)
    Everything is working and the measures resolve to the correct values.  The system also completes logic (advanced and dimension) properly.  Data may also be submitted through an Import process. 
    However, we are unable to submit data using an input schedule.  We consistently get a "no data to refresh" error message.  When the same schedule is used in the older, periodic version of the application, the submission works as expected.
    I suspect the problem is the naming of the custom measures is the root cause.  I have been unable to find documentation (BPC 5.1M) related to custom measures for 5.1.  Any help resolving this issue and/or tracking down custom measures documentation for v5.1 is much appreciated.
    Cheers,
    Jeff

    Joost,
    I believe what you are describing is the root of the issue.  The application is set to YTD as the data input type both in the web admin section and in the database table.  The problem is that JTD is the input member for this application -- we are loading job-to-date values instead of year-to-date.
    It seems that BPC does not understand JTD as a "base level" measure fort the input method.  I have not been able to find a table in the database that defines PERIODIC and YTD.  My hope was to add JTD to the settings. 
    Unless someone else has made something like this work, I suspect that I'll have to use YTD as the ID of the base member and restructure the custom measures.  We did not start this way since the user community thinks in terms of JTD data.

  • Submit report using selection-table to report 'RKAEP000'(Tcode ksb1)

    Hi,
    I am calling report "RKAEP000'(This is the report for tcode KSB1) using submit statement in my program to import the ksb1 output in my program. For time being I am calling this report using selection-set 'variant'.
    The selection screen of ksb1 is designed with modulepool program (screen 100).
    The selection screen of my program is similar to ksb1 initial screen, except layout option and controlling area is on the screen itself instead of calling it through menu.
    Please tell me how to post the selction criteria of my report to the calling program 'RKAEP000'.
    Thanks,
    suresh

    You can use WITH addition of SUBMIT statement.
    SUBMIT report1 USING SELECTION-SCREEN '1100'
                   WITH SELECTION-TABLE rspar_tab
                   WITH selcrit2 BETWEEN 'H' AND 'K'
                   WITH selcrit2 IN range_tab
                   AND RETURN.
    Regards,
    Premal

  • SUBMIT statement using variant

    Hi Gurus,
    i am trying to use execute a variant , and that variant has to be submitted in memory.(i.e i have three variants A,B,C whenever i run the report using variant A then that fields only has to be passed to memory) , but instead of that , even if i am using varinat B  , but by defaul it is taking another variant which contains all the fields.I think my issue is clear.i am using this submit statement.
    SUBMIT (sy-repid)
             AND RETURN
             EXPORTING LIST TO MEMORY
             WITH SELECTION-TABLE i_selscr.
    pleasehelp me regarding this ASAP.
    Thanks and regards,
    Rajeshwar

    Hi Rajeshwar
    You can submit it by using variant name also:
    Submit <Report> USING SELECTION-SET variant .
    Check this link:
    http://sapdevelopment.co.uk/reporting/rep_submit.htm
    http://help.sap.com/abapdocu/en/ABAPSUBMIT_SELSCREEN_PARAMETERS.htm
    http://help.sap.com/abapdocu/en/ABAPSUBMIT_SELSCREEN_PARAMETERS.htm
    Need information about SUBMIT statement
    Regards
    Neha
    Edited by: Neha Shukla on Nov 30, 2008 12:46 PM
    Edited by: Neha Shukla on Nov 30, 2008 3:22 PM

  • Trying to log in using sqlplus /nolog and getting SP2-0640

    Hello, I searched for this problem but not having much luck. I have Oracle 9iR2 running on Solaris 9 workstation. I can log on giving sys/passwd as sysdba and log on using any other user accounts. What I can't do is get into sqlplus using /nolog. I am setting up a dataguard physical clone. The clone is another 9iR2 workstation and i just installed the RDBMS software without creating a database. I can go into this database with sqlplus /nolog. I cannot do this on my intended primary database. I remember being able to get into the database when i first set it up using sqlplus /nolog but have since changed the unix account password and i believe this caused it but when i change the password back to the same one when I created the database, it still does not work. The error I get is SP2-0640: Not connected. Is there a log I can look up that will give me more information? thanks,
    Jim

    Normally this errors occurs, if you have in glogin.sql (located in $ORACLE_HOME/sqlplus/admin) or login.sql statements,which require a working connection.
    Werner

  • Unable to connect using sqlplus using Oracle 11.2.0.1 32bit(x86) client

    I have database running on Oracle 11.2.0.3 on Linux 5.5 64bit. Another server where I have installed Oracle Client 11.2.0.1 32-bit (x86). (http://www.oracle.com/technetwork/database/enterprise-edition/downloads/112010-linuxsoft-085393.html).
    But I can not do tnsping, I get segementation fault. Additionally, I can not to database using sqlplus <user>@SID. I get prompted for the password, then I am back the unix prompt again without any error.
    For debugging, I installed 64bit version of the client, which can connect to database. I am using same version/copy of tnsnames.ora. No special character (^M) in the tnsnames.ora.
    Any suggestions how do I get this fixed?
    Thanks,
    KP

    I figure I should update my findings on the resolution.
    during Oracle 11.2.0.1 client installation, there was an error/warning message about oracle net configuration assistant unable to run. So, I had ignore it thinking its benign and created the tnsnames.ora file manually. On a hunch after 9 days of debugging, i decided to look into this warning message, and found some info in the ora32Inventory/logs/installAction-<date>.log. It had following error about java when running oracle net config.
    INFO: # Java VM: Java HotSpot(TM) Server VM (1.5.0_17-b02 mixed mode)
    INFO: # Problematic frame:
    INFO: # C [libnnz11.so+0x3c35e]
    So, I google the error, and after some research and reading, found an oracle patch to address this error:
    ORA-24550: SQL*Plus 32-Bit Client May Crash On Linux X86-64 OS With AMD Processor [ID 1120724.1]
    Patch info: 8670579 - DBBETA :NETCA/DBCA FAILED WITH HOTSPOT VIRTUAL MACHINE
    Typically, this patch (8670579) is installed on Oracle RAC. however I tried on my app server (oracle client). It resolved my sqlplus issue and more importantly it resolve my application (Business Objects/BSAE) installation issue where it was unable to connect to oracle database using 11.2.0.1 client.
    Cheers,
    KP

  • [HELP] How to records user who use SQLPlus or SQL editor?

    Dear Gurus,
    Is onyone know how to record user who use SQLplus or any SQL editor?
    for instance...
    user1 using SQLplus on monday august 9.30.21 PM...and I have table which record this for audit user.
    Or..
    Can I block user who connect to oracle using SQLPlus?
    If anyone know how to do this..please inform me...
    Thanks and Regards
    Erie

    You can enable Auditing (AUDIT_TRAIL) and audit at the Session Level to record Logon and Log off of a required user. This can be enabled to be recorded in the audit table or operation system file. You can also audit user statements etc.
    For example, to enable auditing connect for user UGONIC
    SQL>audit connect by UGONIC;
    TO disable it
    SQL>noaudit connect by UGONIC;
    Check in the SQL Reference for the AUDIT statement and requirements.
    If you do not want the user to connect at all via SQL*Plus, you can use PRODUCT_USER_PROFILE to disable a users access to SQL*Plus or at the lower level, disable specified SQL*Plus and SQL commands for the user. You need to run the PUPBLD.SQL script as system user (if not run yet) and add records to it as required.
    Example: After running PUPBLD.SQL. This entry stops the user UGONIC from using the drop command at the backend in SQL*Plus.
    INSERT into product_user_profile (product,userid,attribute,char_value,date_value)
    values('SQL*Plus','UGONIC','DROP','DISABLED',NULL);
    Note that if a user is already connected by the profile entry, it is not activated on that session, but on subsequent logons. Again read the requied security documentations for this.
    For both auditing, you need to set the required database intialisation parameters and know where to get the audit records (in tables, views or OS file). For instance, when using tables, you maintain and query tables like audit$ to view the logs. When using OS type logging, it is recorded on the path specified in the AUDIT_FILE_DEST init parameter (In Windows, it is logged in the Windows Event and you can view it from the event viewer).

  • How to set .oraenv command in linux to use sqlplus.

    Hi
    I have installed oracle 11.1.0.6.0 in Oracle Enterprise Linux 5.
    My problem is every time i use sqlplus, i have to execute .oraenv at first. There it always asks me to enrer ORACLE_SID = [oracle] ?
    Is there any way to fix it permanently?
    Thanks

    user576726 wrote:
    Thanks
    Could you please tell me how to export those variables? because I am new in Linux.Actually it depends on your system. While installing Oracle 10g on Linux, I make the following changes to .bashrc file in order to connect to database automatically without defining the same variables once more
    export ORACLE_HOME=/home/oracle/oracle/product/10.2.0/db_1
    export ORACLE_SID=your_database_sid
    export PATH=$ORACLE_HOME/bin:$PATH

  • Using sqlplus command after installing oracle 9i on RHEL 3

    Hi experts,
    I have installed oracle database on Redhat enterprise linux 3.
    Install location is /home/oracle/ora9i.
    Version Oracle 9i (9204)
    after installation when I typed follwing commands ..it did not work
    $ sqlplus /nolog
    Please help me with this.
    Thanx in advance ...
    Deepak

    duplicate post of following thread
    Using sqlplus command after installing oracle 9i on RHEL 3

  • How to compile all package body using sqlplus ?

    hi all,
    How to compile all package body using sqlplus ?
    Please help.
    Amy

    dbms_utility.compile_schema will compile all the invalid objects in a schema, including the invalid package bodies. If you only want to compile the invalid package bodies, you could write your own dynamic SQL stored procedure to do that using the user_source view, but that's a lot more effort for a very minimal benefit.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • How to view stored procedure using SQLPlus

    I have created the following stored procedure in Oracle, I would like to know how to view this stored procedure using SQLPlus:
    CREATE PROCEDURE get_product_code(prod_no IN VARCHAR2) IS
         CURSOR Getno IS
              <my_query_goes_here>
         BEGIN
              For Getno_cur IN Getno LOOP
              DBMS_OUTPUT.PUT_LINEGetno_cur.name);
              END LOOP;
         END;
    run;

    Hi,
    You can also use USER_SOURCE in place of ALL_SOURCE, for getting your own procedure code (or any pl/sql schema object).
    Regards

  • Inserting Chinese character using sqlplus

    I am not able to insert Chinese character using sqlplus .
    Am getting disconnected when trying to insert.
    with no error
    message coming
    is disconnected form oracle enterpise 10.2.0.2.0 with .. mining..
    Please help.

    sql is simple insert statement
    insert into t5(txt) values ('中中 中 中 中 中 中 中 中 中 ');
    os is AIX
    I wonder when i using sql developer I am able to insert.
    regarding environmental variable , I am not setting any variable regarding NLS.
    I simply connect sqlplus username/password
    when I execute following statement
    sqlplus disconnect without giving any error.
    question is why sql developer is able able to insert and sqlplus not
    Thanks for reply

Maybe you are looking for

  • With Cisco Secure ACS For Windows TACACS+, authentication fails with AD

      I am setting up a Cisco Secure ACS 4.2 server to act as a TACACS server for Switches and Routers  I am using Windows 2003 server for the ACS, and a Windows 2003 Active Directory server.  The AD server is fine, as it is used for many other things. I

  • Creating jTbale that reads a text file

    hey, i want to make a Jtable out of a text file such that if there are blank spaces it should enter the text into a new column and if there is a new line then it should be entered into a new row. ...like if there is a text file such as 1 2 3 4 5 6 th

  • Nikon D60 won't upload to iphoto 9.6 Yosemite

    When I try to upload my photos from my D60 into if 9.6.1 (Yosemite), all the thumbs are shown, but then the transfer get s stuck. None of the photos will import, and the upload just freezes. It really appears like the RAW compatibility isn't there, e

  • CS2 Permissions Problem

    Hey, I am using an old copy of CS2 and recently I decided to upgrade my PC to Windows 7.  I performed a clean install which removed all my programs and loaded on Windows 7 without any of the additional programs that I use to have.  I then managed to

  • Navigation from Fireworks

    Building first website so I am trying to do it right first time. I want to create my initial navigation buttons in Fireworks so I can have rollovers, effects on mouse over etc. I get the buttons the way I want them but when I put them into Dreamweave