I am using one-click installer 1.8.1, and trying to use DBI connecting to Oracle 9i.
And I got connection problem with it and wondering if anyone can help. Couldn't
find any info on google that solve my problem.
Here are the error message: ORA-06401: NETCMN: invalid driver designator
Using this simple ruby script:
#! /usr/bin/env ruby
require "dbi"
begin
dbh = DBI.connect("dbi:Oracle:kms:172.19.12.143", "kmsproduct", "kmsproduct"
)
rescue DBI::DatabaseError => e
puts "An error occured"
puts "Error code: #{e.err}"
puts "Error messagE: #{e.errstr}"
ensure
dbh.disconnect if dbh
end
"Wirianto Djunaidi" <wirianto.djunaidi@mitrais.com> schrieb im Newsbeitrag
news:4141717E.4000402@mitrais.com...
···
Hi,
I am using one-click installer 1.8.1, and trying to use DBI connecting
to Oracle 9i.
And I got connection problem with it and wondering if anyone can help.
Couldn't
find any info on google that solve my problem.
Here are the error message: ORA-06401: NETCMN: invalid driver designator
Using this simple ruby script:
#! /usr/bin/env ruby
require "dbi"
begin
dbh = DBI.connect("dbi:Oracle:kms:172.19.12.143", "kmsproduct",
"kmsproduct"
)
rescue DBI::DatabaseError => e
puts "An error occured"
puts "Error code: #{e.err}"
puts "Error messagE: #{e.errstr}"
ensure
dbh.disconnect if dbh
end
I can confirm that it *was* compiled with with oracle 8.1.
Curt
···
"Wirianto Djunaidi" <wirianto.djunaidi@mitrais.com> schrieb im Newsbeitrag
news:4141717E.4000402@mitrais.com...
> Hi,
>
> I am using one-click installer 1.8.1, and trying to use DBI connecting
> to Oracle 9i.
> And I got connection problem with it and wondering if anyone can help.
> Couldn't
> find any info on google that solve my problem.
>
> Here are the error message: ORA-06401: NETCMN: invalid driver designator
>
> Using this simple ruby script:
> #! /usr/bin/env ruby
>
> require "dbi"
>
> begin
> dbh = DBI.connectdbiOraclekms172.19.12.143,kmsproduct,
> "kmsproduct"
> )
> rescue DBI::DatabaseError => e
> puts "An error occured"
> puts "Error code: #{e.err}"
> puts "Error messagE: #{e.errstr}"
> ensure
> dbh.disconnect if dbh
> end
>
> $ ruby --version
> ruby 1.8.1 (2003-12-25) [i386-mswin32]
>
> Thanks in advance
>
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.757 / Virus Database: 507 - Release Date: 9/9/2004
I can confirm that it *was* compiled with with oracle 8.1.
Curt
"Wirianto Djunaidi" <wirianto.djunaidi@mitrais.com> schrieb im Newsbeitrag
news:4141717E.4000402@mitrais.com...
Hi,
I am using one-click installer 1.8.1, and trying to use DBI connecting
to Oracle 9i.
And I got connection problem with it and wondering if anyone can help.
Couldn't
find any info on google that solve my problem.
Here are the error message: ORA-06401: NETCMN: invalid driver designator
Using this simple ruby script:
#! /usr/bin/env ruby
require "dbi"
begin
dbh = DBI.connectdbiOraclekms172.19.12.143,kmsproduct,
"kmsproduct"
)
rescue DBI::DatabaseError => e
puts "An error occured"
puts "Error code: #{e.err}"
puts "Error messagE: #{e.errstr}"
ensure
dbh.disconnect if dbh
end
I now have Ruby 1.8.1 preview2, modruby1.2.2 and Arrow 0.1.0. However whenever I restart Apache it says in the log:
mod_ruby: failed to require arrow
mod_ruby: error in ruby
mod_ruby: /etc/arrow/lib/arrow/template/parser.rb:22:in 'require': No such file to load -- strscan (LoadError)
I now have Ruby 1.8.1 preview2, modruby1.2.2 and Arrow 0.1.0. However whenever I restart Apache it says in the log:
mod_ruby: failed to require arrow
mod_ruby: error in ruby
mod_ruby: /etc/arrow/lib/arrow/template/parser.rb:22:in 'require': No such file to load -- strscan (LoadError)
Ok...I got rid of the errors. I am running a Debian 3.0.2 woody box. So far I have had to:
- download ruby source and custom compile. The debian ruby package didn't come with strscan.
- download modruby source and custom compile. This got rid of Apache errors
I think I am going to tell myself to RTFM....(if it helps I'm really tired but I want to get through the base install of Arrow before I go to bed and my patience is thin...long day)
But i havea nother problem and I swear this one isn't in the manual!
[Sat Sep 11 01:01:10 2004] [notice] Apache/1.3.31 (Debian GNU/Linux) mod_ruby/1.2.2 Ruby/1.8.2(2004-07-29) configured -- resuming normal operations
[Sat Sep 11 01:01:10 2004] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Sat Sep 11 01:01:16 2004] [notice] (global) : Arrow config file is "/etc/arrow/demo.cfg"
[Sat Sep 11 01:01:16 2004] [error] Arrow::Dispatcher : RuntimeError while creating dispatcher: mod_ruby is not compiled with libapreq\n/usr/local/lib/ruby/site_ruby/1.8/arrow/dispatcher.rb:156:in `initialize'\n\t/usr/local/lib/ruby/site_ruby/1.8/arrow/dispatcher.rb:56:in `new'\n\t/usr/local/lib/ruby/site_ruby/1.8/arrow/dispatcher.rb:56:in `new'\n\t/usr/local/lib/ruby/site_ruby/1.8/arrow/dispatcher.rb:117:in `create'\n\t/usr/local/lib/ruby/site_ruby/1.8/arrow/dispatcher.rb:91:in `each'\n\t/usr/local/lib/ruby/site_ruby/1.8/arrow/dispatcher.rb:91:in `create'\n\t/usr/local/lib/ruby/site_ruby/1.8/arrow/dispatcher.rb:138:in `instance'\n\t(eval):0
[Sat Sep 11 01:01:16 2004] [crit] RuntimeError while creating dispatcher: mod_ruby is not compiled with libapreq\n/usr/local/lib/ruby/site_ruby/1.8/arrow/dispatcher.rb:156:in `initialize'\n\t/usr/local/lib/ruby/site_ruby/1.8/arrow/dispatcher.rb:56:in `new'\n\t/usr/local/lib/ruby/site_ruby/1.8/arrow/dispatcher.rb:56:in `new'\n\t/usr/local/lib/ruby/site_ruby/1.8/arrow/dispatcher.rb:117:in `create'\n\t/usr/local/lib/ruby/site_ruby/1.8/arrow/dispatcher.rb:91:in `each'\n\t/usr/local/lib/ruby/site_ruby/1.8/arrow/dispatcher.rb:91:in `create'\n\t/usr/local/lib/ruby/site_ruby/1.8/arrow/dispatcher.rb:138:in `instance'\n\t(eval):0
[Sat Sep 11 01:01:16 2004] [error] Arrow::Dispatcher : Fatal: No broker.
[Sat Sep 11 01:01:18 2004] [notice] (global) : Arrow config file is "/etc/arrow/demo.cfg"
[Sat Sep 11 01:01:18 2004] [error] Arrow::Dispatcher : RuntimeError while creating dispatcher: mod_ruby is not compiled with libapreq\n/usr/local/lib/ruby/site_ruby/1.8/arrow/dispatcher.rb:156:in `initialize'\n\t/usr/local/lib/ruby/site_ruby/1.8/arrow/dispatcher.rb:56:in `new'\n\t/usr/local/lib/ruby/site_ruby/1.8/arrow/dispatcher.rb:56:in `new'\n\t/usr/local/lib/ruby/site_ruby/1.8/arrow/dispatcher.rb:117:in `create'\n\t/usr/local/lib/ruby/site_ruby/1.8/arrow/dispatcher.rb:91:in `each'\n\t/usr/local/lib/ruby/site_ruby/1.8/arrow/dispatcher.rb:91:in `create'\n\t/usr/local/lib/ruby/site_ruby/1.8/arrow/dispatcher.rb:138:in `instance'\n\t(eval):0
[Sat Sep 11 01:01:18 2004] [crit] RuntimeError while creating dispatcher: mod_ruby is not compiled with libapreq\n/usr/local/lib/ruby/site_ruby/1.8/arrow/dispatcher.rb:156:in `initialize'\n\t/usr/local/lib/ruby/site_ruby/1.8/arrow/dispatcher.rb:56:in `new'\n\t/usr/local/lib/ruby/site_ruby/1.8/arrow/dispatcher.rb:56:in `new'\n\t/usr/local/lib/ruby/site_ruby/1.8/arrow/dispatcher.rb:117:in `create'\n\t/usr/local/lib/ruby/site_ruby/1.8/arrow/dispatcher.rb:91:in `each'\n\t/usr/local/lib/ruby/site_ruby/1.8/arrow/dispatcher.rb:91:in `create'\n\t/usr/local/lib/ruby/site_ruby/1.8/arrow/dispatcher.rb:138:in `instance'\n\t(eval):0
[Sat Sep 11 01:01:18 2004] [error] Arrow::Dispatcher : Fatal: No broker.
sapen:~#
I think I am going to tell myself to RTFM....(if it helps I'm really
tired but I want to get through the base install of Arrow before I go to
bed and my patience is thin...long day)
Yeah. It'll be easier tomorrow, though
But i havea nother problem and I swear this one isn't in the manual!
I think I am going to tell myself to RTFM....(if it helps I'm really
tired but I want to get through the base install of Arrow before I go to
bed and my patience is thin...long day)
Yeah. It'll be easier tomorrow, though
But i havea nother problem and I swear this one isn't in the manual!
Maybe I should just go to bed....I think I will.....because I can't find where it says how-to compile libapreq for use with mod_ruby and the libapreq for apache 1.3 download only gives instructions to compile and install with mod_perl.....and I dont want to install mod_perl unless i have to. Any ideas on this one?
Also on line 44 of the install.rb file in the Test-Unit-Mock-0.0.3 directory....there is a complaint from ruby. It has to do with comparison of strings against regexp....in case the Arrow guys want to check this out.....I am running ruby 1.8.2 now....
Maybe I should just go to bed....I think I will.....because I can't find where it says how-to compile libapreq for use with mod_ruby and the libapreq for apache 1.3 download only gives instructions to compile and install with mod_perl.....and I dont want to install mod_perl unless i have to. Any ideas on this one?
I'm not sure about platforms other than MacOS X, Linux, and FreeBSD (as those are the only machines I use), but on all three of those installing libapreq was just a matter of following the instructions at the bottom of INSTALL:
Alternatively, to build and install a shared version
of libapreq using GNU libtool, do this:
./configure --with-apache-includes=DIR && make && make install
Also on line 44 of the install.rb file in the Test-Unit-Mock-0.0.3 directory....there is a complaint from ruby. It has to do with comparison of strings against regexp....in case the Arrow guys want to check this out.....I am running ruby 1.8.2 now....
It's been fixed in the development version of Test::Unit::Mock, but since it's just a warning, I haven't packaged up a release for it. It should install fine despite the warning; please do let me know if such is not the case.
···
On Sep 10, 2004, at 10:47 PM, Zach Dennis wrote:
--
Michael Granger <ged@FaerieMUD.org>
Rubymage, Believer, Architect
The FaerieMUD Consortium <http://www.FaerieMUD.org/>
12383406064495388618631689469409153107.to_s(36).tr('z',' ')