Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Rails aplikacije - Spajanje na Oracle bazu
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Denis Bukvic  
View profile   Translate to Translated (View Original)
 More options Nov 12 2011, 9:28 am
From: Denis Bukvic <dbuk...@veleri.hr>
Date: Sat, 12 Nov 2011 15:28:35 +0100
Local: Sat, Nov 12 2011 9:28 am
Subject: [RubyHR] Rails aplikacije - Spajanje na Oracle bazu

Pozdrav svima

Spajanje na Oracle bazu za Rails aplikacija zna biti tricky, pa da
sumiram što je sve potrebno (dobar šalabahter u svakom slučaju):

--------------

Za spajanje Ruby aplikacija na Oracle bazu:

gem install ruby-oci8
gem install ruby-plsql
gem install activerecord-oracle_enhanced-adapter

--------------

Za Rails aplikaciju, paziti da u Gemfile odmah nakon Rails gema bude:

gem 'ruby-oci8'
gem "ruby-plsql"
gem "activerecord-oracle_enhanced-adapter"

--------------

Trebaju vam posebni Oracle useri za development, test i production sheme.
Iz SQLPlus-a kreirajte, na primjer, Pero development usera:

create user pero_dev identified by zdero
grant all privileges to pero_dev

Opaska: Na Oracle bazi, user i shema su jedno te isto. Privilegije sam dao
sve, vjerojatno se to može tweakat, ali nebitno je sada.

--------------

Login i ostalo idu naravno u database.yml

development:
  adapter: oracle_enhanced
  database: njaminjami
  username: pero_dev
  password: zdero

(database može biti ili TNS ime ili cijeli path: server:port/instance)

--------------

Da bi sve radilo, morate imati Oracle client instaliran na računalu.
Ako je baza na istom kompu, onda će vjerojatno odmah raditi.

Eto, ako je nekome pomoglo, meni drago!

Ako netko ima neki komentar ili savjet za rad s Oracle bazom iz Rails
aplikacija, sugestije su dobrodošle!

Denis


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bruno Sutic  
View profile   Translate to Translated (View Original)
 More options Nov 12 2011, 2:21 pm
From: Bruno Sutic <bruno.su...@gmail.com>
Date: Sat, 12 Nov 2011 20:21:54 +0100
Local: Sat, Nov 12 2011 2:21 pm
Subject: Re: [RubyHR] Rails aplikacije - Spajanje na Oracle bazu

Bog kolega Bukvić,
hvala - koristan mail.

Bilo bi lijepo vidjeti više korisnih tips & tricks mailova na ovoj grupi. U
srijedu se pokazalo da ima ljudi koji imaju korisnih stvari za podijelit :)

2011/11/12 Denis Bukvic <dbuk...@veleri.hr>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Šime  
View profile   Translate to Translated (View Original)
 More options Nov 17 2011, 1:14 pm
From: Šime <shime.fero...@gmail.com>
Date: Thu, 17 Nov 2011 10:14:40 -0800 (PST)
Local: Thurs, Nov 17 2011 1:14 pm
Subject: Re: Rails aplikacije - Spajanje na Oracle bazu
ovo će sigurno nekome bit korisno, ja sam se isto poprilično namučio
dok sam se spajao na oracle. svaka čast za tutorial

On Nov 12, 8:21 pm, Bruno Sutic <bruno.su...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »