ORA-03135 not in alertlog?
Oracle Version: 10.2.0.4OS: RedHat 5.5
Hi all
recently, we had a problem with a delete statement, which was triggered by a JBoss server. This statement has not finished, so I started it follow-up because I couldn't find any ora - alerts log. But curiously, I found an ora-03135 in the trace. I was wondering why this error was not in the alerts log. Y at - he of known bugs or is it the behaivior WAITED? I couldn't find anything on MOS
BTW, I have another question about the trace file. After the error in the trace file, I see a lot of:
WAITING #1: nam = 'db file sequential read' ela = file No. 13 = 5 block #= blocks 1341871 = 1 obj #=-1 tim = 1281712953742918
Is it correct to say that it is the price drop? That means obj #=-1. We also have lines with obj #= 0.
Thanks in advance
Hello
in your case, your session is still alive, but lost the contact to the application. This looks like a firewall. As your server process is still alive, he cancels all your changes (different case, if your server process dies). So, you should see the cancellation directly after the error.
You will see not ora-03135 in your log file alert, since it is an error to the user. See the link above.
HTH...
-wiZ
Tags: Database
Similar Questions
-
ORA-03135: connection lost contact for a single user only
Hi gurus,
I am puzzled to this problem, no one else is having problem connecting to the database except a user who always gets "ORA-03135: connection lost contact" when you try to connect to the test and Prod environment.
Oracle@PATEST > sqlplus user@testDB
SQL * more: release 10.2.0.3.0 - Production Wed Dec 23 13:21:08 2015
Copyright (c) 1982, 2006, Oracle. All rights reserved.
Enter the password:
ERROR:
ORA-03135: connection lost contact
Get the same error when you try to connect via EDIVIEW (application) or the prompt of commands or cygwin terminal directly.
tnsping works fine and return connect credentials
Here's what I did troubleshooting:
1. make sure that the user is not locked in the database
2. place the database restricted and provided this user mode access restricted and tried the connection as long as that user, not luck.
3A bounced the listener
4A rebounded from the database
5. some online forums suggest to increase the timeout setting in sqlnet.ora, in our environment, we use the OID and the sqlnet.ora is the central directory. If this cannot be the issue that everyone can connect.
6. I checked the sqlnet.log file and there seems to be no incoming connection from this user or machine.
Information system and database
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64 bit Production
Mna3dbts SunOS 5.10 Generic_150400-27 sun4u sparc SUNW, SPARC-Enterprise
Any advice would be appreciated
Hello world
Thanks for everyone came, surprisingly, the problem is solved by simply changing the user password in the database. As soon as the password is reset, I was able to connect using the assigned user name.
-
Data Guard Broker fails with ORA-16635 and ORA-03135
Hi all
I configured Oracle RAC with 11.2 Dataguard on Windows 2003.
I have already configured standby without Data Guard Broker and everything works fine, but when I try to use Data Guard Broker, it cannot synchronize the files of the Data Guard Broker.
I tried everything, including MOS, but not found anything.
I get this error.
Primary
Sleep modeDG 2011-02-11-09:15:41 0 2 0 NSV1: (MIV = 57) Start sending metadata file: "+DG_DATA/orcl/dgbroker/dg_config_file1.dat" DG 2011-02-11-09:15:41 0 2 0 NSV1: Sending block #1 (containing MIV = 57), 67 blocks DG 2011-02-11-09:15:42 0 2 0 NSV1: Error sending block #1, size 67 blocks. Error is ORA-16635. DG 2011-02-11-09:15:42 0 2 0 NSV1: Current network link for metadata resync is broken. DG 2011-02-11-09:15:42 0 2 0 NSV1: (MIV = 57) End metadata file transmission: opcode CTL_ENABLE (1.1.1825138532) DG 2011-02-11-09:15:42 0 2 0 NSV1: Can't send CLOSE message to DRCX. Network error is: ORA-16635. DG 2011-02-11-09:15:42 0 2 0 NSV1: Error is ORA-03135 connection lost contact DG 2011-02-11-09:15:42 0 2 0 NSV1: Current network link for metadata resync is broken.
DG 2011-02-11-08:35:39 3001000 3 1825138419 for opcode = CTL_ENABLE, phase = RESYNCH, req_id = 1.1.1825138419 DG 2011-02-11-08:35:39 0 2 0 NSV2: Error sending block #1, size 67 blocks. Error is ORA-16635. DG 2011-02-11-08:35:39 0 2 0 NSV2: Current network link for metadata resync is broken. DG 2011-02-11-08:35:39 0 2 0 NSV2: (MIV = 11) End metadata file transmission: opcode CTL_ENABLE (1.1.1825138419) DG 2011-02-11-08:35:39 0 2 0 NSV2: Can't send CLOSE message to DRCX. Network error is: ORA-16635. DG 2011-02-11-08:35:39 0 2 0 NSV2: Current network link for metadata resync is broken. DG 2011-02-11-08:35:39 0 2 0 NSV2: Metadata Resync failed. Status = ORA-16635 DG 2011-02-11-08:35:39 3001000 3 1825138419 DMON: Database ORCLSTBY returned ORA-16635
Hello
CISCO firewalls have a configuration option 'inspect sqlnet' or 'deep packet inspection '. This setting can affect the transfer of certain data on the network and the result in malformed packets or down.
Check if this option is enabled, if it is turn off the option "inspect sqlnet" at the firewall level.
And try again...
Kind regards
Levi Pereira -
ORA-03135: connection lost contact
Hello
I encountered the error: ORA-03135: connection lost contact if I let on during connection > 30 minutes (or so I think)
I'm actually access the data through a dblink.
Please indicate where I could check to see if it is a matter of settings
TKS & rgdsHello
Check the SQLNET. EXPIRE_TIME in sqlnet.ora on client-side, or when you connect from, and it is not set, then set it to recommneded in 9i
For more information, see this document for 9i http://lbdwww.epfl.ch/f/teaching/courses/oracle9i/network.920/a96581/sqlnet.htm
SQLNET.EXPIRE_TIME=10
Concerning
-
ORA-01008: not all variables bound... but only in an environment
Running Oracle on Solaris 11.2.0.3.15.
Two test environments, each with identical spfiles (give or take the database names, etc.).
Here is my code in both cases:
create or replace procedure HJR_TEST
as
v_daykey_from number (10): = 13164.
v_text varchar2 (3000);
Start
Select cd.daykey. CD. CalendarDate in v_text
from the cds.cdsday CD,
CDS. Snapshot vsp
where vsp.daykey = cd.daykey
and cd.daykey > = v_daykey_from
and rownum < 2;
dbms_output.put_line (v_text);
end;
Work as an environment:
SQL > start
hjr_test;
end;
PL/SQL procedure successfully completed.
1318001/FEB/16
Run it in another environment:
Error from line: 18 in the command.
Start
hjr_test;
end;
Error report-
ORA-01008: not all variables
ORA-06512: at the 'JRH. HJR_TEST', line 7
ORA-06512: at line 2
01008 00000 - "not all variables.
* Cause:
* Action:
Same code; init.ora parameters; same version of the database. same o/s; different results.
Got clues as to where I should be looking for the trouble, please?
Concerning
JRH
Thought I better update the forum on this one.
This is a bug confirmed, although the bug report is not published.
There are cases where the optimizer calls kkpap do partition
pruning in the compilation. Sometimes to partition pruning is done in
subqueries running against the table. If the bind variables values
required to operate these subqueries, so we cannot do the pruning to
compile time.
The fix for the bug 14458214 fixed this problem in the case where the
subquery was used to carve at the partition level. However, it is
possible that use us another method at the level of the partition, and then use
pruning of subquery subpartition level; this case was not
addressed by the fix for 14458214.
The mentioned bug has a patch available in 11.2.0.4 and don't occur in 12 c. For some reason, I'm also made bug 17258090, but I see no content in this bug report. :-(
Possible solutions in 11.2.0.3 is to make a alter session set "_subquery_pruning_enabled" = false; ... but since X$ KSPPI lists _subquery_pruning_enabled as a hidden parameter, I guess you can also set it instance globally, although obviously the consequences for other queries would at this time must be evaluated very carefully.
-
Hello
I am trying to execute the sql and getting error ORA-01843 not valid for months to find the records that fall into the slot provided.
SELECT ZIP_cde FROM T_ZIP_CODE where ZIP_CDE_END_DTE = 12/31/9999 ';
Can you get it someone please let me know if something is wrong.
Thank you!
You must use to_date() with a suitable mask date or a date - literal example
Select to_date (' 31/12/9999 ',' mm/dd/yyyy'), dates' 9999-12-31 to double;
-
OracleException "ORA-01008: not all variables ' what SQL text contains both '-'and':'
We have stumbled into what seems to be a similar bug as @user4111944 and Alex Keh - Product Manager-Oracle in ManagedDataAccess - bug in the drive when you use '-'and':' SQL text .
We use Oracle.ManagedDataAccess v. 12.1.2400 (last NuGet package) and get an OracleException with the message
ORA-01008: not all variables
When we try to run the following code:
var l_connectionString = "a connection string.
var l_commandText = "UPDATE table_test SET col_description = '-test', col_time =: param WHERE col_id = 42 ';
using (IDbConnection l_connection = new Oracle.ManagedDataAccess.Client.OracleConnection(l_connectionString))
{
l_connection. Open();
var l_command is l_connection. CreateCommand();
l_command.CommandText = l_commandText;
var l_parameter is l_command. CreateParameter();
l_parameter. ParameterName = "param";
l_parameter. Value = DateTime.Now;
l_command. Parameters.Add (l_parameter);
l_command. ExecuteNonQuery());
}
The code runs perfectly if the omission of the '-' OR the side of a parameter value assignment (i.e. omitting ', col_time =: param').
The stack for the OracleException trace is as follows:
at OracleInternal.ServiceObjects.OracleCommandImpl.VerifyExecution (OracleConnectionImpl connectionImpl, Int32 & cursorId, bThrowArrayBindRelatedErrors Boolean, OracleException & exceptionForArrayBindDML, Boolean hasMoreRowsInDB, Boolean bFirstIterationDone)
at OracleInternal.ServiceObjects.OracleCommandImpl.VerifyExecution (OracleConnectionImpl connectionImpl, Int32 & cursorId, bThrowArrayBindRelatedErrors Boolean, OracleException & exceptionForArrayBindDML, Boolean bFirstIterationDone)
at OracleInternal.ServiceObjects.OracleCommandImpl.ExecuteNonQuery (String queryString, OracleParameterCollection paramColl, CommandType commandType, OracleConnectionImpl connectionImpl, longFetchSize of Int32, Int64 clientInitialLOBFS, OracleDependencyImpl orclDependencyImpl, Int64 [] scnFromExecution, OracleParameterCollection & bindByPositionParamColl, Boolean bBindParamPresent, OracleException & exceptionForArrayBindDML, Boolean isFromEF)
at Oracle.ManagedDataAccess.Client.OracleCommand.ExecuteNonQuery)
UPDATE 1:
Now, I have tested with older versions of Oracle.ManagedDataAccess.dll thus:
- ODAC 12 c Release 4 (12.1.0.2.4 - released October 5, 2015) -fails with ORA-01008: not all variables
- ODAC Release 3 (12.1.0.2.1 - published December 23, 2014) 12 c - fails with ORA-01008: not all variables
- ODAC 12 c Release 2 (12.1.0.1.2 - released on December 20, 2013) - successful!
Therefore, changes in driver management Oracle introduced between December 20, 2013 and December 23, 2014 has caused this problem.
UPDATE 2:
I dug some more in the question and after decompilation December 2013 and December 2014 versions, I found the piece interesting next to the code in the implementation of the ExecuteNonQuery()) method in the inner class OracleInternal.ServiceObjects.OracleCommandImpl. The code in red was added in the version of December 2014:
...
else if (commandType! = CommandType.TableDirect)
{
OracleCommandImpl.TrimCommentsFromSQL (ref str);
this.m_sqlStatementType = OracleCommandImpl.GetSqlStatementType (str);
this.m_bHasReturningClause = OracleCommandImpl.HasReturningClause (str, this.m_sqlStatementType);
}
...
Take OracleCommandImpl.TrimCommentsFromSQL () method for a test ride easily reveal its weaknesses. It does not take into account the sequence '-' may appear in a quoted string, treating them as a comment and deletes the rest of the line...
Could you please address this issue?
Best regards
Bernt
Yes, the cause seems exactly the same thing as Bug 22308527. Once fix us this bug, please fix your problem as well.
-
ORA-00947: not enough values error collect in bulk
Hi guys,.
I'm trying to COLLECT in a PL/SQL table, but I get ORA-00947: not enough values error message, even if the table has 4 values and select 4 values. Am I missing something?
I have to add something to this?
I've included the types of database objects that I created on the database.
I have commented on the Original code and used the table DOUBLE just to make simple workout.
/*
CREATE or REPLACE TYPE Usage_Groups_for_coda_rec as
object
(Usage_Group_ID NUMBER (10),)
Coda_comment VARCHAR2 (45).
Amount NUMBER,
Deduction_amount NUMBER);
CREATE OR REPLACE
TYPE USAGE_GROUPS_FOR_CODA_TAB AS
TABLE OF Usage_Groups_for_coda_rec;
*/
declare
-CURSOR c_adj_roy_trans
-EAST
-SELECT DISTINCT rotr.on_behalf_of_soc_nbr, rotr.right_type
-OF royalty_transaction rumble
-WHERE rotr.ps_adjust_royalty_flg = cm_default.get_yes;
CURSOR c_adj_roy_trans
IS
SELECT '052', 'P '.
DOUBLE;
t_uge_Grp_for_coda_tab USAGE_GROUPS_FOR_CODA_TAB; -the type of table was created on the database
Start
FOR r_adj_roy_trans IN c_adj_roy_trans LOOP
-SELECT rotr.usage_group_id as Usage_Group_ID,
-cm_coda_account_default.get_canc_adj_coda_comment | '- CAE' as Coda_comment,
-SUM (NVL (rotr.gross_amt, 0) + NVL (rotr.reciprocal_deduction_amt, 0)) as an amount
-SUM (rotr.reciprocal_deduction_amt) as Deduction_amount
-COLLECT LOOSE t_uge_Grp_for_coda_tab
-OF royalty_transaction rumble
-WHERE rotr.ps_adjust_royalty_flg = cm_default.get_yes
- AND rotr.on_behalf_of_soc_nbr = r_adj_roy_trans.on_behalf_of_soc_nbr
- AND rotr.right_type = r_adj_roy_trans.right_type
-Rotr.usage_group_id group;
SELECT 6874534 as Usage_Group_ID,
"This is a test - CAE" as Coda_comment.
100 as an amount
50 as Deduction_amount
LOOSE COLLECTION t_uge_Grp_for_coda_tab
DOUBLE;
/*
IF l_uge_Grp_for_coda_tab. COUNT > 0 THEN
cm002p.std_coda_post_cashing_out_bulk (p_on_behalf_of_society_number = > r_adj_roy_trans.on_behalf_of_soc_nbr,)
p_right_type = > r_adj_roy_trans.right_type,
p_Usage_Groups_for_coda_tab = > t_uge_Grp_for_coda_tab,
p_reverse_posting_direction = > FALSE,
p_posting_override_direction = > NULL,
p_cohi_id = > NULL
);
END IF;
*/
END LOOP;
end;
Here's what you need to do:
SELECT Usage_Groups_for_coda_rec(6874534, "It is a test - CAE", 100, 50)
LOOSE COLLECTION t_uge_Grp_for_coda_tab
DOUBLE;
You try bulk collect into a collection of Usage_Groups_for_coda_recs, then you will need to make type compatible using the implicit of the type constructor.
-
ORA-00947: not enough values to choose from
Hi all
I created the type object and its type of nested table to hold the values.
But am getting error as follows:
Connected to Personal Oracle Database 10g Release 10.2.0.1.0 Connected as hr SQL> SQL> create or replace type t_obj as object 2 ( id number, 3 dt date 4 ); 5 / Type created SQL> create or replace type t_obj_nt is table of t_obj; 2 / Type created SQL> set serveroutput on SQL> SQL> declare 2 l_tab t_obj_nt; 3 4 begin 5 6 select level,(sysdate+ level) into l_tab 7 from dual connect by level < 5; 8 9 dbms_output.put_line(l_tab.count); 10 end; 11 / declare l_tab t_obj_nt; begin select level,(sysdate+ level) into l_tab from dual connect by level < 5; dbms_output.put_line(l_tab.count); end; ORA-06550: line 8, column 3: PL/SQL: ORA-00947: not enough values ORA-06550: line 7, column 3: PL/SQL: SQL Statement ignored SQL>
Concerning
SID
CREATE or REPLACE type t_obj
AS
object
(
ID NUMBER,
DT DATE);
CREATE or REPLACE type t_obj_nt
IS
TABLE OF t_obj;
-Option 1
DECLARE
l_tab t_obj_nt;
BEGIN
-You get several lines.
SELECT t_obj (level, (sysdate + level)) in BULK COLLECT INTO l_tab FROM dual CONNECT BY level<>
dbms_output.put_line (l_tab. (Count);
END;
-
ORA-06592: not found CASE when executing CASE statement
Hello
I have a table of application where I built a form master detail (table with 33 columns, 13 is not hidden items and rest are hidden).
When I run the page I get an error "error while rendering page, article. P10_TIME_SAVED_FREQUENCY, ORA-06592: not found when executing CASE statement CASE"
Error:
Error during rendering of the element on the page P8_MONEY_SAVED_FLAG.
ORA-06592: not found CASE when executing CASE statement
Technical information (only visible to developers)
is_internal_error: true
apex_error_code: WWV_FLOW_FORM. UNHANDLED_ERROR
ora_sqlcode:-6592
ora_sqlerrm: ORA-06592: not found CASE when executing CASE statement
Component.type: APEX_APPLICATION_PAGE_ITEMS
Component.ID: 13345536607188241
Component.Name: P8_MONEY_SAVED_FLAG
error_backtrace:
ORA-06512: at "APEX_040200.WWV_FLOW_NATIVE_ITEM", line 1751
ORA-06512: at "APEX_040200.WWV_FLOW_NATIVE_ITEM", line 4241
ORA-06512: at "APEX_040200.WWV_FLOW_PLUGIN", line 1251
ORA-06512: at "APEX_040200.WWV_FLOW_FORMS", line 977
ORA-06512: at "APEX_040200.WWV_FLOW_FORMS", line 1406
DEBUG:
Exploitation forest exception in final_exception_handler:
SQLERRM: ORA-20987: APEX - error during rendering of the element on the page P8_MONEY_SAVED_FLAG. -
ORA-06592: not found CASE during the execution of the instruction BOX Backtrace: ORA-06512: at "APEX_040200.WWV_FLOW_ERROR"
line 853 ORA-06512: at "APEX_040200.WWV_FLOW_ERROR"
line 888 ORA-06512: at "APEX_040200.WWV_FLOW_DISP_PAGE_PLUGS"
line of 3240 ORA-06512: at "APEX_040200.WWV_FLOW_PAGE"
line of 1780 ORA-06512: at "APEX_040200.WWV_FLOW_PAGE"
line of 1950 ORA-06512: at "APEX_040200.WWV_FLOW", line 6725
How to solve this problem. Please advice
Oracle Apex Vesion: 4.2.1
Thank you
BO123 wrote:
Hello
I have a table of application where I built a form master detail (table with 33 columns, 13 is not hidden items and rest are hidden).
When I run the page I get an error "error while rendering page, article. P10_TIME_SAVED_FREQUENCY, ORA-06592: not found when executing CASE statement CASE"
Error:
Error during rendering of the element on the page P8_MONEY_SAVED_FLAG.
ORA-06592: not found CASE when executing CASE statement
Technical information (only visible to developers)
is_internal_error: true
apex_error_code: WWV_FLOW_FORM. UNHANDLED_ERROR
ora_sqlcode:-6592
ora_sqlerrm: ORA-06592: not found CASE when executing CASE statement
Component.type: APEX_APPLICATION_PAGE_ITEMS
Component.ID: 13345536607188241
Component.Name: P8_MONEY_SAVED_FLAG
error_backtrace:
ORA-06512: at "APEX_040200.WWV_FLOW_NATIVE_ITEM", line 1751
ORA-06512: at "APEX_040200.WWV_FLOW_NATIVE_ITEM", line 4241
ORA-06512: at "APEX_040200.WWV_FLOW_PLUGIN", line 1251
ORA-06512: at "APEX_040200.WWV_FLOW_FORMS", line 977
ORA-06512: at "APEX_040200.WWV_FLOW_FORMS", line 1406
DEBUG:
Exploitation forest exception in final_exception_handler:
SQLERRM: ORA-20987: APEX - error during rendering of the element on the page P8_MONEY_SAVED_FLAG. -
ORA-06592: not found CASE during the execution of the instruction BOX Backtrace: ORA-06512: at "APEX_040200.WWV_FLOW_ERROR"
line 853 ORA-06512: at "APEX_040200.WWV_FLOW_ERROR"
line 888 ORA-06512: at "APEX_040200.WWV_FLOW_DISP_PAGE_PLUGS"
line of 3240 ORA-06512: at "APEX_040200.WWV_FLOW_PAGE"
line of 1780 ORA-06512: at "APEX_040200.WWV_FLOW_PAGE"
line of 1950 ORA-06512: at "APEX_040200.WWV_FLOW", line 6725
How to solve this problem. Please advice
Oracle Apex Vesion: 4.2.1
Post a backtrace of the page see the request and the item type properties and the source / default to the value of the P8_MONEY_SAVED_FLAG element.
Seems to be similar to ORA-06592 with the page only items appear, which also involved a master/detail form. Can you reproduce this on apex.oracle.com?
-
SQL error: ORA-00979: not a GROUP BY
Hi team,
I am trying to execute the query
SELECT DISTINCT comp.company_name |' -' || COMP.contract_number AS 'company_name '.
, UPPER (bh.first_name) AS 'budget_holder '.
, INITCAP (sup.first_name) |' -' || SUP. Surname AS 'supervisor '.
, INITCAP (emp.status) AS "Department".
, INITCAP (emp.first_name |) » '|| EMP. Surname) AS "employee."
r.employee_id
, emp.paaf_number AS 'paaf_num '.
, emp.employee_payroll_number AS 'payroll_num '.
, emp.discipline AS 'discipline '.
, NVL (SUM (tg.week_day1), 0) AS "day 1".
, NVL (SUM (tg.week_day2), 0) AS "day 2".
, NVL (SUM (tg.week_day3), 0) AS day '3 '.
, NVL (SUM (tg.week_day4), 0) AS "day4.
, NVL (SUM (tg.week_day5), 0) AS "day5".
, NVL (SUM (tg.week_day6), 0) AS "day6.
, NVL (SUM (tg.week_day7), 0) AS "day 7".
r.valid_from
r.valid_to
Tw_roster_data r
JOIN tw_employee emp
ON emp.employee_id = r.employee_id
JOIN tg tw_timesheet_stage
ON tg.employee_id = r.employee_id
AND tg.week_commencing = r.valid_from
JOIN the tw_contracting_company comp
ON comp.contracting_company_id = r.contracting_company_id
JOIN tw_supervisor sup
ON sup.supervisor_id = tg.supervisor_id
JOIN tw_budget_holder bh
ON bh.budget_holder_id = sup.budget_holder_id
WHERE r.contracting_company_id = 101
AND r.VALID_FROM = January 31, 2015.
AND r.VALID_TO = February 6, 2015"
Group of r.employee_id, comp.company_name, bh.first_name,
EMP.paaf_number, emp.employee_payroll_number, emp.discipline,
r.valid_from, r.valid_to;
But still the error below
Error in the command line: 1 column: 17
Error report-
SQL error: ORA-00979: not a GROUP BY expression
00979 00000 - "not a GROUP BY expression"
Can help.
Hello
When to use analytical function oracle other columns used based on the analysis, must be included in the GROUP BY Clause
SELECT expression1, expression2, ... expression_n, aggregate_function (expression) FROM tables WHERE conditions GROUP BY expression1, expression2, ... expression_n;
SQL 101: Seen are medium and other aggregate data
SELECT DISTINCT comp.company_name || ' - ' || comp.contract_number AS "company_name", UPPER (bh.first_name) AS "budget_holder", INITCAP (sup.first_name) || ' - ' || sup.surname AS "supervisor", INITCAP (emp.status) AS "department", INITCAP (emp.first_name || ' ' || emp.surname) AS "employee", r.employee_id, emp.paaf_number AS "paaf_num", emp.employee_payroll_number AS "payroll_num", emp.discipline AS "discipline", NVL (SUM (tg.week_day1), 0) AS "day1", NVL (SUM (tg.week_day2), 0) AS "day2", NVL (SUM (tg.week_day3), 0) AS "day3", NVL (SUM (tg.week_day4), 0) AS "day4", NVL (SUM (tg.week_day5), 0) AS "day5", NVL (SUM (tg.week_day6), 0) AS "day6", NVL (SUM (tg.week_day7), 0) AS "day7", r.valid_from, r.valid_to FROM tw_roster_data r JOIN tw_employee emp ON emp.employee_id = r.employee_id JOIN tw_timesheet_stage tg ON tg.employee_id = r.employee_id AND tg.week_commencing = r.valid_from JOIN tw_contracting_company comp ON comp.contracting_company_id = r.contracting_company_id JOIN tw_supervisor sup ON sup.supervisor_id = tg.supervisor_id JOIN tw_budget_holder bh ON bh.budget_holder_id = sup.budget_holder_id WHERE r.contracting_company_id = 101 AND r.VALID_FROM = '31-JAN-2015' AND r.VALID_TO = '06-FEB-2015' GROUP BY comp.contract_number ,comp.company_name ,bh.first_name ,sup.first_name ,sup.surname , emp.status ,emp.first_name ,emp.surname r.employee_id, emp.paaf_number, emp.employee_payroll_number, emp.discipline, r.valid_from, r.valid_to;
-
Porting of some former service C code for TUXEDO that used Informix to Oracle... a trial.
Service logic uses dynamic SQL to SQL and pre-compiler instructions to then run the
Statement and return to the client in the form of an XML doc.
Port is done now and during the test initial (after you have configured the TUXCONFIG, environment, Oracle DB, etc) am receiving an Oracle ORA-01012 not connected when the TUXEDO service routine tries to prepare the SQL SELECT statement.
The statement in question is a simple "SELECT * FROM EMP".
The server is defined in a group belonging to a group that has an OPENINFO string that connects to the Oracle DB. This seems to be the case I see the sqlplus using the view v$ session where the user sessions connect when servers of launch.
No idea why the EXEC SQL PREPARE is causing the server to disconnect from the DB?
THX.
W. MacKenzie
It was with the inclusion of the DB = orcl tag in my OPENINFO in the TUXCONFIG. Remove that and specify the database instance in the envfile for the configuration. Works now.
-
ORA-24372: not valid to describe object
I get this error in one of my schema:
ORA-24372: not valid to describe object
can someone help me please in this?
my database is oracle 11 GR 2
You can have problems related to the privilege... check the invalid objects under your schema.
and see why they are not valid, they could be missing "execute permissions... etc.
also you can check view dba_errors errors in your schema for more information.
I hope this helps.
Kind regards
-
ODI the Package execution fails with ODI-1228 and ORA-20000 not sufficient privileges to analyze
Hello
I am trying to execute the package to ODI to have this error:
Header 1 ODI-1228: GATHER_SCHEMA_STATS-DW_STAGE (procedure) task fails when connecting ORACLE target ORACLE_SERVER.
Caused by: java.sql.SQLException: ORA-20000: not sufficient privileges to analyze an object in the schema
ORA-06512: at "SYS." DBMS_STATS", line 24867
ORA-06512: at "SYS." DBMS_STATS", line 24945
ORA-06512: at "SYS." DBMS_STATS", line of 24899
ORA-06512: at line 2
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:462)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)
at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:931)
at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:481)
at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:205)
at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:548)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:217)
at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:1115)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1488)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3769)
at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3954)
at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1539)
at oracle.odi.runtime.agent.execution.sql.SQLCommand.execute(SQLCommand.java:163)
at oracle.odi.runtime.agent.execution.sql.SQLExecutor.execute(SQLExecutor.java:102)
at oracle.odi.runtime.agent.execution.sql.SQLExecutor.execute(SQLExecutor.java:1)
at oracle.odi.runtime.agent.execution.TaskExecutionHandler.handleTask(TaskExecutionHandler.java:50)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.processTask(SnpSessTaskSql.java:2913)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2625)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:558)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:464)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2093)
to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ 2.doAction(StartSessRequestProcessor.java:366)
at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:300)
to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$ 0 (StartSessRequestProcessor.java:292)
to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ StartSessTask.doExecute (StartSessRequestProcessor.java:855)
at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:126)
to oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$ 2.run(DefaultAgentTaskExecutor.java:82)
at java.lang.Thread.run(Thread.java:744)
(1) DW_STAGE and DW_REPORT have "ANY ANALYSER" and "UNLIMITED TABLESPACE" privilege and roles "S/n", 'CONNECT' and 'RESOURCE '.
(2) agents are all running
(3) tested ORACLE_SERVER and he succeeded
Need for emergency assistance.
Thanks in advance-
ADI
OK, I solved it.
As part of Oracle under Technologies--> Oracle in the Studio of the ODI, I gave in the uid and password for DW_STAGE and it fixed the problem!
Thank you all for your help and suggestions!
ADI-
-
Listagg function gives ORA-00979: not a GROUP BY expression error
Hello
I have an environment that supports the Listagg function. Suite works perfectly:
Select task_code, LISTAGG(ename||) e ('| role |') (',',') WITHIN GROUP (ORDER BY ename) as employees
team
where task_code = '01.07.05'
Task_code group
However, this is just a test request, the real is a little wider and I can't get the function works, I get ORA-00979: not a GROUP BY expression error.
Here's my query (the column names are in Dutch, but that shouldn't really be a problem):
SELECT distinct op_sod.sod_code, op_sod.sod_omschr_lang, op_ood.ood_code, op_ood.ood_omschr_lang, op_activiteit.act_code, op_activiteit.act_omschr_lang, op_taak.taak_code, op_taak.taak_omschr_lang, op_afdeling___master.afd_code, op_taak.belmo, op_taak_j.planning_la,
LISTAGG (op_ploeg.wn_naam |) ' ('| op_ploeg.rol |') (',',') WITHIN GROUP (ORDER BY op_ploeg.wn_naam) as employees.
"Write subtaak/mijlpaal toe."
op_teamplanning.subtaak_mijlpaal as subtaak_of_mijlpaal,
op_teamplanning.subtaak_omschr | -case when op_teamplanning.subtaak_mijlpaal = 'BELMO Mijlpaal' then ' (BRUNO mijlpaalnr: ' | nvl (op_teamplanning.nummer, 0) |) ')' other ' ' end
as subtaak_mijlpaal_omschrijving, op_teamplanning.deadline as date limit, op_teamplanning.status as status,
trim (both
case when op_teamplanning.vlag1 = 'Geen' and op_teamplanning.vlag2 = 'Geen' and op_teamplanning.vlag3 = 'Geen' and op_teamplanning.vlag4 = 'Geen'
and op_teamplanning.vlag5 = 'Geen' or op_teamplanning.vlag1 is null and op_teamplanning.vlag2 is null and op_teamplanning.vlag3 is null
op_teamplanning.vlag5 is null and op_teamplanning.vlag4 is null then 'Geen '.
Another pad (both case when op_teamplanning.vlag1 = 'Geen' then "else trim (both from op_teamplanning.vlag1) end) |
trim (both case when op_teamplanning.vlag2 = 'Geen' then "another ',' | trim (both from op_teamplanning.vlag2) end) |
trim (both case when op_teamplanning.vlag3 = 'Geen' then "another ',' | trim (both from op_teamplanning.vlag3) end) |
trim (both case when op_teamplanning.vlag4 = 'Geen' then "another ',' | trim (both from op_teamplanning.vlag4) end) |
trim (both case when op_teamplanning.vlag5 = 'Geen' then "another ',' | trim (both from op_teamplanning.vlag5) end) end) as Beleidsvlaggen,
op_teamplanning.naam_verantw as quotation, op_teamplanning.subtaak_id as subtaak_id, nvl (op_teamplanning.nummer, 0) as Nummer, nvl (op_teamplanning.regelgevingsagenda, 'Nee') as
Regelgeving, op_teamplan_subsubtaak.subsubtaak_submijlpaal as subsubtaak_submijlpaal, op_teamplan_subsubtaak.subsubtaak_id as subsubtaak_id, op_teamplan_subsubtaak.subsubtaak_omschr
like subsubtaak_omschr, op_teamplan_subsubtaak.deadline, sub_deadline, op_teamplan_subsubtaak.status as sub_status, op_teamplan_subsubtaak.naam_verantw as naam_verantw
Of...
WHERE THE...
Group of op_sod.sod_code, op_sod.sod_omschr_lang, op_ood.ood_code, op_ood.ood_omschr_lang, op_activiteit.act_code, op_activiteit.act_omschr_lang, op_taak.taak_code, op_taak.taak_omschr_lang, op_afdeling___master.afd_code, op_taak.belmo, op_taak_j.planning_la
Can someone tell me the reason for this error?
Thanks in advance!
Kind regards
NDG
NDG123 wrote:
I don't really understand your other question:
Is below for example, a group of expression?
op_teamplanning.subtaak_mijlpaal
After some additional research:
The group by mistake is not appear anymore when I delete all fields after the listagg field, that might be a clue to the solution.
It is not difficult to understand. You can have other columns not aggregated in your projection on the side of those listed in the group by expression.
The reason for ORA-01489 is that the resulting string will become long and exceeds 4000 bytes.
You will find several solution in this forum.
For example
Maybe you are looking for
-
Removable HP X 2 spectrum: Spectrum X 2 lights as it should
Just recently, whenever I try to turn on my spectrum HP X 2 detachable off, she, she turns. The F6 Mute button has the light, on which seems to indicate that the device can be on, but the screen is not. To turn the unit on, I stuck the power button u
-
Update BIOS question on the Qosmio F50/F55 series
I have advanced and updated the bios of the 1.30 the 2.20 and everything went well.I did not like the new bios for the portable was little more warm, so I went to downgrade to the 1.30.I have two toshiba Web site and has made the winphlash64. Thing i
-
Re: HP Designjet 130nr... solved
Hello I have problem my printer HP Designjet 130nr at each startup, it still shows 3 pages by aligning the test print heads. Thank you for your help
-
HP pavilion ab027ne 15: hp Pavilion 15 drivers ab027ne
Hi guys,. I bought the computer laptop hp pavilion ab027ne 15. It comes pre installed with windows 8.1. I installed windows 7 and got most of drivers installed with the exception of the following: 1 SM Bus controller 2 USB Where can I get the drivers
-
Msg of error received after having reinstalled windows xp. Please, what's up?