Trying to create a pivot in Oracle 10.2.0.4
I have the following query that pulls data from three tables, SORPCOL, SORDEGR and STVSBGI. SORPCOL houses prior college info for certain applicants for admissions, SORDEGR houses degree information, including the associated GPA at prior colleges, and STVSBGI is a validation table housing the institution codes and names of colleges.
SELECT SORPCOL_PIDM,
SORPCOL_SBGI_CODE,
STVSBGI_DESC,
SORPCOL_TRANS_RECV_DATE,
SORPCOL_TRANS_REV_DATE,
SORPCOL_ADMR_CODE,
SORPCOL_ACTIVITY_DATE,
SORDEGR_GPA_TRANSFERRED,
SORDEGR_HOURS_TRANSFERRED
FROM SORPCOL, SORDEGR, STVSBGI
WHERE SORPCOL_PIDM=123456
AND SORPCOL_SBGI_CODE NOT IN ('CUMGPA')
AND SORPCOL_PIDM=SORDEGR_PIDM
AND SORPCOL_SBGI_CODE=SORDEGR_SBGI_CODE
AND SORPCOL_SBGI_CODE=STVSBGI_CODE
The output I get from this is fine, and is as follows:
PIDM SBGI STVSBGI_DESC TRANS_RECV_DATE TRANS_REV_DATE ADMR ACTIVITY_DATE SORDEGR_GPA_TRANSFERRED SORDEGR_HOURS_TRANSFERRED
123456 008000 Unknown College 10/07/2011 00:00:00 CLT1 10/07/2011 09:39:50 0.750
123456 008002 Unknown College Two 10/07/2011 00:00:00 CLT1 10/07/2011 09:39:50 1.800
Each applicant may have multiple prior colleges, but there is not a set maximum number of prior institutions they can have. The only thing in SORPCOL that might be a unique identifier is the SBGI code, but that would be different for each prior college, per pidm, and there are 8500 different college codes in STVSBGI, of which an applicant could have any one of them. There is not a field in SORPCOL or SORDEGR that creates a number to associate with each prior college, either, such as 1, 2, 3, etc. They want this programmed to pull up to 10 prior colleges. If I can get help doing the first two, I think I could figure out how to add more.
What the user wants the output to look like is this:
PIDM COLL 1 CODE COLL 1 DESC COLL 1 TR RECV DT COLL 1 TR REV DT COLL 1 ADMR COLL 1 ACT DATE COLL 1 GPA XFR COLL 1 HR XFER COLL 2 CODE COLL 2 DESC COLL 2 TR RECV DT COLL 2 TR REV DT COLL 2 ADMR COLL 2 ACT DATE COLL 2 GPA XFR COLL 2 HR XFER
123456 008000 Unknown College 10/7/2011 CLT1 10/7/2011 0.750 008002 Unknown Coll 2 10/7/2011 CLT1 10/7/2011 1.800
Does anyone have any suggestions on how this might be accomplished? It seems in Oracle 11 that it wouldn't be too difficult, but I don't know about 10.2.0.4.
Thanks so much,
Michelle
I actually listed all of the things you mentioned in my original post. The existing query, which pulls the data into columns, is given, including the relevant fields from each of the tables, along with a description of what happens when the query is run. It basically returns all of the prior colleges that have been entered into the database for an applicant and puts them into neat columns. I showed the results in the original post, but the formatting didn't keep after the item was posted. If there were multiple PIDMs (the unique identifier in our database), To retain the formatting of code and sample data you need to use the {noformat}{noformat} tag before and after the text you want to preserve the formatting of. Having said that, the sample data you have provided does not seem to match the list of columns you have supplied. I only see 7 columns worth of data per row but there 8 columns listed - and the data types don't appear to match the names of the columns...PIDM SBGI STVSBGI_DESC TRANS_RECV_DATE TRANS_REV_DATE ADMR ACTIVITY_DATE SORDEGR_GPA_TRANSFERRED SORDEGR_HOURS_TRANSFERRED
123456 008000 Unknown College 10/07/2011 00:00:00 CLT1 10/07/2011 09:39:50 0.750
123456 008002 Unknown College Two 10/07/2011 00:00:00 CLT1 10/07/2011 09:39:50 1.800
A much more user friendly way to present this data is either to supply a create table statement along with insert statements
i.e.create table SORPCOL
create table SORDEGR
create table STVSBGI
insert into SORPCOL values(...)
That way it is very easy for people to run the statements on their own systems an play with the results. It's generally the fastest way to get an answer to your question because you're removing the things that prevent people being able to run your sql.
HTH
David
Similar Messages
-
Getting error while trying to create a document using oracle web ADI resp.
Hi All,
When I am trying to create a document using Oracle Web ADI Responsibility and using "Ben Ri Process Bnf" integrator, it is showing me error
"The following error has occurred
Exception Name: oracle.apps.bne.exception.BneParameterException - No parameter list definition at parameter list id 800:PER_RI_JPG_PARAM_LIS
Log File Bookmark: 868035"
Can anybody tell me the cause of this error?
Thanks.Please see the solution in (The Descriptive Flexfield With Application Name Receivables (AR) and Name Party Site Information (HZ_PARTY_SITES) Is Not Frozen [ID 743262.1]).
Thanks,
Hussein -
How to create a table in Oracle Lite database?
Hi,
I have installed SOA 10.1.3 on my laptop. Now I am trying to create a table in the database to do some own examples. I have problem in installing oracle database. So I am trying to create a table in Oracle Lite database which comes with SOA suite. I am not able to do it, can some body suggest me please?
Regards
KhaleelHI James,
Thank you so much. I am able to create table and insert rows and able to select them too. However I am not able to use these tables in my BPEL process for my practice. The DB adapter is throwing some error, any idea?
--khaleel -
Create a report in oracle portal based on a different database.
Hello,
I'm trying to create a report in oracle portal based on table in a different database than te one from portal.
I have allready succesfully added a new DAD in the enterprise manager, but how can I select that database in the portal environment?
ThierryHi,
Please check the below link
http://help.sap.com/businessobject/product_guides/boexir3/en/xi3_voyager_userguide_en.pdf
I think you can get more information in Integration Kits - SAP or Business objects forum. -
Help to create complex graphs in oracle 10g reports
As my company has migrated from 6i to Oracle 10g, but as graph ogd files are obselete in Oracle 10g , I am trying to create new graphs in Oracle 10g.
But problem I am facing that I cannot give axis value 'LABEL' or define my own scale or draw any lines on chart or inshort plot graph as I need. Moreover no way to read objects on Chart. In forms 6i it was easy to read object with command "OG_GET_OBJECT(OBJECT_NAME)". Helps tell me to use graph.dtd but I am unable to use it or I don't know how to use it. No documentation available anywhere how to use graph.dtd syntax.
Is it possible to achieve my above goals or any other tools to customize charts.
PrashantHello FormsEleven,
First of all very Thanks for reply. Thanks for your valuable time given to me.
I don't have any error in my java/jinit console infact latest jinit is running and web browser start with message applet are being loaded and Oracle forms service installed successfully. All other forms details are very well displayed on browser form, only bean area remains empty. Following are my formsweb.cfg details. Note on below [bigraph] section I have commented some lines but that also done after my form did not work.
### Forms DEMO FOR BIGRAPHS
[pjc_demos]
width=675
height=480
separateFrame=false
splashScreen=no
lookAndFeel=oracle
colorScheme=blue
background=/forms/formsdemo/images/blue.gif
logo=/forms/formsdemo/images/bannerlogo.gif
baseHTMLjinitiator=demobasejini.html
baseHTMLjpi=demobase.htm
baseHTML=demobase.html
baseHTMLie=demobaseie.html
envFile=formsdemo.env
archive_jini=frmall_jinit.jar,/forms/formsdemo/jars/demo.jar,/forms/formsdemo/jars/icons.jar
archive=frmall.jar,/forms/formsdemo/jars/demo.jar,/forms/formsdemo/jars/icons.jar
pageTitle=Oracle Forms - Pluggable Java Components
form=pjclaunch.fmx
otherparams=demo_root=D:\DevSuiteHome_1\forms\demos
scripting=true
[pjc_jspell]
width=675
height=480
separateFrame=false
splashScreen=no
lookAndFeel=oracle
colorScheme=blue
background=/forms/formsdemo/images/blue.gif
logo=/forms/formsdemo/images/bannerlogo.gif
baseHTMLjinitiator=demobasejini.html
baseHTMLjpi=demobase.htm
baseHTML=demobase.html
baseHTMLie=demobaseie.html
envFile=formsdemo.env
archive_jini=frmall_jinit.jar,/forms/formsdemo/jars/demo.jar,/forms/formsdemo/jars/jspellintegration.jar,/forms/formsdemo/jars/jspell2n_java11.jar
archive=frmall.jar,/forms/formsdemo/jars/demo.jar,/forms/formsdemo/jars/jspellintegration.jar,/forms/formsdemo/jars/jspell2n_java11.jar
pageTitle=Oracle Forms - Pluggable Java Components
form=jspell.fmx
otherparams=dictionary_hostname=%JSPELL_HOST% dictionary_port=8888
[HL]
# Healthy Living Demo.
envFile=formsdemo.env
archive_jini=frmall_jinit.jar,/forms/formsdemo/jars/demo.jar,/forms/formsdemo/jars/icons.jar
archive=frmall.jar,/forms/formsdemo/jars/demo.jar,/forms/formsdemo/jars/icons.jar
baseHTMLJInitiator=basejini.htm
form=healthyliving.fmx
userid=hl/hl@skoda
width=994
height=582
pageTitle=Healthy Living
splashScreen=/forms/formsdemo/images/suppsplash.gif
background=/forms/formsdemo/images/white.gif
logo=/forms/formsdemo/images/bannerlogo.gif
lookAndFeel=oracle
colorScheme=titanium
# Used for demo. This is the destination directory
# when uploading images and XML files.
otherparams=output_dir=D:\DevSuiteHome_1\forms\demos\temp
[IORG]
imageBase=codebase
envFile=formsdemo.env
archive_jini=frmall_jinit.jar,/forms/formsdemo/jars/iorganizer.jar,/forms/formsdemo/jars/icons.jar
archive=frmall.jar,/forms/formsdemo/jars/iorganizer.jar,/forms/formsdemo/jars/icons.jar
baseHTMLJInitiator=basejini.htm
form=iorganizer.fmx
userid=iorg/iorg@skoda
width=994
height=582
pageTitle=iOrganizer
splashScreen=/forms/formsdemo/images/iorganizer.gif
background=/forms/formsdemo/images/white.gif
logo=/forms/formsdemo/images/bannerlogo.gif
lookAndFeel=oracle
colorScheme=titanium
otherparams=usesdi=yes
[reusable_calendar]
width=675
height=480
separateFrame=false
splashScreen=no
lookAndFeel=oracle
colorScheme=blue
background=/forms/formsdemo/images/blue.gif
logo=/forms/formsdemo/images/bannerlogo.gif
baseHTMLjinitiator=demobasejini.html
baseHTMLjpi=demobase.htm
baseHTML=demobase.html
baseHTMLie=demobaseie.html
envFile=formsdemo.env
archive_jini=frmall_jinit.jar,/forms/formsdemo/jars/demo.jar,/forms/formsdemo/jars/icons.jar
archive=frmall.jar,/forms/formsdemo/jars/demo.jar,/forms/formsdemo/jars/icons.jar
pageTitle=Oracle Forms - Reusable Components
form=calendar.fmx
userid=oe8/oe8@skoda
imagebase=codebase
[reusable_picklist]
width=675
height=480
separateFrame=false
splashScreen=no
lookAndFeel=oracle
colorScheme=blue
background=/forms/formsdemo/images/blue.gif
logo=/forms/formsdemo/images/bannerlogo.gif
baseHTMLjinitiator=demobasejini.html
baseHTMLjpi=demobase.htm
baseHTML=demobase.html
baseHTMLie=demobaseie.html
envFile=formsdemo.env
archive_jini=frmall_jinit.jar,/forms/formsdemo/jars/demo.jar
archive=frmall.jar,/forms/formsdemo/jars/demo.jar
pageTitle=Oracle Forms - Reusable Components
form=picklist.fmx
userid=oe8/oe8@skoda
[reusable_save2html]
width=675
height=480
separateFrame=false
splashScreen=no
lookAndFeel=oracle
colorScheme=blue
background=/forms/formsdemo/images/blue.gif
logo=/forms/formsdemo/images/bannerlogo.gif
baseHTMLjinitiator=demobasejini.html
baseHTMLjpi=demobase.htm
baseHTML=demobase.html
baseHTMLie=demobaseie.html
envFile=formsdemo.env
archive_jini=frmall_jinit.jar,/forms/formsdemo/jars/demo.jar
archive=frmall.jar,/forms/formsdemo/jars/demo.jar
pageTitle=Oracle Forms - Reusable Components
form=save2html.fmx
userid=hr8/hr8@skoda
otherParams=OUTPUT_REAL_DIR=D:\DevSuiteHome_1\forms\demos\temp/ OUTPUT_VIRTUAL_DIR=/forms/formsdemo/temp/
[reusable_wizard]
width=675
height=480
separateFrame=false
splashScreen=no
lookAndFeel=oracle
colorScheme=blue
background=/forms/formsdemo/images/blue.gif
logo=/forms/formsdemo/images/bannerlogo.gif
baseHTMLjinitiator=demobasejini.html
baseHTMLjpi=demobase.htm
baseHTML=demobase.html
baseHTMLie=demobaseie.html
envFile=formsdemo.env
archive_jini=frmall_jinit.jar,/forms/formsdemo/jars/demo.jar
archive=frmall.jar,/forms/formsdemo/jars/demo.jar
pageTitle=Oracle Forms - Reusable Components
form=wizard.fmx
userid=hr8/hr8@skoda
[featuredemo_array_dml]
width=675
height=480
separateFrame=false
splashScreen=no
lookAndFeel=oracle
colorScheme=blue
background=/forms/formsdemo/images/blue.gif
logo=/forms/formsdemo/images/bannerlogo.gif
baseHTMLjinitiator=demobasejini.html
baseHTMLjpi=demobase.htm
baseHTML=demobase.html
baseHTMLie=demobaseie.html
envFile=formsdemo.env
archive_jini=frmall_jinit.jar,/forms/formsdemo/jars/demo.jar
archive=frmall.jar,/forms/formsdemo/jars/demo.jar
pageTitle=Oracle Forms - Feature Demos
form=arraydml.fmx
userid=oe8/oe8@skoda
[featuredemo_calculated_fields]
width=675
height=480
separateFrame=false
splashScreen=no
lookAndFeel=oracle
colorScheme=blue
background=/forms/formsdemo/images/blue.gif
logo=/forms/formsdemo/images/bannerlogo.gif
baseHTMLjinitiator=demobasejini.html
baseHTMLjpi=demobase.htm
baseHTML=demobase.html
baseHTMLie=demobaseie.html
envFile=formsdemo.env
archive_jini=frmall_jinit.jar,/forms/formsdemo/jars/demo.jar
archive=frmall.jar,/forms/formsdemo/jars/demo.jar
pageTitle=Oracle Forms - Feature Demos
form=calcform.fmx
userid=oe8/oe8@skoda
[featuredemo_object_columns]
width=675
height=480
separateFrame=false
splashScreen=no
lookAndFeel=oracle
colorScheme=blue
background=/forms/formsdemo/images/blue.gif
logo=/forms/formsdemo/images/bannerlogo.gif
baseHTMLjinitiator=demobasejini.html
baseHTMLjpi=demobase.htm
baseHTML=demobase.html
baseHTMLie=demobaseie.html
envFile=formsdemo.env
archive_jini=frmall_jinit.jar,/forms/formsdemo/jars/demo.jar
archive=frmall.jar,/forms/formsdemo/jars/demo.jar
pageTitle=Oracle Forms - Feature Demos
form=objref.fmx
userid=oe8/oe8@skoda
[featuredemo_stored_procedure]
width=675
height=480
separateFrame=false
splashScreen=no
lookAndFeel=oracle
colorScheme=blue
background=/forms/formsdemo/images/blue.gif
logo=/forms/formsdemo/images/bannerlogo.gif
baseHTMLjinitiator=demobasejini.html
baseHTMLjpi=demobase.htm
baseHTML=demobase.html
baseHTMLie=demobaseie.html
envFile=formsdemo.env
archive_jini=frmall_jinit.jar,/forms/formsdemo/jars/demo.jar
archive=frmall.jar,/forms/formsdemo/jars/demo.jar
pageTitle=Oracle Forms - Feature Demos
form=storproc.fmx
userid=oe8/oe8@skoda
[featuredemo_trace]
width=675
height=480
separateFrame=false
splashScreen=no
lookAndFeel=oracle
colorScheme=blue
background=/forms/formsdemo/images/blue.gif
logo=/forms/formsdemo/images/bannerlogo.gif
baseHTMLjinitiator=demobasejini.html
baseHTMLjpi=demobase.htm
baseHTML=demobase.html
baseHTMLie=demobaseie.html
envFile=formsdemo.env
archive_jini=frmall_jinit.jar,/forms/formsdemo/jars/demo.jar
archive=frmall.jar,/forms/formsdemo/jars/demo.jar
pageTitle=Oracle Forms - Feature Demos
form=trace.fmx
userid=oe8/oe8@skoda
otherparams=record=forms tracegroup=0-199
[featuredemo_webservice]
width=675
height=480
separateFrame=false
splashScreen=no
lookAndFeel=oracle
colorScheme=blue
background=/forms/formsdemo/images/blue.gif
logo=/forms/formsdemo/images/bannerlogo.gif
baseHTMLjinitiator=demobasejini.html
baseHTMLjpi=demobase.htm
baseHTML=demobase.html
baseHTMLie=demobaseie.html
envFile=formsdemo.env
archive_jini=frmall_jinit.jar,/forms/formsdemo/jars/demo.jar
archive=frmall.jar,/forms/formsdemo/jars/demo.jar
pageTitle=Oracle Forms - Feature Demos
form=webservice.fmx
userid=oe8/oe8@skoda
[featuredemo_javamail]
width=675
height=480
separateFrame=false
splashScreen=no
lookAndFeel=oracle
colorScheme=blue
background=/forms/formsdemo/images/blue.gif
logo=/forms/formsdemo/images/bannerlogo.gif
baseHTMLjinitiator=demobasejini.html
baseHTMLjpi=demobase.htm
baseHTML=demobase.html
baseHTMLie=demobaseie.html
envFile=formsdemo.env
archive_jini=frmall_jinit.jar,/forms/formsdemo/jars/demo.jar,/forms/formsdemo/jars/icons.jar
archive=frmall.jar,/forms/formsdemo/jars/demo.jar,/forms/formsdemo/jars/icons.jar
pageTitle=Oracle Forms - Feature Demos
form=javamail.fmx
#Upload directory for attachments
otherparams=temp_dir=D:\DevSuiteHome_1\forms\demos\temp
[bigraph]
width=675
height=480
separateFrame=false
splashScreen=no
lookAndFeel=oracle
colorScheme=blue
background=/forms/formsdemo/images/blue.gif
logo=/forms/formsdemo/images/bannerlogo.gif
baseHTMLjinitiator=demobasejini.html
baseHTMLjpi=demobase.htm
baseHTML=demobase.html
baseHTMLie=demobaseie.html
envFile=formsdemo.env
archive_jini=frmall_jinit.jar,d:\DevSuiteHome_1\forms\java\frmbld.jar;d:\DevSuiteHome_1\jlib\importer.jar;d:\DevSuiteHome_1\jlib\debugger.jar;d:\DevSuiteHome_1\jlib\utj.jar;d:\DevSuiteHome_1\jlib\dfc.jar;d:\DevSuiteHome_1\jlib\help4.jar;d:\DevSuiteHome_1\jlib\oracle_ice.jar;d:\DevSuiteHome_1\jlib\jewt4.jar;d:\DevSuiteHome_1\jlib\ewt3.jar;d:\DevSuiteHome_1\jlib\share.jar;d:\DevSuiteHome_1\forms\java\frmwebutil.jar;d:\DevSuiteHome_1\forms\java\frmall.jar;D:\DevSuiteHome_1\forms\oracle\forms\demos\bigraph\FormsGraph.jar;D:\DevSuiteHome_1\LIB\xmlparserv2.jar;D:\DevSuiteHome_1\jlib\bigraphbean.jar;D:\DevSuiteHome_1\jlib\bigraphbean-nls.zip;D:\DevSuiteHome_1\jlib\jewt4.jar;D:\DevSuiteHome_1\jlib\LW_PfjBean.jar;D:\DevSuiteHome_1\jlib\share.jar
;archive=frmall_jinit.jar,/forms/demos/jars/demo.jar,/forms/demos/jars/FormsGraph.jar
pageTitle=Oracle Forms - Forms BI Graph integration
;form=graph.fmx
;userid=oe8/oe8@skoda
; Set imagebase to codebase to use icons stored in FormsGraph.jar
imagebase=codebase
[pjc_host]
width=675
height=480
separateFrame=false
splashScreen=no
lookAndFeel=oracle
colorScheme=blue
background=/forms/formsdemo/images/blue.gif
logo=/forms/formsdemo/images/bannerlogo.gif
baseHTMLjinitiator=demobasejini.html
baseHTMLjpi=demobase.htm
baseHTML=demobase.html
baseHTMLie=demobaseie.html
envFile=formsdemo.env
archive_jini=frmall_jinit.jar,/forms/formsdemo/jars/demo.jar,/forms/formsdemo/jars/host.jar
archive=frmall.jar,/forms/formsdemo/jars/demo.jar,/forms/formsdemo/jars/host.jar
pageTitle=Oracle Forms - Client HOST() Command
form=host.fmx
[cursorpos]
width=675
height=480
separateFrame=false
splashScreen=no
lookAndFeel=oracle
colorScheme=blue
background=/forms/formsdemo/images/blue.gif
logo=/forms/formsdemo/images/bannerlogo.gif
baseHTMLjinitiator=demobasejini.html
baseHTMLjpi=demobase.htm
baseHTML=demobase.html
baseHTMLie=demobaseie.html
envFile=formsdemo.env
archive_jini=frmall_jinit.jar,/forms/formsdemo/jars/demo.jar,/forms/formsdemo/jars/cursorpos.jar
archive=frmall_jinit.jar,/forms/formsdemo/jars/demo.jar,/forms/formsdemo/jars/cursorpos.jar
pageTitle=Oracle Forms - CursorPos PJC Demo
form=cursorpos.fmx
[timeout]
width=675
height=480
separateFrame=false
splashScreen=no
lookAndFeel=oracle
colorScheme=blue
background=/forms/formsdemo/images/blue.gif
logo=/forms/formsdemo/images/bannerlogo.gif
baseHTMLjinitiator=demobasejini.html
baseHTMLjpi=demobase.htm
baseHTML=demobase.html
baseHTMLie=demobaseie.html
envFile=formsdemo.env
archive_jini=frmall_jinit.jar,/forms/formsdemo/jars/timeout.jar,/forms/formsdemo/jars/demo.jar
archive=frmall_jinit.jar,/forms/formsdemo/jars/demo.jar,/forms/formsdemo/jars/timeout.jar
pageTitle=Oracle Forms - Timeout PJC
form=timeout.fmx
imagebase=codebase
#height=520
#width=690
MY REGEDIT OF FORMSBUILDER_CLASSPATH_ is as follow:
d:\DevSuiteHome_1\forms\java\frmbld.jar;d:\DevSuiteHome_1\jlib\importer.jar;d:\DevSuiteHome_1\jlib\debugger.jar;d:\DevSuiteHome_1\jlib\utj.jar;d:\DevSuiteHome_1\jlib\dfc.jar;d:\DevSuiteHome_1\jlib\help4.jar;d:\DevSuiteHome_1\jlib\oracle_ice.jar;d:\DevSuiteHome_1\jlib\jewt4.jar;d:\DevSuiteHome_1\jlib\ewt3.jar;d:\DevSuiteHome_1\jlib\share.jar;d:\DevSuiteHome_1\forms\java\frmwebutil.jar;d:\DevSuiteHome_1\forms\java\frmall.jar;D:\DevSuiteHome_1\forms\oracle\forms\demos\bigraph\FormsGraph.jar;D:\DevSuiteHome_1\LIB\xmlparserv2.jar;D:\DevSuiteHome_1\jlib\bigraphbean.jar;D:\DevSuiteHome_1\jlib\bigraphbean-nls.zip;D:\DevSuiteHome_1\jlib\jewt4.jar;D:\DevSuiteHome_1\jlib\LW_PfjBean.jar;D:\DevSuiteHome_1\jlib\share.jar
Once again I insist that I had followed demos instruction, all readme and install guide . Here in my company I am using ORACLE 10G FORMS on my machine and ORACLE 10G database server installed on other server . Moreover this softwares are original license software .
Regards,
Prashant -
Problems in create graphical report from Oracle FSG xml output using BIP
We are trying to create graphical reports from Oracle Financial Statement Generator (FSG) xml output. I personally have extensive exposure working with XML (BI) Publisher but until recently I have never tried to use the BIP charting wizard to create graphical reports from FSG xml output out of EBS 11i/R12.
I created an SR with Oracle but they had to create an enhancement request for this issue. Does anyone know or have any idea on how we can accomplish this. The charting wizard pops up but the xml tags available do not make any sense.
If anybody has any idea please send me an email at [email protected]
Thanks,
LeoTry some thing like following
http://oraclebizint.wordpress.com/2008/03/10/oracle-bi-ee-101332-sending-reports-to-non-obi-users-delivery-manager-api-of-bi-publisher/ -
I am new to using Oracle, and I am trying to create an add/insert stored pr
I am new to using Oracle, and I am trying to create an add/insert stored procedure for a table. The PROD_CD and PLAN_CD fields in my table can have no value (empty or null) Can you please check my code and let me know what I am doing wrong?
Table definition:
CREATE TABLE DCWEB.USER_PLAN_PREFERENCE
USERID VARCHAR2(40) NOT NULL,
PROD_CD VARCHAR2(9) NULL,
PLAN_CD VARCHAR2(9) NULL,
STATE_LST VARCHAR2(2) NOT NULL,
STATE_NM VARCHAR2(40) NOT NULL,
LST_UPDATE_TS TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP NOT NULL
ALTER TABLE DCWEB.USER_PLAN_PREFERENCE
ADD CONSTRAINT USER_PLAN_PREFERENCE_XPK PRIMARY KEY (USERID, PROD_CD, PLAN_CD);
-- Grant/Revoke object privileges
grant select, insert, update, delete on DCWEB.USER_PLAN_PREFERENCE to HIGGIB1;
Stored Procedure Definition:
procedure setUserPlanPref (
userid in varchar2,
prod_cd in varchar2,
plan_cd in varchar2,
state_lst in varchar2,
state_nm in varchar2
is
currentTimestamp timestamp := current_timestamp;
begin
insert into user_plan_preference (userid, prod_cd, plan_cd, state_lst, state_nm, lst_update_ts)
values (upper(userid), upper(prod_cd), upper(plan_cd), upper(state_lst), upper(state_nm), currentTimestamp);
commit;
exception
when dup_val_on_index then
begin
update user_plan_preference up set
up.userid = upper(userid),
up.prod_cd = upper(prod_cd),
up.plan_cd = upper(plan_cd),
up.state_lst = upper(state_lst),
up.state_nm = upper(state_nm),
up.lst_update_ts = currentTimestamp
where up.userid = upper(userid)
and up.prod_cd = upper(prod_cd)
and up.plan_cd = upper(plan_cd);
commit;
exception
when others then
rollback;
end;
when others then
rollback;
end;
end;
INPUT DATA
I am unable to insert a record calling the stored procedure with values: DCWEB4578, , 2P, CA, CALIFORNIA but when I change to the string "NULL", the insert succeeds. When I try to call the stored procedure to update the inserted record with values: DCWEB4578, "NULL", 2P, CO, COLORODO the update does not happen since I still see the original record in the table. Please advise. Thanks in advance for your help.938319 wrote:
I am new to using OracleWelcome to the forum: please read the FAQ and forum sticky threads (if you haven't done so already), and ensure you've updated your profile with a real handle instead of "938319".
You'll get a faster, more effective response to your questions by including as much relevant information as possible upfront. This should include:
<li>Full APEX version
<li>Full DB/version/edition/host OS
<li>Web server architecture (EPG, OHS or APEX listener/host OS)
<li>Browser(s) and version(s) used
<li>Theme
<li>Template(s)
<li>Region/item type(s)
With APEX we're fortunate to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproducing things there is the best way to troubleshoot most issues, especially those relating to layout and visual formatting. If you expect a detailed answer then it's appropriate for you to take on a significant part of the effort by getting as far as possible with an example of the problem on apex.oracle.com before asking for assistance with specific issues, which we can then see at first hand.
Thanks for posting the complete code, it makes it so much easier to understand the problem, but always post code wrapped in tags<tt>\...\</tt> tags to preserve formatting and special characters.
and I am trying to create an add/insert stored procedure for a table.Does this have anything to do with APEX, for which this is the forum? General SQL & PL/SQL matters should be directed to the {forum:id=75} forum.
The PROD_CD and PLAN_CD fields in my table can have no value (empty or null) Can you please check my code and let me know what I am doing wrong?This:
commit;
exception
when others then
rollback;
end;
when others then
rollback;Remove it all.
Commits should be issued by end user/client software on completion of a transaction. This means <tt>commit;</tt> should almost never appear in PL/SQL code. The main exception to this is in <tt>dbms_job/secheduler</tt> scheduled processes that have no client or UI. If this code is executed from APEX, then APEX issues more than enough commits anyway.
exceptions are just a way of ensuring your code is buggy.<tt>when others</tt> exceptions are just a way of ensuring your code is buggy.
INPUT DATA
I am unable to insert a record calling the stored procedure with values: DCWEB4578, , 2P, CA, CALIFORNIA but when I change to the string "NULL", the insert succeeds. When I try to call the stored procedure to update the inserted record with values: DCWEB4578, "NULL", 2P, CO, COLORODO the update does not happen since I still see the original record in the table. Please advise. Thanks in advance for your help.With the <tt>commit</tt>s and <tt>when others...</tt> removed from the code you'll have a chance of seeing what's actually happening. Note that the entire procedure can be simplified by writing as a MERGE</tt> statement. -
ODBC ORACLE connection issue when trying to create a datastore. SAP Ds 3.2
I am at a client and I am trying to create an Oracle data store. I have an Oracle client installed on my laptop and an ORACLE driver. I can connect and query Oralce tables using Oralce tools on my laptop.
When I go to SAP DS to create a datastore I get an error message "Cannot find NT Oracle Server DLL <OCI.dll> Make sure Oracle has been installed and the PATH variable has been set"
The PATH is set correctly.
Creating a data store using Database Oracle give the above message.
If I try using ODBC it cannot find the oracle drive in the system list.
HELPHello
Are you using a supported version of Oracle? I hope it's not Oracle 7!
This is probably an installation issue, where is Data Services installed? If its Program Files (x86), try re-installing in C:\SAP or similar.
Your comment <<If I try using ODBC it cannot find the oracle drive in the system list.>> makes me wonder if the the Oracle client is not installed properly.
Michael -
I am facing an issue when trying to create a Duplicate Record.
Ist time when I create a record, its created Successfully.
I have Attribute validations which should not accept duplicate values, So to check that I tried to create the record with same values to display proper warning message.
After entering all the values (same values which i already entered in 1st record), when I tab out its showing as Red color border for that field, its expecting behaviour so no problem with that...
Then I click on Submit or Next button, now it's showing pop-up with expected warning message along with unexpected Exception message.
oracle.jbo.AttrValException: Attribute test in TestEO is required
The test field is mandatory in EO, VO and .jsff. Could any body please help me what i missed here.
My JDEV version: 11.1.17.0
Regards
GowreenathHi Popz,
Thanks for your reply.
I am using fnd:applicationsPanel next button as nextAction="next", so i didn't find immediate property in fnd:applicationPanel.
So, I tried 2 things based on your comment.
1. nextPartialSubmit ="true"... this option is also not worked.
2. In my Test attribute added immediate="true" this is also not worked.
If you have any id how to set immediate property or related property in fnd:applicationPanel for nextAction. Please let me know.
Thanks
Gowreenath -
I am trying to create a sequence to be use as primary key in a Oracle table
Hi guys
I have the ODI version 10.3.5 and I am trying to create a sequence that populates de row_id for a table. The schema is a database.
And I want that this item will be the primary key of the table that is loaded at execute the interface however I'm getting issues.
So please advise me.Hi ,
Can you please provide the following details :
1. What is the execution area of your sequence ? Is it source or staging or Target.
2. What IKM you are using ( I hope you are executing sequence in Staging or Target ) ?
My understanding is when you check Not Null , all your rows are going to Error table. So it is not giving any error.
When you uncheck the Not Null , it is giving error because Database is not allowing Null values in the Primary Key Column.
You can do the following to check if your sequence is working properly.
Try to write a Insert Select query in DB and execute it and see if it is working properly.
i.e.
insert into EMPL (
EMPNO,
ENAME,
JOB,
MGR,
HIREDATE,
SAL,
COMM,
DEPTNO
select S_EMPNO.NEXTVAL,
ENAME,
JOB,
MGR,
HIREDATE,
SAL,
COMM,
DEPTNO
from EMP
or if you can provide your query in this format , it will help in finding the issue quickly.Also provide the KM details. -
How to Unpivot, Crosstab, or Pivot using Oracle 9i with PL/SQL?
How to Unpivot, Crosstab, or Pivot using Oracle 9i with PL/SQL?
Here is a fictional sample layout of the data I have from My_Source_Query:
Customer | VIN | Year | Make | Odometer | ... followed by 350 more columns/fields
123 | 321XYZ | 2012 | Honda | 1900 |
123 | 432ABC | 2012 | Toyota | 2300 |
456 | 999PDQ | 2000 | Ford | 45586 |
876 | 888QWE | 2010 | Mercedes | 38332 |
... followed by up to 25 more rows of data from this query.
The exact number of records returned by My_Source_Query is unknown ahead of time, but should be less than 25 even under extreme situations.
Here is how I would like the data to be:
Column1 |Column2 |Column3 |Column4 |Column5 |
Customer | 123 | 123 | 456 | 876 |
VIN | 321XYZ | 432ABC | 999PDQ | 888QWE |
Year | 2012 | 2012 | 2000 | 2010 |
Make | Honda | Toyota | Ford | Mercedes|
Odometer | 1900 | 2300 | 45586 | 38332 |
... followed by 350 more rows with the names of the columns/fields from the My_Source_Query.
From reading and trying many, many, many of the posting on this topic I understand that the unknown number or rows in My_Source_Query can be a problem and have considered working with one row at a time until each row has been converted to a column.
If possible I'd like to find a way of doing this conversion from rows to columns using a query instead of scripts if that is possible. I am a novice at this so any help is welcome.
This is a repost. I originally posted this question to the wrong forum. Sorry about that.The permission level that I have in the Oracle environment is 'read only'. This is also be the permission level of the users of the query I am trying to build.
As requested, here is the 'create' SQL to build a simple table that has the type of data I am working with.
My real select query will have more than 350 columns and the rows returned will be 25 rows of less, but for now I am prototyping with just seven columns that have the different data types noted in my sample data.
NOTE: This SQL has been written and tested in MS Access since I do not have permission to create and populate a table in the Oracle environment and ODBC connections are not allowed.
CREATE TABLE tbl_MyDataSource
(Customer char(50),
VIN char(50),
Year char(50),
Make char(50),
Odometer long,
InvDate date,
Amount currency)
Here is the 'insert into' to populate the tbl_MyDataSource table with four sample records.
INSERT INTO tbl_MyDataSource ( Customer, VIN, [Year], Make, Odometer, InvDate, Amount )
SELECT "123", "321XYZ", "2012", "Honda", "1900", "2/15/2012", "987";
INSERT INTO tbl_MyDataSource ( Customer, VIN, [Year], Make, Odometer, InvDate, Amount )
VALUES ("123", "432ABC", "2012", "Toyota", "2300", "1/10/2012", "6546");
INSERT INTO tbl_MyDataSource ( Customer, VIN, [Year], Make, Odometer, InvDate, Amount )
VALUES ("456", "999PDQ", "2000", "Ford", "45586", "4/25/2002", "456");
INSERT INTO tbl_MyDataSource ( Customer, VIN, [Year], Make, Odometer, InvDate, Amount )
VALUES ("876", "888QWE", "2010", "Mercedes", "38332", "10/13/2010", "15973");
Which should produce a table containing these columns with these values:
tbl_MyDataSource:
Customer VIN Year Make Odometer InvDate Amount
123 | 321XYZ | 2012 | Honda | 1900 | 2/15/2012 | 987.00
123 | 432ABC | 2012 | Toyota | 2300 | 1/10/2012 | 6,546.00
456 | 999PDQ | 2000 | Ford | 45586 | 4/25/2002 | 456.00
876 | 888QWE | 2010 | Mercedes | 38332 | 10/13/2010 | 15,973.00
The desired result is to use Oracle 9i to convert the columns into rows using sql without using any scripts if possible.
qsel_MyResults:
Column1 Column2 Column3 Column4 Column5
Customer | 123 | 123 | 456 | 876
VIN | 321XYZ | 432ABC | 999PDQ | 888QWE
Year | 2012 | 2012 | 2000 | 2010
Make | Honda | Toyota | Ford | Mercedes
Odometer | 1900 | 2300 | 45586 | 38332
InvDate | 2/15/2012 | 1/10/2012 | 4/25/2002 | 10/13/2010
Amount | 987.00 | 6,546.00 | 456.00 | 15,973.00
The syntax in SQL is something I am not yet sure of.
You said:
>
"Don't use the same name or alias for two different things. if you have a table called t, then don't use t as an alais for an in-line view. Pick a different name, like ordered_t, instead.">
but I'm not clear on which part of the SQL you are suggesting I change. The code I posted is something I pieced together from some of the other postings and is not something I full understand the syntax of.
Here is my latest (failed) attempt at this.
select *
from (select * from tbl_MyDataSource) t;
with data as
(select rownum rnum, t.* from (select * from t order by c1) ordered_t), -- changed 't' to 'ordered_t'
rows_to_have as
(select level rr from dual connect by level <= 7 -- number of columns in T
select rnum,
max(decode(rr, 1, c1)),
max(decode(rr, 2, c2)),
max(decode(rr, 3, c3)),
max(decode(rr, 4, c3)),
max(decode(rr, 5, c3)),
max(decode(rr, 6, c3)),
max(decode(rr, 7, c3)),
from data, rows_to_have
group by rnumIn the above code the "select * from tbl_MyDataSource" is a place holder for my select query which runs without error and has these exact number of fields and data types as order shown in the tbl_MyDataSource above.
This code produces the error 'ORA-00936: missing expression'. The error appears to be starting with the 'with data as' line if I am reading my PL/Sql window correctly. Everything above that row runs without error.
Thank you for your great patients and for sharing your considerable depth of knowledge. Any help is gratefully welcomed. -
Error Received When Trying To Create DSN From The Command Line
All,
Your help is greatly appreciated in advance. I am having trouble packaging Oracle 10G for a batch file deployment. Everything is done except for getting the DSN created which is causing me major problems. We am working with the Oracle 10G R2 10.2.0.1.0 Client on Windows XP Professional SP2. The Oracle database resides on a Windows 2000 Professional Server SP4 running Oracle 9i.
Our Environment: I am creating two packages of the Oracle 10G client. The first is for a batch file distribution via LANDesk and the other package is for normal batch file install if someone from IT is installing this from a user's desk. Both scripts are really identical the only differences are how they are laid out. I only need help with the DSN creation as everything else is ready to go. I am going to focus on the Non-LANDesk batch file as once I fix this in one script the other one should also be fixed.
The Problem: The batch script copies the neccesary files to the temporary directory. I then extract the setup files to the temp folder. I run a custom Oracle install using the RSP file from a recorded install. After the install is complete I copy the TNS Names file to the proper location. I then try to call a CMD file with the ODBC command seen below the main script.
Script (May be easier to read if you download using link below):
@ECHO ON
::This batch files installs Oracle 10G Release 2 Version 10.2.0.1.0 with a Custom Response File
::Installation is Interactive
::All files are extracted from the ZIP file via the 7-Zip command line tool
::The Net Configuration Assistant TNS Names File is copied to its proper location
::The CCR ODBC connection is created once the install is complete
::All folders used for installation are cleaned up-deleted
@ECHO Setting Variables
set NetworkPath=\\dc-landesk\SoftwareForLDAgent\Oracle10G-R2-10.2.0.1.0\Non-LD
set DefaultPackagePath=C:\Program Files\LANDesk\LDClient\sdmcache\SoftwareForLDAgent\Oracle10G-R2-10.2.0.1.0\Non-LD
set ExtractionPath=C:\Temp_Oracle10G
set TempInstallFromPath=C:\Temp_Oracle10G\SetupFiles
set FileFolderCleanupPath=C:\Program Files\LANDesk\LDClient\sdmcache\SoftwareForLDAgent
@ECHO Creating Directories
mkdir "C:\Program Files\LANDesk\LDClient\sdmcache\SoftwareForLDAgent\Oracle10G-R2-10.2.0.1.0\Non-LD"
@ECHO Copying Files to DefaultPackagePath
copy /Y "%NetworkPath%\7za.exe" "%DefaultPackagePath%"
copy /Y "%NetworkPath%\CCR-ODBC.cmd" "%DefaultPackagePath%"
copy /Y "%NetworkPath%\Oracle10GCustom.rsp" "%DefaultPackagePath%"
copy /Y "%NetworkPath%\SetupFiles.zip" "%DefaultPackagePath%"
copy /Y "%NetworkPath%\tnsnames.ora" "%DefaultPackagePath%"
@ECHO Changing to Extraction Directory
cd "%DefaultPackagePath%"
@ECHO Extracting Files to path with no spaces
"%DefaultPackagePath%\7za.exe" x SetupFiles.zip -o%ExtractionPath% -aoa
@ECHO Please Open the "Task Manager" manager, Sort by "CPU" Descending
@ECHO Watch Task Manager For Javaw.exe, press any key when the process Disappears
@ECHO Install using Custom Response File
"%TempInstallFromPath%\setup.exe" -responseFile "%DefaultPackagePath%\Oracle10GCustom.rsp" -force -silent -noconsole
pause
@ECHO Copying NETCA (Net Configuration Assistant) TNS Names File to proper Location in Oracle Product Directory
copy /Y "%DefaultPackagePath%\tnsnames.ora" "C:\oracle\product\10.2.0\client_1\NETWORK\ADMIN\tnsnames.ora"
@ECHO Creating ODBC Connections Using Oracle Driver installed by this Batch File
call "%DefaultPackagePath%\CCR-ODBC.cmd"
@ECHO Waiting 20 seconds before proceeding
ping -n 21 127.0.0.1 >NUL
@ECHO Remove Temp Files and Folders created during Install
rmdir /S /Q %ExtractionPath%
del /Q "%DefaultPackagePath%\*.exe"
del /Q "%DefaultPackagePath%\*.ora"
del /Q "%DefaultPackagePath%\*.rsp"
del /Q "%DefaultPackagePath%\*.reg"
del /Q "%DefaultPackagePath%\*.zip"
rmdir /S /Q %FileFolderCleanupPath%
@ECHO The Oracle 10G installation has been Completed
pause
ODBC Script
odbcconf.exe /a {CONFIGSYSDSN "Oracle in OraClient10g_home1" "DSN=CCR|Description=CCR_data|SERVER=BWB|Database=CCR"}
As soon as the command is called I see the following error message appear.
"CONFIGSYSDSN: Unable to create a data source for the 'Oracle in OraClient10g_home1' driver: Could not load the setup or translator library with error code -2147467259"
The really strange thing though is that if I let the main part of the script run (Not the ODBC call) and then immediately manually start the ODBC call script it works just fine. So, I don't really understand why the script can't add it itself. Or, I can go the Administrator Tools>Data Sources (ODBC)>and then add it manually which also works. I have tried just pasting the command directly in the main script, therefore, bypassing the call feature but it doesn't make a difference.
Link (Zip with all scripts mentioned above): http://www.cbridegum.com/Fourms/Oracle/Files.zip
Has anyone ever seen this kind of issue before? Does anyone have any idea on how to fix this? Any thoughts or suggestions would be great.
Thanks so much for your help in advance,
Clif BridegumAll,
I thought it may be related to spaces in the path in which the script was called from. I tried having the ODBC command script in another directory but the same thing happens. It will give me the "CONFIGSYSDSN: Unable to create a data source for the 'Oracle in OraClient10g_home1' driver: Could not load the setup or translator library with error code -2147467259". As soon as the script is done running I can manually double click the script and it adds the DSN fine.
Thanks,
Clif Bridegum -
Creating partner application in Oracle
$ORACLE_HOME/sso/bin/ssoreg.sh
-oracle_home_path <oracle_home_path>
-config_sdk_papp TRUE -site_name SSO_APEX
-home_url http://hal-00-dbs-08.hal.net:7777/pls/apex
-success_url http://hal-00-dbs-08.hal.net:7777/pls/apex/wwv_flow_custom_auth_sso.pro
cess_success
-logout_url http://hal-00-dbs-08.hal.net:7777/pls/apex
-u cn=orcladmin
-papp_schema <apex schema>
-cancel_url http://hal-00-dbs-08.hal.net:7777/pls/apex
-papp_schema <apex schema> what goes here?Please tell us your first name and update your forum profile with it to assist us. Thanks.
Where did you get that script and what are you trying to do, exactly (generally, I got that your aim is "creating partner application in Oracle").
Scott -
Creating partner application in Oracle Portal
$ORACLE_HOME/sso/bin/ssoreg.sh
-oracle_home_path <oracle_home_path>
-config_sdk_papp TRUE -site_name SSO_APEX
-home_url http://hal-00-dbs-08.hal.net:7777/pls/apex
-success_url http://hal-00-dbs-08.hal.net:7777/pls/apex/wwv_flow_custom_auth_sso.pro
cess_success
-logout_url http://hal-00-dbs-08.hal.net:7777/pls/apex
-u cn=orcladmin
-papp_schema <apex schema>
-cancel_url http://hal-00-dbs-08.hal.net:7777/pls/apex
-papp_schema <apex schema> what goes here?Please tell us your first name and update your forum profile with it to assist us. Thanks.
Where did you get that script and what are you trying to do, exactly (generally, I got that your aim is "creating partner application in Oracle").
Scott -
How to create a Savepoint in Oracle?
Hello!
How can I create a 'savepoint' in Oracle. Thanks in advance.what do you mean by saying you were never successful?
didn't oracle do what you committed?
have you tried using the oracle classes ? (i don't know whether there are such things as commit or transactions, but I think so)
maybe it's that oracle cannot "translate" some of that java stuff?
I had a few problems using java.sql.clobs with oracle so i changed to oracle.sql.CLOB.
it's probably the same with other things...
Maybe you are looking for
-
I have saved a lot of e-mails that contain images and text. I do this in Raw Mail Source. However if I have deleted the original in my mail box the 'saved' e-mail wont open. Why is this and what canb I do to rectify this in the futrure?
-
Request in steps in deleting all the tables data in an user schema.
Hi Gurus, Could some one please provide me the steps involved in deleting all the tables data in an user(schema) thanks in advance
-
I have no map in the app just a blank graph with a blue dot for my location...hmmm,whats up what do I do?
-
How to update a standard table
Hi all, I want to update table makt with a program from table itab. Loop at itab into wa. modify makt from wa. endloop. I even can not debug the loop... Is it not possible to update sap tables? Thanks.
-
Hi Experts, We have 4 node rac database as 10.2.0.4 in red hat. we created a dblink from node 4( sol log into racdatabase4 instance) We run this dblink, we got below error massage as error returned attempting to run "select *from [email protected]" o