ORA-00942: table or view does not exist (ColdFusion application) - oracle

I have a ColdFusion 10 application with an Oracle 11g backend.
The Production version works fine. Recently, I had the Oracle DBAs refresh the Test database from Production. Now, I receive the ORA-00942: table or view does not exist error.
All the tables are there when I use SQLPlus and the queries run fine. I am at a loss as to what to check now. The trace sends me to the query that is running fine in SQLPlus. What have I missed?
Update - 17 October 2014
I don't know if it makes any difference, but the line throwing the code is the 1st one here:
`<cfquery name="getWebMaster" datasource="xxxxtest">
select * from users where secureuserid in (select secureuserid from hd_role where webmaster='Yes')
and userstatus='Active' and UserLevel='XXX/XXIT'
</cfquery>`
That means that the entire cfquery section is the error, or just the 1st line? BTW, I think I've figured out how to imbed code. Thanx!

There is only one thing I can think of. The user that you used to run the application/script in your testing environment, and the permission that particular user has - it missed some privileges, so it can not see certain things even though they are there.

Related

Setting up database link from Oracle to Sybase

I know so little about Sybase that I don't even know whether database link is the correct term in Sybase. What I'm looking for is a way to communicate with Sybase over Oracle's heterogeneous services, commonly called a database link in Oracle (linked server if you speak SQL Server).
We are a primarily Oracle shop with a healthy dose of SQL Server, but zero Sybase experience. As you might guess, we have a piece of software that happens to run on Sybase, and we need to get information out of its database.
Professional services from the software vendor have not been helpful at all; frankly, we don't even know if they gave us the correct driver.
Our Oracle DBA is as sure as he can be (without knowing anything about Sybase) that he has everything set up correctly on the Oracle side.
When we try to run a query from Oracle to get data from Sybase, we get:
select * from call_request#sybase
*
ERROR at line 1:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[SAP][ASE ODBC Driver][Adaptive Server Enterprise]Incorrect syntax near the
keyword 'where'.
{ZZZZZ,NativeErr = 156}
ORA-02063: preceding 3 lines from SYBASE
Complaining about syntax near "where" doesn't make much sense, since there is no predicate at all. And it doesn't help to add a dummy
where 1=1
We're completely unsure where to turn. What can we even check next? Where is the documentation for setting this sort of thing up? Any ideas what is wrong?

Oracle SQL changes in sqldeveloper are not reflected in EFCore

I have not used oracle with EF before, so I dont know how to deal with this weird thing happening. And cant find solutions online.
When I make changes on SQLdeveloper (updates/inserts) using sql, they are shown in SQLdeveloper, but not in app using EF.
When I make changes in EF, those are shown in SQLdeveloper.
In other words the APP shows data only from EF, but on SQLdeveloper I can see both.
I have restarted the app multiple times and they are still not showing.
EDIT:
By make changes I mean any data changes. Like :
insert into table
(columns)
values(values);
And SQLdeveloper says inserted 1 row.
And when I select * from table I see the row.
In the app, when I do inspect of context.TableSET.ToList() the row is not there.
but if I do
context.TableSET.Add(tableobj);
context.SaveChanges();
I can see the row using SQLdeveloper
You need to execute the COMMIT statement after executing your changes so that it gets reflected in another session.
EF is using another session and Without COMMIT, changes are only reflected in the current session, That is why it is visible in SQL Developer and not in EF.
Cheers!!

oracle - Schemas issues when migration from discoverer to OBIEE

I'm working on migrating some reports from Oracle Discoverer to OBIEE. I've already exported the layouts from discoverer to OBIEE. I have all I need in the OBIEE Admin tool now, but when I try to perform this operation:
I got this message:
I've read in many forums that this is because of the query (enter link description here) but I've executed the query in SQL Developer and all is fine.
Any idea?
Thanks,
I can see from the icon on your object that it is an Opaque View that your trying to run View Data on.
This is probably because of a syntax issue in your opaque view. Make sure the code in the opaque view doesn't end with a semi-colon or slash, that will cause problems. Try eliminating any blank lines, if there are any. However, without knowing exactly the syntax of the code it's impossible to say exactly what the cause is.
It's also possible that there is a connection script attached to the connection pool you are using to View Data, running on connection or before execution with bad syntax.
Otherwise have a look in the Admin Tool log to see if there's more information about what is causing the error. It will usually contain more detailed information than is passed back through the GUI.

SSIS Fast Load error when using Attunity Oracle connector to 11g

When enabling Fast Load in Attunity Oracle Destination Components in several similar SSIS packages using Oracle 11g as target - a few packages fail and return the error below, but the rest of them work fine.
The error message I get is:
Description: Fast Load error encountered during PreLoad or Setup
phase. Text: ORA-39826: Direct path load of view or synonym (
TABLE_NAME ) could not be resolved.
If I'll disable the Fast Load, those that failed would work fine too of course.
More importantly, the failing packages work fine with Fast Load when using Oracle 10g as target.
I don't understand why it doesn't work in those that failed.
What am I missing? What should I do to make the Fast Load work at all times and not sometimes?
probably a driver issue.
The 'fast load' option internally uses a BULK INSERT statement for uploading data into the destination table instead of a simple INSERT statement for each single row. Since bulk insert is a native sql server function you should try to understand how does it work for oracle. It probably changed from 10g to 11g
By pure chance, I discovered that the target component fails in an SSIS package if its ‘TableName’ property contains spaces before or after(!) the name of the table. Once deleted it works fine.
This error didn’t occur on 10g.

Monitor and change SQL queries with SQL Server 2000

I have a database upgrade tool that is misbehaving. I would like to catch one of the queries it sends to the database and change it before it is executed.
The tool connects via ODBC.
The tool and the SQL Server are on the same Windows 2003 Server box.
Any ideas?
EDIT: (More info)
When the tool runs it dies on step 12 out of 100. It issues some bad SQL intended to create a view. I need to suppress the error message or correct the SQL before it is executed. I can't just create the view because the first thing it does it drop the view. Even then it would error because the view would already exist.
Certainly - use the SQL Profiler to intercept and record the query.
Very useful little tool that...

Resources