ORA 00911
I have written an Excel spreadsheet that uses ODBC to **** data out of an Oracle 8.1.6 database. It works fine on my PC but alas doesn't work on my colleague's machine. Instead I get the above message: invalid character.
It turns out that we have slightly different versions of the Oracle ODBC driver. The twist is that I have the older version, 8.01.0500, whereas my colleague has 8.01.0600.
Is this likely to be the source of the problem? Is there a compatibility matrix for ODBC drivers anywhere?
TIA, APC
Does the problem persist if you update the driver on your colleague's machine? I believe that 8.1.6.3 is the most recent driver for the 8.1.6 client.
If this doesn't solve the problem, can you post the failing SQL statement?
Not sure what sort of compatibility matrix you're looking for...
Similar Messages
-
ORA-00911: invalid character using multiple select statements
I am getting an ORA-00911: invalid character error when trying to execute 2 select statements using ODP.NET.
cmd.CommandText = "select sysdate from dual;select sysdate from dual;";
cmd.Connection = conn;
cmd.CommandType = System.Data.CommandType.Text;
conn.Open();
OracleDataReader dr = cmd.ExecuteReader();
This works in SQL server but for some reason it appears this does not work in Oracle?
If this is the case what is a vaiable workaround? Wrapping the 2 statements in a transaction?
Seems strange that you can't return multiple result sets using in-line sql statements.Oracle doesn't support passing multiple statements like that, and this is unrelated to ODP.NET.
SQL> select * from emp;select * from dept;
select * from emp;select * from dept
ERROR at line 1:
ORA-00911: invalid character
You could do it via an anonymous block and ref cursors though if you dont want to do it via a stored procedure..
using System;
using System.Data;
using Oracle.DataAccess.Client;
using Oracle.DataAccess.Types;
public class test
public static void Main()
using (OracleConnection con = new OracleConnection("data source=orcl;user id=scott;password=tiger;"))
con.Open();
string strSql = "begin open :refcur1 for select * from emp;" +
"open :refcur2 for select * from dept;" +
"open :refcur3 for select * from salgrade;end;";
using (OracleCommand cmd = new OracleCommand(strSql, con))
cmd.Parameters.Add("refcur1", OracleDbType.RefCursor, ParameterDirection.Output);
cmd.Parameters.Add("refcur2", OracleDbType.RefCursor, ParameterDirection.Output);
cmd.Parameters.Add("refcur3", OracleDbType.RefCursor, ParameterDirection.Output);
OracleDataAdapter da = new OracleDataAdapter(cmd);
DataSet ds = new DataSet();
da.Fill(ds);
cmd.Parameters["refcur1"].Dispose();
cmd.Parameters["refcur2"].Dispose();
cmd.Parameters["refcur3"].Dispose();
foreach (DataTable dt in ds.Tables)
Console.WriteLine("\nProcessing {0} resultset...", dt.ToString());
foreach (DataRow row in dt.Rows)
Console.WriteLine("column 1: {0}", row[0]);
}Hope it helps,
Greg -
ORA-00911 Error code in JDBC where no special character is used - Oracle 10
Hi,
I am using Oracle 10G and Tomcat 5.5. I am trying to update a the CONFIRMED column of a table called LISTSERV_WAITING_LIST_TABLE. Please see my code below.
public void doPost(HttpServletRequest request, HttpServletResponse response){
String resRef = getServletContext().getInitParameter("java.comp.env");
String jdbcDbRef = getServletContext().getInitParameter("jdbc.database");
Context dbInitContext = null;
Context dbEnvContext = null;
DataSource dbSource = null;
Connection conn = null;
PreparedStatement prepStatement = null;
String uemail = request.getParameter("email").toUpperCase();
String userId = request.getParameter("userId");
String waitingListTable = getServletContext().getInitParameter("db.waiting.list.table.name");
try{
dbInitContext = new InitialContext();
dbEnvContext = (Context)dbInitContext.lookup(resRef);
dbSource = (DataSource)dbEnvContext.lookup(jdbcDbRef);
conn = dbSource.getConnection();
String sqlcmd = "update " + waitingListTable + " SET CONFIRMED = 'YES' WHERE UEMAIL = '" + uemail + "' and USERID = '" + userId + "';";
prepStatement = conn.prepareStatement(sqlcmd);
prepStatement.executeUpdate();
}catch(NamingException e){
log("Area 4A: NamingException occured");
}catch( SQLException e){
log("Area 4B: Exception occured", e);
When I run the code, I receive the following error message:
SEVERE: FinalSubscriber: Area 4B: Exception occured
java.sql.SQLException: ORA-00911: invalid character
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:743)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:213)
at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:952)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1160)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3285)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3368)
at org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:101)
at com.sainc.nsb.FinalSubscriber.doPost(FinalSubscriber.java:40)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:831)
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:639)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1203)
at java.lang.Thread.run(Unknown Source)
However, when I type the value of the string sqlcmd (used in the PreparedStatement) directly into Oracle, the update works. An example of that string is:
update listserv_waiting_list SET CONFIRMED = 'YES' WHERE UEMAIL = '[email protected]' and USERID = '1142369642862';
It contains no stange character and rows are inserted successfully in another class of the program that uses the same mechanism. The problem comes when I update the table.
Any idea as to what is wrong? Your help will be appreciated.
Thanks,
Nguessanbuddy, why don't you use a stored procedure and make your update, i hate that upkeeping.
callablestatement and the power of Plsql are ur saviours.
regards, djoudi. -
Can't figure out why: ORA-00911 on dynamic SQL
Hi everyone,
I have a report that is generated with the HTMLDB_ITEM toolkit. The report generates a checkbox, a hidden field, a text field, two select lists, and a select field.
There is a button in the region that activates a process to update two tables with the values in the fields. I have simplified the generated code by putting in variables that allow me to print a meaningful debug statement. The generated statement causes an ORA-00911; invalid character error. However, running the generated statement in the SQL Workshop works fine.
Here is the code (only slightly sanitized):
DECLARE
v_update_string varchar2(2000);
v_project_name varchar2(2000);
v_IT_dependant varchar2(1);
v_gxp_relevant varchar2(1);
v_project_id varchar2(10);
v_pm_id varchar2(10);
BEGIN
for i in 1..HTMLDB_APPLICATION.G_F01.COUNT
loop
v_update_string := null;
v_project_name := HTMLDB_APPLICATION.G_F03(HTMLDB_APPLICATION.G_F01(i));
v_IT_dependant := HTMLDB_APPLICATION.G_F04(HTMLDB_APPLICATION.G_F01(i));
v_gxp_relevant := HTMLDB_APPLICATION.G_F05(HTMLDB_APPLICATION.G_F01(i));
v_project_id := HTMLDB_APPLICATION.G_F02(HTMLDB_APPLICATION.G_F01(i));
v_pm_id := HTMLDB_APPLICATION.G_F06(HTMLDB_APPLICATION.G_F01(i));
v_update_string := 'update abc_project set ';
v_update_string := v_update_string || 'project_name = ''' || v_project_name || ''',';
v_update_string := v_update_string || ' it_dependant = ''' || v_IT_dependant|| ''',';
v_update_string := v_update_string || ' gxp_relevant = ''' || v_gxp_relevant|| '''';
v_update_string := v_update_string || ' where id = ' || v_project_id || ';' ;
-- This statement is debug output.
wwv_flow.debug('UPDATE_PROJECT_DATA v_update_string for ABC_PROJECT:' || v_update_string);
execute immediate v_update_string;
v_update_string := null;
v_update_string := 'update abc_project_monthly set ';
v_update_string := v_update_string || 'project_manager = ' || v_pm_id;
v_update_string := v_update_string || ' where project_id = ' || v_project_id || ' and ';
v_update_string := v_update_string || 'trunc(record_date, ''MON'') = trunc(SYSDATE, ''MON'');';
-- This statement is debug output.
wwv_flow.debug('UPDATE_PROJECT_DATA v_update_string contents for
ABC_PROJECT_MONTHLY:' || v_update_string);
execute immediate v_update_string;
end loop;
END;Here is the generated statement from the wwv_flow.debug statement:
0.05: UPDATE_PROJECT_DATA v_update_string for ABC_PROJECT:update abc_project set project_name = 'Test Project 4', it_dependant = 'N', gxp_relevant = 'N' where id = 425;
The next statement is "SHOW ERROR page..."
I have the feeling that I'm barking up the wrong tree. I've not been able to find anything helpful regarding the ORA-00911 error and wonder if I've been mislead and am looking in the wrong place.
As mentioned, running the generated SQL works fine in the SQL Worksop and in SQL Developer, just cut and paste. Could this have something to do with the "execute immedate"? You might have noticed that two statements should be generated, but we never get past the first one.
I would greatly appreciate any thoughts.
Thanks,
Petie
Message was edited by:
PetieHi Vikas and Vishal,
Thanks so much for your time in responding to my question.
Removing the extraneous semicolon indeed solved the problem. It was clear, with only a little thought, that with the semicolon in the generated statement the result was something like:
execute immediate update this set that = the_other;;which clearly is a problem.
I will look at the bind variables, Vikas, and start migrating the code in that direction. Thanks for your suggestion.
Yours,
Petie -
ORA-00911 error creating a view with PL/SQL
Hello. Working with SQL Developer, I'm trying to write a procedure that creates a view.
After a successful compilation, each time I try to execute it I get an ORA-00911 error and I'm not able to find the reason.
Here's my code. Thanks in advance.
CREATE OR REPLACE PROCEDURE "DWH_STAR"."STORICO_DATA" (
DATA_INPUT IN VARCHAR2
)AS
BEGIN
EXECUTE IMMEDIATE '
CREATE OR REPLACE FORCE VIEW DWH_STAR.V_PORT_STOR_DATA (DATA_DESC, CLIENTE_KEY, PRODOTTO_KEY, AGENTE_KEY, TIPOLOGIA_KEY,
NUM_ORDINE, NUM_UNITA, RICAVO_LORDO, RICAVO_NETTO, COSTO_STD_TOTALE, GROSS_PROFIT) AS
SELECT
dt.DATA_DESC,
fv.CLIENTE_KEY,
fv.PRODOTTO_KEY,
fv.AGENTE_KEY,
fv.TIPOLOGIA_KEY,
fv.NUM_ORDINE,
SUM (NUM_UNITA) NUM_UNITA,
SUM (RICAVO_LORDO) RICAVO_LORDO,
SUM (RICAVO_NETTO) RICAVO_NETTO,
SUM (COSTO_STD_TOTALE) COSTO_STD_TOTALE,
SUM (GROSS_PROFIT) GROSS_PROFIT
FROM
F_VENDUTO fv, D_TEMPO dt
WHERE
fv.TEMPO_KEY = dt.TEMPO_KEY
AND TO_NUMBER(TO_CHAR(dt.DATA_DESC,''YYYYMMDD'')) <=' || DATA_INPUT ||'
GROUP BY
fv.CLIENTE_KEY,
fv.PRODOTTO_KEY,
fv.AGENTE_KEY,
fv.TIPOLOGIA_KEY,
fv.NUM_ORDINE,
dt.DATA_DESC
ORDER BY
dt.DATA_DESC,
fv.CLIENTE_KEY,
fv.PRODOTTO_KEY,
fv.AGENTE_KEY,
fv.TIPOLOGIA_KEY,
fv.NUM_ORDINE;
UNION
SELECT
dt.DATA_DESC,
fs.CLIENTE_KEY,
fs.PRODOTTO_KEY,
fs.AGENTE_KEY,
fs.TIPOLOGIA_KEY,
fs.NUM_ORDINE,
- SUM (NUM_UNITA) NUM_UNITA,
- SUM (RICAVO_LORDO) RICAVO_LORDO,
- SUM (RICAVO_NETTO) RICAVO_NETTO,
- SUM (COSTO_STD_TOTALE) COSTO_STD_TOTALE,
- SUM (GROSSO_PROFIT) GROSS_PROFIT
FROM
F_SPEDITO fs, D_TEMPO dt
WHERE
(fs.CAUSA_RESO_KEY = 0
AND fs.TEMPO_KEY = dt.TEMPO_KEY
AND TO_NUMBER(TO_CHAR(dt.DATA_DESC,''YYYYMMDD'')) <=' || DATA_INPUT ||'
GROUP BY
fs.CLIENTE_KEY,
fs.PRODOTTO_KEY,
fs.AGENTE_KEY,
fs.TIPOLOGIA_KEY,
fs.NUM_ORDINE,
dt.DATA_DESC
ORDER BY
dt.DATA_DESC,
fs.CLIENTE_KEY,
fs.PRODOTTO_KEY,
fs.AGENTE_KEY,
fs.TIPOLOGIA_KEY,
fs.NUM_ORDINE
END;remove the order by and semi-colon (;) from the first select. I hope you know that union operator needs the same set of columns to be selected.
But try avoid creating objects on the fly unless and until it's absolutely necessary and unavoidable.
Regards
Raj
Edited by: R.Subramanian on Jun 21, 2010 7:52 AM
Edited by: R.Subramanian on Jun 21, 2010 7:53 AM -
Hi folks
I am not sure why this is happening. Only thing I can think of is field table_name has spaces then when I tried trim it does not like it.
Please help
Thanks a lot!
--------Here's the code ---------------
I have simple query (oracle database table names to extract and count the number of rows in each table) . This is the code snippet.
try { // creating a table in the database
// querying mytable
String query;
query = "select table_name from user_tables;";
ResultSet rs = stmt1.executeQuery(query);
ResultSet rs1 =null;
Statement stmt2 = null;
while (rs.next())
System.out.println("table name : " + rs.getString(1) );
rs1 = stmt2.executeQuery("select count(*) from " + rs.getString(1));
} catch (SQLException e)
{ System.out.println("SQLException : query " + e);
}ORA-00911 invalid character
Cause: Special characters are valid only in certain places. If special characters other than $, _, and # are used in a name and the name is not enclosed in double quotation marks (�), this message will be issued. One exception to this rule is for database names; in this case, double quotes are stripped out and ignored.
Action: Remove the invalid character from the statement or enclose the object name in double quotation marks.
So, I think you problem is a semicolon at then end of your query.
Hope this helps,
Boris -
BC4J VSM on OC4J 10.1.2 - jdbc error ORA-00911: invalid character
Hello,
I have been trying to run the Virtual Shopping Mall application on OC4J Standalone 10.1.2. I have deployed the application from a JDeveloper 10.1.2 release. When i try to login the OC4J log presents the following information and login fails:
C:\oracle\oc4j_1012\j2ee\home>java -jar oc4j.jar
oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation.
Statement: SELECT Users.USER_NAME, Users.FIRST_NAME, Users.LAST
NAME, Users.EMAIL, Users.ADDRESS, Users.CITY,
Users.STATE, Users.COUNTRY, Users.ZIP, Users.PHONE,
Users.ROLE, Users.PASSWORD, Users.CARD_PROVIDER,
Users.CARD_NUMBER, Users.CARD_EXPIRY_DATE FROM USERS Users WHERE (USER
_NAME=?)
at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java...
which has a root cause of:
## Detail 0 ##
java.sql.SQLException: ORA-00911: invalid character
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
:137)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:304)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:271)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:625)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.
java:181)
at oracle.jdbc.driver.T4CPreparedStatement.execute_for_describe(T4CPrepa
redStatement.java:661)
I've read some posts that suggest it could be the jdbc driver or the 'use ? style variables' option on the view definition. Your assistance is appreciated.
Thanks
DavidThanks Luke,
I changed
vo.setWhereClause(" USER_NAME=?");
to
vo.setWhereClause(" USER_NAME=:0");
And that particular segment worked as expected.
Thanks
David -
SQL Developer 2.1.1 ORA-00911: invalid character in Data Grid
Hi,
When I try to view data in Data Grid from table that has column name in format underscoreNAMEunderscore I get ORA-00911: invalid character.
As far as I can tell the problem is same with all 2.x versions. Version 1.5.5 works OK.
Is there a way around the problem?
Thank you for your help.
SilvioI see no answers :-(
Is there a chance this gets listed as a bug and fixed?
Thank you -
ORA-00911: invalid character - Calling a function from Java..
Hi to all.. I have an issue when calling an oracle function from Java..
This is my Java code:
final StringBuffer strSql = new StringBuffer();
strSql.append("SELECT GET_TBL('II_2_1_6_5') AS TABLA FROM DUAL;");
st = conexion.createStatement();
rs = st.executeQuery(strSql.toString());
and in the executeQuery a SQLException is throwed:
java.sql.SQLException: ORA-00911: invalid character
I paste the query in TOAD and it works.. :S
anybody knows how can I solve this?Remove the Semicolon after Dual.
strSql.append("SELECT GET_TBL('II_2_1_6_5') AS TABLA FROM DUAL");
Sushant -
Dynamic pl/sql - Error -911: ORA-00911: invalid character
This is the first time I am using dynamic pl/sql for self education. I am getting
Error -911: ORA-00911: invalid character
Here is my code;
PROCEDURE DYNAMIC_SQL (table_name in varchar2,
column1 in varchar2,
column2 in varchar2,
v_no out number)
is
dyn_cur integer;
v_table varchar2(2000);
v_field1 varchar2(20);
v_field2 varchar2(20);
v_select varchar2(2000);
v_cursor integer;
begin
DBMS_OUTPUT.enable;
dyn_cur := DBMS_SQL.open_cursor;
v_table := table_name;
v_field1 := column1;
v_field2 := column2;
v_select := 'select '| |v_field1| |','| |
v_field2| |' from '| |v_table;
DBMS_SQL.parse(dyn_cur,v_select,DBMS_SQL.V7);
v_no := DBMS_SQL.execute(dyn_cur);
DBMS_OUTPUT.put_line(v_select);
end;
ANY IDEAS????
Mayur
Thanx
nullHi Mayur,
I don't exatly know your problem. It seems the syntax is correct. I too got the similar error when I was writing PL/SQL script few years ago. That time after few rounds of investigations, I found that I copied the code from some editor, due to which certain characters are not identified by Oracle. So just retype the code in any editor like (notepad, PF Editor) and compile.
I think this may solve problem.
Cheers!!
r@m@ -
I'm trying to execute an SQL file with the following code:
create table "t_ap_xml"
"XML_ID" NUMBER,
"XML_NAME" VARCHAR2(128),
"XML_TYPE" VARCHAR(32),
"XML_CONTENT" "SYS"."XML_TYPE",
"XML_DESCRIPTION" VARCHAR2(4000)
..And i'm receiving the following error:
ERROR at line 8:
ORA-00911: invalid character
It is pointing to the semicolon as the problem. If i remove the semicolon, it seems to work. But if I place that code in a DDL with other create table commands, it gives me a ORA-00922 error at the line with the next create statement. Any ideas? Thanks.I guess I should have been a bit more clear..
I am using SQL*Plus, and GET-ing a text .sql file made in a text editor.
It seems to work without the semicolon and only creating that single table. However, a problem occurs when trying to use multiple CREATE TABLE statements in the same sql file.
So for example.. here is an excerpt:
create table t_ap_xml
create table another_table
Generates the following error:
ORA-00922: missing or invalid option
..That error occurs on the line in which the second CREATE TABLE statement was issued.
Thanks for any help! -
Calling SP results in ORA-00911: invalid character
I am testing a supposedly very simple stored procedure in XE. It compiles with no errors but when I enter the following command in the SQL Command window I get an ORA-00911: invalid character.
call get_all_customer_orgs;
The get_all_customer_orgs procedure is defined as...
create or replace procedure get_all_customer_orgs (p_recordset out sys_refcursor)
is
begin
open p_recordset for
select * from customerorgs;
end get_all_customer_orgs;
I don't understand what the invalid character could be. Guidance? Thanks.I don't have XE handy, but your procedure works from SQL Plus (changing the table to emp).
SQL> create or replace procedure get_all_customer_orgs (p_recordset out sys_refcursor)
2 is
3 begin
4 open p_recordset for
5 select empno,ename from emp;
6 end get_all_customer_orgs;
7 /
Procedure created.
SQL> var allemps refcursor
SQL> exec get_all_customer_orgs(:allemps);
PL/SQL procedure successfully completed.
SQL> print allemps
EMPNO ENAME
7369 SMITH
7499 ALLEN
7521 WARD
7566 JONES
7654 MARTIN
7698 BLAKE
7782 CLARK
7788 SCOTT
7839 KING
7844 TURNER
7876 ADAMS
7900 JAMES
7902 FORD
7934 MILLER
14 rows selected. -
ORA-00911: invalid character
I am trying to create a Table of Contents within Crystal Reports 9 from a query and tables in PeopleSoft. I have read many posts about ways to make this possible but I have not yet succeeded. I am currently trying to create a subreport thru the Add Command feature on the database connection. The SQL statement is as follows:
INSERT INTO <table> VALUES ('x', #, sysdate);
SELECT * FROM <table>
or
DELETE FROM <table>
WHERE <table>.<field> <> <paramter>;
SELECT * FROM <table>
Both of the Add Command SQL statements within Crystal result in the same error. See Below.
Failed to open a rowset.
Details: HY000:Oracle ODBC Ora ORA-00911: invalid character
Please advise.Hi -
In case you haven't figured out a resolution yet, here's the Oracle description of that error:
>> oerr ora 911
00911, 00000, "invalid character"
// *Cause: identifiers may not start with any ASCII character other than
// letters and numbers. $#_ are also allowed after the first
// character. Identifiers enclosed by doublequotes may contain
// any character other than a doublequote. Alternative quotes
// (q'#...#') cannot use spaces, tabs, or carriage returns as
// delimiters. For all other contexts, consult the SQL Language
// Reference Manual.
Tim -
9.0.4 OID Upgrade Assistant - Infrastructure install ora-00911
Hi,
upgrading from 9.0.2 to 9.0.4 on windows server.
Configuration assistant failed on Internet Directory Upgrade Assistant
output:
Non-SSL port:4032
4031
java.sql.SQLException: ORA-00911:invalid character
My upgrade is sitting here going nowhere and my searches have not yielded an answer - any assistance would be very much appreciated
Thx, PatHi Mojo,
There is no direct upgrade path fro 9.0.4 to 11g as you have OID involved so that latest being 11.1.1.7.0.
In order to upgrade Oracle Application Server to 11g the first step is to upgrade the 9.0.4 to 10.1.2.3 which is a manadatory prerequisite.
So in-order to get Oracle Application Server 10.1.2.0.2 you need to create an SR with Shipment team as 10.1.2.0.2 is de-supported since Jan 1st 2012 and the download the path "5983622" to upgrade
10.1.2.0.2 to 10.1.2.3.Once the upgrade is successfull then you need to proceed to to 11g upgrade.
Also there are some limitations of using Application Server 10.1.2.3 on DB 11gR2 for which please review the note:887365.1 "Oracle Database 11g Release 2 (11.2) Certification for Oracle Application Server 10g (10.1.2, 10.1.3, 10.1.4)"
Regards,
Prakash. -
Creating Oracle table is giving ORA-00911 error
Hi,
I got a small code which I am trying to implement in order to create a table in Oracle 8i database. The code compiles fine. However, when I run, it is giving ORA-00911 error(invalid character). Any help is highly appreciated in advance. Thanks.
CODE:
import java.sql.*;
import java.io.*;
import sun.jdbc.odbc.*;
public class createor {
public static void main (String args[]) {
try{
DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());
Connection conn = DriverManager.getConnection ("jdbc:oracle:thin:@myserv:1521:cooler", "scott", "tiger");
Statement stmt = conn.createStatement ();
stmt.execute( "create table JoltData ("+
"programmer varchar (32),"+
"day char (3),"+
"cups integer);"
stmt.close();
}catch (Exception e) {e.printStackTrace();}Try this code, it works for me.
import java.sql.*;
import java.util.*;
import java.text.*;
class dbtestcreatetable {
public static void main (String args []) throws SQLException {
try {
DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());
Connection conn = DriverManager.getConnection ("jdbc:oracle:thin:@myserver:1521:mysid",
"password",
"userid");
String sql = "CREATE TABLE MYTABLE3 (COL1 VARCHAR(3))";
Statement statement = conn.createStatement();
int cnt = statement.executeUpdate(sql);
statement.close();
conn.close();
catch (Exception e) {
System.out.println("Java Exception caught, error message="+e.getMessage());
} -
XSQL ORA-00911: invalid character
A function returns VARCHAR2 (around 25000 in size).
However,
select myfunction from dual;
from SQLPLUS returns ORA-06502
while
the XSQL servlet returns ORA-00911
What shall I do in order to get the matter to work ?
Support APPRECIATED !!Problem solved.
The problem was in the XSQL, it contained a ";" at the end.
Maybe you are looking for
-
Hi , I am trying to update iPod that has iOS 2.2.1 to iOS 4.2 but I am getting the following error message, "the iPod could not be restored. An unknown error occured (-1)." I would appreciate if anyone could let me know what the problem is and if it
-
Transfering catalog from one hard drive to another
I know there is a simple way of dealing with this query and hope that someone can help. All my images are currently stored on a 3 Tb hard drive and recently I purchased a DROBO with 15tb of memory. At the momeent I am using the Drobo as back up unt
-
Best IDE to develop EJB/Servlet development with WebLogic
Hi, I am prepearing a recommendation for our company's standard Java development environment. I would appriciate any comment you guys might have on the best IDE that supports J2EE and EJB and Servlet development that integrates with WebLogic. I guess
-
Flash Player fails to install (Mac 10.6.4)
Have checked the Forum & FAQ pages. The reason for the update is that on YouTube the video box was suddenly appearing as a solid black square. Decided to update, and after downloading attempted to install. The error message "Failed to install. Contac
-
AMD Radeon HD 6750M and bug in Photoshop CS5
Lately I noticed that merging spot channels in Photoshop CS 5 changes the opacity of the images. Adapting my settings in preferences > performance > GPU setting solves the problem if you enable the Open GL drawing and in advanced settings mode is set