Monday, September 2, 2013

Cloud Computing: Difference between Amazon EC2 and S3

Amazon has different cloud functionalists which work together: 
  • Amazon EC2
  • Amazon S3
  • Amazon RDS
  • Amason cloudWatch
Now we are going to see differences between EC2 and S3. 
  • Both the products are completely different, EC2 is webservice which mainly used for controlling computing capabilities/resources of Amason Cloud. S3 is mainly used for Storage. 
Amazon EC2: (Elastic Compute Cloud)

  • EC2 is designed to make web scaling easy in cloud. 
  • Complete control on computing resources 
  • User can pay based on the Resource usage
  • User has flexibility to change Resource infra based on requirement 
  • EC2 is jointly used with S3 for storing data
  • Billing is hourly and billing cycle won't run if instance is in stop state
Amazon S3: (Simple Storage Service)
  • S3 is mainly for Storage. 
  • You get free data during sign up, but you need to enter your credit card details(Amazon charges if you cross free data)
  • Works jointly with EC2
  • Similar use as other cloud storage (like google drive, drop box) with advanced integration with other amazon cloud projects
Thanks !!!



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 !!!

Friday, July 19, 2013

Application Domain Session Time outs in OAM 11g R2 and OAM 11g R2 PS1

Domain Session timeouts are removed in 11g R2 PS1 because it was bug in 11g R2.  They have provided that feature in 11g R2 but it was not functional so they have removed that functionality in 11g R2 PS1.

These Settings are currently not supported and thus are disabled.





Thanks!!! 

Thursday, July 11, 2013

Jdeveloper 12c (12.1.2.0.0) Download and Installation

Oracle Jdeveloper got so many new features.

Download Link:
http://www.oracle.com/technetwork/developer-tools/jdev/downloads/index.html

