Need PL/SQL procedure for file transfer local system to server location

Hi Experts,
The requirement is one file ex: text file,excel file is there in Local system suppose c:newfolder/test.txt.
once run the concurrent program for this particular file in the local system should transfer into server location for the mentioned path.
is it possible to do in PL/SQL or shell script.
can you please share the code.
Thanks
Meher

Meher Irk wrote:
The requirement is one file ex: text file,excel file is there in Local system suppose c:newfolder/test.txt.
once run the concurrent program for this particular file in the local system should transfer into server location for the mentioned path.Why do you want to copy a local file from the local client file system, via the Oracle database server, to a remote directory on the server?
Why is the Oracle database server to be used? For what purpose?
There are standard secure methods for a client to copy a file to a server. Such as sftp and scp. No complex Oracle database server layer needed in-between.
So why do you want to use the Oracle database to act as the copy mechanism for you?
It will only make sense if the local file is copied into the database (as a LOB or securefile) and managed by the database. I fail to see why Oracle should be acting as the go-between for the client file system copy process to the server file system. This introduces another moving part in the copy process. Adds more security issues. Adds more authentication issues. And what for?

Similar Messages

  • VBScript linking to SQL Database for file transfer information.

    I have been all over google and can't find anything that can use VBScript to look at an SQL database and based on what it contains, transfer files, I am not great with VBScript,
    still learning and at a BASIC LEVEL.  I can picture what I need but have no idea how to compose.
    The SQL database has 6 columns and I am trying to achieve the following.
    Database & Table : [FILE_TRANSFER].[dbo].[MAIN_FILE_TRANSFER_OUTPUT]
    Columns : [DESTURL1 ], [DESTURL2], [DESTURL3], [FullSource], [FullDestination], [DeleteFileAfterTransfer]
    Criteria required
    Does file exist within [FullSource]
    If yes Next if no, look to next [Fullsource]
    Does DESTURL1 exist No (Create) if yes Next
    Does DESTURL2 exist No (Create) if yes Next
    Does DESTURL3 exist No (Create) if yes Next
    Copy [Fullsource] to [FullDestination]
    (example : [Fullsource] c:\myfile.xls to [FullDestination] c:\thisismyfile.xls (Name change within [FullDestination])
    If [DeleteFileAfterTransfer] = Yes, delete transferred file [FullSource]

    TO extract SQL data to a file we would use BCP which is the main data extraction utility for SQLServer.
    Post you questions in the SQLServer forum and they will help you.
    There is no reason to use VBScript for this.  It is the wrong tool.
    ¯\_(ツ)_/¯

  • Need to wite pl sql procedure for dynamic select statement

    Need pl sql procedure for a Dynamic select statement which will drop tables older than 45 days
    select 'Drop table'||' ' ||STG_TBL_NAME||'_DTL_STG;' from IG_SESSION_LOG where substr(DTTM_STAMP, 1, 9) < current_date - 45 and INTF_STATUS=0 order by DTTM_STAMP desc;

    I used this to subtract any data older than 2 years, adjustments can be made so that it fits for forty five days, you can see how I changed it from the originaln dd-mon-yyyy to a "monyy", this way it doesn't become confused with the Static data in the in Oracle, and call back to the previous year when unnecessary:
    TO_NUMBER(TO_CHAR(A.MV_DATE,'YYMM')) >= TO_NUMBER(TO_CHAR(SYSDATE - 365, 'YYMM'))

  • Steps for File Transfer through FTPS...!!!

    Hi ,
    Can anyone please tell the steps for file transfer with FTPS.
    Does PI file adapter has bulilt in feauture to handle this? or
    Do we need to deploy anything to handle this?
    Do we need to install any certificates by requesting from partner or It will do the encryptions/authentications on its own?
    Any additional Steps we need to mention in File receiver adapter while we send the file through FTPS?
    File is going through port 1090(unsecure connection) but it is not going through port (990) which is a secure connection.
    Please suggest me.
    Thanks
    Krupakar

    Hi Shabarish,
    We got the certificate from the partner and loaded into the trusted CA's. I tried running by giving
    Connectivity Security as "FTPS for Control and Data Connection" and Command Order as "AUTH TLS,USER,PASS,PBSZ,PROT"
    Ip: XXX.YY.YY.ZZZ
    Port: 990
    User and pwd.
    and I am getting the same below error
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Error when getting an FTP connection from connection pool: com.sap.aii.af.service.util.concurrent.ResourcePoolException: Unable to create new pooled resource: iaik.security.ssl.SSLCertificateException: Peer certificate rejected by ChainVerifier
    I tried by selecting different options like
    1. Without selecting the X509 certificate for client authentication.
    2.  Keystore as TRUSTED\view\entry-cert
       X509 certificate and private key as TRUSTED\view\entry-cert
    3. Keystore as TRUSTED\view
      X509 certificate and private key as TRUSTED\entry-cert
    4.Keystore as "view"
      X509 certificate and private key as "entry-cert"
    Please help me in this.
    Thanks
    Krupakar

  • Urgent: Error: Client routine fdpvwr failed to prepare for file transfer

    Hi Recently i have upgraded developer 6i by applying patches.
    After when i am trying to submit active users and active responsibilities.
    Those also getting completed
    But when i am trying to click button view output or view log
    I am getting error as "Client routine fdpvwr failed to prepare for file transfer"
    Can anybody tell me what is the issue. Waiting for your reply
    Ganesh

    I am getting error as "Client routine fdpvwr failed to prepare for file transfer"
    The error is reported in one note only, and it seems it is not applied to your current setup. I would suggest you log a SR to confirm if you need to apply patch 4653217 or not.
    Note: 466743.1 - After Upgrade Of Db To 10.2.0.2, Receive Error When Viewing Conc Req Log/Output
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=466743.1

  • Need PL SQL Procedure

    Hello All,
    I like to write a PL SQL Procedure for the below sql statements. I like to pass all values from first sql stmnt to update columns in second sql stmnt based on dund_cc that is selecting from first sql stmnt. Please help me out how can I put together in pl sql procedure.
    SELECT Y.DUND_CC, Y.DPPROP, Y.APPNMENT, Y.ALLOTMENT, Y.ALLOCATION, Y.BDGCT FROM ABCDX_TBL Y;
    UPDATE POSDGET b SET B.DPPROP = Y.DPPROP, b.APPNMENT = Y.APPNMENT, b.ALLOTMENT = Y.ALLOTMENT,
    b.Y.ALLOCATION = Y.ALLOCATION WHERE b.DUND_CC = Y.DUND_CC;
    Thanks in Advance!!!

    Hi,
    You don't need a stored procedure or PL/SQL to do that. You can use a single UPDATE or MERGE statement, like this:
    MERGE INTO       posdget     dst
    USING   (
               SELECT  dund_cc
            ,        dpprop
            ,        appnment
            ,        allotment
            ,        allocation
            ,        bdgct
            FROM        abcdx_tbl
            )               src
    ON     (src.dund_cc     - dst.dund_cc)
    WHEN MATCHED THEN UPDATE
    SET     dst.dpprop     = src.dpprop
    ,     dst.appnment     = src.appnment
    ,     dst.allotment     = src.allotment
    ,     dst.allocation     = src.allocation
    ;The statement above will also work in PL/SQL, if you have a reason for doing it that way.

  • Using cron-job to call the PL/SQL procedure for every 5 min

    Hi All,
    i wrote one procedure. using cron-job to call this PL/SQL procedure for every 5 min. i don't have any idea about cron job & what is thescript file formate .where can i place that script file. what are the details we placed in that script

    Really appreciate you. I like this approach .
    please give me advice for the below thing
    job_action =>an i give my procedure name under this?
    BEGIN
    -- Job defined entirely by the CREATE JOB procedure.
    DBMS_SCHEDULER.create_job (
    job_name => 'Job_schedule_update',
    job_type => 'PLSQL_BLOCK',
    job_action => 'BEGIN Schedule_update; END;',
    start_date => SYSTIMESTAMP,
    repeat_interval => 'FREQ=HOURLY;BYMINUTE=5',
    end_date => NULL,
    enabled => TRUE,
    comments => 'Job defined entirely by the CREATE JOB procedure.');
    END;

  • Which protocol we should use for file transfer in ios ?

    which protocol we should use for file transfer in ios ?

    My friend that's definitively a Lotus Domino question, you'll probably ask in the Domino's forums if it generates wsdl, or simple http services you're ready to consume those services in Flex.

  • Need pl/sql stmnts. for this simple logic

    Hi,
    I need PL/SQL program for this simple logic i am doing mistake somewhere unbale to trace
    out ..
    select * from GSR03_PO_DTL;
    PO_NUM
    L53177000 -- > no changes reqd (only one entry with new format)
    L00041677 --> to be updated to L41677000(only one entry with OLD format)
    L43677000 -- > no change reqd (exists one row with new format and old format like below)
    L00043677 -- > to be deleted this is old format (and new format like above already exists)
    EX:
    L00012345 --- old format
    L12345000 --- new format
    Hope question is clear. I written the following program.
    update is working fine but delete is not working.
    Please help.
    Thanks in Advance
    Devender
    declare
    Cursor c_test is
    (select po_num from GSR03_PO_DTL);
    BEGIN
    FOR r_test in c_Test
    LOOP
    dbms_output.put_line (r_test.po_num);
    IF ('L'||substr(r_test.po_num,5,5)) = ('L'||substr(r_test.po_num,2,5)) then
         dbms_output.put_line ('delete stmnt');
    END IF;     
    EXIT WHEN c_test%NOTFOUND;
    END LOOP;
    FOR r_test in c_Test
    LOOP
    IF r_test.po_num like 'L000%' then
    IF ('L'||substr(r_test.po_num,5,5)) is not NULL then
         update GSR03_PO_DTL set PO_NUM = 'L'||substr(po_num,5,5)||'000'
         where po_num like 'L000%' ;
         dbms_output.put_line ('update stmnt');
    END IF;     
    END IF;
    END LOOP;
    END;
    *********************

    No need for PL/SQL, man.
    SQL> SELECT po_no FROM po1
      2  /
    PO_NO
    L53177000
    L00041677
    L43677000
    L00043677
    SQL> UPDATE po1 y
      2  SET    y.po_no = 'L'||substr(y.po_no,5,5)||'000'
      3  WHERE  y.po_no LIKE 'L000%'
      4  AND    NOT EXISTS ( SELECT null FROM po1 x
      5                      WHERE x.po_no =  'L'||substr(y.po_no,5,5)||'000')
      6  /
    1 row updated.
    SQL> DELETE FROM po1 y
      2  WHERE  y.po_no LIKE 'L000%'
      3  AND    EXISTS ( SELECT null FROM po1 x
      4                  WHERE x.po_no =  'L'||substr(y.po_no,5,5)||'000')
      5  /
    1 row deleted.
    SQL> SELECT po_no FROM po1
      2  /
    PO_NO
    L53177000
    L41677000
    L43677000
    SQL> Cheers, APC

  • Step by step procedure for File &Http Adapter?

    Hi Friends,
    Could any one post the step by step procedure for File-Http Scenario.
    I wanted to pick the flat file and posted to html page, i.e. user input to the browser page.
    send across any documents to [email protected]
    thanks in advance.
    warm regards
    mc
    Message was edited by: John McCain
    Message was edited by: John McCain

    Hi John,
    check this post to find many file -> * weblogs
    Re: Interface
    you can find more on:
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/weblogs/topic/16
    this should help you for a start
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • How  applet write file in local system by URL instead of FileOutputStream()

    hi,
    how can applet write a file in local system through URL instead of FileOupStream()
    plz.....plz.....plz......
    URL url = new URL(" file://c:/temp.txt");
    in this url how applet can write
    plz....

    URL uses http to cummunicate, this means you can send and receive data using the http
    protocol.
    The OS doesn't do anything with this, you need a http server to interpret these messages
    and take appropriate action (with server side script or CGI).
    So if the client has a http server installed and has server side script thad does
    something with your http request (that's what a url does) than it is possible.
    Since both having a http server , server side script and or CGI have nothing to do with
    signed applets I will not answer your question here.
    But the mail reason I won't answer it is because it makes no sence to use a URL to write
    to the local file system.

  • Firefox 7.0 - Can not upload the file from local machine to server...gives "error 404 : file not found"

    firefox 7.0 - Can not upload the file from local machine to server...gives "error 404 : file not found"

    you have not understood my point
    how does this code will run on servlet when I want to upload a file from client's
    machine to server machine
    what I am doing is I am giving an option to the user that he/she can browse the file and then select any file and finally it's action is post in the jsp form for which I have sent the code
    All the computers are connected in LAN
    So how to upload a file from client's machine to server's machine
    Plz give me a solution

  • EJB Design  Pattren For File Transfer Application

    hi,
    My requirement is Transfer of large files (around 300-500KB) across the network with a central repository.We looking at a Solution from J2EE With EJBs.
    At the Central Repository we are looking for ejb-Application Server. But the the issues i come acorss for my requirement are
    1.I need to store and access Files on the local hard Disk with ejbs
    >> But ejb spec won't allow to access the local file System
    2.Based on the certain rukes i need to forward the files to different location
    >> But ejb Won't allow to use Sockets in EJB.
    I Want to know is there any work around in EJB to meet my requirements.
    Any suggestions and ideas are welcome.
    Regards
    Srinivas

    Thanks For Your Feedback. I Will Explain my Requirement more elobarate.
    Our System Arch Looks like this
    The Current System
    |--MiniServ1--Client
    Source---Central Server--|--MiniServ2 --Clients
    | |--MiniServ3--Clients
    Data Base
    ------ Bidirectional Link
    Central Server --With database about all the transcations through the System
    Mini Serv*--with Storage info of teh files came to that Server
    Where Source / End Elients are Windows Based Clients(Developed in VC++)
    The File Size Transfering across different Sources is of Size around 0.5 MB.At the Central Server these Files Will be Stored on the local hard Disk.At Centarl Server based on Some Rules it will be routed through different Mini Servers(Mini Serv*).Mini Server Will Send the file to different Clients. After Working on the files the files will be send back to the central Server via the Mini Server*.At the Central Server we have the latest Copy of the File
    Currently Entire System Based on Windows and Central Server Built using COM Components Running on Windows 2000 Advanced Server.
    The Problem
    We Want to port the existing Sytem in java with out touching the Source and End Clients.We thought of replacing the Central Server with J2EE Application Serevr and COM Components with EJBS.But in Ejb we can't write to Local System and can't use sockets to send the files to MiniServers.
    Is there Any Work Around for the mentioned problem using java?

  • Verification of signature failed for file - when locally publish big file

    Hi, I try to locally publish a package that is made of a 486 MB file. And I get this error message :
    Verification of signature failed for file : ...
    It works if I try with a smaller file (30~40 MB). So the issue is not related to the certificate. It's just like if there was a 'Timeout' that occurs during the process of publishing. But I can't see what to do to fix this.
    Any advices are welcome.
    David COURTEL
    IT Technician
    Wsus Third-Party Softwares Publishing :
    Wsus Package Publisher

    David, there's a natural filesize limit for publishing CABs of 384MB.
    This
    article from myITForum.com has a PowerShell script that can be used to set the value higher.
    Also, SolarWinds has a
    free tool (useful if PowerShell is not an option) to set this value. In addition, the utility can be run remotely. All it needs is a local API connection. It has built in help, but here's the syntax you'll need:
    /action setmaxcabsize /targetwsusname
    WSUSServerName /targeetwsususessl {YES|NO} /targetwsusport portnumber /maxcabfilesize
    sizeInMB
    Lawrence Garvin, M.S., MCSA, MCITP:EA, MCDBA
    SolarWinds Head Geek
    Microsoft MVP - Software Packaging, Deployment & Servicing (2005-2014)
    My MVP Profile: http://mvp.microsoft.com/en-us/mvp/Lawrence%20R%20Garvin-32101
    http://www.solarwinds.com/gotmicrosoft
    The views expressed on this post are mine and do not necessarily reflect the views of SolarWinds.

  • Alert Configuartion for File Transfer

    Hello,
            I need some pointers in setting up the alerts for the file transfer for the given two scenarios -
    1. An alert is generated everytime the polling fails i.e. the file adapter does not find a file to be read
    2. An alert is generated when the file is transferred. I am just doing the file transfer so I am not using the message interface.
    One option for this is to generate the mail by using JMS adapter, but I would prefer alert creation.
    Thanks.
    Regards,
    Mayank

    Hi,
    With Alert Framework you can apply the alert notifications wherever the file transfer in XI will failed.
    Refer
    XI : How to Re-Process failed XI Messages Automatically
    XI :  How to Re-Process failed XI Messages Automatically
    XI: Alerts - Step by step
    The specified item was not found.
    For successfull messages there will not be the alert notification  available. But as its mentioned by Amir, you can send mail confirmation with mail adapter, or can go for JMS adapter for sending the successful messages.
    Thanks
    swarup

Maybe you are looking for