Comments (12)
Is there anything in error log?
from dbeaver.
Hi Serge,
the error log is empty, but I observed that one of the metadata queries that are called to retrieve data gives 0 rows as result:
I don't know if this information can be helpful...
from dbeaver.
Thanks for info. At least I'll fix source loading text.
Could you please check that this package body is loaded in other Oracle tools?
from dbeaver.
Hi Serge,
I confirm that the package body is correctly loaded and parsed by TOAD using the same user.
TOAD retrieves also a slightly different package declaration in header.
TOAD:
CREATE OR REPLACE package SER_MIFID.PKG_CALCOLO_PATRIMONIALE as
TYPE elencoCLI is varray(8) of char(11);
DBeaver:
package PKG_CALCOLO_PATRIMONIALE as
TYPE elencoCLI is varray(8) of char(11);
from dbeaver.
Yet another strange issue.
Are you working as SYSDBA or as a normal user? Could try it as SYSDBA (if you have such permissions)?
There is a difference in package declarations because TOAD makes additional source processing and inserts CREATE OR REPLACE operator. I think DBeaver also should do it..
from dbeaver.
I think that this problem has the same nature as #37. Something about permissions.
But if you are using the same user then the only possible difference is a different connection role (SYSDBA, SYSOPER, Normal). Or maybe some additional initialization queries.
Did you try any other tools besides DBeaver and TOAD?
from dbeaver.
Hi Serge,
using TOAD I connect to the same DB using the same user and the same role (normal).
I tried using SqlDbx too, and I can see the package body without issues connecting as normal user.
from dbeaver.
I'm frustrated a bit.
Could you try this trick:
Execute query
SELECT TEXT FROM SYS.ALL_SOURCE WHERE TYPE='PACKAGE BODY' AND OWNER='SER_MIFID' AND NAME='PKG_CALCOLO_PATRIMONIALE'
in DBeaver and in TOAD. Is there any difference?
from dbeaver.
Hi Serge,
executing the query on DBeaver and TOAD gives no result on both of them :-( I also checked and TOAD uses the same connection to execute queries and to retrieve package body.
Hoping to be more helpful, if I inpect the current user privileges using the following query:
select * from session_privs
I obtain the following privileges:
- CREATE SESSION
- ALTER SESSION
- UNLIMITED TABLESPACE
- CREATE TABLE
- SELECT ANY TABLE
- INSERT ANY TABLE
- UPDATE ANY TABLE
- DELETE ANY TABLE
- CREATE CLUSTER
- CREATE SEQUENCE
- ALTER ANY SEQUENCE
- SELECT ANY SEQUENCE
- CREATE PROCEDURE
- ALTER ANY PROCEDURE
- EXECUTE ANY PROCEDURE
- CREATE TRIGGER
- CREATE TYPE
- CREATE OPERATOR
- CREATE INDEXTYPE
- SELECT ANY DICTIONARY
- ADVISOR
from dbeaver.
Hi Serge,
after some googlin I found the solution of the issue :-)
The correct schema to retrieve the package body if the current user has EXECUTE PACKAGE permissions and the package belongs to another schema is SYS.DBA_SOURCE and not SYS.ALL_SOURCE.
If you execute this query on DBeaver and on TOAD:
SELECT TEXT FROM SYS.DBA_SOURCE
WHERE TYPE='PACKAGE BODY'
AND OWNER='SER_MIFID'
AND NAME='PKG_CALCOLO_PATRIMONIALE'
ORDER BY line
I get the package body.
References: TOAD Wiki, Oracle Community
from dbeaver.
Hey,
Thanks a lot for information.
However I doubt that using DBA* views everywhere is the best choice. These views are usually not accessible to users without DBA permissions.
But I think I could try to read info from both DBA and ALL views. If DBA* view is missing/not accessible or contains no data then try to read from ALL* (or even USER*).
Will try to fix this in the next version.
from dbeaver.
Now DBeaver will read sources from DBA_SOURCE view (if it is available for current user).
from dbeaver.
Related Issues (20)
- Put the Query Result Connection detail to other place, Not a tooltip of a resultset HOT 1
- [CUBRID] Create and Edit View using UI HOT 1
- The privileges (grant) tab is missing for Oracle Procedures and Functions HOT 1
- DBeaver Freezes and Has High CPU Usage with Large Scripts HOT 3
- DBeaver 24.0.0+ disconnect doesn't always work HOT 3
- dBeaver doesn't start after upgrade to 24.0.4 (zip download) - incompatible JNA native library HOT 4
- [CUBRID] Provide more information on Query Plan TableView HOT 1
- If I use Oracle 23c driver F4 won't work (it works with other drivers) HOT 10
- Dbeaver began to make a slow opening on Citrix machines HOT 4
- Running query in a block without highlighting no longer works HOT 12
- Transaction Blocks not working after most recent update HOT 2
- Window for "Select Data Source" disappears seconds after switching tabs, right as you're selecting a data source
- SQL Error [42501]: ERROR: permission denied for table
- DBeaver incorrectly gives syntax error highlighting HOT 8
- Can't install update 24.0.4 on Mac OS Catalina 10.15.7
- Enhancement of Key Derivation in DefaultValueEncryptor.java
- Unable to build properly HOT 4
- WHY i cant import, i was doing that before successfully. java heap space? HOT 2
- M3 MAC DBeaver unable to connect to any database due to "Network Unavailable SSL Handshake Exception error"
- Add a refresh button on the "choose catalog/schema" modal HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dbeaver.