Call now: 252-767-6166  
Oracle Training Oracle Support Development Oracle Apps

 
 Home
 E-mail Us
 Oracle Articles
New Oracle Articles


 Oracle Training
 Oracle Tips

 Oracle Forum
 Class Catalog


 Remote DBA
 Oracle Tuning
 Emergency 911
 RAC Support
 Apps Support
 Analysis
 Design
 Implementation
 Oracle Support


 SQL Tuning
 Security

 Oracle UNIX
 Oracle Linux
 Monitoring
 Remote s
upport
 Remote plans
 Remote
services
 Application Server

 Applications
 Oracle Forms
 Oracle Portal
 App Upgrades
 SQL Server
 Oracle Concepts
 Software Support

 Remote S
upport  
 Development  

 Implementation


 Consulting Staff
 Consulting Prices
 Help Wanted!

 


 Oracle Posters
 Oracle Books

 Oracle Scripts
 Ion
 Excel-DB  

Don Burleson Blog 


 

 

 


 

 

 

 
 

Oracle Ruby on Rails

Oracle Database Tips by Donald Burleson

Question:  What is Oracle Ruby on rails (RoR) all about?

Answer: Ruby was first introduced as an extension to PHP, and Rails was a web development tool, but Ruby on Rails has evolved into an object-oriented language with scripting capabilities, code generators and libraries of re-usable components.  Andrej Koelewijn has published a great sample Oracle Ruby on Rails tutorial, and here is a sample Oracle RoR script:

require 'active_record'

class TodoList < ActiveRecord::Base
end

ActiveRecord::Base.establish_connection(
  :adapter  => "oci", 
  :host     => "oraxe/xe", 
  :username => "tl_owner", 
  :password => "tl_owner"
)

todoList = TodoList.new
todoList.name = "List 1"
todoList.description = "My first description"

todoList.save

todoList2 = TodoList.find(:first,:conditions =>["name = ?","List 1"])

puts "#{todoList2.id}, #{todoList2.name}, #{todoList2.description}"

When do I use Oracle Ruby on Rails?

Ruby on Rails for Oracle is a tool for developing web applications quickly and it differs from standard Ruby on Rails in that it includes persistence routines to store Ruby on Rails objects within the Oracle relational tables.  Oracle RoR (Ruby on Rails) is just the latest incarnation of yet another web application development environment, joining the other Oracle web development tools of SQL*Forms, JDeveloper, Application Express (HTML-DB, Apex).

As-is the case with all relational persistence methods for object-oriented languages, Oracle Ruby on Rails programmers must overcome the issue of the impedance mismatch.

Using Ruby on Rails with Oracle

Oracle has complete instructions for installing Oracle RoR and an Oracle Ruby on Rails tutorial, yet Andrej Koelewijn has the best working example of Oracle RoR.  Remember, the only thing different from Oracle Ruby on Rails and standard Ruby on Rails is the Oracle storage interface methods.

Hence, Oracle RoR is most appropriate for developers who already have experience with Ruby on Rails.

The future of Oracle Ruby on Rails

 The central question is whether the addition of Oracle persistence methods within Oracle Ruby on Rails, is enough to make it a popular development platform for Oracle-based applications.  Tim O'Reilly, the technology publishing guru notes that Ruby on Rails book sales are flat:

"PHP is up only 4%, Cold Fusion up 9%, and JSP off 16%. Ruby on Rails shows in the treemap as flat, up 0%."

Steve Karam, an Oracle Certified Master, author and expert in web technologies, shares these predictions on programming languages for 2015 and the state of Ruby and Ruby On Rails (RoR):

"I should learn about more about Ruby, as that's the "hot language" on the market right now.

Ruby is a fork of PHP with some special features built in, and pretty rapid development, which is why it's popular right now.

A lot of the people I work with, however, think that Ruby is going to fade at some point whereas PHP has and will not...I guess time will tell.""

Oracle ruby on Rails References:

If you like Oracle tuning, see the book "Oracle Tuning: The Definitive Reference", with 950 pages of tuning tips and scripts. 

You can buy it direct from the publisher for 30%-off and get instant access to the code depot of Oracle tuning scripts.


 

 

��  
 
 
Oracle Training at Sea
 
 
 
 
oracle dba poster
 

 
Follow us on Twitter 
 
Oracle performance tuning software 
 
Oracle Linux poster
 
 
 

 

Burleson is the American Team

Note: This Oracle documentation was created as a support and Oracle training reference for use by our DBA performance tuning consulting professionals.  Feel free to ask questions on our Oracle forum.

Verify experience! Anyone considering using the services of an Oracle support expert should independently investigate their credentials and experience, and not rely on advertisements and self-proclaimed expertise. All legitimate Oracle experts publish their Oracle qualifications.

Errata?  Oracle technology is changing and we strive to update our BC Oracle support information.  If you find an error or have a suggestion for improving our content, we would appreciate your feedback.  Just  e-mail:  

and include the URL for the page.


                    









Burleson Consulting

The Oracle of Database Support

Oracle Performance Tuning

Remote DBA Services


 

Copyright © 1996 -  2020

All rights reserved by Burleson

Oracle ® is the registered trademark of Oracle Corporation.