While execute a Procedure i got error
ORA-00600: internal error code,arguments: [kksscl-inf-inl-loop], [1500], [0], [1], [3], [3], [], []
For internal errors, best course of action is to open a TAR with oracle..(even the error messages manual give that solution only). I recall that perhaps there is some ora-600 look up tool on metalink (perhaps..not sure) so you can check up for that too...but first better to open a tar.
Similar Messages
-
While executing the Procedure Getting Error
Hi I am New to ODI.
I create one new Procedure just to delete the Target table.
delete from <%=snpRef.getTable("L","T_CUSTOMER","D")%>. T_Customer is my target table.Technology:Oracle(Both Source and Target)
I selected the correct Context ,Schema and Technology.
While executing the procedure i am getting following error
java.lang.Exception: Internal error: object ConnectConnection
ColConnectId:null
ColContextCode:DEV
ColConName:null
ColIndCommit:null
ColIsolLevel:null
ColLschemaName:null
ColPlanComp:null
ColTechIntName:null
DefConnectId:null
DefContextCode:DEV
DefConName:null
DefIndCommit:null
DefIsolLevel:null
DefLschemaName:FCS
DefPlanComp:null
DefTechIntName:ORACLE
ExeChannel:J
IndErr:1
IndLogMethod:null
IndLogNb:null
LogLevDet:3
Nno:1
OrdTrt:0
ScenTaskNo:1
SessNo:61001
TaskName1:Procedure
TaskName2:Delete
TaskName3:Delete
TaskType:S
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execSrcOrders(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSqlS.treatTaskTrt(SnpSessTaskSqlS.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
at com.sunopsis.dwg.cmd.e.i(e.java)
at com.sunopsis.dwg.cmd.g.y(g.java)
at com.sunopsis.dwg.cmd.e.run(e.java)
at java.lang.Thread.run(Unknown Source)
Thanks in advance.i Used the below syntax and checked its working fine.
delete from <%=snpRef.getObjectName("L","T_CUSTOMER","D")%> -
Getting ORA-06512/ORA-00972 ERROR WHILE EXECUTING THE PROCEDURE????
Hi ,
while executing this procedure , I am getting follwoing errors:
Create or Replace procedure ADD_CUSTOM_INDEX is
INDX_NOT_EXIST Number;
CREATE_SQL_STATMENT VARCHAR2(1500);
ALTER_SQL_STATMENT VARCHAR2(150);
CURSOR C1 IS select INDEX_NAME,CREATE_DDL FROM W_CUSTOM_TEST, WC_COMPANY_G WHERE W_CUSTOM_TEST.SYS_TENANT_ID = WC_COMPANY_G.BU_ID;
BEGIN
for V_ROW in C1 loop
SELECT COUNT(USER_INDEXES.INDEX_NAME) INTO INDX_NOT_EXIST FROM USER_INDEXES WHERE USER_INDEXES.INDEX_NAME = V_ROW.index_name;
IF INDX_NOT_EXIST = 0 THEN
CREATE_SQL_STATMENT := ''|| '"'|| V_ROW.CREATE_DDL ||'"' ||'PARALLEL NOLOGGING';
EXECUTE IMMEDIATE CREATE_SQL_STATMENT;
ALTER_SQL_STATMENT := 'ALTER INDEX ' ||'"'|| V_ROW.INDEX_NAME ||'"'|| ' NOPARALLEL LOGGING';
EXECUTE IMMEDIATE ALTER_SQL_STATMENT;
END IF;
END LOOP;
END ADD_CUSTOM_INDEX;
ERROR at line 1:
ORA-00972: identifier is too long
ORA-06512: at "LOLAP.ADD_CUSTOM_INDEX", line 13
ORA-06512: at line 1.
sturtuce of W_custom_test table is as below:
CREATE TABLE "LOLAP"."W_CUSTOM_TEST"
("INDEX_NAME" VARCHAR2(30) NOT NULL ENABLE,
"SYS_TENANT_ID" VARCHAR2(15) NOT NULL ENABLE,
"CREATE_DDL" VARCHAR2(1200),
"COMMENTS" VARCHAR2(200),
"STAT_CD" VARCHAR2(30) DEFAULT 'Active' NOT NULL ENABLE,
"CREATED" DATE DEFAULT SYSDATE NOT NULL ENABLE,
"LAST_UPD" DATE DEFAULT SYSDATE NOT NULL ENABLE
Any Pointer??????Hi
Instead of giving as below, go for the not null constraints.
"STAT_CD" VARCHAR2(30) DEFAULT 'Active' NOT NULL ENABLE,
"CREATED" DATE DEFAULT SYSDATE NOT NULL ENABLE,
"LAST_UPD" DATE DEFAULT SYSDATE NOT NULL ENABLE
That should help
Regards
Sudheer -
In JDBC Sender Adapter , the server is Microsoft SQL .I need to pass current date as the input column while Executing stored procedure, which will get me 10 Output Columns. Kindly suggest me the SQL Query String , for executing the Stored Procedure with Current date as the input .
Hi Srinath,
The below blog might be useful
http://scn.sap.com/community/pi-and-soa-middleware/blog/2013/03/06/executing-stored-procedure-from-sender-adapter-in-sap-pi-71
PI/XI: Sender JDBC adapter for Oracle stored procedures in 5 days
regards,
Harish -
While downloading an update, I got error code A12E1. What is that?
While downloading an update, I got error code A12E1. What is that?
ZapKat please see A12E1 error installing Creative Cloud products | CC - http://helpx.adobe.com/creative-cloud/kb/a12e1-error-downloading-creative-cloud.html for information on how to resolve the A12E1 error.
-
Invalid arguments error while executing oracle procedure
Dear all,
we have a table hr_emp with fields ecode, ename, edoj.
the following procedure we created to return the table data to our .net app.
CREATE OR REPLACE
PACKAGE pname AS
TYPE T_hr_cursor IS REF CURSOR;
PROCEDURE get_hr_list (P_hrlist OUT T_hr_cursor);
END HRPACK;
create or replace PACKAGE BODY pname AS
PROCEDURE get_hr_list (P_hrlist OUT T_hr_cursor)
IS
BEGIN
OPEN P_hrlist FOR
SELECT *
FROM Hr_Emp WHERE edoj>='01-jan-2009';
END get_hr_list;
END;
these code edited in a single file [both package and package body] and created successfully.
but, while executing, by typing execute get_hr_list, ORA-00304 error, invalid arguments, is coming. How to resolve this, please help.
also, in sql developer 1.5.3, when we create this, another error is ciming like 'source doesnot have a runnable target'.
Where is the issue? please helpYes, its great dear...
sqlplus>
declare
hr_cursor hrmain.t_hr_cursor;
begin
pname.get_hr_list(hr_cursor);
end;
Its worked as i got 'pl/sql procedure successfully executed'.
Also, then how i can call this get_hr_list procedure from .net? im using c# and i want to get the result of hr_emp to c#. how i can call the same from c#? any help please -
Error While executing a procedure
Hello FOlks,
When i try to execute this procedure below i get the error saying "Compiled with errors"
ORA--00942-Table or View does not exist
SQL Statement ignored at Line 17.
I tried querying the table and it returns no data. How do i debug this error.
create or replace procedure Load_FADM_Staging_Area_test(p_data_load_date date) is
v_start_date date;
v_end_date date;
begin
if p_data_load_date is null then
select (sysdate - 7), (sysdate - 1) into v_start_date, v_end_date from dual;
elsif p_data_load_date is not null then
select (p_data_load_date - 7), (p_data_load_date - 1) into v_start_date, v_end_date from dual;
else
raise_application_error('-20042', 'Data control - GetDataControlAuditData : Date parameter must be a date of this or a previous week.');
end if;
insert into STAGE_FADM_HRI_STAGE_BILL
(select
a.batch_id
,a.beginning_service_date
,a.bill_id
,a.bill_method
,a.bill_number
,a.bill_received_date
,a.bill_status
,a.bill_type
,a.change_oltp_by
,a.change_oltp_date
,a.client_datafeed_code
,a.client_id
,a.created_date
,a.date_of_incident
,a.date_paid
,a.deleted_oltp_by
,a.deleted_oltp_date
,a.duplicate_bill
,a.ending_service_date
,a.event_case_id
,a.event_id
,a.from_oltp_by
,a.oltp_bill_status
,a.review_status
,'HRI' schema_name
, sysdate Load_date
,'ETLPROCESS001' Load_user
,sysdate
from stage_bill@hri1_read_only_remote a
where
--created_date >= to_date('20101031 235959', 'YYYYMMDD HH24MISS')
created_date >= v_start_date
and
--created_date <= to_date('20101111 235959', 'YYYYMMDD HH24MISS')
created_date <= v_end_date
and not exists
(select
b.batch_id
,b.beginning_service_date
,b.bill_id
,b.bill_method
,b.bill_number
,b.bill_received_date
,b.bill_status
,b.bill_type
,b.change_oltp_by
,b.change_oltp_date
,b.client_datafeed_code
,b.client_id
,b.created_date
,b.date_of_incident
,b.date_paid
,b.deleted_oltp_by
,b.deleted_oltp_date
,b.duplicate_bill
,b.ending_service_date
,b.event_case_id
,b.event_id
,b.from_oltp_by
,b.oltp_bill_status
,b.review_status
,b.Row_Effective_Date
from STAGE_FADM_HRI_STAGE_BILL b))
select
e.action_plan e_action_plan
,e.action_plan_status e_action_plan_status
,e.batch_id e_batch_id
,e.client_cause_code e_client_cause_code
,e.client_id e_client_id
,e.client_datafeed_code e_client_datafeed_code
,e.client_policy_identifier e_client_policy_identifier
,e.close_date e_close_date
,e.created_date e_created_date
,e.date_of_incident e_date_of_incident
,e.date_typed e_date_typed
,e.discovery_source e_discovery_source
,e.employer_group_id e_employer_group_id
,e.event_id e_event_id
,e.event_status_code e_event_status_code
,e.event_type_code e_event_type_code
,e.exclude_from_invoice e_exclude_from_invoice
,e.from_ncoa_date e_from_ncoa_date
,e.group_contract_funding_type e_group_contract_funding_type
,e.hmo_ppo_indemnity_type e_hmo_ppo_indemnity_type
,e.insurance_product_name e_insurance_product_name
,e.insured_termination_date e_insured_termination_date
,e.invoice_date e_invoice_date
,e.letter_status e_letter_status
,e.letter_status_date e_letter_status_date
,e.liability_analysis e_liability_analysis
,e.loss_city e_loss_city
,e.loss_description e_loss_description
,e.loss_state_code e_loss_state_code
,e.manually_moved e_manually_moved
,e.moved_by_user_id e_moved_by_user_id
,e.ncoa_code e_ncoa_code
,e.next_steps e_next_steps
,e.open_date e_open_date
,e.policy_holder_address1 e_policy_holder_address1
,e.policy_holder_address2 e_policy_holder_address2
,ec.action_plan
,ec.action_plan_status
,ec.batch_id
,ec.case_status_code
,ec.client_datafeed_code
,ec.client_id
,ec.client_party_identifier
,ec.close_date
,ec.created_date
,ec.damaged_party_address1
,ec.damaged_party_address2
,ec.damaged_party_city
,ec.damaged_party_dob
,ec.damaged_party_first_name
,ec.damaged_party_gender
,ec.damaged_party_last_name
,ec.damaged_party_ssn
,ec.damaged_party_state_code
,ec.damaged_party_zip
,ec.deductible
,ec.deductible_applied
,ec.deductible_recovered
,ec.deductible_recovered_full
,ec.event_case_id
,ec.event_id
,ec.fee_schedule_code
,ec.internal_coverage_code
,ec.litigation_flag
,ec.loss_injury_description
,ec.next_steps
,ec.open_date
,ec.payment_coverage_code
,ec.pursuit_level_code
,ec.reject_code
,ec.reject_comments
,ec.reject_date
,ec.reject_date
,ec.reject_user_id
,ec.setup_type
,ec.tot_paid_at_close
,eccf.Client_field_data eccf_client_fleld_data
,eccf.Client_field_name eccf_client_field_name
,eccf.Client_id eccf_client_id
,eccf.Event_case_id eccf_event_case_id
,ecf.client_field_data ecf_client_field_data
,ecf.client_field_name ecf_client_field_name
,ecf.client_id ecf_client_id
,ecf.event_id ecf_event_id
from
event@hri1_read_only_remote e,
event_case@hri1_read_only_remote ec,
event_case_client_field@hri1_read_only_remote eccf,
event_client_field@hri1_read_only_remote ecf,
stg_fadm_hri_stage_bill sb
where
e.event_id = ec.event_id and
e.event_id = ecf.event_id and
ec.event_case_id = eccf.event_case_id and
e.event_id = ecf.event_id and
e.client_id = ecf.client_id and
e.client_id = ec.client_id and
ec.client_id = ecf.client_id and
e.event_id = sb.event_id and
ec.event_case_id = sb.event_case_id and
eccf.event_case_id = sb.event_case_id and
ecf.event_id = sb.event_id;
end Load_FADM_Staging_Area_TEST;Just noticed
I tried querying the table and it returns no data.Could be your NOT EXISTS clause, you are missing something? - "Something" exists, unless the table is empty.
Should probably be something like:
AND NOT EXISTS (SELECT NULL -- You are actually not selecting anything, just probing for existence
WHERE <<Correlation to table "a">>Furthermore, you'll never manage to compile the procedure since your second select does not select INTO anything.
(A more apprpriate subject would be "Error while compiling a procedure".)
Finally, When would the ELSE be reached here?
if p_data_load_date IS NULL then
select (sysdate - 7), (sysdate - 1) into v_start_date, v_end_date from dual;
elsif p_data_load_date IS NOT NULL then
select (p_data_load_date - 7), (p_data_load_date - 1) into v_start_date, v_end_date from dual;
ELSE
raise_application_error('-20042', 'Data control - GetDataControlAuditData : Date parameter must be a date of this or a previous week.');
end if;Regards
Peter -
Gettng Error while executing the procedure(oracle 10.2.0.3.0)
Hi all,
I am getting following error While executing the package .
PLS-00103: Encountered the symbol "Truncate" when expecting one of
the following:
* & = - + ; < / > at in is mod remainder not rem return
returning <an exponent (**)> <> or != or ~= >= <= <> and or
like LIKE2_ LIKE4_ LIKEC_ between into using || multiset bulk
member SUBMULTISET_I have written follwing query in the package body.
EXECUTE IMMEDIATE 'TRUNCATE TABLE FORT ';
EXECUTE IMMEDIATE '
INSERT INTO FORT (CID,CODE,DESC,SCODE,SES,T_DT,SDN,LANG)
SELECT
SERVICES.CID CID,
PROFILE.FUCODE CODE,
TO_DATE(SUBSTR(SERVICES.STAT_CHNG,-7,6),'YYMMDD') T_DT,
PHOR.NUM SDN,
C_ALL.cLANGUAGE LANG
FROM
SERVICES .....Please give me the solution for this .
Thank y ou
Edited by: user636482 on Apr 10, 2009 1:08 AMI am getting following errors if I gave " ' " after not null.
LINE/COL ERROR
42/8 PLS-00103: Encountered the symbol "AND" when expecting one of the
following:
begin case declare end exception exit for goto if loop mod
null pragma raise return select update while with
<an identifier> <a double-quoted delimited-identifier>
<a bind variable> << close current delete fetch lock insert
open rollback savepoint set sql execute commit forall merge
pipe
42/56 PLS-00103: Encountered the symbol "A" when expecting one of the
following:
LINE/COL ERROR
) , * & | = - + < / > at in is mod remainder not rem => ..
<an exponent (**)> <> or != or ~= >= <= <> and or like LIKE2_
LIKE4_ LIKEC_ between || multiset member SUBMULTISET_
The symbol ", was inserted before "A" to continue.
42/74 PLS-00103: Encountered the symbol "D" when expecting one of the
following:
* & - + ; / at mod remainder rem return returning
<an exponent (**)> and or || multiset
The symbol "* was inserted before "D" to continue.
LINE/COL ERROR
45/6 PLS-00103: Encountered the symbol "COMMIT"
52/3 PLS-00103: Encountered the symbol "PROCEDURE" when expecting one
of the following:
end not pragma final instantiable order overriding static
member constructor map
The symbol "static" was substituted for "PROCEDURE" to continue.
85/8 PLS-00103: Encountered the symbol "AND" when expecting one of the
following:
begin case declare end exception exit for goto if loop mod
null pragma raise return select update while with
LINE/COL ERROR
<an identifier> <a double-quoted delimited-identifier>
<a bind variable> << close current delete fetch lock insert
open rollback savepoint set sql execute commit forall merge
pipe
85/56 PLS-00103: Encountered the symbol "A" when expecting one of the
following:
) , * & | = - + < / > at in is mod remainder not rem => ..
<an exponent (**)> <> or != or ~= >= <= <> and or like LIKE2_
LIKE4_ LIKEC_ between || multiset member SUBMULTISET_
The symbol ", was inserted before "A" to continue.
LINE/COL ERROR
85/74 PLS-00103: Encountered the symbol "D" when expecting one of the
following:
* & - + ; / at mod remainder rem return returning
<an exponent (**)> and or || multiset
The symbol "* was inserted before "D" to continue.
88/8 PLS-00103: Encountered the symbol "COMMIT"
95/3 PLS-00103: Encountered the symbol "PROCEDURE" when expecting one
of the following:
end not pragma final instantiable order overriding static
LINE/COL ERROR
member constructor map
The symbol "static" was substituted for "PROCEDURE" to continue.
133/3 PLS-00103: Encountered the symbol "PROCEDURE" when expecting one
of the following:
end not pragma final instantiable order overriding static
member constructor map
The symbol "static" was substituted for "PROCEDURE" to continue.
169/3 PLS-00103: Encountered the symbol "PROCEDURE" when expecting one
of the following:with out adding " ' " I am getting the previous error which I mentioned in Previous thread(TRUNCATE)
Thank you -
Error while executing the procedure
Hi,
I tried the following example it's compiled but while executing giving the errors
create or replace PROCEDURE createRZGSet (
rNm IN VARCHAR2,
rDsc IN VARCHAR2,
rId OUT NUMBER
) IS
cId INTEGER;
BEGIN
cId := 1;
SELECT q_id.NEXTVAL
INTO rId
FROM DUAL;
INSERT INTO t_set (rid,
r_nm,
r_dsc,
o_id,
flag) VALUES (rId,rNm,rDsc,cid,'P');
END;
/The above is compiled ... but while executing
SQL> declare
2 optval number;
3 begin
4 execute createRZGSet('myp','miyapur',optval);
5 dbms_output.put_line('val returned is:'||optval);
6 end;
7 /
execute createRZGSet('myp','miyapur',optval);
ERROR at line 4:
ORA-06550: line 4, column 10:
PLS-00103: Encountered the symbol "CREATERZGSet" when expecting one
of the following:
:= . ( @ % ; immediate
The symbol ":=" was substituted for "CREATERZGSet" to continue.could you please hint me in this error..
thanxThe above is compiled ... but while executing
SQL> declare
2 optval number;
3 begin
4 execute createRZGSet('myp','miyapur',optval);
5 dbms_output.put_line('val returned is:'||optval);
6 end;
7 /remove the execute key word. it belongs to SQL Plus. in pl/sql you can just give the procedure name thats enought.
SQL> declare
2 optval number;
3 begin
4 createRZGSet('myp','miyapur',optval);
5 dbms_output.put_line('val returned is:'||optval);
6 end;
7 / -
Error while executing PlSQL Procedure
Hi Chris,
Procedure SPR_VISAMAST_SWITCHCATEGORIZE is created in the TimesTen interchange user. and all object used by this procedure also cached in the TimesTen.
While executing it is giving error.
I traced out where execution is failing, i found that update query on cached table it is giving error.
Command> DECLARE
> SOUTPUT VARCHAR2(4000);
> BEGIN
> INTERCHANGE.SPR_VISAMAST_SWITCHCATEGORIZE('123456', 'SWTCH.030709', 'v2.01', 'fl.01' , 'v2.02' , '1' , SOUTPUT);
> END;
> /
5213: Bad Oracle login error in OCISessionBegin(): ORA-01017: invalid username/password; logon denied rc = -1
5131: Cannot connect to backend database: OracleNetServiceName = "geni11g", uid = "INTERCHANGE", pwd is hidden, TNS_ADMIN = "/u01/app/oracle/product/11.1.0/db_1/network/admin", ORACLE_HOME= "/u01/app/oracle/product/11.1.0/db_1"
8507: ORA-06512: at "INTERCHANGE.SPR_VISAMAST_SWITCHCATEGORIZE", line 39
8507: ORA-06512: at line 4
The command failed.
Please tell me how to solve this issue.So when you execute this procedure it is actually executing as user INTERCHANGE. Any objects that the procedure references whcih do not include an explicit owner will assume the object is owned by user INTERCHANGE and this may mean that an object cannot be found.
Here is an example...
Let's say you have a cached table in TimesTen and the table is owned by the user 'CACHEUSER' - CACHEUSER.MyCachedtable.
If you create a PL/SQL procedure owned by the user INTERCHANGE - INTERCHANGE.Someprocedure and within thie procedure include a statement like SELECT * FROM MyCachedtable then when the procedure is executed it will by default always look for the table INTERCHANGE.MyCachedTable even if the user executing the procedure is 'CACHEUSER'. As a result, it would not find the table MyCachedTable in TimesTen and, depending on the setting for PassThrough it might try and go to Oracle for this table.
Another possibility is that the PL/SQL procedure is performing some cache operation that requires interaction with the Oracle DB and you did not include 'OraclePWD=xxx' to provide the password for Oracle when you connected. Remember that the procedure will be executing, by default, as the user INTERCHANGE not as the user 'CACHEUSER'.
Chris -
Error while executing a procedure in Package
ORA-04068: existing state of packages has been discarded
ORA-04061: existing state of package "PLLODS.LK" has been invalidated
ORA-04065: not executed, altered or dropped package "PLLODS.LK"
ORA-06508: PL/SQL: could not find program unit being called
ORA-06512: at line 1Why did this error arise when I changed a package and recompiled?This errors occurs when a package was executed in session A, compiled in session B, and then executed again in session A. The package executed in session A is in Oracle buffer, but its definition was changed in session B (which session A is unaware of). Now session A uses the old definition of the package but Oracle checks what is in buffer to the new definition and finds a difference. Therefore, it generates an error:
ORA-04068: existing state of packages has been discarded
and other related errors.
Just execute the procedure (in the package) again and you should not see the error again.
Make sure the stae of the package is valid, that is, when it was recompiled, the package compiled successfully.
Shakti
http://www.impact-sol.com
Developers of Guggi Oracle - Tool for Developers and DBAs -
Error while Executing stored procedure using ant
Hi,
I am trying to execute a stored procedure using ant ..
My build.xml is like this...
<project name="myproject" default="db.build">
<target name="db.build">
<sql driver="oracle.jdbc.driver.OracleDriver"
url="jdbc:oracle:thin:@idm.orademo.com:1521:orcl"
userid="test"
password="oracle11g"
print="yes"
classpath="E:\\ojdbc14.jar"
src="E:\\upg_9102BP07.sql" />
<!--
<classpath>
<pathelement path=""\\>
<\\classpath> -->
</target>
</project>
I have my stored procedure in upg_9102BP07.sql as shown in above src..
When im executing ant cmd I got the following exception
E:\>ant -f test.xml
Buildfile: test.xml
db.build:
*[sql] Executing resource: E:\upg_9102BP07.sql*
*[sql] Failed to execute: declare cnt int*
BUILD FAILED
E:\test.xml:12: java.sql.SQLException: ORA-06550: line 1, column 15:
PLS-00103: Encountered the symbol "end-of-file" when expecting one of the following:
*:= . ( @ % ; not null range default character*
Total time: 44 seconds
I have no clue.. But this sql ran successfully when did manually..
Please help me in solving the issue...
-- MariasHere is my script bit lengthy...
Rem
Rem $Header: oim/server/Database/Oracle/Upgrade/Release91x/910x/List/9102_ddl_AddcolumnToRCE_Oracle.sql st_oim_devjain_bug-9003841/1 2009/10/09 02:24:19 devjain Exp $
Rem
Rem 9102_ddl_AddcolumnToRCE_Oracle.sql
Rem
Rem Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved.
Rem
Rem NAME
Rem 9102_ddl_AddcolumnToRCE_Oracle.sql - <one-line expansion of the name>
Rem
Rem DESCRIPTION
Rem Create a new column 'RCE_DELETE' in RCE table
Rem
Rem MODIFIED (MM/DD/YY)
Rem blaksham 09/30/09 - Created
Rem
declare cnt int;
Begin
Select Count(1) into cnt From User_Tab_Columns Where TABLE_NAME='RCM' And COLUMN_NAME='RCM_DELETE';
IF cnt=0 Then
Begin
Execute Immediate 'ALTER TABLE RCM ADD RCM_DELETE VARCHAR2(1)';
End;
Else
DBMS_OUTPUT.PUT_LINE('Column already exists in the DB');
End IF;
End;
Rem
Rem $Header: oim/server/Database/Oracle/Upgrade/Release91x/910x/List/9102_dml_odf_source_name.sql st_oim_devjain_bug-9003841/1 2009/10/09 02:44:45 devjain Exp $
Rem
Rem 9103_dml_odf_source_name.sql
Rem
Rem Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved.
Rem
Rem NAME
Rem 9103_dml_odf_source_name.sql - <one-line expansion of the name>
Rem
Rem DESCRIPTION
Rem <short description of component this file declares/defines>
Rem
Rem NOTES
Rem <other useful comments, qualifications, etc.>
Rem
Rem MODIFIED (MM/DD/YY)
Rem vpotukuc 09/17/09 - Bug8796435: Increase the size of odf_source-name
Rem vpotukuc 09/17/09 - Created
Rem
SET ECHO ON
SET FEEDBACK 1
SET NUMWIDTH 10
SET LINESIZE 80
SET TRIMSPOOL ON
SET TAB OFF
SET PAGESIZE 100
declare
collen NUMBER := 0;
begin
select char_length into collen from user_tab_columns where table_name = 'ODF' and column_name = 'ODF_SOURCE_NAME';
IF (collen < 400) then
execute immediate 'alter table ODF modify ODF_SOURCE_NAME varchar2(400)';
END IF;
END;
File name: 91_dml_update_reviewers_With_NoEmail_attestation.sql
Purpose: Modify the email template to replace the 'Delegated By Last Name' with 'Reviewer Last Name' and 'Delegated By User Id' to 'Reviewer User Id'.
Author: Babu Lakshamanaiah
Description: Modify the email template 'Attestation Reviewers With No E-mail Addresses Defined'
declare
cnt int;
begin
Select Count(1) into cnt From emd Where emd_name='Attestation Reviewers With No E-mail Addresses Defined' and emd_language='en' and emd_country='US';
IF cnt=0 Then
Begin
DBMS_OUTPUT.PUT_LINE('There is no record with emd_name Attestation Reviewers With No E-mail Addresses Defined ');
End;
Else
update emd set emd_body='The following attestation reviewers do not have email addresses defined. Attestation requests have been generated for these reviewers and can be accessed by loging in to Oracle Identity Manager. However, notification emails were not sent.' ||chr(10) || chr(10) ||
'Attestation process: <Attestation Definition.Process Name>' || chr(10) ||
'Attestation Request ID: request <Attestation Request.Request Id>' || chr(10) ||
'Request date: <Attestation Request.Request Creation Date>' || chr(10) || chr(10) ||
'Reviewers Without E-mail Address: <reviewers> ' || chr(10) ||
'<Attestation Task.Reviewer First Name> <Attestation Task.Reviewer Last Name> [<Attestation Task.Reviewer User Id>]' Where emd_name='Attestation Reviewers With No E-mail Addresses Defined' and emd_language='en' and emd_country='US';
End IF;
commit;
end;
Please help me out.....
--Marias -
Error While Executing Stored Procedure - SAP BPC 5.0
Hi all
I have defined stored procedure 'EP2' in the account transformation rules and which runs fine with all the entities.
But when I filter particular entity which give no data extrace to the selections made instead of giving the comment:
0 rows created and update it gives the error below.
Kindly Help me out if any one has the idea of running stored procedure
Executing SPRUNCALCACCOUNT "[[FINANCE]],[[ACTUAL]],[[LC]],[[SPSCOPE_367693]],[[SPLOG_887033]],[[EP2]]"
SPRunCalcAccount Version 2.06
-ERR- CALC-070 No DATA Extract From FACT Table
Time to run stored procedure:2.8 sec.
Edited by: Harish Bysani Kodanda on Mar 14, 2008 8:46 AM
Edited by: Harish Bysani Kodanda on Mar 14, 2008 8:47 AM
Edited by: Harish Bysani Kodanda on Mar 14, 2008 8:48 AMYes, the business rules stored procedures surface an error if there is an empty data set to operate on.
-
Errors while executing a procedure
Im trying to execute following procedure which in turn has two more procedures in it.These two internal procedures calls a java stored procedure.When im trying to execute im getting errors
Errors
PLS-00222: no function with name 'SFDC_LOGIN' exists in this
scope
PL/SQL: Item ignored
PLS-00999: implementation restriction (may be temporary) Java
methods not permitted here
Procedure
CREATE OR REPLACE PROCEDURE account_cur is
procedure new_account(accnumber varchar2,name varchar2,creditstatus varchar2) as language java NAME 'CreateAccount.createAccount(java.lang.String,java.lang.String,java.lang.String) return int';
procedure sfdc_login as language java NAME 'CreateAccount.login()';
CURSOR c1 IS
SELECT name,accnumber,creditstatus FROM account where flag=0
FOR UPDATE OF flag NOWAIT;
result number;
BEGIN
if(sfdc_login) then
FOR i IN c1
fetch c1 into v_name,v_number,v_status
LOOP
result:=new_account(i.v_name,i.v_number,i.v_status);
IF result=1
THEN
UPDATE account
SET flag=1
WHERE CURRENT OF c1;
ELSE
RAISE_APPLICATION_ERROR
(-20222, ‘ACCOUNT CREATION FAILED ');
END IF;
END LOOP;
ELSE
RAISE_APPLICATION_ERROR
(-20221, ‘LOGIN FAILED');
END IF;
END account;
Can any one please suggest me how to resolve this issue.
thanks in advanceWell I suspect (although I have not tried) that Oracle is objecting to you declaring Java methods as local procedures within a procedure.
Generally advice would be that you should use packages rather than standalone stored procedures - in which case you could move the java methods to be separate procedures within the same package. -
Error while executing store procedure
we are using JSQLConnect jdbc driver 3.0 verson.
When we trued to excute store procedures its giving error like
com.jnetdirect.jsql.w: Stored procedures called with static parameters cannot return output parameter values, please use CallableStatement.setXXX() to set the values of all input parameters.
we are using SQLServer2000.
Could anybody tell me why this is error is coming and how to solve this.
Thanks
HemanthObviously it doesn't like the stored procedure. If you posted the signature for that it might help.
You are using a CallableStatement right?
Maybe you are looking for
-
What to do with Etresoft report on slow running MacBook? Macbook started slowdown after last OS update. I have tried restarting computer, making sure there are no log in items, repaired disk permissions, removed all files from desktop, checked for mi
-
System freeze when using catalyst driver and xorg 1.16
As the title says, my computer freezes up when using the catalyst drivers. This happens even when I haven't run startx (happens even when I ssh). Typically I would check my syslog after a crash, right? However, I don't see a syslog in /var/log. H
-
My itunes comes up corrupted and won't let me into my music? How do I get my music back?
-
Hi by mistake i deleted my viber messages how to get them back
Hello i deleted my messages by mistake ...is there any way that i get my messages back thankyou
-
Crystal 8.5 Licensing?
I've been assigned to maintain some old VB 6.0 code that was developed by a different company. Some of the reports appear to be Crystal Reports 8.5 ttx files. While I've found several places I can download Crystal Reports 8.5 developer from, I would