Code Snippet

Just another Code Snippet site

[WebLogic] How-to

Error while inserting large record in DB (uploading large file)

java.sql.SQLRecoverableException: IO Error: Connection reset by peer

Workaround :

-Doracle.net.useZeroCopyIO=false
-Doracle.jdbc.ReadTimeout=1800 (n is in milliseconds)
-Doracle.net.keepAlive=true

Patch : https://support.oracle.com/rs?type=patch&id=25032984

,


5 thoughts on “[WebLogic] How-to

  • Missing disk space.
    Output of “ncdu/du” is different to “df”

    => stop all weblogic nodes. some (hidden) log files are consuming disk space

  • Opatch upgrade, error with central inventory :

    Invalid Central Inventory location "/home/oracle/inventory" (cannot create)
    

    provide the central inventory location as paramater:

    java -jar opatch_generic.jar  oracle_home=/path/to/Oracle_Home inventory_location=/path/to/inventory -silent
    
  • OSB > Clean pending sessions :

    When there is a genuine session duplicate case, you will find more than one system directory within this directory: $OSB_DOMAIN/osb/config/sessions
    – Delete the secondary system directory and try for session activation.

    – If that does not work, delete everything under
    $OSB_DOMAIN/osb/config/sessions

    – Restart your Admin server with the deletion of cache, tmp, data & stage directories

    – Make sure, when you are changing anything in OSB console, no other user is trying to change from console at the same time.
    No user should know your login credentials. Parallel login with same credentials, trying to activate session at the same time can create such issue.

    – Make sure, nobody has clicked on Lock & Edit button in Weblogic server to change any parameter.

    – Sometimes, if all of the above steps did not help, go for rolling restart of the entire domain. Delete cache, tmp, data & stage for all managed servers along with admin server including tmp from domain directory itself.

    https://swapratim.wordpress.com/2015/09/08/oracle-session-bus-session-activation-problem-another-session-operation-is-in-progress-please-retry-later/

  • List WDT attribute:

    cd $WDT_BIN
    
    ./modelHelp.sh -oracle_home $ORACLE_HOME topology:/Server
    
    
    ...
    
    Attributes and sub-folders for topology:/Server
    
    topology:
        Server:
            'Server-1':
                AcceptBacklog:                                # integer
                AddWorkManagerThreadsByCpuCount:              # boolean
                AdminReconnectIntervalSeconds:                # integer
                AdministrationPort:                           # integer
                AdministrationPortEnabled:                    # boolean
                AdministrationProtocol:                       # string
                AllowShrinkingPriorityRequestQueue:           # boolean
                AutoJDBCConnectionClose:                      # string
                AutoKillIfFailed:                             # boolean
                AutoMigrationEnabled:                         # boolean
                AutoRestart:                                  # boolean
                BuzzAddress:                                  # string
                BuzzEnabled:                                  # boolean
    ...
    

Leave a Reply to OLIVIER COMBE Cancel reply

Your email address will not be published. Required fields are marked *