IN SQL Server there is a tasks feature and then you can ‘generate scripts’ which is useful for things like views and stored procedures, or more.
In Oracle, can I generate such a copy of Views? How is this done? I am using PL SQL.
I am trying to update my Oracle database on my laptop. REcently many new views and stored procedures were added to the database I am working on at job. I also work from laptop for development.
Rather than backup the entire database, if I can just copy these views and sp’s would be far easier.
It sounds like you are probably looking for the
DBMS_METADATApackage and theGET_xxxfunctions within that package. This is what tools like SQL Developer and other GUIs will call to generate the DDL for a particular object.So, for example, if you wanted to get the DDL for the
EMPtable in theSCOTTschema in SQL (or PL/SQL), you can