Errors ORA-01747 / ORA-00933 ???
I'm running Oracle 8i on win98.
When I try to update numbers in a NUMBER(7,3) column with values like 18,48 I get this errormessage:
ORA-01747: invalid user.table.column-, table.column- or columnspecification
If I enter numbers without decimals in the same column, I get this error-message:
ORA-00933: SQL-command incorrectly terminated.
(both messages are translated from danish)
What is wrong ?
Jesper
all that means..is
ora-01747
A column name was specified improperly in the current SQL statement
ORA-00933: SQL command not properly ended
Cause: The SQL statement ends with an inappropriate clause. For example, an ORDER BY clause may have been included in a CREATE VIEW or INSERT statement.
ORDER BY cannot be used to create an ordered view or to insert in a certain order. Also, an improper SQL ending occurs if IN clause is used with only one argument (IN(X),
for example). An IN clause must have two or more arguments.
Action: Correct the syntax by removing the inappropriate clauses. It may be possible to duplicate the removed clause with another SQL statement. For example, to order the
rows of a view, do so when querying the view and not when creating it. This error can also occur in SQL*Forms applications if a continuation line is indented. Check for
indented lines and delete these spaces.
these are pretty typicall errors...
hope this helps
[email protected]
Similar Messages
-
Hi,
I am getting Internal Servlet Error:
javax.servlet.ServletException: SQL error: ORA-01747: invalid
user.table.column, table.column, or column specification
<%@ page language="java" %>
<%@ page import="com.ora.jsp.sql.*" %>
<%@ page import="com.ora.jsp.util.*" %>
<%@ page import="sx_gr.beans.*" %>
<%@ include file="../include/timeoutCheck.jsp" %>
<%@ taglib uri="/orataglib" prefix="ora" %>
<%@ include file="../include/dataSource.jsp" %>
<% String AX=request.getParameter("AXMonth") + "-" +
request.getParameter("AXDay") + "-" +
request.getParameter("AXYear");
String pFlag = "T";
if (request.getParameter("pFlag") == null)
pFlag = "T";
%>
<ora:sqlTransaction dataSource="senddetail" >
<ora:sqlUpdate >
UPDATE Sender SET send_Id= ?,Send_Status= ?,AX= ?,
WHERE s_id= ?
<ora:sqlStringValue param="send_Id"/>
<ora:sqlStringValue param="Send_Status"/>
<ora:sqlDateValue stringValue="<%= AX %>" pattern="MON-dd-yyyy" />
</ora:sqlUpdate>
<%-- Close the transaction --%>
</ora:sqlTransaction>Can anyone help me out.?
I have the privilleges to update too.
Thanks,
AarthyTake the last comma out:
UPDATE Sender SET send_Id= ?,Send_Status= ?,AX= ?,
should be
UPDATE Sender SET send_Id= ?,Send_Status= ?,AX= ?
be sure there's a space between the bind parameter and the WHERE.
Why use an Oracle tag library when there's JSTL?
Why have database stuff in a JSP at all? Better to put it in an object and let the JSP be pure view, as it should be. -
Here is log
=====================================================
18-AUG 11:06:25 : ======================================== 18-AUG
11:06:25 : Error in PROCEDURE=LOAD_SETUP_TRANSITION, TABLE=MSC_SETUP_TRANSITIONS 18-AUG 11:06:27 : COLUMN=ORGANIZATION_CODE,
VALUE=TST:M1 18-AUG 11:06:27 : COLUMN=RESOURCE_ID, VALUE=14 18-AUG
11:06:27 : COLUMN=FROM_SETUP_ID, VALUE=1 18-AUG 11:06:27 :
COLUMN=TO_SETUP_ID, VALUE=2 18-AUG 11:06:27 : ORA-00001: unique constraint (MSC.MSC_SETUP_TRANSITIONS_U1) violated 18-AUG 11:06:27 :
======================================== 18-AUG 11:06:27 : Error in PROCEDURE=LOAD_SETUP_TRANSITION, TABLE=MSC_SETUP_TRANSITIONS 18-AUG
11:06:27 : COLUMN=ORGANIZATION_CODE, VALUE=TST:M1 18-AUG 11:06:27 :
COLUMN=RESOURCE_ID, VALUE=14 18-AUG 11:06:27 : COLUMN=FROM_SETUP_ID,
VALUE=2 18-AUG 11:06:28 : COLUMN=TO_SETUP_ID, VALUE=1 18-AUG 11:06:28 :
ORA-00001: unique constraint (MSC.MSC_SETUP_TRANSITIONS_U1) violated 18-AUG 11:06:28 : ======================================== 18-AUG
11:06:28 : Error in PROCEDURE=LOAD_SETUP_TRANSITION, TABLE=MSC_SETUP_TRANSITIONS 18-AUG 11:06:28 : COLUMN=ORGANIZATION_CODE,
VALUE=TST:M1 18-AUG 11:06:28 : COLUMN=RESOURCE_ID, VALUE=16 18-AUG
11:06:28 : COLUMN=FROM_SETUP_ID, VALUE=1 18-AUG 11:06:28 :
COLUMN=TO_SETUP_ID, VALUE=2 18-AUG 11:06:28 : ORA-00001: unique constraint (MSC.MSC_SETUP_TRANSITIONS_U1) violated 18-AUG 11:06:28 :
======================================== 18-AUG 11:06:28 : Error in PROCEDURE=LOAD_SETUP_TRANSITION, TABLE=MSC_SETUP_TRANSITIONS 18-AUG
11:06:28 : COLUMN=ORGANIZATION_CODE, VALUE=TST:M1 18-AUG 11:06:28 :
COLUMN=RESOURCE_ID, VALUE=16 18-AUG 11:06:28 : COLUMN=FROM_SETUP_ID,
VALUE=2 18-AUG 11:06:28 : COLUMN=TO_SETUP_ID, VALUE=1 18-AUG 11:06:28 :
ORA-00001: unique constraint (MSC.MSC_SETUP_TRANSITIONS_U1) violated 18-AUG 11:06:28 : Total resource transition = 167 18-AUG 11:06:28 : .1 minutes elapsed.
18-AUG 11:06:30 : Procedure MSC_CL_RPO_ODS_LOAD.LOAD_IRO_DEMAND;
started. 18-AUG 11:06:31 : <<LOAD_IRO_DEMAND>> 18-AUG 11:06:31 :
<<CURSOR>>INSERT /*+ APPEND */ INTO DEMANDS_TST( PLAN_ID, DEMAND_ID, DISPOSITION_ID, INVENTORY_ITEM_ID, ORGANIZATION_ID, USING_ASSEMBLY_ITEM_ID, USING_ASSEMBLY_DEMAND_DATE, USING_REQUIREMENT_QUANTITY, QUANTITY_PER_ASSEMBLY, ISSUED_QUANTITY, ASSEMBLY_DEMAND_COMP_DATE, DEMAND_TYPE, ORIGINATION_TYPE, SOURCE_ORGANIZATION_ID, RESERVATION_ID, OP_SEQ_NUM, DEMAND_CLASS, REPETITIVE_SCHEDULE_ID, SR_INSTANCE_ID, PROJECT_ID, TASK_ID, PLANNING_GROUP, UNIT_NUMBER, ORDER_NUMBER, REPAIR_LINE_ID, WIP_ENTITY_ID, WIP_ENTITY_NAME, WIP_STATUS_CODE, WIP_SUPPLY_TYPE, ASSET_ITEM_ID, ASSET_SERIAL_NUMBER, COMPONENT_SCALING_TYPE, COMPONENT_YIELD_FACTOR,null,null, REFRESH_NUMBER, LAST_UPDATE_DATE, LAST_UPDATED_BY, CREATION_DATE, CREATED_BY)SELECT -1, MSC_DEMANDS_S.nextval, NVL(ms.TRANSACTION_ID,-1) DISPOSITION_ID, t1.INVENTORY_ITEM_ID, msd.ORGANIZATION_ID, t2.INVENTORY_ITEM_ID USING_ASSEMBLY_ITEM_ID, nvl(msd.USING_ASSEMBLY_DEMAND_DATE,ms.new_schedule_date),
msd.USING_REQUIREMENT_QUANTITY, msd.QUANTITY_PER_ASSEMBLY, msd.QUANTITY_ISSUED, msd.ASSEMBLY_DEMAND_COMP_DATE, msd.DEMAND_TYPE, msd.ORIGINATION_TYPE, msd.SOURCE_ORGANIZATION_ID, msd.RESERVATION_ID, msd.OPERATION_SEQ_NUM, msd.DEMAND_CLASS, msd.REPETITIVE_SCHEDULE_ID, msd.SR_INSTANCE_ID, msd.PROJECT_ID, msd.TASK_ID, msd.PLANNING_GROUP, msd.END_ITEM_UNIT_NUMBER,
REPLACE(REPLACE(substr(msd.ORDER_NUMBER,1,62),:v_chr10),:v_chr13)
ORDER_NUMBER, REPAIR_LINE_ID , msd.WIP_ENTITY_ID, msd.WIP_ENTITY_NAME, msd.WIP_STATUS_CODE, msd.WIP_SUPPLY_TYPE, t3.inventory_item_id ASSET_ITEM_ID, msd.ASSET_SERIAL_NUMBER, msd.COMPONENT_SCALING_TYPE, msd.COMPONENT_YIELD_FACTOR,null,null, :v_last_collection_id, :v_current_date, :v_current_user, :v_current_date, :v_current_user FROM MSC_ITEM_ID_LID t1, MSC_ITEM_ID_LID t2, MSC_ITEM_ID_LID t3,SUPPLIES_TST ms, MSC_ST_DEMANDS msd WHERE msd.SR_INSTANCE_ID= 21 AND msd.ORIGINATION_TYPE = 77 AND msd.DELETED_FLAG= 2 AND t1.SR_INVENTORY_ITEM_ID= msd.inventory_item_id AND t1.sr_instance_id= msd.SR_INSTANCE_ID AND t2.SR_INVENTORY_ITEM_ID= msd.using_assembly_item_id AND t2.sr_instance_id= msd.SR_INSTANCE_ID AND t3.SR_INVENTORY_ITEM_ID (+)= msd.ASSET_ITEM_ID AND t3.sr_instance_id (+) = msd.SR_INSTANCE_ID AND ms.sr_instance_id= msd.SR_INSTANCE_ID AND ms.ORGANIZATION_ID= msd.ORGANIZATION_ID AND ms.DISPOSITION_ID= msd.repair_line_id AND ms.plan_id=-1 AND ms.ORDER_TYPE= 75 18-AUG
11:06:31 : ORA-01747: invalid user.table.column, table.column, or column specification 18-AUG 11:06:31 : .1 minutes elapsed.
===================================================
any help is appreciated. Just got this Bug 8661320, ref with no help. Its on R12 12.1.1Sundeep,
No similar errors are reported in Metalink, so I would suggest you log a SR.
Regards,
Hussein -
Bug in UpdatableResultSet causes ORA-01747
Hi,
when calling select, it is necessary to put column names colliding with reserved words in double-quotes.
In that case, select works fine, but when the corresponding colum is updated, the latest thin JDBC driver throws an exception in updateRow():
java.lang.RuntimeException: java.sql.SQLException: ORA-01747: invalid user.table.column, table.column, or column specification.
Allways adding the quotes in prepare_updateRow_statement(int _numColsChanged) seems to fix the problem (see below), but it may introduce a new problem with case (in)sensitivity (?)
original code (guess based on the bytecode):
if(j > 0)
updateSql.append(", ");
updateSql.append(
getInternalMetadata()
.getColumnName(m_idxColsChanged[j] + 1));
updateSql.append(" = ? ");
fixed:
if(j > 0)
updateSql.append(", ");
updateSql.append('"');
updateSql.append(
getInternalMetadata()
.getColumnName(m_idxColsChanged[j] + 1));
updateSql.append("\" = ? ");
I must admit that I am not very happy with the quality and compatibility of the drivers. Yesterday I had to spend a lot of time to figure out that Oracle had taken the freedom to rename the SQL92 standard scalar function "position" to "instr". Of course this would have been a lot easier if the exception would not have said something useful instead of "right parenthesis missing" or "colum not found" (keeping the actual name of the "column" a secret).
Today I had to learn that when calling 'select("*")', it is not possible to move to the insert row. Again, the error message did not say "sorry, we took the freedom not implement moveToInsertRow() for select *" (which at least would have made the workaround obvious), but "table is read only".
Perhaps forcing developers to install two different open source alternatives to distinguish between own bugs, incompatibilities and Oracle issues is not the best idea to keep them loyal.
Best regards
Stefan HausteinHi,
when calling select, it is necessary to put column names colliding with reserved words in double-quotes.
In that case, select works fine, but when the corresponding colum is updated, the latest thin JDBC driver throws an exception in updateRow():
java.lang.RuntimeException: java.sql.SQLException: ORA-01747: invalid user.table.column, table.column, or column specification.
Allways adding the quotes in prepare_updateRow_statement(int _numColsChanged) seems to fix the problem (see below), but it may introduce a new problem with case (in)sensitivity (?)
original code (guess based on the bytecode):
if(j > 0)
updateSql.append(", ");
updateSql.append(
getInternalMetadata()
.getColumnName(m_idxColsChanged[j] + 1));
updateSql.append(" = ? ");
fixed:
if(j > 0)
updateSql.append(", ");
updateSql.append('"');
updateSql.append(
getInternalMetadata()
.getColumnName(m_idxColsChanged[j] + 1));
updateSql.append("\" = ? ");
I must admit that I am not very happy with the quality and compatibility of the drivers. Yesterday I had to spend a lot of time to figure out that Oracle had taken the freedom to rename the SQL92 standard scalar function "position" to "instr". Of course this would have been a lot easier if the exception would not have said something useful instead of "right parenthesis missing" or "colum not found" (keeping the actual name of the "column" a secret).
Today I had to learn that when calling 'select("*")', it is not possible to move to the insert row. Again, the error message did not say "sorry, we took the freedom not implement moveToInsertRow() for select *" (which at least would have made the workaround obvious), but "table is read only".
Perhaps forcing developers to install two different open source alternatives to distinguish between own bugs, incompatibilities and Oracle issues is not the best idea to keep them loyal.
Best regards
Stefan Haustein -
select b.emp_category_id,max(a.basic_salary)
from m_pis_employee a,m_pis_emp_category b
where a.emp_category_id=b.emp_category_id
group by b.emp_category_id;
this one run successfully...but when i want to group by on all column present in table b then what the syntax. i am written below one but its return a error.there is total 15 column in table b
select b.*,max(a.basic_salary)
from m_pis_employee a,m_pis_emp_category b
where a.emp_category_id=b.emp_category_id
group by b.*
ORA-01747: invalid user.table.column, table.column, or column specification.
plz help me...Hi,
You will have to put all the column names from table m_pis_emp_category in the GROUP BY clause. You cannot use * in thesame.
Regards
Ameya -
ORA-01747 when updating a remote table
Hi,
Here is my table :
SQL> desc infolig2.pylone_type
Nom NULL ? Type
PYL_CODE_PYLONE NOT NULL VARCHAR2(32)
OPY_CODE NOT NULL VARCHAR2(32)
NPY_CODE NOT NULL VARCHAR2(32)
PYL_TENS_CONS VARCHAR2(32)
PYL_NB_TERNE FLOAT(126)
PYL_HAUT_TOTAL FLOAT(126)
PYL_HAUT_SS_CONS FLOAT(126)
PYL_POIDS FLOAT(126)
PYL_SURFACE_SOL FLOAT(126)
PYL_SURFACE_PEINTE FLOAT(126)
PYL_DATE_CREAT NOT NULL DATE
PYL_DATE_MODIF DATE
PYL_TYPE_MODIF VARCHAR2(1)
PYL_CODE_UTIL VARCHAR2(20)
PYL_DESIGNATION VARCHAR2(50)
PYL_ETAT VARCHAR2(15)
PYL_INDICE_REV VARCHAR2(3)
I need to update it from a remote database.
So, I run the following procedure :
set serveroutput on
declare
GET_DESIGNATION VARCHAR2(10) := 'AUVERGNE';
OIP_PYL_CODE_PYLONE VARCHAR2(32) := 'TEST1';
OIP_OPY_CODE VARCHAR2(32) := 'ORIG3';
OIP_NPY_CODE VARCHAR2(32) := 'NATPYL2';
OIP_PYL_TENS_CONS VARCHAR2(32) := null;
OIP_PYL_NB_TERNE FLOAT := 1;
OIP_PYL_HAUT_TOTAL FLOAT := null;
OIP_PYL_HAUT_SS_CONS FLOAT := null;
OIP_PYL_POIDS FLOAT := null;
OIP_PYL_SURFACE_SOL FLOAT := null;
OIP_PYL_SURFACE_PEINTE FLOAT := null;
OIP_PYL_DATE_CREAT DATE := SYSDATE;
OIP_PYL_DATE_MODIF DATE := SYSDATE;
OIP_PYL_TYPE_MODIF VARCHAR2(1) := 'M';
OIP_PYL_CODE_UTIL VARCHAR2(20) := 'RTE REFERENCE';
OIP_PYL_DESIGNATION VARCHAR2(50) := 'TEST 1';
OIP_PYL_ETAT VARCHAR2(15) := 'interdit';
OIP_PYL_INDICE_REV VARCHAR2(3) := '23';
OIP_PYL_CODE_PYLONE_SUBST VARCHAR2(32) := 'CODEPYL5';
begin
execute immediate 'UPDATE infolig2.PYLONE_TYPE@'||GET_DESIGNATION||' SET
PYL_CODE_PYLONE = :1,
OPY_CODE = :2,
NPY_CODE = :3,
PYL_TENS_CONS = :4,
PYL_NB_TERNE = :5,
PYL_HAUT_TOTAL = :6,
PYL_HAUT_SS_CONS = :7,
PYL_POIDS = :8,
PYL_SURFACE_SOL = :9,
PYL_SURFACE_PEINTE = :10,
PYL_DATE_CREAT = :11,
PYL_DATE_MODIF = :12,
PYL_TYPE_MODIF = :13,
PYL_CODE_UTIL = :14,
PYL_DESIGNATION = :15,
PYL_ETAT = :16,
PYL_INDICE_REV = :17,
WHERE PYL_CODE_PYLONE = :18'
USING OIP_PYL_CODE_PYLONE,OIP_OPY_CODE,OIP_NPY_CODE,OIP_PYL_TENS_CONS,OIP_PYL_NB_TERNE,OIP_PYL_HAUT_TOTAL,OIP_PYL_HAUT_SS_CONS,OIP_PYL_POIDS,OIP_PYL_SURFACE_SOL,OIP_PYL_SURFACE_PEINTE,OIP_PYL_DATE_CREAT,OIP_PYL_DATE_MODIF,OIP_PYL_TYPE_MODIF,OIP_PYL_CODE_UTIL,OIP_PYL_DESIGNATION,
upper(translate(OIP_PYL_ETAT,'éè','ee')),OIP_PYL_INDICE_REV, OIP_PYL_CODE_PYLONE_SUBST;
exception
when others then
dbms_output.put_line('ERREUR ORACLE DETECTEE ***');
dbms_output.put_line('Message Erreur : '||SUBSTR(SQLERRM,1,245));
end;
I receive the error :
ORA-01747: invalid user.table.column, table.column, or columns specification
What is the problem ?
Regards,
RachelThis reply was very useful for me. I have written insert scripts in the package where I had put comma after last_updated_date in the insert statement, I got the error -
ORA-01747: invalid user.table.column, table.column, or column specification . After removing the comma and adding right parenthesis it worked fine
INSERT INTO CPT_ACTIVITY_SALES (
WS_DATE,
ACTIVITY,
WS_ITEM_HEAD,
WS_FLAG,
CREATED_BY,
CREATED_DATE,
LAST_UPDATED_BY,
LAST_UPDATED_DATE,
(SELECT a.ws_date,
b.activity,
C.WS_ITEM_HEAD,
'N',
cUser ,
SYSDATE,
cUser,
SYSDATE
FROM CPT_SALES_LINES a,cpm_category b,CPM_ACTIVITY C
WHERE a.COMPANY=nCompany
AND a.SITE=ln_site
AND a.WS_DATE=ld_ws_date
AND a.SALES_HEADER_KEY=ln_Sales_header_key
and B.company=A.company
and b.category_id=a.category_id
AND C.COMPANY=A.COMPANY
AND C.ACTIVITY=B.ACTIVITY) -
Ora-00604,ora-01422 error while dropping the table
Hi gurus,
I am using Oracle 10g R2 on windows 2000 platform,while dropping the table the following error occured.
ORA-00604 : error occurred at recursive sql level 1.
ORA-01422: exact fetch returns more than requested number of rows.
Need urgent help.
Thanks in advanceIs there an AFTER EVENT trigger defined on this database? Can you check that?
Secondly, was this database migrated from earlier version? I remember having seen this problem on 9i (it was 9.2.0.1 or 9.2.0.2; I can't recall exactly). -
REP-1401 'beforereport' Fatal PL/SQL error occurred. ORA 00000 normal.
Hi,
I am running the report Journals - General (132 char)- file name GLRGNJ.rdf from
Oracle Report Builder 6.0.8.11.3.
I have commented all the (srw.user_exit) in the Before Report trigger but i still
get the message:
REP-1401 'beforereport' Fatal PL/SQL error occurred. ORA 00000 normal,
successful completion.
Can anyone suggest a solution please?
Thanks,
FarisDear sir, i am created one formula column in Reports6i and the following error has come. Could u please find out a solution. Thanks in advance.
my function is below
function CF_Branch_NameFormula return Char is
lc_branch_name varchar2(100);
begin
SELECT rtrim(substr(FVT.DESCRIPTION
,instr(FVT.DESCRIPTION,'-',1)+1
,100)) INTO lc_branch_name
FROM FND_FLEX_VALUES FFV, FND_FLEX_VALUES_TL FVT
WHERE FFV.flex_value_Set_id = 1007956
AND FFV.FLEX_VALUE_ID = FVT.FLEX_VALUE_ID
AND FFV.FLEX_VALUE = FVT.FLEX_VALUE_MEANING
AND FVT.DESCRIPTION <> 'xxx'
and rownum<=1
AND SUBSTR(FVT.FLEX_VALUE_MEANING,3,2) = :P_BRANCH;
return (lc_branch_name);
end; -
REP-1401: Fatal PL/SQL error occurred. ORA-01403: no data found
Hi guys,
I am getting error 'REP-1401: Fatal PL/SQL error occurred. ORA-01403: no data found ' when run the report
and i m also use formula column in my report.
can any body help me why it's coming.
following code is used in formula column plz check and verify:
function CF_3Formula return Char is
T1 VARCHAR2(100);
begin
SELECT
VAT_REG_NO INTO T1
FROM
JA_IN_HR_ORGANIZATION_UNITS JIHOU,
HR_LOCATIONS HL--,
--MTL_TXN_REQUEST_HEADERS MTLH
WHERE
JIHOU.ORGANIZATION_ID=HL.INVENTORY_ORGANIZATION_ID AND
JIHOU.LOCATION_ID=HL.LOCATION_ID AND
--Jihou.ORGANIZATION_ID = Mtlh.Organization_Id AND
-- Hl.INVENTORY_ORGANIZATION_ID =Mtlh.Organization_Id AND
-- MTLH.ATTRIBUTE10=SUBSTR(HL.LOCATION_CODE,1,3) AND
SUBSTR(HL.LOCATION_CODE,1,3)= :TO_ORG1 ;
RETURN (T1);
end;
plz help me out.Hi;
What is EBS version? Is it custom report or not?
See below which is mention similar errors
Autoinvoice Error: ORA-1403: no data found [ID 1209403.1]
APXIIMPT - Payable Open Interface Import Fails on "REP-1401: 'cf_source_nameformula': Fatal PL/SQL error occurred. ORA-01403: no data found" [ID 222058.1]
Regard
Helios -
Hi Team,
I am running one conc programme.
After running I am getting below error. I checked the issue on metalink and other, seems that it is an size related issue. I have increased the size of formula columns and placeholdder too.
But still getting issue.
My requirement is to get comma seperated values using SQL query itself. Neither i wanted to create layout of the report , since it is a XML publisher report and nor I am including it on RTF template.
I want the CF_10 formula column to be populated with comma seperated values.
MSG-00187: From Date 01-Sep-2014
REP-1401: 'cf_10formula': Fatal PL/SQL error occurred.
ORA-06502: PL/SQL: numeric or value error
And Here is my code for CF_10
function CF_10Formula return Number is
begin
SELECT NVL(TO_CHAR(sum(Amount),'99,99,99,999'),0) into :CP_5 --NVL(ROUND(sum(Amount)),0) into :CP_5
-- xxhw_Coll_cat(category) "Intercat Catg"
FROM hhxw_Region_col_v
WHERE Category IN ('Intercompany - CATV')
AND trunc(gl_date) BETWEEN TO_DATE(:P_FROM_DATE, 'DD/MM/RRRR') AND TO_DATE(:P_TO_DATE, 'DD/MM/RRRR');
RETURN ROUND(:CP_5);
end;
Anyone please suggest me.
Regards,
SachinHi,
1)Why are you selecting the value into a report item? Select into a local variable and return that
RETURN :CP_5 --> This one!!
2)And you should avoid applying functions to DB columns in where clauses wherever possible, so oracle can use indexes on them if applicable:
AND gl_date >= To_date(:P_FROM_DATE, 'DD/MM/RRRR')
AND gl_date < To_date( :P_TO_DATE, 'DD/MM/RRRR') + 1;
I think you are taking 2 column in the Layout CF_10 and CP_5 right? if so, then use below Query.
FUNCTION cf_10formula
RETURN NUMBER
IS
v_amount NUMBER:null;
IS
BEGIN
BEGIN
SELECT nvl(round(SUM(amount)), 0)
INTO v_amount --> Retruns the value for CF_10 column
FROM hhxw_region_col_v
WHERE category IN ( 'Intercompany - CATV' )
AND gl_date >= to_date(:P_FROM_DATE, 'DD/MM/RRRR')
AND gl_date < to_date( :P_TO_DATE, 'DD/MM/RRRR') + 1;
:CP_5 := nvl(trunc(v_amount),0); --> Retruns the value for CP_5 column
EXCEPTION
WHEN OTHERS THEN
v_amount := 0;
srw.message(1003,'Error in Getting :' ||p_from_date);
END;
END;
And
If you've got a number function returning into a number field then all you should need to do to make the comma appear is to change the number format mask in field.
From 40000 to 40,000 -
ORA-1555 ORA-3136 errors:: elapsed time vs Query Duration
Dear all,
- My Database version is 11.2.0.2, Solaris.
- We have been having a problem in the production database where the front end nodes start going up and down for couple of hours sometimes. ; When node flapping is going on we get connection timed out alerts.
WARNING: inbound connection timed out (ORA-3136) opiodr aborting
process unknown ospid (4342) as a result of ORA-609 opiodr aborting
process unknown ospid (4532) as a result of ORA-609 opiodr aborting
process unknown ospid (4534) as a result of ORA-609 opiodr aborting....
Since this week node flapping is happening every day. Since past 2 days after or during node flapping we are getting ORA-1555 error.
Extract from alert log error:
ORA-01555 caused by SQL statement below (SQL ID: g8804k5pkmtyt, Query Duration=19443 sec, SCN: 0x0001.07bd90ed):
SELECT d.devId, d.vendor, d.model, d.productClass, d.oui, d.parentDeviceId, d.created, d.lastModified AS devLastMod, d.customerId, d.userKey1, d.userKey2, d.userKey4, d
.userKey5, d.firmwareFamily, d.softwareVer, d.serialNum, d.ip, d.mac, d.userKey3, d.userKey6, d.provisioningId, d.status, d.classification, d.population, d.name, d.ipRe
solver, d.ipExpirationTime, d.geoLocationId,contact.firstContactTime, ifaces.id, ifaces.type AS ifaceType, ifaces.lastModified AS ifaceLastMod, ifaces.timeoutname, ifac
es.username1, ifaces.password1, ifaces.username2, ifaces.password2, ifaces.connReqUrl, ifaces.connReqScheme, ifaces.srvNonce, ifaces.deviceNonce, ifaces.phoneNumber,ifa
ces.bootstrapSecMethod, ifaces.srvAuthentication, ifaces.deviceAuthentication, ifaces.userPIN, ifaces.networkID, ifaces.omaSessionID, ifaces.portNum, ifaces.mgtIp, ifac
es.cmtsIp, ifaces.mgtReadCommunity, ifaces.mgtWriteCommunity, ifaces.cmtsReadCommunity, ifaces.cmtsWriteCommunity, devto.name AS devtoName, devto.rebootTimeout, devto.sessionInitiationI run Statspack report from the whole day duration, and looking into the elapsed time in seconds no more than 3739.61 sec (too lower than run duration in the alert log file of 19443 sec); So I would like to know if there is any co-relations between the ORA-3136 errors and the ORA-1555 errors?
CPU CPU per Elapsd Old
Time (s) Executions Exec (s) %Total Time (s) Buffer Gets Hash Value
tTime <= :3 ) AND (endTime IS NULL OR endTime >= :4 )
2773.77 7,787,914 0.00 3.4 3739.61 112,671,645 1909376826
Module: JDBC Thin Client
SELECT d.devId, d.vendor, d.model, d.productClass, d.oui, d.pare
ntDeviceId, d.created, d.lastModified AS devLastMod, d.customerI
d, d.userKey1, d.userKey2, d.userKey4, d.userKey5, d.firmwareFam
ily, d.softwareVer, d.serialNum, d.ip, d.mac, d.userKey3, d.user
SQL> show parameter UNDO_MANAGEMENT
NAME TYPE VALUE
undo_management string AUTO
SQL> show parameter UNDO_RETENTION
NAME TYPE VALUE
undo_retention integer 10800BR,
DiegoThank you. Please let me know if it is enough or you need more information;
SQL ordered by Gets DB/Inst: DB01/db01 Snaps: 14835-14846
-> End Buffer Gets Threshold: 100000 Total Buffer Gets: 677,689,568
-> Captured SQL accounts for 73.6% of Total Buffer Gets
-> SQL reported below exceeded 1.0% of Total Buffer Gets
CPU Elapsd Old
Buffer Gets Executions Gets per Exec %Total Time (s) Time (s) Hash Value
21,286,248 2,632,793 8.1 3.4 666.73 666.76 3610154549
Module: JDBC Thin Client
SELECT d.devId, d.vendor, d.model, d.productClass, d.oui, d.pare
ntDeviceId, d.created, d.lastModified AS devLastMod, d.customerI
d, d.userKey1, d.userKey2, d.userKey4, d.userKey5, d.firmwareFam
ily, d.softwareVer, d.serialNum, d.ip, d.mac, d.userKey3, d.user
17,029,561 1,176,849 14.5 2.7 417.32 416.73 1909376826
Module: JDBC Thin Client
SELECT d.devId, d.vendor, d.model, d.productClass, d.oui, d.pare
ntDeviceId, d.created, d.lastModified AS devLastMod, d.customerI
d, d.userKey1, d.userKey2, d.userKey4, d.userKey5, d.firmwareFam
ily, d.softwareVer, d.serialNum, d.ip, d.mac, d.userKey3, d.user
17,006,795 37 459,643.1 2.7 367.61 368.95 4045552861
Module: JDBC Thin Client
SELECT d.devId, d.vendor, d.model, d.productClass, d.oui, d.pare
ntDeviceId, d.created, d.lastModified AS devLastMod, d.customerI
d, d.userKey1, d.userKey2, d.userKey4, d.userKey5, d.firmwareFam
ily, d.softwareVer, d.serialNum, d.ip, d.mac, d.userKey3, d.userAnother Statspack report for the whole day shows;
SQL ordered by CPU DB/Inst: DB01/db01 Snaps: 14822-14847
-> Total DB CPU (s): 82,134
-> Captured SQL accounts for 40.9% of Total DB CPU
-> SQL reported below exceeded 1.0% of Total DB CPU
CPU CPU per Elapsd Old
Time (s) Executions Exec (s) %Total Time (s) Buffer Gets Hash Value
tTime <= :3 ) AND (endTime IS NULL OR endTime >= :4 )
2773.77 7,787,914 0.00 3.4 3739.61 112,671,645 1909376826
Module: JDBC Thin Client
SELECT d.devId, d.vendor, d.model, d.productClass, d.oui, d.pare
ntDeviceId, d.created, d.lastModified AS devLastMod, d.customerI
d, d.userKey1, d.userKey2, d.userKey4, d.userKey5, d.firmwareFam
ily, d.softwareVer, d.serialNum, d.ip, d.mac, d.userKey3, d.user
SQL ordered by Gets DB/Inst: DB01/db01 Snaps: 14822-14847
-> End Buffer Gets Threshold: 100000 Total Buffer Gets: 1,416,456,340
-> Captured SQL accounts for 55.8% of Total Buffer Gets
-> SQL reported below exceeded 1.0% of Total Buffer Gets
CPU Elapsd Old
Buffer Gets Executions Gets per Exec %Total Time (s) Time (s) Hash Value
86,354,963 7,834,326 11.0 6.3 2557.34 2604.08 906944860
Module: JDBC Thin Client
SELECT d.devId, d.vendor, d.model, d.productClass, d.oui, d.pare
ntDeviceId, d.created, d.lastModified AS devLastMod, d.customerI
d, d.userKey1, d.userKey2, d.userKey4, d.userKey5, d.firmwareFam
ily, d.softwareVer, d.serialNum, d.ip, d.mac, d.userKey3, d.user
.....BR,
Diego
Edited by: 899660 on 27-ene-2012 7:43
Edited by: 899660 on 27-ene-2012 7:45 -
Hi All,
I am trying to run a report containing the images stored in blob column in database 10g, while running the report I got following error ..
ORA-24801: illegal parameter value in OCI lob function
Cause: One of the parameter values in the OCI lob function is illegal.
Action: Check every parameter in the OCI Lob function call to make sure they are correct. Offsets should be greater than or equal to one.
I didn't understand with this the cause and the solution of error....Any body could please tell what exactly it means and what we should do.
Any help will be highly appriciated.
Best RegardsHi Don,
The reason why i posted the item on 'data Connectivity issues' is because i suspect the problem is with the connection string.Though i had provided the correct connection string,re-writing the connection string with the same info might help to fix the issue with loading the report.
Does it mean that there is a problem in the connectivity?
I have a risk here that i cant re-write the connection string..i.e to open the RPT file in VS2005 and bind it.The production web server & database server sits in a third party environment and it is not in the company network.So i cant connect to this server to re-write from any other severs in the network.
Is there any fix which can applied to the server to get this issue resolved?
Cheers
Nithya. -
EXP-00008 + ORA-06544 + ORA-06553 + ORA-06508 error while exporting schema
HI,
i am exporting schema defnition from database;
bash-2.05$ exp userid=pin/pin file=pin.dmp log=pin.log owner=pin rows=no
i am getting this error:
Connected to: Oracle8i Enterprise Edition Release 8.1.7.0.0 - 64bit Production
With the Partitioning option
JServer Release 8.1.7.0.0 - 64bit Production
Export done in US7ASCII character set and UTF8 NCHAR character set
server uses UTF8 character set (possible charset conversion)
Note: table data (rows) will not be exported
About to export specified users ...
. exporting pre-schema procedural objects and actions
EXP-00008: ORACLE error 6544 encountered
ORA-06544: PL/SQL: internal error, arguments: [56319], [], [], [], [], [], [], []
ORA-06553: PLS-801: internal error [56319]
ORA-06508: PL/SQL: could not find program unit being called
ORA-06512: at line 1
EXP-00083: The previous problem occurred when calling SYS.DBMS_REPCAT_RGT_EXP.schema_info_exp
. exporting foreign function library names for user PIN
. exporting object type definitions for user PIN
About to export PIN's objects ...
. exporting database links
. exporting sequence numbers
. exporting cluster definitions
. about to export PIN's tables via Conventional Path ...
. . exporting table 109_31OCT2008
. . exporting table 109_gl_juntooct2008
. . exporting table ACCOUNT_BALANCES_BACKUP_T
. . exporting table ACCOUNT_BALANCES_T
. . exporting table ACCOUNT_BALANCES_THRESHOLDS_T
. . exporting table ACCOUNT_BALANCES_T_06NOV01
. . exporting table ACCOUNT_BALANCES_T_31MAR07
. . exporting table ACCOUNT_EXEMPTIONS_T
. . exporting table ACCOUNT_INTERNAL_NOTES_BUF
:. exporting synonyms
. exporting views
. exporting stored procedures
. exporting operators
. exporting referential integrity constraints
. exporting triggers
. exporting indextypes
. exporting bitmap, functional and extensible indexes
. exporting posttables actions
. exporting snapshots
. exporting snapshot logs
. exporting job queues
. exporting refresh groups and children
. exporting dimensions
. exporting post-schema procedural objects and actions
EXP-00008: ORACLE error 6544 encountered
ORA-06544: PL/SQL: internal error, arguments: [56319], [], [], [], [], [], [], []
ORA-06553: PLS-801: internal error [56319]
ORA-06508: PL/SQL: could not find program unit being called
ORA-06512: at line 1
EXP-00083: The previous problem occurred when calling SYS.DBMS_REPCAT_RGT_EXP.schema_info_exp
. exporting statistics
Export terminated successfully with warnings.
please could any body guide me what is the exact problem.
Thanks
PrakashHi,
bash-2.05$ exp pin/pin file=mypinfile.dmp log=mypinfile.log rows=N
Connected to: Oracle8i Enterprise Edition Release 8.1.7.0.0 - 64bit Production
With the Partitioning option
JServer Release 8.1.7.0.0 - 64bit Production
Export done in US7ASCII character set and UTF8 NCHAR character set
server uses UTF8 character set (possible charset conversion)
Note: table data (rows) will not be exported
About to export specified users ...
. exporting pre-schema procedural objects and actions
EXP-00008: ORACLE error 6544 encountered
ORA-06544: PL/SQL: internal error, arguments: [56319], [], [], [], [], [], [], []
ORA-06553: PLS-801: internal error [56319]
ORA-06508: PL/SQL: could not find program unit being called
ORA-06512: at line 1
EXP-00083: The previous problem occurred when calling SYS.DBMS_REPCAT_RGT_EXP.schema_info_exp
. exporting foreign function library names for user PIN
. exporting object type definitions for user PIN
About to export PIN's objects ...
. exporting database links
. exporting sequence numbers
. exporting cluster definitions
. about to export PIN's tables via Conventional Path ...
. . exporting table 109_31OCT2008
. . exporting table 109_gl_juntooct2008
. . exporting table ACCOUNT_BALANCES_BACKUP_T
. . exporting table ACCOUNT_BALANCES_T
. . exporting table ACCOUNT_BALANCES_THRESHOLDS_T
. . exporting table ACCOUNT_BALANCES_T_06NOV01
.. . exporting table YOU_VRC_TRANS_DETAILS_T
. . exporting table YOU_VRC_TRANS_T
. . exporting table ZONEMAP_DATA_DERIVED_T
. . exporting table ZONEMAP_DATA_RAW_T
. . exporting table ZONEMAP_T
. . exporting table cust_balance19
. . exporting table cust_balance_ason_19June12AM
. exporting synonyms
. exporting views
. exporting stored procedures
. exporting operators
. exporting referential integrity constraints
. exporting triggers
. exporting indextypes
. exporting bitmap, functional and extensible indexes
. exporting posttables actions
. exporting snapshots
. exporting snapshot logs
. exporting job queues
. exporting refresh groups and children
. exporting dimensions
. exporting post-schema procedural objects and actions
EXP-00008: ORACLE error 6544 encountered
ORA-06544: PL/SQL: internal error, arguments: [56319], [], [], [], [], [], [], []
ORA-06553: PLS-801: internal error [56319]
ORA-06508: PL/SQL: could not find program unit being called
ORA-06512: at line 1
EXP-00083: The previous problem occurred when calling SYS.DBMS_REPCAT_RGT_EXP.schema_info_exp
. exporting statistics
Export terminated successfully with warnings.
i think it some problem with SYS.DBMS_REPCAT_RGT_EXP package
SQL> select status, object_type, LAST_DDL_TIME from dba_objects where object_name='DBMS_REPCAT_RGT_EXP';
STATUS OBJECT_TYPE LAST_DDL_
VALID PACKAGE 25-DEC-08
INVALID PACKAGE BODY 02-SEP-01
Thanks
Prakash
T -
Error while exporting : ORA-24801: illegal parameter value in OCI lob funct
hello,
I am doing an export on a 10.2.0.4 , solaris machine.
The table i am doing an export has a blob & clob.
During the export I get the error :
EXP-00056: ORACLE error 24801 encountered
ORA-24801: illegal parameter value in OCI lob function
In metalink it was given : Check every parameter in the OCI Lob function call to make sure they
are correct. Offsets should be greater than or equal to one.
Where should I check for that OCI Lob function. Or is there any other alternative to do the export.
Thanks for any help.I have increased the space on the mount I was doing the export and that solved the problem.
Thanks -
The database error text is: ORA-01843: not a valid month
I am trying to use a date field as a query filter and I keep getting the
following error:
A database error occurred. The database error text is: ORA-01843: not a
valid month. (WIS 10901).
When I remove the query filter and run the query it works as
expected. I want to be able to allow the users to use the date field in order
to select a date range. Can someone provide me with some information on how to
resolve this issue.SQL> SELECT (to_char(tO_date('09/29/2006', 'mm/dd/yyyy'))||':'||TO_CHAR(systimestamp,'hh24:mi:ss:ff6'))
2 FROM dual;
(TO_CHAR(TO_DATE('09/29/2006
29-SEP-06:01:33:09:023000
But you want mm/dd/yyyy hh24:mi:ss:ff6 format then use TO_CHAR function for format specifier
SQL> SELECT to_char(to_timestamp((to_char(tO_date('09/29/2006', 'mm/dd/yyyy'))||':'||TO_CHAR(systimestamp,'hh24:mi:ss:ff6')), 'dd/mm/yyyy hh24:mi:ss:ff6'),'mm/dd/yyyy hh24:mi:ss:ff6')
2 FROM DUAL
3 /
TO_CHAR(TO_TIMESTAMP((TO_CHAR
09/29/0006 01:40:27:113000
SQL> Khurram
Maybe you are looking for
-
End Routine is NOT modifying the DSO with new data after load into that DSO
Hi all, I am creating an End Routine for DSO to populate a field ZFCMP_FLG (to store 'Y' ) with lookup from another DSO ZMDS_D01. This new field shows blank instead of 'Y', after activating the DSO. The RESULT_PACKAGE record is populated with 'Y' f
-
Is there a way to burn multiple smart albums to DVD?
I just finished shooting a wedding. I have made a number of smart albums for Reception, Dance, Ceremony, etc... Now I would like to burn all of these albums onto one DVD to send to the client. But I would like each album to be in its own folder on
-
Bringing event to front in iCal
Going to try a slightly different question to the one I posted yesterday. If i want to bring an iCal event to the front because it is hidden behind another how do I do this? Click on it right and it should come to the front? Since upgrading to Lion
-
I hope someone can help! Trying to create a sitemap for my organisations new intranet. I have created a view below to capture the URL to the page. SELECT p.ID page_id, s.title area, p.siteid, p.parentid, s.ID groupid, settingssetid,
-
Using time capsule with two macs
Hi I am using a MBP and an iMac. Is it possible to set up TC to save work from the two macs?