ORA-01008 not all variables bound error when trying to connect to Oracle 19c
DOKMANC2
Posts: 16 Bronze 1
Some of our databases were recently updated to Oracle 19c.
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.11.0.0.0 Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Our production is still on
Our production is still on
Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
PL/SQL Release 12.1.0.2.0 - Production
CORE 12.1.0.2.0 Production
TNS for Linux: Version 12.1.0.2.0 - Production
NLSRTL Version 12.1.0.2.0 - Production
I had the Oracle 12.3 Client installed on my PC and tried to use it to compare. While I was able to verify my connection against any database, 12c or 19c, I could not perform a comparison that included a to the 19c database. I got the error:
ORA-01008 not all variables bound error
So, I upgraded my Oracle Client to 19c hoping t hat that would fix it. The same exact behavior resulted: 12c worked, 19c didn't
I cannot send file attachments outside of the company. I was hoping this forum allowed attachments, as sometimes I am able to submit files this way but this forum does not appear to support it.
My support policy just expired....
I had the Oracle 12.3 Client installed on my PC and tried to use it to compare. While I was able to verify my connection against any database, 12c or 19c, I could not perform a comparison that included a to the 19c database. I got the error:
ORA-01008 not all variables bound error
So, I upgraded my Oracle Client to 19c hoping t hat that would fix it. The same exact behavior resulted: 12c worked, 19c didn't
I cannot send file attachments outside of the company. I was hoping this forum allowed attachments, as sometimes I am able to submit files this way but this forum does not appear to support it.
My support policy just expired....
Answers
What is the full version number of Schema Compare for Oracle you are using?
Can you please generate a verbose log file as per the instructions in this help article and review the log file generated? Does it contain any information or identify the query that maybe causing the error?
Many Thanks
Eddie
Senior Product Support Engineer
Redgate Software Ltd
Email: support@red-gate.com
Re: Does it contain info that may identify the cause of the error?
The file that I think that you are referring to has an extension "saencryptedreport." when I opened it up, I was not surprised to see that it was encrypted. Is this the log file that you wanted me to check?
Many times when the error has occurred in the UI, I select the option to send it to Red Gate. I have sent it about 8 times, approx, most recently today. I referenced this post in the Description. My email address was included in all.
I think you have misunderstood me.
The help article contains the information to increase the logging level to verbose and the how to locate the log file generated.
The log file is not associated to the error report with the "saencryptedreport."extension.
Many Thanks
Eddie
Senior Product Support Engineer
Redgate Software Ltd
Email: support@red-gate.com
Yes, I did misread your reply. Sorry about that. I do see these errors in the verbose log. I know that we've seen other permissions issues related to the upgrade but to my knowledge, they were "all" fixed. I will forward these to the DBA in hopes that he does not tell me that I should not have access to these views. This is the expected default reply. Let's see what he says...
Just in case it is required by yourself and your DBA colleague, this help document explains the permissions required, the further information lists all the Oracle Data Dictionaries and system tables the comparison engine will require access to.
Many Thanks
Eddie
Senior Product Support Engineer
Redgate Software Ltd
Email: support@red-gate.com
The thing that confused me is that I got the the error message ' table or view does not exist" above in an upgraded env where the compare failed but I also could not query these table in a db where the Schema Compare program worked correctly.
I confirmed that my user id belonged to the SELECT_CATALOG_ROLE in all envs.
When I compared 3 schemas simultaneously, the comparison failed. However, I was able to successfully compare them individually.
i can send the entire verbose log to you if you like, or I can post it here, but it's long. Would you like me to mail it to you?
What do you think?
Sorry for the delayed response, I have been out of the office so to speak and not available to update this forum post.
To my knowledge I am not aware of any problems until now in regards to Oracle 19c and being unable to compare multiple schemas.
The "saencryptedreport." reports you send, by pass the Product Support Team and update the Bug Tracking application directly. The Bug Tracking system does not reply to reports submitted.
However, I have located the reports you have supported. It appears that you are still using V5.7.4.3160 of Schema Compare for Oracle.
Can you please upgrade to V5.7.15.1555 of Schema compare for Oracle using this link? There have been various updates and bug fixes between versions 5.7.4 and 5.7.15. Then please confirm if the problem still occurs or no longer occurs.
Many Thanks
Eddie
Senior Product Support Engineer
Redgate Software Ltd
Email: support@red-gate.com
By the wat, before I upgraded, I selected the "Check for Updates" menu option and got a message that I was on the latest version. Due to past experience with upgrades resulting in my app turning into a demo version I figured this was the most likely way to upgrade to a version that would still be considered registered.
Sorry for the delayed response.
I am unable to replicate the reported problem of not being able to select multiple schemas for a comparison using Oracle 19c databases.
My search for articles to get an explanation for the error, indicates the following:
This ORA-01008 errors are related with the SQL statement containing substitution variables was executed without all variables bound. All substitution variables must have a substituted value before the SQL statement is executed.
I am unsure how this relates to the code in the GUI where a user adds additional schemas to be compared.
In the Schema Compare for Oracle GUI, if you increase the logging level as per the instructions in this help article. Repeat the comparison attempt or project setup. When the problem occurs, locate the current log file. Is there any additional information in the log file on what maybe the cause of the problem outside of the ORA-01008 error?
Many Thanks
Eddie
Senior Product Support Engineer
Redgate Software Ltd
Email: support@red-gate.com
What is puzzling is that when I selected only one schema, even though the UI appears to work fine the log shows SQLs followed by error messages like "view does not exist". Furthermore, I can execute the SQLs that the log reports as having raised errors.
When I select multiple schemas, I see one different error that may be important. This SQL I actually cannot execute myself as I get the same 'table or view does not exist" error reported in the log.
Is access to the two $ views really required? Why are they only required when comparing multiple schemas?
Thank you for your replies.
It appears that you only sent in another copy of the Error Report and not the log file I was seeking. If you right click the Schema Compare for Oracle icon in the very top left hand corner of the GUI, immediately above the File menu. -> Select the Minimum Log Levels option (also note the Locate log Files and Open Current log File options). ->Set the logging level to be Verbose.
Now repeat the comparison attempt with the multiple schemas. When you reproduce the problem, locate the Current Log file and reply with a copy for me to review.
In regards to this comment you posted:
Is access to the two $ views really required? Why are they only required when comparing multiple schemas?
In the background the comparison engine will query a number of Oracle Data Dictionaries and system tables to obtain information about the objects held in the schema or schemas that the user is comparing. Along with the dependencies between the objects.
The query that is failing and generating the "view does not exist" message, is executed if you are comparing a single pair of schemas or multiple pairs of schemas.
The query in question to obtain PERIODFOR information in regards to any Materialized Views. I suspect the user that connects to the Oracle database does not have security permissions to the system tables sys.sys_fba_period p,sys.tab$ t and sys.obj$ o. Also the Oracle Data Dictionaries all_users u and m_owners.
This help document explains the permissions required and the Further Information section lists all the Oracle data dictionaries and system tables the tool requires security permissions upon.
Many Thanks
Eddie
Senior Product Support Engineer
Redgate Software Ltd
Email: support@red-gate.com
It looks like our company tightened up access when they upgraded out dbs to 19c. From past experience, I don't expect anyone is going to grant me special access to use Red Gate tools.
i clearly don't have access to sys.tab$ , sys.obj$ and the Red Gate docs say that this is needed. See the email from my DBA.
The product is only 13 mos old. Can I get a credit to buy something else? Otherwise, maybe I can put it on eBay. Interested parties, reply to this post.
Hi Chad,
On looking at the logs and your previous access.
You had “SELECT ANY TABLE” privilege to your LAN id which might have masked all the individual access needed to run these queries when the database was on 12c version.
As part of CIP standard, granting “SELECT ANY TABLE” is not allowed on individual lan id’s.
19c upgrade cleaned up most of the vulnerabilities as directed from CIP.
For the below query, you need select access on sys.sys_fba_period , sys.tab$ , sys.obj$ and all_users objects.
Again, these objects are internal db objects and access to them are restricted.
I have copied our dba security team who can assist you further on this.
Thanks,
Sadly, the comparison engine requires permissions to the Oracle Data Dictionaries and System tables highlighted in the help document.
To reply to this comment:
If you contact the Redgate Sales team, I am sure that they can explore potential options for replacing the product, but these might be limited given you are working on Oracle and all of our Oracle tools we require the permissions highlighted in the help document. Alternatively, if you are able get the required security permissions, the Sales Team may investigate extending the support on your existing license.
Many Thanks
Eddie
Senior Product Support Engineer
Redgate Software Ltd
Email: support@red-gate.com
Internal Security just told me to use TOAD compare and contacted Software purchasing to take Red Gate software off the list of approved software.
Goodbye.