OracleException ORA-24817
Hi Oracle Guru's,
One of the user running a report got this error.
Oracle. DataAccess. Client. OracleException ORA-24817: Unable to allocate the given chunk for current lob operation.
We are running Oracle 10.1.0.3 on windows 2000.
Does anyone got an idea about this?
Thanks
oradba wrote:
ORA-24817 and ORA-31186 (undocumented errors)
Totally f88king useless "answer"
Similar Messages
-
Oracle.DataAccess.Client.OracleException ORA-29875 - ODCIINDEXINSERT error
Hi,
We are migrating data into our GIS repository using an application witch uses ODP fro .NET.
Yesterday, when we were importing parcels from a certain geographic zone we have got this error:
4430528 [4028] ERROR DBCommand - Error Executing Command [PARCELA.WRITE]
Parameters:
ResValue: [Int32]
POP_ID: [Int64]35397
PAR_ID: [Varchar2]
BLO_ID: [Decimal]836170
PAR_NUM: [Varchar2]1480296132900
geometry: [Blob]System.Byte[]
PAR_PON_ETI: [Blob]System.Byte[]
Oracle.DataAccess.Client.OracleException ORA-29875: failed in the execution of t
he ODCIINDEXINSERT routine
ORA-29400: data cartridge error
ORA-14450: attempt to access a transactional temp table already in use
ORA-06512: at "MDSYS.SDO_IDX", line 161
ORA-06512: at "MDSYS.SDO_INDEX_METHOD_10I", line 332
ORA-06512: at "SIG.PARCELA", line 354
ORA-06512: at "SIG.PARCELA", line 479
ORA-06512: at line 1 at pt.inga.db.Command.Execute(IDbConnection connection,
IDbCommand command, Boolean& closeConnection) in C:\code-base\inga\isig\src-1.0.
0.2\pt\inga\db\Command.cs:line 234
at pt.inga.db.Command.Execute(IDbConnection connection, OracleCommand command
, IDataRecord parentRecord, IDataRecord dataRecord, IOperationData operation, Bo
olean& closeConnection) in C:\code-base\inga\isig\src-1.0.0.2\pt\inga\db\Command
.cs:line 334
The error seems to be related with temporary tables manipulation, does it?
Has we didnât know what to do we try to import those parcels after dropping a spatial index over the parcelâs table and we succeed with the import.
Those any one has any ideas about this?
And about spatial indexes internals?
Thanks in advance,
Vitor
Versions:
Client: Oracle10g Data Provider for .NET 10.1.0.2.0
Clientâs OS: Windows 2003 server
Server: Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
Serverâs OS: AIX 5.2.0.0Vitor,
Yes, Oracle uses temporary tables as part of inserts/
deletes/updates on a table with a spatial index.
Temporary table usage internally should not
have any issues and we are not sure why this problem
surfaces. Opening a TAR on this with a simplified
testcase (and all config details: # of concurrent
sessions etc.) might help in a better understanding/
resolution of this issue.
In the meanwhile, as a workaround, you can do the
following:
- drop the spatial index
- migrate (insert) the data into the table from the
application
- recreate the spatial index
This will avoid the temporary table issue at hand.
- Ravi. -
Oracle.DataAccess.Client.OracleException ORA-06502: PL/SQL
I have the following Simple PL/SQL function:
FUNCTION INSERTFBEXP (
p_expid INTEGER,
p_run_identifier VARCHAR2,
p_run_complete INTEGER,
p_run_completion_status VARCHAR2,
p_complete_errors INTEGER
RETURN INTEGER
IS
newid INTEGER;
concheck INTEGER;
BEGIN
concheck := 1;
newid := 1;
INSERT INTO test.exp
(ID, concheck, expid, run_identifier,run_complete, run_completion_status, complete_errors
VALUES (test.id_testexp.NEXTVAL, concheck, p_expid, p_run_identifier, p_run_complete, p_run_completion_status, p_complete_errors
) RETURNING ID INTO newid;
RETURN newid;
END;
Which I am calling from the following .Net procedure:
Public Function insertTestExp(ByVal expid As Int32, ByVal Run_Identifier As String, _
ByVal Run_Complete As Boolean, ByVal CompletionStatus As String, ByVal Complete_Errors As Boolean) As Integer
Dim id As Integer
With m_OraCmd
.CommandText = "USER.FBPROCESS.INSERTFBEXP"
.CommandType = CommandType.StoredProcedure
With .Parameters
.Clear()
.Add(New OracleParameter("p_expid", OracleDbType.Int32)).Value = expid
.Add(New OracleParameter("p_run_identifier", OracleDbType.Varchar2, 50)).Value = Run_Identifier
.Add(New OracleParameter("p_run_complete", OracleDbType.Int32)).Value = Convert.ToInt32(Run_Complete)
.Add(New OracleParameter("p_run_completion_status", OracleDbType.Varchar2, 50)).Value = CompletionStatus
.Add(New OracleParameter("p_complete_errors", OracleDbType.Int32)).Value = Convert.ToInt32(Complete_Errors)
.Add(New OracleParameter("newid", OracleDbType.Int32)).Direction = ParameterDirection.ReturnValue
End With
Try
.ExecuteNonQuery()
Catch ex As Exception
MsgBox(ex.ToString)
End Try
Return CType(.Parameters(5).Value, Int32)
End With
End Function
When I attempt to run the .Net function I get the following error:
Oracle.DataAccess.Client.OracleException ORA-06502: PL/SQL
I have determined by trial and error that the problem is in passing the VARCHAR2 parameters. I do not have this problem with the Microsoft Oracle Provider. Can someone help me with what I'm missing? Thanks.Note that I have not tested your code... but, it looks like you are using bind by position (which is the default). In this mode the return value needs to be bound first since ODP.NET will generate code similar to this:
:ret_val := proc(:1, :2,...);That's where I would start anyway.
Hope that helps a bit,
Mark -
Oracle.DataAccess.Client.OracleException ORA-12154:
Hi Experts,
Please I need yours assistance.
I developed an automation tool in visual studio 2010 using c# and oracle framework Oracle.DataAccess.Client. However, the tool is working properly on my machine but when deployed the tool to a different machine that has .net 4.0 framework installed, and when I tried to run the tool I kept getting the following error message below:
"************** Exception Text **************
Oracle.DataAccess.Client.OracleException ORA-12154: TNS:could not resolve the connect identifier specified at Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src, String procedure, Boolean bCheck)
at Oracle.DataAccess.Client.OracleException.HandleError(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, Object src)
at Oracle.DataAccess.Client.OracleConnection.Open()
at LogicalDateValidator.Form1.conn(String oradb)
at LogicalDateValidator.Form1.button3_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)"http://www.oracle.com/technetwork/topics/dotnet/odt-faq-085407.html#ORA-12154:_TNS:could_not_resolve_the
-
OracleException ORA-1017: invalid username/password; logon denied at Oracle
Hi,
SYS@EHS06T>select from v$version;*
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
PL/SQL Release 10.2.0.5.0 - Production
CORE 10.2.0.5.0 Production
TNS for 64-bit Windows: Version 10.2.0.5.0 - Production
NLSRTL Version 10.2.0.5.0 - Production
I have checked the PWADM and PWSYS account and tried to connect to the DB using sqlplus both. I didn’t got any error while connecting.
Also checked the Event viewer logs and found nothing.
But end user getting below error from application :
Message: Error saving emissions
Oracle.DataAccess.Client.OracleException ORA-1017: invalid username/password; logon denied at Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src, String procedure, Boolean bCheck) at Oracle.DataAccess.Client.OracleException.HandleError(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, Object src) at Oracle.DataAccess.Client.OracleConnection.Open() at Ess.Framework.DA.BulkOperations.InsertDataOracle(String tableName, DataTable table, Int32 timeout) at Ess.Framework.DA.BulkOperations.InsertData(String tableName, DataTable table) at Ess.ESuite.Air.BO.Calculator.Controller.SaveEmissions(List`1 list) at Ess.ESuite.Air.BO.Calculator.Controller.SaveCachedEmissions()
Request your assistance in solving this issue. Thanks!hi,
Try a SQL*Net trace on the client (your PC) for the connection that works and the one that does not. Compare to see what is different.
Client Side Tracing:
Your SQLNET.ORA file should contain the following lines to produce a client side trace file:
trace_level_client = 10
trace_unique_client = on
trace_file_client = sqlnet.trc
trace_directory_client =
regards, -
Hi,
I am using Visual Studio 2003. I am creating a ASP.NET Web Application NOT Windows Application.
I logged into Oracle as a DBA, but I got this message.
I wasn't sure if I missed anything when working on the Web.
Thanks for your help.
LuanHi Chris,
Thank you so much for your help.
Yes, I use oracle explorer. Sorry, the code is kind of long. Here is the code:
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
namespace WebBank
/// <summary>
/// Summary description for WebForm1.
/// </summary>
public class WebForm1 : System.Web.UI.Page
protected Oracle.DataAccess.Client.OracleDataAdapter oracleDataAdapter1;
protected Oracle.DataAccess.Client.OracleCommand oracleCommand1;
protected Oracle.DataAccess.Client.OracleConnection oracleConnection1;
protected System.Web.UI.WebControls.Button btnOK;
protected System.Web.UI.WebControls.DataGrid DataGrid1;
private void Page_Load(object sender, System.EventArgs e)
// Put user code to initialize the page here
//DataSet ds = new DataSet();
//oracleDataAdapter1.Fill(ds);
//DataGrid1.DataSource = ds.Tables[0];
#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
// CODEGEN: This call is required by the ASP.NET Web Form Designer.
InitializeComponent();
base.OnInit(e);
DataSet ds = new DataSet();
oracleDataAdapter1.Fill(ds);
DataGrid1.DataSource = ds.Tables[0];
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
this.oracleDataAdapter1 = new Oracle.DataAccess.Client.OracleDataAdapter();
this.oracleCommand1 = new Oracle.DataAccess.Client.OracleCommand();
this.oracleConnection1 = new Oracle.DataAccess.Client.OracleConnection();
// oracleDataAdapter1
this.oracleDataAdapter1.SelectCommand = this.oracleCommand1;
this.oracleDataAdapter1.RowUpdated += new Oracle.DataAccess.Client.OracleRowUpdatedEventHandler(this.oracleDataAdapter1_RowUpdated);
// oracleCommand1
this.oracleCommand1.CommandText = "SELECT * FROM SYSTEM.CUSTOMER";
this.oracleCommand1.Connection = this.oracleConnection1;
// oracleConnection1
this.oracleConnection1.ConnectionString = "User Id=system;Data Source=TESTDB;Password=passwd;Persist Security Info=true;";
this.oracleConnection1.InfoMessage += new Oracle.DataAccess.Client.OracleInfoMessageEventHandler(this.oracleConnection1_InfoMessage);
this.btnOK.Click += new System.EventHandler(this.btnOK_Click);
this.Load += new System.EventHandler(this.Page_Load);
#endregion
private void oracleConnection1_InfoMessage(object sender, Oracle.DataAccess.Client.OracleInfoMessageEventArgs eventArgs)
private void oracleDataAdapter1_RowUpdated(object sender, Oracle.DataAccess.Client.OracleRowUpdatedEventArgs e)
private void btnOK_Click(object sender, System.EventArgs e)
DataSet ds = new DataSet();
oracleDataAdapter1.Fill(ds);
DataGrid1.DataSource = ds.Tables[0]; -
Receiving 'OracleException ORA-24761: transaction rolled back errors
Hi all,
I am receiving the above error intermittently in our .NET application. The .NET apps makes heavy use of txns (using COM+), Oracle services for MTS, ODP.NET and is talking to a 9205 db.
We have tried several combinations of timeout settings in DB and .NET sides (to no avail).
Any suggestions why this error could be happening?
Rgds,
PrasannaI enabled ODP tracing but don't know what to look for. The trace files quickly grow to 100+ MB. Searched for strings error/fail/24761/(MTS)/back but couldn't find any useful information.
Successful calls seem to start with:
TIME:2003/ 3/10- 9:24:10:140 TID: cc4 (MTS) Enlistment result: 0
Thanks,
Armin -
Error ORA-21525 procedure with a type object parameter
Hi.
I have some types in DB :
CREATE OR REPLACE TYPE tListaValori IS TABLE OF VARCHAR2(4000);
CREATE OR REPLACE TYPE TFILTRO AS OBJECT
TIPOFILTRO VARCHAR2(200) ,
VALORI tListaValori ,
NULLVALUE VARCHAR2(4000)
CREATE OR REPLACE TYPE tListaFiltri IS TABLE OF TFILTRO ;
CREATE OR REPLACE TYPE TQBE AS OBJECT
ALIASTAB VARCHAR2(30),
COLONNA VARCHAR2(30),
SELEZIONE VARCHAR2(3),
TIPODATO VARCHAR2(30),
ORDINAMENTO INTEGER, -- VEDI BINARY_INTEGER
TIPOREL VARCHAR2(6),
Filtri tListaFiltri,
AliasNew VARCHAR2(30),
Raggruppa INTEGER -- VEDI BINARY_INTEGER
So I create C# classes by the wizard of visual studio 2005 that map UDTs to c# classes.
In compilation there aren't errors but when I call the procedure (from the main method in visual studio) :
procedure UPDATE_OGGETTO(
param1 IN OUT TQBE
as
begin
NULL;
EXCEPTION
WHEN OTHERS THEN
DBMS_OUTPUT.PUT_LINE(SQLERRM(SQLCODE));
end;
I have the following error:
Eccezione non gestita: Oracle.DataAccess.Client.OracleException ORA-21525: il numero dell'attributo o (elemento di collection all'indice) %s ha violato i suoi vincoli in Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Obj
ect src, String procedure)Did you find a solution? I am encoutering a similar problem...
-
ORA-06550/PLS-00201 error while configuring data source
Hi,
My development platform is Visual Studio 2005, ODAC11g Release 1 (11.1.0.6.20), and Oracle 10g Release 2 database.
I tried to setup a sqlDatasource in my web page using drag and drop features
When I configure the sqlDatasource to use a stored procedure inside a package,
I notice that odp.net uses #0# as separator (instead of .) between package name and procedure name in Configure Data Source dialog box. Then when I clcik the Test Query button, I got following error.
There was an error executing the query. Please check the syntax of the command and if present, the types and values of the parameters and ensure they are correct.
ORA-06550: line 1, column 7:
PLS-00201: identifier 'PK_LOOKUP_TABLE#0#P_LIST' must be declared
ORA-06550: line 1, column 7
PL/SQL: Statement ignored
It looks like odp.net cannot locate PK_LOOKUP_TABLE#0#P_LIST.
Is there any workaround ?
Below is the stored procedure code. It compiles and runs without problem.
PACKAGE BODY pk_lookup_table
AS
/* Get a list of lookup table name */
PROCEDURE P_LIST (
O_CURSOR OUT sys_refcursor )
IS
l_cur sys_refcursor;
BEGIN -- executable part starts here
OPEN l_cur FOR
SELECT table_name
FROM all_tab_comments u
WHERE u.comments LIKE '%Lookup Table%'
ORDER BY 1;
o_cursor := l_cur;
END P_LIST;
END "PK_LOOKUP_TABLE";
On the sqlDataSource property sheet, if I click the Select Query property, the Command and Parameter Editor will open, then I can change the select command name to PK_LOOKUP_TABLE.P_LIST. Then if I run the application, I get another error.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: Oracle.DataAccess.Client.OracleException: ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to 'P_LIST'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
Seems that it can locate the procedure.
In the Command and Parameter Editor dialog, I can add output parameter, but data type is restricted. There is no REF CURSOR datatype in the dropdown list.
How can I add output parameter with REF CURSOR type via IDE ?
Thanks for the time looking into this issue.
MansionHi
Even I faced this problem while connecting to RMAN . But I feel your problem is different .
My issue was like this
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00554: initialization of internal recovery manager package failed
RMAN-04005: error from target database:
ORA-06550: line 1, column 7:
PLS-00201: identifier 'DBMS_BACKUP_RESTORE.SET_CHARSET' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
RMAN-04015: error setting target database character set to WE8MSWIN1252
Solution :
execute catproc.sql; -
ORA-31186 Document contains too many nodes - Using XMLGen with XSLT
When processing a query that returns a large number of rows I'm getting this error. It doesn't appear that processing results with a style sheet works for larger result sets, in this case 64k rows.
Hi,
you may want to check
ORA-24817 and ORA-31186 (undocumented errors)
Regards,
Jaromir -
Hi Guys,
I'm getting a very strange ORA-01044 error:
Oracle.DataAccess.Client.OracleException ORA-01044: size 87160000 of buffer bound to variable exceeds maximum 288212783965667328 at Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, OpoSqlValCtx pOpoSqlValCtx, Object src, String procedure)*
at Oracle.DataAccess.Client.OracleException.HandleError(Int32 errCode, OracleConnection conn, String procedure, IntPtr opsErrCtx, OpoSqlValCtx pOpoSqlValCtx, Object src)*
at Oracle.DataAccess.Client.OracleCommand.ExecuteNonQuery()
As you can see, the buffer size does not exceed the maximum stated, yet it is still causing an exception.
Some background.. A new parameter has been added to a stored proc that was originally working fine, this new parameter is an associative array of numbers.
On the ODP.Net side, I create a parameter that has a collection type of "*PLSQLAssociativeArray*" and Oracle DB Type of "*Int32*".
Any ideas as to what might be causing this problem?Hi,
What db version?
There is an older bug where this error would be raised if the requested buffer size exceeded the granule size of the SGA. That was from the 9.2 timeframe as I recall.
Regards,
Mark -
ORA-03113 in spatial query with xmlReader
I run a spatial query with xmlReader. but it occurs a ORA-03113 exception. If i use the OracleDataReader,not through xml, the execution is ok. But i have to get the geometry data through xml. I have try to set the validate connection to True, but it seems useless.
Can some one help me?Thx a lots.
Here is my code:
string id = "scott";
string psw = "tiger";
string source = "Oracle";
string connectionstring = "User Id="+id+";password="+psw+";data source="+source+";validate connection=true";
string sql ="select cname from L218 where sdo_relate(L218.GEOLOC,MDSYS.SDO_geometry(2003,NULL,NULL,MDSYS.SDO_elem_info_array(1,1003,3),MDSYS.SDO_ordinate_array(295596.60260187,2761786.9958782, 316370.598147679,2789383.2780762)),'mask=anyinteract')='TRUE'";
try
Oracle.DataAccess.Client.OracleConnection con = new OracleConnection(connectionstring);
con.Open();
Oracle.DataAccess.Client.OracleCommand cmd = con.CreateCommand();
cmd.XmlCommandType = OracleXmlCommandType.Query;
cmd.BindByName = true;
cmd.CommandText =sql;
XmlReader xmlReader = cmd.ExecuteXmlReader();
XmlDocument xmlDocument = new XmlDocument();
xmlDocument.PreserveWhitespace = false;
xmlDocument.Load(xmlReader);
Console.WriteLine(xmlDocument.OuterXml);
con.Close();
catch (OracleException e)
Console.WriteLine(e);
And it returns:
Oracle.DataAccess.Client.OracleException ORA-03113: end-of-file on communication
channel at Oracle.DataAccess.Client.OracleCommand.XmlHandleException(OracleE
xception e)
at Oracle.DataAccess.Client.OracleCommand.ExecuteXmlQuery(Boolean wantResult)
at Oracle.DataAccess.Client.OracleCommand.ExecuteXmlReader()Hi Daniel
I ran the validation and some of the geometries were invalid. I have now corrected these and all are OK. The db version is 817. However, I am still getting the same error. It appears to be dependant on what cordinates the query is searching:
Errors
SELECT 1
FROM wpe_misc_site, WPE_PLAN_APPLICATION
WHERE wpe_misc_site.ste_id > 0
AND WPE_PLAN_APPLICATION.APL_ste_id(+) =
wpe_misc_site.ste_id
AND mdsys.sdo_relate(ste_geometry,
MDSYS.SDO_GEOMETRY(2003, 81989, NULL,
MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),
MDSYS.SDO_ORDINATE_ARRAY(278792,187310,278876,187393)),
'mask=anyinteract querytype=window') = 'TRUE';
Substriute those coordinates for 278792,187308,278876,187393 and query works.
Any ideas??
Thanks
Chris -
Ora-1031 Insufficient Privilges.
Hi
My application is throwing the below mentioned error,when i am trying to open a tab in the application. 'A' is the schema name and the schema has the required privileges and grants. Please find below the code snippet of the package and the procedure. Request you to help me on finding what could be the exact cause of the issue
System.Data.OracleClient.OracleException: ORA-01031: insufficient privileges
ORA-06512: at "SYS.DBMS_SESSION", line 101
ORA-06512: at "A.Example", line 5
ORA-06512: at "A.Test", line 18Package Code
create or replace PACKAGE BODY Example IS
PROCEDURE set_parameter (p_name IN VARCHAR2,
p_value IN VARCHAR2) IS
BEGIN
DBMS_SESSION.set_context('parameter', p_name, p_value);
END set_parameter;
END Example;
Procedure COde
Procedure --- Test
create or replace PROCEDURE Test(USERNAME IN VARCHAR, USERTYPE IN VARCHAR, FILTER IN CLOB, SELECTEDCOLUMNS IN VARCHAR, OUTCURSOR OUT TYPES.CURSORTYPE, OUTINVIEWCOUNT OUT TYPES.CURSORTYPE) AS
SEARCHSTRING VARCHAR2(30);
QUERYSQL VARCHAR2(32767);
PARAMLIST VARCHAR2(32767);
COUNTSQL VARCHAR2(32767);
FILTERID VARCHAR(3);
WHERESQL VARCHAR(32767);
TOTALFILTERITEM NUMBER(10, 0);
MAINID NUMBER;
DETAILSID NUMBER;
BEGIN
IF FILTER IS NOT NULL THEN
GETFILTERDETAILS(XMLDOC => XMLTYPE(FILTER), ID => FILTERID, SEARCH => SEARCHSTRING);
END IF;
**Example.SET_PARAMETER('USERNAME', USERNAME);**
**Example.SET_PARAMETER('USERTYPE', USERTYPE);**Solution to this problem has been posted at least a million times in this forum.
Request you to use online resources, before asking this boring FAQ again.
Hint: roles are disabled during compilation of PL/SQL.
Sybrand Bakker
Senior Oracle DBA -
ORA-30689: improper value for ORA_DEBUG_JDWP
I'm setting up PL/SQL debugging from an ASP.Net application. I've followed all of the steps from cshay's blog. I am able to debug and connect directly from the Oracle Explorer. My problem occurs when I run debug and try to step through from the .Net code.
Some things to Note:
We have a central library that uses .Net Reflection and the System.Data.OracleClient to instatiate connections and condense some SQL querying processes so that we don't have to parameterize and write full queries in the application over and over again. I cannot change this library.
The error listed above appears when I have the following setup:
* Oracle Application Debugging is checked
* VS 2005 asp.net web app
* Using the development (local) webserver
* Exception Details: System.Data.OracleClient.OracleException: ORA-30689: improper value for ORA_DEBUG_JDWP
* Process explorer properties say that the ORA_DEBUG_JDWP variable is set to host=machineName;port=49152
* web app comes up in http://localhost:xxxx
* When I ping machineName, I get my ip address
* When I ping localhost, I get the local ip 127.0.0.1
* Oracle db 9.2.0.6
* The error occurs when my application first trys to obtain a connection to the database (just a select statement and only when I have OADebuggin turned on)
Any help on this would be appreciated. Otherwise, I'll have to figure out why my SQL Developer instance won't debug correctly.
Thank you.
shellieThanks for the quick response Christian.
1) Are you using ODAC 11g beta?
Yes I downloaded it yesterday. In Visual studio in 'about' I have:
Oracle Developer Tools for Visual Studio .NET 11.1.0.5.10 Beta
Oracle Developer Tools for Visual Studio .NET Copyright (c) 2005, 2007
2) Are you setting ORA_DEBUG_JDWP anywhere? If so, what are you setting it to?
No I am not setting it anywhere. I used process explorer and when I debug it is set to my IP address (i.e. the host of my dev environment on W2K3 and not the Unix Server hosting Oracle) and port 49152.
I've also logged on the to Unix server and from there telneted into my W2K3 server on port 49512 and got a "JDWP-handshake" response so the network looks fine.
So ... #1 is Yes and #2 is No. So I followed your instructions ... and I got some expert oracle and unix assistance when i got the following ...
There is nothing in any trc file that has anything like "kqaccd: ORA_DEBUG_JDWP". A grep "DEBUG" *.trc shows nothing anywhere.
Another bit of info .... I get a ORA_DEBUG_JDWP type of error from time to time. Seems mainly to be on connections to databases that I've connected to before. If I close VS2005 and re-open VS2005 - everything is back to normal.
I can step into and run s.p. directly from VS2005 so that's something.
(Also another thing I noticed is that even though I'm logged own as the schema owner I can not change/re-order columns in an index as they are greyed out. Also - and this is not good as I would like developers to be able to optimise their queries - you can not scroll through the list of columns in an index if the list of columns is larger than the list box. I can live without the former but the later is highly desirable.)
Thanks for your help with this Christian. (I really like ODT and can see it becoming indespensible very quickly).
Cheers,
Chris. -
OracleDataAdapter ORA-01722: Invalid Number
I am Using .NET petshop Architecture and in this architecture oraHelper class have following code.
public static DataTable ExecuteReader(string cmdText)
//Create the command and connection
OracleCommand cmd = new OracleCommand();
OracleConnection conn = new OracleConnection(CONN_STRING_NON_DTC);
try
PrepareCommand (cmd, conn, null, CommandType.Text ,cmdText ,null);
OracleDataAdapter sda = new OracleDataAdapter(cmd) ;
DataTable dt = new DataTable() ;
sda.Fill (dt);
conn.Close ();
return dt;
catch(Exception e )
conn.Close();
throw e ;
I am getting error on FILL method as under
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: Oracle.DataAccess.Client.OracleException: ORA-01722: invalid number.
Could anyone tell me whats goign wrong.
Regards
UzmaComplete Exception trace is as under
Oracle.DataAccess.Client.OracleException ORA-01722: invalid number at Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src, String procedure) at Oracle.DataAccess.Client.OracleException.HandleError(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, Object src) at Oracle.DataAccess.Client.OracleDataReader.Read() at System.Data.Common.DbDataAdapter.FillLoadDataRow(SchemaMapping mapping) at System.Data.Common.DbDataAdapter.FillFromReader(Object data, String srcTable, IDataReader dataReader, Int32 startRecord, Int32 maxRecords, DataColumn parentChapterColumn, Object parentChapterValue) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable, IDataReader dataReader) at Oracle.DataAccess.Client.OracleDataAdapter.Fill(DataTable dataTable, IDataReader dataReader) at Oracle.DataAccess.Client.OracleDataAdapter.Fill(DataTable dataTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at odptest.WebForm1.Button1_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\odptest\webform1.aspx.cs:line 66
Maybe you are looking for
-
I'm running Windows Vista 64. I create a project in Photoshop CS. I save it. The file is stored in this path: C/Program Files x86/Adobe/Photoshop CS. If Photoshop is running and I click on Open, then navigate to this location the file appears and wil
-
Embedded PDF in fixed layout ePub
Can anyone confirm if embedded pdf's are supported in a fixed layout ePub? If I create a simple free flow ePub (version 2 or 3), embed a pdf in the ePub and have a link to the pdf on a page in the ePub, clicking the link opens the pdf. However if I m
-
I can't login to imessage on my macbook pro
I try logging on and it tells me, either my apple I.D. is incorrect or it's my password. I just updated my password because of this and it hasn't done anything about letting me login to my imessage. This is also the case on my ipod touch that i just
-
HT4759 Does iCloud only work on a iphone?
Does iCloud only work with iphones? I have an Android phone.
-
ANYTHING using click wheel is VERY sluggish ??
Hi .. i just upgraded my 80 gig 5th gen ipod to the 160 ipod classic. After syncing, I went to use it for the first time, and the first thing I noticed is that when I navigated through the main menu, it was VERY sluggish and non-responsive. When I we