ORA-01789 - when you use the operator of TABLE and SEM_MATCH

Client version: 11.1.0.7 on Windows 7 (32 bit)
Server version: 11.2.0.3 on Windows 7 (64-bit)

I am model prototyping a simple RDF, and I'm getting a ' ORA-01789: block has an incorrect number of columns in query results "when you use the SEM_MATCH with the SCOREBOARD operator.

I can run this:
select id, a.triple.GET_TRIPLE() from drik.rdf_data a
and the first line is:
(<http://www.ihc.com/drik/term#2>, <http://www.w3.org/2000/01/rdf-schema#subClassOf>, <http://www.ihc.com/drik/term#1>)
Now, I want to use the TABLE like this:
select
  c
from 
  table(sem_match('{ <http://www.ihc.com/drik/term#2> <http://www.w3.org/2000/01/rdf-schema#subClassOf> ?c . }', 
        sem_models('Prototype'),
        sem_rulebases('RDFS'),
        sem_aliases(sem_alias('rdfs','http://www.w3.org/2000/01/rdf-schema/')),
        null
        ))
But this performance gives the ORA-07189. Even try SELECT * gives the same error.

I expect to get a refund:
<http://www.ihc.com/drik/term#1>
How should I approach troubleshooting this?

Thank you, Steve

Thanks for posting the script. I was able to reproduce the error locally.

The problem is the use of the sem_apis.create_rules_index () procedure, which has been deprecated:
http://docs.Oracle.com/CD/E11882_01/AppDev.112/e25609/sdo_rdf_newfeat.htm#autoId26

Please use sem_apis.create_entailment () instead, and the error should disappear.
http://docs.Oracle.com/CD/E11882_01/AppDev.112/e25609/sem_apis_ref.htm#CHEHDGBD

Thank you
Matt

Tags: Database

Similar Questions

  • Message box color settings disabled when you use the dialog "Windows color and appearance".

    When you use the configuration dialog box 'Window color and appearance', why are there color settings invalid?  I want to remove the default 'Pastel Pink' value that I find unacceptable.

    I can switch to "Classic Windows" that uses no pastel pink color, but "Classic Windows" does not support "Aero Peek", and the windows look pretty tired.  You can only take "Classic Windows" for many years.

    Color settings are disabled for: buttons, Message box, title of Palette, scroll bar.

    Help, please!

    Me too I'm frustrated by that.   Found the old windows with very honest XP environment.   I used the advanced settings, but has not found a way to save the changes with a label, so I knew that the changes you made.   It is just Frigging trial and error and very frustrating.

    Why are there no way to return either to the default value (not found a default label) or save the settings changed under a name?    It is a productivity KILLER.

    Hello

    Interface user of Windows 7 is theme based. The colors are defined by the theme.

    You still have many color options that can be used to change the colors.

    Right click on the desktop and select Personalize. Click on the color of the window at the bottom of the window box.

    You can select one of the colors in the boxes colored at the top.

    Adjust the intensity of the color with the cursor.

    Click on the color down mixer and you can a lot of variations on all the different color choices.

    I hope this helps.

    Thank you for using Windows 7

    Ronnie Vernon MVP
  • ORA-00900 when you use the command COPY with dynamic SQL

    Helllo,
    I created the following procedure:

    create or replace procedure copyTable (pSourceTableOwner IN varchar2
    pSourceTableOwnerPasword IN varchar2
    pTargetTableOwner IN varchar2
    pTableName IN varchar2
    pDatabaseLink IN varchar2)
    as

    vStatement varchar2 (250): = null;

    Start

    vStatement: = "copy of". pSourceTableOwner | '/' || pSourceTableOwnerPasword | '@' || pDatabaseLink |
    "Insert" | pTargetTableOwner | '.' || pTableName | ' using select * from '. pTableName;

    immediately run vStatement;

    end;
    /

    The generated command (variable vStatement) looks like this:
    "Insert a copy of O_GLCEN/o_glcen@SELLENTW o_jh. "X_PLZ_CD_MERGED_CTIS using select * from X_PLZ_CD_MERGED_CTIS".

    When you call this procedure as "exec copyTable ('O_GLCEN', 'o_glcen', 'o_jh', 'X_PLZ_CD_MERGED_CTIS', 'SELLENTW');" the following lifts:

    FEHLER in line 1:
    ORA-00900: invalid SQL statement
    ORA-06512: at "SYSTEMTECHNIK". COPYTABLE", line 20
    ORA-06512: at line 1

    But when you call the command COPY directly from SQL prompt the statement runs without error.
    Is in general not possible to use the dynamic COPY with SQL command? If it is possible does anyone has an idea what I am doing wrong?

    Any help will be appreciated...

    Rgds
    JH

    I would like to use something like

    vStatement: = ' start in f (select * from ' | pSourceTableOwner |) '.' || pTableName | '@' || pDatabaseLink | Insert loop ') in ' | pTargetTableOwner | '.' || pTableName | "f-values; end loop; end; »
    immediately run vStatement;

  • Loop Finder crash after upgrading to El Capitan.  'Finder close unexpectedly when you use the plug-in finder' - the message really is in Norwegian, so it may be different for the English operating system.

    'Finder close unexpectedly when you use the plug-in finder' - the message really is in Norwegian, so it may be different for the English.  The e is a compatibility issue with dropbox or Google drive in El Capitan?  Those are the plug-ins only that I could find.  Thank you very much.

    Please launch the Console application in one of the following ways:

    ☞ Enter the first letters of his name in a Spotlight search. Select from the results (it should be at the top).

    ☞ In the Finder, select go utilities ▹ of menu bar or press the combination of keys shift-command-U. The application is in the folder that opens.

    ☞ Open LaunchPad and start typing the name.

    Step 1

    For this step, the title of the Console window should be all Messages. If it isn't, select

    SYSTEM LOG QUERIES ▹ all Messages

    in the list of logs on the left. If you don't see this list, select

    List of newspapers seen ▹ display

    in the menu at the top of the screen bar.

    In the upper right corner of the Console window, there is a search box to filter. Enter the name of the application crashed or process. For example, if Safari has crashed, you would enter "Safari" (without the quotes).

    Each message in the journal begins with the date and time when it was entered. Select the messages since the time of the last fall, as appropriate. Copy to the Clipboard by pressing Control-C key combination. Paste into a reply to this message by pressing command + V.

    The journal contains a large amount of information, almost everything that is not relevant to solve a particular problem. When you post a journal excerpt, be selective. A few dozen lines are almost always more than enough.

    Please don't dump blindly thousands of lines in the journal in this discussion.

    Please do not post screenshots of log messages - text poster.

    Some private information, such as your name, may appear in the log. Anonymize before posting.

    Step 2

    In the Console window, clear the search box, and then select

    DIAGNOSIS AND diagnostic USE information reports ▹ user

    (not diagnose them and use Messages) in the list of logs on the left. There is a disclosure triangle to the left of the list item. If the triangle is pointing to the right, click it so that it points downwards. You will see a list of reports of incidents. The name of each report begins with the name of the process and ends with ".crash". Select the most recent report on the process in question. The content of the report is displayed at right. Allows you to copy and paste to validate all of the content, text, not a screenshot.

    I know that the report is long, perhaps several hundred lines. Please report all this anyway. If the report is only a few lines, make sure that you have disabled the search box.

    If you don't see any report, but you know, he had an accident, you have chosen diagnostic and using the list of Log Messages. INFORMATION on the USE of DIAGNOSTIC AND choose instead.

    In the interest of privacy, I suggest that, before posting, you change the UUID ' anonymous, ' a long string of letters, numbers and dashes in the header of the report, if it is present (it cannot be). "

    Please do not post other types of diagnostic report - they are very long and rarely useful.

    When you post the journal excerpt or the accident report, you might see an error message on the web page: "you have included content in your post that is not allowed", or "the message contains invalid characters." It's a bug in the forum software. Thanks for posting the text on Pastebin, then post here a link to the page you created.

    If you have an account on Pastebin, please do not select private in exposure menu to paste on the page, because no one else that you will be able to see it.

  • Preview screen turns black when you use the slider to soften ultra key

    Hello

    I'm working on a video, including a greenscreen. That is why I use the ultra key to make the transparent green screnscreen. Whenever I touch the slider "soften" Ultra key, windos preview blackens. I can't get it back to normal until I restart the first. Version 2015.4.

    This issue is being investigated. So far it has been reproduced with acceleration GPU on Windows. What is the case on your system? Also, could you provide your operating system, graphics card and if you use CUDA or OpenCL?

    A possible solution is to go into project settings > General and set the Mercury Playback Engine software only, when you use the parameter to soften.

    Thank you.

  • get the error when you use the TRIM method in the collections

    Hi Experts,

    When you use the TRIM method I get below error. I make any mistake here?

    DB: Oracle 11g

    SQL > declare

    2

    emp_tab of type 3 is the employee table % rowtype index directory.

    4 l_emp_tab emp_tab;
    5

    6 start

    7

    8 select * bulk collect into l_emp_tab of employees;

    9 l_emp_tab.trim (5);

    10 dbms_output.put_line (l_emp_tab.count);

    11

    12 end;

    13.

    l_emp_tab. Trim (5);

    *

    ERROR on line 9:

    ORA-06550: line 9, column 2:

    PLS-00306: wrong number or types of arguments in the call to 'TRIM '.

    ORA-06550: line 9, column 2:

    PL/SQL: Statement ignored

    Thanks in advance for your help.

    See you soon,.

    Suri

    For PL/SQL collections "index by" you cannot use the TRIM function. If your collection statement excludes the portion "index of...» ", then you can.

    Gerard

  • Firefox does not open after the update. Cannot open the profile technical, even when you use the directory in cmd line path

    I'm using Firefox on a Windows 7 computer. Firefox does not open after the last update. I read the help articles and it seems that I need to create a new profile because my settings were probably corrupted. I'm unable to open the profile technical, even when you use the directory in cmd line path. I tried the following commands in the command line:

    Firefox Pei
    "C:\Program Files (x 86) \Mozilla" PEI

    Nothing happens with every order.

    I am also running Norton Internet Security. I read a help of virtual navigation features Re article that can cause a problem. The article says to check the setting of virtualization in the internet security software and to clear the virtual cache. I went through all the menus of settings in Norton Internet Security version 21.6.0.32 and I don't see anything that looked like in "virtualization" settings, so I guess that does not apply to me. "

    If you have any ideas, I had appreaciate that your expertise!

    Hello arcandl, at the launch of the firefox is not after you double-click the shortcut, it is sometimes also a sign of active malware on a system.
    you might want to try running a scan with some various other security like the free version of malwarebytes and adwcleaner tools that are specialized to remove the adware and browser hijackers.

    Fix Firefox problems caused by malicious software

  • How to enter the character ü when you use the pinyin keyboard?

    How can I enter the character u when you use the pinyin-simplified keyboard, for example, for the opening of the syllable nu with your 3.

    The keyboard pinyin-simplified is for entering the characters han, not latin.  If you want to type the latin pinyin, you must use the extended ABC keyboard configuration.  A list of the shortcuts is to

    http://symbolcodes.TLT.PSU.edu/accents/codemacext.html

  • Is cell required when you use the map applications of conduct?

    Is cell required when you use the map applications of conduct?

    Yes. GPS does not work with a Wi - Fi connection.

  • WHEN YOU USE THE CONSTRUCTOR OF MY SITE, I CAN'T COPY AND PASTE WROTE THE BROWSER SECURITY SETTINGS HOW TO NOT CHANGE THESE FOR ME TO COPY / PASTE?

    WHEN YOU USE THE CONSTRUCTOR OF MY SITE, I CAN'T COPY AND PASTE WROTE THE BROWSER SECURITY SETTINGS HOW TO NOT CHANGE THESE FOR ME TO COPY / PASTE?

    https://support.Mozilla.com/en-us/KB/granting+JavaScript+access+to+the+Clipboard

    This extension will help you implement the security policies for access to the Clipboard.

    Allow the extended Clipboard support:

    https://addons.Mozilla.org/en-us/Firefox/addon/852

  • MainStage "lag" when you use the SPACEBAR as 'play '.

    Hi all, I'm relatively new to Mainstage (V3), and I'm hoping to use it for the first time this weekend to play the extra backing with a band tracks

    The issue I'm having, is that with the SPACEBAR of laptops on 'PLAY '. It is often "lag". or simply does not start the song. I have to wait a second, then hit again, it will work.  It is almost as if in Performance mode, when you use the down arrow key to select the next song, the 'focus' is on the list of patch, and if I click in the background where are playback buttons and stop, THEN that will work. I have not, however, been able to reproduce this particular behavior on a consistent basis.

    Everyone knows the same thing? Or why it is so 'all or nothing '?

    And a question important much donor... I gave all my reading titles to the waveform appropriate the other night (so I could visually see the waveforms above the attenuator as offers of backing track model), however, once I was moving songs in a different order, which stopped working. No idea why?

    Thnaks in advance

    About the offset by hitting the space bar, a thought occurred to me.

    How Mainstage allocates 44.1/16 bit wave files used in the reading plug-in? Which means, when a song is selected, which uses, for example, to separate the 5 cases of reading, one can assume that these audio files used in that song would need to "load" first.

    Anyone know if this is how Mainstage works?

  • Tecra M5 - crashes when you use the docking station - fan at full power but no start the thread

    Hi all

    As I say, I have intermittent problems where the machine crashes when you use the docking station. Sometimes at the beginning of the startup of windows then stalls and powers of fan at full power. If I take off the base of the machine, it works fine.

    I bought this machine because I had one in my previous job and he had found great. However, my only previous also had this problem sometimes when lashing...

    Any assistance received very warmly.

    Thank you!

    Hello

    Stand by. You have noticed this behavior when the laptop is OFF, connect to the docking station and after doing this you turn. Am wrong me or have I misunderstood something?

    Maybe's external screen connected to the docking station?

  • M40X-141: black screen when you use the WiFi network

    Since I bought my M40X 141 in July 2005, I got black screen frequently when you use the wifi.

    You know this black screen with typical noise from the hard drive.

    I did all the updates without effect. The local seller understood nothing black screen, associated with the use of wifi.

    In the XP world, nobody seems to find this kind of abnormal things so I'm desperate to find a solution to stop the frequent black screens. Recently try a usb dlink wifi dongle (dwl-G122) the constant flow of black screens disappeared
    (An Xp session 10 days was previously impossible).

    Now, I know this is a bug in the original software and I try desespartely to find a patch or updated driver or professional advice.

    Is there someone here who can help a tired multi restart man to use his laptop with the original material?

    Your laptop should still be guaranteed if you bought in June 2005. Take it to your authorized Service Provider nearest and have their say. They should already provide for a procedure for this and know what to do. Sure the frequency that uses WIFI and display inverter coincides, and you get the black screen. Change them should fix this problem.

  • Satellite A500-1GL: it is advisable to remove the battery when you use the network

    I know this is a silly question but its actually something I know not so thought I would ask.

    I almost always plug my laptop into the supply line (satellite a500 1gl)
    I was wondering have you actually keep the battery installed even when using the electrical network.
    Or is it really advisable to remove the battery when you use the network?
    I didn't know if the battery should always be in place.
    Thanks for your help
    Torti

    Hello

    A few years ago it was recommended to remove the battery of the laptop if the AC adapter is plugged. What keeps the constant charge battery
    New age of batteries are better you can leave the battery in the Bay it s ok and it should not affect the performance

    However, sooner or later each battery would die it s only a matter of time, you know

  • Satellite L40 crashes when you use the product recovery disc

    When you use the product recovery disc to repair my laptop it hang after language page display.

    Select meaning when it displays the language, I select language and press next, no action more far there... I can move one pointer.

    Some may help how to solve the problem.
    Thank you

    > Select sense when it displays the language, I select language and press next, no action more far there

    Perhaps, your recovery disk is corrupt. What happens if you try with Windows disk copy?

Maybe you are looking for