You do not have PL/ SQL with you, but you need to know the script of one of the packages inside your Oracle database.
So, I believe you will need the below sample codes:
Declare
i Integer;
fFileOpened utl_file.file_type;
cClob Clob;
Begin
For X In (Select u.Object_Name From User_Objects u Where upper(u.Object_name) = 'YOUR_PACKAGE_NAME') Loop
fFileOpened := prime_files.Openf(aLocation => 'YOUR_ORACLE_DIRECTORY', aFilename => x.Object_Name || '.sql', aOpenMode => 'w');
cClob := Dbms_Metadata.get_ddl('PACKAGE', x.Object_Name);
i := prime_files.WriteClob2File(aClob_loc => cClob, aOutFile => fFileOpened);
Prime_Files.Closef(aFile => fFileOpened);
End Loop;
End;
/
Programming Explorer : This is the place that I would like to share with you about my IT knowledge and experience. Some of the articles are copied from others in the internet. Some are originally come from my findings.
Subscribe to:
Post Comments (Atom)
-
Finally Windows 7 shows its face, but only Beta version now. The latest version of Microsoft's Windows operating system became popular s...
-
Environment: Visual Studio Code v1.83.1 Symtomps: 1). When you try to debug your Flutter project, you see this error message at the Terminal...
-
The easiest way to do it using the keytool command. Example: keytool -printcert -jarfile <apk_file>
No comments:
Post a Comment