Tuesday, August 27, 2013

Wireshark Packet Data Decoding Online Tool

Wireshark Packet Data Decoding Online Tool:

Copy the hex value from wireshark

http://sadjad.me/phd/

Example: 

Copy the hex dump from wireshark log and paste it in the following url and you can see :

Under data you can see the decoded data:


Monday, August 26, 2013

Alternative to Wireshark to capture tcp network communication in Linux

TCP Dump:

Syntax for capturing network in linux:

/usr/sbin/tcpdump -i -s0 -w
Example:

/usr/sbin/tcpdump -i eth0 -s 65535 -w /tmp/outputfile

How to Read Output File: 

output file is generated in binary form. It can be copied to window/mac and can be opened using wireshark. 

or if you want to see output directly on shell then use following commands as shown in below link: 


Thanks !!!

Friday, August 23, 2013

OAM IAMSuiteAgent in simple mode

ERROR: 


[2013-08-23T16:38:11.689-04:00] [oam_server1] [ERROR] [] [] [tid: PoolWatcher] [userId: ] [ecid: 0000K2gkykwFw000jzwkno1I5vxr000000,1:22527] Error in receiving hashed server challenge
[2013-08-23T16:38:58.264-04:00] [oam_server1] [ERROR] [OAM-04036] [oracle.oam.proxy.oam] [tid: NioProcessor-1] [userId: ] [ecid: 11d1def534ea1be0:1efeb187:140acc3ec45:-8000-0000000000000010,1:22526] [APP: oam_server#11.1.2.0.0] Channel security mode is different as specified in configuration Channel unsecure. Details: Channel Mode: open Minimum Server Mode: simple Agent Id: IAMSuiteAgent 
[2013-08-23T16:39:11.689-04:00] [oam_server1] [ERROR] [OAM-04036] [oracle.oam.proxy.oam] [tid: NioProcessor-1] [userId: ] [ecid: 11d1def534ea1be0:1efeb187:140acc3ec45:-8000-0000000000000010,1:22526] [APP: oam_server#11.1.2.0.0] Channel security mode is different as specified in configuration Channel unsecure. Details: Channel Mode: open Minimum Server Mode: simple Agent Id: IAMSuiteAgent 



Solution: 

IAMSuiteAgent cannot be communicated through simple mode. No Never change IAMSuiteAgent from Open mode. 

If IAMSuiteAgent is changed to any other mode then above error is going to occur. In that case change OAM server instance mode and then change IAMSuiteAgent mode to open and restart servers . 


Oracle Documentation: 

Oracle Access Manager Console, IAMSuiteAgent Registration
The IAMSuiteAgent registration page provides details about the agent, like all other OAM agent registration pages.
  • Security Mode: Open is the only security mode available for the IAMSuiteAgent. This cannot be changed.
  • Preferred Host: IAMSuiteAgent is the pre-configured host required by this agent
Note:
The Access Client Password here must match the Agent Password in the WebLogic Administration Console. If you changed the Agent Password, you must also change the Access Client Password.
Figure 9-2 shows the IAMSuiteAgent page. Notice the User Defined Parameter, which informs behavior to fall back to the container policy in the WebLogic Server and provides a redirect URL for logout.


Monday, August 12, 2013

Siteminder Directory User Search Error In WAMUI Console

Following is the scenario of Error:

Scenario 1:

  • When you click on View contents of directory in Infrastructure, it shows users but It shows class value as ? or it won't display any thing for class value. 
Scenario 2: 
  • When searching user under Administrator for changing password / Disabling /Enabling user users won't get displayed. 
Solution: 

When ever you are not able to find users/ object class for the user and provide required object for the user in User Directory then users will be shown up while searching. 

So for users some object classes are required to perform some operations / for some attributes. 

Thanks!!

Oracle Enterprise Manager Installation and Configuraiton (OEM) 12C

Download Link:

Download Oracle Enterprise Manager from the following link:

http://www.oracle.com/technetwork/oem/enterprise-manager/downloads/index.html

Latest version as of Today is :

Oracle Enterprise Manager Cloud Control 12c Release 3 (12.1.0.3) for Windows x86-64 (64-bit)

Run this on db for avoiding following errors:

ALTER SYSTEM SET processes=300 SCOPE=SPFILE;
ALTER SYSTEM SET session_cached_cursors=200 SCOPE=SPFILE;
ALTER SYSTEM SET sga_target=2G SCOPE=SPFILE;
ALTER SYSTEM SET shared_pool_size=600M SCOPE=SPFILE;
ALTER SYSTEM SET pga_aggregate_target=1G SCOPE=SPFILE;
ALTER SYSTEM SET job_queue_processes=20 SCOPE=SPFILE;
commit; 

and restart db. 

Errors: 


Check the processes instance parameter value The processes instance parameter needs to be set to at least 300.
Check the memory_target instance parameter value. Oracle recommends setting either memory_target (AMM) or sga_target (ASMM) to manage the EM repository instance memory.
Check the session_cached_cursors instance parameter value. The session_cached_cursors instance parameter should be set to any value between 200 and 500, inclusive, will be accepted.
Check the shared_pool_size instance parameter value. The shared_pool_size instance parameter should be set to at least 300000000 bytes or roughly one third of the sga_target size.


Installation Steps: 






                            





To avoid following errors run the sql scripts provided above.













Thanks!!!

ERROR: Agent Configuration Failed SEVERE:emctl secure agent command has failed with status=1

Error: 

This error occurs during OEM 12C Agent installation

ERROR: Agent Configuration Failed SEVERE:emctl secure agent command has failed with status=1

SEVERE: oracle.sysman.top.agent:Agent configuration has failed
or
ERROR: Agent Configuration Failed SEVERE: Agent port passed by user is busy and cannot proceed with the configuration. Pass a free port and retry the configuration.


Solution: 


If you get this error verify Agent password and port 3872 from OEM to Agent. 

Sunday, August 11, 2013

Error While dropping OEM Schema

Error: 

For Dropping OEM Schema in Windows:

C:\Users\Chinni>C:/app1/Chinni/product/11.2.0/dbhome_1/BIN/emca -deconfig dbcont
rol db -repos drop -SYS_PWD Password123 -SYSMAN_PWD Password123

STARTED EMCA at Aug 11, 2013 10:48:48 PM
EM Configuration Assistant, Version 11.2.0.0.2 Production
Copyright (c) 2003, 2005, Oracle.  All rights reserved.

Enter the following information:
Database SID: MIGDB
Listener port number: 1521

Do you wish to continue? [yes(Y)/no(N)]: Y
Aug 11, 2013 10:49:08 PM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at C:\app1\Chinni\cfgtoollogs\emca\MIGDB\em
ca_2013_08_11_22_48_48.log.
Aug 11, 2013 10:49:09 PM oracle.sysman.emcp.util.DBControlUtil stopOMS
INFO: Stopping Database Control (this may take a while) ...
Aug 11, 2013 10:49:09 PM oracle.sysman.emcp.util.PlatformInterface executeComman
d
WARNING: Error executing CMD /C C:\app1\Chinni\product\11.2.0\dbhome_1\bin\nmesr
vops.exe delete OracleDBConsoleMIGDB
Aug 11, 2013 10:49:09 PM oracle.sysman.emcp.EMConfig perform
SEVERE: Can't find file C:\app1\Chinni\product\11.2.0\dbhome_1\Chinni-PC_MIGDB\s
ysman\config\emoms.properties
Refer to the log file at C:\app1\Chinni\cfgtoollogs\emca\MIGDB\emca_2013_08_11_2
2_48_48.log for more details.
Could not complete the configuration. Refer to the log file at C:\app1\Chinni\cf
gtoollogs\emca\MIGDB\emca_2013_08_11_22_48_48.log for more details.

Solution: 

This error occurs because of permission issues on database.


  • Try running command prompt as Administrator.


  •  If it is linux provide sufficient permissions for user.



With out error:
C:\Windows\system32>C:/app1/Chinni/product/11.2.0/dbhome_1/BIN/emca -deconfig db
control db -repos drop -SYS_PWD Password123 -SYSMAN_PWD Password123

STARTED EMCA at Aug 11, 2013 10:51:24 PM
EM Configuration Assistant, Version 11.2.0.0.2 Production
Copyright (c) 2003, 2005, Oracle.  All rights reserved.

Enter the following information:
Database SID: MIGDB
Listener port number: 1521

Do you wish to continue? [yes(Y)/no(N)]: Y
Aug 11, 2013 10:51:46 PM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at C:\app1\Chinni\cfgtoollogs\emca\MIGDB\em
ca_2013_08_11_22_51_24.log.
Aug 11, 2013 10:51:46 PM oracle.sysman.emcp.util.DBControlUtil stopOMS
INFO: Stopping Database Control (this may take a while) ...
Aug 11, 2013 10:51:49 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Dropping the EM repository (this may take a while) ...
Enterprise Manager configuration completed successfully
FINISHED EMCA at Aug 11, 2013 11:49:57 PM

Thanks



Sunday, August 4, 2013

Ajax Error in OAAM 10g webservices.

Following Exception occur if you click on any webservice on OAAM 10g: 

Ajax Error

Exception - java.lang.LinkageError: loader constraint violation: when resolving interface method "javax.wsdl.Definition.getBinding(Ljavax/xml/namespace/QName;)Ljavax/wsdl/Binding;" the class loader (instance of weblogic/utils/classloaders/ChangeAwareClassLoader) of the current class, org/apache/axis/wsdl/fromJava/Emitter, and the class loader (instance of sun/misc/Launcher$AppClassLoader) for resolved class, javax/wsdl/Definition, have different Class objects for the type javax/xml/namespace/QName used in the signature

Solution: 

This error occur if you try to deploy OARM 10g war file on wrong versions of weblogic and java. 

Comparable weblogic version is 10.3. 

Internally error occured due to Ajax library files. 

Thanks !!

Thursday, August 1, 2013

Export Display to windows from Linux using Xserver in Secured Network


Steps for exporting display to windows machine from linux server:

1) Make sure that you have static IP, which can be obtained using Ethernet instead of wireless.
2) Open Firewall on ports 22, 6000, 113 & Ping
3) Telnet to windows machine from server
4) Change the /etc/hosts.allow file in servers (local firewall) and add ip address of windows machine ip.
5) Use Xming.exe :0 -clipboard -multiwindow –ac to allow display from Linux machines otherwise it throws
X11 connection rejected because of wrong authentication.
Error: Can't open display: localhost:10.0

Thanks !!!

Other Posts