Rails with unixODBC and SQL Server 2000 and FreeBSD - ruby-on-rails

I'm having a problem trying to deploy a Rails application
a FreeBSD server, I am using unixODBC and FreeTDS to
access the database that sits on a server with windows server
Sqlsever 2003 and 2000.
The problem is that the application can only access the database
when using the SA user sqlserver, when I try to use another user,
the application can not access. But when I test the DSN created outside
the application I can access the database with other users,
DSN using the same application.
Does anyone have an idea what might be? Ja I even put the
I created user to access the application with all rights ..
db_owner .. and so on .. and still can not access when I try to run
application with this user.
tanks!
:) Alessandra

I realized that if I omit the user or placing a user who does not exist, but the password being the same as in SA it connects too.

Related

Unable to login using SQL Developer?

Recently I installed Oracle 12c and using the below commands in sqlplus I created a user, set the password and grant connection privileges. I can successfuly login with PYTHON user using sqlplus and create tables.
ALTER SESSION SET "_ORACLE_SCRIPT"=true;
CREATE USER PYTHON IDENTIFIED BY “1234”;
GRANT CONNECT TO PYTHON;
GRANT CREATE TABLE TO PYTHON;
BUT when I try to login with he same credentials using SQL Developer it shows me the below error
ORA-12505 , TNS listener does not currently know of SID given in connector description
There is no 12c XE..only 11g and 18c XE.
So your service name is wrong.
Try orcl
Or check your logs for the database service name

Neo4j remote access from windows using putty

I installed Neo4j 3.2.6 on Ubuntu 16.04 and I tried to access it remotely using putty (from my windows-based computers). Without uncommenting anything in neo4j.conf, I can access Neo4j using the source port I defined in putty. Then, after connecting with the initial password "Neo4j" in the section saying "Connect to Neo4j Database access requires an authenticated connection.", I gets the famous error "ServiceUnavailable: WebSocket connection failure. Due to security constraints in your web browser, the reason for the failure is not available to this Neo4j Driver. Please use your browsers development console to determine ...".
So, after googling, I uncommented:
dbms.connectors.default_listen_address=0.0.0.0
dbms.connector.bolt.listen_address=:7687
BUT NOTHING WORKS.
The interesting thing is that I tried to install Neo4j on my laptop (locally) and it worked and when I used its "bolt://..." database access password on my remote access "bolt://..." database access it works.So, I'm not sure what is going on here, can someone help?

POSTGRES WINDOWS "server not listening" (beginner)

When logging to PGadmin and trying to access my databases (linked to a Rails app) I get an error such as 'server not listening'.
My password doesn't work
Yet when unsinstalled and reinstalled Postgres it works all fine again
It happend to me already and same as above solved the problem
Can someone points what setup is lost at some point (when restarting Windows?) that a new installation reinstates ?
You should probably have to start the service each time you need it:
On Windows XP, if you were logged in as a user with administrative rights, you could simply run cmd to start what in the old days we used to call a "DOS box" and run something like this:
NET START postgresql
NET STOP postgresql
http://1stopit.blogspot.com.ar/2011/10/how-to-start-and-stop-postgresql-on.html

Reading MS Access database in windows with ruby from mac

I have a rails application running on mac and an MS Access database located on windows server PC which data are changing daily.
Both may mac and windows PC are in the same network and also I have permission to connect to server remotely by telnet.
How may I just read data from my mac using ruby to publish it?
In database.yml, you should configure the db parameter, like adapter, host, port, username, password. I am not sure if there is Access DB adapter for Rails. And then, you can create your models corresponding to the DB tables. Please refer to this
I did the almost same thing, except I use Sqlite tables in local host and PSQL tables in remote server in development. Ater you finish the configure and models creation, you can use the model as normal, almost no any difference.

Firebird error "username and password are not defined" with Delphi application

I have an application made with Delphi 2006 and Firebird 2.5. For connection a use Interbase components from Delphi. I setting up in design time a TIBDatabase with username, password tc, and work ok, but when i want to run application in another pc (first i install Firebird 2.5 on it), i received this error:
Statement failed, SQLSTATE = 28000
Your user name and password are not defined. Ask your database administrator to set up a Firebird login.
What is this? How can I resolve that?
The message clearly states the username and password you're using to connect at design time in your development machine are not valid to the database server you're trying to connect on the other machine (let's call it production). From your message it seems it is not the same server you connect to at design time.
I suggest you to test this issue with ease to put the LoginPrompt property to true on the TIBDatabase component to allow it to ask the user for propper credentials before connecting. You will be able to connect using any valid username/password combination for that server. To be sure the combination are valid, try to connect using the isql command line tool, for example the command
c:\test>isql test.fdb -u sysdba -p masterkey
will connect to c:\test\test.fdb using default username and password. (the firebird root directory must be in the path environment variable for this to work)
Also, you can use the gsec command line tool to adjust the password for this engine or you can provide the create users and change passwords on that production machine before trying to connect to it.
On Windows, firebird default sysdba password is masterkey.
The solution that finally worked for me on windows was starting cmd.exe as administrator and running "C:\Program Files (x86)\Firebird\Firebird_3_0\gsec.exe" -user sysdba -password masterkey -mo sysdba -pw masterkey
This error is because the credentials for Firebird db is simply not stored in the database file. It's stored in the configuration file on the Firebird Server. If you copy over the DB file, and not the password -- you will have a different password.
On Ubuntu machines you can find out the password and username in the file, /etc/firebird/<version>/SYSDBA.password
It'll look something like,
ISC_USER=sysdba
ISC_PASSWORD="password"
Use those credentials to connect to the database file.
At 'isql-fb' from linux terminal and after the 'CONNECT' on database:
- I solved after delete(drop) and recreate the 'SYSDBA' user.
Observation: I had problems with file and folder permission at '/tmp/firebird' and I needed to use 'sudo' or root to open 'isql-fb'
Thanks.
I once got this error trying to connect to a Firebird 3.0.3 database using the Firebird 2.5 client libraries. I just forgot to update the client libraries to 3.0.3. Maybe this will help someone.

Resources