RubyMine connect to database - postgresql

I'm using latest version of RubyMine and when I try to connect to my docker container database, I see the database, but not any of the tables etc.
If I use an external program such as Psequal using the exact same credentials, it works fine so I know I'm using the correct credentials, IP address etc.
I have raised an issue with JetBrains, but can anyone shed any light on why I'm not seeing the tables?

Figured it out. in the data source properties window (either when creating the data source or by right clicking->properties)
Go to options and tick the box "Introspect using JDBC meta data"
Click apply and you see a downloading progress bar
Once completed, the tables and everything else is viewable.

Related

no such column exists for PostgreSQL db in Hasura (Graphql) console when adding column via DBeaver

I just tested modifying a table in my PostgreSQL db through DBeaver and it seems to have broken the db when looking at the data from the Hasura (Graphql) console. I simply added a column from Dbeaver. In Hasura I get an error "no such column exists". Anyone have any idea why or how I can fix this?
Hasura support helped me pinpoint it to the metadata stored in the Graphql console. Hope this helps someone else save a little time.
"If you make DDL changes to your database from outside Hasura, you must manually reload the Hasura metadata so that Hasura knows that something has changed and it adapts to those changes accordingly.You can reload the metadata by clicking on the settings icon on the top right in console."
you have to update the metadata, from the console it would be:
hasura metadata reload

Oracle Forms App cannot connect to DB (Oracle 10g)

I have a legacy application created in Oracle Forms.
It's a 10g Oracle database, and Forms 6i. Database works OK, I've set up TNS names correctly, tnsping works, I can connect using sqlplus and sql developer.
I think that Forms is also OK, since it gives me a form where the user should input credentials.
The problem is Forms users can't connect. That very first form that is being called has line:
LOGON('user','pass#TNS', false);
this line gives me form_failure, but I don't know what is the problem. Credentials are definitely correct.
If I try like this:
LOGON('user','pass#TNS', true);
then forms gives me an additional generic dialog to login if the former was unsuccessful. That won't let me in also (I've tried a lot of user/pass combos).
I also did some debugging (as much as I know in forms developer) but without success.
I would appreciate very much any help or something that could point me in right direction.
It is usually TNS problem, you have multiple tns files, double check all of them
TNS_ADMIN is not required

How can i know which object is preventing me from saving?

I'm working on a Microstrategy 8.1.525.151 Client with a Microstrategy Server 8.1. While creating a report i deleted some objects and after that, each time i try create or change any object (report, filter, attribute) i get the same error when i try to Save
The error is
'Cannot save, move or copy this object because it has been changed in the Metadata'
I've tried refreshing the schema both in the client and server, deleted and recreated the objects (it only works on the server but doesn't refresh on the client) and also the menu Administration/Server/Purge Cache Objects
With the exception of the Microstrategy knowledge base (which i cannot access) all i have found is mentions of changing multiple objects, however i don't know which objects may be causing this error if any
Thanks in advance for the help
If you cannot create/save any other object I'm afraid that your metadata are corrupted.
There are some utility provided by MicroStrategy to fix them, but I don't think they still support version 8.1. Your best shot is to try with MicroStrategy tech support.
You are the only one with this problem? other users can modify objects?
The way i used to solve it was to delete all attributes and reports i created since i started having such a problem, (it was easier because it was all in a single folder for attributes and a single folder for reports and i suspect in certain cases also other objects would need deletion) also restarted the intelligence server

Birt now showing up tables in create data set form

I am trying to create a data set (BIRT) in eclipse. I tested connection with the data source. It is successful. But while trying to create data set, data set form does not show up tables in data base.
I even tried firing query anyways, but eclipse freezes then.
Please suggest, if anyone has encountered similar problem.
Thanks!
I found the solution to the problem. BIRT needs Informix Jdbc driver to be installed in a particular way. So even though java code was able to read and write from Informix, BIRT was getting stuck.
I thought driver can not be a problem as java classes were working fine with the same drivers.
Hope this helps.

EF Code First not working on deploy hosting

I've an application using MVC and Code First for persistence.
Everything works fine in my development, but when I'm uploading to server, it doesnt work.
In any place i try to create a database, but it keeps me returning the following error: CREATE DATABASE permission denied in database 'master'.
The only thing that i do is override the OnModelCreating method just to map my app.
Anyone has this error?
Thanks
For a tutorial series that shows how to publish your Code First database and prevent Code First from trying to re-create the database in production, see
http://www.asp.net/mvc/tutorials/deployment-to-a-hosting-provider
The third tutorial in the series shows how to set up the Web.config file. The second shows how to deploy if you are using SQL Server Compact, the tenth shows how to deploy to full SQL Server.
You'll need to publish your database out to your hosting provider. Visual Studio has an easy way of doing this. In the server explorer tab, you can navigate to your database, right click and choose publish to provider. By doing this, you will not only export the scheme of your database, but you can also export out all data, stored procs, views etc.
You will need to adjust your code so that you are no longer trying to create a database on code run. Typically this approach is used for development, and you are no longer in development if you're moving to a hosting company. The changes may be in your global.asax, the dbcontext of your solution and any other place where you modified it to create the scheme for the database.
Hope this helps you some, and good luck on your project.