Как использовать ShemaSpyGui для просмотра схемы базы данных

1953
gstackoverflow

Я установил Postgre сегодня и хочу посмотреть базу данных Шема.

Я решил использовать schemaSpy и скачать его, а также schemaSpyGui

enter image description here

и тогда я вижу:

enter image description here

This is the command (password not displayed!) SchemaSpyGUI has generated: java -jar "D:\free\schemaSpy_5.0.0.jar" -dp "D:\free\postgresql-9.1-903.jdbc4.jar" -t pgsql -db marc_db -host localhost -port 5432 -u marc -connprops "D:\free\schemaSpyGUI20090302\properties\pgsql.properties" -o "D:\free\schemaSpyGUI20090302\marc_marc_db_"  Failed to query Graphviz version information with: dot -V java.io.IOException: Cannot run program "dot": CreateProcess error=2, The system cannot find the file specified Using database properties: [D:\free\schemaSpy_5.0.0.jar]/net/sourceforge/schemaspy/dbTypes/pgsql.properties Gathering schema details...  No tables or views were found in schema 'marc'. The schema does not exist in the database. Make sure that you specify a valid schema with the -s option and that the user specified (marc) can read from the schema. Note that schema names are usually case sensitive.  3 schemas exist in this database. Some of these "schemas" may be users or system schemas.  information_schema pg_catalog public  These schemas contain tables/views that user 'marc' can see:  information_schema pg_catalE=2og publicI=2 

Я установил Graphviz2.38

А если из cmd я наберу

C:\Program Files (x86)\Graphviz2.38\bin>dot -V dot - graphviz version 2.38.0 (20140413.2041) 

Пожалуйста помоги.

Обновить

после консультаций в комментариях я добавил path\to\Graphviz2.38\binк Pathпеременному окружению, и теперь я вижу следующее:

This is the command (password not displayed!) SchemaSpyGUI has generated: java -jar "D:\freelance\db_things\schemaSpy_5.0.0.jar" -dp "C:\Users\redwhite\.m2\repository\postgresql\postgresql\9.0-801.jdbc4\postgresql-9.0-801.jdbc4.jar" -t pgsql -db marc_db -host localhost -port 5432 -u marc -connprops "D:\freelance\db_things\schemaSpyGUI20090302\properties\pgsql.properties" -o "D:\freelance\db_things\schemaSpyGUI20090302\marc_marc_db_"  Using database properties: [D:\freelance\db_things\schemaSpy_5.0.0.jar]/net/sourceforge/schemaspy/dbTypes/pgsql.properties Gathering schema details...  No tables or views were found in schema 'marc'. The schema does not exist in the database. Make sure that you specify a valid schema with the -s option and that the user specified (marc) can read from the schema. Note that schema names are usually case sensitive.  4 schemas exist in this database. Some of these "schemas" may be users or system schemas.  information_schema pg_catalog pg_toast_temp_1 public  These schemas contain tables/views that user 'marc' can see:  informationE=2_sch emapg_catalog publicI=2 

моя шма выглядит так:

enter image description here

3
Вы добавили `C: \ Program Files (x86) \ Graphviz2.38 \ bin` в свой путь, чтобы Java могла найти его из каталога, из которого выполняется (D: \ free)? Ƭᴇcʜιᴇ007 9 лет назад 1
@ Ƭᴇcʜιᴇ007 теперь у меня другая проблема. Вы можете помочь? gstackoverflow 9 лет назад 0
Вы должны придерживаться одного вопроса на вопрос. Решил ли добавление его в путь вашу первую проблему или нет? Ƭᴇcʜιᴇ007 9 лет назад 0
@ Ƭᴇcʜιᴇ007 тема обновлена gstackoverflow 9 лет назад 0
@ Ƭᴇcʜιᴇ007 вы готовы помочь, если я создам новую тему? gstackoverflow 9 лет назад 0
(Новая) ошибка говорит о том, что она ищет базу данных (схему) с именем «Marc» и ее не существует. У тебя есть один? Ƭᴇcʜιᴇ007 9 лет назад 0
У меня есть shema с именем public, но, как вы можете видеть, поле для shema отсутствует на интерфейсе пользовательского интерфейса. gstackoverflow 9 лет назад 0
@ Ƭᴇcʜιᴇ007 как то так http://joxi.ru/vn2Y8KzgfbzPm6.jpg?d= gstackoverflow 9 лет назад 0
Может ли файл pgsql.properties ссылаться на схему Marc в нем случайно? Ƭᴇcʜιᴇ007 9 лет назад 0
@ Ƭᴇcʜιᴇ007 выглядит как нет http://joxi.ru/48AnXL0EIzPjmO.jpg?d= gstackoverflow 9 лет назад 0
Он видит эти схемы: information_schema, pg_catalog и public. Есть ли в этих БД эти схемы? Ƭᴇcʜιᴇ007 9 лет назад 0
@ Ƭᴇcʜιᴇ007 Да, у marc_db есть «публичная» шма gstackoverflow 9 лет назад 0
Хорошо, может быть, я должен перефразировать - есть ли в этих БД все три схемы? :) Или из перечисленных, которые не являются "публичными"? Ƭᴇcʜιᴇ007 9 лет назад 0
Если я правильно понял, у меня есть 3 базы данных. и у каждого есть только одна шема с именем «публика». http://dl1.joxi.net/drive/0005/3037/338909/141004/11b92257ad.jpg gstackoverflow 9 лет назад 0
В конце концов я скопировал команду из сообщения об ошибке и добавил ** -p пароль -s shema ** и выполнил его из cmd, и я добился успеха gstackoverflow 9 лет назад 1

1 ответ на вопрос

0
Ajit Goel

I was able to fix this issue by adding C:\Program Files (x86)\Graphviz2.38\bin to my "Path" so Java can find it from the directory is executing from.

Похожие вопросы