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

Georaster driver doesn't work in gdal_translate when password is not in command-line #4460

Closed
fechen123 opened this issue Sep 9, 2021 · 1 comment

Comments

@fechen123
Copy link
Contributor

Expected behavior and actual behavior.

gdal_translate -of georaster geor:/@aaa,table_name,col_name ....

returns error message: ERROR 1: ORA-01005: null password given; logon denied

Steps to reproduce the problem.

1 Create an Oracle Wallet and store the user/pwd in the wallet:

mkstore -wrl <wallet_location> -create
mkstore -wrl <wallet_location> -createCredential <alias> <dbuser>

2 in tnsnames.ora, add entry for <alias>
In sqlnet.ora, add:
WALLET_LOCATION = (SOURCE = (METHOD = FILE) (METHOD_DATA = (DIRECTORY = <wallet_location>)))
SQLNET.WALLET_OVERRIDE = TRUE
SSL_CLIENT_AUTHENTICATION = FALSE

3 Upload the raster into a GeoRaster object in Oracle database:

gdal_translate -of georaster geor:/@<alias>,<table_name>,<column_name> -co "..."

GDAL version and provenance

This issue is on top of the fix on issue 3768.

@fechen123
Copy link
Contributor Author

I am working on the fix.

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