Sunday, September 30, 2012

tracert tutorial



http://en.wikipedia.org/wiki/Traceroute

Wikipedia pages to read if you want to become a network expert

http://en.wikipedia.org/wiki/Internet_Control_Message_Protocol

http://en.wikipedia.org/wiki/Nmap

http://en.wikipedia.org/wiki/Media_Access_Control

http://en.wikipedia.org/wiki/Tracert

http://en.wikipedia.org/wiki/Ping_%28networking_utility%29

http://en.wikipedia.org/wiki/Ifconfig

http://en.wikipedia.org/wiki/Nslookup

http://en.wikipedia.org/wiki/Netstat

http://en.wikipedia.org/wiki/Lsof

http://en.wikipedia.org/wiki/Subnet_mask

http://en.wikipedia.org/wiki/Default_gateway

http://en.wikipedia.org/wiki/Routing_table

http://en.wikipedia.org/wiki/DHCP


interesting Linux Networking Manual http://www.faqs.org/docs/linux_network/index.html
Basic intro to several commands


ntop tutorial

http://en.wikipedia.org/wiki/Ntop

tcpdump tutorial


tcpdump -D
tcpdump -i eth0 v
tcpdump -i eth0 port http (to display only http traffic)
tcpdump -n (to display numeric IPs)
tcpdump -w session filename.log (captures data to a file)
tcpdump -r session filename.log (displays the content of the captured session)
This is a very concise excellent quick guide of the main commands:
http://openmaniak.com/tcpdump.php
To use wireshark to view packets captured with tcpdump:
tcpdump -i -s 65535 -w

Tcpdum for Windows available here


Friday, September 28, 2012

Wireshark tutorial

and also this one is very informative

Quick WLST script to create WLS domain using a template

readTemplate('/opt/oracle/fmw11_1_1_5/wlserver_10.3/common/templates/domains/wls.jar')
cd('Servers/AdminServer')
set('ListenAddress',''myhostname.com'')
set('ListenPort', 7001)
cd('/')
cd('Security/base_domain/User/weblogic')
cmo.setPassword('weblogic1')
setOption('OverwriteDomain', 'true')
writeDomain('/opt/oracle/fmw11_1_1_5/user_projects/domains/mydomain')
closeTemplate()
exit()





Thursday, September 27, 2012

WebLogic graceful shutdown waiting forever

thread A:

"[ACTIVE] ExecuteThread: '23' for queue: 'weblogic.kernel.Default (self-tuning)'" waiting for lock java.lang.Object@2eed24e4 WAITING java.lang.Object.wait(Native Method) weblogic.t3.srvr.GracefulShutdownRequest.waitForCompletion(GracefulShutdownRequest.java:62) weblogic.t3.srvr.ServerRuntime.shutdown(ServerRuntime.java:315) weblogic.server.RemoteLifeCycleOperationsImpl.shutdown(RemoteLifeCycleOperationsImpl.java:51) weblogic.server.RemoteLifeCycleOperationsImpl_WLSkel.invoke(Unknown Source)

thread B:

"[ACTIVE] ExecuteThread: '18' for queue: 'weblogic.kernel.Default (self-tuning)'" waiting for lock weblogic.deploy.internal.targetserver.BasicDeployment$AdminModeCallback@53110ccd WAITING java.lang.Object.wait(Native Method) weblogic.deploy.internal.targetserver.BasicDeployment$AdminModeCallback.waitForCompletion(BasicDeployment.java:549) weblogic.deploy.internal.targetserver.BasicDeployment.gracefulProductionToAdmin(BasicDeployment.java:212) weblogic.deploy.internal.targetserver.BasicDeployment.productionToAdminFromServerLifecycle(BasicDeployment.java:431) weblogic.management.deploy.internal.DeploymentAdapter$1.gracefulProductionToAdmin(DeploymentAdapter.java:59) weblogic.management.deploy.internal.AppTransition$4.transitionApp(AppTransition.java:48) weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:240) weblogic.management.deploy.internal.ConfiguredDeployments.productionToAdmin(ConfiguredDeployments.java:182) weblogic.management.deploy.internal.DeploymentPostAdminServerService.stop(DeploymentPostAdminServerService.java:36) weblogic.t3.srvr.ServerServicesManager.stopInternal(ServerServicesManager.java:495) weblogic.t3.srvr.ServerServicesManager.stop(ServerServicesManager.java:309) weblogic.t3.srvr.T3Srvr.suspend(T3Srvr.java:1155) weblogic.t3.srvr.T3Srvr.shutdown(T3Srvr.java:1106) weblogic.t3.srvr.T3Srvr.gracefulShutdown(T3Srvr.java:1017) weblogic.t3.srvr.GracefulShutdownRequest.run(GracefulShutdownRequest.java:41) weblogic.work.ContextWrap.run(ContextWrap.java:41) weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528) weblogic.work.ExecuteThread.execute(ExecuteThread.java:209) weblogic.work.ExecuteThread.run(ExecuteThread.java:178)

