Non so da dove Luciano, la persona che mi ha insegnato a praticare la meditazione Zen, ha preso questa versione in linguaggio moderno del Prajñaparamita Sutra

Però lo ringrazio per avermela fornita (e rifornita) perché il linguaggio poetico e arcaico di una cultura lontana usato nelle traduzioni più comuni suscita spesso diffidenza in molte persone e magari questa versione sarà letta anche da quelli che storcono il naso alla minima puzza di incenso (lo sono stato anche io).

E pubblico queste poche fondamentali righe senza sapere esattamente l’autore ( che forse è rimasto volontariamente anonimo ) :

Mentre era immerso nella profondità della Saggezza andata oltre, il nobile Signore, Avalokiteśvara, contemplò tutta la vastità del cosmo e vide che ogni cosa che esiste è in verità composta, ed essendo composta è in se stessa vuota. Ossia, o Śāriputra, tutto ciò che ha una struttura è per ciò stesso vuoto e solo ciò che è vuoto può avere una struttura: tra vuoto e struttura non vi è differenza alcuna. Ciò vale anche per ogni forma di attività sensoriale e mentale, per la volontà e per la coscienza. Gli stessi costituenti fondamentali della realtà sono caratterizzati dalla vacuità: essi non sorgono né decadono, non sono né puri né privi di impurità, né deficitari né completi in se stessi.
Quindi, o Śāriputra, nella vacuità non vi è possibilità di distinzione alcuna e non vi sono né forme né percezioni sensoriali, né emozioni né volizioni e nemmeno può esservi alcuna coscienza. Non vi è occhio, né orecchio, né lingua, né corpo, né mente e quindi non vi sono forme, suoni, odori, gusti, percezioni del tatto od oggetti mentali; non vi è nessuna attività sensoriale e perciò non v’è alcun oggetto di attività mentale cosciente. Nella vacuità non c’è ignoranza e quindi non può esservi estinzione dell’ignoranza, non c’è vecchiezza né morte e quindi non può esservi estinzione di vecchiezza e morte. Non c’è causazione, né sofferenza, né liberazione, né via da percorrere, non vi è cognizione né possibilità di ottenimento o di non-ottenimento.
Eppure, o Śāriputra, è proprio poiché egli contempla la vacuità e l’impossibilità di ottenimento, ossia poiché fa ricorso alla Perfezione della saggezza andata oltre, che un Bodhisattva libera la mente dalle costrizioni del pensiero ed in tal modo recide l’origine dell’angoscia e si affranca dalla paura: ciò è l’ingresso nel nirvana. Tutti coloro che appaiono come dei Buddha nelle tre ere del tempo, si sono completamente risvegliati alla perfetta illuminazione solo facendo ricorso alla Perfezione della saggezza andata oltre.
Perciò sappiate che la Prajñāpāramitā è il più grande strumento della mente, la suprema conoscenza, il mezzo definitivo ed impareggiabile per porre fine ad ogni sofferenza, poiché la Prajñāpāramitā è di per se la fine della sofferenza. Eccone la chiave: gate gate pāragate pārasaṁgate bodhi svāhā
Questo completa il Sutra del cuore della prajñāpāramitā.

My wife loves painting and I think she’s very good at it.

I guess it’s her form of meditation.

Her website is now online.

DSC_0021-01

I did not post anything for more than a year .

It has been a good and busy year… with a lot of miles traveled around the world. I’m glad about it.

Collage2015

Nearly five months ago I moved to a new office.

Behind my desktop there was a small triangular abandoned garden (isosceles right triangle with legs of 2 meters ) .

I think I did a decent restyling … this is the latest version (3.5)  :

My little zen garden

I learned several things working on this garden :

  • How difficult is to transplant a maple
  • How difficult is to grow a lawn where is too hot
  • How undertakers ants behave creating piles of bodies
  • How to remove the smell of cat pee
  • How to avoid mosquito larvae in stagnant water

And this in just a couple of seasons!

A beneficio degli studenti del 5° anno dell’ITIS di Terni che seguono il mio corso di Basi di Dati pubblico qui le slide che sto usando.

Sono fatte con Powerpoint 2007 e potete scaricarle con QUESTO LINK

ATTENZIONE : le slide sono in continua evoluzione quindi consideratele una versione “beta” : spesso le modifico prima di ogni lezione e, come potrete notare attingo a piene mani dalla Rete. Man mano che le modificherò cercherò di tenere aggiornato il documento… ma non garantisco tempestività nella pubblicazione .

