PLSQL procedure with the ORA-01858: a non-digit character was found where
Hi friends,I'm pretty much back to the plsql programming. I am creating the plsql procedure that basically accepts the values of variables and controls difference of two columns if she's even if different it inserts values into the temporary table GTT_S_DOC_QUOTE, and then inserts data into another table in s_doc_quote please help me or correct my procedure.
Since I'm getting below error ORA-01858: a non-digit character was found here where waiting a digital .my procedure is as below.
CREATE OR REPLACE PROCEDURE QUOTE_STS)
ROW_ID_IN GGATE_CT. GTT_S_DOC_QUOTE. ROW_ID % TYPE,
STAT_CD_IN GGATE_CT. GTT_S_DOC_QUOTE. STAT_CD % TYPE,
PREV_STS_CD_IN GGATE_CT. GTT_S_DOC_QUOTE. PREV_STS_CD % TYPE,
BU_ID_IN GGATE_CT. GTT_S_DOC_QUOTE. BU_ID % TYPE,
CREATED_IN GGATE_CT. GTT_S_DOC_QUOTE. CREATED % TYPE,
X_CRRNT_TOT_AGRD_RMS_IN GGATE_CT. GTT_S_DOC_QUOTE. X_CRRNT_TOT_AGRD_RMS % TYPE,
X_CRRNT_TOT_BLCKD_RMS_IN GGATE_CT. GTT_S_DOC_QUOTE. X_CRRNT_TOT_BLCKD_RMS % TYPE,
X_CRRNT_TOT_PCKDUP_RMS_IN GGATE_CT. GTT_S_DOC_QUOTE. X_CRRNT_TOT_PCKDUP_RMS % TYPE,
X_CRRNT_TOT_PCKDUP_AVGRT_IN GGATE_CT. GTT_S_DOC_QUOTE. X_CRRNT_TOT_PCKDUP_AVGRT % TYPE,
X_CRRNT_TOT_BLCKD_AVGRT_IN GGATE_CT. GTT_S_DOC_QUOTE. X_CRRNT_TOT_BLCKD_AVGRT % TYPE,
X_CRRNT_CNTRCT_SR_REVN_IN GGATE_CT. GTT_S_DOC_QUOTE. X_CRRNT_CNTRCT_SR_REVN % TYPE,
X_CRRNT_CNTRCT_FD_REVN_IN GGATE_CT. GTT_S_DOC_QUOTE. X_CRRNT_CNTRCT_FD_REVN % TYPE,
X_CRRNT_CNTRCT_BEV_REVN_IN GGATE_CT. GTT_S_DOC_QUOTE. X_CRRNT_CNTRCT_BEV_REVN % TYPE,
X_CRRNT_CNTRCT_RM_REVN_IN GGATE_CT. GTT_S_DOC_QUOTE. X_CRRNT_CNTRCT_RM_REVN % TYPE,
X_CRRNT_USD_EXCHNG_RT_IN GGATE_CT. GTT_S_DOC_QUOTE. X_CRRNT_USD_EXCHNG_RT % TYPE,
X_CRRNT_CNTRCT_OTHR_REVN_IN GGATE_CT. GTT_S_DOC_QUOTE. X_CRRNT_CNTRCT_OTHR_REVN % TYPE,
X_CRRNT_CNTRCT_RSRC_REVN_IN GGATE_CT. GTT_S_DOC_QUOTE. X_CRRNT_CNTRCT_RSRC_REVN % TYPE,
LAST_UPD_IN GGATE_CT. GTT_S_DOC_QUOTE. LAST_UPD % TYPE)
BEGIN
IF (PREV_STS_CD == STAT_CD) then
END if;
INSERT INTO GTT_S_DOC_QUOTE)
ROW_ID,
STAT_CD,
PREV_STS_CD,
BU_ID,
CREATED,
X_CRRNT_TOT_AGRD_RMS,
X_CRRNT_TOT_BLCKD_RMS,
X_CRRNT_TOT_PCKDUP_RMS,
X_CRRNT_TOT_PCKDUP_AVGRT,
X_CRRNT_TOT_BLCKD_AVGRT,
X_CRRNT_CNTRCT_SR_REVN,
X_CRRNT_CNTRCT_FD_REVN,
X_CRRNT_CNTRCT_BEV_REVN,
X_CRRNT_CNTRCT_RM_REVN,
X_CRRNT_USD_EXCHNG_RT,
X_CRRNT_CNTRCT_OTHR_REVN,
X_CRRNT_CNTRCT_RSRC_REVN,
LAST_UPD
)
VALUES ('ROW_ID_IN',
"STAT_CD_IN,"
"PREV_STS_CD_IN,"
"BU_ID_IN,"
"CREATED_IN,"
"X_CRRNT_TOT_AGRD_RMS_IN,"
"X_CRRNT_TOT_BLCKD_RMS_IN,"
"X_CRRNT_TOT_PCKDUP_RMS_IN,"
"X_CRRNT_TOT_PCKDUP_AVGRT_IN,"
"X_CRRNT_TOT_BLCKD_AVGRT_IN,"
"X_CRRNT_CNTRCT_SR_REVN_IN,"
"X_CRRNT_CNTRCT_FD_REVN_IN,"
"X_CRRNT_CNTRCT_BEV_REVN_IN,"
"X_CRRNT_CNTRCT_RM_REVN_IN,"
"X_CRRNT_USD_EXCHNG_RT_IN,"
"X_CRRNT_CNTRCT_OTHR_REVN_IN,"
"X_CRRNT_CNTRCT_RSRC_REVN_IN,"
'LAST_UPD '.
);
INSERT INTO S_DOC_QUOTE_CT
(ROW_ID_OUT, STAT_CD_OUT, PREV_STS_CD_OUT, BU_ID_OUT, CREATED_OUT, X_CRRNT_TOT_AGRD_RMS_OUT, X_CRRNT_TOT_BLCKD_RMS_OUT, X_CRRNT_TOT_PCKDUP_RMS_OUT, X_CRRNT_TOT_PCKDUP_AVGRT_OUT,
X_CRRNT_TOT_BLCKD_AVGRT_OUT, X_CRRNT_CNTRCT_SR_REVN_OUT, X_CRRNT_CNTRCT_FD_REVN_OUT, X_CRRNT_CNTRCT_BEV_REVN_OUT, X_CRRNT_CNTRCT_RM_REVN_OUT, X_CRRNT_USD_EXCHNG_RT_OUT, X_CRRNT_CNTRCT_OTHR_REVN_OUT,
SELECT X_CRRNT_CNTRCT_RSRC_REVN_OUT ROW_ID), STAT_CD, PREV_STS_CD, BU_ID, CREATED, X_CRRNT_TOT_AGRD_RMS, X_CRRNT_TOT_BLCKD_RMS, X_CRRNT_TOT_PCKDUP_RMS, X_CRRNT_TOT_PCKDUP_AVGRT,.
X_CRRNT_TOT_BLCKD_AVGRT, X_CRRNT_CNTRCT_SR_REVN, X_CRRNT_CNTRCT_FD_REVN, X_CRRNT_CNTRCT_BEV_REVN, X_CRRNT_CNTRCT_RM_REVN, X_CRRNT_USD_EXCHNG_RT, X_CRRNT_CNTRCT_OTHR_REVN,
GGATE_CT X_CRRNT_CNTRCT_RSRC_REVN. GTT_S_DOC_QUOTE;
COMMIT;
end if;
end QUOTE_STS;
I was wondering why I get this error even if I stated the PREV_STS_CD
What line do you think that you said PREV_STS_ID on? As far as I can see that the IF statement is the first mention of it in your code. My guess is that you mean PREV_STATS_ID_IN (goes the same for STAT_CD / STAT_CD_IN).
If you write
IF prev_sts_cd_in = stat_cd_in
THEN
NULL;
END IF;
do_something_here;
then "do_something_here" will be processed regardless of the IF condition. I think what you probably wanted was something like
IF prev_sts_cd_in = stat_cd_in
THEN
NULL;
ELSE
do_something_here;
END IF;
Is it possible for the prev_sts_cd and the stat_cd null? The test above would not handle this.
Also, as others have mentioned, the first INSERT statement attempts to insert the strings like "ROW_ID_IN" you probably want to use the value of the ROW_ID_IN parameter, which is the reason why you get the error ORA-01858. I'm guessing here of course, but I took out the quotes.
That would make your code something like this:
CREATE OR REPLACE PROCEDURE quote_sts
( row_id_in ggate_ct.gtt_s_doc_quote.row_id%TYPE
, stat_cd_in ggate_ct.gtt_s_doc_quote.stat_cd%TYPE
, prev_sts_cd_in ggate_ct.gtt_s_doc_quote.prev_sts_cd%TYPE
, bu_id_in ggate_ct.gtt_s_doc_quote.bu_id%TYPE
, created_in ggate_ct.gtt_s_doc_quote.created%TYPE
, x_crrnt_tot_agrd_rms_in ggate_ct.gtt_s_doc_quote.x_crrnt_tot_agrd_rms%TYPE
, x_crrnt_tot_blckd_rms_in ggate_ct.gtt_s_doc_quote.x_crrnt_tot_blckd_rms%TYPE
, x_crrnt_tot_pckdup_rms_in ggate_ct.gtt_s_doc_quote.x_crrnt_tot_pckdup_rms%TYPE
, x_crrnt_tot_pckdup_avgrt_in ggate_ct.gtt_s_doc_quote.x_crrnt_tot_pckdup_avgrt%TYPE
, x_crrnt_tot_blckd_avgrt_in ggate_ct.gtt_s_doc_quote.x_crrnt_tot_blckd_avgrt%TYPE
, x_crrnt_cntrct_sr_revn_in ggate_ct.gtt_s_doc_quote.x_crrnt_cntrct_sr_revn%TYPE
, x_crrnt_cntrct_fd_revn_in ggate_ct.gtt_s_doc_quote.x_crrnt_cntrct_fd_revn%TYPE
, x_crrnt_cntrct_bev_revn_in ggate_ct.gtt_s_doc_quote.x_crrnt_cntrct_bev_revn%TYPE
, x_crrnt_cntrct_rm_revn_in ggate_ct.gtt_s_doc_quote.x_crrnt_cntrct_rm_revn%TYPE
, x_crrnt_usd_exchng_rt_in ggate_ct.gtt_s_doc_quote.x_crrnt_usd_exchng_rt%TYPE
, x_crrnt_cntrct_othr_revn_in ggate_ct.gtt_s_doc_quote.x_crrnt_cntrct_othr_revn%TYPE
, x_crrnt_cntrct_rsrc_revn_in ggate_ct.gtt_s_doc_quote.x_crrnt_cntrct_rsrc_revn%TYPE
, last_upd_in ggate_ct.gtt_s_doc_quote.last_upd%TYPE )
IS
BEGIN
IF prev_sts_cd_in = stat_cd_in
THEN
NULL;
ELSE
INSERT INTO gtt_s_doc_quote
( row_id
, stat_cd
, prev_sts_cd
, bu_id
, created
, x_crrnt_tot_agrd_rms
, x_crrnt_tot_blckd_rms
, x_crrnt_tot_pckdup_rms
, x_crrnt_tot_pckdup_avgrt
, x_crrnt_tot_blckd_avgrt
, x_crrnt_cntrct_sr_revn
, x_crrnt_cntrct_fd_revn
, x_crrnt_cntrct_bev_revn
, x_crrnt_cntrct_rm_revn
, x_crrnt_usd_exchng_rt
, x_crrnt_cntrct_othr_revn
, x_crrnt_cntrct_rsrc_revn
, last_upd )
VALUES
( row_id_in
, stat_cd_in
, prev_sts_cd_in
, bu_id_in
, created_in
, x_crrnt_tot_agrd_rms_in
, x_crrnt_tot_blckd_rms_in
, x_crrnt_tot_pckdup_rms_in
, x_crrnt_tot_pckdup_avgrt_in
, x_crrnt_tot_blckd_avgrt_in
, x_crrnt_cntrct_sr_revn_in
, x_crrnt_cntrct_fd_revn_in
, x_crrnt_cntrct_bev_revn_in
, x_crrnt_cntrct_rm_revn_in
, x_crrnt_usd_exchng_rt_in
, x_crrnt_cntrct_othr_revn_in
, x_crrnt_cntrct_rsrc_revn_in
, last_upd );
INSERT INTO s_doc_quote_ct
( row_id
, stat_cd
, prev_sts_cd
, bu_id
, created
, x_crrnt_tot_agrd_rms
, x_crrnt_tot_blckd_rms
, x_crrnt_tot_pckdup_rms
, x_crrnt_tot_pckdup_avgrt
, x_crrnt_tot_blckd_avgrt
, x_crrnt_cntrct_sr_revn
, x_crrnt_cntrct_fd_revn
, x_crrnt_cntrct_bev_revn
, x_crrnt_cntrct_rm_revn
, x_crrnt_usd_exchng_rt
, x_crrnt_cntrct_othr_revn
, x_crrnt_cntrct_rsrc_revn
, last_upd)
SELECT row_id
, stat_cd
, prev_sts_cd
, bu_id
, created
, x_crrnt_tot_agrd_rms
, x_crrnt_tot_blckd_rms
, x_crrnt_tot_pckdup_rms
, x_crrnt_tot_pckdup_avgrt
, x_crrnt_tot_blckd_avgrt
, x_crrnt_cntrct_sr_revn
, x_crrnt_cntrct_fd_revn
, x_crrnt_cntrct_bev_revn
, x_crrnt_cntrct_rm_revn
, x_crrnt_usd_exchng_rt
, x_crrnt_cntrct_othr_revn
, x_crrnt_cntrct_rsrc_revn
, last_upd
FROM ggate_ct.gtt_s_doc_quote;
END IF;
END quote_sts;
Tags: Database
Similar Questions
-
ORA-01858: a non-digit character was found here where was waiting for a digital
Hi friends,
Before posting inturn I have goggled on the question above, but looking forward for you suggestions.
I have the data in the table that consist of two columns of date below
when im trying to like
TO_NUMBER (ROUND (MONTHS_BETWEEN (TO_DATE (C22_LASTPAYDUEDATE, "YYYY-MM-DD HH24:MI:SS), TO_DATE (C23_FACGRANTDATE," YYYY-MM-DD HH24:MI:SS)))))))
Like the im getting the error ORA-01858: a non-digit character was found here where was waiting for a digital. How to solve this question friends.
Thanks in advance.
Kind regards
Saro
If C22_FACGRANTDATE and C23_LASTPAYDUEDATE are indeed 'two date columns', why are you doing a TO_DATE() on them? And why do you do a TO_NUMBER() to a value that will already be a number? Why not just do this:
ROUND (MONTHS_BETWEEN (C22_LASTPAYDUEDATE, C23_FACGRANTDATE))
If they are not the columns date (i.e. the DATE or TIMESTAMP data type columns), why are they not?
-
ERR: a non-digit character was found here where was waiting for a digital
Hello
I'm trying to load data into an oracle from oracle table.
I am getting following error:
java.sql.SQLDataException: ORA-01858: a non-digit character was found here where was waiting for a digital
When I run the sql code in the SQL Developer it gives me error like:
Error report:
SQL error: ORA-01858: a non-digit character was found here where was waiting for a digital
01858 00000 - "a non-digit character found here where was waiting for a digital".
* Cause: Input data to convert using a date format model has been
incorrect answer. The input data did not contain a number where is a number
required by the format model.
* Action: Fix the input data or the date format model to ensure that the
elements correspond to the number and the type. And then try the operation again.
Please give me any suggestions...
Thank youtry to copy the code generated to the developer of Toad or sql and execute it. You will get the same error here.
Now, try to give the date format according to your NLS parameter as to_date (source_coulumn, 'yyyymmdd') etc in the mapping target.
Thank you.
-
a non-digit character was while digital was expected
Hello
I get the error from database when working with Oracle PLSQL code below.
I come from a previous date Sunday in a variable and passing the date in the native dynamic SQL
DECLARE v_sun_date DATE; v_sql varchar2(30); v_s1_date VARCHAR2(30); v_sql1 VARCHAR2(1000); v_date VARCHAR2(30); BEGIN --select to_char(next_day ( trunc (sysdate-5, 'iw') , 'Sunday' ) ,'DD-MON-YY') into v_sun_date from dual; SELECT to_date(to_char(trunc(next_day(sysdate-5,'Sunday')),'MM/DD/YYYY'),'MM/DD/RRRR') into v_sun_date from dual; dbms_output.put_line('The sunday date is '||v_sun_date); --select TO_DATE(v_sun_date,'MM/DD/YYYY') into v_s1_date from dual; --dbms_output.put_line('The sunday date is '||v_s1_date); --v_sql := q'[drop table test_util]'; --execute immediate v_sql; execute immediate q'[create table test_util as SELECT A.* From HRBOSTF.TBL_STF_UTL_MAIN A, DIM_DATE where EMPLOYEE_NUMBER <> 'FILLER' and (A.PROVIDER_REGION = 'Own' or A.PROVIDER_REGION ='Inter SBU') and dim_date.Weekend_date <= '||v_sun_date||' --to_date('11/01/2015','MM/DD/YYYY') --- 1st feb sunday date and NVL(DIm_date.Note,'A') <> 'I' and COST_PA_PERIOD=DIm_date.Week_no and PROJECT_TYPE <> 'Public Holidays' and provdr_bu in ('CPRD','EUC','HTEC','IDS','MALS','CBS') and job_rank not in ('5 CN','05 SB','ZZ','NonEm','16','64 SU') and job_desc not in('Contractor', 'Supervising Associate') and job_class = 'CSS']'; END; /
If please appreciate your help and must pass the v_sun_date to immediate execution.
Concerning
What are you trying to do with this?
To_date (to_char(some_date_expression,'MM/DD/YYYY'), ' DD/MM/RRRR')
This is a verbose and inefficient way to TRUNC (some_date_expression), but your expression of date is already truncated so it is useless.
Your problem however is that your immediate execution of the query compares Weekend_date with the literal string. v_sun_date | instead of the contents of the variable v_sun_date. The best solution would be to use a variable binding (although I agree with Paul that it is generally a bad idea to create tables on the fly like this):
run immediately q'[create table test_util like
SELECT A.*
Of HRBOSTF. TBL_STF_UTL_MAIN A, DIM_DATE
where EMPLOYEE_NUMBER <> 'FILL' and (A.PROVIDER_REGION = 'Clean') or A.PROVIDER_REGION = 'SBU Inter'
and dim_date. Weekend_date <=>=> : 1
and NVL (dim_date.note, 'A') <> 'I '.
and COST_PA_PERIOD = DIm_date. Week_no
and PROJECT_TYPE <> "holidays".
and provdr_bu in ('SPCER', 'EUC', 'SACTH', 'ID', 'EVILS', 'CBS')
and not job_rank ("' CN 5 ', '05', 'ZZ', 'NonEm' SB ', '16', ' SU 64 ')
and not job_desc ("Entrepreneur", "supervision associated with")
and job_class = 'CSS']'
Using v_sun_date;
-
Can someone help me create a procedure with the DML statements that insert values from 1 to 100 in a table "abc" and the procedure must connect the numbers into words in another table "xyz" without doing a commit explicitly. "."
Currently on trial...
SQL > create table abc (num number);
Table created.
SQL > create table xyz (num varchar2 (100));
Table created.
SQL > ed
A written file afiedt.buf1. insert all
2 values of 1 = 1 then in abc (num) (l)
3 when the values of 1 = 1 then in xyz (num) (to_char (to_date(l,'j'), 'jsp'))
4 * Select the level from dual connect by level<=>=>
SQL > /.200 rows created.
And the result...
SQL > select * from abc;
NUM
----------
1
2
3
4
5
6
7
8
9
10
11
12
..
..
..
98
99
100100 selected lines.
SQL > select * from xyz;
NUM
----------------------------------------------------------------------------------------------------
one
two
three
four
five
six
seven
eight
nine
ten
Eleven
twelve
..
..
..
98
Nineteen eighty
Cent100 selected lines.
-
How the parameter of the procedure with the default table type?
Hello!
How the parameter of the procedure with the default table type?
For example:type varchar2lType is table of varchar2(50) index by binary_integer;
Published by: bullbil on 16.01.2012 06:35create or replace procedure test1 ( s1 varchar2(50) sa2 Varchar2Type ) as begin dbms_output.put_line('yyxxyyy!'); end; /
If he should really be an associative array for some reason any (can't think why, but just for fun...) you could declare a dummy array in the packet header and specify as the default:
create or replace package wr_test as type varchar2ltype is table of varchar2(50) index by pls_integer; g_dflt_varchar2l_tab varchar2ltype; procedure testit ( p_testarray varchar2ltype default g_dflt_varchar2l_tab ); end wr_test; create or replace package body wr_test as procedure testit ( p_testarray varchar2ltype default g_dflt_varchar2l_tab ) is begin dbms_output.put_line('p_testarray contains ' || p_testarray.count || ' elements'); end testit; end wr_test;
It is a bit of a hack, because it relies on a global variable that is exposed. A more orderly approach would overload the procedure so that a version does not have the table and another argument:
create or replace package wr_test as type varchar2ltype is table of varchar2(50) index by pls_integer; procedure testit; procedure testit ( p_testarray varchar2ltype ); end wr_test; create or replace package body wr_test as procedure testit is v_default_array varchar2ltype; begin testit(v_default_array); end testit; procedure testit ( p_testarray varchar2ltype ) is begin dbms_output.put_line('p_testarray contains ' || p_testarray.count || ' elements'); end testit; end wr_test;
-
problem with writing a procedure with the name of the table as an input parameter
Hi all
I am writing a procedure with the table name as input parameter:
Here is the code
create or replace procedure CEP (in_tbl in varchar2)
as
Start
run immediately 'truncate table tlb;
Insert into tbl
Select a, b, c of in_tbl;
end;user579585 wrote:
Hi allI am writing a procedure with the table name as input parameter:
Here is the codecreate or replace procedure CEP (in_tbl in varchar2)
as
Startrun immediately 'truncate table tlb;
Insert into tbl
Select a, b, c of in_tbl;
end;
You will also need to use dynamic sql for insert statements:
execute immediate 'begin insert into tbl select a,b,c from '||in_tbl||'; end';
-
How is it possible to specific your own, with the constant help of string to locate a directory where the NEW
created the folder to save?
-
Hello
We have recently updated our virtual Center Server to version 4 and now when I try to download and install from the page manager plugin vmware update manager plugin is back with "the remote server returned an error: (404) not found"
Has anyone had this problem before and eventually worked out how to fix this?
Gregg Robertson, VCP, MCSE, MCSA, MCTS, MCITP
You are welcome!!
-
Procedure with THE parameters - creating a report
I have the following procedure which is used in our applications (non-APEX) internal:
The body of the procedure made a lot of treatment and inserts data into an intermediate table. The cursor ON the parameter then returns a SELECT statement in the staging table. Since it is possible that this procedure be struck several times (several users), transaction ID is used to match the data in the staging table to demand appropriate. The procedure then deletes the data from the staging table. (I'll post if necessary, but it is quite long, and since it is used successfully in other applications, I don't think it relates to my question).PROCEDURE SelIssueActivityPublic ( p_results OUT SYS_REFCURSOR, p_IssueID IN ems.issue.issue_id%TYPE, p_TransactionID OUT VARCHAR2 )
Asked me to create a report of the APEX data generated by the procedure. I've never used a procedure with an OUT parameter to create a report. I was hoping to assign transaction ID to a variable hidden on the loading of the page and then use it to poplulate the report. I'm not interested in the OUT parameter slider, I wrote my own SELECT statement to retrieve the data from the staging table.
I tried to create a page that did that - agenda: H_P19_TRANSID, before the header calculation = EMS. EMS_READER. SelIssueActivityPublic (: H_P19_CURSOR, 454551,: H_P19_TRANSID) [454551 is a test question id], but I get the following error:
He seems to think that SelIssueActivityPublic is a function, and I don't know why.ORA-06550: line 1, column 43: PLS-00222: no function with name 'SELISSUEACTIVITYPUBLIC' exists in this scope ORA-06550: line 1, column 7: PL/SQL: Statement ignored flowComp=H_P19_TRANSID Error ERR-1030 Error executing computation expression.
Basically, I need to know how to use this procedure to put up my report. Once I can enter the transaction ID in a page element, I'll be set.How your procedure? You know that you can have the same procedure in the package with several definitions. Oracle allows you to use polymorphism, the ability to have multiple definitions of the same object with different signatures.
Correction... You can not have a procedure of p in the case, are a function, since the calculation is expected to a way to fill the hidden element... You need a function to return the type of variable you want in the hidden element...
Thank you
Tony Miller
Webster, TXPublished by: Tony Miller on March 16, 2010 12:34
-
Create the stored procedure with the table from another throw diagram PLS-00201
Oracle 10g. I'm new on procedures, so maybe I'm missing something obvious.
The ABC schema owner has table T2001_WRITEOFF. The SYSDBAs given SIUD Some_Update_Role and granted this role to developer user IJK. IJK user then created a private synonym T2001_WRITEOFF for ABC. T2001_WRITEOFF. It worked with the usual SQL DML commands.
When I try to create a simple procedure, it throws PLS-00201 identifier "T2001_WRITEOFF" must be declared and the points of the 2nd line.
create or replace procedure woof1(
fooname in T2001_WRITEOFF.territory%TYPE, <=== error points here
bardesc IN T2001_WRITEOFF.ind_batch_submit%TYPE) IS
BEGIN
INSERT into T2001_WRITEOFF
VALUES ( fooname, bardesc);
END woof1;
/What I am doing wrong?
Thank you
JimR
Grant the necessary rights directly to the user (not through a role):
http://asktom.Oracle.com/pls/asktom/asktom.download_file?p_file=6551289900368934430
-
Failed to create the stored procedure with the object as a parameter
Hello
No idea how to create procedures to the current data stored in SQLFire, try to run the command prompt "sqlf" per call "create_proc.sql" as give below error below
C:\SQLFire10Beta>sqlf sqlf version 10.4 sqlf> connect client 'localhost:1527'; sqlf> run 'create_proc.sql'; sqlf> CREATE PROCEDURE INSURANCE.SEARCHCUSTOMER (IN CUST OBJECT) DYNAMIC RESULT SETS 1 LANGUAGE JAVA PARAMETER STYLE JAVA READS SQ L DATA EXTERNAL NAME com.xxx.xxx.sqlfire.dao.CustomerSearchProcedure.searchCustomer; ERROR 42X01: Syntax error: Encountered "" at line 1, column 47. Caused by: SqlException: Syntax error: Encountered "" at line 1, column 47. at com.vmware.sqlfire.internal.client.am.Statement.completeSqlca(Statement.java:1838) sqlf> sqlf>
and I created a class Java as described below:public class CustomerSearchProcedure { public static void searchCustomer (BaseDTO[] customers, ResultSet[] outResults, ProcedureExecutionContext context) throws SQLException { BaseDTO searchCriteria = customers[0]; StringBuilder sql = new StringBuilder(); sql.append("SELECT * FROM INSURANCE.CUSTOMERS WHERE CUST_NAME LIKE '"+searchCriteria.getCustName().trim() + "%'"); Connection cxn = context.getConnection(); Statement stmt = cxn.createStatement(); ResultSet rs = stmt.executeQuery(sql.toString()); outResults[0] = rs; } //END OF METHOD }
This procedure is called class using the class StoredProcedure Spring DAOYou can let me know why am not able to create the procedure?
FYI, pots can also can be dynamically installed in the system by using the SYS. Table client-side JARS to transport the jar bytes rather than by requiring that the pot be accessible side Server (http://pubs.vmware.com/vfabric5/index.jsp?topic=/com.vmware.vfabric.sqlfire.1.0/deploy_guide/Topics/sysjars_install.html)
-
A bunch of my subfolders to sort my email disappeared, which has been brought to my attention when TB tried to sort my mails and said that the subfolder does not exist. I've recreated the subfolders with the same name as before and when I entered the new subfolder I was surprised to see that all the past E-mail were in it. However, when I opened the email body of emails were empty. (I even tried to syntax highlighting for white text as suggested in the line, but nothing)
I used the "search for emails"options to try to find, using the title of the emails as search parameter, that is to say "received for your PalPay payment" and the search results gave me the results of all the missing emails with the full text of each e-mail. " However, when I went into individual emails (or open emails as option in the list) the text was not yet there. It must be here somewhere because the search option is to find.
I tried to delete the profile (global-messages - db.sqlite) in the hope that he would bring back the text but it did not work. Most of the emails that are empty is financial in nature and I would like to return.
Help!
Thank you, John Jaeger
Thanks for trying. Cannot find missing files anywhere. Returned in time machine and pulled the 'old' if only lost a couple of weeks of mail. in these files.
Thanks again
-
I bought an iphone used several years ago... When updating with the new iOS 7.1.2 recently, he was locked with previous apple owners account.
its now useless. I didn't know all these crappy activation locks and all.now I have no idea
How can I find my iphone is off and use my phone back
iphone 4 32 gb
-
Can Hi anyone help me understand what could be the problem with my extensions Manager. I just installed or rather updated all my apps, including extensions through the CC Manager Manager. After updated all my applications, I think I lost all my extensions on Photoshop CC 2015. So I tried to reinstall the extensions Manager and update it, but the problem seems to be it seems to take on Photoshop, which makes it difficult for me to install new extensions. Is there something escapes me?
Hi Didier,.
See a related discussion on the same topic: Re: Extensions CC2015 gone
I heard the team there are some problems with the Add-ons and the command line tool, and the team is trying to solve. I'll let you know as soon as I have an update.
See Adobe Exchange for official communication on the extensions Manager.
Thank you
Preran
Maybe you are looking for
-
The current Virus and malware Notifications - true or false
I continue to receive notifications of virus or malware on my iMac with OS X (10.11.5). Are these for real or are they scams? How can I get rid of them - notifications is that they are fake or viruses if they are for real?
-
Browser keeps opening with previous tabs from the previous day. How can I stop this?
Under Tools > Options > general, I have the browser when I open the browser to "open a white page" but it keeps opening the previous tabs from the night before. How can I stop this? I read the advice of the forum but not found or overlooked the answe
-
Firefox v14.0.1, WinXP, change window order when FF restarts
A similar question was asked about 4 months, no confirmed answer: after a FF 14.0.1 restart (say, after an accident or when the Firefox task ended from the Task Manager), the ORDER of the restored windows is different than it was at the stop. In some
-
d011wm flow 11: best way to update windows 10? This disc is the best way to start froom
After minor driver installation would not work. Intel, Realtek, recovery manager has been altered and would not work.
-
Mirar toolbar problems and recovery disk?
My kids accidentally downloaded the Mirar Toolbar, and it has really raised heck with my count. I'm not knowledgeable enough to go into the registry and fix everything, but managed to slow it down a bit. I get pop up Windows I am in another site, and