We find out that

stopInternal(servicesAfterAdminState.toArray(), flag);

 cycles over all services.

 To observe which service is stuck we have to enable a debug flag:

private static final DebugCategory debugSLC = Debug.getCategory("weblogic.slc");
private static final DebugLogger debugSLCWLDF = DebugLogger.getDebugLogger("DebugServerLifeCycle");

This flag is under t3.srvr in weblogic server debug tab
(read this fascinating post on the topic)

If you enable the flags, and do the graceful shutdown, you will see stuff like:

BEA-000000 calling stop on weblogic.management.deploy.internal.DeploymentPostAdminServerService@7fead4cc


BEA-149059 Module jejb_transport.jar of application JEJB Transport Provider is transitioning from STATE_ACTIVE to STATE_ADMIN on server osbdv1ms1.

BEA-149060 Module jejb_transport.jar of application JEJB Transport Provider successfully transitioned from STATE_ACTIVE to STATE_ADMIN on server osbdv1ms1

In fact, the call to DeploymentPostAdminServerService.stop()  invokes a
ConfiguredDeployments.getConfigureDeploymentsHandler().productionToAdmin(true);

which again calls a transitionApps(AppTransition.GRACEFUL_PRODUCTION_TO_ADMIN)


You should also grep for "RunningToAdmin for app" (traced in BasicDeployment.productionToAdminFromServerLifecycle() )

so you should also enable the "DeploymentDebug" flag:
DebugDeploy DebugDeployment DebugDeploymentService DebugDeploymentServiceInternal DebugDeploymentServiceStatusUpdates DebugDeploymentServiceTransport DebugDeploymentServiceTransportHttp
having enabled these flags, you will see Sep 28, 2012 6:04:15 PM CEST Debug Deployment DmsThread-1 WLS Kernel 0000JcD_5_bE8Tk5ozx0iY1GPSV1000002 1348848255372 BEA-000000 Targets for app, DbAdapter
In practice, if you untarget the "JCA Transport Provider" the Server will shut down gracefully.

Coding Architects vs Non-Coding Architects

great reading! http://softarc.blogspot.com.es/2007/06/how-to-spot-dreaded-non-coding.html

Friday, September 21, 2012

Migratory birds over Geneva lake


one of the most breathtaking visions in my life. enjoy the extraordinary harmony of this miracle of life. camera is very shaky.... I am no Fellini or Pasolini...

Tuesday, September 18, 2012

Eclipse failed to create virtual machine

I have downloaded the Scala IDE based on Eclipse here http://typesafe.com/stack/scala_ide_download


When I run it by double clicking on "Eclipse.exe", I get "Eclipse failed to create virtual machine".

Just open eclipse.ini, and add these 2 lines at the top:
-vm
C:\Program Files\Java\jre6\bin\javaw.exe
(your mileage might vary)


Another good reason to shun Eclipse - I didn't need a new one, I already had thousands.


Monday, September 17, 2012

ORA-00932: inconsistent datatypes: expected NUMBER got INTERVAL DAY TO SECOND

It looks like you are trying to do maths (+, -) with TIMESTAMP.
TIMESTAMP doesn't like that. you should CAST the TIMESTAMP to DATE:

