Tuesday, September 21, 2010

Recuperar a senha do usuário weblogic

1. Pare seu servidor weblogic usando os comandos abaixo:
$ cd MW_HOME/user_projects/domains/seu_dominio/bin
$ ./stopWebLogic.sh

2. Execute o script setDomainEnv.sh:
$ cd MW_HOME/user_projects/domains/seu_dominio/bin
$ . ./setDomainEnv.sh

3. Vá até o diretorio "security" para mudarmos a senha. Execute os comandos:
$ cd MW_HOME/user_projects/domains/seu_dominio/security
$ java weblogic.security.utils.AdminAccount adminuser1 welcome1 .
 

Obs1: Não esqueça ponto no final "."

4. Delete o arquivo abaixo no diretorio "ldap":
$ cd MW_HOME/user_projects/domains/seu_dominio/servers/AdminServer/data/ldap
$ rm DefaultAuthenticatormyrealmInit.initialized

5. Inicie o servidor WLS usando o usuario "adminuser1". Remova o boot.properties antes.
$ cd
MW_HOME/user_projects/domains/seu_dominio/bin
$ ./startWebLogic.sh
Enter username to boot WebLogic server: adminuser1
Enter password to boot WebLogic server: welcome1

6. Logue  no /console com o usuário - "adminuser1" (e não "weblogic")

7. Em 'Security Realms', voce poder ver dois usuários administrativos 'adminuser1' and 'weblogic', então é so alterar a senha do usuário 'weblogic'.

Tuesday, June 29, 2010

SOA Suite Operational metrics not displaying in OEM Console

  Problem: 'Average time response' displays as zero. See image below.






Image: Soa suite error

Solution:  Open the "setDomainEnv.sh" from your domain "bin" folder and search for the "PRE_CLASSPATH" string, and put "FMW_HOME\wls1031\Oracle_SOA1\modules\oracle.jps_11.1.1\jps-wls.jar" as first jar there.


Special Thanks to my work colleague Rui Queiroz!

Sunday, May 2, 2010

Iron Man 2 and Oracle Application Grid

Just saw Iron Man 2 movie and for my surprise Stark Network was using Oracle Application Grid. Earlier in this same day I was invited to participate in Oracle Application Grid Beta Certification (1Z0-523), in my studies I watched CERN Video called "The Grid". Later that day when I saw Iron Man 2 movie, I noticed in Stark Expo that the globe in the center of the city with some wires was similar to the globe in CERN Video. See image 'the grid' below and the watch the movie...

                                                                          [the grid]
                                                                

More links Iron Man 2 & Oracle:
Iron Man 2 - Oracle Marketing Campaign Commercial
Oracle & Marvel
Iron Man 2 & Oracle Software/Hardware Complete
Oracle Application Grid
Oracle Application Grid Certification (1Z0-523)

Friday, February 19, 2010

When configuring UDDI properties in SOA Suite Server leave user/pass empty


For those who read the Edwin blog, but don’t read the comments.
I read the Edwin Biemond blog post  Using Oracle Service Registry in Soa Suite 11g and followed all the steps described there to configure SOA Suite 11g and OSR. I followed the step below (described in biemond blog)
When I tested the service, I got in soa-server console an authorization error saying that admin doesn’t have the permissions to query UDDI. Reading the comments in Edwin Blog I found out that I need to leave the user and password field empty. That’s work and I got no more errors.
**Tip: When configuring UDDI Registry Properties leave “user/password” empty

Friday, January 8, 2010

Encriptar usuario/senha Weblogic boot.properties

Vá para o diretorio bin do seu dominio weblogic:

1)Execute -> setDomainEnv.cmd
2)Execute -> java weblogic.security.Encrypt meuUsuario ou minhaSenha

Depois só copiar e colar no arquivo boot.properties que normalmente fica na raiz de seu dominio ou no caso de uma dominio SOA do SOA SUITE 11g pasta %ORACLE_DOMAIN%\servers\soa_server1\security

Exemplo:
# Boot.properties
username={AES}rha3BdhD6k126aEyU2lztNU0OnoVWhTkG/Rt3v53ios=
password={AES}L6KbKtUOUoko6gWPO110JvCq9H+Y3I6BDsy9Ox0p9Ek=

Friday, December 11, 2009

Tips: Installing WebLogic in Production mode

I got some errors when trying to start my brand new weblogic domain in production mode, so I checked oracle documentation to get some guidance. Without success, I searched oracle otn forum when finally I got the fix for my problem. Below are some steps you need to follow before trying to start your domain and after domain creation.

1) Create RDMS Tables: Run the script in your WLS_SERVER_HOME/server/lib/rdbms_security_store_oracle.sql , if you are using other database than oracle, choose the script appropriate to your db.
details: http://download.oracle.com/docs/cd/E12840_01/wls/docs103/secmanage/rdbms.html#wp1105241

2) When using Oracle XE database, you need to run the following statements below:
ALTER SYSTEM SET PROCESSES=200 SCOPE=SPFILE;
ALTER SYSTEM SET SHARED_SERVERS=10 SCOPE=SPFILE;
ALTER SYSTEM SET SESSIONS=150 SCOPE=SPFILE;
*change the number of shared servers according to the number of wls nodes you have. if you have admin and one node than you should set it to at least 6. The count should be 3 units per node.

3) Start AdminServer: go to DOMAIN_HOME/bin -> startWebLogic.cmd
4) Start Node 1: startManagedWebLogic.cmd "nodeName" "AdminServerAddress" -> e.g.: startManagedWebLogic.cmd "mng1" "http://localhost:8001"

That's all! Your domain should start.

Monday, June 1, 2009

SOA: Canonical Data Model - Introduction - Part 1

In mathematics the word canonical refers to concepts that have a kind of uniqueness or naturalness. Maybe that explains the use of this word to designed objects that represent unique business entities. In EAI (Enterprise Application Integration) a canonical model is used to avoid high numbers of message translators between systems.

In the figure below we have systems talking directly to each other, as you can see the arrows indicate a request or a response, in each request the requestor needs to compose the request message to a format that the target system accepts as is input, in other words a transformation is required. In the response phase the same is true. When a system changes his service contract all systems that call this service needs to be changed to accommodate the new changes to the service contract.

[Figure 1]


Note in the next picture [Figure 2] the ESB mediating all communications between the systems. But using an ESB doesn’t mean that you must use a Canonical Data Model, still you can have multiple services contracts using the same elements as input or output. Let’s imagine that for all mobile phones we now have a new attribute, then we need to go throw all service contracts that aggregates information about mobiles and we need to refactor these service contracts to include this new attribute.

If instead we use a Canonical Data Model, we just need to include in the canonical object that represents the mobile and include this new attribute. Therefore all service contracts that use this canonical object will now contain our new attribute.


[Figure 2]


Many SOA projects identified the need to use a canonical model; in the internet you can find a lot of articles telling you the reasons of why you should use a canonical model, but very few will tell you exactly how you can do this. Using a CDM is not easy task and there is no best or unique way of doing it. There is also an initiative from Open Applications Group to define canonical data models for some business verticals, like Financial Services, Automotive services, and so on. See more on this link http://xml.gov/documents/completed/oagi/oagis.htm .

In my next post I’ll describe the steps to identify and implement a Canonical Data Model.