Comments (8)
It worked! Thanks for the quick attention to this issue!
from oradew-vscode.
Could it be that you connect with the "user" that is not the owner of the objects?
Oradew uses data from the following select to create file structure (not folders though):
oradew-vscode/src/common/db.js
Lines 236 to 242 in 13f9056
with :objectType = 'TABLE' (for tables, etc.), :objectName = null and :owner = connection user defined in dbconfig.json.
Please try quering in your DB to see actual owner of your objects:
select *
from all_objects;
Thanks for your feedback!
from oradew-vscode.
Thanks for the quick response.
If I run the following query:
select
owner,
object_id,
object_name,
object_type,
cast(last_ddl_time as timestamp) as last_ddl_time,
status
from
all_objects
where
upper(owner) = upper('**********') -- ********** is replaced with the actual schema user name
and
upper(object_type) = upper(nvl(null, object_type))
and
upper(object_name) = upper(nvl(null, object_name))
and
object_name not like 'SYS_PLSQL%'
order by
object_id
I get back 14 records. Here's a summary of some of that data:
Owner | Object ID | Object Name | Object Type | Last DDL Time | Status |
---|---|---|---|---|---|
********** | 260821 | MY_TABLE | TABLE | 25-APR-19 09.36.50.000000000 AM | VALID |
********** | 260822 | MY_INDEX | INDEX | 22-APR-19 01.23.47.000000000 PM | VALID |
********** | 260830 | MY_SEQUENCE | SEQUENCE | 22-APR-19 02.49.18.000000000 PM | VALID |
********** | 260831 | MY_TRIGGER | TRIGGER | 22-APR-19 03.09.49.000000000 PM | VALID |
********** | 260833 | MY_PKG_DEV | PACKAGE | 01-MAY-19 01.18.11.000000000 PM | VALID |
********** | 260834 | MY_PKG_BODY | PACKAGE BODY | 07-MAY-19 01.10.29.000000000 AM | VALID |
Obviously I've changed the owner and object names to keep from publicizing them on the interwebs.
I think the ownership is set up correctly. The user I've hidden here is the same user as I have set up in the dbconfig.json, and the password I have set up in that file is the same one that I use to log into the development DB with.
Is there any sort of verbose/debugging mode that I can turn on?
from oradew-vscode.
There is a "oradew.chatty" config but unfortunatelly it won't help in this scenario I am afraid.
Tomorrow I can make a custom release with some debuging outputs to print the actual sql executed, maybe it would help...
You are not messing with "source.input" parameter in oradewrc.json, are you? that is the only thing It could prevent creating files from objects - by design at least 🤔
Lines 599 to 600 in 13f9056
Thanks for your help.
from oradew-vscode.
No, I installed in and ran it. I don't remember messing with any part of the configuration, but I'll check just to be safe.
I used it once on a previous project and it worked like a champ. This time it just won't import the schema.
The schema user doesn't need to be granted any specific rights, does it?
from oradew-vscode.
No, not really. If a select from all_objects
returns data, that should be it.
from oradew-vscode.
Actually it was a bug. 😞 I released a fix (0.3.8) version, please confirm it works for you. Thanks again for reporting.
from oradew-vscode.
I've been pulled away from this project for a couple of days and I'm just getting back on this now. I'm going to install this update now and let you know how it goes.
Thanks!
from oradew-vscode.
Related Issues (20)
- Run as Script hangs for a few minutes HOT 3
- Windows econding UTF8 problem HOT 42
- Compile error "ERROR ORA-06550: line 3, column 40:" HOT 8
- problems importing packages from the DB HOT 3
- Terminal output problem matcher HOT 26
- Generate: "output" doesn't work
- Extension causes high cpu load HOT 1
- Encoding error when importing the selected object HOT 8
- Displaying umlauts in terminal output
- Encoding problem in SQL-Statements HOT 3
- dbms_metadata.get_ddl does not work when used in UTL_GENERATE_ORADEW HOT 3
- Initialize Workspace not working HOT 8
- Oracle wallet authentication compatibility, userless & passwordless HOT 9
- Error while trying to retrieve text for error ORA-01804 HOT 5
- Drop support for sqlplus, sqlcl Liquibase ci/cd HOT 8
- Support latest version of node HOT 6
- Generating a source from a database HOT 5
- Create source from a non-DEV env
- Problem importing when object has "SQL" in the name HOT 1
- problems connecting to oracle database (proxy authentication) HOT 7
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 oradew-vscode.