Sql Exception :general error
Dear friends,
Here I have mysterious problem connection and operating with Oracle thru bridge drivers.
That is , I have class JDBCManager which takes care of executing Sql statements like selection , insertion and updating. Another class named Server which contains JDBCManager as static member so that any class can all the member function. The Actual problem is that after executing certain number of queries I need to face "SQLException as General error". So please tell how to get rid of this error.
JDBCManager establishes new Statement for every query body of one method is defined as follows
public ResultSet niceQuery(String query)
ResultSet result;
try
//Enumeration keys=connections.keys();
System.out.println(query);
Statement stmt=connection.createStatement();
result=stmt.executeQuery(query);
//stmt.close();
return(result);
catch(SQLException se)
System.out.println("Sorry i can not");
System.out.println(se);
return(null);
null
You can try with 3rd type drivers. Which i have used in connecting my code to My SQL. as below:
jdbc:mysql://192.9.200.20:3306/dbname","username","password"
Try to find informix's third party drivers if available. Happy coding :)
Similar Messages
-
SQL Exception: General Error - Help Needed
Hi,
I am getting an error at QuerySales.executeUpdate() statement in the following code.
I never had this kind of problem with other examples using executeUpdate statement. I even checked with "addBatch" but got the same error. Please help me if you know anything.
Thanks,
Ravi
PreparedStatement QuerySales;
insertString= "insert into TestNoName values (?, ?)";
String query2 = "SELECT Number, Name FROM TestNoName";
Statement stmt;
try {
con = DriverManager.getConnection(url,"","");
System.out.println("Successfully Connected to Database");
stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);
QuerySales = con.prepareStatement(insertString, ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);
ResultSet rs2 = stmt.executeQuery(query2);
for (int i=0; i<=10; i++)
rs2.last();
int count = rs2.getRow();
System.out.println(count);
if (count == 0)
lNumber = 1;
else {
lNumber = rs2.getInt("Number");
lNumber++;
QuerySales.setInt(1,lNumber);
QuerySales.setString(2,"Ravi");
QuerySales.executeUpdate();
System.out.println("Hi");
System.out.println("Exececuted SQL Statement- Inserted One Record");
System.out.println("Fields of TestNoName");
int count1=0;
ResultSet rs3 = stmt.executeQuery(query2);
//rs2.beforeFirst();
while (rs3.next()) {
count1++;
int n = rs3.getInt("Number");
String Name1 = rs3.getString("Name");
System.out.println(n + " " + Name1);
System.out.println(count1);
stmt.close();
con.close();
} catch(SQLException ex) {
System.err.println("SQLException: " + ex.getMessage());
}I found the reason for error. I declared the result set object within the for loop. Now it is working fine.
Ravi -
Java.sql.SQLException: General error
Hi i got this error message:
java.sql.SQLException: General error
at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source)
at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source)
at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcStatement.execute(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcStatement.executeUpdate(Unknown Source)
at PersonFrame.actionPerformed(PersonFrame.java:1155)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknow
n Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Sour
ce)
at java.awt.Component.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
my code is:
while (rs.next())
String recnumber = rs.getString("Person_ Record_ Number");
int reccc=Integer.parseInt(recnumber);
if (Integer.parseInt(FamilyTree.rowselected)==reccc && AddPersonn!=0)
System.out.println ("record in table "+reccc);
System.out.println ("record selected "+FamilyTree.rowselected);
str.executeUpdate("INSERT INTO Person " +
"VALUES ('"+nameofperson.getText()+"','"+SurnameOfPersonTxt.getText()+"','"+Bday+"','EMPTY','"+DateOfDeathTogether+"','EMPTY','EMPTY','"+phone+"','"+genre+"','"+Country+"','"+FamilyTree.rowselected+"','"+Nicknametxt.getText()+"','"+Filename+"','"+BioFile+"','"+city+"','"+postal+"','EMPTY','empty','"+TimeOfBirth+"','EMPTY')");
setVisible(false);
System.out.println(Filename);
LINE 1155 that the error message says is line :str.executeUpdate("INSERT INTO Person " +
<<<PersonFrame.actionPerformed(PersonFrame.java:1155)>>>>>
also note that i didn't include a try statement here (int reccc=Integer.parseInt(recnumber) because recnumber since is created holds the value 5000 so there is no need
Also the output.. of
System.out.println("INSERT INTO Person " + "VALUES ('"+nameofperson.getText()+"','"+SurnameOfPersonTxt.getText()+"','"+Bday+"','EMPTY','"+DateOfDeathTogether+"','"+PlaceOfDeath+"','"+address+"','"+phone+"','"+genre+"','"+Country+"','"+FamilyTree.rowselected+"','"+Nicknametxt.getText()+"','"+Filename+"','"+BioFile+"','"+city+"','"+postal+"','"+Causeofdeath+"','"+PlaceBurried+"','"+TimeOfBirth+"','EMPTY')");
is:
INSERT INTO Person VALUES ('fgfgff','dfdgfd','2/1/1988','EMPTY','Person Is Alive','null','EMPTY','EMPTY','Male','EMPTY','0560','dasfds','EMPTY','EMPTY','EMPTY','EMPTY','null','null','EMPTY','EMPTY')
and my table gets only text values...
Any Help Will Be Greately Appreciated
Thanks
Nick .sYou cannot do two thing at the same time with the same statement (while your ResultSet is open you are making an insert), try using a separate Statement that the one you used for the query for the insert. If that doesn't work, make a new connection, that will do it.
If you were using a separate statement then I'm sorry, I couldn't tell from your code. I'd had a similar problem and that's the way I solved it. -
I am getting Error! java.sql.SQLException:General error
hi every body,
I struck with this error , can any one suggest in solving this.
I had a table in oracledatabase ,i have successfully created a table and inserted clob column with an attachment like xxx.txt.
table format----> id and text columns
Now my question is to retrieve that data and store it in local disk i am getting this error
import java.io.*;
import java.sql.*;
//import java.sql.SQLException;
public class Cread {
public static void main(String[] args) throws ClassNotFoundException,IOException,SQLException {
try {
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection cn=DriverManager.getConnection("jdbc:odbc:sivadsn","scott","tiger");
Statement s = cn.createStatement();
ResultSet rs=s.executeQuery("Select text from ram where id=10");
if(rs.next()){
FileOutputStream file=new FileOutputStream("c:/store.txt");
InputStream fin=rs.getBinaryStream(1);
int c;
while((c=fin.read())!=-1){
file.write(c);
fin.close();
s.close();
rs.close();
catch(IOException e){
e.printStackTrace();
System.out.println("Err:"+e);
I am getting the error as
java.sql.SQLException: General error
at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source)
at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source)
at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcStatement.execute(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcStatement.executeQuery(Unknown Source)Error! java.sql.SQLException: General error
at attach.Clobread.main(Clobread.java:30)That usually means something is wrong with the syntax of your sql.
As a guess 'text' is probably a keyword and shouldn't be used as a field name. It is possible that the same is true for 'id' -
Statement Exception: General Error
Hi everybody
I have a program which interacts with Access database,
I get this error:
Statement Exception: General Error
when I try to execute this part of code,, it used to be working,,
but I dont know whats going wrong
any idea???
String addRec="INSERT INTO Election(Elect_Id, Title, Survay, Start_Time,"+
"Start_Date, End_Time, End_Date, Owner)VALUES"+ +"("+id+", '"+title+"' , '"+question+"', '"+startTime+"', '"+
startDate+"', '"+endTime+"', '"+endDate+"', '"+owner+"');";
stmnt=con.createStatement();
stmnt.executeUpdate(addRec);Are your date/time formats right? I always execute a query with an example of the code I use if it doesn't work out in java. Most of the time it's some stupid type error you looked over.
-
Getting javax.servlet.ServletException: General error
Someone pls help me....
I am getting General Error while inserting a row in database.I am not able to solve this error...I would really appreciate your help...Thanks in advance...
Following is my Code ::
<%! int countBts,countBts1,mmm; %>
<%! String msg; %>
<%
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
String dataSourceName = "ProjData";
String dbURL = "jdbc:odbc:" + dataSourceName;
Connection conn = DriverManager.getConnection(dbURL, "","");
int dataMgx= Integer.parseInt(request.getParameter("allocMgxId"));
int dataFrsm=Integer.parseInt(request.getParameter("allocFrsmSlotNo"));
int dataPort=Integer.parseInt(request.getParameter("allocPortNo"));
int dataBts=Integer.parseInt(request.getParameter("bts1"));
int dataRpm=Integer.parseInt(request.getParameter("allocRpmNo"));
int dataMultiLink=Integer.parseInt(request.getParameter("allocMultiLinkNo"));
String dataPortStatus= "vacant";
Statement myStat1 = conn.createStatement();
myStat1.execute("select count(BTS_ID) from MGX where BTS_ID=" + dataBts);
ResultSet result1 = myStat1.getResultSet();
if(result1.next())
countBts=Integer.parseInt(result1.getString(1));
countBts1=countBts+1;
if(countBts > 6)
msg="Configuration of more than 6 spans not allowed";
%>
<h3><%=msg %></h3>
<%}
else
PreparedStatement stmt1 =
conn.prepareStatement(("Insert into MGX (BTS_ID,Port_Status,MGX_Num,Port_No,FRSM_No,RPM_Card,Multi_Link) values ("+dataBts+",'"+dataPortStatus+"',"+dataMgx+","+dataPort+","+dataFrsm+","+dataRpm+","+dataMultiLink+")"));
mmm = stmt1.executeUpdate();
stmt1.close();
if(mmm == 1)
msg="One SpanRecord successfully added in the Database ";
else
msg="Failure in Update Operation";
result1.close();
myStat1.close();
conn.close();
%>
The error I am getting is as follows::
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: General error
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:867)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:800)
org.apache.jsp._5_jsp._jspService(_5_jsp.java:179)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
root cause
java.sql.SQLException: General error
sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6987)
sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7115)
sun.jdbc.odbc.JdbcOdbc.SQLExecute(JdbcOdbc.java:3150)
sun.jdbc.odbc.JdbcOdbcPreparedStatement.execute(JdbcOdbcPreparedStatement.java:214)
sun.jdbc.odbc.JdbcOdbcPreparedStatement.executeUpdate(JdbcOdbcPreparedStatement.java:136)
org.apache.jsp._5_jsp._jspService(_5_jsp.java:121)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
Pls Help meThanks for the reply buddy...
As per your reply....I have tried modifying my Preparedstatement properly with ? and then binding values...
But even after doing this i am still getting the same error....
I am clueless...
Following is my modified Prepared Statement ::
conn.prepareStatement(("Insert into MGX (BTS_ID,MGX_Num,Port_No,FRSM_No,RPM_Card,Multi_Link,Port_Status) values (?,?,?,?,?,?,?)"));
stmt1.setInt(1,Integer.parseInt(request.getParameter("bts1")));
stmt1.setInt(2,Integer.parseInt(request.getParameter("allocMgxId")));
stmt1.setInt(3,Integer.parseInt(request.getParameter("allocPortNo")));
stmt1.setInt(4,Integer.parseInt(request.getParameter("allocFrsmSlotNo")));
stmt1.setInt(5,Integer.parseInt(request.getParameter("allocRpmNo")));
stmt1.setInt(6,Integer.parseInt(request.getParameter("allocMultiLinkNo")));
stmt1.setString(7,"Allocated");
Awaiting for a solution.... -
Hi all
I hope everyone knows that in SQL there are various kinds of exceptions that are thrown , which are vendor-specific.
Now, while doing my program i came across situations, in a single java statement where i am inserting certain data in the database which can be a duplicate record.....(I am using MS Access). In the database there is one column which cannot contain duplicates, and hence when i add a record using such an insert statement, it throws an SQLException as follows
java.sql.SQLException: General error
now this 'General error' is one type of error, which is again vendor-specific.
What i want to know is, how do i detect in java code which type of SQL exception is thrown and correlate it with the database vendor, so that i can show an appropriate error/warning message to the user of my application.
Please help......
Thank You.
VaibhavI use Derby in my applications, and their messages are cryptic (at best). However, on the website, there is documentation for the error codes (http://db.apache.org/derby/docs/dev/ref/rrefexcept71493.html) that are provided in their "obtuse" (I dislike using that word, but it fits) messages.
What I did was write a parser for the documentation page's HTML that loaded the SQL State error codes into a properties file that would allow me to better see which type of error it is.
Now... that is because I want to log the information more clearly to make error tracking easier when debugging. If you want to provide "special handling", I think there's not much of a choice but to continually utilize "instanceof" in some kind of helper/utility class.
For example, in that case, I would write:
public class SqlExceptionUtilities
* Default constructor.
* <br />Declared private to prevent utility class instantiation.
private SqlExceptionUtilities() { }
* Provide error handling for specific exception types.
* @param e the exception to handle
* @param logger the logger to utilize along-side the base error handling
public static handle(SQLException e, Logger logger)
if (e instanceof ProprietarySqlExceptionType1)
else if (e instanceof ProprietarySqlExceptionType2)
else if (e instanceof ProprietarySqlExceptionType3)
else
logger.err("Generalized SQL Exception encountered: " + e.getMessage(), e);
}The other route I would consider taking is, again, a properties file that provides error handling capabilities based on the SQL exception's class name.
Hope this helps. -
Hello
I am trying to query a MS Access database using the servlet container provided by tomcat. Sometimes the query has no problem in executing itself...but I keep getting a general error on my tomcat display:
java.sql.SQLException: General error
at sun.jdbc.odbc.JdbcOdbc.throwGenericSQLException(JdbcOdbc.java:6160)
at sun.jdbc.odbc.JdbcOdbc.SQLFreeEnv(JdbcOdbc.java:2742)
at sun.jdbc.odbc.JdbcOdbcDriver.closeConnection(JdbcOdbcDriver.java:842)
at sun.jdbc.odbc.JdbcOdbcConnection.close(JdbcOdbcConnection.java:736)
at dlnet.Browse1.dlGetXMLLocs(Browse1.java:182)
at dlnet.Browse1.dlBrowse1(Browse1.java:138)
at dlnet.Browse.doPost(Browse.java:85)
The results are retrieved from the database though....
I am more concerned as to why the error occurs in he first place though
Any input on this would be very helpful
Thanks
Prashanthjava.sql.SQLException: General error...
sun.jdbc.odbc.JdbcOdbcDriver.closeConnection(JdbcOdbcDr
ver.java:842)Prashanth,
Did you ever find the reason for this? I have a similar problem runing an application against a SQL-Server database using the jdbc-odbc bridge. The problem occurs with some programs but not with others, and only on closeConnection, after all the real work is done.
Jay -
Sql exception while importing table
Hi All,
i'm trying to import a table into my oracle module and when i go through the imort wizard it throws an exception
SQL Exception
SQL Exception
Repository Error:SQL Exception..
Class Name: CacheMediator.
Method Name: getDDEntryFromDB.
Repository Error Message: ORA-00997: illegal use of LONG datatype
at oracle.wh.repos.pdl.foundation.CacheMediator.getSQLResult(CacheMediator.java:504)
at oracle.wh.repos.impl.CMPWBAPIFactory.getSQLResult(CMPWBAPIFactory.java:2137)
at oracle.wh.service.sdk.integrator.RepositoryUtils.getSQLResult(RepositoryUtils.java:448)
at oracle.wh.ui.integrator.sdk.RelationalEntityAccessor.getTableColumnsSQLResult(RelationalEntityAccessor.java:2541)
at oracle.wh.ui.integrator.sdk.RelationalEntityAccessor.getItems(RelationalEntityAccessor.java:680)
at oracle.wh.ui.integrator.common.ImportEntityAlgorithm.getColumnsToImport(ImportEntityAlgorithm.java:2925)
at oracle.wh.ui.integrator.common.ImportEntityInWarehouseAlgorithm.importColumns(ImportEntityInWarehouseAlgorithm.java:83)
at oracle.wh.ui.integrator.common.ImportEntityAlgorithm.importTable(ImportEntityAlgorithm.java:1343)
at oracle.wh.ui.integrator.common.ImportEntityAlgorithm.dispatchElement(ImportEntityAlgorithm.java:561)
at oracle.wh.ui.integrator.common.ImportEntityAlgorithm.importElement(ImportEntityAlgorithm.java:366)
at oracle.wh.ui.integrator.common.ImportEntityInWarehouseAlgorithm.importElement(ImportEntityInWarehouseAlgorithm.java:64)
at oracle.wh.ui.integrator.sdk.EntityAccessor.importElement(EntityAccessor.java:80)
at oracle.wh.ui.integrator.common.ImportService.importElement(ImportService.java:1046)
at oracle.wh.ui.integrator.common.wizards.ImportElementTransaction.run(ImportWizardDefinition.java:578)
i have resolved this problem earlier by setting the parameter cursor_sharing= exact scope=both;
even then it throws the exception now.
there are no long datatypes on my table which i'm importing.
plz help me.
thanx in advanceHi Darthvader,
I have sent the structure any ways i do send it again.
The first Thing is that this is the table created by selecting some of the columns which are returned by a function in the production DB into a staging table. this prob started when i tried to import the table. i ahev been using this tool since 1.5 years and i never faced this problem after setting the parameter cursour_sharing=exact.
i'm facing this problem while i tried importing other tables which are already imported.
This has really put me under pressure.
following is the structure of the table
CREATE TABLE xyz
BRANCH VARCHAR2(10 BYTE),
CHNL VARCHAR2(13 BYTE),
YTD NUMBER,
YTDAMT NUMBER,
YTDREC NUMBER,
YTDAMTREC NUMBER,
PRODUCT_ID NUMBER,
ROLLING_PERIOD VARCHAR2(15 BYTE)
Edited by: user618668 on Jun 8, 2011 3:28 AM -
Very Urgent!General Error?
Hi,
I have a part of the code as given :
// logic above
Statement st=null;
out.prinltn("VAL! "+st);
st=con.createStatement();
out.println("val now --"+st)
PreparedStatement ps1=con.prepareStatement("query");
logic to do the the processs with the above query
if(ps1!=null)
ps1.close();
out.println("VAL"+ps1);
ps1=con.prepareStatement("query"); //General Error
// logic below
THE out put which I get from the specific part is as:
VAL! null;
val now-- jdbc.odbc....@somevalue
VAL null
java.sql.SQLException General error
What could be the reason for the occurance of the
general error?
thanks
vickykHi ,
The reason for occurance of general error is your database might be open or the record you are trying to store is already there or you have not closed connection.
Regards
khiz_eng -
What (the hell) is SQL Exception called Function sequence error?
...doing in a code like this:
ResultSet friends=...executeQuery...
while (friends.next())
log.append(friends.getString("sendergsm"));
somewhere in between that loop, or sometimes the loop runs out fine, and sometimes it throws SQLException called General Error. Not guite normal...Thank you for replying... that must be agains some of the policies of the sun, to make methods that may be called normally, but may cause an error.
Anyway, this is my first database application. The number of problems I've had in few days is unbelivable. I wonder does it load the drivers from disk or something everytime it reads one record from database. I mean when I did the above query, the table had about 10 entries (the program showed 5 to 10 before function sequense error) and displaying each record to TextArea took over second. (In paradox (The dosversion) this would have taken less than a second).
And paradox tables doesn't work at all because it raises exception: Table isn't expected format. If I set paradox 4.0 drivers and put paradox 4.0 tables, you would guess that the format would be expected. And you cannot create paradox tables with SQL. Now I need to use access databases. How can database containing 60 records be 500kb:s? When it will contain 50000 new records every day, i guess I'll be in problem. Each tranaction (say 5 simple queries) taking minutes... heelp meee!! -
Displaying SQL Exception errors in plain english
Hi,
How can I display SQL Exception errors in plain english. For example how would I display:
java.sql.SQLException: ORA00001:unique consraint(EMP.NAME) violated
to
Name already exists!
Regards.When you log into SharePoint you give it a username and password, this might be automatic so you never notice it but it still happens in the background. The UPS then takes that username and creates a UPS entry for that account using information stored in
Active Directory.
If you're not familiar with AD it's normally a generally accessible 'phone book' like collection of user data like username, first name, surname, email address, manager, department and what security groups they belong to.
If you configure the sync service this information is pulled through earlier in bulk rather than on-demand as users log in. You also get a lot more control over what data is used where and how.
It's slightly different if you're using Forms Based Authentication but that's another story. -
SP 2013 Server + Dec 2013 CU. Upgrading from SharePoint 2010.
We have a web application that is distributed over 7-8 content databases from SharePoint 2010. All but one database are upgradable. However, one database gives:
Invalid object name 'Webs'.
while running Test-SPContentDatabase or Mount-SPContentDatabase.
EventViewer has the following reporting 5586 event Id:
Unknown SQL Exception 208 occurred. Additional error information from SQL Server is included below.Invalid object name 'Webs'.
After searching a bit, these links do not help:
http://social.technet.microsoft.com/Forums/sharepoint/en-US/fd020a41-51e6-4a89-9d16-38bff9201241/invalid-object-name-webs?forum=sharepointadmin
we are trying PowerShell only.
http://blog.thefullcircle.com/2013/06/mount-spcontentdatabase-and-test-spcontentdatabase-fail-with-either-invalid-object-name-sites-or-webs/
In our case, these are content databases. This is validated from Central Admin.
http://sharepointjotter.blogspot.com/2012/08/sharepoint-2010-exception-invalid.html
Our's is SharePoint 2013
http://zimmergren.net/technical/findbestcontentdatabaseforsitecreation-problem-after-upgrading-to-sharepoint-2013-solution
Does not seem like the same exact problem.
Any additional input?
Thanks, Soumya | MCITP, SharePoint 2010Hi,
“All but one database are upgradable. However, one database gives:
Invalid object name 'Webs'.”
Did the sentence you mean only one database not upgrade to SharePoint 2013 and given the error?
One or more of the following might be the cause:
Insufficient SQL Server database permissions
SQL Server database is full
Incorrect MDAC version
SQL Server database not found
Incorrect version of SQL Server
SQL Server collation is not supported
Database is read-only
To resolve the issue, you can refer to the following article which contains the causes and resolutions.
http://technet.microsoft.com/en-us/library/ee513056(v=office.14).aspx
Thanks,
Jason
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Jason Guo
TechNet Community Support -
Hi All.
I hope someone can help.
I have recently installed Oracle XE on my Vista Ultimate laptop and it is up and running with no apparent problems. I then connected to the HR schema on XE with no problems using SQL Developer 1.2.1.3213 (OLD Version). I noticed that SQL Developer 1.5.4.59.40 (NEW version) was available and downloaded it (the offering without JDK included) and renamed the "C:\Program Files\SQLDeveloper" folder holding the older version to "C:\Program Files\SQLDeveloper_Orig" and placed the new version of SQL Developer in the Prog Files directory to give "C:\Program Files\SQLDeveloper".
I then ran SQLDeveloper.exe (NEW) and when requested gave the JDK path as "C:\Program Files\Java\JDK_1.6.0_11\bin\java.exe" ('Java -version' gives 1.6.0_11-b03) and migrated over the settings from the previous version of SQLDeveloper (OLD).
The Application loads fine but when i attempt to connect to XE's HR schema i get the following error:
"IO Exception: Undefined Error
VENDOR CODE 17002"
I have searched to try and find out what is going on but cannot find any solutions that work. The previous 17002 error solutions on this forumn have all failed.
These included changing the JDK.conf file to hold route to JDK directory and also creating a 'bat' file.
My system does not have the directory for the JDK in it's PATH environment setting (either USER or SYSTEM) but does include a directory path under SYSTEM environment vars to another version fo JDK on my machine under "C:\Program Files\Sun\JDK\". I thought this may be causing a conflict but it is version 1.6.0.05_b13 and is also compatible-is it not? I also have Java JRE6 (1.6.0_12-b04) on my machine - this does not have a PATH variable and was not referenced when loading SQL Developer when loading the first time.
Can anyone help me resolve this, why can the previous version still connect OK to XE and not new version? is there something i am missing? Do i require the Java JDK Directory to be placed under a PATH environment SYSTEM variable?
Thanks in advance,
M
Edited by: user592047 on 16-Mar-2009 10:08Taken from about SQL Developer:
Version:
CVS Version Internal to Oracle SQL Developer (client-only)
Java(TM) Platform 1.6.0_11
Oracle IDE 1.5.4.59.40
Versioning Support 1.5.4.59.40
Properties:
apple.laf.useScreenMenuBar true
awt.toolkit sun.awt.windows.WToolkit
class.load.environment oracle.ide.boot.IdeClassLoadEnvironment
class.load.log.level CONFIG
class.transfer delegate
com.apple.macos.smallTabs true
com.apple.mrj.application.apple.menu.about.name "SQL_Developer"
com.apple.mrj.application.growbox.intrudes false
file.encoding Cp1252
file.encoding.pkg sun.io
file.separator \
http.agent Mozilla/5.0 (Java 1.6.0_11; Windows Vista 6.0 x86; en_GB) ICEbrowser/v6_1_3
ice.browser.forcegc false
ice.pilots.html4.ignoreNonGenericFonts true
ice.pilots.html4.tileOptThreshold 0
ide.AssertTracingDisabled true
ide.bootstrap.start 10390897243225
ide.build MAIN-5940
ide.conf C:\Program Files\sqldeveloper_new\sqldeveloper\bin\sqldeveloper.conf
ide.config_pathname C:\Program Files\sqldeveloper_new\sqldeveloper\bin\sqldeveloper.conf
ide.debugbuild false
ide.devbuild false
ide.extension.search.path sqldeveloper/extensions:jdev/extensions:ide/extensions
ide.firstrun false
ide.java.minversion 1.5.0
ide.launcherProcessId 2672
ide.main.class oracle.ide.boot.IdeLauncher
ide.patches.dir ide/lib/patches
ide.pref.dir C:\Users\M\AppData\Roaming\SQL Developer
ide.pref.dir.base C:\Users\M\AppData\Roaming
ide.product oracle.sqldeveloper
ide.shell.enableFileTypeAssociation C:\Program Files\sqldeveloper_new\sqldeveloper.exe
ide.splash.screen splash.gif
ide.startingArg0 C:\Program Files\sqldeveloper_new\sqldeveloper.exe
ide.startingcwd C:\Program Files\sqldeveloper_new
ide.user.dir C:\Users\M\AppData\Roaming\SQL Developer
ide.user.dir.var IDE_USER_DIR
ide.work.dir C:\Users\M\Documents\SQL Developer
ide.work.dir.base C:\Users\M\Documents
java.awt.graphicsenv sun.awt.Win32GraphicsEnvironment
java.awt.printerjob sun.awt.windows.WPrinterJob
java.class.path ..\..\ide\lib\ide-boot.jar
java.class.version 50.0
java.endorsed.dirs C:\Program Files\Java\jdk1.6.0_11\jre\lib\endorsed
java.ext.dirs C:\Program Files\Java\jdk1.6.0_11\jre\lib\ext;C:\Windows\Sun\Java\lib\ext
java.home C:\Program Files\Java\jdk1.6.0_11\jre
java.io.tmpdir C:\Users\M\AppData\Local\Temp\
java.library.path C:\Program Files\sqldeveloper_new;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\oracle\xe\app\oracle\product\10.2.0\server\bin;C:\Program Files\CodeGear\RAD Studio\5.0\bin;C:\Users\Public\Documents\RAD Studio\5.0\Bpl;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\9.0\DLLShared\;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Users\Public\Documents\RAD Studio\5.0\Bpl;C:\Program Files\Common Files\Teleca Shared;C:\Program Files\Microsoft Network Monitor 3\;C:\PROGRA~1\DISKEE~1\DISKEE~1\;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Java\jdk1.6.0_11;C:\Program Files\Sun\SDK\bin;C:\Users\Public\Documents\RAD Studio\5.0\Bpl;C:\Program Files\Nmap
java.naming.factory.initial oracle.javatools.jndi.LocalInitialContextFactory
java.runtime.name Java(TM) SE Runtime Environment
java.runtime.version 1.6.0_11-b03
java.specification.name Java Platform API Specification
java.specification.vendor Sun Microsystems Inc.
java.specification.version 1.6
java.util.logging.config.file logging.conf
java.vendor Sun Microsystems Inc.
java.vendor.url http://java.sun.com/
java.vendor.url.bug http://java.sun.com/cgi-bin/bugreport.cgi
java.version 1.6.0_11
java.vm.info mixed mode
java.vm.name Java HotSpot(TM) Client VM
java.vm.specification.name Java Virtual Machine Specification
java.vm.specification.vendor Sun Microsystems Inc.
java.vm.specification.version 1.0
java.vm.vendor Sun Microsystems Inc.
java.vm.version 11.0-b16
jdbc.library /C:/Program Files/sqldeveloper_new/jdbc/lib/ojdbc5.jar
line.separator \r\n
oracle.home C:\Program Files\sqldeveloper_new
oracle.ide.util.AddinPolicyUtils.OVERRIDE_FLAG true
oracle.translated.locales de,es,fr,it,ja,ko,pt_BR,zh_CN,zh_TW
oracle.xdkjava.compatibility.version 9.0.4
orai18n.library /C:/Program Files/sqldeveloper_new/jlib/orai18n.jar
os.arch x86
os.name Windows Vista
os.version 6.0
path.separator ;
reserved_filenames con,aux,prn,lpt1,lpt2,lpt3,lpt4,lpt5,lpt6,lpt7,lpt8,lpt9,com1,com2,com3,com4,com5,com6,com7,com8,com9,conin$,conout,conout$
sun.arch.data.model 32
sun.boot.class.path C:\Program Files\Java\jdk1.6.0_11\jre\lib\resources.jar;C:\Program Files\Java\jdk1.6.0_11\jre\lib\rt.jar;C:\Program Files\Java\jdk1.6.0_11\jre\lib\sunrsasign.jar;C:\Program Files\Java\jdk1.6.0_11\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.6.0_11\jre\lib\jce.jar;C:\Program Files\Java\jdk1.6.0_11\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.6.0_11\jre\classes
sun.boot.library.path C:\Program Files\Java\jdk1.6.0_11\jre\bin
sun.cpu.endian little
sun.cpu.isalist pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86
sun.desktop windows
sun.io.unicode.encoding UnicodeLittle
sun.java2d.ddoffscreen false
sun.jnu.encoding Cp1252
sun.management.compiler HotSpot Client Compiler
sun.os.patch.level Service Pack 1
user.country GB
user.dir C:\Program Files\sqldeveloper_new\sqldeveloper\bin
user.home C:\Users\M
user.language en
user.name M
user.timezone Europe/London
user.variant
windows.shell.font.languages -
Sql exception occurred during pl/sql upload error in custom integrator
Hi,
I have modified custom integrator which was working fine. I have added one column in template and the lov is working fine.
Issue is that when i upload the file to oracle it showing error as ''sql exception occurred during pl/sql upload".
I have tried executing the same from back end but it was working fine from back end and inserting properly in interface table.
Kindly suggest for the issue.
Regards,
GkHi,
You can get the error message in excel sheet itself by using the following piece of code.
FND_MESSAGE.CLEAR;
FND_MESSAGE.SET_NAME ('APPLICATION', 'APPLICATION_MESSAGE_NAME');
FND_MESSAGE.SET_TOKEN ('ERROR_TOKEN', ERROR MESSAGE);
FND_MESSAGE.RAISE_ERROR;
Create an excpetion block and include the above piece of code whilde catching the exception.
APPLICATION- The applicatio in which you create message
APPLICATION_MESSAGE_NAME- The message Name
ERROR_TOKEN- You must create a token in application message
ERROR MESSAGE- You can see the error using SQLERRM.
Thanks,
Vinoop
Maybe you are looking for
-
Portal content in java enabled mobile phone browser
Hi Experts, I havwe a requirement in which the portal webdynro application is to accesed through java mobile phones , but the portal is designed for computers(desktops)..... my query is that how to reuse the same portal app for the mobile phone and c
-
Built-in iSight in Macbook Pro 4,1 not recognized.
Hi, just noticed iSight stopped working after trying Photo Booth days ago. I used before some months ago, so I cannot say for sure when stopped working. At first looking for in forums and Apple support pages, I tried reseting NVRAM and SMC controller
-
Hello, Can anyone advise me on how does Rapid install validates the Filesystem during the multinode install for the remote apps tier while running the fresh install from db tier. I am trying to do the install with 2-node apps tier and getting the err
-
Success message in dynamic action with pl/sql
Hi, I want to know how to display the message "action proceed" in the "inline notification" from my block pl / sql is a dynamic action. Like this : Declare Begin Delete RSCLASSE_ACTIVITE Where ROWID = :P_DELETE_ROWID; -- here ---> -- I want disp
-
Using CSS to change the height of af:panelBox header - can do ?
Using JDev 11.1.1.3; want to change the render of the panelBox component; understand skinning is the way to do this ... so headed into the markup via Firebug, and by updating the settings in the browser, I can produce the results that I want, but hav