Problem with refcursor in 11g
Hello,
I have a problem with refcursor in a project migrated from 10 to 11g.
I found this thread from a few years ago that talks about the same problem.
It has no final answer - is it ok to comment the st.close(); in callStoredFunction in the AMImpl.
Re: TP4 - View Object with REF CURSOR - SQLException
Please tell me if the suggested solution on that thread is fine, or ot will cause many unclosed statetements?
Thank you, Nina
Hello All,
I got the solution to the problem.
I was trying to surround the region component using the Structure pane. But instead drag and drop the strechable components on to the region.
Ex: Region got expanded 100% if I surround it with PanelStrechLayout with width and height set to 100%. But I didnit find this Panel StrechLayout when I try to surround it using Structure Pane.
Refer to this: http://www.oracle.com/technology/products/adf/patterns/layoutBestPractices.html
Thanks,
Melissa.
Similar Messages
-
Problems with Template JDeveloper 11g
Hi! I have problems with template in Jdeveloper 11g.
I had created jspx page from templeate:
<?xml version='1.0' encoding='windows-1257'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
<jsp:directive.page contentType="text/html;charset=windows-1257"/>
<f:view>
<af:document>
<af:form>
<af:pageTemplate viewId="/augiTemplate.jspx">
<f:facet name="mainArea"/>
</af:pageTemplate>
</af:form>
</af:document>
</f:view>
</jsp:root>
THERE are error:
JSF page template at path /augiTemplate.jspx requires a model binding!!!
Why it is so an what it means? Pleas help!
Best regards!Hi,
it means that your template has an ADF binding (PageDef) reference. When you create a page in the JSF page dialog and assign the template then the binding reference is created for you. You should see a bulb in the page source editor. Press it an it should create the missing binding for you
Frank -
Problem with ADF BC 11G and datasource : javax.naming.NameNotFoundException
Hi,
My application works with ADF BC 10G but does not work with ADF BC 11g. In both cases I use the same data source.
My application uses only the BC4J from ADF.
The setting of the datasource in my EAR is only in the web.xml and weblogic.xml, as in 10g version.
What have I forgotten?
Thanks.
## Detail 0 ##
javax.naming.NameNotFoundException: DataSourceContext could not locate a DataSource for the name: jdbc/datasource
at oracle.jbo.server.DataSourceContext.lookup(DataSourceContext.java:109)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at oracle.jbo.server.DBTransactionImpl.lookupDataSource(DBTransactionImpl.java:1404)
at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:309)
The setting is :
web.xml
<resource-ref>
<description>JDBC connection</description>
<res-ref-name>jdbc/datasource</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
weblogic.xml
<weblogic-web-app>
<description>Web Application</description>
<weblogic-version></weblogic-version>
<reference-descriptor>
<resource-description>
<res-ref-name>jdbc/datasource</res-ref-name>
<jndi-name>jdbc/datasource</jndi-name>
</resource-description>
</reference-descriptor>
</weblogic-web-app>
this code finds the datasource :
InitialContext initialContextForDatasource = new InitialContext();
javax.sql.DataSource ds = (javax.sql.DataSource) initialContextForDatasource.lookup("java:comp/env/jdbc/datasource");
There is no error in the logs about data source
Edited by: jdev user on Nov 24, 2010 11:16 AM
Edited by: jdev user on Nov 25, 2010 10:59 AMA change in the problem :
This code finds the datasource :
InitialContext initialContextForDatasource = new InitialContext();
javax.sql.DataSource ds = (javax.sql.DataSource) initialContextForDatasource.lookup("java:comp/env/jdbc/datasource");
There is no error in the log about data source :
<BEA-001124> <Created Connection Pool named DS .>
<BEA-001174> <Creating Data Source named DS , JNDI Name = jdbc/datasource.>
<BEA-001512> <Data Source DS has been successfully created.>
but the applicationModule don't find the data source :
## Detail 0 ##
javax.naming.NameNotFoundException: DataSourceContext could not locate a DataSource for the name: jdbc/datasource
at oracle.jbo.server.DataSourceContext.lookup(DataSourceContext.java:109)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at oracle.jbo.server.DBTransactionImpl.lookupDataSource(DBTransactionImpl.java:1404)
at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:309)
at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:329)
Edited by: jdev user on Nov 25, 2010 1:40 PM -
ORA-12952 and Oracle 10g XE problem with migration to 11g XE
Hi, all
My DB (Oracle 10g XE) reach storage limit. I have tried to migrate to 11g XE version but unsuccessful.
For migration I used next manual: http://download.oracle.com/docs/cd/E17781_01/install.112/e18803/toc.htm#XEINW136
expdp returned next error:
Processing object type DATABASE_EXPORT/SCHEMA/CLUSTER/INDEX
Processing object type DATABASE_EXPORT/SCHEMA/TABLE/TABLE
ORA-39125: Worker unexpected fatal error in KUPW$WORKER.CREATE_OBJECT_ROWS while calling FORALL [TABLE]
ORA-12952: The request exceeds the maximum allowed database size of 4 GB
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 116
ORA-06512: at "SYS.KUPW$WORKER", line 6248
----- PL/SQL Call Stack -----
object line object
handle number name
2D6F0304 14916 package body SYS.KUPW$WORKER
2D6F0304 6300 package body SYS.KUPW$WORKER
2D6F0304 5638 package body SYS.KUPW$WORKER
2D6F0304 2145 package body SYS.KUPW$WORKER
2D6F0304 6861 package body SYS.KUPW$WORKER
2D6F0304 1262 package body SYS.KUPW$WORKER
285BD50C 2 anonymous block
Next I have tried to garbage some information from DB but I got some as "UNDO cannot get next block" error.
What else can I do to migrate the data from 10g with limitation problem to 11g?
Thank You in advance.There is output from SQL:
"OWNER"; "TABLESPACE_NAME"; "COUNT(*)"; "SIZE_MB"
"A1"; "USERS"; "899"; "3995,9375"
"SYS"; "SYSTEM"; "980"; "323,1875"
"FLOWS_020100";"SYSAUX"; "658"; "297,625"
"SYS"; "SYSAUX"; "626"; "151,125"
"XDB"; "SYSAUX"; "753"; "84,5"
"SYSTEM";"SYSTEM"; "259"; "31,75"
"SYS"; "UNDO"; "10"; "20,25"
"MDSYS"; "SYSTEM"; "96"; "12,25"
"SYSTEM";"SYSAUX"; "109"; "6,8125"
"CTXSYS";"SYSAUX"; "74"; "4,625"
"D1"; "USERS"; "14"; "3,5625"
"DBSNMP";"SYSAUX"; "25"; "1,5625"
"HR"; "USERS"; "25"; "1,5625"
"FLOWS_FILES";"SYSAUX"; "7"; ",5"
"OUTLN"; "SYSTEM"; "8"; ",5"
"TSMSYS";"SYSAUX"; "4"; ",25"
1. When I tried to delete some old data from USERS dataspase by some PROCEDURE I got the next error:
ERROR at line 1:
ORA-30036: unable to extend segment by 8 in undo tablespace 'UNDO'
This problem I solved. PROCEDURE generate huge buffer for transaction. Therefore I deleted the old data by small pieces.
After I have deleted the old data the Application start to comunicate with database without ORA-12952 error.
2. I've reduced the size of SYSAUX (http://remidian.com/oracle/purging-sysaux-tablespace-purging-awr-reports.html) down to 94%
3. I has SYSTEM tablespace 100% full. When I've tried to resize the SYSTEM table up I got the ORA-12952. Then I've increased the SYSTEM table size by 1M. In such way I got additional 9Mb for the SYSTEM tablespace (from 360Mb to 369Mb 98%). Is any other way to reduce of the SYSTEM tablespace filling?
4. Next (http://wiki.oracle.com/page/Data+Pump+Export+%28expdp%29+and+Data+Pump+Import%28impdp%29)
on the step: $ expdp system/<password> DIRECTORY=expdp_dir DUMPFILE=expfull.dmp FULL=y LOGFILE=expfull.og
i got the error:
Processing object type DATABASE_EXPORT/SCHEMA/TABLE/TABLE
ORA-39125: Worker unexpected fatal error in KUPW$WORKER.CREATE_OBJECT_ROWS while calling FORALL [TABLE]
ORA-12952: The request exceeds the maximum allowed database size of 4 GB
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 116
ORA-06512: at "SYS.KUPW$WORKER", line 6248
There is my last state of the tablespace filling:
"Tablespace"; "Size (MB)"; "Free (MB)"; "% Free"; "% Used"
"UNDO"; "500"; "411,6875"; "82"; "18"
"SYSAUX"; "570"; "31,5"; "6"; "94"
"USERS"; "4180"; "178,875"; "4"; "96"
"SYSTEM"; "369"; "1,25"; "0"; "100"
"TEMP"; "291"; "0"; "0"; "100" -
Got 11g up and running without too much difficulty (Win2003) but I'm having trouble getting HTML content to render. For example, create a simple analysis, add a narrative view, check the "Contains HTML Markup" button, and put HTML in there, but it comes out escaped anyway?
I couldn't find much mention of this in the docs, other than the usual about XSS hardening. I verified that I have the "Save Actions containing embedded HTML" and "Save Content with HTML Markup" privileges - just to make sure, I even granted them to AuthenticatedUsers.
Any ideas?Hi All,
It seems like this problem is specific to the "Narrative View". If I try the following in the "Static View" it works like expected;
<hr size="15" width="100%" shade align="right">
In the "Narrative View" I did not get it to work yet.
Cheers,
Daan Bakboord
http://obibb.wordpress.com -
Start up problem with Oracle RAC 11g
Hi all,
After a power failure I can not start a oracle database it give me the ORA-01031: insufficient privileges error
[oracle@hostname ~]$ sqlplus /nolog
SQL*Plus: Release 11.2.0.1.0 Production on Tue Jul 23 19:06:41 2013
Copyright (c) 1982, 2009, Oracle. All rights reserved.
SQL> show sga
Total System Global Area 283930624 bytes
Fixed Size 2212656 bytes
Variable Size 256552144 bytes
ASM Cache 25165824 bytes
SQL> disconnect
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Real Application Clusters and Automatic Storage Management options
SQL> connect as sysdba
Enter user-name: system
Enter password:
Connected.
SQL> startup
ORA-01031: insufficient privileges
SQL> quit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Real Application Clusters and Automatic Storage Management options
[oracle@hostname ~]$ lsb_release -a
LSB Version: :core-4.0-amd64:core-4.0-ia32:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-ia32:printing-4.0-noarch
Distributor ID: EnterpriseEnterpriseServer
Description: Enterprise Linux Enterprise Linux Server release 5.7 (Carthage)
Release: 5.7
Codename: Carthage
[oracle@hostname ~]$
[oracle@hostname ~]$ crs_stat -t
Name Type Target State Host
ora.DATA.dg ora....up.type ONLINE ONLINE sil-rac1
ora....ER.lsnr ora....er.type ONLINE ONLINE sil-rac1
ora....N1.lsnr ora....er.type ONLINE ONLINE sil-rac2
ora....N2.lsnr ora....er.type ONLINE ONLINE sil-rac1
ora....N3.lsnr ora....er.type ONLINE ONLINE sil-rac1
ora.asm ora.asm.type ONLINE ONLINE sil-rac1
ora.eons ora.eons.type ONLINE ONLINE sil-rac1
ora.gsd ora.gsd.type OFFLINE OFFLINE
ora....network ora....rk.type ONLINE ONLINE sil-rac1
ora.oc4j ora.oc4j.type ONLINE ONLINE sil-rac2
ora.ons ora.ons.type ONLINE ONLINE sil-rac1
ora.orcl.db ora....se.type ONLINE ONLINE sil-rac1
ora.scan1.vip ora....ip.type ONLINE ONLINE sil-rac2
ora.scan2.vip ora....ip.type ONLINE ONLINE sil-rac1
ora.scan3.vip ora....ip.type ONLINE ONLINE sil-rac1
ora....SM1.asm application ONLINE ONLINE sil-rac1
ora....C1.lsnr application ONLINE ONLINE sil-rac1
ora....ac1.gsd application OFFLINE OFFLINE
ora....ac1.ons application ONLINE ONLINE sil-rac1
ora....ac1.vip ora....t1.type ONLINE ONLINE sil-rac1
ora....SM2.asm application ONLINE ONLINE sil-rac2
ora....C2.lsnr application ONLINE ONLINE sil-rac2
ora....ac2.gsd application OFFLINE OFFLINE
ora....ac2.ons application ONLINE ONLINE sil-rac2
ora....ac2.vip ora....t1.type ONLINE ONLINE sil-rac2
[oracle@hostname ~]$
[oracle@hostname ~]$ crsctl check crs
CRS-4638: Oracle High Availability Services is online
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online
[oracle@hostname ~]$
Does anyone know what can be the problem?
Thanks,
Andre GilThanks for your answer
The OS user I'm log is ORACLE that own the filesystem, Before you ask ORACLE is part of OINSTALL and DBA group
Any other suggestion
[oracle@sil-rac1 ~]$ id
uid=1100(oracle) gid=1200(dba) groups=4(adm),100(users),1000(oinstall),1200(dba)
[oracle@sil-rac1 ~]$ env | sort
BASE_PATH=/usr/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/oracle/bin
_=/bin/env
CLASSPATH=/u01/app/11.2.0/grid/JRE:/u01/app/11.2.0/grid/jlib:/u01/app/11.2.0/grid/rdbms/jlib
DB_HOME=/u01/app/oracle/product/11.2.0/db_1
G_BROKEN_FILENAMES=1
GRID_HOME=/u01/app/11.2.0/grid
HISTSIZE=1000
HOME=/home/oracle
HOSTNAME=sil-rac1
INPUTRC=/etc/inputrc
LANG=en_US.UTF-8
LD_LIBRARY_PATH=/u01/app/11.2.0/grid/lib:/lib:/usr/lib
LESSOPEN=|/usr/bin/lesspipe.sh %s
LOGNAME=oracle
LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
MAIL=/var/spool/mail/oracle
ORACLE_BASE=/u01/app/oracle
ORACLE_HOME=/u01/app/11.2.0/grid
ORACLE_HOSTNAME=sil-rac1.silanis.com
ORACLE_SID=+ASM1
ORACLE_TERM=xterm
ORACLE_UNQNAME=RAC
PATH=/u01/app/11.2.0/grid/bin:/usr/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/oracle/bin
PWD=/home/oracle
SHELL=/bin/bash
SHLVL=1
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
TERM=xterm
TMPDIR=/tmp
TMP=/tmp
USER=oracle
[oracle@sil-rac1 ~]$ -
Hi All,
I am working in ADF11g. I have a .jspx with page template(which has one navigation pane) and a region below.
When I remove the page template the region is expanding properly otherwise it is not..eventhough I set width and height to 100%.
I tried keeping my region in strechable layout components(show detail item), but it didnot worked?
Is there any way to strech my region with Page Tamplate above.
Pls help me.
Thanks,
Melissa
Edited by: user10942366 on Apr 2, 2009 11:50 AMHello All,
I got the solution to the problem.
I was trying to surround the region component using the Structure pane. But instead drag and drop the strechable components on to the region.
Ex: Region got expanded 100% if I surround it with PanelStrechLayout with width and height set to 100%. But I didnit find this Panel StrechLayout when I try to surround it using Structure Pane.
Refer to this: http://www.oracle.com/technology/products/adf/patterns/layoutBestPractices.html
Thanks,
Melissa. -
Problem with OEM in 11g R2 Production database
Hi,
Oracle Version : 11.2.0.1(standard edition)
Operating system : RHEL-5
We are getting the below problem when trying to start the DBCONSOLE but when i check the status it is showing as running as shown below.
[oracle@prc4s3 ~]$ emctl status dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved.
https://prc4s3.localdomain:1158/em/console/aboutApplication
EM Daemon is not running.
Logs are generated in directory /u01/app/oracle/product/11.2.0/db_1/prc4s3.localdomain_ORCL11G/sysman/log
[oracle@prc4s3 ~]$ emctl start dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved.
https://prc4s3.localdomain:1158/em/console/aboutApplication
- An instance of Oracle Enterprise Manager 11g Database Control is already running.I the morning when i try to start the DBCONSOLE it takes around 4hr and final it was failed.
Please help me how to solve this problem.
Thanks & Regards,
Poorna Prasad.SHi CKPT,
Here is the output from the emagent.log file
2012-02-14 00:00:01,634 Thread-1111628096 target {ORCL11G, oracle_database} is broken: cannot compute dynamic properties in time. (00155)
2012-02-14 00:00:01,932 Thread-3193961856 ParseError: File=file:/u01/app/oracle/product/11.2.0/db_1/prc4s3.localdomain_ORCL11G/sysman/emd/collection/oracle_database_ORCL11G.xml, Line=2, Msg=<CollectionItem> Target NAME=ORCL11G does not exist (01006)
2012-02-14 00:00:01,932 Thread-3193961856 fatal error parsing /u01/app/oracle/product/11.2.0/db_1/prc4s3.localdomain_ORCL11G/sysman/emd/collection/oracle_database_ORCL11G.xml, will be ignored (00405)
2012-02-14 00:00:01,980 Thread-3193961856 EMAgent started successfully (00702)
2012-02-14 00:00:02,994 Thread-1108478272 <Upload Manager> Exceeded Max allowed Upload data - No of files: 1303, Size of upload data: 383.912426MB, Pct(%) of Disk used: 18.85%, Disabling collections (00852)
2012-02-14 00:00:02,994 Thread-1108478272 Disable collector (00406)
2012-02-14 00:04:01,543 Thread-1117927744 target {ORCL11G, oracle_database} is broken: cannot compute dynamic properties in time. (00155)
2012-02-14 00:04:01,775 Thread-1117927744 enable collector (00407)
2012-02-14 00:04:01,776 Thread-1117927744 ParseError: File=file:/u01/app/oracle/product/11.2.0/db_1/prc4s3.localdomain_ORCL11G/sysman/emd/collection/oracle_database_ORCL11G.xml, Line=2, Msg=<CollectionItem> Target NAME=ORCL11G does not exist (01006)
2012-02-14 00:04:02,839 Thread-1108478272 <Upload Manager> Exceeded Max allowed Upload data - No of files: 1308, Size of upload data: 392.171088MB, Pct(%) of Disk used: 18.86%, Disabling collections (00852)
2012-02-14 00:04:02,839 Thread-1108478272 Disable collector (00406)
2012-02-14 00:08:01,399 Thread-1114777920 target {ORCL11G, oracle_database} is broken: cannot compute dynamic properties in time. (00155)
2012-02-14 00:08:01,631 Thread-1114777920 enable collector (00407)
2012-02-14 00:08:01,632 Thread-1114777920 ParseError: File=file:/u01/app/oracle/product/11.2.0/db_1/prc4s3.localdomain_ORCL11G/sysman/emd/collection/oracle_database_ORCL11G.xml, Line=2, Msg=<CollectionItem> Target NAME=ORCL11G does not exist (01006)
2012-02-14 00:08:02,687 Thread-1108478272 <Upload Manager> Exceeded Max allowed Upload data - No of files: 1313, Size of upload data: 400.328720MB, Pct(%) of Disk used: 18.87%, Disabling collections (00852)
2012-02-14 00:08:02,687 Thread-1108478272 Disable collector (00406)
2012-02-14 00:08:40,597 Thread-2760670592 Starting Agent 10.2.0.4.2 from /u01/app/oracle/product/11.2.0/db_1 (00701)
2012-02-14 00:11:49,732 Thread-2760670592 [Oracle Exadata Storage Server] InstanceProperty (MgmtIPAddr2) is marked OPTIONAL but is being used (00506)
2012-02-14 00:11:49,868 Thread-2760670592 [Load Balancer Switch] InstanceProperty (snmpTimeout) is marked OPTIONAL but is being used (00506)
2012-02-14 00:13:49,894 Thread-1117755712 target {ORCL11G, oracle_database} is broken: cannot compute dynamic properties in time. (00155)
2012-02-14 00:13:50,189 Thread-2760670592 ParseError: File=file:/u01/app/oracle/product/11.2.0/db_1/prc4s3.localdomain_ORCL11G/sysman/emd/collection/oracle_database_ORCL11G.xml, Line=2, Msg=<CollectionItem> Target NAME=ORCL11G does not exist (01006)
2012-02-14 00:13:50,189 Thread-2760670592 fatal error parsing /u01/app/oracle/product/11.2.0/db_1/prc4s3.localdomain_ORCL11G/sysman/emd/collection/oracle_database_ORCL11G.xml, will be ignored (00405)
2012-02-14 00:13:50,225 Thread-2760670592 EMAgent started successfully (00702)
2012-02-14 00:13:51,238 Thread-1114605888 <Upload Manager> Exceeded Max allowed Upload data - No of files: 1321, Size of upload data: 407.807080MB, Pct(%) of Disk used: 18.88%, Disabling collections (00852)
2012-02-14 00:13:51,238 Thread-1114605888 Disable collector (00406)
2012-02-14 00:17:49,828 Thread-1130355008 target {ORCL11G, oracle_database} is broken: cannot compute dynamic properties in time. (00155)
2012-02-14 00:17:50,053 Thread-1130355008 enable collector (00407)
2012-02-14 00:17:50,054 Thread-1130355008 ParseError: File=file:/u01/app/oracle/product/11.2.0/db_1/prc4s3.localdomain_ORCL11G/sysman/emd/collection/oracle_database_ORCL11G.xml, Line=2, Msg=<CollectionItem> Target NAME=ORCL11G does not exist (01006)
2012-02-14 00:17:51,114 Thread-1114605888 <Upload Manager> Exceeded Max allowed Upload data - No of files: 1326, Size of upload data: 416.065742MB, Pct(%) of Disk used: 18.88%, Disabling collections (00852)
2012-02-14 00:17:51,114 Thread-1114605888 Disable collector (00406)
2012-02-14 00:21:49,620 Thread-1120905536 target {ORCL11G, oracle_database} is broken: cannot compute dynamic properties in time. (00155)
2012-02-14 00:21:49,846 Thread-1120905536 enable collector (00407)
2012-02-14 00:21:49,847 Thread-1120905536 ParseError: File=file:/u01/app/oracle/product/11.2.0/db_1/prc4s3.localdomain_ORCL11G/sysman/emd/collection/oracle_database_ORCL11G.xml, Line=2, Msg=<CollectionItem> Target NAME=ORCL11G does not exist (01006)
2012-02-14 00:21:50,902 Thread-1114605888 <Upload Manager> Exceeded Max allowed Upload data - No of files: 1331, Size of upload data: 424.223374MB, Pct(%) of Disk used: 18.89%, Disabling collections (00852)
2012-02-14 00:21:50,902 Thread-1114605888 Disable collector (00406)
2012-02-14 00:22:29,261 Thread-2434018688 Starting Agent 10.2.0.4.2 from /u01/app/oracle/product/11.2.0/db_1 (00701)
2012-02-14 00:25:38,394 Thread-2434018688 [Oracle Exadata Storage Server] InstanceProperty (MgmtIPAddr2) is marked OPTIONAL but is being used (00506)
2012-02-14 00:25:38,528 Thread-2434018688 [Load Balancer Switch] InstanceProperty (snmpTimeout) is marked OPTIONAL but is being used (00506)
2012-02-14 00:27:38,554 Thread-1116543296 target {ORCL11G, oracle_database} is broken: cannot compute dynamic properties in time. (00155)
2012-02-14 00:27:38,863 Thread-2434018688 ParseError: File=file:/u01/app/oracle/product/11.2.0/db_1/prc4s3.localdomain_ORCL11G/sysman/emd/collection/oracle_database_ORCL11G.xml, Line=2, Msg=<CollectionItem> Target NAME=ORCL11G does not exist (01006)
2012-02-14 00:27:38,863 Thread-2434018688 fatal error parsing /u01/app/oracle/product/11.2.0/db_1/prc4s3.localdomain_ORCL11G/sysman/emd/collection/oracle_database_ORCL11G.xml, will be ignored (00405)
2012-02-14 00:27:38,898 Thread-2434018688 EMAgent started successfully (00702)
2012-02-14 00:27:39,910 Thread-1099831616 <Upload Manager> Exceeded Max allowed Upload data - No of files: 1339, Size of upload data: 431.701735MB, Pct(%) of Disk used: 18.81%, Disabling collections (00852)
2012-02-14 00:27:39,911 Thread-1099831616 Disable collector (00406)
2012-02-14 00:31:38,362 Thread-1129142592 target {ORCL11G, oracle_database} is broken: cannot compute dynamic properties in time. (00155)
2012-02-14 00:31:38,591 Thread-1129142592 enable collector (00407)
2012-02-14 00:31:38,592 Thread-1129142592 ParseError: File=file:/u01/app/oracle/product/11.2.0/db_1/prc4s3.localdomain_ORCL11G/sysman/emd/collection/oracle_database_ORCL11G.xml, Line=2, Msg=<CollectionItem> Target NAME=ORCL11G does not exist (01006)
2012-02-14 00:31:39,653 Thread-1099831616 <Upload Manager> Exceeded Max allowed Upload data - No of files: 1344, Size of upload data: 439.960397MB, Pct(%) of Disk used: 18.82%, Disabling collections (00852)
2012-02-14 00:31:39,653 Thread-1099831616 Disable collector (00406)
2012-02-14 00:35:38,145 Thread-1119693120 target {ORCL11G, oracle_database} is broken: cannot compute dynamic properties in time. (00155)
2012-02-14 00:35:38,370 Thread-1119693120 enable collector (00407)
2012-02-14 00:35:38,372 Thread-1119693120 ParseError: File=file:/u01/app/oracle/product/11.2.0/db_1/prc4s3.localdomain_ORCL11G/sysman/emd/collection/oracle_database_ORCL11G.xml, Line=2, Msg=<CollectionItem> Target NAME=ORCL11G does not exist (01006)
2012-02-14 00:35:39,424 Thread-1099831616 <Upload Manager> Exceeded Max allowed Upload data - No of files: 1349, Size of upload data: 448.118029MB, Pct(%) of Disk used: 18.82%, Disabling collections (00852)
2012-02-14 00:35:39,424 Thread-1099831616 Disable collector (00406)
2012-02-14 00:36:17,517 Thread-1053834624 Starting Agent 10.2.0.4.2 from /u01/app/oracle/product/11.2.0/db_1 (00701)
2012-02-14 00:39:26,672 Thread-1053834624 [Oracle Exadata Storage Server] InstanceProperty (MgmtIPAddr2) is marked OPTIONAL but is being used (00506)
2012-02-14 00:39:26,812 Thread-1053834624 [Load Balancer Switch] InstanceProperty (snmpTimeout) is marked OPTIONAL but is being used (00506)
2012-02-14 00:41:26,838 Thread-1119476032 target {ORCL11G, oracle_database} is broken: cannot compute dynamic properties in time. (00155)
2012-02-14 00:41:27,152 Thread-1053834624 ParseError: File=file:/u01/app/oracle/product/11.2.0/db_1/prc4s3.localdomain_ORCL11G/sysman/emd/collection/oracle_database_ORCL11G.xml, Line=2, Msg=<CollectionItem> Target NAME=ORCL11G does not exist (01006)
2012-02-14 00:41:27,152 Thread-1053834624 fatal error parsing /u01/app/oracle/product/11.2.0/db_1/prc4s3.localdomain_ORCL11G/sysman/emd/collection/oracle_database_ORCL11G.xml, will be ignored (00405)
2012-02-14 00:41:27,188 Thread-1053834624 EMAgent started successfully (00702)
2012-02-14 00:41:28,200 Thread-1116326208 <Upload Manager> Exceeded Max allowed Upload data - No of files: 1357, Size of upload data: 455.596389MB, Pct(%) of Disk used: 18.91%, Disabling collections (00852)
2012-02-14 00:41:28,200 Thread-1116326208 Disable collector (00406)
2012-02-14 00:45:26,642 Thread-1092802880 target {ORCL11G, oracle_database} is broken: cannot compute dynamic properties in time. (00155)
2012-02-14 00:45:26,870 Thread-1092802880 enable collector (00407)
2012-02-14 00:45:26,871 Thread-1092802880 ParseError: File=file:/u01/app/oracle/product/11.2.0/db_1/prc4s3.localdomain_ORCL11G/sysman/emd/collection/oracle_database_ORCL11G.xml, Line=2, Msg=<CollectionItem> Target NAME=ORCL11G does not exist (01006)
2012-02-14 00:45:27,929 Thread-1116326208 <Upload Manager> Exceeded Max allowed Upload data - No of files: 1362, Size of upload data: 463.855051MB, Pct(%) of Disk used: 18.91%, Disabling collections (00852)
2012-02-14 00:45:27,931 Thread-1116326208 Disable collector (00406)
2012-02-14 00:49:26,423 Thread-1122625856 target {ORCL11G, oracle_database} is broken: cannot compute dynamic properties in time. (00155)
2012-02-14 00:49:26,650 Thread-1122625856 enable collector (00407)
2012-02-14 00:49:26,651 Thread-1122625856 ParseError: File=file:/u01/app/oracle/product/11.2.0/db_1/prc4s3.localdomain_ORCL11G/sysman/emd/collection/oracle_database_ORCL11G.xml, Line=2, Msg=<CollectionItem> Target NAME=ORCL11G does not exist (01006)
2012-02-14 00:49:27,705 Thread-1116326208 <Upload Manager> Exceeded Max allowed Upload data - No of files: 1367, Size of upload data: 472.012683MB, Pct(%) of Disk used: 18.92%, Disabling collections (00852)
2012-02-14 00:49:27,705 Thread-1116326208 Disable collector (00406)
2012-02-14 00:50:05,825 Thread-4041629056 Starting Agent 10.2.0.4.2 from /u01/app/oracle/product/11.2.0/db_1 (00701)
2012-02-14 00:53:14,979 Thread-4041629056 [Oracle Exadata Storage Server] InstanceProperty (MgmtIPAddr2) is marked OPTIONAL but is being used (00506)
2012-02-14 00:53:15,120 Thread-4041629056 [Load Balancer Switch] InstanceProperty (snmpTimeout) is marked OPTIONAL but is being used (00506)
2012-02-14 00:55:15,146 Thread-1114765632 target {ORCL11G, oracle_database} is broken: cannot compute dynamic properties in time. (00155)
2012-02-14 00:55:15,443 Thread-4041629056 ParseError: File=file:/u01/app/oracle/product/11.2.0/db_1/prc4s3.localdomain_ORCL11G/sysman/emd/collection/oracle_database_ORCL11G.xml, Line=2, Msg=<CollectionItem> Target NAME=ORCL11G does not exist (01006)
2012-02-14 00:55:15,443 Thread-4041629056 fatal error parsing /u01/app/oracle/product/11.2.0/db_1/prc4s3.localdomain_ORCL11G/sysman/emd/collection/oracle_database_ORCL11G.xml, will be ignored (00405)
2012-02-14 00:55:15,479 Thread-4041629056 EMAgent started successfully (00702)
2012-02-14 00:55:16,492 Thread-1088280896 <Upload Manager> Exceeded Max allowed Upload data - No of files: 1375, Size of upload data: 479.491043MB, Pct(%) of Disk used: 18.85%, Disabling collections (00852)
2012-02-14 00:55:16,492 Thread-1088280896 Disable collector (00406)
2012-02-14 00:59:15,987 Thread-1127364928 target {ORCL11G, oracle_database} is broken: cannot compute dynamic properties in time. (00155)
2012-02-14 00:59:16,212 Thread-1127364928 enable collector (00407)
2012-02-14 00:59:16,214 Thread-1127364928 ParseError: File=file:/u01/app/oracle/product/11.2.0/db_1/prc4s3.localdomain_ORCL11G/sysman/emd/collection/oracle_database_ORCL11G.xml, Line=2, Msg=<CollectionItem> Target NAME=ORCL11G does not exist (01006)
2012-02-14 00:59:17,274 Thread-1088280896 <Upload Manager> Exceeded Max allowed Upload data - No of files: 1380, Size of upload data: 487.749705MB, Pct(%) of Disk used: 18.85%, Disabling collections (00852)
2012-02-14 00:59:17,274 Thread-1088280896 Disable collector (00406)
2012-02-14 01:03:15,728 Thread-1117915456 target {ORCL11G, oracle_database} is broken: cannot compute dynamic properties in time. (00155)
2012-02-14 01:03:15,952 Thread-1117915456 enable collector (00407)
2012-02-14 01:03:15,953 Thread-1117915456 ParseError: File=file:/u01/app/oracle/product/11.2.0/db_1/prc4s3.localdomain_ORCL11G/sysman/emd/collection/oracle_database_ORCL11G.xml, Line=2, Msg=<CollectionItem> Target NAME=ORCL11G does not exist (01006)
2012-02-14 01:03:17,004 Thread-1130514752 <Upload Manager> Exceeded Max allowed Upload data - No of files: 1385, Size of upload data: 495.907337MB, Pct(%) of Disk used: 18.86%, Disabling collections (00852)
2012-02-14 01:03:17,004 Thread-1130514752 Disable collector (00406)
2012-02-14 01:03:54,838 Thread-3528908160 Starting Agent 10.2.0.4.2 from /u01/app/oracle/product/11.2.0/db_1 (00701)
2012-02-14 01:07:03,996 Thread-3528908160 [Oracle Exadata Storage Server] InstanceProperty (MgmtIPAddr2) is marked OPTIONAL but is being used (00506)
2012-02-14 01:07:04,138 Thread-3528908160 [Load Balancer Switch] InstanceProperty (snmpTimeout) is marked OPTIONAL but is being used (00506)
2012-02-14 01:09:04,163 Thread-1111787840 target {ORCL11G, oracle_database} is broken: cannot compute dynamic properties in time. (00155)
2012-02-14 01:09:04,470 Thread-3528908160 ParseError: File=file:/u01/app/oracle/product/11.2.0/db_1/prc4s3.localdomain_ORCL11G/sysman/emd/collection/oracle_database_ORCL11G.xml, Line=2, Msg=<CollectionItem> Target NAME=ORCL11G does not exist (01006)
2012-02-14 01:09:04,470 Thread-3528908160 fatal error parsing /u01/app/oracle/product/11.2.0/db_1/prc4s3.localdomain_ORCL11G/sysman/emd/collection/oracle_database_ORCL11G.xml, will be ignored (00405)
2012-02-14 01:09:04,507 Thread-3528908160 EMAgent started successfully (00702)
2012-02-14 01:09:05,520 Thread-1108638016 <Upload Manager> Exceeded Max allowed Upload data - No of files: 1393, Size of upload data: 503.385697MB, Pct(%) of Disk used: 18.95%, Disabling collections (00852)
2012-02-14 01:09:05,520 Thread-1108638016 Disable collector (00406)
2012-02-14 01:13:04,124 Thread-1101977920 target {ORCL11G, oracle_database} is broken: cannot compute dynamic properties in time. (00155)
2012-02-14 01:13:04,353 Thread-1101977920 enable collector (00407)
2012-02-14 01:13:04,354 Thread-1101977920 ParseError: File=file:/u01/app/oracle/product/11.2.0/db_1/prc4s3.localdomain_ORCL11G/sysman/emd/collection/oracle_database_ORCL11G.xml, Line=2, Msg=<CollectionItem> Target NAME=ORCL11G does not exist (01006)
2012-02-14 01:13:05,415 Thread-1108638016 <Upload Manager> Exceeded Max allowed Upload data - No of files: 1398, Size of upload data: 511.644360MB, Pct(%) of Disk used: 18.95%, Disabling collections (00852)and when i execute emctl status agent it is hanging here is the output.
[oracle@prc4s3 scripts]$ emctl status agent
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved.
Error connecting to https://prc4s3.localdomain:3938/emd/maineven when i execute emctl status dbconsole it is hanging here
[oracle@prc4s3 ~]$ emctl status dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved.
https://prc4s3.localdomain:1158/em/console/aboutApplication
EM Daemon is not running.
Logs are generated in directory /u01/app/oracle/product/11.2.0/db_1/prc4s3.localdomain_ORCL11G/sysman/loghere after pressing CTRL+c it is showing *"EM Daemon is not running."*
Thanks & Regards,
Poorna Prasad.S
Edited by: SIDDABATHUNI on Feb 14, 2012 4:54 PM -
Problems with navbuilder in 11g
Hi,
I use 11g PS3.
I want to add a link next to my "New Checkin" and "Search" links. I created the following code and the code is being executed without throwing errors. I checked it with Firebug. But I don't see the new link.
<@dynamichtml custom_finish_layout_init@>
<$include super.custom_finish_layout_init$>
navBuilder.addChildNodeTo('NAVTREE', 'collection', 'id==MyScreens', 'label==My Screens');
if (navBuilder.menuB)
navBuilder.menuB.addTopLevelNode("MyScreens");
else if (navBuilder.trayA)
navBuilder.trayA.addTopLevelNode("MyScreens");
navBuilder.addChildNodeTo('MyScreens', 'item', 'id==link1', 'label==Link 1', 'url==http://www.google.com');
<@end@>I copied this code from a blog. Can someone help me please.
Thanks
BodhyHi,
thanks for your reply.
I tried it with menuA, but that didn't work either. I would say, that the 'addTopLevelNode' functionality isn't working anymore in 11g. If anyone knows better please contact me.
I took a look at the ucm core to find out how oracle created menus and did it the same way.
// first define the item
<@dynamicdata CoreMenuItems@>
id, label, linkType, linkData
SHOW_HIDE_TRAY, wwKzvhShowNavigation, javascript, toggleLeftNavigationMenu()
<@end@>
// second add the item to MENU_A
<@dynamicdata CoreMenuItemRelationships@>
<?commatable mergeKey="primaryKey"?>
parentId, id, loadOrder
MENU_A, SHOW_HIDE_TRAY, 5040
<@end@>
// 3rd define a flag that the item will only be shown if the user is in tray mode
<@dynamicdata CoreMenuItemsFlags@>
<?commatable indexedColumns="id"?>
id, flags
SHOW_HIDE_TRAY, isTraysOnly
<@end@> Greetings
Bodhy -
os windows server 2008
db 11.1.0.7.0
i have created an user with following rigths
GRANT EXP_FULL_DATABASE
GRANT CREATE JOB
GRANT CREATE PROCEDURE
GRANT CREATE VIEW
GRANT CREATE TABLE
GRANT CREATE SESSION
GRANT READ ON DIRECTORY data_pump_dir
GRANT WRITE ON DIRECTORY data_pump_dir
when i run
declare
dp_handle1 number;
begin
dp_handle1 := DBMS_DATAPUMP.open(
operation=>'EXPORT',
job_mode=>'FULL',
remote_link=>NULL,
job_name=> 'my_test_job',
version=>'COMPATIBLE');
end;
i get
ORA-31626: Job ist nicht vorhanden
ORA-06512: in "SYS.DBMS_SYS_ERROR", Zeile 79
ORA-06512: in "SYS.DBMS_DATAPUMP", Zeile 902
ORA-06512: in "SYS.DBMS_DATAPUMP", Zeile 4758
when i run the same snippet as sys
everything is ok
any ideas why it won't work for my user?From the documentation:
If the OPEN fails, call GET_STATUS with a null handle to retrieve additional information about the failure.Have you tried this? -
Problem with oracle webcenter 11g installation and configuration
I have installed weblogic and webcenter successfully.After that I have configured the webcenter by creating new domain using configuration wizard . Three managed servers created for spaces, services and portlets and able to bring up. The problem is webcenter and other service related applications are in failed state. In server stage no ear or war files related to these applications. So unable to access webcenter spaces. Only weblogic console and webcenter enterprise manager can be accessed.No clue from installation document.
Is anything to do to make it to active state?
Edited by: user10303069 on Oct 7, 2009 12:18 AMProblem solved. Simply two more steps required. First, In the nodemanager.properties Edit as StartScriptEnabled=true and start the node manager and then Admin server. Second step is start the WLS_Spaces managed server from webcenter Enterprise Manager. Now spaces is accessible.
-
Problem with installing Forms 11g on clients
Hi all,
I have successfuly installed weblogic server and Oracle Forms 11g on a server and everything works fine. I need to install Forms 11g on different clients for developers. My question is that do i need to install Weblogic on every single client or i can use the one that i have installed on my server. If i can use the one that i have installed, please explain how i can do this because i have tried a lot and the installer does not go to next page after asking for email address.
Thanks in forward,
Shademani
p.s. The clients are Win XpTwo recommendations:
1. Read this:
http://blogs.oracle.com/shay/2007/03/02
2. If you are new to the product and/or product version, you should probably read the documentation before starting to install. Here is the url to the installation guide. This is a good starting place.
http://download.oracle.com/docs/cd/E17904_01/install.1111/e10421/toc.htm
The installation guide explains what is needed and how to install. -
Hi all,
I have problem with Enterprise Manager 11g Grid Control Release 1 (11.1.0.1.0) for Linux x86-64 (64-bit) downloaded archives.
Actually with GridControl_11.1.0.1.0_Linux_x86-64_2of3.zip (1,589,671,704 bytes) (cksum - 535544209)
I successfully downloaded all archives but cksum for this file (...2of3...) is invalid.
Even it is invalid I tried to install. Installation starts ok, but it breaks after few moments.
RegardsHere is cksum from file that I downloaded 3966614633 and on download page is 535544209.
It's obvious that something is wrong!
Oracle personal should fix this issue.
Anyhow, there is another way... Download from different location. See this thread:
Re: Invalid Software Download from OTN for Grid Control 11g on Linux x86_64
Regards -
Problem with character set - Reports 11.1.1.4
Hi!
I have a problem with Oracle Reports 11g regarding character set configuration. The default character set WE8ISO8859P1 works, so PDF reports have a regular display except for Eastern European (EE) letters which are replaced by "¿" sign.
So, when I set any other character set in reports.sh, which would be a normal step to get EE letters, I'm always getting Greek Alphabet in PDF reports. Why Greek Alphabet?
The character sets I tried to use are: EE8ISO8859P2, UTF8 and AL32UTF8.
I changed uifont.ali and included PDF Subset with all four Arial font variants and, of course, I placed all fonts in fonts folder which is pointed by REPORTS_FONT_DIRECTORY.
In Reports Builder everything works fine, but when I have to deploy the report to the Reports Services, the problem occurs.
Also, when I've tried to execute PDF report using In-Process Reports Server (rep_wls_reports_hostnameasinst1) instead of AS Instance Reports Server (RptSvr_hostnameasinst1, which is a regular server), I'm getting Greek Alphabet in PDF reports even if the default character set is WE8ISO8859P1 in reports.sh. What is wrong with it? Where is Greek Alphabet configured?
The production environment is 64-bit Oracle Linux 5.6 with Weblogic 10.3.4 and Forms&Reports 11.1.1.4. Forms works fine with character set EE8ISO8859P2 defined in default.env file.
Thanks in advance!
Regards,
DejanThank you, Denis!
Doc 300416.1 was very useful but Note 356221.1 - A Practical Methodology on Porting Reports from Windows to Unix with Different Font is actually crucial for configuring Reports on Linux.
Also, there is a bug in 11.1.1.3 and 11.1.1.4, which can be fixed using the patch ( Note 1138405.1 - PDF Reports With Font Subsetting Raises Error "Bad /Bbox" on 64-Bit Linux ).
Kind regards! -
Problem with IN OUT Number, OUT RefCursor for EF Model StoredProcedure call
When I call a stored procedure using the EF Model and implicit binding via App.config which has three parameters i.e. 'IN Number', 'IN OUT Number' and 'OUT sys_refcursor', the 'IN OUT Number' is not set correctly on return from the procedure.
The 'IN OUT Number' is for an error code and is set to 12345 on input and is then set to 54321 by stored proceedure for return.
The correct value is returned when the call is via OracleCommand using implicit binding via App.config but remains unchanged when the call is via EF Model and implicit binding via App.config.
The ODP documentaion says you cannot have two OUT RefCursors when using EF Model but does not say you cannot have OUT RefCursor and other non-RefCursor OUT parameters.
The idea behind this type of procedure is to have multiple input parameters to configure and filter the stored procedure and an output result set that consists of an error code and a collection of result rows in a RefCursor.
I am using 11g R2 database and ODP 11g Release 2 (11.2.0.2.30) and ODAC Entity Framework beta.
The query uses Scott/tiger schema with parameters department code, error code and list of employees for department.
code:
PROCEDURE TEST_PARAMETERS
DEPT IN NUMBER,
ERROR_CODE IN OUT NUMBER,
DEPT_EMPLOYEES OUT sys_refcursor
AS
BEGIN
DBMS_OUTPUT.PUT_LINE('DEPT = [' || DEPT || ']');
DBMS_OUTPUT.PUT_LINE('ERROR_CODE = [' || ERROR_CODE || ']');
OPEN DEPT_EMPLOYEES for SELECT empno, ename from emp where deptno = DEPT;
-- set ERROR_CODE for return
ERROR_CODE := 54321;
END TEST_PARAMETERS;
The App.config for implicit RefCursor binding is as follows ...
<oracle.dataaccess.client>
<settings>
<add name="SCOTT.TEST_PARAMETERS.RefCursor.DEPT_EMPLOYEES"
value="implicitRefCursor bindinfo='mode=Output'" />
<add name="SCOTT.TEST_PARAMETERS.RefCursorMetaData.DEPT_EMPLOYEES.Column.0"
value="implicitRefCursor metadata='ColumnName=EMPNO;
BaseColumnName=EMPNO;BaseSchemaName=SCOTT;BaseTableName=EMP;
NATIVE_DATA_TYPE=number;ProviderType=Int32;
PROVIDER_DB_TYPE=Int32;DataType=System.Int32;
ColumnSize=4;NumericPrecision=10;
NumericScale=3;AllowDBNull=false;IsKey=true'" />
<add name="SCOTT.TEST_PARAMETERS.RefCursorMetaData.DEPT_EMPLOYEES.Column.1"
value="implicitRefCursor metadata='ColumnName=ENAME;
BaseColumnName=ENAME;BaseSchemaName=SCOTT;BaseTableName=EMP;
NATIVE_DATA_TYPE=varchar2;ProviderType=Varchar2;
PROVIDER_DB_TYPE=String;DataType=System.String;
ColumnSize=10;AllowDBNull=true'" />
</settings>
</oracle.dataaccess.client>
When the call is via OracleCommand both outputs are correct i.e. ERROR_CODE gets set to 54321 and the correct emplyees for department 10 are returned
code:
private void TestParametersViaOracleCommand()
try
string constr = "DATA SOURCE=ORCL;PASSWORD=tiger;PERSIST SECURITY INFO=True;USER ID=SCOTT";
OracleConnection con = new OracleConnection(constr);
con.Open();
OracleCommand cmd = con.CreateCommand();
OracleDataAdapter adapter = new OracleDataAdapter(cmd);
DataSet ds = new DataSet();
cmd = con.CreateCommand();
cmd.CommandText = "SCOTT.TEST_PARAMETERS";
cmd.CommandType = CommandType.StoredProcedure;
cmd.BindByName = true;
OracleParameter dept = cmd.Parameters.Add("DEPT",
OracleDbType.Int32,
ParameterDirection.Input);
dept.Value = 10;
OracleParameter errorCode = cmd.Parameters.Add("ERROR_CODE",
OracleDbType.Int32,
ParameterDirection.InputOutput);
errorCode.Value = 12345;
// RefCursor output parameter implicitly bound via App.Config
adapter = new OracleDataAdapter(cmd);
adapter.Fill(ds);
// should be 54321 and is ...
Console.WriteLine("after call errorCode.Value = " + errorCode.Value);
Console.WriteLine("list size = {0}", ds.Tables[0].Rows.Count);
// only one table
DataTable deptEmployeesTable = ds.Tables[0];
for (int ii = 0; ii < deptEmployeesTable.Rows.Count; ++ii)
DataRow row = deptEmployeesTable.Rows[ii];
Console.WriteLine("EMPNO: " + row[0] + "; ENAME: " + row[1]);
catch (Exception ex)
// Output the message
Console.WriteLine(ex.Message);
if (ex.InnerException != null)
// If any details are available regarding
// errors in the app.config, print them out
Console.WriteLine(ex.InnerException.Message);
if (ex.InnerException.InnerException != null)
Console.WriteLine(
ex.InnerException.InnerException.Message);
output:
before call errorCode.Value = 12345
after call errorCode.Value = 54321 (should be 54321!)
list size = 3
EMPNO: 7782; ENAME: CLARK
EMPNO: 7839; ENAME: KING
EMPNO: 7934; ENAME: MILLER
However when call is via EF Model the correct employees are returned but the ERROR_CODE parameter is unchanged on return.
code:
private void TestParametersViaEFModel()
var context = new ScottEntities();
Decimal dept = 10;
ObjectParameter errorCodeParameter = new ObjectParameter("ERROR_CODE", typeof(decimal));
errorCodeParameter.Value = 12345;
Console.WriteLine("before call errorCodeParameter.Value = " + errorCodeParameter.Value);
// RefCursor output parameter implicitly bound via App.Config
var queryResult = context.TestParameters(dept, errorCodeParameter);
// should be 54321 and is ...
Console.WriteLine("after call errorCodeParameter.Value = " + errorCodeParameter.Value + " (should be 54321!)");
List<TestParameters_Result> deptEmployeesList = queryResult.ToList();
Console.WriteLine("list size = {0}", deptEmployeesList.Count);
for (int ii = 0; ii < deptEmployeesList.Count; ++ii)
TestParameters_Result result = deptEmployeesList[ii];
Console.WriteLine("EMPNO: " + result.EMPNO + "; ENAME: " + result.ENAME);
output:
after call errorCodeParameter.Value = 12345 (should be 54321!)
list size = 3
EMPNO: 7782; ENAME: CLARK
EMPNO: 7839; ENAME: KING
EMPNO: 7934; ENAME: MILLER
errorCodeParameter.Value IS NOT CORRECTLY RETURNED!
If there is no RefCursor then both outputs are identical i.e. the parameters are being passed in correctly and the problem is not with the 'IN OUT' parameter. Also same thing is true if ERROR_CODE is made an OUT parameter. Also tried changing the position of the parameter in the list but still get same problem i.e. works when OracleCommand but not when EF Model. Also note that the RefCursor results are correct for both types of call i.e. it is just a problem with the value of the 'IN OUT ERROR_CODE' parameter.
I have also enabled debug stepping from Visual Studio 2010 into Oracle PL/SQL as described in
"http://st-curriculum.oracle.com/obe/db/hol08/dotnet/debugging/debugging_otn.htm"
and have verified by inspection that the correct values are being passed into the stored procedure and that the stored procedure is definitely setting the ERROR_CODE to 54321 prior to return.
Most of our stored procedures have these type of parameters i.e. several IN params to configure the work of the stored procedure, an OUT NUMBER parameter for the Error_Code if any and a RefCursor for the result list.
Is this a bug or a feature? Am I doing something wrong?Just to clarify ....
If the ERROR_CODE parameter is made an 'OUT' parameter instead of an 'IN OUT' parameter the correct return value is given for the OracleCommand invocation but the WRONG value is still returned for the EF Model invocation i.e. just changing the parameter from 'IN OUT' to just 'OUT' does not fix the problem.
Maybe you are looking for
-
I have both Mac OS Mountain Lion and Windows 8.1 32-bit installed....The machine is Macbook Mid 2009...Whatever i do i can't install and use bootcamp on the Windows side.........Apple Support says it only supports Windows 64-bit which my machine
-
I've been using my old ipod touch for years and never had a problem with syncing. However, now with the 12.1 itunes it won't even recognize that I plugged in a device and won't show up in itunes. The Ipod would charge but it could not be connected to
-
InDesign 3.0.1 "CS" won't print to Epson 2200 under Mac OS X 10.5.7
Since upgrading to Mac OS X 10.5.7 my old inDesign, version 3.0.1 in the original CS release, refuses to print. In the Print dialog box, Print Settings area, the Media Type and Ink options are grayed out. A message in the same Print Settings area tel
-
How do I transfer music and audiobooks from my iPad to my Mac?
I want to free up space on my iPad. How do I transfer music to my Mac or pc?
-
Deployment Unlicensed captivate 8
Hello, I work for a big company. I'm a software packager/deployer. I am having big issues with this product. What i want to do is very simple : I want a completely silent installation for my users that they will license themselves. We use individual