I know this SQL query provides the table structure:
DESC TableName;
But do we have a query which will provide table structure of all database tables in one go/single query/command? BTW, I am using SQL Developer.
Thank you in advance.
I know this SQL query provides the table structure:
DESC TableName;
But do we have a query which will provide table structure of all database tables in one go/single query/command? BTW, I am using SQL Developer.
Thank you in advance.
The answer can be found here. You can query
SELECT * FROM ALL_TAB_COLUMNS
or
SELECT * FROM ALL_TAB_COLS
Not a command, but if you're in the GUI, getting all that information back in a single query result set could be a challenge to process, at least for this human it is.
So instead, you could also build a Data Dictionary report, complete with Referential Integrity diagrams - not sure if your peoplesoft box will actually have any foreign keys, but it's worth a shot.
File > Data Modeler > Import > Data Dictionary
Point to your existing SQL Developer Oracle Database connection.
Select the SCHEMA you want to pull from - check all if you want everything, but be prepared to wait for awhile, better to limit yourself to the application schemas.
If you're just interested in tables, just pick those, but I'm guessing VIEWs would also be of interest - there's a checkbox on the bottom to quick toggle everything ON.
Click Finish.
When you're done, you'll have a design and your data model. You'll see the diagram.
You can then go to File > Data Modeler > Reports
Choose either the Tables or Table Views report.
Set your format, and click 'Generate Report'