DBMS_XMLSCHEMA commands concurrent executing

Java class methods execute statements 'DBMS_XMLSCHEMA.registerSchema' and 'DBMS_XMLSCHEMA.deleteSchema' on Oracle 9i through JDBC using Jboss 4.0.0.
Several users may request these service simulaneously and the following happens: one or both actions fail; after that records not associated with any registered schema can be found in 'user_xml_schemas' table or node for a schema url exists in the tree (Oracle treat this as the schema is registered) but no correspondent records can be found in 'user_xml_tables' and sometimes in 'user_xml_schemas'; then we cannot register any schema until we stop server and start it again. The methods, which are responsible for DBMS_XMLSCHEMA statements executing, first look up data source by JNDI-name, then call getConnection() of DataSource instance, then try to execute DBMS_XMLSCHEMA statement, e.g."BEGIN DBMS_XMLSCHEMA.registerSchema('some_url', 'some_valid_xsd_as_String'); END;", then close connection.
How can I avoid the situation described above? Or can I somehow prohibit executing any DBMS_XMLSCHEMA commands until a job is done (by Oracle means)?

Sofia,
One possibility:
If you write an Oracle procedure/package and store it in the database, you could call this procedure/package instead of the dbms_xmlschema package. Then test for other sessions active from the user account with a select from the v$session view where username = the username your using. If there is an active session you could terminate the incoming session. If no active session you could then call the dbms_xmlschema package from your package passing it the correct information and execute immediate the registerschema.

