Oracle databases are great in design and in their range of software tools. The SQL is great and their command line tool SQL*Plus makes the creation of procedures around a job, especially reporting type jobs, very easy. Oracle SQL Developer is a great user-friendly application to enhance the Oracle suite of software to help maintain Oracle databases. You can do reports straight from a view of the database with ordinary SQL and if it asks for more drilling down, Oracle has this great procedural SQL language called PL/SQL. For fast speeds as well, add Pro*C (Pro*C++ these days) into the mix. Pro*C(++) embeds SQL code into your C(++) code making use of cursors and other database smarts. Oracle is such a solid database, different arrangements of which work with large and small amounts of computing “grunt”. We discuss Pro*C in a primer tutorial Oracle Pro*C Cursor Primer Tutorial.
This tutorial shows you SQL*Plus with Windows Command Prompt sessions outlining some XML importing functionality involving SQL, sqlldr, PL/SQL, with supervision via Windows Batch File programs. With this supervision in mind you might be interested in Oracle and Unix Korn Shell Primer Tutorial.
So if you combine these two it is easy to create robust procedures that run really well.
Below is a bit of Oracle history.
Oracle Corporation is an American multinational computer technology corporation headquartered in Redwood City, California, The United States. The company specializes in developing and marketing computer hardware systems and enterprise software products – particularly its own brands of database management systems. Oracle is the third-largest software maker by revenue, after Microsoft and IBM.[3]
The company also builds tools for database development and systems of middle-tier software, enterprise resource planning software (ERP), customer relationship management software (CRM) and supply chain management (SCM) software.
Larry Ellison, a co-founder of Oracle Corporation, has served as Oracle’s CEO throughout its history. He also served as the Chairman of the Board until his replacement by Jeffrey O. Henley in 2004. On August 22, 2008, the Associated Press ranked Ellison as the top-paid chief executive in the world.[4][5]
Link to Oracle information … from Wikipedia from which quote above comes.
Link to Oracle home … Home of Oracle.
Link to Oracle downloads … Oracle Downloads.
Download Oracle SQL and rename to … select_xml.sql as required.
Download Oracle SQL and rename to … import_xml.sql as required.
Download Windows Batch File and rename to … load.bat as required.
Download Windows Batch File and rename to … load_pl.bat as required.
Download this input XML used in this tutorial and rename to country_state.xml if it interests you.
Other tutorials that use very similar data can be found here.
The links below were useful for this tutorial:
- PL/SQL Access Using DBMS_XDB
- Importing XML into oracle 11g database
- The Oracle BFILENAME Function
- ORA-22285: non-existent directory/file FILEOPEN operation for upload file?
If this was interesting you may be interested in this too.
17 Responses to Oracle XML Import Primer Tutorial