Posts Tagged ‘XMLDB’
XMLDB tips: #1. Show XMLType in SQL*plus
Suppose you have an object type named EMPLOYEE_T in the hr schema and want to generate an XSD. This is standard functionality that is offered by XMLDB. You can execute the following statement:
select DBMS_XMLSCHEMA.generateSchema('HR', 'EMPLOYEE_T', 'employee') from dual;
The result is the XSD that is returned as an XMLType. Different tools have different ways of dealing with this.
SQL*plus
The result will only be partially visible.The way to solve this is to set the long size:
SQL>set long 100000 pages 0
SQLDeveloper
In SQL developer, you can select an XML document, it will display the entire document in one big line. You can view the entire document by clicking on the three dots (…) at the right hand side. When you copy this, pay attention: a lot of trailing whitespaces are included. We managed to downsize the document from approximately 3 MB to 150 kb, just by removing these trailing spaces!
JDeveloper10g
Unfortenately, this approach does not work in JDeveloper. If you execute the statement in a SQL Worksheet, it shows an empty cell as a result.
Blogs
- 26 Jul
- 10 Jun
- 02 Jun
- 26 Mar
- 25 Feb
-
05 Nov
Some tips & tricks on migrating SOA Suite 10g to 11g – Part 2
- 04 Nov
- 02 Nov
- 25 Oct
- 20 Oct
- Best practices 2 - Web Services
- Fault handling in Oracle SOA Suite 11g - Part II
- Fault handling in Oracle SOA Suite 11g
- Migrating Web Services from JDeveloper 10g to 11g
- Migrating EJB 3 applications from OC4J to WebLogic
- Best practices for BPM, SOA and EDA
- Some tips & tricks on migrating SOA Suite 10g to 11g - Part 2
- Logging messages in Oracle SOA Suite 11g using OWSM
Loading ...