Similar Messages

  • Xml file not generated through Pl/sql procedure as a concurrent executable

    Hi,
    I getting error while genarating xml file through Pl/sql procedure as a concurrent executable file.
    Error Message:
    The XML page cannot be displayed
    Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
    Invalid at the top level of the document. Error processing resource

    Hi,
    Make sure the file has the XML header:
    <?xml version="1.0" encoding="UTF-8"?>
    or similar.
    Regards,
    Gareth
    Blog: http://garethroberts.blogspot.com/

  • Hi, i have tryed to install os x leopard, (its a old imac) , disk utility is greyed out , my install dvd cant find any hdd to install on , my only way to format and configure is through terminal but dont know what commands to execute

    hi, i have tryed to install os x leopard, (its a old imac) , disk utility is greyed out , my install dvd cant find any hdd to install on , my only way to format and configure is through terminal but dont know what commands to execute...
    i tryed diffrent commands such as diskutil eraseDisk JHFS+ Disk1
    diskutil list , wont show up my harddrive , i now its functionally cause it shows up in disk utility with name and i can get info about it , but everything is greyed out can only switch between "erase , partition , recover , Raid ,....
    when i click the apple in the top left corner the whole menu is greyed out... what to do ?  help me please
    Sincerly AppleNoob92
    p.s i have no experience in apple imac's at all never used before, but im kinda windows nerd so computers i understand but this imac make my insane, cant seem to find any solutions anywhere on the WWW....

    Your HD may be crashed, so you probably should use the oringinal install discs to run Apple Hardware Test in extended mode. If error codes appear this confirms a hardware failure. In addition you cannnot repair the HD using Disk Utility from the startup disk, you have to use the origninal Install discs that shipped with the computer or the most up-to-date version of OS X on a disc that you have.

  • Command the execute sql query and does not clean up data in Table

    Hi Team
    I have an SP, which writes source and target data to Temp Tables and runs except query to get mismatch details
    I am using Exec command to execute source query that writes data to Temp Table, once I execute query using Exec, data is written and immediately #temp table is cleaned, now I cannot use #temp table for comparition.
    Is there any way to execute sql query in SP without using EXEC and will hold the data in temp table.

    You need to create temp table before EXEC statement and rewrite your dynamic query also as below
    declare @source_Sql nvarchar(1000)
    ,@target_Sql nvarchar(1000)
    create table #TempTable1 (name nvarchar(10))
    create table #TempTable2 (name nvarchar(10))
    set @source_Sql = 'INSERT INTO #TempTable1 SELECT [Name] from Employee'
    set @target_Sql = 'INSERT INTO #TempTable2 SELECT [Name] from Employee2'
    EXEC (@source_Sql)   
    EXEC (@target_Sql)             
    select * from #TempTable1 
     Except 
    select * from #TempTable2

  • BO Edge 4.0 Installer stuck on "Run command-line executable"

    Hi,
    Our BO Edge BI Server 4.0 Installer on Windows Server 2008R2 is stuck on one of the last steps; "Run command-line executable".
    Before is was stuck on "WaitForCMSForTheFirstTime". We upped the RAM to 16GB and then the installer went past this, but after a full reset of the server and trying again it is now stuck a few steps later on "Run command-line executable". This is very frustrating, especially since there is no error message at all, no install log and the installer is just stuck indefinitely and we had to cancel it.
    At that point the Central Configuration Manager shows this:
    Apache Tomcat - Running
    BW Publisher Service - Stopped
    SAP BO Mobile Authentication Server - Stopped
    SAP BO Mobile Processing Server - Stopped
    Server Intelligence Agent - Running
    We can't deinstall from Windows to start over at this point because the installer says an install is in progress.
    What is going on?
    Help urgently needed and appreciated
    Edited by: J. Knulst on Jan 11, 2012 7:48 AM
    Edited by: J. Knulst on Jan 11, 2012 7:50 AM

    Hello,
    Yes, certain stages run for a long duration. "Run command-line executbale" runs for atleast 45 mins. It's normal.
    My suggestion would be to leave it for 45 mins-90 mins.
    Now that you have interrupted your installtion, try uninstalling it through the control panel.
    In case you can't see the software there, then you have to edit registry entries, which is very tiresome.
    Regards,
    Sonia

  • Where is the php command line executable on Linux?

    Hi, I am trying to configure my PHP Runtime Settings, but I have installed PHP5 from a tar.gz on Linux and I dont know where is my "php command line executable",
    somebody knows?
    Thanks.

    Hi,
    Should be in /usr/local/bin/php
    or try this...
    [root@mmkserv root]# find / -name "php"
    /usr/local/bin/php
    /usr/local/include/php
    /usr/local/lib/php
    /usr/local/apache/.LoL/LOST-FOUND/Forms/php
    [root@mmkserv root]#

  • Command to execute the jheadstart application generator ?

    Hi,
    I would like to use Ant scripts to call a command to execute the jheadstart application generator. Just Wonder what is the command and parameters to do so.
    Our project has multiple app defs, It may be useful to re-generate them all at some times.
    Thanks,
    Yongwen
    Edited by: user2898674 on Jul 13, 2009 8:00 PM

    Is it possible to run a java command to generate outside of Jdeveloper? There must be a java class to do the gen, I guess the question is if the gen relies on any of the jdeveloper design time objects.
    It will be very helpful to integrate the generation in the build process. Our project is 100% jheadstart generatable (with a lot of customization templates) and includes about 10 application definition files.
    Thanks,
    Yongwen

  • PS not letting me edit some random commands before executing them...

    PS not letting me edit some random commands before executing them, including Duplicate, Fill, Print Preview, Stroke...possibly others I haven't discovered.  When I click the dropdown choice, an edit window used to let me tailor pixel widths, color, etc. (I know, [it's what] 'edit' means). Now, the little eyedropper icon replaces my cursor, all top menus are grey except 'View' and 'Window', I get that awful 'doont!' sound, and my only option is to just hit 'Enter' and it executes the command with whatever preferences I last set before this problem, usually of no present use to me. I have relaunched PS, restarted the computer with no other tasks and relaunched, and impotently shaken my fist at the screen to no avail. Please help me, and if you'd be so kind, just email me the answer 'proteus19m (at) yahoo (dot) com'. Thank you very much.

    Try resetting your preferences.  Start PS and hold down crtl alt shift keys (cmd option shirft on mac) immediately.  If fast enough you will get a reset window.

  • MNU command to execute one package link

    Hi experts,
    My scenario is:
    I need to run a package link thru VBA
    I've tried the following command on a specific cell, because I've not found an specific mnu command to run a LINK.
    EVMNU("MNU_eDATA_SELECTPACKAGE","run DM","BPC_BW_RH,CP_BI_BPC_RH1,Company,System Administration")
    Question:
    1-Do we have an specific mnu command to execute PACKAGE LINK ?
    Thanks and Regards,
    Jadir Mendes

    =EVMNU("MNU_eData_RUNPACKAGELINK ","RUN PACKAGE")
    Parameters are not required only you have to write above code and your package list will display run from the list

  • AAA authorization fails, but still command is executed...

    Hi everyone,
    i've implemented authorization and it basically works. The user can only use a limited set of commands (show int status, conf t, interface ethernet, interface gigabitethernet, interface fastethernet, shut, no shut).
    Now I try to configure a loopback or Vlan interface, which should not be allowed.
    COMMANDS IMPLEMENTED:
    aaa authorization config-commands
    aaa authorization commands 0 vty group tacacs+ none
    aaa authorization commands 1 vty group tacacs+ none
    aaa authorization commands 15 vty group tacacs+ none
    line vty 0 15
    authorization commands 0 vty
    authorization commands 1 vty
    authorization commands 15 vty
    COMMAND AND OUTPUT FROM TESTING:
    SWITCH(config)#int vlan 2
    Command authorization failed.
    DEBUG AAA AUTHORIZATION:
    SWITCH#
    Dec  7 14:31:50: AAA: parse name=tty1 idb type=-1 tty=-1
    Dec  7 14:31:50: AAA: name=tty1 flags=0x11 type=5 shelf=0 slot=0 adapter=0 port=1 channel=0
    Dec  7 14:31:50: AAA/MEMORY: create_user (0x46603F4) user='USER1' ruser='SWITCH' ds0=0 port=
    'tty1' rem_addr='10.10.255.249' authen_type=ASCII service=NONE priv=15 initial_task_id='0', vrf= (id=0)
    Dec  7 14:31:50: tty1 AAA/AUTHOR/CMD (60725991): Port='tty1' list='SCAS' service=CMD
    Dec  7 14:31:50: AAA/AUTHOR/CMD: tty1 (60725991) user='USER1'
    Dec  7 14:31:50: tty1 AAA/AUTHOR/CMD (60725991): send AV service=shell
    Dec  7 14:31:50: tty1 AAA/AUTHOR/CMD (60725991): send AV cmd=interface
    Dec  7 14:31:50: tty1 AAA/AUTHOR/CMD (60725991): send AV cmd-arg=Vlan
    Dec  7 14:31:50: tty1 AAA/AUTHOR/CMD (60725991): send AV cmd-arg=2
    Dec  7 14:31:50: tty1 AAA/AUTHOR/CMD (60725991): send AV cmd-arg=<cr>
    Dec  7 14:31:50: tty1 AAA/AUTHOR/CMD (60725991): found list "SCAS"
    Dec  7 14:31:50: tty1 AAA/AUTHOR/CMD (60725991): Method=tacacs+ (tacacs+)
    Dec  7 14:31:50: AAA/AUTHOR/TAC+: (60725991): user=USER1
    Dec  7 14:31:50: AAA/AUTHOR/TAC+: (60725991): send AV service=shell
    Dec  7 14:31:50: AAA/AUTHOR/TAC+: (60725991): send AV cmd=interface
    Dec  7 14:31:50: AAA/AUTHOR/TAC+: (60725991): send AV cmd-arg=Vlan
    Dec  7 14:31:50: AAA/AUTHOR/TAC+: (60725991): send AV cmd-arg=2
    Dec  7 14:31:50: AAA/AUTHOR/TAC+: (60725991): send AV cmd-arg=<cr>
    Dec  7 14:31:50: AAA/AUTHOR (60725991): Post authorization status = FAIL
    Dec  7 14:31:50: AAA/MEMORY: free_user (0x46603F4) user='USER1' ruser='SWITCH' port='tty1' r
    em_addr='10.10.255.249' authen_type=ASCII service=NONE priv=15
    As you can see the reply from the Tacacs is a "FAIL", but still the command is executed.
    RESULT:
    SWITCH#sh run int vlan 2
    Building configuration...
    Current configuration : 38 bytes
    interface Vlan2
    no ip address
    end
    QUESTION:
    I don't understand what the problem is...Since I get a FAIL from the Tacacs Server I assume that the configuration on that side is fine.
    But why would the switch ignore a FAIL and still execute the command? Same problem exists with the Loopback-Interface.
    Is this me not understandig the basic concept of AAA or is this some other problem?
    The Switch is a Cisco WS-C3750-24TS (running c3750-ipbasek9-mz.122-50.SE2.bin).
    The Tacacs runs Cisco Secure ACS4.2.0.124
    Thanks,
    Tom

    Hi Tom,
    this is CSCtd49491 : TACACS+ command authorization for interface configuration fails .
    The bug is currently in a Closed state, meaning that the "Bug report is valid, but a conscious decision has been made not to fix it at all or in all releases."
    As far as I can tell, the impact is rather limited since the interface that gets created will have no effect unless the vlan exists, and even then the effect is minimal since it cannot be configured.
    You may want to open a TAC case or work with your account team to get the bug re-opened if this is still a concern though.
    hth
    Herbert

  • Linux Template Deployment - When is custom command list executed?

    I have a Linux template that I deploy from, but would like to start taking advantage of the "command" functionality of the template to execute a script as the last step, after VMM has deployed the image, set the hostname, and so forth.
    Is that when these commands are executed, as the very last step?

    Yes - the RunOnce commands run at the end of specialization (after networking and machine configuration are set, but before the final shutdown/reboot). A few things to keep in mind:
    1) The commands are run via "exec" and not via a shell. In order to use functions of the shell interpreter, it's best to define the commands with: /bin/sh -c "<your command>".  This allows you to use shell command conventions,
    but also means you need to be mindful to escape any double quotes.
    2) The commands have a default timeout of 5 minutes each, you can override this by setting an integer value (representing seconds) in the file: /opt/microsoft/scvmmguestagent/etc/commandtimeout.
    3) The entire VM specialization process, including RunOnce commands, is subject to the default 30 minute timeout. if you exceed this timeout, the VM deployment will show as failed, though it should actually complete the command execution before shutting
    down.
    4) If you want to work with scripts or package installations, one good approach is to post the content on an internal web server and use wgets in the commands to download the material before executing. This prevents you from having to preload the VHD with
    your scripts and packages.
    -Kris
    www.operatingquadrant.com

  • Command cannot execute error

    Hi,
    We have installed Solaris 10 on x86 platform. When we try to install any application with the command like
    "./setup", it says command cannot execute.
    Only those applications with setup.sh script files, we are able to run the installer.
    Is there anything to be done in OS level in order to execute the setup files as "./setup"
    or is there any other command to run instead of using "./setup"?
    regards
    Sundaresan.C

    Hi
    This probably means that the shell specified in the script is wrong.
    Check that the shall following the "#!" on the first line either exists in the specified path. If there is no path, make sure that the shell is in your path.
    Paul

  • Running Shell Commands (not Executable) in Unix from Java

    What are my options to run shell commands from Java?
    My goal is to change my existing shell environment variables to some new ones provided by .anotherProfile.
    Using an executable from Java is not an option because it does not work i.e. ( exec(". /home/.profile") ) brings up errors.
    Someone has suggested that I start a child shell with that profile and work from there, but I'm unfamiliar with that sort of syntax and programming in general.
    Any good help equals duke dollars :)

    Well there are some possibilities. In the original thread you mentioned that you wanted the shell script to be executed to change some enviroment parameters of the shell the JVM is executing in.
    If so, and you are able to rewrite the profile so you can parse it manually. Then you can change some environment setting by writing the JNI wrappers for the getenv and setenv system calls. (Check your man pages)
    That will change the environment. I am just wondering what good it will do for you? What's use of sourcing the profile in a JVM?

  • Not able to HTTP to SUB and SSH is not allowing any command to execute

    Hi All,
    I came across an issue, where CUCM SUB is not accessible by HTTP/S and SSH is giving following output while trying to re-start or executing any command :
    admin:utils service list
    /usr/java/jdk1.6.0_24/jre/lib/rt.jar: error reading zip file
    Exception in thread "main" java.lang.NoClassDefFoundError: java/net/ConnectException
            at com.cisco.iptplatform.cli.CliClassLauncher.<init>(CliClassLauncher.java:86)
            at sdMain.main(sdMain.java:1824)
    Caused by: java.lang.ClassNotFoundException: java.net.ConnectException
            at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
            at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
            ... 2 more
    Caused by: java.util.zip.ZipException: error reading zip file
            at java.util.zip.ZipFile.read(Native Method)
            at java.util.zip.ZipFile.access$1200(ZipFile.java:31)
            at java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:460)
            at sun.misc.Resource.getBytes(Resource.java:108)
            at java.net.URLClassLoader.defineClass(URLClassLoader.java:257)
            at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
            at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
            ... 7 more
    Any inputs please ??  Waiting for a hard re-boot to the device bit not sure if that would resolve the issue, Also when I first logged into SUB using SSH , I got the following :
    Command Line Interface is starting up, please wait ...
    java.io.FileNotFoundException: /var/log/active/platform/log/cli.bin (Read-only f                             ile system)
            at java.io.RandomAccessFile.open(Native Method)
            at java.io.RandomAccessFile.<init>(RandomAccessFile.java:212)
            at com.cisco.iptplatform.fappend.ciscoRollingFileAppender.restoreIndex(c                             iscoRollingFileAppender.java:100)
            at com.cisco.iptplatform.fappend.ciscoRollingFileAppender.setFile(ciscoR                             ollingFileAppender.java:43)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.                             java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces                             sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at org.apache.log4j.config.PropertySetter.setProperty(PropertySetter.jav                             a:196)
            at org.apache.log4j.config.PropertySetter.setProperty(PropertySetter.jav                             a:155)
            at org.apache.log4j.xml.DOMConfigurator.setParameter(DOMConfigurator.jav                             a:530)
            at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.ja                             va:182)
            at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurat                             or.java:140)
            at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfi                             gurator.java:153)
            at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOM                             Configurator.java:415)
            at org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:3                             84)
            at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:783)
            at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java                             :666)
            at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java                             :616)
            at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java                             :584)
            at org.apache.log4j.xml.DOMConfigurator.configure(DOMConfigurator.java:6                             87)
            at sdMain.initialize(sdMain.java:479)
            at sdMain.main(sdMain.java:646)
    java.lang.NullPointerException
            at com.cisco.iptplatform.fappend.ciscoRollingFileAppender.updateIndex(ci                             scoRollingFileAppender.java:117)
            at com.cisco.iptplatform.fappend.ciscoRollingFileAppender.nextFileName(c                             iscoRollingFileAppender.java:92)
            at com.cisco.iptplatform.fappend.ciscoRollingFileAppender.append(ciscoRo                             llingFileAppender.java:74)
            at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:221)
            at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders                             (AppenderAttachableImpl.java:57)
            at org.apache.log4j.Category.callAppenders(Category.java:187)
            at org.apache.log4j.Category.forcedLog(Category.java:372)
            at org.apache.log4j.Category.debug(Category.java:241)
            at com.cisco.iptplatform.cli.CliSettings.getInstance(CliSettings.java:10                             6)
            at sdMain.initialize(sdMain.java:491)
            at sdMain.main(sdMain.java:646)
    log4j:ERROR No output stream or file set for the appender named [CLI_LOG].
    /usr/java/jdk1.6.0_24/jre/lib/rt.jar: error reading zip file
    Exception in thread "Thread-9" java.lang.NoClassDefFoundError: java/net/URI$Pars                             er
            at java.net.URI.<init>(URI.java:578)
            at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:350)
            at java.net.Socket.connect(Socket.java:529)
            at java.net.Socket.connect(Socket.java:478)
            at java.net.Socket.<init>(Socket.java:375)
            at java.net.Socket.<init>(Socket.java:189)
            at com.cisco.ccm.util.ncs.NcsClient.connect(NcsClient.java:342)
            at com.cisco.ccm.util.ncs.NcsClient$ReceiveThread.run(NcsClient.java:447                             )
       Welcome to the Platform Command Line Interface
        WARNING:
            The /common file system is mounted read only.
            Please use Recovery Disk to check the file system using fsck.
    Cheers
    Anjali

    Check this Bug: CSCti52867 - https://supportforums.cisco.com/docs/DOC-12955
    I have a customer with this same problem, we use to use the Callmanager Recovery DVD, as Amine said, to recover the HD. But some times reseting the server resolved the problem.
    Mártin

  • OS Commands not executing through published java procedure... :(

    Hello all :)
    Im trying to get a PL/SQL block to delete a file out in the OS. Theres plenty of examples out there and the one I got came from burleson consulting, and incorporates a java method and a call to java wrapped in PL/SQL.. after all suggested grants, using the procedure yields no result. Here is the source code
    -- java procedure used to execute OS command
    CREATE OR REPLACE AND COMPILE JAVA SOURCE NAMED "Host" AS
    import java.io.*;
    public class Host {
    public static void executeCommand(String command) {
    try {
    String[] finalCommand;
    if (isWindows()) {
    finalCommand = new String[4];
    finalCommand[0] = "C:\\WINDOWS\\system32\\cmd.exe";
    finalCommand[1] = "/y";
    finalCommand[2] = "/c";
    finalCommand[3] = command;
    else {
    finalCommand = new String[3];
    finalCommand[0] = "/bin/sh";
    finalCommand[1] = "-c";
    finalCommand[2] = command;
    final Process pr = Runtime.getRuntime().exec(finalCommand);
    new Thread(new Runnable() {
    public void run() {
    try {
    BufferedReader br_in = new BufferedReader(new
    InputStreamReader(pr.getInputStream()));
    String buff = null;
    while ((buff = br_in.readLine()) != null) {
    System.out.println(buff);
    try {Thread.sleep(100); } catch(Exception e) {}
    br_in.close();
    catch (IOException ioe) {
    System.out.println("Exception caught printing process output.");
    ioe.printStackTrace();
    }).start();
    new Thread(new Runnable() {
    public void run() {
    try {
    BufferedReader br_err = new BufferedReader(new
    InputStreamReader(pr.getErrorStream()));
    String buff = null;
    while ((buff = br_err.readLine()) != null) {
    System.out.println(buff);
    try {Thread.sleep(100); } catch(Exception e) {}
    br_err.close();
    catch (IOException ioe) {
    System.out.println("Exception caught printing process error.");
    ioe.printStackTrace();
    }).start();
    catch (Exception ex) {
    System.out.println(ex.getLocalizedMessage());
    public static boolean isWindows() {
    if (System.getProperty("os.name").toLowerCase().indexOf("windows") != -1)
    return true;
    else
    return false;
    -- PL/SQL wrapper to publish java method.
    CREATE OR REPLACE PROCEDURE host_command (p_command IN VARCHAR2)
    AS LANGUAGE JAVA
    NAME 'Host.executeCommand (java.lang.String)';
    these are the grants I am issuing on install:
    BEGIN
    DBMS_JAVA.grant_permission ('LOANADMIN', 'java.io.FilePermission',
    '<>', 'read ,write, execute, delete');
    DBMS_JAVA.grant_permission ('LOANADMIN', 'SYS:java.lang.RuntimePermission',
    'writeFileDescriptor', '');
    DBMS_JAVA.grant_permission ('LOANADMIN', 'SYS:java.lang.RuntimePermission',
    'readFileDescriptor', '');
    END;
    -- and this is the block I am using to execute the OS command..
    1 BEGIN
    2 host_command (p_command => 'DEL C:\PRETEND.TXT');
    3* END;
    SQL> /
    PL/SQL procedure successfully completed.
    Everything returns as successfully completed. But the file is not deleted from the server. I know im missing some kind of privilege. Can anyone help me? Thanks
    Mo

    Burleson consulting...
    Says it all. Exposure on the Net doesn't mean quality.
    Burleson code usually has not been tested, is not robust, and quite often doesn't work.
    Why didn't you implement run_cmd, as suggested earlier?
    THAT works!
    Sybrand Bakker
    Senior Oracle DBA

Maybe you are looking for