Error writing BLOB to a table
I have the following code:
import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.FileInputStream; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import oracle.jdbc.pool.OracleDataSource; import java.sql.PreparedStatement; public class InsertBlobData { public InsertBlobData() { } public static void main(String[] args) { try { OracleDataSource ods = new OracleDataSource(); String url = "jdbc:oracle:thin:@//<hostname>:1521/<SID>"; ods.setURL(url); ods.setUser("<user id>"); ods.setPassword("<password>"); Connection conn = ods.getConnection(); PreparedStatement insertStmt = conn.prepareStatement("insert into test_blob values (?,?)"); byte [] b = new byte[1024]; ByteArrayOutputStream b1 = new ByteArrayOutputStream(); FileInputStream f1 = new FileInputStream("test.doc"); int i; do { i = f1.read(b); b1.write(b); } while( i!= -1); ByteArrayInputStream bais = new ByteArrayInputStream(b1.toByteArray()); int len = bais.available(); System.out.println("Length of Blob data to be inserted: " + len); insertStmt.setInt(1, len); insertStmt.setBinaryStream(2, bais, bais.available()); int result = insertStmt.executeUpdate(); System.out.println("\nBlob successfully inserted"); conn.commit(); } catch (Exception e) { System.out.println("--- Error occurred --- "); e.printStackTrace(); } } }
underline Other information: underline
My table has the following structure:
test_blob
(col1 number,
col2 blob)
Database
==============
Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Test
With the Partitioning, OLAP and Data Mining options
JDBC
==============
Oracle JDBC driver: 9.2.0.6.0
JVM
===
IBM Corporation
Classic VM
1.4.2
underlineI am getting the following error:_underline_
java InsertBlobData
Length of Blob data to be inserted: 30720
--- Error occurred ---
java.sql.SQLException: ORA-01460: unimplemented or unreasonable conversion requested
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:589)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1972)
at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1119)
at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:2185)
at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:2059)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2976)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:656)
at InsertBlobData.main(InsertBlobData.java:49)
Looks like it is able to read the length of the test.doc. However, I don't understand what it is trying to convert while inserting and why.
Can any one help me out?
Thanks,
Chiru
Use a returning into variable on your insert statement, like:
INSERT INTO some_table VALUES ( empty_blob(), ... ) RETURNING blob_column_value INTO local_variable.
The empty_blob() call initializes the object, and the RETURNING clause provides you with a handle to stream in the data.
Similar Messages
-
The problem with writing BLOB arrays in table at one time?
i want to write many blobs in at one time , And i use the OCIBindArrayOfStruct()
My code is blow, I want you guys to help me find my BUG, thank you very much.
the Program always pops the ERROR message :ORA-22275: invalid LOB locator specified
STATUS status;
OCILobLocator **lArray;
lArray = new OCILobLocator*[nCount];
for (size_t i = 0;i < nCount;i++)
if((status = OCIDescriptorAlloc((dvoid *)env->envhp,(dvoid **)&lArray,
(ub4)OCI_DTYPE_LOB,(size_t)0,(dvoid **)0)) != OCI_SUCCESS)
return(status);
text sqlstats[300];
strcpy_s((char*)sqlstats,300,"insert into ");
strcat_s((char*)sqlstats,300,texTableName);
strcat_s((char*)sqlstats,300,"(TEXID,TEXNAME,TEXDATA) values (:texid,:texname,:lblob)");
OCIBind bndhp1 = (OCIBind )0;
OCIBind bndhp2 = (OCIBind )0;
OCIBind bndhp3 = (OCIBind )0;
PREPARE_RETURN(sqlstats);
BIND_CTR(bndhp1,":texid",texinfo[0].texid,30);
if ((status = OCIBindArrayOfStruct(bndhp1,env->errhp,nSize,sizeof(sb2),sizeof(ub2),sizeof(ub2))) != OCI_SUCCESS)
for(size_t j = 0;j < nCount;j++)
FREE_LOB_LOCATOR(lArray[j]);
delete[] texinfo;
char err[512];
OraError_Proc(status,err,512);
AfxMessageBox(err);
return status;
BIND_CTR(bndhp2,":texname",texinfo[0].texname,MAX_NAME);
if ((status = OCIBindArrayOfStruct(bndhp2,env->errhp,nSize,sizeof(sb2),sizeof(ub2),sizeof(ub2))) != OCI_SUCCESS)
for(size_t j = 0;j < nCount;j++)
FREE_LOB_LOCATOR(lArray[j]);
delete[] texinfo;
char err[512];
OraError_Proc(status,err,512);
AfxMessageBox(err);
return status;
if((status = OCIBindByName(env->stmthp,&bndhp3,env->errhp,
(CONST text *)":lblob",(sb4)-1,(dvoid *)lArray,(sword)-1,SQLT_BLOB,
(dvoid *)0,(ub2 *)0,(ub2 *)0,(ub4)0,(ub4 *)0,OCI_DEFAULT)) != OCI_SUCCESS)
return(status);
if ((status = OCIBindArrayOfStruct(bndhp4,env->errhp,sizeof(lArray[0]),sizeof(sb2),sizeof(ub2),sizeof(ub2))) != OCI_SUCCESS)
for(size_t j = 0;j < nCount;j++)
FREE_LOB_LOCATOR(lArray[j]);
delete[] texinfo;
char err[512];
OraError_Proc(status,err,512);
AfxMessageBox(err);
return status;
//this line will not succeed
if((status = OCIStmtExecute(env->svchp,env->stmthp,env->errhp,
(ub4)nCount,(ub4)0,(CONST OCISnapshot *)0,(OCISnapshot *)0,(ub4)OCI_DEFAULT)) != OCI_SUCCESS)
char err[512];
OraError_Proc(status,err,512);
AfxMessageBox(err);
for(size_t j = 0;j < nCount;j++)
FREE_LOB_LOCATOR(lArray[j]);
delete[] texinfo;
return status;[Edit : oops...misread the post...]
Regards -
How to move BLOBs from one table to another ??
Hi All,
I am trying to move blobs from one table to another, however my insert statement is not working. What i mean is its running, but records are not being inserted into the table.
This is my first time moving blobs, so please bear with me.
here is my insert statement:
INSERT INTO CASES.FILESTORAGE
SELECT DID,
DRENDITIONID,
DLASTMODIFIED,
DFILESIZE,
DISDELETED,
BFILEDATA // this attribute is the BLOB
FROM USSC_CASES_TMP.FILESTORAGE
WHERE DID NOT IN (SELECT DID FROM CASES.FILESTORAGE);here is the DDL for the table.
CREATE TABLE "USSC_CASES_TMP"."FILESTORAGE"
"DID" NUMBER(*,0) NOT NULL ,
"DRENDITIONID" VARCHAR2(30 CHAR) NOT NULL ,
"DLASTMODIFIED" TIMESTAMP (6),
"DFILESIZE" NUMBER(*,0),
"DISDELETED" VARCHAR2(1 CHAR),
"BFILEDATA" BLOB,
CONSTRAINT "PK_FILESTORAGE" PRIMARY KEY ("DID", "DRENDITIONID")
);CASES.FILESTORAGE table has the same DDL, but in a different schema.
Thanks in advance.If this seems rather straight forward. If the schema are exact simply execute:
inset into [destination] select * from [source] ;if something is amiss you should be throwing errors someplace* but try this:
create table [scratch table name] as select * from [source table] where [place some limit here] ;If this does not work then something someplace is very wrong and if you are not the DBA you need to get this persons attention, fairly quickly. I would do the above from sqlplus and then after each statement would:
commit;then check to see if it succeeded. -
mod_plsql: ORA-942 Execute(Temp BLOB) ORA-00942: table or view does not exist
This is the error I get in the Apache log. On the page:
"The requested URL /pls/apex/wwv_flow.accept was not found on this server."
I am sure this is just a configuration issue. I installed v1.6 with the http server off the companion cd with the db (10.2.0.1). After I had it working (did not test everything) I upgraded to 3.0.1.
I get this message when I am trying to import an application that I just exported! I am testing this for pushing code up to our production environment.
My dads.conf file looks like:
Alias /i/ /oracle/product/apps/htmldb/images/
AddType text/xml xbl
AddType text/x-components htc
<Location /pls/apex>
SetHandler pls_handler
Order deny,allow
Allow from all
AllowOverride None
PlsqlDatabaseUsername APEX_PUBLIC_USER
PlsqlDatabasePassword xxxxxx
PlsqlDatabaseConnectString 192.168.2.195:1521:idpdev ServiceNameFormat
PlsqlDefaultPage apex
PlsqlDocumentTablename wwv_flow_file_object$
PlsqlDocumentPath docs
PlsqlDocumentProcedure wwv_flow_file_mgr.process_download
PlsqlAuthenticationMode Basic
PlsqlNLSLanguage AMERICAN_AMERICA.WE8ISO8859P1
</Location>
marvel.conf file is empty
There is a log file for pl/sql.... it has the following text in it that seemed pertinent: Attempting to logon with '(unknown)'
Also a log that says this and seems to have a "special character" in it that may be causing an issue:
<1133864024 ms>6565646261636b206f6e a70726f6d707420202e2e2e646f6e65 a
<1133864024 ms>-----------------------------2444716671664
<1133864024 ms>^M
<1133864024 ms>UploadBlobDoc: readahead 27 bytes into 82f5e5c
<1133864024 ms>UploadBlobDoc : Inserting piece OCI_NEXT_PIECE
<1133864024 ms>UploadBlobDoc:Attempt to write 2048 bytes(offset 249857)
<1133864024 ms>UploadBlobDoc:OCILobWrite for 2048 bytes (offset 249857)
<1133864024 ms>UploadBlobDoc: Read-Ahead buf 82f5e5c has 27 bytes
<1133864024 ms>UploadBlobDoc : Inserting piece OCI_LAST_PIECE
<1133864024 ms>UploadBlobDoc:Attempt to write 27 bytes(offset 251905)
<1133864024 ms>UploadBlobDoc:OCILobWrite finished for 27 bytes
<1133864024 ms>ORA-942 Execute(Temp BLOB) ORA-00942: table or view does not exist
<1133864024 ms>Stale Connection due to Oracle error 942
<1133864024 ms>/pls/apex/wwv_flow.accept HTTP-404 ORA-00942: table or view does not exist
<1133864024 ms>(wpu.c,594) longjumping back to the beginning
<1133864024 ms>(wpu.c,457) cleaning up before longjmp
<1133864024 ms>(wpu.c,461) doing a rollback
<1133864024 ms>(wpcs.c, 76) Executed 'rollback' (rc=0)
<1133864024 ms>(wpcs.c, 76) Executed 'begin dbms_session.reset_package; end;' (rc=0)
<1133864024 ms>(wpd.c,1816) Going to close cursor
<1133864024 ms>Freed BLOB
<1133864024 ms>DeinitCursor
<1133864024 ms>(wpx.c,690) Shutdown has been called
<1133864024 ms>(wpx.c,702) Going to logoff
<1133864024 ms>Logoff: Closing connection due to stale connection
<1133864034 ms>[ReqEndtime: 2/Oct/2007:15:38:11]
<1133864034 ms>[ReqExecTime: 80 ms]
I did go in and update the permissions to the wwv_flow_file_objects$ table to give PUBLIC full access to that table to see if that was the problem... it wasn't.
Probably information overload, but just wanted to be thorough. Anyone have any ideas?I also have another issue... probably more of a clarification....
I run the following to stop the process:
"/oracle/product/apps/opmn/bin/opmnctl stopproc ias-component=HTTP_Server"
then
"/oracle/product/apps/opmn/bin/opmnctl startproc ias-component=HTTP_Server"
But, at that point, it says that opmn is not running.
So I try:
"/oracle/product/apps/opmn/bin/opmnctl stopall"
then
"/oracle/product/apps/opmn/bin/opmnctl start"
then
"/oracle/product/apps/opmn/bin/opmnctl startproc ias-component=HTTP_Server" and it still says that opmn is not running.
Once I start running the stops and starts, it will eventually start correctly.
I think that I am trying the steps too fast and that I probably need to wait a bit between steps since that seems to work better that way. -
Writing to a temp table in a stored procedure with dynamic sql
Hi
I am writing into a temp table with dynamic sql:
select coloum_name into #temp_table from
+
@DestinationDBName+'.information_schema.tables
and then I am trying to use #temp_table in the procedure:
select coloum_name into #anotherTable from #temp_table
but I am getting an error that #temp_table is not recognized.
Can a temp table not be used in dynamic sql ?
How can I overcome this problem ?Temp Table Can used easily in Dynamic Query in SQL Server and here is small Exmaple you can check it and do like it
CREATE PROC test
AS
BEGIN
CREATE TABLE #T1
(ID int , NAME Nvarchar(50))
CREATE TABLE #T2
(ID int , NAME Nvarchar(50))
DECLARE @SQL NVARCHAR(MAX)='Insert into #T1
SELECT database_id , Name FROM Sys.Databases
Insert into #T2 Select ID , Name from #T1 '
EXEC SP_ExecuteSQL @SQL
SELECT * FROM #T2
DROP TABLE #T1
DROP TABLE #T2
END
Exec Test
If you found My reply is helpful for you please vote me
thanks
Mustafa EL-Masry
Principle Database Administrator & DB Analyst
SQL Server MCTS-MCITP
M| +966 54 399 0968
MostafaElmasry.Wordpress.Com -
hi
When I run report in rsrt it is throwing me following error..
Messages:
ORA-01114: IO error writing block to file (block # )
SQL Error: 1114
Error while reading data; navigation is possible
>> Row: 71 Inc: NEXT_PACKAGE Prog: CL_SQL_RESULT_SET
we have tried all the options
increased the table space of temp files but still the issue is not resolved
one thing we have observed is
1 case which we are seeing (not sure if this is only because of the below case)
we see this error specifically when we run query on our infocube ZWBS_C11 (CUSTOMIZED CUBE) which has MANDATORY VARIABLE ON 0PROJECT
do this variable has anything to do with the error..
because in other cases where we have like 5 reports on same infocube..
we dont see this error in other 2 cases where we dont have this mandatory variable on project
also we see this error in several other cases like when we are doing compression of info cube zic_c03
absolutely no clue of why this is happening..and when this is happening
RegardsHi,
This issue is related Oracle database issue, check with Basis/Dba team. Oce they resolved you can run the report with selections.
If you know the table name you can check in SE14 (Data base Utility) and adjust the table. Some times it will work out.
Hope it helps you.
Riyez -
ORA-01114: IO error writing block to file
I am trying to create an index on a RAC database. I have tried this in two different schemas with two different tablespaces. I am not getting the standard "unable to extend segment" when you are out of space. I get:
Tried creating an index:
ERROR at line 1:
ORA-00603: ORACLE server session terminated by fatal error
I actually lose connection to the database.
I checked udump and I get:
ksedmp: internal or fatal error
ORA-01114: IO error writing block to file 500 (block # 625225)
ORA-27072: File I/O error
Linux-x86_64 Error: 28: No space left on device
Additional information: 4
Additional information: 625225)
Additional information: -1
1. I have 525 GBs of free space in one of my tablespace which is plenty
2. I was able to create a new table and copy the data from the existing table. Just getting the problem with creating indexes.
I do not have a file_id 500, so I guess that is an OS file number.Hi,
Your temporary tablespaces datafiles are ok? sometimes this kind of errors arise from those files:
1) Index creation , implies sorting ...therefore temporary usage
2) Cannot find the file number within dba_data_files
The (possible) reason for this, resides at the way temporary datafiles are structured: they don't allocate all disk space at creation time, like other datafiles.
For instance, you have a filesystem with 300Mb free, and you declared a 200Mb temporary datafile, check if it will have 100Mb or 300Mb freespace (Unix bdf/Linux df -k)? ... it's puzzling... if you later redefine size for temporary , adding 150Mb , the database will allow you to do that... cause it's not allocating the space, it will use the space when temporary space is required, and you'll be in troubles passing the 300Mb barrier... just at 300 Mb + 512bytes you're out of space.
Regards
Ignacio
http://oracledisect.blogspot.com -
ORA-01114: IO error writing block to file %s (block # %s)
One of my large query (has a large amount of sort) fails with the following error.
ORA-01114: IO error writing block to file %s (block # %s).
Uses Oracle 9.2 on windows 2000 server. The size of the TEMPORARY file increases and stops at 4.2 GB. This was the default TEMP file created by oracle at the time of installation. I have another 10GB of free space available on this drive (where the TEMP file exists). Information in DBA_TEMP_FILES table is given below.
Thanks in advance for helps.
Paul.
FILE_ID TABLESPACE_NAME BYTES BLOCKS STATUS RELATIVE_FNO AUT MAXBYTES MAXBLOCKS INCREMENT_BY USER_BYTES USER_BLOCKS
1 TEMP 4294967296 524288 AVAILABLE 1 YES 34359721984 4194302 1 4293918720 524160Filesystem 1k-blocks Used Available Use% Mounted on
/dev/sda2 4127108 200124 3717336 6% /
/dev/sda1 46636 14166 30062 33% /boot
none 513884 0 513884 0% /dev/shm
/dev/sda3 11052880 5697800 4793612 55% /usr
/dev/sda6 256667 37742 205673 16% /var
/dev/sdb1 35001508 33223516 0 100% /u01
/dev/sdc1 35001508 137340 33086176 1% /u02
/dev/sdd1 35001508 19748484 13475032 60% /u03
/dev/sde1 35001508 32844 33190672 1% /u04
In the /u01 are temp01.dbf (11.039.416.320) and undotbs01.dbf (2.422.218.752) located. Can I delete or truncate the temp01 file to make space on the device or not? -
ORA-01114: IO error writing block to file 101 (block # 376038) in create in
Hi
I have srange problem with create index
I have database 10.2.0.4 on HPUX
I tried to create index :
CREATE INDEX "MIGRACE"."R111800_IX1" ON "MIGRACE"."R111800" ("SPARTE", "KONR")
5 TABLESPACE "MIGR" ;
ORA-01114: IO error writing block to file 101 (block # 376038)
ORA-27072: File I/O error
HPUX-ia64 Error: 5: I/O error
Additional information: 4
Additional information: 376038
Additional information: -1
ORA-01114: IO error writing block to file 101 (block # 376038)
table "MIGRACE"."R111800" is ok , is readable and doesn't have any LOB
SPARTE VARCHAR2(4)
KTONR VARCHAR2(11)
SUBNR VARCHAR2(1)
TXTGRP VARCHAR2(8)
PRODMON VARCHAR2(6)
WERT NUMBER(13,2)
I don't have in database file number 101 , all datafile are noextensible , can You help me where could be peoblwm ?
Thank You
Branobranislav.dobrotka wrote:
Hi
I have srange problem with create index
I have database 10.2.0.4 on HPUX
I tried to create index :
CREATE INDEX "MIGRACE"."R111800_IX1" ON "MIGRACE"."R111800" ("SPARTE", "KONR")
5 TABLESPACE "MIGR" ;
ORA-01114: IO error writing block to file 101 (block # 376038)
ORA-27072: File I/O error
HPUX-ia64 Error: 5: I/O error
Additional information: 4
Additional information: 376038
Additional information: -1
ORA-01114: IO error writing block to file 101 (block # 376038)
table "MIGRACE"."R111800" is ok , is readable and doesn't have any LOB
SPARTE VARCHAR2(4)
KTONR VARCHAR2(11)
SUBNR VARCHAR2(1)
TXTGRP VARCHAR2(8)
PRODMON VARCHAR2(6)
WERT NUMBER(13,2)
I don't have in database file number 101 , all datafile are noextensible , can You help me where could be peoblwm ?
Thank You
BranoOracle is victim; not culprit.
OS error.
is disk volume full?
any clues in OS messages file? -
MCOD Installation - Error ORA-1403 when accessing table SAPUSER
Hello.
We are in middle of a MCOD installation of 4.7 x 2.00 SR1 with BW 3.1 on Windows 2003/Oracle.
BW 3.1 is up and running, while 4.7 fails on R3loads.
Following are SAP000.log and SAPUSER.log files:
SAP000.log
===============================
D:\usr\sap\D11\SYS\exe\run/R3load.exe: START OF LOG: 20060507193904
D:\usr\sap\D11\SYS\exe\run/R3load.exe: sccsid @(#) $Id: //bas/640_REL/src/R3ld/R3load/R3ldmain.c#4 $ SAP
D:\usr\sap\D11\SYS\exe\run/R3load.exe: version R6.40/V1.4
D:\usr\sap\D11\SYS\exe\run/R3load.exe -dbcodepage 1100 -i D:\Program Files\sapinst_instdir\R3E_472SR1_ABAP_NUC\DB/SAP0000.cmd -l D:\Program Files\sapinst_instdir\R3E_472SR1_ABAP_NUC\DB/SAP0000.log -stop_on_error
DbSl Trace: ORA-1403 when accessing table SAPUSER
(DB) INFO: connected to DB
(DB) INFO: DbSlControl(DBSL_CMD_NLS_CHARACTERSET_GET): WE8DEC
(DB) ERROR: DDL statement failed
(DROP TABLE "REPOLOAD")
DbSlExecute: rc = 103
(SQL error 942)
error message returned by DbSl:
ORA-00942: table or view does not exist
(IMP) INFO: a failed DROP attempt is not necessarily a problem
DbSl Trace: ORA-406 occured when executing SQL statement (parse error offset = 0)
(DB) ERROR: DDL statement failed
(CREATE TABLE "REPOLOAD" ( "PROGNAME" VARCHAR2(40) DEFAULT ' ' NOT NULL , "R3STATE" VARCHAR2(1) DEFAULT ' ' NOT NULL , "MACH" NUMBER(5) DEFAULT 0 NOT NULL , "UNAM" VARCHAR2(12) DEFAULT ' ' NOT NULL , "UDAT" VARCHAR2(8) DEFAULT '00000000' NOT NULL , "UTIME" VARCHAR2(6) DEFAULT '000000' NOT NULL , "L_DATALG" NUMBER(10) DEFAULT 0 NOT NULL , "Q_DATALG" NUMBER(10) DEFAULT 0 NOT NULL , "SDAT" VARCHAR2(8) DEFAULT '00000000' NOT NULL , "STIME" VARCHAR2(6) DEFAULT '000000' NOT NULL , "MINOR_VERS" NUMBER(5) DEFAULT 0 NOT NULL , "MAJOR_VERS" NUMBER(10) DEFAULT 0 NOT NULL , "LDATA" BLOB , "QDATA" BLOB ) TABLESPACE PSAPD11620 STORAGE (INITIAL 0000000016K NEXT 0000040960K MINEXTENTS 0000000001 MAXEXTENTS 2147483645 PCTINCREASE 0 ) )
DbSlExecute: rc = 99
(SQL error 406)
error message returned by DbSl:
ORA-00406: COMPATIBLE parameter needs to be 9.2.0.0.0 or greater
(DB) INFO: disconnected from DB
D:\usr\sap\D11\SYS\exe\run/R3load.exe: job finished with 1 error(s)
D:\usr\sap\D11\SYS\exe\run/R3load.exe: END OF LOG: 20060507193905
========================================
SAPUSER.log
==============================
D:\usr\sap\D11\SYS\exe\run/R3load.exe: START OF LOG: 20060507193834
D:\usr\sap\D11\SYS\exe\run/R3load.exe: sccsid @(#) $Id: //bas/640_REL/src/R3ld/R3load/R3ldmain.c#4 $ SAP
D:\usr\sap\D11\SYS\exe\run/R3load.exe: version R6.40/V1.4
D:\usr\sap\D11\SYS\exe\run/R3load.exe -dbcodepage 1100 -i D:\Program Files\sapinst_instdir\R3E_472SR1_ABAP_NUC\DB/SAPUSER.cmd -l D:\Program Files\sapinst_instdir\R3E_472SR1_ABAP_NUC\DB/SAPUSER.log -stop_on_error
DbSl Trace: ORA-1403 when accessing table SAPUSER
(DB) INFO: connected to DB
(DB) INFO: DbSlControl(DBSL_CMD_NLS_CHARACTERSET_GET): WE8DEC
(DB) INFO: disconnected from DB
D:\usr\sap\D11\SYS\exe\run/R3load.exe: job completed
D:\usr\sap\D11\SYS\exe\run/R3load.exe: END OF LOG: 20060507193835
==============================================
Kindly look into it.
Thanks
KTHi KT,
Actually the problem is not ORA-1403, but the <i>ORA-00406: COMPATIBLE parameter needs to be 9.2.0.0.0 or greater</i>.
Please update the COMPATIBLE parameter in your init<SID>.ora file and restart the database. This should fix your problem.
Kind regards,
Alexander Webster
P.S. points are appreciated if my reply was helpfull.
Message was edited by: Alexander Webster
Removed typo -
" Error when inserting in PSA table RSTSODSPART" when loading into PSA
Hello,
Did anyone encounter something similar, and found a solution ?
BI 7.0 - EnhP 1 - SP5
When loading data from R/3 into PSA, we encounter following error message:
" Error when inserting in PSA table RSTSODSPART"
===============================================================
- the first datapackage is written successfully to PSA,
but from the second datapackage onwards the error message pops-up
" Error when inserting in PSA table RSTSODSPART"
- The original dataselection in the infopackage is somewhere stored
If the selection in the InfoPackage is reduced (e.g. only one document i.o. a period)
it stil starts loading according the original selection (the month)
- If we create a new InfoPackage and select very few data (only one datapackage)
then we can load to PSA succesfully, but when we load to DSO we can't activate the DSO.
- We remarked that:
Two versions of the PSA exist for that datasource 0FI_GL_40:
a Table(/BIC/B0000555000) in version 1 exists,
a Table(/BIC/B0000555001) in version 2 exists
Thanks in advance,
Best regardsHello All,
We had a problem similar to what Ilse Depoortere describes. The problem happens in our BW QA system a few days/weeks after it has been copied from Production. Data loads start failing with these two error messages:
RSM2 851 - Error when writing in PSA (Caller 32)
RSAR 130 - Error 7 when adding to PSA (Caller 70)
We have just implemented the fix described in note 1340371 (replaced the LIB_DBSL with patch level 247), and the problem is gone. Failed data load process chains can be restarted and finish successfully.
This has been a really useful discussion, thanks all! And thanks to my coworker Bob who found it.
Vince Vajda -
I am using a weblogic 8.1 sp4 and is getting the following error
=====
java.sql.SQLException: Transaction BEA1-00A0C7390CDF3A289F82 not active anymore. tx status = Marked rollback. [Reason=weblogic.ejb20.InternalException: Error writing from flushModified]
at weblogic.jdbc.jts.Driver.getTransaction(Driver.java:430)
at weblogic.jdbc.jts.Driver.connect(Driver.java:127)
at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:305)
=====
Is this a bug in Weblogic ?
This happens when the the the container managed entity bean has the following element.
<cache-strategy>read-write</cache-strategy>
This does not happend if the following value is set
<cache-strategy>read-only</cache-strategy>
Any clues on a resolution to this problem ?
Thanks in advance.I have similar problem with my application. I'm using Weblogic 8.1 sp4 and MS SQL 2000 sp 3 and Hibernate 2.8 to connect to DB. Table causing exception is replicated bidirectional with transactional replication. I get trace of SQL transactions made during user logging process and noticed update querry which is rolled back. There are only select querries before. I wonder if synchronizing triggers used by replication could be the problem. Can it somehow reset the session?
Stack Trace lools like this below:
30328 [Thread-5] ERROR pl.computerland.snu.repo.remote.external.RemoteRepoFactoryWrapper - operation():
pl.computerland.snu.repo.remote.RemoteRepoException: java.rmi.RemoteException: SOAP Fault:javax.xml.rpc.soap.SOAPFaultException: EJB Exception: ; nested exception is:
javax.ejb.TransactionRolledbackLocalException: Exception during remove.; nested exception is: javax.ejb.EJBException: nested exception is: java.lang.Exception: SQLException on insert: java.sql.SQLException: Transaction BEA1-00042F6B457BAFFD2C3E not active anymore. tx status = Marked rollback. [Reason=weblogic.transaction.internal.AppSetRollbackOnlyException]
Detail:
<detail>
EJB Exception: ; nested exception is:
javax.ejb.TransactionRolledbackLocalException: Exception during remove.; nested exception is: javax.ejb.EJBException: nested exception is: java.lang.Exception: SQLException on insert: java.sql.SQLException: Transaction BEA1-00042F6B457BAFFD2C3E not active anymore. tx status = Marked rollback. [Reason=weblogic.transaction.internal.AppSetRollbackOnlyException] </detail>; nested exception is:
javax.xml.rpc.soap.SOAPFaultException: EJB Exception: ; nested exception is:
javax.ejb.TransactionRolledbackLocalException: Exception during remove.; nested exception is: javax.ejb.EJBException: nested exception is: java.lang.Exception: SQLException on insert: java.sql.SQLException: Transaction BEA1-00042F6B457BAFFD2C3E not active anymore. tx status = Marked rollback. [Reason=weblogic.transaction.internal.AppSetRollbackOnlyException]
at pl.computerland.snu.repo.remote.external.RemoteRepoFactory.login(RemoteRepoFactory.java:116)
at pl.computerland.snu.repo.remote.external.RemoteRepoFactoryWrapper$ExternConnection.operation(RemoteRepoFactoryWrapper.java:301)
at pl.computerland.snu.rfi.services.TaskService$1.run(TaskService.java:51)
at java.lang.Thread.run(Unknown Source)
Caused by: java.rmi.RemoteException: SOAP Fault:javax.xml.rpc.soap.SOAPFaultException: EJB Exception: ; nested exception is:
javax.ejb.TransactionRolledbackLocalException: Exception during remove.; nested exception is: javax.ejb.EJBException: nested exception is: java.lang.Exception: SQLException on insert: java.sql.SQLException: Transaction BEA1-00042F6B457BAFFD2C3E not active anymore. tx status = Marked rollback. [Reason=weblogic.transaction.internal.AppSetRollbackOnlyException]
Detail:
<detail>
EJB Exception: ; nested exception is:
javax.ejb.TransactionRolledbackLocalException: Exception during remove.; nested exception is: javax.ejb.EJBException: nested exception is: java.lang.Exception: SQLException on insert: java.sql.SQLException: Transaction BEA1-00042F6B457BAFFD2C3E not active anymore. tx status = Marked rollback. [Reason=weblogic.transaction.internal.AppSetRollbackOnlyException] </detail>; nested exception is:
javax.xml.rpc.soap.SOAPFaultException: EJB Exception: ; nested exception is:
javax.ejb.TransactionRolledbackLocalException: Exception during remove.; nested exception is: javax.ejb.EJBException: nested exception is: java.lang.Exception: SQLException on insert: java.sql.SQLException: Transaction BEA1-00042F6B457BAFFD2C3E not active anymore. tx status = Marked rollback. [Reason=weblogic.transaction.internal.AppSetRollbackOnlyException]
at pl.computerland.snu.rfi.client.transfer.RepositoryExtSoap_Stub.login(RepositoryExtSoap_Stub.java:241)
at pl.computerland.snu.rfi.client.transfer.RepositoryExtSoap_Stub.login(RepositoryExtSoap_Stub.java:258)
at pl.computerland.snu.repo.remote.external.RemoteRepoFactory.login(RemoteRepoFactory.java:114)
... 3 more
Caused by: javax.xml.rpc.soap.SOAPFaultException: EJB Exception: ; nested exception is:
javax.ejb.TransactionRolledbackLocalException: Exception during remove.; nested exception is: javax.ejb.EJBException: nested exception is: java.lang.Exception: SQLException on insert: java.sql.SQLException: Transaction BEA1-00042F6B457BAFFD2C3E not active anymore. tx status = Marked rollback. [Reason=weblogic.transaction.internal.AppSetRollbackOnlyException]
at weblogic.webservice.core.ClientDispatcher.receive(ClientDispatcher.java:313)
at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:144)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:457)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:443)
at weblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:303)
at pl.computerland.snu.rfi.client.transfer.RepositoryExtSoap_Stub.login(RepositoryExtSoap_Stub.java:236)
... 5 more -
Error when executing statement for table/stored proc. : ORA-00911
Hi All,
I am posting IDOC->XI->JDBC, approx 5000 Idocs.
But few messages are giving following error in XI-_SXMB_MONI
Can any one guide me what is the cause of error? I check whole Idoc data I am not able to see bad character? can any once guide me what are the bad character in XML to post data in oracle? so that i can search in XML and how to avoide this error.
"com.sap.aii.af.ra.ms.api.MessagingException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'HRP1001' (structure 'INSERT_PAD34'): java.sql.SQLException: ORA-00911: invalid character"> I am talking about following IDOC.<ZRMD_A06> ->
> <E1PLOGI SEGMENT="1">-> <E1PITYP SEGMENT="1"> ->
> <E1PAD34 SEGMENT="1"> -><PROZT>0.00 #</PROZT>.
> Can we remove this # during message mapping in XI??
sure you can remove it using Replace function or by writing UDF.
as I am seing # is last character..<b>so remove # with " " (single space) and then use the TRIM fucntion.</b>
Thanks
Farooq.
*<b>Rewards points if you find it useful*</b> -
Error writing from flushModified
Friends,
Lately I am seeing this exception so often on my server. We are using BMP for
our entity beans. WL is 8.1Sp2.
I would much appreciate if any one can share his/her opinion/solution for the
issue.
Regards,
-Janiz
EJB Exception: ; nested exception is:
javax.ejb.TransactionRolledbackLocalException: Error writing from flushModified:
weblogic.ejb20.InternalException: Error writing from flushModified
at weblogic.ejb20.manager.BeanManagedPersistenceManager.scalarFinder(BeanManagedPersistenceManager.java:77)
at weblogic.ejb20.manager.BaseEntityManager.scalarFinder(BaseEntityManager.java:1580)
at weblogic.ejb20.manager.BaseEntityManager.localScalarFinder(BaseEntityManager.java:1524)
at weblogic.ejb20.internal.EntityEJBLocalHome.finder(EntityEJBLocalHome.java:463)
at com.abc.ejb.Profile_pxe7qb_LocalHomeImpl.findByUserId(Profile_pxe7qb_LocalHomeImpl.java:122)
at com.abc.ejb.MyEJB.getContactInfo(Unknown Source)
at com.abc.ejb.MyEJB.getUser(Unknown Source)
at com.abc.ejb.CustomerFacade_u478p9_EOImpl.getUser(CustomerFacade_u478p9_EOImpl.java:812)
at com.abc.ejb.CustomerFacade_u478p9_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:477)
at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:108)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:420)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:353)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:144)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:415)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)My experience with this exception is that, the ejbStore() runs sql update statement unnecessarily and that cause very high chance of deadlocking on a given db table or db row. In the Oracle db, it actually dump 2 trace files and the datetime is very close to the weblogic server log exception (if both servers got the time sync-ed).
We can simply run the ejbsession method involved with the same value in a finite tight loop(100 loops?) from 2~3 jsp pages submissions, we should be able to reproduce the problem easily.
The solution would be using lazy update inside relevant BMP ejbbeans' ejbStore(). This means using a boolean variable to keep track bean fields changed. if nothing changed, the flag will make ejbStore() running like noop, for eg,
if(!isDirty) return;
so far, this solution works well and greatly reduce the chances of running unnecessarily sql update inside ejbStore().
To Oracle, any deadlock will cause 1 of the db connection corrupted or closed silently. This seems not able to be detected by testOnReserve on jdbc connection pool.
Hope this help. Also hope more detailed reply can clarify doubts.
My weblogic is version 8.1SP2 and Oracle 9.2. -
Adobe tables3.0- Error Writing to registration database
hello,
i am facing following error while inserting adobe tables into my pagemaker file.
Initialization of OLE2 failed.
Error Writing to registration database.
this error comes only when i looged on as domain user by administrator login it works fine.
my plateform is windows xp . application is pagemaker7.0
Can anybody help me?
Thanks
HariomApologies for the delay in replying - my internet connection is now running reliably at a full 8Mb - whoopee!!
It seems Adobe Table Editor will not run correctly or at all if the user has a Restricted Account on WinXP.
Errors such as:
"Initialisation of OLE 2 failed" or Error writing to registration database" while loading occur.
They may be followed by request to make a report to Microsoft.
The solution appears to be for the Administrator to use RegEdt32 to give "Everyone" full control to the following keys in the Registry:
HKEY_CLASSES_ROOT\CLSID\{60CED040-7835-11cf-8D64-000021508639}
HKEY_CLASSES_ROOT\.tbl HKEY_CLASSES_ROOT\.tml
HKEY_CLASSES_ROOT\AdobeTable3
HKEY_CLASSES_ROOT\AdobeTable3.TableObject
HKEY_CLASSES_ROOT\AdobeTable3.TemplateObject
HKEY_CLASSES_ROOT\Applications\Table30.exe
by selecting: Permissions -> Security -> Everyone -> Full control
Re-boot the PC when you have made all the changes. Note: always backup the Registry before making alterations.
On 25th May '05, Adobe issued Document 328878 about Adobe Table errors:
Error "Cannot Flush Volume" when you export a table as EPS (Adobe Table 3.0x on Windows)
Make sure your default printer is a PostScript Printer. Note that the printer hardware does not actually have to be attached to the computer.
Be sure you have downloaded the latest update to Adobe Table Editor
(3.04). Users have reported version 3.05, but this not available for
download, probably being bundled with PM7.0.2. The differences between
3.04 and 3.05 do not appear to be significant.
Save your tables as EPS (File -> Export -> Graphic -> EPS
(Don't include fonts)), then use File>Place to bring those EPS into
PageMaker. This is the least problematic option when creating PDFs.
Do not copy/paste or Insert Object from Table to PageMaker. You may not only experience the same moving, cropping, or disappearing problem Excel and Word users encounter, but will find creating PDFs problematic.
Hope this helps.
Iechyd da! John
221:04 11/07/2009 BST
Maybe you are looking for
-
An issue that has come up over and over again on several FrameMaker and Acrobat/PDF email lists as well on the corresponding Adobe User-to-User forums is that of creation of PDF files. FrameMaker 5.5.6 and 6 have what looks like a convenient feature
-
Excel 2013 (pro plus) extermely slow with sheets with more than 100 checkboxes
I have a customer with Excel 2013 (pro plus). They use sheets with more than 100 checkboxes in it. The sheet is extremly slow to display. When a user starts scrolling down, the checkboxes appear very slowly, one by one. It happens with all users, on
-
Parsing Problems? ImageIcon and BufferedImage
Hi to everyone Could I ask if I will to send ImageIcon with BufferedImage as its arguement. Then what should I receieve from the server? ImageIcon only or ImageIcon with BufferedImage as its arugement? Any help will be appreciated. Thank You.
-
freelance developer looking for short term labview projects. based in the uk, 6+ years labview experience including data acquisition and analysis, simulation, experiment control software and image processing. All projects considered.
-
I can't find any driver for Pavillion G4-2004TU Win-32 bit
I want to update my graphic driver, but there aren't any for Win-32 bit Where can I find them? Please help me