Oracle 11g function based columns - deterministic function or not?
Hi all, here is my situation:
I added function based column in my table and created index on this column.
I need this since in my ADF application, I need to be able to sort by this column.
The function (that this column is based on) I had to make it DETERMINISTIC (otherwise it can not be done).
So far so good.
My function is accepting 3 parameters (all NUMBERs) which are practically 3 primary keys from 3 different tables. Based on which key is present, my function is returning "Code" - column (VARCHAR2) from any of those 3 tables. And for sure "Code" can change in any of those table.
So my function is not really a DETERMINISTIC function.
-Should I update the function and make it nondeterministic? Will it still work? Will the index be valid if the function is nondeterministic?
-What is the consequence if it is not deterministic?
-If I leave i as deterministic - somehow the result is cached. Will my function always going to be re-executed for each row (having on mind it is not really deterministic)?
-Is there better solution than (function based column and index on it) in my case?
Thanks, Vesna
OK, Damorgan, here are some more details:
Versin Numbers:
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
PL/SQL Release 11.1.0.7.0 - Production
TABLE:
alter table MY_VIRTUAL_COLUMN add dispatch_customer_name GENERATED ALWAYS AS (get_dispatch_customer_name(disloc_id, cus_id, cusloc_id)) VIRTUAL;
create index dispatch_customer_name_i on MY_VIRTUAL_COLUMN(dispatch_customer_name);FUNCTION:
CREATE OR REPLACE FUNCTION get_dispatch_customer_name(p_disloc_id NUMBER,
p_cus_id NUMBER,
p_cusloc_id NUMBER)
RETURN VARCHAR2 DETERMINISTIC IS
v_result VARCHAR2(1000) := NULL;
BEGIN
IF p_cus_id IS NULL THEN
IF p_cusloc_id IS NULL THEN
SELECT d.name
INTO v_result
FROM dispatch_locations d
WHERE d.disloc_id = p_disloc_id;
ELSE
SELECT l.name || ' (' || l.code || ')'
INTO v_result
FROM customer_locations l
WHERE l.cusloc_id = p_cusloc_id;
END IF;
ELSE
SELECT s.name || ' (' || s.code || ')'
INTO v_result
FROM customers s
WHERE s.cus_id = p_cus_id;
END IF;
RETURN v_result;
EXCEPTION
WHEN OTHERS THEN
RETURN NULL;
END get_dispatch_customer_name;Hope this will help
Thanks, Vesna
Similar Messages
-
Oracle 11g bug for column ambigously defined error
I have below format query running on Oracle 10g without any issues
select col1
from (select col1
from (select 'A' col1
from dual)
) v1
inner join (select col1 as col2
from (select 'A' col1
from dual)
) v2
on (v1.col1=v2.col2);
When I run the exact same query on Oracle 11g I get column ambiguously defined error. But when I change the query to as below it works fine on 11g
select v1.col1
from (select col1
from (select 'A' col1
from dual)
) v1
inner join (select col1 as col2
from (select 'A' col1
from dual)
) v2
on (v1.col1=v2.col2);
Is it because 11g ignores column alias in my inner queries.I'd tend to agree that this seems to be a bug in 11.1.0.7 (at least, that's the version I'm running it in)
It's not even that Oracle doesn't know about the column aliases, you can remove the aliases in the ON without a problem, i.e.
SELECT v1.col1
FROM
(SELECT col1 FROM
(SELECT 'A' col1 FROM dual
) v1
INNER JOIN
(SELECT col1 AS col2 FROM
(SELECT 'A' col1 FROM dual
) v2
ON (col1=col2);works fine. Using the old join syntax also seems to work fine
SELECT col1
FROM
(SELECT col1 FROM
(SELECT 'A' col1 FROM dual
) v1,
(SELECT col1 AS col2 FROM
(SELECT 'A' col1 FROM dual
) v2
WHERE (col1=col2);So it appears that something in the SQL 99 parser is broken. Have you logged a bug in Metalink?
Justin -
Oracle dequeue function is not working through different user.
I created an Oracle queue, an anonymous block to enqueue messages in it and a dequeue function. when i use the dequeue function with the same user i've created queue its working fine, but when i am executing same function with different user it is returning null.
Please see the code i've used ----
-- Create q_table
begin
DBMS_AQADM.create_queue_table (
queue_table => 'QUEUE_QTAB' , queue_payload_type => 'SYS.XMLTYPE'
,multiple_consumers => TRUE, message_grouping => DBMS_AQADM.none);
end;
--Create queue:-
begin
DBMS_AQADM.create_queue (
queue_name => 'QUEUE_Q', queue_table => 'QUEUE_QTAB');
end;
-- Start queue:-
begin
dbms_aqadm.start_queue (
queue_name => 'QUEUE_Q');
end;
--Add subscriber:-
begin
DBMS_AQADM.add_subscriber (
queue_name => 'QUEUE_Q',
subscriber => sys.aq$_agent ('B_USER', NULL, NULL));
end;
GRANT SELECT ON A_USER.QUEUE_QTAB TO DBMONITOR;
GRANT SELECT ON A_USER.QUEUE_QTAB TO IDSCORE;
GRANT SELECT ON A_USER.QUEUE_QTAB TO IDSREAD;
GRANT SELECT ON A_USER.QUEUE_QTAB TO IDS_READ;
-- View Creation:-
CREATE VIEW QUEUE_QTAB _VW
AS
SELECT * FROM QUEUE_QTAB
WHERE Q_NAME = QUEUE_Q';
Grants:-
GRANT SELECT ON A_USER.QUEUE_QTAB _VW TO B_USER;
--Enqueue
DECLARE
enqueue_options dbms_aq.enqueue_options_t;
message_properties dbms_aq.message_properties_t;
message_handle RAW(16);
message XMLTYPE;
BEGIN
message := XMLType('<?xml version="1.0"?><tns:ISO8583-87 xmlns:tns="http://www.tsys.com/prime/online/iso8583"><I000>0120</I000><I002>491693******9989</I002><I003>280000</I003><I004>000000003000</I004><I006>0000091050.23</I006><I007>0406131721</I007><I011>039622</I011><I012>094121</I012><I013>0224</I013><I018>5999</I018><I022>0000</I022><I032>06123496</I032><I033>06198745</I033><I037>123456787012</I037><I038>026446</I038><I039>00</I039><I041>A1234567</I041><I042>CARD ACCEPTER </I042><I043>ACQUIRER NAME CITY NAME UK</I043><I048>1001O</I048><I049>978</I049><I051>826</I051><I056>37120300692340000012300004800456005600</I056><I102>0890220150</I102></tns:ISO8583-87>');
dbms_aq.enqueue(queue_name => 'QUEUE_Q',
enqueue_options => enqueue_options,
message_properties => message_properties,
payload => message,
msgid => message_handle);
COMMIT;
end;
Dequeuing is actually done through two function fn_dequeue function calls fn_dequeue_payment_msg, both are under different packages
fn_dequeue---
FUNCTION fn_dequeue (p_consumer_i IN VARCHAR2 DEFAULT USER)
RETURN CLOB
AS
v_msg xmltype;
v_msg_found BOOLEAN := FALSE;
v_return clob;
c_procedure_name constant varchar2 (100) := 'FN_DEQUEUE';
v_locn idsc_globals_pck.styp_locn;
v_q_name_i varchar2(35) := 'QUEUE_Q';
begin
v_locn := '80';
idsc_lib_pck.pr_debug (
p_program_name => c_procedure_name, p_ids_req_id => NULL
,p_locn => v_locn, p_debug_message => 'Function called by ' || USER
v_msg_found :=
idsph_queues_pck.fn_dequeue_payment_msg (
p_q_name_i => v_q_name_i , p_message_o => v_msg, p_consumer_i => p_consumer_i
v_locn := '90';
if v_msg_found then
v_locn := '100';
idsc_lib_pck.pr_debug (
p_program_name => c_procedure_name, p_ids_req_id => NULL
,p_locn => v_locn, p_debug_message => 'Message found'
v_return := v_msg.getstringval ();
end if;
v_locn := '110';
idsc_lib_pck.pr_debug (
p_program_name => c_procedure_name, p_ids_req_id => NULL
,p_locn => v_locn, p_debug_message => 'Returning'
RETURN v_return;
EXCEPTION
WHEN OTHERS THEN
idsc_errors_pck.pr_raise_app_error (
p_proc_name_i => c_procedure_name, p_locn_i => v_locn, p_err_msg_i => SQLERRM
END fn_dequeue_iso8583;
fn_dequeue_payment_msg-----
FUNCTION fn_dequeue_payment_msg (
p_q_name_i IN VARCHAR2
,p_consumer_i IN VARCHAR2 DEFAULT USER
,p_message_o OUT XMLTYPE
RETURN BOOLEAN
IS
v_dequeue_options DBMS_AQ.dequeue_options_t;
v_message_properties DBMS_AQ.message_properties_t;
v_message_handle RAW (16);
v_message XMLTYPE;
e_no_messages exception;
PRAGMA EXCEPTION_INIT (e_no_messages, -25228);
c_procedure_name CONSTANT VARCHAR2 (100) := 'IDSPH_QUEUES_PCK.FN_DEQUEUE_PAYMENT_MESSAGE';
v_locn idsc_globals_pck.styp_locn;
BEGIN
v_locn := '10';
idsc_lib_pck.pr_debug (
p_program_name => c_procedure_name, p_ids_req_id => NULL
,p_locn => v_locn, p_debug_message => 'Setting dequeue options'
v_dequeue_options.wait := dbms_aq.no_wait;
v_locn := '20';
v_dequeue_options.navigation := DBMS_AQ.first_message;
v_locn := '30';
v_dequeue_options.consumer_name := p_consumer_i;
v_locn := '40';
idsc_lib_pck.pr_debug (
p_program_name => c_procedure_name, p_ids_req_id => NULL
,p_locn => v_locn, p_debug_message => 'Dequeuing next message'
idsc_lib_pck.pr_debug (
p_program_name => c_procedure_name, p_ids_req_id => NULL
,p_locn => v_locn, p_debug_message => 'p_consumer_i' || p_consumer_i
DBMS_AQ.dequeue (
queue_name => p_q_name_i, dequeue_options => v_dequeue_options, message_properties => v_message_properties
,payload => v_message, msgid => v_message_handle
v_locn := '50';
idsc_lib_pck.pr_debug (
p_program_name => c_procedure_name, p_ids_req_id => NULL
,p_locn => v_locn, p_debug_message => 'Dequeue successful'
p_message_o := v_message;
RETURN TRUE;
EXCEPTION
WHEN e_no_messages THEN
-- Not an error just no messages currently in queue so return success
v_locn := '160';
idsc_lib_pck.pr_debug (
p_program_name => c_procedure_name, p_ids_req_id => NULL
,p_locn => v_locn, p_debug_message => SQLERRM
RETURN FALSE;
WHEN OTHERS THEN
idsc_errors_pck.pr_raise_app_error (
p_proc_name_i => c_procedure_name, p_locn_i => v_locn, p_err_msg_i => SQLERRM
END fn_dequeue_payment_msg;
fn_dequeue function returns null while executing from B_USER , while same functions works fine for A_USER, please suggestI got the error , we need append schema name where queue is created before assigning it to a variable, this problem is now resolved.
fn_dequeue---
FUNCTION fn_dequeue (p_consumer_i IN VARCHAR2 DEFAULT USER)
RETURN CLOB
AS
v_msg xmltype;
v_msg_found BOOLEAN := FALSE;
v_return clob;
c_procedure_name constant varchar2 (100) := 'FN_DEQUEUE';
v_locn idsc_globals_pck.styp_locn;
v_q_name_i varchar2(35) := 'A_USER.QUEUE_Q';
begin
v_locn := '80';
idsc_lib_pck.pr_debug (
p_program_name => c_procedure_name, p_ids_req_id => NULL
,p_locn => v_locn, p_debug_message => 'Function called by ' || USER -
Which is better to install Oracle 11g database based on ASM or Filesystem
We will install 2 sets of Oracle 11.2.0.3 on Redhat Linix 5.6 and configure Data Guard for them further -- one will be a primary DB server, the other will be a physical standby DB server. The Oracle DB stoage is based on SAN Array Disk with 6TB size. Now there are two options to manage the DB datafiles:
1. Install Oracle ASM
2. Create the tranditional OS filesystem
Which is better? in the past, our 10g data guard environment is not based on Oracle ASM.
Someone think if we adopt the oracle ASM, the shortcomings are :
1. as there is one more instance that will consume more memory and resource.
2. as the ASM file system cannot be shown out on the OS level directly such as "df" command, the disk utilization monitor job will be more difficult. at least it cannot be supervised at OS level.
3. as the DB bshoule be done the daily incremental backup (Mon-Sat) to Local Backup Drive. the bakup job must be done by RMAN rather than user-managed script.
Who can provide some advices? Thanks very much in advance.user5969983 wrote:
We will install 2 sets of Oracle 11.2.0.3 on Redhat Linix 5.6 and configure Data Guard for them further -- one will be a primary DB server, the other will be a physical standby DB server. The Oracle DB stoage is based on SAN Array Disk with 6TB size. Now there are two options to manage the DB datafiles:
1. Install Oracle ASM
2. Create the tranditional OS filesystem
Which is better? in the past, our 10g data guard environment is not based on Oracle ASM. ASM provides a host of new features ito data management, and performance - to the extent that you can rip out the entire existing storage system, replace it with a brand new storage system, without a single second of database downtime.
Someone think if we adopt the oracle ASM, the shortcomings are :
1. as there is one more instance that will consume more memory and resource.Not really relevant on 64bit h/w architecture that removes limitations such a 4GB of addressable memory. On the CPU side... heck, my game PC at home has a 8 core 64bit CPU. Single die and dual core CPUs belong to the distant past.
Arguing that an ASM instance has overheads would be silly. And totally ignores the wide range of real and tangible benefits that ASM provides.
2. as the ASM file system cannot be shown out on the OS level directly such as "df" command, the disk utilization monitor job will be more difficult. at least it cannot be supervised at OS level.That is a A Very Good Thing (tm). Managing database storage from o/s level is flawed in many ways.
3. as the DB bshoule be done the daily incremental backup (Mon-Sat) to Local Backup Drive. the bakup job must be done by RMAN rather than user-managed script.
rman supports ASM fully.
I have stopped using cooked file systems for Oracle - I prefer ASM first and foremost. The only exceptions are tiny servers with a single root disk that needs to be used for kernel, database s/w, and database datafiles. (currently these are mostly Oracle XE systems in my case, and configured that way as XE does not support ASM and is used as a pure cost decision). -
Virtual column in oracle 11g ???
HI Gurus,
I m really intrested in this new feature in oracle 11g called "Virtual column" . ....can anyone give me a very good example of code for virtual column???...i didnt find the good example for virtual column in online...
can we update or insert data into the virtual column ??
Thank you !!Hi,
For the last one, no.
See http://www.oracle.com/technology/pub/articles/oracle-database-11g-top-features/11g-schemamanagement.html
regards
Peter -
Hello ....
I have an application server with Windows Server 2008, IIS 7 and Oracle Data Provider 11G.
The website was set up. NET 2008 has made reference to the oracle, and to run from the application
working properly executes the SQL without problem, but to make the creation of a website
The IIS 7, and test its functionality, displays the following error
Could not load file or assembly 'Oracle.Web, Version = 2.111.6.20' or one of its dependencies.
The system can not find the file specified.
The problem may be a compatibility between the version of Oracle 11G and IIS 7.0, I do not know if there is an
additional component to the IIS 7.0 can recognize the version of Oracle as a provider of data?
Please I am attentive to their solutions .... Thank youOne thing might be if the web server has multiple versions of Oracle installed, then check to see which is first in the path. Another would be that at the least IIS would need to be restarted after the Oracle install, for the path to take effect, possibly the whole machine would need a re-boot for this.
-
Oracle 11g with cocoon.war and glassfish pdf problem?
Hi all,
I m install oracle 11g express on CentOS 5.6 OS, oracle apex listener 1.1.2.131.15
glassfish v2 and cocoon 2.1.11 and connect glasfish with oracle apex and working fine
Problem begin when I was build cocon xml and deploy cocoon.war on glassfish,
adding fop_post on cocoon/fop_post (as describe on http://carlback.blogspot.com/2007/03/apex-cocoon-pdf-and-more.html) but pdf dont work!
(I was setting all this steps on open suse 11.2-32 byte machine and ubuntu 8.04-32 byte and pdf work ok )
Is there any idea whats happen whith this pdf error?
Is problem with 64 byte some specific settings, with java jdk, cocoon, glassfish or something on oracle 11g apex ?
Gordan
Edited by: useruseruser on Jun 20, 2011 9:49 PMUdo wrote:
Hi Gordon,
what kind of error do you receive? And did you receive any error when building the cocoon.war with the 64bit Java? And which JDK are you using anyway?
-Udo
>Hi Gordon,
what kind of error do you receive? And did you receive any error when building the cocoon.war with the 64bit Java? And which JDK are you using anyway?
-Udo
Hi Udo
When I make export to pdf from report theres error Could not open file ///tmp/Report-1.pdf
I was installing on OpenSuse 11.3 oracle 11g 64 based OS and oracle
next I was download and unzip and build cocoon2.1.11 as bash build.sh war -- and in build folder theres make cocoon.war
next I was download apex listener and from command line I was type java -jar apex.war
next download and build glassfish v2 and this two war files I was deploy on server, and making username as describe
in apex listener conf documentations, so apex working good over glassfish only cocoon cant create pdf
giving me error Could not open file ///tmp/Report-1.pdf. and jdk is 1.6 26 64 byte
error messages from open suse 11.3 64 byte on cocoon/fop_post>
An error has occured
org.apache.cocoon.ProcessingException: Unknown request object encountered named template : null
Cocoon stacktrace[hide]
Exception in StreamGenerator.generate()
context://fop_post/sitemap.xmap - 17:32 <map:serialize type="xml">
context://fop_post/sitemap.xmap - 13:33 <map:generate type="stream">
Unable to get transformer handler for cocoon://fop_post/xsl
context://fop_post/sitemap.xmap - 38:37 <map:serialize type="fo2pdf">
context://fop_post/sitemap.xmap - 31:39 <map:transform>
context://fop_post/sitemap.xmap - 30:38 <map:generate>
context://sitemap.xmap - 1055:92 <map:mount>
Java stacktrace[show]
org.apache.cocoon.ProcessingException: Unknown request object encountered named template : null
at org.apache.cocoon.generation.StreamGenerator.generate(StreamGenerator.java:122)
at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:579)
at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:280)
at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:780)
at org.apache.cocoon.components.source.impl.SitemapSource.toSAX(SitemapSource.java:414)
at org.apache.cocoon.components.xslt.TraxProcessor.sourceToSAX(TraxProcessor.java:306)
at org.apache.cocoon.components.xslt.TraxProcessor.getTransformerHandlerAndValidity(TraxProcessor.java:241)
at org.apache.cocoon.transformation.TraxTransformer.setup(TraxTransformer.java:331)
at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.setupPipeline(AbstractProcessingPipeline.java:398)
at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.setupPipeline(AbstractCachingProcessingPipeline.java:718)
at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.preparePipeline(AbstractProcessingPipeline.java:501)
at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:453)
at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:144)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
at org.apache.cocoon.components.treeprocessor.sitemap.SwitchSelectNode.invoke(SwitchSelectNode.java:104)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:235)
at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:177)
at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254)
at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:118)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:235)
at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:177)
at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254)
at org.apache.cocoon.Cocoon.process(Cocoon.java:699)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1154)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:315)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:291)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:666)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:597)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:872)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:264)
at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
Java full stacktrace[show]
org.apache.cocoon.ProcessingException: Unable to get transformer handler for cocoon://fop_post/xsl
at <map:serialize type="fo2pdf"> - file:///home/nadrog/glassfish/domains/domain1/applications/j2ee-modules/cocoon/fop_post/sitemap.xmap:38:37
at <map:transform> - file:///home/nadrog/glassfish/domains/domain1/applications/j2ee-modules/cocoon/fop_post/sitemap.xmap:31:39
at <map:generate> - file:///home/nadrog/glassfish/domains/domain1/applications/j2ee-modules/cocoon/fop_post/sitemap.xmap:30:38
at <map:mount> - file:///home/nadrog/glassfish/domains/domain1/applications/j2ee-modules/cocoon/sitemap.xmap:1055:92
at org.apache.cocoon.transformation.TraxTransformer.setup(TraxTransformer.java:339)
at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.setupPipeline(AbstractProcessingPipeline.java:398)
at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.setupPipeline(AbstractCachingProcessingPipeline.java:718)
at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.preparePipeline(AbstractProcessingPipeline.java:501)
at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:453)
at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:144)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
at org.apache.cocoon.components.treeprocessor.sitemap.SwitchSelectNode.invoke(SwitchSelectNode.java:104)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:235)
at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:177)
at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254)
at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:118)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:235)
at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:177)
at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254)
at org.apache.cocoon.Cocoon.process(Cocoon.java:699)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1154)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:315)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:291)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:666)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:597)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:872)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:264)
at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
Caused by: org.apache.excalibur.xml.xslt.XSLTProcessorException: Exception when creating Transformer from cocoon://fop_post/xsl
at org.apache.cocoon.components.xslt.TraxProcessor.getTransformerHandlerAndValidity(TraxProcessor.java:300)
at org.apache.cocoon.transformation.TraxTransformer.setup(TraxTransformer.java:331)
... 56 more
Caused by: org.apache.cocoon.ProcessingException: Exception in StreamGenerator.generate()
at <map:serialize type="xml"> - file:///home/nadrog/glassfish/domains/domain1/applications/j2ee-modules/cocoon/fop_post/sitemap.xmap:17:32
at <map:generate type="stream"> - file:///home/nadrog/glassfish/domains/domain1/applications/j2ee-modules/cocoon/fop_post/sitemap.xmap:13:33
at org.apache.cocoon.components.source.impl.SitemapSource.toSAX(SitemapSource.java:424)
at org.apache.cocoon.components.xslt.TraxProcessor.sourceToSAX(TraxProcessor.java:306)
at org.apache.cocoon.components.xslt.TraxProcessor.getTransformerHandlerAndValidity(TraxProcessor.java:241)
... 57 more
Caused by: org.apache.cocoon.ProcessingException: Exception in StreamGenerator.generate()
at <map:serialize type="xml"> - file:///home/nadrog/glassfish/domains/domain1/applications/j2ee-modules/cocoon/fop_post/sitemap.xmap:17:32
at <map:generate type="stream"> - file:///home/nadrog/glassfish/domains/domain1/applications/j2ee-modules/cocoon/fop_post/sitemap.xmap:13:33
at org.apache.cocoon.generation.StreamGenerator.generate(StreamGenerator.java:163)
at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:579)
at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:280)
at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:780)
at org.apache.cocoon.components.source.impl.SitemapSource.toSAX(SitemapSource.java:414)
... 59 more
Caused by: org.apache.cocoon.ProcessingException: Unknown request object encountered named template : null
at org.apache.cocoon.generation.StreamGenerator.generate(StreamGenerator.java:122)
... 63 more
The Apache Cocoon Project
and other error from CentOS 64 byte same cocoon/fop_post >
Resource not found
org.apache.cocoon.ResourceNotFoundException: No pipeline matched request: fop_post/
<map:mount> - context://sitemap.xmap - 1055:92
Cocoon stacktrace[hide]
No pipeline matched request: fop_post/
context://sitemap.xmap - 1055:92 <map:mount>
Java stacktrace[show]
org.apache.cocoon.ResourceNotFoundException: No pipeline matched request: fop_post/
at <map:mount> - file:///home/nadrog/glassfish/domains/domain1/applications/j2ee-modules/cocoon/sitemap.xmap:1055:92
at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:149)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:235)
at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:177)
at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254)
at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:118)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:235)
at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:177)
at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254)
at org.apache.cocoon.Cocoon.process(Cocoon.java:699)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1154)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:315)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:291)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:666)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:597)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:872)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:264)
at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
The Apache Cocoon Project
All this steps above, I was making with open suse 32 byte, with oracle 32 byte 10g with
apex listener, cocoon and glassfish and apex and pdf export working good.
is there any idea, whats solution for 64 byte cocoon, apex listener oracle express pdf export?
regards
Gordan
Edited by: useruseruser on Jun 23, 2011 9:09 AM -
Database link between Oracle 11g and MS Sql Server 2005 EE
Hi everybody,
I trying to create database link from Oracle 11g to MS Sql and I'm not succesful.
I found tutorial for Oracle 10g, but it does't work.
I created odbc data source, then I modified tnsnames.ora and listener.ora, then I created initkw.ora in HS directory and then I created dabase link, but it does't work.
Can you help me please? Thanks for help ... ondra
Tnsnames.ora:
KW =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = tcp)(HOST = oracle_ip)(PORT = 1521))
(CONNECT_DATA =
(SID = KW)
(HS = OK)
listener.ora:
(SID_DESC =
(SID_NAME = KW)
(ORACLE_HOME = C:\oracle\product\11.1.0\db_1)
(PROGRAM = hsodbc)
initkw.ora
HS_FDS_CONNECT_INFO = kw
HS_FDS_TRACE_LEVEL = 0
HS_FDS_TRACE_FILE_NAME = kw.trc
create public database link KW connect to "user" identified by "pass" using 'KW';
Message was edited by:
user598176Hi, I get two errors.
ORA-28545 - NET8 mistake Unable to restrieve textof NEWTWORK/NCR message 65535
and then ORA-02063
zenda
I resolved one of error, I have wrong ip.
But now I have another error:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[Generic Connectivity Using ODBC][Microsoft][ODBC Driver Manager] Data source name
not found and no default driver specified (SQL State: IM002; SQL Code: 0)
I have ODBC data source in system DSN
PS: Our Oracle 11g database is 64 bit version
Message was edited by:
user598176 -
Hi,
We have two node Oracle RAC 11g setup on windows.
Its configured with 3 scan ips.
When i login through the scan ips i found that those servers had oracle 11g installed in it.
Is this oracle 11g installed automatically??I am not sure that what's the question is. If you meant that SCAN ip's are required, yes, they are if you are on RAC. These SCAN ip's are going to link to the SCAN listeners and will get you the Local Listener's address which would make a connection. Automatically installed, not sure what does it mean but you need to give these IP's when you would install with DNS your RAC and would come automatically via DHCP if you would use GNS.
Aman.... -
This question probably gets asked all the time, but we're relatively new to Oracle.
Is Oracle 11g available as RPM's? If not, what about a command line installation script that DOES NOT require human interaction? At the very very least, can the requirement to have X11 installed and run the graphic installer be removed? I mean, come on... a graphic installer??? I thought Oracle was the 2nd largest software company in the world, and runs on mission critical enterprise systems, and you have to have X11 installed and use a graphic installer? I must really be missing something here.
At the end of the day, we want to use puppet (http://reductivelabs.com/trac/puppet) to manage our oracle servers with. This means either having oracle available as an RPM, or a headless install script.
X11... that's comical. Oracle is designed for production systems .... right?
DougHi user2136738,
Oracle is only providing rpm's for its free edition which is known as Oracle 10g Express Edition. Beside X11 installation method Oracle offers also the possibility to install the software using a response file. Basically you record it the first time you install the software using X11 and then you can run it from your terminal session. Since I was having similar requirements in the past I created a collection of tools to master Oracle deployments. One key component is the usage of rpm's in order to reproduce installations. Check:
http://www.oratoolkit.ch/knowledge/howto/installation/otn.php
which will show you nearlly every possible installation configuration.
Good luck!
David -
HELP! Problems using large memory on windows 2003(32bit) and Oracle 11g
i have Oracle 11g installed on windows 2003 enterprise server 32bit with 6GB RAM.
And I followed the steps to enable the Very Large Memory support:
1. add /3GB /PAE in c:\boot.ini
2. add AWE_WINDOW_MEMORY entry in the regitry and set it's value to 209715200
3. as for init.ora:
add:
dbblock_lru_latches = 64
db_block_size = 4096
db_block_buffers = 262144
remove the parameters: db_cache_size,sga_max_size
it does work when I use Oracle 10g, but for Oracle 11g, there are some errors:
ORA-00371: not enough shared pool memory, should be atleast **** bytes
OR
ORA-27102: out of memory
Can anybody share the experience in Oracle 11g?
Much thanks!Increase your shared_pool_size parameter
It looks like you have set the memory 1gb after setting up /PAE and /3GB switch
4096*262144=1GB...
Then why did you set /3GB -
Query not considering function based index in oracle 11g
I have a query which used Function Based Index when run in oracle 9i but when I run the same query
without any changes, it does not consider index. Below is the query:
SELECT distinct patient_role.domain_key, patient_role.patient_role_key,
patient_role.emergency_contact_name,
patient_role.emergency_contact_phone, patient_role.emergency_contact_note,
patient_role.emergency_contact_relation_id,
patient_role.financial_class_desc_id, no_known_allergies, patient_role.CREATED_BY,
patient_role.CREATED_TIMESTAMP,
patient_role.CREATED_TIMESTAMP_TZ, patient_role.UPDATED_BY, patient_role.UPDATED_TIMESTAMP,
patient_role.UPDATED_TIMESTAMP_TZ,
patient_role.discontinued_date
FROM encounter, patient_role
WHERE patient_role.patient_role_key = encounter.patient_role_key
AND UPPER(TRIM(leading :SYS_B_0 from encounter.account_number)) = UPPER(TRIM(leading :SYS_B_1 from
:SYS_B_2))
AND patient_role.discontinued_date IS null
AND encounter.discontinued_date IS null ;
Index definition:
CREATE INDEX "user1"."IX_TRIM_ACCOUNT_NUMBER" ON "user1."ENCOUNTER" (UPPER(TRIM(LEADING
'0' FROM "ACCOUNT_NUMBER")), "PATIENT_ROLE_KEY", "DOMAIN_KEY", "DISCONTINUED_DATE")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
BUFFER_POOL DEFAULT)
TABLESPACE "user1"
Database : Oracle 11g (11.2.0.3)
O/S : Linux 64 bit (the query does not consider index even on windows os)
Any suggestions?
-Onkar
Edited by: onkar.nath on Jul 2, 2012 3:32 PMOnkar,
I don't appreciate you posting this question in several forums at the same time.
If I would know you also posted this on Asktom, I wouldn't even have bothered.
As to your 'issue':
First of all: somehow cursor_sharing MUST have been set to FORCE. Oracle is a predictable system, not a fruitmachine.
Your statement the '0' is replaced by a bind variable anyway is simply false. If you really believe it is not false, SUBMIT a SR.
But your real issue is not Oracle: it is your 'application', which is a mess anyway. Allowing for alphanumeric numbers is a really bad idea.
Right now you are already putting workaround on workaround on workaround on workaround.
Issue is the application: it is terminal., and you either need to kill it, or to replace it.
Sybrand Bakker
Senior Oracle DBA -
Subpartition with MOD Function in Oracle 11g
Hi All,
Can we create Subpartition based on MOD Function in Oracle 11g ?Hi!
What are you refering with "MTS"? Anybody knows a term like this (except MultiThreaded Server). -
Oracle 11g Table function returns no records on first call
Hello,
On a Oracle 11g R2 I've a table function ( PIPELINED ) returning rows selected from a table.
The first time the function is selected, in a session ( I've tried to disconnect and log in again ), it returns no rows.
I've tried to log the call using DBMS_OUTPUT and from what I see the select on the table function returns no rows and no output is printed. So I presume Oracle is not calling the function.
The same function on a similar environment ( same db versions, patches and database structure ) works fine. The second environment is a production environment so it has more memory and some other settings enabled.
Does anyone know of settings that can relate to this behaviour ?
Thanks in advance for the help.
Regards,
Stefano MuretThank you for answering so fast.
Here's the function code:
FUNCTION template_parameters (iTemplate IN TEMPLATE_RAW_DATA.TMPL_ID%TYPE := NULL)
RETURN table_type_tmpl_parameters PIPELINED
IS
li_exception INTEGER DEFAULT -20025;
POUT_PARM TABLE_TYPE_TMPL_PARAMETERS;
lt_parms table_type_tmpl_parms_raw;
sParmCheck VARCHAR2(4000);
iOccurrence INTEGER;
BEGIN
pOut_Parm := table_type_tmpl_parameters();
pOut_Parm.EXTEND;
select
tmpl_id
*,tmpl_name*
*,replace(upper(trim(sql_out)),'[SCHEMA].')*
*,UPPER(TRIM(out_tmpl_parms))*
bulk collect into lt_parms
from ref_templates
where tmpl_id = NVL(iTemplate,tmpl_id)
order by tmpl_id;
FOR k IN 1..lt_parms.COUNT
LOOP
pOut_Parm(1).tmpl_id := lt_parms(k).tmpl_id;
pOut_Parm(1).tmpl_name := lt_parms(k).tmpl_name;
FOR i IN 1..2
LOOP
IF i = 1 THEN
sParmCheck := lt_parms(k).sql_out;
ELSE
sParmCheck := lt_parms(k).sql_parms;
END IF;
iOccurrence := 1;
*pOut_Parm(1).parameter_name := regexp_substr(sParmCheck,'\[[^\[]+\]',1,iOccurrence);*
WHILE pOut_Parm(1).parameter_name IS NOT NULL
LOOP
PIPE ROW (pOut_Parm(1));
iOccurrence := iOccurrence + 1;
*pOut_Parm(1).parameter_name := regexp_substr(sParmCheck,'\[[^\[]+\]',1,iOccurrence);*
END LOOP;
END LOOP;
END LOOP;
RETURN;
EXCEPTION
WHEN OTHERS THEN
RAISE_APPLICATION_ERROR(li_exception,SUBSTR(SQLERRM,1,1000));
RETURN;
END template_parameters;
This function is part of a package.
The data on both environments is the same. -
How to call a javascript function from oracle apex 3.2.1 (oracle 11g)
Hello ,
I want to use javascript for client side validations in oracle apex 3.2.1 and i am using oracle 11g.
how to call a function for a submit button where i will validate the existance of data for a control and submit the page once validated.
where to place the call to a fucction and where the function need to be written.
please give me a sample code...
i am new to oracle apex.
thanks/Hi,
This might help
http://download.oracle.com/docs/cd/E14373_01/appdev.32/e13363/javascript.htm#CIHEBFFC
Br,Jari
Maybe you are looking for
-
Toshiba Satellite Pro P100-465 17" screen.
My Tosh has a vertical 30cm white band 90cm from the right hand side of the screen, the background is normal. If I use an external monitor the picture is ok. I have fitted a new screen, and it is just backlit, putting my old screen back the fault i
-
Problem in app now of nokia asha501
Sir i restored my asha 501 and after it i can't use my app now. Help please...
-
Using DragEvents between different JFXPanels
Hi. I'm trying to set up a drag-and-drop function in my application that should transfer some data on a successful drag-and-drop completion. I'm following the examples given here: Drag-and-Drop Feature in JavaFX Applications | JavaFX 2 Tutorials and
-
Verizon DSL modem not connecting through Linksys wrt54g
I recently switched to verizon DSL from comcast. The verizon modem when connected directly to the back of my mac works amazingly well. Now i was to be able to connect with my laptop and xbox360 wirelessly which was not a problem with comcast. So i ta
-
Why can't I update Adobe application manager or Adobe camera raw?
40-07170-124318032014 I am caught in an Adobe nightmare. I have CS5 suite 64 bit (a company licensed suite) operating on windows 7. Neither I nor the company IT guy can get the latest Camera raw version orthe latest Adobe update manager to install.