Accessing a file on another machine

Hi guys,
I have one of 2 things which I need to be able to do. The ideal solution would be to access a file that I access through remote desktop through PL/SQL (to be used as an email attachment). The alternative would be to move a file from the remote directory to the database server with shell scripting. Any help with either is appreciated.
Mike

Hi Kamran,
I'll suggest it to someone now (as soon as I google mount & NFS to better understand :)). By the looks of it the shell scripts are run on the windows terminal and connect to the database, I believe this to be the case as the file is saved on the windows terminal using:
hkrpt.ksh $RPT_TYPE > ${HKRPT}/grth${RPT_TYPE}.${TODAY}
This then connects to the server and calls a procedure. Would I be able to include an "sqlplus -s $HKLOGIN" in the script (the same connection as hkrpt and move the file using that somehow?
Edit: Which way would the mount work? able to see folders on the database server & copy them to there from shell script commands or from pl/sql on the db?
Mike
Edited by: Dird on 05-Aug-2009 01:43

Similar Messages

  • Accessing a file in another  system

    Hello,
             Can Anyone please tell me how to access a file in another system using java.
    Thanks in Advance,
    Venkat

    Hi Venkat
    Check following link.
    This link is helpful for you
    http://java.sun.com/developer/onlineTraining/Programming/BasicJava1/data.html#app
    http://www.devdaily.com/java/edu/pj/pj010004/pj010004.shtml
    Regards
    Ruturaj

  • [ReachIt] The sharing files progress bar don't have any changes when share file to another machine

    Install ReachIt 2.0.5.2, go to video folder to select a file, select shareit to send the video file to another machine, the progress bar don't have any changes after the file have been sent successfully.

  • Best way to send files to another machine.

    What I am wondering is this. I go to project manager and choose to backup to an external drive a trimmed version of the project to be opened on another computer.
    My question is this. The first computer only had a a simple raid setup so media cache and previews were all on the same raid as the media files. The machine I am now going to finish the edit on has 2 raid setups on it. Media cache would rest on F and media and pre view files on the E drive. Do I need to make sure the imported project has the preview files on the E drive and any media cache as well? Even though I believe media cache does not get batched out with the trimmed project.
    Any Ideas would be great. Thank you
    David

    Just export without any cache, and when you open it on the new computer, make sure that the preferences and project settings are the way you want them before you do anything to the project.

  • Unlock / Access BACKUP files from Time Machine????

    I have a 2nd User Account for "work only".   I am preparing to do a clean install of Mavericks and the Time Machine backup files will not let me access them form my main account in the Backup folder. 
    They have the red circle with - sign in lower right corner.  I have CHANGED them from READ ONLY to EVERYONE, but cannot access them from main account.
    I can access them from the 2nd user account, no problem...but my master account, no.  How can i unlock these files so after i do my clean install, i can access these files???
    Thanks

    Well what happened was my laptop ran into 2 kernel panics within 2 days (I posted a question here: https://discussions.apple.com/message/25605663#25605663). Which sent ME into a panic. I couldn't trust myself to go any further so I went to the Apple store who then helped did an erase/install for me because they suspect it could be a software issue (maybe it was missing codes or something) and suggested that it would be best for me to drag/drop restore my stuff manually. I'm not very keen on a full system restore either because I know there are some system files which I'd rather not have sticking around (like com.rims which are super stubborn to get rid of) and which could even have been the source of my trouble right now.
    I was reading through every single page of Pondini's articles and I'm couldn't find anything which said I could just restore the apps in my apps folder without transferring anything else (ie. the library folder in the macintosh hd folder) since i'm assuming anything from the library folder of the user would be obsolete if I choose not to restore those files using setup assistant. But I'm more reluctant about not using setup assistant for restoring my apps because I don't know how bad it will turn out. Not to mention I won't know if they would restore system root files that should've been long gone since I uninstalled them.

  • I can not access my files in time machine

    I am trying to restore a file from time machine. When I try to select the file in time machine, it is not accessible. I can not select anything. Only the folder that was selected when I started time machine is highlighted and can be restored but I can not switch to a different folder or select a specific file.

    This option was removed in v9.1.5
    IPhoto menu -> Provide iPhoto Feedback

  • Starttin Oracle using received files on another machine

    Hello gurus,
    Someone sent me 6 dbf files including sys,temp, undo and the rest plus 3 log files plus one ctl file and finally a spfile.
    I want to create and startup the database using those files on my machine.
    Can someone please give me the details and the steps how can I do that. I am experienced DBA but haven't done it for long long time, never needed!!! so please feel free to talk Oracle language and detail and preferably step by step what I should do. I am assuming he had to send me a ctl file using backup to trac but not sure.
    Any help appreciated
    Thank you
    BTW it is a 10g and I guess original machine was a Linux machine but I am not limited, I can use any Os on VM too.

    If all control/online log/data files available(and these are not intact also correct) then just create new directory according files and create pfile(from your spfile).Then make change this pfile for your setting and try startup database as
    export ORACLE_SID=<SID>
    sqlplus "/as sysdba"
    startup mount pfile='pfile_location'
    /*IF your old and new directory structure are different
    then you have  to rename data and log files using
    ALTER DATABASE RENAME FILE 'old_location' to 'new_location'*/
    recover database;
    alter database open;

  • Accessing Backup Files On Time Machine From Another Mac

    Hi everyone,
    I use 1 Time Machine on both my iMac and MacBook Air.
    How can I access the Backup Files of my iMac on my MacBook Air, using the Time Machine?
    I hope this is not too confusing! Thanks, everyone!

    Unfortunately, what you ask is complex and difficult at best for most users.  Please take a look at this User Tip provided by forum expert Tesserax for a review of the methods that might be used to do what you ask.
    AirPort Disk - Remote Access (3 Methods)
    Among the methods listed, I use Method 3, so can provide a few tips on that. It does require that your Internet Service Provider (ISP)  furnish you with a a fixed or static IP address for your Internet connection....and....that you have the correct type of modem and router that would allow Port Mapping to be able to reach the data on the Time Capsule.
    Most users choose the Back to My Mac Method, abbreviated as BTMM, which is supported by Apple. Depending on the nature of the network at work, you may or may not be able to access your backups at home.  Please contact Apple Support for more details on this.
    http://www.apple.com/support/contact/

  • How to move and access .pst file to another location

    I want to move my .ost file in D drive and access from D drive. but when i move the file and start the outlook again then all mails start to download from server again .
    Help me

    Hello Taj,
    The current forum is for developers. I'd suggest asking non-programming questions on the
    Outlook IT Pro Discussions forum instead.
    Anyway, you need to correct the new filepath in the profile settings. Go to the Control Panel applet and look for the Mail shortcut.

  • When taking my file on another machine its showing error?

    Following error is coming up.
    Description Resource Path Location Type
    1172: Definition avmplus:FLASH10_FLAGS could not be found. Assignment.mxml /Assignment/src line 17 Flex Problem
    <fx:Script>
    <![CDATA[
    import avmplus.FLASH10_FLAGS;
    ]]>
    </fx:Script>
    This 'import' line is troubling. Please help me out.
    Though i have changed the path of all the other files related to the main mxml file but i cant understand the error

    For RMI you need to run a process on the machine the file is stored at. You need a server and a client process (same as ftp).
    Well you may also use many other client/server protocols for this. Plain TCP/IP has the advantage of generating the lowest network traffic, FTP is designed for File Transfer and is well tested. You need to relogin everytime you get the file. RMI or IIOP have a bigger overhead. For TCP, RMI and IIOP you need to install a server process on the machine the file is on. FTP should be installed already.
    FTP, IIOP/RMI and TCP either keep a open connection or must reconnect every time you want to read the file. Using IIOP/RMI or TCP allows you to implement some push mechanism - so the connection can be made from the server (the machine where the file is) and the file pushed to your machine when changing.
    You need to find the right solution for your case out of these advantages/disadvantages.

  • How do I access old files on Time Machine?

    I am trying to go back far enough to get a data file that doesn't automatically get updated in Quicken.  I apparently have a corrupted data file that make Quicken 2015 crash every time I try to open it.  The problem started in October 2014 so I have tried to go back to early September using the same file name but have not had any luck despite replacing the file with the older file but same file name.  do I need to assign a new file name to the older file in order for it to work?  I have been assured that the Quicken software appears to be working and it is the latest version so they are stumped.  I'm dead in the water and need any advice you can offer.
    Thanks in advance.

    Hi,
    You would normally open the folder where the file or item normally resides.
    You would then launch Time Machine and use the arrows to go back in time and select the same File/items name and then press Restore to bring it "forward" to the current date.
    You can also manually look in your Back Up Drive/Backups.backupdb/computer name and then the dated folders and then the "mirror' spot in the file system that the item normally resides.
    Whilst this sounds like an easy way you may have to search lots of folders to find the item as an item is only saves when it is changed.
    You should not need to change the File Name using Time Machine.
    If you were thinking on manually bring it to the Desk top from inside the back Up files I would make a Copy and rename it. Then  work on the copy.
    In the Console App (Applications/Utilities) there may well be a Crash Log of the app which may give more clues.
    I don't use Quicken but the Log may show some generic type issue or highlight something about the files it is trying to open.
    It might pay to say what sort of data is in this particular file as people who use Quicken may be able to spot something.
    10:00 pm      Friday; December 26, 2014
    ​  iMac 2.5Ghz i5 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • Help me to Access a File in the Local Network

    Hi everybody,
    I'm new to this field.
    I want to access a file in a machine on the local network from other machines.
    can anybody please give me a simple code for this.
    (actually I'm very little aware of this field)
    Thank You.

    Duminda_Dharmakeerthi wrote:
    Hi everybody,
    I'm new to this field.
    I want to access a file in a machine on the local network from other machines.
    can anybody please give me a simple code for this.This is not a code writing service.
    If you want to access a file on another machine, there are many different ways to do it. All of them require that the other machine be running some kind of service, and that your client machine knows what that service is and how to use it, and most also require your client to authenticate itself.
    You could mount a remote drive with Samba or NFS or Windows' file sharing.
    You could use FTP.
    You could use SCP.
    You could use HTTP.
    You could develop your own custom file sharing protocol.
    You could use some other option not mentioned here.

  • Access specific files in the time machine from another Mac

    I bought one mac air with less space than the mac pro backup that I have in the Time Machine, so I can't migrate the old mac to the new mac air. How can I Access specific files in time machine then? Thank you.

    You can still get your files out of the TM backup..
    There are several methods..
    you can do it manually.
    See Can't access old files on time capsule
    You can also buy a USB drive large enough for the whole backup and simply restore the whole thing to that drive plugged into your computer.. you can then pick and choose what files you want. And at any time you want. Having files in their standard format and location is hugely easier than TM backups.
    If you run into permissions issues there is a fair bit of help although a bit outdated in pondini KB.
    So read through the info here..
    Q14-17 on restore in particular. http://pondini.org/TM/FAQ.html
    And check the troubleshooting for specific problems that can arise.
    http://pondini.org/TM/Troubleshooting.html
    Section E in particular.
    You can pull the hard disk out of your Mac Pro.. that is not hard.. put it in a USB to sata holder and access files that way..
    Overall this is what I would do anyway.. because you will not want to junk the computer with files intact.. pull the files directly off the old hard disk.
    Let me also commend to you a different strategy in the future..
    TM is great when it works.. sadly on every upgrade Apple make changes to it.. and cause utter chaos.
    Buy a 3rd party backup software.. I use CCC and like it.. you create bootable clones of your Mac.. that means all files are readily accessible because you can literally boot directly from the backup.. or access the files because they are not hidden, compressed, rewritten in strange formats.. etc.
    Recovery of a computer with a dead hard disk is 3min exercise where you hold the options key during boot and choose the backup disk.
    You can continue to use TM for the incremental backups which it does very well.. but have the bootable clone as a way of accessing everything. From which you can then easily access the TM backup for whatever might be missing.. I do not do Clones on regular basis.. so it is slightly different method of doing things..
    You can never have enough backups.

  • Process can't access file bcos another process has locked a portion of file

    Does anyone knows if Java could handle the well-known "Open File" problem.
    I encounter the following error when I was trying to copy an outlook file to another location:
    java.io.IOException: The process cannot access the file because another process has locked a portion of the file.
    My codes is placed below for reference.
    Note that I was only trying to open to open the file for reading the Inputstream. Please advise what I could do to avoid getting caught in exception while reading the bytes.
    It will be good if Java could handle the Microsoft's "Open File" problem.
    // my codes
    public static void main(String[] args)
    int BUFSIZE = 4096;
    File theFile = new File("C:\\Documents and Settings\\" + myID +
    "\\Local Settings\\Application Data\\" +
    "Microsoft\\Outlook\\mail.pst");
    long size = theFile.length();
    try {
    FileInputStream fis = new FileInputStream(theFile);
    // exception will happen on the next line
    if (!(size >= 0 &&
    fis.read(new byte[BUFSIZE],0,(int)Math.min(size,BUFSIZE)) > -1)) {
    System.out.println("encountered OFM problem");
    } else {
    System.out.println("read file successfully");
    } catch (Exception e) {
    System.out.println("caught OFM problem");
    e.printStackTrace();

    Sometimes Windows can place a lock on files that will
    prevent you from even reading its contents. You may
    have to close the MS Outlook application in your
    machine to be able to read the contents of this file.Of course I knew Microsoft has locked the file.
    I also knows Microsoft locks a lot of other files too.
    The idea is that we just want to read the file, we are not writing or modifying anyway, so we should be able to read it. Of course that depends on whether Java wants to step into the area and do something about it. (Please read http://www.stbernard.com/products/docs/ofm_whitepaperV8.pdf)
    Well, the easiest way anyone could advise is probably to use Microsoft development tools. The idea is nobody wants to be a "Micro-slaves" if we could...
    So I am still waiting for someone with the area of expertise to reply...

  • Trying to access files on another partition: "you don't have permission to see its contents"

    I want to access my files on another Mac OS X partition, but I get this error. Is there a way to provide the right credentials and access the files?

    Select the volume icon in the Finder and open the Info window. Click the padlock icon in the lower right corner of the window and enter your administrator password when prompted. Check the box at the bottom marked
              Ignore ownership on this volume
    Close the Info window.

Maybe you are looking for