How to set SAXParser at command-line interface to create a large XML file

Hi,
I am trying to create a large XML file (more than 50 MB) by selecting from Oracle database but failed because of "out of memory" error. According to "Oracle XML Developer Guide", we should use SAXParser to parsing a large XML file. But there is no example to show how to set SAXParser at command-line
Following is what I use to get xml files. It works only when the file is small.
java OracleXML getXML -DateFormat -withDTD -rowsetTag PO_HDR -conn
"jdbc:oracle:oci8:@server_name" -user "ID/password" "select * from table_name"
When I set SAXParser at the way below,
java oracle.xml.parser.v2.SAXParser OracleXML getXML -DateFormat -withDTD -rowsetTag PO_HDR -conn
"jdbc:oracle:oci8:@server_name" -user "ID/password" "select * from table_name"
it failed with the error message: "In class oracle.xml.parser.v2.SAXParser: void main(String argv[]) is not defined"
Does anyone know how to solve the problem? I'll be appreciated very much for your help.
Yi

here are my ideas.
register the xml schema.
using xmldom, generate the desired xml output and return as xmltype.
then you can use something like this to check.
declare
xmldoc xmltype ;
begin
   -- populate xmldoc from you xmldom function
   -- validate against XML schema
   xmldoc.isSchemaValid(schema_url, root_element);
   if xmldoc.isSchemaValid = 1 then
        --valid schema
   else
        --invalid
   end if;
end

