SSO Userid required from database package/trigger
I've done a search but cannot find the answer to my problem.
If I log into a Forms application using SSO I can get the SSO userid and database USER.
How do I get the SSO Userid from a database package or trigger that is called from Forms. Is there a database function that will return the SSO Userid?
Thanks
Stewart
Rosario,
Yes, I know how to retrieve the information but do I have to populate it first.
E.g. 'SYS_CONTEXT('USERENV','CLIENT_IDENTIFIER') Returns an identifier that is set by the application through the DBMS_SESSION.SET_IDENTIFIER procedure'
Do I have to call 'DBMS_SESSION.SET_IDENTIFIER' from my application before
calling SYS_CONTEXT('USERENV','CLIENT_IDENTIFIER')?
Thanks
Stewart
Message was edited by:
stewartdawson
Message was edited by:
stewartdawson
Similar Messages
-
Running report from database package
Hi,
I have a database package and it gets soem details and submits the report using SRW. It has submitted successfully. But the report is not outputed but there is file with extension eps. Can the package pass the user variables??
The package code follows:-
PROCEDURE p_submit_copy_invoices(
par_organization_id1 IN system_users.organization_id%TYPE,
par_batch_no1 IN ds_invoice_headers.batch_no%TYPE,
par_invoice_date IN ds_invoice_headers.creation_date%type,
par_user_code IN system_users.user_code%TYPE,
par_err_msg OUT VARCHAR2) IS
replist SRW_PARAMLIST;
repindent SRW.job_ident;
repstatus SRW.STATUS_RECORD;
par_customer_code_from ds_invoice_headers.customer_code%type;
par_organization_id number;
par_batch_no number;
CURSOR GET_CUST_CODE IS
SELECT DISTINCT dih.CUSTOMER_CODE,dih.batch_no,NO_OF_INVOICE_COPIES
FROM DS_INVOICE_HEADERS DIH, DS_CUSTOMER_SITES DCS
WHERE dih.ORGANIZATION_ID = par_organization_id1
AND TRANSACTION_TYPE = 'IN'
AND TRUNC(dih.CREATION_DATE) = par_invoice_date --'16-SEP-04' --TO_DATE(:DUAL.INVOICE_DATE)
and DIH.ORGANIZATION_ID = dcs.ORGANIZATION_ID
AND DIH.CUSTOMER_CODE= DCS.CUSTOMER_CODE
AND dih.CUSTOMER_SITE_CODE = DCS.CUSTOMER_SITE_CODE
AND NO_OF_INVOICE_COPIES > 0;
BEGIN
dbms_output.put_line('before');
FOR CURR_REC IN GET_CUST_CODE
LOOP
--v_user_params := ' par_organization_id1 ='||:GLOBAL.organization_id
-- || ' par_customer_code_from ='||CURR_REC.customer_code
-- || ' par_batch_no = '||CURR_REC.batch_no;
dbms_output.put_line('inside loop -'||curr_rec.customer_code);
replist := SRW_PARAMLIST(SRW_PARAMETER('',''));
srw.start_debugging;
SRW.ADD_PARAMETER(replist,'GATEWAY','http://seikoapps.seiko.com.au:7777/reports/rwservlet');
SRW.ADD_PARAMETER(replist,'REPORT','/u02/app/dis/dev/reports/rdf/dsinvprt.rdf');
SRW.ADD_PARAMETER(replist,'SERVER','repseikoapps2');
SRW.ADD_PARAMETER(replist,'USERID','dis/[email protected]');
SRW.ADD_PARAMETER(replist,'DESTYPE','FILE');
--SRW.ADD_PARAMETER(replist,'DESNAME','itgenicom');
dbms_output.put_line(' before desformat ');
--SRW.ADD_PARAMETER(replist,'DESFORMAT'.'lst');
SRW.ADD_PARAMETER(replist,'DESTINATION','/u02/app/dis/dev/reports/rep/dsinvprt.pdf');
SRW.ADD_PARAMETER(replist,'BLANKPAGES','no');
SRW.ADD_PARAMETER(replist,'COPIES',CURR_REC.NO_OF_INVOICE_COPIES);
--SRW.ADD_PARAMTER(mplist,DESTINATION,
dbms_output.put_line(' before MODE');
SRW.ADD_PARAMETER(replist,'MODE','Bitmap');
SRW.ADD_PARAMETER(replist,'ORIENTATION','Landscape');
SRW.ADD_PARAMETER(replist,'PARAMFORM','no');
dbms_output.put_line(' user defined variable ');
SRW.ADD_PARAMETER(replist,par_organization_id,par_organization_id1);
SRW.ADD_PARAMETER(replist,par_customer_code_from,CURR_REC.customer_code);
SRW.ADD_PARAMETER(replist,par_batch_no,CURR_REC.batch_no);
dbms_output.put_line(' before runrepoert ');
repindent := srw.run_report(replist);
repstatus := SRW.REPORT_STATUS(repindent);
dbms_output.put_line(' status of the report - '||repstatus.statuscode);
--srw.stop_debugging;
END LOOP;
END p_submit_copy_invoices;
I have turned the dubugging on :-
* WELCOME TO EVENT-BASED-REPORTING API *
* API-Version : 9i *
* (C) Oracle Corporation, 2000 - 2002 *
* Debugging turned ON **************************
*** Length of Paramlist : 1
OK : Parameter added : GATEWAY=http://seikoapps.seiko.com.au:7777/reports/rwservlet
*** Length of Paramlist : 2
OK : Parameter added : REPORT=/u02/app/dis/dev/reports/rdf/dsinvprt.rdf
*** Length of Paramlist : 3
OK : Parameter added : SERVER=repseikoapps2
*** Length of Paramlist : 4
OK : Parameter added : USERID=dis/[email protected]
*** Length of Paramlist : 5
OK : Parameter added : DESTYPE=FILE
before desformat
*** Length of Paramlist : 6
OK : Parameter added : DESTINATION=/u02/app/dis/dev/reports/rep/dsinvprt.pdf
*** Length of Paramlist : 7
OK : Parameter added : BLANKPAGES=no
*** Length of Paramlist : 8
OK : Parameter added : COPIES=1
before MODE
*** Length of Paramlist : 9
OK : Parameter added : MODE=Bitmap
*** Length of Paramlist : 10
OK : Parameter added : ORIENTATION=Landscape
*** Length of Paramlist : 11
OK : Parameter added : PARAMFORM=no
user defined variable
*** Length of Paramlist : 12
OK : Parameter added : =129
*** Length of Paramlist : 13
OK : Parameter added : =250000D
*** Length of Paramlist : 14
OK : Parameter added : =100104
before runrepoert
Starting run_report: building url
*** Building URL (RUN_REPORT)
OK : URL built : http://seikoapps.seiko.com.au:7777/reports/rwservlet?REPORT=%2Fu02%2Fapp%2Fdis%2Fdev%2Freports%2Frdf%2Fdsinvprt%2Erdf&SERVER=repseikoapps2&USERID=dis%2Fseikodis%40dis%2Eseiko%2Ecom%2Eau&DESTYPE=FILE&DESTINATION=%2Fu02%2Fapp%2Fdis%2Fdev%2
*** Submitting HTTP Request
*** using URL :http://seikoapps.seiko.com.au:7777/reports/rwservlet?REPORT=%2Fu02%2Fapp%2Fdis%2Fdev%2Freports%2Frdf%2Fdsinvprt%2Erdf&SERVER=repseikoapps2&USERID=dis%2Fseikodis%40dis%2Eseiko%2Ecom%2Eau&DESTYPE=FILE&DESTINATION=%2Fu02%2Fapp%2Fdis%2Fdev%2Fr
OK : Request submitted - Return stream : <?xml version = '1.0' encoding = 'ISO-8859-1' standalone = 'yes'?>
<serverQueues>
<job id="842" queueType="past">
<name>/u02/app/dis/dev/reports/rdf/dsinvprt.rdf</name>
<type>report</type>
<st
OK : Request submitted - Length of stream : 678
*** XML-Parsed - Following Structure discovered :
*** Checking elements!
serverQueues ()
*** Checking attributes!
job ()
*** Checking attributes!
__id = 842
__queueType = past
name (/u02/app/dis/dev/reports/rdf/dsinvprt.rdf)
*** Checking attributes!
type (report)
*** Checking attributes!
status (Finished successfully)
*** Checking attributes!
__code = 4
owner (RWUser)
*** Checking attributes!
server (repseikoapps2)
*** Checking attributes!
destination ()
*** Checking attributes!
desType (FILE)
*** Checking attributes!
desFormat (unknown)
*** Checking attributes!
file (71106787.eps)
*** Checking attributes!
timingInfo ()
*** Checking attributes!
queued (1/10/2004 15:02:18)
*** Checking attributes!
started (1/10/2004 15:02:18)
*** Checking attributes!
finished (1/10/2004 15:02:18)
*** Checking attributes!
*** Finished Parsing XML
Getting value for element: job
*** Requesting value for Attribute job.id [842]
Getting value for element: server
*** Requesting value for TAG server [repseikoapps2]
Getting value for element: job
*** Requesting value for Attribute job.type []
Getting value for element: job
*** Requesting value for Attribute job.queueType [past]
Getting value for element: name
*** Requesting value for TAG name [u02/app/dis/dev/reports/rdf/dsinvprt.rdf]
Getting value for element: status
*** Requesting value for Attribute status.code [4]
Getting value for element: status
*** Requesting value for TAG status [Finished successfully]
Getting value for element: owner
*** Requesting value for TAG owner [RWUser]
Getting value for element: desType
*** Requesting value for TAG desType [FILE]
Getting value for element: desName
*** Requesting value for TAG file [71106787.eps]
Getting value for element: queued
*** Requesting value for TAG queued [1/10/2004 15:02:18]
Getting value for element: started
*** Requesting value for TAG started [1/10/2004 15:02:18]
Getting value for element: finished
*** Requesting value for TAG finished [1/10/2004 15:02:18]
Getting value for element: parentJob
*** RUN REPORT BY URL - Processing finished
JobID : 842
StatusCode : 4
StatusText : Finished successfully
================================================
TimeStamp : 10/01/04 02:22 PM
================================================
*** Length of Paramlist : 1
OK : Parameter added : GATEWAY=http://seikoapps.seiko.com.au:7777/reports/rwservlet
*** Length of Paramlist : 2
OK : Parameter added : SERVER=repseikoapps2
*** Length of Paramlist : 3
OK : Parameter added : JOBID=842
*** Length of Paramlist : 4
OK : Parameter added : AUTHID=
*** Building URL (showjobid)
Added jobid to URL
Added Server to URL
Added statusformat to URL
OK : URL built : http://seikoapps.seiko.com.au:7777/reports/rwservlet/showjobid842?Server=repseikoapps2&statusformat=xml
*** Submitting HTTP Request
*** using URL :http://seikoapps.seiko.com.au:7777/reports/rwservlet/showjobid842?Server=repseikoapps2&statusformat=xml
OK : Request submitted - Return stream : <?xml version = '1.0' encoding = 'ISO-8859-1' standalone = 'yes'?>
<serverQueues>
<job id="842" queueType="past">
<name>/u02/app/dis/dev/reports/rdf/dsinvprt.rdf</name>
<type>report</type>
<st
OK : Request submitted - Length of stream : 678
*** XML-Parsed - Following Structure discovered :
*** Checking elements!
serverQueues ()
*** Checking attributes!
job ()
*** Checking attributes!
__id = 842
__queueType = past
name (/u02/app/dis/dev/reports/rdf/dsinvprt.rdf)
*** Checking attributes!
type (report)
*** Checking attributes!
status (Finished successfully)
*** Checking attributes!
__code = 4
owner (RWUser)
*** Checking attributes!
server (repseikoapps2)
*** Checking attributes!
destination ()
*** Checking attributes!
desType (FILE)
*** Checking attributes!
desFormat (unknown)
*** Checking attributes!
file (71106787.eps)
*** Checking attributes!
timingInfo ()
*** Checking attributes!
queued (1/10/2004 15:02:18)
*** Checking attributes!
started (1/10/2004 15:02:18)
*** Checking attributes!
finished (1/10/2004 15:02:18)
*** Checking attributes!
Getting value for element: job
*** Requesting value for Attribute job.id [842]
Getting value for element: server
*** Requesting value for TAG server [repseikoapps2]
Getting value for element: job
*** Requesting value for Attribute job.type []
Getting value for element: job
*** Requesting value for Attribute job.queueType [past]
Getting value for element: name
*** Requesting value for TAG name [u02/app/dis/dev/reports/rdf/dsinvprt.rdf]
Getting value for element: status
*** Requesting value for Attribute status.code [4]
Getting value for element: status
*** Requesting value for TAG status [Finished successfully]
Getting value for element: owner
*** Requesting value for TAG owner [RWUser]
Getting value for element: desType
*** Requesting value for TAG desType [FILE]
Getting value for element: desName
*** Requesting value for TAG file [71106787.eps]
Getting value for element: queued
*** Requesting value for TAG queued [1/10/2004 15:02:18]
Getting value for element: started
*** Requesting value for TAG started [1/10/2004 15:02:18]
Getting value for element: finished
*** Requesting value for TAG finished [1/10/2004 15:02:18]
Getting value for element: parentJob
*** JOB STATUS - Processing finished
JobID : 842
StatusCode : 4
StatusText : Finished successfully
=============================================
TimeStamp : 10/01/04 02:22 PM
=============================================
Can any one help me why the file is not created.
Thanks
BainThe file is created, but as an eps file (post script printer file). That is because you have not specified a desformat (e.g. PDF).
-
Generate report with data from database package
Hi
Is it possible to generate a report where the values come from an oracle database package instead of from an sql query declared in the report itself?
If yes, how is it done?
Appreciate any help. Thx.Hi,
You can use REF CURSORs to generate reports from a database package.
For information about REF CURSORs, please see Chapter 40 'Building a Paper Report with REF CURSORs' of the Oracle Reports Building Reports manual.
This chapter is at:
http://download-uk.oracle.com/docs/html/B13895_01/orbr_refcur.htm#i1011693
Hope this helps.
Regards,
Panna -
How to Create a PDF file from database package/procedure in 10g?
Hi,
Is there a way to create a pdf file in 10g Application Server using PL/SQL package/procedure in 10g database?
Thanks in advance.
Regards
Vishnu Nekkantihttp://technology.amis.nl/2010/10/20/as_pdf-generating-a-pdf-document-with-some-plsql/
http://technology.amis.nl/2012/04/11/generating-a-pdf-document-with-some-plsql-as_pdf_mini-as_pdf3/ -
Is there any way to run a report from database?
Is there any way to run a report from database using trigger?
A report needs to be printed out when a new row is inserted into a table.If you are using the Reports Server it is possible to start a report from a trigger by using the UTL_HTTP package (in the sys schema) to call the report URL. This should work with DESTINATION=PRINTER.
Hope this helps. -
Can't create WS from PLSQL package (Jdeveloper 11g 4) (Exception occured)
Hello,
I'am using JDeveloper 11g preview 4.
On database i have a package with 2 procedures.
When I like to create a WS from database package I get the Exception:
java.lang.ClassCastException: oracle.jdeveloper.webservices.model.plsql.PLSQLPortType
at oracle.jdeveloper.webservices.model.generator.AddToDeploymentProfiles.getJarFiles(AddToDeploymentProfiles.java:592)
at oracle.jdeveloper.webservices.model.generator.AddToDeploymentProfiles.action(AddToDeploymentProfiles.java:292)
at oracle.jdeveloper.webservices.model.generator.GeneratorAction.run(GeneratorAction.java:147)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153)
at java.awt.Dialog$1.run(Dialog.java:525)
at java.awt.Dialog$2.run(Dialog.java:553)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Dialog.show(Dialog.java:551)
at java.awt.Component.show(Component.java:1300)
at java.awt.Component.setVisible(Component.java:1253)
at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
at oracle.ide.dialogs.ProgressBar.start(ProgressBar.java:361)
at oracle.ide.dialogs.ProgressBar.start(ProgressBar.java:222)
at oracle.ide.dialogs.ProgressBar.start(ProgressBar.java:194)
at oracle.jdeveloper.webservices.model.Model.saveEditSync(Model.java:242)
at oracle.jdevimpl.webservices.wizard.jaxrpc.PLSQLWizard.runWizard(PLSQLWizard.java:366)
at oracle.jdevimpl.webservices.wizard.jaxrpc.PLSQLWizard.runWizard(PLSQLWizard.java:137)
at oracle.jdevimpl.webservices.WebServicesAddin.fastCreatePlSqlService(WebServicesAddin.java:1503)
at oracle.jdevimpl.webservices.WebServicesAddin.handleEvent(WebServicesAddin.java:870)
at oracle.ide.controller.IdeAction.performAction(IdeAction.java:513)
at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:843)
at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:486)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.menuDragMouseReleased(BasicMenuItemUI.java:1104)
at javax.swing.JMenuItem.fireMenuDragMouseReleased(JMenuItem.java:578)
at javax.swing.JMenuItem.processMenuDragMouseEvent(JMenuItem.java:475)
at javax.swing.JMenuItem.processMouseEvent(JMenuItem.java:422)
at javax.swing.MenuSelectionManager.processMouseEvent(MenuSelectionManager.java:283)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1043)
at java.awt.Component.processMouseEvent(Component.java:5501)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
at java.awt.Component.processEvent(Component.java:5266)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3968)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1778)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Exception from Jdeveloper console
Validating XML...
Validating C:\Generali\WsGenerali\public_html\WEB-INF\web.xml
Validate XML: 0 errors, 0 warnings.
Aug 13, 2008 1:20:20 PM oracle.javatools.logging.LogUtils log
WARNING: Exception in task oracle.jdeveloper.webservices.model.generator.FixLocationAttribute$1@1fa522d on model oracle.jdevimpl.webservices.wsdl.WSDLXmlModel@129271e; txn name=null
java.lang.NullPointerException
at oracle.jdeveloper.webservices.model.generator.FixLocationAttribute$1.performTask(FixLocationAttribute.java:72)
at oracle.bali.xml.model.task.StandardTransactionTask.runThrowingXCE(StandardTransactionTask.java:172)
at oracle.bali.xml.model.task.StandardTransactionTask.run(StandardTransactionTask.java:103)
at oracle.jdeveloper.webservices.model.generator.FixLocationAttribute.action(FixLocationAttribute.java:51)
at oracle.jdeveloper.webservices.model.generator.GeneratorAction.run(GeneratorAction.java:147)
at java.lang.Thread.run(Thread.java:595)
Aug 13, 2008 1:20:20 PM oracle.j2ee.xml.XMLMessages warningException
WARNING: Exception Encountered
Aug 13, 2008 1:20:20 PM oracle.j2ee.xml.XMLMessages warningException
WARNING: Exception Encountered
Aug 13, 2008 1:20:20 PM oracle.j2ee.xml.XMLMessages warningException
my procedures are:
type r_sifrant is record
( id number,
nadrejeni_id number,
opis varchar2(100),
privzeto varchar2(1)
type r_cursor is ref cursor return r_sifrant;
function f_sel_sifrant(p_naziv in varchar2) return r_cursor;
procedure gen_polica(p_username in varchar2, p_polica_xml in clob, p_stevilka_police out number);
Here I have posted a video of generating ws from plsql package (screen capture):
http://shrani.si/f/x/P6/m5GSF8c/in2.avi
Thank you for any help
best regards
Peterv
Message was edited by:
user651799Hello,
I'am using JDeveloper 11g preview 4.
On database i have a package with 2 procedures.
When I like to create a WS from database package I get the Exception:
java.lang.ClassCastException: oracle.jdeveloper.webservices.model.plsql.PLSQLPortType
at oracle.jdeveloper.webservices.model.generator.AddToDeploymentProfiles.getJarFiles(AddToDeploymentProfiles.java:592)
at oracle.jdeveloper.webservices.model.generator.AddToDeploymentProfiles.action(AddToDeploymentProfiles.java:292)
at oracle.jdeveloper.webservices.model.generator.GeneratorAction.run(GeneratorAction.java:147)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153)
at java.awt.Dialog$1.run(Dialog.java:525)
at java.awt.Dialog$2.run(Dialog.java:553)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Dialog.show(Dialog.java:551)
at java.awt.Component.show(Component.java:1300)
at java.awt.Component.setVisible(Component.java:1253)
at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
at oracle.ide.dialogs.ProgressBar.start(ProgressBar.java:361)
at oracle.ide.dialogs.ProgressBar.start(ProgressBar.java:222)
at oracle.ide.dialogs.ProgressBar.start(ProgressBar.java:194)
at oracle.jdeveloper.webservices.model.Model.saveEditSync(Model.java:242)
at oracle.jdevimpl.webservices.wizard.jaxrpc.PLSQLWizard.runWizard(PLSQLWizard.java:366)
at oracle.jdevimpl.webservices.wizard.jaxrpc.PLSQLWizard.runWizard(PLSQLWizard.java:137)
at oracle.jdevimpl.webservices.WebServicesAddin.fastCreatePlSqlService(WebServicesAddin.java:1503)
at oracle.jdevimpl.webservices.WebServicesAddin.handleEvent(WebServicesAddin.java:870)
at oracle.ide.controller.IdeAction.performAction(IdeAction.java:513)
at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:843)
at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:486)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.menuDragMouseReleased(BasicMenuItemUI.java:1104)
at javax.swing.JMenuItem.fireMenuDragMouseReleased(JMenuItem.java:578)
at javax.swing.JMenuItem.processMenuDragMouseEvent(JMenuItem.java:475)
at javax.swing.JMenuItem.processMouseEvent(JMenuItem.java:422)
at javax.swing.MenuSelectionManager.processMouseEvent(MenuSelectionManager.java:283)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1043)
at java.awt.Component.processMouseEvent(Component.java:5501)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
at java.awt.Component.processEvent(Component.java:5266)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3968)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1778)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Exception from Jdeveloper console
Validating XML...
Validating C:\Generali\WsGenerali\public_html\WEB-INF\web.xml
Validate XML: 0 errors, 0 warnings.
Aug 13, 2008 1:20:20 PM oracle.javatools.logging.LogUtils log
WARNING: Exception in task oracle.jdeveloper.webservices.model.generator.FixLocationAttribute$1@1fa522d on model oracle.jdevimpl.webservices.wsdl.WSDLXmlModel@129271e; txn name=null
java.lang.NullPointerException
at oracle.jdeveloper.webservices.model.generator.FixLocationAttribute$1.performTask(FixLocationAttribute.java:72)
at oracle.bali.xml.model.task.StandardTransactionTask.runThrowingXCE(StandardTransactionTask.java:172)
at oracle.bali.xml.model.task.StandardTransactionTask.run(StandardTransactionTask.java:103)
at oracle.jdeveloper.webservices.model.generator.FixLocationAttribute.action(FixLocationAttribute.java:51)
at oracle.jdeveloper.webservices.model.generator.GeneratorAction.run(GeneratorAction.java:147)
at java.lang.Thread.run(Thread.java:595)
Aug 13, 2008 1:20:20 PM oracle.j2ee.xml.XMLMessages warningException
WARNING: Exception Encountered
Aug 13, 2008 1:20:20 PM oracle.j2ee.xml.XMLMessages warningException
WARNING: Exception Encountered
Aug 13, 2008 1:20:20 PM oracle.j2ee.xml.XMLMessages warningException
my procedures are:
type r_sifrant is record
( id number,
nadrejeni_id number,
opis varchar2(100),
privzeto varchar2(1)
type r_cursor is ref cursor return r_sifrant;
function f_sel_sifrant(p_naziv in varchar2) return r_cursor;
procedure gen_polica(p_username in varchar2, p_polica_xml in clob, p_stevilka_police out number);
Here I have posted a video of generating ws from plsql package (screen capture):
http://shrani.si/f/x/P6/m5GSF8c/in2.avi
Thank you for any help
best regards
Peterv
Message was edited by:
user651799 -
How to catch SSO userid and store it in deployment database?
Hi,
Environment: OID,Portal,forms,reports 9.0.2.3
How do I do if I have a SSO user, lets say DAVE, and he has a resource pointing to a Deployment database un/pw@ORAC? When he has made his SSO login and choose a form I want store his real userid in the database ORAC. For example in v$session and in a history table. I want to be able to trace a blocking session back to the real user.Hi i
from the form i set the default value of the field form_user_name PORTAL.WWCTX_API.GET_USER and the default fomat type to expression return varchar
Now
=======
the authenticated user id appears in the field form_user_name and is inserted properly in the oirder table
Question
========
i want every authenticated user can query only his orders which means when he prss the query button , he will get his orders only
How can i force the where clause of the query to have
form_user_name = PORTAL.WWCTX_API.GET_USER
Regards
Mohamed Hammed -
How to check SSO user from database?
Hi:
I've posted this topic in Forms forum:
How to check SSO user from database?
then as I've been told, it's better to post it here, so ...... here is the question:
I'm writing a "before delete trigger" to insert into log table before delete. Is there a way that I know from database the current SSO user when SSO users share one database user?
Just like in Oracle Application Express there is v('APP_USER') to know the current user.
Saad,End users are manipulating data through Oracle Forms(and SSO through portal) and the thing I need is to trace the SSO username from database without modifying forms, I mean purely from database taking into consideration that SSO users are sharing one database user. Is it possible?
Saad, -
Can a Oracle 10g Report be run from a plsql database package?
Hi,
We have a requirement to generate a pdf report file from plsql database package. I want to know if it is possible to run a Oracle 10g Report from PL/SQL package/procedure in database? If so, can you provide an example?
Thanks in advance.
Regards
Vishnu NekkantiHi Alex,
When I try to create the procedure event_driven_report mentioned in Doc ID 199743.1. I am getting below errors. Thoughts? Am I missing some thing?
2/14 PL/SQL: Item ignored
2/14 PLS-00201: identifier 'SRW_PARAMLIST' must be declared
3/14 PL/SQL: Item ignored
3/14 PLS-00201: identifier 'SRW.JOB_IDENT' must be declared
5/5 PL/SQL: Statement ignored
5/5 PLS-00320: the declaration of the type of this expression is
incomplete or malformed
6/5 PL/SQL: Statement ignored
6/23 PLS-00320: the declaration of the type of this expression is
incomplete or malformed
7/5 PL/SQL: Statement ignored
7/23 PLS-00320: the declaration of the type of this expression is
incomplete or malformed
8/5 PL/SQL: Statement ignored
8/23 PLS-00320: the declaration of the type of this expression is
incomplete or malformed
9/5 PL/SQL: Statement ignored
9/23 PLS-00320: the declaration of the type of this expression is
incomplete or malformed
10/5 PL/SQL: Statement ignored
10/23 PLS-00320: the declaration of the type of this expression is
incomplete or malformed
11/5 PL/SQL: Statement ignored
11/23 PLS-00320: the declaration of the type of this expression is
incomplete or malformed
12/5 PL/SQL: Statement ignored
12/23 PLS-00320: the declaration of the type of this expression is
incomplete or malformed
Thanks
Vishnu Nekkanti -
Help required in writing And Reading Xml From Database
Hi
i m new to java.
i m facing problem while writing Xml file from Mysql Database in java i m using the WebRowSet
and also for Reading WebRowSet
after reading the Xml i have to save this in Database
(required source code)
is there any one to help me in this way
regards
aamirshadab_think_globally wrote:
{noformat}*hi everybody,
please send me a ajax with jsp application
suppose i enter a word in text area ajax will populate/suggest all string from database ,who started
from that entering character(s).like a google string search.
please send full source code
*{noformat}how about you do it yourself? -
Accessing database package variables from Forms
I have a database package that populates a table of values, i.e.
type t_route_list is table of rt_route.RTR_ID%type;
route_list t_route_list
route_list gets populated by a package function and I want to access route_list in the Form.
While I can access other package variables by writing a function that returns the variable, Forms doesnt seem to like functions that return a user defined datatype as above. I have also tried using a procedure with an OUT param instead of a function but it also fails with same error.
i.e.
declare
v_route_list pkg_bulk_route_replace.t_route_list;
begin
pkg_bulk_route_replace.init;
pkg_bulk_route_replace.get_route_list(v_route_list);
message(v_route_list(1));
end;
This will not compile, but removing the index (1) from the last line makes it compile but crash with ORA-0600.
The code above with message replaced with dbms_out.put_line works fine on TOAD.
So my question is......
Can my database package return a plsql table to a form and if so, how?!Actually I've got this to work now!
Thde main culprit appears to be a difference in the version of sql or pl/sql used on forms (version 5) and the database (8.1.7).
I had defined my table as a nested table. By redefining this as a indexed table, simply by adding on 'index by binary_integer' on my server package, I am suddenly able to access the elements of the table on my form. Fortunately this did not break the server code either - the table was populated using bulk collect and that still works.
Still got a bit of coding to do, but things are looking up now. -
How to send error message to forms from Database Trigger
Hi, Please help me to send error message to forms from Database Trigger?
RgDs,
Madesh.R.MYou are correct, the On-Error trigger is a Forms trigger. However, if your Form is going to display the error generated by the database stored procedure or trigger - you might not see the database error in your Form unless you check the DBMS_ERROR_CODE in the On-Error trigger and manually display the Error Code and associated Text. I've see this happen with a co-worker. The Form she was working on was based on a table with an Before-Insert trigger. Because she was not explicitely handling the error from the Before-Insert trigger in the Forms On-Error trigger, her Form appeared to halt for no reason at all. Once she added code to the On-Error trigger in the Form to handle the DBMS_ERROR_CODE, she discovered the trigger was producing an error and was able to show the error to the user in the On-Error trigger.
I understand the desire to keep as much as possbile in the database, but with that comes some extra coding in your Forms to handle this. This extra coding could easily be placed in a Forms Library, attached to a Form and called in the On-Error trigger. Your code could look like this:
DECLARE
/*This example assumes you have an Alert defined
in your Form called: 'ERROR' */
al_id ALERT;
al_text VARCHAR2(200); /* Max text of a Forms Alert message*/
al_btn NUMBER;
BEGIN
IF DBMS_ERROR_CODE != 0 THEN
/* Error code is ORA-00000 Normal Successful completion
So only handle non-zero errors */
al_text := DBMS_ERROR_CODE||':'||DBMS_ERROR_TEXT;
al_id := Find_Alert('ERROR');
set_alert_property(al_id, alert_message_text, al_text);
al_btn := show_alert(al_id);
END IF;
END;Your original question was "How to send error message to forms from Database Trigger?" The answer is you don't because Forms already gets the database error code and database message through the Forms DBMS_ERROR_CODE and DBMS_ERROR_TEXT functions. Look these up in the Forms help and it should clear things up for you.
Craig...
Edited by: CraigB on Jun 14, 2010 4:49 PM
Edited by: CraigB on Jun 14, 2010 4:49 PM
Edited by: CraigB on Jun 14, 2010 4:50 PM
Edited by: CraigB on Jun 14, 2010 4:51 PM
Edited by: CraigB on Jun 14, 2010 4:51 PM -
Edge Animate from CCP package requiring user login?
One of our techs was testing a lab image with CC 2014 installed from a package I built with the latest CCP. He reported that Edge Animate asked for an Adobe ID when he logged in. After entering a personal Adobe ID, the remaining CC products lost their activation. Are the Edge tools still "forbidden" for these anonymous installs? Will using a Catalyst login still de-activate all the other products?
Thanks,
RicHi Ric,
Adobe Edge animate doesn't require an Adobe ID sign in when deployed using an enterprise license key. i assume, this could be an issue due to license conflict. I would suggest to create a license file using creative cloud packager and run on the user's machine. Edge should work fine.
Create license file : Creative Cloud Help | Create license file
Hope this helps.
Thanks,
Ashish -
I am trying to use the relatively new Code First from Database with the newest EF (6.x) and on an Oracle database (11g, but I have installed the newest ODTwithODAC). First of all, it works fine as long as the connection string is inside the App.Config file. But when I try to build it dynamically in the C# code (or rather, statically at the moment) it fails. I have it working with a dynamically built connection string when doing Model from Database though, so I'm at a loss right now.
First, I have created a second constructor for the context class that takes a string and does base(connectionString). Then I build the connection string via
OracleConnectionStringBuilder oracleBuilder = new OracleConnectionStringBuilder();
oracleBuilder.DataSource = "TEST.BLA.COM";
oracleBuilder.UserID = "ABC";
oracleBuilder.Password = "abc";
oracleBuilder.PersistSecurityInfo = true;
string connection = oracleBuilder.ToStrin();
Now trying to open an EntityConnection by giving to it this provider-specific connection string (or even the static one from the App.Config) doesn't work; I get "keyword not supported: user id"). Trying it by creating a context and giving this connection string doesn't work either. I'm pretty sure that this is because I didn't specify the provider to use; after all, it should use the Oracle.ManagedDataAccess.Client provider and not an SQL Server based one.
I then tried to get around this by using an EntityConnectionStringBuilder on top and specifying the provider keyword there, but then I get "keyword not supported: provider" when using it in the context constructor, and "the 'metadata' keyword is always required" when using it with the EntityConnection constructor.
As I said above: I bet it's the provider that I have to specify somehow, but I don't know how. The code that does work is the following:
using (var context = new Model())
context.Database.Connection.Open();
context.Database.Connection.Close();
When I read context.Database.Connection.ConnectionString, it is exactly the provider-specific connection string I created above, but I don't know where to specify the provider again. Do you know of any way to do this? Certainly there must be one.
PS: I have also posted this question on http://stackoverflow.com/questions/27979454/ef-code-first-from-database-with-managed-oracle-data-access-dynamic-connection because it is quite urgent and I'd like to use Code First from Database. Otherwise I'd have to go "back" to using Model from Database again, which is not ideal because we have updatable views where the .edmx-file has to be edited after every reload of the model, while with Code First from DB inserting into the view automatically works.I am trying to use the relatively new Code First from Database with the newest EF (6.x) and on an Oracle database (11g, but I have installed the newest ODTwithODAC). First of all, it works fine as long as the connection string is inside the App.Config file. But when I try to build it dynamically in the C# code (or rather, statically at the moment) it fails. I have it working with a dynamically built connection string when doing Model from Database though, so I'm at a loss right now.
First, I have created a second constructor for the context class that takes a string and does base(connectionString). Then I build the connection string via
OracleConnectionStringBuilder oracleBuilder = new OracleConnectionStringBuilder();
oracleBuilder.DataSource = "TEST.BLA.COM";
oracleBuilder.UserID = "ABC";
oracleBuilder.Password = "abc";
oracleBuilder.PersistSecurityInfo = true;
string connection = oracleBuilder.ToStrin();
Now trying to open an EntityConnection by giving to it this provider-specific connection string (or even the static one from the App.Config) doesn't work; I get "keyword not supported: user id"). Trying it by creating a context and giving this connection string doesn't work either. I'm pretty sure that this is because I didn't specify the provider to use; after all, it should use the Oracle.ManagedDataAccess.Client provider and not an SQL Server based one.
I then tried to get around this by using an EntityConnectionStringBuilder on top and specifying the provider keyword there, but then I get "keyword not supported: provider" when using it in the context constructor, and "the 'metadata' keyword is always required" when using it with the EntityConnection constructor.
As I said above: I bet it's the provider that I have to specify somehow, but I don't know how. The code that does work is the following:
using (var context = new Model())
context.Database.Connection.Open();
context.Database.Connection.Close();
When I read context.Database.Connection.ConnectionString, it is exactly the provider-specific connection string I created above, but I don't know where to specify the provider again. Do you know of any way to do this? Certainly there must be one.
PS: I have also posted this question on http://stackoverflow.com/questions/27979454/ef-code-first-from-database-with-managed-oracle-data-access-dynamic-connection because it is quite urgent and I'd like to use Code First from Database. Otherwise I'd have to go "back" to using Model from Database again, which is not ideal because we have updatable views where the .edmx-file has to be edited after every reload of the model, while with Code First from DB inserting into the view automatically works. -
PDF Report generation and email it from a DB trigger
Dear all
Is it possible to run a report in PDF format ad email it to some clients after a specific envent through Database Trigger. For example whenever a client makes an entry into order entry table (through entry form), a trigger should execute on Orders table, this trigger should execute or generate a PDF formatted report and finally mail it to Sales team?
I'm using Oracle Database 10g. Rel.2 on Windows-XP.kamranpathan wrote:
Is it possible to run a report in PDF format ad email it to some clients after a specific envent through Database Trigger. No. Not the way you imagine.
A trigger is fired when? During the transaction. The transaction still is not committed and can be rolled back. So if you start doing notifications and what not in the trigger, and the transaction is rolled back, then that transaction never happened. But your notification code did. And the users have been informed incorrectly - about something that did not happen.
The same trigger can also be fired in the same transaction for the same row - more than once. This can happen in specific circumstances in Oracle, where basically Oracle itself does an undo of the transaction (trigger already fired) and then redo that transaction (trigger fire again).
So in such a case, your trigger will generate two notifications from the same trigger for the same event. Inside a transaction that still could be rolled back by the session owner.
The correct approach is not to perform the action in the trigger. It is to queue the action to be executed when the transaction is committed.
For example, the trigger is on the PRODUCTS table. When a new product is added, a notification needs to be send to customers that have selected to be informed of new product releases.
The first step is to write a package that performs this notification. The procedure that drives the notification processing, gets a product identifier as input and does the checks and notification.
After this package has been tested, it is implemented indirectly via a trigger on the PRODUCTS table. Instead of the trigger directly calling this package, the trigger needs to queue an action that will execute the notification package when the transaction is committed.
This can be done using DBMS_JOB. In the trigger, a job is submitted to execute that notification package for the current product ID. The job submission is part of the existing transaction. If the transaction is rolled back, so is the job and it is removed from the job queue. If the transaction is committed, the job is also committed to the job queue and executed.
Maybe you are looking for
-
How can I open a subvi when running a vi in an application (executable file)
I have a vi that I converted into an executable file. I would like to run it and at the same time be able to open the front panel of one of its subvis. Does anybody know how to do that? Thanks, Jerome.
-
Automatically mounting ext hard disks on an Airport Xtreme wireless network
In a call to Apple Airport support, I was told that every time I brought up my MacBook Pro running 10.5.2, if I wanted my external disk, which is directly attached to my Airport Extreme router through a USB port, to show on my desktop as an icon, I w
-
Low resolution on photo in iphoto
does anyone know how to overide the low resolution error message i get when trying to purchase a book via Iphoto
-
I am having trouble exporting one file to PDF. I try other indd files and they export prefectly fine. Just this one file. When I export it has the message "background task: Failed to export a PDF" I try couple solution online that I find 1. Disable p
-
My account is saying its disabled even after I've reset my password
My account is saying its disabled even after I've reset my password