<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Pl Sql question in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/pl-sql-question/m-p/2764561#M894463</link>
    <description>One thing to remember when designing an interface to HP-UX for running scripts and other process is that the process runs as the Oracle user.&lt;BR /&gt;&lt;BR /&gt;One of the folks in the group wanted a stored procedure that would accept an script name and run the shell. This procedure has to be restricted so that only trusted users can run it. A user can easily pass the script dbshut to the stored procedure and the Oracle database will come tumbling down.&lt;BR /&gt;&lt;BR /&gt;To maintain a healthy system you must restrict the stored procedure that you create as the interface (granting execute permission to only trusted users) or restrict what it can do.&lt;BR /&gt;&lt;BR /&gt;-Good Luck</description>
    <pubDate>Wed, 17 Jul 2002 03:39:03 GMT</pubDate>
    <dc:creator>R. Allan Hicks</dc:creator>
    <dc:date>2002-07-17T03:39:03Z</dc:date>
    <item>
      <title>Pl Sql question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pl-sql-question/m-p/2764558#M894460</link>
      <description>Hello crew,&lt;BR /&gt;&lt;BR /&gt;my need is to launch a unix script (on the machine) from the inside of an oracle plsql procedure, in other words the procedure create a file and it should be thereafter sent via ftp: how can I launch the sending from there?&lt;BR /&gt;&lt;BR /&gt;thanks already!</description>
      <pubDate>Tue, 16 Jul 2002 08:35:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pl-sql-question/m-p/2764558#M894460</guid>
      <dc:creator>BGiulio</dc:creator>
      <dc:date>2002-07-16T08:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: Pl Sql question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pl-sql-question/m-p/2764559#M894461</link>
      <description>&lt;BR /&gt;Can one execute an operating system command from PL/SQL?&lt;BR /&gt;There is no direct way to execute operating system commands from PL/SQL in Oracle7. However, one can write an external program (using one of the precompiler languages, OCI or Perl with Oracle access modules) to act as a listener on a database pipe (SYS.DBMS_PIPE). Your PL/SQL program then put requests to run commands in the pipe, the listener picks it up and run the requests. Results are passed back on a different database pipe. For an Pro*C example, see chapter 8 of the Oracle Application Developers Guide. &lt;BR /&gt;In Oracle8 one can call external 3GL code in a dynamically linked library (DLL or shared object). One just write a library in C/ C++ to do whatever is required. Defining this C/C++ function to PL/SQL makes it executable. Look at this External Procedure example. &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.orafaq.com/faqplsql.htm#OSCOMMAND" target="_blank"&gt;http://www.orafaq.com/faqplsql.htm#OSCOMMAND&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If you really want this, then maybe you should write your code in perl, and have perl call sql, giving you full control of your process.&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Tue, 16 Jul 2002 10:00:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pl-sql-question/m-p/2764559#M894461</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-07-16T10:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: Pl Sql question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pl-sql-question/m-p/2764560#M894462</link>
      <description>Hi,&lt;BR /&gt;Yes, this is possible (from Oracle 8.0.x and onwards) to execute an operating system command from within Oracle. In fact I answered this question before. See the following thread :&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xcac1a2db8513d6118ff40090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xcac1a2db8513d6118ff40090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope it helps,&lt;BR /&gt;Tom</description>
      <pubDate>Tue, 16 Jul 2002 10:13:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pl-sql-question/m-p/2764560#M894462</guid>
      <dc:creator>Tom Geudens</dc:creator>
      <dc:date>2002-07-16T10:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: Pl Sql question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pl-sql-question/m-p/2764561#M894463</link>
      <description>One thing to remember when designing an interface to HP-UX for running scripts and other process is that the process runs as the Oracle user.&lt;BR /&gt;&lt;BR /&gt;One of the folks in the group wanted a stored procedure that would accept an script name and run the shell. This procedure has to be restricted so that only trusted users can run it. A user can easily pass the script dbshut to the stored procedure and the Oracle database will come tumbling down.&lt;BR /&gt;&lt;BR /&gt;To maintain a healthy system you must restrict the stored procedure that you create as the interface (granting execute permission to only trusted users) or restrict what it can do.&lt;BR /&gt;&lt;BR /&gt;-Good Luck</description>
      <pubDate>Wed, 17 Jul 2002 03:39:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pl-sql-question/m-p/2764561#M894463</guid>
      <dc:creator>R. Allan Hicks</dc:creator>
      <dc:date>2002-07-17T03:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: Pl Sql question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pl-sql-question/m-p/2764562#M894464</link>
      <description>If you are running Oracle 8i or upwards, then I think you can also accomplish this using a JAVA stored procedure that does a system call.&lt;BR /&gt;&lt;BR /&gt;Haven't tried it, but I think it should work.</description>
      <pubDate>Wed, 17 Jul 2002 10:59:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pl-sql-question/m-p/2764562#M894464</guid>
      <dc:creator>Brian Bientz</dc:creator>
      <dc:date>2002-07-17T10:59:03Z</dc:date>
    </item>
  </channel>
</rss>