rather than
bla - blu (where bla and blu are TIMESTAMP)
do
CAST (bla as DATE) - CAST (blu as DATE)
and you will get a NUMBER (multiply it by 3600 * 24 and you will turn it into seconds)

BUT
you will lose the millisecond info

Here you have the definition of the TIMESTAMP

In alternative, you should rather EXTRACT each component of the DIFFERENCE (day, hours, minutes, seconds) and do the match with them:

as explained here

http://www.dbforums.com/oracle/1602071-difference-between-two-timestamps.html

CREATE OR REPLACE FUNCTION timestamp_diff
(
start_time_in TIMESTAMP
, end_time_in TIMESTAMP
)
RETURN NUMBER
AS
l_days NUMBER;
l_hours NUMBER;
l_minutes NUMBER;
l_seconds NUMBER;
l_milliseconds NUMBER;
BEGIN
SELECT extract(DAY FROM end_time_in-start_time_in)
, extract(HOUR FROM end_time_in-start_time_in)
, extract(MINUTE FROM end_time_in-start_time_in)
, extract(SECOND FROM end_time_in-start_time_in)
INTO l_days, l_hours, l_minutes, l_seconds
FROM dual;

l_milliseconds := l_seconds*1000 + l_minutes*60*1000 + l_hours*60*60*1000 + l_days*24*60*60*1000;
RETURN l_milliseconds;

END;



Experimenting with Date/Timestamp conversions with Oracle PL/SQL

select CURRENT_TIMESTAMP from dual;

this returns 17-SEP-12 12.23.25.893927000 PM EUROPE/BERLIN
(with millisecond and TimeZone)

What is the difference between CURRENT_TIMESTAMP and SYSTIMESTAMP ?
select CURRENT_TIMESTAMP - SYSTIMESTAMP from dual;

0 0:0:0.000017

basically NONE.

____________


How to convert a String such as
value = '2012-09-11 04:11:41.606+02:00'
to a Timestamp:

cast(to_timestamp_tz(value , 'YYYY-MM-DD hh24:mi:ss,FF3TZH:TZM') as TIMESTAMP)

____________


you can do maths with TIMESTAMP:

select CURRENT_TIMESTAMP - cast(to_timestamp_tz('2012-09-11 04:11:41.606+02:00' , 'YYYY-MM-DD hh24:mi:ss,FF3TZH:TZM') as TIMESTAMP) from dual;

returns

6 9:8:17.379691

which is a TIME INTERVAL, not a number.
How to covert a TIME INTERVAL to a NUMBER?


______________________

select TO_NUMBER(CURRENT_TIMESTAMP) from dual;

doesn't work, you get ORA-01722: invalid number

____________


This function works pretty well to get the EPOCH ( it returns a decimal number representing the SECONDS, if you want the MILLISECONDS as in the Java getCurrentTimeMillis() you should multiply by 1000 and truncate)

create or replace
FUNCTION MY_EPOCH
(
time1 TIMESTAMP
)

RETURN number

AS
sec NUMBER;
firstofjan70 timestamp;

BEGIN

firstofjan70 := timestamp '1970-01-01 00:00:00 +00:00';

select
extract(day from (time1 - firstofjan70 ))*86400+
extract(hour from (time1 - firstofjan70))*3600+
extract(minute from (time1 - firstofjan70))*60+
extract(second from (time1 - firstofjan70))
into sec
from dual;

RETURN sec;




oracle.net.CONNECT_TIMEOUT

A Oracle Consultant suggested to set the property

oracle.net.CONNECT_TIMEOUT=10000
for every ConnectionPool

What is this?

http://docs.oracle.com/cd/E25178_01/core.1111/e10106/dbac.htm

__________________________________


Another useful property is:

http://docs.oracle.com/cd/B28359_01/rac.111/b28252/configwlm.htm

"Set TimeToLiveTimeout to m seconds
Set PropertyCheckInterval to n seconds

if the network call is blocked, then just setting the TimeToLive timeout alone won't work. In that case, an additional step is needed -- setting the JDBC driver connection properties as follows:

