Wednesday, May 6, 2015

Re: inspectdb on different Oracle schemas

Yes, I've done this with a schema from a vendor app I wanted to read.

Define additional database aliases, one per schema, and then when
running inspectdb use the "--database" parameter with the alias name.

On Wed, May 6, 2015 at 2:42 AM, Shekar Tippur <ctippur@gmail.com> wrote:
>
>
> Hello,
>
> Is there a way to run inspactdb on different schemas?
>
> I have around 3 schemas and when I run inspectdb, I get details from just 1
> schema.
>
> DATABASES = {
> 'default': {
> 'ENGINE': 'django.db.backends.oracle',
> 'NAME': '(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST =
> 127.0.0.1)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME
> = orcl)))', #the name for the entry in tnsnames.ora
> 'USER': 'auth',
> 'PASSWORD': 'ABCD',
> }
> }
>
>
> I tried adding another section to this setup but I am not sure how to
> reference it.
>
>
> - Shekar
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscribe@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/f8e84187-74eb-48d2-9c1d-da62cb1ffc45%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAD4ANxVErdyMif4DrTn0w2tLb2_pK9NsdeeVk-jguHSeQYf%2B4Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment