Sql+command in java
how may i give the sql command "@c:\\emp.txt" in java?
how can i then print the result on a jframe?
thanks, danny
No can do.
Unless you want to exec "sqlplus" as an external process, as in:
String oracle_home = ....; // system-dependent
String login = "user/user@instance"; // should come from user
String cmdline =
oracle_home + "/sqlplus " + login + " " + "@c:/temp/scr.txt";
Process proc = Runtime.getRuntime().exec(cmdline);
// Read the contents of proc.getInputStream() until you
// get the EOF.
Similar Messages
-
Hi, is there any way to run source sql command direct in java, or i have to write a method to do that.
statement, but why java doesn't use such a method
and save our time.IMHO this would be outside (way) the scope of a
general purpose programming language like Java. And,
I would argue, outside the scope of the JDBC
packages.
It might be in the scope of a utility package but
really it is a job for a database utility.Exactly. For instance, the Hypersonic database (hsqldb.jar) comes with a SqlTool class (or something like that) that you can call. That class will read and execute a .sql script. Other database products may come with other similar tools. -
Executing SQL command in Java on Linux OS
when i am running a java class file from cmd line,
in that java file i am using a SQL statement, like
select * from emp where empname='uday'
here its not accepting the single quote('), its ignoring single quotes
can any one help mewhen i am running a java class file from cmd line,
in that java file i am using a SQL statement, like
select * from emp where empname='uday'
here its not accepting the single quote('), its
ignoring single quotes
can any one help meIf you were using a prepared statement then this would be irrelevant. I suggest you take a look at one before you have to right some larger queries.
http://java.sun.com/docs/books/tutorial/jdbc/basics/prepared.html
http://www.javaworld.com/javaworld/jw-01-2002/jw-0125-overpower.html -
How to use Java with PL/SQL commands to send an email with attachment
Apologizes in advance if this is the wrong place to ask the question.
I need to use Java with PL/SQL commands to send an email with attachment. My java application runs from the command line and does some magic to gather info from an Oracle 11g db. If the DB has sendmail configured, I'd like to send the results of the data gathering as an attachment to the email addresses. I'm not sure how to do this. I've been reading up on on PL/SQL can send email with UTL_SMTP - with attachments. I'm just not sure how to translate that into being triggered by my Java application. Any suggestions or pointers on what I should read would be appreciated.
Background - I've been programming in Java for 10+ years, but this is my first time using databases. I also have been on these forums for a long time, but lost my profile when it was switched to Oracle.
Thanks for all help.user13726880 wrote:
The original requirements were put together and given to me, an Oracle newbie. They expected the Java app to use something intrinsic to Oracle and Unix sendmail. To solve my problem, I use a JDBC connection to run some SQL commands. I take that data, format it and send the results by email to the user. By default the requirement is to send it as an HTML attachment using Unix 'sendmail'. So I do that using Runtime exec. I have also added JavaMail functionality as an alternative to sendmail. It works great and as expected.Sounds like a reasonable solution.
Note however that PL/SQL itself can send email. And PL/SQL can call unix sendmail too.
However myself I would have done it in java with JavaMail. -
Jdeveloper 11.1.1.6
WLS 10.3.5
The screen in our application polls at a fixed interval, The screen renders properly and the poll too works good. but intermittently we get the error below. and there will be no data in the screen. and if reload the screen it works good.
This doesn't happen in dev and is happening in clustered env only.Please suggest.
java.sql.SQLSyntaxErrorException: ORA-00933: SQL command not properly ended
ThanksHabe you tested your application with application module polling turned off?
Errors like this are most often the result of activation/passivation problems in the application. Check out http://tompeez.wordpress.com/2011/07/08/jdev-always-test-your-app-with-applicationmodule-pooling-turned-off/ for more info.
Timo -
Running a SQL*Plus command from Java
I have a requirement to run SQL* Plus commands from Java. The results as they would appear in SQL*Plus window or spool file should be captured and stored in a table.
For example,
SQL> select * from dual;
D
X
1 row selected;
SQL>
All the lines above should be stored for later use.
Could any one give pointers?
Thanks,
Ravi<p>
Hi,
</p>
<p>
<strong><font face="Courier New">
public class RuntimeExecApp {
public static void main(String args[]) throws IOException
Runtime r = Runtime.getRuntime();
r.exec("C:\\Oracle\\sqlplus.exe");
}</font></strong>
</p>
<p>
Kuba
</p>
Message was edited by:
KUBA -
Running ls command from Java stroed procedure no output
Hi ,
I am trying to run ls command from java stored procedure in oracle
Process p = Runtime.getRuntime().exec("ls");
BufferedReader stdInput = new BufferedReader(new
InputStreamReader(p.getInputStream()));
BufferedReader stdError = new BufferedReader(new
InputStreamReader(p.getErrorStream()));
// read the output from the command
System.out.println("output of the command run:\n");
while ((s = stdInput.readLine()) != null) {
System.out.println(s);
from java stored procedure in oracle.
i get output of println statments but it does not go into while loop to print from stdInput.
Result of running Java stored procedure is -
output of the command run:
Call completed.
when i run the program on client side it works fine.
Has anybody tried this from java stroed procedure.
Thanks,
JagJag,
Actually, the question of whether it works for me seems to depend on the version of the OS (or Oracle). On RedHat Linux (Oracle 8.1.6) it didn't work at all, but on Solaris (Oracle 9.0.2) it did. Here's the output from that run:
SQL> /
output of the command run:
init.ora
initDBPart9i.DBPSun01.ora
initdw.ora
lkDBPART9I
orapw
orapwDBPart9i
spfileDBPart9i.ora
Done
PL/SQL procedure successfully completed.
But, I did need to change a line of your code to this:
Process p = Runtime.getRuntime().exec("/usr/bin/ls");
your original was:
Process p = Runtime.getRuntime().exec("ls");
You might consider, if possible, use of some of the Java File classes instead of ls, as this might make things more predictable for you. There were some examples in oramag.com a few months ago, but they were pretty simple (you might not need them).
Hope this helps,
-Dan
http://www.compuware.com/products/devpartner/db/oracle_debug.htm
Debug PL/SQL and Java in the Oracle Database -
How to echo the SQL command in JDBC?
When we use a PreparedStatement and execute query, is there a way to get the exact SQL command
sent to the server without any '?' marks? That would be an aid in debugging. Or is such a facility server-pecific? I am using MySQL with JDBC.
Thank you.Why I want to see the SQL command now is that I am getting a nagging SQLException in the following
code. Would someone tell me why this code fails?
//Database connection successful.
//conn and pstmt are successfully created.
//variables 'pid' and 'subfolder' are already evaluated, and confirmed that they have valid values
int sub_id = 0;
String myquery = null;
ResultSet rs1 = null;
try{
myquery = "SELECT j15c_directory_id FROM j15t_directory WHERE (j15c_parent_id = ? AND j15c_name = ?)";
pstmt = conn.prepareStatement(myquery);
pstmt.setInt(1,pid);
pstmt.setString(2,subfolder);
rs1 = pstmt.executeQuery();
rs1.next();
sub_id =rs1.getInt("j15c_directory_id");
catch(java.sql.SQLException e1){
System.err.println("SQLException: " + e1.getMessage());
The error message I'm getting is "Before start of result set ". -
Querying MS-SQL Tabel in Java...
I am trying to display the contents of a table found in and MS-SQL server. I think my code works properly for connecting up with the server, however, when I try to display the field names in use in the table all I get is "null" for each entry in the array (String array for field names). Then Java bums out with "NullPointerException" error message.
Here is my code...
---===DatabaseObject.java===---
import java.sql.*;
import java.lang.*;
import java.util.*;
public class DatabaseObject
{//A class to simplifiy the use of database operations within Java where all database related
//are contained within one single object.
private static Connection con = null;
private static Statement stmt = null;
private static ResultSet rs = null;
private static ResultSetMetaData rsmd = null;
private static Vector results = null;
public DatabaseObject()
public static void startConnection(String drvrName, String url, String loginID, String pwd)
{// start SQL connection with server
//Load the driver
try
Class.forName(drvrName);
System.err.println(drvrName);
catch(java.lang.ClassNotFoundException e)
System.err.println("for:ClassNotFoundException:" + e.getMessage());
//Make the connection
try
System.err.println(url);
con = DriverManager.getConnection(url, loginID, pwd);
catch(SQLException ex)
System.err.println("con: SQLException: " + ex.getMessage());
public static void queryTable(String tableName)
{//Sends SQL SELECT command to database server and retrieves information as string array.
//build up statement
String selectStatement = "SELECT *" + " FROM " + tableName;
//send statement
try
stmt = con.createStatement();
rs = stmt.executeQuery(selectStatement);
rsmd = rs.getMetaData();
catch(SQLException ex)
System.err.println("query SQLException: " + ex.getMessage());
//retrieve infromation
int colNum = 0;
String[] fieldName = null;
try
colNum = rsmd.getColumnCount();
fieldName = new String[colNum - 1];
for(int i=0; i < colNum; i++)
fieldName[i] = rsmd.getColumnName(i);
catch(SQLException ex)
System.err.println("info retrieval SQLException: " +ex.getMessage());
/*Debug Section
if (fieldName != null)
for(int i = 0; i < colNum; i++)
System.out.println(fieldName);
else
System.out.println("No field names!");
String record = "";
results = new Vector();
try
while (rs.next())
record = "";
for(int i=0; i < colNum; i++)
record += rs.getString(fieldName[i]);
results.addElement(record);
catch(SQLException ex)
System.err.println("record info SQLException: " + ex.getMessage());
public static void Display()
if (results != null)
String s = "";
for(int i=0; i < results.size(); i++)
s = (String) results.elementAt(i);
System.out.println(s);
else
System.out.println("No results to display.");
---===Main.java===---
public class Main
public static void main(String[] args)
DatabaseObject dbo = new DatabaseObject();
String srvrName = ...;
String loginID = ...;
String pwd = ...;
String url = "jdbc:odbc:" + srvrName;
String drvrName = "sun.jdbc.odbc.JdbcOdbcDriver";
dbo.startConnection(drvrName, url, loginID, pwd);
dbo.queryTable(...);
dbo.Display();I changed:
fieldName<i> = rsmd.getColumnName(i);
to:
fieldName<i> = rsmd.getColumnName(i+1);
...and it worked!!
Thanks. -
CallableStatement error: SQL command not properly ended
I am getting a strange error using CallableStatement and Oracle 7.3.4 with PL/SQL 2.3 using Classes12 JDBC driverset from Oracle. Here is the code we are using, which is almost verbatim from several Java/Oracle CallableStatement examples for Oracle 8. I am wondering what I am missing to make this work on Oracle 7 and am unable to find a reference online:
//String query = "begin PAC.PAC_WIP_WIPHEADER_PKG.GetWipNumPartList(?,?); end;";
String query = "{ call PAC.PAC_WIP_WIPHEADER_PKG.GETWIPNUMPARTLIST(?,?) } ";
CallableStatement csth = Connection.prepareCall(query);
csth.setString(1, wipNumber);
csth.setInt(2, PacCarousel.getCarouselNumber());
csth.execute();
using either the Begin or the call query (Begin commented in above code snip) is returning the following error from the JDBC driver:
java.sql.SQLException: ORA-00933: SQL command not properly ended
This identical 'begin' query works fine in TOAD or the PL/SQL console for Oracle, but just won't work using this set of JDBC drivers.
Has anyone run into this problem before or perhaps have some suggestions?
Thanks in advanceI am getting a strange error using CallableStatement and Oracle 7.3.4 with PL/SQL 2.3 using Classes12 JDBC driverset from Oracle. Here is the code we are using, which is almost verbatim from several Java/Oracle CallableStatement examples for Oracle 8. I am wondering what I am missing to make this work on Oracle 7 and am unable to find a reference online:
//String query = "begin PAC.PAC_WIP_WIPHEADER_PKG.GetWipNumPartList(?,?); end;";
String query = "{ call PAC.PAC_WIP_WIPHEADER_PKG.GETWIPNUMPARTLIST(?,?) } ";
CallableStatement csth = Connection.prepareCall(query);
csth.setString(1, wipNumber);
csth.setInt(2, PacCarousel.getCarouselNumber());
csth.execute();
using either the Begin or the call query (Begin commented in above code snip) is returning the following error from the JDBC driver:
java.sql.SQLException: ORA-00933: SQL command not properly ended
This identical 'begin' query works fine in TOAD or the PL/SQL console for Oracle, but just won't work using this set of JDBC drivers.
Has anyone run into this problem before or perhaps have some suggestions?
Thanks in advance -
Error in SQl Query - SQl Command not properly ended
Hi All
I have this SQL query that returns the following error when I run it in TOAD:
SELECT
VC.CAMPAIGN_NUMBER,VC.CAMPAIGN_TITLE,VC.CAMPAIGN_DESC,
VCV.START_DATE, VCV.END_DATE,VC.CAMPAIGN_TYPE,VC.APPLICABILITY,
VC.CAMPAIGN_PRIORITY
FROM
VM_CAMPAIGN_VIN VCV ,VM_CAMPAIGN VC
WHERE
VCV.VIN = 'US'
AND
VCV.CAMPAIGN_NUMBER = VC.CAMPAIGN_NUMBER AND VC.COUNTRY_CODE = 'E'
AND VC.LANGUAGE_CODE = 'L' AND VC.CAMPAIGN_TYPE = null
AND SYSDATE BETWEEN VCV.START_DATE AND VCV.END_DATE
AND SYSDATE BETWEEN VC.START_DATE AND VC.END_DATE)
A ORDER BY A.CAMPAIGN_PRIORITY DESC, A.END_DATE
The error is:
SQl Command not properly ended
Any help is highly appreciated. ThanksThanks a lot to everyone. It helped me run the query without any problem. Now I have another issue. This may not be the right place to post this question, I think.My apologies for that. The problem is, Weblogic posts an error as follows:
java.sql.SQLException: ORA-00923: FROM keyword not found where expected
I am wondering if this is an Java related error or an SQL related error.
Well, I am using the SQL Statement which you helped debug, and it is inside something called "XXSQLConstants.java consisting of the following SQL statement:
public static final String XX_ALL_CAMPS_SELECT = "SELECT * FROM" +
"(SELECT vc.campaign_number, vc.campaign_title, vc.campaign_desc, vc.start_date," +
"vc.end_date, vc.campaign_type, vc.applicability, vc.campaign_priority" +
"FROM vm_campaign vc" +
"WHERE vc.applicability = 'Y'" +
"AND vc.country_code = ? " +
"AND vc.language_code = ? " +
"AND vc.campaign_type = ? "+
"AND SYSDATE BETWEEN vc.start_date AND vc.end_date" +
"AND NOT EXISTS (" +
"SELECT 'X'" +
"FROM vm_campaign_vin vcv" +
"WHERE (vcv.vin = ? " +
"AND vcv.campaign_number = vc.campaign_number" +
"))" +
"UNION" +
"SELECT vc.campaign_number, vc.campaign_title, vc.campaign_desc," +
"vcv.start_date, vcv.end_date, vc.campaign_type, vc.applicability," +
"vc.campaign_priority" +
"FROM vm_campaign_vin vcv, vm_campaign vc" +
"WHERE vcv.vin = ? " +
"AND vcv.campaign_number = vc.campaign_number" +
"AND vc.country_code = ? " +
"AND vc.language_code = ? " +
"AND vc.campaign_type IS NULL" +
"AND SYSDATE BETWEEN vcv.start_date AND vcv.end_date" +
"AND SYSDATE BETWEEN vc.start_date AND vc.end_date)";
The SQl runs fine when tested (well, it does not return any data for the rows returned, but there are no errors), but in my application server I get the following error (pointing out the same SQL code pasted above:
java.sql.SQLException: ORA-00923: FROM keyword not found where expected
Any suggestions? Thanks in advance. I appreciate all replies -
MS Access SQL Command Automatic Update
Does anyone know the SQL command for automaticlly incrementing a number in Microsoft Access?
I'm writing a program in Java and I have these 3 fields of ID, name and address, and I want the ID to be automicattly incremented each time a name and address is added.If you have a table like this.
customer_table: id_column, name_column
Then you do an insert like the following
insert into customer_table(name_column) values('xxx')
After that the id_column will have a value in it. For the next insert the id_column will have a different incremented value. -
Delete IFS file with sql command
Hi
Is it possible to remove a file from IFS using an sql command? If so, what is it?
Thanks
HugoNo, this is not possible, nor is it supported. You may use the Java API to delete a file.
-
Sql Exception : Sql command not properly ended
Hi,
I have the following piece of code which i am using to search into the database and display the result in my jsp page. But it is throwing this exception. This happens only when i give 2 conditions. If i try to search with only one parameter, it works fine and returns the result. But when i enable two parameters , it throws the exception.
Below is the code i have written.
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@page import="java.sql.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<%
String queryString=null;
String Part_Number=null;
String Revision_Id=null;
String Part_Desc=null;
String Keyword_Name=null;
String Design_Style=null;
String Configuration_Name=null;
String Charateristic_Name=null;
String pN=null;
String rI=null;
String pD=null;
String kN=null;
String dS=null;
String coN=null;
String chN=null;
queryString ="select * from PART";
Connection con=null;
Statement pst=null;
ResultSet rs=null;
Part_Number =request.getParameter("part_nbr");
Revision_Id=request.getParameter("rev_id");
Part_Desc=request.getParameter("part_desc");
Keyword_Name=request.getParameter("keyword_name");
Design_Style=request.getParameter("Design_style");
Configuration_Name=request.getParameter("configuration");
Charateristic_Name=request.getParameter("characteristic");
pN=Part_Number.trim();
rI=Revision_Id.trim();
pD=Part_Desc.trim();
kN=Keyword_Name.trim();
dS=Design_Style.trim();
coN=Configuration_Name.trim();
chN=Charateristic_Name.trim();
System.out.println("Part Number In success: "+pN);
System.out.println("Rev Number In serchsuccess: "+rI);
System.out.println("part desc In seachsuccess: "+pD);
System.out.println("Keyword In sesuccess: "+kN);
System.out.println("Design style In sesuccess: "+dS);
System.out.println("Config In sesuccess: "+coN);
System.out.println("charac In sesuccess: "+chN);
System.out.println("queryString in sesuccess: "+queryString);
if(rI!=null)
queryString = queryString+" where REV_ID= '"+rI+"'";
if(pD!=null)
queryString = queryString+" where OBJ_DESC= '"+pD+"'";
System.out.println("queryString in sesuccess: "+queryString);
try
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
System.out.println("driver manager");
con=DriverManager.getConnection("jdbc:oracle:thin:@172.18.93.53:1521:PDMDumm", "Dumm1", "satyam");
System.out.println("connection established");
pst = con.createStatement();
rs = pst.executeQuery(queryString);
System.out.println("Query executed");
catch(SQLException se)
System.out.println("database error2");
se.printStackTrace();
catch(Exception e)
System.out.println("error");
if(rs!=null)
%>
<table>
<tr>
<th> PartNumber
<th> Revision_Id
<th> Description
<th> Characteristic
<th> Configuration
<th> DesignStyle
<th> Keyword
<th> Planned Eff In Dte
<th> Infos
<th> Native File
</table>
<tr>
<%
while(rs.next())
%>
<td> <%=rs.getString(1) %>
<td> <%=rs.getString(2) %>
<td> <%=rs.getString(3) %>
<td> <%=rs.getString(4) %>
<td> <%=rs.getString(5) %>
<td> <%=rs.getString(6) %>
<td> <%=rs.getString(7) %>
<td> <%=rs.getString(8) %>
<td> <%=rs.getString(9) %>
<td> <%=rs.getString(10) %>
<%
%>
</body>
</html>And this is the exception i get.
Part Number In success:
Rev Number In serchsuccess:
part desc In seachsuccess: cat
Keyword In sesuccess: ----
Design style In sesuccess: ----
Config In sesuccess: ----
charac In sesuccess: ----
queryString in sesuccess: select * from PART
queryString in sesuccess: select * from PART where REV_ID= '' where OBJ_DESC= 'cat'
driver manager
connection established
database error2
java.sql.SQLException: ORA-00933: SQL command not properly ended
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java)
at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteDescribe(TTC7Protocol.java)
at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java)
at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java)
at org.apache.jsp.searchsuccess_jsp._jspService(searchsuccess_jsp.java:129)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at SearchKdcc.doPost(SearchKdcc.java:60)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:619)Hi drvijayy2k2 ,
Thanks for replying.
I used your code in my application and this is the problem i am facing now. The query is getting executed but its not taking the value from the database because of the Null Rev Id that is getting inputted into queryString. I have given only part_desc as the search criteria. If i just search using part description , commenting the rev_id part , i am able to retrieve the result from the database.
I have to code in a way using which i can search using either rev_id or part_desc , or using both at the same time.
Part Number In success:
Rev Number In serchsuccess:
part desc In seachsuccess: cat
Keyword In sesuccess: ----
Design style In sesuccess: ----
Config In sesuccess: ----
charac In sesuccess: ----
queryString in sesuccess: select * from PART
queryString in sesuccess: select * from PART where REV_ID= '' and OBJ_DESC= 'cat'
driver manager
connection established
Query executed -
SQL Command to Check ABAP Support Patches and JSPM Patch
Dear all,
We have setup an DiasterRecovery System of the BI Production System .
os: aix 6.1
Database: Oracle 11.2
BUT , Our DR System is in Physical Standby mode.
Generally, we see the ABAP Patch version in SAP GUI ( System -- System status).
Likewise, Is there any SQL Command available to check the version ABAP Patches (
SAP_BASIS, SAP_ABAP, PI_Cont add on, PI_BASIS AND BW Patch - SAP_BW)
Is there any sql command to check the version of JSPM or JAVA Patch
regards,
gayathri.KHi Gayathri,
BUT , Our DR System is in Physical Standby mode.
Generally, we see the ABAP Patch version in SAP GUI ( System -- System status).
Likewise, Is there any SQL Command available to check the version ABAP Patches (
SAP_BASIS, SAP_ABAP, PI_Cont add on, PI_BASIS AND BW Patch - SAP_BW)
You can perform sql query on CVERS table.
For eg: Select * from <schema>.CVERS ;
This will list all the entries with all the columns from CVERS table.
Hope this helps.
Regards,
Deepak Kori
Maybe you are looking for
-
Keyboard no longer working when using Citrix Receiver and OSX10.9.5
I use Citrix Receiver and an iMac to connect to my work desktop from home. I have the latest release of Citrix Receiver. This morning I upgraded to OSX 10.9.5 and, after the update, my keyboard was not recognised when using Citrix Receiver. It works
-
Printing problems with HP laserJet 1320 and new Intel iMac
My new Intel iMac won't print to my HP 1320 from Eudora or from web browsers. The applications "quit unexpectedly". From Safari, nothing happens. I can print PDF documents and Office documents with no problems. The Intel is connected to a router via
-
Hi changed some notification settings on phone after seeing on tv a woman got a $14,000 bill not sure what else Ive done but my Iphone 4S, my sons 3GS and my HP laptop can't connect to the WiFi at home the main computer has wifi operating and so doe
-
Permissions issues with multiple volumes
I'm currently running one boot volume with Snow Leopard and one with Mountain Lion on my Mac Pro. Due to current software compatibility-related issues, I need to be able to use both volumes regularly as part of my workflow for now, though I plan to
-
Hi, I want to upgrade to lion OS so i can make use of the icloud with my iphone 4S and macbook. However, i'm wondering if i will need to re-install all my software applications all over again after this upgrade is complete? Thanks