for the Thin driver: oracle.net.ns.SQLnetDef.TCP_CONNTIMEOUT_STR
for the OCI driver: sqlnet.outbound_connection_timeout
"

oracle.net.ns.SQLnetDef.TCP_CONNTIMEOUT_STR

There is a Oracle KB doc:
"How to Ensure that JDBC Queries are Always Timed Out [ID 559564.1]"

For more info on the TimeToLiveTimeout and PropertyCheckInterval :

http://docs.oracle.com/cd/B13789_01/java.101/b10979/conncache.htm#sthref460

_____________________________

set a timeout on Socket level for the jdbc thin driver:

oracle.net.READ_TIMEOUT (in ms)

in reality:

oracle.net.READ_TIMEOUT for jdbc versions < 10.1.0.5 oracle.jdbc.ReadTimeout for jdbc versions >=10.1.0.5

see http://docs.oracle.com/cd/E17904_01/web.1111/e13737/generic_oracle_rac.htm

"In some deployments of Oracle RAC, you may need to set parameters in addition to the out of the box configuration of a data source in an Oracle RAC configuration. The additional parameters are:

Set oracle.jdbc.ReadTimeout=300000 (300000 milliseconds) for each data source."

_____________________________


The Oracle Consultant says:
"I would set the read and connect timeouts to slightly longer than the stuck thread time setting.
This ensures you get stuck thread warnings but the thread is released soon after "


_________________


Related Oracle KB docs:

ORACLE.NET.READ_TIMEOUT Property Does Not Work On 11g JDBC Driver [ID 1341966.1]


WebLogic Server: Intermittent Stuck Threads Caused Due to the 11.1.x Oracle JDBC Thin Driver [ID 1083794.1] (this one seems to be pretty old)


How to Ensure that JDBC Queries are Always Timed Out [ID 559564.1], the suggest using

  • for the Thin driver:  oracle.net.ns.SQLnetDef.TCP_CONNTIMEOUT_STR
  • for the OCI driver:  sqlnet.outbound_connection_timeout






Sunday, September 16, 2012

Poll result: Women in IT are...



I can't agree more.... too few.... has it really got to be like that? Why so few women are in IT in Europe and US? In India they are a LOT more, up to 50%.... our current development team is composed almost entirely of women, and they are doing a very good job. The Administrators on the other hand are almost all men, and they are true slackers.

Saturday, September 15, 2012

Quick ways of doing code reviews and sanity checks in OSB

I have been asked to check that all log statements are done with "debug" level, as someone does it with "error" and then you end up with a lot of garbage in Production.

The stupid way is to click around.

The smart way is:

