Io exception: Oracle Error ORA-12650 in Oracle Cloud

前端 未结 2 1773
名媛妹妹
名媛妹妹 2021-01-27 00:52

I have been using Oracle cloud PAAS linux server for my DB machine (Oracle 11g) and having linux application server where i can run all my Java applications.

Assume i ha

相关标签:
2条回答
  • 2021-01-27 01:36

    This issue is because of Oracle DB machine encryption ENCRYPTION_SERVER settings. As i understood which is default and set it to enabled, when we set it to disabled or comment the line then application will work as expected. Below is the file name for reference,

    Filename : sqlnet.ora (We have to disable ENCRYPTION_SERVER settings)
    File Location : ../oracle/product/11.2.0/dbhome_1/network/admin 
    

    Hope this helps some one.!

    0 讨论(0)
  • 2021-01-27 01:42

    It did not help me at all. Actually I followed your solution and I ended up having another error more critical and serious than the one trying to solve. Let me explain. First of all the value "disabled" that you mentioned is not even an accepted value for this parameter. According to Oracle (Oracle Docs) these are the accepted values that anyone can use:

    SQLNET.ENCRYPTION_SERVER Purpose

    To turn encryption on for the database server.

    Default

    accepted

    Values

    • accepted: to enable the security service if required or requested by the other side.

    • rejected: to disable the security service, even if the required by the other side.

    • requested: to enable the security service if the other side allows it.

    • required: to enable the security service and disallow the connection if the other side is not enabled for the security service.

    Example

    SQLNET.ENCRYPTION_SERVER=accepted
    

    In my case being a 12c Oracle Cloud database the default was set to "required" giving me the error "Io exception: Oracle Error ORA-12650" when trying to start my application. Setting the parameter to "accepted" solved the issue and managed to start my application. In case you still get the error you can also set the following parameter to accepted: SQLNET.CRYPTO_CHECKSUM_SERVER = accepted if you see that in your sqlnet.ora the value is set to "required".

    Please have in mind that my application as well as my OCI setup are for testing purposes only and they are not intended to be used in production environment. Setting the value of SQLNET.ENCRYPTION_SERVER and SQLNET.CRYPTO_CHECKSUM_SERVER to "accepted" will significantly lower your Database's security making it vulnerable to any attacks from any application that has access to it. The best case scenario is to modify your application to use the ENCRYPTION as "required".

    0 讨论(0)
提交回复
热议问题