Help With Simple Function
I was wondering if someone could help me out with a simple function I'm trying to create. I'm kind of new to functions in oracle and I don't know the exact syntax or what it expects from me. I would appreciate it if someone could look at this and point out what I'm doing wrong.
CREATE OR REPLACE FUNCTION freshman_status_term(
pidm IN varchar2
RETURN varchar2 IS term
BEGIN
SELECT sgbstdn_term_code_eff INTO term
FROM sgbstdn
WHERE sgbstdn_pidm = pidm
AND sgbstdn_styp_code = 'F'
AND sgbstdn_stst_code = 'AS'
RETURN term;
END freshman_status_term;
The goal of the function is to find out the term for when a student is listed as a freshman. I keep getting errors though, so something must be wrong with it. Any help is appreciated. Thanks.
Sven W. wrote:
>
My code looked exactly like that minus the exception part when I got the error before.Please post the code that you used and the full error message that you got.CREATE OR REPLACE FUNCTION freshman_status_term(
pidm IN varchar2
RETURN varchar2
IS
term sgbstdn.sgbstdn_term_code_eff%TYPE;
BEGIN
SELECT sgbstdn_term_code_eff INTO term
FROM sgbstdn
WHERE sgbstdn_pidm = pidm
AND sgbstdn_styp_code = 'F'
AND sgbstdn_stst_code = 'AS'
RETURN term;
END freshman_status_term;
SELECT freshman_status_term ('216520') FROM dual;
Error: PLS-00103: Encountered the symbol "SELECT" when expecting one of the following:
( - + ; case mod new not null <an identifier>
The error is highlighted right after the BEGIN statement
Edited by: user10548103 on Nov 6, 2008 8:53 AM
Similar Messages
-
Hi...I was wondering if I could get help with this function. How do i write a function to return hours between a begin date and an end date for an employee. Thanks so much
EdStevens wrote:
AlexeyDev wrote:
sb92075 wrote:
select (date2-date1)*24 from dual;not as above but as below
select (date2-date1)/24 from dual;date2-date1 is amount of days. Divide it by 24 and what? if you multiply it on 24 you will have a chance to know how many hours between these two dates. :-)Don't forget that a DATE type also includes a time component.I suppose it doesn't matter if you did a difference between two dates. The result is always number of days. -
I was wondering if someone could help me with a simple bit of action script 3. I need to make a movie clip (single_mc) disappear when the user clicks on the mouse (stop_btn). Here’s what I have so far.
function setProperty(event:MouseEvent):void
single_mc.alpha=0;
stop_btn.addEventListener(MouseEvent.CLICK, setProperty);
Also I was wonder if you could recommend an Action script 3 book for me. I would like one that is not a training book, but has situations and then the script written out. For example: I click a button and a movie symbol disappears from the stage. I am a graphic artist, that from time to time, needs simple interaction in flash, but cant justify the time to learn the script.
Thanks for your timeuse the snippets panel to help with you with sample code for basic tasks.
function setProperty(event:MouseEvent):void
single_mc.visible=false;
stop_btn.addEventListener(MouseEvent.CLICK, setProperty); -
Please help with simple Drag N Drop
I’m desperate and need some help with this simple drag
and drop. Here is the scenario…this animation is for a
kindergarten course. I have 6 different colored teddy bears on the
floor and the bears are to be placed on the middle shelf in the
room, in no particular order. I have the code in place to drag the
bears, and they return to their original location if dropped in the
wrong area. Everything works, except I can’t make the bears
stick to the target area. The target area has to be the same for
all 6 bears. Can someone help me out with this?
I have a feeling that the problem has something to do with my
instance names, but I have tried everything I can think of and
cannot get it to work. Is there some way I can post, send, or
attach my .fla file for someone to look at? I’m desperate.
PLEASE HELP!var startX3:Number;
var startY3:Number;
var counter3:Number=0;
vf_A.addEventListener(MouseEvent.MOUSE_DOWN, pickUp3);
vf_A.addEventListener(MouseEvent.MOUSE_UP, dropIt3);
vf_E.addEventListener(MouseEvent.MOUSE_DOWN, pickUp3);
vf_E.addEventListener(MouseEvent.MOUSE_UP, dropIt3);
vf_I.addEventListener(MouseEvent.MOUSE_DOWN, pickUp3);
vf_I.addEventListener(MouseEvent.MOUSE_UP, dropIt3);
vf_O.addEventListener(MouseEvent.MOUSE_DOWN, pickUp3);
vf_O.addEventListener(MouseEvent.MOUSE_UP, dropIt3);
vf_U.addEventListener(MouseEvent.MOUSE_DOWN, pickUp3);
vf_U.addEventListener(MouseEvent.MOUSE_UP, dropIt3);
function pickUp3(event:MouseEvent):void {
event.target.startDrag(true);
reply2_txt.text="";
event.target.parent.addChild(event.target);
startX2=event.target.x;
startY2=event.target.y;
function dropIt3(event:MouseEvent):void {
event.target.stopDrag();
var myTargetName:String="target"+event.target.name;
var myTarget:DisplayObject=getChildByName(myTargetName);
if (event.target.dropTarget != null &&
event.target.dropTarget.name == "instance112") {
reply2_txt.text="Good Job!";
event.target.removeEventListener(MouseEvent.MOUSE_DOWN,
pickUp3);
event.target.removeEventListener(MouseEvent.MOUSE_UP,
dropIt3);
event.target.buttonMode=false;
event.target.x=myTarget.x;
event.target.y=myTarget.y;
var mySound:Sound = new vowels_NAR_goodjob();
mySound.play();
counter3++;
} else {
reply2_txt.text="Try Again!";
event.target.x=startX2;
event.target.y=startY2;
var mySound2:Sound = new vowel_NAR_nopetryagain();
mySound2.play();
if (counter2==5) {
reply2_txt.text="Great Job! You did it!";
gotoAndPlay(3300);
vf_A.buttonMode=true;
vf_E.buttonMode=true;
vf_I.buttonMode=true;
vf_O.buttonMode=true;
vf_U.buttonMode=true; -
Hi all,
I need some help with ASO mdx function.
Avg({Leaves([Employees].Currentmember)}, [Calculated_Field]). This will give me the average for Calculated_Field for all levels of Employees. But i want to add more dimensions like Region and year.
Please advice how can I achieve this.
Thanks
Andyyou have to use cross join in order to add more dimension members to the formula.This will give you some idea
Re: Writing formula in Outline??????
Regards,
RSG -
Hi,
i am using sql developer to write a simple function .which need to get job details by using employ number
..below is the function
CREATE OR REPLACE
FUNCTION Q_JOB(empno1 in emp.empno%type) RETURN VARCHAR2 AS
job1 varchar2(100);
BEGIN
select job into job1 from
emp where empno=empno1;
dbms_output.put_line('job :'||job1);
RETURN job1;
END Q_JOB;
when i am trying to run this using command
execute q_job(7369);
i am getting folowing error..
PL/SQL: Statement ignored
06550. 00000 - "line %s, column %s:\n%s"
*Cause: Usually a PL/SQL compilation error.
*Action:
can any one tell whats exact problem is?You can use execute only for procedures, not functions.
You have different possibilities:
* If you like issuing the statement from a worksheet, use an anonymous block:
DECLARE
v_job emp.job%type;
BEGIN
v_job = q_job(7369);
END;
/ * Alternatively, use your function in SQL:
SELECT q_job(7369) FROM DUAL; * For editing and testing your PL/SQL code, sqldev has very cool features: editor, compiler and debugger.
Under the Functions node under your connection, you'll find your function: right-click and Edit it. Just above your code you have a mini-toolbar to Compile your code, Run or Debug it. A lot more on this inside the Help topics.
Using the last 2 possibilities will provide you the returned value, so using dbms_output in your function isn't even necessary.
Have fun,
K. -
I need help with Analytic Function
Hi,
I have this little problem that I need help with.
My datafile has thousands of records that look like...
Client_Id Region Countries
[1] [1] [USA, Canada]
[1] [2] [Australia, France, Germany]
[1] [3] [China, India, Korea]
[1] [4] [Brazil, Mexico]
[8] [1] [USA, Canada]
[9] [1] [USA, Canada]
[9] [4] [Argentina, Brazil]
[13] [1] [USA, Canada]
[15] [1] [USA]
[15] [4] [Argentina, Brazil]
etc
My task is is to create a report with 2 columns - Client_Id and Countries, to look something like...
Client_Id Countries
[1] [USA, Canada, Australia, France, Germany, China, India, Korea, Brazil, Mexico]
[8] [USA, Canada]
[9] [USA, Canada, Argentina, Brazil]
[13] [USA, Canada]
[15] [USA, Argentina, Brazil]
etc.
How can I achieve this using Analytic Function(s)?
Thanks.
BDFHi,
That's called String Aggregation , and the following site shows many ways to do it:
http://www.oracle-base.com/articles/10g/StringAggregationTechniques.php
Which one should you use? That depends on which version of Oracle you're using, and your exact requirements.
For example, is order importatn? You said the results shoudl include:
CLIENT_ID COUNTRIES
1 USA, Canada, Australia, France, Germany, China, India, Korea, Brazil, Mexicobut would you be equally happy with
CLIENT_ID COUNTRIES
1 Australia, France, Germany, China, India, Korea, Brazil, Mexico, USA, Canadaor
CLIENT_ID COUNTRIES
1 Australia, France, Germany, USA, Canada, Brazil, Mexico, China, India, Korea?
Mwalimu wrote:
... How can I achieve this using Analytic Function(s)?The best solution may not involve analytic functions at all. Is that okay?
If you'd like help, post your best attempt, a little sample data (CREATE TABLE and INSERT statements), the results you want from that data, and an explanation of how you get those results from that data.
Always say which version of Oracle you're using.
Edited by: Frank Kulash on Aug 29, 2011 3:05 PM -
Help with analytical function (ora 9...)
Hi everyone, is there a way to fill some missing numbers based on what have come before and after that missing number by starttime and based on how many missing data are between? ... by "simple" select? I know how to do that just theoreticly with simple math commands, but is there a way to apply them in sql (analytical functions)?
Thanks in advance for any ideas !
The missing number on line 17 could be calculated as 339+(1/2)*(356-339) = 347,5
The missing number on line 23 could be calculated as 355+(1/3)*(292-355) = 334
The missing number on line 24 could be calculated as 355+(2/3)*(292-355) = 313
rownumber + temp_table (starttime,data_column)
15 23.5.2007 16:15 , 258
16 23.5.2007 16:30 , 339
17 23.5.2007 16:45 ,
18 23.5.2007 17:00 , 356
19 23.5.2007 17:15 , 373
20 23.5.2007 17:30 , 355
21 23.5.2007 17:45 , 363
22 23.5.2007 18:00 , 355
23 23.5.2007 18:15 ,
24 23.5.2007 18:30 ,
25 23.5.2007 19:00 , 292
26 23.5.2007 19:15 , 295
THANKS
Message was edited by:
dusooWay too late, but I wouldn't let my effort go unpublished ;-)
SQL> create table temp_table
2 as
3 select 15 rownumber, to_date('23.5.2007 16:15','dd.mm.yyyy hh24:mi') starttime, 258 data_column from dual union all
4 select 16, to_date(' 23.5.2007 16:30','dd.mm.yyyy hh24:mi'), 339 from dual union all
5 select 17, to_date(' 23.5.2007 16:45','dd.mm.yyyy hh24:mi'), null from dual union all
6 select 18, to_date(' 23.5.2007 17:00','dd.mm.yyyy hh24:mi'), 356 from dual union all
7 select 19, to_date(' 23.5.2007 17:15','dd.mm.yyyy hh24:mi'), 373 from dual union all
8 select 20, to_date(' 23.5.2007 17:30','dd.mm.yyyy hh24:mi'), 355 from dual union all
9 select 21, to_date(' 23.5.2007 17:45','dd.mm.yyyy hh24:mi'), 363 from dual union all
10 select 22, to_date(' 23.5.2007 18:00','dd.mm.yyyy hh24:mi'), 355 from dual union all
11 select 23, to_date(' 23.5.2007 18:15','dd.mm.yyyy hh24:mi'), null from dual union all
12 select 24, to_date(' 23.5.2007 18:30','dd.mm.yyyy hh24:mi'), null from dual union all
13 select 25, to_date(' 23.5.2007 19:00','dd.mm.yyyy hh24:mi'), 292 from dual union all
14 select 26, to_date(' 23.5.2007 19:15','dd.mm.yyyy hh24:mi'), 295 from dual
15 /
Tabel is aangemaakt.
SQL> with t as
2 ( select t.*
3 , max(case when data_column is not null then rownumber end) over (order by rownumber) lowerbound
4 , last_value(data_column ignore nulls) over (order by rownumber) prevvalue
5 , min(case when data_column is not null then rownumber end) over (order by rownumber desc) upperbound
6 , last_value(data_column ignore nulls) over (order by rownumber desc) nextvalue
7 from temp_table t
8 )
9 select rownumber
10 , starttime
11 , case
12 when data_column is not null then data_column
13 else prevvalue * ((upperbound - rownumber) / (upperbound - lowerbound))
14 + nextvalue * ((rownumber - lowerbound) / (upperbound - lowerbound))
15 end data_column
16 from t
17 order by rownumber
18 /
ROWNUMBER STARTTIME DATA_COLUMN
15 23-05-2007 16:15:00 258
16 23-05-2007 16:30:00 339
17 23-05-2007 16:45:00 347,5
18 23-05-2007 17:00:00 356
19 23-05-2007 17:15:00 373
20 23-05-2007 17:30:00 355
21 23-05-2007 17:45:00 363
22 23-05-2007 18:00:00 355
23 23-05-2007 18:15:00 334
24 23-05-2007 18:30:00 313
25 23-05-2007 19:00:00 292
26 23-05-2007 19:15:00 295
12 rijen zijn geselecteerd.Regards,
Rob. -
Help with simple applet - dragging box
Hi I need help with a simple applet concept.
I have a picture drawn in the background, but I need to draw a square and resize it when I drag.
So with the picture in the background I click, drag the mouse, and it draws a rectangle from the starting point to where the mouse is while the mouse is clicked.
The only problem is I can't figure out how to do this without redrawing the whole picture. If I don't repaint, it just keeps stretching around rectangles and leaving them there.
I don't really need exact code, just an idea on how to do this without repainting the background every time the mouse is moved (because the picture in the background is complicated to draw and takes like a second).
Thanks
[nvm, found out about xormode]
Edited by: BugMenOTdhzj on Nov 30, 2009 4:47 PMBugMenOTdhzj wrote:
..the picture in the background is complicated to draw and takes like a second).Paint the 'picture in the background' to a BufferedImage, then when it comes to paint()/paintComponent(), draw the BI to the Graphics object (clipped, if necessary (1)), then draw the rectangle to the Graphics object. This would be further optimised at time of rendering, by drawing both the 'picture in the background' BI and rectangle to a second BI, and finally writing that 2nd BI to the Graphics object.
1) There are potentially other improvements that can be made, particularly with clipping, but I suspect if you try as I suggested, the rendering will be very quick and responsive. I have 40 FPS sound trace animations that do a great deal more on each call to paintComponent(), before bursting the final BI to screen. -
Help with Simple Applescript for Midipipe
Hey all, I'm in desperate need of help with some Applescript for use in a program called Midipipe:
http://web.mac.com/nicowald/SubtleSoft/MidiPipe.html
I simply require an Applescript for Midipipe that filters out all OFF notes except for the most recently pressed key, or most recently pressed ON note. So for example, when multiple keys have been pressed, only the most recently pressed key will send an OFF note. I hope that is clear enough, i've had some major issues trying to get this work and my last hope is to hit the forums and find some help .. I've posted on some of the audio forums and i'm hoping someone here knows how to code this.
Thanks so much!! .. Its for an upcomming show next week so i'm hoping someone can get me in the right direction to solving this.
-JesI try to help, but you'll need to apply your brain cells to get it working with what I've already explained (three times with what I offer below). Try something like the following (I am renaming your buttons to ch1,ch2,ch3,ch4,ch5,ch6 so that the same functions can be shared by all buttons...
// this assigns listeners to all 6 buttons
for(var i:uint=1; i<7; i++){
this["ch"+String(i)].addEventListener(MouseEvent.CLICK, fl_ClickToSeekToCuePoint);
// this processes any one of the 6 btns when they are clicked
function fl_ClickToSeekToCuePoint_1(event:MouseEvent):void
var btn = event.currentTarget;
var cuePointInstance:Object = vid.findCuePoint(btn.name);
vid.seek(cuePointInstance.time);
resetButtons(); // this makes all buttons go back to normal
btn.upState = btn.overState; // this makes the clicked button change states
function resetButtons():void {
for(var i:uint=1; i<7; i++){
this["ch"+String(i)].upState = this["ch"+String(i)].hitTestState;
For this to work, your buttons need to have the same artwork in the hit frame as they do in the up frame. -
Need help with simple XML validation
I am new to Spry and need some help creating a simple
validation. There is a form field which must not contain a value
already in the database. I have a script which accepts a parameter
and returns a boolean result. Here is the XML:
<samples>
<sample>
<ISFOUND>0</ISFOUND>
</sample>
</samples>
1. How do I call this script when the form field changes and
pass the form value as the parameter?
2. How do I check the returned value in the XML and throw an
error if true?
I appreciate any help with this. Please let me know if there
is a better way to achieve the same result.
Thanks,
RichI enabled the call to the XML response. However, I am having
trouble identifying when the call is complete so I can parse the
result. How do I run my check after the data load and display the
proper message? -
Beginner needs help with simple code.
I just statrted learnind java, and I need some help with this simple program. For some reason everytime I enter my Farenheit value, the Celsius conversion returns as 0.0. Would really appreciate the help. Thanks.
Here's the code:
public class TempConverter
public static void main(String[] args)
double F = Double.parseDouble(args[0]);
System.out.println("Temperature in Farenheit is: " + F);
double C = 5 / 9;
C *= (F - 32);
System.out.println("Temperature in Celsius is: " + C);
}double C = 5 / 9This considers "5" and "9" to be integers and does an integer division, discarding the remainder. The result of that division is 0. Trydouble C = 5.0/9.0;
-
Help with Sort function in Terminal
Hello all... this is my first post on here as I'm having some trouble with some Termianl commands. I'm trying to learn Terminal at the moment as it is but I would appreciate some help with this one....
I'm trying to sort a rather large txt file into alphabetical order and also delete any duplicates. I've been using the following command in Terminal:
sort -u words.txt > words1.txt
but after a while I get the following error
sort: string comparison failed: Illegal byte sequence
sort: Set LC_ALL='C' to work around the problem.
sort: The strings compared were `ariadnetr\345dens\r' and `ariadnetr\345ds\r'.
What should my initial command be? What is Set LC_ALL='C'?
Hope you guys can help?Various languages distinct sorting - collation - sequences.
The characters can and variously do sort differently, depending on what language is involved.
Languages here can include the written languages of humans, and a few settings associated with programming languages. This is all part of what is known as internationalization and localization, and there are are various documents around on that topic.
The LC_ALL environment variable sets all of the locale-related settings en-mass, including the collation sequence that is established via LC_COLLATE et al, and the sort tool is suggesting selecting the C language collation.
Here, the tool is suggesting the following syntax:
LC_ALL=C sort -u words.txt > words1.txt
This can also be done by exporting the LC_ALL, but it's probably better to just do this locally before invoking the tool.
Also look at the lines of text in question within the files, and confirm the character encoding of the file.
Files can have different character encodings, and there's no reliable means to guess the encoding. For some related information, see the file command:
file words.txt
...and start reading some of the materials on internationalization and localization that are posted around the 'net. Here's Apple's top-level overview.
In this case, it looks like there's an "odd" character and probably an å character on that line and apparently the Svenska ariadnetrådens.
Switching collation can help here, or - if the character is not necessary - removing it via tr or replacing it via sed can be equally effective solutions.
Given it appears to be Svenska, it might work better to switch to Svenska collation thanto the suggested C collation.
I think that's going to be sv_SE, which would make the command:
LC_ALL=sv_SE sort -u words.txt > words1.txt
This is all generic bash shell scripting stuff, and not specific to OS X. If you haven't already seen them, the folks over at tldp have various guides including a bash guide for beginners, and an advanced bash scripting guide - both can be worth skimming. They're not exactly the same as bash on OS X and some specific commands and switches can differ, and as bash versions can differ, but bash is quite similar across all the platforms. -
Urgent help with simple BPEL process for reading data from database
Hello there,
I need help with BPEL project.
i have created a table Employee in Database.
I did create application, BPEL project and connection to the database properly using Database Adapter.
I need to read the records from the database and convert into xml fomat and it should to go approval for BPM worklist.
Can someone please describe me step by step what i need to do.
Thx,
DpsI have created a table in Database with data like Empno,name,salary,comments.
I created Database Connection in jsp page and connecting to BPEL process.
It initiates the process and it goes automatically for approval.
Please refer the code once which i created.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@page import="java.util.Map" %>
<%@page import="com.oracle.bpel.client.Locator" %>
<%@page import="com.oracle.bpel.client.NormalizedMessage" %>
<%@page import="com.oracle.bpel.client.delivery.IDeliveryService" %>
<%@page import="javax.naming.Context" %>
<%@page import="java.util.Hashtable" %>
<%@page import="java.util.HashMap" %>
<%@ page import="java.sql.*"%>
<%@ page import= "jspprj.DBCon"%>
<html>
<head>
<title>Invoke CreditRatingService</title>
</head>
<body>
<%
DBCon dbcon=new DBCon();
Connection conn=dbcon.createConnection();
Statement st=null;
PreparedStatement pstmt=null;
Hashtable env= new Hashtable();
ResultSet rs = null;
Map payload =null;
try
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
env.put(Context.PROVIDER_URL, "opmn:ormi://localhost:port:home/orabpel");//bpel server
env.put("java.naming.security.principal", "username");
env.put("java.naming.security.credentials", "password");//bpel console
Locator locator = new Locator("default","password",env);
IDeliveryService deliveryService =
(IDeliveryService)locator.lookupService(IDeliveryService.SERVICE_NAME );
// construct the normalized message and send to Oracle BPEL Process Manager
NormalizedMessage nm = new NormalizedMessage();
java.util.HashMap map = new HashMap();
st=conn.createStatement();
out.println("connected");
String query1="Select * from EMPLOYEE";
rs=st.executeQuery(query1);
/*reading Data From Database and converting into XML format
so that no need of going to BPEL console and entering the details.
while (rs.next()){
String xml1 = "<AsynchBPELProcess1ProcessRequest xmlns='http://xmlns.oracle.com/AsynchBPELProcess1'>"+
"<Empno>"+rs.getString(1)+"</Empno>"+
"<EmpName>"+rs.getString(2)+"</EmpName>"+
"<Salary>"+rs.getString(3)+"</Salary>"+
"<Comments>"+rs.getString(4)+"</Comments>"+
"</AsynchBPELProcess1ProcessRequest>";
out.println(xml1);
nm.addPart("payload", xml1 );
// EmployeeApprovalProcess is the BPEL process in which human task is implemented
deliveryService.post("EmployeeApprovalProcess", "initiate", nm);
// payload = res.getPayload();
out.println( "BPELProcess CreditRatingService executed!<br>" );
// out.println( "Credit Rating is " + payload.get("payload") );
//Incase there is an exception while invoking the first server invoke the second server i.e lsgpas13.
catch(Exception ee) {
//("BPEL Server lsgpas14 invoking error.\n"+ee.toString());
%>
</body>
</html>
Its working fine.And i want it for Bulk approvals.please help me step by step procedure if any other way to implement this. -
Urgent help with simple BPEL process
Hello there,
I need help with BPEL project.
I'm new in JDeveloper&BPEL and i'd like to create process that we'll after sending employee ID return personal details of that employee.
I did create application, BPEL project and connection to the database properly but somehow i can't deal input and output variable.
Can someone please describe me step by step what i need to do, how to set up variable etc
Thx,
DIMe again. This time i hope i'll get some help :(
Solution to my problem is change to the data-sources.xml and oc4j-ra.xml.
Since i have database on same machine with BPEL PM Server that uses Olite DB when i tried to make changes i found in tutorials, here on forum and rest of internet
BPEL PM Server just freeze, didn't start at all.
Here are data-sources.xml, oc4j-ra.xml and DBAdapter wsdl file. Plz can someone make changes to those files i'll appreciate that.
HOME\bpel\system\appserver\oc4j\j2ee\home\application-deployments\default\DbAdapter
oc4j-ra.xml
<?xml version="1.0"?>
<oc4j-connector-factories xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.oracle.com/technology/oracleas/schema/oc4j-connector-factories-10_0.xsd" schema-major-version="10" schema-minor-version="0" >
<imported-shared-libraries>
<import-shared-library name="oracle.bpel.common"/>
<import-shared-library name="oc4j.internal"/>
<import-shared-library name="oracle.xml"/>
<import-shared-library name="oracle.sqlj"/>
<import-shared-library name="oracle.toplink"/>
<import-shared-library name="oracle.jdbc"/>
</imported-shared-libraries>
<connector-factory location="eis/DB/DBConn_XE" connector-name="Database Adapter">
<config-property name="xADataSourceName" value="jdbc/DBConn_XEDataSource"/>
<config-property name="dataSourceName" value="loc/DBConn_XEDataSource"/>
<config-property name="platformClassName" value="oracle.toplink.platform.database.Oracle9Platform"/>
<config-property name="usesNativeSequencing" value="true"/>
<config-property name="sequencePreallocationSize" value="50"/>
<config-property name="defaultNChar" value="false"/>
<config-property name="usesBatchWriting" value="true"/>
<connection-pooling use="none">
</connection-pooling>
<security-config use="none">
</security-config>
</connector-factory>
<connector-factory location="eis/DB/BPELSamples" connector-name="Database Adapter">
<config-property name="xADataSourceName" value="jdbc/BPELSamplesDataSource"/>
<config-property name="dataSourceName" value=""/>
<config-property name="platformClassName" value="oracle.toplink.platform.database.Oracle9Platform"/>
<config-property name="usesNativeSequencing" value="true"/>
<config-property name="sequencePreallocationSize" value="50"/>
<config-property name="defaultNChar" value="false"/>
<config-property name="usesBatchWriting" value="false"/>
<connection-pooling use="none">
</connection-pooling>
<security-config use="none">
</security-config>
</connector-factory>
</oc4j-connector-factories>
HOME \bpel\system\appserver\oc4j\j2ee\home\config
data-sources.xml
<?xml version="1.0" standalone='yes'?>
<!DOCTYPE data-sources PUBLIC "Orion data-sources" "http://xmlns.oracle.com/ias/dtds/data-sources-9_04.dtd">
<data-sources>
<!-- Connection pool for oracle database -->
<!--
<connection-pool name="BPELPM_CONNECTION_POOL">
<connection-factory factory-class="oracle.jdbc.OracleDriver"
url="jdbc:oracle:thin:[username]/[password]@[hostname]:[port]:[sid]" />
</connection-pool>
-->
<!-- Connection pool for oracle lite -->
<connection-pool name="BPELPM_CONNECTION_POOL">
<connection-factory factory-class="oracle.lite.poljdbc.POLJDBCDriver"
user="system"
password="manager"
url="jdbc:[email protected]:1531:orabpel" />
</connection-pool>
<managed-data-source name="BPELServerDataSource"
connection-pool-name="BPELPM_CONNECTION_POOL"
jndi-name="jdbc/BPELServerDataSource" tx-level="global"/>
<managed-data-source name="BPELServerDataSourceWorkflow"
connection-pool-name="BPELPM_CONNECTION_POOL"
jndi-name="jdbc/BPELServerDataSourceWorkflow" tx-level="local"/>
<managed-data-source name="BPELSamplesDataSource"
connection-pool-name="BPELPM_CONNECTION_POOL"
jndi-name="jdbc/BPELSamplesDataSource" />
</data-sources>
DBAdapter wsdl file
GetData_WS.wsdl
<?xml version="1.0" encoding="UTF-8"?>
<definitions
name="GetData_WS"
targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/db/GetData_WS/"
xmlns:tns="http://xmlns.oracle.com/pcbpel/adapter/db/GetData_WS/"
xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
xmlns:jca="http://xmlns.oracle.com/pcbpel/wsdl/jca/"
xmlns:pc="http://xmlns.oracle.com/pcbpel/"
xmlns:top="http://xmlns.oracle.com/pcbpel/adapter/db/top/GetDataWS"
xmlns:hdr="http://xmlns.oracle.com/pcbpel/adapter/db/"
xmlns="http://schemas.xmlsoap.org/wsdl/">
<import namespace="http://xmlns.oracle.com/pcbpel/adapter/db/" location="DBAdapterOutboundHeader.wsdl"/>
<types>
<schema xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://xmlns.oracle.com/pcbpel/adapter/db/top/GetDataWS"
schemaLocation="GetDataWS_table.xsd"/>
</schema>
</types>
<message name="EmpDetailsViewCollection_msg">
<part name="EmpDetailsViewCollection" element="top:EmpDetailsViewCollection"/>
</message>
<message name="GetData_WSSelect_EMP_ID_inparameters">
<part name="GetData_WSSelect_EMP_ID_inparameters" element="top:GetData_WSSelect_EMP_IDInputParameters"/>
</message>
<portType name="GetData_WS_ptt">
<operation name="GetData_WSSelect_EMP_ID">
<input message="tns:GetData_WSSelect_EMP_ID_inparameters"/>
<output message="tns:EmpDetailsViewCollection_msg"/>
</operation>
</portType>
<binding name="GetData_WS_binding" type="tns:GetData_WS_ptt">
<jca:binding />
<operation name="GetData_WSSelect_EMP_ID">
<jca:operation
InteractionSpec="oracle.tip.adapter.db.DBReadInteractionSpec"
DescriptorName="GetDataWS.EmpDetailsView"
QueryName="GetData_WSSelect"
ReturnSingleResultSet="false"
MappingsMetaDataURL="GetDataWS_toplink_mappings.xml" />
<input>
<jca:header message="hdr:OutboundHeader_msg" part="outboundHeader"/>
</input>
</operation>
</binding>
<!-- Your runtime connection is declared in
J2EE_HOME/application-deployments/default/DbAdapter/oc4j-ra.xml
These 'mcf' properties here are from your design time connection and
save you from having to edit that file and restart the application server
if eis/DB/DBConn_XE is missing.
These 'mcf' properties are safe to remove.
-->
<service name="GetData_WS">
<port name="GetData_WS_pt" binding="tns:GetData_WS_binding">
<jca:address location="eis/DB/DBConn_XE"
UIConnectionName="DBConn_XE"
ManagedConnectionFactory="oracle.tip.adapter.db.DBManagedConnectionFactory"
mcf.DriverClassName="oracle.jdbc.OracleDriver"
mcf.PlatformClassName="oracle.toplink.platform.database.oracle.OraclePlatform"
mcf.ConnectionString="jdbc:oracle:thin:@localhost:1521:xe"
mcf.UserName="hr"
mcf.Password="62C32F70E98297522AD97E15439FAC0E"
/>
</port>
</service>
<plt:partnerLinkType name="GetData_WS_plt" >
<plt:role name="GetData_WS_role" >
<plt:portType name="tns:GetData_WS_ptt" />
</plt:role>
</plt:partnerLinkType>
</definitions>
Thx,
DI
Maybe you are looking for
-
How to add a field and table control to BP transaction.
Hi, I have a requirement to add a field and table control to the 'Control data' tab of the Transaction BP. Can some on please help me if having a solution and with any relavant documents. Thanks in advance. Raj & Khader.
-
Hi, I'm hoping someone can help me find a solution to my problem. When a backup is attempted, it starts off as if it's working, then stops and the following error message appears: "iTunes could not backup iPhone because the iPhone disconnected". But,
-
Full screen view in PSE 10 crashes under both W7 32 and W7 64
Hello I am testing PSE 10 (I have PSE 6) and have installed PSE 10 under both WIndows 7 64 bit and WIndows 7 32 bit. Both installations are fully updated. The hardware is the same for all three of my regular XP (PSE 6) and these PSE 10 installs. T
-
Dear all, would you know how to determine email address for a vendor? please advice if further details are required? Thank you for your assistance Greg
-
I downloaded the ios7 onto my Ipad2 and now I can't get online!
I am at a loss! I am not technically knowledgable at all. I downloaded the ios7 onto my Ipad and now its telling me the ipad isnt connected to the server. Then I looked somewhere within the ipad itself and saw a whole list of things that said it cr