Oracle XE & dbms_pipe

Hi to all!
Unfortunately, I didn't find package DBMS_PIPE in this database edition!
How I can walk it around? Or may be there is a trick ?
Thanks in advance,
Konstantin.

Please verify that it does not exist. In my installation of XE, I run
SQL>
select distinct owner, object_name from dba_procedures where object_name like 'DBMS_PIPE';
OWNER
OBJECT_NAME
SYS
DBMS_PIPE
SQL>    

Similar Messages

  • Secure inter-session communication

    How to pass data from one session to another session of same user?
    I mean how to pass it a way that nobody else can intercept?
    Oracle's DBMS_PIPE private pipes are not secure enough, SYSDBA can read/write from/to anybody's private pipe. :(.
    Any ideas?

    Why use DBMS_PIPE ?this was first that came to me for inter-session communication.
    What is the actual requirement that needs to be met? Actual requirement is to provide a session with crypto-key(s) from outside of Oracle, transparently to applications, and so that even SYSDBA could not get the keys.
    The session should use crypto-key in a same manner as VPD does to encrypt/decrypt some sensitive columns transparently to applications and adhoc reports (via layer of views that use the key).
    What is the purpose of those sessions communicating with one another? My first idea was to create a crypto-function that initially (when key is null) listens from pipe to get a key value from it.
    Another session of same user should send the key entered by the user into this pipe.
    Then, after the key received, the first main session proceeds having key in its package memory (or context).
    The problem here is that SYSDBA can mount a man-in-the-middle attack, quickly reading the key from pipe and writing it back.
    Why does that need to be secure? What data will be send? Is this peer-to-peer or client-server?SYSDBA should not know values from sensitive columns. Only users that have a key should.
    DBMS_PIPE is a solution. Not really.
    So it is difficult to comment on your view that DBMS_PIPE is insecure, when not knowing what the actual requirement is. I thought that the fact that SYSDBA can access any pipe is enough to see it is not 100% secure.
    Currently I am looking into externally or globally initialized contexts. Without that supplemental session where user enters a key.
    I am not sure yet if it is a right direction.

  • Calling unix shell script from oracle stored procedure.. urgent!!!!!!!!!!!!

    Hi,
    i havea requirement where in i should be able to call my shell script through oracle stored procedure.i tried the following way..but iam unable to get the result.please find the details below.
    new.sh - my shell script - lctfile (LCTFILE) is the input pa
    v_config_file=`find $FND_TOP -name LCTFILE
    FNDLOAD apps/s0ccer@$dxbs1 0 Y DOWNLOAD $v_config_file /home/bir4163/RPT33/bin/menu.ldt MENU MENU_NAME='AR_NAVIGATE_GUI'
    if [ $? != 0 ];then
    echo "$DATE $0 FNDLOAD DOWNLOAD Failed!" | tee -a $LOG_FILE
    else
    echo "SUCCESS" | tee -a $LOG_FILE
    fi
    CREATE OR REPLACE PROCEDURE test_dbms_scheduler
    AS
    v_text VARCHAR2 (255) := 'AR_NAVIGATE_GUI';
    BEGIN
    DBMS_OUTPUT.put_line ('I am in Procedure');
    DBMS_SCHEDULER.create_job (
    job_name => 'test_dbms_scheduler',
    job_action => '/home/bir4163/RPT33/bin/new.sh',
    number_of_arguments => 1,
    job_type => 'executable',
    start_date => SYSDATE,
    repeat_interval => 'FREQ=SECONDLY; INTERVAL=1',
    enabled => FALSE,
    auto_drop => FALSE,
    comments => 'run shell script'
    DBMS_SCHEDULER.set_job_argument_value (job_name => 'test_dbms_scheduler',
    argument_position => 1,
    argument_value => v_text);
    DBMS_SCHEDULER.enable ('test_dbms_scheduler');
    DBMS_OUTPUT.put_line ('I am back in Procedure');
    EXCEPTION
    WHEN OTHERS
    THEN
    DBMS_OUTPUT.put_line (SQLCODE || SQLERRM);
    END;
    But iam unable to test it as i do not have permissions to access dbms_scheduler.can anybody tell me how to solve this using DBMS_PIPE with a sample code.
    please do help its very urgent
    thanks
    ramya

    Hi,
    Register your Shell Script as a concurrent program, Executable execution method "Host", then use fnd_request.submit_request to submit the program.
    Regards,
    Andries

  • Invoke and Execute Unix command from Oracle PL/SQL

    Dear All,
    I am currently working in the development of multi user application in ORACLE.
    My problem is,
    I have to remove a temporary file created in unix server when a particular condition is satisfied in a PL/SQL proccedure.
    I searched for this and got solution to use DBMS_PIPE package.
    Can you help me how to pack the content 'rm file_name' from different users working in different sessions and how to execute. Can you please explain me how the server manages calls from different sessions and replies to individual sessions.
    Thanks in advance,
    Shenbaga.

    Well if doesn't raise an exception it succeeded. Is that sufficient acknowledgement?
    Cheers, APC

  • Problems using DBMS_PIPE package

    Hi! Im using the SQL Navigator for Oracle to develop PL/SQL code and now I've got a problem with the DBMS_PIPE package. When i use the methods like create_pipe etc. in a normal pl/sql window it works without problems. But when i place such a DBMS_PIPE.CREATE_PIPE... call into a function in my own pl/sql package there's the error PLS-00201: identifiere 'sys.dbms_pipe' must be declared!
    what do i have to do to use the dbms_pipe package in a package developed by my own.
    thanks in advise
    Ingo

    login to your SYS schema and grant execute on the DBMS_PIPE package to the oracle user under which you
    are creating your PL/SQL procedure:
    SQL> grant execute on SYS.DBMS_PIPE TO <username> ;

  • How to retrieve information on UNIX Host from oracle Forms

    Hi,
    Has anybody tried to retrieve manipulated information
    on the Unix Server From the oracle forms running on a client ?.
    If it is to be done by user exit and calling the pro*c code
    then where should the pro*c code exist ?. on server or on client.
    1. If on server then can that code return the value to form ?.
    2. If on client then can that code access the unix server and
    return the value ?..
    OR
    any other method or tool to do the above.
    Thnaks and regards
    null

    I can only tell you what we've done for our system. We have
    client applications which need to send/recv information from the
    UNIX server (report submission, etc.)
    We have a deamon (written in PRO*C) which runs on the UNIX
    server. This deamon constantly monitors a pipe (using the
    DBMS_PIPE package available with ORACLE 7.1). The client apps.
    send requests through this pipe and wait for the server deamon to
    process the request and send responses down a "return pipe".
    This approach has served us well.
    With ORACLE 8, you can (according to what I've read) link
    external object modules (similar to ORA_FFI on the client), which
    would make these OS specific functions available to the database
    developer via PL/SQL but we're just now looking at ORACLE 8 so I
    have no first hand experience with this.
    gautam (guest) wrote:
    : Hi,
    : Has anybody tried to retrieve manipulated information
    : on the Unix Server From the oracle forms running on a client ?.
    : If it is to be done by user exit and calling the pro*c code
    : then where should the pro*c code exist ?. on server or on
    client.
    : 1. If on server then can that code return the value to form ?.
    : 2. If on client then can that code access the unix server and
    : return the value ?..
    : OR
    : any other method or tool to do the above.
    : Thnaks and regards
    null

  • Dbms_Pipe Package.

    Hi,
    Can any one please tell me for which perpus we have to use dbms_pipe package.Please give one simple example.
    Thanks,
    Sanjeev.

    user13483989 wrote:
    Can any one please tell me for which perpus we have to use dbms_pipe package.Please give one simple example.For the same reason pipes are used when writing code that runs directly on the operating system (instead inside Oracle) - IPC or Inter Process Communication.
    See http://en.wikipedia.org/wiki/Inter-process_communication for basic details.

  • How i will run copy the file in oracle 7.3 ?

    how i will run copy the file in oracle 7.3.
    new version of oracle copy function is available in util_file but in oracle 7.3 this is not available.here i am using 7.3.
    please help
    Thanks
    Deepak S.

    The technique used to be to send messages from your procedure to a waiting shellscript listener using DBMS_PIPE. You would write a script (could be ksh, Perl, Ruby etc) on the server with a loop in which it connects to the database and waits for DBMS_PIPE messages. When it gets one, it executes the command that was contained in the message and loops around to continue waiting again.
    7.3 is really ancient though. If you're running it at all this far out of support it should really just be ticking over and not subject to new development.

  • Parallel Processing in Oracle

    Gurus,
    I need to run three cursors at a time. Is it possible in Oracle?
    If yes then help in this issue.
    Thanks in Advance.

    As mentioned, it all depends on whether the results of the 3 cursor processes need to be combined/processed afterwards.
    If not, and each cursor process is a independent process, then you can define each of the 3 processes as procedures.
    The "main process" can then simply use the Oracle Job Scheduler to start once-off jobs for these 3 PL/SQL procedures. These will then run in parallel, as batch/background jobs.
    If the "main process" needs to wait for some reason for these 3 processes to complete processing (and commit their changes), then the following loop structure can be used:
    loop
    exit when <all 3 jobs have terminated>;
    -- if not. sleep for n seconds and then check again
    DBMS_LOCK.Sleep( n );
    end loop;The check for <all 3 jobs have terminated> can be done using SQL to query the USER_JOBS view.
    When the 3 jobs were submitted, each returned a job id. When this no longer exists in USER_JOBS, that once-off job has completed processing.
    If each of the 3 jobs needs to communicate with one another via some kind of IPC mechanism.. things are more complex. Not because of PL/SQL or Oracle, but because this is a complex thing to code in any language and system.
    Oracle provides a couple of IPC-like mechanisms. These include:
    - DBMS_PIPE
    - plain vanilla SQL table as "a shared memory area"
    - advance message queues
    The only real difference is that where you would have coded a fork() in Unix or a CreateThread() in Windows, you will be using DBMS_JOB (or DBMS_SCHEDULER) to spawn a thread.
    The rest of the concepts of multi-threading/multi-processing remains the same. Thread safe code. Semaphores. Mutexes. Etc. The basics remains the same.. just the actual "things" used to implement these are called by a different name.

  • Import a shape file to oracle spatial format within an oracle pl/sql proced

    hi,
    My task is to import an esri sde shape file to oracle sdo format within pl/sql procedure.
    i am using oracle 10g, arcgis 9 and arcsdo, geometry type is line, please anyone could help how can i achieve this task, would be very thankful
    Best Regards,

    There are no "in database" tools around that do this AFAIK. Most/all tools are external to the database and have to be invoked externally.
    If you created an external "batch file" that did the right processing, you would still have to work out how to execute this batch file from within Oracle. AFAIK the standard method is to use create custom code that uses DBMS_PIPE to communicate with the operating system to execute the batch file. DBAs hate this approach and it does require programming.
    The other method could be to write a trivial piece of Java that when passed the full path to the batch file executes the file. You would then load the compiled Java class into the Oracle JVM and then create a simple PL/SQL wrapper around it. I can't do it at the moment, but can come back with the code and instructions later on in the week.
    <SHAMELESS PLUG>
    As an aside (it seems appropriate to mention this now), I have been developing tools that do run inside the Oracle JVM an can export Oracle data (including sdo_geometry) to a number of formats:
    * xSV (ie comma separated, tab separated, any other single character)
    * Excel Spreadsheet
    * ESRI Shapefile (including the writing of the PRJ file using a user supplied PRJ string and also I write a MapInfo TAB file to "wrap" the shapefile).
    When exporting to xSV or Excel Spreadsheet one can chose to encode the SDO_GEOMETRY data as GML or WKT.
    (I am working on a KML exporter as well.)
    However, note that these tools EXPORT data and do not IMPORT data.
    The tools, currently are running in production at a customer site (tabbed shapefile export option) and work well. Export jobs are defined and given to the Oracle JOB or SCHEDULER and correctly run at the appropriate time writing the data to an operating system directory defined internally (with appropriate permissions) as an Oracle Directory object.
    I am now considering selling the exporter tool and am looking for testers. (The pricing of these tools will be exceedingly low.)
    </SHAMELESS PLUG>
    Now, while I hadn't planned to write any importer for a shapefile for my Exporter, I might consider it if you get stuck and can't find a satisfactory tool.
    regards
    Simon

  • Psuedo commit feature in Oracle 8i?

    I would like to know if there is a "psuedo commit" in either the oracle 8i or 9i. I have a process that will write the request to a temporary table. I would like other processes to see the records in this table but I cannot do a commit at this point. I heard from other people that in the oracle 8i version that there is a feature that will do a "psuedo/fake commit" so that the table can be seen from other processes. Is there such thing?

    Hi,
    You can do this, by makeing your temporatry table as "Global Temporary Table"
    See the BNF Syntax of Create table Command
    CREATE GLOBAL TEMPORARY TABLE .....( ... );
    Specify GLOBAL TEMPORARY to indicate that the table is temporary and that its definition is visible to all sessions. The data in a temporary table is visible only to the session that inserts the data into the table.
    A temporary table has a definition that persists the same as the definitions of regular tables, but it contains either session-specific or transaction-specific data. You specify whether the data is session- or transaction-specific with the ON COMMIT keywords (below).
    But Certainly Other users will not be able see the data from this table ( But processes of the same session), as the table will keep the data until expiration of Either Current Session or Transaction.
    Further For Inter process communication Use package DBMS_PIPE.
    Thanks and Regards
    Ripudaman

  • DBMS_PIPE package in the library

    Where do I find the DBMS_PIPE package. Right now I'm working on migrating forms to 6i. And i got this error in a procedure(G$_GET_PIPE_MESSAGES) which is called in a trigger.
    DBMS_PIPE package has
    1. PACK_MESSAGE procedure
    2. SEND_MESSAGE function
    3. RECEIVE_MESSAGE function
    4. UNPACK_MESSAGE procedure

    dbms_pipe is a database package owned by SYS:
    http://www.oracle.com/pls/db102/ranked?word=dbms_pipe&remark=federated_search
    cheers

  • Need info. about dbms_pipe!

    Hi all,
    Can anybody give me some explanation & an example of dbms_pipe.
    My requirement is, i want to run host commands through PL/SQL procedure. My host command will be a pro*c executable.
    In order to run a host command in a pl/sql procedure, i think of only dbms_pipe.
    If anyone has any idea about it, pls. mail me.
    Bye

    There is very nice example in the Oracle Application Developer's Guide. I think, it is exactly that you want.
    Have a look at http://otn.oracle.com/doc/server.804/a58241/ch8.htm#1679
    Radek

  • Is Oracle 9i down?

    While trying to get Spatial Database Engine set up to work with Oracle 9i on a Solaris 9 platform, I get the following. Does this mean that Sqlplus is working but Oracle itself is down?:
    sqlplus "/as sysdba"
    SQL*Plus: Release 9.0.1.0.0 - Production on Tue Jan 25 15:02:23 2005
    (c) Copyright 2001 Oracle Corporation. All rights reserved.
    Connected to an idle instance.
    SQL> grant execute on dbms_pipe to public;
    grant execute on dbms_pipe to public
    ERROR at line 1:
    ORA-01034: ORACLE not available
    SQL> grant execute on dbms_lock to public;
    grant execute on dbms_lock to public
    ERROR at line 1:
    ORA-01034: ORACLE not available

    Could be... The message following copyright line is interesting.
    With 9.2, connecting/login as sysdba, we have:
    Connected. (ORACLE_SID not set)
    Connected to an idle instance. (ORACLE_SID set but instance is not started, could be incorrect sid value)
    Connected to: (this means we're good to go :) )
    Oracle9i Enterprise Edition Release 9.2.0.5.0 - Production
    With Connected to: you could still have an instance in nomount i.e. background processes started but no database. But then another ORA error will hit you.
    I'm sure there are other possibilities as well.

  • Running OS command using DBMS_PIPE

    Hi,
    I have reproduce the exemple in the documentation DBMS_PIPE - Example 3: Execute System Commands using the proc daemon.pc. It works, the commands are getting executed, but I have no control over them. What I need is for the calling PL/SQL function to wait for the OS command to finnish before continuing with the execution the PL/SQL function.
    Any hint would be appreciated. Thanks.

    odie_63 wrote:
    Justin Cave wrote:
    The normal way to approach that sort of requirement would be to use a Java stored procedure.Or a DBMS_SCHEDULER external program with "use_current_session" set to true.
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_sched.htm#i1013568
    On 10g+ I'd definitely give this a go.

Maybe you are looking for

  • Cost Center Security Issue

    hi gurus i have a situation in which i have like 60 plus users every one has authorization to different set of Cost centers. now how can i accopmlish that. secondly suppose they run a report with a Cost Center Hierarchy with lots of cost centers at d

  • How do I unlink my friend's Facebook account and my notification center?

    My notification center keeps receiving notifications from my friend's Facebook page. I have logged her out from all of my web browsers, but I am still receiving her notifications. I would like to know how to unlink her page from my notification cente

  • Can't get Ipod to do anything...

    Hi! I just got my Ipod back from Apple Support service having waited almost two weeks. It had been freezing all the time. I updated my settings and ran the restore porgramme. Everything was going ok until it froze again in the middle of songs being p

  • Fading gradients help

    Hi there, been using flash for a while now but im having big problems in sorting this MAJOR problem out: It goes as follows. The movie found at: http://www.ronguy.co.uk/fla/help.sfw is a preview of the problem Basically i need to fade 1 gradient in o

  • Info about EJB

    Hi all, here's my simple situation... i have an Entity Bean (EJB 1.1) in my application which return a Collection through a findByPrimaryKey method (another method return also a Collection through a findByCOLUMN_NAME method). Is it possible to order