sql - Oracle's imp.exe problems over tunneled connection -


we have oracle server running in remote server has ssh connection , need run data import process against that.

i tried different ssh tunnel combinations:

  • 127.0.0.1:1521
  • 127.0.0.1:1522
  • 127.0.0.1:11111
  • 127.0.0.107:1522
  • 127.0.0.107:11111

but none of them work imp.exe. intresting thing combinations works fine sql developer , scriptella scripts use jdbc. following error shown in standard error output:

imp-00058: oracle error 12514 encountered ora-12514: tns:listener not know of service requested in connect descriptor imp-00000: import terminated unsuccessfully 

and following appears in sqlnet.log:

*********************************************************************** fatal ni connect error 12514, connecting to:  (description=(connect_data=(service_name=tktdb1)(cid=(program=c:\oraclexe\app\oracle\product\10.2.0\server\bin\imp.exe)(host=...)(user=...)))(address=(protocol=tcp)(host=127.0.0.1)(port=11111)))    version information:     tns 32-bit windows: version 10.2.0.1.0 - production     windows nt tcp/ip nt protocol adapter 32-bit windows: version 10.2.0.1.0 - production   time: 07-mar-2011 10:53:26   tracing not turned on.   tns error struct:     ns main err code: 12564     tns-12564: tns:connection refused     ns secondary err code: 0     nt main err code: 0     nt secondary err code: 0     nt os err code: 0 

any ideas?

i asume connect strings correct. if are: database happen in restricted mode? in case, service supports not available connections. if case, try connecting tns alias using sid=xxx

i fail see ssh has impact here. database connection working. ssh plays role if need tunnel database connection through ssh. if normal sql client can connect without this, imp can same. ssh used connect server, not needed in case.

i hope helps, ronald.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -