Copy CSV file from windows to linux

Our oracle is installed on UNIX machine so we have to place CSV file there.
We are on windows.We are using Putty client to access UNIX server.
how to copy CSV file from windows to UNIX server?
Thanks

vis1985 wrote:
Our oracle is installed on UNIX machine so we have to place CSV file there.
We are on windows.We are using Putty client to access UNIX server.
how to copy CSV file from windows to UNIX server?Using scp (secure copy).
It is supported by Putty and ssh services are available by default on most (if not all) modern Unix servers.
Don't have a Windows machine close by, but I recall the scp command is supported by the Putty executable called "+pscp.exe+".
The syntax is very simple:
scp <from_destination> <to_destination>
example (pushing a file from Windows to Oracle Unix server)
  scp c:\datafiles\accounts.csv [email protected]:/u01/files/accounts.csv This will prompt for a password.
You also can use ssh trusted certificates (RSA or DSA keys) to automate this. Using Putty you can generate a key pair that consists of a private key and public key.
You copy and paste the public key into the destination server's +$HOME/.ssh/authorized_keys+ file. This results the server in trusting that client and allows the client to connect (using ssh, scp and sftp) without having to supply a password (as the private part of the key serves as authentication). (I would however not use the oracle account for this, but a special scp-copy usage Unix account that does not support shell usage)
If you want to automate it the other way around - have the Unix server pull the file from the Windows client, then you need to install server software on that Windows machine to allow it to provide such a file copy service.
Again I suggest using ssh - OpenSSH is available for a variety of platforms, and Windows should be included. If not, there should be ssh service for Windows from Microsoft or another vendor that can be used.
Any other method than ssh will be either insecure or problematic. FTP is insecure as usernames and passwords are transmitted in clear text. Using Windows File Sharing requires Samba to be loaded and configured on the Unix server - and this is extra work installing and configuring and testing s/w that uses a low level security, that is also proprietary and could required setting on the Windows client also to make it work in a somewhat robust fashion.
The standard today is ssh. It is robust and secure. And it makes a lot of sense to use it.. and pretty good motivation for not using it ifo something else.

Similar Messages

  • Can't copy some files from Windows 7 to Mac OSX over network

    Hi,
    I'm running the latest version of Max OSX v10.8.4 on a brand new Macbook Pro.
    I have followed the setup instructions at http://www.7tutorials.com/how-change-workgroup-mac-os-x-easy-networking to access my Macbook from Windows, and http://www.howtogeek.com/howto/24950/how-to-share-a-folder-in-os-x-with-windows/ to share some folders from my Macbook to Windows.
    I am now trying to copy some files from my Windows 7 Pro (SP1) computer to my Mac, and have hit the following problems:
    I can view my Macbook in my list of local networked computers on WIndows, but I cannot access it. Clicking on it causes Windows 7 to try and access it, but then I get a message after a minute saying the network path could not be found. However, if I manually enter the IP address of my Macbook in the Windows address bar (\\192.168.0.191), I can view and access all the shared folders. I can never access the Macbook via it's computer name (\\MACBOOK-ROB).
    I cannot copy some files from Windows to my Macbook shared folders via Windows. There is nothing to distinguish these files from the hundereds of other files that I have successfully copied to my Macbook. They are pictures and music with no special characters in the filenames, not overly long filenames or folder paths, no access restrictions, or any other security restriction that I can see. However, every single attempt to copy these files to my Macbook results in WIndows reporting that access to the destination was denied.
    I have tried both these above scenarios on WiFi and Ethernet, and the results are the same.
    So:
    Why am I unable to access my Macbook by it's computer name on the network? How can Windows see it, but not access it?
    What are the limitations on transferring files over SMB that is (presumably) causing these specific files to fail?
    Thanks for any help you can offer.

    I have a fix for inability to copy files. I had the same problem moving a lot of old files across my LAN from a Windows XP machine to a Mac Mini running Mountain Lion. After confirming copy of some special file, I would get an error that terminated the copy operation, and info on the Mac side would show a locked folder.
    I finally decided to eliminate all special files on the Windows side, before copying, by running
         attrib -s -h -r /s /d [drive or folder]\*.*
    in a command window. Running attrib /?  tells what the arguments mean, but it doesn't explain that you need the *.* to make the command go through the hierarchy clearing the special attributes on all the files.
    After I did that, and then used drag and drop between two Windows Explorer windows (one on the Windows drive, on on the target drive on the Mac), the whole move operation ran to completion without stopping either for error or to ask for confirmation.
    I do not have a fix for the inability to access some computers by name rather than by IP address. I'm looking into the possibility of activating bind on the Mac but I haven't done anything yet.

  • Transfering files from windows to linux

    Hi,
    My requirement is Client will select files from widows and then click zip.In server(linux) i have to get those files and zip.Here i am unable to get the files sent by the client.
    Suppose client will select the file in C:\xxx then click zip.In linux am using request.getParameter() from getting those files.Here in linux it is getting the path of the file as C:\xxx and unable to locate.Giving FIleNotFound Exception.
    How can resolve this issue.
    Regards,
    Babu

    Hi Boss am getting the problem in transfering files from windows to linux.
    In linux it is unable to locate the file which was selected by the client in windows.
    Am using request.getParameter () to get the file.How to solve this.

  • Utl_file gives error when coping file from windows to linux

    Red Hat Enterprise Linux Server release 5.7 (Tikanga)
    Oracle 11.1
    Hi there,
    I can't copy a file with utl_file.fcopy after copying file with samba from winodws to linux. Only after I open the file on linux and save it, can I copy it :
    1.) Copy file from windows (drag and drop)
    2.)
    SQL> exec utl_file.fcopy('XXMS_DATA_IMPORTS', 'Project_62.csv','XXMS_DATA_IMPORTS', 'xxms_pa_tasks_master.csv');
    BEGIN utl_file.fcopy('XXMS_DATA_IMPORTS', 'Project_62.csv','XXMS_DATA_IMPORTS', 'xxms_pa_tasks_master.csv'); END;
    ERROR at line 1:
    ORA-29284: file read error
    ORA-06512: at "SYS.UTL_FILE", line 270
    ORA-06512: at "SYS.UTL_FILE", line 1243
    ORA-06512: at line 1
    3.)su to root
    4.)open file and save it with vi, without changing anything
    5.)
    SQL> exec utl_file.fcopy('XXMS_DATA_IMPORTS', 'Project_62.csv','XXMS_DATA_IMPORTS', 'xxms_pa_tasks_master.csv');
    PL/SQL procedure successfully completed.
    How can I copy from windows to linux with samba, so this doesn't happen?
    Please help

    After the file is initially created in Linux:
    What are the owner and group for the directory in which the file resides?
    What are the directory permissions?
    What are the owner and group for the file?
    What are the file permissions?
    What is the OS name of the oracle user?
    After root vi's and resaves the file:
    What are the owner and group for the file?
    What are the file permissions?

  • OS X 10.4.7 server: Samba leaking ram when copying large files from windows

    Hi.
    I'm having problems with:
    Copying files from windows clients to OS X Server 10.4.7 uses up the RAM needed for the files to be copied.
    If I copy a 3GB file, it uses 3GB of RAM
    If I copy a 5GB file, it uses its 4GB of RAM, plus VM.
    If I copy 11GB of files (that is several little files, plus some big by dropping a folder to the share), it consumes all the RAM the machine has, and because of VM paging, whatever other clients are reading from the disk (XRaid) start to have hiccups.
    The RAM of the machine NEVER gets flushed after the copying has finished. So Samba is unusable as it is. I have four Xserves with 4GB of RAM, with 4 XRaids connected each one to each Xserve with its Apple Fiber Channel card and cables.
    I already did the ack=0 thing, got the size of inet.tcp.sendspace and rcvspace to 8388608 and the buffer to 16777216.
    The transfers rates are up to 70MB/s with 2 channel 1gb trunking, and at very sustained rates..
    We are using these to edit video content (DV 25) in Sony Vegas with 2 or 3 clients for each server.
    Any suggestions?
    Thanks very much.
    XServe G5 cluster node (4) / XRaid 7TB (4)   Mac OS X (10.4.7)  

    Michael, I occasionally notice anomolous behaviour when files get dragged between volumes. Mostly the copying window shows an accurate and immediate indication of what's going on, but other times it just looks like nothing's happening, the display never changes, yet, it is in fact copying the files over. Now, if you're copying 2gb files from DVD to HD, it's gonna take some time, more than 5 minutes, so I'm wondering how long you've left it before forcing it to quit?

  • Moving .csv file from windows(client) to linux server

    Hi All,
    I have a .csv file in "D:\Datafiles\Test.csv". I need to move this file to server top "$XXLS_TOP/admin/import/US/" using shell scripting.
    Server : XYZ
    Login : test_user
    Password : password
    Can anyone help me on this.I am new to shell scripting..
    thanks

    Hi,
    As already mentioned above, you have 2 major options:
    1.samba (lots of docs on the net)
    2. ftp (even more docs on the net)
    If you decide to use ftp, then here's a starting point:
    -install ftp server on your Win machine-
    -you can use lftp , which has the ability to read a set of commands from a file
    For instance:
    [kido@kido ~]$ pwd
    /home/kido
    [kido@kido ~]$ ls
    cacti_backup.tar.gz                    Desktop     ftp       j2re-1_4_1_02-solaris-sparc.sh  out   test
    cacti_data_query_ucdnet_device_io.xml  diskio.tar  help.txt  net-snmp_devio.xml              perl
    [kido@kido ~]$ cd ftp
    [kido@kido ftp]$ ls
    ftpscript
    [kido@kido ftp]$ cat ftpscript
    open localhost -u kido,123kido$
    ls
    get help.txt
    bye
    [kido@kido ftp]$ lftp -f ftpscript
    drwxrwxrwx    2 501      501          4096 Feb 25  2009 Desktop
    -rw-r--r--    1 501      501      13137873 Mar 30 19:54 cacti_backup.tar.gz
    -rw-rw-r--    1 500      500         34216 Feb 03  2007 cacti_data_query_ucdnet_device_io.xml
    -rw-r--r--    1 501      501          4950 Apr 07 08:46 diskio.tar
    drwxrwxr-x    2 501      501          4096 Sep 08 15:53 ftp
    -rw-rw-r--    1 501      501           144 Jul 30 19:27 help.txt
    -rw-r--r--    1 501      501      23023830 May 27 14:17 j2re-1_4_1_02-solaris-sparc.sh
    -rw-rw-r--    1 500      500          2568 Aug 18  2005 net-snmp_devio.xml
    -rw-rw-r--    1 501      501          8093 Aug 05 15:21 out
    drwxrwxr-x    2 501      501          4096 Jun 16 15:38 perl
    drwxrwxr-x    2 501      501          4096 Sep 02 13:10 test
    [kido@kido ftp]$ ls
    ftpscript  help.txt
    [kido@kido ftp]$ You can modify ftpscript and put any commands you need. Then you can run "lftp -f ftpscript" from cron (for instance). For more details: man lftp.
    kido

  • Error while copying a file from windows oracle server to a solaris server

    Hi all,
    DECLARE
      l_conn  UTL_TCP.connection;
    BEGIN
      l_conn := ftp.login('Destination Ip address ', '22', 'Username', 'Password');
      ftp.ascii(p_conn => l_conn);
      ftp.put(p_conn      => l_conn,
              p_from_dir  => 'MID5010_DOC1TEMP', -- Oracle Directory name from where we need to copy a file
              p_from_file => 'Hipaa.33KM.5093.06152011130146885.834.O.irl',
              p_to_file   => '/qatest1/mihipaa5010/mj5010/DevelopmentStage/working_directory/Outbound/Data/75061252/Hipaa.00AN.07262011173844778.820.O.copied.irl'); -- Directory of the destination machine where we need to paste
      ftp.logout(l_conn);    
       exception
        when others then
          dbms_output.put_line(sqlcode || sqlerrm);
          --dbms_output.put_line(l_conn);    
    END;We are getting the below error:
    SSH-1.99-OpenSSH_5.1
    -29260ORA-29260: network error: TNS:connection closed
    Could any one please let us know why this error is raising...

    prakash wrote:
    Hi all,
    DECLARE
    l_conn  UTL_TCP.connection;
    BEGIN
    l_conn := ftp.login('Destination Ip address ', '22', 'Username', 'Password');
    ftp.ascii(p_conn => l_conn);
    ftp.put(p_conn      => l_conn,
    p_from_dir  => 'MID5010_DOC1TEMP', -- Oracle Directory name from where we need to copy a file
    p_from_file => 'Hipaa.33KM.5093.06152011130146885.834.O.irl',
    p_to_file   => '/qatest1/mihipaa5010/mj5010/DevelopmentStage/working_directory/Outbound/Data/75061252/Hipaa.00AN.07262011173844778.820.O.copied.irl'); -- Directory of the destination machine where we need to paste
    ftp.logout(l_conn);    
    exception
    when others then
    dbms_output.put_line(sqlcode || sqlerrm);
    --dbms_output.put_line(l_conn);    
    END;We are getting the below error:
    SSH-1.99-OpenSSH_5.1
    -29260ORA-29260: network error: TNS:connection closed
    Could any one please let us know why this error is raising...As sybrand correctly points out, this issue doesn't belong here.
    You are using a 3rd party package "ftp" and the error it is indicating suggests the issue is a network issue of some sort.
    We don't have the code of that package or know what it is doing, so please consult whoever supplied or wrote the package and/or your network administrators.

  • Migrating Repositroy from Windows to Linux

    Hi,
    How to migrating the repository from windows Server to Linux in OBIEE. Is there any process ?
    Thanks !

    Hi,
    See the below link is helpful for you,
    http://siebel.ittoolbox.com/groups/technical-functional/siebel-analytics-l/migrating-oracle-bi-siebel-rpd-file-from-windows-to-linux-2146407
    Thanks,
    Balaa...

  • How to copy a file from one folder to another folder in Linux

    Hello everyone,
    Oracle forms 11g 11.1.2.0.0
    OS: Oracle Linux
    We use webutil to upload files to the application server from the client machine, and stores them in a folder named JOB_DOCS on the application server (This folder is created as a databse directory too). File types are JPEG, GIF, PDF, TXT, BMP, DOC, XLS etc...
    At a later stage when the user tries to view the uploaded documents, this was not getting displayed on the screen
    on our windows server, when the user clicks on the print button we copy the file from the JOB_DOCS folder to the forms\java folder using the below command
    HOST('COPY ' ||d:\JOB_DOCS\test.pdf||' '||'c:\oracle\middleware\as\forms\java\test.pdf ,NO_SCREEN);
    once the file is under the forms\java folder then it is getting displayed on the screen to print or save, and later we remove the file from forms\java folder.
    But my problem here is, recently we have installed our application on Oracle Linux server, and we have JOB_DOCS folder there, and the users can upload files to this folder also. How can we copy the file test.pdf from JOB_DOCS to forms/java in linux?
    And what could be the reson for the document cannot be accessed from the folder where it is saved? We tried giving folder permissions, adding the folder to PATH variable etc.

    For copying and moving directories you can use the cp and mv commands just like you use them with files. Yeah, I know. If you've already tried to copy a directory with cp, you've probably noticed that cp just complains at you. Probably it says something like cp: omitting directory yadda yadda. You see, the cp command wants you to use the -r option if you want to copy a directory with its contents. The -r means "copy recursively":
    $ cp -r dir1 dir2
    The above creates a directory named dir2 whose contents will be identical to dir1. However, if dir2 already exists, nothing will be overwritten: the directory dir1 will be copied into the dir2 directory under the name dir2/dir1.
    When renaming directories, you use the mv command exactly the same way as with files:
    $ mv dir1 dir2
    When dealing with directories, mv works a bit like cp does. If dir2 doesn't exist, the above will rename dir1 to dir2, but if dir2 exists, the directory dir1 will be moved into the dir2 directory under the name dir2/dir1.
    ref http://www.tuxfiles.org/linuxhelp/dirman.html

  • After copying a file from NTFS to HFS volume, file size changed when viewing in Windows

    Hi guys,
    I have a Mac Air running Mavericks on a HFS partition and Windows 7 on a BOOTCAMP NTFS partition. I have some files that I want to read/write from/to both systems. Since OS X can't write NTFS and Windows can't write HFS either, and I don't want to use any 3rd-party tools/drivers, I have to adopt a "stupid" way: in OS X, I copy those files from NTFS to its HFS partition, make changes, then switch to Windows and sync them back to NTFS.
    The problem is, after I copied a file from NTFS to HFS in OS X, it seemed ok. But when I switched to Windows, the very copied file in HFS partition had its size changed (bigger) although I didn't make any changes to it in OS X yet. This happens to almost every file I copied, text and binary. For those text files, I tried to open it with EditPlus in Windows and EditPlus reports the correct size on the status bar.
    How could this happen?

    I am not sure if this is what your seeing but...
    The same unaltered file on two different volumes might use different amounts of disk space. This is because a 'disk' is divided in to 'blocks' and a block (also historically known as a 'sector') is a certain minimum size. So if disk-1 has a block size of 512 bytes and disk-2 has a block size of 1024 bytes then a file containing just 10 bytes will use up twice as much space on disk-2 as disk-1 even though it is the exact same file.
    Beyond that, Macs can add additional information like Spotlight tags, labels, icons, etc. which make a file bigger. If you are modifying a file then presumably that also implies adding additional content e.g. for a Word document more text and this will make it bigger. Also depending on some programs are configured or designed 'deleting' text may only mark it as deleted and not really delete. This can apply to older versions of Word which has a 'Fast Save' feature, new versions have removed this and do a proper delete.
    You would have to give more details like what you are doing to the document, what kind of document, and what the two sizes are.
    Finally, there is one other potential difference, some systems and manufacturers use 1024 as a unit for measuring file and disk sizes, some use 1000. It will be the same number of bytes in each case but 1000 bytes in one case would exactly equal 1MB, and in the other it would be 0.9765MB.

  • Copy jpg files from mac o sx 10.5.4 to pc windows xp

    I copied jpg files from my mac book to a windows pc, however, when I go to the widows machine I can see them on the hard drive of the pc but the pc will not open them.  
    During the copy an added extension, a "dot" and then an underscore before each files name.  Example.  On my mac I have a jpg file named 2f.jpg and when I copied it over it appears on the windows pc as   ._2f.jpg.  Windows can not read it

    MDD Dual 1GHz PowerMac
    Titanium Powerbook
    HP T7500 Dual Core 2.2GHz laptop
    windows formatted (NTFS) 250GB SimpleTech External HD
    Hi Friends,
    I'm forced to use a PC at work that I have the windows formatted ext hard drive connected to for backup purposes.
    I connected the external drive via USB2 to my TiPB and downloaded some RAW image files.
    Those image files are not recognized by my Bridge on my Mac.
    Those image files are no longer recognized by my PC thru Bridge, Photoshop or Lightroom. I also see an extra file type with the name "filename.dng.mac"
    Therefore, if my original file name is "_JTR0398.dng", then, after mounting the external HD on my laptop or PowerMac, I also get another file next to it named "_JTR0398.dng.mac".
    Thanks for your help!
    Joe

  • Copying data files from Mac to Windows on MacBook running Parallel

    How can I copy .doc files from Mac folders to Windows folders?
    I am running Parallel but I cannot access the Mac folders and files when I am running Windows.
    I cannot access flash drives from Windows either.
    Can anyone help?
    Thank you
    MacBook Black   Mac OS X (10.4.9)  

    Theres a feature called shared folders that works
    quite nicely. I cant quite remember the specifics but
    I have done it before. Or if you've got a few small
    ones copy and pasting between work spaces now works.
    Cheers, Arthur
    Now all I need do is figure out how to turn on the sound when using Windows. Everything is as it should be on my Xp setup but no sound. Mac must be controlling this but I do not know where to look to solve this situation.
    Have a great week,
    Robert
    MacBook Black   Mac OS X (10.4.9)  

  • I cant able to copy my files from my macbook to external hard disk,its showing "read-only",but i can able to transfer files in windows os,why cant i able to do tht in here?

    i cant able to copy my files from my macbook to external hard disk,its showing "read-only",but i can able to transfer files in windows os,why cant i able to do tht in here?

    to frederic1943
             Its in NTFS Format...and i hav downloaded the file NTFS-3G,but still i dont know wht to do with that.will u pls help me here.

  • Migration from windows to Linux - JAR files not generating under JAVA_TOP

    Hi DBA's
    Jar files not generating under JAVA_TOP after migration from windows to linux.
    I followed workaround but same in result.
    Workaround
    Run this command. It will give the missing file
    adjava -mx512m -nojit oracle.apps.ad.jri.adjcopy -masterArchive $JAVA_TOP -sync -reportfile javatopfiles.lst
    Then run this command
    adjava -mx512m -nojit oracle.apps.ad.jri.adjcopy -masterArchive JAVA_TOP -sync -mode APPLY
    I have checked in google.
    Best Regards,
    Suresh Gelda

    Suresh,
    I can find the following error in the log file:
    JarSigner error output:
    Exception in thread "main" java.lang.NoClassDefFoundError: sun/security/tools/JarSigner
    Caused by: java.lang.ClassNotFoundException: sun.security.tools.JarSigner
         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
    Could not find the main class: sun.security.tools.JarSigner.  Program will exit.Please review the following notes for suggested solutions:
    Note: 393306.1 - Generate Jar File causes NoClassDefFoundError sun/security/tools/JarSigner
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=393306.1
    Note: 269054.1 - Running adadmin to Force Regenerate of the Java Files Fails
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=269054.1

  • How i can access the linux shell file from windows platform

    Hey Friends,
    Anyone can tell me that through RMI how i can access the linux shell file or files from windows platform.
    Thanks in advance...

    it happend by mistake......
    sorry allYou've vanished, I checked your posting history and you have posted numerous threads about this problem. I hope you are reading the document that I suggested and will return knowing how to post smart questions. Otherwise you have a long way to go before you qualify for that -ji at the end of your id.

Maybe you are looking for

  • Can't Install Itunes 8.1.1. Update - Permissions Issue on my Own Computer !

    I am running ITunes 8 on an Intel Imac under OS 10.5.6. I am the owner and administrator of this computer and have used ITunes for 10 years !! However, very very strangely, When I run Software Update and try to run the updater to ITunes 8.1.1., I am

  • Importing data from 64-bit to 32-bit machine

    Is there a way to import the oracle export file *.dmp from a 64-bit machine to a 32-bit machine. I have two oracle databases, on on the HP-UX 10.2 32-bit machine with oracle 7.3.4 database and another one on HP-UX 11.0 64 bit machine with Oracle 8.1.

  • Lenovo G510 Win 8 password Forgotten

    I have forgotten the password of Lenovo G510 windows 8. How do I solve this problem any solutions. I have tried "Windows Password Rescuer Personal" but it gives windows not detected Error.  Any other solution. How about One Key Recovery ???? Would it

  • DVI Input for MacBook Pro

    I purchased an SRS wow viewsonic LCD TV and a boxwave apple MacBook Pro17'' mini display port to DVI cable so I could display movies through my laptop onto my TV. When I plugged in the cable to the DVI Socket, it was completely unresponsive. Do I nee

  • SSL WebServices config error ? trust failure

    I’m at a loss in getting SSL to work with 7.0’s Web Services. I compiled and ran the basic javaclass example using http. I’m using the demo cert provided with WLS. I haven’t changed any admin console SSL settings. Then (I think) I followed the direct