Code Monkey home page Code Monkey logo

Comments (8)

sspringer avatar sspringer commented on June 2, 2024 1

It worked! Thanks for the quick attention to this issue!

from oradew-vscode.

mickeypearce avatar mickeypearce commented on June 2, 2024

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):

`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(:owner)
and upper(object_type) = upper(nvl(:objectType, object_type))
and upper(object_name) = upper(nvl(:objectName, object_name))
and object_name not like 'SYS_PLSQL%'
order by object_id`,

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.

sspringer avatar sspringer commented on June 2, 2024

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.

mickeypearce avatar mickeypearce commented on June 2, 2024

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 🤔

// Create empty sql file - if is inside "source.input" globs
if (base.isGlobMatch(source, [path])) fs.outputFileSync(path, "");

Thanks for your help.

from oradew-vscode.

sspringer avatar sspringer commented on June 2, 2024

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.

mickeypearce avatar mickeypearce commented on June 2, 2024

No, not really. If a select from all_objects returns data, that should be it.

from oradew-vscode.

mickeypearce avatar mickeypearce commented on June 2, 2024

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.

sspringer avatar sspringer commented on June 2, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.