COUNT field incorrect or syntax error while installing BO Xi3
Hello
I am trying to install Boxi3. The cms and audit dbs are all in sql database. The dbs and accounts are setup properly. However while installing, after I selected the CMS and Audit DBs, I am getting
"Database access error. Reason [Microsoft][ODBC SQL Server Driver]COUNT field incorrect or syntax error."
At the details the error is as below.
Wed Jul 30 03:46:53 2008] 5220 192 trace message: loading libary succeeded
[Wed Jul 30 03:46:53 2008] 5220 192 trace message: AuditDatabaseSubsystem::Init()
[Wed Jul 30 03:46:53 2008] 5220 192 trace message: initializing subsystem succeeded
[Wed Jul 30 03:46:53 2008] 5220 192 trace message: AuditDatabaseSubsystem::Connect()
[Wed Jul 30 03:46:53 2008] 5220 192 (.\DBConnectionManager.cpp:802): trace message: DBConnectionManager - Setting total target number of connections for pool 0 to 1.
[Wed Jul 30 03:46:53 2008] 5220 192 (.\SQLServerStatement.cpp:186): trace message: ExecDirect: SQL: SELECT * FROM APPLICATION_TYPE WHERE 0 = 1
[Wed Jul 30 03:46:53 2008] 5220 192 (.\SQLServerStatement.cpp:186): trace message: ExecDirect: SQL: SELECT * FROM AUDIT_EVENT WHERE 0 = 1
[Wed Jul 30 03:46:53 2008] 5220 192 (.\SQLServerStatement.cpp:186): trace message: ExecDirect: SQL: SELECT * FROM EVENT_TYPE WHERE 0 = 1
[Wed Jul 30 03:46:53 2008] 5220 192 (.\SQLServerStatement.cpp:186): trace message: ExecDirect: SQL: SELECT * FROM SERVER_PROCESS WHERE 0 = 1
[Wed Jul 30 03:46:53 2008] 5220 192 (.\SQLServerStatement.cpp:186): trace message: ExecDirect: SQL: SELECT * FROM AUDIT_DETAIL WHERE 0 = 1
[Wed Jul 30 03:46:53 2008] 5220 192 (.\SQLServerStatement.cpp:186): trace message: ExecDirect: SQL: SELECT * FROM DETAIL_TYPE WHERE 0 = 1
[Wed Jul 30 03:46:53 2008] 5220 192 trace message: AuditDatabaseSubsystem::CheckDBCredentials()
[Wed Jul 30 03:46:53 2008] 5220 192 (.\AuditDatabaseSubsystem_impl.cpp:1197): trace message: AuditDatabaseSubsystem::CheckDBCredentialsOnTable(AUDIT_EVENT)
[Wed Jul 30 03:46:53 2008] 5220 192 assert failure: (.\SQLServerDatabase.cpp:515). (0 : Unexpected database column type for Duration type is decimal).
[Wed Jul 30 03:46:53 2008] 5220 192 assert failure: (.\SQLServerDatabase.cpp:515). (0 : Unexpected database column type for Event_Type_ID type is decimal).
[Wed Jul 30 03:46:53 2008] 5220 192 assert failure: (.\SQLServerDatabase.cpp:515). (0 : Unexpected database column type for Error_Code type is decimal).
[Wed Jul 30 03:46:53 2008] 5220 192 (.\SQLServerStatement.cpp:162): trace message: Prepare: SQL: INSERT INTO AUDIT_EVENT (Duration, Error_Code, Event_ID, Event_Type_ID, Object_CUID, Server_CUID, Start_Timestamp, User_Name) VALUES(?, ?, ?, ?, ?, ?, ?, ?)
[Wed Jul 30 03:46:53 2008] 5220 192 assert failure: (.\SQLServerStatement.cpp:699). (0 : Unsupported SQL Server data type for binding.).
[Wed Jul 30 03:46:53 2008] 5220 192 assert failure: (.\SQLServerStatement.cpp:699). (0 : Unsupported SQL Server data type for binding.).
[Wed Jul 30 03:46:53 2008] 5220 192 assert failure: (.\SQLServerStatement.cpp:699). (0 : Unsupported SQL Server data type for binding.).
[Wed Jul 30 03:46:53 2008] 5220 192 assert failure: (.\AuditDatabaseSubsystem_impl.cpp:1344). (0 : no message).
[Wed Jul 30 03:46:53 2008] 5220 192 assert failure: (.\AuditDatabaseSubsystem_impl.cpp:1344). (0 : no message).
[Wed Jul 30 03:46:53 2008] 5220 192 assert failure: (.\AuditDatabaseSubsystem_impl.cpp:1344). (0 : no message).
[Wed Jul 30 03:46:53 2008] 5220 192 (.\SQLServerStatement.cpp:171): trace message: Prepared statement Execute
[Wed Jul 30 03:46:53 2008] 5220 192 (.\SQLServerDatabase.cpp:119): trace message: SQLServer error found: ErrorMessage([Microsoft][ODBC SQL Server Driver]COUNT field incorrect or syntax error), ErrorCode(0)
[Wed Jul 30 03:46:53 2008] 5220 192 (.\AuditDatabaseSubsystem_impl.cpp:92): trace message: DBConnectionHolder - (AuditDB) - Caught retryable error with Code 0, Msg: [Microsoft][ODBC SQL Server Driver]COUNT field incorrect or syntax error Number of retryable errors on this connection is 1
[Wed Jul 30 03:46:53 2008] 5220 192 (.\dbutils.cpp:922): trace message: Caught DatabaseSubystem Error: Database access error. Reason [Microsoft][ODBC SQL Server Driver]COUNT field incorrect or syntax error.
[Wed Jul 30 03:46:53 2008] 5220 192 trace message: AuditDatabaseSubsystem::Shutdown()
This only happens for audit db and not for cms db. May I know what is the reason for this and how to resolve it?
Thanks
I am using Java 6 already.That's what I said in my last post.
setClob() and setCharacterStream() are used for
NVARCHAR and NTEXT tyesLike I said, the API talks about using setCharacterStream for LONGVARCHAR types, are NVARCHAR and NTEXT LONGVARCHAR types?
Similar Messages
-
[Microsoft][ODBC SQL Server Driver]COUNT field incorrect or syntax error
Hi , i am trying to execute siple SP using JDBC-ODBC Bridge Driver
Here my code :
String dsn="Tritek1";
String user="sa";
String password="imcindia";
Connection con1 = null;
CallableStatement cstmt = null;
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
con1=DriverManager.getConnection("jdbc:odbc:"+dsn,user,password);
Statement st=con1.createStatement();
st.execute("use dm0102d");
st.execute("setuser 'dm01012'");
cstmt = conObject.connection(" ?=Call dms_ex_get_folder_info(?,?,?)");
cstmt.setString(1,folderType);
cstmt.registerOutParameter(2,java.sql.Types.VARCHAR);
cstmt.registerOutParameter(3,java.sql.Types.VARCHAR); bFlag=cstmt.execute();
Here my SP :
Procedure Name : dms_ex_get_folder_info
Input Parameter(s) : a. folder_type char(20)
Return Parameter(s) : a. Recordset consist edit_mask and folder_type_code from folder_reference table / error
Procedure Type : select
Programmer : Prashanth Kumar M.
Creation Date : 12/20/2005 (20th Dec, 2005)
Tables Accessed : folder_reference
Revised :
Programmer: Date: Description:
Prashanth Kumar M. 12/21/2005 Modified the script as per the approved program specifications.
Test Query:
Declare @edit_mask char(15)
Declare @folder_type_code char(2)
execute dms_ex_get_folder_info 'Policy Folder',@edit_mask output,@folder_type_code output
Print 'Edit Mask : ' + @edit_mask
Print 'Folder Type Code : ' + @folder_type_code
CREATE PROCEDURE dms_ex_get_folder_info
@folder_type char(20),
@edit_mask char(15) output,
@folder_type_code char(2) output
AS
BEGIN
-- Check if the record for @folder_type exists or not.
BEGIN
-- return the record from folder_reference
SELECT
@edit_mask= IsNull(edit_mask,''),
@folder_type_code = IsNull(folder_type_code,'')
FROM folder_reference
WHERE
folder_decode = ltrim(rtrim(@folder_type))
-- return the error message
IF @@error <> 0
BEGIN
RAISERROR 100016 'Error in gettting the record from folder_reference table'
RETURN (@@error)
END
IF @edit_mask = '' AND @folder_type_code = ''
BEGIN
RAISERROR 100017 'No matching details in the folder_reference table'
RETURN (@@error)
END
END
END
GO
Here My Exception:
java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]COUNT field incorrect or syntax error
at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source)
at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source)
at sun.jdbc.odbc.JdbcOdbc.SQLExecute(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcPreparedStatement.execute(Unknown Source)
at com.nyl.dms.bl.Folder.createFolder(Folder.java:121)
at com.nyl.dms.bl.Folder.main(Folder.java:223)
Any one can help me to overcome this problem . Thanks in advance.
venkatHere's from one of those 10s of books.
Quoted from JDBC 3.0 by Bernard Van Haecke:
Stored procedures can return multiple result types because they can be composed of SQL statements that return diverse result types: resultsets and update counts (this includes special error codes).
Now this doesn't sound very satisfactory. So I use Sybase since I don't have any other database at the moment, and write a simple stored procedure.
CREATE proc testproc AS
BEGIN
-- My return code
return 7
END
goThen a sample patchy buggy code to play around:
import java.sql.*;
public class ProcTesting {
public static void main(String[] args) {
String connUrl = "jdbc:sybase:Tds:myserver:5150/dbinst";
String userName = "username";
String password = "password";
Connection con = null;
CallableStatement stmt = null;
ResultSet rs = null;
String sql = "{? = call testproc}";
try {
Class.forName("com.sybase.jdbc2.jdbc.SybDriver").newInstance();
con = DriverManager.getConnection(connUrl, userName, password);
stmt = con.prepareCall(sql);
stmt.registerOutParameter(1, Types.INTEGER);
stmt.execute();
System.out.println(stmt.getInt(1));
} catch(Exception e) {
e.printStackTrace();
} finally {
closeAll(con, stmt);
public static void closeAll(Connection con, Statement stmt) {
try {
con.close();
} catch(Exception e) { }
try {
stmt.close();
} catch(Exception e) { }
}Followed by:
javac ProcTesting.java
java -cp "%CLASSPATH%;C:\jarutils\jconn2.jar" ProcTesting
Output:
7
Didn't you know this could be done?
Happy new year, grandpa! -
COUNT field incorrect or syntax error
hi,
PreparedStatement stmt = con.prepareStatement("Insert into uQuestions values(?,?)");
stmt.setInt(1,2);
//stmt.setString(2,s.trim());
Reader rd=new StringReader(s.trim());
stmt.setCharacterStream(2, rd );
System.out.println( stmt.executeUpdate() );
stmt.close();Result
java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]COUNT field incorrect or syntax error
In place of setCharacterStream If I use stmt.setString(2,s.trim()) then it works fine.
Whats the problem there....I am using Java 6 already.That's what I said in my last post.
setClob() and setCharacterStream() are used for
NVARCHAR and NTEXT tyesLike I said, the API talks about using setCharacterStream for LONGVARCHAR types, are NVARCHAR and NTEXT LONGVARCHAR types? -
Error while installing BO XI3.1
Hi,
We are installing BOXI3.1 on LINUX 64 bit server.
we had already installed oracle 10g for repository database on AIX 64 bit.
We have also installed oracle selec client 64 biton Linux server.
While installing BO we are stuck after selecting the option of using the existing database for repository.
when we give TNS name , Username of oracle schema created and password it gives the following erro.
Failure to validate the database credential has a potential to crash the database at a later stage. Enter the correct information. (STU00104)
Can somebody help in this case.
Thanks in advanceHi,
please make sure the the 32bit oracle libraries are installed on your machine (BOBJ server) and that these are visible for your BOBJ installation user (you have to define the LD_LIBRARY_PATH variable accordingly)
Regards,
Stratos -
MSAccess Count Field incorrect problem
Hello I am trying an update of Details, I traced the code along to it populated fields and verified values as correct.I am getting an error on the
int resultCount = stmt.executeUpdate();
if ( resultCount != 1 ) {Why is this ?
My error line is :ClubBean: message = Unable to update item Swing
java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver]COUNT field incorrect
ClubBean: Fatal Error Occurred
Please tell me if what i am trying to do is wrong.
* ClubDAO.java
* Created on 31 March 2004, 14:45
package com.soundstage;
* @author Andrew
import java.io.*;
import java.sql.*;
import java.text.*;
import java.util.*;
import javax.sql.*;
public class ClubDAO implements Serializable, DataAccess {
private transient TransactionContext globalTran = null;
private transient ClubValue clubVal = null;
*Creates a new instance of DAO
public ClubDAO(TransactionContext transactionContext) {
globalTran = transactionContext;
public Object findByPrimaryKey(Integer memberNumber)
throws DAOSysException, DAOFinderException {
if (itemExistsById(memberNumber)) {
//log("CustomerDAO: returning " + clubVal.getMemberNumber());
return clubVal;
throw new DAOFinderException("Club Not Found = "
+ memberNumber);
public void deleteObject(Integer id) throws DAOSysException,
DAODBUpdateException{
String queryStr = "DELETE FROM " + "Club" +
" WHERE ClubName = "
+ id;
log("queryString is: "+ queryStr);
Statement stmt = null;
try {
stmt = globalTran.getDBConnection().createStatement();
int resultCount = stmt.executeUpdate(queryStr);
if ( resultCount != 1 )
throw new DAODBUpdateException("ERROR deleteing Club from" + " Club_TABLE!! resultCount = " + resultCount);
} catch(SQLException se) {
throw new DAOSysException("Unable to delete for item " + id + "\n" + se);
} finally {
globalTran.closeStatement(stmt);
log("ClubDAO: closeStatement");
public void deleteObject(String clubName)
throws DAOSysException, DAODBUpdateException {
String queryStr = "DELETE FROM Club WHERE ClubName = " + "'"+clubName+"'";
log("queryString is: "+ queryStr);
Statement stmt = null;
try {
stmt = globalTran.getDBConnection().createStatement();
int resultCount = stmt.executeUpdate(queryStr);
if ( resultCount != 1 )
throw new DAODBUpdateException("ERROR deleteing Club from" + " Club_TABLE!! resultCount = " + resultCount);
} catch(SQLException se) {
throw new DAOSysException("Unable to delete for item " + clubName + "\n" + se);
} finally {
globalTran.closeStatement(stmt);
log("ClubDAO: closeStatement");
public void updateObject(Object model) throws
DAOAppException, DAODBUpdateException,
DAOSysException{
ClubValue clubVal = (ClubValue) model;
PreparedStatement stmt = null;
try {
String queryStr = "UPDATE " + "Club" +
" SET " + "ClubName = ?, " +
"NumberOfMembersEnrolled = ?, " +
"NumberOfCancelledYTD = ?, " +
"CurrentPromotion = ?, " +
"TotalUnitsSoldForClub = ?, " +
"MaximumPeriodOfObligation = ?, " +
"WHERE ClubName = ?";
log("ClubDAO: Update String " + queryStr);
stmt = globalTran.getDBConnection().prepareStatement(queryStr);
log("ClubDAO: Prepare Worked ");
stmt.setString(1, clubVal.getClubName());
stmt.setInt(2, clubVal.getNumberOfMembersEnrolled());
stmt.setInt(3, clubVal.getNumberOfCancelledYTD());
stmt.setString(4, clubVal.getCurrentPromotion());
stmt.setInt(5, clubVal.getTotalUnitsSoldForClub());
stmt.setInt(6, clubVal.getMaximumPeriodOfObligation());
log("ClubDAO: done setting items ");
int resultCount = stmt.executeUpdate();
if ( resultCount != 1 ) {
log("ClubDAO: update failed");
throw new DAODBUpdateException ("ERROR updating ClubD in" + " Club!! resultCount = " + resultCount);
log("ClubDAO: update worked...result count = " + resultCount);
} catch(SQLException se) {
throw new DAOSysException("Unable to update item " + clubVal.getClubName() + " \n" + se);
} finally {
globalTran.closeStatement(stmt);
log("ClubDAO: closeStatement");
public void insertObject(Object model) throws
DAOAppException, DAODBUpdateException,
DAOSysException{
ClubValue clubVal = (ClubValue) model;
PreparedStatement stmt = null;
try {
String queryStr = "INSERT INTO Club (ClubName, NumberOfMembersEnrolled, NumberOfCancelledYTD, CurrentPromotion," +
"TotalUnitsSoldForClub, MaximumPeriodOfObligation)" +
"VALUES (?, ?, ?, ?, ?, ?)";
log("ClubDAO: Insert String " + queryStr);
stmt = globalTran.getDBConnection().
prepareStatement(queryStr);
int i = 1;
stmt.setString(i++, clubVal.getClubName());
stmt.setInt(i++, clubVal.getNumberOfMembersEnrolled());
stmt.setInt(i++, clubVal.getNumberOfCancelledYTD());
stmt.setString(i++, clubVal.getCurrentPromotion());
stmt.setInt(i++, clubVal.getTotalUnitsSoldForClub());
stmt.setInt(i++, clubVal.getMaximumPeriodOfObligation());
int resultCount = stmt.executeUpdate();
if ( resultCount != 1 )
throw new DAODBUpdateException("ERROR inserting Club in" + " Club!! resultCount = " + resultCount);
} catch(SQLException se) {
throw new DAOSysException("Unable to insert item " + clubVal.getClubName() + " \n" + se);
} finally {
globalTran.closeStatement(stmt);
log("ClubDAO: closeStatement");
* Returns an CustomerValue initialized with the information
* found in the database for the specified customer, or null if
* not found.
public Object findByName(String name)
throws DAOSysException, DAOFinderException {
//log("CustomerDAO: start findByCustomerNumber");
if (itemExistsByName(name)) {
// log("ClubDAO: returning " + clubVal.getCustomerId());
return clubVal;
throw new DAOFinderException("Club Not Found = "
+ name);
private boolean itemExistsById(Integer memberNumber) throws DAOSysException {
String queryStr ="SELECT MemberNumber, MemberName, " +
"FROM member " +
"WHERE MemberNumber = " + memberNumber;
return doQuery(queryStr);
private boolean itemExistsByName(String clubName) throws DAOSysException {
// log("MemberDAO: before query creation");
String queryStr ="SELECT * FROM Club WHERE ClubName = " + "'"+clubName+"'";
log(queryStr);
return doQuery(queryStr);
private boolean doQuery(String qryString) throws DAOSysException {
Statement stmt = null;
ResultSet result = null;
boolean returnValue = false;
try {
// log("CustomerDAO: before statement creationg");
stmt = globalTran.getDBConnection().createStatement();
// log("CustomerDAO: statement created");
//log("CustomerDAO: query is" + qryString);
result = stmt.executeQuery(qryString);
// log("CustomerDAO: statement executed");
if ( !result.next() ) {
//log("CustomerDAO: customer not found");
returnValue = false;
else {
// log("CustomerDAO: Club found");
clubVal = new ClubValue();
int i = 1;
clubVal.setClubName(result.getString(i++));
clubVal.setNumberOfMembersEnrolled(result.getInt(i++));
clubVal.setNumberOfCancelledYTD(result.getInt(i++));
clubVal.setCurrentPromotion(result.getString(i++));
clubVal.setTotalUnitsSoldForClub(result.getInt(i++));
clubVal.setMaximumPeriodOfObligation(result.getInt(i++));
returnValue = true;
} catch(SQLException se) {
se.printStackTrace();
throw new DAOSysException("Unable to Query for item " +
"\n" + se);
} finally {
// log("CustomerDAO: prior");
globalTran.closeResultSet(result);
// log("CustomerDAO: closeResult");
globalTran.closeStatement(stmt);
// log("CustomerDAO: closeStatement");
return returnValue;
private void closeResultSet(ResultSet result) throws DAOSysException {
try {
if (result != null) {
result.close();
} catch (SQLException se) {
throw new DAOSysException("SQL Exception while closing " +
"Result Set : \n" + se);
private void closeStatement(Statement stmt) throws DAOSysException {
try {
if (stmt != null) {
stmt.close();
} catch (SQLException se) {
throw new DAOSysException("SQL Exception while closing " +
"Statement : \n" + se);
private void log(String s) {
System.out.println(s);
}Thank YouSorry its the UpdateObject.
public void updateObject(Object model) throws
DAOAppException, DAODBUpdateException,
DAOSysException{
ClubValue clubVal = (ClubValue) model;
PreparedStatement stmt = null;
try {
String queryStr = "UPDATE " + "Club" +
" SET " + "ClubName = ?, " +
"NumberOfMembersEnrolled = ?, " +
"NumberOfCancelledYTD = ?, " +
"CurrentPromotion = ?, " +
"TotalUnitsSoldForClub = ?, " +
"MaximumPeriodOfObligation = ?, " +
"WHERE ClubName = ?";
log("ClubDAO: Update String " + queryStr);
stmt = globalTran.getDBConnection().prepareStatement(queryStr);
log("ClubDAO: Prepare Worked ");
stmt.setString(1, clubVal.getClubName());
stmt.setInt(2, clubVal.getNumberOfMembersEnrolled());
stmt.setInt(3, clubVal.getNumberOfCancelledYTD());
stmt.setString(4, clubVal.getCurrentPromotion());
stmt.setInt(5, clubVal.getTotalUnitsSoldForClub());
stmt.setInt(6, clubVal.getMaximumPeriodOfObligation());
log("ClubDAO: done setting items ");
int resultCount = stmt.executeUpdate();
if ( resultCount != 1 ) {
log("ClubDAO: update failed");
throw new DAODBUpdateException ("ERROR updating ClubD in" + " Club!! resultCount = " + resultCount);
log("ClubDAO: update worked...result count = " + resultCount);
} catch(SQLException se) {
throw new DAOSysException("Unable to update item " + clubVal.getClubName() + " \n" + se);
} finally {
globalTran.closeStatement(stmt);
log("ClubDAO: closeStatement");
} -
Error: COUNT field incorrect in jdbc
hello
please help me out!!!!!! am trying to retrive data (ID) which was updated before in this program. now am getting error:COUNT field incorrect. and can it be displayed by using JOptionPane?
pst=con.prepareStatement("select ID from db1 where NAME=?,EMAIL=?");
ResultSet rs=pst.executeQuery();
while(rs.next()){
System.out.println(rs.getString(0));pawankarra wrote:
thnx for ur replay.........This should read:
Thanks for your reply.Notice the corrected spelling of three of the four words in the sentence (you could have misspelled all of them by using "4" instead of "for") and the use of only one period/fullstop at the end of the sentence.
In reply to your original question, the column numbers in JDBC start at 1, not at 0. So this line of code is the problem:
System.out.println(rs.getString(0));It should read:
System.out.println(rs.getString(1));And, being an autogenerated column, isn't it a numeric value? Do you really want to read it as a String? -
How can I resolve Exception : "Count Field Incorrect" error
Hi all,
I am experiencing with "Count Field incorrect" error. What's wrong with it? How can I resolve it?
This error is occured at UPDATE function of SQL. My JSP page is to update the old record.
Sometimes, "Update statement error" message appear. These two problems I always confusing.
What are the possible point of these error in my Java file and JSP page? I use package import to JSP Page.
Pls help me.
With thanks,Thanks,
Your URLs help me exectly. But after I have changed my code, the error is changed to "Too Few Parameters : Expected 35". What's wrong with it? The following is my code.
try {
String DRIVER = ("sun.jdbc.odbc.JdbcOdbcDriver");
String URL = "jdbc:odbc:Industrial_One_DSN";
String sql = "UPDATE BusinessRegistration " +
"SET [Date] = ?, ISIC = ?, BizName = ?, BizAddress = ?, " +
"OwnerName = ?, OwnerNRC = ?, Investment = ?, EstablishedYear = ?, " +
"L_Male = ?, L_Female = ?, F_Male = ?, F_Female = ?, " +
"OwnershipType = ?, Remarks = ?, IndustialZoneName = ?, Unit = ?, " +
"Fuel = ?, FactoryType = ?, FactoryName = ?, Township = ? " +
"MainProductName = ?, MainProductCountType = ?, " +
"MainProductQuantity = ?, MainProductValue = ?, RMName = ?, " +
"RMCountType = ?, RMQuantity = ?, RMValue = ?, EnergyName = ?, " +
"MachinePower = ?, AmountGallon = ?, StateDiv = ?, BizSize = ? " +
"WHERE RegistrationID = ?";
Class.forName(DRIVER);
Connection con = DriverManager.getConnection(URL);
PreparedStatement pstmt = con.prepareStatement(sql);
int ilmale = Integer.parseInt(lmale);
int ilfemale = Integer.parseInt(lfemale);
int ifmale = Integer.parseInt(fmale);
int iffemale = Integer.parseInt(ffemale);
int impq = Integer.parseInt(mpq);
int impv = Integer.parseInt(mpv);
int irmq = Integer.parseInt(rmq);
int irmv = Integer.parseInt(rmv);
int iamountgallon = Integer.parseInt(amountgallon);
pstmt.setString(1, date);
pstmt.setString(2, isic);
pstmt.setString(3, bizname);
pstmt.setString(4, bizaddress);
pstmt.setString(5, ownername);
pstmt.setString(6, ownernrc);
pstmt.setString(7, investment);
pstmt.setString(8, eyear);
pstmt.setInt(9, ilmale);
pstmt.setInt(10, ilfemale);
pstmt.setInt(11, ifmale);
pstmt.setInt(12, iffemale);
pstmt.setString(13, ownershiptype);
pstmt.setString(14, remark);
pstmt.setString(15, izn);
pstmt.setString(16, unit);
pstmt.setString(17, fuel);
pstmt.setString(18, ft);
pstmt.setString(19, fname);
pstmt.setString(20, township);
pstmt.setString(21, mpn);
pstmt.setString(22, mpct);
pstmt.setInt(23, impq);
pstmt.setInt(24, impv);
pstmt.setString(25, rmname);
pstmt.setString(26, rmct);
pstmt.setInt(27, irmq);
pstmt.setInt(28, irmv);
pstmt.setString(29, ename);
pstmt.setString(30, mpower);
pstmt.setInt(31, iamountgallon);
pstmt.setString(32, statediv);
pstmt.setString(33, bizsize);
pstmt.setInt(34, Integer.parseInt(rid));
pstmt.executeUpdate();
}I have got 35 fields in my db. But i wanna edit 34 fields only. I have no primary key in my table. Is't alright?
pls keep on helping me.
With thanks,
WTDAHL -
COUNT field incorrect: error help
Hi, im quite new to java and im building an application to connect to a database and perfom various searches. the program displays the database data by means of a table.
I can imagine ive done something wrong with the prepaired statements but i cant see what, Any suggestions would be very helpful. Here is the method that i have a problem with:
public void test()
Vector columnNames = new Vector();
Vector data = new Vector();
try
// Connect to the Database
String url = "jdbc:odbc:ris1851";
Connection con;
//String driver = "sun.jdbc.odbc.JdbcOdbcDriver";
Class.forName( "sun.jdbc.odbc.JdbcOdbcDriver" );
String querySEARCH = "SELECT * FROM RIS51 WHERE SURNAME = ? order by age";
String SEARCH = txtUser.getText();
con = DriverManager.getConnection(url);
PreparedStatement search = con.prepareStatement(querySEARCH);
Statement stmt = con.createStatement();
ResultSet rs = search.executeQuery();
ResultSetMetaData md = rs.getMetaData();
int columns = md.getColumnCount();
// Get column names
for (int i = 0; i < columns; i++)
columnNames.addElement( md.getColumnName(i) );
//Get row data
while (rs.next())
Vector row = new Vector(columns);
for (int i = 0; i < columns; i++)
row.addElement( rs.getObject(i) );
data.addElement( row );
rs.close();
search.close();
catch(Exception e)
System.out.println(e );
when i call the method i get:
java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver]COUNT field incorrectpublic void test() {
Vector columnNames = new Vector();
Vector data = new Vector();
try {
// Connect to the Database
String url = "jdbc:odbc:ris1851";
Connection con;
// String driver = "sun.jdbc.odbc.JdbcOdbcDriver";
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
String querySEARCH = "SELECT * FROM RIS51 WHERE SURNAME = "+txtUser.getText()+" order by age";
con = DriverManager.getConnection(url);
Statement search = con.createStatement();
ResultSet rs = search.executeQuery(querySEARCH);
ResultSetMetaData md = rs.getMetaData();
int columns = md.getColumnCount();
// Get column names
for (int i = 0; i < columns; i++) {
columnNames.addElement(md.getColumnName(i));
// Get row data
while (rs.next()) {
Vector row = new Vector(columns);
for (int i = 0; i < columns; i++) {
row.addElement(rs.getObject(i));
data.addElement(row);
rs.close();
search.close();
} catch (Exception e) {
System.out.println(e);
}You should learn more JDBC:
http://java.sun.com/docs/books/tutorial/jdbc/basics/index.html -
Database Access in Java (Count field incorrect)
Was given a stock tracking application to be edited for use as a Student/Admin login application which accesses a database and adds/deletes/edits student information. When I try to login, I get the following error: [Microsoft][OBDC Microsoft Access Driver]Count Field Incorrect
The driver was set up in the Admin tools in Windows XP.
The columns exist in the database.
//makeDB.java
import java.sql.*;
import java.io.*;
public class MakeDB
public static void main(String[] args) throws Exception
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
String url = "jdbc:odbc:saad";
Connection con = DriverManager.getConnection(url);
Statement stmt = con.createStatement();
// The following code deletes each index and table, if they exist.
// If they do not exist, a message is displayed and execution continues.
System.out.println("Dropping indexes & tables ...");
try
stmt.executeUpdate("DROP INDEX PK_StudentUserBridge ON StudentUserBridge");
catch (Exception e)
System.out.println("Could not drop primary key on saad table: "
+ e.getMessage());
try
stmt.executeUpdate("DROP TABLE Student");
catch (Exception e)
System.out.println("Could not drop Student table: "
+ e.getMessage());
try
stmt.executeUpdate("DROP TABLE Users");
catch (Exception e)
System.out.println("Could not drop Users table: "
+ e.getMessage());
try
stmt.executeUpdate("DROP TABLE StudentUserBridge");
catch (Exception e)
System.out.println("Could not drop StudentUserBridge table: "
+ e.getMessage());
///////// Create the database tables /////////////
System.out.println("\nCreating tables ............");
// Create Stocks table with primary key index
try
System.out.println("Creating Student table with primary key index...");
stmt.executeUpdate("CREATE TABLE Student ("
+"IDNumber TEXT(8) NOT NULL "
+"CONSTRAINT PK_Student PRIMARY KEY, "
+"FirstName TEXT(50), "
+"LastName TEXT(50)"
+")");
catch (Exception e)
System.out.println("Exception creating Student table: "
+ e.getMessage());
// Create Users table with primary key index
try
System.out.println("Creating Users table with primary key index...");
stmt.executeUpdate("CREATE TABLE Users ("
+"userID TEXT(20) NOT NULL "
+"CONSTRAINT PK_Users PRIMARY KEY, "
+"FirstName TEXT(30) NOT NULL, "
+"LastName TEXT(30) NOT NULL, "
+"pswd LONGBINARY, "
+"email TEXT(30) NOT NULL, "
+"admin BIT"
+")");
catch (Exception e)
System.out.println("Exception creating Users table: "
+ e.getMessage());
// Create UserStocks table with foreign keys to Users and Stocks tables
try
System.out.println("Creating StudentUserBridge table ...");
stmt.executeUpdate("CREATE TABLE StudentUserBridge ("
+"userID TEXT(20) "
+"CONSTRAINT FK1_StudentUserBridge REFERENCES Users (userID), "
+"IDNumber TEXT(8), "
+"CONSTRAINT FK2_StudentUserBridge FOREIGN KEY (IDNumber) "
+"REFERENCES Student (IDNumber)"
+")");
catch (Exception e)
System.out.println("Exception creating StudentUserBridge table: "
+ e.getMessage());
// Create UserStocks table primary key index
try
System.out.println("Creating StudentUserBridge table primary key index...");
stmt.executeUpdate("CREATE UNIQUE INDEX PK_StudentUserBridge "
+"ON StudentUserBridge (userID, IDNumber) "
+"WITH PRIMARY DISALLOW NULL");
catch (Exception e)
System.out.println("Exception creating StudentUserBridge index: "
+ e.getMessage());
// Create one administrative user with password as initial data
String userID = "admin01";
String FirstName = "Default";
String LastName = "Admin";
String initialPswd = "admin01";
String email = "[email protected]";
Password pswd = new Password(initialPswd);
boolean admin = true;
PreparedStatement pStmt =
con.prepareStatement("INSERT INTO Users VALUES (?,?,?,?,?,?)");
try
pStmt.setString(1, userID);
pStmt.setString(2, FirstName);
pStmt.setString(3, LastName);
pStmt.setBytes(4, serializeObj(pswd));
pStmt.setString(5, email);
pStmt.setBoolean(6, admin);
pStmt.executeUpdate();
catch (Exception e)
System.out.println("Exception inserting user: "
+ e.getMessage());
pStmt.close();
// Read and display all User data in the database.
ResultSet rs = stmt.executeQuery("SELECT * FROM Users");
System.out.println("Database created.\n");
System.out.println("Displaying data from database...\n");
System.out.println("Users table contains:");
Password pswdFromDB;
byte[] buf = null;
while(rs.next())
System.out.println("Logon ID = "
+ rs.getString("userID"));
System.out.println("Last name = "
+ rs.getString("FirstName"));
System.out.println("First name = "+rs.getString("LastName"));
System.out.println("E-mail = "+rs.getString("email"));
System.out.println("Administrative = "+rs.getBoolean("admin"));
System.out.println("Initial password = "+initialPswd);
// Do NOT use with JDK 1.2.2 using JDBC-ODBC bridge as
// SQL NULL data value is not handled correctly.
buf = rs.getBytes("pswd");
if (buf != null)
System.out.println("Password Object = "
+ (pswdFromDB=(Password)deserializeObj(buf)));
System.out.println(" AutoExpires = "+ pswdFromDB.getAutoExpires());
System.out.println(" Expiring now = "+ pswdFromDB.isExpiring());
System.out.println(" Remaining uses = "
+ pswdFromDB.getRemainingUses()+"\n");
else
System.out.println("Password Object = NULL!");
rs = stmt.executeQuery("SELECT * FROM Student");
if(!rs.next())
System.out.println("Student table contains no records.");
else
System.out.println("Student table still contains records!");
rs = stmt.executeQuery("SELECT * FROM StudentUserBridge");
if(!rs.next())
System.out.println("StudentUserBridge table contains no records.");
else
System.out.println("StudentUserBridge table still contains records!");
stmt.close(); // closing Statement also closes ResultSet
} // end of main()
// Method to write object to byte array and then insert into prepared statement
public static byte[] serializeObj(Object obj)
throws IOException
ByteArrayOutputStream baOStream = new ByteArrayOutputStream();
ObjectOutputStream objOStream = new ObjectOutputStream(baOStream);
objOStream.writeObject(obj); // object must be Serializable
objOStream.flush();
objOStream.close();
return baOStream.toByteArray(); // returns stream as byte array
// Method to read bytes from result set into a byte array and then
// create an input stream and read the data into an object
public static Object deserializeObj(byte[] buf)
throws IOException, ClassNotFoundException
Object obj = null;
if (buf != null)
ObjectInputStream objIStream =
new ObjectInputStream(new ByteArrayInputStream(buf));
obj = objIStream.readObject(); // throws IOException, ClassNotFoundException
return obj;
} // end of class
//STLogon.java
import javax.swing.*;
import javax.swing.border.TitledBorder;
import java.awt.*;
import java.awt.event.*;
import java.util.*;
import java.io.*;
import java.sql.*;
public class STLogon extends JFrame implements ActionListener, Activator
StudentDB db;
User user = null;
String userID;
String password;
JTextField userIDField;
JPasswordField passwordField;
JButton jbtLogon;
public STLogon()
super("Stock Tracker"); // call super (JFrame) constructor
int width = 300;
int height = 100;
try{
db = new StudentDB();
catch(ClassNotFoundException ex){
JOptionPane.showMessageDialog(this,
ex.getMessage(),
"Class not found exception creating database object",
JOptionPane.ERROR_MESSAGE);
System.exit(0);
catch(SQLException ex){
JOptionPane.showMessageDialog(this,
ex.getMessage(),
"SQL exception creating database object",
JOptionPane.ERROR_MESSAGE);
System.exit(0);
// define GUI components
JLabel label1 = new JLabel("User ID: ");
userIDField = new JTextField(20);
JLabel label2 = new JLabel("Password: ");
passwordField = new JPasswordField(20);
passwordField.setEchoChar('*');
jbtLogon = new JButton("Log on");
// set up GUI
JPanel userPanel= new JPanel(new BorderLayout());
userPanel.add(label1,BorderLayout.CENTER);
userPanel.add(userIDField,BorderLayout.EAST);
JPanel pswdPanel= new JPanel(new BorderLayout());
pswdPanel.add(label2,BorderLayout.CENTER);
pswdPanel.add(passwordField,BorderLayout.EAST);
JPanel buttonPanel= new JPanel(new FlowLayout());
buttonPanel.add(jbtLogon);
JPanel contentPanel= new JPanel(new BorderLayout());
contentPanel.add(userPanel, BorderLayout.NORTH);
contentPanel.add(pswdPanel, BorderLayout.CENTER);
contentPanel.add(buttonPanel, BorderLayout.SOUTH);
contentPanel.setBorder(new TitledBorder("Log on"));
setContentPane(contentPanel);
// add listeners
jbtLogon.addActionListener(this);
addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e)
try {db.close();
catch(Exception ex)
System.exit(0);
// Enable Enter key for each JButton
InputMap map;
map = jbtLogon.getInputMap();
if (map != null){
map.put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER,0,false), "pressed");
map.put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER,0,true), "released");
pack();
if( width < getWidth()) // prevent setting width too small
width = getWidth();
if(height < getHeight()) // prevent setting height too small
height = getHeight();
centerOnScreen(width, height);
public void centerOnScreen(int width, int height)
int top, left, x, y;
// Get the screen dimension
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
// Determine the location for the top left corner of the frame
x = (screenSize.width - width)/2;
y = (screenSize.height - height)/2;
left = (x < 0) ? 0 : x;
top = (y < 0) ? 0 : y;
// Set the frame to the specified location & size
this.setBounds(left, top, width, height);
private boolean validUser(String userID,String password)
throws PasswordException,SQLException,IOException,ClassNotFoundException
boolean userOK = false;
user = db.getUser(userID); // get user object from DB for this ID
if(user != null)
user.validate(password); // throws PasswordException
userOK = true;
if(user.pswdAutoExpires()) // if tracking uses
db.updUser(user); // update DB for this use
return userOK;
private void doStockActivity()throws PasswordException,SQLException,
IOException,ClassNotFoundException
StockTracker f = new StockTracker(user,this,db);
f.pack();
this.setVisible(false);
f.setVisible(true);
public void activate()
this.setVisible(true);
userIDField.setText("");
userIDField.requestFocus();
user = null;
public void actionPerformed(ActionEvent e)
try
userID = userIDField.getText();
if(userID.equals(""))
JOptionPane.showMessageDialog(this,
"Please enter a valid user ID.",
"Missing User ID.",
JOptionPane.ERROR_MESSAGE);
userIDField.requestFocus();
else
password = new String(passwordField.getPassword());
if(password.equals(""))
JOptionPane.showMessageDialog(this,
"Please enter a valid password.",
"Missing Password.",
JOptionPane.ERROR_MESSAGE);
passwordField.requestFocus();
else
try
// See if userID exists and validate password
if(validUser(userID,password))
if(user.pswdIsExpiring())
JOptionPane.showMessageDialog(this,
user.getUserID()+" logon successful; "
+user.getPswdUses()+" use(s) remaining.");
if(e.getSource() == jbtLogon)
doStockActivity();
else
JOptionPane.showMessageDialog(this, "Invalid user.");
catch (PasswordExpiredException ex)
JPasswordField pf1 = new JPasswordField();
JPasswordField pf2 = new JPasswordField();
Object[] message1 = new Object[]
{"Password has expired. Please enter a new password.", pf1};
Object[] options = new String[] {"OK", "Cancel"};
JOptionPane op1 = new JOptionPane(message1,
JOptionPane.WARNING_MESSAGE,
JOptionPane.OK_CANCEL_OPTION, null, options);
JDialog dialog1 = op1.createDialog(null, "Change Password");
dialog1.show();
if(op1.getValue() != null && options[0].equals(op1.getValue()))
String pswd1 = new String(pf1.getPassword());
if(pswd1 != null)
Object[] message2 = new Object[]
{"Please verify new password.", pf2};
JOptionPane op2 = new JOptionPane(message2,
JOptionPane.WARNING_MESSAGE,
JOptionPane.OK_CANCEL_OPTION,
null, options);
JDialog dialog2 = op2.createDialog(null, "Verify Password");
dialog2.show();
if(op2.getValue() != null && options[0].equals(op2.getValue()))
String pswd2 = new String(pf2.getPassword());
if(pswd2 != null)
if(pswd1.equals(pswd2))
user.changePassword(password, pswd1);
db.updUser(user);
doStockActivity();
else
JOptionPane.showMessageDialog(this,
"Both passwords are not identical.",
"Password not changed",
JOptionPane.ERROR_MESSAGE);
userIDField.setText("");
passwordField.setText("");
userIDField.requestFocus();
}// end of try
catch (PasswordUsedException ex)
JOptionPane.showMessageDialog(this,
ex.getMessage(),
"Password Previously Used. Try again.",
JOptionPane.ERROR_MESSAGE);
catch (PasswordSizeException ex)
JOptionPane.showMessageDialog(this,
ex.getMessage(),
"Invalid password size. Try again.",
JOptionPane.ERROR_MESSAGE);
catch (PasswordInvalidFormatException ex)
if(ex.getCount() > 2) // allows only 3 tries, then exits program
System.exit(0);
else
JOptionPane.showMessageDialog(this,ex.getMessage()+", count:"+ex.getCount(),
"Invalid password format. Try again.",
JOptionPane.ERROR_MESSAGE);
catch (PasswordInvalidException ex)
if(ex.getCount() > 2) // allows only 3 tries, then exits program
System.exit(0);
else
JOptionPane.showMessageDialog(this,ex.getMessage()+", count:"+ex.getCount(),
"Invalid password. Try again.",
JOptionPane.ERROR_MESSAGE);
catch (PasswordException ex)
JOptionPane.showMessageDialog(this,
ex.getMessage(),
"PasswordException.",
JOptionPane.ERROR_MESSAGE);
catch (IOException ex)
JOptionPane.showMessageDialog(this,
ex.getMessage(),
"IOException.",
JOptionPane.ERROR_MESSAGE);
catch (SQLException ex)
JOptionPane.showMessageDialog(this,
ex.getMessage(),
"SQLException.",
JOptionPane.ERROR_MESSAGE);
catch (ClassNotFoundException ex)
JOptionPane.showMessageDialog(this,
ex.getMessage(),
"ClassNotFoundException.",
JOptionPane.ERROR_MESSAGE);
public static void main(String[] argv)
final STLogon f = new STLogon();
f.setVisible(true);
//StudentDB.java
import java.io.*;
import java.sql.*;
import java.util.*;
public class StudentDB
private Connection con = null;
// Constructor; makes database connection
public StudentDB() throws ClassNotFoundException,SQLException
if(con == null)
String url = "jdbc:odbc:saad";
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
catch(ClassNotFoundException ex)
throw new ClassNotFoundException(ex.getMessage() +
"\nCannot locate sun.jdbc.odbc.JdbcOdbcDriver");
try
con = DriverManager.getConnection(url);
catch(SQLException ex)
throw new SQLException(ex.getMessage()+
"\nCannot open database connection for "+url);
// Close makes database connection; null reference to connection
public void close() throws SQLException,IOException,ClassNotFoundException
con.close();
con = null;
// Method to serialize object to byte array
private byte[] serializeObj(Object obj) throws IOException
ByteArrayOutputStream baOStream = new ByteArrayOutputStream();
ObjectOutputStream objOStream = new ObjectOutputStream(baOStream);
objOStream.writeObject(obj); // object must be Serializable
objOStream.flush();
objOStream.close();
return baOStream.toByteArray(); // returns stream as byte array
// Method to deserialize bytes from a byte array into an object
private Object deserializeObj(byte[] buf)
throws IOException, ClassNotFoundException
Object obj = null;
if (buf != null)
ObjectInputStream objIStream =
new ObjectInputStream(new ByteArrayInputStream(buf));
obj = objIStream.readObject(); //IOException, ClassNotFoundException
return obj;
// Methods for adding a record to a table
// add to the Student Table
public void addStudent(String IDNumber, String FirstName, String LastName)
throws SQLException, IOException, ClassNotFoundException
Statement stmt = con.createStatement();
stmt.executeUpdate("INSERT INTO Student VALUES ('"
+IDNumber+"'"+",'"+FirstName+"'"+",'"+LastName+"')");
stmt.close();
// add to the Users table
public boolean addUser(User user) throws SQLException,IOException,
ClassNotFoundException
boolean result = false;
String dbUserID;
String dbLastName;
String dbFirstName;
Password dbPswd;
String dbemail;
boolean isAdmin;
dbUserID = user.getUserID();
if(getUser(dbUserID) == null)
dbLastName = user.getFirstName();
dbFirstName = user.getLastName();
Password pswd = user.getPassword();
// dbemail = user.getEmail();
isAdmin = user.isAdmin();
PreparedStatement pStmt = con.prepareStatement(
"INSERT INTO Users VALUES (?,?,?,?,?,?)");
pStmt.setString(1, dbUserID);
pStmt.setString(2, dbFirstName);
pStmt.setString(3, dbLastName);
pStmt.setBytes(4, serializeObj(pswd));
// pStmt.setString(5, dbemail);
pStmt.setBoolean(5, isAdmin);
pStmt.executeUpdate();
pStmt.close();
result = true;
else
throw new IOException("User exists - cannot add.");
return result;
// add to the UserStocks table
public void addStudentUserBridge(String userID, String IDNumber)
throws SQLException,IOException,ClassNotFoundException
Statement stmt = con.createStatement();
stmt.executeUpdate("INSERT INTO StudentUserBridge VALUES ('"
+userID+"'"
+",'"+IDNumber+"')");
stmt.close();
// Methods for updating a record in a table
// updating the Users Table
public boolean updUser(User user) throws SQLException,IOException,
ClassNotFoundException
boolean result = false;
String dbUserID;
String dbLastName;
String dbFirstName;
Password dbPswd;
String dbemail;
boolean isAdmin;
dbUserID = user.getUserID();
if(getUser(dbUserID) != null)
dbLastName = user.getFirstName();
dbFirstName = user.getLastName();
Password pswd = user.getPassword();
// dbemail = user.getEmail();
isAdmin = user.isAdmin();
PreparedStatement pStmt = con.prepareStatement("UPDATE Users SET FirstName = ?,"
+" LastName = ?, pswd = ?, email = ?, admin = ? WHERE userID = ?");
pStmt.setString(1, dbFirstName);
pStmt.setString(2, dbLastName);
pStmt.setBytes(3, serializeObj(pswd));
// pStmt.setString(4, dbemail);
pStmt.setBoolean(4, isAdmin);
pStmt.setString(5, dbUserID);
pStmt.executeUpdate();
pStmt.close();
result = true;
else
throw new IOException("User does not exist - cannot update.");
return result;
// Methods for deleting a record from a table
// delete a record from the Student Table
private void delStudent(String IDNumber)
throws SQLException,IOException,ClassNotFoundException
Statement stmt = con.createStatement();
stmt.executeUpdate("DELETE FROM Student WHERE "
+"IDNumber = '"+IDNumber+"'");
stmt.close();
// delete a record from the Users Table
public void delUser(User user) throws SQLException,IOException,
ClassNotFoundException
String dbUserID;
String stockSymbol;
Statement stmt = con.createStatement();
try {
con.setAutoCommit(false);
dbUserID = user.getUserID();
if(getUser(dbUserID) != null) // verify user exists in database
ResultSet rs1 = stmt.executeQuery("SELECT userID, IDNumber "
+"FROM StudentUserBridge WHERE userID = '"+dbUserID+"'");
while(rs1.next())
try
stockSymbol = rs1.getString("IDNumber");
delUserStocks(dbUserID, stockSymbol);
catch(SQLException ex)
throw new SQLException("Deletion of user student failed: "
+ex.getMessage());
} // end of loop thru UserStocks
try
{ // holdings deleted, now delete user
stmt.executeUpdate("DELETE FROM Users WHERE "
+"userID = '"+dbUserID+"'");
catch(SQLException ex)
throw new SQLException("User deletion failed: "+ex.getMessage());
else
throw new IOException("User not found in database - cannot delete.");
try
con.commit();
catch(SQLException ex)
throw new SQLException("Transaction commit failed: "+ex.getMessage());
catch (SQLException ex)
try
con.rollback();
catch (SQLException sqx)
throw new SQLException("Transaction failed then rollback failed: "
+sqx.getMessage());
// Transaction failed, was rolled back
throw new SQLException("Transaction failed; was rolled back: "
+ex.getMessage());
stmt.close();
// delete a record from the StudentUserBridge Table
public void delUserStocks(String userID, String stockSymbol)
throws SQLException,IOException,ClassNotFoundException
Statement stmt = con.createStatement();
ResultSet rs;
stmt.executeUpdate("DELETE FROM StudentUserBridge WHERE "
+"userID = '"+userID+"'"
+"AND IDNumber = '"+stockSymbol+"'");
rs = stmt.executeQuery("SELECT IDNumber FROM StudentUserBridge "
+"WHERE IDNumber = '"+stockSymbol+"'");
if(!rs.next()) // no users have this stock
// delStock(stockSymbol);
stmt.close();
// Methods for listing record data from a table
// Ordered by:
// methods that obtain individual field(s),
// methods that obtain a complete record, and
// methods that obtain multiple records
// Methods to access one or more individual fields
// get a stock description from the Stocks Table
public String getStockDesc(String stockSymbol)
throws SQLException, IOException, ClassNotFoundException
Statement stmt = con.createStatement();
String stockDesc = null;
ResultSet rs = stmt.executeQuery("SELECT IDNumber, name FROM Student "
+"WHERE IDNumber = '"+stockSymbol+"'");
if(rs.next())
stockDesc = rs.getString("IDNumber");
rs.close();
stmt.close();
return stockDesc;
// Methods to access a complete record
// get User data from the Users Table
public User getUser(String UserID) throws SQLException, IOException,
ClassNotFoundException
Statement stmt = con.createStatement();
String dbUserID;
String dbLastName;
String dbFirstName;
Password dbPswd;
String dbemail;
boolean isAdmin;
byte[] buf = null;
User user = null;
ResultSet rs = stmt.executeQuery("SELECT * FROM Users WHERE userID = '"
+UserID+"'");
if(rs.next())
dbUserID = rs.getString("userID");
dbFirstName = rs.getString("FirstName");
dbLastName = rs.getString("LastName");
dbemail = rs.getString("email");
// Do NOT use with JDK 1.2.2 using JDBC-ODBC bridge as
// SQL NULL data value is not handled correctly.
buf = rs.getBytes("pswd");
dbPswd = (Password)deserializeObj(buf);
isAdmin = rs.getBoolean("admin");
user = new User(dbUserID,dbFirstName,dbLastName,dbPswd,isAdmin);
rs.close();
stmt.close();
return user; // User object created for userID
// Methods to access a list of records
// get list of selected fields for all records from the Users Table
public ArrayList listUsers() throws SQLException,IOException,
ClassNotFoundException
ArrayList aList = new ArrayList();
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("SELECT userID, FirstName, LastName, admin "
+"FROM Users ORDER BY userID");
while(rs.next())
aList.add(rs.getString("userID"));
aList.add(rs.getString("FirstName"));
aList.add(rs.getString("LastName"));
aList.add(new Boolean(rs.getBoolean("admin")));
rs.close();
stmt.close();
return aList;
// get all fields in all records for a given user from the Userstocks Table
public ArrayList listUserStocks(String userID) throws SQLException,IOException,
saaddani wrote:
No information popped up in the console window before, during, or after the error was given. The program compiled and ran and therefore no error information was provided in the complier window either.
If I am missing what you are asking then please provide instructions as to how to find this error information. You are posting the error message for the exception but not printing the stack trace.
Far as I can tell you are printing more information with each exception (for example "Exception creating Users table") but you did not post what that was, that info would localize the problem.
As a guess the problem is when you extract the fields via the query. You are using named values rather than indexes and you use "select *" rather than specifically naming the columns. Some databases (for example Oracle), require that using names must be in exactly the same order as the query returns them. You have no idea what that order is because you use "select *"
Finally it would be a LOT easier if you wrote classes that did nothing but the database operations. NO GUI CODE. You then test that code to make sure it works. Once that code works then you write gui code which uses those classes. Besides making it easier to understand you are also more likely to get assistance since there is less code to look at. -
Error while installing OWB
after 50% install.. it says
"Error in writing to file c:\oracle\ora9201\bin\oci.dll
The process cannot access the file because it is being used by another process"
Apparently I have restarted the workstation and closed all oracle related services in services and no other program is running expect the installer.
Can any one help in resolving the issue. Or can I hit the ignore button and continue installing?Always install OWB into a new ORACLE_HOME unless the Installation and Configuration Guide states otherwise. This has only happened twice. OWB 9.0.2.62.3 was the last version to allow installation into an existing ORACLE_HOME. Another thing you can do is go to www.sysinternals.com and download the utility LISTDLLs. It is great. From a command prompt, start it with the syntax: listdlls >log.txt
This will output the DLLs in use and which executable is using it. Search for the DLL in the log.txt and scroll up until the double line. The executable name locking the DLL will be above the double line. If you have the Microsoft Distributed Transaction Coordinator Service running on the client, it will lock Oracle DLLs. This has been a common issue in the past, going back to the days of Data Mart Suite. This was documented in the Release Notes for it and may still be in the system in a note somewhere. It is in: DMS: Unable To Install; Filesopen/Service Running On Compaq Server Doc ID: Note:1080977.6 and Certain Files which need to be Reinstalled are Being Used Doc ID: Note:117672.1
The first note I wrote back before 2000.
Barry -
SETUP ERROR WHILE INSTALLING SQL SERVER 2008 R2
Hi ,
I'm coming across the following error while installing Microsoft SQL Server 2008R2
SQL Server Setup has encountered the following error:
The required MSI package 'D:\SQL Sever 2008 R2 Developer Edition\x86\setup\sql_engine_core_shared_msi\sql_engine_core_shared.msi' doesn't exist.
Error code 0x84B20001.
I tried reinstalling the same. But results the same.
Please suggest. :)Overall summary:
Final result: SQL Server installation failed. To continue, investigate the reason for the failure, correct the problem, uninstall SQL Server, and then
rerun SQL Server Setup.
Exit code (Decimal): -2068709375
Exit facility code: 1202
Exit error code: 1
Exit message: The required MSI package 'D:\softwares\SQL Sever 2008 R2 Developer Edition\x86\setup\sql_engine_core_shared_msi\sql_engine_core_shared.msi'
doesn't exist.
Start time: 2013-12-31 20:47:50
End time: 2013-12-31 20:55:44
Requested action: Install
Log with failure: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20131231_204629\Detail.txt
Exception help link: http%3a%2f%2fgo.microsoft.com%2ffwlink%3fLinkId%3d20476%26ProdName%3dMicrosoft%2bSQL%2bServer%26EvtSrc%3dsetup.rll%26EvtID%3d50000%26ProdVer%3d10.50.1600.1%26EvtType%3d0xD2FD83B3%400xC2B0B50B%401202%401
Machine Properties:
Machine name: SAMPLE-PC
Machine processor count: 2
OS version: Windows 7
OS service pack:
OS region: United States
OS language: English (United States)
OS architecture: x86
Process architecture: 32 Bit
OS clustered: No
Product features discovered:
Product Instance Instance ID
Feature Language
Edition Version Clustered
Sql Server 2005
Tools 1033
Express Edition 9.2.3042 No
Sql Server 2005
ToolsClient 1033
Express Edition 9.2.3042 No
Sql Server 2005
ToolsClient\Connectivity 1033 Express Edition
9.2.3042 No
Sql Server 2008 SQLEXPRESS MSSQL10.SQLEXPRESS Database Engine Services
1033 Express Edition 10.1.2531.0 No
Sql Server 2008 SQLEXPRESS MSSQL10.SQLEXPRESS SQL Server Replication
1033 Express Edition 10.1.2531.0 No
Package properties:
Description: SQL Server Database Services 2008 R2
ProductName: SQL Server 2008 R2
Type: RTM
Version: 10
SPLevel: 0
Installation location: D:\softwares\SQL Sever 2008 R2 Developer Edition\x86\setup\
Installation edition: DEVELOPER
User Input Settings:
ACTION: Install
ADDCURRENTUSERASSQLADMIN: False
AGTSVCACCOUNT: TEST
AGTSVCPASSWORD: *****
AGTSVCSTARTUPTYPE: Manual
ASBACKUPDIR: C:\Program Files\Microsoft SQL Server\MSAS10_50.TEST\OLAP\Backup
ASCOLLATION: Latin1_General_CI_AS
ASCONFIGDIR: C:\Program Files\Microsoft SQL Server\MSAS10_50.TEST\OLAP\Config
ASDATADIR: C:\Program Files\Microsoft SQL Server\MSAS10_50.TEST\OLAP\Data
ASDOMAINGROUP: <empty>
ASLOGDIR: C:\Program Files\Microsoft SQL Server\MSAS10_50.TEST\OLAP\Log
ASPROVIDERMSOLAP: 1
ASSVCACCOUNT: TEST
ASSVCPASSWORD: *****
ASSVCSTARTUPTYPE: Automatic
ASSYSADMINACCOUNTS: SAMPLE-PC\SAMPLE
ASTEMPDIR: C:\Program Files\Microsoft SQL Server\MSAS10_50.TEST\OLAP\Temp
BROWSERSVCSTARTUPTYPE: Automatic
CONFIGURATIONFILE: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20131231_204629\ConfigurationFile.ini
CUSOURCE:
ENABLERANU: False
ENU: True
ERRORREPORTING: False
FARMACCOUNT: <empty>
FARMADMINPORT: 0
FARMPASSWORD: *****
FEATURES: SQLENGINE,REPLICATION,FULLTEXT,AS,RS,BIDS,CONN,IS,BC,SDK,SSMS,ADV_SSMS
FILESTREAMLEVEL: 0
FILESTREAMSHARENAME: <empty>
FTSVCACCOUNT: NT AUTHORITY\LOCAL SERVICE
FTSVCPASSWORD: *****
HELP: False
IACCEPTSQLSERVERLICENSETERMS: False
INDICATEPROGRESS: False
INSTALLSHAREDDIR: C:\Program Files\Microsoft SQL Server\
INSTALLSHAREDWOWDIR: C:\Program Files\Microsoft SQL Server\
INSTALLSQLDATADIR: <empty>
INSTANCEDIR: C:\Program Files\Microsoft SQL Server\
INSTANCEID: TEST
INSTANCENAME: TEST
ISSVCACCOUNT: TEST
ISSVCPASSWORD: *****
ISSVCSTARTUPTYPE: Automatic
NPENABLED: 0
PASSPHRASE: *****
PCUSOURCE:
PID: *****
QUIET: False
QUIETSIMPLE: False
ROLE: <empty>
RSINSTALLMODE: DefaultNativeMode
RSSVCACCOUNT: SAMPLE-PC\TEST
RSSVCPASSWORD: *****
RSSVCSTARTUPTYPE: Automatic
SAPWD: *****
SECURITYMODE: <empty>
SQLBACKUPDIR: <empty>
SQLCOLLATION: SQL_Latin1_General_CP1_CI_AS
SQLSVCACCOUNT: TEST
SQLSVCPASSWORD: *****
SQLSVCSTARTUPTYPE: Automatic
SQLSYSADMINACCOUNTS: SAMPLE-PC\SAMPLE
SQLTEMPDBDIR: <empty>
SQLTEMPDBLOGDIR: <empty>
SQLUSERDBDIR: <empty>
SQLUSERDBLOGDIR: <empty>
SQMREPORTING: False
TCPENABLED: 0
UIMODE: Normal
X86: False
Configuration file: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20131231_204629\ConfigurationFile.ini
Detailed results:
Feature: Database Engine Services
Status: Failed: see logs for details
MSI status: Passed
Configuration status: Passed
Feature: SQL Server Replication
Status: Failed: see logs for details
MSI status: Passed
Configuration status: Passed
Feature: Full-Text Search
Status: Failed: see logs for details
MSI status: Passed
Configuration status: Passed
Feature: Analysis Services
Status: Failed: see logs for details
MSI status: Passed
Configuration status: Passed
Feature: Reporting Services
Status: Failed: see logs for details
MSI status: Passed
Configuration status: Passed
Feature: Integration Services
Status: Failed: see logs for details
MSI status: Passed
Configuration status: Passed
Feature: Client Tools Connectivity
Status: Failed: see logs for details
MSI status: Passed
Configuration status: Passed
Feature: Management Tools - Complete
Status: Failed: see logs for details
MSI status: Passed
Configuration status: Passed
Feature: Management Tools - Basic
Status: Failed: see logs for details
MSI status: Passed
Configuration status: Passed
Feature: Client Tools SDK
Status: Failed: see logs for details
MSI status: Passed
Configuration status: Passed
Feature: Client Tools Backwards Compatibility
Status: Failed: see logs for details
MSI status: Passed
Configuration status: Passed
Feature: Business Intelligence Development Studio
Status: Failed: see logs for details
MSI status: Passed
Configuration status: Passed
Rules with failures:
Global rules:
Scenario specific rules:
Rules report file: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20131231_204629\SystemConfigurationCheck_Report.htm
Exception summary:
The following is an exception stack listing the exceptions in outermost to innermost order
Inner exceptions are being indented
Exception type: Microsoft.SqlServer.Chainer.Infrastructure.ChainerInvalidOperationException
Message:
The required MSI package 'D:\softwares\SQL Sever 2008 R2 Developer Edition\x86\setup\sql_engine_core_shared_msi\sql_engine_core_shared.msi' doesn't exist.
Data:
ChainerInvalidOperationExceptionData = InstallPackage
DisableWatson = true
Stack:
at Microsoft.SqlServer.Configuration.SetupExtension.MsiInstallEngineActionBehavior.ModifyAction(String installedProductCode, String installedProductVersion, String pathOfPackageOnMedia, InstallAction pkgAction)
at Microsoft.SqlServer.Configuration.SetupExtension.MSIInstallerEngine.InstallPackage(PackageId pkg, InstallAction pkgAction)
at Microsoft.SqlServer.Configuration.MsiExtension.PackageInstallAction.Execute(String actionId, TextWriter errorStream)
at Microsoft.SqlServer.Setup.Chainer.Workflow.ActionInvocation.ExecuteActionHelper(TextWriter statusStream, ISequencedAction actionToRun) -
hi friends,
Im getting an error while installing itunes in my laptop.its using windows vista.i even tried in my friends laptop which is Win XP but i ended up with the same error
the error is as follows:
VB script is not installed or has been disabled.please enable VB script and try again.
please help me clear this problem.
sony laptop Windows Vista
sony laptop Windows Vista
sony laptop Windows VistaSuziVB
regsrv32.exe - the program you are trying to run should normally be in:
c:\Windows\System32 (assuming a standard set up)
You could check to see if it is there. If it is you could try putting the path in front of the command so it would be as follows:
c:\Windows\System32\regsvr32 vbscript.dll
The problem may be caused by an incorrect environmental variable setting. If you want to try and fix it, the following link gives a description how to do it.
http://icrontic.com/forum/showthread.php?t=37876 -
Error while installing SolMan 4.0 SR3
Hi iam getting an error while installing SolMan 4.0 SR3 on step 11 of 43 i.e., creating database.
Please check the log file and guide me thank you.
INFO 2011-12-09 02:52:39.281
Creating directory D:\oracle\MMK\sapdata1\sysaux_1.
INFO 2011-12-09 02:52:39.312
Creating directory D:\oracle\MMK\sapdata1\cntrl.
INFO 2011-12-09 02:52:39.328
Creating directory D:\oracle\MMK\oraarch.
INFO 2011-12-09 02:52:39.328
Creating directory D:\oracle\MMK\saptrace.
INFO 2011-12-09 02:52:39.328
Creating directory D:\oracle\MMK\saptrace\background.
INFO 2011-12-09 02:52:39.343
Creating directory D:\oracle\MMK\saptrace\usertrace.
INFO 2011-12-09 02:52:39.343
Creating directory D:\oracle\MMK\sapbackup.
INFO 2011-12-09 02:52:39.343
Creating directory D:\oracle\MMK\sapreorg.
INFO 2011-12-09 02:52:39.343
Creating directory D:\oracle\MMK\sapcheck.
INFO 2011-12-09 02:52:39.359
Creating directory D:\oracle\MMK\saparch.
INFO 2011-12-09 02:52:39.359
Creating directory C:\oracle\MMK\mirrlogA.
INFO 2011-12-09 02:52:39.359
Creating directory C:\oracle\MMK\mirrlogB.
INFO 2011-12-09 02:52:39.812
Execute step resetDb of component |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_CreateDB|ind|ind|ind|ind|0|0|NW_OraDBCheck|ind|ind|ind|ind|0|0|NW_OraDBMain|ind|ind|ind|ind|0|0|NW_OraDBStd|ind|ind|ind|ind|3|0|NW_OraDbBuild|ind|ind|ind|ind|5|0.
INFO 2011-12-09 02:52:40.62
Switched to user: mmkadm.
INFO 2011-12-09 02:52:40.78
Working directory changed to C:\Program Files (x86)\sapinst_instdir\SOLMAN\SYSTEM\ORA\CENTRAL\AS.
INFO 2011-12-09 02:52:40.953
Creating file C:\Program Files (x86)\sapinst_instdir\SOLMAN\SYSTEM\ORA\CENTRAL\AS\oradim.log.
INFO 2011-12-09 02:52:40.968
Working directory changed to C:\Program Files (x86)\sapinst_instdir\SOLMAN\SYSTEM\ORA\CENTRAL\AS.
INFO 2011-12-09 02:52:40.968
Output of C:\oracle\MMK\102\bin\oradim -DELETE -SID MMK is written to the logfile oradim.log.
WARNING 2011-12-09 02:52:41.109
Execution of the command "C:\oracle\MMK\102\bin\oradim -DELETE -SID MMK" finished with return code 11. Output: DIM-00011: The specified service does not exist.O/S-Error: (OS 1060) The specified service does not exist as an installed service.
INFO 2011-12-09 02:52:51.140
Removing file E:\oracle\MMK\origlogA\cntrl\CNTLRMMK.DBF.
INFO 2011-12-09 02:52:51.140
Removing file E:\oracle\MMK\origlogB\cntrl\CNTRLMMK.DBF.
INFO 2011-12-09 02:52:51.140
Removing file E:\oracle\MMK\origlogA\log_g11m1.dbf.
INFO 2011-12-09 02:52:51.140
Removing file E:\oracle\MMK\origlogB\log_g12m1.dbf.
INFO 2011-12-09 02:52:51.140
Removing file E:\oracle\MMK\origlogA\log_g13m1.dbf.
INFO 2011-12-09 02:52:51.140
Removing file E:\oracle\MMK\origlogB\log_g14m1.dbf.
INFO 2011-12-09 02:52:51.609
Execute step registerControlFilesInInitOra of component |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_CreateDB|ind|ind|ind|ind|0|0|NW_OraDBCheck|ind|ind|ind|ind|0|0|NW_OraDBMain|ind|ind|ind|ind|0|0|NW_OraDBStd|ind|ind|ind|ind|3|0|NW_OraDbBuild|ind|ind|ind|ind|5|0.
INFO 2011-12-09 02:52:51.843
Copied file 'C:/oracle/MMK/102/database/initMMK.ora' to 'C:/oracle/MMK/102/database/initMMK.2.ora'.
INFO 2011-12-09 02:52:51.843
Removing file C:\s1vc.1.2.
INFO 2011-12-09 02:52:52.312
Execute step createOraclePasswordFile of component |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_CreateDB|ind|ind|ind|ind|0|0|NW_OraDBCheck|ind|ind|ind|ind|0|0|NW_OraDBMain|ind|ind|ind|ind|0|0|NW_OraDBStd|ind|ind|ind|ind|3|0|NW_OraDbBuild|ind|ind|ind|ind|5|0.
INFO 2011-12-09 02:52:52.406
Creating file C:\Program Files (x86)\sapinst_instdir\SOLMAN\SYSTEM\ORA\CENTRAL\AS\orapwd.log.
INFO 2011-12-09 02:52:52.406
Switched to user: mmkadm.
INFO 2011-12-09 02:52:52.437
Working directory changed to C:\Program Files (x86)\sapinst_instdir\SOLMAN\SYSTEM\ORA\CENTRAL\AS.
INFO 2011-12-09 02:52:52.437
Output of C:\oracle\MMK\102\bin\orapwd file=C:\oracle\MMK\102/database/pwdMMK.ora password=sapsap force=y entries=5 is written to the logfile orapwd.log.
INFO 2011-12-09 02:52:52.671
Execution of the command "C:\oracle\MMK\102\bin\orapwd file=C:\oracle\MMK\102/database/pwdMMK.ora password=sapsap force=y entries=5" finished with return code 0. Output:
INFO 2011-12-09 02:52:53.109
Execute step createInstance_oradim of component |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_CreateDB|ind|ind|ind|ind|0|0|NW_OraDBCheck|ind|ind|ind|ind|0|0|NW_OraDBMain|ind|ind|ind|ind|0|0|NW_OraDBStd|ind|ind|ind|ind|3|0|NW_OraDbBuild|ind|ind|ind|ind|5|0.
INFO 2011-12-09 02:52:53.218
Creating file C:\Program Files (x86)\sapinst_instdir\SOLMAN\SYSTEM\ORA\CENTRAL\AS\oradim.log.
INFO 2011-12-09 02:52:53.218
Working directory changed to C:\Program Files (x86)\sapinst_instdir\SOLMAN\SYSTEM\ORA\CENTRAL\AS.
INFO 2011-12-09 02:52:53.218
Output of C:\oracle\MMK\102\bin\oradim -NEW -SID MMK -STARTMODE manual -SRVCSTART system is written to the logfile oradim.log.
INFO 2011-12-09 02:52:56.453
Execution of the command "C:\oracle\MMK\102\bin\oradim -NEW -SID MMK -STARTMODE manual -SRVCSTART system" finished with return code 0. Output: Instance created.
INFO 2011-12-09 02:52:56.875
Execute step createDatabase of component |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_CreateDB|ind|ind|ind|ind|0|0|NW_OraDBCheck|ind|ind|ind|ind|0|0|NW_OraDBMain|ind|ind|ind|ind|0|0|NW_OraDBStd|ind|ind|ind|ind|3|0|NW_OraDbBuild|ind|ind|ind|ind|5|0.
INFO 2011-12-09 02:52:58.265
Switched to user: mmkadm.
INFO 2011-12-09 02:52:58.281
Working directory changed to C:\Program Files (x86)\sapinst_instdir\SOLMAN\SYSTEM\ORA\CENTRAL\AS.
INFO 2011-12-09 02:52:59.390
Switched to user: mmkadm.
INFO 2011-12-09 02:52:59.406
Working directory changed to C:\Program Files (x86)\sapinst_instdir\SOLMAN\SYSTEM\ORA\CENTRAL\AS.
INFO 2011-12-09 02:53:04.781
Switched to user: mmkadm.
INFO 2011-12-09 02:53:04.781
Working directory changed to C:\Program Files (x86)\sapinst_instdir\SOLMAN\SYSTEM\ORA\CENTRAL\AS.
INFO 2011-12-09 02:53:42.359
Execute step runCatalogSql of component |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_CreateDB|ind|ind|ind|ind|0|0|NW_OraDBCheck|ind|ind|ind|ind|0|0|NW_OraDBMain|ind|ind|ind|ind|0|0|NW_OraDBStd|ind|ind|ind|ind|3|0|NW_OraDbBuild|ind|ind|ind|ind|5|0.
INFO 2011-12-09 02:53:42.453
Creating file C:\Program Files (x86)\sapinst_instdir\SOLMAN\SYSTEM\ORA\CENTRAL\AS\ora_query3_tmp0_1.sql.
INFO 2011-12-09 02:53:42.468
Switched to user: mmkadm.
INFO 2011-12-09 02:53:42.468
Working directory changed to C:\Program Files (x86)\sapinst_instdir\SOLMAN\SYSTEM\ORA\CENTRAL\AS.
INFO 2011-12-09 02:53:43.453
Switched to user: mmkadm.
INFO 2011-12-09 02:53:43.453
Working directory changed to C:\Program Files (x86)\sapinst_instdir\SOLMAN\SYSTEM\ORA\CENTRAL\AS.
INFO 2011-12-09 02:54:18.921
Execute step runCatblockSql of component |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_CreateDB|ind|ind|ind|ind|0|0|NW_OraDBCheck|ind|ind|ind|ind|0|0|NW_OraDBMain|ind|ind|ind|ind|0|0|NW_OraDBStd|ind|ind|ind|ind|3|0|NW_OraDbBuild|ind|ind|ind|ind|5|0.
INFO 2011-12-09 02:54:19.31
Removing file C:\Program Files (x86)\sapinst_instdir\SOLMAN\SYSTEM\ORA\CENTRAL\AS\ora_query3_tmp0_1.sql.
INFO 2011-12-09 02:54:19.31
Creating file C:\Program Files (x86)\sapinst_instdir\SOLMAN\SYSTEM\ORA\CENTRAL\AS\ora_query3_tmp0_1.sql.
INFO 2011-12-09 02:54:19.46
Switched to user: mmkadm.
INFO 2011-12-09 02:54:19.46
Working directory changed to C:\Program Files (x86)\sapinst_instdir\SOLMAN\SYSTEM\ORA\CENTRAL\AS.
INFO 2011-12-09 02:54:19.656
Switched to user: mmkadm.
INFO 2011-12-09 02:54:19.656
Working directory changed to C:\Program Files (x86)\sapinst_instdir\SOLMAN\SYSTEM\ORA\CENTRAL\AS.
INFO 2011-12-09 02:54:20.531
Execute step runCatprocSql of component |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_CreateDB|ind|ind|ind|ind|0|0|NW_OraDBCheck|ind|ind|ind|ind|0|0|NW_OraDBMain|ind|ind|ind|ind|0|0|NW_OraDBStd|ind|ind|ind|ind|3|0|NW_OraDbBuild|ind|ind|ind|ind|5|0.
INFO 2011-12-09 02:54:20.625
Removing file C:\Program Files (x86)\sapinst_instdir\SOLMAN\SYSTEM\ORA\CENTRAL\AS\ora_query3_tmp0_1.sql.
INFO 2011-12-09 02:54:20.625
Creating file C:\Program Files (x86)\sapinst_instdir\SOLMAN\SYSTEM\ORA\CENTRAL\AS\ora_query3_tmp0_1.sql.
INFO 2011-12-09 02:54:20.640
Switched to user: mmkadm.
INFO 2011-12-09 02:54:20.640
Working directory changed to C:\Program Files (x86)\sapinst_instdir\SOLMAN\SYSTEM\ORA\CENTRAL\AS.
INFO 2011-12-09 02:54:20.921
Switched to user: mmkadm.
INFO 2011-12-09 02:54:20.921
Working directory changed to C:\Program Files (x86)\sapinst_instdir\SOLMAN\SYSTEM\ORA\CENTRAL\AS.
ERROR 2011-12-09 02:58:41.109
CJS-00084 SQL statement or script failed. DIAGNOSIS: Error message: ORA-955 for defaultdestSQL> Rem bnainani 11/29/00 - specify compatible=8.0 for create_queue_tableSQL> Rem liwong 10/20/00 - add def$_destination.flagSQL> Rem bnainani 11/15/00 - specify compatible=8.0 for queue tableSQL> Rem narora 09/13/00 - add comment on new def$_destination columnsSQL> Rem liwong 09/01/00 - add master w/o quiesce: fixesSQL> Rem liwong 07/12/00 - add total_prop_time_latSQL> Rem liwong 06/29/00 - add total_txn_count, total_prop_timeSQL> Rem liwong 05/17/00 - add_master_db w/o quiesceSQL> Rem jstamos 05/17/00 - add_master_db w/o quiesceSQL> Rem elu 01/24/00 - add column apply_init to def$_destinationSQL> Rem alakshmi 12/02/99 - Bug 979398: Before-row insert trigger onSQL> Rem def$_propagatorSQL> Rem wesmith 10/31/98 - change shape of table def$_pushed_transactionsSQL> Rem jnath 02/23/98 - bug 601972: split anonymous pl/sql blocksSQL> Rem wesmith 01/21/98 - create def$_pushed_transactions table forSQL> Rem server-side RepAPISQL> Rem nbhatt 07/27/97 - change create_queuetable -> create_queue_tableSQL> Rem nbhatt 04/21/97 - change 'TRACKING' in CREATE_QUEUE to 'DEPENDENCYSQL> Rem nbhatt 04/21/97 - change syntax of create_queueSQL> Rem liwong 04/16/97 - Alter view system.AQ$DEF$_AQ{CALL,ERROR}SQL> Rem liwong 04/11/97 - Fixing defaultdest_primary typoSQL> Rem jstamos 04/10/97 - remove unneeded indexesSQL> Rem nbhatt 04/08/97 - change create_qtable to create_queuetableSQL> Rem jstamos 04/04/97 - tighter AQ integrationSQL> Rem liwong 04/02/97 - Add schema_name, package_name in def$_calldestSQL> Rem ato 03/31/97 - create_qtable interface changeSQL> Rem liwong 03/25/97 - remove batch_no from def$_tranorderSQL> Rem liwong 02/24/97 - pctversion --> 0 for def$_aqcall, def$_aqerrorSQL> Rem liwong 02/22/97 - Remove dropping view aq$def$_aqcallSQL> Rem ademers 02/07/97 - Remove constraint def$_calldest_callSQL> Rem liwong 01/11/97 - drop and create aq$def$_aqcall (temporary)SQL> Rem liwong 01/10/97 - Alter view aq$def$_aqcallSQL> Rem liwong 01/07/97 - Alter default value for batch_noSQL> Rem jstamos 12/23/96 - change temp$nclob colSQL> Rem jstamos 11/21/96 - nchar supportSQL> Rem sjain 11/11/96 - Remove dummy buffer # commentSQL> Rem asgoel 11/05/96 - Disable misc_tracking in def$_aqerrorSQL> Rem sjain 11/06/96 - deferror changesSQL> Rem vkrishna 10/28/96 - change STORED IN to STORE AS for lobSQL> Rem sjain 10/02/96 - Aq conversionSQL> Rem sbalaram 09/24/96 - ARPC performance - add foreign key indexSQL> Rem jstamos 09/06/96 - rename temp$lob and temporarily change nclobSQL> Rem sjain 09/03/96 - AQ conversonSQL> Rem ademers 08/02/96 - queue_batch default in def_destinationSQL> Rem ademers 07/29/96 - queue_batch default in def_callSQL> Rem ademers 07/29/96 - queue_batch defaultSQL> Rem jstamos 07/24/96 - add system.temp$lobSQL> Rem sbalaram 07/22/96 - create def$_aqcall and def$_aqerror tablesSQL> Rem jstamos 06/12/96 - LOB support for deferred RPCsSQL> Rem ldoo 06/28/96 - Comment out queue_table from def_tranorderSQL> Rem ademers 05/30/96 - create def_originSQL> Rem ademers 05/28/96 - fix def_destination col namesSQL> Rem ldoo 05/09/96 - New security modelSQL> Rem sjain 05/01/96 - add seq col to def_destinationSQL> Rem ademers 04/29/96 - add batch_no, dep_scn to def_callSQL> Rem jstamos 12/04/95 - 324303: use index to avoid sorting the queueSQL> Rem jstamos 08/17/95 - code review changesSQL> Rem jstamos 08/16/95 - add comments to tablesSQL> Rem wmaimone 01/04/96 - 7.3 mergeSQL> Rem hasun 01/31/95 - Modify tables. SOLUTION: See ora_sql_results.log and the Oracle documentation for details.
ERROR 2011-12-09 02:58:41.109
MUT-03025 Caught ESAPinstException in Modulecall: ESAPinstException: error text undefined.
ERROR 2011-12-09 02:58:41.203
FCO-00011 The step runCatprocSql with step key |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_CreateDB|ind|ind|ind|ind|0|0|NW_OraDBCheck|ind|ind|ind|ind|0|0|NW_OraDBMain|ind|ind|ind|ind|0|0|NW_OraDBStd|ind|ind|ind|ind|3|0|NW_OraDbBuild|ind|ind|ind|ind|5|0|runCatprocSql was executed with status ERROR .Hello, See ora_sql_results.log
Are you trying to install this solman for a customer ? If yes, then you should go for latest release solman 7.1
Thanks -
Error while installing Sap4.6B
i m facing the error while installing sap4.6
here is the log file
#START OF LOG: 20061015083825
R3load version @(#) $Id: //bas/46B/src/ins/R3load/R3load.c#5 $ SAP
C:\Users\c11adm\Install/R3load -i SAPAPP12.cmd -p SAPAPP12.log
start of syntax check ###
end of syntax check ###
DbSl Trace: OCI-call 'olog' failed: rc = 1017
DbSl Trace: CONNECT failed with sql error '1017'
#START: 20061015083827
TAB: [HEADER]
FIL: F:\SAP\Export6\DATA\SAPAPP12.001 #20061015083827
EOT: [HEADER]
(GSI) INFO: dbname = "C1120061015071053 "
(GSI) INFO: vname = "ORACLE "
(GSI) INFO: hostname = "SAP "
(GSI) INFO: sysname = "Windows NT"
(GSI) INFO: nodename = "SAP"
(GSI) INFO: release = "2"
(GSI) INFO: version = "5"
(GSI) INFO: machine = "PENTIUM"
(IMP) TABLE: "SOFIND"
TAB: SOFIND
FIL: F:\SAP\Export6\DATA\SAPAPP12.001 #20061015083827
EOT: SOFIND
(IMP) DATA: 244 rows in table "SOFIND" #20061015083827
#Trying to create primary key "SOFIND~0"
(IMP) PRKEY: "SOFIND~0"
(IMP) TABLE: "SOFM"
TAB: SOFM
FIL: F:\SAP\Export6\DATA\SAPAPP12.001 #20061015083827
EOT: SOFM
(IMP) DATA: 2051 rows in table "SOFM" #20061015083827
#Trying to create primary key "SOFM~0"
(IMP) PRKEY: "SOFM~0"
#Trying to create index "SOFM~A"
(IMP) INDEX: "SOFM~A"
#Trying to create index "SOFM~B"
(IMP) INDEX: "SOFM~B"
#Trying to create index "SOFM~C"
(IMP) INDEX: "SOFM~C"
#Trying to create index "SOFM~H"
(IMP) INDEX: "SOFM~H"
(IMP) TABLE: "SOHS"
TAB: SOHS
EOT: SOHS
(IMP) DATA: 0 rows in table "SOHS" #20061015083827
#Trying to create primary key "SOHS~0"
(IMP) PRKEY: "SOHS~0"
(IMP) TABLE: "SOID"
TAB: SOID
FIL: F:\SAP\Export6\DATA\SAPAPP12.001 #20061015083827
EOT: SOID
(IMP) DATA: 1 rows in table "SOID" #20061015083827
#Trying to create primary key "SOID~0"
(IMP) PRKEY: "SOID~0"
#Trying to create index "SOID~A"
(IMP) INDEX: "SOID~A"
#Trying to create index "SOID~B"
(IMP) INDEX: "SOID~B"
(IMP) TABLE: "SOIMAP"
TAB: SOIMAP
EOT: SOIMAP
(IMP) DATA: 0 rows in table "SOIMAP" #20061015083827
#Trying to create primary key "SOIMAP~0"
(IMP) PRKEY: "SOIMAP~0"
#Trying to create index "SOIMAP~H"
(IMP) INDEX: "SOIMAP~H"
(IMP) TABLE: "SOMG"
TAB: SOMG
FIL: F:\SAP\Export6\DATA\SAPAPP12.001 #20061015083827
EOT: SOMG
(IMP) DATA: 97 rows in table "SOMG" #20061015083827
#Trying to create primary key "SOMG~0"
(IMP) PRKEY: "SOMG~0"
#Trying to create index "SOMG~DOC"
(IMP) INDEX: "SOMG~DOC"
(IMP) TABLE: "SOOC"
TAB: SOOC
FIL: F:\SAP\Export6\DATA\SAPAPP12.001 #20061015083827
EOT: SOOC
(IMP) DATA: 51 rows in table "SOOC" #20061015083827
#Trying to create primary key "SOOC~0"
(IMP) PRKEY: "SOOC~0"
(IMP) TABLE: "SOOD"
TAB: SOOD
FIL: F:\SAP\Export6\DATA\SAPAPP12.001 #20061015083827
EOT: SOOD
(IMP) DATA: 3446 rows in table "SOOD" #20061015083828
#Trying to create primary key "SOOD~0"
(IMP) PRKEY: "SOOD~0"
#Trying to create index "SOOD~A"
(IMP) INDEX: "SOOD~A"
(IMP) TABLE: "SOOF"
TAB: SOOF
EOT: SOOF
(IMP) DATA: 0 rows in table "SOOF" #20061015083828
#Trying to create primary key "SOOF~0"
(IMP) PRKEY: "SOOF~0"
(IMP) TABLE: "SOOS"
TAB: SOOS
FIL: F:\SAP\Export6\DATA\SAPAPP12.001 #20061015083828
EOT: SOOS
(IMP) DATA: 1984 rows in table "SOOS" #20061015083828
#Trying to create primary key "SOOS~0"
(IMP) PRKEY: "SOOS~0"
#Trying to create index "SOOS~A"
(IMP) INDEX: "SOOS~A"
#Trying to create index "SOOS~B"
(IMP) INDEX: "SOOS~B"
#Trying to create index "SOOS~F"
(IMP) INDEX: "SOOS~F"
#Trying to create index "SOOS~REC"
(IMP) INDEX: "SOOS~REC"
(IMP) TABLE: "SOQUOTA"
TAB: SOQUOTA
EOT: SOQUOTA
(IMP) DATA: 0 rows in table "SOQUOTA" #20061015083828
#Trying to create primary key "SOQUOTA~0"
(IMP) PRKEY: "SOQUOTA~0"
(IMP) TABLE: "SORAMON"
TAB: SORAMON
FIL: F:\SAP\Export6\DATA\SAPAPP12.001 #20061015083828
EOT: SORAMON
(IMP) DATA: 9 rows in table "SORAMON" #20061015083828
#Trying to create primary key "SORAMON~0"
(IMP) PRKEY: "SORAMON~0"
(IMP) TABLE: "SORD"
TAB: SORD
EOT: SORD
(IMP) DATA: 0 rows in table "SORD" #20061015083828
#Trying to create primary key "SORD~0"
(IMP) PRKEY: "SORD~0"
#Trying to create index "SORD~GRP"
(IMP) INDEX: "SORD~GRP"
#Trying to create index "SORD~OBJ"
(IMP) INDEX: "SORD~OBJ"
#Trying to create index "SORD~USR"
(IMP) INDEX: "SORD~USR"
(IMP) TABLE: "SOREORG"
TAB: SOREORG
FIL: F:\SAP\Export6\DATA\SAPAPP12.001 #20061015083828
EOT: SOREORG
(IMP) DATA: 58 rows in table "SOREORG" #20061015083828
#Trying to create primary key "SOREORG~0"
(IMP) PRKEY: "SOREORG~0"
(IMP) TABLE: "SORF"
TAB: SORF
EOT: SORF
(IMP) DATA: 0 rows in table "SORF" #20061015083828
#Trying to create primary key "SORF~0"
(IMP) PRKEY: "SORF~0"
#Trying to create index "SORF~INV"
(IMP) INDEX: "SORF~INV"
(IMP) TABLE: "SORP"
TAB: SORP
FIL: F:\SAP\Export6\DATA\SAPAPP12.001 #20061015083828
EOT: SORP
(IMP) DATA: 116 rows in table "SORP" #20061015083828
#Trying to create primary key "SORP~0"
(IMP) PRKEY: "SORP~0"
#Trying to create index "SORP~A"
(IMP) INDEX: "SORP~A"
(IMP) TABLE: "SORS"
TAB: SORS
EOT: SORS
(IMP) DATA: 0 rows in table "SORS" #20061015083828
#Trying to create primary key "SORS~0"
(IMP) PRKEY: "SORS~0"
#Trying to create index "SORS~A"
(IMP) INDEX: "SORS~A"
#Trying to create index "SORS~B"
(IMP) INDEX: "SORS~B"
(IMP) TABLE: "SORTSUBF"
TAB: SORTSUBF
EOT: SORTSUBF
(IMP) DATA: 0 rows in table "SORTSUBF" #20061015083828
#Trying to create primary key "SORTSUBF~0"
(IMP) PRKEY: "SORTSUBF~0"
(IMP) TABLE: "SOSC"
TAB: SOSC
EOT: SOSC
(IMP) DATA: 0 rows in table "SOSC" #20061015083828
#Trying to create primary key "SOSC~0"
(IMP) PRKEY: "SOSC~0"
#Trying to create index "SOSC~ORD"
(IMP) INDEX: "SOSC~ORD"
#Trying to create index "SOSC~REC"
(IMP) INDEX: "SOSC~REC"
(IMP) TABLE: "SOST"
TAB: SOST
FIL: F:\SAP\Export6\DATA\SAPAPP12.001 #20061015083828
EOT: SOST
(IMP) DATA: 18 rows in table "SOST" #20061015083828
#Trying to create primary key "SOST~0"
(IMP) PRKEY: "SOST~0"
#Trying to create index "SOST~ART"
(IMP) INDEX: "SOST~ART"
#Trying to create index "SOST~DIR"
(IMP) INDEX: "SOST~DIR"
#Trying to create index "SOST~MES"
(IMP) INDEX: "SOST~MES"
#Trying to create index "SOST~REC"
(IMP) INDEX: "SOST~REC"
#Trying to create index "SOST~SND"
(IMP) INDEX: "SOST~SND"
(IMP) TABLE: "SOSTAT"
TAB: SOSTAT
EOT: SOSTAT
(IMP) DATA: 0 rows in table "SOSTAT" #20061015083828
#Trying to create primary key "SOSTAT~0"
(IMP) PRKEY: "SOSTAT~0"
(IMP) TABLE: "SOSU"
TAB: SOSU
EOT: SOSU
(IMP) DATA: 0 rows in table "SOSU" #20061015083828
#Trying to create primary key "SOSU~0"
(IMP) PRKEY: "SOSU~0"
#Trying to create index "SOSU~V"
(IMP) INDEX: "SOSU~V"
(IMP) TABLE: "SOSUBUT"
TAB: SOSUBUT
EOT: SOSUBUT
(IMP) DATA: 0 rows in table "SOSUBUT" #20061015083828
#Trying to create primary key "SOSUBUT~0"
(IMP) PRKEY: "SOSUBUT~0"
(IMP) TABLE: "SOSXTEST"
TAB: SOSXTEST
EOT: SOSXTEST
(IMP) DATA: 0 rows in table "SOSXTEST" #20061015083828
#Trying to create primary key "SOSXTEST~0"
(IMP) PRKEY: "SOSXTEST~0"
(IMP) TABLE: "SOUB"
TAB: SOUB
FIL: F:\SAP\Export6\DATA\SAPAPP12.001 #20061015083828
EOT: SOUB
(IMP) DATA: 2660 rows in table "SOUB" #20061015083828
#Trying to create primary key "SOUB~0"
(IMP) PRKEY: "SOUB~0"
(IMP) TABLE: "SOUC"
TAB: SOUC
FIL: F:\SAP\Export6\DATA\SAPAPP12.001 #20061015083828
EOT: SOUC
(IMP) DATA: 3682 rows in table "SOUC" #20061015083828
#Trying to create primary key "SOUC~0"
(IMP) PRKEY: "SOUC~0"
(IMP) TABLE: "SOUXA"
TAB: SOUXA
EOT: SOUXA
(IMP) DATA: 0 rows in table "SOUXA" #20061015083828
#Trying to create primary key "SOUXA~0"
(IMP) PRKEY: "SOUXA~0"
(IMP) TABLE: "SOXP"
TAB: SOXP
FIL: F:\SAP\Export6\DATA\SAPAPP12.001 #20061015083828
EOT: SOXP
(IMP) DATA: 3 rows in table "SOXP" #20061015083828
#Trying to create primary key "SOXP~0"
(IMP) PRKEY: "SOXP~0"
(IMP) TABLE: "SPH_USNOLI"
TAB: SPH_USNOLI
FIL: F:\SAP\Export6\DATA\SAPAPP12.001 #20061015083829
EOT: SPH_USNOLI
(IMP) DATA: 10 rows in table "SPH_USNOLI" #20061015083829
#Trying to create primary key "SPH_USNOLI~0"
(IMP) PRKEY: "SPH_USNOLI~0"
(IMP) TABLE: "SRABRELSD"
TAB: SRABRELSD
EOT: SRABRELSD
(IMP) DATA: 0 rows in table "SRABRELSD" #20061015083829
#Trying to create primary key "SRABRELSD~0"
(IMP) PRKEY: "SRABRELSD~0"
(IMP) TABLE: "SRCICREL"
TAB: SRCICREL
FIL: F:\SAP\Export6\DATA\SAPAPP12.001 #20061015083829
EOT: SRCICREL
(IMP) DATA: 1 rows in table "SRCICREL" #20061015083829
#Trying to create primary key "SRCICREL~0"
(IMP) PRKEY: "SRCICREL~0"
#Trying to create index "SRCICREL~001"
(IMP) INDEX: "SRCICREL~001"
(IMP) TABLE: "SREPOLIST"
TAB: SREPOLIST
FIL: F:\SAP\Export6\DATA\SAPAPP12.001 #20061015083829
EOT: SREPOLIST
(IMP) DATA: 5 rows in table "SREPOLIST" #20061015083829
#Trying to create primary key "SREPOLIST~0"
(IMP) PRKEY: "SREPOLIST~0"
(IMP) TABLE: "SRETGELOG"
TAB: SRETGELOG
EOT: SRETGELOG
(IMP) DATA: 0 rows in table "SRETGELOG" #20061015083829
#Trying to create primary key "SRETGELOG~0"
(IMP) PRKEY: "SRETGELOG~0"
(IMP) TABLE: "SRGBINREL"
TAB: SRGBINREL
FIL: F:\SAP\Export6\DATA\SAPAPP12.001 #20061015083829
EOT: SRGBINREL
(IMP) DATA: 23 rows in table "SRGBINREL" #20061015083829
#Trying to create primary key "SRGBINREL~0"
(IMP) PRKEY: "SRGBINREL~0"
#Trying to create index "SRGBINREL~001"
(IMP) INDEX: "SRGBINREL~001"
(IMP) TABLE: "SROBJGROUP"
TAB: SROBJGROUP
EOT: SROBJGROUP
(IMP) DATA: 0 rows in table "SROBJGROUP" #20061015083829
#Trying to create primary key "SROBJGROUP~0"
(IMP) PRKEY: "SROBJGROUP~0"
(IMP) TABLE: "SROBJINGRP"
TAB: SROBJINGRP
EOT: SROBJINGRP
(IMP) DATA: 0 rows in table "SROBJINGRP" #20061015083829
#Trying to create primary key "SROBJINGRP~0"
(IMP) PRKEY: "SROBJINGRP~0"
#Trying to create index "SROBJINGRP~001"
(IMP) INDEX: "SROBJINGRP~001"
(IMP) TABLE: "SRPROCESS"
TAB: SRPROCESS
EOT: SRPROCESS
(IMP) DATA: 0 rows in table "SRPROCESS" #20061015083829
#Trying to create primary key "SRPROCESS~0"
(IMP) PRKEY: "SRPROCESS~0"
#Trying to create index "SRPROCESS~001"
(IMP) INDEX: "SRPROCESS~001"
(IMP) TABLE: "SRPSO"
TAB: SRPSO
FIL: F:\SAP\Export6\DATA\SAPAPP12.001 #20061015083829
EOT: SRPSO
(IMP) DATA: 5 rows in table "SRPSO" #20061015083829
#Trying to create primary key "SRPSO~0"
(IMP) PRKEY: "SRPSO~0"
(IMP) TABLE: "SRPST"
TAB: SRPST
FIL: F:\SAP\Export6\DATA\SAPAPP12.001 #20061015083829
EOT: SRPST
(IMP) DATA: 35 rows in table "SRPST" #20061015083829
#Trying to create primary key "SRPST~0"
(IMP) PRKEY: "SRPST~0"
(IMP) TABLE: "SRRELROLES"
TAB: SRRELROLES
FIL: F:\SAP\Export6\DATA\SAPAPP12.001 #20061015083829
EOT: SRRELROLES
(IMP) DATA: 382 rows in table "SRRELROLES" #20061015083829
#Trying to create primary key "SRRELROLES~0"
(IMP) PRKEY: "SRRELROLES~0"
#Trying to create index "SRRELROLES~001"
(IMP) INDEX: "SRRELROLES~001"
#Trying to create index "SRRELROLES~002"
(IMP) INDEX: "SRRELROLES~002"
(IMP) TABLE: "SSCH"
TAB: SSCH
EOT: SSCH
(IMP) DATA: 0 rows in table "SSCH" #20061015083829
#Trying to create primary key "SSCH~0"
(IMP) PRKEY: "SSCH~0"
(IMP) TABLE: "SSM_LANGU"
TAB: SSM_LANGU
FIL: F:\SAP\Export6\DATA\SAPAPP12.001 #20061015083829
EOT: SSM_LANGU
(IMP) DATA: 5 rows in table "SSM_LANGU" #20061015083829
#Trying to create primary key "SSM_LANGU~0"
(IMP) PRKEY: "SSM_LANGU~0"
(IMP) TABLE: "SSM_RELE"
TAB: SSM_RELE
FIL: F:\SAP\Export6\DATA\SAPAPP12.001 #20061015083829
EOT: SSM_RELE
(IMP) DATA: 1 rows in table "SSM_RELE" #20061015083829
#Trying to create primary key "SSM_RELE~0"
(IMP) PRKEY: "SSM_RELE~0"
(IMP) TABLE: "SSM_STAT"
TAB: SSM_STAT
FIL: F:\SAP\Export6\DATA\SAPAPP12.001 #20061015083829
EOT: SSM_STAT
(IMP) DATA: 2 rows in table "SSM_STAT" #20061015083829
#Trying to create primary key "SSM_STAT~0"
(IMP) PRKEY: "SSM_STAT~0"
(IMP) TABLE: "SSM_STAT_H"
TAB: SSM_STAT_H
FIL: F:\SAP\Export6\DATA\SAPAPP12.001 #20061015083829
EOT: SSM_STAT_H
(IMP) DATA: 6 rows in table "SSM_STAT_H" #20061015083829
#Trying to create primary key "SSM_STAT_H~0"
(IMP) PRKEY: "SSM_STAT_H~0"
(IMP) TABLE: "SSM_STAT_P"
TAB: SSM_STAT_P
EOT: SSM_STAT_P
(IMP) DATA: 0 rows in table "SSM_STAT_P" #20061015083829
#Trying to create primary key "SSM_STAT_P~0"
(IMP) PRKEY: "SSM_STAT_P~0"
(IMP) TABLE: "SSPUMK"
TAB: SSPUMK
EOT: SSPUMK
(IMP) DATA: 0 rows in table "SSPUMK" #20061015083829
#Trying to create primary key "SSPUMK~0"
(IMP) PRKEY: "SSPUMK~0"
(IMP) TABLE: "ST05RESULT"
TAB: ST05RESULT
EOT: ST05RESULT
(IMP) DATA: 0 rows in table "ST05RESULT" #20061015083829
#Trying to create primary key "ST05RESULT~0"
(IMP) PRKEY: "ST05RESULT~0"
(IMP) TABLE: "STERM_TEXT"
TAB: STERM_TEXT
FIL: F:\SAP\Export6\DATA\SAPAPP12.001 #20061015083829
(RFB) ERROR: wrong checksum - invalid data
#STOP: 20061015083829
ANY ONE HELP ME PLZZZZZZZHi Amit,
Are you doing this installation from a network drive,ie whether the source CD/DVD are NFS mounted?,Normally this error happens due to the network errors or corrupted source files.
Regards,
Cherry -
Error while Installing R12.1.1 on Windows 2003
Dear all,
i have error while Installing ebs on stage 3-5
log file here : http://www.mediafire.com/download/fc91007a6rcaj09/ebslog.rar
| 3% completed
/ 3% completed
- 3% completed
\ 3% completed
| 3% completed
/ 3% completed
- 3% completed
\ 3% completed
| 3% completed
/ 3% completed
- 3% completed
\ 3% completed RC-50004: Fatal: Error occurred in ApplyAppsTechStack:
RC-50013: Fatal: Failed to instantiate driver C:\oracle\VIS\apps\tech_st\10.1.3\appsutil\driver\regclone.drv
C:\DOCUME~1\EBS\LOCALS~1\Temp>if 1 == 0 goto :REG_OK
C:\DOCUME~1\EBS\LOCALS~1\Temp>echo Cannot execute registration of Applications Techstack
Cannot execute registration of Applications Techstack
C:\DOCUME~1\EBS\LOCALS~1\Temp>if "" == "TRUE" goto :INSIAS_OK
RW-50010: Error: - script has returned an error: 1
RW-50004: Error code received when running external process. Check log file for details.
Running APPL_TOP Install Driver for VIS instancelog file
Processing DriverFile = Z:\D\Oracle\OracleR12\StageR12\startCD\Disk1\rapidwiz\template\adriapps.drv
Running Instantiation Drivers for Z:\D\Oracle\OracleR12\StageR12\startCD\Disk1\rapidwiz\template\adriapps.drv
instantiate file:
source : Z:\D\Oracle\OracleR12\StageR12\startCD\Disk1\rapidwiz\template\adrunias.cmd
dest : C:\oracle\VIS\inst\apps\VIS_omar\temp\adrunias.cmd
backup : C:\oracle\VIS\inst\apps\VIS_omar\temp\adrunias.cmd to C:\oracle\VIS\apps\apps_st\appl\admin\VIS_omar\out\templbac\adrunias.cmd
instantiate file:
source : Z:\D\Oracle\OracleR12\StageR12\startCD\Disk1\rapidwiz\template\adrunat.cmd
dest : C:\oracle\VIS\inst\apps\VIS_omar\temp\adrunat.cmd
backup : C:\oracle\VIS\inst\apps\VIS_omar\temp\adrunat.cmd to C:\oracle\VIS\apps\apps_st\appl\admin\VIS_omar\out\templbac\adrunat.cmd
Step 0 of 5
Command: C:\oracle\VIS\inst\apps\VIS_omar\temp\adrunias.cmd
Processing Step 3 of 5
Executing: C:\oracle\VIS\inst\apps\VIS_omar\temp\adrunias.cmd
Z:\D\Oracle\OracleR12\StageR12\startCD\Disk1\rapidwiz>REM
Z:\D\Oracle\OracleR12\StageR12\startCD\Disk1\rapidwiz>REM $Header: adrunias.cmd 120.11 2009/01/19 06:29:11 marderiu noship $
Z:\D\Oracle\OracleR12\StageR12\startCD\Disk1\rapidwiz>REM ###############################################################
Z:\D\Oracle\OracleR12\StageR12\startCD\Disk1\rapidwiz>REM
Z:\D\Oracle\OracleR12\StageR12\startCD\Disk1\rapidwiz>REM This file is automatically generated by AutoConfig. It will be read and
Z:\D\Oracle\OracleR12\StageR12\startCD\Disk1\rapidwiz>REM overwritten. If you were instructed to edit this file, or if you are not
Z:\D\Oracle\OracleR12\StageR12\startCD\Disk1\rapidwiz>REM able to use the settings created by AutoConfig, refer to Metalink Note
Z:\D\Oracle\OracleR12\StageR12\startCD\Disk1\rapidwiz>REM 387859.1 for assistance.
Z:\D\Oracle\OracleR12\StageR12\startCD\Disk1\rapidwiz>REM
Z:\D\Oracle\OracleR12\StageR12\startCD\Disk1\rapidwiz>REM ###############################################################
Z:\D\Oracle\OracleR12\StageR12\startCD\Disk1\rapidwiz>REM
Z:\D\Oracle\OracleR12\StageR12\startCD\Disk1\rapidwiz>FOR /F "delims==" %a IN ('DATE /T') DO (set date=%a )
Z:\D\Oracle\OracleR12\StageR12\startCD\Disk1\rapidwiz>(set date=Mon 06/17/2013 )
Z:\D\Oracle\OracleR12\StageR12\startCD\Disk1\rapidwiz>FOR /F "delims==" %a IN ('TIME /T') DO (set time=%a )
Z:\D\Oracle\OracleR12\StageR12\startCD\Disk1\rapidwiz>(set time=04:54 PM )
Z:\D\Oracle\OracleR12\StageR12\startCD\Disk1\rapidwiz>ECHO STARTED INSTALL PHASE : APPS TECH STACK : Mon 06/17/2013 04:54 PM
STARTED INSTALL PHASE : APPS TECH STACK : Mon 06/17/2013 04:54 PM
Z:\D\Oracle\OracleR12\StageR12\startCD\Disk1\rapidwiz>SET JRE_PATH=Z:\D\Oracle\OracleR12\StageR12\startCD\Disk1\rapidwiz\jre\NT\1.6.0\bin\java
Z:\D\Oracle\OracleR12\StageR12\startCD\Disk1\rapidwiz>SET JRE_CP=.;Z:\D\Oracle\OracleR12\StageR12\startCD\Disk1\rapidwiz\jlib\java;Z:\D\Oracle\OracleR12\StageR12\startCD\Disk1\rapidwiz\jlib\xmlparserv2.jar;Z:\D\Oracle\OracleR12\StageR12\startCD\Disk1\rapidwiz\jlib\ojdbc14.jar;Z:\D\Oracle\OracleR12\StageR12\startCD\Disk1\rapidwiz\jlib\oui\OraInstaller.jar;Z:\D\Oracle\OracleR12\StageR12\startCD\Disk1\rapidwiz\jlib\oui\ewt3.jar;Z:\D\Oracle\OracleR12\StageR12\startCD\Disk1\rapidwiz\jlib\oui\share.jar;Z:\D\Oracle\OracleR12\StageR12\startCD\Disk1\rapidwiz\jlib\oui\srvm.jar
Z:\D\Oracle\OracleR12\StageR12\startCD\Disk1\rapidwiz>SET XML_FILE=C:\oracle\VIS\inst\apps\VIS_omar\appl\admin\VIS_omar.xml
Z:\D\Oracle\OracleR12\StageR12\startCD\Disk1\rapidwiz>SET PATH=Z:\D\Oracle\OracleR12\StageR12\startCD\Disk1\rapidwiz\unzip\NT;C:\Perl\site\bin;C:\Perl\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\cygwin\bin;C:\MSVS\VC\bin;C:\Perl\bin
Z:\D\Oracle\OracleR12\StageR12\startCD\Disk1\rapidwiz>SET EC=ERRORCODE
Z:\D\Oracle\OracleR12\StageR12\startCD\Disk1\rapidwiz>setlocal enableextensions
Z:\D\Oracle\OracleR12\StageR12\startCD\Disk1\rapidwiz>set /P unpw=""
Z:\D\Oracle\OracleR12\StageR12\startCD\Disk1\rapidwiz>for /F "usebackq tokens=1,2 delims=/" %i in ('APPS/APPS') do set APPSUSER=%i && set APPSPASS=%j
Z:\D\Oracle\OracleR12\StageR12\startCD\Disk1\rapidwiz>set APPSUSER=APPS && set APPSPASS=APPS
Z:\D\Oracle\OracleR12\StageR12\startCD\Disk1\rapidwiz>IF "5" == "1" (SET THREADS=1 ) ELSE (SET THREADS=1 )
Z:\D\Oracle\OracleR12\StageR12\startCD\Disk1\rapidwiz>CD /D C:\DOCUME~1\EBS\LOCALS~1\Temp
C:\DOCUME~1\EBS\LOCALS~1\Temp>if "FALSE" == "C:\oracle\VIS\inst\apps\VIS_omar\temp\adrunias.cmd" (if not "FALSE" == "FALSE" (goto :FALSE ) else (goto :runProcess_1 ) )
C:\DOCUME~1\EBS\LOCALS~1\Temp>echo "runProcess_1"
"runProcess_1"
C:\DOCUME~1\EBS\LOCALS~1\Temp>REM
C:\DOCUME~1\EBS\LOCALS~1\Temp>REM Perform the install for tech stack
C:\DOCUME~1\EBS\LOCALS~1\Temp>REM
C:\DOCUME~1\EBS\LOCALS~1\Temp>echo Statusstring Installing Applications Technology Stack
Statusstring Installing Applications Technology Stack
C:\DOCUME~1\EBS\LOCALS~1\Temp>Z:\D\Oracle\OracleR12\StageR12\startCD\Disk1\rapidwiz\jre\NT\1.6.0\bin\java -mx600M -classpath .;Z:\D\Oracle\OracleR12\StageR12\startCD\Disk1\rapidwiz\jlib\java;Z:\D\Oracle\OracleR12\StageR12\startCD\Disk1\rapidwiz\jlib\xmlparserv2.jar;Z:\D\Oracle\OracleR12\StageR12\startCD\Disk1\rapidwiz\jlib\ojdbc14.jar;Z:\D\Oracle\OracleR12\StageR12\startCD\Disk1\rapidwiz\jlib\oui\OraInstaller.jar;Z:\D\Oracle\OracleR12\StageR12\startCD\Disk1\rapidwiz\jlib\oui\ewt3.jar;Z:\D\Oracle\OracleR12\StageR12\startCD\Disk1\rapidwiz\jlib\oui\share.jar;Z:\D\Oracle\OracleR12\StageR12\startCD\Disk1\rapidwiz\jlib\oui\srvm.jar oracle.apps.ad.rapidwiz.util.InstantiateFile -e C:\oracle\VIS\inst\apps\VIS_omar\appl\admin\VIS_omar.xml -d Z:\D\Oracle\OracleR12\StageR12\startCD\Disk1\rapidwiz\driver\appsts\driver\gias.drv -pwd no_password_here -log C:\oracle\VIS\apps\apps_st\appl\admin\VIS_omar\log\ApplyAppsTechStack.log -nthreads 1 -verbose
Enter the location of the CD labeled Oracle Applications Rapid Install - Tools Disk 1 :
Checking Disk contents in - Z:\D\Oracle\OracleR12\StageR12\startCD\Disk1\rapidwiz
Checking Disk contents in - Z:\D\Oracle\OracleR12\StageR12\oraAS\Disk1
Checking Disk contents in - Z:\D\Oracle\OracleR12\StageR12\oraAS\Disk1
Unzip Count:60
Processing Disk1....
Processing Disk2....
Processing Disk3....
C:\DOCUME~1\EBS\LOCALS~1\Temp>if 0 == 0 goto :BITS_OK
C:\DOCUME~1\EBS\LOCALS~1\Temp>echo "runProcess_2"
"runProcess_2"
C:\DOCUME~1\EBS\LOCALS~1\Temp>REM Perform the registration for tech stack
C:\DOCUME~1\EBS\LOCALS~1\Temp>REM
C:\DOCUME~1\EBS\LOCALS~1\Temp>echo Statusstring Registering Applications Technology Stack
Statusstring Registering Applications Technology Stack
C:\DOCUME~1\EBS\LOCALS~1\Temp>(echo APPS & echo APPS ) | Z:\D\Oracle\OracleR12\StageR12\startCD\Disk1\rapidwiz\jre\NT\1.6.0\bin\java -mx512M -classpath .;Z:\D\Oracle\OracleR12\StageR12\startCD\Disk1\rapidwiz\jlib\java;Z:\D\Oracle\OracleR12\StageR12\startCD\Disk1\rapidwiz\jlib\xmlparserv2.jar;Z:\D\Oracle\OracleR12\StageR12\startCD\Disk1\rapidwiz\jlib\ojdbc14.jar;Z:\D\Oracle\OracleR12\StageR12\startCD\Disk1\rapidwiz\jlib\oui\OraInstaller.jar;Z:\D\Oracle\OracleR12\StageR12\startCD\Disk1\rapidwiz\jlib\oui\ewt3.jar;Z:\D\Oracle\OracleR12\StageR12\startCD\Disk1\rapidwiz\jlib\oui\share.jar;Z:\D\Oracle\OracleR12\StageR12\startCD\Disk1\rapidwiz\jlib\oui\srvm.jar oracle.apps.ad.clone.ApplyAppsTechStack -e C:\oracle\VIS\inst\apps\VIS_omar\appl\admin\VIS_omar.xml -stage Z:\D\Oracle\OracleR12\StageR12\startCD\Disk1\rapidwiz -showProgress -phase reg -nopromptmsg
Log file located at C:\oracle\VIS\inst\apps\VIS_omar\admin\log\ApplyAppsTechStack_06171702.log
| 0% completed
/ 3% completed
- 3% completed
\ 3% completed
| 3% completed
/ 3% completed
- 3% completed
\ 3% completed
| 3% completed
/ 3% completed
- 3% completed
\ 3% completed
| 3% completed
/ 3% completed
- 3% completed
\ 3% completed
| 3% completed
/ 3% completed
- 3% completed
\ 3% completed
| 3% completed
/ 3% completed
- 3% completed
\ 3% completed
| 3% completed
/ 3% completed
- 3% completed
\ 3% completed
| 3% completed
/ 3% completed
- 3% completed
\ 3% completed
| 3% completed
/ 3% completed
- 3% completed
\ 3% completed
| 3% completed
/ 3% completed
- 3% completed
\ 3% completed
| 3% completed
/ 3% completed
- 3% completed
\ 3% completed
| 3% completed
/ 3% completed
- 3% completed
\ 3% completed
| 3% completed
/ 3% completed
- 3% completed
\ 3% completed
| 3% completed
/ 3% completed
- 3% completed
\ 3% completed
| 3% completed
/ 3% completed
- 3% completed
\ 3% completed
| 3% completed
/ 3% completed
- 3% completed
\ 3% completed
| 3% completed
/ 3% completed
- 3% completed
\ 3% completed
| 3% completed
/ 3% completed
- 3% completed
\ 3% completed
| 3% completed
/ 3% completed
- 3% completed
\ 3% completed
| 3% completed
/ 3% completed
- 3% completed
\ 3% completed
| 3% completed
/ 3% completed
- 3% completed
\ 3% completed
| 3% completed
/ 3% completed
- 3% completed
\ 3% completed
| 3% completed
/ 3% completed
- 3% completed
\ 3% completed
| 3% completed
Maybe you are looking for
-
Answers PDF Export (26000 rows, perhaps 200 pages)
When create an small PDF everything works fine. When I try to create a very bis PDF I receive the message in german Adobe Acrobat: i: Die Datei ist beschädigt und kann nicht repariert werden The PDF-Document will be not displayed. How can I get such
-
hi guys! I've a DV5-1170el with integrated HP DVB-T TV Tuner few days ago I formatted and installed vista 64bit installed tv tuner drivers but only media center recognises its quickplay doesn't reveal the component. how can i solve this problem? than
-
I am thinking about getting an Ipad, can you play like the facebook games on it?
Am I able to play games on the Ipad? Thanks
-
After loading iOS 8.0 on my iPad Air, I cannot delete a mailbox in my iCloud email account. I get kicked to the home screen. Anyone else having this problem?
-
"OpenOffice.app" can't be opened in Mavericks
After upgrading to OS X Mavericks I keep getting the message "OpenOffice.app" can't be opened because it is from an unidentified developper. This is the identical copy of OpenOffice that could be opened with OS X Mountain Lion. "LibeOffice.app", by c