Datagrip - table names do not appear when clicking on schema names in left-hand panel - datagrip

I recently installed Datagrip to view my Company's Postgres database, however I am currently unable to view the tables in the different schemas by clicking on the schema name:
In the image, I've clicked to open and show the ab-testing schema, however nothing appears below it. This behavior is consistent across all of the schemas in the database. I am able to use the query editor to query tables in the schemas (assuming i know the table names), yet I cannot see the names in the left-side panel. I am using datagrip 2020.2
Thanks!

I had the same problem with a MySQL database. As a test, I used the MariaDB driver instead of the MySQL driver as usual. This was intentional and not an oversight, but it was not a good idea!
The tables, views and server objects were not displayed. Although I was able to display the tables and views after activating Schema Properties -> Advanced -> "Introspect using JDBC metadata", the server objects were not displayed. Working with the displayed tables and views was not possible in the usual way.
Only when I used the MySQL driver again, everything worked correctly again. The tables, views and server objects were displayed correctly and the work with it was possible in the usual way.
As a small quintessence I would like to recommend to all who "struggle" with similar problems to check your chosen drivers. Maybe the problem is caused by choosing the wrong driver, as it was in my case.

Whick kind of message do you get when instrospecting the schema?
I had a java.io.CharConversionException caused by a not valid UTF-8 string.
If this is the case, you can add the following VM option -Ddb2.jcc.charsetDecoderEncoder=3.

Related

Oracle APEX application failing to read data present in database

I am working on an APEX application and am faced with an issue in which data present in the database is not read by the application. Rather, the application reads some of fields from the database and not the rest without throwing any error message.
This small application has a main page that contains tombstone information about work projects we are engaged in and is represented by approximately 30 Oracle items of type ‘Database column' that are the fields of the main project overview table. This main page also has several interactive reports that allow the users to manipulate data from other related tables like project costs, project deliverables, project recommendations, etc. While the functionality to create/update/delete from these related tables works perfectly, I am still unable make the same functionality work for the main table and am unable to figure out why as Oracle is not giving me an error message. The changes I submit in the application clearly hit the database as I can see the record updated in the Oracle Object Browser or by querying in SQL commands. I have visually depicted the situation below and thank you in advance for any assistance.
Open project number ‘1982’ and populate with dummy data and ‘save’.
Entered data appears in the main table correctly
Open record project number 1982 and observe that only some of the fields are
shown in the application even though the fields are clearly populated accurately in the underlying table.

'Types' node not being listed in the metadata browser in the Connections navigator in sqldeveloper

I am connected to an Autonomous DB in Oracle Cloud. I created a TYPE database object in my schema. When I try to view the details of the TYPE, the metadata browser does not even list "Types" as a node in the tree structure.
The owner of the type is the schema that I am logged into. I accessed the Object Browser via SQL Workshop in Oracle APEX and I can see that the type that I have created is displayed there.
Is there any setting that I can modify within SQLDeveloper so that it will show me the Types node in the navigator?
sqldeveloper version: Version 19.2.1.247
Build: 247.2212
I am using this on MacOS
The Autonomous team asked us (SQLDev) to hide a bunch of stuff...like indexes, materialized views, etc.
They weren't supported in the first iteration of the service...but now they are.
In a future release (20.2, maybe) these objects will all be displayed again, whether you can create them or not.

Heroku pgAdmin4 hide databases which I am not allowed to access

As the title states, if I connect to my heroku posgresql DB via pgAdmin4 I see many other databases which I am not allowed to access.
I know there must be a restrction DB field somewhere but I cant find it.
In pgAdmin4 its not in the advanced tab as stated here:
StackOverflow similar Question pgAdmin3
Actually, you can hide the rest of databases.
When you fill in all credentials and connections parameters for the serevr, in order to avoid parsing so many databases, we have to white list only those databases we care about.
Go to the Advanced tab and under db restriction copy the database name (it’s the same value as the Maintenance database field filled earlier). Remember - you have to set up this parameter BEFORE you hit "Save" as you cannot modify this field after saving.
Source: https://medium.com/#vapurrmaid/getting-started-with-heroku-postgres-and-pgadmin-run-on-part-2-90d9499ed8fb
You're probably using a Hobby-Dev or Hobby-Basic database. These used shared infrastructure. Although you can see the other (obfuscated) DB's in the list, you do not have access to them. To avoid seeing them, specify the DB name in your connection settings in pgAdmin.

Jetbrains Datagrip cannot connect sql server without specify database

i try to use Datagrip as my primary sql server query tools, bit i meet a problem that i can not move forward.
When i setup the project data source, i have to choose a Database, otherwise it will goto the default tempdb, how i can work like sql server management studio, that i can see all database list.
i have tried both jTds and Microsoft drivers, both not works.
or can i choose multi-database? i do not want to create one data source for one database.
if i connect to mysql, it works like expected.
tks
It is possible to connect without specifying the database. Just leave this field blank. After entering other settings (host, port, user, password), go to Schemas tab in Data Source properties and select all the Databases and schemas you want to work with. Then invoke Synchronize action for this Data Source in Database tool window.
DataGrip 2016.2 EAP claims to have support for showing multiple databases. See https://blog.jetbrains.com/datagrip/ and find for "Database View". Unfortunately, as of the date I'm writing this, it doesn't seem to work at all.
Unfortunately, Andrey's suggestion did not work for me.

oracle - Schemas issues when migration from discoverer to OBIEE

I'm working on migrating some reports from Oracle Discoverer to OBIEE. I've already exported the layouts from discoverer to OBIEE. I have all I need in the OBIEE Admin tool now, but when I try to perform this operation:
I got this message:
I've read in many forums that this is because of the query (enter link description here) but I've executed the query in SQL Developer and all is fine.
Any idea?
Thanks,
I can see from the icon on your object that it is an Opaque View that your trying to run View Data on.
This is probably because of a syntax issue in your opaque view. Make sure the code in the opaque view doesn't end with a semi-colon or slash, that will cause problems. Try eliminating any blank lines, if there are any. However, without knowing exactly the syntax of the code it's impossible to say exactly what the cause is.
It's also possible that there is a connection script attached to the connection pool you are using to View Data, running on connection or before execution with bad syntax.
Otherwise have a look in the Admin Tool log to see if there's more information about what is causing the error. It will usually contain more detailed information than is passed back through the GUI.

Resources