Oracle.ManagedDataAccess gives ORA-01006 if there is bind variables in the comments, but only on the lines.
When I go from ODP.NET to the ODP.NET managed some of my questions begins to throw errors missing bind variable.
I reproduced with a simple example that uses a variable called liaison: unitName
It's the example SQL:
SELECT
: unitName
Of
DOUBLE
Now, if I add a comment at the beginning of the SQL like this:
-Text with: unitName
SELECT
: unitName
Of
DOUBLE
It works, but if I have a variable binding in a comment that is located on a number of the 'same' line, I get ORA-01006:
This causes the error:
-First line comment
-Text with: unitName
SELECT
: unitName
Of
DOUBLE
Kind regards
-Tommy
I was able to reproduce this problem. I filed Bug 19433348 on your behalf.
The circumstances in which the bug occurs are fairly easy to get around.
(1) remove the colon in the second commented line.
(2) add a space between the '\n' and ' - '.
If you are one of those things, you won't encounter the bug behavior.
Tags: Database
Similar Questions
-
ORA-01008: not all variables bound... but only in an environment
Running Oracle on Solaris 11.2.0.3.15.
Two test environments, each with identical spfiles (give or take the database names, etc.).
Here is my code in both cases:
create or replace procedure HJR_TEST
as
v_daykey_from number (10): = 13164.
v_text varchar2 (3000);
Start
Select cd.daykey. CD. CalendarDate in v_text
from the cds.cdsday CD,
CDS. Snapshot vsp
where vsp.daykey = cd.daykey
and cd.daykey > = v_daykey_from
and rownum < 2;
dbms_output.put_line (v_text);
end;
Work as an environment:
SQL > start
hjr_test;
end;
PL/SQL procedure successfully completed.
1318001/FEB/16
Run it in another environment:
Error from line: 18 in the command.
Start
hjr_test;
end;
Error report-
ORA-01008: not all variables
ORA-06512: at the 'JRH. HJR_TEST', line 7
ORA-06512: at line 2
01008 00000 - "not all variables.
* Cause:
* Action:
Same code; init.ora parameters; same version of the database. same o/s; different results.
Got clues as to where I should be looking for the trouble, please?
Concerning
JRH
Thought I better update the forum on this one.
This is a bug confirmed, although the bug report is not published.
There are cases where the optimizer calls kkpap do partition
pruning in the compilation. Sometimes to partition pruning is done in
subqueries running against the table. If the bind variables values
required to operate these subqueries, so we cannot do the pruning to
compile time.
The fix for the bug 14458214 fixed this problem in the case where the
subquery was used to carve at the partition level. However, it is
possible that use us another method at the level of the partition, and then use
pruning of subquery subpartition level; this case was not
addressed by the fix for 14458214.
The mentioned bug has a patch available in 11.2.0.4 and don't occur in 12 c. For some reason, I'm also made bug 17258090, but I see no content in this bug report. :-(
Possible solutions in 11.2.0.3 is to make a alter session set "_subquery_pruning_enabled" = false; ... but since X$ KSPPI lists _subquery_pruning_enabled as a hidden parameter, I guess you can also set it instance globally, although obviously the consequences for other queries would at this time must be evaluated very carefully.
-
String sequnceDocumentId = "SELECT snw_doc_type_map_id_seq. NEXTVAL INTO: 1 FROM DUAL; " ;
PreparedStatement pStmt = null;
ResultSet rs = null;
rowExists Boolean = false;
CallableStatement st1 = getDBTransaction () .createCallableStatement (sequnceDocumentId, 1);
try {}
ST1.registerOutParameter(1,types.) Integer);
ST1. ExecuteQuery();
SeqId number = new Number (st1.getInt (1));
setDocumentTypeId (seqId);
ST1. Close();
}
catch (Exception e) {}
e.printStackTrace ();
}
Get the following exception
at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:91)
at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:206)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1035)
at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:191)
at oracle.jdbc.driver.T4CCallableStatement.executeForDescribe(T4CCallableStatement.java:788)
at oracle.jdbc.driver.T4CCallableStatement.executeMaybeDescribe(T4CCallableStatement.java:863)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1187)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3386)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3430)
at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1491)
at weblogic.jdbc.wrapper.PreparedStatement.executeQuery(PreparedStatement.java:128)
at oracle.apps.snw.schema.server.SnwDocumentTypeMappingsEOImpl.create(SnwDocumentTypeMappingsEOImpl.java:42)
Please let me know what Miss me...
Thank youJust talking about the top of my head, since I have not tried, but...
When you use the INTO clause, you are implying that you run in a 3GL environment, in this case, PL/SQL. But if it comes to PL/SQL, you have a BEGIN and END around all the instructions. You must have:
String sequnceDocumentId ="BEGIN SELECT snw_doc_type_map_id_seq.NEXTVAL INTO :1 FROM DUAL; END;" ;
-
Is there a way to delete the lines of separation in a comb box?
Hello
I have created a form that requires fields numbers (of a specific amount of characters) of a table, but I don't want the lines of separation between characters. Is it possible that turns off?
Thanks in advance for your help.
p.s. I also noticed that if I copy the first field in the column of the second line, the dividing lines are not in the second row? That's what I want the first row to look like.
Kim
Thanks Radzmar
When I tried to put
tags in manually when I saved the xml it erased them all once again. That being said, I found a way to do it. In the palette object-> cell-> :-> Appearance tab Custom--> I set the border width to zero... Who did it!
Thanks for your help and your quick response so.
-
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: -
is there an order to the bind variable in v$ SQLTEXT_WITH_NEWLINES?
create and populate the tableBANNER Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production PL/SQL Release 11.2.0.2.0 - Production CORE 11.2.0.2.0 Production TNS for HPUX: Version 11.2.0.2.0 - Production NLSRTL Version 11.2.0.2.0 - Production
I want to know if there is a consistent order of how bind variables are placed in v$ SQLTEXT_WITH_NEWLINES is always last in first out?CREATE TABLE mytable ( seq_cd NUMBER (6) PRIMARY KEY, col1 VARCHAR2 (10), col2 VARCHAR2 (10), col3 VARCHAR2 (10), col4 VARCHAR2 (10), col5 VARCHAR2 (10), col6 VARCHAR2 (10) ); INSERT INTO mytable (seq_cd, col1, col2, col3, col4, col5, col6) VALUES (1, 'one', 'two', 'three', 'four', 'five', 'six');
results inDECLARE mybindvariablelist SYS.odcivarchar2list; vseq_cd NUMBER (6) := 1; vcol1 VARCHAR2 (10) := 'one'; vcol2 VARCHAR2 (10) := 'two'; vcol3 VARCHAR2 (10) := 'three'; vcol4 VARCHAR2 (10) := 'four'; vcol5 VARCHAR2 (10) := 'five'; vcol6 VARCHAR2 (10) := 'six'; BEGIN mybindvariablelist := sys.odcivarchar2list (vseq_cd, vcol1, vcol2, vcol3, vcol4, vcol5, vcol6); INSERT INTO mytable (seq_cd, col1, col2, col3, col4, col5, col6) VALUES (vseq_cd, vcol1, vcol2, vcol3, vcol4, vcol5, vcol6); EXCEPTION WHEN OTHERS THEN DECLARE TYPE sess_data IS RECORD ( curr_sqladd RAW (8), curr_sqlid VARCHAR2 (20), prev_sqladd RAW (8), prev_sqlid VARCHAR2 (20) ); sess_info sess_data; sess VARCHAR2 (100) := USERENV ('SESSIONID'); idx PLS_INTEGER; BEGIN DBMS_OUTPUT.put_line (SQLERRM || ' when executing '); SELECT sql_address, sql_id, prev_sql_addr, prev_sql_id INTO sess_info FROM v$session WHERE audsid = sess; FOR cur IN ( SELECT sql_text FROM v$SQLTEXT_WITH_NEWLINES WHERE address = sess_info.prev_sqladd ORDER BY piece ASC) LOOP DBMS_OUTPUT.put_line (cur.sql_text); END LOOP; idx := mybindvariablelist.FIRST; WHILE (idx IS NOT NULL) LOOP DBMS_OUTPUT.put_line ( ':B' || idx || ' = ' || mybindvariablelist (idx)); idx := mybindvariablelist.NEXT (idx); END LOOP; END; END;
so as you can see from the output of the order of the table v$ and order, I entered bind variables are reversed. Is this always the case or it is not consistent?ORA-00001: unique constraint (DSAMSTRC.SYS_C0093919) violated when exeduting INSERT INTO MYTABLE (SEQ_CD, COL1, COL2, COL3, COL4, COL5, COL6) VALUES (:B7 , :B6 , :B5 , :B4 , :B3 , :B2 , :B1 ) :B1 = 1 :B2 = one :B3 = two :B4 = three :B5 = four :B6 = five :B7 = six
Pollywog wrote:
so as you can see from the output of the order of the table v$ and order, I entered bind variables are reversed. Is this always the case or it is not consistent?I guess it's just a matter of curiosity, right? All that matters is to connect the variable ends up in a good position. Anyway, as far as I KNOW, Oracle creates a bind variable in the order, and therefore depends on the analysis from left to right or from right to left. And we don't know how to change the order in the different versions of Oracle.
SY.
-
There was a problem downloading the software for the iPhone error - 39
My iPhone 4S device is disabled, connect to iTunes, when I was connected to the laptop cannot restore and give this massage:
There was a problem downloading the software for the iPhone "iPhone". An unknown error occurred (-39).
Make sure that your network settings are correct and your network connection is active. or try again later.
Hi mgdabko!
I see that you get an error message when you try to connect your iPhone to iTunes. I know it's important to have your iPhone works properly, and I'm happy to provide assistance. 39 error often indicates there is a problem with the internet connection you are using, so you should try another Internet if possible. You can also try all the advice in the following article:
If you see an error when you update or restore your iPhone, iPad, or iPod
Thank you for using communities of Apple Support.
See you soon!
-
on the ora-01006: there is no bind variable
Hi all of you, I have this dynamic sql code:
DECLARE
CLOB v_query;
number of CPT;
Start
v_query: ='
SELECT
County (TBA. ANT_ID)
Of
...
WHERE TBA. ANT_FUT_ID = TFT. FUT_ID
AND TBA. ANT_KATEGORIE_CODE_ID = TAKCL. ANT_KATEGORIE_CODE_ID (+)
AND TBA. ANT_KFZ_REIHEN_ID = TKR. KFZ_REIHEN_ID (+)
AND TBA. ANT_ID = F1. ANT_ANT_ID (+)
AND TBA. ANT_ID = F2. ANT_ANT_ID (+)
AND TBA. ANT_ID = F3. ANT_ANT_ID (+)
AND TBA. ANT_ID = ERS.ers_bdk (+)
AND TBA. ANT_ID = F1_2.ANT_ANT_ID (+)
AND TBA. ANT_ID = F2_3.ANT_ANT_ID (+)
AND TBA. ANT_ID = UPM. MFU_ANT_ID (+)
AND UPM. MFU_NIETGEOMETRIE_ID = NG. NG_ID (+)
AND UPM. MFU_MATRIZEN_BEICHNUNG_ID = MZB. MZB_ID (+)
--------------------
-Suchkriterien: -.
--------------------
-Creator
AND DECODE (ERS.ers_id, NULL, '%', ERS.ers_name) AS DECODE (": 1", "%", "') |" ' || :1 ||''''|| DECODE('':1'',''%'',''')
-Fahrzeug
AND DECODE (TKR.NAME, NULL, '%', TKR.NAME) AS DECODE (": 2", "%", "') |" ' || :2 ||''''|| DECODE('':2'',''%'',''')
-BDK
AND DECODE (fuege_db.bdk_nummer (TBA. ANT_ID, "."), NULL, "PERCENT",
fuege_db.bdk_nummer (TBA. ANT_ID, ".") ) LIKE '%'. :3||'' %''
-Technology
AND TBA. ANT_FUT_ID AS DECODE (": 4%","","') |" ' || :4 ||''''|| DECODE('':4'',''%'',''')
-Art
AND ((TBA. ANT_WFP_ID is null and 1 = DECODE('':5'',NULL,1,1,1)) ou (TBA.)) ANT_WFP_ID is not null and 2 = DECODE (": 5 cm, 2,2,2)))
-ADV
AND TBA. ANT_VTA = decode (cm: 6 cm, 1.1, TBA.) ANT_VTA) ';
run immediately v_query
in USING cpt
"Dominik Hussmann."
"AU736_Q7_SUV,"
'' ,
"WPS Stahl."
'',
'0' ;
end;
In execution, I have this error: ora-01006: bind variable does not exist, after analysis, I found that the problem is with the settings: 5 and: 6, I do not understand that they have the same syntax
as variables bind 1,2,3 and 4.
Than you for any suggestion.
I hope that you realize that there are 13 variable bind in your sql, not 6?
Variables are related by mail. You cannot use the same variable to link twice, they will be 2 separate bind variable.
For example, you use: 1 three times, so you must provide three arguments, in this case, three times the same value.
-
I like to run below myQuery in c#, but saw the error. No idea what is the problem? If I'm running myQuery in Oracle, it runs without error. "I put all the +" before starting the myQuery line and "end of the line. but nothing changes.
myQuery =
with the CBC as
(
Select src.table_name src_table_name, src.column_name src_col_name, src.data_type src_data_type, src.data_length src_data_len, src.data_precision src_data_precision, src.data_scale src_data_scale,
CBC. Nullable src_nullable, decode (T.Constraint_Type, 'P', 'Primary Key', 'U', 'Unique', ") as src_cons
all_tab_columns CBC
left join (select Cc.Column_Name, Uc.Constraint_Type
of user_cons_columns cc, uc user_constraints
where Cc.Constraint_Name = Uc.Constraint_Name
and Cc.Table_Name = Uc.Table_Name) t
on T.Column_Name = Src.Column_Name
where table_name = 'INSTRUCTOR' and owner = "ERHAN"
),
As TGT
(
Select tgt.table_name tgt_table_name, tgt.column_name tgt_col_name, tgt.data_type tgt_data_type, tgt.data_length tgt_data_len,
TGT.data_precision tgt_data_precision, tgt.data_scale tgt_data_scale, tgt.nullable tgt_nullable,
Decode (T.Constraint_Type, 'P', 'Primary Key', 'U', 'Unique', ") as tgt_cons
from all_tab_columns tgt
left join (select Cc.Column_Name, Uc.Constraint_Type
of user_cons_columns cc, uc user_constraints
where Cc.Constraint_Name = Uc.Constraint_Name
and Cc.Table_Name = Uc.Table_Name) t
on T.Column_Name = TGT. Column_Name
where table_name = 'INSTRUCTOR' and owner = "SARIGUL"
),
col_details as
(
Select src.src_table_name, nvl (tgt.tgt_table_name, first_value (tgt_table_name) more (order of nulls last tgt_table_name)) tgt_table_name;
SRC.src_col_name, src.src_data_type, src.src_data_len, src.src_data_precision, src.src_data_scale, src.src_nullable, src_cons,
TGT.tgt_col_name, tgt.tgt_data_type, tgt.tgt_data_len, tgt.tgt_data_precision, tgt.tgt_data_scale, tgt.tgt_nullable, tgt_cons
the CBC
outer join full tgt
on)
SRC.src_col_name = tgt.tgt_col_name
)
)
Select *.
de)
Select the case sensitive option
When tgt_data_type! = src_data_type or tgt_data_len! = src_data_len or tgt_data_precision! = src_data_precision or tgt_data_scale! = src_data_scale or tgt_nullable! = src_nullable
then 'alter table ' | tgt_table_name | 'Edit ' | tgt_col_name | ' ' || src_data_type | ' ' ||
-case when src_data_type null ('DATE') then
on the other
case
When src_data_type in ('VARCHAR', 'VARCHAR2')
then ' (' |) NVL (to_char (src_data_len), ' ') | ') '
otherwise decode (nvl (src_data_precision-1),-1, null, nvl (to_char (src_data_precision), ' ') |) ', ' || NVL (to_char (src_data_scale), ' ') | ')')
end
end
||
cases where tgt_nullable = 'Y' then 'null '.
of another end 'not null '.
|| tgt_cons
When tgt_col_name is null
then 'alter table ' | tgt_table_name | 'Add ' | src_col_name | ' ' || ' ' || ' ' || src_data_type | ' ' ||
-case when src_data_type null ('DATE') then
on the other
case
When src_data_type in ('VARCHAR', 'VARCHAR2')
then ' ('| nvl (to_char (src_data_len), ' ') |) ') '
otherwise decode (nvl (src_data_precision-1),-1, null, nvl (to_char (src_data_precision), ' ') |) ', ' || NVL (to_char (src_data_scale), ' ') | ')')
end
end
|| tgt_cons
When src_col_name is null
then 'alter table' | tgt_table_name: ' drop '. tgt_col_name
end alter_statement
of col_details
)
where alter_statement is not null;
using (OracleConnection conn1 = new OracleConnection (connectionString))
{
conn1. Open();
Dim myQuery = "";
using (OracleCommand = new OracleCommand (myQuery, conn1) crtCommand)
{
richTextBox1.AppendText (output);
richTextBox1.AppendText (crtCommand.ExecuteNonQuery (). (ToString());
richTextBox1.AppendText (output);
}
}
VR;
myQuery= @"with src as ( ... ";
That means a @ before the beginning of a string literal mean? -C# Foire - Site Home - MSDN Articles
as an example
OracleCommand cmd = con.CreateCommand(); cmd.CommandText = @"begin apps.mo_global.init('SQLAP'); begin apps.fnd_global.apps_initialize(5710, 20639, 200); end; end;"; cmd.ExecuteNonQuery();
richTextBox1.AppendText (crtCommand.ExecuteNonQuery (). (ToString());
is this correct? Not sure
as example try
using (OracleConnection conn1 = new OracleConnection(connectionString)) { conn1.Open(); string myQuery = "......"; using (OracleCommand crtCommand = new OracleCommand(myQuery, conn1)) { richTextBox1.AppendText(Environment.NewLine); // richTextBox1.AppendText(crtCommand.ExecuteNonQuery().ToString()); OracleDataReader reader = crtCommand.ExecuteReader(); while (reader.Read()) { richTextBox1.AppendText(reader.GetString(0)); // may be also // richTextBox1.AppendText(Environment.NewLine); } richTextBox1.AppendText(Environment.NewLine); reader.Dispose(); cmd.Dispose(); } con.Dispose(); }
-
ORA-01006: there is no bind variable
Hello
I'm trying to shoot an insert that inserts data into a table from another table based on certain conditions.
But I get this error.
declare v_c1 varchar2(10):='a1'; date_c2 varchar2(15):='12-aug-2012'; begin strquery:='insert into tab1 select from tab2 where tab2.c1='':x'' and tab2.c2='':y'''; execute immediate strquery using v_c1,date_c2; ------------BIND VARIABLE date_c2 does not exist end;
Review your dynamic sql code:
SQL> set serveroutput on SQL> exec dbms_output.put_line('insert into tab1 select from tab2 where tab2.c1='':x'' and tab2.c2='':y'''); insert into tab1 select from tab2 where tab2.c1=':x' and tab2.c2=':y' PL/SQL procedure successfully completed. SQL>
Can't you see you just bind variables? All I see are strings ": X"and": there '." Change:
strquery:='insert into tab1 select from tab2 where tab2.c1='':x'' and tab2.c2='':y''';
TO
strQuery: ='insert into select tab1 tab2 where tab2.c1 =: x and tab2.c2 =: y';
SY.
-
Oracle.ManagedDataAccess and FIPS compliance
Hello
I encountered an error using the Oracle.ManagedDataAccess and Oracle.DataAccess libraries in an ASP.NET MVC application I wrote. On a Windows Server 2008 R2 server, I would get an ORA-01017: Invalid UserName and Password. After some research and assistance online, I discovered that the cause of this error is that the run meets the FIPS policy setting has been enabled. Disabling this setting allowed me to recover data from the Oracle database.
Host us our server on a Government website and they need, we have this setting turned on.
Some users have determined that the Oracle client encrypts the password that is sent to the database and that the encryption method used is AES. According to them, this method of encryption is in conflict with the FIPS policy setting and generates the above error. I can't find documentation that specifies that AES is used to encrypt the password, so I take this 'fact' at face value.
Has anyone solves the problem where they apply the FIPS policy setting and connect to the database? I know that some people have recommended adding the element of the web.config file enforceFIPSPolicy. I found that this does not work in a Windows Server 2008 R2 environment (at least for me) and is not desirable because the application would not be in accordance with our security requirements.
Any help is appreciated.
Sincerely,
Robert Eberhart
There was a bug (17322941) earlier Oracle DB and versions ODP.NET managed, which has since been corrected. To use FIPS requires at least managed upgrade ODP.NET 12.1.0.2 AND Oracle DB 12.1.0.2.
----------------------------------
Update August 2015:
Oracle DB 11.2.0.4 can be corrected to ODP.NET managed with FIPS support. See Bug 17551699 for minimum patch set/bundle up to date. Or you can just use the latest patch on top of DB 11.2.0.4 to be supported.
-
VIRTUALBOX/Oracle 11g Express: ORA-12505
I'm setting up Oracle Express 11g for the first time...
By running as a guest in Virtualbox/Win7/Centos 6.4.
The problem is, 11g is initially installed and configured automatically, the listener knows nothing about the additional host 192.168.56.101 which is necessary for the guest chef communication address. So, I'm trying to solve this problem.
I can telnet to win7 for CentOS OK,
sqlplus works well, I can connect sys/pass as sysdba.
Select v wire running instance $;
gives XE
tnsping XE in CentOS gives:
TNSNAMES adapter used to resolve the alias
Try to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.56.101)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = XE)))
OK (0 msec)
I changed the listener.ora and tnsname.ora than they were after the installation to HOST = 192.168.56.101 instead of localhost.localdomain here:
Listener.ora is:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = u01/app/oracle/product/11.2.0/xe)
(= Extproc PROGRAM)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC_FOR_XE))
(ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.56.101)(PORT = 1521))
)
)
TNSNAME.ora is:
XE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.56.101)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
)
)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC_FOR_XE))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)
DEFAULT_SERVICE_LISTENER = (XE)
/ etc/hosts in CentOS is:
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
: 1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.56.101 loc
Execution of SQL Developer is in Win7 where there is no installed Oracle.
Connection settings are:
User name: sys
HostName: 192.168.56.101
Port: 1521
SID: XE
Getting ORA-12505...
---------------------------------------------------------------
The problem has been resolved by disabling listener.ora and put the correct host tnsnames.ora to address
sb92075: it is necessary to build the Virtualbox VM: http://www.oracle.com/technetwork/community/developer-vm/index.html#dbapp I could not do their work VM, so I installed 11 G in CentOS VM. The idea to disable listener.ora proved to be excellent. I used the tnsnames.ora as follows: XE = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = 92.168.56.101)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = XE))) EXTPROC_CONNECTION_DATA = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))) (CONNECT_DATA = (SID = PLSExtProc) (PRESENTATION = RO))) and after the reboot, the connection is OK. Thank you
-
Hello
In our society, we have oracle server on Suse Linux with two instances TETA and TETA201.
One day on a server broke down, because there is no free space due growing files 'archivelog.
After that I manually deleted several older archivelog files, but after the reboot, the server error occurs when connecting to the database:
"ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux x86_64 error: 2: no such file or directory
Process ID: 0
"Session ID: serial number 0: 0"
$ ORACLE_SID is set to TETA, if export it to TETA201 connection works correctly
Oracle service startup there is no errors but only one instance is running TETA201 works correctly
#############################################################################
# Beginning of start O R A C L E section #.
#############################################################################
PARAMETERS from/etc/sysconfig/oracle
-Set the Oracle kernel settings: Yes
-Start the Oracle Listener: Yes
-Start the Oracle database: Yes
-Start the Oracle Web server: no
-Start Oracle EManager: Yes
-Start Oracle iSQLPLUS Manager: Yes
-Start Oracle Agent: no
-Start Oracle Internet Filesystem: no
-Run Oracle Directory Manager: no
Can not find required file: isqlplusctl - START_ORACLE_DB_ISQLPLUS setting = no
Undefinied Agent Oracle or not properly configured. Please check.
Setting the parameters of the kernel for Oracle, see the file
/ etc/sysconfig/Oracle of explanations.
Shared memory: SHMMAX = SHMMNI(5) 3294967296 = 4096 SHMALL 2097152 =
Semaphore values: SEMMSL = 1250 SEMMNS = 32000 SEMOPM = 100 SEMMNI = 256
Other values: FILE_MAX_KERNEL = 131072 IP_LOCAL_PORT_RANGE = 1024 65000
RMEM_DEFAULT = 4194304 WMEM_DEFAULT = 262144 = 4194304 = 262144 WMEM_MAX RMEM_MAX
Huge pages:
ULIMIT values: MAX_CORE_FILE_SIZE_SHELL = unlimited
FILE_MAX_SHELL = 65536 = 16384 PROCESSES_MAX_SHELL
Kernel defined for Oracle parameters: fact
-Start listener... done
+ From databases...
Start entry for SID TETATEST to /oracle/product/11.2.0/dbhome_1/ inskippedratab
Database instance "TETA" of treatment: save the /oracle/product/11.2.0/dbhome_2/startup.log file
Instance of database 'TETA201' of treatment: save the /oracle/product/11.2.0/dbhome_1/startup.log file
Status of Oracle database start: fact
-Starting Apache... unused
-From unused application server
-From Application Server Console... unused
-Start of Agent... unused
-From Enterprise Manager...
DB console departure for TETA starting DB Console for TETA201 done
-Jumped from iSQLPLUS Manager...
-From... unused Oracle Internet file system
-From Oracle Internet Directory... unused
#############################################################################
# End of O R A C L E section #.
#############################################################################
#############################################################################
# End of O R A C L E section #.
#############################################################################
/Oracle/product/11.2.0/dbhome_1/startup.log
SQL * more: Production of the version 11.2.0.3.0 on Mon Jan 18 11:43 2016
Copyright (c) 1982, 2011, Oracle. All rights reserved.
SQL > Polaczono.
SQL > ORACLE Instancja zostala zamknieta.
SQL > Odlaczono od Oracle Database 11g Release 11.2.0.3.0 - 64 bit Production
SQL * more: Production of the version 11.2.0.3.0 on Mon Jan 18 11:43:01 2016
Copyright (c) 1982, 2011, Oracle. All rights reserved.
SQL > connect to an idle instance.
SQL > ORACLE instance started.
Total System Global Area 1043886080 bytes
Bytes of size 2234960 fixed
603981232 variable size bytes
432013312 of database buffers bytes
Redo buffers 5656576 bytes
Baza danych zostala zamontowana.
Baza danych zostala otwarta.
SQL > Odlaczono od Oracle Database 11g Release 11.2.0.3.0 - 64 bit Production
/Oracle/product/11.2.0/dbhome_2/bin/DBSTART: warm welcome of the instance 'TETA201' database has started.
/Oracle/product/11.2.0/dbhome_2/startup.log
PON sty 18 11:42:52 THIS 2016
SQL * more: Production of the version 11.2.0.4.0 on Mon Jan 18 11:42:52 2016
Copyright (c) 1982, 2013, Oracle. All rights reserved.
SQL > connect to an idle instance.
SQL > ORACLE instance started.
Total System Global Area 4175568896 bytes
Bytes of size 2259840 fixed
1409287296 variable size bytes
2751463424 of database buffers bytes
Redo buffers 12558336 bytes
Baza danych zostala zamontowana.
ORA-03113: end of file on communication channel
Māju ID: 10080
Sesji ID: 33, serial number: 3
SQL > Odlaczono od Oracle Database 11g Release 11.2.0.4.0 - 64 bit Production
/Oracle/product/11.2.0/dbhome_2/bin/DBSTART: hot "TETA" database instance started.
Linux: ~ # service oracle State
#############################################################################
# Begin State O R A C L E section #.
#############################################################################
Kernel parameters
Shared memory: SHMMAX = SHMMNI(5) 3294967296 = 4096 SHMALL 2097152 =
Semaphore values: SEMMSL, SEMMNI, SEMMNS, SEMOPM: 1250 32000 100 256
Database Instances
TETA instance is out of service (autostart: Y)
Instance of TETATEST is broken (autostart: N)
TETA201 of the instance is declining (autostart: Y)
AMT-listener: to the top
Webserver (Apache httpd): low (0 process)
List of processes by user oracle:
PID TTY STAT TIME COMMAND
9855? SSL 0:00 /oracle/product/11.2.0/dbhome_2/bin/tnslsnr LISTENER
10128? SS 0:00 ora_pmon_TETA201
10130? SS 0:00 ora_psp0_TETA201
10132? SS 0:00 ora_vktm_TETA201
10136? SS 0:00 ora_gen0_TETA201
10138? SS 0:00 ora_diag_TETA201
10140? SS 0:00 ora_dbrm_TETA201
10142? SS 0:00 ora_dia0_TETA201
10144? SS 0:00 ora_mman_TETA201
10146? SS 0:00 ora_dbw0_TETA201
10148? SS 0:00 ora_lgwr_TETA201
10150? SS 0:00 ora_ckpt_TETA201
10152? SS 0:00 ora_smon_TETA201
10154? SS 0:00 ora_reco_TETA201
10156? SS 0:00 ora_mmon_TETA201
10158? SS 0:00 ora_mmnl_TETA201
10166? SS 0:00 ora_qmnc_TETA201
10338? SS 0:00 ora_cjq0_TETA201
11195? SS 0:00 ora_q000_TETA201
11197? SS 0:00 ora_q001_TETA201
#############################################################################
# End of O R A C L E section #.
#############################################################################
Help, please
RMAN target /.
RMAN > startup mount;
RMAN > overlap archivelog all;
RMAN > delete archivelog expired;
RMAN > alter database open;
-
Oracle.ManagedDataAccess OracleSessionStateStore
I'm having a problem, when I try to use Oracle.ManagedDataAccess in a Web site, as well as Oracle.Web. I have configured the web.config file for Oracle.ManagedDataAccess along with other projects that I have, so I believe that the configuration is correct.
However, I get an error of Oracle.Web.SessionState.OracleSessionStateStore he's trying to use Oracle.DataAccess, NOT ... Oracle.ManagedDataAccess!
Can someone give me guidance here?
Thank you
Oracle ASP.NET providers do not yet support managed ODP.NET. ODAC 12 c Release 4 will include this support. In fact, for .NET 4 and beyond, only managed ODP.NET will be supported with suppliers ASP.NET this liberation and in the future. For 2 and 3 .NET, only non-managed ODP.NET will be supported for ASP.NET providers.
-
Oracle.ManagedDataAccess.Client no Oracle client deployment
Hello
We are trying to deploy our application on a server that has no Oracle client installed. We use the managed dll dataAccess with entity framework 5. Our web.config file contains the following:
< connectionStrings >
< add name = "CroEntities" connection string connectionString="metadata=res://*/CroModel.csdl|res://*/CroModel.ssdl|res://*/CroModel.msl;provider=Oracle.ManagedDataAccess.Client;provider = & quot; DATA SOURCE =oracle; PASSWORD = password; PERSIST SECURITY INFO = True; USER ID = user & quot; "" ProviderName "/ >
< / connectionStrings >
< Oracle.ManagedDataAccess.Client >
< version number = "4.121.1.0" >
< dataSources >
"" < alias dataSource = "oracle"descriptor ="(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = myhost.bc.ca) (PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = serviceName.bc.ca)))" / >
< / dataSources >
< / version >
< /Oracle.ManagedDataAccess.Client >
Oracle.ManagedDataAccess.dll is in our Bin folder.
At run time, we get the following error: ORA-12541: TNS: no listener.
The earpiece works very well. My thought is that something is missing in our configuration. When we add some debug information for the value of context. Database.Connection.Database we get empty string that make me think that the information in the configuration file does not in the run-time application.
Any thought on what might be missed?
Thank you
Ken
The XML tag should be
. All lowercase. In your configuration file, you pulled profit some letters in the tag. It's probably why ODP.NET can't read XML.
Maybe you are looking for
-
Can I save Firefox by copying the Mozilla folder and all its contents?
I'm currently back up Thunderbird by copying its folder in appdata/roaming. I can do the same thing to back up Firefox by copying the Mozilla folder and all its subfolders?
-
How to merge my ID books two apple?
I have a previously purchased iPAD that uses a apple ID. I just bought an iPhone that was setup using a username different apple. How to merge the ibooks purchased under the old apple with the new apple id ID?
-
Recovery of individual photos of a mpeg. Can I use movie maker?
You can delete individual photos of a mpeg file in windows movie maker? If not, is there a program where you can?
-
Error code 0 x 80004004 file dll Windows 7 error
* Original title: Dll file error I have a compaq presario 2000v with windows 7. For three weeks he would not even the option of much less put Bios in place. Maybe give too much info, but here goes. Tried to do to reinstall win 7 x 32 bit disc no good
-
Get the value of a text field in a dialog box?
SystemPrompt *prompt = new SystemPrompt(); //SET ADDITIONAL PROMPT SETTINGS //LATER IN THE APP myTitle = prompt->inputField->????? How can I get the text that a user has entered my guest? I tried: myTitle = prompt->inputField()->defaultText(); But no