Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ora2pg cannot connect to postgresql #1846

Open
Neurozone opened this issue Dec 6, 2024 · 1 comment
Open

ora2pg cannot connect to postgresql #1846

Neurozone opened this issue Dec 6, 2024 · 1 comment

Comments

@Neurozone
Copy link

PG_DSN is set

PG_DSN dbi:Pg:dbname=xxxx;host=127.0.0.1;port=5432 PG_USER xxxx PG_PWD xxxx
but:

postgres@postgres02-intern: [/var/lib/postgresql] 15:41:41$ ora2pg -t INSERT --pg_dsn ${PG_DSN} --pg_user xxxx --pg_pwd=xxxx [2024-12-06 15:43:24] [========================>] 44/44 tables (100.0%) end of scanning. FATAL: 1 ... connection to server at "127.0.0.1", port 5432 failed: fe_sendauth: no password supplied Aborting export...

Do I miss something ?

@Neurozone
Copy link
Author

Neurozone commented Dec 6, 2024

Even with PG_PWD commented out:

`postgres@postgres02-intern: [/var/lib/postgresql] 16:08:33$ ora2pg -t COPY -c /etc/ora2pg/ora2pg.conf

[2024-12-06 16:09:53] [========================>] 44/44 tables (100.0%) end of scanning.

Enter PostgreSQL password:

FATAL: 1 ... connection to server at "127.0.0.1", port 5432 failed: fe_sendauth: no password supplied

Aborting export...
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant