setting report parameters fails for the report that runs the stored procedure in QMR FDM 2.1.1
Hello
Can someone help us please on this issue we have; If a solution is already available somewhere on the forum please link me to it.
Please see our situation;
The script below was part of the customization of a colleague to a script of Oracle FDM ("AftFileImport").
There are no screenshots at this stage that came back to us with a temporary workaround.
More detailed description:
We built a custom report of FDM ("FSBValidationErrorsforAllLocations") that accepts two parameters (CatKey, period) and which calls a procedure stored in SQL Server with the same two parameters. FDM SQL statement of the report is:
RUN FSBValidationErrorsforAllLocations ' ~ time ~', ~ Cat Key ~
It works through the User Interface.
When you try to put the two settings by customizing the event Oracle 'AftFileImport'script, the report fails. Below the part of the code in the 'AftFileImport', where we tried to fill values:
- objReport.mParametersClear
- objReport.mParametersAddNew "CatKey", RES. PstrCat
- objReport.mParametersAddNew 'Period', RES. PstrPer
We must understand why the way above to the definition of the parameters does not work with stored procedures, as seems to be the only documented way Oracle of setting parameters.
Please let me know if that's enough.
Thank you in advance.
Hello
which is the error when you run the script?
- objReport.mParametersAddNew "Cat Key", RES. PstrCat
Try again with the white space as it is how you named your parameter in the report definition, didn t you?
Also try to use the built like the following examples:
objRP.mParametersClear | ||||
objRP.mParametersAddNew 'Period', CDate (dtePeriod) | ||||
objRP.mParametersAddNew 'Loc', CLng (lngLocation) | ||||
objRP.mParametersAddNew 'CatKey", CLng (lngCatKey) | ||||
objRP.mParametersAddNew "TargAcct", CStr (strAutoMapAcct) |
Concerning
Tags: Business Intelligence
Similar Questions
-
Maximum number of parameters sent to the stored procedure
I have a web form where I insert data in Oracle. There are at least 20 fields on the form. For the INSERT, I want to use the stored procedure. But in this case for the section of the VALUES in the INSERT statement, I need to send that many - in this case 20 settings. Is it normal for a procedure to receive 20 parameters? If this isn't the case, then should how I follow to do? I know that technically there is only no problem but isn't normal programming or database managementwise? I think it's the basic thing any developer web do it all the time.Is it normal for a procedure to receive 20 parameters?
Sure. It is very good.
But what is normal programming or database managementwise
If you need to insert values for 20 fields then normal.
-
Passing an array as a parameter of java (java controls) for the stored procedure
Hello
I use java controls (BEA Weblogic Workshop 8.1) to call a stored procedure and send an array as a parameter to the stored procedure of java. The following code throws an exception 'Fail to convert the internal representation.
Java code
import com.bea.control.DatabaseControl.SQLParameter;
Here I create the java
int [] = {12,13,14} javaArray.
The code below is used to create the table from sql to oracle for the procedure
SQLParameter [] params = new SQLParameter [1];
Object obj0 = javaArray;
params [0] = new SQLParameter (obj0, oracle.jdbc.OracleTypes.ARRAY, SQLParameter.IN);
the code below calls the myFunc in file OJDBCtrl.jcx
String success = dbControl.testFunc (params);
OJDBCtrl.jcx
/**
* @jc: = sql statement ' call CMNT_TST_PROC (?)).
*/
String Myfunc (SQLParameter [] param);
The stored procedure that is used:
SL_tab IS NUMBER TABLE INDEX BY PLS_INTEGER;
Procedure cmnt_tst_proc (cmnt_tst sl_tab);
Procedure cmnt_tst_proc (cmnt_tst sl_tab) is
BEGIN
dbms_output.put_line ('Hello');
END;
I'm getting the following exception
Failure = Java.Sql.SqlException: Internal failure to convert the representation: [I@438af4 [ServiceException] >]
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:162)
at oracle.jdbc.driver.DatabaseError.check_error(DatabaseError.java:861)
at oracle.sql.ARRAY.toARRAY(ARRAY.java:210)
at oracle.jdbc.driver.OraclePreparedStatement.setObjectCritical(OraclePreparedStatement.java:7768)
at oracle.jdbc.driver.OraclePreparedStatement.setObjectInternal(OraclePreparedStatement.java:7449)
at oracle.jdbc.driver.OraclePreparedStatement.setObjectInternal(OraclePreparedStatement.java:7837)
at oracle.jdbc.driver.OracleCallableStatement.setObject(OracleCallableStatement.java:4587)
at weblogic.jdbc.wrapper.PreparedStatement.setObject(PreparedStatement.java:244)
at com.bea.wlw.runtime.core.control.DatabaseControlImpl._setParameter(DatabaseControlImpl.jcs:1886)
at com.bea.wlw.runtime.core.control.DatabaseControlImpl.getStatement_v2(DatabaseControlImpl.jcs:1732)
at com.bea.wlw.runtime.core.control.DatabaseControlImpl.invoke(DatabaseControlImpl.jcs:2591)
at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:377)
at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:433)
at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:406)
at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:249)
at com.bea.wlw.runtime.jcs.container.JcsContainer.invoke(JcsContainer.java:85)
at com.bea.wlw.runtime.core.bean.BaseContainerBean.invokeBase(BaseContainerBean.java:224)
at com.bea.wlw.runtime.core.bean.SLSBContainerBean.invoke(SLSBContainerBean.java:109)
at com.bea.wlwgen.StatelessContainer_ly05hg_ELOImpl.invoke(StatelessContainer_ly05hg_ELOImpl.java:153)
...
Can you please let me know, what am I doing wrong and how can I pass an array to a procedure/function using java controls.
Any help will be much appreciated.
Published by: user12671762 on February 24, 2010 05:03
Published by: user9211663 on February 24, 2010 21:04Try using an oracle.sql.ARRAY with a nested table or varray instead of a table index. Create the type SQL and Java object as follows
SQL> create type sl_tab as varray(3) of integer; Java: ArrayDescriptor ad = ArrayDescriptor.createDescriptor ("
.SL_TAB", java.sql.Connection); Object elements = new Object[3]; elements[0] = new Integer(12); elements[1] = new Integer(13); elements[2] = new Integer(14); oracle.sql.ARRAY array = new oracle.sql.ARRAY(ad, oracle.jdbc.OracleTypes.ARRAY, elements); SQLParameter[] params = new SQLParameter[1]; params[0] = new SQLParameter(array, oracle.jdbc.OracleTypes.ARRAY, SQLParameter.IN); String succ = dbControl.testFunc(params); I don't think that you can pass an array of Java, this is why you have more success using an oracle.sql.ARRAY with a SQL varray. -Michael-
-
Required privilege to view the source code for the stored procedure
RDBMS Version: 11.2.0.4
Platform: Oracle Linux 6.4
In our Production database, we have an application schema named CRM_PROD. And we have a read-only user named steve in this PB.
Steve must be able to view the source code of all stored procedures, functions and packages in the CRM_PROD schema. But steve shouldn't be able to run these procedures, functions and packages in the CRM_PROD schema. What a privilege should give Steve for this?
SYS is owner of the dictionary of data and tables for the source code. See configuration of privilege and role authorization - 11 g Release 2 (11.2).
Select it no matter what dictionary grant will give user (read) access to the full data dictionary.
-
In a table - looping through the rows and the stored procedure call
APEX version: 3.2.0.00.27
Hello
I searched the forum and tried a few things but could not make it work.
I have a tabular presentation, developed with the help of the ATD ( )
What I'm trying to do now:
-After submit and validations, loop through all the lines and
-call a stored procedure passing 3 parameters obtained from each of the lines on the form of tables. This procedure will be an update of a database table.
On the forum, I found that I could do the loop "* FOR i IN 1..." APEX_APPLICATION.g_f03. "LOOP COUNT *" syntax.
Only for testing purposes, I tried just to view information with the following (On Load - after a footer) process (example of Denes Kubicek == > http://deneskubicek.blogspot.com/2009/05/execute-javascript-throuhg-plsql.html):
The foregoing would give me a ' * ORA-01403: no data found * ' message. I tried through various variants of APEX_APPLICATION.g_f0* #*, but still can't get anything to display correctly. In commenting on all the lines referring to APEX_APPLICATION.g_f0x above, the date would be are they displayed fine.declare v_today varchar2 (200); begin -- :P40_test := APEX_APPLICATION.g_f03(1); -- :P40_test2 := APEX_APPLICATION.g_f04.COUNT; :P40_test2 := 100; v_today := to_char (sysdate, 'dd.mm.yyyy'); --FOR i IN 1.. APEX_APPLICATION.g_f03.COUNT LOOP :P40_test := APEX_APPLICATION.g_f02(2); HTP.p ('<script type="text/javascript">'); HTP.p ( 'alert(''Today is ' || v_today -- || APEX_APPLICATION.g_f04(APEX_APPLICATION.g_f03(i)) || '.\n' || 'end!'');' ); HTP.p ('</script>'); -- :P40_test := APEX_APPLICATION.g_f02(APEX_APPLICATION.g_f02(i)); --END LOOP; end;
I tried uncomment the FOR... LOOP and play with the code (defining the process runs "On submit - after calculations" and Validations), I got was a ' * ORA-06502: PL/SQL: digital error or value: character conversion number error * "message.
Here is the script of the form in a table:
Regarding the parameters for the stored procedure, it would the MSLINK, VALVE_NUMBER and the VALVES_STYLE. FEATURE.select "V"."MSLINK", -- hidden (number) "V"."INSTALLATION_DATE", -- editable date picker "V"."MANUFACTURER_INDICATOR", -- editable (cascading LOV -- text) "V"."MODEL_INDICATOR", -- editable (cascading LOV -- text) "V"."DIAMETER_INDICATOR", -- editable (LOV -- number) "V"."PURPOSE_INDICATOR", -- editable (LOV -- text) "V"."VALVE_NUMBER", -- shown but not editable -- number "V"."MODIFY_DATE", -- shown but not editable "V"."MODIFY_USER", -- shown but not editable "V"."VALVES_STYLE"."FEATURE" -- shown but not editable -- number from "#OWNER#"."VALVES" "V" Where "V"."PROJECT_ID" = :P1_PROJECT_NUMBER AND "V"."VALVES_DFLAG" = 0
Help, please!
(Sorry for the long post).
Thank you
TanHi, Tan,
I have not seen that type of object - I've only used custom types for purposes of test years ago and have never used their within Apex!
One possibility is that the value of checksum being is based on all of the content of these fields, rather than only the part of the FEATURE. If there are other parts of the object, you could include those items as well.
Otherwise, as you f01 KP for a record, you will need to retrieve the values of the FUNCTION in your PL/SQL code directly from the table (because the user cannot modify these fields, you can be sure that the values in the table will be still valid).
Andy
-
Use the stored procedure to create the data model for the bi publisher report
Hi all
Can we use stored procedure to create the data model for BI Publisher reports? I did find an example by using the stored procedure to complete the data model in the bi publisher report.
Thank you
ViratCheck out these links
BI publisher to use the stored procedure
Re: Stored procedures and dynamic columns
Re: Is it possible to use stored procedures in BI Publisher GUI?
Re: PL/SQL stored w / model XML?If brand pls help
-
Hello
I am trying to install OSB in a different domain. I already have a suite of soa running.
This is the directory structure
Middleware/user_projects/domains
(a) soa_domain
(b) osb_domain
Who, from the administration server for the BSO, I get error below.
Error: -.
< server failed. Reason: Last forest resource [JTAExceptions:119002] failed during initialization. The server cannot start unless all configured logging last resource (LLRs) initialize. Fault reason:
javax.transaction.SystemException: weblogic.transaction.loggingresource.LoggingResourceException: java.sql.SQLException: check table JDBC LLR, failed for the table "WL_LLR_ADMINSERVER", line ' JDBC LLR field / / server ' record had an unexpected value ' soa_domain / / AdminServer' expected ' osb_domain / / AdminServer'* ONLY the domain and the server that creates a table original LLR can access *.
I see the solution in https://blogs.oracle.com/epc/entry/technical_table_verify_failed_for but I have no doubt here.
When I run
Select RECORDSTR in the WL_LLR_ADMINSERVER where
XIDSTR = "field of LLR JDBC / / server ';"
I get the result like-> soa_domain / / AdminServer
If I change it to osb_domain / / this AdminServer, will affect my soa_domain server... ? Please advice
Published by: user10720442 on December 11, 2012 11:54Hello
There are two possible solutions to this problem:
Solution 1:
To solve this problem reconfigures the basic information database of Point differently for each domain, if you have more than one domain. That, to change the port of the database and the name below two files in the field
In the setDomainEnv.cmd (or .sh) file inside directory change DOMAIN_HOME/bin Point base port number and the name of the comic.
Set POINTBASE_PORT = 9094
Set POINTBASE_DBNAME = weblogic_eval2JDBC:PointBase:server://localhost:9094 / weblogic_eval2
In the file wlsbjmsrpDataSource - jdbc.xml inside change DOMAIN_HOME/config/jdbc directory under entries with port of pointbase database updated and the name (this will be in two places in the file).
Solution 2:
If the domain name has been changed and do not want to change the database properties, then an update to the WL_LLR_ADMINSERVER table is possible:
that is to say:
Update SCHEMA_SAMPLE. Set RECORDSTR = WL_LLR_ADMINSERVER ' base_domain / / AdminServer' where XIDSTR = "JDBC LLR field / / server ';"Kind regards
Kal -
Hello
How can I force DAC to run always full load for one of the task that executes the stored procedure? And remaining tasks load incremental in the second and sub sequent executions.
Thank you
Jay.
Hi if your task is running an informatica mapping you can set your DAC task to run the full mapping for incremental and full loads, so tab task just point to the mapping.
Hope that helps.
Thank you
-
I'm testing paths to upgrade to vSphere ESX 3.5 update 4 on an IBM BladeCenter with 2 hs21 xm Server blades; I am going through several problems, and the last is the one mentioned in the subject of this thread.
In this scenario, I've upgraded successfully vCenter then I took all the virtual machines on a single host esx 3.5, I removed the other host in the cluster, and then vcenter, then I did a new install of vSphere, I reconnected it the host to the cluster then I did all the procedure with the second node. In the end, I have two installed vSphere hosts but I had to disable my cluster HA always been, I get this error when I try to configure HA agents on the hosts, but I must say that the DRS ok works.
In the release notes for vSphere, in the section known issues, I can read:
"Upgrade of an ESX/ESXi 3.x host an ESX/ESXi 4.0 host results in a successful upgrade, but VMware HA reconfiguration may fail.
When using vCenter Update Manager 4.0 to upgrade an ESX/ESXi 3.x ESX/ESXi 4.0 host, if the host part of an AP or DRS cluster, the update succeeds and the host is reconnected to vCenter Server, but HA reconfiguration may fail. The following error message in the summary of the host tab: HA agent has an error: cmd addnode failed for the main node: internal error of AAM - agent could not be started. : HA unknown error.
Solution: manually reconfigure HA by right-clicking on the host and select Reconfigure for VMware HA. »
The problem is that of workaround does not work for me, so I was wondering if someone, is once again able to help me with this problem.
Thanks in advance for your support.
Hi Caddo,
I had the same problem with one of my hosts. It was resolved after disabling HA on the cluster and enabling again.
Mirko
-
Set a working folder for the database root $
Customers need to set a working folder for the $ (root) of each project?
We have created a database of RSC corresponding to every aid project and now have the following Windows folder and the database structure:
(database) Path: $/ HelpProjectOne
Local path: D:\Projects\HelpProjectOne
(database) Path: $/ HelpProjectTwo
Local path: D:\Projects\HelpProjectTwo
(database) Path: $/ HelpProjectThree
Local path: D:\Projects\HelpProjectThree
My question is, when I open a database in the RSC Explorer, click on the ' $' at the top of the tree so that this option is selected, and then click file> Set working folder..., is it a good idea that the path field (database) is set to $ and the Local path field is empty?
Or, I need to define the scope of Local path to D:\Projects or some other setting?
In your configuration, you need to set the local path, for example, D:\Projects\.
The contents of the folder to the datbase $- i.e. the folder HelpProjectOne - will be copied in the designated directory.
-Dirk Bock
-
Creating classic report to the stored procedure.
How can we create a report based on a stored procedure out parameter.
Can someone please help.
Thank you
Nani.
Nani4850 wrote:
Out parameter is a multi-level object type.
I found a way to sort of basis a report on the parameter OUT procedure. The approach is:
1. call the procedure in a process before PL/SQL areas, convert the object returned in an XML document and store in a collection XMLType column:
declare k_rate_query varchar2(255) := 'RATE_QUERY'; l_rate_type_code number; l_rate_query rate_rec; l_xml xmltype; l_seq_id number; begin l_rate_type_code := to_number(:p1_rate_type_code); api_pkg.rate_query(l_rate_type_code, l_rate_query); l_xml := xmltype.createXML(l_rate_query); if not apex_collection.collection_exists(k_rate_query) then apex_collection.create_collection(k_rate_query); end if; select seq_id into l_seq_id from apex_collections where collection_name = k_rate_query and n001 = l_rate_type_code; apex_collection.update_member_attribute(k_rate_query, l_seq_id, 1, l_xml); exception when no_data_found then apex_collection.add_member( p_collection_name => k_rate_query , p_n001 => l_rate_type_code , p_xmltype001 => l_xml); end;
2. use a SQL/XML query on the XML collection in the region report source:
select rq.* from apex_collections ac , xmltable( '/RATE_REC/RATE_TBL/RATE_REC_TYPE' passing ac.xmltype001 columns action_code varchar2(20) path 'ACTION_CODE' , rate_key number path 'RATE_KEY' , rate_type_code varchar2(5) path 'RATE_TYPE_CODE' , program_key varchar2(12) path 'PROGRAM_KEY' , rate number(8,5) path 'RATE' , effective_date date path 'EFFECTIVE_DATE' , current_yn varchar2(1) path 'CURRENT_YN' , non_current_dt date path 'NON_CURRENT_DT' , non_current_by_id varchar2(4) path 'NON_CURRENT_BY_ID' , non_current_reason varchar2(400) path 'NON_CURRENT_REASON') rq where ac.collection_name = 'RATE_QUERY' and ac.n001 = to_number(:p1_rate_type_code)
-
Control budget F150 The GL has failed for the mode of control of funds
Dear all
What is the solution for these funds is not the code.
Thank you
F150 is synonymous with
Budgetary control GL failed for the mode of control of funds
You should check if you have enough funds in the GL.
Thank you
Gene
-
How to set a default email for the reader client?
How to set a default email for the reader client?
[Left the forum Cloud/Installer generic for program specific forum... MOD]
In the section in the preferences e-mail accounts.
-
communication error with the server. callback failed for the data entry page
Hello
We have recently applied the corrective update EMP on EMP 11.1.2.0 111.2.1.
We have following the architecture,
database server: sql server 2005
Server Foundation (OS = windows server 2008): HSS, EPMA, Manager Calc, EAS, EIS, provider's server, planning
Essbase Server (OS = windows server 2008): essbase
After you apply the patching EMP 11.1.2.1, we apply after Electrodes for IE 9 compactibility i.e EMP 11.1.2.1.600 patches
1. patch 14119724 (Workspace)
2 14142678 patch (Shared services)
3 patch 14224664 (EPMA)
4 patch 14464109 (planning)
After you apply above patches, all users get error when opening planning web form through the workspace of all client computer.
"* error communication with the server. callback failed for the data entry page. "
When restore us only planning patch 14464109 , issue of "communication error with the server. callback failed for the data entry page "get resolved for all users, but failed for a single user IE"user xyz" "
the user xyz have OS = windows 7 and IE 8
user xyz can take foundation server RDP can open any form of planning successfully in vain get when doing the basic machine.
I have following question:
1. Why do we get error "error communicating with the server. callback failed for the data entry page"after you apply the fixes to IE9
2. after cancellation all patches or planning one patch, why the user xyz always get the error but not other users
Thanks in advance
Published by: 922755 on June 7, 2013 16:08It might be useful to have a read of the following doc Oracle Support - "error:"error Communication with the server. " "Callback failed for the data entry page" when you open a Web form of planning with the members of the Type of text [ID 1392689.1].
And then this question should be resolved en.600
See you soon
John
http://John-Goodwin.blogspot.com/ -
Call the stored procedure, and bind parameters by name
Hello
I use the Oracle ODBC 12 c driver to pass values from one Interface to our database Oracle 11.2. The Interface software collects data from modbus protocoll and calls a stored procedure. Right now my syntax to call the stored procedure looks like this:
CALL procedure-name ('STRING', 'Timestamp as String', numValue1);
It works very well. Now, I have to add a default setting to my procedure. To stay flexible to make other changes, I want to call the procedure and bind the parameters by name. Release 10.2.0.1.0 ISC ODBC Notes:
Added support for the named parameter, binding the parameters by name. ODBC Oracle driver now allows the application to specify the parameters of a stored procedure by name, in the procedure call. Named parameters are to be used in calls to stored procedures and should not be used in other SQL statements.
So, it shouldn't be a problem to use named notation, but how do I do this in ODBC? I tried like this, but oracle returns an ora-00936 error of missing expression:
call procedure-name (paramName1 = > 'STRING',= paramName2 > 'Timestamp as String',paramName3 = > numValue1).
Thank you for your help.
Finally, I was able to find the error. The syntax of the statement was very good. The problem was caused by another declaration that I edited before and the error has not attracted Attention immediately.
Thanks for reading and looking for an answer.
Maybe you are looking for
-
Use the center mouse wheel to open the link in a new tab
A widely used feature disappeared. By clicking on a link with the center of the mouse wheel, it would open this link in a new tab. Now it no longer works. Please, how can it be restored?
-
Hello, pls my phone tells me to enter an administrator password, every time I want to access the configuration of the bios... pls help kindly, have entered a wrong password three times and this is the code it shows... 59704169.thanks
-
I would like to be able to read at least 4 million lines of data total 32 million lines at a time. The TDMS file has given for 2 channels and no time data. If I can convert TDMS files in one or more files LVM, I can read large files of LVM using the
-
HP ENVY23: PROBLEM WITH A WIRELESS ADAPTER
Hello I BOUGHT THIS REFURBISHED DESKTOP PC. ITS BEEN WORKING REALLY WELL FOR PAST 1 YEAR, BUT SUDDENLY, NOW HE BEGAN TO HAVE PROBLEMS WITH A WIRELESS ADAPTER THAT IS RALINK ADAPTER. PROBLEM IS THAT ADAPTER WILL SUDDENLY STOP WORKING. SO I HAVE TO GO
-
Could not connect in Windows 8, but connected start in desktop mode
I purchased this new HP laptop for Christmas, came home and went through the set up process, I did not create a microsoft account only then, I just jumped to implement later, well, I just create a new account of microsoft and went through the verific