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...
-
If your environment is something like below: Windows operating system, either 10 or 11 Python 3.13 You are trying to install pymssql , and Y...
-
You may refer to the sample codes below from us. We use Windows platform as an example: import webbrowser def main(): fUrl: str = 'h...
No comments:
Post a Comment