Distributed Queries - Index Server
Using Kodo, is it possible to perform distributed queries. that is to
combine a standard tabular SQL query and one which queries an index server?
I suppose the real question is, is it possible to query a full text index
using Kodo?
Kodo doesn't provide any built-in support for querying a separate
server for a particular JDOQL query. If the index server has a JDBC API,
then it wouldn't be too difficult to issue the query using a separate
PMF for the index server, and then manually join the results to get back
the appropriate objects from the main database.
There are also a bunch of interesting things you can do with custom
field/class mappings; you might want to investigate these APIs
(preferrably in 3.0, where they are more sophisticated).
Finally, the next release of 3.0 will contain a new "textindex" sample,
which demonstrates how you might roll your own full text index purely in
JDO.
In article <boeo0r$s67$[email protected]>, BD wrote:
Using Kodo, is it possible to perform distributed queries. that is to
combine a standard tabular SQL query and one which queries an index server?
I suppose the real question is, is it possible to query a full text index
using Kodo?--
Marc Prud'hommeaux [email protected]
SolarMetric Inc. http://www.solarmetric.com
Similar Messages
-
Facing problem in distributed queries over Oracle linked server
Hi,
I have a SQL Server 2005 x64 Standard Edition SP3 instance. On the instance, we had distributed (4 part) queries over an Oracle linked server running fine just a few hours back but now they have starting taking too long. They seem to work fine when OPENQUERY
is used. Now I have a huge number of queries using the same mechanism and is not feasible for me to convert all queries to OPENQUERY, please help in getting this resolved.
Thanks in advance.Hi Ashutosh,
According to your description, you face performance issues with distributed queries and
it is not feasible for you to convert all queries to
OPENQUERY. To improve the performance, you could follow the solutions below:
1. Make sure that you have a high-speed network between the local server and the linked server.
2. Use driving_site hint. The driving site hint forces query execution to be done at a different site than the initiating instance.
This is done when the remote table is much larger than the local table and you want the work (join, sorting) done remotely to save the back-and-forth network traffic. In the following example, we use the driving_site hint to force the "work"
to be done on the site where the huge table resides:
select /*+DRIVING_SITE(h)*/
ename
from
tiny_table t,
huge_table@remote h
where
t.deptno = h.deptno;
3. Use views. For instance, you could create a view on the remote site referencing the tables and call the remote view via the local view as the following example.
create view local_cust as select * from cust@remote;
4. Use procedural code. In some rare occasions it can be more efficient to replace a distributed query by procedural code, such as a PL/SQL procedure or a precompiler program.
For more information about the process, please refer to the article:
http://www.dba-oracle.com/t_sql_dblink_performance.htm
Regards,
Michelle Li -
Linked Server and Distributed Queries in Oracle
In MSSQL, Linked Server and Distributed Queries provide SQL Server with access data from remote data sources. How about in Oracle ?
I have a table A at Server A and table B at Server B, i wanna join these two table together. How can i do this in Oracle ?Use a database link: http://www.stanford.edu/dept/itss/docs/oracle/10g/server.101/b10759/statements_5005.htm
For instance, if you have created on database A a link to database B with name 'database_b'
you can use
select * from table@database_b -
Hi,
Can anyone help me out please.
I have written one stored Procedure to create a views using Openrowset(openquery) but for tables which contains xml data types throwing error while executing the SP. Error
" Xml data type is not supported in distributed queries. Remote object 'OPENROWSET' has xml column(s)."
Please refer the Stored Procedure & error message below.
USE [Ice]
GO
/****** Object: StoredProcedure [dbo].[Pr_DBAccess] Script Date: 08/14/2014 16:08:20 ******/
SET
ANSI_NULLS ON
GO
SET
QUOTED_IDENTIFIER ON
GO
ALTER
PROCEDURE [dbo].[ Pr_DBAccess](@SERVERTYPE
NVARCHAR(50),@SERVERNAME
NVARCHAR(100),@DATABASENAME
NVARCHAR(100),@SCHEMANAME
NVARCHAR(100),@TABLENAME
NVARCHAR(100),@USERNAME
NVARCHAR(100),@PASSWORD
NVARCHAR(100))
AS
BEGIN
DECLARE @openquery
NVARCHAR(4000),
@ETL_CONFIG_IDN
NVARCHAR(100);
IF @SERVERTYPE='SQL'
BEGIN
SET @openquery=
'CREATE VIEW '+@TABLENAME+
' WITH ENCRYPTION AS SELECT * FROM OPENROWSET(''SQLNCLI'',''SERVER='+@SERVERNAME+';TRUSTED_CONNECTION=YES;'',''SELECT * FROM '+@DATABASENAME+'.'+@SCHEMANAME+'.'+@TABLENAME+''')'
SELECT @openquery
END
EXECUTE
sp_executesql @openquery
END
----While running the SP manually below error occuredHI ,
1. You cannot use a table or view that contains xml or clr type as 4-part name in your query
2. You need to cast the column to either nvarchar(max) or varbinary(max) or other appropriate type to use
3. If you have a table that has xml type for example then you need to create a view that contains all columns other than xml and query it instead. Or you can issue a pass-through query using OPEN QUERY with the appropriate columns only.
Here is a work around:
SELECT
Cast(a.XML_Data as XML) as XML_Data
FROM
OPENQUERY([LINKED SERVER NAME HERE],'
SELECT
Cast(XML_Data as Varchar) as XML_Data
FROM
[DATABASE NAME].[SCHEMA].[TABLE NAME]'
) a
Basically, the data is queried on the remote server, converts the XML data to a varchar, sends the data to the requesting server and then reconverts it back to XML.
You can take help from below link;
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/c6e0f4da-821f-4ba2-9b01-c141744076ef/xml-data-type-not-supported-in-distributed-queries?forum=transactsql
Thanks -
Hopefully this will save somebody some trouble.
Running 64bit Enterprise SQL and SSAS with Service pack 2 installed.
Also running Proclarity so 32bit mode Reporting Services is running.
When trying to create a linked server to my OLAP database I was continually getting the following Error:
OLE DB provider 'MSOLAP' cannot be used for distributed queries because the provider is configured to run in single-threaded apartment mode. (Microsoft SQL Server, Error: 7308)
Many posts suggested I select the "in Proc" check box under the olap provider, but this did not help.
Finally, instead of using the IDE to create the linked server I used a script to call sp_addlinkedserver and used @provider='MSOLAP.3'. This fixed the problem.
If you have a more clear idea of why I was having the issue in the first place, feel free to let me know what you think.Try this thread:
https://social.msdn.microsoft.com/Forums/sqlserver/en-US/f02a3921-7d0b-4038-97bb-9f17d381b345/linked-ssas-server-fails?forum=sqlanalysisservices
Talk to me now on -
Hi
in my single server these below service are running:
SharePoint Server Search
User Profile Service
Microsoft SharePoint Foundation Web Application
here how i scale out Microsoft SharePoint Foundation Web Application to another server
and SharePoint Server Search to new index server.
adilCheck here to see how to add servers to the farm:
http://technet.microsoft.com/en-us/library/cc261752(v=office.15).aspx
What Inderjeet meant was that if you chose to install SharePoint as a single server instead of a complete farm, you won't be able to add servers to the farm at a later time. You can check if this is the case by checking the registry key he mentioned. If
that is indeed the case, there's nothing to it but reinstall the farm.
So that is why you never should choose the single server option, it locks you in and limits future options, while choosing to install sharepoint as a complete farm it's still perfectly acceptable to host it on a single server.
Kind regards,
Margriet Bruggeman
Lois & Clark IT Services
web site: http://www.loisandclark.eu
blog: http://www.sharepointdragons.com -
How to deal with Short dump that restarts the index server?
Hi ,
I have been experiencing this problem whenever any exception occurs in my SQL SCRIPT procedure. For instance when there is a situation when I try to insert a value of 50 characters in length to a column with max size of 40 it throws a short dump and restarts the index server. I tried to insert the exception handling code as well but still the problem persists. Is there a way to solve this issue?Hi Sudarshan
crashes are rather generic reactions of the system to virtually any kind of problem that may occur.
Memory shortage is one of the more common issues in current SAP HANA setups and SAP HANA development is heavily working on handling memory shortage situations more gracefully.
Massive over allocation of memory, for example by very large intermediate result sets or join result sets typically can be addressed by correcting the query or model that leads to the issue.
Anyhow, the initial post was not about a memory shortage but about a crash that seemed to have occurred with wrong data type handling.
These are two very different kinds of problems, so I am not really sure how your comment relates here.
- Lars -
Once I connected my new server to my farm's config db, it returned all of the following missing locally. I stripped out any redundancies and Headings, and I'm left with 43. I'm looking for a efficient strategy. Should I start with the lowest version number
and work my way up? Current DB version is 14.0.7015.1000. IIRC, SP2 is cumulative, so can I ignore the first two (SP1 and Hotfix), install SP2, and then the Language packs and etc on top?
Sorted by version:
Microsoft SharePoint 2010 Service Pack 1 (SP1) (14.0.6029.1000)
Hotfix for Microsoft SharePoint Server 2010 (KB2775353) 64-Bit Edition (14.0.6105.5000)
Service Pack 2 for Microsoft SharePoint 2010 (KB2687453) 64-Bit Edition (14.0.7015.1000)
Service Pack 2 for Microsoft 2010 Server Language Pack (KB2687462) 64-Bit Edition (14.0.7015.1000)
Microsoft Office Server Proof (English) 2010 (14.0.7015.1000)
Microsoft Office Server Proof (French) 2010 (14.0.7015.1000)
Microsoft Office Server Proof (Russian) 2010 (14.0.7015.1000)
Microsoft Office Server Proof (Spanish) 2010 (14.0.7015.1000)
Microsoft SharePoint Portal (14.0.7015.1000)
Microsoft User Profiles (14.0.7015.1000)
Microsoft SharePoint Portal English Language Pack (14.0.7015.1000)
Microsoft Shared Components (14.0.7015.1000)
Microsoft Shared Coms English Language Pack (14.0.7015.1000)
Microsoft Slide Library (14.0.7015.1000)
Microsoft InfoPath Forms Services (14.0.7015.1000)
Microsoft InfoPath Form Services English Language Pack (14.0.7015.1000)
Microsoft Word Server (14.0.7015.1000)
Microsoft Word Server English Language Pack (14.0.7015.1000)
PerformancePoint Services for SharePoint (14.0.7015.1000)
PerformancePoint Services in SharePoint 1033 Language Pack (14.0.7015.1000)
Microsoft Visio Services English Language Pack (14.0.7015.1000)
Microsoft Visio Services Web Front End Components (14.0.7015.1000)
Microsoft Excel Services Components (14.0.7015.1000)
Microsoft Document Lifecycle Components (14.0.7015.1000)
Microsoft Excel Services English Language Pack (14.0.7015.1000)
Microsoft Search Server 2010 Core (14.0.7015.1000)
Microsoft Search Server 2010 English Language Pack (14.0.7015.1000)
Microsoft Document Lifecycle Components English Language Pack (14.0.7015.1000)
Microsoft Slide Library English Language Pack (14.0.7015.1000)
Microsoft SharePoint Server 2010 (14.0.7015.1000)
Microsoft Access Services Server (14.0.7015.1000)
Microsoft Access Services English Language Pack (14.0.7015.1000)
Microsoft Web Analytics Web Front End Components (14.0.7015.1000)
Microsoft Web Analytics English Language Pack (14.0.7015.1000)
Microsoft Excel Mobile Viewer Components (14.0.7015.1000)
Recommendations?
Thanks,
ScottThanks guys. I was able to get through all of the patches except for
Language Pack for SharePoint, Project Server and Office Web Apps 2010 - English missing locally
Language Pack for SharePoint, Project Server and Office Web Apps 2010 -
Spanish/Español missing locally
This was my process:
Config Wizard:
Adding Index server to existing farm, "Server Farm Product and Patch Status" returned 34 Missing Locally required products and patches.
SKIP installing the following two, as SP2 is cumulative
Microsoft SharePoint 2010 Service Pack 1 (SP1) (14.0.6029.1000) (officeserver2010sp1-kb2460045-x64-fullfile-en-us.exe)
Hotfix for Microsoft SharePoint Server 2010 (KB2775353) 64-Bit Edition (14.0.6105.5000)
install SP2 oserversp2010-kb2687453-fullfile-x64-en-us.exe
install oslpksp2010-kb2687462-fullfile-x64-en-us.exe
Got "There are no products affected by this package installed on this system."
SO!
Uninstalled Sharepoint 2010 Server
WIll try to install again, without skipping #2, and reorder installation of oslpksp2010-kb2687462-fullfile-x64-en-us.exe
Retry (the long way):
Run SharePointServer.exe, get Missing Locally...
Install oslpksp2010-kb2687462-fullfile-x64-en-us.exe SUCCESSFUL
Install officeserver2010sp1-kb2460045-x64-fullfile-en-us.exe SUCCESSFUL
Reboot
Install oserversp2010-kb2687453-fullfile-x64-en-us.exe SUCCESSFUL
Rerun Config
STILL MISSING
Download oslpksp2010-kb2687462-fullfile-x64-es-es.exe, run, "there are no products affected..."
Uninstall.
Re-retried, only got through the first couple:
Run SharePointServer.exe, get Missing Locally...
Install SP1 officeserver2010sp1-kb2460045-x64-fullfile-en-us.exe, SUCCESSFUL
Install English Lang Pack oslpksp2010-kb2687462-fullfile-x64-en-us.exe, "There are no products affected by this package installed on this system."
Install Spanish Lang Pack oslpksp2010-kb2687462-fullfile-x64-es-es.exe,
Install SP2 oserversp2010-kb2687453-fullfile-x64-en-us.exe, run Config Wizard
I'm now downloading 462150_intl_x64_zip.exe, going to try and install it as step three.
Any suggestions greatly appreciated.
Thanks,
Scott -
The Index Server is in Read Only Mode
Hi,
In our test environment ALL of our jobs are failing. The message in every failed Job Log is:
11/18/05 10:25:15- Starting to run operations (1 total) for job 'Search Update 2 - Run Once'. Will stop on errors. (PID=14064)11/18/05 10:25:16- *** Job Operation #1 of 1: System Agent 'Search Update Agent' [Run as owner 'Administrator']11/18/05 10:25:16- The index server is in read-only mode.11/18/05 10:25:16- The index Server is inaccessible. Search Update cannot continue and will terminate.11/18/05 10:25:16- *** Job Operation #1 failed: Call to perform operation #1 failed with error (0x80044301): (null) (0x4)11/18/05 10:25:16- Call to perform operation #1 failed with error (0x80044301): (null)
has anybody seen this before, and how can I correct it?
Thanks,ShawnThe search server goes into read only mode in response to certain error conditions. Simply restart the service to put the search server back into R/W mode. The server will attempt to self repair on startup. You should review your recent search server logs to see if there are errors that may have caused the transition to read only mode. If problems persist, contact tech support for further assistance in troubleshooting.
-
"Error 75 received from the Package Index Server. Please contact the Support Center"
I have a T-61P running Windows XP SP2. Within the past month, my System Updater started returning
"Error 75 received from the Package Index Server. Please contact the Support Center"
I uninstalled System Update and downloaded and installed again from the Lenovo site. Still displays same error message. I get 20% into the update when the error message pops up.
Any suggestions.
Thank You!
Solved!
Go to Solution.Try this link:
http://forum.notebookreview.com/showthread.php?t=157733
Check the following registry keys (or similar)
HKLM\HARDWARE\ACPI\DSDT\LENOVO\
HKLM\HARDWARE\ACPI\FADT\LENOVO\
HKLM\HARDWARE\ACPI\RSDT\LENOVO\
They should be in the form of your model number without the hyphen and not TP-xx___
In my case I had to change the TP-71___ that was showing in my registry to 87445BU. Once I did this the software worked without a hitch. -
Index server details in Trex monitor
Hi Experts,
Can you please tell me when we click on trexmonitor in portal we will get hte details like
http server details
nameserver details
index server details
Queue server details
and where can we find the details of index server could you please let me know ASAP.
Waiting for your responses
Regards,
Shilpa.Yes Sir,
There are errors in component monitor and i have expanaded the node ands checked the errors that are as follows,
Component Monitor --> Services --> scheduler --> attachmentscheduler startup failed :
Configuration Error: No CM system assigned to this task
Component Monitor --> Services > reporting> Startup Error: exception in startup: Invalid RID: No repository manager found for prefix: /reporting
Component Monitor --> Repository Managers > reporting> startup failed
Component Monitor --> Repository Managers >taxonomy> Startup Error: taxonomy manager: start failed
We had assigned one server node to Scheduler Tasks.
Still there is same error. -
HANA Index Server Not Starting
Hi,
We are using SAP HANA Rev 48 on AWS. HANA Server got crashes and Index server is not starting. Looking at Crash Logs (Attached), seems HANA Memory Usage is close to Allocated Memory.
How can we resolve this. We may be fine to unload tables or delete some of the data to make the system up and running but unable to perform actions as for these DB need to start once.
Any suggestions.
Thanks,
SHi Shobhit,
If I follow your original message correctly, you are using HANA One Rev 48. Then, if you follow https://scn.sap.com/docs/DOC-59814, you will see HANA One Rev 48 was released on Feb-7-2013 which came with 1 year license. So, your HANA license key delivered via HANA One Rev 48 must have expired now.
There were multiple messages, blogs posted requesting existing HANA One customers to migrate to HANA One Rev 52.1. Here is one such blog:http://www.saphana.com/community/blogs/blog/2013/09/26/sap-hana-one-migration-via-data-backup-and-recovery. The blog says -
"SAP released HANA One Rev 38, HANA One Rev 48 and HANA Rev 52 prior to the releasing HANA One Rev 52.1. HANA One Rev 52.1 has self-service upgrade capability via Addon Manager [blog]. Customers using HANA One Rev 52.1 can continuously upgrade to the latest HANA version as a self-service option and can also extend 1 year license key at its expiry or install a valid license key, if needed. However, customers using HANA One prior to HANA One Re 52.1, cannot upgrade HANA nor can extend license key. This blog provides a step by step procedure to migrate older releases of HANA One to the latest HANA One to take advantage of new Addon feature in HANA One Rev 52.1."
It appears you haven't upgraded your HANA version from Rev 48. I believe HANA One Rev 52.1 supports HANA Rev 72 as I write now.
As a good practice for any database, you should take periodic backup to meet your business requirements. I see you don't have backup.
If this is extremely urgent to recover your system, you may contact HANA One team at [email protected] with valid business justification why you may need a temporary license to recover your system and then you can migrate to the latest HANA version delivered via HANA One.
Thanks,
Swapan Saha
P.S. I have new responsibility at SAP and hence not following HANA One messages regularly. Just responding here due to the uniqueness of the issue. However, community members and my HANA One colleagues are regularly following up here. So, once you resolve HANA License key issue, you can resolve related issues with community support here. Please keep using HANA One and sharing your knowledge wih fellow community members. -
Hi All,
I am working in EP6 SP 9 Patch 3 for KMC. I had my Trex working for searching docs less than 10 kb. Now i dont find my Index server in Trex monitor.In Trex Admin tool I find my index server in green status. But in Trex monitor it displays only Http server and Name server. Index server is missing and Queue server is shown without any parameters.
Can anyone help me in bring back the Index server and Queue server.
Thanks in advance
Jay.Hi Nick
I dont have a proxy setup. The only proxy that i have is my company's proxy server. As such i haven't installed any proxy while installing EP. Is there anything i need to do with IIS server? Awaiting your reply.
Jay -
Hello Experts
I was trying to enable my 'ad hoc distributed queries' using
sp_configure 'show advanced options', 1;
RECONFIGURE;
sp_configure 'Ad Hoc Distributed Queries', 1;
RECONFIGURE;
GO
but I am getting the following error please advise, thank you.
Msg 5833, Level 16, State 1, Line 1
The affinity mask specified is greater than the number of CPUs supported or licensed on this edition of SQL ServerHi,
Why duplicate post please avoid this
http://social.technet.microsoft.com/Forums/en-US/2ebf1d6e-ffe3-41bf-b741-5f1e4f08f46e/ad-hoc-distributed-queries?forum=sqldatabaseengine
Please refer to masrked answer in below thread
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/700bd948-1a1d-4912-ac6d-723d4478bd55/license-issues-when-virtualizing-a-sql-2008-onto-windows-2003?forum=sqlsetupandupgrade
Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it.
My TechNet Wiki Articles -
Distributed queries+pipelined table function
HI friends,
can i get better performance for distributed queries if i use pipelined table function.I have got my data distribued across three different databases.
thanx
somyYou will need to grant EXECUTE access on the pipelined table function to whatever users want it. When other users call this function, they may need to prefix the schema owner (i.e. <<owner>>.getValue('001') ) unless you've set up the appropriate synonym.
What version of SQL*Plus do you have on the NT machine?
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC
Maybe you are looking for
-
Lingering socket connections?
Hi, my setup is WLS 8.1, MQ 5.2, J2SE 1.4.2 on Solaris 8. During tests to shutdown and restart the MQ, we saw many connections in "idle" status. The number corresponds well to the number of MDBs we have in the system.
-
Hi, This has happened twice to me in the past week. I purchased a movie from iTunes and started the download from Apple TV. I started watching the movie on my TV, fell asleep and when I checked for the movie in the ATV menu the next day (My Movies),
-
Network variable creation through DSM
I've been using CVI 2009 and I'm able to create a simple network variable using Distributed System Manager 2009 (DSM 2009). Now I need a "struct" network variable, and I noticed that the only option I can choose is "From Custom Control..." which asks
-
HT5312 how do i open my mac, iam trying to open it but its only showing a question mark
how do i opem my mac, am trying to open it but its only showing a question mark
-
accidentally deleted bootcamp assistant that came with when i deleted lion, does anybody know where i could download it from.