Skip to Main Content

SQL Developer

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!

Connection using SERVICE_NAME drops after 7 seconds

Prze-moCNov 28 2019 — edited Dec 2 2019

Hi,

When I create connection in SQL Developer using Connection Type=Basic and SID (not Service Name) then everything is fine.https://i.stack.imgur.com/cvJz6.jpg

If only is the connection changed to use Basic+Service_Name or TNSNAMES then "funny" things start to happen.

"Funny" means that the connection works perfectly fine when running short statements (running less than 7 seconds). However, when the statement is longer then I get:

Error report - IO Error: An existing connection was forcibly closed by the remote host

Error report - IO Error: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond

For example I have a large package to compile (ca. 330KB). Package definition compiles fine, but package body compiles only if not exceeding certain size (ca. 50KB of code and 7 seconds compilation time).

I'm using latest SQL Developer (19.2.1) and latest Java (11.0.5) connecting to 12.2 RDBMS with encryption and checksums in SQLNET.ORA on the server:

SQLNET.ENCRYPTION_SERVER = required SQLNET.ENCRYPTION_TYPES_SERVER = (AES256) SQLNET.CRYPTO_CHECKSUM_SERVER = required SQLNET.CRYPTO_CHECKSUM_TYPES_SERVER = (SHA256, SHA1) SQLNET.ENCRYPTION_CLIENT = required SQLNET.ENCRYPTION_TYPES_CLIENT = (AES256) SQLNET.CRYPTO_CHECKSUM_CLIENT = required SQLNET.CRYPTO_CHECKSUM_TYPES_CLIENT = (SHA256, SHA1)

Does anyone have any clue what I'm experiencing here?

SQ

LNET.ORA on the server:

SQLNET.ENCRYPTION_SERVER = required SQLNET.ENCRYPTION_TYPES_SERVER = (AES256) SQLNET.CRYPTO_CHECKSUM_SERVER = required SQLNET.CRYPTO_CHECKSUM_TYPES_SERVER = (SHA256, SHA1) SQLNET.ENCRYPTION_CLIENT = required SQLNET.ENCRYPTION_TYPES_CLIENT = (AES256) SQLNET.CRYPTO_CHECKSUM_CLIENT = required SQLNET.CRYPTO_CHECKSUM_TYPES_CLIENT = (SHA256, SHA1)

Comments

BluShadow
Maybe a quick search on the internet has the answer...

http://dba.ipbhost.com/index.php?showtopic=8736
21205
Answer
It's probably a problem with your tool. Assuming you're on Oracle 11gR1, run the script in SQL*Plus and it will work.
Marked as Answer by 663394 · Sep 27 2020
SomeoneElse
The CONTINUE statement is a new feature of 11g.

You didn't tell us what version you are using.
663394
Thanks I actaully stumbled on that site after posting the question.Any way as 'someone else' pointed continue is not supported in my version (10 g). Thanks a lot everyone for your time.
1 - 4

Post Details

Added on Nov 28 2019
5 comments
881 views