Home| Progetto| Web| Faq| Acronimi | ||||
Argomenti Documenti pubblicabili:1120
Scripts:1282 Documenti non pubblicabili:162 Categorie tematiche:68 .Net |_C# |_Visual basic.net |_Asp.net Active Server Pages C++ Cascade Style Sheet JavaScript Mysql Php Xml Java |_Java 2 Micro Edition |_Java server pages |_Java Servlet Oracle |_PLSQL PostgreSQL Unix
Oracle...
Info:
Trace backup file
Oracle...
Script:
Cercare le colonne in uno schema
Unix...
Tip:
How remove a file named -r
PLSQL...
Script:
Errori
Oracle...
Tip:
V$RECOVER_FILE vista dinamica sullo stato dei datafile
Oracle...
Faq:
Rename column
Shell scripting...
Script:
Script for archiving and compressing folder and file
A User Agent, like a web browser, uses HTTP to request a HTML document
Php Funzione mail()
In programming the danger of exploring the small details of coding is that you get obsessed with every line of code you write, thereby greatly reducing productivity.
In general, is not worth obsessing over code. On the other hand you should code with deliberation and intent. Steven Feurstein Oracle Magazine July /August 2004 A User Agent, like a web browser, uses HTTP to request a HTML document
|
Oracle
Home >Oracle > extracting ddl and source code from oracle database object
There are many ways to generate database objects ddl and source code. For example, from Oracle 10g and more I use datapump (parameter CONTENT=METADATA_ONLY) to extract all ddl of a database or schema. Program such as SqlDeveloper or Toad allow to extract object ddl easily with few mouse click. When you are sort of old school, and you still like sqlplus DBMS_METADATA.GET_DDL is the right function to get you ddl on screen or on file. -- defining output, remember DBMS_METADATA.GET_DDL return a CLOB that's why you need to set long SQL> set pagesize 0 SQL>set long 90000 -- I want on file just the ddl code, no feedback SQL>set feedback off SQL>set echo off -- I want the ddl code on a file so I spool SQL>spool ddl_source.sql -- extracting ddl of a table, parameters: object_type, object_name, owner SQL>select DBMS_METADATA.GET_DDL('TABLE','MYTABLE','SYSTEM') from dual; CREATE TABLE "SYSTEM"."MYTABLE" ( "N" NUMBER ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "SYSTEM" SQL> spool off -- extracting ddl of a procedure SQL> select DBMS_METADATA.GET_DDL('PROCEDURE','MYPROC','SYSTEM') from dual; CREATE OR REPLACE PROCEDURE "SYSTEM"."MYPROC" as begin dbms_output.put_line('HELLO THERE'); end; Warning: include(ads/text468x15.html): failed to open stream: No such file or directory in D:\inetpub\webs\fishscriptcom\documents\view_document.php on line 131 Warning: include(): Failed opening 'ads/text468x15.html' for inclusion (include_path='.;C:\php\pear') in D:\inetpub\webs\fishscriptcom\documents\view_document.php on line 131 Tutorial ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Script ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Comandi ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Codici errore ![]() ![]() ![]() ![]() ![]() |
Cerca
Oracle...
Info:
Se non viene definite tablespace permanente e temporanea
Anger is creative, depression is useless.
Dyson, Freeman J. Anger is creative, depression is useless.
Dyson, Freeman J.
Oracle...
Info:
Database link
Oracle...
Citazioni:
Designing an efficient Schema ...
Oracle...
Definizioni:
Transazione
Oracle...
Definizioni:
Set di caratteri (Characterset)
Shell scripting...
Script:
Formatting text as bold withing shell script
fishScript.Com is accessible by Mobile access technology
as mobile phones, Palm and Pocket PC .
Nicoleta e Marco Magnani tutorial, examples, courses, esempi, corsi, esercizi, appunti vari Dottoressa Nicoleta Dragu Formatrice Docente Insegnante Mediatrice Culturale Dott. Marco Magnani Universita La Sapienza Roma Master Computer Science Hunter College New York , Data Base Administrator DBA oracle System architect |