Oracle on the SQL Server tables dblinked query error ORA-00904

Hello

I created a dblink to a SQL from Oracle database using generic connectivity.
The following query returns the error ORA-00904 invalid identifier in the (tblEmp.Empno) WHERE clause

SELECT 'EmpNo', "EmpName", "DeptName".
OF tblEmp@sqlserver.
tblDept@sqlserver
WHERE tblDept.DeptNo = tblEmp.Empno

I had to include the column names between double quotes because of the case review of the columns, but I can't do the
same thing for the WHERE clause.

(1) so how can I fix this error?
(2) also how can I include the Deptno column with the table alias in the columns list?
(Deptno is ambiguous in the Emp and Dept tables)

Kind regards
Sam

Looks like you have case-sensitive column names, try this

SELECT "EmpNo","EmpName", "DeptName"
FROM tblEmp@sqlserver e,
tblDept@sqlserver d
WHERE d."DeptNo" = e."Empno" --<--- are you sure this is the correct join condition

What should we not

WHERE d."DeptNo" = e."DeptNo"

Published by: Alex Nuijten on September 22, 2009 13:28

Tags: Database

Similar Questions

  • VIX file in the user interface designer receives the data from the Web service application that communicates with the SQL server database

    I created the Web service VI ("Mt-insolacije.vi"), which has two terminals of the input string (FROM / TO) for the dates of arrival and exit of two data terminals (table 1 d) from database (MS SQL server). This VI communicates with the database with functions of the database with a DSN and SQL query appropriate palette. There are two tables with two data (time and Insolation) columns in the database.

    This VI works when you run in Labview 2010, but when I used it as VI in UI Builder it returns no data.

    Could you please help me find a solution. Is it possible to communicate with the SQL server database in this way or there is another way?

    There are two files attachmet: Image of .vix file in Interface builder and .vi file ("Mt-insolacije.vi")

    Please help me ASAP!

    Thank you

    Ivan

    I found the solution problem is in the DSN. I've been using the user instead of DSN system DSN.

    It's important to create the system DSN if you want your VI of web service to communicate with the database.

    PS Please put feature bundle format timestamp and XY graph in the web user interface designer. It's complicated to trace data with datetime on X axis without them.

  • The SQL server system configuration checker cannot be executed due to WMI configuration on the computer

    The SQL server system configuration checker cannot be executed due to WMI configuration on the computer

     
    Toshiba-User Error: 2147749896 (0 x 80041008)
     
    I am trying to load the software for insurance. I got the above message.

    Hello

    The question you posted would be better suited in the TechNet Forums. I would recommend posting your query in the TechNet Forums.


    The SQL Server installation & set program to update Forum

    http://social.msdn.Microsoft.com/forums/en/sqlsetupandupgrade/thread/3f313abe-8826-4d76-8F04-611ebd4d0141

  • Use of the SQL Server Agent

    Hello

    Lack of VMWare VirtualCenter Server 2.5.0.64207 on a Windows 2003 R2 SP2, SQL Server 2005 System. It is the only significant application on the system, and VirtualCenterDB is the only database.

    We see that the system is running very slowly, both regarding the response time in the Console of the Infrastructure of VMWare and the response time for all other programs that you happen to run. For example, the MMC administration tools take a long time to start or respond to clicks.

    PerfMon shows fairly low CPU usage, but the queue of average drive about 170.

    However, the problem disappears if we stop the SQL Server Agent service. The average disk queue goes down to about 2.

    I don't want to always leave the SQL Server Agent is turned off, because it is necessary to perform periodic maintenance. Is there a way to tell why the readers of SQL Server Agent use so much disk space?  Given that VirtualCenterDB is our unique database, I suspect that the problem is specific to VMWare.

    Thanks in advance for your suggestions.

    These jobs move data from system of VPX_HIST_STAT1 to VPX_HIST_STAT2 then VPX_HIST_STAT3 then VPX_HIST_STAT4 and finally remove the data from your database.   These tables to the expectations of the performance data for your hosts and virtual machines and jobs here correspond to the data of the basic performance levels than your game in the VI client when connected to your vCenter server.  It is important to keep these tasks to make sure that your weekly, monthly and annual data are properly maintained.

    You have a database maintenance task that rebuilt the index?  If this isn't the case, then it is perhaps probably caused performance issues.  Without up-to-date indexes, SQL Server will be compelled to resort to analysis of tables when looking for data that can significantly increase the disk i/o.

  • Loading a SQL Server table

    Hi all
    I develop a right source - target interface table of sql server in a sql server table. When executing the interface, I get an error - message
    "Cannot insert an explicit value for identity in the 'xxx' table column when IDENTITY_INSERT is set to OFF."

    After investigation, it appears that I need to run-

    SET IDENTITY_INSERT ON of xxx
    GO

    This performance is specific session, that is to say, I have to run this statement every time ODI inserts into the target table. Is it possible that I can have the tool run this statement?

    TIA


    MN


    Version of the ODI - 11 g
    Source - SQL Server 2008 R2
    Target - SQL Server 2008 R2

    Not exactly the IKM XML, but change in the designer required used IKM.

    for security reason provide a duplication of your IKM (right-click - duplicate) and to make the necessary changes to this copy, so that, even if something goes wrong. you will not alter the original.

    hope that I have answered your question.

  • create the SQL server programmatially data source

    Hello

    I would like to create a SQL server by programming in LabVIEW data source. The SQL server version that I used is from 2005. Can someone give some ideas? An example of code will be more favorable.

    Thank you

    Jane

    You can build the connection string you even.  The open function in the Toolbox of data base accepts a string as well (it's polymorphic) who can be the connection string.  This is the site I use to understand.  Is the most common things.  You may need to search Google more specific elements.

    http://www.ConnectionStrings.com/

    If you want to use the other option, someone has achieved a UDL editor in LabVIEW.  You can use this code to create your own UDL which can use the Open DB function:

    https://decibel.NI.com/content/docs/doc-18613

    I have used the above code, so can't comment on that.

  • How to completely remove the SQL Server 2008 R2 from my system?

    I got the SQL Server loaded on my computer before I realized it was the express edition that I needed. When I tried to load the version I needed the computer said that I had to create a new instance for the second version to run simultaneously. (had already uninstalled the original SQL Server and did not not the problem.) I went through the steps again and somehow there is the menu server must remove files, but they can access it. The only solution I see at the moment is to reload the server and uninstall and I hope that everything that caused its not completely withdraw from my system is corrected. Please tell me there is another solution which has guaranteed results.

    Hi Avendia,

    Your question would be better asked on the SQL Server forum

    SQL Server Forum
    http://social.msdn.Microsoft.com/forums/en-us/category/SQLServer

  • Windows Update - a security update to the SQL Server 2005 Service Pack 3 (KB970892)

    How to install Windows Update security for the SQL Server 2005 Service Pack 3 (KB970892) when he continually fails to install.

    Provide as much information as possible and try this forum.

    The SQL Server installation & set program at level
    http://social.msdn.Microsoft.com/forums/en-us/sqlsetupandupgrade/threads/ TaurArian [MVP] 2005-2010 - Update Services

  • "Security for the SQL Server 2005 Service Pack 3 (KB970892) update" fails. I get "error Code: 0 x 737»

    Have tried several times the update. Same results.  Running Windows XP

    You can either search or post in the following newsgroup.
    The SQL Server installation & set program at level
    http://social.msdn.Microsoft.com/forums/en-us/sqlsetupandupgrade/threads/ TaurArian [MVP] 2005-2010 - Update Services

  • Update of security for the SQL Server 2005 Service Pack 3 (KB970892) refuses to download. The error message I get is error Code 0 X 7358.

    This update is required?  And why it has not been downloaded when I bought the PC?  It is now only a few months old.

    Try this other forum:

    The SQL Server installation & set program at level
    http://social.msdn.Microsoft.com/forums/en-us/sqlsetupandupgrade/threads/ TaurArian [MVP] 2005-2010 - Update Services

  • Update of security for the SQL Server 2005 Service Pack 3 (KB970892) does not load.

    Someone at - he found a way to load it correctly?

    Hello

    Welcome to the Microsoft Vista answers Forum!

    Try the steps below and check if the problem is resolved,

    Download the stand-alone package of "A security update to the SQL Server 2005 Service Pack 3 (KB970892)" from the link:

    http://www.Microsoft.com/downloads/details.aspx?FamilyId=0d878f4b-71e8-4170-9a14-1bce684811ce&displaylang=en

    Now you must install the update in safe mode.

    Restart the computer using safe and then by running the Setup program

    The next step to install the program in safe mode is to restart your computer in safe mode, and then run Setup from the hard drive. To do this, follow these steps:

    1.

    To start Windows in safe mode, follow these steps:

    one.

    Click Start and then click on stop.

    b.

    Click on restart the computer and then click OK.

    c.

    To enter the safe mode of Windows Vista, the computer starts to press on and hold your "F8 key" which should show "Windows Advanced Options Menu" as shown below. Use your key to move to "Safe Mode" and press your enter key.

    d.

    When Windows starts in safe mode, click OK.

    Now try to install the update and check for the issue.

    If the above provided steps fail, then you need to visit the link provided to connect with the following technet forum:

    http://social.technet.Microsoft.com/forums/en-us/categories/

    Hope this information is useful.

    Thank you, and in what concerns:

    Suresh Kumar-Microsoft Support.

    Visit our http://social.answers.microsoft.com/Forums/en-US/answersfeedback/threads/ Microsoft answers feedback Forum and let us know what you think.

  • Update of security for the SQL Server 2005 Service Pack 3 (KB970892) constantly moved, what can I do about it?

    Update of security for the SQL Server 2005 Service Pack 3 (KB970892) constantly moved, what can I do about it?

    The update tried to automatically install dozens of times, but it keeps failing, is there something I can fix which will allow this facility. I have reasonable computer skills but I'm not good at that, I need step by step help and a full explanation of acronyms.

    Hi Laurence,.

    The issue of Windows is more complex than what is generally answered in the Microsoft Community Forums. Appropriate in the TechNet Forums. Please post your question in the TechNet Forums.

    You can check the link to post your question:

    http://social.technet.Microsoft.com/forums/en-us/category/SQLServer

    I hope that helps!

  • Error code 64 c for update of security for the SQL Server 2005 Service Pack 3 (KB2494113)

    Have tried to install KB2494113 - update of safety and he constantly fails to install. Help please as I know very little about the "intricacies" of my laptop

    Hi Phillipmuir,

    Step 1:

    You can read the following article and try to reset the Windows Update components and check.

    How to reset the Windows Update components?

    http://support.Microsoft.com/kb/971058

    Step 2:

    You can also check the following link and try to download and install the standalone update package:

    Update of security for the SQL Server 2005 Service Pack 3 (KB2494113)

    Hope this information is useful.

  • SQL Server - HADR always on error - cannot always display on the dashboard

    Hey everybody! While we have recently obtained our first availability of SQL Server 2012 running group. We have the name of Group of availability with two nodes for this group. However, I don't know how to turn the dashboard found at [Server] > HADR > always on. When I try to see it from a particular node, I get the following error:

    In case you can't read that, the error is "this SQL server version is not equipped to always on the ability." But I am positive, we are currently running SQL Server 2012 and we have a working group of 100% availability. Here you see the version of the server:

    Sorry for the blurry photos. If you can't read that, it says that the version is 11.0.3000.0 (SQL Server SP1 2012). You can also see under HADR the always on the icon is grayed out.

    So basically I'm wondering if anyone knows what is the problem? Anyone encountered this before? I would not be surprised if it is just a few little configuration or something, but I've searched and can't seem to fix this. Anyway, please let me know if you have any information. Thanks in advance!

    For reference, in my view, it is perhaps the issue: https://support.software.dell.com/foglight/kb/123084

    Basically, there is just a bug with the version of the SQL Server cartridge I use. Someone on the team in my company will be upgrading to the latest version next week, how I will update this post with the results.

  • Encrypt the connection to the SQL Server

    I have a new installation of OpenManage Essentials 2.1 and have a quick question. Our database of MOE is hosted on a remote SQL Server cluster. Is it possible to configure the database connection to use encryption/SSL when connecting to the cluster? We need it for compliance with our security policy, but unfortunately the installation that the user interface does not expose this option.

    If not is it possible to manually change the connection string?

    Note that this is in that concerning the encryption of the SQL Server connection between HOME servers and database, not HTTPS.

    Thank you
    Andrew

    Hi André,.

    OME encrypts all sensitive information before it is transferred to SQL Server.

    Also, the connection to SQL Server used by OME information is encrypted and there is no option for a user to change this.

    I hope this helps.

    Thank you
    Vijay.

Maybe you are looking for

  • Setup error during installation of the package of added value

    I just installed PVAT v 1.2.40. However during the installation I get an error - Setup PVAT Error (Ox8145030B). I have also tried to re - upload the files, and then repeat the installation with the same result. All ideas Richard

  • Satellite P200 - update of the BIOS under Vista x 64

    Hello I downloaded the update of the BIOS on the toshiba site (1.70 WIN). I can't run on Vista x 64. Is it possible to update my BIOS? Thank you very muchSimon.

  • How do I unlock "the disc has a bad block"?

    "My computer information" error log has about 200 "legacy - disc - has a bad block." I did Defrag, disk cleanup and eraced of things that I don't use much I think that the block of 'bad' is interfering with "Outlook Express" also

  • Windows defender error: 0x800106ba lights on request

    When activating Windows Defender program I get a window that says the program stops. I followed the instructions to activate the program... that's when I get the error: 0x800106ba. Went to Microsoft Windows Help and followed several process... still

  • (Redirect) laptop screen turn green and setting turned off by its own

    Hell0... im using inspiron N4010... its been im 5 1/2 years using this laptop... all IM use sudenly screen turn green and its gt out of its own... thn I cudnt start 2 hours aftr a few hours its power on... and now it can be used as usual... I take ab