Differences between sqlplus und jdbc
Hi,
Problems between sqlplus and JDBC-Orders.
Can anybody explain, what i doing wrong?
Example: Copy Tables in a Database
In sqlplus is no Problem:
copy from ***/***@*** create T_ORIGIN using select * from ORIGIN;
In Java it's a Problem:
import java.sql.*;
public class TestTable
public static void main(String[] args)
try
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@*****", "*****", "******");
Statement stmt;
stmt = conn.createStatement();
stmt.executeQuery("copy from ***/***@*** create T_ORIGIN using select * from ORIGIN");
System.out.println("ready");
catch (SQLException ex)
// A SQLException was generated. Catch it and
// display the error information. Note that there
// could be multiple error objects chained
// together
System.out.println("\n*** SQLException caught ***\n");
while (ex != null)
System.out.println("SQLState: " + ex.getSQLState());
System.out.println("Message: " + ex.getMessage());
System.out.println("Vendor: " + ex.getErrorCode());
ex = ex.getNextException();
System.out.println("");
Syntax-Error
*** SQLException caught ***
SQLState: 42000
Message: ORA-00900: invalid SQL statement
Vendor: 900
Thanx
Oli
copy is a sqlplus command provided by sqlplus application. It is not a valid sql command and hence cannot be used through JDBC.
Similar Messages
-
Difference between sqlplus - start and srvctl start instance
Hello,
why we need to start RAC instances with SRVCTL command, what is the difference between sqlplus -- startup and (srvctl start instance -d dbname -i inst_name)
Thanks
Karthick KThe first ever thing that comes to mind is that sql*plus is not a clusterware utility which means, any updations done from it, may not update correctly the OCR . If you would play with RAC, you may see that doing the startup/shutdown using the sql*plus at times show a conflict the status of the instance when checked through crs_stat command. That's a reason that the srvctl is preferred against sql*plus in the cluster environments.
HTH
Aman.... -
Differences between JCA und JCE
Can someone explain me the differences between JCA and JCE ?
I guess there are more features in JCE, but I don't see exactly what.
Thanks, ClaudeJCA gives you MessageDigest, Security, KeyFactory, KeyPair, SecureRandom, and Provider classes. JCE adds Cipher, CipherIn/OutputStream, KeyGenerator, SecretKeyFactory, SealedObject, KeyAgreement and Mac classes.
[url http://java.sun.com/j2se/1.4.2/docs/guide/security/CryptoSpec.html]JCA Docs
[url http://java.sun.com/j2se/1.4.2/docs/guide/security/jce/JCERefGuide.html]JCE Docs
Grant -
Performance difference between sqlj and jdbc
hi:
i am working with a project and i have to generate text files
from database . first i am working with pl/sql, but i am not so
satisfied with the performance. so i turn to java stored procedure. I have two choice sqlj and jdbc when accessing
database? which performs better? sqlj or jdbc? or there's only
little difference.
And would u like to give me some other choice to run faster.
maybe pro*c/c++ is a choice . but if it can't run much faster ,
it's not a better choice.
regardsSince you don't play games, you'll notice a difference in graphic and video applications that are GPU accelerated, like Motion, and Photoshop CS4 & 5.
-
Difference between OraclePooledConnection and Connection
Hi,
Can someone help me in finding the difference between using oracle.jdbc.pool.OracleConnectionPoolDataSource with OraclePooledConnection and oracle.jdbc.pool.OracleConnectionPoolDataSource with Connection.
Thanks in advance.
Sindhiya V.Hello
In order to get the meaning of terms Connection and Session let's define first the term Flow.
The definition of a Flow is historically accepted as:
A unidirectional sequence of packets between 2 network endpoints that have the following 7 things in common:
1. Source IP address
2. Destination IP address
3. L3 Protocol type
4. Source port
5. Destination port
6. Tos (Type of Service)
7. Input interface
The terms Connection and Session can have many different meanings depending on the framework that they are used, but it can be said that:
Connection: A bidirectional Flow
Session: Many connections between the same source and same destination
HTH -
Hi everybody,
Can you tell me what is Difference between Oracle9i 9.2.0.3 and Oracle9i 9.2.0.4 JDBC Drivers briefly?
In my application I am using Oracle9i 9.2.0.3 JDBC Drivers. But it is not supported when I retrieved Data with junk character from CLOB.because of IO Exception it showing Bigger type length than Maximum
if i used Oracle9i 9.2.0.4 JDBC Drivers it is working properly.
I am using WAS 4.0.3 , JDK1.3 and Oracle 9.0.
Shall I use Oracle9i 9.2.0.4 in my application and I want to know it will create any new problem in my application or not ?
please Reply me ASAP.
i am waiting for your reply
thanks a lot
bye
Message was edited by:
paulusazapakcomCan you tell me what is Difference between Oracle9i
9.2.0.3 and Oracle9i 9.2.0.4 JDBC Drivers briefly?Search the Oracle site. That should tell if there are any differences at all. I would assume that there would be some bug fixes.
please Reply me ASAP.
i am waiting for your replySuch lines are better avoided. -
Execution time difference between SELECT & UPDATE statement in JDBC Sender.
Hi Experts,
In my scenario, I have used the JDBC Sender Adapter with the SELECT and UPDATE statement.
Now the problem is in between the execution of Select and update statement, few more entries are coming in the same DB Table.
So result of this is updation take place for those entries which are not even picked up by the select statement.
Can we avoid this execution time difference between the SELECT & UPDATE statemet on JDBC Sender side???
Thanks & Regards
JageshHi
Use serializable option in additional parameters, now all new entries would also be updated. -
In jdbc adapter what is the difference between insert and update insert
in jdbc adapter what is the difference between insert and update insert
Edited by: katru vijay on Mar 22, 2010 7:43 AMPlease refer to this Link [Document Formats for the Receiver JDBC Adapter|http://help.sap.com/saphelp_nw04/Helpdata/EN/22/b4d13b633f7748b4d34f3191529946/frameset.htm]
Hope this helps.
Regards,
Chandravadan -
Difference between oracle and BEA JDBC Drivers
One of our application plan to move from BEA JDBC drives to Oracle drivers.
We use Weblogic 9.2 as application server and Oracle 10g as the database.
Questions
=======
1. What is the basic difference between these drivers and how do we decide which one to use.
2. What can be the impact of moving to Oracle drives from BEA on the overall application...?
3. Other than change in the jdbc.datasource.url = jdbc:oracle:thin:@, do we need to take anything else into consideration.
Pls. let me know in case any further details are required.
Thanks in advance."1. What is the basic difference between these drivers and how do we decide which one to use."
They are totally different products made independently by different companies.
"2. What can be the impact of moving to Oracle drives from BEA on the overall application...?"
As long as your application uses standard JDBC APIs, the impacts will be minimized, and
unpredictable, some running faster, some slower... Any bug list for one driver will be
different than for the other. If you use any driver-specific extension APIs, they won't
be in the other driver.
"3. Other than change in the jdbc.datasource.url = jdbc:oracle:thin:@, do we need to take anything else into consideration."
Also changing the diver/datasource class name, and reviewing any arguments/driver properties.
Property names and functions are usually driver-specific.
Joe -
Differences between JDBC vs. EE PMFs?
This is kind of a follow-up from my previous post on the LocalCache
problems I was having. It was suggested I should move from a EE PMF to
the JDBC pmf, since I was using JDO straight from Struts and manually
starting and closing transactions.
I was just wondering what are the main differences between the JDBC and
EE PMFs that could affect their behaviour?
I have noticed that when I have switched to using a
JDBCPersistenceManagerFactory, peformance degraded somewhat in my load
testing and I have been getting a large amount of dead locking
exceptions from SQL server (where previously these would never occur)?
I am using the LocalCache, and Kodo 2.3.4 in JBoss.
KamI was just wondering what are the main differences between the JDBC and
EE PMFs that could affect their behaviour?The only difference is that the EE PMF produces PersistenceManagers that
synchronize with the appserver's TransactionManager, whereas the JDBC PMF
just uses local JDBC transactions. -
Difference between DataSource & JDBC Data Source Factory
Hi,
Can anyone tell me what the difference between a 'DataSource' and 'JDBC Data Source
Factory' is ? I see both these on the Weblogic admin console. I have reviewed
the documentation but it is not clear to me what the difference between the two
is and what situations each on is appropriate for.
Thanks,
RajuHi Sree,
I have read literally ALL the online documents related to JDBC Data Source Factories
including the one you provided below, but I still do not understand what they
are for. I have also searched in Google but to no avail.
I will try to be more specific as to where my confusion lies.
1)Why would anyone ever choose a JDBCData Source Factory instead of a Tx Data
Source or plain vanilla (not XA) Data Source? EJBs connect just fine with the
latter 2.
2)What should go inside the properties box?
a) http://e-docs.bea.com/wls/docs70/ejb/EJB_environment.html#resourcefact states
that connection properties should go in here
b)Then, the document goes on to describe a syntax for binding a Connection Pool
to a JNDI name, all in the properties box. I have never been able to successfully
create a data resource factory with a JNDI name. I get no errors, but it appears
no where in the JNDI tree
c)If this mysterious syntax associates a resource factory with an existing Connection
Pool, then why go through all the fuss of redefining the Driver Class Name, URL,
etc., when those are already defined on the Connection Pool?
When you setup either a Data Source or a TX Data Source, WebLogic does not require
that information since it was all setup in the pool. Why is it needed here?
Thanks in advance for you help.
"Sree Bodapati" <[email protected]> wrote:
Hi Raju,
Please see,
http://e-docs.bea.com/wls/docs70/ConsoleHelp/domain_jdbcdatasourcefactorytable.html
sree -
Difference between maximum concurrency and batch mode in JDBC
Hi All,
Could som one tell me the difference between maximum concurrency and batch mode in receiver JDBC adapter?
Regards,
XIerHi,
The Max Concurrancy and Batch mode are used for performance tunning for JDBC adapter.
Max Concurrancy is possible upto 5 only. so even if you will be taking up 10 it will by-default take 5.
The number of records being processed depend on the size of each record. for e.g Per minit XI Is Processing 50 Records,It will Take lot of time to process all Records.
So if you set Max concurrancy as 5 then at time 5 messages will be processed simultaneously.
In Batch mode it will, collect the multiple SQL statements that will be created for records to be processed and processed at a time. It will improve performance considerably.
But Batch Mode is possible with only INSERT, UPDATE, DELETE etc.
The Stored procedures can be executed with max concurrency
Thus it completely depends that on the no of records to be processed at a time and volume of Mesasges.
Thanks
Swarup -
Difference between 1.20.01e und 1.20
My question is if there's any difference between these two firmwares.
PS: Everbody who looks in this thread may have another look in my other thread concerning selected music on Zen Micro Photo cause I need help, it's urgent.The e version is the European version. It has a limit on the maximum volume. Some people complain that they don't get enough volume using the European version on some of the players(not sure if the complaints were about the Microphoto as well). I suggest not using the European version. One should be careful though about playing music too loud, as it might damage your hearing.
-
Differences between jdbc connection and datasource connection
Hi all
What are the differences between javax.sql.datasource and java.sql.connection.
Is the datasource needed on in distributed databases or ??
In a distributed EJB enviornment, what happens if a component has a transctionattribute setting as SUPPORTS and tries to commit data - will the ejb container start a transaction though the setting is SUPPORTS.
Thanks in advance.Hi all
What are the differences between javax.sql.datasource
and java.sql.connection.
Both are database connections. A connection is a handle to database. When you are directly creating a connection by calling Drivermanager.getConnection(..) , you are creating a connection by yourself and when closing close() on it, the link to database is lost. On the other hand when you get a connection from a datasource, when you call the close() on it, it will not close the link to database, but will return to a connection pool where it can be reused by some other classes. It is always better to use a connection pool because creating connections are expensive
Is the datasource needed on in distributed databases
or ??
>
You can create datasource to any databse local or remote.
In a distributed EJB enviornment, what happens if a
component has a transctionattribute setting as
SUPPORTS and tries to commit data - will the ejb
container start a transaction though the setting is
SUPPORTS.
hmmm..i am not sure. I think the container sets the commit and rollback points for it . so container will override database settings. -
Difference between using app server connection pooling and using the driver
Hi all,
How to get connection pooling with out application server and tomcat also?
What is the difference between using app server connection pooling and using the driver supported connection pooling?
Regards,
Muralimaybe the performance of App server pool is better than the JDBC pool,
for you don't know wether the implementation of the JDBC interface is good or bad.
Maybe you are looking for
-
How can I pass values from one node to another
Give a standard and efficient way to pass values from child to parent
-
File sender adapter (FTP) - processing mode "Archive"
Hello all We're polling files from an external FTP server. For this I created a scenario on XI according to this thread: When setting processing mode to "Archive" in the file sender adapter (ftp) it polls the file, stores it to the archive directory
-
Linking text form fields in Acrobat Pro
I am using Acrobat Pro. I have successfully entered javascript that links multiple text fields so that when reaching the end of one field it automatically advances to the next. My problem is that if I am in the middle of a word it will split the wo
-
I have been trying to install the Itunes update and have never had a problem before, this time I get an Error 7(windows error 126) and another box gtelling me that MSVCR80.dll is missing, I don't have a clue why on this update this has happened, can
-
Setups needed to implement iProcurement when we had Purchasing installed
Hi, I would like to know the basic setups/profiles needed to be activated/implemented to use iProcurement out of box. We have purchasing installed and we are using it for many years. Now client wants to implement iProcurement. Are there any prelimina