Copy command from JDBC
Hi all,
I am currently trying to use the copy command to copy data from a text file into a database table using JDBC. In my Java application I am attempting to execute the SQL copy node from 'node.txt' with Delimiter ' '; where node is the name of the table. After the SQL is executed the update count is 0.
However, when I run the same command from the SQL console in pgAdmin (I am using the PostgreSQL database) the command works correctly and as expected. I don't understand what the problem is as the command is the exact same. Has anyone else has this problem or know how to fix it?
Any help would be much appreciated.
Thanks,
Martin
My JDBC code is below:
Thanks.
public void copyTableFrom(
String tablename,
String mode,
String path //the "absolute" path of the file
String qrystr = "copy " + tablename + " from \'" + path + "\' with Delimiter ' ';";
this.db.nonQueryCmd(qrystr);
public void nonQueryCmd(String cmd)
try {
this.st = conn.createStatement();
this.closeStatement();
} catch(SQLException sqle) {
System.err.println("error occurs when execute " + cmd);
sqle.printStackTrace();
this.exit_nicely();
public void exit_nicely()
this.disconnectDB();
System.exit(1);
public void disconnectDB()
try {
this.conn.close();
} catch (SQLException e) {
System.err.println("Closing connection to database " + dbname + " failed");
e.printStackTrace();
System.exit(1);
}
Similar Messages
-
SQLPlus Commands from JDBC Connection object
How to execute SQLPlus command line commands from JAVA using jdbc.
for example, would like execute commands like
'break on <col_name>'
or
'compute sum of <col_name> on <col_name>'
from Java using JDBC.
Anyone has tried these? please write immediately, itz urgent.Thanks for ur reply,
I have tried with ROLLUP and CUBE, since i am converting Sybase sqls to Oracle and try to get exactely same results.
With, break on and compute and then select statement execution will give the same result.
In Oracle 9i's SQLPlus Worksheet they do execute these statements. i thought some how it would be possible in java too.
any other solns?
Regards
Sunthe -
Running Copy command from Forms 6i
HI!
I want to run Copy command through Forms 6i i.e copy from scott/tiger@orcl insert test@msora(ename) using select to_char(ename) ename from emp;
I can run DDL command through Forms_ddl functions in Forms 6i, But copy command is not working using Forms_ddl.
thanks in advance.
Edited by: Kami_Lily on Aug 2, 2009 10:04 PMDear Kami Lily,
Oracle Forms is able to execute SQL and PL/SQL command only. Additionally it supports Operating System command by HOST built-in.
Though COPY is a SQL*Plus command, it is not possible to execute this command by HOST built-in.
Instead, if you hardly want to execute COPY command oracle forms 6i, then you make a batch file in operating system and run that batch file from HOST built-in.
Thanks. -
How do I copy material from one document to the next by using keyboard commands. I am copying from Word into and external database and the external system seems to be covering my tool bar from which I would typically click editing shortcut commands.
Highlight what you want to copy, then command - C. To paste, select where you want it to go, then command - V.
-
Copying Files From a Remote Machine through "rcp" command not working.
Hi All,
I'm a new comer to this famous forum. I was trying to go through the PDF "Solaris Advanced User's Guide" .So in chapter 9-"Using the network" i came across "Copying Files From a Remote Machine". And the syntax was "rcp machinename:source destination" . And i got another note. It is like
"The rcp command enables you to copy files from one machine to another. This command uses the remote machine's /etc/hosts.equiv and /etc/passwd files to determine whether you have unchallenged access privileges. The syntax for rcp is similar to the command syntax for cp.".
But i maintained remote machine's IP address in my system's /etc/hosts file. But still i am unable to do the rcp from remote system to my system or vice versa.
Always i am getting error message " **Connection refused**".
Therefore please some one guide me how to perform the " Copying Files From a Remote Machine" through rcp command.
Reghards
KartikHi
The inconvenience of using scp is that you have to type the password every time you stablish a connection. You can work around this, adding a key into the remote hosts_allow file. This implies in more maintenance.
From the rcp man page:
+rcp does not prompt for passwords. It either uses Kerberos authentication which is enabled through command-line options or your current local user name must exist on hostname and allow remote command execution by rsh(1).+
From the rsh man page:
+ If you omit command, instead of executing a single command, rsh logs you in on the remote host using rlogin(1).+
By default, rlogin is disabled on Solaris 10
[SunOS 5.10/bash] root@wgtsinf01:/store/sun/operating-systems
# svcs -a|grep -i rlog
disabled May_11 svc:/network/login:rloginSo, to use rcp you have to enable the rlogin service and set up all the configuration files. Particularly, as already suggested, I too suggest you to use scp. :)
Cheers
-- Andreas
Edited by: Bank_Of_New_Zealand on 15/06/2009 13:09 -
I am trying to copy videos from windows folder into iTunes and it will not copy. I have used drag and drop and the folder sopy comand from iTunes. Anybody got an answer?
Hi wayneiii,
If you are having issues adding video files to iTunes on your Windows machine, you may want to verify that they are in a format that iTunes can play. You may find the following article helpful:
iTunes: Frequently asked questions about viewing and syncing videos
http://support.apple.com/kb/ht2729
Regards,
- Brenden -
CPU Jul-09 Installation - Error Cannot copy file from 'libjox10.so' to
Hi All, I received this error while I was installing the last CPU on a 10.2.0.4 Oracle Instance running on a HP-UX Itanium System:
Patch 8568398:
Copy Action: Desctination File "/u02/app/oracle/product/10.2/Db_1/lib/libjox10.so" is not writeable.
'oracle.rdbms, 10.2.0.4.0': Cannot copy file from 'libjox10.so' to '/u02/app/oracle/product/10.2/Db_1/lib/libjox10.so'
I checked metalink' site with no similar results found.
Could anybody help me?
Should I run /usr/sbin/slibclean and remove the last patch (Patch 8568398) and then try again?
This is the complete log...
$ opatch version
Invoking OPatch 10.2.0.4.7
OPatch Version: 10.2.0.4.7
OPatch succeeded.
$ sqlplus /nolog
SQL*Plus: Release 10.2.0.4.0 - Production on Fri Jul 17 16:29:29 2009
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
SQL> conn / as sysdba
Connected.
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
$ lsnrctl stop
LSNRCTL for HPUX: Version 10.2.0.4.0 - Production on 17-JUL-2009 16:32:29
Copyright (c) 1991, 2007, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=Hostname)(PORT=1521)))
The command completed successfully
$ emctl stop dbconsole
Oracle Enterprise Manager 10g Database Control Release 10.2.0.4.0
Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
http://hostname:1158/em/console/aboutApplication
Stopping Oracle Enterprise Manager 10g Database Control ...
... Stopped.
$unzip p8534387_10204_HPUX-IA64.zip
<...>
$ cd 8534387
$ opatch napply -skip_subset -skip_duplicate
Invoking OPatch 10.2.0.4.7
Oracle Interim Patch Installer version 10.2.0.4.7
Copyright (c) 2009, Oracle Corporation. All rights reserved.
UTIL session
Oracle Home : /u02/app/oracle/product/10.2/Db_1
Central Inventory : /u02/app/oracle/oraInventory
from : /var/opt/oracle/oraInst.loc
OPatch version : 10.2.0.4.7
OUI version : 10.2.0.4.0
OUI location : /u02/app/oracle/product/10.2/Db_1/oui
Log file location : /u02/app/oracle/product/10.2/Db_1/cfgtoollogs/opatch/opatch2 009-07-17_16-38-05PM.log
Patch history file: /u02/app/oracle/product/10.2/Db_1/cfgtoollogs/opatch/opatch_ history.txt
Invoking utility "napply"
Checking conflict among patches...
Checking if Oracle Home has components required by patches...
Checking skip_duplicate
Checking skip_subset
Checking conflicts against Oracle Home...
OPatch continues with these patches: 7155248 7155249 7155250 7155251 7155252 7155253 7155254 7197583 7375611 7375613 7375617 7609057 7609058 8309587 8309592 8309623 8309632 8309637 8309642 8534387 8568395 8568397 8568398 8568402 8568404 8568405
Do you want to proceed? y
y
User Responded with: Y
Running prerequisite checks...
Prerequisite check "CheckApplicable" failed.
The details are:
Patch 8568398:
Copy Action: Desctination File "/u02/app/oracle/product/10.2/Db_1/lib/libjox10.so" is not writeable.
'oracle.rdbms, 10.2.0.4.0': Cannot copy file from 'libjox10.so' to '/u02/app/oracle/product/10.2/Db_1/lib/libjox10.so'
UtilSession failed: Prerequisite check "CheckApplicable" failed.
$ opatch lsinventory -detail
Invoking OPatch 10.2.0.4.7
Oracle Interim Patch Installer version 10.2.0.4.7
Copyright (c) 2009, Oracle Corporation. All rights reserved.
Oracle Home : /u02/app/oracle/product/10.2/Db_1
Central Inventory : /u02/app/oracle/oraInventory
from : /var/opt/oracle/oraInst.loc
OPatch version : 10.2.0.4.7
OUI version : 10.2.0.4.0
OUI location : /u02/app/oracle/product/10.2/Db_1/oui
Log file location : /u02/app/oracle/product/10.2/Db_1/cfgtoollogs/opatch/opatch2009-07-17_17-53-30PM.log
Patch history file: /u02/app/oracle/product/10.2/Db_1/cfgtoollogs/opatch/opatch_history.txt
Lsinventory Output file location : /u02/app/oracle/product/10.2/Db_1/cfgtoollogs/opatch/lsinv/lsinventory2009-07-17_17-53-30PM.txt
Installed Top-level Products (2):
Oracle Database 10g 10.2.0.1.0
Oracle Database 10g Release 2 Patch Set 3 10.2.0.4.0
There are 2 products installed in this Oracle Home.
Installed Products (190):
Agent Required Support Files 10.2.0.1.0
Agent Required Support Files Patch 10.2.0.4.0
Assistant Common Files 10.2.0.1.0
Assistant Common Files Patch 10.2.0.4.0
Bali Share 1.1.18.0.0
Buildtools Common Files 10.2.0.1.0
Character Set Migration Utility 10.2.0.1.0
Character Set Migration Utility Patch 10.2.0.4.0
Database Configuration and Upgrade Assistants 10.2.0.1.0
Database Configuration and Upgrade Assistants Patch 10.2.0.4.0
Database SQL Scripts 10.2.0.1.0
Database SQL Scripts Patch 10.2.0.4.0
Database Workspace Manager 10.2.0.1.0
Database Workspace Manager 10.2.0.4.0
DBJAVA Required Support Files 10.2.0.1.0
DBJAVA Required Support Files Patch 10.2.0.4.0
Enterprise Edition Options 10.2.0.1.0
Enterprise Manager Agent Core 10.2.0.1.0
Enterprise Manager Agent Core Patch 10.2.0.4.0a
Enterprise Manager Agent DB 10.2.0.1.0
Enterprise Manager Agent DB 10.2.0.4.0
Enterprise Manager Baseline 10.2.0.1.0
Enterprise Manager Baseline 10.2.0.4.0
Enterprise Manager Common Core Patch 10.2.0.4.0a
Enterprise Manager Common Files 10.2.0.1.0
Enterprise Manager Minimal Integration 10.2.0.1.0
Enterprise Manager plugin Common Files 10.2.0.1.0
Enterprise Manager plugin Common Files 10.2.0.1.0
Enterprise Manager plugin Common Files Patch 10.2.0.4.0
Enterprise Manager Repository Core 10.2.0.1.0
Enterprise Manager Repository Core patch 10.2.0.4.0a
Enterprise Manager Repository DB 10.2.0.1.0
Enterprise Manager Repository DB 10.2.0.4.0
Generic Connectivity Common Files 10.2.0.1.0
Generic Connectivity Common Files Patch 10.2.0.4.0
HAS Common Files 10.2.0.1.0
HAS Common Files Patch 10.2.0.4.0
HAS Files for DB 10.2.0.1.0
HAS Files for DB Patch 10.2.0.4.0
Installation Common Files 10.2.0.1.0
Installation Common Files Patch 10.2.0.4.0
Installer SDK Component 10.2.0.4.0
iSQL*Plus 10.2.0.1.0
iSQL*Plus 10.2.0.4.0
Java Runtime Environment 1.4.2.14.0
JDBC Common Files 10.2.0.1.0
JDBC Common Files 10.2.0.4.0
LDAP Required Support Files 10.2.0.1.0
LDAP Required Support Files Patch 10.2.0.4.0
OLAP SQL Scripts 10.2.0.1.0
OLAP SQL Scripts Patch 10.2.0.4.0
Oracle Advanced Security 10.2.0.1.0
Oracle Advanced Security Patch 10.2.0.4.0
Oracle Call Interface (OCI) 10.2.0.1.0
Oracle Call Interface (OCI) Patch 10.2.0.4.0
Oracle Clusterware RDBMS Files 10.2.0.1.0
Oracle Clusterware RDBMS Files Patch 10.2.0.4.0
Oracle Code Editor 1.2.1.0.0I
Oracle Configuration Manager 10.2.7.1.0
Oracle Containers for Java 10.2.0.1.0
Oracle Containers for Java 10.2.0.4.0
Oracle Core Required Support Files 10.2.0.1.0
Oracle Core Required Support Files Patch 10.2.0.4.0
Oracle Data Mining RDBMS Files 10.2.0.1.0
Oracle Data Mining RDBMS Files Patch 10.2.0.4.0
Oracle Database 10g 10.2.0.1.0
Oracle Database 10g 10.2.0.1.0
Oracle Database 10G 32 bit 10.1.0.2.0
Oracle Database 10g interMedia Files 10.2.0.1.0
Oracle Database 10g interMedia Files Patch 10.2.0.4.0
Oracle Database 10g Patch 10.2.0.4.0
Oracle Database 10g Patch 10.2.0.4.0
Oracle Database 10g Release 2 Patch Set 3 10.2.0.4.0
Oracle Database User Interface 2.2.13.0.0
Oracle Database Utilities 10.2.0.1.0
Oracle Database Utilities Patch 10.2.0.4.0
Oracle Display Fonts 9.0.2.0.0
Oracle Enterprise Manager Console DB 10.2.0.1.0
Oracle Enterprise Manager Console DB 10.2.0.4.0
Oracle Extended Windowing Toolkit 3.4.38.0.0
Oracle Globalization Support 10.2.0.1.0
Oracle Globalization Support Patch 10.2.0.4.0
Oracle Help For Java 4.2.6.1.0
Oracle Help for the Web 1.1.10.0.0
Oracle Ice Browser 5.2.3.6.0
Oracle interMedia 10.2.0.1.0
Oracle interMedia Annotator 10.2.0.1.0
Oracle interMedia Client Option 10.2.0.1.0
Oracle interMedia Client Option Patch 10.2.0.4.0
Oracle interMedia Java Advanced Imaging 10.2.0.1.0
Oracle interMedia Java Advanced Imaging Patch 10.2.0.4.0
Oracle interMedia Locator 10.2.0.1.0
Oracle interMedia Locator Patch 10.2.0.4.0
Oracle interMedia Locator RDBMS Files 10.2.0.1.0
Oracle interMedia Locator RDBMS Files Patch 10.2.0.4.0
Oracle interMedia Patch 10.2.0.4.0
Oracle Internet Directory Client 10.2.0.1.0
Oracle Internet Directory Client Patch 10.2.0.4.0
Oracle Java Client 10.2.0.1.0
Oracle Java Client Patch 10.2.0.4.0
Oracle JDBC Thin Driver for JDK 1.2 10.2.0.1.0
Oracle JDBC Thin Driver for JDK 1.2 Patch 10.2.0.4.0
Oracle JDBC Thin Driver for JDK 1.4 10.2.0.1.0
Oracle JDBC Thin Driver for JDK 1.4 Patch 10.2.0.4.0
Oracle JDBC/OCI Instant Client 10.2.0.1.0
Oracle JDBC/OCI Instant Client Patch 10.2.0.4.0
Oracle JFC Extended Windowing Toolkit 4.2.33.0.0
Oracle JVM 10.2.0.1.0
Oracle JVM Patch 10.2.0.4.0
Oracle LDAP administration 10.2.0.1.0
Oracle LDAP administration patch 10.2.0.4.0
Oracle Locale Builder 10.2.0.1.0
Oracle Message Gateway Common Files 10.2.0.1.0
Oracle Message Gateway Common Files Patch 10.2.0.4.0
Oracle Net 10.2.0.1.0
Oracle Net Listener 10.2.0.1.0
Oracle Net Listener Patch 10.2.0.4.0
Oracle Net Patch 10.2.0.4.0
Oracle Net Required Support Files 10.2.0.1.0
Oracle Net Required Support Files Patch 10.2.0.4.0
Oracle Net Services 10.2.0.1.0
Oracle Notification Service 9.0.4.0.0
Oracle Notification Service Patch 10.2.0.4.0
Oracle OLAP 10.2.0.1.0
Oracle OLAP API 10.2.0.1.0
Oracle OLAP API Patch 10.2.0.4.0
Oracle OLAP Patch 10.2.0.4.0
Oracle OLAP RDBMS Files 10.2.0.1.0
Oracle OLAP RDBMS Files Patch 10.2.0.4.0
Oracle One-Off Patch Installer 10.2.0.4.0
Oracle Partitioning 10.2.0.1.0
Oracle Partitioning Patch 10.2.0.4.0
Oracle Programmer 10.2.0.1.0
Oracle RAC Required Support Files-HAS 10.2.0.1.0
Oracle RAC Required Support Files-HAS Patch 10.2.0.4.0
Oracle Real Application Testing 10.2.0.4.0
Oracle Recovery Manager 10.2.0.1.0
Oracle Recovery Manager Patch 10.2.0.4.0
Oracle Required Support Files 32 bit 10.2.0.0.0
Oracle Required Support Files 32 bit Patch 10.2.0.4.0
Oracle Spatial 10.2.0.1.0
Oracle Starter Database 10.2.0.1.0
Oracle Starter Database Patch 10.2.0.4.0
Oracle Text 10.2.0.1.0
Oracle Text Patch 10.2.0.4.0
Oracle UIX 2.1.22.0.0
Oracle Universal Installer 10.2.0.4.0
Oracle Wallet Manager 10.2.0.1.0
Oracle Wallet Manager Patch 10.2.0.4.0
Oracle XML Development Kit 10.2.0.1.0
Oracle XML Development Kit Patch 10.2.0.4.0
Parser Generator Required Support Files 10.2.0.1.0
Perl Interpreter 5.8.3.0.1
Perl Interpreter Patch 5.8.3.0.1a
PL/SQL 10.2.0.1.0
PL/SQL 10.2.0.4.0
PL/SQL Embedded Gateway 10.2.0.1.0
PL/SQL Embedded Gateway Patch 10.2.0.4.0
Platform Required Support Files 10.2.0.1.0
Platform Required Support Files 10.2.0.4.0
Precompiler Common Files 10.2.0.1.0
Precompiler Common Files Patch 10.2.0.4.0
Precompiler Required Support Files 10.2.0.1.0
Precompiler Required Support Files Patch 10.2.0.4.0
RDBMS Required Support Files 10.2.0.1.0
RDBMS Required Support Files for Instant Client 10.2.0.1.0
RDBMS Required Support Files for Instant Client Patch 10.2.0.4.0
RDBMS Required Support Files Patch 10.2.0.4.0
regexp 2.1.9.0.0
Required Support Files 10.2.0.1.0
Sample Schema Data 10.2.0.1.0
Sample Schema Data Patch 10.2.0.4.0
Secure Socket Layer 10.2.0.1.0
Secure Socket Layer Patch 10.2.0.4.0
SQL*Plus 10.2.0.1.0
SQL*Plus 10.2.0.4.0
SQL*Plus Required Support Files 10.2.0.1.0
SQL*Plus Required Support Files Patch 10.2.0.4.0
SQLJ Runtime 10.2.0.1.0
SQLJ Runtime Patch 10.2.0.4.0
SSL Required Support Files for InstantClient 10.2.0.1.0
SSL Required Support Files for InstantClient Patch 10.2.0.4.0
Sun JDK 1.4.2.17.0
Sun JDK extensions 9.2.0.1.0
XDK Required Support Files 10.2.0.1.0
XDK Required Support Files Patch 10.2.0.4.0
XML Parser for Java 10.2.0.1.0
XML Parser for Java Patch 10.2.0.4.0
XML Parser for Oracle JVM 10.2.0.1.0
XML Parser for Oracle JVM Patch 10.2.0.4.0
There are 190 products installed in this Oracle Home.
There are no Interim patches installed in this Oracle Home.
OPatch succeeded.
$
$ more /u02/app/oracle/product/10.2/Db_1/cfgtoollogs/opatch/opatch_history.txt
Date & Time : Fri Jul 17 16:02:17 GMT-03:00 2009
Oracle Home : /u02/app/oracle/product/10.2/Db_1
OPatch Ver. : 10.2.0.4.7
Current Dir : /u02/app/oracle/product/10.2/Db_1
Command : -v
Log File : /u02/app/oracle/product/10.2/Db_1/cfgtoollogs/opatch/opatch2009-07-17_16-02-17PM.log
Date & Time : Fri Jul 17 16:38:05 GMT-03:00 2009
Oracle Home : /u02/app/oracle/product/10.2/Db_1
OPatch Ver. : 10.2.0.4.7
Current Dir : /home/ora10g/8534387
Command : napply -skip_subset -skip_duplicate
Log File : /u02/app/oracle/product/10.2/Db_1/cfgtoollogs/opatch/opatch2009-07-17_16-38-05PM.log
Date & Time : Fri Jul 17 17:53:30 GMT-03:00 2009
Oracle Home : /u02/app/oracle/product/10.2/Db_1
OPatch Ver. : 10.2.0.4.7
Current Dir : /home/ora10g/8534387
Command : lsinventory -detail
Log File : /u02/app/oracle/product/10.2/Db_1/cfgtoollogs/opatch/opatch2009-07-17_17-53-30PM.log
$
Please let me know if you need more info.
Regards, and thanks in advance!
MartinYou were right. It was a permissions issue:
hostname:/root# ls -ltr /u02/app/oracle/product/10.2/Db_1/lib/libjox10.so
-r-xr-xr-x 1 ora10g oinstall 20041728 Apr 23 2008 /u02/app/oracle/product/10.2/Db_1/lib/libjox10.so
Thanks.
damorgan wrote:
"is not writeable." means one of two things.
1. It does not exist.
2. Permissions are not set correctly.
Determining which it is ... that is the first step. -
Copying file from one event to another deleted large number of photos
I was doing some house keeping on my Photo Library in iPhoto11.
I opened a event and selected al the photos in this event and then copied them to another event. This operation took a very long time. The end effect is that in excess of 10k photos have dissappeared from my libary and are nowhere to be seen.
I tris rebuildingt the library but this makes no imprevement but it shows that the library size reduces from 12Gb to about .5 Gb. But both librarys seems to be identical. So where have my photos gone? I have about 6 years worth of photos in this library and because of an earlier problem with OSX on my laptop I had to move this library to an external disc which is not backed up. I think I may have an older backup! I did to at any point press delete or move anything to the trash - this seems to be a software but - any suggestion how to recover my photos. I have checked the system trash and they do not seem to be there either.
HelpOpen the event and select the photo you want to duplicate, go to the edit menu and select copy (command-c), go to all events and select the target event and go to the edit menu and select paste (command-v)
another possible alternative it to use albums - make a new album and drag the photo to it - this saves disk space since the photo only exists once no matter how many albums you place it in - the albums simply reference the photo in the event
LN -
Can't copy file from SAP-directory to FTP server
Hello,
I can't copy files from the SAP server to the FTP server. The file is created with OPEN DATASET and CLOSE DATASET commands and is placed in the SAP-directory S:\usr\sap\DEV\DVEBMBGS00\work.
I can see and read the file with transaction al11, so I know it's there.
But the FTP command always gives the same error:
S:\usr\sap\DEV\DVEBMBGS00\work\[FILENAME] errno 22: invalid argument
I can connect to the FTP, but the put command keeps failing. Somehow, the file in the SAP directory can't be read, it seems, even when
Any ideas?
Thanks in advance.
DaveOk, I found out that I have to use SAPFTPA as RFC destination type, instead of SAPFTP, otherwise the folders can't be located.
But with SAPFTPA I can't seem to connect to the FTP server. I've tested the connection with sm59 and it works, but for the FTP it doesn't work. When I use SAPFTP as destination type, it still works.
What can I do?
Thanks. -
Copy file from a location to another
I work on a Java process that must be optimized and I have some questions.
This process includes a part of copying a file from a location from another (to be more specific, all files that exist in a directory, to copy in another directory), wich technique is more efficient and quickly? To copy using FileInputStream/FileOutputStream in Java or using a java Runtime process that calls a copy command of the Operating System?I work on a Java process that must be optimized and I
have some questions.
This process includes a part of copying a file from a
location from another (to be more specific, all files
that exist in a directory, to copy in another
directory), wich technique is more efficient and
quickly? To copy using
FileInputStream/FileOutputStream in Java or using a
java Runtime process that calls a copy command of the
Operating System?Neither. Use the FileChannels in the nio package if you can:
/* Note: Proper resource closing and exception handling is not done here */
try {
// Create channel on the source
FileChannel srcChannel = new
FileInputStream("srcFilename").getChannel();
// Create channel on the destination
FileChannel dstChannel = new
FileOutputStream("dstFilename").getChannel();
// Copy file contents from source to destination
dstChannel.transferFrom(srcChannel, 0, srcChannel.size());
// Close the channels
srcChannel.close();
dstChannel.close();
} catch (IOException e) {
}Spawning a Runtime process is probably the least efficient way to do it.
- N -
Copy File from Terminal Server to Workstation Failure
Hi
For years client have been able to copy files from our Windows 2003 Terminal Server to their local workstation using:
copy myfile \\tsclient\mydrive\myfolder
However we upgraded to Windows 2012 Server R2 and now Windows 7 Pro clients cannot copy files. The copy function creates the file name in their local folder but no content is sent after maybe 20 minutes or so the copy function times out and they get
an error message saying that the application was unable to write to the file. I have tried this function with my Windows 8.1 workstation and the file copies properly and it works fine for older Windows XP clients. Does anyone know why Windows 7
clients are experiencing this issue.
Thanks
SimonHi Simon,
The copy command should also work on the Windows 7 clients. Please provide the detailed error message when run the command on the Windows 7 clients.
You could also use robocopy command to achieve this.
Robocopy
https://technet.microsoft.com/en-us/library/cc733145.aspx?f=255&MSPPError=-2147217396
Best Regards,
Mandy
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected] -
Copy file from local system to Azure VM using powershell
Hi
Is there a simple powershell command to copy a small file from local computer to Azure VM. Point to Site is not an option for me.
I am hoping for something simple like
Copy-Item C:\Wabash\Logfiles\trasfer.txt -Destination C:\Presentation -ConnectionUri $uri -Credential $credential
similar to Invoke-Command
The only other option i have seen is
http://www.mattwrock.com/blog/copy-files-from-local-computer-to-an-azure-vm
which i fell for my purpose is over kill.Hi,
I will mark Ed's post as answer, if you fount that doesn't give you help, please feel free unmark it and follow up with more information.
Best Regards,
Jambor
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Copy file from client PC to server in a web deployed application
I have developed one application using Oracle forms 6i, which is deployed on the web server.
I run this application from a client PC in Internet Explorer using internet.
I want to copy one file from the client PC to the web server.
I have done following things
- Created a shared folder on the server and given full rights to every one on this folder
- I use 'net use' command in my program to connect to this shared folder
- I use copy command to copy file from local client pc to server. This copy command I am executing using host command of my programming (PL/SQL: eg. host('copy abc.txt \\server\share\') )
But this does not work.
When I do the same thing in command window, it works.
(ie. Start-Run cmd to open command window and then type the above copy command)
Can you please tell me, how to copy a file from client PC to the sever in Web deployed application?
ThanksI downloaded D2KWUtil from the link suggested by you. It has very nice example demo form. But the documentation provided says following
Using D2KWUTIL in Web Deployed Applications
The use of this library is not supported with Web deployed applications.
In a web deployment scenario not all functions within D2KWUTIL will work. Any function that interacts with the User Interface (such as those in the WIN_API_DIALOG package) will fail.
Any interaction with the O/S by other functions will all be executed on the NT server and will act within, or return information pertinant to, the environment on that machine. For instance GET_COMPUTER_NAME will return the Server’s name, not the name of the computer that the Client browser is running on. Likewise COPY_FILE will copy files in the Forms Server not on the Client.
Functions such as those in WIN_API_BITOP will continue to work without change.
so this will not work in web deployed application.
Any other suggestion?
Thanks -
Copying photos from one computer to another, with descriptions
After editing photo descriptions and locations in iPhoto, it is desireable to be able to copy them to iPhoto on another computer, with the associated photo descriptions and locations. In principle, this is possible by selecting all desired photos, then selecting File -> Export... In the Export dialog box, in the "File Export" tab, select "Include: Titles and keywords", and "Include: Location information". Copy the exported files to the other computer, and do a File -> Import to Library ...
In practice, this works fine with images taken by some cameras, and not with images from others. In my limited experience with a Fuji F80EXR and a Canon SX230HS, the above work flow works with the Fuji. But, with the Canon, while the exported files clearly have the description data embedded in them (as seen by GraphicConverter), it is not imported into iPhoto, nor is it visible in Preview's Inspector. The workaround I use is to run an exiftool command on the exported files.
Exiftool is a command line utility that can read and write meta data in image files:
http://owl.phy.queensu.ca/~phil/exiftool/
I run the following command on the exported files to rewrite the IPTC Caption:
exiftool −overwrite_original_in_place -tagsfromfile %f.jpg -ext jpg -"IPTC:Caption-Abstract>IPTC:Caption-Abstract" *.jpg
Note that the above command overwrites the files that were exported from iPhoto. If you wish to leave the original files intact, with an "_original" appended to the file name, run:
exiftool -tagsfromfile %f.jpg -ext jpg -"IPTC:Caption-Abstract>IPTC:Caption-Abstract" *.jpg
I'm not sure why it is necessary to copy and rewrite that data. Perhaps there is something strange in the format of the meta data in the file as it comes from the camera, and the iPhoto export does not correct this strangeness. Copying and rewriting the data by exiftool seems to put things right.
The above works for me, but is somewhat unwieldy. Is there a better way to copy photos from one computer to another, if iPhoto refuses to import the description data that it was written to the exported files?Thanks for the pointer. I did a test with 10 images, and confirmed the iPLM works, even with the problematic images from my Canon SX230HS.
The workflow is to use iPLM to create a new Library on the computer that has the photos you want to copy. Copy the photos to the new Library. Copy the new Library to the second computer using a method of your choice (file sharing, USB flash drive, etc). Copy the photos from the new Library to the existing iPhoto Library.
iPLM costs $20, whereas my original solution was free (but you need to invest the time to get exiftool installed and working). But, unlike exiftools, iPLM also copies over the Faces information, so it is likely a worthwhile investment if you use that feature. -
How do I copy text from one layer to another?
I have Googled this but not a single answer seems to work.
I am using Photoshop CS4 on OS X 10.6.7.
OK, so I have a layer that has some text in it. I would like to be able to simply copy that text from one layer to another, but this seems to be impossible as the Edit Paste menu item is grayed out after I have copied it in to the clipboard. I can paste it into the SAME layer, but not into another layer.
This is how I am trying to do this.
In the layer with the text, click on the "T" icon to the left.
Click on the text, in the layer that I want to copy.
I select the text (either by clicking and dragging or pressing Command-A).
Next I press Command-C.
Then I click on the layer In the Layer Panel) where I want to paste the text.
Pressing Command-V is impossible because the Edit-Paste menu option is grayed out!!!!
WHY??????
Perhaps more importantly, HOW do I copy text from one layer to another?First thing you can simply right click on the Text Layer and choose Duplicate Layer. But that will create a new Text Lay
er identical to the one you have.
To answer your question in your case.... Create the Text Layer. Make a New Layer. Or have the layer you want to paste into visible.
Highlight the text layer in the Layer Palette and Ctrl+Click (Win) Cmd+Click(Mac) so that you see marching ants walking around your text.
Edit>Copy.
Then highlight your Layer you want to paste into and hit Edit>Paste or Cmd+V / Ctrl+V.
Maybe you are looking for
-
FM to translate first letter of every word to upper case.
Hi all, I have a requirement to change the first letter of every word in sentence to Upper case.For example if the sentence is 'fifty eight thousand' it has to be changed to 'Fifty Eight Thousand'.Is there any FM to acheive this? Any help would be hi
-
Icloud sync is not working for apps
I just noticed that my icloud sync is no longer working. Apps like 1Password, Drafts, Reminder, Calendars, Fantastical used to sync between my IPAD Air and iphone 6 but they are not syncing now. What are some of the possible issues and can anyone su
-
Nano Songs not showing up in iPod "other" category is 2.11gb, but no audio
Hi, I just got my iPod Nano 4GB today. I had 500 songs on earlier, plugged it back into the computer to charge, a screen with "AutoSync" popped up and it ran. Now when I go in iPod ALL my songs are gone. iTunes says my iPod has 2.11GB used for "Other
-
My Macbook pro 17" stopped working
my Macbook pro 17" stopped working I was surprised that Apple told me they no longer have support the 17" Macbook pro
-
Has anyone heard of RoboHelp HTML v10 "magically" deleting itself and all project files?
We have an off-site contractor that swears RoboHelp HTML "magically" deleted itself and all project files. I've never heard of this and wondered if anyone else had. It sounds kinda fishy to me, but I've seen some strange things from RH, so thought I'