problem in creating the xml section group
I created the Group xml section with a few sections defined in the field. Now my attributes are repeated with root different nodes.so I put braces for differentiation and created the context index.Drop index abc_indexes_idx;
Start
ctx_ddl.remove_section ('xyz_xml_group', 'abLName');
ctx_ddl.remove_section ('xyz_xml_group', 'abFName');
ctx_ddl.remove_section ('xyz_xml_group', 'cdLName');
ctx_ddl.remove_section ('xyz_xml_group', 'cdFName');
ctx_ddl.remove_section ('xyz_xml_group', 'efLName');
ctx_ddl.remove_section ('xyz_xml_group', 'efFName');
ctx_ddl.remove_section ('xyz_xml_group', 'ghLName');
ctx_ddl.remove_section ('xyz_xml_group', 'ghFName');
end;
Start
ctx_ddl.drop_section_group ('xyz_xml_group');
end;
Start
ctx_ddl.drop_preference ('xyz_wildcard_pref1');
end;
Start
ctx_ddl.drop_preference ('xyz_lexer_pref1');
end;
Start
ctx_ddl.drop_preference ('STEM_FUZZY_PREF');
end;
Start
ctx_ddl.create_section_group ('xyz_xml_group', 'XML_SECTION_GROUP');
ctx_ddl.add_field_section ('xyz_xml_group', 'abLName','IncidentSubject(PersonGivenName');)
ctx_ddl.add_field_section ('xyz_xml_group', 'abFName','IncidentSubject(PersonSurName');)
ctx_ddl.add_field_section ('xyz_xml_group', 'cdLName','ActivityVictim(PersonGivenName');)
ctx_ddl.add_field_section ('xyz_xml_group', 'cdFName','ActivityVictim(PersonSurName');)
ctx_ddl.add_field_section ('xyz_xml_group', 'efLName','ActivityComplainantPerson(PersonGivenName');)
ctx_ddl.add_field_section ('xyz_xml_group', 'efFName','ActivityComplainantPerson(PersonSurName');)
ctx_ddl.add_field_section ('xyz_xml_group', 'ghLName','ActivityWitness(PersonGivenName');)
ctx_ddl.add_field_section ('xyz_xml_group', 'ghFName','ActivityWitness(PersonSurName');)
end;
Start
ctx_ddl.create_preference ('STEM_FUZZY_PREF', 'BASIC_WORDLIST');
ctx_ddl.set_attribute ('STEM_FUZZY_PREF', 'SUBSTRING_INDEX', 'TRUE');
end;
Start
ctx_ddl.set_attribute ('STEM_FUZZY_PREF', 'PREFIX_INDEX', 'YES');
end;
Start
ctx_ddl.create_preference ('njdex_lexer_pref1', 'BASIC_LEXER');
ctx_ddl.set_attribute('STEM_FUZZY_PREF','WILDCARD_MAXTERMS','15000');
end;
Drop index xyz_indexes_idx
create index xyz_indexes_idx on xyz_INDEXES (abc column) indextype is ctxsys.context settings
("datastore ctxsys.direct_datastore wordlist STEM_FUZZY_PREF FILTER ctxsys.null_filter lexer xyz_lexer_pref1
Sync (on commit) GROUP of SECTIONS xyz_xml_group MEMORY 500 M ");"
My XML document is stored in a column of abc whichi and it is of type xmltype
<? XML version = "1.0" encoding = "utf-8"? >
< ab: IncidentReportGroup xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xmlns:j = "http://www.it.ojp.gov/jxdm/3.0.3" xmlns:ext = "http://xml.abc.com/jxdm/3.0.3/extension" xmlns:ab = "http://xml.abc.com/jxdm/3.0.3" >
< ab: IncidentReport >
< ext:IncidentSubject >
< j: PersonName >
< j: PersonGivenName > CBA < / j: PersonGivenName >
< j: PersonMiddleName / >
XYZ < j: PersonSurName > < / j: PersonSurName >
< j: PersonSuffixName / >
< j: PersonFullName > abc, xyz < / j: PersonFullName >
< / j: PersonName >
< / ext:IncidentSubject >
< ext:ActivityComplainantPerson >
< j: PersonName >
< j: PersonGivenName > CBA < / j: PersonGivenName >
< j: PersonMiddleName / >
XYZ < j: PersonSurName > < / j: PersonSurName >
< j: PersonSuffixName / >
< j: PersonFullName > abc, xyz < / j: PersonFullName >
< / j: PersonName >
< / ext:ActivityComplainantPerson >
< ext:ActivityWitness >
< j: PersonName >
< j: PersonGivenName > CBA < / j: PersonGivenName >
< j: PersonMiddleName / >
XYZ < j: PersonSurName > < / j: PersonSurName >
< j: PersonSuffixName / >
< j: PersonFullName > abc, xyz < / j: PersonFullName >
< / j: PersonName >
< / ext:ActivityWitness >
< ext:ActivityVictim >
< j: PersonName >
< j: PersonGivenName > CBA < / j: PersonGivenName >
< j: PersonMiddleName / >
XYZ < j: PersonSurName > < / j: PersonSurName >
< j: PersonSuffixName / >
< j: PersonFullName > abc, xyz < / j: PersonFullName >
< / j: PersonName >
< / ext:ActivityVictim >
< ext:ActivityWitness >
< / ab: IncidentReport >
< / ab: IncidentReportGroup >
now when I try to run the query
Select * from xyz_indexes where contains (xyzcolumn,'(LORI WITHIN abLName))
(& ("BELAND" WITHIN abFName)') > 0
He doesn't do anything.
Can someone provide me with assistance in this regard.
I think that what you probably need is xml_path_group and inpath, instead of xml_section_group and breast. Please see the demo below.
SCOTT@orcl_11g> SET DEFINE OFF
SCOTT@orcl_11g> begin
2 ctx_ddl.drop_section_group('xyz_xml_group');
3 end;
4 /
PL/SQL procedure successfully completed.
SCOTT@orcl_11g> begin
2 ctx_ddl.drop_preference('xyz_lexer_pref1');
3 end;
4 /
PL/SQL procedure successfully completed.
SCOTT@orcl_11g> begin
2 ctx_ddl.drop_preference('STEM_FUZZY_PREF');
3 end;
4 /
PL/SQL procedure successfully completed.
SCOTT@orcl_11g> begin
2 ctx_ddl.create_section_group('xyz_xml_group','PATH_SECTION_GROUP');
3 end;
4 /
PL/SQL procedure successfully completed.
SCOTT@orcl_11g> begin
2 ctx_ddl.create_preference('STEM_FUZZY_PREF','BASIC_WORDLIST');
3 ctx_ddl.set_attribute('STEM_FUZZY_PREF','SUBSTRING_INDEX','TRUE');
4 end;
5 /
PL/SQL procedure successfully completed.
SCOTT@orcl_11g> begin
2 ctx_ddl.set_attribute('STEM_FUZZY_PREF','PREFIX_INDEX','YES');
3 end;
4 /
PL/SQL procedure successfully completed.
SCOTT@orcl_11g> begin
2 ctx_ddl.create_preference('xyz_lexer_pref1','BASIC_LEXER');
3 ctx_ddl.set_attribute('STEM_FUZZY_PREF','WILDCARD_MAXTERMS','15000');
4 end;
5 /
PL/SQL procedure successfully completed.
SCOTT@orcl_11g> drop index xyz_indexes_idx
2 /
Index dropped.
SCOTT@orcl_11g> DROP TABLE xyz_indexes
2 /
Table dropped.
SCOTT@orcl_11g> CREATE TABLE xyz_indexes
2 (xyzcolumn XMLTYPE)
3 /
Table created.
SCOTT@orcl_11g> INSERT INTO xyz_indexes VALUES
2 (XMLTYPE (
3 '
4
5
6
7
8 LORI
9
10 "BELAND"
11
12 abc, xyz
13
14
15
16
17 abc
18
19 xyz
20
21 abc, xyz
22
23
24
25
26 abc
27
28 xyz
29
30 abc, xyz
31
32
33
34
35 abc
36
37 xyz
38
39 abc, xyz
40
41
42
43 '
44 ))
45 /
1 row created.
SCOTT@orcl_11g> create index xyz_indexes_idx on xyz_INDEXES(xyzcolumn) indextype is ctxsys.context parameters
2 ('datastore ctxsys.direct_datastore wordlist STEM_FUZZY_PREF FILTER ctxsys.null_filter lexer xyz_lexer_pref1
3 sync(on commit)SECTION GROUP xyz_xml_group MEMORY 500M ')
4 /
Index created.
SCOTT@orcl_11g> select * from xyz_indexes
2 where contains
3 (xyzcolumn,
4 'LORI INPATH (//ext:IncidentSubject/j:PersonName/j:PersonGivenName) &
5 "BELAND" INPATH (//ext:IncidentSubject/j:PersonName/j:PersonSurName)') > 0
6 /
XYZCOLUMN
--------------------------------------------------------------------------------
LORI
"BELAND"
abc, xyz
abc
xyz
abc, xyz
abc
xyz
abc, xyz
abc
xyz
abc, xyz
SCOTT@orcl_11g>
Tags: Database
Similar Questions
-
The attached VI works when I run it initially to create the XML file, but when I change the data and run once the XML file is created, it is not updated with new data. What I am doing wrong?
Thank you.
It sounds like the logic that has been written in VI
Internal decision of true / false:
(file exists: false) write in the file XML, unflatten for display
(file exists: true) read the XML file, unflatten for display
At no time when the file exists (true case) is the XML file updated...
-
Hello
I have the problem to create the account in Administration-> Admin-> User Admin Applets. According to the documents I have to add UserAccounts = true in the General Configuration link in the pane < servername > options. But after configuring in Server Admin and server restart, I couldn't have the option ... Predefined accounts available under the Security of the user Admin applet page link. So I could not add the new account.
Let me know how I can configure the same and add the new account.
Thank you.Hello
The configuration you need to add UseAccounts = true and not UserAccounts = true. Change in the config.cfg file, restart the content server and then create accounts.
Thank you
Srinath -
CTX_DOC. MARKUP in the html section groups
Hi all
Running Oracle 9.2.0.8 on AIX...
I created full-text indexes Oracle by using the following parameters:
Now, my question is... I want to stress the terms of the query, using the CTX_DOC.markup procedure. It comes, since I was a user_data_store that combines 3 columns of data in a CLOB with sections HTML predefined, what is the best way to extract individual sections for display?ctx_ddl.create_preference( 'crt_user_datastore_en', 'user_datastore' ); ctx_ddl.set_attribute( 'crt_user_datastore_en', 'procedure', 'ctxsys_multi_index_en_prc' ); ctx_ddl.set_attribute('crt_user_datastore_en', 'output_type', 'CLOB'); ctx_ddl.create_preference( 'crt_user_datastore_fr', 'user_datastore' ); ctx_ddl.set_attribute( 'crt_user_datastore_fr', 'procedure', 'ctxsys_multi_index_fr_prc' ); ctx_ddl.set_attribute('crt_user_datastore_fr', 'output_type', 'CLOB'); CTX_DDL.create_preference('CRT_PREF_EN','BASIC_WORDLIST'); ctx_ddl.set_attribute('CRT_PREF_EN','FUZZY_MATCH','ENGLISH'); ctx_ddl.set_attribute('CRT_PREF_EN','STEMMER','ENGLISH'); ctx_ddl.set_attribute('CRT_PREF_EN','SUBSTRING_INDEX','TRUE'); CTX_DDL.create_preference('CRT_PREF_FR','BASIC_WORDLIST'); ctx_ddl.set_attribute('CRT_PREF_FR','FUZZY_MATCH','FRENCH'); ctx_ddl.set_attribute('CRT_PREF_FR','STEMMER','FRENCH'); ctx_ddl.set_attribute('CRT_PREF_FR','SUBSTRING_INDEX','TRUE'); CTX_DDL.create_section_group('CRT_HTML_SECTION','HTML_SECTION_GROUP'); CTX_DDL.add_zone_section('CRT_HTML_SECTION', 'title', 'TITLE'); CTX_DDL.add_zone_section('CRT_HTML_SECTION', 'body', 'BODY'); ctx_ddl.create_preference('CRT_LEXER_EN', 'BASIC_LEXER'); ctx_ddl.set_attribute('CRT_LEXER_EN', 'skipjoins', '-'); ctx_ddl.set_attribute ( 'CRT_LEXER_EN', 'index_text', 'YES'); ctx_ddl.set_attribute ( 'CRT_LEXER_EN', 'base_letter', 'YES'); ctx_ddl.set_attribute ( 'CRT_LEXER_EN', 'index_stems', 'ENGLISH'); ctx_ddl.set_attribute ( 'CRT_LEXER_EN', 'index_themes', 'YES'); ctx_ddl.set_attribute ( 'CRT_LEXER_EN', 'theme_language', 'ENGLISH'); ctx_ddl.create_preference('CRT_LEXER_FR', 'BASIC_LEXER'); ctx_ddl.set_attribute('CRT_LEXER_FR', 'skipjoins', '-'); ctx_ddl.set_attribute ( 'CRT_LEXER_FR', 'index_text', 'YES'); ctx_ddl.set_attribute ( 'CRT_LEXER_FR', 'base_letter', 'YES'); ctx_ddl.set_attribute ( 'CRT_LEXER_FR', 'index_stems', 'FRENCH'); ctx_ddl.set_attribute ( 'CRT_LEXER_FR', 'index_themes', 'YES'); ctx_ddl.set_attribute ( 'CRT_LEXER_FR', 'theme_language', 'FRENCH'); end; CREATE INDEX MULTI_CONTENT_EN_IDX ON CONTENTS (top_html_content_en) INDEXTYPE IS CTXSYS.CONTEXT parameters ('filter ctxsys.null_filter DATASTORE crt_user_datastore_en LEXER CRT_LEXER_EN wordlist CRT_PREF_EN section group CRT_HTML_SECTION'); CREATE INDEX MULTI_CONTENT_FR_IDX ON CONTENTS (top_html_content_fr) INDEXTYPE IS CTXSYS.CONTEXT parameters ('filter ctxsys.null_filter DATASTORE crt_user_datastore_fr LEXER CRT_LEXER_fr wordlist CRT_PREF_fr section group CRT_HTML_SECTION');
The reason for my dilemma is that the front-end .NET application assembles the page content into pieces, by injecting a content server here and there and I can just refer all marked content pieces as a CLOB.
is this just a bad design from me approach? Is the only solution, given the implementation a CLOB, using a combination of instr and substr on the CLOB to extract the part I need?
Another solution that has just occurred to me... instead of creating groups of sections html in my user_data_store procedure, I could inject more XML, then use a xml_section_group, so I can take advantage of some features of XML on the clob which are perhaps more effective than simply instr/substr combination?
Thanks for advice/ideas...
Edited by: pl_sequel may 4, 2010 15:34If you spend at least 10g, you can use ctx_doc.snippet. In 9i, you can use ctx_doc.highlight to get the offsets and lengths, instead of using substr and InStr. You can use it to write your own code snippet function. Please see the example below.
SCOTT@orcl_11g> -- test environment: SCOTT@orcl_11g> create table contents 2 (id number primary key, 3 title varchar2 (15), 4 body clob, 5 top_html_content_en varchar2 (1)) 6 / Table created. SCOTT@orcl_11g> insert all 2 into contents values (1, 'title1 test', 'word3 word2 body1 test word1 word2 word3', null) 3 into contents values (2, 'title2 tests', 'word3 word2 word1 body2 tested word1 word2 word3', null) 4 into contents values (3, 'title3 test', 'word3 word2 word1 body3 testing word1 word2 word3', null) 5 select * from dual 6 / 3 rows created. SCOTT@orcl_11g> create or replace procedure ctxsys_multi_index_en_prc 2 (p_rowid in rowid, 3 p_clob in out nocopy clob) 4 as 5 begin 6 for r in 7 (select * from contents 8 where rowid = p_rowid) 9 loop 10 dbms_lob.writeappend (p_clob, 4, '
'); 11 dbms_lob.writeappend (p_clob, length (r.id), r.id); 12 dbms_lob.writeappend (p_clob, 5, ' '); 13 dbms_lob.writeappend (p_clob, 7, ''); 14 dbms_lob.writeappend (p_clob, length (r.title), r.title); 15 dbms_lob.writeappend (p_clob, 8, ' '); 16 dbms_lob.writeappend (p_clob, 6, ''); 17 dbms_lob.append (p_clob, r.body); 18 dbms_lob.writeappend (p_clob, 7, ''); 19 end loop; 20 end ctxsys_multi_index_en_prc; 21 / Procedure created. SCOTT@orcl_11g> show errors No errors. SCOTT@orcl_11g> begin 2 ctx_ddl.create_preference( 'crt_user_datastore_en', 'user_datastore' ); 3 ctx_ddl.set_attribute( 'crt_user_datastore_en', 'procedure', 'ctxsys_multi_index_en_prc' ); 4 ctx_ddl.set_attribute('crt_user_datastore_en', 'output_type', 'CLOB'); 5 6 CTX_DDL.create_preference('CRT_PREF_EN','BASIC_WORDLIST'); 7 ctx_ddl.set_attribute('CRT_PREF_EN','FUZZY_MATCH','ENGLISH'); 8 ctx_ddl.set_attribute('CRT_PREF_EN','STEMMER','ENGLISH'); 9 ctx_ddl.set_attribute('CRT_PREF_EN','SUBSTRING_INDEX','TRUE'); 10 11 CTX_DDL.create_section_group('CRT_HTML_SECTION','HTML_SECTION_GROUP'); 12 CTX_DDL.add_zone_section('CRT_HTML_SECTION', 'title', 'TITLE'); 13 CTX_DDL.add_zone_section('CRT_HTML_SECTION', 'body', 'BODY'); 14 15 ctx_ddl.create_preference('CRT_LEXER_EN', 'BASIC_LEXER'); 16 ctx_ddl.set_attribute('CRT_LEXER_EN', 'skipjoins', '-'); 17 ctx_ddl.set_attribute ( 'CRT_LEXER_EN', 'index_text', 'YES'); 18 ctx_ddl.set_attribute ( 'CRT_LEXER_EN', 'base_letter', 'YES'); 19 ctx_ddl.set_attribute ( 'CRT_LEXER_EN', 'index_stems', 'ENGLISH'); 20 ctx_ddl.set_attribute ( 'CRT_LEXER_EN', 'index_themes', 'YES'); 21 ctx_ddl.set_attribute ( 'CRT_LEXER_EN', 'theme_language', 'ENGLISH'); 22 end; 23 / PL/SQL procedure successfully completed. SCOTT@orcl_11g> CREATE INDEX MULTI_CONTENT_EN_IDX ON CONTENTS 2 (top_html_content_en) 3 INDEXTYPE IS CTXSYS.CONTEXT 4 parameters 5 ('filter ctxsys.null_filter 6 DATASTORE crt_user_datastore_en 7 LEXER CRT_LEXER_EN 8 wordlist CRT_PREF_EN 9 section group CRT_HTML_SECTION') 10 / Index created. SCOTT@orcl_11g> -- 10g method: SCOTT@orcl_11g> begin 2 ctx_doc.set_key_type ('PRIMARY_KEY'); 3 end; 4 / PL/SQL procedure successfully completed. SCOTT@orcl_11g> select id, 2 ctx_doc.snippet 3 ('MULTI_CONTENT_EN_IDX', 4 id, 5 '$test') 6 keywords_in_context 7 from contents 8 where contains (top_html_content_en, '$test') > 0 9 / ID KEYWORDS_IN_CONTEXT ---------- --------------------------------------------- 1 1 title1 test word3 word2 body1 test word1 word2 word3 2 2 title2 tests word3 word2 word1 body2 tested word1 word2 word3 3 3 title3 test word3 word2 word1 body3 testing word1 word2 word3 SCOTT@orcl_11g> -- 9i method: SCOTT@orcl_11g> create or replace function my_snippet 2 (p_index_name in varchar2, 3 p_primary_key in number, 4 p_query in varchar2, 5 p_context in number default 0) 6 return varchar2 7 as 8 v_document clob; 9 v_hightab ctx_doc.highlight_tab; 10 v_start varchar2 (2000); 11 v_end varchar2 (2000); 12 v_keyword varchar2 (2000); 13 v_kwic varchar2 (2000); 14 begin 15 ctx_doc.set_key_type ('PRIMARY_KEY'); 16 ctx_doc.filter ('MULTI_CONTENT_EN_IDX', p_primary_key, v_document, TRUE); 17 ctx_doc.highlight ('MULTI_CONTENT_EN_IDX', p_primary_key, p_query, v_hightab, TRUE); 18 for i in 1 .. v_hightab.count loop 19 if p_context > 0 then 20 v_start := substr (v_document, 1, v_hightab(i).offset - 1); 21 if i > 1 then 22 v_start := substr (v_start, v_hightab(i-1).offset + v_hightab(i-1).length); 23 end if; 24 v_start := ' ' || rtrim (v_start); 25 v_start := substr (v_start, instr (v_start, ' ', -1, p_context)); 26 if i < v_hightab.count then 27 v_end := substr (v_document, 1, v_hightab(i+1).offset - 1); 28 else 29 v_end := v_document; 30 end if; 31 v_end := substr (v_end, v_hightab(i).offset + v_hightab(i).length); 32 v_end := ltrim (v_end) || ' '; 33 v_end := substr (v_end, 1, instr (v_end, ' ', 1, p_context) - 1); 34 end if; 35 v_keyword := ' ' || substr (v_document, v_hightab(i).offset, v_hightab(i).length) || ' '; 36 v_kwic := v_kwic || v_start || v_keyword || v_end || ' ... '; 37 end loop; 38 return substr (rtrim (v_kwic, '...'), 1, 2000); 39 end my_snippet; 40 / Function created. SCOTT@orcl_11g> show errors No errors. SCOTT@orcl_11g> variable words number SCOTT@orcl_11g> exec :words := 0 PL/SQL procedure successfully completed. SCOTT@orcl_11g> column keywords_in_context format a45 word_wrapped SCOTT@orcl_11g> select id, 2 my_snippet 3 ('MULTI_CONTENT_EN_IDX', 4 id, 5 '$test', 6 :words) 7 keywords_in_context 8 from contents 9 where contains (top_html_content_en, '$test') > 0 10 / ID KEYWORDS_IN_CONTEXT ---------- --------------------------------------------- 1 test ... test ... 2 tests ... tested ... 3 test ... testing ... SCOTT@orcl_11g> exec :words := 1 PL/SQL procedure successfully completed. SCOTT@orcl_11g> / ID KEYWORDS_IN_CONTEXT ---------- --------------------------------------------- 1 title1 test word3 ... body1 test word1 ... 2 title2 tests word3 ... body2 tested word1 ... 3 title3 test word3 ... body3 testing word1 ... SCOTT@orcl_11g> exec :words := 2 PL/SQL procedure successfully completed. SCOTT@orcl_11g> / ID KEYWORDS_IN_CONTEXT ---------- --------------------------------------------- 1 1 title1 test word3 word2 ... word2 body1 test word1 word2 ... 2 2 title2 tests word3 word2 ... word1 body2 tested word1 word2 ... 3 3 title3 test word3 word2 ... word1 body3 testing word1 word2 ... SCOTT@orcl_11g> exec :words := 3 PL/SQL procedure successfully completed. SCOTT@orcl_11g> / ID KEYWORDS_IN_CONTEXT ---------- --------------------------------------------- 1 1 title1 test word3 word2 body1 ... word3 word2 body1 test word1 word2 word3 ... 2 2 title2 tests word3 word2 word1 ... word2 word1 body2 tested word1 word2 word3 ... 3 3 title3 test word3 word2 word1 ... word2 word1 body3 testing word1 word2 word3 ... SCOTT@orcl_11g> -
Workflow to create the prefix of Group/business machine
I'm working with vRA 6.2.1 and vRO 6.0.1 (as external device) creating a unique workflow that I can use to replicate my test environment in which concerns the creation of tenant and configuration. So far, I have a global workflow consisting of several workflow of the vRA plugin that will create the tenant, adding banks of identities and administrators and then create the Group prefixes and fabric machine, this set works very well but I am stuck at the next step which is to create my group of companies. I want the workflow the prefix machine created in the previous step as an input in the phase of establishment of business groups, the idea is there is no administrator aside from entry to start the global workflow, but out of the box two workflows have different formats for the id attribute of machineprefix (vCACEntity and vCACCAFE (: MachinePrefix), and I can't find a way to convert that properly passes the value of the id for the Group of companies to create workflow.
The search of the web and this forum has provided two different threads around using a task scriptable between the prefix machine create and create workflows group, I have tried both and doesn't seem to work for me. The first I tried was a simple one line saying createdMachinePrefix (vCAC:Entity) = convertedmachinePrefix(vCACCAFE:MachinePrefix) and the other was a script based on the vCACCAFEEntitiesFinder (
), but these two cause the error TypeError don't call method getId null (the dynamic Script Module name: createBusinessGroup #3).The problem is obviously that the id of machineprefix is not correctly converted/passed to the workflow to create business group, because if I put that to use an entry for the prefix id and type manually in when I run the global workflow, it works very well, so the script task isn't generating errors, but is not giving me the result I need to be. Also when I look at the variables tab that runs the overall workflow, I can see the MachinePrefix variable in the format of vCAC:Entity as a guid, but shows vCACCAFE:MAchinePrefix that is not I think brings up that I found her correct the cause of the problem.
Can someone help me find the solution, I'm sure it's just me missing something obvious, but I am new to Orchestrator and learning as I go along.
What I do is after the element to create a MachinePrefix, add a script with the following task:
IN:
machinePrefixName: string (you should be able to provide it since you'd need to create the MachinePrefix)
DEPARTURES:
machinePrefix: vCACCAFE:MachinePrefix
Scripts:
var vCACMachinePrefixes = Server.findAllForType ("vCACCAFE:MachinePrefix");
for each {(var vCACMachinePrefix in vCACMachinePrefixes)
If (machinePrefixName == vCACMachinePrefix.name) {}
machinePrefix = vCACMachinePrefix
break;
}
}
You can use the machinePrefix to vCACCAFE:MachinePrefix to create a course of Business Group.Of this all assumes that you are able to make the names of unique MachinePrefix. Otherwise, it seems that MachinePrefix has an id property, you can use instead of the name when searching for the right one...
-
Create the ASM disk groups instance is not found
HelloI just started to learn Oracle, very inexperienced database in Oracle.
I have a problem to create an ASM instance. My environment is SUSe Linux Enterprise 11 64-bit, I am creating an instance ASM 11.2.0
1. when I create ASM instance, I couldn't find ASM disks, if an ASM Instance could not be created.
2. when I search on the internet on the creation of the ASM disk, it seems that I need to connect to the instance ASM as ASMSYS, but I have not an ASM instance is runing so ASM DISK groups has not can be created.
I feel that I'm at an impasse.
Could someone help me?
Thank you.
You may need to configure the udev subsystem to set permissions of the device and configure the parameter diskstring ASM or install Linux ASMLib, that supports both and more. In any case, you will need to provide more details and probably do some research to learn more about the basic concepts. To install Oracle ASM is not click and play.
-
Referencing of the values of the parent in the XML editor group
Hello
I have a report of EBS, who is out of the XML as follows:
But in my model, I actually want to 'flatten' the above so I can push in excel in the following format:<xmldata> <group1> <value1>Hello World</value1> <group2> <value2>Oracle</value2> <value3>Stuff</value3> <group2> </group1> <group1> <value1>Hello World</value1> <group2> <value2>Publisher</value2> <value3>More Stuff</value3> <group2> </group1> </xmldata>
The problem I have is that I have one for each course group2 to print these values, but then the values in Group 1 are not visible. So I just get white instead of value1. value2 and value3 work fine however.Hello World | Oracle | Stuff Hello World | Publisher | More Stuff
I tried things like
but it does not work - I have to do reference what parent level somehow, I'm looking at? I am using fields by the way, just used above for example.<?value1?><?value2?><?value3?>
Any pointers in the right direction would be really apreciated.
Concerning
JohnUse this:
.. alue1?=""?>
Thank you
Bipuser -
Hi everyone ,.
I use Eclipse IDE 3.6 Helios and plug in BB "BlackBerry_JDE_PluginFull_1.1.2.201004161203 - 16.exe" to develop the application but when I create or import demonstration projects, I found a red error the file 'BlackBerry_App_Descriptor.xml '. So, I look down 'Tab' and he writes...
«InvalidRegex: value of mires "([a-zA-Z_]{1,63}[\s-a-zA-Z_0-9.]» 0.63 {} [---]?) *' is not a valid regular expression. The error reported was: "-' is an invalid character range. Write '--'. "" in column 19'. "."
When should I fix this? I am beginner in BB app development.
THX,
MAZ
THX rcmaniac,
I have create one project BB. But now I change Eclipse 3.4 and BB JDE plugin is 'BlackBerry_JDE_PluginFull_1.0.0.67.exe' (an older version which is only supported for the 3.4, I think that ). So I can create project BB without error! (because no "BlackBerry_App_Descriptor.xml" don't file when I create the project in this version)
THX,
MAZ
-
Problem to create the new field of 12 c
Hi guys!
I Don t know how to solve this problem to create a domain using WLS12c about.
the contents of the log file is below (the part of the error).
2015-02-23 15:17:09, 567 [86] INFO oracle.security.jps.util.JpsUtil - JpsUtil: isAuditDisabled set to true
2015-02-23 15:17:16, 286 [86] INFO org.hibernate.validator.util.Version - Hibernate Validator 12.1.3.0.0
2015-02-23 15:17:16, 297 [86] INFO org.hibernate.validator.engine.resolver.DefaultTraversableResolver - instantiate an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
2015-02-23 15:17:18, 523 [86] INFO oracle.security.jps.internal.config.ldap.LdapCredStoreServiceConfigurator - Credential store schema upgrade is not required. Version store schema 12.1.3.0.0 is compatible with the version of schema of seed 12.1.3.0.0
2015-02-23 15:17:20, 188 [86] INFO oracle.security.jps.internal.config.ldap.LdapPolicyStoreServiceConfigurator - policy schema upgrade is not required. Version store schema 12.1.3.0.0 is compatible with the version of schema of seed 12.1.3.0.0
2015-02-23 15:17:20, 977 oracle.security.opss.tools.lifecycle.OpssDomainConfigImpl SEVERE [86] - error when the security configuration of the store DB. Oracle.security.opss.tools.lifecycle.LifecycleException exception: JPS-04022: cannot create policy request context 'opssSecurityStore'.
2015-02-23 15:17:20, 978 oracle.security.opss.tools.lifecycle.cie.OpssSecurityConfiguration SEVERE [86] - error when processing initializeSubsystem. Oracle.security.opss.tools.lifecycle.LifecycleException exception: error in the store DB security configuration. Exception oracle.security.opss.tools.lifecycle.LifecycleException: JPS-04022: cannot create application context 'opssSecurityStore' policy.
2015-02-23 15:17:20, 979 SEVERE [86] com.oracle.cie.domain.DomainGenerator - domain creation failed!
Location of domain: / u01/oracle/Middleware/user_projects/domains/WLS_PROD
Reason: oracle.security.opss.tools.lifecycle.LifecycleException: error in the store DB security configuration. Exception oracle.security.opss.tools.lifecycle.LifecycleException: JPS-04022: cannot create application context 'opssSecurityStore' policy.
Exception:
oracle.security.opss.tools.lifecycle.LifecycleException: security of the store DB configuration error. Oracle.security.opss.tools.lifecycle.LifecycleException exception: JPS-04022: cannot create application context "opssSecurityStore" policy
com.oracle.cie.domain.security.external.ConfigSecurityException: oracle.security.opss.tools.lifecycle.LifecycleException: security of the store DB configuration error. Oracle.security.opss.tools.lifecycle.LifecycleException exception: JPS-04022: cannot create application context "opssSecurityStore" policy
at oracle.security.opss.tools.lifecycle.cie.OpssSecurityConfiguration.initializeSubsystem(OpssSecurityConfiguration.java:141)
at com.oracle.cie.domain.DomainGenerator.run(DomainGenerator.java:323)
at java.lang.Thread.run(Thread.java:745)
Caused by: oracle.security.opss.tools.lifecycle.LifecycleException: error in the store DB security configuration. Oracle.security.opss.tools.lifecycle.LifecycleException exception: JPS-04022: cannot create application context "opssSecurityStore" policy
at oracle.security.opss.tools.lifecycle.OpssDomainConfigImpl.configureDBSecurityStore(OpssDomainConfigImpl.java:404)
at oracle.security.opss.tools.lifecycle.OpssDomainConfigImpl.initializeSubsystem(OpssDomainConfigImpl.java:194)
at oracle.security.opss.tools.lifecycle.cie.OpssSecurityConfiguration.initializeSubsystem(OpssSecurityConfiguration.java:138)
... 2 more
Caused by: oracle.security.opss.tools.lifecycle.LifecycleException: JPS-04022: cannot create application context "opssSecurityStore" policy
at oracle.security.opss.tools.lifecycle.provision.OpssProvisionTool.addServiceContainer(OpssProvisionTool.java:519)
at oracle.security.opss.tools.lifecycle.provision.OpssProvisionTool.configureService(OpssProvisionTool.java:356)
at oracle.security.opss.tools.lifecycle.provision.OpssProvisionTool.createServices(OpssProvisionTool.java:179)
at oracle.security.opss.tools.lifecycle.OpssDomainConfigImpl.configureDBSecurityStore(OpssDomainConfigImpl.java:396)
Hello!
Is very simple! This becase the Don t a host entry in/etc/hosts /.
Solution: Add the hostname to/etc/hosts or insde of the DNS server.
-
Create the XML element for the cell in the chart CC2015
Hello world
I am currently working with the xml element.
And I want to create xml, table cell element.
For now, I can create xml for the graphic cell by select graphic image of that cell, and then call the AutoTag() function.
But I want to create an xml element of a chart without selected cell.
I found the function () Utils < IXMLElementCommands >-> CreateElement()
but it doesn't seem to work with a graphic table cell structure.
Does anyone know how to do?
Thanks in advance.
Try,
InterfacePtr
cellContent (tableModel-> QueryCellContentBoss (gridAddress)); if(cellContent == Nil) {}
break;
}
InterfacePtr
cellXMLReferenceData (cellContent, UseDefaultIID()); {if(!cellXMLReferenceData)}
break;
}
XMLReference cellXMLRef is cellXMLReferenceData-> GetReference();.
-
Problem to create the disc RDM (grayed out Option)
Hello
I have a problem to create a VM with RDM disk. Option is grayed out. I present LUNS ESX
Configuration:
Local 270 GB of disks
VirtualSAN 80 GB
I present to you the two LUNS ESX:
80 GB (format as data store)
10 GB (RDM)
Try close viclient and restart the service of vcenter.
MCP, VCP
-
' Run the Scripts of "give a problem to create the domain portal
Hi all.
I'm new to weblogic portal development. Was trying to create my basic example of portal in weblogic_portal_10.3.4 with the help of the documentation. I get by running scripts when I was creating the field. I followed the procedure below please help me if you find any problem with my steps.
1. downloaded and installed Weblogic_Portal_10.3.4 in my environment of windows 7.
2. start eclipse for weblogic portal.
3 open prospective portal in eclipse.
4. click on the Server tab and selected 'Oracle WebLogic Server 11 GR 1 material (10.3.4)'
5 open "Domain Configuration Wizard"
6 selected the option button "create a new Weblogic domain.
7. in the next screen to "generate an automatically configured domain to take in charge the following products.
selected radio button "Weblogic Portal 10.3.4"
8. in the next screen given DomainName
9. the next screen provided that the password/confirm password for the administrator user
10. in the next screen select JRocket SDK and development_mode for my domain.
11. in the next screen just left all the default configurations for data sources. (not the data source is selected in their boxes)
12. in the screen following just clicked the button 'Next' and 'OK' on my popup
13. in this screen "p13nDataSource" is selected on my top left area of the window, all 3 SQL files are selected for data loading.
Clicked on * "run the script."
At this point, I get an error saying: "60839-CFGFWK: database Load Failed!
java.lang.Exception: SQLException when you run the file file:/C:/Oracle/Middleware/wlportal_10.3/p13n/db/derby/seq_drop_tables.sql
at com.oracle.cie.domain.jdbc.JDBCDataLoader.load(JDBCDataLoader.java:183)
to com.oracle.cie.wizard.domain.gui.tasks.JDBCConfigGUITask$ LoadDatabaseThread$ 1.run(JDBCConfigGUITask.java:1673)
Caused by: java.sql.SQLNonTransientConnectionException: java.net.ConnectException: error connecting to server localhost on port 1527 with Connection refused: connect.
at org.apache.derby.client.am.SQLExceptionFactory40.getSQLException (unknown Source)
at org.apache.derby.client.am.SqlException.getSQLException (unknown Source)
at org.apache.derby.jdbc.ClientDriver.connect (unknown Source)
at com.oracle.cie.domain.jdbc.JDBCConnectionTester.createConnection(JDBCConnectionTester.java:272)
at com.oracle.cie.domain.jdbc.JDBCDataLoader.load(JDBCDataLoader.java:154)
... 1 more
Caused by: org.apache.derby.client.am.DisconnectException: java.net.ConnectException: error connecting to server localhost on port 1527 with Connection refused: connect.
to org.apache.derby.client.net.NetAgent. < init >(Unknown Source)
at org.apache.derby.client.net.NetConnection.newAgent_ (unknown Source)
to org.apache.derby.client.am.Connection. < init >(Unknown Source)
to org.apache.derby.client.net.NetConnection. < init >(Unknown Source)
to org.apache.derby.client.net.NetConnection40. < init >(Unknown Source)
at org.apache.derby.client.net.ClientJDBCObjectFactoryImpl40.newNetConnection (unknown Source)
at org.apache.derby.jdbc.ClientDriver.connect (unknown Source)
at com.oracle.cie.domain.jdbc.JDBCConnectionTester.createConnection(JDBCConnectionTester.java:273)
at com.oracle.cie.domain.jdbc.JDBCDataLoader.load(JDBCDataLoader.java:154)
to com.oracle.cie.wizard.domain.gui.tasks.JDBCConfigGUITask$ LoadDatabaseThread$ 1.run(JDBCConfigGUITask.java:1674)
Caused by: java.net.ConnectException: connection refused: connect
at java.net.PlainSocketImpl.socketConnect (Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:529)
at java.net.Socket.connect(Socket.java:478)
at java.net.Socket. < init > (Socket.java:375)
at java.net.Socket. < init > (Socket.java:189)
at javax.net.DefaultSocketFactory.createSocket(SocketFactory.java:206)
at org.apache.derby.client.net.OpenSocketAction.run (unknown Source)
to org.apache.derby.client.net.NetAgent. < init >(Unknown Source)
at org.apache.derby.client.net.NetConnection.newAgent_ (unknown Source)
to org.apache.derby.client.am.Connection. < init >(Unknown Source)
to org.apache.derby.client.net.NetConnection. < init >(Unknown Source)
to org.apache.derby.client.net.NetConnection40. < init >(Unknown Source)
at org.apache.derby.client.net.ClientJDBCObjectFactoryImpl40.newNetConnection (unknown Source)
at org.apache.derby.jdbc.ClientDriver.connect (unknown Source)
at com.oracle.cie.domain.jdbc.JDBCConnectionTester.createConnection(JDBCConnectionTester.java:272)
at com.oracle.cie.domain.jdbc.JDBCDataLoader.load(JDBCDataLoader.java:154)
to com.oracle.cie.wizard.domain.gui.tasks.JDBCConfigGUITask$ LoadDatabaseThread$ 1.run(JDBCConfigGUITask.java:1673)
CFGFWK-60839: database load failed!
Please help me if you find any problem with the steps I took to create my weblogic_portal_domain.
I followed the steps mentioned in the: http://docs.oracle.com/cd/E15919_01/wlp.1032/e14252.pdf to create my domain name to start the development of portal.Those are the WLP 10.3.2 instructions. But the 10.3.4 instructions in the tutorial (http://docs.oracle.com/cd/E26806_01/wlp.1034/e14252/setup_dev_env.htm#i1014619) are bad, too.
In 10.3.4 with derby, Run the Scripts doesn't work; He still needs to work the other database (Oracle, SQL Server, etc.). Instead, for the derby, just create the field, accepting any dialog boxes warning on databases that arise. After that finish in the field directory, run create_db.cmd (for Windows) or create_db.sh (on * nix and Mac). It should create the derby database files in the field and includes everything you need.
I'll send a note to get the updated documentation.
Greg
-
having a problem with parsing the XML file
Hi all
I am trying to get data from XML file
I want to only 4-5 values in this XML file
Here is an example of XML file
-< transaction >
> < pAMETranType > IRCVACAPPROVAL < / pAMETranType >
-< TransCtx >
> < / TransCtx >
> < / transaction >
I want to add value and to store this value in table
I'm here, I want to "IRCVACAPPROVAL".
the tag
< pAMETranType >
for this purpose
I created a procedure
CREATE OR REPLACE PROCEDURE insert_xml_emps (p_directory in varchar2,
> p_filename in varchar2)
(> vtableName in varchar2) as
> v_filelocator BFILE.
> v_cloblocator CLOB.
> l_ctx DBMS_XMLSTORE. CTXTYPE;
> l_rows NUMBER;
> v_amount_to_load NUMBER;
> dest_offset NUMBER: = 1;
> offset NUMBER: = 1;
> lang_context NUMBER: = DBMS_LOB. DEFAULT_LANG_CTX;
> WARNING NUMBER;
> START
> dbms_lob.createtemporary (v_cloblocator, true);
> v_filelocator: = bfilename (p_directory, p_filename);
> dbms_lob.open (v_filelocator, dbms_lob.file_readonly);
> v_amount_to_load: = DBMS_LOB.getlength (v_filelocator);
>-* this line is changed * -.
> DBMS_LOB. LOADCLOBFROMFILE (v_cloblocator,
> v_filelocator.
> v_amount_to_load.
> dest_offset.
> offset.
> 0,
> lang_context.
(> warning);
>
> l_ctx: = DBMS_XMLSTORE.newContext (vTableName);
> DBMS_XMLSTORE.setRowTag (l_ctx, 'TRANSACTION');
> DBMS_XMLSTORE.setRowTag (l_ctx, 'TRANSCTX');
>-clear the update settings
> DBMS_XMLStore.clearUpdateColumnList (l_ctx);
>-set the columns to update a list of values
> DBMS_XMLStore.setUpdateColumn (l_ctx, 'PAMETRANTYPE');
>
>-now insert the doc.
> l_rows: = DBMS_XMLSTORE.insertxml (l_ctx, v_cloblocator);
> DBMS_XMLSTORE.closeContext (l_ctx);
> dbms_output.put_line(l_rows ||) "... inserted rows. ») ;
> dbms_lob.close (v_filelocator);
> DBMS_LOB. FREETEMPORARY (v_cloblocator);
> END;
I also have on the table who get this value
whenever I call that created the procedure
it sometime gives an error or sometime run correctly but store null in the table
But when I change the XML file
as
When convert all lowercase letters in the capital then it works fine
Is tehre to other ways to parse the XML file with no change in the XML file?Did you use the same test (with the exception of file name and directory) case?
What I posted is a copy/paste direct SQL * Plus, and it works on version 11.2.0.1.
-
How to create the hierarchy of groups?
Hello
In the Grild control Administration guide, chp. 5, the management of the group, there is this description:
"Usually you can collect all the objectives that you want to manage as a group." If you use the properties of the target (for example, Line of Business or Type of deployment) to operational information about your targets in Enterprise Manager, you can use these properties when creating groups to locate targets. For example, you could search for all databases deployment Type = Production and belonging to the Line of Business "HCM". You can also create a hierarchy of groups and use nested groups. »
How to create a hierarchical group? No matter what pointer to more detailed documentation or example?
Thank you.Hello
during the creation of two groups (e.g., Group1 and Group2) you can add group2 as a member of Group1 - from my point of view, a sort of HIERARCHICAL structure.
But I'm not able to name any additional documentation...HTH
-
problem to create the windows xp startup disk.
n error occurred during the creation of the wizard disk.
Please make sure that the disk is properly formatted and that there at least 1.4 MB free.Hi shlomy6666,
· Are you able to work with the other disks?
· What method you follow to create the startup disk?
See the link below which was the same: how to get the installation discs for Windows XP for installation of boot floppies:http://support.microsoft.com/kb/310994
With regard to:
Samhrutha G S - Microsoft technical support.
Visit our Microsoft answers feedback Forum and let us know what you think.
Maybe you are looking for
-
I can't do Activation, my real account and stop true bassword
I can't do Activation, my real account and stop true bassword
-
How to use the heartbeat detector in LPX?
Is it possible to detect a beat played by a real drummer, say, with a microphone on the upcoming kick on the interface audio (?), in order to synchronize LPX his rhythm? How can this be done, step by step?
-
Why block users download FF Aurora? We need anyway.
as shown - your website tells me that I already use a newer version.I know.But I want to download anyway.Don't be such a MOM.
-
OfficeJet 5510, using the operating system OS 10.6: Setup to scan paper documents
Cannot find out how to access the functions of scanning to scan paper documents using the charger screen and/or flat document. You want to scan to pdf files.
-
Bad Bios and laptop does not start
One day, I tried to run an update of the bios and I now know that I made the biggest mistake by forcing my laptop off while running. It's a sudden reaction when my laptop had seemed frozen. I was reading on the update file/app/what is to have all clo