Similar Messages

  • How to get the command line interface for WRT160NL router

    hi,
    How can I get the command line interface for WRT160NL router. please suggest.

    If you’re trying to access the web-based interface of your router, just use its default IP address (192.168.1.1). The Username is left blank and the Password is "admin". Here’s a quick link on how to do that.

  • -info XML format for Compressor's command line interface?

    Hi Everyone,
    I've got a brand new copy of Final Cut Studio HD that I'm using for an encoding project. I'm trying to figure out how to use Compressor's command line interface. I want to give it a MPEG-2 file and a .scc (closed caption) file. I can see how to specify the source file, but I'm having trouble figuring out how to specify the SCC file. As best as I can understand, I'm going to need to use the -info <XML> option, but I haven't found any documentation for this. Can someone point me to the appropriate documentation?
    Thanks!
    - Kevin

    I get an error when I do exactly what you suggested. My problem is not if the XSU is able to locate the xml file because I know it is able to parse it since it picks up an error in it such as if I make the "ROW" element "row" - ie small caps instead of big which is not recognised by XSU. I use the url of the xml file as specified when I open the xml file in internet explorer. The XSU does confirm it inserts the document successfully with my original command but the document simply doesn't get inserted into the table. Specifically, if anyone is to insert the xml file I have shown in Oracle, how would it be approached successfully?
    Your help is very much appreciated.

  • Can I create a new folder using the command line interface

    Hi.
    Is there a way to create a new folder in an existing business area, from the command-line?
    We have an application that provides an interface for the user to create a table and load flat file data into the table. After loading the data, the user will verify the loaded data using discoverer. If there is a command line interface to create a new folder, then the script that created the table can also call the discoverer command line to create a new folder for the new table. Is this possible?
    Thanks

    Hi,
    I think I am having a similar question here. I am using Oracle 10g on Windows xp.
    I logged in to Oracle from command prompt. I used command “create directory myFunDir as 'd:/funDir';”. Oracle returns: “Directory created”. But I couldn’t find the directory “myFunDir”! Where is it?
    Thanks.
    Newbie.

  • How do I create a "command-line-interface" for a game?

    Hey people,
    For a game I need to make a DOS-like command-line-interface where the user has at least 3 options to answer with, does anyone know how to go about this?
    Hope someone here can help me out!
    Kind regards,
    Angela

    I'm not sure what part of this you are having difficulty with. Imagine for a moment that instead of asking for your end user to type something into a text-entry field and to monitor what they type (perhaps when the ENTER key is pressed), that instead you provide 3 buttons on your stage. Responding to a button press in this scenario is much the same as responding to typed user input - your movie does something based on user interaction. Going back to the user entered text scenario, a text or field sprite can detect the ENTER key being pressed and examine the string the user has entered, something like:
    on keyDown me
      if _key.keyCode = 36 then
        stopEvent
        sText = sprite(me.spriteNum).member.text
        case sText of
          "hack": -- do whatever you need to here
          "research":
          "wait":
          otherwise:
        end case
      else
        pass
      end if
    end

  • How can I make command line interface (CLI)

    Hi All,
    How can I make command line interface ( CLI ) In Java using JTextArea or JTextField.
    Thanks In advance..
    Vikas Sahu

    We do agree with your assessment and have plans to improve all of these aspects. Unfortunately, it takes a long time and a lot of work to turn "working" software into "simple to use" software, but we are working on it, and it is a high priority for us to make it simpler to use and develop for and administer Coherence.
    Peace,
    Cameron Purdy | Oracle Coherence

  • Where is the command line interface in DW CS3 on a Mac?

    I have seen other forums where they instruct you to use the command bar or command line interface to set permissions and what not, but I do not see where that might be in Dreamweaver CS3 on a Mac. Can someone assist me in locating this feature?
    Thanks in advance,
    Todd Temple > T2 Design

    There is no command line interface in Dreamweaver. It's a tool for editing web pages.
    However, you can use Dreamweaver to set the permissions on web pages on your remote server like this:
    In the Files panel, select Remote view from the drop-down menu at the top right.
    Select the file(s)/folder(s) for which you want to change the permissions.
    Right-click and select Set Permissions from the context menu.
    Set the permissions in the dialog box that opens.
    As the dialog box warns you, this command does not work on all servers. If your remote server won't allow you to change permissions through Dreamweaver, you need to log into your hosting company's control panel, and change the permissions there. If you don't know how to do it through the control panel, ask your hosting company for help, as the method depends on the control panel used.

  • Grant and revoke privilages from command line interface

    hi all,
    I have a lot of users that I need to give them a set of privileges to folders and containers of the repository, i thought that using the command line interface should help in loading a script.
    i checked the manual for the syntax for such a command (i.e. to grant privileges) but i couldn't, searched the net and i didn't find anything.
    So can we grant privileges from the command line interface and how ?
    by the way is there anyway to create users from command line interface as well ?\
    thanks in advance and have a good one

    The granting of access rights cannot be done with a CLI script in Designer. Instead you have to use the Designer API Pl/Sql packages.
    For detailed information, refer to the "API and Model Reference Guide", which is
    installed with the Designer Repository Documentation, or can be found on OTN > Doco > Designer site.
    Scroll through that document to the Reference section. You will need to read up on two topics at least: Workarea and Container Context, Privileges and Access Rights.
    To grant rights, the easiest way is to grant them "just like some existing ones".
    To do this, you'll need a Pl/Sql procedure with 5 input parameters:
    1) the workarea context
    2) the container to look at
    3) the user to look like
    4) the container to grant access to
    5) the user to grant access for
    The Pl/Sql procedure then needs to make a series of Repository API package calls to set context and get container IRIDs:
    JR_CONTEXT.Set_Workarea (workareaname) - to set the context workarea
    JR_CONTEXT.Set_Working_Folder (sourcefoldername) - to specify the source container
    JR_CONTEXT.Working_Folder (sourcefolderid) - to get the ID of the source container
    JR_CONTEXT.Set_Working_Folder (targetfoldername) - to specify the target container
    JR_CONTEXT.Working_Folder (targetfolderid) - to get the ID of the target container
    OR you can just do a couple queries after you set the WA CONTEXT such as ...
    Select IRID from CI_Application_Systems where NAME = <sourcefoldername>
    Select IRID from CI_Application_Systems where NAME = <targetfoldername>
    Then you get the list of rights desired, and grant them back to the target user.
    JR_ACC_RIGHTS.Get_Acc_Rights (sourcefolderid, sourceusername) > AccessList
    [gets list of existing rights for some user on a container]
    JR_ACC_RIGHTS.Grant_Priv_List (targetfolderid, targetusername, AccessList, Cascade? = TRUE)
    [to set the list of rights for a user against the target container and its subcontainers]
    There are other ACC_RIGHTS packages, like Grant_Priv, Revoke_Prive, Revoke_Priv_List, etc that you can use as well to build up a set of access management scripts.
    Hope this helps

  • Advice on constructing a test engine and formatting a spreadsheet test file to perform command line interface testing on a product through telnet or serial interface

    Advice on constructing a test engine and formatting a spreadsheet test file to perform command line interface testing on a range of products through telnet or serial interface and output pass/fail results.

    If I understand correctly, you want to do the following:
    1. Create one or more tab-delimited files that specify a series of query strings (that LabVIEW will send to your products) and expected reply strings (that LabVIEW will look for in response to each query)
    2. Run your LabVIEW program (the test engine) and have it execute one or more test scripts from file using either TCP/IP or serial communication to your units under test
    3. Track how many of the queries are met with the expected response, and output an indication of whether each step passed or failed
    If this is close to correct, then I've attached a sample test file and LabVIEW VI as an example; I chose the TCP/telnet method because it allowed me to use the ni.com Web site to simulate my tes
    t hardware. If you happen to own the LabVIEW Internet Toolkit, there's a VI called "Telnet Play Script" in the Telnet palette that does something fairly similar using TCP. The same general model would also work for Serial communications.
    Hope it helps,
    John Lum
    Attachments:
    test_engine.zip ‏24 KB

  • Advice on constructi​ng a test engine and formatting a spreadshee​t test file to perform command line interface testing on a product through telnet or serial interface

    Advice on constructing a test engine and formatting a spreadsheet test file to perform command line interface testing on a range of products through telnet or serial interface and output pass/fail results.

    Hello j. smith,
    TestStand gives you the ability to create "sequence files" which are lists of tests to be run sequentially or in parallel. These tests can be written in any language: LabVIEW VIs, C/C++ DLLs, EXEs, ActiveX objects, .NET Assemblies, etc.
    You can run your TestStand sequence files from a command-line prompt using the following syntax:
    \bin\SeqEdit.exe" /quit -run
    This will launch the TestStand Sequence Editor (and optionally prompt you for TestStand login information if you have this configured), run your sequence file, then exit.
    If you're using the TestStand process model, it can output your results to a report file or database if you configure this. To use a TestStand process mo
    del to execute your sequence file, use the following syntax:
    \bin\SeqEdit.exe" /quit -runEntryPoint
    Here's an example:
    C:\>"C:\Program Files\National Instruments\TestStand 3.0\bin\SeqEdit.exe" /quit -runEntryPoint "Single Pass" "C:\Program Files\National Instruments\TestStand 3.0\Examples\Demo\C\computer.seq"
    Note that multiple sequences and sequence files can be specified on the command line.
    TestStand supports remote sequence execution using DCOM (Distributed COM), which is an east way to remotely execute tests. But as for running tests or commands through a telnet or serial interface, you would have need to check Windows documentation on how to execute command-line remotely like this.
    David Mc.
    NI Applications Engineer

  • Can I use the Command Line Interface on Unix?

    Hi,
    We use 9iAS on Unix. We want to use Discoverer Command Line Interface on unix to export the worksheet query result. Can anyone know how to do this? I couldn't find out the command similar to dis5usr.exe for windows version.
    Thanks.
    Richard Qiu

    Hello Richard
    You can use the Discoverer EUL Command Line for Java utility. This was released with Discoverer 10g (9.0.4).
    Please refer to the documentation for more information on how to use this command line interface: 'Oracle Discoverer EUL Command Line for Java User's Guide 10g (9.0.4), Part No. B10274_01 (PDF)' The document is available from OTN at http://otn.oracle.com/documentation/discoverer.html
    Regards
    Discoverer Product Management

  • Command Line Interface

    Hi all,
    I am trying to write a program with a command line interface and I am running into a few problems.
    I read the commands issued by the user as :
    BufferedReader in = new BufferedReader(
                new InputStreamReader(System.in));
    String command = in.readLine();Question 1. Is this the right way?
    Question 2. I have to read a password from a user. How do I stop the echo of this password (or change the echo to something like *)? Is it possible to do that from a Java program?
    Question3. While the user is typing a command, the system wants to output a message. This jumbles up the echo of the command the user was typing. So I need to show the message from the system on a new line, and then again show the command the user was typing .. or something similar which keeps the whole thing neat. How do I do it?
    Some of these requirements might not be possible to implement because of the inherent limitation of the command line interface. :-)
    Please help me with this.
    Thanks,
    Binil

    I raised this issue also in another thread.
    Actually I am pretty p.o. This issue pops up over and over again but the people at Sun systematically deny the problem and simply do nothing about it. I know, it's not as interseting as EE, 3D graphics or Swing, but it is asked for by many peaople over and over again.
    I simply don't understand what is so difficult in the method:
    System.in.setEcho(boolean) or System.in.setEcho(char)
    Your solution will work, but it is not platform-idependent. That os what Java is all about or am I wrong?
    hi,
    yah thatz the correct way to read things typed
    typed in the command prompt. Am not sure whether you
    will be able to mask the character typed to show a *
    (but i supoose itz not possible). If you are going
    to do any CLI have a look at JNICurses library
    available at
    http://home.att.net/~psantoro/jnicurses/jnicurses.html
    hope that was useful.
    cheerz
    ynkrish

  • Newby question about command line interface

    Arch is my first linux distro and havnt used others yet.
    Just wondering, does Command Line Interface looks and functions all same on other distros?
    Because, if u can chose desktop environment like KDE, GNOME and Xfce with other Linux distros as well, then what is difference between others.
    Linux is still quite hard for me and just wanted to know if there is "special" stuff that arch can do.
    To me, they all looks same with same desktop environment...
    thanks

    When you mention the "command line interface" (CLI) there are a few things involved: a terminal emulator, a shell, and the programs you have installed. That said, as far as running programs goes
    The terminal emulator is the application that hosts/shows your shell. In KDE it's (by default) Konsole, GNOME uses gnome-terminal, others might use xterm, aterm, rxvt, rxvt-unicode or one of many others. Different emulators provide some extra features (e.g. tabs) and they all differ in memory usage, speed, and integration (or not) into a given desktop environment. That said, they all pretty much work the same for launching programs and operating in a shell: you type commands and press enter.
    The shell is what runs your commands and also provides some scripting capabilities. Generally, bash seems to be the most used as a default shell. You can change your shell if you wish, as some shells provide extra features like programmable command completion. Other shells are lighter or more POSIX-compliant. For a starting user, you're well enough off just using the default (probably bash) until you find a reason for which you must have a different shell.
    Finally, the programs installed will affect what you can run in a terminal. Different distros will have different quantities of programs installed by default. (Arch's base install is very minimal.)
    Now, with regards to Linux, at the end of the day all distros are Linux with some desktop environment (DE) and some Linux apps. The DEs and applications are taken from the same source, but some distros provide patches for extra capabilities or configuation. However, if you see something you like in openSUSE, say, you can download the software, patch it, and configure your Arch to work like openSUSE. Each distro, though, has its own focus and philosophy which affects:
    * how many and what applications are installed by default
    * amount of configuration required after install
    * stable vs. bleeding edge
    You can read more about this in the wiki reference above.
    So having said all that, Arch gives you a simple, minimal base install which you can then easily customize by app installation and configuration. It is reasonably bleeding edge, meaning application updates usually make it to Arch fairly quickly. With time and knowledge you can make Arch do near anything that another distro can do, but that's not really the idea behind Arch in my opinion.
    Hope that helps,
    j

  • Delegated administrator command line interface

    I have installed the Sun One messaging 6.0 on a schema v 1, and want to use the Delegated administrator component which I have installed as a provisionning tool. But CAN'T HAVE the DELEGATED ADMIN CLI (command line interface) previously shipped with Sun ONE messaging 5.2.
    How can I obtain the Delegated administrator CLI ?
    If anyone could help, please it's urgent ...
    Thanks.

    I'm sorry for the urgency. Alas, we don't have the version of the Delegated Admin ready to ship, yet. The current version of Delegated Admin won't install. . . .

  • Oracle VM Manager Command Line Interface

    Can anybody suggest any tool for Oracle VM Manager Command Line Interface?
    Are they free?
    What kind of jobs we can automate using Command line?
    If they are not free is it worth spending money to buy them?

    Try public-yum.oracle.com
    and look at the oracle-addons channel below OEL.
    http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/oracle_addons/i386/
    Regards
    Sebastian

Maybe you are looking for

  • I am unable to open PDF files or run adobe flash when its needed I have downloaded it several times and tried updating it.

    I am unable to open PDF files or run adobe flash when its needed I have downloaded it several times and tried updating it. NEED HELP

  • Albums missing from playlist when shuffle-modes are turned on

    I created a playlist and all 312 files that should be in that playlist display in iTunes and when I navigate into the playlist in my ipod. However, when I start playing that playlist and my ipod is set to "shuffle by songs" or "shuffle by artist", my

  • Publish no static html page with Web services

    Hello All, I would like to publish no static html page using Web services. I can't attach this html page as static because I need to change it dynamically from another vi. So, client can read this page by browser with refresh 2 sec. Thanks, Yustas

  • What'sApp

    My What'sApp on BB Q10 is showing duplicate contacts and some of the contacts name are different from my own Q10 Contact Book which is syncronized to my Outlook Connector Is anyone else having the same problem?

  • Evaluate math expression

    Hi Guys, I need to write java command line program to evaluate a mathematical expression input by user without parantheses using Stack approach. Can anyone give me the clue how to start of with. Is it possible to evaluate the expression in infix nota