Il mio consiglio è di usare Google ( cercando i termini in inglese ) , la docuentazione giusta ( spesso in inglese ) e fare esperimenti su un vostro DB installato in locale … o meglio ancora crearne uno condiviso su cui potete accedere tutti. Il motivo per cui insisto sull’inglese è semplicemente la (molto) maggiore disponibilità di buon materiale aggiornato.

Alcuni link che potrebbero tornarvi utili in proposito :

I giorni 21 e 30 Ottobre e  4 e 6 Novembre ho tenuto due edizioni di un breve corso di 4 ore al liceo G. Galieli di Terni sul tema Agile Project Management, a beneficio degli studenti interessati, ecco le presentazioni che ho usato per le mie due lezioni.

Attenzione! Se avete provato a scaricarle prima del giorno 8 Novembre potreste aver avuto problemi di visualizzazione …  ( forse vi chiedeva una identificazione con windowsliveid ) ; in tal caso scaricate nuovamente le presentazioni da questo post e se ci sono problemi fatemelo sapere usando i commenti del blog.

Prima Lezione: Intro Project Management, Ambito e Tempi

Seconda Lezione : Agile Project Management 

Per la seconda lezione ho attinto anche a una presentazione sulla comunicazione e sull’etica nel PM usata nelle lezioni tenute l’anno scorso: Comunicazione e Codice Etico nel Project Management

Le presentazioni contengono anche slide nascoste che non ho usato; molte informazioni sono anche nelle note del relatore… spero riusciate a trovarle facilmente.

Se non avete Power Point 2007 potete usare questo visualizzatore gratuito della Microsoft.

Se avete commenti, domande o richieste usate tranquillamente i commenti di questo blog.

Buono studio,

Paolo Castelletti

I wrote a lot of stored procs in pl/sql in my past working-life (before becoming a DBA ) … entire web sites. I wrote some Java code too, but I never mixed the two things in a non-canonical way (what I mean with canonical way is:  Java classes connects to DB and calls SQL or PL/SQL ) .

As a DBA I recently tackled the task to integrate Java stored proc into an Oracle instance … even if IMHO this is not a practice that should be abused ( pl/sql is more performing and equally powerful ) it is possible since the times when Oracle started to flatter Java ( ver. 8.1.5 , 1999) and there are cases when you simply have to do it  (e.g.  you need to integrate Filenet Java libraries into existing pl/sql code on a 2-tier  configured system ) .

two_tier_config

So I did it… it took me some time but I did it … and I faced some difficulties and learned 4 lessons that  I want to share here:

  1.  You need to use “loadjava”  utility  to load the Java classes into the DB before using it … and you might need to resize SYSTEM tablespace and JAVA_POOL_SIZE.   Be very careful with the loadjava options : -resolve -verbose -genmissing  are useful   -force might be indispensable in case you have previously loaded classes to replace. ( see support DOC ID 156439.1 )
  2. You need to compile the Java classes for the VM version of the DB they will run on ( e.g. if you work on Oracle 10 then you need Java 1.4 )
  3.  If you want to create a pl/sql wrapper to a Java method this method must be a static function, otherwise you will get:      ORA-29531: no method MY_METHOD_EXISTS_YFB in class MY_CLASS_THAT_HAS_IT     … at runtime …  So you might need to code a top level class or wrapper with a static method.
  4. Logging and other authorizations : Oracle introduces a layer of security for Oracle Database Java Applications in order to grant to Oracle users the access to system resources… you can grant the permissions with dbms_java.grant_permission.  I learned from this blog (thanks Marcelo Ochoa) ,  that in order to use  java.util.logging package you need to bms_java.grant_permission( ‘SCOTT’, ‘SYS:java.util.logging.LoggingPermission’, ‘control’, ” );  other permissions you might need are: dbms_java.grant_permission(‘SCOTT’, ‘java.io.FilePermission’, ‘/oracle/testfolder/myfile’, ‘read, write’);
    dbms_java.grant_permission(‘SCOTT’, ‘java.util.PropertyPermission’,’*’,’read,write’);
    dbms_java.grant_permission(‘SCOTT’, ‘SYS:java.lang.RuntimePermission’, ‘getClassLoader’, ” );

I hope someone will find this post useful and it will help to save some time.

I became fully aware of SQL injection reading this comic strip some years after I have been working as a developer ( mostly pl/sql , and probably this is the reason why the strip was so funny for me)  :

Programming most of my code in pl/sql and always taking care to use bind variables in all the other languages I came across, I always considered my code  free from SQL-injection risks… this until last week.

Thank to a clever colleague of mine, last week,  I came across this interesting article of Tom Kyte where he talked about pivoting tables using dynamic SQL and I realized that there could be SQL-injection risks even in  pl/sql  (see here for official Oracle doc about it).

