Showing posts with label WebLogic Performance Tuning. Show all posts
Showing posts with label WebLogic Performance Tuning. Show all posts

Wednesday 23 December 2015

BEA-090402 Authentication denied: Boot identity not valid

Error:

. The boot identity may have been changed since the boot identity file was created. Please edit and update the boot identity file with the proper values of username and password. The first time the updated boot identity file is used to start the server, these new values are encrypted.>

Solution:

Step 1: Bring down node-manager

Step 2: Delete ldap folder

Delete the whole ldap folder from following location

[oracle@saidrasel]$ find /u01 -name ldap
/u01/oracle/middleware/user_projects/domains/ClassicDomain/servers/WLS_FORMS/data/ldap
/u01/oracle/middleware/user_projects/domains/ClassicDomain/servers/AdminServer/data/ldap
/u01/oracle/middleware/user_projects/domains/ClassicDomain/servers/WLS_REPORTS/data/ldap
[oracle@saidrasel]$


Step 3: Delete boot.properties from following location

cd /u01/oracle/middleware/user_projects/domains/ClassicDomain/servers/WLS_REPORTS/security
Delete the boot.properties
cd /u01/oracle/middleware/user_projects/domains/ClassicDomain/servers/WLS_FORMS/security
Delete the boot.properties
cd /u01/oracle/middleware/user_projects/domains/ClassicDomain/servers/AdminServer/security
Delete the boot.properties

Step 4: Create boot.properties

u01/oracle/middleware/user_projects/domains/ClassicDomain1/servers

create a boot.properties file using the following entry
username= weblogic
password=weblogic123
copy this boot.properties file for WLS_FORMS, WLS_REPORTS and WebLogic
After start the server from command line, it will encrypt again automatically.

Step 5 : Start the node-manager

$ nohup $WLS_HOME/server/bin/startNodeManager.sh > /dev/null 2>&1 &

Start the managed server and it should start successfully.



Monday 23 November 2015

Useful Command for Managing Weblogic Services

Useful Command for Weblogic

$ # Start NodeManager
$ nohup $WLS_HOME/server/bin/startNodeManager.sh > /dev/null 2>&1 &


$ # Start WebLogic
$ nohup /u01/app/oracle/config/domains/mydomain/startWebLogic.sh > /dev/null 2>&1 &
$ # or
$ nohup /u01/app/oracle/config/domains/mydomain/bin/startWebLogic.sh > /dev/null 2>&1 &



$ # Stop WebLogic
$ /u01/app/oracle/config/domains/mydomain/bin/stopWebLogic.sh


$ # Start Managed Server
$ nohup /u01/app/oracle/config/domains/mydomain/bin/startManagedWebLogic.sh AdminServer > /dev/null 2>&1 &

$ # Stop Managed Server
$ /u01/app/oracle/config/domains/mydomain/bin/stopManagedWebLogic.sh AdminServer


$ # Start the configuration wizard
$ $WLS_HOME/common/bin/config.sh

$ # Start Weblogic Form Services
nohup $MW_HOME/user_projects/domains/ClassicDomain/bin/startManagedWebLogic.sh WLS_FORMS > /dev/null 2>&1 &

$ # Stop Weblogic Form Services
/u01/oracle/middleware/user_projects/domains/ClassicDomain/bin/stopManagedWebLogic.sh WLS_REPORTS


$ # Start Weblogic Report Services
$ nohup /u01/oracle/middleware/user_projects/domains/ClassicDomain/bin/startManagedWebLogic.sh WLS_REPORTS > /dev/null 2>&1 &

$ # Stop Weblogic Report Services
/u01/oracle/middleware/user_projects/domains/ClassicDomain/bin/stopManagedWebLogic.sh WLS_REPORTS

Find report server in Weblogic

----Check report server in local network---

[oracle@iStelar test_istelar_report_server]$ cd /u01/oracle/middleware/asinst_1/config/reports/bin/
[oracle@iStelar bin]$ ./rwdiag.sh -findall

Reading the rwnetwork.conf from :/u01/oracle/middleware/asinst_1/config/ReportsToolsComponent/ReportsTools/rwnetwork.conf
Broadcast mechanism used to locate servers
------------------------------------------
Channel address = 228.5.6.7
Channel port  = 14022

REP-50503 No server found in the network
[oracle@iStelar bin]$


---Now copy the rwnetwork.conf file from another server where reports are working properly--

scp -r oracle@:/u01/oracle/middleware/asinst_1/config/ReportsToolsComponent/ReportsTools/rwnetwork.conf /u01/oracle/middleware/asinst_1/config/ReportsToolsComponent/ReportsTools/

---Now find report server in local network--

[oracle@iStelar ReportsTools]$ cd /u01/oracle/middleware/asinst_1/config/reports/bin/
[oracle@iStelar bin]$ ./rwdiag.sh -findall

