Session disconnects when executing procedure
For some reason when I execute my procedure I get a ORA-00603: Oracle server session terminated by fatal error. When I comment out the section of code below, the procedure executes without issue. I've run an Explain Plan on this SQL, but the cost is really low. I suspect it has something to do with the table that is accessed across DB Link. Any ideas how to resolve?
DB version: Oracle 10.2.0.3.0
select UPPER(fcc_emp.EMP_LST_NM||', '||fcc_emp.EMP_FST_NM) emp_name,
hr.emp_email_ad
INTO v_fa_name,
v_email_addr
from table_A slea_emp,
table_B fcc_emp,
table_C@remote_DB hr
WHERE slea_emp.empid = fcc_emp.emp_id
AND slea_emp.eligible_ind = 'Y'
AND fcc_emp.emp_9dig_id = hr.emp_id_cd
AND slea_emp.empid = v_xml_rec.EmpID
AND slea_emp.slea_year = gv_slea_year;
Don't look at the cost in an Explain plan. But show us the plan.
You can also try to rewrite the statement
select UPPER(fcc_emp.EMP_LST_NM||', '||fcc_emp.EMP_FST_NM) emp_name,
(select min(hr.emp_email_ad) from table_C@remote_DB hr where fcc_emp.emp_9dig_id = hr.emp_id_cd) emp_email_ad
INTO v_fa_name,
v_email_addr
from table_A slea_emp,
table_B fcc_emp
WHERE slea_emp.empid = fcc_emp.emp_id
AND slea_emp.eligible_ind = 'Y'
AND slea_emp.empid = v_xml_rec.EmpID
AND slea_emp.slea_year = gv_slea_year; but this would return only one email address per name. And sometimes even none.
Similar Messages
-
Error ORA-03113 when execute procedure via OEM
Hi All,
I got error messages
ORA-03113: end-of-file on communication channel
ERROR at line 1:
ORA-03114: not connected to ORACLE
when execute procedure via Oracle Enterprise Manager
Who do you know what 's the problem and how can I resolves ?
Thanks,
MckaSolution Description:
=====================
The ORA-3113 error is a general error reported by Oracle client tools,
which signifies that they cannot communicate with the oracle shadow
process. As it is such a general error more information must be collected
to help determine what has happened.
This short article describes what information to collect for an
ORA-3113 error when the Oracle server is on a Unix platform.
General Issues:
===============
1) Is it only one tool that encounters the error or
do you get an ORA-3113 from any tool doing a similar operation?
If the problem reproduces in SQL*Plus, use this in all tests
below.
2) Check if the problem is just restricted to:
[ ] One particular UNIX user,
[ ] Any UNIX user
or [ ] Any UNIX user EXCEPT as the Oracle user.
3) Check if the problem is just restricted to:
[ ] One particular ORACLE logon
or [ ] Any ORACLE logon that has access to the
relevant tables.
4) If you have a client-server configuration does this occur from:
[ ] Any client
[ ] Just one particular client
or [ ] Just one group of clients ?
If so what do these clients have in common ?
Eg: Software release .
5) Do you have a second server or database version where the
same operation works correctly? -
Java.sql.SQLRecoverableException when execute procedure
Hi all,
Exception is as follows when i execute procedure, it's running on Studio Edition Version 11.1.2.0.0 and Oracle Database 10g Enterprise Edition Release 10.2.0.3.0
java.sql.SQLRecoverableException:java.sql.SQLRecoverableException: 无法从套接字读取更多的数据
at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:51)
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:787)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1252)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:965)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:346)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:204)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
at 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:173)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:121)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
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:413)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
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)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
Caused by: com.faw_qm.dms.lmp.core.exception.QMLMPException
faw qm-tds nestedException is:java.sql.SQLRecoverableException:java.sql.SQLRecoverableException: 无法从套接字读取更多的数据
at com.faw_qm.dms.lmp.core.util.QMDBUtils.invokeProcWithReturn(QMDBUtils.java:932)
at com.faw_qm.dms.lmp.view.wh.md.Wh04MB.doBatchSave(Wh04MB.java:314)
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(Unknown Source)
at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:46)
... 44 more
java code is as follows:
CallableStatement proc1 = dbt.createCallableStatement(procString, -1);
try {
for(int i = 0;i<inParamObjs.length;i++){
proc1.setObject(i+1, inParamObjs);
for(int i = 0;i<returnTypes.length;i++){
proc1.registerOutParameter(i+1+paramLength, returnTypes[i]);
proc1.execute();
thanks in advance.Hi frank,
at com.faw_qm.dms.lmp.core.util.QMDBUtils.invokeProcWithReturn(QMDBUtils.java:932)
CallableStatement proc1 = dbt.createCallableStatement(procString, -1);
try {
for(int i = 0;i<inParamObjs.length;i++){
proc1.setObject(i+1, inParamObjs);
for(int i = 0;i<returnTypes.length;i++){
proc1.registerOutParameter(i+1+paramLength, returnTypes);
proc1.execute(); ( QMDBUtils.java:932,error in this ) -
Internal communication error when execute procedure on HANA MPP Cluster
Hi All,
I'm executing a hana POC at customer environment, it's a 6 nodes hana cluster (with one master & 5 work node).
When I create a table cross all nodes, and than execute a procedure with that table, it's failed by internal error
create columnt table CC.AA (NEWDATE DATE primary key) replica AT all locations;
create procedure CC.P_INS_ADW_DIM_DATE( )
LANGUAGE SQLSCRIPT
SQL SECURITY INVOKER
AS
FULLDATE DATA;
MONTHNUMBER INTEGER;
YEARNUMBER INTEGER;
DAYNUMBER INTEGER;
BEGIN
FULLDATE:=TO_DATE('19800101','YYYYMMDD');
INSERT INTO "CC"."AA" CALUES(FULLDATE);
END;
CALL CC.P_INS_ADM_DIM_DATE( );
The error message like below:
SAP DBTech JDBC: Cannot connect to VolumeID=7 [Cannot connect to host 172.21.36.58:34215 [Connection timed out]]
172.21.36.58 is internal communication IP address of the cluster node, while is public IP should be 192.168.1.123
I'm wonder if Hana call data through internal channel, does the port should be 3××003
And I saw in /etc/hosts internal IP bound to host name, not public IP
hana003 172.21.36.58
Can anyone help?
thanks!Hi Experts,
Did anybody faced same problem mentioned above? how to fix it.
Thanks,
Umashankar -
Strange delay when executing procedures
Hi,
When migrating from SQL 2008 to SQL 2014 I come across a strange issue where some of our stored procedures always takes 500+ ms to execute (client side). The problem seems to be in the packet size together with the size of the columns.
Executing the procedure below on the client takes 500 ms. Bu just removing one character from a field name and the issue dissappears.
There is no delay if the test application is started on the SQL server itself - only on the clients. The firewall is off and there is no real time anti-virus running.
Any help is welcome
Regards
Robert Warnestam / CODAB AB
SET ANSI_NULLS OFF
GO
SET QUOTED_IDENTIFIER OFF
GO
alter Procedure [dbo].[co_Test1]
AS
SELECT
"1" as "L32xxxxxxxxxxxxxxxxxxxxxxxxxxx01L32xxxxxxxxxxxxxxxxxxxxxxxxxxx02",
"1" as "L32xxxxxxxxxxxxxxxxxxxxxxxxxxx03L32xxxxxxxxxxxxxxxxxxxxxxxxxxx04",
"1" as "L32xxxxxxxxxxxxxxxxxxxxxxxxxxx05L32xxxxxxxxxxxxxxxxxxxxxxxxxxx06",
"1" as "L32xxxxxxxxxxxxxxxxxxxxxxxxxxx07L32xxxxxxxxxxxxxxxxxxxxxxxxxxx08",
"1" as "L32xxxxxxxxxxxxxxxxxxxxxxxxxxx09L32xxxxxxxxxxxxxxxxxxxxxxxxxxx10",
"1" as "L32xxxxxxxxxxxxxxxxxxxxxxxxxxx11L32xxxxxxxxxxxxxxxxxxxxxxxxxxx12",
"1" as "L32xxxxxxxxxxxxxxxxxxxxxxxxxxx13L32xxxxxxxxxxxxxxxxxxxxxxxxxxx14",
"1" as "L32xxxxxxxxxxxxxxxxxxxxxxxxxxx15L32xxxxxxxxxxxxxxxxxxxxxxxxxxx16",
"1" as "L32xxxxxxxxxxxxxxxxxxxxxxxxxxx15L32xxxxxxxxxxxxxxxxxxxxxxxxxxx160123456789012345678901234567"Btw. We have the same delay using a non-virtualized client (win7)...
There are a couple of mysteries here. One is that connection pooling circumvents the problem. I would expect the opposite. The other is that decreasing the network packet size improves performance with larger results. Again, I would
expect the opposite.
See if you can reproduce the issue with the code below, which gathers more detailed timings. If so, can you run it against a physical SQL box too.
using System;
using System.Data;
using System.Data.Common;
using System.Data.SqlClient;
using System.Collections;
using System.Collections.Generic;
using Microsoft.SqlServer.Server;
using System.Diagnostics;
namespace SqlPerfTest
class Program
private const string CON_STRING = "workstation id=TEST;packet size=4096;data source=172.16.0.2;persist security info=True;initial catalog=XXX;User id=XXX;Password=XXX";;
//pass proc name as command-line arg
static void Main(string[] args)
if (args.Length != 1)
Console.WriteLine("specify SQL statement as command-line argument");
Environment.ExitCode = 1;
return;
string sql = args[0];
var totalDuration = Stopwatch.StartNew();
for(int i = 1; i <= 100; ++i)
using(SqlConnection conn = new SqlConnection(CON_STRING))
using (SqlCommand command = new SqlCommand(sql, conn))
var testDuration = Stopwatch.StartNew();
var openDuration = Stopwatch.StartNew();
conn.Open();
openDuration.Stop();
var execDuration = Stopwatch.StartNew();
var reader = command.ExecuteReader();
execDuration.Stop();
var readDuration = Stopwatch.StartNew();
var results = new object[reader.FieldCount];
do
while (reader.Read())
reader.GetValues(results);
} while (reader.NextResult());
reader.Close();
readDuration.Stop();
testDuration.Stop();
Console.WriteLine(
"Iteration={0}, TestDuration={1}, OpenDuration={2}, ExecDuration={3}, ReadDuration={4}"
, i
, testDuration.Elapsed
, openDuration.Elapsed
, execDuration.Elapsed
, readDuration.Elapsed
totalDuration.Stop();
Console.WriteLine(
"AvgDuration={0}, TotalDuration={1}"
, (new TimeSpan(totalDuration.Elapsed.Ticks / 100))
, totalDuration.Elapsed);
Console.ReadLine();
Dan Guzman, SQL Server MVP, http://www.dbdelta.com -
WLC 5508 : session disconnected when one lag-port is down.
Hello,
I have a WLC 5508 ( version 6.0.182).
When the port1 and port2 are connected ( The switch is configured with a etherchannel in forced mode) everything works fine: There is traffic on the 2 ports.
When I disconnect one of the 2 ports, I can still ping outside with my PC client, but all my tcp sesssions goes down and I even cannot restart my session. The only way I found is to do a "Disconnect / Reconnect" on my PC wireless connection.
Do you know this probleme ?
Is it a way to avoid it ?
Michel MisonneCSCth12513 LAG fail-over does not work on CT5508
This bug is fixed in the special release available through TAC : 6.0.199.157 and 7.0.xxxx
Hope this helps.
Nicolas
===
Dont' forget to rate answers that you find useful -
The procedure compile without error but when I execute I get this error. please help
ORA-01008: not all variables bound
ORA-06512: at "ITEMINCSVFORMAT1AA", line 116
ORA-06512: at line 1
CREATE OR REPLACE PROCEDURE itemincsvformat1aa (
p_spnumber IN VARCHAR2,
p_result OUT sys_refcursor
IS
v_letting VARCHAR2 (40);
v_call VARCHAR2 (40);
lv_sql VARCHAR2 (32767) := NULL;
BEGIN
SELECT DISTINCT l.letting, CALL
INTO v_letting, v_call
FROM letprop l, proposal p
WHERE l.lcontid = p.contid AND cprojnum = p_spnumber;
-- AND SUBSTR (l.lcontid, 4, 4) < '5';
lv_sql :=
' SELECT DISTINCT (''Job''||'' ''||l.lcontid) "Job No.", e.iplineno "Line Number" , g.csecnum "Section", e.eiitem "Item Number",
INITCAP(trim (i.idescrl) || '''' || trim(e.isupdes)) "Description",
( SELECT r.qty
FROM propitem r, proposal p, letprop l
WHERE r.contid = p.contid
and p.contid = l.lcontid
and l.letting = :B3
and l.call = :B4
and r.lineflag = ''L''
and r.iplineno = s.iplineno) quantity ,
i.iunits "Units",
to_char( (SELECT DISTINCT pi.price
FROM propitem pi
WHERE pi.contid = p.contid
AND pi.lineflag = ''L''
AND TRIM (pi.iplineno) <> '' ''
AND TRIM (pi.iplineno) = TRIM (e.iplineno)), ''$999,999,999.00'') "Engineers (Unit Price)" ,
to_char(((SELECT DISTINCT pi.price
FROM propitem pi
WHERE pi.contid = p.contid
AND pi.lineflag = ''L''
AND TRIM (pi.iplineno) <> '' ''
AND TRIM (pi.iplineno) = TRIM (e.iplineno)) *
( SELECT r.qty
FROM propitem r, proposal p, letprop l
WHERE r.contid = p.contid
and p.contid = l.lcontid
and l.letting = :B5
and l.call = :B6
and r.lineflag = ''L''
and r.iplineno = s.iplineno)), ''$999,999,999.00'') "Engineers (Extended Amount)" ';
FOR lv_rec IN (SELECT DISTINCT s.vendor,
TO_CHAR (s.calcbtot, '999,999,999.00')
FROM bidtabs b, bidders s
WHERE b.CALL = s.CALL
AND b.letting = s.letting
AND b.vendor = s.vendor
AND b.letting = v_letting
AND b.CALL = v_call
ORDER BY 2)
LOOP
lv_sql :=
lv_sql
|| ', to_char(MAX(DECODE(trim(s.vendor),'''
|| TRIM (lv_rec.vendor)
|| ''',bidprice)), ''$999,999,999.00'') as "'
|| TRIM (lv_rec.vendor)
|| ' (Unit Price) " ,
to_char(MAX(DECODE(trim(s.vendor),''' || TRIM (lv_rec.vendor) || ''',bidprice)* ( SELECT r.qty FROM propitem r, proposal p, letprop l WHERE r.contid = p.contid and p.contid = l.lcontid
and l.letting = :B7 and l.call = :B8 and r.lineflag = ''L'' and r.iplineno = s.iplineno)) , ''$999,999,999.00'') as "' || TRIM (lv_rec.vendor) || ' (Extension) "';
END LOOP;
lv_sql :=
lv_sql
|| ' FROM itemlist i,
estitem e,
estcatg g,
propproj x,
proposal p,
letprop l,
bidtabs s
WHERE (p.contid = x.contid AND x.pcn = g.pcn)
AND e.pcn = g.pcn
AND e.cn = g.cn
AND i.item = e.eiitem
AND i.ispecyr = p.cspecyr
and s.IPLINENO = e.IPLINENO
AND e.iplineno <> '' ''
AND e.eiitem <> ''2550601/01000''
AND e.eiitem <> ''2565601/00031''
AND e.eiitem <> ''2565601/00032''
AND e.eiitem <> ''2565601/00033''
AND e.eiitem <> ''2402601/01000''
AND l.lcontid = p.contid
AND l.letting = :B1
AND l.call = :B2
and l.call = s.call
and l.letting = s.letting
GROUP BY e.iplineno,
g.csecnum,
e.eiitem,
i.idescrl,
e.eiitem,
i.idescrl,
i.iunits,
e.isupdes ,
g.pcn ,
p.contid,
s.iplineno ,
l.lcontid
ORDER BY e.iplineno ';
DBMS_OUTPUT.put_line (lv_sql);
OPEN p_result FOR lv_sql
USING v_letting, v_call, v_letting, v_call, v_letting, v_call, v_letting, v_call;
END;Thank you for the reply. I really appreciate that. I could get the value from this query and pass into the daynamic query
SELECT DISTINCT l.letting, CALL
INTO v_letting, v_call
FROM letprop l, proposal p
WHERE l.lcontid = p.contid AND cprojnum = p_spnumber;
I tried this but I got an error message.
to_char(MAX(DECODE(trim(s.vendor),''' || TRIM (lv_rec.vendor) || ''',bidprice)* ( SELECT r.qty FROM propitem r, proposal p, letprop l WHERE r.contid = p.contid and p.contid = l.lcontid
and l.letting = :v_letting and l.call = v_call and r.lineflag = ''L'' and r.iplineno = s.iplineno)) , ''$999,999,999.00'') as "' || TRIM (lv_rec.vendor) || ' (Extension) "';
SELECT DISTINCT l.letting, CALL
INTO v_letting, v_call
FROM letprop l, proposal p
WHERE l.lcontid = p.contid AND cprojnum = p_spnumber;
FOR lv_rec IN (SELECT DISTINCT s.vendor,
TO_CHAR (s.calcbtot, '999,999,999.00')
FROM bidtabs b, bidders s
WHERE b.CALL = s.CALL
AND b.letting = s.letting
AND b.vendor = s.vendor
AND b.letting = v_letting
AND b.CALL = v_call
ORDER BY 2)
LOOP
lv_sql :=
lv_sql
|| ', to_char(MAX(DECODE(trim(s.vendor),'''
|| TRIM (lv_rec.vendor)
|| ''',bidprice)), ''$999,999,999.00'') as "'
|| TRIM (lv_rec.vendor)
|| ' (Unit Price) " ,
to_char(MAX(DECODE(trim(s.vendor),''' || TRIM (lv_rec.vendor) || ''',bidprice)* ( SELECT r.qty FROM propitem r, proposal p, letprop l WHERE r.contid = p.contid and p.contid = l.lcontid
and l.letting = :B7 and l.call = :B8 and r.lineflag = ''L'' and r.iplineno = s.iplineno)) , ''$999,999,999.00'') as "' || TRIM (lv_rec.vendor) || ' (Extension) "';
END LOOP; -
ORA-12541: TNS:no listener - when executing procedure
Hi,
I am getting the following error when execting a procedure within a package:
=======================================================
SQL> execute VRT_PIVOTAL_TEMP_INT.GET_NEW_PIVOTAL_ANON_TRANS
BEGIN VRT_PIVOTAL_TEMP_INT.GET_NEW_PIVOTAL_ANON_TRANS; END;
ERROR at line 1:
ORA-06502: PL/SQL: numeric or value error
ORA-06512: at "SYS.DBMS_LOB", line 722
ORA-06512: at "MPD.VRT_PIVOTAL_TEMP_INT", line 2579
ORA-06512: at "MPD.VRT_PIVOTAL_TEMP_INT", line 2430
ORA-12541: TNS:no listener
ORA-06512: at line 1
=======================================================
But the listener is up and I can ping the host as well as tnsping the connect string. I am trying to execute it on the server itself.
Please help.
PrachiThe problem comes into play when you try to select the actual LOB locator remotely, however straight INSERTs aren't a problem.
SQL> desc test_clob1
Name Null? Type
A1 NUMBER
A2 CLOB
SQL> desc test_clob2@remotedb
Name Null? Type
A1 NUMBER
A2 CLOB
SQL> declare
2 big_text varchar2(32767) := rpad('#',32767,'#');
3 begin
4 insert into test_clob1 values (1, big_text );
5 end;
6 /
PL/SQL procedure successfully completed.
SQL> select a1, dbms_lob.getlength(a2) from test_clob1;
A1 DBMS_LOB.GETLENGTH(A2)
1 32767
SQL> select count(*) from test_clob2@remotedb;
COUNT(*)
0
SQL> insert into test_clob2@remotedb
2 select * from test_clob1;
1 row created.
SQL> select a1, dbms_lob.getlength(a2) from test_clob2@remotedb;
select a1, dbms_lob.getlength(a2) from test_clob2@remotedb
ERROR at line 1:
ORA-22992: cannot use LOB locators selected from remote tables
SQL> commit;
Commit complete.However, if I do a COMMIT and then go to the remote database and do the same query, I get the following:
SQL> select a1, dbms_lob.getlength(a2) from test_clob2;
A1 DBMS_LOB.GETLENGTH(A2)
1 32767HTH -
Error when executing DBMS_ERRLOG through Stored Procedures...
Hi,
We have TWO schemas like IDWH_ODS and IDWH_ERR running on Oracle 10g Rel.2.
The schema IDWH_ERR has direct SELECT privilege on all the base tables in IDWH_ODS schema. (As Pl/sql doesn't support ROLE, we have granted direct SELECT on each of the tables)
IDWH_ODS schema has tables like ACCOUNT & CUSTOMER, for which I need to create DML Error logging tables in IDWH_ERR schema.
I have one procedure 'Cr_Errlog_Tabs' in IDWH_ERR schema which gets all tables in IDWH_ODS and creates Error logging table in IDWH_ERR schema using DBMS_ERRLOG package. My problem starts here,
When I execute the DBMS_ERRLOG package in IDWH_ERR through SQL*Plus LIKE,
> exec DBMS_ERRLOG.CREATE_ERROR_LOG('idwh_ods.ACCOUNT','ERR$_ACCOUNT','idwh_err');
it's creating the error log table 'ERR$_ACCOUNT' in IDWH_ERR schema.
(...the same will be working when execute through Anonymous plsql block)
BUT, when i execute the DBMS_ERRLOG package with same parameters through the stored Procedure 'Cr_Errlog_Tabs', it throws the following error...
ORA-01031: insufficient privileges
Please let me know how the solution at the earliest.WHY DO YOU FEEL YOU HAVE TO START A NEW THREAD FOR YOUR PROBLEM!?
Insufficient priv error when executing DBMS_ERRLOG through PLSQL -
Error when executing DBMS_ERRLOG pkg through Stored Procedures...
Hi,
We have TWO schemas like IDWH_ODS and IDWH_ERR running on Oracle 10g Rel.2.
The schema IDWH_ERR has direct SELECT privilege on all the base tables in IDWH_ODS schema. (As Pl/sql doesn't support ROLE, we have granted direct SELECT on each of the tables)
IDWH_ODS schema has tables like ACCOUNT & CUSTOMER, for which I need to create DML Error logging tables in IDWH_ERR schema.
I have one procedure 'Cr_Errlog_Tabs' in IDWH_ERR schema which gets all tables in IDWH_ODS and creates Error logging table in IDWH_ERR schema using DBMS_ERRLOG package. My problem starts here,
When I execute the DBMS_ERRLOG package in IDWH_ERR through SQL*Plus LIKE,
> exec DBMS_ERRLOG.CREATE_ERROR_LOG('idwh_ods.ACCOUNT','ERR$_ACCOUNT','idwh_err');
it's creating the error log table 'ERR$_ACCOUNT' in IDWH_ERR schema.
(...the same will be working when execute through Anonymous plsql block)
BUT, when i execute the DBMS_ERRLOG package with same parameters through the stored Procedure 'Cr_Errlog_Tabs',
it throws the following error...
ORA-01031: insufficient privileges
Please let me know the solution at the earliest.
Thanks.
-Saravananduplicate post
Insufficient privilege error when executing DBMS_ERRLOG through PLSQL -
A STORED PROCEDURE PERFORMES SLOWER WHEN EXECUTED IN HMTLDB THE IN SQLPLUS
We executed a stored procedure in HTMLDB.
At the beginning and the end of this stored procedure a timestamp inserted in a
logtable. First we executed the procedure in HTMLDB's SQL workshop (version 2.0.0.00.49
for MacOSX) under the owners schema .
Execution time 17.61 seconds.
When we query the table the logtable we see that this is the real execution time :
Start: 29-01-07 10:12:17,000000
Einde: 29-01-07 10:12:33,000000
When executing the same procedure in SQLplus (as the schemeowner) the real execution
time is less then a second :
Start: 29-01-07 10:13:13,000000
Einde: 29-01-07 10:13:13,000000
Is there a difference in executing a stored procedure in HTMLDB and Sqlplus ?????Does it show the same timings if you execute the procedure first in Sql*Plus and then in APEX?
Keep in mind that with your first run all your queries are parsed (create execution plans, ...) and that the data read is maybe stored in the SGA. So the second run can participate from that.
Patrick
Check out my APEX-blog: http://inside-apex.blogspot.com -
Error when executing d2kwutil.pll procedure
Hi all,
I use a client/server architecture.
There was an error when executing the procedure write_registry in the w2kutil.pll. I created a test forms , and I just created a control block containing a button. In the when-button-pressed trigger I coded : win_api_environment.write_registry('HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE','TEST_REGISTR','D:\MYLOGS',true); . I already attached the d2kwutil.pll to the form module.
The error is : FRM-40734: internal error : pl/sql error occurred.
So how to resolve it ?
Thank you very much indeed.You have that atachar the bookstore to the form and then you can make use of the contained functions inside the bookstore.
-
Error occurs when executing a procedure
I have queried a package and procedure.But when executing it shows an error.
Here is the query
CREATE OR REPLACE PACKAGE refcursor_pkg AS
TYPE SYS_REF_CURSOR IS REF CURSOR RETURN EMP%ROWTYPE;
end refcursor_pkg;
CREATE OR REPLACE PROCEDURE mem_select(pMem_name VARCHAR2,
pAge NUMBER,
pDivision VARCHAR2,
pOut_cur out refcursor_pkg.SYS_REF_CURSOR)IS
BEGIN
IF pMem_name IS NOT NULL THEN
IF pDivision IS NOT NULL THEN
OPEN pOut_cur FOR SELECT
m.mem_name,m.nic,m.mar_state,u.division
FROM members m,upf_kgl u
WHERE m.member_id=u.member_id;
END IF ;
ELSE
OPEN pOut_cur FOR SELECT
u.mem_name,m.nic,m.mar_state
FROM members m,upf_kgl u
WHERE U.MEMBER_ID = M.MEMBER_ID;
END IF;
END mem_select;
Here is the error.
Error(6,1): PLS-00103: Encountered the symbol "CREATE"
Can someone help me to correct it please?You can use sys_refcursor type:
CREATE OR REPLACE PROCEDURE mem_select(pMem_name VARCHAR2,
pAge NUMBER,
pDivision VARCHAR2,
pOut_cur out sys_refcursor)IS
BEGIN
IF pMem_name IS NOT NULL THEN
IF pDivision IS NOT NULL THEN
OPEN pOut_cur FOR SELECT
m.mem_name,m.nic,m.mar_state,u.division
FROM members m,upf_kgl u
WHERE m.member_id=u.member_id;
END IF ;
ELSE
OPEN pOut_cur FOR SELECT
u.mem_name,m.nic,m.mar_state
FROM members m,upf_kgl u
WHERE U.MEMBER_ID = M.MEMBER_ID;
END IF;
END mem_select;Regards,
Malakshinov Sayan -
Console session logout when disconnected
Hello,
We have got a client with a very basic setup.
It is one Server 2012 R2 with Remote desktop services role. There are a two clients on it, when you disconnect the sessions will reset after 30 minutes. Because it is a small setup there are only using local policy`s and no AD.
We now need the console session to always remain logged in because of a custom application.
The settings is the local policy`s and Remote desktop also effect the console login.
Is there a way to do this?Hi,
From your description seems facing issue with session disconnection. Which option /admin or /console you are using to establish the console session? Because when we close the session the status changed to disconnected, but all running programs are kept active
even the user is no longer actively. So I wonder if you have set to force end a disconnected session after a maximum time or idle session limit on Server setting or local policy setting. Please check the configuration on both local group policy and Server
level. For more detailed information about this, you may refer to the following article.
Configure Timeout and Reconnection Settings for Remote Desktop Services Sessions
http://technet.microsoft.com/en-us/library/cc754272.aspx
Hope it helps!
Thanks.
Dharmesh Solanki
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected] -
Re: [iPlanet-JATO] Re: session timeout when not submitting to a handler
Mark--
I know what's happening here, but am curious about your approach. You said
in an earlier email that you were generating links directly to JSPs, but
from what you are describing, you are generating JATO-style links to access
JATO pages. Nothing wrong with that, but there is a signficant difference.
Actually, it just occurred to me, I'm wondering what your URLs look like.
The way the request dispatching works in JATO is it ignores anything after
an initial "." in the final part of the URL path. For example, a request
for "/myapp/module1/MyPage.jsp" doesn't actually try to hit the JSP, instead
it tries to hit the JATO page "/myapp/module1/MyPage".
The end result is that you may think you are accessing a JSP directly, but
are instead accessing a JATO page. The reason the request dispatching works
this way is because it is illegal to access JATO JSPs directly, and there is
actually a (disabled) JATO feature that piggybacks on the use of the
dot-delimited URL.
So, now I need to understand your intent. I wasn't really sure why you were
generating direct JSP/page links to begin with. This works against the Type
II architecture JATO uses, in which all JATO requests go back to the
controller servlet.
If you are trying to design something like a menu page, you may have thought
that it was burdensome to create a number of HREF children, plus implement
event handlers for each of them. This definitely would be burdensome beyond
just a handful of links, but this is why JATO provides other mechanisms for
doing what I'll call here "polymorphic HREFs".
Assuming this menu page scenario, the easiest thing to do is to simply use
one HREF child on the page, and add a value to it each time it is rendered
that distinguishes it from the other instances on the page. In your event
handler for the HREF, you simply check this value and use it to decide which
page to forward to. You can add a value to an HREF or Button by using the
"addExtraValue()" method. Or, if you are using JATO 1.2, you can add extra
query string NVPs right in the JSP document using the "queryParams"
attribute of the <jato:href> tag. Thus, your one HREFchild and event
handler become "polymorphic" because what they do depends on the context in
which they are invoked.
Now, I still don't have confirmation that this is what you were trying to
do, so until I do, let me explain the exception you're seeing. JATO assumes
that when a request comes in for a page that includes the pageAttributes
NVP, it is a request coming from a previously generated JATO page. Because
of the way JATO works, this means that the request dispatching code should
send the request back to the originally rendered page. For example, if Page
A renders an HREF, which the user then activates, JATO sends the request
back to Page A for handling. All of the HREFs and forms generated during
rendering of Page A actually refer back to Page A, regardless of where those
links or buttons actually pass the request in their event handlers/Command
objects.
So, what's happening when you include the pageAttributes in your HREFs is
that JATO is assuming that a request is being sent to the target page, with
the assumption that the target page has a mechanism in place to handle the
request. This assumption relies on the specification of the "originator" of
the request being specified in the request. For links/HREFs, the name and
value of the HREF is sent along with the request. For forms, the name and
value of the button that was pressed are sent in the request. JATO uses the
presence of these name/value pairs to decide which event handler, or which
Command object, to invoke to handle the request.
The exception you are receiving is saying that there was no object on the
target page that indicated it could handle the request. This is to be
expected, since you have not specified a query parameter that indicates
which CommandField child is responsible the request. However, this is where
I see the disconnect, because that is not what I believe you were trying to
do (as explained above).
So now, given all the information above, can you tell me what you're trying
to accomplish, and whether or not the info I've given you has helped you to
design a mechanism more in line with a JATO approach? If not, given that I
understand what you're trying to do, I can offer a more concrete solution.
Todd
----- Original Message -----
From: <Mark_Dubinsky@p...>
Sent: Monday, November 05, 2001 2:54 PM
Subject: [iPlanet-JATO] Re: session timeout when not submitting to a handler
This is the exception we get:
(And BTW, leaving a blank value for the pageAttributes doesn't help)
[05/Nov/2001 17:49:18:4] error: <portalServlet.processRequest>
javax.servlet.ServletException: The request was not be handled by the
specified handler
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at
javax.servlet.ServletException.<init>(ServletException.java:107)
at
com.putnaminvestments.common.jato.ApplicationServletBase.dispatchRequ
est(Compiled Code)
at
com.putnaminvestments.common.jato.ApplicationServletBase.processReque
st(Compiled Code)
at
com.putnaminvestments.bp.portal.portalServlet.processRequest(Compiled
Code)
at
com.putnaminvestments.common.jato.ApplicationServletBase.doPost(Compi
led Code)
at
com.putnaminvestments.common.jato.ApplicationServletBase.doGet(Compil
ed Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at com.putnaminvestments.bp.bpServletBase.service(Compiled
Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at
com.netscape.server.servlet.servletrunner.ServletInfo.service(Compile
d Code)
at
com.netscape.server.servlet.servletrunner.ServletRunner.execute(Compi
led Code)
at com.kivasoft.applogic.AppLogic.execute(Compiled Code)
at com.kivasoft.applogic.AppLogic.execute(Compiled Code)
at com.kivasoft.thread.ThreadBasic.run(Native Method)
at com.kivasoft.thread.ThreadBasic.run(Native Method)
at com.kivasoft.thread.ThreadBasic.run(Native Method)
at com.kivasoft.thread.ThreadBasic.run(Native Method)
at com.kivasoft.thread.ThreadBasic.run(Compiled Code)
at java.lang.Thread.run(Compiled Code)
--- In iPlanet-JATO@y..., "Todd Fast" <Todd.Fast@S...> wrote:
Mark--
Initially we tried to add the pageAttributes NVP as well, but that
was
causing an exception, so we stopped doing that.That's odd--what was the exception?
Our problem now is that when the SessionTimes out it does not go
to
onSessionTimeout method as in processRequestMethod of the
ApplicationServletBase it looks for pageAttributes. If it is notnull
then only onSessionTimeOut method is called.This is sadly the only technique for determining if a session hastimed out
and a new one been created, versus the initial creation of thesession.
Is there any work around for this? Maybe you can suggest how topass
the pageAttributes without causing the initial exception?Definitely--let me know what the exception was and I'll be able tosuggest
something. However, it shouldn't really be any harder thanappending a
"jato.pageAttributes=" empty NVP on the HREF.
Todd
Todd Fast
Senior Engineer
Sun/Netscape Alliance
todd.fast@s...
For more information about JATO, please visit:
http://developer.iplanet.com/tech/appserver/framework/index.jspOK, here's what I'm trying to do: We have, like you said, a menu
page. The pages that it goes to and the number of links are all
variable and read from the database. In NetD we were able to create
URLs in the form
pgXYZ?SPIDERSESSION=abcd
so this is what I'm trying to replicate here. So the URL that works
is
pgContactUs?GXHC_GX_jst=fc7b7e61662d6164&GXHC_gx_session_id_=cc9c6dfa5
601afa7
which I interpreted to be the equivalent of the old Netd way. Our
javascript also loads other frames of the page in the same manner.
And I believe the URL-rewritten frame sources of a frameset look like
this too.
This all worked except for the timeout problem. In theory we could
rewrite all URLs to go to a handler, but that would be...
inconvenient.
Maybe you are looking for
-
Hi I have written an SAP Query for Selection Criteria. Example Scenario: I want to download list of sales orders in my BAPI. The download criteria is maintained as a SAP Query, like, Order Type, Creation Date, Plant etc. Can i invoke this query in my
-
How can I customize the workflow worklist screen for our application? Or is there a PLSQL API that can return individual values like, start date, end date, status, subject of notification etc, so that I can create my own screen?
-
Speedy Boot Times W/ 10.4.8
Anyone else notice a dramatic decrease in boot up time w/ the new update? I started my intel 20in iMac this morning to sync songs on my ipod before work, and it was zooming. iMac Mac OS X (10.4.8)
-
I would like to mask my Bell Canada service providers name EG [email protected] replace with [email protected] Im using Leopard 10.5.8 and Mountan Lion on a Mac pro 2010 Tower and an ipad2, iphone Can I do this in Mail Prefs or is this in my Bell ser
-
Why are my songs missing from my playlists using match? How can I fix it?
On my mac mini, iTunes shows my playlists as expected. It also shows the iCloud icon (also expected). However, when I use my iPhone to try to sync/download a few of the playlists, there are no songs in them. I even tried adding songs AFTER I finish