Oracle OBJECTs and BC4J Domains
In his HOW TO: on multiple data formats Steve Muench said that it was possible to use BC4J domains to implement "Oracle structs" (sic).
I have a object with three attributes that I would like to show and validate in a JSP. Can anybody point me at documentation that tells me how to do this?
Thanks, APC
null
Just use the Domain wizard to create a domain for your Oracle8i user-defined object type, and then you can create entity objects and/or view objects with your new domain type as the attribute.
The domain will have getter and setter methods to get/set the object type's values.
Similar Messages
-
Oracle Objects and Domains in Java Server Pages
We have defined this object in a Oracle 816 Enterprise:
CREATE TYPE DESCRIPTOR AS OBJECT
( ID VARCHAR2(30),
DESCRIPTOR VARCHAR2(80))
create TYPE descriptor_table AS VARRAY(30) of DESCRIPTOR
create table foo_test
(foo_test_id varchar2(10),
descrip descriptor_TABLE )
ALTER TABLE foo_test
ADD CONSTRAINT BIBL_test_PK PRIMARY KEY (foo_test_id)
then we have created in JDeveloper 3.1 an Entity (footest) object and a Domain (DescriptorDom) for the type DESCRIPTOR; then set the type of attribute descript to mypackage.DescriptorDom
After that, we created a JavaServer Page as follows:
<jsp:useBean class="oracle.jbo.html.databeans.JSRowSetBrowser" id="abean" scope="request" >
<% abean.setShowCurrentRow(true); abean.setVisibleRows(10); abean.setShowRecordNumbers(true); abean.setReleaseApplicationResources(false); abean.setDisplayAttributes("FooTestId,Descrip"); abean.initialize(pageContext,"ot_logics_LogicsModule.FooTestView");
abean.render();%>
</jsp:useBean>
The execution of JSP shows the error:
java.lang.ClassCastException
void oracle.jbo.domain.Struct.convertArrayToStruct()
java.lang.Object oracle.jbo.domain.Struct.getAttribute(int)
java.lang.String oracle.jbo.domain.Struct.toString()
void oracle.jbo.html.databeans.JSRowSetBrowser.internalInitialize()
void oracle.jdeveloper.html.WebBeanImpl.initialize(javax.servlet.ServletContext, javax.servlet.http.HttpSession,
javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.io.PrintWriter)
void oracle.jdeveloper.html.DataWebBeanImpl.initialize(javax.servlet.ServletContext, javax.servlet.http.HttpSession,
javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.io.PrintWriter, java.lang.String)
void oracle.jdeveloper.html.DataWebBeanImpl.initialize(javax.servlet.jsp.PageContext, java.lang.String)
void ot_pages_html.bibl_test._jspService(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
void oracle.jsp.runtime.HttpJsp.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
void oracle.jsp.app.JspApplication.dispatchRequest(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
void oracle.jsp.JspServlet.doDispatch(oracle.jsp.app.JspRequestContext)
void oracle.jsp.JspServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
void oracle.lite.web.JupServlet.service(oracle.lite.web.JupRequest, oracle.lite.web.JupResponse)
void oracle.lite.web.MimeServletHandler.handle(oracle.lite.web.JupApplication, java.lang.String, int,
oracle.lite.web.JupRequest, oracle.lite.web.JupResponse)
void oracle.lite.web.JupApplication.service(oracle.lite.web.JupRequest, oracle.lite.web.JupResponse)
void oracle.lite.web.JupAppHandler.handle(oracle.lite.web.JupRequest, oracle.lite.web.JupResponse)
void oracle.lite.web.HTTPServer.include(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
void oracle.lite.web.HTTPServer.forward(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
boolean oracle.lite.web.HTTPServer.handleRequest(oracle.lite.web.JupInputStream, java.io.OutputStream)
boolean oracle.lite.web.JupServer.handle(oracle.lite.web.JupInputStream, java.io.OutputStream)
void oracle.lite.web.JupHTTPListener$JupHTTP.run()
Please JTeam, could you illuminate me about how implement ORACLE objects in Entity object s and JavaServer Pages?
ps The code generated by JPublisher seems be more complete that done by wizard of Domains. We sould use JPublisher?. How set the attribute type?
Thank in advance.
J LuisHi,
It looks like this might be a bug. I am going to use the information you supplied to file a bug so our QA team can investigate.
We have had problems with arrays of structs, but hope to have them fixed with our next release. -
Expert mode query in View objects and appended where clause
My company is Oracle Member Partner and we are developing enterprise web applications using Oracle database and BC4J.
I have the following problem...
When I enable EXPERT MODE option in View Object I have trouble appending to query statement in my client code.
I need expert mode because I must use "SELECT DISTINCT" insted of "SELECT" in my query.
It looks something like this:
viewObject.setWhereClause("CLA_ID = " + claId);
viewObject.executeQuery();
SQL query from View Object becomes sub-query and fails to execute:
select * from (original view object query) where (... appended where clause)
Order by part of the query causes sql errors because original query is now sub-query.
Is there any way around this?I tried creating an expert mode SQL query:
SELECT DISTINCT EMPNO, ENAME FROM EMP.
Then at runtime I do:
vo.setWhereClause("ENAME LIKE '%'||?||'%');
vo.setWhereClauseParam(0,'A');.
and this works fine. The trick is that since expert-mode view objects get wrapped as inline views (to allow runtime appending of WHERE clause, actually), you need to select any column in the select statement to which you want to later refer in a dynamically-appended where clause.
If you want to prevent the inline-view wrapping, you can write the following code in your view object's ViewObjectImpl subclass to force the VO to NOT be treated as an expert-mode SQL VO.
// Goes in your view object impl subclass
public void create() {
// Force this VO to NOT be treated as an expert-mode SQL, so that
// its query does not get wrapped as an inline view.
getViewDef().setFullSql(false);
}I used this trick above to create an expert mode query like:
SELECT DISTINCT deptno FROM empand then at runtime I add a dynamic where clause that refers to a column
in EMP that is not in the select list like this:
ViewObject vo = am.findViewObject("View1");
vo.setWhereClause("ename like '%A%'");
vo.executeQuery();
System.out.println(vo.first().getAttribute(0));and this causes the query to come out as:
SELECT DISTINCT deptno FROM emp WHERE ename like '%A%'.
instead of:
SELECT * FROM (SELECT DISTINCT deptno FROM emp) QRSLT WHERE ename like '%A%'which would cause an error due to the fact that ename is not in the select list of the original (wrapped, inline) query. -
Hi everybody
I have an object type defined in oracle and I attached that type to one of my tables as a type of a column in that type, assume addr type and table customer with column address
and its type addr.
In BC4J , I created a domain for the type and after that, I added an entity object for my table and I chose the type of that column as the domain I created, after that view object and after that application module.
Now I want to test my application module.
It doesn't bring the fields of that type for data entry. how can I enter something inot my address column?
Please help and thanks for that.
ShahramSpecifically, see the "Batch Client Tutorial" which is part of the following sample Workspace:
.\samples\BC4J\OrderEntry\OnlineOrdersForClients\OnlineOrdersForClients.jws
The TestClient.java and TestClient2.java files illustrate best-practice techniques for using the BC4J client API's for working with master/detail coordinated rowsets in a tier-independent manner using the basic oracle.jbo.* interfaces, as well as custom interfaces that expose methods to the clients. TestClient2.java illustrates working with an attribute of (domain) type TAddress which was created on top of an Oracle8 type T_ADDRESS. -
Domains for Oracle object types
When I create a domain for a certain Oracle object type there is no way to create some kind of inheritance tree (and there is no discriminator support it seems). On the database level I have several object types that extend a certain base object type. I want to do the same at the BC4J level. But unfortunately this doesn't seem possible. Is there a work-around for it? I don't mind to write a little extra code, any hints or help are appreciated.
Regards,
Peter
P.S.
It seems the object type / domain support in JDeveloper 9.0.3(.1) isn't quite up there with entities and view objects. It's not even possible to change an attribute name at the Java side using the domain dialog (it's only possible by manually editing the XML and Java files). Will JDeveloper 9.0.4 have broader support for object types / domains?I've found a way to implement the inheritance myself, at least a start. I've noticed all custom domains for oracle object types have the static method "getCustomerDatumFactory". In this method (in the base domain class) normally an instance of the base type is returned. I've modified this method so that it returns instances of the different subtypes depending on the value of a certain column. To make this work I first have to edit the Java files of the subtypes and let them extend the base type instead of the Struct class. The factory method looks like this:
public static CustomDatumFactory getCustomDatumFactory()
if (fac == null)
class facClass implements CustomDatumFactory
public CustomDatum create(Datum d, int sql_type_code) throws SQLException
if (d != null)
BaseType b = new BaseType(d);
if ("subtype1".equals(b.getType())) b = new SubType1(d);
else if ("subtype2".equals(p.getType())) b = new SubType2(d);
else System.err.println("Unknown subtype: " + b.getType());
return b;
return null;
fac = new facClass();
return fac;
}I also tried to save several of the subtypes in the database in the attribute field (which is of the base type) using setAttribute, this seems to work out-of-the-box. It seems for now I only get this to work if the object type is saved in a column of a certain table, I can't get it to work (yet) for object type tables (see the other recent topic of mine).
Is this the correct way to implement what I want? Or is there a better way?
Regards,
Peter -
Oracle Forms and Reports Installation - Creating domain failed
I installed the weblogic 10.3.6 (Oracle WebLogic Server 11gR1 (10.3.6) + Coherence + OEPE - Package Installer) in my Microsoft Windows(32-bit JVM) system first.
But there was an error occorred when the package of forms and reports (Oracle Forms and Reports 11gR2 (11.1.2.2.0)) was installing.
Please find the following error message for your reference.
Do you have any idea? Please kindly advise.
Thanks a lot!
2014-04-02 14:11:14,099 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - read template from "C:/Users/GZ/AppData/Local/Temp//tmp1396419069239wls.jar"
2014-04-02 14:11:16,185 INFO [main] com.oracle.cie.domain.template.catalog.impl.ComponentsXMLConverter - C:\Oracle\Middleware\wlserver_10.3\common\lib\components.xml does not contain component elements and will be skipped
2014-04-02 14:11:17,556 INFO [main] com.oracle.cie.domain.WLSTemplateBuilder - No config-groups.xml found in template
2014-04-02 14:11:17,556 INFO [main] com.oracle.cie.domain.WLSTemplateBuilder - No template-database.xml found in template
2014-04-02 14:11:18,205 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - succeed: read template from "C:/Users/GZ/AppData/Local/Temp//tmp1396419069239wls.jar"
2014-04-02 14:11:18,477 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - set config option ServerStartMode to "prod"
2014-04-02 14:11:18,477 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - succeed: set config option ServerStartMode to "prod"
2014-04-02 14:11:18,490 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - create Machine "PC-42A26D.GZAD.MSAD.LOCAL" as obj0
2014-04-02 14:11:18,604 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - succeed: create Machine "PC-42A26D.GZAD.MSAD.LOCAL" as obj0
2014-04-02 14:11:18,612 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - find Server "AdminServer" as obj1
2014-04-02 14:11:18,652 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - succeed: find Server "AdminServer" as obj1
2014-04-02 14:11:18,698 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - set obj1 attribute Machine to "PC-42A26D.GZAD.MSAD.LOCAL"
2014-04-02 14:11:18,705 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - succeed: set obj1 attribute Machine to "PC-42A26D.GZAD.MSAD.LOCAL"
2014-04-02 14:11:18,706 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - set obj1 attribute ListenPort to "7002"
2014-04-02 14:11:18,716 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - succeed: set obj1 attribute ListenPort to "7002"
2014-04-02 14:11:18,716 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - create Server!SSL "AdminServer!AdminServer" as obj2
2014-04-02 14:11:18,724 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - succeed: create Server!SSL "AdminServer!AdminServer" as obj2
2014-04-02 14:11:18,735 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - set obj2 attribute HostnameVerificationIgnored to "true"
2014-04-02 14:11:18,739 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - succeed: set obj2 attribute HostnameVerificationIgnored to "true"
2014-04-02 14:11:18,739 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - find User "weblogic" as obj3
2014-04-02 14:11:18,755 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - succeed: find User "weblogic" as obj3
2014-04-02 14:11:18,755 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - delete obj3
2014-04-02 14:11:18,763 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - succeed: delete obj3
2014-04-02 14:11:18,764 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - create User "weblogic" as obj4
2014-04-02 14:11:18,768 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - succeed: create User "weblogic" as obj4
2014-04-02 14:11:18,771 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - set obj1 attribute PeriodLength to "200000"
2014-04-02 14:11:18,807 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - succeed: set obj1 attribute PeriodLength to "200000"
2014-04-02 14:11:18,807 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - set obj1 attribute IdlePeriodsUntilTimeout to "20"
2014-04-02 14:11:18,815 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - succeed: set obj1 attribute IdlePeriodsUntilTimeout to "20"
2014-04-02 14:11:18,815 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - set obj1 attribute DGCIdlePeriodsUntilTimeout to "21"
2014-04-02 14:11:18,821 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - succeed: set obj1 attribute DGCIdlePeriodsUntilTimeout to "21"
2014-04-02 14:11:18,822 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - set obj1 attribute IdleConnectionTimeout to "1000"
2014-04-02 14:11:18,830 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - succeed: set obj1 attribute IdleConnectionTimeout to "1000"
2014-04-02 14:11:18,833 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - set obj4 attribute Password to "********"
2014-04-02 14:11:18,837 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - succeed: set obj4 attribute Password to "********"
2014-04-02 14:11:18,837 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - set config option OverwriteDomain to "true"
2014-04-02 14:11:18,837 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - succeed: set config option OverwriteDomain to "true"
2014-04-02 14:11:18,837 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - set config option JavaHome to "C:/Oracle/Middleware/jdk160_29"
2014-04-02 14:11:18,837 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - succeed: set config option JavaHome to "C:/Oracle/Middleware/jdk160_29"
2014-04-02 14:11:18,948 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - validateConfig "KeyStorePasswords"
2014-04-02 14:11:18,953 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - succeed: validateConfig "KeyStorePasswords"
2014-04-02 14:11:18,954 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - write Domain to "C:/Oracle/Middleware/user_projects/domains/base_domain"
2014-04-02 14:11:19,441 INFO [main] com.oracle.cie.domain.DomainChecker - ListenPort internal Validation result= [null]
2014-04-02 14:11:19,441 INFO [main] com.oracle.cie.domain.DomainChecker - ListenPort external Validation result= [null]
2014-04-02 14:11:21,609 INFO [Thread-1] com.oracle.cie.domain.StartMenu - Creating start menu program=C:\Oracle\Middleware\user_projects\domains\base_domain\bin\startWebLogic.cmd link=Start Admin Server for Weblogic Server Domain
2014-04-02 14:11:21,659 INFO [Thread-1] com.oracle.cie.domain.StartMenu - Creating start menu program=C:\Oracle\Middleware\user_projects\domains\base_domain\bin\stopWebLogic.cmd link=Stop Admin Server
2014-04-02 14:11:21,667 INFO [Thread-1] com.oracle.cie.domain.StartMenu - Creating start menu program=C:\Windows\system32\rundll32.exe link=Admin Server Console
2014-04-02 14:11:21,759 INFO [Thread-1] com.oracle.cie.domain.DomainRegistryWrapper - need to initialize domainRegistrydocument object
2014-04-02 14:11:21,777 INFO [Thread-1] com.oracle.cie.domain.DomainGenerator - Domain Generation Successful!
2014-04-02 14:11:21,783 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - succeed: write Domain to "C:/Oracle/Middleware/user_projects/domains/base_domain"
2014-04-02 14:11:21,784 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - close template
2014-04-02 14:11:21,784 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - succeed: close template
2014-04-02 14:11:21,784 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - read domain from "C:/Oracle/Middleware/user_projects/domains/base_domain"
2014-04-02 14:11:21,967 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - succeed: read domain from "C:/Oracle/Middleware/user_projects/domains/base_domain"
2014-04-02 14:11:21,967 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - add template C:/Oracle/Middleware/oracle_common/common/templates/applications/jrf_template_11.1.1.jar to domain
2014-04-02 14:11:22,011 WARN [main] com.oracle.cie.domain.template.dependency.TemplateSelectionTarget - Catalog does not have matching template for location C:\Users\GZ\AppData\Local\Temp\tmp1396419069239wls.jar
2014-04-02 14:11:22,071 INFO [main] com.oracle.cie.domain.WLSTemplateBuilder - No template-database.xml found in template
2014-04-02 14:11:22,100 INFO [main] com.oracle.cie.domain.WLSTemplateBuilder - No template-database.xml found in template
2014-04-02 14:11:22,101 ERROR [main] com.oracle.cie.domain.ConfigGroupsEngine$ConfigTopology - Multiple definitions of server-group BI-ADF-ADMIN-SVR are not allowed
2014-04-02 14:11:22,101 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - fail: add template C:/Oracle/Middleware/oracle_common/common/templates/applications/jrf_template_11.1.1.jar to domain
2014-04-02 14:11:22,101 ERROR [main] com.oracle.cie.domain.script.ScriptExecutor - fail: add template C:/Oracle/Middleware/oracle_common/common/templates/applications/jrf_template_11.1.1.jar to domain
com.oracle.cie.domain.ConfigGroupsException: Multiple definitions of server-group BI-ADF-ADMIN-SVR are not allowed
at com.oracle.cie.domain.ConfigGroupsEngine$ConfigTopology.merge(ConfigGroupsEngine.java:2762)
at com.oracle.cie.domain.ConfigGroupsEngine.mergeTopology(ConfigGroupsEngine.java:551)
at com.oracle.cie.domain.ConfigGroupsEngine.merge(ConfigGroupsEngine.java:479)
at com.oracle.cie.domain.AbstractTemplate.addConfigGroups(AbstractTemplate.java:314)
at com.oracle.cie.domain.script.ScriptExecutor.addTemplate(ScriptExecutor.java:605)
at com.oracle.cie.domain.script.jython.WLScriptContext.addTemplate(WLScriptContext.java:416)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.python.core.PyReflectedFunction.__call__(Unknown Source)
at org.python.core.PyMethod.__call__(Unknown Source)
at org.python.core.PyObject.__call__(Unknown Source)
at org.python.core.PyInstance.invoke(Unknown Source)
at org.python.pycode._pyx3.addTemplate$20(C:\Users\GZ\AppData\Local\Temp\WLSTOfflineIni364664194239939514.py:89)
at org.python.pycode._pyx3.call_function(C:\Users\GZ\AppData\Local\Temp\WLSTOfflineIni364664194239939514.py)
at org.python.core.PyTableCode.call(Unknown Source)
at org.python.core.PyTableCode.call(Unknown Source)
at org.python.core.PyFunction.__call__(Unknown Source)
at org.python.pycode._pyx15.f$0(C:\Users\GZ\AppData\Local\Temp\tmp1396419069304.py:42)
at org.python.pycode._pyx15.call_function(C:\Users\GZ\AppData\Local\Temp\tmp1396419069304.py)
at org.python.core.PyTableCode.call(Unknown Source)
at org.python.core.PyCode.call(Unknown Source)
at org.python.core.Py.runCode(Unknown Source)
at org.python.util.PythonInterpreter.execfile(Unknown Source)
at weblogic.management.scripting.WLST.main(WLST.java:139)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at weblogic.WLST.main(WLST.java:29)hi user ...
on windows there are some steps in front of installation and configuration.
1) cleare the Windows Env (Path .. Programme x86 )
no Blank in Path and so on
2) insert into your local host file your server and IP Adress
3) in Windows 32 setup of WLS is JDK included so you don't have to install the jdk in front of WLS
4) verify if you are using the right installation medium (jdk 32 bit, wls 32 bit , fmw 32 bit
in your OraInventory/logs directory is a *.out file for your installation please can you put this file in the forum
is there a nodemanager up and running (if so please stop)
Jan-Peter -
Differences between Oracle BAM and Oracle BI and Question BAM Data Objects
Hi,
I have two questions.
1. Can someone tell me differences between Oracle BAM and Oracle BI?
My understanding about Oracle BAM is, we use BAM to build Dashboards or Reports.
We can also build DashBoards or reports using Oracle BI.
I am not able to understand why Oracle has two tools for same purpose?
Which tool is more powerful and user friendly(Oracle BI or Oracle BAM)?
2. Every time we plan to develop Dashboard or report in BAM, we need to create BAM ADC Data Object to store Data (i.e first step is to get data from external database or application and second step is to store data in BAM ADC data object).
My understanding is we have an extra step(i.e creating Data Object) in Oracle BAM to develop a report or DashBoard
I am wrong pl correct me?
Regards,
Shanti Nagulapalli.Oracle 11g has many advanced features in PL/SQL over Oracle 9i.
refer here,
http://www.oracle.com/technetwork/database/features/manageability/9i-to-11g-real-world-customer-exper-133754.pdf
http://www.oracle.com/global/de/upgradecommunity/artikel/upgrade11gr2_workshop2.pdf
http://www.compuworks.com/events/view/233.pdf
http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getCourseDesc?dc=D52601GC10&p_org_id=15942&lang=US
Thanks -
Oracle object cols and inserts
hi,
i have a type defined as follows
create type foo
a number(10),
b number(10),
c date, d date);
now i use this in a table as follows
create table test
foo_obj foo default foo(-1, -1, sysdate, sysdate) not null,
foo_name varchar2(100) not null
now what im really interested in is when i do
an insert id like to specify only some of
the values for a given obj
aka
insert into test(foo_obj, foo_name)
values (foo_obj.a(10), 'test')
so the rest of the values for that obj
come from the defaults specified..
ive been unable to find examples for the above method in the 8i docs & any help here
on the correct syntax with an example would
help enormously
thanx
pete
nullOracle® Database Object-Relational Developer's Guide
Also note that object relational database design is often less performant and scalable than relational. It is not very often used in production environments.
However, the object orientated programming feature that is provided with Oracle object feature set are used and can make development and interfaces a lot easier.
So in a nutshell. Say no to ref and nested table columns. Say yes to most of the other object features. IMO of course... -
Concurrency and Oracle Object Types
Hi All,
I have a question regarding Concurrent usage of an Object type in Oracle.
I have a java program which calls an Oracle stored proc with the object's table type as IN parameter. In my stored proc, I am populating an Oracle Object with data received from java and retrieving some data based on that.
My java program can be invoked concurrently by 500 users at the same time - the application is built to handle that request load.
Now in Oracle, if a bunch of requests are received at the same, would Oracle create multiple instances of this object type that would be usage to the multiple stored proc invocations? Or would there be a prob of concurrency?
If multiple instance creation is not supported, is there some alternative I can use?
My code roughly resembles:
Object:
contains two columns - name, age
Stored proc - logic to retrieve and return data from a table based on the name, age received.
When a bunch of requests access the stored proc simultaneously, will a bunch of instnaces of the object type get created? Or would there be a scenario where the object is common to all requests and hence data from one request would be conflicted due to data from another request?Hi Wiiliam
Sorry for the late acknowledgement (i dozed off!).. Thanks for the response. So the private instance specific to a session ensure that theres no conflict between multiple requests to the same stored proc and hence no conflict of data... Great
Chaitanya -
Oracle forms and reports with object views in oracle 9i
Can We use oracle 9i Object Views in oracle forms and reports. If yes, then which version?
MichaelFerrante,Thank you for your help.
I have already used the HS services to connecto to external databases from our main Oracle database, and the solution works fine.
But unfortunally for this particular client he cannont have installed a Oracle database due to internal policies restrictions.
I can not migrate the full application to another technology like ADF in less than 6 or 8 months.
Do you thifnk that there is any other solution?
Mensagem editada por: user10660669 -
Data objects and code objects in oracle application
Hi,
can any one please help me out with following question?
1. what are data objects and code objects in oracle apps and why is that difference?
2. How does the objects gets created in Oracle Applications, like during the installation which part is responsible for creating objects and after the installtion later point of time, how the new objects gets created in oracle applications?
3. what are the ways to find out if my 11i application is OATM enabled ?
Thanks in advanceHello,
I managed to find answer for question 1, yet to find answer for 2 and 3.
Answer for question 1 --
Data objects : store and access business data (tables, indexes, sequences, index-organized tables, etc);
Code objects : process data objects but them don't contains business data (functions, procedures, packages, views, synonyms);
Now, here i have a question - under which objects queues are considered ? -
JAVA Calling Oracle Function and Returning OBJECT
HI,
I am working as a developer in java/j2ee project.
I am facing one issue:
I need to call Oracle function from java code. Oracle User define function is residing in oracle package and returning Object which contains data.
Can you please help me
With Best Regardsgolduniya wrote:
I need to call Oracle function from java code. Oracle User define function is residing in oracle package and returning Object which contains data.
Can you please help meIt requires a great deal of Oracle jdbc driver specific code.
[http://download-west.oracle.com/docs/cd/B10501_01/java.920/a96654/oraint.htm#1012664] -
How to upload and checkin oracle objects(tables,functons etc)
we are using scm repository and uploading and chicking in
oracle forms and reports . want to know the steps to upload and check in oracle database objects like tables,functions,procedures etc which we already have in our database.
plz help us .Rashid,
for all structured objects you need Oracle Designer as frontend to SCM Repository. In Designer use the design editor und choose from the GENERATE Menu the item CAPTURE DESIGN OF. There you will find SERVER MODEL.
regards
Rainer -
Hi All
I have oracle object types created.
<code>
CREATE OR REPLACE
TYPE CONFIRM_APP_CONFIRM_ENQUIRY_AT AS OBJECT
ENQATTRIBTYPECODE VARCHAR2(1000),
ENQATTRIBVALUECODE VARCHAR2(1000),
ENQATTRIBSTRINGVALUE VARCHAR2(1000),
ENQATTRIBNUMVALUE NUMBER,
ENQATTRIBDATEVALUE DATE
</code>
I m using this type for couple of columns in a table
and then i try to use this procedure which generates XML
<code>
BEGIN
MY_SQL :=
DBMS_XMLQUERY.NEWCONTEXT
( 'Select Nvl(Enquiry_Number,9999) "EnquiryNumber",
External_System_Reference "ExternalSystemReference",
External_System_Number "ExternalSystemNumber",
Service_Code "ServiceCode",
Subject_Code "SubjectCode",
Enquiry_Description "EnquiryDescription",
Enquiry_Location "EnquiryLocation",
Enquiry_Status_Code "EnquiryStatusCode",
Assigned_Office_Code "AssignedOfficerCode",
Logged_Time "LoggedTime",
EnquiryX "EnquiryX",
EnquiryY "EnquiryY",
Site_Code "SiteCode",
Central_Asset_Id "CentralAssetId",
Contact_Name "ContactName",
Contact_Phone "ContactPhone",
Contact_Fax "ContactFax",
Contact_Email "ContactEmail",
Enquiry_Reference "EnquiryReference",
Enquiry_Class_Code "EnquiryClassCode",
Notice_From_Org_Code "NoticeFromOrgCode",
Works_Reference "WorksReference",
Job_Number "JobNumber",
Address_Reference "AddressReference",
enquiry_attribute1 "EnquiryAttribute",
enquiry_attribute2 "EnquiryAttribute",
enquiry_attribute3 "EnquiryAttribute",
enquiry_attribute4 "EnquiryAttribute",
enquiry_attribute5 "EnquiryAttribute",
enquiry_attribute6 "EnquiryAttribute",
enquiry_attribute7 "EnquiryAttribute",
enquiry_attribute8 "EnquiryAttribute",
enquiry_attribute9 "EnquiryAttribute",
enquiry_attribute10 "EnquiryAttribute",
enquiry_attribute11 "EnquiryAttribute",
enquiry_attribute12 "EnquiryAttribute",
enquiry_attribute13 "EnquiryAttribute",
enquiry_attribute14 "EnquiryAttribute",
enquiry_attribute15 "EnquiryAttribute",
enquiry_attribute16 "EnquiryAttribute",
enquiry_attribute17 "EnquiryAttribute",
enquiry_attribute18 "EnquiryAttribute",
enquiry_attribute19 "EnquiryAttribute",
enquiry_attribute20 "EnquiryAttribute",
enquiry_customer "EnquiryCustomer",
enquiry_document "DocumentLink"
FROM XXHCC_HOLDING_CONFIRM WHERE
EXTERNAL_SYSTEM_REFERENCE ='
|| EXTERNAL_SYSTEM_REFERENCE
|| '
AND message_status = ''FAIL'''
DBMS_XMLQUERY.SETROWSETTAG (MY_SQL, 'Operation');
DBMS_XMLQUERY.SETROWTAG (MY_SQL, 'NewEnquiry');
L_XML := DBMS_XMLQUERY.GETXML (MY_SQL);
DBMS_XMLQUERY.CLOSECONTEXT (MY_SQL);
</code>
when i get the xml as output, i get this..
<code>
<Operation>
<NewEnquiry num="1">
<EnquiryNumber>9999</EnquiryNumber>
<ExternalSystemReference>4343017</ExternalSystemReference>
<ExternalSystemNumber>1</ExternalSystemNumber>
<ServiceCode>HWAY</ServiceCode>
<SubjectCode>MAIN</SubjectCode>
<EnquiryDescription>TAI-Highway Maintenance</EnquiryDescription>
<EnquiryLocation>O/S Cheese Pub</EnquiryLocation>
<LoggedTime>2008-04-09T08:33:36</LoggedTime>
<SiteCode>19101890</SiteCode>
<ContactName>MRS xyz</ContactName>
<ContactPhone>3434343</ContactPhone>
<EnquiryReference>CRMHUB</EnquiryReference>
<NoticeFromOrgCode>ABC</NoticeFromOrgCode>
<WorksReference>4343017</WorksReference>
<EnquiryAttribute>
<ENQATTRIBTYPECODE>CSPL</ENQATTRIBTYPECODE> <ENQATTRIBSTRINGVALUE>n.a</ENQATTRIBSTRINGVALUE>
</EnquiryAttribute>
<EnquiryAttribute>
<ENQATTRIBTYPECODE>CSAI</ENQATTRIBTYPECODE>
<ENQATTRIBSTRINGVALUE>Cracked Path-Loose Flagstone</ENQATTRIBSTRINGVALUE>
</EnquiryAttribute>
<EnquiryAttribute> <ENQATTRIBTYPECODE>CSDL</ENQATTRIBTYPECODE> <ENQATTRIBSTRINGVALUE>No</ENQATTRIBSTRINGVALUE>
</EnquiryAttribute>
<EnquiryAttribute>
<ENQATTRIBTYPECODE>CSIM</ENQATTRIBTYPECODE>
</EnquiryAttribute>
<EnquiryAttribute/>
<EnquiryAttribute/>
<EnquiryAttribute/>
<EnquiryAttribute/>
<EnquiryAttribute/>
<EnquiryAttribute/>
<EnquiryAttribute/>
<EnquiryAttribute/>
<EnquiryAttribute/>
<EnquiryAttribute/>
<EnquiryAttribute/>
<EnquiryAttribute/>
<EnquiryAttribute/>
<EnquiryAttribute/>
<EnquiryAttribute/>
<EnquiryAttribute/>
<ENQUIRY_CUSTOMER>
<CUSTOMER_ALT_PHONE>00</CUSTOMER_ALT_PHONE>
<CUSTOMER_PRIMARY_ADDRESS>,,0, ABC Street</CUSTOMER_PRIMARY_ADDRESS>
<CUSTOMER_TOWN_NAME>UK</CUSTOMER_TOWN_NAME>
<CUSTOMER_COUNTY_NAME>UK</CUSTOMER_COUNTY_NAME>
<CUSTOMER_POST_CODE>AB1 3QT</CUSTOMER_POST_CODE>
</ENQUIRY_CUSTOMER>
</NewEnquiry>
</Operation>
</code>
My question is i m transferring this XML to a third party webservice and it does inserting into a third party application.
The problem is if you look under EnquiryAttribute tag ENQATTRIBSTRINGVALUE and ENQATTRIBTYPECODE i need this to be in lowercase.
As the xml is getting automatically generated how do i achieve this. I feel them in the uppercase is causing problems at the other end.
Any help appreciated
Srini
Message was edited by:
sikhasrinivasUse "..." delimiters in the CREATE TYPE (and in all your code that references the type).
-
Is there a good way to model oracle object types using ERD's in designer 6i. I can only figure out how to map to tables with columns of predefined datatypes (varchar2, number, date, long). I'd like to use designer to create new datatypes. Is this possible? Thanks.
Hi Wiiliam
Sorry for the late acknowledgement (i dozed off!).. Thanks for the response. So the private instance specific to a session ensure that theres no conflict between multiple requests to the same stored proc and hence no conflict of data... Great
Chaitanya
Maybe you are looking for
-
Mysteriously added text downloading to Acrobat Create PDF Online
Working on Acrobat.com's create an online pdf web page I downloaded a Word Document from my pc to Acrobat.com and opened the Word document (on Acrobat's web site) to find the document different than the original Word document on my pc. The Word docum
-
Hi all, I'm testing setup of primary and standby database and everything seems to work normally. Now, I want to set up DG Broker so I can test switching it over and back. So, I went through steps by Gavin (ref. http://gavinsoorma.com/2010/03/11g-data
-
Header and Footer Margins...
I don't think anybody has gotten headers and footers 'right' yet. They're painful. Anyway, I've got a document with a footer: it's got some text and page numbers. I can see in the Inspector>Document that the margins for Headers and Footers are limite
-
Hi, would be grateful if someone could help out with this basic problem: I'm using a JTextArea that displays additional text added using the append() method in a java2 1.4 program, but I need it to automatically scroll down to show the latest line of
-
Custom Buttons In Template Issue - Arrgh!
Hi, I created a custom button in Photoshop, using the layer method specified in grayscale. I then created a custom template with six of these buttons. Then I imported a movie with embedded chapter indexes. When I drag this movie to an empty menu wind