Reading the rwnetwork.conf from :/u01/oracle/middleware/asinst_1/config/ReportsToolsComponent/ReportsTools/rwnetwork.conf
Broadcast mechanism used to locate servers
------------------------------------------
Channel address = 228.5.6.7
Channel port  = 14021

(1) Name = rep_wls_reports_istelar252_asinst_1 : Type = server : Host = iStelar.localdomain
(2) Name = test_istelar_report_server : Type = server : Host = iStelar.localdomain
(3) Name = rep_wls_reports_bachapp_asinst_1 : Type = server : Host = bachapp.localdomain
(4) Name = rep_appsrv_mor_off_frhome1 : Type = server : Host = appsrv.sblcorp.com
(5) Name = rptsvr_istelar212_asinst_1 : Type = server : Host = istelar222.localdomain
(6) Name = rep_wls_reports_istelar212_asinst_1 : Type = server : Host = iStelar212.localdomain
(7) Name = rep_wls_reports_istelar213_asinst_1 : Type = server : Host = istelar213.localdomain
(8) Name = rptsvr_istelar213_asinst_1 : Type = server : Host = istelar213.localdomain
(9) Name = rep_wls_reports_istelar_asinst_1 : Type = server : Host = istelar.localdomain
(10) Name = rptsvr_istelar_asinst_1 : Type = server : Host = istelar.localdomain
[oracle@iStelar bin]$

How to create or delete component in Weblogic

----Delete component from opmn in Web logic------

[oracle@iStelar bin]$ ./opmnctl deletecomponent -componentName  RptSvr_iStelar_asinst_1

Command requires login to weblogic admin server (iStelar.localdomain):
  Username: weblogic
  Password:

Command failed: Unable to connect to admin server. Verify that login username and password are correct.

opmnctl deletecomponent: failed.
[oracle@iStelar bin]$ ./opmnctl deletecomponent -componentName  RptSvr_iStelar_asinst_1

Command requires login to weblogic admin server (iStelar.localdomain):
  Username: weblogic
  Password:

Unregistering RptSvr_iStelar_asinst_1 component
Deleting RptSvr_iStelar_asinst_1 directories
Invoking opmn reload...Done
Command succeeded.
[oracle@iStelar bin]$ ./opmnctl status

Processes in Instance: asinst_1
---------------------------------+--------------------+---------+---------
ias-component                    | process-type       |     pid | status
---------------------------------+--------------------+---------+---------
emagent_asinst_1                 | EMAGENT            |     N/A | Down
forms                            | FormsRuntime       |   16571 | Alive
forms                            | FormsRuntime       |   15046 | Alive
forms                            | FormsRuntime       |   19242 | Alive
forms                            | FormsRuntime       |    9205 | Alive
ohs1                             | OHS                |     N/A | Down

[oracle@iStelar bin]$

----Create component in opmn in Web logic------


[oracle@iStelar bin]$ ./opmnctl createcomponent -componentName  test_istelar_report_server
Command failed: Command requires argument: -componentType

opmnctl createcomponent: failed.
[oracle@iStelar bin]$ ./opmnctl createcomponent -componentName  test_istelar_report_server -componentType  ReportsServerComponent

Command requires login to weblogic admin server (iStelar.localdomain):
  Username: weblogic
  Password:

Creating empty component directories...Done
Provisioning ReportsServerComponent files for test_istelar_report_server
Registering test_istelar_report_server component
Invoking opmn reload...Done
Command succeeded.
[oracle@iStelar bin]$

[oracle@iStelar bin]$ ./opmnctl status

Processes in Instance: asinst_1
---------------------------------+--------------------+---------+---------
ias-component                    | process-type       |     pid | status
---------------------------------+--------------------+---------+---------
test_istelar_report_server       | ReportsServerComp~ |   23018 | Alive
emagent_asinst_1                 | EMAGENT            |     N/A | Down
forms                            | FormsRuntime       |   16571 | Alive
forms                            | FormsRuntime       |   15046 | Alive
forms                            | FormsRuntime       |   19242 | Alive
forms                            | FormsRuntime       |    9205 | Alive
ohs1                             | OHS                |     N/A | Down

[oracle@iStelar bin]$

Wednesday 11 November 2015

BEA-141281 unable to get file lock, will retry . in Weblogic

Error: 



Solution:

Lock file generated in tmp location

cd $MW_HOME/user_projects/domains//servers//tmp


[oracle@iStelar WLS_REPORTS]$ cd tmp/
[oracle@iStelar tmp]$ ll
total 16
drwxr-x---.  3 oracle oinstall 4096 Apr 15  2015 reports
-rw-r-----.  1 oracle oinstall  530 Nov  9 12:20 WebServiceUtils.ser
drwxr-----. 10 oracle oinstall 4096 Apr 15  2015 _WL_internal
-rw-r-----   1 oracle oinstall    0 Nov 12 12:28 WLS_REPORTS.lok
drwxr-----. 22 oracle oinstall 4096 Apr 15  2015 _WL_user
[oracle@iStelar tmp]$ pwd
/u01/oracle/middleware/user_projects/domains/ClassicDomain/servers/WLS_REPORTS/tmp






