Sunday, November 16, 2008

Read parts of my book on Google Books

I just found out that parts of my book (fragments ranging from page 224 to page 374) has been scanned and available online.

The entire section on running Groovy in the database is available.

Enjoy!

21 Comments:

Anonymous IBM Lenovo Laptop Parts said...

kuassi,
i want to start off this blog by saying ur book was very interesting. I read it from cover to cover in one sitting. keep on the great work!!!

8:21 PM  
Anonymous Jaromir D.B. Nemec said...

Hi Kuassi,
I found the chapter on running Groovy Scripts in the database very useful. Unfortunately I encounter some additional issues with java security using current release 1.5.7. I write the experience down ad post it on www.db-nemec.com/groovy/Running_Groovy_Scripts_in_the_Database.html. I’d enjoy if you could review it and possible propose some better solution how to deal with the security exceptions.
I general I thing that Groovy can be very handy in Oracle database especially for leveraging templates and builder – I add some basic examples in my post.

Great book that save me lot of time!

Regards,

Jaromir D.B. Nemec

3:24 PM  
Blogger Kuassi Mensah said...

Hi Jaromir,

Kudos for experimenting Groovy in the database.
It look like the root cause is that the Permission
(java.lang.RuntimePermission accessDeclaredMembers) has not been granted to /appl/home/oracle/groovy/groovy-all-1.5.7.jar.
Can you:
1) grant the permission (look for this article http://www.oracle.com/technology/oramag/oracle/03-jul/o43devjvm.html)
2) replace
SQL> select dbms_java.runjava ()
by
SQL>set serveroutput on
SQL>call dbms_output.put_line(dbms_java.runjava(...));

Kuassi

10:40 PM  
Anonymous Jaromir D.B. Nemec said...

Hi Kuassi,
Thanks for the valuable comments. I add the privilege as proposed
exec dbms_java.grant_permission( 'GROOVY', 'SYS:java.lang.RuntimePermission', 'accessDeclaredMembers', 'file:/appl/home/oracle/groovy/groovy-all-1.5.7.jar' );

Unfortunately I got a java.lang.ExceptionInInitializerError running dbms_output.put_line(dbms_java.runjava(...)); with GROOVY user
Connected with SYS was the run OK.

This is not really a problem as I see much more perspective the way of loading the groovy jar in DB and running the scripts using TestGroovyShell – as you proposed in your book. This works, the only problem still is the required manipulation of the SecurityManager to be able to pass the security checks.

My current problems are:

1) I’m not able to javaload the groovy all jar successfully. Even using –genmissing the load fails with some ORA-29534: referenced object xxx could not be resolved.
The problem is that some referenced classes that are missing in the jar are not generated. Actually I manage a successful complete load once, but I can’t repeat it. Are there some hidden parameters such a classpath, resolver, priviledes etc. that can influence the result?

2) I’m not able to dump the loaded classes. This will at least workaround the problem 1 and speed up the installation. I found three possibilities of class dumping in your book but neither works for me in 11.1.0.6.

Despite those problems it works and I complete some promising examples. There are some home works still to be done such a support for CLOB – I crashed on a VARCHAR2 boundary while generating a script for a long partitioned table.

Regards,

Jaromir D.B. Nemec

1:28 PM  
Anonymous Anonymous said...

童裝批發
童裝批發
童裝
童裝
酒店喝酒
酒店消費
暑假打工
寒假打工
酒店經紀人
酒店現領
禮服店
酒店小姐
酒店兼職
酒店上班
酒店兼職
禮服店
酒店上班
酒店打工
酒店小姐
酒店經紀
酒店兼差
假日打工
台北酒店經紀
寒暑假打工
專業酒店經紀
酒店藝名
台北酒店
酒店日保
酒店入行
台北禮服店
酒店類型
酒店午場
酒店規定
酒店行政
酒店資訊

7:18 PM  
Anonymous Vehicle Tracking said...

Morally there is an argument to say that you cant patent naturally occurring things.

9:36 AM  
Anonymous Recycle Mobile Phones said...

Very nice and helpful information has been given in this article. I like the way you explain the things. Keep posting. Thanks.

10:54 PM  
Anonymous Pest control Auckland said...

nice blog...info mantap....mantap blognya,,,tukeran barner ya mas,,,barner mas sudah terpasang di blog saya,,,di blogroll....untuk mempererat persahabatan antar blogger,,,,

1:08 AM  
Anonymous Home Furniture And Garden Furniture said...

Good blogs

12:32 AM  
Anonymous Instant Hedging said...

Terrific! I overwhelmed it. I have not adequate words in gratitude. Thanks for sharing with me. I will keep stay.

7:23 AM  
Blogger Ayesha said...

You have given a nice preview. Nice ideas. Business Franchise Opportunities

8:20 PM  
Anonymous search engine optimization melbourne said...

I general I thing that Groovy can be very handy in Oracle database especially for leveraging templates and builder – I add some basic examples in my post.

3:34 AM  
Anonymous Religion clothes said...

I was looking for some topics that are enough popular and finally founded your blog, it has superb topics with great popularity. Religion clothes

5:53 AM  
Blogger Ayesha said...

This is really a good stuff, This sounds good. I like it. Photo Recovery

11:13 PM  
Anonymous Cartoon coloring said...

Really i appreciate the effort you made to share the knowledge.The topic here i found was really effective to the topic which i was researching for a long time
Cartoon coloring

10:54 PM  
Anonymous r4 card said...

Very nice and helpful information has been given in this article. I like the way you explain the things. Keep posting.

9:05 AM  
Anonymous Inspection of Work said...

I found the chapter on running Groovy Scripts in the database very useful. Unfortunately I encounter some additional issues with java security using current release 1.5.7.

11:27 PM  
Anonymous Inspection of Work said...

Kudos for experimenting Groovy in the database.

11:31 PM  
Anonymous Construction Safety Coordination said...

Despite those problems it works and I complete some promising examples. There are some home works still to be done such a support for CLOB – I crashed on a VARCHAR2 boundary while generating a script for a long partitioned table.

5:42 AM  
Anonymous Construction Safety Coordination said...

This works, the only problem still is the required manipulation of the SecurityManager to be able to pass the security checks.

5:47 AM  
Blogger MyWebsite said...

Thanks for the information, your post have solved my many question, thanks for the post and the help as well.
sell online

4:41 AM  

Post a Comment

Links to this post:

Create a Link

<< Home