Features Installed in Jdeveloper 12c:

  • Core Application Server 12.1.2.0.0
  • Coherence Product Files 12.1.2.0.0
  • Coherence JavaDoc 12.1.2.0.0
  • Web 2.0 HTTP Pub-Sub Server 12.1.2.0.0
  • WebLogic SCA 12.1.2.0.0
  • WebLogic Client Jars 12.1.2.0.0
  • Third Party Maven Apache 3.0.4.0.0
  • Oracle WebLogic Communication Services 12.1.2.0.0
  • Administration Console 12.1.2.0.0
  • Administration Console Aditional Language Help Files 12.1.2.0.0
  • Thirdparty JDBC Drivers 12.1.2.0.0
  • WebLogic Evaluation Database 12.1.2.0.0
  • Server Examples 12.1.2.0.0
  • Coherence Examples 12.1.2.0.0
  • WLS for FMW 12.1.2.0.0
  • Core Jdeveloper 12.1.2.0.0
  • OPatch 13.1.0.0.0


  • Installation Steps: 

    Launch it using following command

    java -jar

    if you receive No Such file error try launching as Adminstrator.

    Steps:











    Social Links for Jdeveloper:


    Thanks !!!

    Wednesday, June 26, 2013

    Error CFGFWK-60850 and CFGFWK-60853 and Solution

    Following errors may occur while creating domain for SOA.

    SQL Test=select 1 from schema_version_registry where owner=(select user from dual) and mr_type='SOAINFRA' and version like '11.1.1.7.0';

    CFGFWK-60850: Test Failed!

    CFGFWK-60853:A connection was established to database but no rows were returned from the test SQL Statement. 

    SQL Test=select 1 from schema_version_registry where owner=(select user from dual) and mr_type='SOASDPM' and version like '11.1.1.7.0';

    CFGFWK-60850: Test Failed!

    CFGFWK-60853:A connection was established to database but no rows were returned from the test SQL Statement. 

    SQL Test=select 1 from schema_version_registry where owner=(select user from dual) and mr_type='MDS' and version like '11.1.1.7.0';

    CFGFWK-60850: Test Failed!

    CFGFWK-60853:A connection was established to database but no rows were returned from the test SQL Statement. 



    Solution: 

    First check SOA Schema version in Database by connecting to Database using sys account using the query:

    select owner, comp_name, version, status from schema_version_registry order by 1, 2, 3;

    Refer: http://www.iamidm.com/2013/06/rcu-schema-versions.html

    check if you have schema version '11.1.1.7.0' or not.

    If you have different version then you need to use another RCU, for 11.1.1.7.0 you need to use RCU version 11.1.1.7 and with OIM 11g R2 PS1 you get SOA version 11.1.1.6 so SOA 11.1.1.7 is not comparable with OIM 11g R2 PS1.



    Thanks !!!

    RCU Schema Versions

    This post is to check version of SOA


    • Login to Database as sys as sysdba


    • Check RCU Schema Versions using query: 


    select owner, comp_name, version, status from schema_version_registry order by 1, 2, 3;

    Output: 

    In this you can verify all the schema that got created and also version.

    Inline image 1


    Monday, June 24, 2013

    Error in Invoking target install of make file during Installation

    Error:

    Error in Invoking target 'install' of make file /sqlplus/lib/ins_sqlplus.mk 

    see log for details

    Solution: 

    This error occurs due to missing libraries mainly in Linux (OEL 6.4 or less). To over come this error install rpm  glibc-devel-2.3.4-2.19.i386.rpm using the command as root.

    rpm -i glibc-devel-2.3.4-2.19.i386.rpm --nodeps –force

    Once RPM got installed you need to verify following file exists or not: 

    crt1.o under /usr/lib if it exists then stop current installation and remove temporary files and current files created during this installation and start installation again. 

    Thanks !!!

    Change OraInventory Location during Oracle Products Installation

    In few cases we need to change orainventory location for that we need to do following steps:

    Method 1: 
    • First Check the location: 

    [root@ ~]#  cat /etc/oraInst.loc

    inventory_loc=/opt/oracle/oraInventory
    inst_group=iamidm

    • Change location and group. 

    [root@ ~]# vi oraInst.loc

    inventory_loc=/idmaccess/oraInventory
    inst_group=iamidm_new


    • Copy folder orainventory from old location to new location and reinstall. 
    Method 2: 

    Directly remove file /etc/oraInst.loc and oraInventory folder then it will ask again to re-enter orainventory location. 

    Thanks !!!

    Saturday, June 15, 2013

    JDK 8 Download and installation

    JDK 8 Installation on windows
    Download jdk from:
    Installation Steps:
    Click Next





    Check java version and other details from Java Control Panel

    Check java Version:




    Java Runtime Environment Settings: 


    Thanks !!!

    Friday, June 14, 2013

    slamd 2.0.1 load generation engine server Installation and Configuration

    SLAMD is an open-source tool which has been widely used for benckmarking and performance analysis for directory servers. By default the installable comes with Tomcat. you can deploy the war file if you have an existing web server in your environment.

    Below steps will explain on how to setup the default version which comes with Tomcat.

    Installation and Configuration steps:

    1. Download the installable from http://dl.thezonemanager.com/slamd/ or http://fossies.org/linux/privat/slamd-2.0.1.zip/  it is just a zip distribution.

    2. Unzip the file and Navigate to C:\Users\veeru\Desktop\slamd\tools

    3. Open "set-java-home.bat" and configure JAVA_HOME here. Remember that this tool expects to define    the JAVA_HOME up till the java.exe. For example if your java.exe is located at "C:\Oracle\jdk1.6.0_43\bin" , then edit the file "set-java-home.bat"  as shown below



    4. Once you have JAVA_HOME setup, Navigate to bin folder and launch "startup.bat"
         
        a pop-up command line will be launched as shown below. 


    5. Open a browser and hit http://localhost:8080/slamd/ you will see a screen like this


    6. The first time the SLAMD administrative interface is accessed, it will be necessary to initialize the database used to store the configuration and job data. This may be accomplished by clicking the "Create Database" button as may be seen below:



    7. You will see a confirmation like this.

    8. Tool is now setup and ready to use.

    We will look at configuring schedule jobs and monitoring in the upcoming posts.

    Thanks,
    Veeru Yads


    Thursday, June 6, 2013

    OAG 11.1.2.1.0 Policy Studio Basics

    In this post, we will explore some options available in OAG Policy Studio like How to connect to Node Manager, Connect to an OAG Instance etc.

    Steps:
    • Launch Policy Studio
    • Ensure that Node Manager is running. Click on "Connect to Server"


    • Click on "Connect to Server" and provide the appropriate host, port information of your Node Manager


    • Not sure why it asked for a passphrase, No need to give anything here. Just click OK

                                   

    • Ensure that the instance you want to connect is up and running.



    • Observe that the instance "APIGateway1" which was created during installation has been listed here. You can create new groups and instances through Policy Studio
    • Double click on the instance"APIGateway1" to connect and open the session 



    • Connection has been established to the Instance. now you can perform all the operations.



    Thanks
    Veeru Yads

    Other Posts