Data cartridge error
after I generate signature for every image insert into the database, I directly retrive them and compare them , but I got exception like:
exception raised java.sql.SQLException: ORA-29400: data cartridge error
IMG-00923: Signature is empty
ORA-06512: at "ORDSYS.ORDIMAGESIGNATURE", line 5
ORA-06512: at line 1
Image matching score computation failed
Done.
my source code like:
try
{ // try
// contains OrdImageSignature object
Statement stmt = con.createStatement();
OracleResultSet get_sig_result1= (OracleResultSet) stmt.executeQuery("select signature from photos where id =" + 9);
get_sig_result1.next();
OrdImageSignature img_sig1 = (OrdImageSignature)get_sig_result1.getCustomDatum(1,OrdImageSignature.getFactory());
OracleResultSet get_sig_result2= (OracleResultSet) stmt.executeQuery("select signature from photos where id =" + 10);
get_sig_result2.next();
OrdImageSignature img_sig2 = (OrdImageSignature)get_sig_result2.getCustomDatum(1,OrdImageSignature.getFactory());
float gscore
= OrdImageSignature.evaluateScore
( img_sig1, img_sig2, "color=1" );
System.out.println("score value (global color comparison):" + gscore);
float lscore
= OrdImageSignature.evaluateScore
( img_sig1, img_sig2, "color=1 location=1" );
System.out.println("Score value (local color comparison):" + lscore);
get_sig_result2.close();
get_sig_result1.close();
stmt.close();
} // try
catch(Exception e)
{ // catch
System.out.println("exception raised " + e);
System.out.println("Image matching score computation failed");
} // catch (Exception e)
I just want to make my question clear, so I put my code to create signature here:
//initialization
stmt = (OraclePreparedStatement)conn.prepareStatement(
"insert into photos ( id , description , sequence ,image, thumb, signature ) " +
" values (?,?,?,ORDSYS.ORDImage.init(),ORDSYS.ORDImage.init(),ORDSYS.ORDImageSignature.init())" );
stmt = (OraclePreparedStatement)conn.prepareStatement(
"select image ,thumb ,signature from photos where id = ? for update" );
stmt.setString( 1, id );
rset = (OracleResultSet)stmt.executeQuery();
if ( !rset.next() )
throw new ServletException( "new row not found in table" );
OrdImage image =
(OrdImage)rset.getCustomDatum( 1, OrdImage.getFactory());
OrdImage thumb =
(OrdImage)rset.getCustomDatum( 2, OrdImage.getFactory());
OrdImageSignature signature =
(OrdImageSignature)rset.getCustomDatum(3,OrdImageSignature.getFactory());
//after load photo to image, generate image, thumb and signature
try
image.processCopy( "maxScale=50,50", thumb );
catch ( SQLException e )
thumb.deleteContent();
thumb.setContentLength( 0 );
System.out.println("after processCopy to make the thumb");
try{
image.setProperties();
image.importData(ctx);
signature.generateSignature(image);
catch(Exception e)
{ // catch
System.out.println("exception raised " + e);
System.out.println("image signature generation failed");
} // catch
//then , save into database
stmt = (OraclePreparedStatement)conn.prepareStatement(
"update photos set image = ? where id = ? " );
stmt.setCustomDatum( 1, image );
stmt.setString( 2, id );
stmt.execute();
stmt.close();
System.out.println("after update image");
stmt = (OraclePreparedStatement)conn.prepareStatement(
"update photos set thumb = ? where id = ? " );
stmt.setCustomDatum( 1, thumb);
stmt.setString( 2, id );
stmt.execute();
stmt.close();
System.out.println("after update thumb");
stmt = (OraclePreparedStatement)conn.prepareCall(
"update photos set signature = ? where id =? ");
stmt.setCustomDatum(1,signature);
stmt.setString( 2, id );
stmt.execute();
stmt.close() ;
System.out.println("after update signature");
//then, go back to my last post to retrive signature and compare. I got the errors.
can anyone help me? thanks.
Similar Messages
-
ORA-29400: data cartridge error/IMG-00703: unable to read image data error
Oracle Database 10g Enterprise Edition Release 10.2.0.2.0
ORA-29400: data cartridge error
IMG-00703: unable to read image data
ORA-06512: at "ORDSYS.ORDIMERRORCODES", line 75
ORA-06512: at "ORDSYS.ORDIMERRORCODES", line 65
ORA-06512: at "ORDSYS.ORDIMG_PKG", line 37
ORA-06512: at "ORDSYS.ORDIMAGE", line 927
is raised when the following trigger is processing certain JPGs (example). Other JPGs are handled as expected:
create or replace trigger photo_size_trg
before insert or update on photos
for each row
declare
photo_width integer;
begin
-- Check to see if the new photograph is different from the old one... --
if dbms_lob.compare(:old.photo, :new.photo) != 0
then
-- ...if so, check to see if it's wider than the desired 250 pixel --
-- maximum... --
photo_width := to_number(ordImage.getMetadata(:new.photo)(1).extract('/ordImageAttributes/width/text()').getStringVal());
if photo_width > 250
then
-- ...and if so, apply an image transform that will resize to the photo --
-- to a maximum of 250 pixels wide, keeping the original aspect ratio. --
-- There doesn't seem to be an elegant way of specifying a constraint --
-- in one dimension like this, so the height is specifed as a large --
-- enough value to cover all practical contingencies. --
ordImage.process(:new.photo, 'maxScale=250 10000');
end if;
end if;
end;Any thoughts/suggestions?hi,
I am getting following error,kindly help me out to rectify this ..
thank you
ORA-29400: data cartridge error
ORA-00600: internal error code, arguments: [kokbCollTerminate], [13], [], [], [], [], [], [] -
Hi,everyone,
I had installed R Enterprise in my Oracle 11.2.0.1 base on win7,using the R 2.13.2, ORE 1.1, I can using the part function: like
library(ORE)
options(STERM='iESS', str.dendrogram.last="'", editor='emacsclient.exe', show.error.locations=TRUE)
> ore.connect(user = "RQUSER",password = "RQUSERpsw",conn_string = "", all = TRUE)
> ore.is.connected()
[1] TRUE
> ore.ls()
[1] "IRIS_TABLE"
> demo(package = "ORE")
Demos in package 'ORE':
aggregate Aggregation
analysis Basic analysis & data processing operations
basic Basic connectivity to database
binning Binning logic
columnfns Column functions
cor Correlation matrix
crosstab Frequency cross tabulations
derived Handling of derived columns
distributions Distribution, density, and quantile functions
do_eval Embedded R processing
freqanalysis Frequency cross tabulations
graphics Demonstrates visual analysis
group_apply Embedded R processing by group
hypothesis Hyphothesis testing functions
matrix Matrix related operations
nulls Handling of NULL in SQL vs. NA in R
push_pull RDBMS <-> R data transfer
rank Attributed-based ranking of observations
reg Ordinary least squares linear regression
row_apply Embedded R processing by row chunks
sql_like Mapping of R to SQL commands
stepwise Stepwise OLS linear regression
summary Summary functionality
table_apply Embedded R processing of entire table
> demo("aggregate",package = "ORE")
demo(aggregate)
---- ~~~~~~~~~
Type <Return> to start : Return
> #
> # O R A C L E R E N T E R P R I S E S A M P L E L I B R A R Y
> #
> # Name: aggregate.R
> # Description: Demonstrates aggregations
> # See also summary.R
> #
> #
> #
>
> ## Set page width
> options(width = 80)
> # List all accessible tables and views in the Oracle database
> ore.ls()
[1] "IRIS_TABLE"
> # Create a new table called IRIS_TABLE in the Oracle database
> # using the built-in iris data.frame
>
> # First remove previously created IRIS_TABLE objects from the
> # global environment and the database
> if (exists("IRIS_TABLE", globalenv(), inherits = FALSE))
+ rm("IRIS_TABLE", envir = globalenv())
> ore.drop(table = "IRIS_TABLE")
> # Create the table
> ore.create(iris, table = "IRIS_TABLE")
> # Show the updated list of accessible table and views
> ore.ls()
[1] "IRIS_TABLE"
> # Display the class of IRIS_TABLE and where it can be found in
> # the search path
> class(IRIS_TABLE)
[1] "ore.frame"
attr(,"package")
[1] "OREbase"
> search()
[1] ".GlobalEnv" "ore:RQUSER" "ESSR"
[4] "package:ORE" "package:ORExml" "package:OREeda"
[7] "package:OREgraphics" "package:OREstats" "package:MASS"
[10] "package:OREbase" "package:ROracle" "package:DBI"
[13] "package:stats" "package:graphics" "package:grDevices"
[16] "package:utils" "package:datasets" "package:methods"
[19] "Autoloads" "package:base"
> find("IRIS_TABLE")
[1] "ore:RQUSER"
> # Select count(Petal.Length) group by species
> x = aggregate(IRIS_TABLE$Petal.Length,
+ by = list(species = IRIS_TABLE$Species),
+ FUN = length)
> class(x)
[1] "ore.frame"
attr(,"package")
[1] "OREbase"
> x
species x
1 setosa 50
2 versicolor 50
3 virginica 50
> # Repeat FUN = summary, mean, min, max, sd, median, IQR
> aggregate(IRIS_TABLE$Petal.Length, by = list(species = IRIS_TABLE$Species),
+ FUN = summary)
species Min. 1st Qu. Median Mean 3rd Qu. Max. NA's
1 setosa 1.0 1.4 1.50 1.462 1.575 1.9 0
2 versicolor 3.0 4.0 4.35 4.260 4.600 5.1 0
3 virginica 4.5 5.1 5.55 5.552 5.875 6.9 0
> aggregate(IRIS_TABLE$Petal.Length, by = list(species = IRIS_TABLE$Species),
+ FUN = mean)
species x
1 setosa 1.462
2 versicolor 4.260
3 virginica 5.552
> aggregate(IRIS_TABLE$Petal.Length, by = list(species = IRIS_TABLE$Species),
+ FUN = min)
species x
1 setosa 1.0
2 versicolor 3.0
3 virginica 4.5
> aggregate(IRIS_TABLE$Petal.Length, by = list(species = IRIS_TABLE$Species),
+ FUN = max)
species x
1 setosa 1.9
2 versicolor 5.1
3 virginica 6.9
> aggregate(IRIS_TABLE$Petal.Length, by = list(species = IRIS_TABLE$Species),
+ FUN = sd)
species x
1 setosa 0.1736640
2 versicolor 0.4699110
3 virginica 0.5518947
> aggregate(IRIS_TABLE$Petal.Length, by = list(species = IRIS_TABLE$Species),
+ FUN = median)
species x
1 setosa 1.50
2 versicolor 4.35
3 virginica 5.55
> aggregate(IRIS_TABLE$Petal.Length, by = list(species = IRIS_TABLE$Species),
+ FUN = IQR)
species x
1 setosa 0.175
2 versicolor 0.600
3 virginica 0.775
> # More than one grouping column
> x = aggregate(IRIS_TABLE$Petal.Length,
+ by = list(species = IRIS_TABLE$Species,
+ width = IRIS_TABLE$Petal.Width),
+ FUN = length)
> x
species width x
1 setosa 0.1 5
2 setosa 0.2 29
3 setosa 0.3 7
4 setosa 0.4 7
5 setosa 0.5 1
6 setosa 0.6 1
7 versicolor 1.0 7
8 versicolor 1.1 3
9 versicolor 1.2 5
10 versicolor 1.3 13
11 versicolor 1.4 7
12 virginica 1.4 1
13 versicolor 1.5 10
14 virginica 1.5 2
15 versicolor 1.6 3
16 virginica 1.6 1
17 versicolor 1.7 1
18 virginica 1.7 1
19 versicolor 1.8 1
20 virginica 1.8 11
21 virginica 1.9 5
22 virginica 2.0 6
23 virginica 2.1 6
24 virginica 2.2 3
25 virginica 2.3 8
26 virginica 2.4 3
27 virginica 2.5 3
> # Sort the result by ascending value of count
> ore.sort(data = x, by = "x")
species width x
1 virginica 1.4 1
2 virginica 1.7 1
3 versicolor 1.7 1
4 virginica 1.6 1
5 setosa 0.5 1
6 setosa 0.6 1
7 versicolor 1.8 1
8 virginica 1.5 2
9 versicolor 1.1 3
10 virginica 2.4 3
11 virginica 2.5 3
12 virginica 2.2 3
13 versicolor 1.6 3
14 setosa 0.1 5
15 virginica 1.9 5
16 versicolor 1.2 5
17 virginica 2.0 6
18 virginica 2.1 6
19 setosa 0.3 7
20 versicolor 1.4 7
21 setosa 0.4 7
22 versicolor 1.0 7
23 virginica 2.3 8
24 versicolor 1.5 10
25 virginica 1.8 11
26 versicolor 1.3 13
27 setosa 0.2 29
> # by descending value
> ore.sort(data = x, by = "x", reverse = TRUE)
species width x
1 setosa 0.2 29
2 versicolor 1.3 13
3 virginica 1.8 11
4 versicolor 1.5 10
5 virginica 2.3 8
6 setosa 0.4 7
7 setosa 0.3 7
8 versicolor 1.0 7
9 versicolor 1.4 7
10 virginica 2.1 6
11 virginica 2.0 6
12 virginica 1.9 5
13 versicolor 1.2 5
14 setosa 0.1 5
15 versicolor 1.6 3
16 versicolor 1.1 3
17 virginica 2.4 3
18 virginica 2.5 3
19 virginica 2.2 3
20 virginica 1.5 2
21 virginica 1.6 1
22 virginica 1.4 1
23 setosa 0.6 1
24 setosa 0.5 1
25 versicolor 1.8 1
26 virginica 1.7 1
27 versicolor 1.7 1
> # Preserve just 1 row for duplicate x's
> ore.sort(data = x, by = "x", unique.keys = TRUE)
species width x
1 setosa 0.5 1
2 virginica 1.5 2
3 versicolor 1.1 3
4 setosa 0.1 5
5 virginica 2.0 6
6 setosa 0.3 7
7 virginica 2.3 8
8 versicolor 1.5 10
9 virginica 1.8 11
10 versicolor 1.3 13
11 setosa 0.2 29
> ore.sort(data = x, by = "x", unique.keys = TRUE, unique.data = TRUE)
species width x
1 setosa 0.5 1
2 virginica 1.5 2
3 versicolor 1.1 3
4 setosa 0.1 5
5 virginica 2.0 6
6 setosa 0.3 7
7 virginica 2.3 8
8 versicolor 1.5 10
9 virginica 1.8 11
10 versicolor 1.3 13
11 setosa 0.2 29
but when I use the following The ore.doEval command get the errors,
> ore.doEval(function() { 123 })
Error in .oci.GetQuery(conn, statement, ...) :
ORA-29400: data cartridge error
ORA-24323: ?????
ORA-06512: at "RQSYS.RQEVALIMPL", line 23
ORA-06512: at line 4
and I try to run the demo("row_apply", package="ORE") get the same errors:
demo("row_apply",package = "ORE")
demo(row_apply)
---- ~~~~~~~~~
Type <Return> to start : Return
> #
> # O R A C L E R E N T E R P R I S E S A M P L E L I B R A R Y
> #
> # Name: row_apply.R
> # Description: Execute R code on each row
> #
> #
>
> ## Set page width
> options(width = 80)
> # List all accessible tables and views in the Oracle database
> ore.ls()
[1] "IRIS_TABLE"
> # Create a new table called IRIS_TABLE in the Oracle database
> # using the built-in iris data.frame
>
> # First remove previously created IRIS_TABLE objects from the
> # global environment and the database
> if (exists("IRIS_TABLE", globalenv(), inherits = FALSE))
+ rm("IRIS_TABLE", envir = globalenv())
> ore.drop(table = "IRIS_TABLE")
> # Create the table
> ore.create(iris, table = "IRIS_TABLE")
> # Show the updated list of accessible table and views
> ore.ls()
[1] "IRIS_TABLE"
> # Display the class of IRIS_TABLE and where it can be found in
> # the search path
> class(IRIS_TABLE)
[1] "ore.frame"
attr(,"package")
[1] "OREbase"
> search()
[1] ".GlobalEnv" "ore:RQUSER" "ESSR"
[4] "package:ORE" "package:ORExml" "package:OREeda"
[7] "package:OREgraphics" "package:OREstats" "package:MASS"
[10] "package:OREbase" "package:ROracle" "package:DBI"
[13] "package:stats" "package:graphics" "package:grDevices"
[16] "package:utils" "package:datasets" "package:methods"
[19] "Autoloads" "package:base"
> find("IRIS_TABLE")
[1] "ore:RQUSER"
> # The table should now appear in your R environment automatically
> # since you have access to the table now
> ore.ls()
[1] "IRIS_TABLE"
> # This is a database resident table with just metadata on the R side.
> # You will see this below
> class(IRIS_TABLE)
[1] "ore.frame"
attr(,"package")
[1] "OREbase"
> # Apply given R function to each row
> ore.rowApply(IRIS_TABLE,
+ function(dat) {
+ # Any R code goes here. Operates on one row of IRIS_TABLE at
+ # a time
+ cbind(dat, dat$Petal.Length)
+ })
Error in .oci.GetQuery(conn, statement, ...) :
ORA-29400: data cartridge error
ORA-24323: ?????
ORA-06512: at "RQSYS.RQROWEVALIMPL", line 26
ORA-06512: at line 4
>
whether my oracle's version 11.2.0.1 has no the RDBMS bug fix, and other problems? ThanksOracle R Enterprise 1.1. requires Oracle Database 11.2.0.3, 11.2.0.4. On Linux and Windows. Oracle R Enterprise can also work with an 11.2.0.1 or 11.2.0.2 database if it is properly patched.
Embedded R execution will not work without a patched database. Follow this procedure to patch the database:
1. Go to My Oracle Support:http://support.oracle.com
2. Log in and supply your Customer Support ID (CSI).
3. Choose the Patches & Updates tab.
4. In the Patch Search box, type 11678127
and click Search
5. Select the patch for your version of Oracle Database, 11.2.0.1.
6. Click Download to download the patch.
7. Install the patch using OPatch. Ensure that you are using the latest version of OPatch.
Sherry -
Error -29400ORA-29400: data cartridge error IMG-00714: internal error
Hi,
I have a table with a blob column containing images, not
intermedia column.
I am using intermedia process method to change some images,
change maxScale and compression.
I get this error when I try to change certain images
-29400ORA-29400: data cartridge error
IMG-00714: internal error
Does anyone know why?
P.S. how do you do an explict close of ORDSYS variable
after initializing?
Thank you
David Wilton
This is my testing procedure:
PROCEDURE change_image (P_SCANNED_IMAGES_REC IN NUMBER) IS
v_intermed_image ORDSYS.ORDImage := ORDSYS.ORDImage.init();
BEGIN
select image_data
into v_intermed_image.source.localdata
from obra.scanned_images
where scanned_images_rec = p_scanned_images_rec
for update;
v_intermed_image.process('compressionFormat=FAX4,maxScale=1696
2200');
update obra.scanned_images
set image_data = v_intermed_image.source.localdata
where scanned_images_rec = p_scanned_images_rec;
commit;
exception
when others then
dbms_output.put_line('An exception occurred');
dbms_output.put_line(sqlcode || sqlerrm);
END;David,
I suspect you'll need to supply a TIFF image for the interMedia
engineers to experiment on. The error message you received is
essentially a "last chance" error message and isn't specific
enough for diagnosis of your problem.
Cheers
..Dan -
I was trying to develop a data cartridge. I tried the sample code Power Demand Cartridge Example (chapter 11)given in Oracle Documentation "Oracle 8i Data Cartridge Developer's Guide Release 2 (8.1.6)". All objects, indextypes, tables and indexes were successfully created. When I issue the select statement it gives the following error.
ERROR at line 1:
ORA-29902: error in executing ODCIIndexStart() routine
Oracle Documentation for ORA-29902 say only this much. "Examine the error messages produced by the index type code and take appropriate action.".
The problem here is that Oracle is unable to invoke the module ODCIIndexStart(). I am unable to find out where the error lies. If anybody knows please help.
MohanThe select statement used for testing the index is
POWERCARTUSER> SELECT P.Region, P.Sample.TotGridDemand ,P.Sample.MaxCellDemand, P.Sample.MinCellDemand FROM PowerDemand_Tab P WHERE Power_Equals(P.Sample,2,8) = 1;
SELECT P.Region, P.Sample.TotGridDemand ,P.Sample.MaxCellDemand, P.Sample.MinCellDemand FROM PowerD
ERROR at line 1:
ORA-29902: error in executing ODCIIndexStart() routine -
Data Cartridge error / IMG-00599
Hi, I have the following code:
create or replace function QBEFileSearch(url varchar2, filename varchar2) return imagelist is
compare_sig ORDSYS.ORDImageSignature;
seedimage ordsys.ordimage;
seedimagesig ordsys.ordimagesignature;
ctx RAW(4000) := null;
weights varchar2(64) := 'color="0,33" texture="0,33" shape="0,33" location="0,0"';
treshhold number;
imagenumber number;
ilist imagelist := imagelist(100);
counter integer := 1;
cursor getimages is
select inumber from tbl_images b
WHERE ORDSYS.IMGSimilar(b.signature, seedimagesig, weights, treshhold)=1;
BEGIN
seedimage := ordsys.ordimage.init('HTTP', url, filename);
seedimagesig := ordsys.ordimagesignature.init();
seedimagesig.generatesignature(seedimage);
treshhold := 50;
open getimages;
loop
fetch getimages into imagenumber;
exit when getimages%NOTFOUND;
ilist.extend;
ilist(counter):= imagenumber;
counter := counter +1;
end loop;
return (ilist);
end QBEFileSearch;
But I get the error message (Translated from Norwegian):
ERROR at line 1:
ORA-29400: Data Cartidge Error
IMG-00599: Internal Error
ORA-06512: at "ORDSYS.ORDIMGSIG_PKG", line 0
ORA-06512: at "ORDSYS.ORDIMAGESIGNATURE", line 90
ORA-06512: at "I0065.QBEFILESEARCH", line 22
ORA-06512: at line 5
when I try to execute it with the following code:
declare
results imagelist := imagelist();
begin
results := QBEFileSearch('laserlasse.no/bilder/', 'vcss.gif');
end;
Any Ideas?See my reply to your previous post....
-
Data Cartridge Implementation - PGA Memory Problem
Hi,
I have modified the Data Cartridge implementation explained in the article at http://www.oracle-developer.net/display.php?id=422.
More precisely I have modified it to create not only the type returned, but also the select statement.
The problem I have, is that the PGA memory through the execution of my package always increases, and when it ends the execution the PGA doesn't get released.
I'm wondering if i'm missing something on the ODCITableClose.
Object spec:
create or replace type t_conf_obj as object
atype anytype, --<-- transient record type
static function ODCITableDescribe(rtype out anytype,
p_cz_conf_categoria in number,
p_id_profilo in number default null,
p_cz_conf_livello in number default null,
p_dt_rif in varchar2 default to_char(sysdate,'ddmmyyyy')
) return number,
static function ODCITablePrepare(sctx out t_conf_obj,
tf_info in sys.ODCITabFuncInfo,
p_cz_conf_categoria in number,
p_id_profilo in number default null,
p_cz_conf_livello in number default null,
p_dt_rif in varchar2 default to_char(sysdate,'ddmmyyyy')
) return number,
static function ODCITableStart(sctx in out t_conf_obj,
p_cz_conf_categoria in number,
p_id_profilo in number default null,
p_cz_conf_livello in number default null,
p_dt_rif in varchar2 default to_char(sysdate,'ddmmyyyy')
) return number,
member function ODCITableFetch(self in out t_conf_obj,
nrows in number,
rws out anydataset
) return number,
member function ODCITableClose(self in t_conf_obj
) return number
);Object Body
create or replace type body t_conf_obj as
static function ODCITableDescribe(rtype out anytype,
p_cz_conf_categoria in number,
p_id_profilo in number default null,
p_cz_conf_livello in number default null,
p_dt_rif in varchar2 default to_char(sysdate,'ddmmyyyy')
) return number
is
r_sql pck_conf_calcolo.rt_dynamic_sql;
v_rtype anytype;
stmt dbms_sql.varchar2a;
begin
HERE I CREATE MY SELECT STATEMENT
if p_cz_conf_livello is null and p_id_profilo is null then
stmt := pck_conf_calcolo.GetSQLConfCategoria(p_cz_conf_categoria
elsif p_cz_conf_livello is not null then
stmt (1) := pck_conf_calcolo.GetSQLConfCategoria(p_cz_conf_categoria,
p_id_profilo,
p_cz_conf_livello,
p_dt_rif
else
stmt (1) := pck_conf_calcolo.GetSQLConfCategoria(p_cz_conf_categoria,
p_id_profilo
end if;
|| parse the sql and describe its format and structure.
r_sql.cursor := dbms_sql.open_cursor;
dbms_sql.parse(r_sql.cursor, stmt, stmt.first, stmt.last, false, dbms_sql.native);
dbms_sql.describe_columns2(r_sql.cursor,
r_sql.column_cnt,
r_sql.description);
dbms_sql.close_cursor(r_sql.cursor);
|| create the anytype record structure from this sql structure.
anytype.begincreate(dbms_types.typecode_object, v_rtype);
for i in 1 .. r_sql.column_cnt loop
v_rtype.addattr(r_sql.description(i).col_name,
case
--<>--
when r_sql.description(i).col_type in (1, 96, 11, 208) then
dbms_types.typecode_varchar2
--<>--
when r_sql.description(i).col_type = 2 then
dbms_types.typecode_number
when r_sql.description(i).col_type in (112) then
dbms_types.typecode_clob
--<>--
when r_sql.description(i).col_type = 12 then
dbms_types.typecode_date
--<>--
when r_sql.description(i).col_type = 23 then
dbms_types.typecode_raw
--<>--
when r_sql.description(i).col_type = 180 then
dbms_types.typecode_timestamp
--<>--
when r_sql.description(i).col_type = 181 then
dbms_types.typecode_timestamp_tz
--<>--
when r_sql.description(i).col_type = 182 then
dbms_types.typecode_interval_ym
--<>--
when r_sql.description(i).col_type = 183 then
dbms_types.typecode_interval_ds
--<>--
when r_sql.description(i).col_type = 231 then
dbms_types.typecode_timestamp_ltz
--<>--
end,
r_sql.description(i).col_precision,
r_sql.description(i).col_scale,
r_sql.description(i).col_max_len,
r_sql.description(i).col_charsetid,
r_sql.description(i).col_charsetform);
end loop;
v_rtype.endcreate;
|| now we can use this transient record structure to create a table type
|| of the same. this will create a set of types on the database for use
|| by the pipelined function...
anytype.begincreate(dbms_types.typecode_table, rtype);
rtype.setinfo(null,
null,
null,
null,
null,
v_rtype,
dbms_types.typecode_object,
0);
rtype.endcreate();
return odciconst.success;
exception when others then
-- indicate that an error has occured somewhere.
return odciconst.error;
end odcitabledescribe;
static function ODCITablePrepare(sctx out t_conf_obj,
tf_info in sys.ODCITabFuncInfo,
p_cz_conf_categoria in number,
p_id_profilo in number default null,
p_cz_conf_livello in number default null,
p_dt_rif in varchar2 default to_char(sysdate,'ddmmyyyy')
) return number
is
r_meta pck_conf_calcolo.rt_anytype_metadata;
begin
|| we prepare the dataset that our pipelined function will return by
|| describing the anytype that contains the transient record structure...
r_meta.typecode := tf_info.rettype.getattreleminfo(1,
r_meta.precision,
r_meta.scale,
r_meta.length,
r_meta.csid,
r_meta.csfrm,
r_meta.type,
r_meta.name);
|| using this, we initialise the scan context for use in this and
|| subsequent executions of the same dynamic sql cursor...
sctx := t_conf_obj(r_meta.type);
return odciconst.success;
end;
static function ODCITableStart(sctx in out t_conf_obj,
p_cz_conf_categoria in number,
p_id_profilo in number default null,
p_cz_conf_livello in number default null,
p_dt_rif in varchar2 default to_char(sysdate,'ddmmyyyy')
) return number
is
r_meta pck_conf_calcolo.rt_anytype_metadata;
stmt dbms_sql.varchar2a;
begin
HERE I CREATE MY SELECT STATEMENT
if p_cz_conf_livello is null and p_id_profilo is null then
stmt := pck_conf_calcolo.GetSQLConfCategoria(p_cz_conf_categoria
elsif p_cz_conf_livello is not null then
stmt(1) := pck_conf_calcolo.GetSQLConfCategoria(p_cz_conf_categoria,
p_id_profilo,
p_cz_conf_livello,
p_dt_rif
else
stmt(1) := pck_conf_calcolo.GetSQLConfCategoria(p_cz_conf_categoria,
p_id_profilo
end if;
|| we now describe the cursor again and use this and the described
|| anytype structure to define and execute the sql statement...
pck_conf_calcolo.r_sql.cursor := dbms_sql.open_cursor;
dbms_sql.parse(pck_conf_calcolo.r_sql.cursor, stmt, stmt.first, stmt.last, false, dbms_sql.native);
dbms_sql.describe_columns2(pck_conf_calcolo.r_sql.cursor,
pck_conf_calcolo.r_sql.column_cnt,
pck_conf_calcolo.r_sql.description);
for i in 1 .. pck_conf_calcolo.r_sql.column_cnt loop
|| get the anytype attribute at this position...
r_meta.typecode := sctx.atype.getattreleminfo(i,
r_meta.precision,
r_meta.scale,
r_meta.length,
r_meta.csid,
r_meta.csfrm,
r_meta.type,
r_meta.name);
case r_meta.typecode
--<>--
when dbms_types.typecode_varchar2 then
dbms_sql.define_column(pck_conf_calcolo.r_sql.cursor, i, '', 32767);
--<>--
when dbms_types.typecode_number then
dbms_sql.define_column(pck_conf_calcolo.r_sql.cursor,
i,
cast(null as number));
--<>--
when dbms_types.typecode_date then
dbms_sql.define_column(pck_conf_calcolo.r_sql.cursor,
i,
cast(null as date));
--<>--
when dbms_types.typecode_raw then
dbms_sql.define_column_raw(pck_conf_calcolo.r_sql.cursor,
i,
cast(null as raw),
r_meta.length);
--<>--
when dbms_types.typecode_timestamp then
dbms_sql.define_column(pck_conf_calcolo.r_sql.cursor,
i,
cast(null as timestamp));
--<>--
when dbms_types.typecode_timestamp_tz then
dbms_sql.define_column(pck_conf_calcolo.r_sql.cursor,
i,
cast(null as timestamp with time zone));
--<>--
when dbms_types.typecode_timestamp_ltz then
dbms_sql.define_column(pck_conf_calcolo.r_sql.cursor,
i,
cast(null as timestamp with local time zone));
--<>--
when dbms_types.typecode_interval_ym then
dbms_sql.define_column(pck_conf_calcolo.r_sql.cursor,
i,
cast(null as interval year to month));
--<>--
when dbms_types.typecode_interval_ds then
dbms_sql.define_column(pck_conf_calcolo.r_sql.cursor,
i,
cast(null as interval day to second));
--<>--
when dbms_types.typecode_clob then
--<>--
dbms_sql.define_column(pck_conf_calcolo.r_sql.cursor,
i,
cast(null as clob));
--<>--
end case;
end loop;
|| the cursor is prepared according to the structure of the type we wish
|| to fetch it into. we can now execute it and we are done for this method...
pck_conf_calcolo.r_sql.execute := dbms_sql.execute(pck_conf_calcolo.r_sql.cursor);
return odciconst.success;
end;
member function ODCITableFetch(self in out t_conf_obj,
nrows in number,
rws out anydataset
) return number
is
type rt_fetch_attributes is record(
v2_column varchar2(32767),
num_column number,
date_column date,
clob_column clob,
raw_column raw(32767),
raw_error number,
raw_length integer,
ids_column interval day to second,
iym_column interval year to month,
ts_column timestamp,
tstz_column timestamp with time zone,
tsltz_column timestamp with local time zone,
cvl_offset integer := 0,
cvl_length integer);
r_fetch rt_fetch_attributes;
r_meta pck_conf_calcolo.rt_anytype_metadata;
begin
rws := null;
if dbms_sql.fetch_rows(pck_conf_calcolo.r_sql.cursor) > 0 then
|| first we describe our current anytype instance (self.a) to determine
|| the number and types of the attributes...
r_meta.typecode := self.atype.getinfo(r_meta.precision,
r_meta.scale,
r_meta.length,
r_meta.csid,
r_meta.csfrm,
r_meta.schema,
r_meta.name,
r_meta.version,
r_meta.attr_cnt);
|| we can now begin to piece together our returning dataset. we create an
|| instance of anydataset and then fetch the attributes off the dbms_sql
|| cursor using the metadata from the anytype. longs are converted to clobs...
anydataset.begincreate(dbms_types.typecode_object, self.atype, rws);
rws.addinstance();
rws.piecewise();
for i in 1 .. pck_conf_calcolo.r_sql.column_cnt loop
r_meta.typecode := self.atype.getattreleminfo(i,
r_meta.precision,
r_meta.scale,
r_meta.length,
r_meta.csid,
r_meta.csfrm,
r_meta.attr_type,
r_meta.attr_name);
case r_meta.typecode
--<>--
when dbms_types.typecode_varchar2 then
dbms_sql.column_value(pck_conf_calcolo.r_sql.cursor,
i,
r_fetch.v2_column);
rws.setvarchar2(r_fetch.v2_column);
--<>--
when dbms_types.typecode_number then
dbms_sql.column_value(pck_conf_calcolo.r_sql.cursor,
i,
r_fetch.num_column);
rws.setnumber(r_fetch.num_column);
--<>--
when dbms_types.typecode_date then
dbms_sql.column_value(pck_conf_calcolo.r_sql.cursor,
i,
r_fetch.date_column);
rws.setdate(r_fetch.date_column);
--<>--
when dbms_types.typecode_raw then
dbms_sql.column_value_raw(pck_conf_calcolo.r_sql.cursor,
i,
r_fetch.raw_column,
r_fetch.raw_error,
r_fetch.raw_length);
rws.setraw(r_fetch.raw_column);
--<>--
when dbms_types.typecode_interval_ds then
dbms_sql.column_value(pck_conf_calcolo.r_sql.cursor,
i,
r_fetch.ids_column);
rws.setintervalds(r_fetch.ids_column);
--<>--
when dbms_types.typecode_interval_ym then
dbms_sql.column_value(pck_conf_calcolo.r_sql.cursor,
i,
r_fetch.iym_column);
rws.setintervalym(r_fetch.iym_column);
--<>--
when dbms_types.typecode_timestamp then
dbms_sql.column_value(pck_conf_calcolo.r_sql.cursor,
i,
r_fetch.ts_column);
rws.settimestamp(r_fetch.ts_column);
--<>--
when dbms_types.typecode_timestamp_tz then
dbms_sql.column_value(pck_conf_calcolo.r_sql.cursor,
i,
r_fetch.tstz_column);
rws.settimestamptz(r_fetch.tstz_column);
--<>--
when dbms_types.typecode_timestamp_ltz then
dbms_sql.column_value(pck_conf_calcolo.r_sql.cursor,
i,
r_fetch.tsltz_column);
rws.settimestampltz(r_fetch.tsltz_column);
--<>--
when dbms_types.typecode_clob then
--<>--
dbms_sql.column_value(pck_conf_calcolo.r_sql.cursor,
i,
r_fetch.clob_column);
rws.setclob(r_fetch.clob_column);
--<>--
end case;
end loop;
|| our anydataset instance is complete. we end our create session...
rws.endcreate();
end if;
return odciconst.success;
end;
member function ODCITableClose(self in t_conf_obj
) return number
is
begin
dbms_sql.close_cursor(pck_conf_calcolo.r_sql.cursor);
pck_conf_calcolo.r_sql := null;
return odciconst.success;
end;
end;We have an Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 running on Windows 2003 sp2.
Thanks in advance.
Riccardo.I'm getting confused with so much answers!!!
-
Hp2175xi printer Remove and check cartridge. error message displayed on printer.
Remove and check cartridge error message displayed on printer. I have removed and inspected cartridges and no problems were evident. Shut down printer and restarted, unplugged and restarted same error displayed. Please help with any suggestions or solutions.
Thanks JohnHi
If the cartridge isn't empty and you've tried the usual troubleshooting (which includes cleaning the contacts on the cartridge and in the printer) then it's probably best to contact Phone Support for a possible replacement.
You can check if the cartridge is still within warranty by checking the warranty ends date here
Best Regards
Ciara
Although I am an HP employee, I am speaking for myself and not for HP.
Twitter: @Ciara_B_HP -
Oracle CEP JDBC Data Cartridge
Hello,
I'm trying to implement Oracle CEP JDBC Data Cartridge
according to :
http://docs.oracle.com/cd/E23943_01/apirefs.1111/e12048/datacartjdbc.htm#CIHCEFBH
The problem is that it fails on deployment with following error :
<Exception thrown from prepare method com.oracle.cep.cartridge.jdbc.JdbcCartridgeContext.checkCartridgeContextConfig.
java.lang.AssertionError: java.lang.ClassNotFoundException: weblogic.jdbc.wrapper.PoolConnection
I've added file that contains this class to classpath (com.bea.core.datasource6_1.10.0.0.jar) ,
but get the same error .
Any help would be appreciated .
Regards,
DmitryHello Wei Xiong,
I have the same error when I trying to configure Oracle CQL Processor Table Source according to :
http://docs.oracle.com/cd/E23943_01/dev.1111/e14301/processorcql.htm#CIHCCADG
I've configured table source and had the same error on deployment :
<The application context "check_entrance" could not be started: org.springframework.beans.FatalBeanException: Error in context lifecycle initialization; nested exception is com.bea.wlevs.ede.api.StatementException: Could not start rule [DBEventQuery] due to error: java.lang.ClassNotFoundException: weblogic.jdbc.wrapper.PoolConnection
org.springframework.beans.FatalBeanException: Error in context lifecycle initialization; nested exception is com.bea.wlevs.ede.api.StatementException: Could not start rule [DBEventQuery] due to error: java.lang.ClassNotFoundException: weblogic.jdbc.wrapper.PoolConnection
at com.bea.wlevs.spring.ApplicationContextLifecycle.onApplicationEvent(ApplicationContextLifecycle.java:145)
It's look like a same issue.
I've added zip file of my Eclipse project and config.xml of my CEP domain to e-mail.
Thank you !
Regards,
Dmitry -
5610xi cartridge error refer to device doc to trouble shoot
I have tried everything but still get an error message Cartridge Error Refer to documentation to trouble shoot.
Hi hackeray
So you've cleaned the cartridge contacts and printer carriage contacts?
http://h10025.www1.hp.com/ewfrf/wc/document?docname=c00428054&tmp_track_link=ot_recdoc/c00726626/en_...
If that doesn't work, then I'd suggest purchasing a new cartridge. If the new one works fine, then you could be entitled to replacement cartridge. You can first check the warranty ends date here
Please let me know how you get on
Thanks, Ciara
Although I am an HP employee, I am speaking for myself and not for HP.
Twitter: @Ciara_B_HP -
Restore Issue On LTO-4 Ultrium RW data cartridge
HI,
I have One tape & monthly taking normal backup of my files.Today i am trying to take backup i got a message that media full insert the new media or press cancel the current job....So i press cancel..
Now I want restore the previous back up files..when i insert the tap i am getting below image error
OS : Windows 2003 Server : LTO-4 Ultrium RW data cartridge.
Thank you all...Hi,
Please check if the tape is corrupted or not. If the tape is corrupted, you could refer to the article below to restore the previous back up files.
How to Restore Data from a Backup Set that Contains a Missing or Corrupted Tape
http://support.microsoft.com/kb/244805/en-us
Best Regards,
Mandy
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place. -
I have installed Oracle COM Data Cartridge, but I have problem with creating objects.
While calling ORDCom.CreateObject method I always get error represented by HRESULT value = -2147467259 (Ox80004005). Does anybody know what may be purpose of this error?
nullHello Wei Xiong,
I have the same error when I trying to configure Oracle CQL Processor Table Source according to :
http://docs.oracle.com/cd/E23943_01/dev.1111/e14301/processorcql.htm#CIHCCADG
I've configured table source and had the same error on deployment :
<The application context "check_entrance" could not be started: org.springframework.beans.FatalBeanException: Error in context lifecycle initialization; nested exception is com.bea.wlevs.ede.api.StatementException: Could not start rule [DBEventQuery] due to error: java.lang.ClassNotFoundException: weblogic.jdbc.wrapper.PoolConnection
org.springframework.beans.FatalBeanException: Error in context lifecycle initialization; nested exception is com.bea.wlevs.ede.api.StatementException: Could not start rule [DBEventQuery] due to error: java.lang.ClassNotFoundException: weblogic.jdbc.wrapper.PoolConnection
at com.bea.wlevs.spring.ApplicationContextLifecycle.onApplicationEvent(ApplicationContextLifecycle.java:145)
It's look like a same issue.
I've added zip file of my Eclipse project and config.xml of my CEP domain to e-mail.
Thank you !
Regards,
Dmitry -
OSB: Cannot acquire data source error while using JCA DBAdapter in OSB
Hi All,
I've entered 'Cannot acquire data source' error while using JCA DBAdapter in OSB.
Error infor are as follows:
The invocation resulted in an error: Invoke JCA outbound service failed with application error, exception: com.bea.wli.sb.transports.jca.JCATransportException: oracle.tip.adapter.sa.api.JCABindingException: oracle.tip.adapter.sa.impl.fw.ext.org.collaxa.thirdparty.apache.wsif.WSIFException: servicebus:/WSDL/DBAdapter1/RetrievePersonService [ RetrievePersonService_ptt::RetrievePersonServiceSelect(RetrievePersonServiceSelect_inputParameters,PersonTCollection) ] - WSIF JCA Execute of operation 'RetrievePersonServiceSelect' failed due to: Could not create/access the TopLink Session.
This session is used to connect to the datastore.
Caused by Exception [EclipseLink-7060] (Eclipse Persistence Services - 2.0.2.v20100323-r6872): org.eclipse.persistence.exceptions.ValidationException
Exception Description: Cannot acquire data source [jdbc/soademoDatabase].
Internal Exception: javax.naming.NameNotFoundException: Unable to resolve 'jdbc.soademoDatabase'. Resolved 'jdbc'; remaining name 'soademoDatabase'.
; nested exception is:
BINDING.JCA-11622
Could not create/access the TopLink Session.
This session is used to connect to the datastore.
JNDI Name for the Database pool: eis/DB/soademoDatabase
JNDI Name for the Data source: jdbc/soademoDatabase
I created a basic DBAdapter in JDeveloper, got the xsd file, wsdl file, .jca file and the topLink mapping file imported them into OSB project.
Then I used the .jca file to generate a business service, and tested, then the error occurs as described above.
Login info in RetrievePersonService-or-mappings.xml
<login xsi:type="database-login">
<platform-class>org.eclipse.persistence.platform.database.oracle.Oracle9Platform</platform-class>
<user-name></user-name>
<connection-url></connection-url>
</login>
jca file content are as follows:
<adapter-config name="RetrievePersonService" adapter="Database Adapter" wsdlLocation="RetrievePersonService.wsdl" xmlns="http://platform.integration.oracle/blocks/adapter/fw/metadata">
<connection-factory location="eis/DB/soademoDatabase" UIConnectionName="Connection1" adapterRef=""/>
<endpoint-interaction portType="RetrievePersonService_ptt" operation="RetrievePersonServiceSelect">
<interaction-spec className="oracle.tip.adapter.db.DBReadInteractionSpec">
<property name="DescriptorName" value="RetrievePersonService.PersonT"/>
<property name="QueryName" value="RetrievePersonServiceSelect"/>
<property name="MappingsMetaDataURL" value="RetrievePersonService-or-mappings.xml"/>
<property name="ReturnSingleResultSet" value="false"/>
<property name="GetActiveUnitOfWork" value="false"/>
</interaction-spec>
</endpoint-interaction>
</adapter-config>
RetrievePersonService_db.wsdl are as follows:
<?xml version="1.0" encoding="UTF-8"?>
<WL5G3N0:definitions name="RetrievePersonService-concrete" targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/db/KnowledeMgmtSOAApplication/AdapterJDevProject/RetrievePersonService" xmlns:WL5G3N0="http://schemas.xmlsoap.org/wsdl/" xmlns:WL5G3N1="http://xmlns.oracle.com/pcbpel/adapter/db/KnowledeMgmtSOAApplication/AdapterJDevProject/RetrievePersonService" xmlns:WL5G3N2="http://schemas.xmlsoap.org/wsdl/soap/">
<WL5G3N0:import location="RetrievePersonService.wsdl" namespace="http://xmlns.oracle.com/pcbpel/adapter/db/KnowledeMgmtSOAApplication/AdapterJDevProject/RetrievePersonService"/>
<WL5G3N0:binding name="RetrievePersonService_ptt-binding" type="WL5G3N1:RetrievePersonService_ptt">
<WL5G3N2:binding style="document" transport="http://www.bea.com/transport/2007/05/jca"/>
<WL5G3N0:operation name="RetrievePersonServiceSelect">
<WL5G3N2:operation soapAction="RetrievePersonServiceSelect"/>
<WL5G3N0:input>
<WL5G3N2:body use="literal"/>
</WL5G3N0:input>
<WL5G3N0:output>
<WL5G3N2:body use="literal"/>
</WL5G3N0:output>
</WL5G3N0:operation>
</WL5G3N0:binding>
<WL5G3N0:service name="RetrievePersonService_ptt-bindingQSService">
<WL5G3N0:port binding="WL5G3N1:RetrievePersonService_ptt-binding" name="RetrievePersonService_ptt-bindingQSPort">
<WL5G3N2:address location="jca://eis/DB/soademoDatabase"/>
</WL5G3N0:port>
</WL5G3N0:service>
</WL5G3N0:definitions>
Any suggestion is appricated .
Thanks in advance!
Edited by: user11262117 on Jan 26, 2011 5:28 PMHi Anuj,
Thanks for your reply!
I found that the data source is registered on server soa_server1 as follows:
Binding Name: jdbc.soademoDatabase
Class: weblogic.jdbc.common.internal.RmiDataSource_1033_WLStub
Hash Code: 80328036
toString Results: ClusterableRemoteRef(8348400613458600489S:10.2.1.143:[8001,8001,-1,-1,-1,-1,-1]:base_domain:soa_server1 [8348400613458600489S:10.2.1.143:[8001,8001,-1,-1,-1,-1,-1]:base_domain:soa_server1/291])/291
Binding Name: jdbc.SOADataSource
Class: weblogic.jdbc.common.internal.RmiDataSource_1033_WLStub
Hash Code: 92966755
toString Results: ClusterableRemoteRef(8348400613458600489S:10.2.1.143:[8001,8001,-1,-1,-1,-1,-1]:base_domain:soa_server1 [8348400613458600489S:10.2.1.143:[8001,8001,-1,-1,-1,-1,-1]:base_domain:soa_server1/285])/285
I don't know how to determine which server the DBAdapter is targetted to.
But I found the following information:
Under Deoloyment->DBAdapter->Monitoring->Outbound Connection Pools
Outbound Connection Pool Server State Current Connections Created Connections
eis/DB/SOADemo AdminServer Running 1 1
eis/DB/SOADemo soa_server1 Running 1 1
eis/DB/soademoDatabase AdminServer Running 1 1
eis/DB/soademoDatabase soa_server1 Running 1 1
The DbAdapter is related to the following files:
C:\ Oracle\ Middleware\ home_11gR1\ Oracle_SOA1\ soa\ connectors\ DbAdapter. rar
C:\ Oracle\ Middleware\ home_11gR1\ Oracle_SOA1\ soa\ DBPlan\ Plan. xml
I unzipped DbAdapter.rar, opened weblogic-ra.xml and found that there's only one data source is registered:
<?xml version="1.0"?>
<weblogic-connector xmlns="http://www.bea.com/ns/weblogic/90">
<enable-global-access-to-classes>true</enable-global-access-to-classes>
<outbound-resource-adapter>
<default-connection-properties>
<pool-params>
<initial-capacity>1</initial-capacity>
<max-capacity>1000</max-capacity>
</pool-params>
<properties>
<property>
<name>usesNativeSequencing</name>
<value>true</value>
</property>
<property>
<name>sequencePreallocationSize</name>
<value>50</value>
</property>
<property>
<name>defaultNChar</name>
<value>false</value>
</property>
<property>
<name>usesBatchWriting</name>
<value>true</value>
</property>
<property>
<name>usesSkipLocking</name>
<value>true</value>
</property>
</properties>
</default-connection-properties>
<connection-definition-group>
<connection-factory-interface>javax.resource.cci.ConnectionFactory</connection-factory-interface>
<connection-instance>
<jndi-name>eis/DB/SOADemo</jndi-name>
<connection-properties>
<properties>
<property>
<name>xADataSourceName</name>
<value>jdbc/SOADataSource</value>
</property>
<property>
<name>dataSourceName</name>
<value></value>
</property>
<property>
<name>platformClassName</name>
<value>org.eclipse.persistence.platform.database.Oracle10Platform</value>
</property>
</properties>
</connection-properties>
</connection-instance>
</connection-definition-group>
</outbound-resource-adapter>
</weblogic-connector>
Then I decided to use eis/DB/SOADemo for testing.
For JDeveloper project, after I deployed to weblogic server, it works fine.
But for OSB project referencing wsdl, jca and mapping file from JDeveloper project, still got the same error as follows:
BEA-380001: Invoke JCA outbound service failed with application error, exception:
com.bea.wli.sb.transports.jca.JCATransportException: oracle.tip.adapter.sa.api.JCABindingException: oracle.tip.adapter.sa.impl.fw.ext.org.collaxa.thirdparty.apache.wsif.WSIFException: servicebus:/WSDL/DBAdapterTest/DBReader [ DBReader_ptt::DBReaderSelect(DBReaderSelect_inputParameters,PersonTCollection) ] - WSIF JCA Execute of operation 'DBReaderSelect' failed due to: Could not create/access the TopLink Session.
This session is used to connect to the datastore.
Caused by Exception [EclipseLink-7060] (Eclipse Persistence Services - 2.0.2.v20100323-r6872): org.eclipse.persistence.exceptions.ValidationException
Exception Description: Cannot acquire data source [jdbc/SOADataSource].
Internal Exception: javax.naming.NameNotFoundException: Unable to resolve 'jdbc.SOADataSource'. Resolved 'jdbc'; remaining name 'SOADataSource'.
; nested exception is:
BINDING.JCA-11622
Could not create/access the TopLink Session.
This session is used to connect to the datastore.
Caused by Exception [EclipseLink-7060] (Eclipse Persistence Services - 2.0.2.v20100323-r6872): org.eclipse.persistence.exceptions.ValidationException
Exception Description: Cannot acquire data source [jdbc/SOADataSource].
Internal Exception: javax.naming.NameNotFoundException: Unable to resolve 'jdbc.SOADataSource'. Resolved 'jdbc'; remaining name 'SOADataSource'.
You may need to configure the connection settings in the deployment descriptor (i.e. DbAdapter.rar#META-INF/weblogic-ra.xml) and restart the server. This exception is considered not retriable, likely due to a modelling mistake.
It almost drive me crazy!!:-(
What's the purpose of 'weblogic-ra.xml' under the folder of 'C:\Oracle\Middleware\home_11gR1\Oracle_OSB1\lib\external\adapters\META-INF'?
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -
I am getting ORA-01403: no data found error while calling a stored procedur
Hi, I have a stored procedure. When I execute it from Toad it is successfull.
But when I call that from my java function it gives me ORA-01403: no data found error -
My code is like this -
SELECT COUNT(*) INTO L_N_CNT FROM TLSI_SI_MAST WHERE UPPER(CUST_CD) =UPPER(R_V_CUST_CD) AND
UPPER(ACCT_CD)=UPPER(R_V_ACCT_CD) AND UPPER(CNSGE_CD)=UPPER(R_V_CNSGE_CD) AND
UPPER(FINALDEST_CD)=UPPER(R_V_FINALDEST_CD) AND UPPER(TPT_TYPE)=UPPER(R_V_TPT_TYPE);
IF L_N_CNT >0 THEN
DBMS_OUTPUT.PUT_LINE('ERROR -DUPlicate SI-1');
SP_SEL_ERR_MSG(5,R_V_ERROR_MSG);
RETURN;
ELSE
DBMS_OUTPUT.PUT_LINE('BEFORE-INSERT');
INSERT INTO TLSI_SI_MAST
( CUST_CD, ACCT_CD, CNSGE_CD, FINALDEST_CD, TPT_TYPE,
ACCT_NM, CUST_NM,CNSGE_NM, CNSGE_ADDR1, CNSGE_ADDR2,CNSGE_ADDR3,
CNSGE_ADDR4, CNSGE_ATTN, EFFECTIVE_DT, MAINT_DT,
POD_CD, DELVY_PL_CD, TRANSSHIP,PARTSHIPMT, FREIGHT,
PREPAID_BY, COLLECT_BY, BL_REMARK1, BL_REMARK2,
MCC_IND, NOMINATION, NOTIFY_P1_NM,NOTIFY_P1_ATTN , NOTIFY_P1_ADDR1,
NOTIFY_P1_ADDR2, NOTIFY_P1_ADDR3, NOTIFY_P1_ADDR4,NOTIFY_P2_NM,NOTIFY_P2_ATTN ,
NOTIFY_P2_ADDR1,NOTIFY_P2_ADDR2, NOTIFY_P2_ADDR3, NOTIFY_P2_ADDR4,
NOTIFY_P3_NM,NOTIFY_P3_ATTN , NOTIFY_P3_ADDR1,NOTIFY_P3_ADDR2, NOTIFY_P3_ADDR3,
NOTIFY_P3_ADDR4,CREATION_DT, ACCT_ATTN, SCC_IND, CREAT_BY, MAINT_BY
VALUES( R_V_CUST_CD,R_V_ACCT_CD,R_V_CNSGE_CD,R_V_FINALDEST_CD,R_V_TPT_TYPE,
R_V_ACCT_NM,R_V_CUST_NM ,R_V_CNSGE_NM, R_V_CNSGE_ADDR1,R_V_CNSGE_ADDR2, R_V_CNSGE_ADDR3,
R_V_CNSGE_ADDR4,R_V_CNSGE_ATTN, R_V_EFFECTIVE_DT ,SYSDATE, R_V_POD_CD,R_V_DELVY_PL_CD,R_V_TRANSSHIP ,R_V_PARTSHIPMT , R_V_FREIGHT,
R_V_PREPAID_BY ,R_V_COLLECT_BY ,R_V_BL_REMARK1 ,R_V_BL_REMARK2,R_V_MCC_IND,
R_V_NOMINATION,R_V_NOTIFY_P1_NM, R_V_NOTIFY_P1_ATTN, R_V_NOTIFY_P1_ADD1, R_V_NOTIFY_P1_ADD2,
R_V_NOTIFY_P1_ADD3, R_V_NOTIFY_P1_ADD4, R_V_NOTIFY_P2_NM, R_V_NOTIFY_P2_ATTN, R_V_NOTIFY_P2_ADD1,
R_V_NOTIFY_P2_ADD2, R_V_NOTIFY_P2_ADD3, R_V_NOTIFY_P2_ADD4, R_V_NOTIFY_P3_NM, R_V_NOTIFY_P3_ATTN,
R_V_NOTIFY_P3_ADD1, R_V_NOTIFY_P3_ADD2, R_V_NOTIFY_P3_ADD3, R_V_NOTIFY_P3_ADD4,
SYSDATE,R_V_ACCT_ATTN,R_V_SCC_IND,R_V_USER_ID,R_V_USER_ID
DBMS_OUTPUT.PUT_LINE(' SI - REC -INSERTED');
END IF;Hi,
I think there is a part of the stored procedure you did not displayed in your post. I think your issue is probably due to a parsed value from java. For example when calling a procedure from java and the data type from java is different than expected by the procedure the ORA-01403 could be encountered. Can you please show the exact construction of the call of the procedure from within java and also how the procedure possible is provided with an input parameter.
Regards, Gerwin -
Data length error in record 86.
Data length error in record 86.
Message no. FV147
Diagnosis
An error occurred in the processing of the data to be imported. It is highly probable that this is a data error.
Contact your data provider.
System Response
Any account statement processing currently underway and any outstanding is being terminated.
Procedure
Check the structure of the supplied data. If the statement data you have obtained is error-free, you can simply restart the program. All those statements which have already been imported correctly will not be reimported.
{1:F01SCBLINBBXXXX3446100003}{2:O9400634140719SCBLINBBXXXX34461000031407190634N}{3:{108:00000000000718}}{4:
:20:14071905fr309439
:25:52205785839
:28C:611
:60F:D140718INR792788,04
:61:1407180718CR100000,00N169NONREF
:86:IN36701407187774 VIJBH14199069837
IN36701407187774 VIJBH14199069837
AGARWAL AGENCIES
:61:1407180718CR150000,00N169NONREF
:86:IN36701407187251 SBIN414199017384
IN36701407187251 SBIN414199017384
EAGLE FOOTWERE
:61:1407180718CR100000,00N169NONREF
:86:IN36701407187052 SAA96678573
IN36701407187052 SAA96678573
TANVEER TRADERS
:61:1407180718CR98000,00N169NONREF
:86:IN36701407186828 SBIN314199982628
IN36701407186828 SBIN314199982628
MODERN AGENCY
:61:1407180718CR179000,00N169NONREF
:86:IN36701407186029 SAA96670577
IN36701407186029 SAA96670577
BALAJI ENTERPRISES
:61:1407180718CR60000,00N169NONREF
:86:IN36701407185397 367845438
IN36701407185397 367845438
SAKSHI ENTERPRISES
:61:1407180718CR2000000,00N169NONREF
:86:IN3670140718H568 SBIN414199360804
IN3670140718H568 SBIN414199360804
RELAXO FOOTWEARS LIMITED
:61:1407180718CR38000,00N169NONREF
:86:IN3670140718G554 CBINH14199566672
IN3670140718G554 CBINH14199566672
WONDER WALK AGENCIES
:61:1407180718CR113000,00N169NONREF
:86:IN3670140718F851 JAKA140718621672
IN3670140718F851 JAKA140718621672
JYOTI SALES PROP MR AMIT VOHRA S
:61:1407180718CR54200,00N169NONREF
:86:IN3670140718F006 BKIDN14199343033
IN3670140718F006 BKIDN14199343033
SHAH FOOT WEAR
:61:1407180718CR64000,00N169NONREF
:86:IN3670140718F094 BKIDN14199343132
IN3670140718F094 BKIDN14199343132
MUSKAN TRADERS
:61:1407180718CR114500,00N169NONREF
:86:IN3670140718F423 SBIN414199302946
IN3670140718F423 SBIN414199302946
GOUTAM DISTRIBUTORS
:61:1407180718CR63000,00N169NONREF
:86:IN3670140718D651 SD1141261589
IN3670140718D651 SD1141261589
M K FOOTWEAR
:61:1407180718CR67913,00N169NONREF
:86:IN3670140718D057 SBIN414199247753
IN3670140718D057 SBIN414199247753
SSS PG STORES
:61:1407180718CR130000,00N169NONREF
:86:IN3670140718D183 UTBIN14199275937
IN3670140718D183 UTBIN14199275937
GOPAL SHOES
:61:1407180718CR48000,00N169NONREF
:86:IN3670140718C628 CBINH14199546949
IN3670140718C628 CBINH14199546949
AGGARWAL FOOTWEAR
:61:1407180718DR5000000,00N506PIRLXOIN01A00468
PIRLXOIN01A00468
:86:PIRLXOIN01A00468 SCBLR12014071800003757
CASH SCBLR12014071800003757
RELAXO FOOTWEARS LIMITED
SIN09373C0000423 00001 PIRLXOIN01A0
0468
PIRLXOIN01A00468
:61:1407180718DR4000000,00N506PIRLXOIN01A00469
PIRLXOIN01A00469
:86:PIRLXOIN01A00469 SIN09373Q0000468
PIRLXOIN01A00469-SIN09373Q0000468
SB3670140718HK96
SIN09373C0000424-00001 PIRLXOIN01A0
0469
:61:1407180718DR1699195,25N699TRF
:86:316031790865 PAY001
316031790865 PAY001
GRAND WISE ENTERPRISES LIMITED
AKMP037
USD28,030.8 60.5755/INR743.76 1
DEBIT IMEX CUSTOMER A/C
:61:1407180718CR480000,00N195NONREF
:86:IL36701407182157 BARBR52014071800734481
CASH BARBR52014071800734481
APNA FOOT WEAR
SENDER IFSCBARB0CHARMI
IL36701407182157
:61:1407180718CR235000,00N195NONREF
:86:IL36701407185517 SBINR52014071801147506
CASH SBINR52014071801147506
PRAKASH FOOT WEAR
FUND TRF FRM 33174969142 TO52205785
SENDER IFSCSBIN0016310
IL36701407185517
:61:1407180718CR500000,00N195NONREF
:86:IL36701407185083 SBINR12014071801142317
CASH SBINR12014071801142317
MODERN FOOTWEARS
SENDER IFSCSBIN0001521
IL36701407185083
:61:1407180718CR800000,00N195NONREF
:86:IL36701407184746 HDFCR52014071851912408
CASH HDFCR52014071851912408
FASHION SQUARE
SENDER IFSCHDFC0000412
IL36701407184746
:61:1407180718CR332000,00N195NONREF
:86:IL36701407184713 SBINR52014071801140001
CASH SBINR52014071801140001
WINGS POLYMERS
SENDER IFSCSBIN0001581
IL36701407184713
:61:1407180718CR450000,00N195NONREF
:86:IL36701407184302 FDRLR52014071800031798
CASH FDRLR52014071800031798
ABHINAV ENTERPRISE
SENDER IFSCFDRL0001492
IL36701407184302
:61:1407180718CR650000,00N195NONREF
:86:IL36701407183976 UCBAR32014071800058993
CASH UCBAR32014071800058993
GAYLORD SHOE AND CHAPPAL
SENDER IFSCUCBA0000048
IL36701407183976
:61:1407180718CR700000,00N195NONREF
:86:IL36701407183860 SBINR52014071801134507
CASH SBINR52014071801134507
FOOTWEAR HOUSE
RTGS TGH CHQ NO 172867
SENDER IFSCSBIN0008602
IL36701407183860
:61:1407180718CR250000,00N195NONREF
:86:IL36701407183487 SBINR52014071801131379
CASH SBINR52014071801131379
PRATAP AGENCY PROP MRS SUNITA KUMRA
SENDER IFSCSBIN0014152
IL36701407183487
:61:1407180718CR254740,00N195NONREF
:86:IL36701407182511 HDFCR52014071851915942
CASH HDFCR52014071851915942
HEPHZIBAH AGENCIES
SENDER IFSCHDFC0001498
IL36701407182511
:61:1407180718CR398000,00N195NONREF
:86:IL36701407182496 BARBR52014071800726312
CASH BARBR52014071800726312
RAZA FOOT WEAR
SENDER IFSCBARB0BASTIX
IL36701407182496
:61:1407180718CR300000,00N195NONREF
:86:IL36701407182349 KKBKR52014071800664337
CASH KKBKR52014071800664337
M M DISTRIBUTORS
PAYMENT
SENDER IFSCKKBK0000958
IL36701407182349
:61:1407180718CR61136,00N169NONREF
:86:IN3670140718C504 IOBAN14199026875
IN3670140718C504 IOBAN14199026875
M S CHINNS TRADERS
:61:1407180718CR79995,00N169NONREF
:86:IN3670140718C142 SBIN414199219784
IN3670140718C142 SBIN414199219784
FRONTIER TRADING COMPANY
:61:1407180718CR100000,00N169NONREF
:86:IN3670140718B731 SBIN414199200112
IN3670140718B731 SBIN414199200112
SHRI AMBEY TRADERS
:61:1407180718CR125000,00N169NONREF
:86:IN3670140718B521 N199140025581074
IN3670140718B521 N199140025581074
SHYAM BROTHERS
:61:1407180718CR68000,00N169NONREF
:86:IN3670140718A144 1205061871400003
IN3670140718A144 1205061871400003
POPULAR TRADERS PROP PISHORI LAL SETHI
:61:1407180718CR41000,00N169NONREF
:86:IN3670140718A044 P14071849681718
IN3670140718A044 P14071849681718
AKSHAY FOOTWEARS
:61:1407180718CR50000,00N169NONREF
:86:IN3670140718A099 BARBH14199284604
IN3670140718A099 BARBH14199284604
STAR ENTERPRISE
:61:1407180718CR100000,00N169NONREF
:86:IN3670140718A002 SAA21370357
IN3670140718A002 SAA21370357
JAI OMKAR ENTERPRISES
:61:1407180718CR120000,00N169NONREF
:86:IN36701407189725 UTBIN14199269504
IN36701407189725 UTBIN14199269504
SANTI STORES
:61:1407180718CR100000,00N169NONREF
:86:IN36701407189538 SBIN414199107266
IN36701407189538 SBIN414199107266
VINAYAK TRADING
:61:1407180718CR100000,00N169NONREF
:86:IN36701407189842 SAA3564919
IN36701407189842 SAA3564919
SKY STYLE MARKETING PROP.ABHISHEK S
:61:1407180718CR120000,00N169NONREF
:86:IN36701407189384 MAHBH14199609866
IN36701407189384 MAHBH14199609866
ROYAL FOOT WEAR
:62F:D140718INR1697499,29
:64:C140718INR59273846,71
-}{5:{CHK:CHECKSUM DISABLED}{MAC:MACCING DISABLED}}SAP REPLAY
Regarding the incidence itself, kindly consider that The 86-record
limitation is not a bug of the program, but the standard design.
The error is coded as FV147, when the Note to Payee in Record 86
exceeds 65 characters in Program RFEKA400.
You will need to contact your Bank in order to obtain a correct file:
I have attached some documentation on this message that will allow your
bank to create it.
Otherwise, you may use the following user-exit (SAP NOTE 494777):CMOD
Enhancement Exit Name FEB00004 > EXIT_RFEKA400_001.
This User Exit is called in RFEKA400 in the line: PERFORM
PROCESS_RAW_DATA TABLES SWIFT. In Include ZXF01U06, you have
the option to process the raw data.
Hope this information is useful to you.
Maybe you are looking for
-
Looking for calendar widget similar to androids
Im looking for a calendar widget similar to androids. Don't want to use google gmail
-
Safari 6.0.4 crashes on open
Safari 6.0.4 crashes every time I attempt to open with the following report. Now software update installer hangs and says Waiting for other installations to complete. plz help me out. Tom Process: Safari [73178] Path: /Application
-
Macbook Pro won't start up past blue screen
I'm running OS X 10.5.7 on my MBP, along with a boot camp partition. My superdrive has been playing up for the past few months, and upon learning that the 2.1 firmware update could be responsible, I obtained the update and attempted to re-flash the f
-
Viewing Quicktime Movie?
Hello, I'm working as a transcriber on a show that just switched its format to HD. They've given me the files on an external hd with firewire, and I'm supposed to type out the dialogue using InqScribe, which is basically Quicktime with a little notep
-
Or is there another way i could download iphoto and imovie? (cuz when i try to download it with my new id it says that it cannot be purchased with my new id.)