Recent Entries
- MangoBlog/Oracle Int...
- OT - Google Maps: In...
- Email Hijacked?
- CFUnited: Refactorin...
- CFUnited: Continuous...
- CFUnited: Prototypin...
- CFUnited: All about ...
- CFUnited: Event Driv...
- CFUnited: Integrated...
- CFUnited: ColdBox Fr...
Popular Entries
- CFUnited: All about ...
- SAML and ColdFusion ...
- SAML and ColdFusion ...
- SAML and ColdFusion ...
- SAML and ColdFusion ...
- SAML and ColdFusion ...
- CFUnited: Google Web...
- Import/Export in SQL...
- Second Blog CFC Surv...
- Improving Performanc...
Top Commenters
- Nathan Mische (12)
- CFFusionDev (6)
- CFdevfusion (6)
- Peter Bell (4)
- Sean Corfield (3)
- Rey Bango (3)
- Terrence Ryan (3)
- ah7866 (3)
- Scott (2)
- Jim Priest (2)
Slideshows
Dresser/Changing Table...Images related to the lay...
Nursery renovations...
Pool Surprises...
Sponsored Links
Search
Subscribe
Enter your email address to subscribe to this blog.RSS
Tags
cfug cfunited coldfusion flex generalArchives
- Adobe (5) [RSS]
- AIR (6) [RSS]
- ASP.NET (2) [RSS]
- BlazeDS (1) [RSS]
- Books (1) [RSS]
- CFEclipse (5) [RSS]
- CFML (0) [RSS]
- CFUG (26) [RSS]
- CFUnited (23) [RSS]
- ColdFusion (53) [RSS]
- College Football (3) [RSS]
- Conferences (1) [RSS]
- Development Tools (3) [RSS]
- DIY (1) [RSS]
- Eagles (3) [RSS]
- Fireworks (1) [RSS]
- Flash (3) [RSS]
- Flex (10) [RSS]
- Flyers (2) [RSS]
- Frameworks (5) [RSS]
- General (28) [RSS]
- Hockey (2) [RSS]
- Hosting (1) [RSS]
- House (2) [RSS]
- HTML (2) [RSS]
- JavaScript (1) [RSS]
- Jobs (1) [RSS]
- Macromedia (0) [RSS]
- MangoBlog (1) [RSS]
- Misc. (5) [RSS]
- Model-Glue (4) [RSS]
- Navy Football (5) [RSS]
- onair2007Philadelphia (3) [RSS]
- onairbustour (3) [RSS]
- Open Source (0) [RSS]
- Other (2) [RSS]
- Other Sports (4) [RSS]
- Performance (3) [RSS]
- Personal (2) [RSS]
- Phillies (2) [RSS]
- Projects, User Group Manager (1) [RSS]
- Rant (1) [RSS]
- Rants (1) [RSS]
- SAML (6) [RSS]
- Site (1) [RSS]
- Soccer (4) [RSS]
- SQL Server (2) [RSS]
- Transportation (1) [RSS]
- Wedding (2) [RSS]
AGGREGATORS
MangoBlog/Oracle Integration
Posted On March 4, 2010 8:36 PM By Phil in MangoBlog
I know this is an extremely long time in coming but over the course of the past 18 months since I last posted an entry, I've had the birth of my first child and all the work that went into preparing and then obviously caring for her once born. At work, we went through a pretty hefty migration from one hosting company to another as well as upgrading our CMS. During this migration, we previewed a number of blogging tools, with MangoBlog being one of them. Ultimately we decided to go in another direction, but that had more to do with the timing of the project with the birth of my daughter and my subsequent leave than anything. However, I did work on getting MangoBlog to work with Oracle.
The first item I had to do was create the SQL script for Oracle. I can't recall if I used a converting tool or not, but I believe I did use one to get me close. I did find that Oracle, at least in my instance/configuration, could not have one giant SQL statement inside of one CFQUERY tag, so I used the format of one of the other SQL insert files where each one was in its own CFQUERY tag. The other item I soon found out was Oracle (again in my configuration) placed a maximum of 32 characters, I believe, on identifier names, i.e., table, constraints, pretty much any object you can define. Some of MangoBlog's constraint names were really long and that was before putting a prefix on. I kept to a two-character prefix and modified a few of the constraint names and that seemed to do the trick.
The next item of business was to modify the installer to include Oracle as an option. I probably didn't have to do this, but I wanted to give the logic back so I figured I could update the main setup.cfm and Setup.cfc files. This was probably the easiest part of the whole effort.
The final part came after trying to use MangoBlog's data access components as they were as part of the overall functionality. I consistently received errors. It turns out, that the queries used across the board did not conform to Oracle's format. Now, I don't know remember which side of ANSI SQL-92 each product is on, but the reality was I had to almost rewrite the data access components in order to get MangoBlog to work with Oracle. As a result, I added an oracle folder to the dataaccess folder under the components area, modified the dataaccess.cfc so that if Oracle was chosen as the database, it would use the new components. I believe I also added some logic to establish this in the application scope, but I can't recall.
For those wishing to use this code, I had originally not posted it because I wanted it to go through our QA process; however, that was never accomplished, so there could be bugs in it. I did run it on my local and development servers, but did not really give it a large shakedown of use. Also, the timeframe in which I did this work was May/June of 2009, so those are the files these are based on. Finally, all the files, in the right folder, are in the attached zip.


philduba.com




Comments (Comment Moderation is enabled. Your comment will not appear until approved.)