Displaying 20 results from an estimated 10000 matches similar to: "Rails not properly handling Oracle db connections/sesions in dev mode"
2006 Jun 26
1
Separate Read and Write Database
Hello,
I need to access an mirrored database with one read and one write
cluster. Is there a way to tell a model to use two connections? So that
all updates etc go to the write database and all read from the read one?
This is a fixed set up I can not use MySQL 5.x stuff and additionally i
get a token on write, which can be checked on read (and wait for
replication) if new data is needed.
I
2006 Jan 18
1
Helps!!!!! Rails database connection guru needed!!!!!!!
Hi,
I really need help to understand what is happening
while Rails connect to a database, (we area actually
using postgresql, so my example will be with
postgresql) What I understand is Rails is able to
connect to different DB. Actually, this is what we
want, and we have made some tests, everything is juste
fine. However, all these tests lead us to some
important questions that we did find the
2006 Jan 24
3
what this line means exactly? (@@active_connections ||= {})
Hi,
I have problem to understand this line does exactly?
this is from the class ConnectionSpecficication,
methode "active_connections"
def self.active_connections #:nodoc:
if allow_concurrency
Thread.current[''active_connections''] ||= {}
else
@@active_connections ||= {}
end
end
what the line "@@active_connections ||= {}" means
exactly?
as I
2019 Feb 03
2
Crash when using dict quotas with sqlite database
Hello John,
I tried (until now) to get a valuable backtrace, but it seems that GDB
can't resolve all symbols.
This is what systemd-coredump is giving me:
Stack trace of thread 22359:
#0? 0x0000638167eaf062 event_unref (libdovecot.so.0)
#1? 0x000004a58a212151 n/a (dict)
#2? 0x000004a58a211333 n/a (dict)
#3? 0x000004a58a20514d n/a (dict)
#4? 0x0000638167e556f2 dict_transaction_begin
2005 Oct 27
2
RSQLite problems
Hi, I'm experimenting with using (R)SQLite to do data management. Here are
two little problems that I've encountered:
1. The presence of ',' in string values causes trouble since ',' is also the
delimiter used in the SQL statement.
2. A newline '\n' line attached to the last string value of each row.
Some examples:
> library (RSQLite)
Loading required
2007 Jun 14
2
connecting to DB2 database
Hi,
i am trying to connect to a DB2 server using the DBI library.
getData <- function()
{
driver <- dbDriver("DB2")
conn <- dbConnect(driver,"server","uname","pword")
data <- dbSendquery(conn, "select etc.")
}
When I run the function, i get the error
> data <- getData()
Error in
2013 May 16
1
connect to local mySQL database
Hi,
I would like to access a local mysql database.
In python using the sqlite3 library it is quite straightforward. I just have to pass the path to the sqlite-file;
sqlite3.connect('.../xy.sqlite')
Is there something similar in R (or specifically in the RMySQL package)?
It seems like I have to use the MySQL function in the RMySQL package in order to ...
"initializes a MySQL
2008 Nov 06
1
RMySql inserts \r when using dbWriteTable
I am using R 2.8 and the latest versions of RMySQL on a Windows XP 64 bit
machine.
I was wondering if someone could help me figure out how to use dbWriteTable
without inserting \r into my table. Consider the following code snippet,
which is
run after I connect to my database.
myDFOut = dbReadTable(conn, "myDF")
print(myDFOut)
myDFIn = data.frame(x=paste("x", 1:5, sep =
2009 Dec 18
1
The RSQLite version of dbGetQuery drops colums
Hi all,
I just noticed (the hard way of course) that when a query returns 0
rows, the columns in the resulting data.frame get dropped as well. See
the following example code (where conn is an active connection to an
SQLite db):
> dbGetQuery(conn, "select 1 as hey, 2 as ho where 1")
hey ho
1 1 2
> dbGetQuery(conn, "select 1 as hey, 2 as ho where 0")
data frame
2006 May 16
1
ActionMailer w/o database link (e.g., feedback form)
Hey,
A total noobieQ. Apologies, still learning.
Could anyone point me to examples of a non-database-driven feedback
form, for instance, a simple e-mail feedback form that takes advantage
of ActionMailer? (How do I carry a POST through to a ''def'' w/o a
database connection?)
Thanks!
--
Posted via http://www.ruby-forum.com/.
2013 Jul 15
2
Serialize data.frame to database
Dear R-Users,
I need a very fast and reliable database solution so I try to serialize a data.frame (to binary data) and to store this data to an SQLite database.
This is what I tried to do:
library(RSQLite)
con <- dbDriver("SQLite")
db <- dbConnect(con, "test")
dbSendQuery(db, 'CREATE TABLE frames("simID" INT, "data" BLOB)')
data.bin <-
2013 Sep 09
1
Package installation and path.package
Dear R-Devels,
I am writing right now my own package that makes use of 'tempfile' and there within with 'path.package'. When I install it, I get the error: Error in path.package("mypackage") : none of the packages are loaded. Here is the code, I use in my package:
".defaultDBPath" <- function()
{
db.path <- tempfile(pattern =
2017 Mar 22
2
last_login LDAP - killed with signal 11 (core dumped)
Hi
I am trying to configure the last_login plugin with LDAP dictionary
which is causing dict service to crash. Not sure if this is a bug or
some configuration parameter I'm getting wrong?
Running latest dovecot but was having the same problem in earlier
version 2.2.25
# dovecot --version
2.2.28 (bed8434)
I have configured dovecot like so:
dovecot.conf (before conf.d/*.conf:
dict {
2006 Mar 06
5
Oracle XMLType data
Howdy folks,
Has anyone had any luck getting Oracle''s XMLType to play nicely with
Rails? According to the docs, it''s just a wrapper around CLOB.
However the ruby-oci8 driver throws an exception about user defined
types if you try to query a table with an XMLType column.
Any pointers would be appreciated.
Thanks,
-wilig
2012 Feb 15
1
Passing date as parameter while retrieving data from database using dbGetQuery
Hi All,
This might be simple question, I need to retrive data for modelling from the
databases. Eveytime date values changes so I countnot fix date value in the
code, it is required to pass as parameter.
When I pass the date as parameter, it throws error.
(ERROR: column "start_dt" does not exist Position: 285)
My script is as below, please guide me where am I going wrong?
All parameters
2006 Oct 13
5
RoR + oracle + bind vars
Hi,
I have a question about bundle: RoR + oracle + bind variables.
Heaving read forums/blogs/etc I found out RoR does not use bind vars
for oracle particularly (and for all adapters in general).
Then I found Michael''s patch
(http://dev.rubyonrails.org/attachment/ticket/5199/oracle_bind.patch)
but it was not added to the following RoR versions (since the end of
May). As I suppose it was
2006 Jul 05
2
Serialized object behaves weird
Hi!
I got a class named EinsatzFilter which I serialized to session. Before
saving to session it works afterwards I keep getting the message:
"undefined method `to_s'' for #<Person:0x38c6ab8>". "Person" is a from
ActiveRecord::Base inherited class.
Code:
class EinsatzFilter
include ApplicationHelper
attr_reader :personen, :monat, :projekte, :kunde
2004 Nov 01
3
ms access --> mysql --> R in Linux
I am trying to use some ms access databases in R (version
1.9.1 or 2.0 on a Debian system). In searching the net for
promising software to do this, I found mdbtools. Mdbtools
claims the ability to convert schemas and tables in MS
Access to MySQL and other databases.
http://mdbtools.sourceforge.net/
I'm wondering if anyone in the R community has tried using
this software to use
2006 Mar 08
4
unless connected? + multiple databases
Hello all.
I am still having fun with multiple databases. In this case it is the
unless connected? statement.
ActiveRecord::Base establishes a connection that is inherited by the
majority of my models. However one Model (Componentlog) that uses a
separate DB is coded as:
unless Componentlog.connected?
establish_connection(
:adapter => "oci",
:database =>
2017 Mar 22
1
last_login LDAP - killed with signal 11 (core dumped)
On Wed, Mar 22, 2017, at 01:04 AM, Aki Tuomi wrote:
>
> On 22.03.2017 10:03, Leon Kyneur wrote:
> > Hi
> >
> > I am trying to configure the last_login plugin with LDAP dictionary
> > which is causing dict service to crash. Not sure if this is a bug or
> > some configuration parameter I'm getting wrong?
> >
> > Running latest dovecot but was