Need help with ORA-00936: lack of expression
11.2.0.3desc killsessionlog
Name Null? Type
----------------------------------------------------- -------- --------------
KILLTIME NOT NULL DATE
USERNAME NOT NULL VARCHAR2(30)
SID NOT NULL NUMBER
SERIAL# NOT NULL NUMBER
CTIME NOT NULL NUMBER
MACHINE VARCHAR2(64)
TERMINAL VARCHAR2(30)
PROGRAM VARCHAR2(48)
ACTION VARCHAR2(64)
MODULE VARCHAR2(64)
to test the code to kill the blockerSQL> create or replace procedure killblocker
2 is
3 stmt varchar2(1000);
4 cursor c1 is
5 select s1.SQL_EXEC_START+l1.ctime killtime, s1.username,s1.sid,s1.serial#,l1.ctime ,s1.machine
,s1.TERMINAL, s1.PROGRAM,s1.ACTION,s1.MODULE
6 from v$lock l1, v$session s1, v$lock l2, v$session s2
7 where s1.sid=l1.sid and s2.sid=l2.sid
8 and l1.BLOCK=1 and l2.request > 0
9 and l1.id1 = l2.id1
10 and l2.id2 = l2.id2
11 and l1.ctime >0;
12 begin
13 for i in c1 loop
14 EXECUTE IMMEDIATE 'ALTER SYSTEM KILL SESSION ''' || i.sid || ',' || i.serial# || '''';
15 stmt := 'insert into killsessionlog values ('||i.killtime||','|| i.username||','||i.sid||','||i
.serial#||','||i.ctime||','||i.machine||','||i.TERMINAL||','|| i.PROGRAM||','||i.ACTION||','||i.MODU
LE||')'
16 ;
17 EXECUTE IMMEDIATE stmt;
18 dbms_output.put_line('SID '||i.sid ||' with serial# '||i.serial#||' was killed');
19 END LOOP;
20 END;
21 /
Procedure created.
created the blocker and blocked the sessions.SQL> exec killblocker
BEGIN killblocker; END;
*
ERROR at line 1:
ORA-00936: missing expression
ORA-06512: at "NN.KILLBLOCKER", line 17
ORA-06512: at line 1
worked the first EXECUTE IMMEDIATE for the murder of the session, but the 2nd EXECUTE IMMEDIATE for insertion failed as above. Not able to understand the problem.TIA
SQL> create or replace procedure killblocker
2 is
3 stmt varchar2(1000);
4 cursor c1 is
5 select s1.SQL_EXEC_START+l1.ctime killtime, s1.username,s1.sid,s1.serial#,l1.ctime ,s1.machine
,s1.TERMINAL, s1.PROGRAM,s1.ACTION,s1.MODULE
6 from v$lock l1, v$session s1, v$lock l2, v$session s2
7 where s1.sid=l1.sid and s2.sid=l2.sid
8 and l1.BLOCK=1 and l2.request > 0
9 and l1.id1 = l2.id1
10 and l2.id2 = l2.id2
11 and l1.ctime >0;
12 begin
13 for i in c1 loop
14 EXECUTE IMMEDIATE 'ALTER SYSTEM KILL SESSION ''' || i.sid || ',' || i.serial# || '''';
15 stmt := 'insert into killsessionlog values (:killtime, :username, :sid, :serial#, :ctime, :machine, :TERMINAL, :PROGRAM, :ACTION, :MODULE)'
16 ;
17 EXECUTE IMMEDIATE stmt using i.killtime, i.username, i.sid, i.serial#, i.ctime, i.machine, i.TERMINAL, i.PROGRAM, i.ACTION, i.MODULE;
18 dbms_output.put_line('SID '||i.sid ||' with serial# '||i.serial#||' was killed');
19 END LOOP;
20 END;
21 /
Gerard
Tags: Database
Similar Questions
-
ODI-1228. ORA-00936: lack of expression
Hi all
I have an existing map where I load data flatfile Hyperion Essbase 11.
This is achieved in the 2 interfaces.
1. 1 flat file, 1 table Oracle to Oracle (staging)
2. oracle (Staging) to Hyperion Essbase
I am currently working on interface 1 that has 2 sources: a flat file and an oracle with a join condition table and an oracle target. The change is the addition of 2 new columns. I added 2 new columns in the flat file. I added these 2 columns to the target oracle table also. I changed all the MILES that are:
1. oracle to SQL file
2. LKM SQL for Oracle
3 control of the IKM SQL add - Mindstream - DataQuality - tests
Diff of the target staging area is not checked.
Data are not be fulfilled to target oracle table. I get the following error.
Error: ODI-1228: data_V2 load TXT_ORA 7B (integration) task fails on the target of ORACLE ORA_HYPTEST connection.
Caused by: java.sql.SQLSyntaxErrorException: ORA-00936: lack of expression
I tested the connection in the scheme physical and is very well. I am able to see the structure of the table also under the mapping tab with which I think that I am connected to the target.
Kindly advice.
Thank you
Hello
Can you please open the step failed ODi operator and goto code tab and copy and paste the code into the SQl command prompt and run manually and see the same error message comes or not, if there is error coming on yesy interface map.
hope this will help you follow the question
Kind regards
Phanikanth -
ERROR: ORACLE prepare error: ORA-00936: lack of expression
Hello
I am required to run the 'pass-through' Oracle SQL, to extract data from tables in the SAS for processing and handling. My code (attached) reads and writes (runs) but with zero records to test first. I can't get beyond the error to prepare.
The request is just like other queries that seem to work, but I can't get past this prepare error. I have no other access to individauls with an adequate knowledge of the PL SQL and as a last stop hoped others in the forum could quickly identify the source of the error.
Thank you very much in advance for any help.
Jeff
_______________________________________
1; *'; * « ; * / ; Quit; execution risk;
2 OPTIONS NUMPAGE = MIN;
3% LET _CLIENTTASKLABEL = % NRBQUOTE (rx_biplr_v3_2);
4% LET _EGTASKLABEL = % NRBQUOTE (rx_biplr_v3_2);
5% LET _CLIENTPROJECTNAME = %NRBQUOTE();
6% LET _SASPROGRAMFILE =;
7
8 ODS CLOSE SUBJECT;
NOTE: Some of your options or statements will not be managed with the Activex or Java Series devices. Chart by default for these
drivers may be different from other SAS/GRAPH device drivers. For more information, please contact Technical Support.
9 OPTIONS DEV = ACTIVEX;
10 EGHTML TEMP FILE NAME;
NOTE: Writing, body HTML (EGHTML) file: EGHTML
11 ODS HTML(ID=EGHTML) FILE = EGHTML ENCODING = 'utf - 8' STYLE = EGDefault.
11. STYLESHEET=(URL="file:///C:/program%20Files/SAS/shared%20Files/BIClientStyles/EGDefault.CSS")
11. ATTRIBUTES = ("http://www2.sas.com/codebase/graph/v91/sasgraph.exe"="CODE") NOGTITLE NOGFOOTNOTE GPATH = & sasworklocation
11.
12
gaccessible 13%;
14 /********************************************************/
15 * RX_BIPLR_V3. SAS;
16 /********************************************************/
17
18 dm 'journal clearly out; delete ";
19 linesize options = 120;
20 option obs = 0 NoReplace;
21
22 ****************************************************************************************;
23 * date reviewed programmer in WHICH WAS MADE;
24 *----- -------------- ------------ -----------------------------------------;
25 * 2005 creation of David Boyd program to the test population;
26 *;
27 * 06/02/2006 Ivon Jones changed to include the whole of the population;
28 *;
29 * 20/07/2006 Ivon Jones identified the holdout data elements;
30 * or inclusion in the consolidation with;
31 * Robin report;
32 *;
33 * 18/08/2006 Ivon Jones updated specific therapeutic Classes.
34 * 10 - 2009 J Shaf - changed to extract actual or potential of UBH bipolar Dx and medical claims.
35 ****************************************************************************************;
36
37
38
39 * % let allclmorgn = (', 'A'); / * claims origin code * /.
40% would let begdate ='01 SEP 2009;
41% let enddate = 30 SEP 2009 would be;
42% let q = %str(%');
43
44
45 data _null_;
46. call symput ("fdos", put (intnx ('month' ' and begdate "d,-27," starts"), date9.));
47 call symput ('ldos', put (intnx ('months', ' and enddate "d-0, 'end'" "), date9.));
48, run;
NOTE: DATA statement used (total duration of processes):
time real 0.01 seconds
2 the system SAS 11:44 Friday, October 30, 2009
time CPU 0.01 seconds
49
50
51
52 **************************************************************;
53 *? Data _null_ stage allows to create a macro variable to;
54 * year and month, based on the macro ldos variable in the data;
55 * step up? ;
56 **************************************************************;
57
58
59 data _null_;
If 60 months ("& ldos" d) < 10
61, then call symput ("yr_mo", compress (year ("& ldos" d) |)) '0' || months ("& ldos" d)));
62 other call symput ("yr_mo", compress (year ("& ldos" d) | months ("& ldos" d)));
63 to run;
NOTE: The numeric values were converted to character values in the locations given by: (Line): (Column).
61:39 61:64 62:39 62:57
NOTE: DATA statement used (total duration of processes):
time real 0.01 seconds
time processor 0.01 seconds
64
65 * make % & biplr_dx;
position 66% & begdate;
' 01 SEP 2009 would be
67% put & enddate;
30 SEP 2009 would be
68% put & fdos;
JUNE 1, 2007
69% put & ldos;
SEPTEMBER 30, 2009
70% put & q;
'
71
72
73 libname biplr ' / home/jshafi01/projects/adhoc/biplr_dprsn/data ';
NOTE: Libref BIPLR has been awarded with success as follows:
Engine: V9
Physical name: / home/jshafi01/projects/adhoc/biplr_dprsn/data
74 rosdwp libname = oracle user "& oracle_user." pass = "& oracle_pass." ' buffsize = 32767 path = "rosdwp"; "
NOTE: Libref ROSDWP has been awarded with success as follows:
Engine: ORACLE
Physical name: rosdwp
75
work.biplr_up_v1 76 data;
mbr_id length 77 attrib = $ 26;
78 the value biplr.biplr_ubh_med_v1;
79 to be performed;
NOTE: There were 0 read comments from the BIPLR data set. BIPLR_UBH_MED_V1.
NOTE: All data WORK. BIPLR_UP_V1 has 0 comments and variables 1.
NOTE: DATA statement used (total duration of processes):
time real 0.01 seconds
3 the system SAS 11:44 Friday, October 30, 2009
time processor 0.01 seconds
80
81 proc content;
82 to be performed;
NOTE: PROCEDURE used CONTENT (total duration of processes):
time real 0.03 seconds
time CPU 0.03 seconds
83
84 proc datasets
85 = rosdwp nolist library.
86. delete biplr_up_v1;
87 of quitting;
NOTE: The removal of ROSDWP. BIPLR_UP_V1 (memtype = DATA).
NOTE: PROCEDURE used DATASETS (time Total of processes):
time real 3.74 seconds
time CPU 0.03 seconds
88
89 proc datasets
90 = work nolist library.
copy 91 = rosdwp move;
92 select biplr_up_v1;
93 of quitting;
NOTE: Move WORK. BIPLR_UP_V1 to ROSDWP. BIPLR_UP_V1 (memtype = DATA).
NOTE: Variable labels SAS, formats and lengths are not written to the DBMS tables.
NOTE: There were 0 read comments from the WORKING data set. BIPLR_UP_V1.
NOTE: All the data ROSDWP. BIPLR_UP_V1 has 0 comments and variables 1.
NOTE: PROCEDURE used DATASETS (time Total of processes):
real 0.32 seconds
time CPU 0.04 seconds
94
95
96
97 *****************************************************************************;
98
99 * execute (commit) by rosdwp
100 ******************************************************************************;
101
102
103 proc SQL noprint.
104, connect to oracle as rosdwp (user = "" & oracle_user. "password =" "& oracle_pass ' buffsize = 32767 path ="rosdwp")
104. preserve_comments);
run 105 (alter session set nls_date_format = 'ddmonyyyy') by rosdwp;
CREATE table biplr_rx like 106
107 SELECT
mrb_id 108,
pcp_spc 109,
rx_date 110,
4 the system SAS 11:44 Friday, October 30, 2009
Mark 111,
generic, 112
113 ahfs_cd
ahfs_dsc 114,
lbl 115,
strngth 116,
UNT 117,
spc_tx_cls_cd 118,
119 spc_tx_cls_dsc,
GCN 120,
rx_num 121,
rx_ingrd 122,
rx_paid 123,
rx_cnt 124,
rx_qty 125,
rx_day 126
127 rosdwp CONNECTION
128 (SELECT
129, middle of the year. UNIQ_MBR_ID as mrb_id,
130 DB. PRVDR_SPCLTY_DESC as pcp_spc,
FCP 131. LAST_SRVC_DT as rx_date,
132 JJ. BRAND_NAME as mark,
133 JJ. GNRC_NAME as generic,
134 JJ. AHFS_THRPTC_CLS_CD as ahfs_cd,
DD 135. AHFS_THRPTC_CLS_DESC as ahfs_dsc,
136 JJ. LABEL_NAME as lbl,
137 JJ. STRNGTH_NUM as strngth
138 JJ. STRNGTH_UNIT_DESC as unt,
139 JJ. SPECF_THRPTC_CLS_CD as spc_tx_cls_cd,
140 DD. SPECF_THRPTC_CLS_DESC as spc_tx_cls_dsc,
141 JJ. GCN_NUM as gcn,
FCP 142. PRSCRPTN_NUM as rx_num,
SUM of 143 (FCP. INGRDNT_AMT) as rx_ingrd,
SUM of 144 (FCP. PD_AMT) as rx_paid,
$ 145 (FCP. UNIT_SRVC_CNT) as rx_cnt,
SUM of 146 (FCP. DSPNSD_QTY) as rx_qty,
SUM of 147 (FCP. DAY_SUPLY_CNT) as rx_day
148
149 PHRMCY_CLM_FACT pcf,
150 MBR_ID_DMNSN environment,
151 DRUG_DMNSN dd,
152 PRVDR_DMNSN pd,
153 biplr_up_v1
154. WHERE THE
(155)
156 (biplr_up_v1.mbr_id = MBR_ID_DMNSN. UNIQ_MBR_ID) and
157 (PHRMCY_CLM_FACT. FINL_CLM_KEY = PHRMCY_FINL_CLM_DMNSN. FINL_CLM_KEY) AND
158 (PHRMCY_CLM_FACT. MBR_KEY = MBR_ID_DMNSN. MBR_KEY) and
159 (PHRMCY_CLM_FACT. BNFT_KEY = MBR_BNFT_DMNSN. BNFT_KEY) and
160 (PHRMCY_CLM_FACT. DRUG_KEY = DRUG_DMNSN. DRUG_KEY) and
161 (PHRMCY_FINL_CLM_DMNSN. CLM_ORGN_CD IN (', 'A')) AND
162 (PHRMCY_CLM_FACT. LAST_SRVC_DT BETWEEN q. & fdos. & q and & q. & ldos. & q)
163)
164 Group By
165 mi. UNIQ_MBR_ID,
166 pd. PRVDR_SPCLTY_DESC,
FCP 167. LAST_SRVC_DT,
168 JJ. BRAND_NAME,
5 the system SAS 11:44 Friday, October 30, 2009
169 JJ. GNRC_NAME,
170 JJ. AHFS_THRPTC_CLS_CD,
171 JJ. AHFS_THRPTC_CLS_DESC,
172 JJ. LABEL_NAME,
173 JJ. STRNGTH_NUM,
174 JJ. STRNGTH_UNIT_DESC,
175 JJ. SPECF_THRPTC_CLS_CD,
176 JJ. SPECF_THRPTC_CLS_DESC,
177 JJ. GCN_NUM,
FCP 178. PRSCRPTN_NUM
179);
ERROR: ORACLE prepare error: ORA-00936: lack of expression. SQL statement: SELECT middle. UNIQ_MBR_ID as mrb_id,
RDL PRVDR_SPCLTY_DESC like pcp_spc, FCP. LAST_SRVC_DT as rx_date, JJ. BRAND_NAME as brand, JJ. GNRC_NAME as generic,
DD. AHFS_THRPTC_CLS_CD like ahfs_cd, JJ. AHFS_THRPTC_CLS_DESC as ahfs_dsc, JJ. LABEL_NAME as lbl, JJ. STRNGTH_NUM as
strngth, JJ. STRNGTH_UNIT_DESC as unt, JJ. SPECF_THRPTC_CLS_CD as spc_tx_cls_cd, JJ. SPECF_THRPTC_CLS_DESC as
spc_tx_cls_dsc, JJ. GCN_NUM as gcn, FCP. PRSCRPTN_NUM as rx_num, SUM (FCP. INGRDNT_AMT) as rx_ingrd, SUM (FCP. PD_AMT)
as rx_paid, SUM (FCP. UNIT_SRVC_CNT) as rx_cnt, SUM (FCP. DSPNSD_QTY) as rx_qty, SUM (FCP. DAY_SUPLY_CNT) as rx_day
OF PHRMCY_CLM_FACT pcf, MBR_ID_DMNSN mi, DRUG_DMNSN JJ, pd of the PRVDR_DMNSN, biplr_up_v1 () WHERE the
(biplr_up_v1.mbr_id = MBR_ID_DMNSN. UNIQ_MBR_ID) and (PHRMCY_CLM_FACT. FINL_CLM_KEY =
PHRMCY_FINL_CLM_DMNSN. FINL_CLM_KEY) AND (PHRMCY_CLM_FACT. MBR_KEY = MBR_ID_DMNSN. MBR_KEY) and
(PHRMCY_CLM_FACT. BNFT_KEY = MBR_BNFT_DMNSN. BNFT_KEY) and (PHRMCY_CLM_FACT. DRUG_KEY = DRUG_DMNSN. DRUG_KEY) and
(PHRMCY_FINL_CLM_DMNSN. CLM_ORGN_CD IN (', 'A')) AND (PHRMCY_CLM_FACT. LAST_SRVC_DT BETWEEN ' 01 JUN 2007"
and 30 SEP 2009') Group By mi. UNIQ_MBR_ID, pd. PRVDR_SPCLTY_DESC, FCP. LAST_SRVC_DT, JJ. BRAND_NAME,
DD GNRC_NAME, JJ. AHFS_THRPTC_CLS_CD, JJ. AHFS_THRPTC_CLS_DESC, JJ. LABEL_NAME, JJ. STRNGTH_NUM,
DD STRNGTH_UNIT_DESC, JJ. SPECF_THRPTC_CLS_CD, JJ. SPECF_THRPTC_CLS_DESC, JJ. GCN_NUM, FCP. PRSCRPTN_NUM.
NOTE: PROC SQL set NOEXEC option and will continue to check the syntax of the instructions.
180 run (drop table biplr_up_v1) in rosdwp;
NOTE: Statement is not executed because the NOEXEC option.
181 disconnect of rosdwp;
NOTE: Statement is not executed because the NOEXEC option.
182 of quitting;
NOTE: The SAS system is stopped at this stage of processing errors.
NOTE: PROCEDURE used SQL (total duration of processes):
time real 0.14 seconds
time CPU 0.03 seconds
183
184(1) assuming that LAST_SRVC_DT is a column of PHRMCY_CLM_FACT, to precede the table alias "FCP" rather than the full table name. If a table alias is specified in the FROM clause, it should be used rather than the full table name when you reference the columns.
2) there are two tables in the WHERE clause that do not appear in the FROM clause:PHRMCY_FINL_CLM_DMNSN
MBR_BNFT_DMNSNuser12142482 wrote:
Hello again,Wish Oracle was a bit more informative. Uses an Institute of SAS product called Enterprise Guide. A "hot fix" has been installed to solve a problem that the product appears unable to save the latest version of the revised code changes (hence "BETWEEN between" remaining even after an earlier edition). In any case, with the change, now get this error:
«ERROR: ORACLE prepare error: ORA-00904: "PHRMCY_CLM_FACT".» ' LAST_SRVC_DT': invalid identifier. (The log file is displayed below)
-The-Les restes remains of the error, no matter if code "pass" is used to move the date range to Oracle (which seems correct to the log output below that I believe), or if I hard code the date range in the query SQL PL itself.
-L' preparation error always appears at the end of the internal SELECTION.
-L' error of preparation remain, with or without the GROUP BY clause.Is there something else I'm missing? Someone suggested a reserve word - but other versions of the ANSI SQL standard, I don't see that is the case. I went to Support SAS and SAS list serve to the University of Georgia, but nothing definite from these sources. Have requested either able to run Oracle directly, outside this SAS Institute product - process.
Any suggestions are greatly appreciated. Thank you to all the world very much.
Jeff
150 OF
151 PHRMCY_CLM_FACT pcf,
152 MBR_ID_DMNSN environment,
153 DRUG_DMNSN dd,
154 PRVDR_DMNSN pd,
155 BIPLR_UP_V1 BLPR2
156. WHERE THE
157 (BIPLR_UP_V1.mbr_id = MBR_ID_DMNSN. UNIQ_MBR_ID) and
158 (PHRMCY_CLM_FACT. FINL_CLM_KEY = PHRMCY_FINL_CLM_DMNSN. FINL_CLM_KEY) AND
159 (PHRMCY_CLM_FACT. MBR_KEY = MBR_ID_DMNSN. MBR_KEY) and
160 (PHRMCY_CLM_FACT. BNFT_KEY = MBR_BNFT_DMNSN. BNFT_KEY) and
161 (PHRMCY_CLM_FACT. DRUG_KEY = DRUG_DMNSN. DRUG_KEY) and
162 (PHRMCY_FINL_CLM_DMNSN. CLM_ORGN_CD IN (', 'A')) AND
163 (PHRMCY_CLM_FACT. BETWEEN LAST_SRVC_DT & q. & fdos. & q and q & ldos. & q)
(164);
ERROR: ORACLE prepare error: ORA-00904: "PHRMCY_CLM_FACT." "' LAST_SRVC_DT ': invalid identifier. SQL statement: -
Need help with Ora-00001: constraint Unique voilated in catalog synchronization
Hi Experts...
Has got some problem in the catalog... desperately need help...
Oracle: 11 GR 2
Here is a detail of the error.
from full resynchronization of the recovery catalog
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03009: failure of command resync to the default channel on 26/11/2013 18:01:34
ORA-01403: no data found
ORA-00001: unique constraint (DNKF_GRIP. BRL_U1) violated
========================++++++++++++++++=========================
Kind regards
Hei,
Cool... I have also encountered this kind of error long back... Follow and fortunately we it will be solved.
A problem with the constraint or the Index after the upgrade of the catalogue in 11 GR 2
Remove the constraint, if available, otherwise check index, if found the drop... Rest is history...
First, check the BRL_U1... It can be constrained or an index on the catalog database.
May be it's problem... the compulsion was abandoned during the catalog migration process, but the corresponding index has not been abandoned.
The catalog DB:
-Removal of the index
SQL > connect rman.
SQL > select * from user_constraints where constraint_name = "BRL_U1";
SQL > select * from user_indexes where index_name = "BRL_U1";
SQL > drop index BRL_U1;
Once it will be deposited now connect to the production database to connect to the catalog and re-synchronize... It should work like that...
RMAN target / catalog rman/password@catalog_db_name
RMAN > catalog resync;
from full resynchronization of the recovery catalog
full complete Resync
RMAN > exit
======================================
Kind regards
Firdous Shah
-
ORA-00936: lack of expression
Hello
11.2.0.3 I have the following error:
SELECT name, value of the parameter $ v whose name as a "listener %" or "%Name%".
SQL error: ORA-00936:
00936 00000 - "missing expression.
Any idea?
Thanks for help.
Select the name, the value of v$ parameter where name like '% listener %' or NAME like '% name % ';
Please... avoid this kind of questions...
-
ORA-00936: lack of Expression when using separate
Hello
I am writing a piece of code that works fine until I put the function separate on the third line, and then I get oracle error: ORA-00936: missing Expression.
Someone understands where I'm wrong?
select customer_id, *distinct* substr(old_system_id, instr(old_system_id, ':') +1, 4), substr(old_system_id, 1, instr(old_system_id,':')-1), old_system_id from ph1_ca_load inner join ph1_site_map_load on substr(old_system_id, 1, instr(old_system_id,':')-1) = site_code inner join customer on name = billing_customer ;
Select Distinct customer_id, substr(old_system_id, instr(old_system_id, ':') +1, 4), substr(old_system_id, 1, instr(old_system_id,':')-1), old_system_id from ph1_ca_load inner join ph1_site_map_load on substr(old_system_id, 1, instr(old_system_id,':')-1) = site_code inner join customer on name = billing_customer ;
-
Hello
I use 8.1.7. I received an error message ' ORA-1654: impossible to extend the index "ULTGNP." PK_A_PT_ORDER_MASTER' by 25435 in tablespace "ULTGNP".
The script for the index above is:
It is 7 GB of space left in the tablespace. Please let me know if you need more information to solve the problem.CREATE UNIQUE INDEX ULTGNP.PK_A_PT_ORDER_MASTER ON ULTGNP.A_PT_ORDER_MASTER (BUS_UNIT, REG_NO, ORDER_NO) LOGGING TABLESPACE ULTGNP PCTFREE 10 INITRANS 2 MAXTRANS 255 STORAGE ( INITIAL 49816K NEXT 101740K MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT ) NOPARALLEL;
I created a new data file, and it seems to fix the problem temporarily. Please guide me.
Best regardsHello
I use 8.1.7.
Apart from the above, it seems that your Tablespace is fragmented.
You said you have 7 GB of space. However, the Index of the INDEX ULTGNP. PK_A_PT_ORDER_MASTER could not be found approximately 100 MB of contiguous space for a new measure.
You can think to reorganize the content of this Tablespace.
If you have a DMT (Dictionary managed tablespace), you can use in 8.1.7 LMT (locally managed Tablespace) who manage better spaces and uses measure size free among 64 K, 1 M, 8 M and 64 M.
Please find attached a link on LMT:
http://www.orafaq.com/node/3.
Hope this helps.
Best regards
Jean Valentine -
SQL error: ORA-00936: lack of expression
Hi all
Sorry I can't speak English very well
I would like to know what is the problem on my code
CREATE TABLE MOB (MOBILE VARCHAR2(20));
My select statement works fine but I have problem with updateInsert into EXPORT_TABLE (MOBILE) values ('0124873214'); Insert into EXPORT_TABLE (MOBILE) values ('0184873214'); Insert into EXPORT_TABLE (MOBILE) values ('0174873214'); Insert into EXPORT_TABLE (MOBILE) values ('0120141115'); Insert into EXPORT_TABLE (MOBILE) values ('0104873214'); Insert into EXPORT_TABLE (MOBILE) values ('0164873214'); Insert into EXPORT_TABLE (MOBILE) values ('0194873214'); Insert into EXPORT_TABLE (MOBILE) values ('0114873214'); Insert into EXPORT_TABLE (MOBILE) values ('0144873214'); Insert into EXPORT_TABLE (MOBILE) values ('0122257278');
I have a problem with the updateSELECT CASE (SUBSTR(MOBILE,1,3)) WHEN '012' THEN '0122'||SUBSTR(MOBILE,4,10) WHEN '018' THEN '0128'||SUBSTR(MOBILE,4,10) WHEN '017' THEN '0127'||SUBSTR(MOBILE,4,10) WHEN '010' THEN '0100'||SUBSTR(MOBILE,4,10) WHEN '016' THEN '0106'||SUBSTR(MOBILE,4,10) WHEN '019' THEN '0109'||SUBSTR(MOBILE,4,10) WHEN '011' THEN '0111'||SUBSTR(MOBILE,4,10) WHEN '014' THEN '0114'||SUBSTR(MOBILE,4,10) END "NEW MOB" FROM MOB RESULT NEW MOB -------------- 01224873214 01284873214 01274873214 01220141115 01004873214 01064873214 01094873214 01114873214 01144873214 01222257278 10 rows selected
I thank allUPDATE MOB SET MOBILE = ANY( CASE (SUBSTR(MOBILE,1,3)) WHEN '012' THEN '0122'||SUBSTR(MOBILE,4,10) WHEN '018' THEN '0128'||SUBSTR(MOBILE,4,10) WHEN '017' THEN '0127'||SUBSTR(MOBILE,4,10) WHEN '010' THEN '0100'||SUBSTR(MOBILE,4,10) WHEN '016' THEN '0106'||SUBSTR(MOBILE,4,10) WHEN '019' THEN '0109'||SUBSTR(MOBILE,4,10) WHEN '011' THEN '0111'||SUBSTR(MOBILE,4,10) WHEN '014' THEN '0114'||SUBSTR(MOBILE,4,10) END "NEW MOB"; --FROM MOB); COMMIT;
What exactly is the problem?
UPDATE MOB SET MOBILE = CASE SUBSTR(MOBILE,1,3) WHEN '012' THEN '0122'||SUBSTR(MOBILE,4,10) WHEN '018' THEN '0128'||SUBSTR(MOBILE,4,10) WHEN '017' THEN '0127'||SUBSTR(MOBILE,4,10) WHEN '010' THEN '0100'||SUBSTR(MOBILE,4,10) WHEN '016' THEN '0106'||SUBSTR(MOBILE,4,10) WHEN '019' THEN '0109'||SUBSTR(MOBILE,4,10) WHEN '011' THEN '0111'||SUBSTR(MOBILE,4,10) WHEN '014' THEN '0114'||SUBSTR(MOBILE,4,10) ELSE MOBILE END;
-
ORA-00936: lack of Interface STEP expression for update flag lines
Hello world!
We have an interface that retrieves data of essbase and the load into a table target Oracle.
We use the Modules (KM) following Knowledge:
LKM Hyperion Essbase DATA SQL
IKM SQL incremental update
When we run the interface, at the stage of 'flag to update lines', we get the following error
Stage: 'make update'
Error: ORA-00936: lack of expression
This is definition message tab:
ODI-1228: Exportar Presupuesto General (integration) task fails on ORACLE ODI_STAGE connection target.
Caused by: java.sql.SQLSyntaxErrorException: ORA-00936: lack of expression
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:577)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:468)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2128)
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:662)
This is CODE tab:
Update HYP_INT. I _TRG_PRESUPUESTO_ESS_GENERAL $
Set IND_UPDATE = 'U '.
When there is)
Select 'X '.
of HYP_INT. TRG_PRESUPUESTO_ESS_GENERAL T
where
)
We do not know why query created the interface has some missing statements when the sql is created. Do you think that a lack or settings or just something worng or a bug?
The ODI client version is ODI_11.1.1.7.0_GENERIC_130128.1205
You give us any suggestions to fix this?
Any suggestions would be very helpful!
Thank you
Ivan Lemus
Since you're using IKM of SQL incremental update, you must mark a logical key on the fields of your target.
This key allows the comparison for insert and update.
-
Automated row Fetch on Table with synonym causes ORA-00936: lack of expr.
Hello!
I have a form that displays a database record.
To select which record I want to see, I drop-down box that returns the primary key.
The elements in the form are populated by a standard automated row Fetch.
Everything works well, even if I replace the table with a point of view on this table or replace it with a local view of a view in a different schema. (I do this by changing the name of 'table' in the FRA process.)
When I define a synonym on the table or the view I get
ORA-06550: line 1, column 17: PL/SQL: ORA-00936: lack of expression ORA-06550: line 1, column 9: PL/SQL: statement ignored
-which is a complete mystery to me.
Does anyone have a tip for me?
Many thanks in advance,
Sabine
If you want to see the effect (login: demo/demo):
Table:
[http://apex.oracle.com/pls/otn/f?p=17361:3 | http://apex.oracle.com/pls/otn/f?p=17361:3]
Synonym:
[http://apex.oracle.com/pls/otn/f?p=17361:4 | http://apex.oracle.com/pls/otn/f?p=17361:4]Sabine,
What a view of the synonym?
See Re: Automated line Fetch of Public synonym error to learn more.
Greg
-
Need help with debugging case manipulation statement &; date
Hi people,
Can you get it someone please let me know what I am doing wrong?
Select to_date (23-seven.-10', 'DD-MON-yy') expiry_date,.
TO_DATE (23-sep-09', 'DD-MON-yy') order_date,.
TO_DATE (23-seven.-10', 'DD-MON-yy')-to_date (23-sep-09', 'DD-MON-yy') diff,.
(case diff
When < 365 then 'low '.
When > 365 then 'high '.
other 'similar '.
end)
Double;
ORA-00936: lack of expression
00936 00000 - "missing expression.
* Cause:
* Action:
Error on line: column 5:18
Thanks in advance
rogers42Here you go
WITH temp_tab AS (SELECT to_date('23-sep-09', 'DD-MON-yy') order_date, to_date('23-sep-10', 'DD-MON-yy') -to_date('23-sep-09', 'DD-MON-yy') diff, to_date('23-sep-10', 'DD-MON-yy') expiry_date FROM dual) SELECT( CASE WHEN diff < 365 THEN 'low' WHEN diff > 365 THEN 'high' ELSE 'same' END) FROM temp_tab;
-
Need help with the installation of an adapter of graphics Super Palit GeForce 9500GT - 512 MB - DDR2 SDRAM in a M2N68 motherboard (narra6). Should I disable the onboard graphics in the bios? When the card is installed, no VGA work outs and the PC does not start. Checked and recontroler implementation of the card in the PCI slot. PC is a desktop HP G5200uk PC. Windows 7 operating system.
Hello
The link below is a guige to install a video card in your Pc. In particular, it seems that you will have to perhaps specify the location of the new card in the bios and save this change before you install the new card - see step 4 in the guide on the link below. If your new card fits into the PCI Express x 16 slot, you will need to define PCI Express in the bios and save the changes.
http://support.HP.com/us-en/document/c01700855
Kind regards
DP - K
-
Need help with query between 2 dates
Hello
I did not SEE in a long time and need help with a simple query.
I have a table of DB access with 3 fields, name, date and number
What I want is to create a query to retrieve all the names between 2 dates
When I ask the date field, the results are showing in this formats 2013-07-12 00:00:00
Here's my query
< cfquery datasource = 'mydb' name = 'test' >
SELECT name from myTable
where edate between ' 2011-01-01 00:00:00 ' AND ' 2013-01-01 00:00:00 '
< / cfquery >
< cfoutput query = 'test' >
#name #.
< / cfoutput >
What I get is this error
ODBC = 22005 (assignment error) error code
[Microsoft] [ODBC Microsoft Access driver] Type mismatch of data in the expression of the criteria.
Don't know what I'm doing wrong here.
Please let me know.
Thank you
SELECT ename
FROM MyTable
WHERE edate BETWEEN
AND
#ename #.
-
Making the ear of corn and need help with the ball.
I do some corn on the COB for an illustration and I need help with the texture of the ball. I've been slowly making progress with gradient for kernels mesh, but I can't seem to recreate the look of the ball at all. I tried to recreate it in a rectangle by using the option in the menu object (1 row, 50 columns) gradient mesh and I'm trying with the fusion in object mode, but not lucky yet. Can someone help to put me on the right track to make the texture:
I've been slowly making progress with gradient for kernels mesh, but I can't seem to recreate the look of the ball at all.
Tank,
You have published three images stylistically very different. The first is photographic and call probably (but not necessarily) for graduates of mesh. The other two are graphical treatments (and frankly, they're both rather flat; lack of depth).
Illustration style extends the range of cartoonish in sketchy photo-realism and all the rest. The problem is you didn't show your own attempt so that anyone can have an idea of what you're trying to achieve the stylistic point of view.
I just need to put in place so that the final step does not appear the whole box. The problem now is trying to make the style of the good brush to reproduce the effect...
You seem to think you have to build a kind of linear construction and then find a way to reshape the shape of each part of the leaf. Yes, you pouvez approach it this way, but Illustrator users has often tend to be what aunt Molly would call "too clever by half."
Not everything must be something semi intelligent auto or complex and tedious consruct involving brushes, envelopes, masks, etc, etc. Much can be accomplished by thinking that he just thanks to measure you draw directly economic paths and constructions, which take no more time (often less) and result in very tidy, simple files. Again, a lot depends on what you are trying to achieve the stylistic point of view. But here's an example that only took a few minutes to draw:
If the above consists of:
Three roads closed, 8 points each, with ordinary linear degrees
Three mixtures of open path with three anchor points for each key path
Six paths closed for shadows / highlights, with 19 points in total
Mixtures being directly from the paths drawn comic forms, the spacing of the veins 'automatically' and intuitively follows the width from point of view of the worksheet.
Rather than to build a boilerplate brush, colouring and the weight of each of the three main paths of the vein mixtures can be set individually at any time, simply directly by selecting the key path.
JET
-
I'm suddenly needing help with my browser Firefox (6.0.2)
Hello
I'm suddenly needing help with my browser Firefox (6.0.2)(OS: I use Windows XP).
When I open the browser, I don't see is a totally white screen of white, with all the toolbars at the top.
I know that my physical connections are very good: I have tested the modem, turned the pc market etc and I can also receive/send emails.
This problem started today, September 8, 2011 and has never happened before.
Is it a coincidence that Firefox itself to day before I disconnected yesterday evening? Could this be something to do with this particular new update?
I also noticed that just before I "opened" Firefox, I now get a small box indicating:
[JAVASCRIPT APPLICATION]
Handl exc in Ev: TypeError: this oRoot.enable is not a functionThis never appeared before - I hope that it offers a clue has what is wrong.
The browser not be stuck in Mode safe, said by the way.
Of course, I can't find solutions to the problem on the internet, I don't physically see all Web sites!
(A friend sends this request in my name from their pc)Any light you can throw on this problem of confusion would be much appreciated. I'd rather not have to uninstall and reinstall Firefox if possible.
If the only option is to uninstall Firefox and reinstall from your site, I'm also in trouble (I can not see the internet or download).
In this case, would you be able to send the .exe file as an attachment to my e-mail address? In the affirmative, please let me know and I'll give you more details.Thanks in advance.
One possible cause is security software (firewall) that blocks or limits Firefox or plugin-container process without informing you, possibly after the detection of changes (update) for the Firefox program.
Delete all rules for Firefox in the list of permissions in the firewall and leave your firewall again ask permission to get full unlimited access to the internet for Firefox and the plugin-container and the update process.
See:
Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions of the origin of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).
- Makes no changes on the start safe mode window.
- https://support.Mozilla.com/kb/safe+mode
Maybe you are looking for
-
iMovie 10.1.2 - cannot create new film
Hi all iMovie update and now the 'new film' the tab file is GRAYED OUT! How do I create now a new movie? Help, please. OS X El Capitan 10.11.4
-
15 HP r254nu Notebook: drivers missing
Hello! I have a problem with mi HP. I have a several pilots missed but in HP web official I can't find them! Can you help me to correctly install the missing drivers? Greetings!
-
I have the product key for Vista, but no disc, disc for XP Pro but no key. found the key on the drive of the txt file to Setup unattended on another PC, but it does not work.
-
Windows keep closing internet connection
When it is connected to the internet windows maintains close my session, then offers to restart the session. This repeats every 2-5 minutes
-
Send list drop-down page or a link in the page not activated
By clicking on the Page button and access the drop-down list the link send the list and send the page options are not enabled. I can add to the toolbar, but why they are not activated as they once used to be?