Posts

Showing posts from January 22, 2017

Install WebLogic in Linux Environment

We first create a user, for example, oracle. To create a user run the following commands under the root user:     useradd oracle     passwd oracle This creates a /home/oracle directory. To delete the user we can use: userdel -r oracle the option -r removes the /home/oracle directory. The following software versions will be used: JRockit JVM – jrrt-4.0.1-1.6.0-linux-x64   WebLogic Server – wls1035_generic First, we choose an installation directory, for example /home/oracle/weblogic. This will be our middleware home in the installation of WebLogic. To install JRockit we follow these steps: Run the file jrrt-4.0.1-1.6.0-linux-x64.bin.   Click Next on the welcome screen.   Define the install directory /home/oracle/weblogic/jrrt-4.0.1-1.6.0 and click Next.   Optionally select extra components and click Next.   When the installation is finished click Done. To install WebLogic we follow these steps: Navigate to t...

How to install the Admin Server of a SOA domain as a Windows Service?

Steps to install the SOA Domain are: 1) Install Oracle XE under C:\Oracle\oraclexe 2) Alter the processes using sql plus with the following SQL: alter system set processes = 200 scope=spfile; commit; 3) Install WLS 10.3.3 under C:\Oracle\Middleware 4) Install SOA 11.1.1.2 under C:\Oracle\Middleware\Oracle_SOA1 5) Install SOA 11.1.1.3 under C:\Oracle\Middleware\Oracle_SOA1 (To avoid potential issues with the patching utility) 6) Create a SOA Domain with successful testing of the Database schema 7) Modify the nodemanager.properties file, located under <Middleware_home>\<WL_Home>\common\nodemanager folder and set the following values to the properties: CrashRecoveryEnabled=true StartScriptEnabled=true 8) Install NodeManager as a Windows Service.            ...         @echo off         SETLOCAL             set WL_HOME=D:\Oracle\Middle...

Resetting Admin UserName And Password

How to Decrypt WebLogic Password ?  Many times we want to Alter WebLogic Admin Username and passwords on a Routine Basis… If you want to Reset The WebLogic Username and Password then Please follow the Steps mentioned Below…(EXACTLY): Step1). open a Command Prompt and then run “setDomainEnv.sh” or “setDomainEnv.cmd”. Step2). Just for Safety Take a Backup of (C:\bea103\user_projects\domains\7001_Domain\security\*DefaultAuthenticatorInit.ldift*) file …because in the Next Command which we are going to run is going to Create a New File “DefaultAuthenticatorInit.ldift”. Step3). In the Command Window Move inside your Domain’s Security Directory…And then Run the Following Command: Example: C:\bea103\user_projects\domains\7001_Domain\security>java weblogic.security.utils.AdminAccount newAdmin newPassword . Syntax: java weblogic.security.utils.AdminAccount <NewAdminUserName> <NewAdminPassword> NOTE:- There is a . (DOT) at the end of the Above ...

Rotation of .out log files created by node manager

Unfortunately there is no way provided with node manager or weblogic to rotate your .out log files created by node manager , you have to manually cleanup them or you can use  any of the below method to auto cleanup the same. 1st Method ---------- ----- You can redirect .out logs to the .log file and managed .log via admin console. [ console > your_server > under logging tab ] Fot this -  Go to to YOUR_DOMAIN/bin/nodemanager Take a backup of your existing wlscontrol.sh Edit it and change OutFile=$ServerDir/logs/$ServerName.out to OutFile=$ServerDir/logs/$ServerName.log 2nd Method ----------- ------ on Linux, You can change OS parameters in /etc/logrotate.conf file  Append below lines at the end <out_log_file_dir_path>/*.out { copytruncate rotate 4 size=500Mb } OR Use command "logrotate" using cron to achieve, You can use it with copytruncate to rotate logs. 3rd Method ----------- ----- Add option -Dweblogic.log.RedirectStdoutToServerLogEnabled=true to redi...

Create Machine configure NodeManager using WLST for 12.2.1

Image
Create Machine configure NodeManager using WLST This blog post is renovated with latest WebLogic 12.2.1 version execution output here. We have more generic reusable functions, three different functions each one has independent task. Where the pre condition for this is you must have a domain configured and admin server is running. create a machine and setup the Nodemanager  delete machine from the domain show all machines in the domain ? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 #========================================================================== # FileName      : createMachine.py # ...