- export a sbconfig.jar with all the projects
- unzip the sbconfig.jar in a directory. You will notice that each Proxy is a XML file with .ProxyService extension
- open XMLSpy and open one of those .ProxyService xml file
- menu XML, Evaluate XPath
- enter //*:log[*:logLevel != 'debug' and *:expr/*:xqueryText != '$faultVar']
(normally we log with "error" level only the faultVar
- if you find NOTHING, then cool
- you can run the XPath on ALL files in a given folder (see "where" button in XMLSpy)

for more info: http://www.altova.com/xmlspy/xpath-analyzer.html


The way I ahve done it, use Everything Search to identify all .ProxyService files, copy them into a folder, drag and drop them in XmlSpy so that they are all open.

Select "Open Files" in the XPath Evaluation tab, and run the little "evaluate XPath" button.




How much space is taken by a Oracle DB table

select sum(bytes)/1024/1024/1024 from user_segments where segment_name = 'WLI_QS_REPORT_ATTRIBUTE' ;

Friday, September 14, 2012

Every sperm is sacred

This is just too funny, I have to reblog it



DAD:
There are Jews in the world.
There are Buddhists.
There are Hindus and Mormons, and then
There are those that follow Mohammed, but
I've never been one of them.

I'm a Roman Catholic,
And have been since before I was born,
And the one thing they say about Catholics is:
They'll take you as soon as you're warm.

You don't have to be a six-footer.
You don't have to have a great brain.
You don't have to have any clothes on. You're
A Catholic the moment Dad came,

Because

Every sperm is sacred.
Every sperm is great.
If a sperm is wasted,
God gets quite irate.

CHILDREN:
Every sperm is sacred.
Every sperm is great.
If a sperm is wasted,
God gets quite irate.

GIRL:
Let the heathen spill theirs
On the dusty ground.
God shall make them pay for
Each sperm that can't be found.

CHILDREN:
Every sperm is wanted.
Every sperm is good.
Every sperm is needed
In your neighbourhood.

MUM:
Hindu, Taoist, Mormon,
Spill theirs just anywhere,
But God loves those who treat their
Semen with more care.

MEN:
Every sperm is sacred.
Every sperm is great.
WOMEN:
If a sperm is wasted,...
CHILDREN:
...God get quite irate.

PRIEST:
Every sperm is sacred.
BRIDE and GROOM:
Every sperm is good.
NANNIES:
Every sperm is needed...
CARDINALS:
...In your neighbourhood!

CHILDREN:
Every sperm is useful.
Every sperm is fine.
FUNERAL CORTEGE:
God needs everybody's.
MOURNER #1:
Mine!
MOURNER #2:
And mine!
CORPSE:
And mine!

NUN:
Let the Pagan spill theirs
O'er mountain, hill, and plain.
HOLY STATUES:
God shall strike them down for
Each sperm that's spilt in vain.

EVERYONE:
Every sperm is sacred.
Every sperm is good.
Every sperm is needed
In your neighbourhood.

Every sperm is sacred.
Every sperm is great.
If a sperm is wasted,
God gets quite iraaaaaate!


thanks to
http://www.lyricsdepot.com/monty-python/every-sperm-is-sacred.html




Wednesday, September 12, 2012

Oracle DB monitor session. ORA-00942: table or view does not exist



apparently you need to have SYS

https://forums.oracle.com/forums/thread.jspa?threadID=714957

"What roles does your user have? (One way to find out is to do a "SELECT * FROM SESSION_ROLES;" in the SQL Worksheet or SQL*Plus.) The "Monitor Sessions" tool runs a query against the V$SESSION dynamic view and according to the Oracle 10g Database Reference document only user SYS or users with the SYSDBA role have access to the dynamic views.

I just tried using "Monitor Sessions" while connected as a user who has only the CONNECT and RESOURCE roles and got the ORA-00942 error. I connected as another user who has the DBA role and it ran without a problem."



So you want to become proficient in Scala, uh?

https://www.coursera.org/course/progfun

free course on "Functional Programming Principles in Scala" by
Martin Odersky

The first lecture will be available on Wednesday, September 19.



Sunday, September 9, 2012

com.oracle.osb.emsupport.api.ResourceConfiguration.getConfiguration

Once every 7 minutes we find this in the Admin log:

java.lang.IllegalArgumentException: null id
at com.bea.wli.sb.util.RouterElement.(RouterElement.java:214)
at com.bea.wli.sb.util.RouterElementFactory.traverseAction(RouterElementFactory.java:168)
at com.bea.wli.sb.util.RouterElementFactory.traverseFrontierActions(RouterElementFactory.java:201)
at com.bea.wli.sb.util.RouterElementFactory.traverseFrontierActions(RouterElementFactory.java:183)
at com.bea.wli.sb.util.RouterElementFactory.traverseAction(RouterElementFactory.java:166)
at com.bea.wli.sb.util.RouterElementFactory.traverseActionSequence(RouterElementFactory.java:88)
at com.bea.wli.sb.util.RouterElementFactory.traverseStage(RouterElementFactory.java:152)
at com.bea.wli.sb.util.RouterElementFactory.traversePipeline(RouterElementFactory.java:142)
at com.bea.wli.sb.util.RouterElementFactory.traversePipelineNode(RouterElementFactory.java:129)
at com.bea.wli.sb.util.RouterElementFactory.traversePipelineFlowType(RouterElementFactory.java:66)
at com.bea.wli.sb.util.RouterElementFactory.toRouterElement(RouterElementFactory.java:49)
at com.oracle.osb.emsupport.impl.ServiceHelper.getPipeline(ServiceHelper.java:228)
at com.oracle.osb.emsupport.impl.ServiceHelper.getProxyServiceConfiguration(ServiceHelper.java:109)
at com.oracle.osb.emsupport.impl.ServiceHelper.getConfiguration(ServiceHelper.java:73)
at com.oracle.osb.emsupport.api.ResourceConfiguration.getConfiguration(ResourceConfiguration.java:83)
at sun.reflect.GeneratedMethodAccessor783.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:93)
at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:27)
at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:208)
at com.sun.jmx.mbeanserver.PerInterface.getAttribute(PerInterface.java:65)
at com.sun.jmx.mbeanserver.MBeanSupport.getAttribute(MBeanSupport.java:216)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(DefaultMBeanServerInterceptor.java:666)
at com.sun.jmx.mbeanserver.JmxMBeanServer.getAttribute(JmxMBeanServer.java:638)
at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase$12.run(WLSMBeanServerInterceptorBase.java:326)
at java.security.AccessController.doPrivileged(Native Method)
at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.getAttribute(WLSMBeanServerInterceptorBase.java:324)
at weblogic.management.mbeanservers.internal.JMXContextInterceptor.getAttribute(JMXContextInterceptor.java:157)
at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase$12.run(WLSMBeanServerInterceptorBase.java:326)
at java.security.AccessController.doPrivileged(Native Method)
at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.getAttribute(WLSMBeanServerInterceptorBase.java:324)
at weblogic.management.mbeanservers.internal.SecurityInterceptor.getAttribute(SecurityInterceptor.java:299)
at weblogic.management.jmx.mbeanserver.WLSMBeanServer.getAttribute(WLSMBeanServer.java:279)
at weblogic.management.mbeanservers.internal.JMXConnectorSubjectForwarder$5$1.run(JMXConnectorSubjectForwarder.java:326)
at java.security.AccessController.doPrivileged(Native Method)
at weblogic.management.mbeanservers.internal.JMXConnectorSubjectForwarder$5.run(JMXConnectorSubjectForwarder.java:324)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.management.mbeanservers.internal.JMXConnectorSubjectForwarder.getAttribute(JMXConnectorSubjectForwarder.java:319)
at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1404)
at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:72)
at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1265)
at java.security.AccessController.doPrivileged(Native Method)
at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1367)
at javax.management.remote.rmi.RMIConnectionImpl.getAttribute(RMIConnectionImpl.java:600)
at javax.management.remote.rmi.RMIConnectionImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:667)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:522)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:518)
at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)



