Need one to many toplink+Jdeveloper tutorial with example
Hi
I need tutorial with example of one to many with Toplink+J developer
Thanks
Edited by: user11802935 on Aug 18, 2009 1:06 PM
Hi,
The following links should get you started.
EclipseLink JPA + Eclipse
http://wiki.eclipse.org/EclipseLink/Examples/JPA
JDeveloper tutorials
http://www.oracle.com/technology/products/jdev/index.html
TopLink + JDeveloper tutorial
http://www.oracle.com/technology/obe/obe11jdev/bulldog/ejb_jpa_jsf/ejb.html
@OneToMany documentation
http://wiki.eclipse.org/Introduction_to_EclipseLink_JPA_%28ELUG%29#.40OneToMany
thank you
/michael
www.eclipselink.org
Similar Messages
-
Look for JDeveloper Tutorial with samples code
Hello All ,
my name is Ron ,
i'm new user of JDeveloper i'm looking for a place to start a tutorial "How to use
the JDeveloper ? " with samples code .
from very basic use ( Hello world program ) to addvanced programming ( Like GUI Forms and Database )
please show me links where to start learning from
thanks in advanceThe tutorials in the JDeveloper help system are a very good place to start. Choose Help | Help Topics from the JDeveloper menu then click the Tutorials book in the Help navigator. The tutorials are also available on OTN, see:
http://otn.oracle.com:8877/jdeveloper/help/
You may also find the 'how to' documents and samples on OTN helpful:
Oracle9i JDeveloper How To Documents
http://otn.oracle.com/products/jdev/howtos/content.html
Oracle9i JDeveloper Sample Code
http://otn.oracle.com/sample_code/products/jdev/content.html
Hope this helps.
- jon -
Searching OWB-Tutorial with Example to each component
Hi,
i search a tutorial with a typical example to each component of OWB 11g. I have found this two links which was good for the beginning and an overview, but anyone know a better tutorial if possible in german language (that would be the best for me) - but of course english is possible too.
Oracle® Database 2 Day + Data Warehousing Guide;
http://download.oracle.com/docs/cd/E11882_01/server.112/e10578/toc.htm
Oracle® Database 2 Day + Data Warehousing Guide;
http://apex.oracle.com/pls/apex/f?p=44785:24:1778744827384310::NO:24:P24_CONTENT_ID,P24_PREV_PAGE:5248,29
I look forward for your replies :)This OBE has some useful illustrations;
http://apex.oracle.com/pls/apex/f?p=44785:24:1753420051941801:::24:P24_CONTENT_ID,P24_PREV_PAGE:4262,24
I created the following blog to show the results of the debugger for some operations which is an alternative view - doesn't show how to setup though...
https://blogs.oracle.com/warehousebuilder/entry/owb_11gr2_debugging
Cheers
David -
One-to-many selfjoin removing records with the same ranking or with a substitute
Sorry for my bad choice of discussion title, feel free to suggest me a more pertinent one
I've rewritten post for clarity and following the FAQ.
DB Version
I'm using Oracle Enterprise 10g 10.2.0.1.0 64bit
Tables involved
CREATE TABLE wrhwr (
wr_id INTEGER PRIMARY KEY,
eq_id VARCHAR2(50) NULL,
date_completed DATE NULL,
status VARCHAR2(20) NOT NULL,
pmp_id VARCHAR2(20) NOT NULL,
description VARCHAR2(20) NULL);
Sample data
INSERT into wrhwr VALUES (1,'MI-EXT-0001',date'2013-07-16','Com','VER-EXC','Revisione')
INSERT into wrhwr VALUES (2,'MI-EXT-0001',date'2013-07-01','Com','VER-EXC','Verifica')
INSERT into wrhwr VALUES (3,'MI-EXT-0001',date'2013-06-15','Com','VER-EXC','Revisione')
INSERT into wrhwr VALUES (4,'MI-EXT-0001',date'2013-06-25','Com','VER-EXC','Verifica')
INSERT into wrhwr VALUES (5,'MI-EXT-0001',date'2013-04-14','Com','VER-EXC','Revisione')
INSERT into wrhwr VALUES (6,'MI-EXT-0001',date'2013-04-30','Com','VER-EXC','Verifica')
INSERT into wrhwr VALUES (7,'MI-EXT-0001',date'2013-03-14','Com','VER-EXC','Collaudo')
Query used
SELECT *
FROM (SELECT eq_id,
date_completed,
RANK ()
OVER (PARTITION BY eq_id
ORDER BY date_completed DESC NULLS LAST)
rn
FROM wrhwr
WHERE status != 'S'
AND pmp_id LIKE 'VER-EX%'
AND description LIKE '%Verifica%') table1,
(SELECT eq_id,
date_completed,
RANK ()
OVER (PARTITION BY eq_id
ORDER BY date_completed DESC NULLS LAST)
rn
FROM wrhwr
WHERE status != 'S'
AND pmp_id LIKE 'VER-EX%'
AND description LIKE '%Revisione%') table2,
(SELECT eq_id,
date_completed,
RANK ()
OVER (PARTITION BY eq_id
ORDER BY date_completed DESC NULLS LAST)
rn
FROM wrhwr
WHERE status != 'S'
AND pmp_id LIKE 'VER-EX%'
AND description LIKE '%Collaudo%') table3
WHERE table1.eq_id = table3.eq_id
AND table2.eq_id = table3.eq_id
AND table1.eq_id = table2.eq_id
Purpose of the above query is to selfjoin wrhwr table 3 times in order to have for every row:
eq_id;
completition date of a work request of type Verifica for this eq_id (table1 alias);
completition date of a wr of type Revisione (table2 alias) for this eq_id;
completition date of a wr of type Collaudo (table3 alias) for this eq_id;
A distinct eq_id:
can have many work requests (wrhwr records) with different completition dates or without completition date (date_completed column NULL);
in a date range can have all the types of wrhwr ('Verifica', 'Revisione', 'Collaudo') or some of them (ex. Verifica, Revisione but not Collaudo, Collaudo but not Verifica and Revisione, etc.);
substrings in description shouldn't repeat;
(eq_id,date_completed) aren't unique but (eq_id,date_completed,description,pmp_id) should be unique;
Expected output
Using sample data above I expect this output:
eq_id,table1.date_completed,table2.date_completed,table3.date_completed
MI-EXT-001,2013-07-01,2013-07-16,2013-03-14 <--- for this eq_id table3 doesn't have 3 rows but only 1. I want to repeat the most ranked value of table3 for every result row
MI-EXT-001,2013-07-01,2013-06-15,2013-03-14 <-- I don't wanna this row because table1 and table2 have both 3 rows so the match must be in rank terms (1st,1st) (2nd,2nd) (3rd,3rd)
MI-EXT-001,2013-06-25,2013-06-15,2013-03-14 <-- 2nd rank of table1 joins 2nd rank of table2
MI-EXT-001,2013-04-30,2013-04-14,2013-03-14 <-- 1st rank table1, 1st rank table2, 1st rank table3
In vector style syntax, expected tuple output must be:
ix = i-th ranking of tableX
(i1, i2, i3) IF EXISTS an i-th ranking row in every table
ELSE
(i1, b, b)
where b is the first available lower ranking of table2 OR NULL if there isn't any row of lower ranking.
Any clues?
With the query I'm unable to remove "spurius" rows.
I'm thinking at a solution based on analytic functions like LAG() and LEAD(), using ROLLUP() or CUBE(), using nested query but I would find a solution elegant, easy, fast and easy to maintain.
ThanksFrankKulash ha scritto:
About duplicate dates: I was most interested in what you wanted when 2 (or more) rows with the same eq_id and row type (e.g. 'Collaudo') had exactly the same completed_date.
In the new results, did you get the columns mixed up? It looks like the row with eq_id='MI-EXT-0002' has 'Collaudo' in the desciption, but the date appears in the verifica column of the output, not the collaudo column.
Why don't you want 'MI-EXT-0001' in the results? Is it realted to the non-unique date?
For all optimization questions, see the forum FAQ:https://forums.oracle.com/message/9362003
If you can explain what you need to do in the view (and post some sample data and output as examples) then someone might help you find a better way to do it.
It looks like there's a lot of repetition in the code. Whatever you're trying to do, I suspect there's a simpler, more efficient way to do it.
About Duplicate dates: query must show ONLY one date_completed and ignore duplicated. Those records are "bad data". You can't have 2 collaudos with the same date completed.
Collaudo stands for equipment check. A craftperson does an equipment check once a day and, with a mobile app, update the work request related to equipment and procedure of preventive maintenance, so is impossibile that complete more than one check (Collaudo) in a day, by design.
In the new results, it's my fault: during digitation I've swapped columns
With "I don't want 'MI-EXT-0001'" I mean: "I don't want to show AGAIN MI-EXT-0001. In the previous post was correct the output including MI-EXT-0001.
Regarding optimisation...
repetition of
LAST_VALUE (
MIN (CASE WHEN r_type = THEN column_name END) IGNORE NULLS)
OVER (PARTITION BY eq_id ORDER BY r_num) AS alias_column_name
is because I don't know another feasible way to have all columns needed of table wrhwr in main query, maintaining the correct order. So i get them in got_r_type and propagate them in all the subquery.
In main query I join eq table (which contains all the information about a specific equipment) with "correct" dates and columns of wrhwr table.
I filter eq table for the specific equipment standard (eq_std column).
efm_eq_tablet table and where clause
AND e.eq_id = e2.eq_id
AND e2.is_active = 'S';
means: show only rows in eq table that have an equal row in efm_eq_tablet table AND are active (represented by 'S' value in is_active column).
About the tables v2, r2 and c2
(SELECT doc_data, doc_data_rinnovo, eq_id
FROM efm_doc_rep edr
WHERE edr.csi_id = '1011503' AND edr.doc_validita_temp = 'LIM') v2,
(SELECT doc_data, doc_data_rinnovo, eq_id
FROM efm_doc_rep edr
WHERE eq_id = edr.eq_id
AND edr.csi_id = '1011504'
AND edr.doc_validita_temp = 'LIM') r2,
(SELECT doc_data, doc_data_rinnovo, eq_id
FROM efm_doc_rep edr
WHERE edr.csi_id IN ('1011505', '1011507')
AND edr.doc_validita_temp = 'LIM'
AND adempimento_ok = 'SI') c2,
Those tables contains "alternate" dates of completition to be used when there isn't any wrhwr row for an eq_id OR when all date_completed are NULL.
NVL() and NVL2() functions are used in main query in order to impletement this.
The CASE/WHEN blocks inside main query implements the behavior of selecting the correct date based of the above conditions. -
One-to-many Relationships for entities with compound PK
Hi,all,
I am wondering how the behavior of a setter method would be for one side of the 1-to-many relations Base on EJB spec 2.x ,if we use the setter method to set a new collection,then the old relations are "clear" before the new relationships are established. which means the old referential integrity are removed from the respective tables in Database .But what if the referential table is with a compoud pk.Here
is one example:
Two entitybeans,say A and B , where their underlying tables are Table A and B in the Database.For A the primary key is Pk_1,but the B's primary key is (Pk_1,B1),where B1 is another column in table B. we have a setter method in entitybean A for the relationship of bean B,say setB(Collection collectionOfBs),.My questions is based on EJB spec, is container supposed to perform "clean" job, which dissassociate those old rows in table A with Table B before set the those new relationships when we call the setter to set a new relationships.
ThanksMy questions is based on EJB spec, is
container supposed to perform "clean" job, Yes, I think so. EJB spec says nothing special about compound keys in this case.
which
dissassociate those old rows in table A with Table B
before set the those new relationships when we call
l the setter to set a new relationships.
Thanks -
Why am I receiving Mailer-Daemon notices for only one of many companies I deal with
I use QuickBooks to send and post invoices. ThunderBird is the e-mail service tied into it. On 4/14 I started receiving Mailer-Daemon failure notice 544 for just one of my accounts when I tried e-mailing invoices to them. All the other accounts are fine.
The error message usually give you the reason. Have to read the notice?
-
Need help: How to color correct professionally (with examples)
Post to video forum (before and after): Hi, I really need some help I want to color correct this video. I would love if someone had tips, either on:
-How you would correct the original
-What it looks like I'm doing wrong in my attempts (last 2 pictures)
Thanks!I'd crunch it up a little more with a curves adjustment. These children don't look healthy and stronger contrast will help. Also push the reds toward a slightly more orange tone. They look too purple. There's also still an overall purple tinge which needs to be eliminated. See the included 3 minute quick shot of mine. Not perfect and requires more tweaking (too much yellow now, see the lips), but I think it better represents the feeling one would want to convey.
Mylenium -
Request for abap objects tutorial with examples
hi,
i am new to <b>abap objects</b>,
please send me a good tutorial for <b>abap objects</b> which contain good explanation with
good examples.
please send the tutorials to
<b>[email protected]</b>
thanks®ards
vamsi nHello,
<b>General Tutorial for OOPS</b>
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907
<b>Have a look at these links for OO ABAP.</b>
http://www.sapgenie.com/abap/OO/
http://help.sap.com/saphelp_nw04/helpdata/en/c3/225b5654f411d194a60000e8353423/content.htm
http://www.esnips.com/doc/375fff1b-5a62-444d-8ec1-55508c308b17/prefinalppt.ppt
http://www.esnips.com/doc/2c76dc57-e74a-4539-a20e-29383317e804/OO-abap.pdf
http://www.esnips.com/doc/5c65b0dd-eddf-4512-8e32-ecd26735f0f2/prefinalppt.ppt
http://www.allsaplinks.com/
http://www.sapgenie.com/abap/controls/index.htm
http://www.esnips.com/doc/2c76dc57-e74a-4539-a20e-29383317e804/OO-abap.pdf
http://www.esnips.com/doc/0ef39d4b-586a-4637-abbb-e4f69d2d9307/SAP-CONTROLS-WORKSHOP.pdf
http://help.sap.com/saphelp_erp2005/helpdata/en/ce/b518b6513611d194a50000e8353423/frameset.htm
<b>SDN Series:</b>
https://www.sdn.sap.com/irj/sdn/developerareas/abap?rid=/webcontent/uuid/35eaef9c-0b01-0010-dd8b-e3b0f9ed7ccb [original link is broken]
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCABA/BCABA.pdf
<b>Basic concepts of OOPS</b>
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b6cae890-0201-0010-ef8b-f970a9c41d47
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1591ec90-0201-0010-3ba8-cdcd500b17cf
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/alv%20grid/abap%20code%20sample%20to%20display%20data%20in%20alv%20grid%20using%20object%20oriented%20programming.doc
http://www.henrikfrank.dk/abapuk.html
http://www.erpgenie.com/abap/OO/
Regards,
Beejal
**Reward if this helps -
Tutorial with examples to practice SQL
Hi,
I have read several tutorials related to the topics of "Oracle 11g- SQL Fundamental". But all of them describes SQL from theoretical point of view and none of them have any guided example, so that I can practice.
Please advice with some materials how I can practice in querying, joining, creating objects, etc, thus mainly working with database, not with administering.
Thank you.These forums are stuffed full of people posing SQL questions. Some are simple, some are tricky. It's a very good way of learning how to write SQL. It's one of the reasons why old lags like me answer questions here: we still discover new things about Oracle.
cheers, APC -
Post Author: Don
CA Forum: Formula
Hello Everyone,
I need some assistance. I have a one to many relationship...
Example...
TABLE 1
FieldName = RecordID
DATA, RecordID= 10
TABLE 2, linked one to many to RecordID in TABLE1
FieldNames = RecordID, Name, ContactType
DATA, RecordID= 10, Name= Tom, ContactType= Sales
DATA, RecordID= 10, Name= Dan, ContactType= Service
DATA, RecordID=10, Name= Jon, ContactType= Sales
What I am looking for is to create a formula that would return something that looks like this....
Sales Contact Name
Tom, Jon
So... I want to grab all the "Contact Types" of "Sales" from TABLE 2 then pass in the "Name" field from TABLE 2 and if there is more then one "Name" of the sames "Contact Type" then comma seperate it.
And... I don't want to do this in a sub report. I do know I can make a sub report and return both values but to my knowledge the values would be on top of one another and not beside each other comma separated.
Ideas?Post Author: Don
CA Forum: Formula
That may work using a subreport...
I think the root of this my problem is the fact I have a table relationship, left outer... one to many join. So even if I drop your suggested formula in my report I still get repeating record details with blank names where all the other contact types would be.
Ticket Number Contact Name Contact Type
111111 Dan, Jim Sales
111111 <---- where the other contact type appear
111111 <---- where the other contact type appear
I was trying to avoid having to create several subreports for each data field I need on the report. However, I think I can use your formula in a subreport to allow the data to display in a comma separated row rather then a vertical list.
I thought about suppressing but that won't work because I have other contact types I need to list.
Thank you for responding. -
One-to-many relationship: problem with several tables on the one side...
Hello
I'm having problems developing a database for a content management system. Apart from details, I've got one main table, that holds the tree structure of the content ("resources") and several other tables that contain data of a particular datatype ("documents", "images", etc.). Now, there's one-to-many relationship between "resources" table and all the datatype tables - that is, in the "resources" table there's "resource_id" column, being a foreign key referenced to the "id" columns in the datatype tables.
The problem is that this design is deficient. I can't tell form the "resource_id" column from which datatype table to get the data. It seems to me that one-to-many relationship only works with two tables. If the data on the one side of the relationship is contained in several tables, problems arise.
Anybody knows a solution? I would be obliged.
Regards
HavocadoHi;
A simple way may be create a view on referenced tables:
Connected to Oracle Database 10g Express Edition Release 10.2.0.1.0
Connected as hr
SQL>
SQL> drop table resources;
Table dropped
SQL> create table resources(id number, name varchar2(12));
Table created
SQL> insert into resources values(1,'Doc....');
1 row inserted
SQL> insert into resources values(2,'Img....');
1 row inserted
SQL> drop table documents;
Table dropped
SQL> create table documents(id number, resource_id number,type varchar2(12));
Table created
SQL> insert into documents values(1,1,'txt');
1 row inserted
SQL> drop table images;
Table dropped
SQL> create table images(id number, resource_id number,path varchar2(24));
Table created
SQL> insert into images values(1,2,'/data01/images/img01.jpg');
1 row inserted
SQL> create or replace view vw_resource_ref as
2 select id, resource_id, type, null as path from documents
3 union
4 select id, resource_id, null as type, path from images;
View created
SQL> select * from resources r inner join vw_resource_ref rv on r.id = rv.resource_id;
ID NAME ID RESOURCE_ID TYPE PATH
1 Doc.... 1 1 txt
2 Img.... 1 2 /data01/images/img01.jpg
SQL> Regards.... -
Creating a single context index on a one-to-many and lookup table
Hello,
I've been successfully setting up text indexes on multiple columns on the same table (using MULTI_COLUMN_DATASTORE preferences), but now I have a situation with a one-to-many data collection table (with a FK to a lookup table), and I need to search columns across both of these tables. Sample code below, more of my chattering after the code block:
CREATE TABLE SUBMISSION
( SUBMISSION_ID NUMBER(10) NOT NULL,
SUBMISSION_NAME VARCHAR2(100) NOT NULL
CREATE TABLE ADVISOR_TYPE
( ADVISOR_TYPE_ID NUMBER(10) NOT NULL,
ADVISOR_TYPE_NAME VARCHAR2(50) NOT NULL
CREATE TABLE SUBMISSION_ADVISORS
( SUBMISSION_ADVISORS_ID NUMBER(10) NOT NULL,
SUBMISSION_ID NUMBER(10) NOT NULL,
ADVISOR_TYPE_ID NUMBER(10) NOT NULL,
FIRST_NAME VARCHAR(50) NULL,
LAST_NAME VARCHAR(50) NULL,
SUFFIX VARCHAR(20) NULL
INSERT INTO SUBMISSION (SUBMISSION_ID, SUBMISSION_NAME) VALUES (1, 'Some Research Paper');
INSERT INTO SUBMISSION (SUBMISSION_ID, SUBMISSION_NAME) VALUES (2, 'Thesis on 17th Century Weather Patterns');
INSERT INTO SUBMISSION (SUBMISSION_ID, SUBMISSION_NAME) VALUES (3, 'Statistical Analysis on Sunny Days in March');
INSERT INTO ADVISOR_TYPE (ADVISOR_TYPE_ID, ADVISOR_TYPE_NAME) VALUES (1, 'Department Chair');
INSERT INTO ADVISOR_TYPE (ADVISOR_TYPE_ID, ADVISOR_TYPE_NAME) VALUES (2, 'Department Co-Chair');
INSERT INTO ADVISOR_TYPE (ADVISOR_TYPE_ID, ADVISOR_TYPE_NAME) VALUES (3, 'Professor');
INSERT INTO ADVISOR_TYPE (ADVISOR_TYPE_ID, ADVISOR_TYPE_NAME) VALUES (4, 'Associate Professor');
INSERT INTO ADVISOR_TYPE (ADVISOR_TYPE_ID, ADVISOR_TYPE_NAME) VALUES (5, 'Scientist');
INSERT INTO SUBMISSION_ADVISORS (SUBMISSION_ADVISORS_ID, SUBMISSION_ID, ADVISOR_TYPE_ID, FIRST_NAME, LAST_NAME, SUFFIX) VALUES (1,1,2,'John', 'Doe', 'PhD');
INSERT INTO SUBMISSION_ADVISORS (SUBMISSION_ADVISORS_ID, SUBMISSION_ID, ADVISOR_TYPE_ID, FIRST_NAME, LAST_NAME, SUFFIX) VALUES (2,1,2,'Jane', 'Doe', 'PhD');
INSERT INTO SUBMISSION_ADVISORS (SUBMISSION_ADVISORS_ID, SUBMISSION_ID, ADVISOR_TYPE_ID, FIRST_NAME, LAST_NAME, SUFFIX) VALUES (3,2,3,'Johan', 'Smith', NULL);
INSERT INTO SUBMISSION_ADVISORS (SUBMISSION_ADVISORS_ID, SUBMISSION_ID, ADVISOR_TYPE_ID, FIRST_NAME, LAST_NAME, SUFFIX) VALUES (4,2,4,'Magnus', 'Jackson', 'MS');
INSERT INTO SUBMISSION_ADVISORS (SUBMISSION_ADVISORS_ID, SUBMISSION_ID, ADVISOR_TYPE_ID, FIRST_NAME, LAST_NAME, SUFFIX) VALUES (5,3,5,'Williard', 'Forsberg', 'AMS');
COMMIT;I want to be able to create a text index to lump these fields together:
SUBMISSION_ADVISORS.FIRST_NAME
SUBMISSION_ADVISORS.LAST_NAME
SUBMISSION_ADVISORS.SUFFIX
ADVISOR_TYPE.ADVISOR_TYPE_NAME
I've looked at DETAIL_DATASTORE and USER_DATASTORE, but the examples in Oracle Docs for DETAIL_DATASTORE leave me a little bit perplexed. It seems like this should be pretty straightforward.
Ideally, I'm trying to avoid creating new columns, and keeping the trigger adjustments to a minimum. But I'm open to any and all suggestions. Thanks for for your time and thoughts.
-JamieI would create a procedure that creates a virtual document with tags, which is what the multi_column_datatstore does behind the scenes. Then I would use that procedure in a user_datastore, so the result is the same for multiple tables as what a multi_column_datastore does for one table. I would also use either auto_section_group or some other type of section group, so that you can search using WITHIN as with the multi_column_datastore. Please see the demonstration below.
SCOTT@orcl_11gR2> -- tables and data that you provided:
SCOTT@orcl_11gR2> CREATE TABLE SUBMISSION
2 ( SUBMISSION_ID NUMBER(10) NOT NULL,
3 SUBMISSION_NAME VARCHAR2(100) NOT NULL
4 )
5 /
Table created.
SCOTT@orcl_11gR2> CREATE TABLE ADVISOR_TYPE
2 ( ADVISOR_TYPE_ID NUMBER(10) NOT NULL,
3 ADVISOR_TYPE_NAME VARCHAR2(50) NOT NULL
4 )
5 /
Table created.
SCOTT@orcl_11gR2> CREATE TABLE SUBMISSION_ADVISORS
2 ( SUBMISSION_ADVISORS_ID NUMBER(10) NOT NULL,
3 SUBMISSION_ID NUMBER(10) NOT NULL,
4 ADVISOR_TYPE_ID NUMBER(10) NOT NULL,
5 FIRST_NAME VARCHAR(50) NULL,
6 LAST_NAME VARCHAR(50) NULL,
7 SUFFIX VARCHAR(20) NULL
8 )
9 /
Table created.
SCOTT@orcl_11gR2> INSERT ALL
2 INTO SUBMISSION (SUBMISSION_ID, SUBMISSION_NAME)
3 VALUES (1, 'Some Research Paper')
4 INTO SUBMISSION (SUBMISSION_ID, SUBMISSION_NAME)
5 VALUES (2, 'Thesis on 17th Century Weather Patterns')
6 INTO SUBMISSION (SUBMISSION_ID, SUBMISSION_NAME)
7 VALUES (3, 'Statistical Analysis on Sunny Days in March')
8 SELECT * FROM DUAL
9 /
3 rows created.
SCOTT@orcl_11gR2> INSERT ALL
2 INTO ADVISOR_TYPE (ADVISOR_TYPE_ID, ADVISOR_TYPE_NAME)
3 VALUES (1, 'Department Chair')
4 INTO ADVISOR_TYPE (ADVISOR_TYPE_ID, ADVISOR_TYPE_NAME)
5 VALUES (2, 'Department Co-Chair')
6 INTO ADVISOR_TYPE (ADVISOR_TYPE_ID, ADVISOR_TYPE_NAME)
7 VALUES (3, 'Professor')
8 INTO ADVISOR_TYPE (ADVISOR_TYPE_ID, ADVISOR_TYPE_NAME)
9 VALUES (4, 'Associate Professor')
10 INTO ADVISOR_TYPE (ADVISOR_TYPE_ID, ADVISOR_TYPE_NAME)
11 VALUES (5, 'Scientist')
12 SELECT * FROM DUAL
13 /
5 rows created.
SCOTT@orcl_11gR2> INSERT ALL
2 INTO SUBMISSION_ADVISORS (SUBMISSION_ADVISORS_ID, SUBMISSION_ID, ADVISOR_TYPE_ID, FIRST_NAME, LAST_NAME, SUFFIX)
3 VALUES (1,1,2,'John', 'Doe', 'PhD')
4 INTO SUBMISSION_ADVISORS (SUBMISSION_ADVISORS_ID, SUBMISSION_ID, ADVISOR_TYPE_ID, FIRST_NAME, LAST_NAME, SUFFIX)
5 VALUES (2,1,2,'Jane', 'Doe', 'PhD')
6 INTO SUBMISSION_ADVISORS (SUBMISSION_ADVISORS_ID, SUBMISSION_ID, ADVISOR_TYPE_ID, FIRST_NAME, LAST_NAME, SUFFIX)
7 VALUES (3,2,3,'Johan', 'Smith', NULL)
8 INTO SUBMISSION_ADVISORS (SUBMISSION_ADVISORS_ID, SUBMISSION_ID, ADVISOR_TYPE_ID, FIRST_NAME, LAST_NAME, SUFFIX)
9 VALUES (4,2,4,'Magnus', 'Jackson', 'MS')
10 INTO SUBMISSION_ADVISORS (SUBMISSION_ADVISORS_ID, SUBMISSION_ID, ADVISOR_TYPE_ID, FIRST_NAME, LAST_NAME, SUFFIX)
11 VALUES (5,3,5,'Williard', 'Forsberg', 'AMS')
12 SELECT * FROM DUAL
13 /
5 rows created.
SCOTT@orcl_11gR2> -- constraints presumed based on your description:
SCOTT@orcl_11gR2> ALTER TABLE submission ADD CONSTRAINT submission_id_pk
2 PRIMARY KEY (submission_id)
3 /
Table altered.
SCOTT@orcl_11gR2> ALTER TABLE advisor_type ADD CONSTRAINT advisor_type_id_pk
2 PRIMARY KEY (advisor_type_id)
3 /
Table altered.
SCOTT@orcl_11gR2> ALTER TABLE submission_advisors ADD CONSTRAINT submission_advisors_id_pk
2 PRIMARY KEY (submission_advisors_id)
3 /
Table altered.
SCOTT@orcl_11gR2> ALTER TABLE submission_advisors ADD CONSTRAINT submission_id_fk
2 FOREIGN KEY (submission_id) REFERENCES submission (submission_id)
3 /
Table altered.
SCOTT@orcl_11gR2> ALTER TABLE submission_advisors ADD CONSTRAINT advisor_type_id_fk
2 FOREIGN KEY (advisor_type_id) REFERENCES advisor_type (advisor_type_id)
3 /
Table altered.
SCOTT@orcl_11gR2> -- resulting data:
SCOTT@orcl_11gR2> COLUMN submission_name FORMAT A45
SCOTT@orcl_11gR2> COLUMN advisor FORMAT A40
SCOTT@orcl_11gR2> SELECT s.submission_name,
2 a.advisor_type_name || ' ' ||
3 sa.first_name || ' ' ||
4 sa.last_name || ' ' ||
5 sa.suffix AS advisor
6 FROM submission_advisors sa,
7 submission s,
8 advisor_type a
9 WHERE sa.advisor_type_id = a.advisor_type_id
10 AND sa.submission_id = s.submission_id
11 /
SUBMISSION_NAME ADVISOR
Some Research Paper Department Co-Chair John Doe PhD
Some Research Paper Department Co-Chair Jane Doe PhD
Thesis on 17th Century Weather Patterns Professor Johan Smith
Thesis on 17th Century Weather Patterns Associate Professor Magnus Jackson MS
Statistical Analysis on Sunny Days in March Scientist Williard Forsberg AMS
5 rows selected.
SCOTT@orcl_11gR2> -- procedure to create virtual documents:
SCOTT@orcl_11gR2> CREATE OR REPLACE PROCEDURE submission_advisors_proc
2 (p_rowid IN ROWID,
3 p_clob IN OUT NOCOPY CLOB)
4 AS
5 BEGIN
6 FOR r1 IN
7 (SELECT *
8 FROM submission_advisors
9 WHERE ROWID = p_rowid)
10 LOOP
11 IF r1.first_name IS NOT NULL THEN
12 DBMS_LOB.WRITEAPPEND (p_clob, 12, '<first_name>');
13 DBMS_LOB.WRITEAPPEND (p_clob, LENGTH (r1.first_name), r1.first_name);
14 DBMS_LOB.WRITEAPPEND (p_clob, 13, '</first_name>');
15 END IF;
16 IF r1.last_name IS NOT NULL THEN
17 DBMS_LOB.WRITEAPPEND (p_clob, 11, '<last_name>');
18 DBMS_LOB.WRITEAPPEND (p_clob, LENGTH (r1.last_name), r1.last_name);
19 DBMS_LOB.WRITEAPPEND (p_clob, 12, '</last_name>');
20 END IF;
21 IF r1.suffix IS NOT NULL THEN
22 DBMS_LOB.WRITEAPPEND (p_clob, 8, '<suffix>');
23 DBMS_LOB.WRITEAPPEND (p_clob, LENGTH (r1.suffix), r1.suffix);
24 DBMS_LOB.WRITEAPPEND (p_clob, 9, '</suffix>');
25 END IF;
26 FOR r2 IN
27 (SELECT *
28 FROM submission
29 WHERE submission_id = r1.submission_id)
30 LOOP
31 DBMS_LOB.WRITEAPPEND (p_clob, 17, '<submission_name>');
32 DBMS_LOB.WRITEAPPEND (p_clob, LENGTH (r2.submission_name), r2.submission_name);
33 DBMS_LOB.WRITEAPPEND (p_clob, 18, '</submission_name>');
34 END LOOP;
35 FOR r3 IN
36 (SELECT *
37 FROM advisor_type
38 WHERE advisor_type_id = r1.advisor_type_id)
39 LOOP
40 DBMS_LOB.WRITEAPPEND (p_clob, 19, '<advisor_type_name>');
41 DBMS_LOB.WRITEAPPEND (p_clob, LENGTH (r3.advisor_type_name), r3.advisor_type_name);
42 DBMS_LOB.WRITEAPPEND (p_clob, 20, '</advisor_type_name>');
43 END LOOP;
44 END LOOP;
45 END submission_advisors_proc;
46 /
Procedure created.
SCOTT@orcl_11gR2> SHOW ERRORS
No errors.
SCOTT@orcl_11gR2> -- examples of virtual documents that procedure creates:
SCOTT@orcl_11gR2> DECLARE
2 v_clob CLOB := EMPTY_CLOB();
3 BEGIN
4 FOR r IN
5 (SELECT ROWID rid FROM submission_advisors)
6 LOOP
7 DBMS_LOB.CREATETEMPORARY (v_clob, TRUE);
8 submission_advisors_proc (r.rid, v_clob);
9 DBMS_OUTPUT.PUT_LINE (v_clob);
10 DBMS_LOB.FREETEMPORARY (v_clob);
11 END LOOP;
12 END;
13 /
<first_name>John</first_name><last_name>Doe</last_name><suffix>PhD</suffix><submission_name>Some
Research Paper</submission_name><advisor_type_name>Department Co-Chair</advisor_type_name>
<first_name>Jane</first_name><last_name>Doe</last_name><suffix>PhD</suffix><submission_name>Some
Research Paper</submission_name><advisor_type_name>Department Co-Chair</advisor_type_name>
<first_name>Johan</first_name><last_name>Smith</last_name><submission_name>Thesis on 17th Century
Weather Patterns</submission_name><advisor_type_name>Professor</advisor_type_name>
<first_name>Magnus</first_name><last_name>Jackson</last_name><suffix>MS</suffix><submission_name>The
sis on 17th Century Weather Patterns</submission_name><advisor_type_name>Associate
Professor</advisor_type_name>
<first_name>Williard</first_name><last_name>Forsberg</last_name><suffix>AMS</suffix><submission_name
Statistical Analysis on Sunny Days inMarch</submission_name><advisor_type_name>Scientist</advisor_type_name>
PL/SQL procedure successfully completed.
SCOTT@orcl_11gR2> -- user_datastore that uses procedure:
SCOTT@orcl_11gR2> BEGIN
2 CTX_DDL.CREATE_PREFERENCE ('sa_datastore', 'USER_DATASTORE');
3 CTX_DDL.SET_ATTRIBUTE ('sa_datastore', 'PROCEDURE', 'submission_advisors_proc');
4 END;
5 /
PL/SQL procedure successfully completed.
SCOTT@orcl_11gR2> -- index (on optional extra column) that uses user_datastore and section group:
SCOTT@orcl_11gR2> ALTER TABLE submission_advisors ADD (any_column VARCHAR2(1))
2 /
Table altered.
SCOTT@orcl_11gR2> CREATE INDEX submission_advisors_idx
2 ON submission_advisors (any_column)
3 INDEXTYPE IS CTXSYS.CONTEXT
4 PARAMETERS
5 ('DATASTORE sa_datastore
6 SECTION GROUP CTXSYS.AUTO_SECTION_GROUP')
7 /
Index created.
SCOTT@orcl_11gR2> -- what is tokenized, indexed, and searchable:
SCOTT@orcl_11gR2> SELECT token_text FROM dr$submission_advisors_idx$i
2 /
TOKEN_TEXT
17TH
ADVISOR_TYPE_NAME
AMS
ANALYSIS
ASSOCIATE
CENTURY
CHAIR
CO
DAYS
DEPARTMENT
DOE
FIRST_NAME
FORSBERG
JACKSON
JANE
JOHAN
JOHN
LAST_NAME
MAGNUS
MARCH
PAPER
PATTERNS
PHD
PROFESSOR
RESEARCH
SCIENTIST
SMITH
STATISTICAL
SUBMISSION_NAME
SUFFIX
SUNNY
THESIS
WEATHER
WILLIARD
34 rows selected.
SCOTT@orcl_11gR2> -- sample searches across all data:
SCOTT@orcl_11gR2> VARIABLE search_string VARCHAR2(100)
SCOTT@orcl_11gR2> EXEC :search_string := 'professor'
PL/SQL procedure successfully completed.
SCOTT@orcl_11gR2> SELECT s.submission_name,
2 a.advisor_type_name || ' ' ||
3 sa.first_name || ' ' ||
4 sa.last_name || ' ' ||
5 sa.suffix AS advisor
6 FROM submission_advisors sa,
7 submission s,
8 advisor_type a
9 WHERE CONTAINS (sa.any_column, :search_string) > 0
10 AND sa.advisor_type_id = a.advisor_type_id
11 AND sa.submission_id = s.submission_id
12 /
SUBMISSION_NAME ADVISOR
Thesis on 17th Century Weather Patterns Professor Johan Smith
Thesis on 17th Century Weather Patterns Associate Professor Magnus Jackson MS
2 rows selected.
SCOTT@orcl_11gR2> EXEC :search_string := 'doe'
PL/SQL procedure successfully completed.
SCOTT@orcl_11gR2> /
SUBMISSION_NAME ADVISOR
Some Research Paper Department Co-Chair John Doe PhD
Some Research Paper Department Co-Chair Jane Doe PhD
2 rows selected.
SCOTT@orcl_11gR2> EXEC :search_string := 'paper'
PL/SQL procedure successfully completed.
SCOTT@orcl_11gR2> /
SUBMISSION_NAME ADVISOR
Some Research Paper Department Co-Chair John Doe PhD
Some Research Paper Department Co-Chair Jane Doe PhD
2 rows selected.
SCOTT@orcl_11gR2> -- sample searches within specific columns:
SCOTT@orcl_11gR2> EXEC :search_string := 'chair'
PL/SQL procedure successfully completed.
SCOTT@orcl_11gR2> SELECT s.submission_name,
2 a.advisor_type_name || ' ' ||
3 sa.first_name || ' ' ||
4 sa.last_name || ' ' ||
5 sa.suffix AS advisor
6 FROM submission_advisors sa,
7 submission s,
8 advisor_type a
9 WHERE CONTAINS (sa.any_column, :search_string || ' WITHIN advisor_type_name') > 0
10 AND sa.advisor_type_id = a.advisor_type_id
11 AND sa.submission_id = s.submission_id
12 /
SUBMISSION_NAME ADVISOR
Some Research Paper Department Co-Chair John Doe PhD
Some Research Paper Department Co-Chair Jane Doe PhD
2 rows selected.
SCOTT@orcl_11gR2> EXEC :search_string := 'phd'
PL/SQL procedure successfully completed.
SCOTT@orcl_11gR2> SELECT s.submission_name,
2 a.advisor_type_name || ' ' ||
3 sa.first_name || ' ' ||
4 sa.last_name || ' ' ||
5 sa.suffix AS advisor
6 FROM submission_advisors sa,
7 submission s,
8 advisor_type a
9 WHERE CONTAINS (sa.any_column, :search_string || ' WITHIN suffix') > 0
10 AND sa.advisor_type_id = a.advisor_type_id
11 AND sa.submission_id = s.submission_id
12 /
SUBMISSION_NAME ADVISOR
Some Research Paper Department Co-Chair John Doe PhD
Some Research Paper Department Co-Chair Jane Doe PhD
2 rows selected.
SCOTT@orcl_11gR2> EXEC :search_string := 'weather'
PL/SQL procedure successfully completed.
SCOTT@orcl_11gR2> SELECT s.submission_name,
2 a.advisor_type_name || ' ' ||
3 sa.first_name || ' ' ||
4 sa.last_name || ' ' ||
5 sa.suffix AS advisor
6 FROM submission_advisors sa,
7 submission s,
8 advisor_type a
9 WHERE CONTAINS (sa.any_column, :search_string || ' WITHIN submission_name') > 0
10 AND sa.advisor_type_id = a.advisor_type_id
11 AND sa.submission_id = s.submission_id
12 /
SUBMISSION_NAME ADVISOR
Thesis on 17th Century Weather Patterns Professor Johan Smith
Thesis on 17th Century Weather Patterns Associate Professor Magnus Jackson MS
2 rows selected. -
Hi gurus, can any one explain me about Badi & Bapi with eg.?
Hi gurus,
Can any one explain me about Badi & Bapi with examples.
Regards
RaghuHi Raghu
1) Badis means:
The BAdIs of the enhancement concept are not treated as standalone objects, but are integrated in the overall concept. Thus, the tools for defining BAdIs are part of the Enhancement Builder included in the ABAP Workbench.
Transaction SE18, up to now the only entry point for defining classic BAdIs, now manages classic and new BAdIs. When an existing BAdI is displayed or changed, it analyzes whether the BAdI is a classic or a new one, and then switches to the respective tool. In the case of a new BAdI, this tool is the enhancement spot editor
2) Bapis means:
BAPIs can be called within the R/3 System from external application systems and other programs. BAPIs are the communication standard for business applications. BAPI interface technology forms the basis for the following developments:
Connecting:
New R/3 components, for example, Advanced Planner and Optimizer (APO) and Business Information Warehouse (BW).
Non-SAP software
Legacy systems
Isolating components within the R/3 System in the context of Business Framework
Distributed R/3 scenarios with asynchronous connections using Application Link Enabling (ALE)
Connecting R/3 Systems to the Internet using Internet Application Components (IACs)
PC programs as frontends to the R/3 System, for example, Visual Basic (Microsoft) or Visual Age for Java (IBM).
Workflow applications that extend beyond system boundaries
Customers' and partners' own developments
Thanks
Trinath -
TopLink11 Tutorial problems with one-to-many relation
Hi,
I installed TopLink 11 and the related tutorial to work in a simple Eclipse project.
Everthing works fine except for the storing of the one-to-many relation in the database.
The tutorial works with employee, address and phone tables/classes. Plain Objects can be stored and one-to-one relations too. However when trying to store a one-to-many relation not the key of the related object (which is at that tome well known) but the object is tried to be entered
in the Logfile I find:
[TopLink Fine]: 2008.01.10 10:27:28.748--DatabaseSessionImpl(12916846)--Connection(9550256)--Thread(Thread[main,5,main])--INSERT INTO EMPLOYEE (EMP_ID, L_NAME, F_NAME, ADDR_ID, VERSION) VALUES (?, ?, ?, ?, ?)
bind => [1501, Pascal, Blaise, 2252, 1]
[TopLink Finer]: 2008.01.10 10:27:28.748--DatabaseSessionImpl(12916846)--Connection(9550256)--Thread(Thread[main,5,main])--commit transaction
[TopLink Finer]: 2008.01.10 10:27:28.748--UnitOfWork(14858725)--Thread(Thread[main,5,main])--end unit of work commit
[TopLink Finer]: 2008.01.10 10:27:28.748--UnitOfWork(14858725)--Thread(Thread[main,5,main])--release unit of work
[TopLink Finer]: 2008.01.10 10:27:28.748--UnitOfWork(14858725)--Thread(Thread[main,5,main])--release unit of work
[TopLink Finest]: 2008.01.10 10:27:28.748--UnitOfWork(18511661)--Thread(Thread[main,5,main])--Register the object Employee: Blaise Pascal
[TopLink Finest]: 2008.01.10 10:27:28.748--UnitOfWork(18511661)--Thread(Thread[main,5,main])--Execute query DoesExistQuery()
[TopLink Finer]: 2008.01.10 10:28:58.370--UnitOfWork(18511661)--Thread(Thread[main,5,main])--begin unit of work commit
[TopLink Finer]: 2008.01.10 10:28:58.370--DatabaseSessionImpl(12916846)--Connection(9550256)--Thread(Thread[main,5,main])--begin transaction
[TopLink Finest]: 2008.01.10 10:28:58.370--UnitOfWork(18511661)--Thread(Thread[main,5,main])--Execute query UpdateObjectQuery(Employee: Blaise Pascal)
[TopLink Finest]: 2008.01.10 10:28:58.386--UnitOfWork(18511661)--Thread(Thread[main,5,main])--Execute query InsertObjectQuery(PhoneNumber[desk]: (603) 123-4567)
[TopLink Fine]: 2008.01.10 10:28:58.386--DatabaseSessionImpl(12916846)--Connection(9550256)--Thread(Thread[main,5,main])--INSERT INTO PHONE (P_NUMBER, EMP_ID, AREA_CODE, TYPE) VALUES (?, ?, ?, ?)
bind => [1234567, {Employee: Blaise Pascal}, 603, desk]
[TopLink Warning]: 2008.01.10 10:28:58.511--UnitOfWork(18511661)--Thread(Thread[main,5,main])--Local Exception Stack:
Exception [TOPLINK-4002] (Oracle TopLink - 11g Technology Preview 3 (11.1.1.0.0) (Build 071214)): oracle.toplink.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: Ungültiger Spaltentyp Error Code: 17004
the highlighted section should be 1501 (the key of the employee record)
Any ideas how to fix this?
Thanks ErikaErika,
You need to specify the other side of the relationship (on the PhoneNumber side), which is done by putting a @ManyToOne annotation on the "employee" attribute in PhoneNumber. That will cause TopLink to know that it is a relationship and not a basic mapping.
-Mike -
JDeveloper tutorial fails with java.sql.SQLException: ORA-00600
In following the steps to the JDeveloper tutorial, after I successfully created and tested my connections, I proceeded on to run ImageLoader.java (Under DatabaseSetup.jws), and it returns an exception. The debug output log is as follows:
Diagnostics: Routing diagnostics to standard output (use -Djbo.debugoutput=silent to remove)
Successfully loaded properties file using: getResourceAsStream("/oracle/jbo/common/Diagnostic.properties");
[00] Diagnostic Properties: Timing:false Functions:false Linecount:true Threshold:6
[01] CommonMessageBundle (language base) being initialized
[02] Stringmanager using default locale: 'null'
[03] BC4JDeployPlatform: LOCAL
[04] Propertymanager: searching for file and system based properties
[05] {{ begin Loading BC4J properties
[06] -----------------------------------------------------------
[07] BC4J Property jbo.default.language='en' -->(MetaObjectManager) from System Default
[08] BC4J Property jbo.default.country='US' -->(MetaObjectManager) from System Default
[09] BC4J Property DeployPlatform='LOCAL' -->(SessionImpl) from Client Environment
[10] Skipping empty Property ConnectionMode from System Default
[11] Skipping empty Property HostName from System Default
[12] Skipping empty Property ConnectionPort from System Default
[13] Skipping empty Property ApplicationPath from System Default
[14] Skipping empty Property java.naming.security.principal from System Default
[15] Skipping empty Property java.naming.security.credentials from System Default
[16] BC4J Property jbo.use.pers.coll='false' -->(SessionImpl) from System Default
[17] BC4J Property jbo.pers.max.rows.per.node='70' -->(SessionImpl) from System Default
[18] BC4J Property jbo.pers.max.active.nodes='10' -->(SessionImpl) from System Default
[19] BC4J Property jbo.pcoll.mgr='oracle.jbo.pcoll.OraclePersistManager' -->(SessionImpl) from System Default
[20] BC4J Property jbo.fetch.mode='AS.NEEDED' -->(MetaObjectManager) from System Default
[21] Skipping empty Property JBODynamicObjectsPackage from System Default
[22] BC4J Property MetaObjectContextFactory='oracle.jbo.server.xml.DefaultMomContextFactory' -->(MetaObjectManager) from /oracle/jbo/server/jboserver.properties resource
[23] BC4J Property MetaObjectContext='oracle.jbo.server.xml.XMLContextImpl' -->(MetaObjectManager) from /oracle/jbo/server/jboserver.properties resource
[24] BC4J Property java.naming.factory.initial='oracle.jbo.common.JboInitialContextFactory' -->(SessionImpl) from Client Environment
[25] BC4J Property IsLazyLoadingTrue='true' -->(MetaObjectManager) from /oracle/jbo/server/jboserver.properties resource
[26] BC4J Property ActivateSharedDataHandle='false' -->(MetaObjectManager) from System Default
[27] Skipping empty Property HandleName from System Default
[28] Skipping empty Property Factory-Substitution-List from System Default
[29] Skipping empty Property jbo.project from System Default
[30] BC4J Property jbo.max.cursors='50' -->(MetaObjectManager) from System Default
[31] BC4J Property jbo.dofailover='true' -->(MetaObjectManager) from System Default
[32] BC4J Property jbo.doconnectionpooling='false' -->(MetaObjectManager) from System Default
[33] BC4J Property jbo.recyclethreshold='10' -->(MetaObjectManager) from System Default
[34] BC4J Property jbo.passivationstore='null' -->(MetaObjectManager) from System Default
[35] BC4J Property RELEASE_MODE='Reserved' -->(MetaObjectManager) from System Default
[36] BC4J Property jbo.maxpoolcookieage='-1' -->(MetaObjectManager) from System Default
[37] Skipping empty Property PoolClassName from System Default
[38] BC4J Property jbo.maxpoolsize='2147483647' -->(MetaObjectManager) from System Default
[39] BC4J Property jbo.initpoolsize='0' -->(MetaObjectManager) from System Default
[40] BC4J Property jbo.poolrequesttimeout='30000' -->(MetaObjectManager) from System Default
[41] BC4J Property jbo.assoc.consistent='true' -->(MetaObjectManager) from System Default
[42] BC4J Property jbo.SQLBuilder='Oracle' -->(MetaObjectManager) from /oracle/jbo/server/jboserver.properties resource
[43] BC4J Property jbo.ConnectionPoolManager='oracle.jbo.server.ConnectionPoolManagerImpl' -->(MetaObjectManager) from System Default
[44] BC4J Property jbo.TypeMapEntries='Oracle' -->(MetaObjectManager) from /oracle/jbo/server/jboserver.properties resource
[45] BC4J Property jbo.jdbc.trace='false' -->(MetaObjectManager) from System Default
[46] BC4J Property oracle.jbo.defineColumnLength='true' -->(MetaObjectManager) from System Default
[47] Skipping empty Property jbo.tmpdir from System Default
[48] Skipping empty Property jbo.server.internal_connection from System Default
[49] Skipping empty Property SessionClass from System Default
[50] Skipping empty Property TransactionFactory from System Default
[51] BC4J Property jbo.debugoutput='console' -->(Diagnostic) from System Property
[52] BC4J Property jbo.debug.prefix='DBG' -->(Diagnostic) from /oracle/jbo/common/Diagnostic.properties resource
[53] BC4J Property jbo.logging.show.timing='false' -->(Diagnostic) from /oracle/jbo/common/Diagnostic.properties resource
[54] BC4J Property jbo.logging.show.function='false' -->(Diagnostic) from /oracle/jbo/common/Diagnostic.properties resource
[55] BC4J Property jbo.logging.show.level='false' -->(Diagnostic) from /oracle/jbo/common/Diagnostic.properties resource
[56] BC4J Property jbo.logging.show.linecount='true' -->(Diagnostic) from /oracle/jbo/common/Diagnostic.properties resource
[57] BC4J Property jbo.logging.trace.threshold='6' -->(Diagnostic) from /oracle/jbo/common/Diagnostic.properties resource
[58] BC4J Property jbo.jdbc.driver.verbose='false' -->(Diagnostic) from System Default
[59] BC4J Property jbo.ejb.txntimeout='60' -->(SessionImpl) from System Default
[60] BC4J Property jbo.ejb.txntype='global' -->(MetaObjectManager) from System Default
[61] Skipping empty Property oracle.jbo.schema from System Default
[62] WARNING: Unused property: LC='Calling Function' found in /oracle/jbo/common/Diagnostic.properties resource
[63] }} finished loading BC4J properties
[64] -----------------------------------------------------------
Diagnostics: Routing diagnostics to standard output (use -Djbo.debugoutput=silent to remove)
[65] Diagnostic Properties: Timing:false Functions:false Linecount:true Threshold:6
[66] JavaVMVersion: 1.2.351 odv
[67] JavaVMVendor: Oracle Corp.
[68] JavaVMName: OJVM VM
[69] OperatingSystemName: Windows NT
[70] OperatingSystemVersion: 5.0
[71] OperatingSystemUsername: Administrator
[72] Connected to Oracle JBO Server - Version: 3.2.9.76.3
[73] {{+++ id=10000 type: 'BC4J_CREATE_ROOTAM' Create Root Application Module 'ImageLoader.ImageLoaderModule'
[74] {{+++ id=10001 type: 'METAOBJECT_LOAD' Loading meta-object: ImageLoader.ImageLoaderModule
[75] {{+++ id=10002 type: 'METAOBJECT_LOAD' Loading meta-object: ImageLoader.ImageLoader
[76] Loading from /ImageLoader/ImageLoader.xml file
[77] Loading from indvidual XML files
[78] Loading the Containees for the Package 'ImageLoader.ImageLoader'.
[79] }}+++ End Event10003 null
[80] Loading from /ImageLoader/ImageLoaderModule.xml file
[81] }}+++ End Event10002 null
[82] {{+++ id=10003 type: 'METAOBJECT_LOAD' Loading meta-object: ImageLoader.InventoryItem1View
[83] Loading from /ImageLoader/InventoryItem1View.xml file
[84] ViewObjectImpl's default fetch mode = 0
[85] {{+++ id=10004 type: 'METAOBJECT_LOAD' Loading meta-object: ImageLoader.InventoryItem
[86] Loading from /ImageLoader/InventoryItem.xml file
[87] Loading Typemap entries from oracle.jbo.server.OracleTypeMapEntries
[88] CSMessageBundle (language base) being initialized
[89] }}+++ End Event10005 null
[90] OracleSQLBuilder reached getInterface
[91] Oracle SQL Builder Version 3.2.0.0.0
[92] }}+++ End Event10004 null
[93] {{+++ id=10005 type: 'BC4J_CREATE_VIEWOBJECT' Create ViewObject 'InventoryItem1View'
[94] }}+++ End Event10006 null
[95] Created root application module: 'ImageLoader.ImageLoaderModule'
[96] Locale is: 'en_US'
[97] }}+++ End Event10001 null
[98] Using DatabaseTransactionFactory implementation oracle.jbo.server.DatabaseTransactionFactory
[99] DBTransactionImpl Max Cursors is 50
[100] Oracle SQLBuilder: Registered driver: oracle.jdbc.driver.OracleDriver
[101] {{+++ id=10006 type: 'JDBC_CONNECT' null
[102] Trying connection/1: url='jdbc:oracle:thin:bc4j/bc4j@localhost:1521:oracle9i'...
[103] }}+++ End Event10007 null
[104] Successfully logged in
[105] JDBCDriverVersion: 8.1.7.0.0
[106] DatabaseProductName: Oracle
[107] DatabaseProductVersion: Oracle9i Enterprise Edition Release 9.0.1.1.1 - Production With the Partitioning option JServer Release 9.0.1.1.1 - Production
[108] Column count: 8
[109] {{+++ id=10007 type: 'EXECUTE_QUERY' ViewObject executeQueryForCollection InventoryItem1View
[110] {{+++ id=10008 type: 'VIEWOBJECT_GETSTATEMENT' Viewobject: InventoryItem1View getting prepared statement
[111] ViewObject : Created new QUERY statement
[112] SELECT InventoryItem.ID, InventoryItem.NAME, InventoryItem.DESCRIPTION, InventoryItem.IMAGE, InventoryItem.PRICE, InventoryItem.ONHAND, InventoryItem.SUPPLIER_ID, InventoryItem.CATEGORY_ID FROM INVENTORY_ITEM InventoryItem
[113] {{+++ id=10009 type: 'JDBC_CREATE_STATEMENT' createPreparedStatement - prefetch size: 1
[114] }}+++ End Event10010 null
[115] }}+++ End Event10009 ViewObject : Creating new QUERY statementSELECT InventoryItem.ID, InventoryItem.NAME, InventoryItem.DESCRIPTION, InventoryItem.IMAGE, InventoryItem.PRICE, InventoryItem.ONHAND, InventoryItem.SUPPLIER_ID, InventoryItem.CATEGORY_ID FROM INVENTORY_ITEM InventoryItem
[116] QueryCollection.executeQuery failed...
[117] java.sql.SQLException: ORA-00600: internal error code, arguments: [ttcgcshnd-1], [0], [], [], [], [], [], []
java.lang.Class java.net.URLClassLoader.findClass(java.lang.String)
java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean)
java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean)
java.lang.Class sun.misc.Launcher$AppClassLoader.loadClass(java.lang.String, boolean)
java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String)
java.util.Enumeration oracle.jbo.common.WeakHashtableImpl.elements()
java.util.Enumeration oracle.jbo.common.WeakHashtable.elements()
void oracle.jbo.server.ViewObjectImpl.freeStatement(java.sql.PreparedStatement, boolean)
void oracle.jbo.server.QueryCollection.executeQuery(java.lang.Object[], int)
void oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(java.lang.Object, java.lang.Object[], int)
void oracle.jbo.server.ViewRowSetImpl.execute(boolean, boolean)
void oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed()
boolean oracle.jbo.server.ViewRowSetIteratorImpl.hasNext()
boolean oracle.jbo.server.ViewRowSetImpl.hasNext()
boolean oracle.jbo.server.ViewObjectImpl.hasNext()
void ImageLoader.ImageLoader.main(java.lang.String[])
[118] SELECT InventoryItem.ID, InventoryItem.NAME, InventoryItem.DESCRIPTION, InventoryItem.IMAGE, InventoryItem.PRICE, InventoryItem.ONHAND, InventoryItem.SUPPLIER_ID, InventoryItem.CATEGORY_ID FROM INVENTORY_ITEM InventoryItem
oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT InventoryItem.ID, InventoryItem.NAME, InventoryItem.DESCRIPTION, InventoryItem.IMAGE, InventoryItem.PRICE, InventoryItem.ONHAND, InventoryItem.SUPPLIER_ID, InventoryItem.CATEGORY_ID FROM INVENTORY_ITEM InventoryItem
void oracle.jbo.server.ViewRowSetImpl.execute(boolean, boolean)
void oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed()
boolean oracle.jbo.server.ViewRowSetIteratorImpl.hasNext()
boolean oracle.jbo.server.ViewRowSetImpl.hasNext()
boolean oracle.jbo.server.ViewObjectImpl.hasNext()
void ImageLoader.ImageLoader.main(java.lang.String[])
## Detail 0 ##
java.sql.SQLException: ORA-00600: internal error code, arguments: [ttcgcshnd-1], [0], [], [], [], [], [], []
void oracle.jbo.server.ViewRowSetImpl.execute(boolean, boolean)
void oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed()
boolean oracle.jbo.server.ViewRowSetIteratorImpl.hasNext()
boolean oracle.jbo.server.ViewRowSetImpl.hasNext()
boolean oracle.jbo.server.ViewObjectImpl.hasNext()
void ImageLoader.ImageLoader.main(java.lang.String[])
Exception in thread main
At first I thought maybe this is a configuration specific problem -- but I was able to replicate this on two separate machine with clean Win2K and Oracle9i installs.
It seems like it is not finding a particular class, which leads me to believe that some particular jar is probably missing -- can anyone help me figure out which one? Or is there something else that may be going wrong?
TIAYou need to make sure you're using the Oracle9i JDBC driver, or using the Oracle 8.1.7.2 JDBC driver as I mentioned above.
If you are using JDeveloper9i release 9.0.2 or 9.0.3, the driver you need is in <jdevhome>\jdbc\lib
Otherwise, you can also download the drivers from OTN.
Maybe you are looking for
-
Opening an FDF that references a PDF in Firefox and Safari
Our ASP.NET application serves up fdf and the associated pdf files from an underlying database. We use Fdfacx to generate the FDF with a reference (set using FDFSetFile) to a PDF. Both FDF and PDF URLs have parameters. When we use IE7, all works fine
-
Hi, I need to get the tag name of bold applied in InDesign document. When finding bold contents in InDesign document using Find Options, its select bold contents with some hidden text (tags) as shown in the below image. If i use "select in structur
-
Re: Site definition file help needed.
On Fri, 22 Dec 2006 09:38:17 -0800, Kevin D-R <[email protected]> wrote: >Which brings me to Dreamweaver. I have copied everything over and >reinstalled Dreamweaver, but my site definition information is gone. > >Any ideas on how to get that copied o
-
SCOM 0 Visio AddIN - SCCM Dashboard
hello, I have the Distrinuted Applications in SCOM which are exported to Visto with the Add-IN. is it possible to published the Visio diagram with the SCCM Dashboard (already used for SCOM)? I trIed to look for the web part "Visio" in SharePoint and
-
Comment choisir une origine fixe pour un VI LabView 8.0 ?
Bonjour, Voilà, j'ai un petit souci, j'ai créé plusieurs objets et je voudrais les placer avec leur propriétés sur le VI à des endroits bien défini. Mon problème c'est de savoir où l'origine des coordonnées des objet est prise et comment faire pour l