Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Loading tables from XML files
Yes, it is called XML-SQL(XSU) Utility. I ran a test this morning and
it worked. It is much simpler. I did not have to write anycode. I
needed to specify a different connect string to get it working. I
loaded JDeveloper 3.2.3 to do it. I believe, I could have done it by
downloading jdk 1.2 and using libraries that came with Oracle. My notes
are shown below. You can see the document in 'Oracle Application
Developer's Guide -XML Release 3(8.1.7).
Regards,
Shakir
XML file load into oracle
<?xml version='1.0'?>
<ROWSET>
<ROW num="1">
<EMPNO>8000</EMPNO>
<ENAME>Smith</ENAME>
<JOB>CLERK</JOB>
<MGR>7902</MGR>
<HIREDATE>12/17/2002 0:0:0</HIREDATE>
<SAL>800</SAL>
<DEPTNO>20</DEPTNO>
</ROW>
</ROWSET>
Install JDeveloper for java.exe or download jdk1.2 from web
Add to classpath.bat. Files shown here are from JDeveloper First three files are needed for XML load. The last three added to run java
set CLASSPATH=c:\Program Files\Oracle\Jdeveloper 3.2.3\lib\xsu12.jar; c:\Program Files\Oracle\JDeveloper 3.2.3\lib\xmlparserv2.jar; C:\Program Files\Oracle\JDeveloper 3.2.3\jdbc\lib\oracle8.1.7\classes12.zip; c:\Program Files\Oracle\JDeveloper 3.2.3\java1.2\dt.jar; C:\Program Files\Oracle\JDeveloper 3.2.3\java1.2\lib\jvm.lib;C:\Program Files\Oracle\JDeveloper 3.2.3\java1.2\lib\jvm_g.lib; C:\Program Files\Oracle\JDeveloper 3.2.3\java1.2\lib\tools.jar
run Classpath.bat
Following command worked on amd1400 oracle 8.1.7 personal with patch 8.1.7.3
java OracleXML putXML -user 'scott/tiger" -conn "jdbc:oracle:thin:@amd1400:1521:amd1400"
-user "scott/tiger" -filename "c:\emp.xml" emp
java OracleXML putXML -user 'scott/tiger" -conn "jdbc:oracle:thin:scott/tiger_at_amd1400:1521:amd1400"
-user "scott/tiger" -filename "c:\emp.xml" emp
emp - table name
-conn Url
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Mohammed Shakir INET: mshakir08816_at_yahoo.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Tue Jul 23 2002 - 16:34:47 CDT