Who invokes this com.oracle.osb.emsupport.api.ResourceConfiguration.getConfiguration through JMX every 7 minutes?

And where is this action with a null ID?


The structure of the Proxy XML is:

xmlns:ser="http://www.bea.com/wli/sb/services"
xmlns:con="http://www.bea.com/wli/sb/pipeline/config"
xmlns:con7="http://www.bea.com/wli/sb/stages/transform/config"
xmlns:con6="http://www.bea.com/wli/sb/stages/publish/config"

ser:router 
   con:pipeline
      con:stage
         con:actions
             con7:assign




Still investigating.....



Friday, September 7, 2012

OSB, number of files open

We run an environment with Whole Server Migration.

An important point is to make sure that we have enough resources (file handles) on a machine to be able to run 2 Managed Server - in case we migrate one.

This is how you discover how many files are used by the user "soa":

/usr/sbin/lsof -u soa | wc -l

It turned out that a single server running the Admin and 4 Managed Servers required some 9000 files. An important load was represented by the MANY Datasources we need to deploy.

This command:
ulimit -a

will tell you the hard limit imposed by the Linux Kernel:

ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 132607
max locked memory (kbytes, -l) 32
max memory size (kbytes, -m) unlimited
open files (-n) 8192
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 10240
cpu time (seconds, -t) unlimited
max user processes (-u) 132607
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited


apparently the limit is flexible, even with a limit of 8192 we were able to open 9050 files...


Thursday, September 6, 2012

java.sql.SQLException: ORA-01653: unable to extend table BLA by 8 in tablespace BLU

This query works like a breeze to find out the FAT tables:

