| Article: |
Installing Oracle 9i on Mac OS X, Part 3 | |
| Subject: | Native Compilation | |
| Date: | 2003-07-19 09:58:48 | |
| From: | williamr | |
|
One of 9i's new features I have been wanting to try out is Native Compilation, which allows you to compile your PL/SQL packages as native C programs. However the makefile supplied doesn't work, and seems to have been lifted untested from a Solaris installation. Has anyone been able to get this to work?
|
||
Showing messages 1 through 2 of 2.
-
Native Compilation
2003-07-19 10:36:40 dsimpson1 [View]
-
Native Compilation
2003-07-23 15:58:36 williamr [View]
Well everything seems to be in place for native compilation - 'alter package compile' gets as far as calling gcc, make and ld, it's just that the makefile seems to be designed for creating shared libraries on Solaris. I wonder what the makefile from an HP machine would look like for example. It's frustrating since I don't know C - if I could just spend six months at college learning about relinking object files or whatever they're called, I feel I might be able to get this feature to work...



This feature is best limited to PL/SQL code which you have written yourself as opposed to compiling all of the PL/SQL in the database at this time. And it does seem to work well under Solaris - my little test program which just runs a loop runs about 2x faster, and I think that some types of code may run 8x faster.
However the good news that I am seeing posted on the MacOS X specific newsgroup at Oracle's OTN is that MacOS X will be fully supported in the next major release. There have been hints that Oracle 10i will be announced at OracleWorld Sept 7 - 11th in San Francisco. Apple is scheduled to have a booth at OracleWorld too.