[oracle@iStelar tmp]$ ll
total 16
drwxr-x---.  3 oracle oinstall 4096 Apr 15  2015 reports
-rw-r-----.  1 oracle oinstall  530 Nov  9 12:20 WebServiceUtils.ser
drwxr-----. 10 oracle oinstall 4096 Apr 15  2015 _WL_internal
-rw-r-----   1 oracle oinstall    0 Nov 12 12:28 WLS_REPORTS.lok
drwxr-----. 22 oracle oinstall 4096 Apr 15  2015 _WL_user
[oracle@iStelar tmp]$
rm -rf *.lok

[oracle@iStelar tmp]$ /u01/oracle/middleware/user_projects/domains/ClassicDomain/bin/startManagedWebLogic.sh WLS_REPORTS

Do the same process for (WLS_FORMS, AdminServer and WLS_REPORTS)



Monday 19 October 2015

Configuring the Java Memory Parameters on Application Servers/ Weblogic Server

WebLogic 10.3.x on Windows

Edit the setDomainEnv.cmd file in the WebLogic domain bin folder. Make the following updates:

1. Search for WLS_MEM_ARGS_64BIT.  You should find something like this:
set WLS_MEM_ARGS_64BIT = -Xms256m -Xmx512m
Replace both occurrences with this:
set WLS_MEM_ARGS_64BIT = -Xms1024m -Xmx1024m

2. Search for WLS_MEM_ARGS_32BIT.  You should find something like this:
set WLS_MEM_ARGS_32BIT = -Xms256m -Xmx512m
Replace both occurrences with this:
set WLS_MEM_ARGS_32BIT = -Xms1024m -Xmx1024m

3. Search for MEM_PERM_SIZE_64BIT.  You should find something like this:
set MEM_PERM_SIZE_64BIT = -XX:PermSize=128m
Replace all occurrences with this:
set MEM_PERM_SIZE_64BIT = -XX:PermSize=256m

4. Search for MEM_PERM_SIZE_32BIT.  You should find something like this:
set MEM_PERM_SIZE_32BIT = -XX:PermSize=48m
Replace all occurrences with this:
set MEM_PERM_SIZE_32BIT = -XX:PermSize=256m

5. Search for MEM__MAX_PERM_SIZE_64BIT.  You should find something like this:
set MEM_MAX_PERM_SIZE_64BIT = -XX:PermSize=128m
Replace all occurrences with this:
set MEM_MAX_PERM_SIZE_64BIT = -XX:PermSize=256m

6. Search for MEM_MAX_PERM_SIZE_32BIT.  You should find something like this:
set MEM_MAX_PERM_SIZE_32BIT = -XX:PermSize=128m
Replace all occurrences with this:
set MEM_MAX_PERM_SIZE_32BIT = -XX:PermSize=256m



WebLogic 10.3.x on Linux

Edit the setDomainEnv.sh(/u01/oracle/middleware/user_projects/domains/ClassicDomain/bin) file in the WebLogic domain bin folder
.
Make the following updates:

1. Search for WLS_MEM_ARGS_64BIT. You should find something like this:
WLS_MEM_ARGS_64BIT = "-Xms256m -Xmx512m"
Replace both occurrences with this:
WLS_MEM_ARGS_64BIT = "-Xms1024m -Xmx1024m"

2. Search for WLS_MEM_ARGS_32BIT. You should find something like this:
WLS_MEM_ARGS_32BIT = "-Xms256m -Xmx512m"
Replace both occurrences with this:
WLS_MEM_ARGS_32BIT = "-Xms1024m -Xmx1024m"

3. Search for MEM_PERM_SIZE_64BIT. You should find something like this:
MEM_PERM_SIZE_64BIT = "-XX:PermSize=128m"
Replace all occurrences with this:
MEM_PERM_SIZE_64BIT = "-XX:PermSize=256m"

4. Search for MEM_PERM_SIZE_32BIT. You should find something like this:
MEM_PERM_SIZE_32BIT = "-XX:PermSize=48m"
Replace all occurrences with this:
MEM_PERM_SIZE_32BIT = "-XX:PermSize=256m"

5. Search for MEM__MAX_PERM_SIZE_64BIT. You should find something like this:
MEM_MAX_PERM_SIZE_64BIT = "-XX:PermSize=128m"
Replace all occurrences with this:
MEM_MAX_PERM_SIZE_64BIT = "-XX:PermSize=256m"

6. Search for MEM_MAX_PERM_SIZE_32BIT. You should find something like this:
MEM_MAX_PERM_SIZE_32BIT = "-XX:PermSize=128m"
Replace all occurrences with this:
MEM_MAX_PERM_SIZE_32BIT = "-XX:PermSize=256m"


Ref:  http://support.sas.com/documentation/cdl/en/citmblcg/64709/HTML/default/viewer.htm#n1hplivnigb4ptn1nbn5kixqja3m.htm