I seldom used dynamic SQL … especially using data in tables … but, honestly, I could not swear I never did it.

So welcome  dbms_assert package that will save us from “little Bobby Tables“!

Let’s imagine you are a wise DBA that has to move some Oracle 10g databases lying on a RAC + ASM   to a new storage.

If you can use Google and Oracle support site you will not have problems : the online method suggested by BrianWood in oracle forums, based on ASM rebalancing works perfectly even in Oracle 10g (note that  the rebalance power ranges from 0 to 11 in Oracle 10g) and even for large disk groups (  I am talking about figures close to one terabyte  ).

To move OCR and Voting disks you can rely on Support note [ID 428681.1] … acually you could rely unless you are unlucky enough to have RAC installed on Win Server 2003 R2 64bit  (it was NOT my choice).

In this case, the unlucky DBA, after naming the OCR disk with guioracleobjmanager.exe and formatting with logpartformat will get the following error when invoking ocrconfig replace ocr \\.\<new_disk>    :

PROT-21: Invalid parameter

The problem here is that even when you commit and sync all nodes on guioracleobjmanager on one node, the other nodes are not fully aware of the new disk!

The only way to make them aware is restart the OracleObjectService (and so to stop and restart the crs ) on all the other nodes.

WATCH OUT: Do not  issue “ocrconfig replace ocr \\.\<new_disk>”  when any of the nodes is down  (I mean crs is down) otherwhise it will not be able to join the cluster anymore! ( I did it and I had to revert back to the old ocr disks to fix the problem)

I designed and implemented this solution one year ago to improve the communication between two systems based on distributed-heterogeneous DB : Oracle (10.2) RAC on the main system and SQL Server (2008R2) on the peripheral system located geographically far, in a place with lower bandwidth and 30ms ping time (120ms tnsping).

The SQL server application performed many accesses to the Oracle DB through ODBC and, because of the network latency and the overload of the original specs,  it could not meet the time constraints any more.

I decided to deploy a SQL Server replication to replicate the set of tables where the two applications communicate.

The main trouble with this idea is that you can not implement a “nonSQL“-transactional-updatable (I mean bidirectional) replication with MS replication technology  … in theory … so I decided to build it on my own tackling the ancient hatred between the two RDBMS.

Here is the core of my idea :

I setup a transmission replication with Oracle publisher and SQLServer subscriber, and a second receive replication with inverted roles. As you can see from the picture I had to duplicate the tables and create a copy in the Transmit schema and a copy in the Receive schema.

Note that I consider the TX and RX from the Oracle point of view … and this is not only because of my Oracle DBA background, but also because usually the Oracle application triggers the communication.

The red arrow in the image is the link between the tables in RX schema and TX schema : I realized it with triggers “for each row” after update/delete/insert : the triggers propagated the changes to the twin tables in the TX schema.

Of course I had to avoid the loop … and I did it modifying the triggers created by SQL Server on the TX tables : I simply inhibited the triggers when the user is the owner of RX tables… unfortunately this was not the only issue I had to tackle : here is a list of troubles that I encountered: 

  1. I could not use the same tnsnames connector for the Oracle publication and the Oracle subscription … I had to duplicate and rename it in the tnsnames.ora
  2. I could not initialize the subscriptions in the subscription-creation-wizard : I had to create the tables manually  on Oracle and SQL Server and copy the data with other methods (SQL Server , import data wizard … aka DTS)
  3. Date/time datatype mismatch : I had troubles on the time datatypes : on Oracle date  starts on 4712 BC and has a precision of 1 sec. .. on SQL Server datetime  starts on 1753 AD  and has precision of 1 ms … I had to filter dates older than 1753 in TX tables and use timestamp(3) in Oracle RX tables.
  4. Characterset issues : it seems that the replica with Oracle publisher has problem with some non ASCII characters when Oracle WE8ISO8859P1  characterset is used and subscriptor SQL server has collation Latin1_General_CI_AS
  5. Suboptimal execution plans could pop up on the queries generated by the SQL Server log reader on Oracle : in case a large number of rows are changed/inserted/deleted in a short period of time the log reader could become very slow … this is because the statistics on the queue tables (owned by the SQL Server replication administrator user) becomes suddenly stale… in order to fix I had to compute statistics on the tables of the SQL Server replication administrator user.

After some time of trial stage and fine tuning the replica communication is now running with satisfactory performance (a round trip can take less than 10 seconds but the throughput is much higher than the previous communication system) and it needs few or no maintenance at all.