http://stackoverflow.com/questions/264914/how-do-i-calculate-tables-size-in-oracle


once you discover the FAT tables, run a
truncate table BLA;

you might have to disable FK constraints (remember to reenable again)



Tuesday, September 4, 2012

A protocol for meetings

A meeting must have objectives. All relevant information should be circulated in advance to all participants of the meeting.
In every meeting there should be a minute taker, minutes should be circulated after the meeting. The meeting is not over
until all attendees have expressed their opinions, and all the objectives have been reached. Otherwise, pending points should be rescheduled for another meeting.

A meeting should not be called to read an email to all attendees. Email should be sent in advance, then eventually ask people what they think.
These emails should be concise, and with precise topics. Complex stuff should not be treated in emails, they have invented voice conversations for that.

It’s the management responsibility to identify tasks – which should be as much as possible atomic –prioritize them, and assign them to the technical resources.
Technical people can help in this process, but “task management” is strictly the management responsibility.
It’s the duty of the technical resource to provide regular (once a day, your mileage might vary) progress report to management.
Management has always the right to review priorities and reassign tasks, but bearing in mind that in general this should be avoided.
Excessive task switching is a known factor of burnout and poor work quality.

All management stuff should be discussed in management meeting ,to which technical resources do not need to attend.

Meetings are meant for people to exchange information and reach agreement,
they should not be the monopoly of a single people who takes all the bandwidth and prevents communication amongst other attendees.
As a rule of thumb, in a meeting with 10 people, no more than 30% of the time should be allocated to a single attendee.
If a single person talks for more than 3 minutes in a row in a meeting, this is a communication antipattern.

Long lasting verbal communication should be avoided, and if really needed backed up by schemas, writing etc. Not all people have the same receptivity
to verbal communication, and visual communication is to be preferred over pure verbal conceptualization.

Monday, September 3, 2012

Book review: In praise of Barbarians, Matt Davies





Excellent coverage of the Republican-Democrats equivalence in US (the only difference being which corporations sponsor them), and of the disasters that US foreign policies provoke around the world.

The author uses a quite sophisticated English, it makes a good reading if you want to refine your knowledge of the language.



Sunday, September 2, 2012

Book Review: State of Africa. by Martin Meredith



A breathtaking account of the major events and leaders in the recent (1952- to date) history of Africa.
All about all the conspiracies, negotiations, brutalities, setbacks on the European and American conquest of the black continent.

(I have lived 4 years in Africa... I really miss its variegated culture, its great sense of humour and hospitality... Europe and US suck big time in that respect)

Once you start reading it, it becomes really addictive. Great B&W pictures inside.

Saturday, September 1, 2012

The Arctic Ice Collapse 2012

Unless you live on the moon or in a cave - or you follow only mainstream media, which is equivalent to living in a Disneyland world of delusional fantasies and lies - you must have heard that the Arctic ice cap is collapsing at accelerated speed.

This can only mean one thing: this Planet will never be as before. Climate change will grow at exponential speed, due to the cumulative positive effect of the lack of albedo (reflectivity) of the Pole ice, the emission of Siberian methane etc.

Even if one refuses to acknowledge reality and seek refuge in a world of geekiness, reality will knock at our door: desertification, crop failures, floods, collapse of megapolis will be the result. If you add the coming oil crisis, with the supply of crude oil cut progressively to all secondary members of the Global Empire, and you have a recipe for a Perfect Storm.





Personally, I have no plan to escape, no island where to seek refuge. I will probably be washed away like the 95% of humanity. I am old, I am not afraid of death. I only pity those who are young today, they came onboard a doomed planet. Stupidity and greed doomed this planet.

I always refused to own a car, I have lived a very simple non consumeristic lifestyle, but even this way I have probably consumed 20 times more energy (=CO2) than my grand father... just fly once, and it's like the energy that in 1800 one person yould have consumed in a lifetime...

We shall go back to a middle age lifestyle, but with a deeply devastated ecosystem, unable to support the amount of life that was possible in the 1300.

The descent in the Maelstrom will not be fun. But you are not alone, in fact we are all in the same boat, Planet Earth.