How register user defined listener name with OEM
DEFAULT LISTENER
[oracle@localhost ~]$ lsnrctl status
LSNRCTL for Linux: Version 10.2.0.4.0 - Production on 06-SEP-2010 10:03:46
Copyright (c) 1991, 2007, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
Linux Error: 111: Connection refused
USER DEFINED LISTENER
[oracle@localhost ~]$ lsnrctl status LISTENER_LIMCAMP
LSNRCTL for Linux: Version 10.2.0.4.0 - Production on 06-SEP-2010 10:04:03
Copyright (c) 1991, 2007, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.106.72)(PORT=1521)))
STATUS of the LISTENER
Alias LISTENER_LIMCAMP
Version TNSLSNR for Linux: Version 10.2.0.4.0 - Production
Start Date 03-SEP-2010 19:42:11
Uptime 2 days 14 hr. 21 min. 52 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /ora10gsoft/oracle/product/10.2.0/db_1/network/admin/listener.ora
Listener Log File /ora10gsoft/oracle/product/10.2.0/db_1/network/log/listener_limcamp.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.106.72)(PORT=1521)))
Services Summary...
Service "LIMCAMP" has 1 instance(s).
Instance "LIMCAMP", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
I am able to connected thru listener.
But my OEM database control showing
Host localhost.localdomain
Port 1521
SID LIMCAMP
Oracle Home /ora10gsoft/oracle/product/10.2.0/db_1
Status Down
Host localhost.localdomain
Port 1521
Name LISTENER
Oracle Home /ora10gsoft/oracle/product/10.2.0/db_1
Location /ora10gsoft/oracle/product/10.2.0/db_1/network/admin
Details TNS-12541: TNS:no listener
My OEM taking the default LISTENER( which is not running). how to register OEM to take the listener (LISTENER_LIMCAMP).
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain
192.168.106.72 localhost.localdomain
would you please have a look into the below link which is the issue on the same server.
Heartbeat failed to connect to standby : archive files not transfering....
Edited by: SAKTHIVEL on Sep 6, 2010 11:45 AM
Similar Messages
-
Displaying user's full name with content
How would I best set up an attribute to display the user's full name with a published item?
The default 'author' attribute only displays the login name.
I have an idea how to set up a custom attribute of the PL/SQL type, but am unsure if there already exists a procedure to fetch the current user's full name.
ThanksFor any item type, define an item type procedure. Pass the author attribute to the procedure. The procedure will need to call the WWSEC_API.PERSON_INFO(P_USER_NAME) function, which returns a record containing all the columns in the WWSEC_PERSON table.
In pseudocode, your procedure will:
declare a record based on wwsec_person%rowtype
call wwsec_api.person_info to populate the record
use htp.p to display the wwsec_person.first_name and wwsec_person.last_nameTo show the results of the item type procedure, display the "Associated Functions" attribute in the region properties.
Regards,
Jerry
PortalPM -
User defined listener ADFConfigLifeCycleCallBack failed
Hello
I'm using JDev 11.1.2.3 and I'm trying to deploy my application
after deploying it to the server I noticed in the logs that after I click on navigation link I get the following error- which makes my application fail:
####<May 30, 2013 3:17:02 AM EDT> <Warning> <HTTP> <hrmsoaapdx01> <soa_server1> <[ACTIVE] ExecuteThread: '30' for queue: 'weblogic.kernel.Default (self-tuning)'> <mshapira> <> <a0be1c155584e140:-684a39f9:13ece23dd90:-8000-0000000000af8fdd> <1369898222821> <BEA-101162> <User defined listener oracle.adf.mbean.share.config.ADFConfigLifeCycleCallBack failed: javax.management.RuntimeMBeanException: RuntimeException thrown in preDeregister method.
Did any of you stumbled upon this error and\or know what it could mean?
That would REALLY help me
Thanks for your timeIt is standalone 10.3.6.
Yes , I deployed another application also. The only difference , that other application invokes web services and not the DB. But db connection is working - in the page that I access first I do see a table with data populated from the database -
How many users do i have with this account?
How many users do i have with this account?
Hi darylm32102489,
Which account are you referring to? I see that you have an Acrobat subscription--is that what you're asking about? Or are you referring to your Acrobat.com online storage account?
If you're referring to an Acrobat subscription, please see this FAQ for information regarding licensing: https://helpx.adobe.com/x-productkb/policy-pricing/acrobat-pro-xi-subscription-faqs.html#i d_83547
Please let us know if you have additional questions.
Best,
Sara -
Hi all,
I'm facing the following error when my Weblogic 10.3 servers starts .Any one have an idea why ?
+<14-Sep-2010 16:58:41 o'clock CEST> <Error> <HTTP> <BEA-101163> <Could not load user defined listener: examples.webapp.lifecycle.OpenBrowserServletContextListener+
java.lang.ClassNotFoundException: examples.webapp.lifecycle.OpenBrowserServletContextListener
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:283)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:256)
at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:54)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
Truncated. see log file for complete stacktrace
+>+
+<14-Sep-2010 16:58:41 o'clock CEST> <Error> <Deployer> <BEA-149205> <Failed to initialize the application 'examplesWebApp' due to error weblogic.application.ModuleException: .+
weblogic.application.ModuleException:
at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:387)
at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:387)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
Truncated. see log file for complete stacktrace
java.lang.ClassNotFoundException: examples.webapp.lifecycle.OpenBrowserServletContextListener
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:283)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:256)
at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:54)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
Truncated. see log file for complete stacktrace
+>+
ThanksThis is probably some jsf library issue.
Which technology are you using? (ADF is not supported on WLS 12c)
If you have jsf-api.jar or jsf-impl.jar in your deployment, try to remove them.
Dario -
How to use one Datasource name with different pools
Hi,
I am using WLS 814 with 4 managed servers.
Our application uses (Entity) EJBs with a defined datasource name.
Each managed server should have its own connection pool pointing to a separate database.
Now I want to deploy the same EAR on all servers.
But how can I use the same datasource name across all servers?Frank Bareuther wrote:
The DBMS is the same, we are only using a different database user to log on.
There is a separate db user for each server.
The EAR with a given datasource name in the entity EJBs should be deployed
on all 4 servers without changing descriptors.Interesting. And what is the value of using a different schema/user in the
different servers? I do believe that this configuration issue can be
achieved but I have not done it myself. I believe there is a way to
have some portions of a managed server's configuration by in a per-server
config file. That would be where you would define the pool. The DataSource
could also be there (with the same name for every server), or it could
be in the common one in the admin server.
I would file a support case to get this documented to show you how to
do what you want.
Joe -
User defined xquery function with index enabled
If I use user defined xquery function, can the index be applied within the function?
trados.xsd
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2005 rel. 3 U (http://www.altova.com) by () -->
<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb" xmlns:tns="http://ecoit.hp.com/ecg/repository/trados" targetNamespace="http://ecoit.hp.com/ecg/repository/trados" elementFormDefault="qualified">
<complexType name="entry">
<sequence>
<element name="base" type="string"/>
<element name="translation" maxOccurs="unbounded">
<complexType>
<simpleContent>
<extension base="string">
<attribute name="lang"/>
</extension>
</simpleContent>
</complexType>
</element>
</sequence>
<attribute name="xpath" type="string" use="required" xdb:SQLName="XPATH"/>
<attribute name="locator" type="string" use="required"/>
</complexType>
<simpleType name="languages">
<list itemType="string"/>
</simpleType>
<element name="trados" xdb:defaultTable="ECG_REP_TRADOS_TAB" xdb:tableProps="VARRAY XMLDATA.ENTRY STORE AS TABLE ECG_REP_TRADOS_ENTRY_TAB ((PRIMARY KEY (NESTED_TABLE_ID, SYS_NC_ARRAY_INDEX$)) ORGANIZATION INDEX OVERFLOW)">
<complexType>
<sequence>
<element name="entry" type="tns:entry" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="ENTRY"/>
</sequence>
<attribute name="cid" type="string"/>
<attribute name="path" type="string"/>
<attribute name="lang" type="string"/>
<attribute name="langs" type="tns:languages"/>
<attribute name="oldversion" type="string"/>
</complexType>
</element>
</schema>
CREATE INDEX ECG_REP_ENTRY_XPATH_IDX ON ECG_REP_TRADOS_ENTRY_TAB ("XPATH", "NESTED_TABLE_ID")
eco_category.xsd
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2008 (http://www.altova.com) by Jan-Erik Pedersen (HEWLETT PACKARD) -->
<!--W3C Schema generated by XMLSpy v2007 (http://www.altova.com) by Scott Dismukes (Hewlett Packard)-->
<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb" xmlns:tns="http://ecoit.hp.com/ecg/repository/eco/category" xmlns:cns="http://ecoit.hp.com/ecg/repository/types" targetNamespace="http://ecoit.hp.com/ecg/repository/eco/category" elementFormDefault="qualified">
<import namespace="http://ecoit.hp.com/ecg/repository/types" schemaLocation="../types.xsd"/>
<complexType name="productFamilies">
<sequence>
<element name="productFamily" type="tns:productFamily" minOccurs="0" maxOccurs="unbounded"/>
<element name="product" type="tns:product" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute name="lang" use="required" xdb:SQLName="LANG">
<simpleType>
<restriction base="string">
<length value="5"/>
</restriction>
</simpleType>
</attribute>
<attribute name="version" use="required" xdb:SQLName="VERSION">
<simpleType>
<restriction base="string">
<maxLength value="100"/>
</restriction>
</simpleType>
</attribute>
</complexType>
<complexType name="productCategory">
<sequence>
<element name="label" type="cns:label"/>
<element name="productCategory" type="tns:productCategory" minOccurs="0" maxOccurs="unbounded" xdb:defaultTable="ECG_REP_ECO_CATALOG_PC_TAB"/>
<element name="product" type="tns:product" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute name="id" type="cns:id" use="required"/>
</complexType>
<complexType name="productCategories">
<sequence>
<element name="productCategory" type="tns:productCategory" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
</complexType>
<complexType name="column">
<sequence>
<element name="label" type="cns:label"/>
</sequence>
<attribute name="id" type="cns:id" use="required"/>
</complexType>
<complexType name="product">
<sequence>
<element name="label" type="cns:label"/>
<element name="column" type="tns:column" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute name="id" type="cns:id" use="required"/>
</complexType>
<complexType name="productFamily">
<sequence>
<element name="label" type="cns:label"/>
<element name="image" type="cns:image" minOccurs="0" maxOccurs="unbounded"/>
<element name="link" type="cns:link" minOccurs="0" maxOccurs="unbounded"/>
<element name="column" type="tns:column" minOccurs="0" maxOccurs="unbounded"/>
<element name="productCategories" type="tns:productCategories" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute name="id" type="cns:id" use="required"/>
</complexType>
<element name="productFamilies" type="tns:productFamilies" xdb:defaultTable="ECG_REP_ECO_CATALOG_TAB"/>
</schema>
xquery
xquery version "1.0";
declare namespace typ = "http://ecoit.hp.com/ecg/repository/types";
declare namespace c = "http://ecoit.hp.com/ecg/repository/eco/category";
declare namespace t = "http://ecoit.hp.com/ecg/repository/trados";
declare variable $c := $res/c:productFamilies;
declare function local:pc($pc as element(c:productCategory), $x as xs:string) as element()
<c:productCategory id="{$pc/@id}">
<c:label>{data($es/t:entry[@xpath eq concat($x, "/label")]/t:translation)}</c:label>
for $p in $pc/c:product
return local:p($p, concat($x, "/product/[@id=", $p/@id, "]"))
for $pcc in $pc/c:productCategory
return local:pc($pcc, concat($x, "/productCategory[@id=", $pcc/@id, "]"))
</c:productCategory>
declare function local:p($p as element(c:product), $x as xs:string) as element()
<c:product id="{$p/@id}">
<c:label>{string($es/t:entry[@xpath eq concat($x, "/label")]/t:translation)}</c:label>
for $col in $p/c:column
return
<c:column id="{$col/@id}">
<c:label>
let $e := $es/t:entry[@xpath eq concat($x, "/column[@id=", $col/@id, "]/label")]
return
if(exists($e)) then string($e/t:translation)
else $col/c:label/text()
</c:label>
</c:column>
</c:product>
<c:productFamiles xsi:schemaLocation="http://ecoit.hp.com/ecg/repository/eco/category http://ecoit.hp.com/ecg/repository/eco/category.xsd http://ecoit.hp.com/ecg/repository/types http://ecoit.hp.com/ecg/repository/types.xsd" lang="{$lang/lang/text()}" version="{$c/@version}">
for $pf in $c/c:productFamily
let $x := concat("/productFamily[@id=", $pf/@id, "]")
return
<c:productFamily id="{$pf/@id}">
(:xpath index can not be applied within function:)
<c:label>{data($es/t:entry[@xpath eq concat($x, "/label")]/t:translation)}</c:label>
for $img in $pf/c:image
return $img
for $link in $pf/c:link
return $link
for $col in $pf/c:column
return
<c:column id="{$col/@id}">
<c:label>{data($es/t:entry[@xpath eq concat($x, "/column[@id=", $col/@id, "]/label")]/t:translation)}</c:label>
</c:column>
for $pcs in $pf/c:productCategories
return
<c:productCategories>
for $pc in $pcs/c:productCategory
return local:pc($pc, concat($x, "/productCategories/productCategory[@id=", $pc/@id, "]"))
</c:productCategories>
</c:productFamily>
for $p in $c/c:product
return local:p($p, concat("/product[@id=", $p/@id, "]"))
</c:productFamiles>
Message was edited by:
John LeeJohn
Am i missing a bit of the Xquery
In 11.1,0.6.0 I get
Elapsed: 00:00:00.04
SQL> set echo on
SQL> spool testcase.log
SQL> --
SQL> connect sys/ as sysdba
Enter password:
Connected.
SQL> set define on
SQL> set timing on
SQL> --
SQL> define USERNAME = HPECO
SQL> --
SQL> def PASSWORD = HPECO
SQL> --
SQL> def USER_TABLESPACE = USERS
SQL> --
SQL> def TEMP_TABLESPACE = TEMP
SQL> --
SQL> drop user &USERNAME cascade
2 /
old 1: drop user &USERNAME cascade
new 1: drop user HPECO cascade
User dropped.
Elapsed: 00:00:18.12
SQL> grant create any directory, drop any directory, connect, resource, alter session, create view to &USERNAME identified by &PASSW
ORD
2 /
old 1: grant create any directory, drop any directory, connect, resource, alter session, create view to &USERNAME identified by &P
ASSWORD
new 1: grant create any directory, drop any directory, connect, resource, alter session, create view to HPECO identified by HPECO
Grant succeeded.
Elapsed: 00:00:00.03
SQL> alter user &USERNAME default tablespace &USER_TABLESPACE temporary tablespace &TEMP_TABLESPACE
2 /
old 1: alter user &USERNAME default tablespace &USER_TABLESPACE temporary tablespace &TEMP_TABLESPACE
new 1: alter user HPECO default tablespace USERS temporary tablespace TEMP
User altered.
Elapsed: 00:00:00.00
SQL> connect &USERNAME/&PASSWORD
Connected.
SQL> --
SQL> alter session set events ='19027 trace name context forever, level 0x800'
2 /
Session altered.
Elapsed: 00:00:00.00
SQL> --
SQL> declare
2 xmlschema xmltype := XMLTYPE(
3 '<?xml version="1.0" encoding="UTF-8"?>
4 <!-- edited with XMLSpy v2008 (http://www.altova.com) by Jan-Erik Pedersen (HEWLETT PACKARD) -->
5 <schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb" xmlns:tns="http://ecoit.hp.com/ecg/rep
ository/types" targetNamespace="http://ecoit.hp.com/ecg/repository/types" elementFormDefault="qualified">
6 <complexType name="item">
7 <simpleContent>
8 <extension base="tns:content">
9 <attribute name="id" type="tns:id" use="required"/>
10 </extension>
11 </simpleContent>
12 </complexType>
13 <complexType name="items">
14 <sequence>
15 <element name="item" type="tns:item" maxOccurs="unbounded"/>
16 </sequence>
17 <attribute name="id" type="tns:id" use="required"/>
18 </complexType>
19 <complexType name="mappings">
20 <sequence>
21 <element name="item" type="tns:item" minOccurs="0" maxOccurs="unbounded"/>
22 <element name="items" type="tns:items" minOccurs="0" maxOccurs="unbounded"/>
23 </sequence>
24 </complexType>
25 <complexType name="local">
26 <sequence>
27 <element name="common">
28 <complexType>
29 <sequence>
30 <element name="texts" type="tns:mappings"/>
31 <element name="images" type="tns:mappings" minOccurs="0"/>
32 </sequence>
33 </complexType>
34 </element>
35 <element name="section" minOccurs="0" maxOccurs="unbounded">
36 <complexType>
37 <sequence>
38 <element name="texts" type="tns:mappings"/>
39 <element name="images" type="tns:mappings" minOccurs="0"/>
40 </sequence>
41 <attribute name="id" use="required">
42 <simpleType>
43 <restriction base="string">
44 <maxLength value="32"/>
45 </restriction>
46 </simpleType>
47 </attribute>
48 </complexType>
49 </element>
50 </sequence>
51 <attribute name="lang" use="required" xdb:SQLName="LANG">
52 <simpleType>
53 <restriction base="string">
54 <length value="5"/>
55 </restriction>
56 </simpleType>
57 </attribute>
58 </complexType>
59 <complexType name="link">
60 <sequence>
61 <element name="url" type="tns:url"/>
62 <element name="label" type="tns:label"/>
63 <element name="image" type="tns:image" minOccurs="0"/>
64 </sequence>
65 <attribute name="id" type="tns:id"/>
66 </complexType>
67 <complexType name="image">
68 <sequence>
69 <element name="url" type="string"/>
70 <element name="label" type="tns:label" minOccurs="0"/>
71 </sequence>
72 <attribute name="id" type="tns:id" use="optional"/>
73 </complexType>
74 <simpleType name="id">
75 <restriction base="string">
76 <maxLength value="100"/>
77 </restriction>
78 </simpleType>
79 <simpleType name="label">
80 <restriction base="string">
81 <maxLength value="200"/>
82 </restriction>
83 </simpleType>
84 <simpleType name="content">
85 <restriction base="string">
86 <maxLength value="4000"/>
87 </restriction>
88 </simpleType>
89 <simpleType name="url">
90 <restriction base="string">
91 <maxLength value="256"/>
92 </restriction>
93 </simpleType>
94 </schema>');
95 begin
96 dbms_xmlschema.registerSchema
97 (
98 schemaurl => 'http://ecoit.hp.com/ecg/repository/types.xsd'
99 ,schemadoc => xmlschema
100 ,local => TRUE
101 ,genBean => false
102 ,genTypes => TRUE
103 ,genTables => TRUE
104 ,ENABLEHIERARCHY => DBMS_XMLSCHEMA.ENABLE_HIERARCHY_NONE
105 );
106 end;
107 /
PL/SQL procedure successfully completed.
Elapsed: 00:00:01.35
SQL>
SQL> declare
2 xmlschema xmltype := XMLTYPE(
3 '<?xml version="1.0" encoding="UTF-8"?>
4 <!-- edited with XMLSpy v2005 rel. 3 U (http://www.altova.com) by () -->
5 <schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb" xmlns:tns="http://ecoit.hp.com/ecg/rep
ository/trados" targetNamespace="http://ecoit.hp.com/ecg/repository/trados" elementFormDefault="qualified">
6 <complexType name="entry">
7 <sequence>
8 <element name="base" type="string"/>
9 <element name="translation" maxOccurs="unbounded">
10 <complexType>
11 <simpleContent>
12 <extension base="string">
13 <attribute name="lang"/>
14 </extension>
15 </simpleContent>
16 </complexType>
17 </element>
18 </sequence>
19 <attribute name="xpath" type="string" use="required" xdb:SQLName="XPATH"/>
20 <attribute name="locator" type="string" use="required"/>
21 </complexType>
22 <simpleType name="languages">
23 <list itemType="string"/>
24 </simpleType>
25 <element name="trados" xdb:defaultTable="ECG_REP_TRADOS_TAB" xdb:tableProps="VARRAY XMLDATA.ENTRY STORE AS TABLE ECG_REP_TRA
DOS_ENTRY_TAB ((PRIMARY KEY (NESTED_TABLE_ID, SYS_NC_ARRAY_INDEX$)) ORGANIZATION INDEX OVERFLOW)">
26 <complexType>
27 <sequence>
28 <element name="entry" type="tns:entry" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="ENTRY"/>
29 </sequence>
30 <attribute name="cid" type="string"/>
31 <attribute name="path" type="string"/>
32 <attribute name="lang" type="string"/>
33 <attribute name="langs" type="tns:languages"/>
34 <attribute name="oldversion" type="string"/>
35 </complexType>
36 </element>
37 </schema>');
38 begin
39 dbms_xmlschema.registerSchema
40 (
41 schemaurl => 'http://ecoit.hp.com/ecg/repository/trados.xsd'
42 ,schemadoc => xmlschema
43 ,local => TRUE
44 ,genBean => false
45 ,genTypes => TRUE
46 ,genTables => TRUE
47 ,ENABLEHIERARCHY => DBMS_XMLSCHEMA.ENABLE_HIERARCHY_NONE
48 );
49 end;
50 /
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.68
SQL> declare
2 xmlschema xmltype := XMLTYPE(
3 '<?xml version="1.0" encoding="UTF-8"?>
4 <!-- edited with XMLSpy v2008 (http://www.altova.com) by Jan-Erik Pedersen (HEWLETT PACKARD) -->
5 <!--W3C Schema generated by XMLSpy v2007 (http://www.altova.com) by Scott Dismukes (Hewlett Packard)-->
6 <schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb" xmlns:tns="http://ecoit.hp.com/ecg/rep
ository/eco/category" xmlns:cns="http://ecoit.hp.com/ecg/repository/types" targetNamespace="http://ecoit.hp.com/ecg/repository/eco/c
ategory" elementFormDefault="qualified">
7 <import namespace="http://ecoit.hp.com/ecg/repository/types" schemaLocation="http://ecoit.hp.com/ecg/repository/types.xsd"/>
8 <complexType name="productFamilies">
9 <sequence>
10 <element name="productFamily" type="tns:productFamily" minOccurs="0" maxOccurs="unbounded"/>
11 <element name="product" type="tns:product" minOccurs="0" maxOccurs="unbounded"/>
12 </sequence>
13 <attribute name="lang" use="required" xdb:SQLName="LANG">
14 <simpleType>
15 <restriction base="string">
16 <length value="5"/>
17 </restriction>
18 </simpleType>
19 </attribute>
20 <attribute name="version" use="required" xdb:SQLName="VERSION">
21 <simpleType>
22 <restriction base="string">
23 <maxLength value="100"/>
24 </restriction>
25 </simpleType>
26 </attribute>
27 </complexType>
28 <complexType name="productCategory">
29 <sequence>
30 <element name="label" type="cns:label"/>
31 <element name="productCategory" type="tns:productCategory" minOccurs="0" maxOccurs="unbounded" xdb:defaultTa
ble="ECG_REP_ECO_CATALOG_PC_TAB"/>
32 <element name="product" type="tns:product" minOccurs="0" maxOccurs="unbounded"/>
33 </sequence>
34 <attribute name="id" type="cns:id" use="required"/>
35 </complexType>
36 <complexType name="productCategories">
37 <sequence>
38 <element name="productCategory" type="tns:productCategory" minOccurs="0" maxOccurs="unbounded"/>
39 </sequence>
40 </complexType>
41 <complexType name="column">
42 <sequence>
43 <element name="label" type="cns:label"/>
44 </sequence>
45 <attribute name="id" type="cns:id" use="required"/>
46 </complexType>
47 <complexType name="product">
48 <sequence>
49 <element name="label" type="cns:label"/>
50 <element name="column" type="tns:column" minOccurs="0" maxOccurs="unbounded"/>
51 </sequence>
52 <attribute name="id" type="cns:id" use="required"/>
53 </complexType>
54 <complexType name="productFamily">
55 <sequence>
56 <element name="label" type="cns:label"/>
57 <element name="image" type="cns:image" minOccurs="0" maxOccurs="unbounded"/>
58 <element name="link" type="cns:link" minOccurs="0" maxOccurs="unbounded"/>
59 <element name="column" type="tns:column" minOccurs="0" maxOccurs="unbounded"/>
60 <element name="productCategories" type="tns:productCategories" minOccurs="0" maxOccurs="unbounded"/>
61 </sequence>
62 <attribute name="id" type="cns:id" use="required"/>
63 </complexType>
64 <element name="productFamilies" type="tns:productFamilies" xdb:defaultTable="ECG_REP_ECO_CATALOG_TAB"/>
65 </schema>
66 ');
67 begin
68 dbms_xmlschema.registerSchema
69 (
70 schemaurl => 'http://ecoit.hp.com/ecg/repository/eco/category.xsd'
71 ,schemadoc => xmlschema
72 ,local => TRUE
73 ,genBean => false
74 ,genTypes => TRUE
75 ,genTables => TRUE
76 ,ENABLEHIERARCHY => DBMS_XMLSCHEMA.ENABLE_HIERARCHY_NONE
77 );
78 end;
79 /
PL/SQL procedure successfully completed.
Elapsed: 00:00:01.65
SQL> CREATE INDEX ECG_REP_ENTRY_XPATH_IDX ON ECG_REP_TRADOS_ENTRY_TAB ("XPATH", "NESTED_TABLE_ID")
2 /
Index created.
Elapsed: 00:00:00.01
SQL> set pages 0 lines 160
SQL> set long 10000
SQL> --
SQL> set autotrace on explain
SQL> --
SQL> xquery
2 xquery version "1.0";
3
4 declare namespace typ = "http://ecoit.hp.com/ecg/repository/types";
5 declare namespace c = "http://ecoit.hp.com/ecg/repository/eco/category";
6 declare namespace t = "http://ecoit.hp.com/ecg/repository/trados";
7
8 declare variable $c := $res/c:productFamilies;
9
10 declare function local:pc($pc as element(c:productCategory), $x as xs:string) as element() {
11 <c:productCategory id="{$pc/@id}">
12 {
13 <c:label>{data($es/t:entry[@xpath eq concat($x, "/label")]/t:translation)}</c:label>
14 ,
15 for $p in $pc/c:product
16 return local:p($p, concat($x, "/product/[@id=", $p/@id, "]"))
17 ,
18 for $pcc in $pc/c:productCategory
19 return local:pc($pcc, concat($x, "/productCategory[@id=", $pcc/@id, "]"))
20 }
21 </c:productCategory>
22 };
23
24 declare function local:p($p as element(c:product), $x as xs:string) as element() {
25 <c:product id="{$p/@id}">
26 {
27 <c:label>{string($es/t:entry[@xpath eq concat($x, "/label")]/t:translation)}</c:label>
28 ,
29 for $col in $p/c:column
30 return
31 <c:column id="{$col/@id}">
32 <c:label>
33 {
34 let $e := $es/t:entry[@xpath eq concat($x, "/column[@id=", $col/@id, "]/label")]
35 return
36 if(exists($e)) then string($e/t:translation)
37 else $col/c:label/text()
38 }
39 </c:label>
40 </c:column>
41 }
42 </c:product>
43 };
44
45 <c:productFamiles xsi:schemaLocation="http://ecoit.hp.com/ecg/repository/eco/category http://ecoit.hp.com/ecg/repository/eco/ca
tegory.xsd http://ecoit.hp.com/ecg/repository/types http://ecoit.hp.com/ecg/repository/types.xsd" lang="{$lang/lang/text()}" versi
on="{$c/@version}"> {
46 for $pf in $c/c:productFamily
47 let $x := concat("/productFamily[@id=", $pf/@id, "]")
48 return
49 <c:productFamily id="{$pf/@id}">
50 {
51 (:xpath index can not be applied within function:)
52 <c:label>{data($es/t:entry[@xpath eq concat($x, "/label")]/t:translation)}</c:label>
53 ,
54 for $img in $pf/c:image
55 return $img
56 ,
57 for $link in $pf/c:link
58 return $link
59 ,
60 for $col in $pf/c:column
61 return
62 <c:column id="{$col/@id}">
63 <c:label>{data($es/t:entry[@xpath eq concat($x, "/column[@id=", $col/@id, "]/label")]/t:translation)}</c:lab
el>
64 </c:column>
65 ,
66 for $pcs in $pf/c:productCategories
67 return
68 <c:productCategories>
69 {
70 for $pc in $pcs/c:productCategory
71 return local:pc($pc, concat($x, "/productCategories/productCategory[@id=", $pc/@id, "]"))
72 }
73 </c:productCategories>
74 }
75 </c:productFamily>
76 ,
77 for $p in $c/c:product
78 return local:p($p, concat("/product[@id=", $p/@id, "]")) } </c:productFamiles>
79 /
ERROR:
ORA-19228: XPST0008 - undeclared identifier: prefix 'res' local-name ''
Elapsed: 00:00:00.01
SQL> -
How can I define a name in Excel using Powershell?
I know how to reference existing names using the RANGE function but how can I create a new defined name using Powershell?
My specific case involves defining a name for a single cell with a workbook scope. Just as if you were to right-click a cell in Excel and choose Define Name.
The closest I've gotten is the NAMES object for the workbook but when I "gm" that all I see is a method for delete - nothing for adding.
$xlsx = "c:\Sample.xlsx"
$excel = new-object -comobject Excel.Application
$xlb = $excel.Workbooks.Open($xlsx)
$xlb.names | gmIn Excel a Range has a name. You can create a range and name it. "Names" is just a list of the names that have been defined.
So what is it that you are asking? If your spreadsheet has names this will find them for you.
Try this:
$xlb.names|select name
$r=$xlb.sheets.item(1).UsedRange
$r.Name='all'
# now do this again
$xlb.names|select name
So now you know everything about "names" or, as us old pros say "named ranges" like in the old west.
¯\_(ツ)_/¯ -
How toAccess User Defined Properties in NWDS
Hi to Experts,
i hope some one might faced this same problem, i want access user defined properties from KM to NWDS. For that Iu2019m using
EP 7.0 and NWDS Version: 7.0.11.
i have one Req.. to send value as a text or String to Km Property for store or display Km Folder. Like as we have name, date, created by, Description, Extra..... at the same place i want create my own Properties(using with Property metadata @ Global Service) and what ever Properties i created those ones i want use and store or send date to that particular property to display to end-user.
For above process am using WDJ
hope i can get this And thanQ in Advance.
vita- Create a user-defined OTD with one String field.
- Create an XSD-based OTD with repeating name and value fields of type String
- Create a "New Web Service" Java Collaboration whose input will be the first OTD, whose output will be the second OTD and whose operation will be named getProeprties, or some such
- Implement, in Java, the code necessary to read your properties, given the properties file name or path (given in the input OTD) and populate the name/valur pairs on the output OTD
- drag the operation of the collaboration onto the Business Process Editor canvas as an Activity
- Configure a Busienss Rule to set the input of the getProperties activity to the name/path of the properties file
- Configure a Business Rule(s) to use the name/value pairs returned from the ivocation of teh getProperties service
If you wish to take this one step further you could consider writing the java collaboration
a) generically so it can be reused from different business processes
b) to cache the properties on first read so each invocation after the first one simply returns the in-memory values instead of re-reading the proerties from disk
c) generically so it can read, cache and return different property sets depending on the properties file/path provided as input.
Bear in mind that IO from a java collaboration by means other than an eWay violates the EJB spec.. It works all the same.
Message was edited by:
mczapski -
Exporting Users by display name with Apostrophe
Looking to read in a list of users by display name, grab additional properties, format and export to a new list.
This issue I have is users with apostrophe's in their display name do not get parsed properly. I'm not sure how to leverage the ` in this case to escape that character
Thanks,
# Import AD Module
Import-Module ActiveDirectory
# Import CSV into variable $users
$users = Import-Csv -Path C:\Input.csv
# Loop through CSV and update users if they exist in CVS file
foreach ($user in $users) {
#Search in specified OU and Update existing attributes
Get-ADUser -Filter "DisplayName -eq '$($user.DisplayName)'" -searchscope Subtree -Properties "UserPrincipalName", "EmailAddress", "Department","msRTCSIP-PrimaryUserAddress" | Select-Object SamAccountName, UserPrinciPalName,
EmailAddress, Department, @{ n = 'msRTCSIP-PrimaryUserAddress'; e = { $_.'msRTCSIP-PrimaryUserAddress' -replace "sip:", "" } } | export-csv 'c:\output.csv' -NoClobber -AppendWhat I mean with this is, if I have a an input of file of AD users by display name and one of those contains an apostrophe, for example Joe S'mith.
The ' in the name does not get parsed properly and I wind up getting output similar to the following.
Get-ADUser : Error parsing query: 'DisplayName -eq 'Joe S'Mith'' Error Message: 'syntax error' at position: '25'.
At line:20 char:1
+ Get-ADUser -Filter "DisplayName -eq '$($user.DisplayName)'" -searchscope Subtree ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ParserError: (:) [Get-ADUser], ADFilterParsingException
+ FullyQualifiedErrorId : Error parsing query: 'DisplayName -eq 'Joe S'Mith'' Error Message: 'syntax error' at position: '25'.,Microsoft.ActiveDirectory.Management.
Commands.GetADUser -
How can i define database name in oracle ADI
Hai Friends,
I am facing a problem when i am going to define database name in oracle ADI there is a error u can enter minimum 6 char database name but my database name is PROD it is only 4 char long. how can i define can i will change the database name. Please suggest me.
If u have any query regarding oracle apps plse discuss with me.
Many thanks
Ghanshyam khetanDatabase is used internally by ADI and does not have any relationship to the name of your database.
Using ADI I am able to create a database with the following:
Name - My Wacky Database
GWYUID and FNDNAM as usual
Connect String - VIS
I'm able to signon and work successfully with that definition. The connect string is more important in this scenario as that tells the networking layer which database to actually talk to. As you can see here mine is only three characters. -
User defined spoolfile name at run time.
Hi all,
What I want to run in SQLPlus is
PROMPT Enter a spoolfile name
SPOOL &SpFile
SELECT * FROM Scott.emp
SPOOL OFF
When I run this as a script - i.e. @foo.sql, it works fine - i.e. it prompts the
user for a name for the SpFile. However, when I copy and paste the text into
SQLPlus and try and run it, it fails - it runs through the PROMPT/SPOOL bit
of the script with the message
apps@WHITE> SPOOL &SpFile;
Enter value for spfile:
not spooling currently
apps@WHITE>
and produces no output. If I put SPOOL '&SpFile'; it produces a file
called ''.lst - yes two single quotes.lst.
Can anyone explain what is going on and how I can get the
behaviours to match in the interactive and batch modes?
TIA.
Paul...SQL> spool off
SQL> spool &a
Enter value for a: c:\abc.txt
SQL> select count(*) from user_objects where
rownum<=1;Thanks for your interest, but you have slightly misunderstood me.
It will work fine if I have the spool &xyz in my_script.sql and then do
SQL> @my_script
but it does not* work if I copy and paste the contents of my_script.sql
at the SQL> prompt - i.e. all in one go.
This puzzles me, because it works fine if I copy and paste a multiline sql
statement which has an & in the SELECT part of the statement. I think it's
related to an issue I noticed recently whereby if you copy and paste an
SQL script into the buffer which contains non-SQL (i.e. column blah format a30),
for example, SQLPlus throws an error when you try to run what's in the
edit buffer by typing / and return.
This is why I started copying and pasting at the prompt in the first place,
but this is the first time I've tried to input a "non-SQL" variable name in
this fashion.
This is where I'm having the issue. Hope this is clearer now.
Paul... -
Connect Directory Server to retrieve User-defined ojbClass & attributes with ADSI
Has anyone ever had to connect to a iPlanet Directory Server 5.0 with ADSI?
I can retrieve the entries(user's information), but I can't add the
user-defined objClass and attributes to entries(user).
If you know, please kindly to give me some hints about this.
Many Thanks,
KatIt looks like you want to find out which groups the logged in user is a member of.
There are a couple of posts that will help you, first of all the post titled "JNDI, Active Directory and Group Memberships" at
http://forum.java.sun.com/thread.jspa?threadID=581444&tstart=150
In that post there is also a reference to the constructed attribute called tokenGroups. In the post http://forum.java.sun.com/thread.jspa?threadID=580113&tstart=60 you will find some sample code that illustrates the use of the tokenGroups attribute.
Also in your sample code, there is a slight mistake, you need to replace
String searchFilter = "(&(objectClass=group)(member=CN=mycompany//chong256))";with something like
String searchFilter = "(&(objectClass=group)(member=CN=chong256,cn=users,DC=mycompany,Dc=com))";the member attribute of a group always contains the full distinguished names of the members. -
User defined table/object with system form
Hi,
I added an extra tab on the invoice form. But I want to save the info in another user defined object.
The new fields are coupled on the new added dbdatasrource. But it seems like the new added datasource is as much restricted than other dbdatasources on a system form (even if I have added them).
I see no way to let this thing work though the datasources or registered object (because a registered object is not accessible with the DI API)
Does anyone has a suggestion to program this?
greetz
EddyHi Filipe,
I created a usertable of the document type and I created an UDO for it. And I added the fields on an extra tab on the invoice document. Therefore I have to add an extra dbdatasource to the invoice document and I binded the fields to the new added datasource.
When I started to work with the fields and the dbdatasource I noticed that I couldn't use functions like InsertRecord and setvalue, because it is restricted. And I didn't expect this because I added the datasource myself.
Greetz
Eddy -
For websphere 5.0 and up version, it's easy to register use defined interceptor
to ORB request broker list. For example, in server.xml of websphere server configuration
file,
<services xmi:type="orb:ObjectRequestBroker" .. >
<interceptors xmi:id="Interceptor_1" name="com.ibm.ejs.ras.RasContextSupport"/>
so that is convienent to enforce the security check on underline request flows.
Is there some similiar mechanism to achieve this in WLS 8.1? Or I have to hack
into wlclient.jar to do this?Looking forward to your reply.
Andy Piper <[email protected]> wrote:
"Shuang Yu" <[email protected]> writes:
For websphere 5.0 and up version, it's easy to register use definedinterceptor
to ORB request broker list. For example, in server.xml of websphereserver configuration
file,
<services xmi:type="orb:ObjectRequestBroker" .. >
<interceptors xmi:id="Interceptor_1" name="com.ibm.ejs.ras.RasContextSupport"/>
so that is convienent to enforce the security check on underline requestflows.
Is there some similiar mechanism to achieve this in WLS 8.1? Or Ihave to hack
into wlclient.jar to do this?You have to do this programatically if you use wlclient.jar. There is
no way to do it in a server.
andy
Maybe you are looking for
-
Have FIOS Quantum router up and running - but now can't connect to Tivo or my Aria scale -help!
Getting my router set up was quick and easy, but now I have a problem that has me stumped. I am not a router expert, so need help. Neither my Tivos nor my Aria scale can connect to my router. Tivo sent me this page: http://support.tivo.com/app/answer
-
How to display image using from open dialog box?
I've developed a program that can display image by named the file that I want to display in my program. But how can I display an image from an Open Dialog Box? I attch here with my program. import java.io.*; import java.awt.*; import java.awt.event.*
-
Parse XML from std::wstring with XmlLite error: 0xc00cee04
Hello, I am trying to parse the following XML (std::wstring) <message locale="en" log="true" data="'كيف حالك الآن؟">How do you do today?</message> but I get an 0xc00cee04 while reading the node type. Most probably I am not passing the string content
-
How can I rescue prefs, bookmarks from "previous systems" archive?
Upgrading to 10.5 caused my ibook to no longer boot. I had to archive and reinstall 10.4, which took all my preferences, browser bookmarks, etc. and shoved them in a "previous systems" archive. I then managed to finally upgrade to 10.5 and want my bo
-
How to regenerate COSS table for work order operation planning hours
Hello, I am looking for a SAP report or a custom solution to update the table COSS table from work order operation hours. Several work orders incorrectly updated in the table COSS with result the cost is incorrect. For example: In the work order oper