I am using tank_auth library for authentication in Codeigniter. I want to draw ER-diagram for tank_auth sql file.
When I imported sql file (reverse engineering) in mysql workbench it shows all table without any relationship between tables (users, user_profiles, user_autologin, login_attempts, ci_sessions ).
how could I get Er-diagram from given sql file ?
MySQL Workbench derives relationships in diagrams from existing foreign keys. If your tables use engines that don't support foreign keys no relationships can be derived automatically.
Go to to "Database" Menu option
Select the "Reverse Engineer" option.
A wizard will be open and it will ask for db configuration/source
On finish it will generate the ER Diagram for you
Related
Data was sent to our company with PostgreSQL, but we are prohibited to use the tools of PostgreSQL , permitted the use of only Oracle.
How to migrate data from PostgreSQL to Oracle without using a third party application(they are also prohibited)? You can only use the tools of Oracle.
I found this article https://support.oracle.com/knowledge/Oracle%20Database%20Products/2220826_1.html but we don't have Support Identifier
We have one .sql file. It weighs 8 Gigabytes.
It looks like you have so many impediments in your company. Regarding Oracle's SQL Developer Migration Workbench, unfortunately it does not support the migration of PostgreSQL databases. However, the following 3rd-party software tools are available and may assist in migration, but I am afraid you cannot use them as you said that those products are forbidden:
http://www.easyfrom.net/download/?gclid=CNPntY36vsQCFUoqjgodHnsA0w#.VRBHKGPVuRQ
http://www.sqlines.com/postgresql-to-oracle
Other options will only move the data from your Postgresql database to Oracle database, it means that you must have the DDLs of the tables before to run the import:
To move data only, you can generate a flat file of the the
PostgreSQL data and use Oracle SQL*Loader.
Another option to migrate data only is to use Oracle Database
Gateway for ODBC which requires an ODBC driver to connect to the
PostreSQL database, and copy each table over the network using
sqlplus "COPY" or "CREATE TABLE AS SELECT" commands via oracle
database link.
Also, Oracle has discussion forum for migrating non-oracle databases to Oracle.
http://www.oracle.com/technetwork/database/migration/third-party-093040.html
But, if you have only a sql file, you should look at it to see whether you have both DDLs ( create tables and indexes, etc ) and the data itself as insert statements. If so, you need to split it and treat the DDLs to convert the original data types to Oracle datatypes.
Hello I am trying to build an application using Oracle ADF.
I have designed my database using Oracle Workbench have all the tables in the database already linked.( be it one to many or one to one mapping with the primary and foreignm keys.) i hope to include triggers too.
My problem is when i do all these links in workbench.
Will it automatically link the tables up using Association when i I load the tables as entities.
Will it also create views and view links too for me.
Or i should just create the tables in the database and do the associations and links in jdeveloper instead when i start working on the UI of my project.
If you use New - Business Tier - ADF Business Components - Business Components from Tables and go through the wizard pointint your tables in the database, JDeveloper should create Entities, link them with Associations, also create View Objects and link them with View Links based on your tables' foreign keys.
Triggers won't be reflected in the application.
I am trying to re-engineer a DB schema using oracle sql developer data modeler version 3.0.04 using this as a reference:
http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/sqldevdm/r40/mod1_dm_v4/mod1_dm_v4.html
The schema is huge and all the tables are in the "synonyms". Even though I choose the synonyms (regardless of the number of them) they are not visible in the final diagram. If I choose from "tables" they are displayed in the final diagram.
Does anybody know how to fix this? Should I use a different version? I have to do this process using sql developer only, but is there an easier tool?
Thanks
You can't import only the synonyms. You need to import the underlying tables that those synonyms point to.
If you have SELECT privs on the tables, you'll be able to import them to your relational model in Oracle SQL Developer Data Modeler.
In my symfony project i need to generate schema from specific tables not all database tables ,so please tell the way to do if it is possible?
If you use the command build-schema you can generate a schema from the database that is configured for the project. The schema.yml in the config folder should contain all the tables, and you can delete the tables you do not need, and then use the commands build-model, build-form, and build-filters in order to create the classes for the remaining tables. This way, there will only be classes for the tables that you want.
Hope this helps!
My company has an existing Database with dozens of DB tables with various relationships.
Is there any tool available that will generate a relationship diagram?
I primarily use SQL Developer 3.0.4 on an Ubuntu 11.10 machine by the way.
SQL Developer Data Modeller can reverse engineer a database schema & make a start on an ERD using the foreign keys. Obviously some manual work will be needed once the initial import has been done in order to generate a nice looking meaningful diagram.
Since you already have SQL Developer installed, you can make a start with File->Data Modeller->Import->Data Dictionary.