ORA-SQL-PLSQL S41 error - oracle

We are migrating from Oracle 9i to Oracle 11gr2 and when i open a package in toad i am getting below error.
(891:36) ORA-SQL-PLSQL S41
(S41) Expecting: . # AS CROSS FULL identifier INNER JOIN LEFT NATURAL PARTITION RIGHT SAMPLE SUBPARTITION VERSIONS
The package is getting complied when I try to compile it and it is also seems to be working fine.
Any idea why this error is happening? Will it cause any issue in production?
Note:
Cannot share the source due to copyright issues.

This user on the Oracle Forums seems to have had a similar issue, you could try following their solution.
https://forums.oracle.com/forums/thread.jspa?threadID=604091

Related

The provider is not compatible with the version of Oracle client - c#

When I try to browse my project through IIS, I get the below error
"The provider is not compatible with the version of Oracle client"
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: Oracle.DataAccess.Client.OracleException: The provider is not compatible with the version of Oracle client
enter image description here
Please let me know what are the steps that i should perform to resolve this error. Thanks!
Assuming you have Oracle client installed and you have reference to the Oracle.DataAccess.dll in your project, check its version. Go to <your oracle client path>\odp.net folder and find there *.dll file with same name. Compare versions. Most likely issue is that DLL in your dir is different and does not match your installed Oracle Client. Use DLL that matches client.
And tell your boss to stop using Oracle client and use Oracle.ManagedDataAccess.dll
Now, there could be other issues causing this but this is minimum to check before moving further.
In my case I got the same error message when migrating to the newer Oracle.ManagedDataAccess.dll and forgot to remove the existing Oracle.DataAccess.dll, resulting in a lot of ambiguity.
Everything worked once the older reference was removed.
Last time I had this problem in an c# project I had to add Oracle.DataAccess.dll reference from my Oracle client directory.

How to handle toad invalid pointer operation?

I get this error : toad invalid pointer operation , when I want to import data from excel.
Toad version : 12.1
Oracle version :Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
I ve restarted TOAD , even Computer but it does not work.
thanks in advance
I had the same problem and this was my solution (idea from https://support.quest.com/toad-for-oracle/kb/52537):
To quickly remove any hidden formulas in the spreadsheet, I copied all the range of cells with the required data and pasted it into another spreadsheet.
On the following import operation everything worked smoothly.

Empty package <package name> definition (no public members)

I'm facing an issue when trying to run or debug a package where Oracle SQL Developer doesn't display public members (procedures) that don't have input parameters.
There is a couple of procedures, some overloads, but Oracle SQL Developer doesnt display no invoke-able members.
I've tried with following versions of Oracle SQL Developer
4.1.1.19 link to article saying this version solves the issue, but it didn't
4.0.3.16 - same behavior
4.0.0.13 - same behavior
3.2.20.09 - this version actually displayed invokable members, but debugger doesnt work.
This is the Oracle version :
select * from v$version;
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
PL/SQL Release 11.2.0.4.0 - Production
"CORE 11.2.0.4.0 Production"
TNS for IBM/AIX RISC System/6000: Version 11.2.0.4.0 - Production
NLSRTL Version 11.2.0.4.0 - Production
Has anyone successfully resolved similar situation and how?
(Upgrading database is not an option atm)
A bit late, but i could help. There is a SqlDeveloper bug. What I have to do is to "Save" it before Compile it...
Hope it helps
I found 2 possible cause that may cause the no public member problem
1) SQL Developer hit some kind of bugs itself.
This can be resolved by completely close and restarting the SQL developer
2) Some keywords used in your codes (e.g. field name in SQL statements) that works fine in compiled execution , but would ruin the display of function list.
I resolved my problem by applying double quote to the entire packages where a field named “CASE” is used.
i.e.
SELECT table1.case FROM table1
change to
SELECT table1."CASE" FROM table1
Alex
Definitely late , but came across the same issue & thought of posting what helped me .
The proc was contained in a package that belong to another user
&
the grants were not provided for the user which was calling the proc .
Works when the grants are done.
I would recommend to save the stored procedure and then compile. In some cases, after saving the procedure, the table will automatically compile. But, you have to save each and every time you make changes.
I hope this helps you out.

Oracle SqlDeveloper Completion Insight table name with #

Got following error: if table name contains # (like z#users) code completion does not work.
With normal table names all works fine.
Is there any workarounds? Renaming all tables is not possible.
Sqldeveloper version 4.0.0
Oracle 10.2.0.5
I just tried this with a table called ABC#DEF - with both table and column completion in the worksheet, and it worked with no issues.
I'm on 4.0.2 and 11.2.0.4, so an upgrade to our latest SQL Developer patch might help.

Unknown Database Connector Error in Crystal Reports

Ok, I am probably just shooting air with this question.. but I have no idea what's happening and I have been banging my head against it for the last couple days.
I have a crystal report version 12.2.0.290... I built this report against an Oracle connection string (not ODBC as it was giving me errors to use a stored procedure as a data source). Anyway, so the report was connecting to the database fine.. and I was able to build the entire report.. refreshing data with every change I made etc.. Once I was finished.. I closed the crystal report. When I open the report again and try to refresh the data I get the error "Unknown Database Connector Error in Crystal Reports". I get this error when I try to run the report straight from crystal reports.. or from the .NET wrapper that we built for this report. I also get the same error when I run the report (in CR) from another machine. In fact I get this error just trying to connect to an any Oracle database from that report..
The really strange thing is that if I open another report that we built a while ago.. I can connect to the same exact data source from it and it I go to File -> Open and open the first report.. I can connect to the Oracle data source and the report runs fine.. I can reproduce this strange behavior at will.. I don't know what is going on.... and I have been staring at this problem for the longest while.. if anyone has any ideas I will be more than happy to try them out...
Thanks!!
This is The Resolution:
https://social.msdn.microsoft.com/Forums/vstudio/en-US/d2811b33-2c2c-43d1-af51-9c54e9ad7920/unknown-database-connector-error?forum=wpf
I've fixed the problem, I just needed those lines:
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>
If using a stored procedure as your data source, make sure it RETURNS a RESULT SET. Once I added a 'SELECT * FROM dbo.mytable', the error went away. :-)
Are you using the latest Oracle Data Access Components?
How to check which version you are using:
During installation of ODAC, consult the ODAC Installer screen.
After installation, see the history.html file in your ODAC installation directiory.
At design-time, select Oracle | About ODAC from the main menu of your IDE.
At run-time, check the value of the OdacVersion and DACVersion constants.
Note: This was originally a comment but added as an answer after OP response on how to check for the version of ODAC

Resources