-
Notifications
You must be signed in to change notification settings - Fork 11
Using ALL_SOURCE table to get packages sources #6
Comments
Hi Marcin, Thanks for let me know about this limitation! I will definitely take care of it in Vorax4. I will let you know as soon as I'll have something available for beta-testing. Thanks, |
Hi Marcin, Vorax4 is now smart enough to get the package spec from ALL_SOURCE in case we want to peek into somebody else definition. |
Hi Alec, I have connectivity issues with vorax4-beta. I use cygwin in Windows8 system. Here is my log: 2013-06-15 09:39:57.825 [vim] - vorax#ruby#SqlplusFork() extra params=[] Could you please give me some hint where to look at to fix this? Thanks, Marcin |
Hi Marcin, Thanks for let me know about this issue. I will definitely look at this bug. Meanwhile, any good reason not to switch to the plain gVim on Windows? |
Yep. I program mostly in java and I use vim + console commands as my IDE. I used gVim before but you know: too many colors ;-) |
Bad news! For the moment, I'm going to drop Cygwin support in Vorax4, because:
Both issues above are annoying, but the first one is my main concern. The fact that there's no Cygwin version of sqlplus (at least the sources to compile it on this platform), it's a big show stopper. Now, I have second thoughts if it really pays off the trouble of integrating Vorax with Cygwin. |
Hello Alec, Ad1) To find out Cygwin path usually below function has to be used:
I stole this from @ervandew whose Eclim project has great Cygwin support. Ad2) Unfortuanatelly I have never used Cygwin on Virtualbox so I will not be able to help about this issue. I remember indeed when I started using Cygwin few years ago I had performace issues. Do not remember exactly how I solved this but indeed I remember this was caused by Cygwin trying to connect to some network resources. Sorry. About Cygwin support: If adding Cygwin support is annoying please do not add it and focus on features. This is open source project. It has to be fun, right ;) Maybe me or someone else will send you later pull request with Cygwin support. For testing I will install VirtualBox with Ubuntu to check if this feature you added works like expected. Thanks, Marcin |
Hi Marcin, Thanks a lot for your feedback! Ad1) I use the same approach in Vorax3 to convert Cygwin paths in windows paths using the "cygpath" utility:
Ad2) For the moment I don't have a plain Windows installation but as soon as I get one I will try to install Cygwin once again to see if it makes any difference. As far as the Cygwin support is concerned, from my point of view it sounds lovely that you or somebody else would be willing to contribute with this kind of integration. Yes, Vorax is an open source project and any kind of involvement is highly appreciated. For testing, you should be able to see this new feature in action on your Windows box using gVim. You may check the installation guide. I guess it would be easier for you instead of installing a new host on your VirtualBox. |
I am finally able to connect to database from Ubuntu installed in Virtualbox. When I invoke :VORAXEdit TABLE $table_name I receive this message: SP2-1504: Cannot print uninitialized LOB variable "DDL_DEF" |
Is this the entire error stack? |
Ok, I was able to reproduce it only if the table does not exist. Is it the same in your test case too? I mean, does the $table_name exist? |
Yes. This is the same for me. I only see this message when table does not exist. |
Ok! Thanks for testing it! I've submitted a fix for this bug. Now, if you try to edit an object which doesn't exist a warning message is displayed. |
I am not able to see tables from different schema though. Is it possible to debug with vorax4-beta queries like in vorax3? |
Yes, you're right! There was a small bug I've just fixed. Thanks for let me know. |
I forgot to answer to your question. In Vorax4 you may set the |
Thanks for info about debugging. I updated vorax4 to newest code however still am not able to see table declaration from different schema. Below are my logs:
|
According to the log, DBMS_METADATA fails with:
Most likely, this is because of the lack of SELECT_CATALOG_ROLE. Maybe I wasn't clear enough, but what I fixed in Vorax4 is the possibility to see the package/type spec of somebody else, not tables or other database objects. Getting the definition of a table for example, is not a trivial task considering how many options might be involved. This would be a "mini-project" by itself. Of course, if one can provide a reliable replacement of DBMS_METADATA using SQL/PLSQL logic, I'd be happy to include it in Vorax4. So, the question is: do we have the same expectations as far as this feature is concerned?... |
Indeed I thought that it will be possible to see table definition of different schema without extra privileges thanks to using DBMS_METADATA. Thanks for explanation. |
Hello Alec,
Using Vorax3 to get package source code which exists in different schema through visual explorer causes ORA-31603 error if current schema does not have SELECT_CATALOG_ROLE. Reason is that Vorax3 uses DBMS_METADATA.GET_DLL function. Alec like you suggested could you please in Vorax4 use ALL_SOURCE table instead?
Thanks,
Marcin
The text was updated successfully, but these errors were encountered: