Select to view content in your preferred language

SDE (Oracle) error when importing in ArcGIS Server

881
11
06-05-2024 03:20 AM
LittleTurtle
New Contributor II

Hello,

 

I have this error when trying to publish my SDE to ArcGIS Server : 

Underlying DBMS error[ORA-12154: TNS:could not resolve the connect identifier specifiedNo extended error.]

 

I have tried different things :

- SDE with EZconnect: works in ArcCatalog and AGS 

- SDE with connection like sde:oracle11g:xyz: works in ArcCatalog and AGS 

- SDE with connection like sde:oracle19c:xyz: works in ArcCatalog but fails in AGS

 

The instantclient installed on AGS is 19.23

The db is 19.3.0.0.0

I've updated the init_user_param.sh: export LD_LIBRARY_PATH=/usr/lib/oracle/19.23/client64/lib:$LD_LIBRARY_PATH

 

I would be fine if I could use SDE with 11g but with an old mxd I can't publish it, it always asks me to publish oracle19c SDE

Does anyone can help me?

 

0 Kudos
11 Replies
LittleTurtle
New Contributor II

Even if I change datasource and use EZConnect in ArcCatalog it always ask me to add sde:oracle19c:XXX SDE to AGS which fails

0 Kudos
George_Thompson
Esri Notable Contributor

Are you using TNS or EZConnect in the connection window in Pro?

Did you restart the ArcGIS Server service after the Oracle client install?

--- George T.
0 Kudos
LittleTurtle
New Contributor II

I have tried with both (in ArcMap) and when I try to publish to my AGS it says that the source is not defined and I have to use sde:oracle19c:xyz

Yes I have restarted it, I can publish SDE on AGS (EZCOnnect or sde:oracle11g:xyz) but not the one the mxd asks (sde:oracle19c:xyz) which is weird because I can open it in ArcCatalog

0 Kudos
George_Thompson
Esri Notable Contributor

What version of ArcGIS Server (or Enterprise) are you publishing to?

What is the version of ArcMap?

Have you tried from ArcGIS Pro client?

--- George T.
0 Kudos
LittleTurtle
New Contributor II

AGS 10.8.1 and ArcMap 10.8.1

I've tried publishing sde from ArcMap or directly to AGS but does not work

0 Kudos
LittleTurtle
New Contributor II

LittleTurtle_0-1717584347434.png

LittleTurtle_1-1717584436246.png

this is what I see, I don't have the usual 'Set datasource...' just 'Update request...' 
I've tried to recreate a new mxd and 'Set datasource...' to sde:oracle11g:xyz and I can publish my service but I can't really do that because I have a lot of mxd with symbologies... so I would rather prefer use the original mxd

0 Kudos
George_Thompson
Esri Notable Contributor

So it looks like you are trying to publish a query layer.

What is the version Server are you publishing to (this is important)?

What is the version of ArcMap that you are using?

Can you provide a screenshot of your connection properties to your Oracle DB?  you can mark out the UN / PW part

--- George T.
0 Kudos
LittleTurtle
New Contributor II

AGS 10.8.1 and ArcMap 10.8.1
so this SDE is working in ArcCatalog and I can publish it in AGS:

 

LittleTurtle_2-1717587639299.png

and this one is working on ArcCatalog but cannot be published in AGS (same login/password):

LittleTurtle_0-1717587557428.png

 

0 Kudos
George_Thompson
Esri Notable Contributor

OK, thanks. This may need a little more detailed troubleshooting and would recommend technical support to work with you on this.

It seems there is something that is not correct with the connection string or the configuration.

On the Server, can you open sqlplus and connect to TEST with TNSNAME?

--- George T.
0 Kudos