I am facing problem while opening the PACKAGE body of database.
I am able to open the PACKAGE body for some database XYZ and i am not able to open the body part of some database ABC what can be the reason for that can you please assist me so i can try with those options and can able to see the package body in my system.
4.5 is a pretty old version of Nav. Even if it’s an issue, there’s not much we can do. I recommend you to download a free 6.2 beta, it may contain a fix for this issue.
Error when opening a DB object: ORA-00942: table or view does not exist
The thing is My colleague is using Same Version of SQL Navigator and he is able to see all the packages body and only me not able to see the package body for two Specific Database only. While we have total 4 database and i can able to see for other two database package body in my sql Navigator but this is something i am experiencing very strange issue.
My question is it something USER Related ACCESS we can give on database level that is why i am not able to see this package BODY ?
Please let me someways that i can check or let me know the solution to solve this issue.
the body its not wrapped?
Body is not wrapped actually another team mate can access the body part with same USER ID and PASSWORD for that database in his machine but not with my SQL Navigator he is using same version .
do you have all the package in your database (not only the spec?)?
I have all packages in Database.
what error do you get?
Error when opening a DB object: ORA-00942: table or view does not exist
you could try issuing a
select * from user_source where name=<package_name> and type=‘PACKAGE BODY’
to check if you really have code for that
I ran this query and it is giving me output for 1561 ROWS with details of NAME,TYPE,LINE,TEXT.
If another user used the same userid & password and it worked for him and not for you, it’s probably because of the ‘Enable DBA Dictionary view’ Preference. Maybe you have this option ON and he has it turned off. Please try turning it off and see if it works in your environment. Otherwise, I would strongly recommend you upgrade to a newer version of Nav.
Soo, exactly what “Enable DBA Dictionary view” does/allow? I mean, shouldn’t that flag make a check after the start of the connection to check if it makes sense to be “on”?
check if the user has DBA role, SELECT_CATALOG_ROLE role and SELECT ANY TABLE Privilege, (and SELECT ANY DICTIONARY ACCESSIBILITY if the initialization parameter O7_DICTIONARY_ACCESSIBILITY is set to FALSE)
(this info is from the user guide :-))
or if a select to the SYS.DBA_% fails revert to “Disable using DBA views” giving a warning message
Many thanks for your note. We have attempted refactoring this option/preference in 6.2 release but decided to defer it to post 6.2, due to risks associated with the changes…
We will take into account your feedback on how we should ultilize the option in Nav.
It was initially intended to work as an option to set the Enable DBA checkbox in the log in screen, but then it was extended with usage to give our users the option to choose which view to be used for testing purposes or due to performance issues on some environments. We believe the current behaviour is not that clear and it is confusing to our users regarding how this option works…
We are on the same page with your suggestion, we will need to review this option/preference, and will keep you posted with the progress in the next release (post 6.2) Beta, so that you can check it out.
I had this problem as well, after enabling DBA views…I can view the body after opening the object but the bodies are still not listed in the DB Explorer Pane.
Any ideas? or is this another item slated for 6.2?