Need urgent help to run the PL/SQL function when executing is having IN OUT type of table.
Created under object types.
(1) CREATE OR REPLACE TYPE INVENTORY_ITEM_ID_TAB IN THE TABLE OF THE NUMBER;
--
(2) CREATE OR REPLACE TYPE ITEM_TYPE_REC AS OBJECT (ITEM_ID ISSUE
, ITEM_VALUE VARCHAR2 (4000)
);
--
(3) CREATE OR REPLACE ITEM_TYPE_TAB AS TABLE ITEM_TYPE_REC;
The function code
FUNCTION XXqp_get_pts_model)
p_item_id_tab IN INVENTORY_ITEM_ID_TAB)
RETURN ITEM_TYPE_TAB
IS
l_ITEM_TYPE_TAB ITEM_TYPE_TAB: = ITEM_TYPE_TAB();
ln_org_id NUMBER;
BEGIN
L_ITEM_TYPE_TAB. DELETE;
l_ITEM_TYPE_TAB. EXTEND;
LN_ORG_ID: = FND_PROFILE. VALUE ("QP_ORGANIZATION_ID");
SELECT ITEM_TYPE_REC (EGO. INVENTORY_ITEM_ID,
C_EXT_ATTR10)
LOOSE COLLECTION l_ITEM_TYPE_TAB
To ego_mtl_sy_items_ext_b ego.
ego_fnd_dsc_flx_ctx_ext ag,
fnd_descr_flex_column_usages atr
WHERE ego.attr_group_id = ag.attr_group_id
AND ag.descriptive_flex_context_code = atr.descriptive_flex_context_code
AND ag.application_id = atr.application_id
AND ag.descriptive_flex_context_code = 'XXEGO_PRICE_INFO. '
AND atr.end_user_column_name = 'XXEGO_PLAN_TO_SELL. '
AND IN ego.inventory_item_id
(SELECT
(SELECT inventory_item_id
OF MTL_SYSTEM_ITEMS_B
WHERE segment1 = A.item_name
AND organization_id = ln_org_id
) inventory_item_id
OF geqp_apl_pricelist_sku_tbl A
)
AND ego.organization_id = ln_org_id;
RETURN l_ITEM_TYPE_TAB;
end XXqp_get_pts_mode;
Below the code works fine BUT when calling function in pl/sql dynamic mode it does not underneath.
---------------------------
Labour Code
---------------------------
DECLARE
CURSOR c1 IS SELECT (SELECT inventory_item_id
OF mtl_system_items_b
WHERE segment1 = A.item_name
AND organization_id = 83
) INVENTORY_ITEM_ID
of XXqp_apl_pricelist_sku_tbl;
L_INVENTORY_ITEM_ID_TAB INVENTORY_ITEM_ID_TAB: = INVENTORY_ITEM_ID_TAB();
L_ITEM_TYPE_TAB ITEM_TYPE_TAB: = ITEM_TYPE_TAB();
LV_CHAR VARCHAR2 (1000);
LV_QRY VARCHAR2 (1000);
BEGIN
--
l_inventory_item_id_tab. DELETE;
OPEN c1;
LOOP
C1 FETCH BULK COLLECT INTO L_INVENTORY_ITEM_ID_TAB;
OUTPUT WHEN c1% NOTFOUND;
END LOOP;
CLOSE C1;
SELECT XXQP_APL_ELIG_TCA_DEV_PKG. XXQP_GET_PTS_MODEL (L_INVENTORY_ITEM_ID_TAB)
IN L_ITEM_TYPE_TAB
FROM DUAL;
--
FOR j IN 1.l_ITEM_TYPE_TAB. COUNTY
LOOP
DBMS_OUTPUT. PUT_LINE (L_ITEM_TYPE_TAB (J). ITEM_VALUE);
END LOOP;
END;
---------------------------
Code does not
---------------------------
DECLARE
CURSOR c1 IS SELECT (SELECT inventory_item_id
OF mtl_system_items_b
WHERE segment1 = A.item_name
AND organization_id = 83
) INVENTORY_ITEM_ID
of GEqp_apl_pricelist_sku_tbl;
LV_QRY VARCHAR2 (1500);
L_INVENTORY_ITEM_ID_TAB INVENTORY_ITEM_ID_TAB: = INVENTORY_ITEM_ID_TAB();
l_ITEM_TYPE_TAB ITEM_TYPE_TAB: = ITEM_TYPE_TAB();
BEGIN
l_inventory_item_id_tab. DELETE;
OPEN c1;
LOOP
C1 FETCH BULK COLLECT INTO L_INVENTORY_ITEM_ID_TAB;
OUTPUT WHEN c1% NOTFOUND;
END LOOP;
CLOSE C1;
LV_QRY: = ' START: 1: = XXQP_APL_ELIG_TCA_DEV_PKG. XXQP_GET_PTS_MODEL(:2); END;';
DBMS_OUTPUT. Put_line ('-> lv_qry' |) LV_QRY);
IMMEDIATE EXECUTION in USING LV_QRY IN l_INVENTORY_ITEM_ID_TAB, OUT l_ITEM_TYPE_TAB;
END;
Kindly help me out here in the execution of the function from PL/SQL runtime which is having IN OUT type of table.
Kind regards
Devendra
Wrong code
IMMEDIATE EXECUTION in USING LV_QRY IN l_INVENTORY_ITEM_ID_TAB, OUT l_ITEM_TYPE_TAB ;
When I use the code below, able to perform the function without any error.
EXECUTE LV_QRY IMMEDIATELY WITH THE HELP OF THE L_ITEM_TYPE_TAB, IN L_INVENTORY_ITEM_ID_TAB;
Thank you all for your help in fixing the code.
Tags: Database
Similar Questions
-
Need Urgent help in fixing the defect by Oracle Disqualification
Hi all
I tried to solve a problem in the individual matching in real-time using Oracle Disqualification. I tried many things but still not able to fix it.
The data contained in the customer Hub are as follows:
Type of Dob Firstname Lastname
Customer David Nelson 08/12/201
Dave Nelson 02/03/2014 Affiliate Member
Ordinary member of David Neilson 11/06/1976
07/09/1985 Dave Neilson perspective
If I give the entry as - driving record
Then Dave Nelson
Registration of the candidate are HP as below.
Last name type of DOB
Customer David Nelson 08/12/201
Dave Nelson 02/03/2014 Affiliate Member
Please look over table, name is different but first name matches exactly.
If we give the entry as - driving record
Dave Neilson then
Registration of the candidate are HP as below.
Type of Firstname Lastname DOB
Ordinary member of David Neilson 11/06/1976
07/09/1985 Dave Neilson perspective
We can see above that name is not excactly where name is exaclty.
Our requirement is-
If we give the entry as - driving record
Then Dave Nelson
all the data of CH, having first name (David Dave) and last name(Neilson/Nelson) would come as a potential duplicate.
I tried on different compasrision settting configuration. But without hope, it does not work as expected.
Someone among the Disqualification Oracle expert can help me please currently dificil. Please give me an idea that what comparision configuration will be the two recolds(Nelson/Neilson) duplicate.
Thank you in advance. I am looking for your cooperation the problem.
Kind regards
Goutam Samanta
Hi Eric,.
There was a bug in the v9 documentation which is now corrected. Here you can find the docs of v11:
http://docs.Oracle.com/CD/E48549_01/index.htm
Kind regards
Nick
-
How to run the PL SQL function on click of a button
Hello
I have problem with run SQL PS function on click of a button. I have create a new button and call the function STANJA.insert_into_log_fun1('cc'); "Value of the button application", a Type of Source select button request = 'SQL PL Expression or function.
Problem is that this function is executed at the loading of the page, but not to the click. I don't want to perform this function on loading the page, only when I click the button.
Does anyone have idea how can I solve this problem?
Thank you very much.Alter this process > status > when you press the button > choose the button you want the pcoss to run on.
RAL
-
Need urgent help - what is the problem with my request?
Hello
I am trying to solve a problem with my request... and we tried a lot of things. When I open the report in Word and try to build my model, I can't insert fields from a particular query. He don't develop in the browser field as my other data sets and is not listed as an option in the table Wizard.
There is something weird with the support of the subquery? I have encourted some problems with column aliases (for example, the query just doesn't if you create aliases), that's why I alias in the subquery.
The query runs very well in SQL Developer.
I would really appreciate help with what is a customer demand very urgent
Thank you
Published by: oroborus on January 19, 2010 16:26SELECT b.cb_no as "CB No", b.ir_no as "IR No", b.name as "Arrestee Name", b.fbi_descr as "Type", b.statute_descr as "Description", b.fbi_cd as "FBI Code", c.day as "Arrest Date" FROM building_fact a, ( SELECT DISTINCT t3.arrest_key as arrest_key, t1.cb_no as cb_no, t1.ir_no as ir_no, t1.name as name, t2.fbi_descr as fbi_descr, t2.statute_descr as statute_descr, t2.fbi_cd as fbi_cd FROM compstat_arrests_dim t1, compstat_arrest_charges_dim t2, compstat_arrests_fact t3 WHERE t1.arrest_key = t3.arrest_key AND t2.arrest_charge_key = t3.pri_arrest_charge_key) b, compstat_date_dim_v c, building_dim d, building_incdnt_type_dim e WHERE a.building_key = d.building_key AND a.incident_key = b.arrest_key AND a.date_key = c.date_key AND a.incdnt_type_key = e.incdnt_type_key AND e.incdnt_type_descr = 'ARREST' AND d.address = :p_address AND c.day BETWEEN TO_DATE(:p_date_from,'MM/DD/YYYY') AND TO_DATE(:p_date_to,'MM/DD/YYYY') ORDER BY c.day DESC
I think you have to wait until u get the data and then if not juice insert dummy data and carryon your developmet and say your ETL guy to clear all data and insert when loading
~ Srix
-
Please, I need urgent help. I can not install applications, the site says I have not produced, but I pay every month!
Hi Jose % 20Dieciseis,
I checked your account via email that you used to register on the support Forum, it shows not all subscription registered on your Adobe account.
could be a possibility that you used an e-mail to subscribe to the composition.
If there is no trouble finding that-
Please contact Adobe customer care http://helpx.adobe.com/contact.html
- Remember that you are logged on the page with your Adobe ID.
- Select your product and what you need help with
- Click on the blue box "still need help? Contact us. "
-
Hi, I paid the subscription to muse, received confirmation 7 hours ago, but the subscription is only showing on the site not on the creaitve cloud. I need urgent help for a period
Hi Se80799442,
Adobe trial and purchased applications are same, if you are showing that the trial has expired it would be a mistake to solve this, you can check the link below:
( Make sure you use the same Adobe ID / Email ID that you used to purchase the subscription )
Download the creative application of cloud from here: Download Adobe Creative Cloud apps | Adobe Creative Cloud free trial
Connect and disconnect activate Cloud Creative applications
If it does not help him follow the link below
Adobe Creative Cloud apps back in test mode after 2015 set CC to update
* NOTE: Make sure that your firewall of your computer or security software firewall does not block Adobe, if you are not sure of it then just turn off the firewall for awhile disconnect you and you connect on the creative application of cloud and check.
Let us know if that helps.
-
Unable to open gmail and other google account services. Need urgent help. Firefox version is 29.0.1. Deleted all cache and history + wiped without addons. Urgent help please. Same problem in other browsers ie opera/IE. Other Internet sites without problem.
Personally, I've never had problems with ABP, but questions about ABP would be better answered in the AdBlock Plus forum where there are people more suited to respond as we only deal with technical support from Mozilla (e.. g the Fx of Firefox, Thunderbird, for Android)
-
Dashboard guest - need urgent help
When I want to create guest of dashboard with two guests on the same column, it will not work. I use the variables of presentation for filtering.
Example:
in a command prompt
I use equal to a x 1 presentation variable hire_date, and
also equal to a variable presentation x 2 hire_date,
and then I send you this variables in some report when I filter on column and say x 1 < = hire_date < = x 2.
But this line does not work... may not work if you use a single column and want to equal this column with the two variables of presentation...
I really need urgent help... I right here...When you create the first instance of rapid change (code) fx go hiredate as below
cases where 1 = 1 then hiredate otherwise hiredate end
then assign it to the variable.
Now you can add hiredate again and assign it to another variable.
-
Need urgent help! (combine invites and formula)
Hello
I use Oracle Business Intelligence 10.1.3.3.2 and create reports of responses. I desperately need to combine
Invites and formula on a column.
I need to use guest in my formula on a column.
Need urgent help!You can use the presentation variables to pass the value of the command prompt in the report or any formula in the column.
In the dash prompt, you see an option called 'Set the Variable' where, and you must give a name to the variable. (Say Var_value)
Now, the value of the variable can be referenced simply by using the syntax @{name} {10}. Here '10' being the default is optional you can simply reference using the @{Name} and you value invited past.
Hope this works
Thank you
Prash -
When I run the "@ddl_setup.sql" on a node of the 11gr2rac getting errors
I want to open DDL replicate of the source node, so I run
SQL > @marker_setup
Marker setup script
You will be asked the name of a schema for Oracle GoldenGate database objects.
NOTE: The schema must be created before running this script.
NOTE: Stop all replication DDL before starting this installation.
Enter the Oracle GoldenGate name schema: ogg
Table marker installation script is completed, run the script to check...
Please enter the name of a schema for GoldenGate database objects:
Name of schema setting for OGG
MARKER TABLE
-------------------------------
Ok
SEQUENCE MARKER
-------------------------------
Ok
When I run the "@ddl_setup.sql" on a node of the 11gr2rac getting errors
SQL > @ddl_setup.sql
Configure Oracle GoldenGate DDL replication script
Verify that the current user has privileges to install the DDL replication...
You will be asked the name of a schema for Oracle GoldenGate database objects.
NOTE: For a source of Oracle 10 g, the basket of the system must be disabled. For Oracle 11 g and later, it can be activated.
NOTE: The schema must be created before running this script.
NOTE: Stop all replication DDL before starting this installation.
Enter the Oracle GoldenGate name schema: ogg
Working, please wait...
Line to the ddl_setup_spool.txt file
Checking the sessions that hold locks on the tables of metadata Oracle Golden Gate...
Full version.
Using OGG as Oracle GoldenGate scheme a name.
Working, please wait...
Script of DDL replication configuration has completed, run the script to check...
Please enter the name of a schema for GoldenGate database objects:
Name of schema setting for OGG
CLEAR_TRACE STATUS:
Error on line/pos
-------------------- -----------------------------------------------------------------
No error no error
CREATE_TRACE STATUS:
Error on line/pos
-------------------- -----------------------------------------------------------------
No error no error
TRACE_PUT_LINE STATUS:
Error on line/pos
-------------------- -----------------------------------------------------------------
No error no error
INITIAL_SETUP STATUS:
Error on line/pos
-------------------- -----------------------------------------------------------------
No error no error
STATUS OF THE DDLVERSIONSPECIFIC PACKAGE:
Error on line/pos
-------------------- -----------------------------------------------------------------
No error no error
STATUS OF THE DDLREPLICATION PACKAGE:
Error on line/pos
-------------------- -----------------------------------------------------------------
No error no error
DDLREPLICATION STATE OF PACKAGE BODY:
Error on line/pos
-------------------- -----------------------------------------------------------------
1453/9 PL/SQL: statement ignored
1455/23 PL/SQL: ORA-00942: table or view does not exist
1464/9 PL/SQL: statement ignored
1466/23 PL/SQL: ORA-00942: table or view does not exist
1478/9 PL/SQL: statement ignored
1480/23 PL/SQL: ORA-00942: table or view does not exist
1485/9 PL/SQL: statement ignored
1487/23 PL/SQL: ORA-00942: table or view does not exist
1492/9 PL/SQL: statement ignored
1494/23 PL/SQL: ORA-00942: table or view does not exist
1499/9 PL/SQL: statement ignored
Error on line/pos
-------------------- -----------------------------------------------------------------
1501/23 PL/SQL: ORA-00942: table or view does not exist
1581/4 PL/SQL: statement ignored
1582/18-PL/SQL: ORA-00942: table or view does not exist
1584/4 PL/SQL: statement ignored
1585/18-PL/SQL: ORA-00942: table or view does not exist
1600/25 PL/SQL: ORA-00942: table or view does not exist
1600/4 PL/SQL: statement ignored
1602/25 PL/SQL: ORA-00942: table or view does not exist
1602/4 PL/SQL: statement ignored
DDL IGNORE TABLE
-----------------------------------
FAILURE: The Table does not exist
DDL IGNORED THE JOURNAL TABLE
-----------------------------------
FAILURE: The Table does not exist
STATUS OF THE DDLAUX PACKAGE:
Error on line/pos
-------------------- -----------------------------------------------------------------
No error no error
DDLAUX STATE OF PACKAGE BODY:
Error on line/pos
-------------------- -----------------------------------------------------------------
0/0 PL/SQL: analysis of completed Compilation unit
1/21 PLS-00304: impossible to compile a body of 'DDLAUX' without sound
specification of the
1/21 PLS-00905: OGG object. DDLAUX is not valid
SYS. STATUS OF THE DDLCTXINFO PACKAGE:
Error on line/pos
-------------------- -----------------------------------------------------------------
No error no error
SYS. DDLCTXINFO STATE OF PACKAGE BODY:
Error on line/pos
-------------------- -----------------------------------------------------------------
No error no error
DDL HISTORY TABLE
-----------------------------------
FAILURE: The Table does not exist
DDL HISTORY TABLE (1)
-----------------------------------
FAILURE: The Table does not exist
DUMP DOF TABLES
-----------------------------------
FAILURE: The Table does not exist
COLUMNS OF DUMP DDL
-----------------------------------
FAILURE: The Table does not exist
GROUPS OF LOG DUMP DDL
-----------------------------------
FAILURE: The Table does not exist
SCORES OF DUMP DDL
-----------------------------------
FAILURE: The Table does not exist
DDL DUMP KEY PRIMARIES
-----------------------------------
FAILURE: The Table does not exist
SEQUENCE OF the DDL
-----------------------------------
FAILURE: The sequence does not exist
GGS_TEMP_COLS
-----------------------------------
FAILURE: The Table does not exist
GGS_TEMP_UK
-----------------------------------
FAILURE: The Table does not exist
STATE OF THE DDL TRIGGER CODE:
Error on line/pos
-------------------- -----------------------------------------------------------------
126/9 PL/SQL: statement ignored
128/23 PL/SQL: ORA-00942: table or view does not exist
133/21 PL/SQL: ORA-02289: sequence does not exist
133/5 PL/SQL: statement ignored
657/14 PLS-00905: OGG object. DDLAUX is not valid
657/5 PL/SQL: statement ignored
919/25 PL/SQL: ORA-00942: table or view does not exist
919/4 PL/SQL: statement ignored
DDL TRIGGER SYSTEM STATUS
-----------------------------------
Ok
STATUS OF RACE DDL TRIGGER
----------------------------------------------------------------------
ACTIVE
OF "OGG". "" GGS_SETUP ".
*
ERROR on line 2:
ORA-00942: table or view does not exist
OF "OGG". "" GGS_SETUP ".
*
ERROR on line 2:
ORA-00942: table or view does not exist
OF "OGG". "" GGS_SETUP ".
*
ERROR on line 2:
ORA-00942: table or view does not exist
LOCATION OF THE TRACE OF DDL FILE
------------------------------------------------------------------------------------------------------------------------
/Home/data/app/Oracle/diag/RDBMS/AppStore/appstore2/trace/ggs_ddl_trace.log
Analyze the status of the installation...
THE STATE OF REPLICATION DDL
------------------------------------------------------------------------------------------------------------------------
ERRORS in the installation of software components of DDL replication (6)
Complete script.
I had been struggling with the same problem for 2 days. You run the script as sysdba, how do you get the error then insufficient? I did my first test GG in February. I've been on 11.2.0.3 + patch January + patch for the integrated capture. It has worked well for me. I went back to my GG test week with 11.2.0.3 + patch of July last and ran into the same problem. The solution for me was the last version of GG. See my previous post for the patch numbers.
Post edited by: ursusca
-
How to call the pl/sql function in application of the ADF
Hi Experts,
I need to call the pl/sql function in application of ADF, I have logic written in my AM
Method:
public String reportStoredProcedure (locationID customerID, number,
String tailNum) {}
CallableStatement st = null;
String v_sanctioned = null;
If (locationID! = null & & customerID! = null & & tailNum! = null) {}
System.out.println (locationID + "" + customerID + "" + tailNum);
Tail string = "TAIL";
String result = "N";
try {}
String stmt =
"start XXWFS_SANCTIONS_PKG. CHECK_SANCTION(:1,:2,:3,:4,:5,:6,:7,:8,:9,:10,:11); end; « ;
St = getDBTransaction () .createCallableStatement (stmt, 0);
st.setNull (1, Types.VARCHAR);
st.setNull (2, Types.NUMERIC);
st.setObject (3, customerID);
st.setNull (4, Types.NUMERIC);
st.setNull (5, Types.NUMERIC);
st.setObject (6, locationID);
st.setNull (7, Types.NUMERIC);
st.setNull (8, Types.NUMERIC);
st.setObject (9, tail);
st.setObject (10, tailNum);
st.setObject (11, result);
St.Execute ();
System.out.println ("v_sanctioned in AM:" + v_sanctioned);
} catch (Exception e) {}
e.printStackTrace ();
return "N";
} {Finally
If (st! = null)
try {}
St.Close ();
} catch (Exception e1) {}
E1. PrintStackTrace();
return "N";
}
}
} else {}
System.out.println ("v_sanctioned is null");
v_sanctioned = "N";
}
Return v_sanctioned;
}
Error:
java.sql.SQLException: ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in the call to 'CHECK_SANCTION '.
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:206)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1035)
at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:191)
at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:950)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1224)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3386)
at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3487)
at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:3858)
at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1374)
at weblogic.jdbc.wrapper.PreparedStatement.execute(PreparedStatement.java:99)
at model.view.CardAMImpl.reportStoredProcedure(CardAMImpl.java:182)
at com.emboss.bean.ReadyToPrint.invokeVSanctioned(ReadyToPrint.java:485)
at com.emboss.bean.ReadyToPrint.PrintingCards(ReadyToPrint.java:434)
at com.emboss.bean.ReadyToPrint.printCards(ReadyToPrint.java:204)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.el.parser.AstValue.invoke(AstValue.java:157)
at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)
at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1259)
at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183)
at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:97)
to oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$ 1.run(ContextSwitchingComponent.java:90)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:309)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:94)
at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:91)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:812)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:292)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:420)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:420)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:94)
at java.security.AccessController.doPrivileged (Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:414)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:159)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.doIt (WebAppServletContext.java:3684)
to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3650)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Can someone help me how to call...Call it in function, not as a procedure you do
try { String stmt = "begin :1 := XXWFS_SANCTIONS_PKG.CHECK_SANCTION(:2,:3,:4,:5,:6,:7,:8,:9,:10,:11,:12); end;"; st = getDBTransaction().createCallableStatement(stmt, 0); st.registerOutParameter(1, Types.VARCHAR); st.setNull(2, Types.VARCHAR); st.setNull(3, Types.NUMERIC); st.setObject(4, customerID); st.setNull(5, Types.NUMERIC); st.setNull(6, Types.NUMERIC); st.setObject(7, locationID); st.setNull(8, Types.NUMERIC); st.setNull(9, Types.NUMERIC); st.setObject(10, tail); st.setObject(11, tailNum); st.setObject(12, result); st.execute();
= st.getString(1); -
APEX shortcuts using the source of the body of the PL/SQL function
Hi all
Recently, I came across the feature of "Shortcuts" in the "Shared components" section of the APEX and thought great, somewhere to set the common/standard items once, then use these several times in different pages of my application.
This seemed to work correctly when you use the 'Source' of "HTML Text" or "HTML text with special characters escaped", but then I wanted to explore the use of the "Body of the PL/SQL function" option to create a more dynamic shortcut/variable on the base.
This is where I came across a particular problem in the APEX (Version 3.2.1.00.10 on GR 11, 2 on Oracle Enterprise Linux). When I set my shortcut, and then perform a reference to my shortcut (using "MY_SHORTCUT") in an area of a page, the value of shortcut is back, but is added with the reference variable (ie. the 'MY_SHORTCUT' chain).
For simplicity, my example looks like this (of course, my real world example is a bit more complicated, but this example produces the same error):
(a) I define my shortcut called "MY_SHORTCUT" and using the body of the PL/SQL function under "Source Type", define my procedure as "htp.p(:USER)."
(b) I then create a new page (basic HTML page), and a new region of the 'type'-> 'HTML Text (with shortcuts).
(c) in the "Source region", I define my shortcut like - "MY_SHORTCUT".
(d) I apply changes and then run the page.
I'll be back will be name of the current user with "MY_SHORTCUT" appended/added immediately after the user name - for example. the string:-' BRAD «MY_SHORTCUT»»
Question is - how to stop the shortcut/reference text "MY_SHORTCUT" to be added to the variable you want to see the and thereafter on your page? I am just wanting the variable, NOT the reference for the shortcut. I do something wrong using the HTP package, and if yes, what should I use?
If "MY_SHORTCUT" is defined as "HTML text with special characters escaped" (where I can refer to elements of application using the syntax '& USER.') so that everything works correctly. My reason for using the PL/SQL is to generate a more dynamic output variable, based on elements of application throughout the entire application - and of course the use of shortcuts to minimize coding and duplication.
Thanks in advance,
BradHello
The body of the PL/SQL function must RETURN a value.
Try:
RETURN :APP_USER;
Andy
-
Now I have to type it again!
Trying to activate 6 Lightroom on a machine to activate it on another. Not to be activated in the menu help - certainly not the way to do when I connect. I'm really bored with trying to stick with adobe products...
Oh the adobe, what happened to you?...
Click Help > "logout".
-
Possible bug - PLS-00372 creating BODY calculation of the PL/SQL FUNCTION
3.2 on Oracle APEX: 10 x e
I was creating a calculation for a page element by using the type 'BODY of the PL/SQL FUNCTION '. Step by step in the wizard when I entered my code block, I received the error PLS-00372. Here is the code:
DECLARE
l_return person_v.full_name%TYPE: = 'UNKNOWN ';
BEGIN
SELECT full_name
IN l_return
OF person_v
WHERE party_id =: P230_CONTACTED_PARTY_ID;
RETURN l_return;
EXCEPTION
WHEN NO_DATA_FOUND THEN
RETURN l_return;
END;
If I change my name of the variable to another thing that l_return the error disappears. Later, I can't change the name of the variable in l_return and I do not get the error if it seems to be the validation happening on just this page of the wizard.Greg - it's because of a quirk in the validation, like imagine you. Workaround is to put a space between return characters and the terminal semi-colon, for example:
RETURN l_return;
Scott
-
Need urgent help with the startup of the database
Hi all
I use oracle 10g on 32 bits of windower server.
I try to start my database today and it gives me error, and that's my production database.
I need very urgent help you. (I have no rman backup, and data are not n6cessoires so, since it is the practice of the student).
Kind regards.SQL> startup open ORACLE instance started. Total System Global Area 524288000 bytes Fixed Size 790180 bytes Variable Size 250343772 bytes Database Buffers 272629760 bytes Redo Buffers 524288 bytes Database mounted. ORA-01110: data file 34: 'G:\ORACLE\DATAFILES_ACADEMY\ACADEMY' ORA-01115: IO error reading block from file 34 (block # 1) ORA-27070: async read/write failed OSD-04016: Error queuing an asynchronous I/O request. O/S-Error: (OS 23) Data error (cyclic redundancy check).
Maahjoor wrote:
Hi dear,I need further assistance on your side, I restarted the server, but the same problem.
as there is a way to drop and re-create a system tablespace? given that the 34 file belong to the tablesapce system.concerning
N °
So just create a new database. Who will have every ten minutes. And to say that your students to create new storage spaces. Who will be the two minutes.
Maybe you are looking for
-
I just upgraded to V 10.11.6 and the ability to drag and drop a web address of Safari on the desktop, stop working.
-
How can I change the shema for the file name used during the recording of emails?
By default, it is something like "subject - < address > - YYYY-MM-DD hhmm.eml".I would like to have something like "YYYY-MM-DD hhmm - < address > - subject.eml", so it can be sorted by 'right' of the file Explorer.Can't find anything in all: config o
-
F4 function key does not work does not in Excel 2010
I have a HP Pavilion series g - Windows 7-64 bit The F4 function key does not work in (2010 excel 64-bit). Any suggestions? ch1616
-
HP ProBook s 4530: problem on Windows 7 x 64 charges drivers install on HP Probook 4530 s
Hello I installed WIndows 7 x 64 fresh on my laptop (not on the recovery disc). After installing, I ran driver following HP package files, I already had on my laptop. sp53796 and sp56282. My audio and video drivers are installed ok. But I get alw
-
How pan in AutoCad with a Microsoft Wireless Mouse 5000
I'll try to find how to turn on panoramic in AutoCAD by holding down the wheel with a Microsoft Wireless Mouse 5000