Wednesday, January 21, 2009

Mideast Conflict Rules

Here are the rules that everyone should be aware of when watching the news coverage of any middle east conflict. If you know these rules, everything becomes simple:

Rules number 1: In the middle east it is allways Arabs who attack first, and it is always Israel who defends itself.

Rule number 2: Arabes, Palestiniens or Libanese dont have the right to kill civilians. This is called terrorism.

Rule number 3: Israel has the right to kill arab civilians. This is called legitimate self defense.

Rule number 4: When Isreal kills lots of civilans, Western countries call for israel to be cautious and apply restraint in using force. This is called the reaction of the international community

Rule number 5: The Palestinians and Libanese dont have the right to
capture israelien soldiers even if it is a simgle soldier.

Rule number 6: The israelis have the right to kidnap any number of
Palestiniens they want (around 12,000 prisonners to this day).
There is no limit on the number they can capture, and no charges have to be pressed. You just have to claim they are terrorists.

Rule number 7: When you say the word Resistance, make sure you follow it by "with the suport of syria and iran"

Rule number 8: When you say Israel, you should never mention the unconditional support of the US, France or Europe, this may reflect an unbalanced conflict.

Rule number 9: Never talk about occupied territoriesnor UN resolutions nor violation of international law, and geneva conventions. This may raise questions in the mind of viewers.

Rule number 10: Israelis are more educated than arabs, they speak better and therefore they get more airtime. In addition, they can explain rules 1-9 to us. This is called being neutral.

Rule number 11: If you do not agree with these rules or think they favor one party vs the other in this conflict, then you should come to the conclusion that you are a dangerous antisemite.

Creating Java Stored Procedures

CREATING JAVA STORED PROCEDURES

Introduction: Java Stored Procedures enable a programmer to load a java class into the Database directly and use it in any PL/SQL code or even call it from SQL*Plus. This is particulary helpful when you wish to do something which is not achievable using PL/SQL and especially OS related functions. Examples include calling a Host command from PL/SQL or using Java mail to email alerts etc and many more . Please note that Java is not preferred if you are doing Database related stuff like DML etc. PL/SQL handles it better as it is tightly integrated with the Oracle 8i databse server.


1) Have a java program ready. This should have no errors. If you don't have one you can use the ones attached below. FTP the *.java file to whatever directory you wish to.

2) cd to that directory and at the unix prompt type in the following loadjava -r -f -o -user apps/apps runOscmd.java. After you hit enter, if there are no errors the control returns to the unix prompt.

3) Login into SQL*Plus as apps execute runOscmd_wrapper.sql. This creates a wrapper PL/SQL function on the Java class.

4) Then set the server output and the java output on by doing the following:
SQL> set serveroutput on size 5000
SQL> call dbms_java.set_output(5000);
5) Then do a select host('date') from dual;

Also, remember that there are other ways to load a java program into the database. You can compile the java program on your pc and then load the .class file using the loadjava utility or using the
CREATE syntax.

Script attachments: