Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

gdal_translate gives TNS error

don123May 20 2024

I am able to connect to Oracle database, but gdal_translate gives TNS error.

C:\sqlplus user/pwd@DB

SQL*Plus: Release 21.0.0.0.0 - Production on Mon May 20 13:57:24 2024
Version 21.3.0.0.0

Copyright (c) 1982, 2021, Oracle. All rights reserved.

Last Successful login time: Mon May 20 2024 13:56:59 +05:30

Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.3.0.0.0

SQL>exit

C:\gdal_translate -of georaster LC09_L2SP_038038_20240327_20240328_02_T1_SR_B1.TIF georaster:user/pwd@DB,images,image -co blockxsize=512
-co blockysize=512 -co SRID=32611 -co "INSERT=(image_id, image) VALUES (1, sdo_geor.init('IMAGES_RDT'))"
Input file size is 7561, 7691
ERROR 1: ORA-12154: TNS:could not resolve the connect identifier specified

This post has been answered by don123 on May 21 2024
Jump to Answer
Comments
Post Details
Added on May 20 2024
2 comments
164 views