Problem in creating xml section group
I have created xml section group with some sections defined in the field.Now my attributes are repeated with different root nodes.so i have put braces for differentiation and created context index.
drop index abc_indexes_idx;
begin
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;
begin
ctx_ddl.drop_section_group('xyz_xml_group');
end;
begin
ctx_ddl.drop_preference('xyz_wildcard_pref1');
end;
begin
ctx_ddl.drop_preference('xyz_lexer_pref1');
end;
begin
ctx_ddl.drop_preference('STEM_FUZZY_PREF');
end;
begin
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;
begin
ctx_ddl.create_preference('STEM_FUZZY_PREF','BASIC_WORDLIST');
ctx_ddl.set_attribute('STEM_FUZZY_PREF','SUBSTRING_INDEX','TRUE');
end;
begin
ctx_ddl.set_attribute('STEM_FUZZY_PREF','PREFIX_INDEX','YES');
end;
begin
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 parameters
('datastore ctxsys.direct_datastore wordlist STEM_FUZZY_PREF FILTER ctxsys.null_filter lexer xyz_lexer_pref1
sync(on commit)SECTION GROUP xyz_xml_group MEMORY 500M ');
My XML document is as follows whichi stored in a column of abc and it is of xmltype datatype
<?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>abc</j:PersonGivenName>
<j:PersonMiddleName />
<j:PersonSurName>xyz</j:PersonSurName>
<j:PersonSuffixName />
<j:PersonFullName>abc, xyz </j:PersonFullName>
</j:PersonName>
</ext:IncidentSubject>
<ext:ActivityComplainantPerson>
<j:PersonName>
<j:PersonGivenName>abc</j:PersonGivenName>
<j:PersonMiddleName />
<j:PersonSurName>xyz</j:PersonSurName>
<j:PersonSuffixName />
<j:PersonFullName>abc, xyz </j:PersonFullName>
</j:PersonName>
</ext:ActivityComplainantPerson>
<ext:ActivityWitness>
<j:PersonName>
<j:PersonGivenName>abc</j:PersonGivenName>
<j:PersonMiddleName />
<j:PersonSurName>xyz</j:PersonSurName>
<j:PersonSuffixName />
<j:PersonFullName>abc, xyz </j:PersonFullName>
</j:PersonName>
</ext:ActivityWitness>
<ext:ActivityVictim>
<j:PersonName>
<j:PersonGivenName>abc</j:PersonGivenName>
<j:PersonMiddleName />
<j:PersonSurName>xyz</j:PersonSurName>
<j:PersonSuffixName />
<j:PersonFullName>abc, xyz </j:PersonFullName>
</j:PersonName>
</ext:ActivityVictim>
<ext:ActivityWitness>
</ab:IncidentReport>
</ab:IncidentReportGroup>
now when i am trying to run the query
select * from xyz_indexes where contains(xyzcolumn,'(LORI WITHIN abLName)
& ("BELAND" WITHIN abFName)')>0
It is not returning anything.
Can anyone provide me some help on it.
I changed your data to match what you were searching for, then I noticed that your third parameters for add_field_section were wrong, so I changed that. The query then returns rows, as demonstrated below. However, I suspect that add_field_section is not what you want to use with your XML data since you have tags with the same names within different categories.
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','XML_SECTION_GROUP');
3 ctx_ddl.add_field_section('xyz_xml_group','abLName','j:PersonGivenName');
4 ctx_ddl.add_field_section('xyz_xml_group','abFName','j:PersonSurName');
5 end;
6 /
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 '<?xml version="1.0" encoding="utf-8"?>
4 <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">
5 <ab:IncidentReport>
6 <ext:IncidentSubject>
7 <j:PersonName>
8 <j:PersonGivenName>LORI</j:PersonGivenName>
9 <j:PersonMiddleName />
10 <j:PersonSurName>"BELAND"</j:PersonSurName>
11 <j:PersonSuffixName />
12 <j:PersonFullName>abc, xyz </j:PersonFullName>
13 </j:PersonName>
14 </ext:IncidentSubject>
15 <ext:ActivityComplainantPerson>
16 <j:PersonName>
17 <j:PersonGivenName>abc</j:PersonGivenName>
18 <j:PersonMiddleName />
19 <j:PersonSurName>xyz</j:PersonSurName>
20 <j:PersonSuffixName />
21 <j:PersonFullName>abc, xyz </j:PersonFullName>
22 </j:PersonName>
23 </ext:ActivityComplainantPerson>
24 <ext:ActivityWitness>
25 <j:PersonName>
26 <j:PersonGivenName>abc</j:PersonGivenName>
27 <j:PersonMiddleName />
28 <j:PersonSurName>xyz</j:PersonSurName>
29 <j:PersonSuffixName />
30 <j:PersonFullName>abc, xyz </j:PersonFullName>
31 </j:PersonName>
32 </ext:ActivityWitness>
33 <ext:ActivityVictim>
34 <j:PersonName>
35 <j:PersonGivenName>abc</j:PersonGivenName>
36 <j:PersonMiddleName />
37 <j:PersonSurName>xyz</j:PersonSurName>
38 <j:PersonSuffixName />
39 <j:PersonFullName>abc, xyz </j:PersonFullName>
40 </j:PersonName>
41 </ext:ActivityVictim>
42 </ab:IncidentReport>
43 </ab:IncidentReportGroup>'
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 where contains(xyzcolumn,'(LORI WITHIN abLName)
2 & ("BELAND" WITHIN abFName)')>0
3 /
XYZCOLUMN
<?xml version="1.0" encoding="utf-8"?>
<ab:IncidentReportGroup xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xm
lns: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>LORI</j:PersonGivenName>
<j:PersonMiddleName />
<j:PersonSurName>"BELAND"</j:PersonSurName>
<j:PersonSuffixName />
<j:PersonFullName>abc, xyz </j:PersonFullName>
</j:PersonName>
</ext:IncidentSubject>
<ext:ActivityComplainantPerson>
<j:PersonName>
<j:PersonGivenName>abc</j:PersonGivenName>
<j:PersonMiddleName />
<j:PersonSurName>xyz</j:PersonSurName>
<j:PersonSuffixName />
<j:PersonFullName>abc, xyz </j:PersonFullName>
</j:PersonName>
</ext:ActivityComplainantPerson>
<ext:ActivityWitness>
<j:PersonName>
<j:PersonGivenName>abc</j:PersonGivenName>
<j:PersonMiddleName />
<j:PersonSurName>xyz</j:PersonSurName>
<j:PersonSuffixName />
<j:PersonFullName>abc, xyz </j:PersonFullName>
</j:PersonName>
</ext:ActivityWitness>
<ext:ActivityVictim>
<j:PersonName>
<j:PersonGivenName>abc</j:PersonGivenName>
<j:PersonMiddleName />
<j:PersonSurName>xyz</j:PersonSurName>
<j:PersonSuffixName />
<j:PersonFullName>abc, xyz </j:PersonFullName>
</j:PersonName>
</ext:ActivityVictim>
</ab:IncidentReport>
</ab:IncidentReportGroup>
SCOTT@orcl_11g>
Similar Messages
-
Problem while creating xml with cdata section
Hi,
I am facing problem while creating xml with cdata section in it. I am using Oracle 10.1.0.4.0 I am writing a stored procedure which accepts a set of input parameters and creates a xml document from them. The code snippet is as follows:
select xmlelement("DOCUMENTS",
xmlagg
(xmlelement
("DOCUMENT",
xmlforest
(m.document_name_txt as "DOCUMENT_NAME_TXT",
m.document_type_cd as "DOCUMENT_TYPE_CD",
'<![cdata[' || m.document_clob_data || ']]>' as "DOCUMENT_CLOB_DATA"
) from table(cast(msg_clob_data_arr as DOCUMENT_CLOB_TBL))m;
msg_clob_data_arr is an input parameter to procedure and DOCUMENT_CLOB_TBL is a pl/sql table of an object containing 3 attributes: first 2 being varchar2 and the 3rd one as CLOB. The xml document this query is generating is as follows:
<DOCUMENTS>
<DOCUMENT>
<DOCUMENT_NAME_TXT>TestName</DOCUMENT_NAME_TXT>
<DOCUMENT_TYPE_CD>BLOB</DOCUMENT_TYPE_CD>
<DOCUMENT_CLOB_DATA>
<![cdata[123456789012345678901234567890123456789012]]>
</DOCUMENT_CLOB_DATA>
</DOCUMENT>
</DOCUMENTS>
The problem is instead of <![cdata[....]]> xmlforest query is encoding everything to give < for cdata tag. How can I overcome this? Please help.SQL> create or replace function XMLCDATA_10103 (elementName varchar2,
2 cdataValue varchar2)
3 return xmltype deterministic
4 as
5 begin
6 return xmltype('<' || elementName || '><![CDATA[' || cdataValue || ']]>
7 end;
8 /
Function created.
SQL> select xmlelement
2 (
3 "Row",
4 xmlcdata_10103('Junk','&<>!%$#&%*&$'),
5 xmlcdata_10103('Name',ENAME),
6 xmlelement("EMPID", EMPNO)
7 ).extract('/*')
8* from emp
SQL> /
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[SMITH]]></Name>
<EMPID>7369</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[ALLEN]]></Name>
<EMPID>7499</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[WARD]]></Name>
<EMPID>7521</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[JONES]]></Name>
<EMPID>7566</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[MARTIN]]></Name>
<EMPID>7654</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[BLAKE]]></Name>
<EMPID>7698</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[CLARK]]></Name>
<EMPID>7782</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[SCOTT]]></Name>
<EMPID>7788</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[KING]]></Name>
<EMPID>7839</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[TURNER]]></Name>
<EMPID>7844</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[ADAMS]]></Name>
<EMPID>7876</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[JAMES]]></Name>
<EMPID>7900</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[FORD]]></Name>
<EMPID>7902</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[MILLER]]></Name>
<EMPID>7934</EMPID>
</Row>
14 rows selected.
SQL> -
Determining Where Hits Were Found (XML Section Groups)
Hello all,
Hoping for a bit of help. It's my first time posting here, but I've benefitted from reading a lot of your posts. I have created a single Oracle Text index for a resume database of sorts. It utilizes a user datastore. The procedure I use gathers a a single user's information in my database and organizes it via XML tags that are assigned in the procedure - outputs a CLOB. I did this in order to try the AUTO SECTION GROUP option when indexing, so that I could use the WITHIN operator.
So, for example, the procedure is given the rowid for a single employee, and the output may be:
<ALL>
<PERSONAL>
83019
John Smith
10/05/1973
Baltimore, MD
</PERSONAL>
<SKILLS>
Oracle Database Administrator
.NET Developer
</SKILLS>
</ALL>
My problem is I wish to know the SPECIFIC section groups where hits were registered if I search all of the XML
SELECT EMPLOYEE_ID
FROM EMPLOYEE_TBL
WHERE CONTAINS (DUMMY_COLUMN, 'developer WITHIN ALL', 1) > 0
ORDER BY SCORE (1) DESC
My output is:
EMPLOYEE_ID
83019
Is there any way I can also list the sections where hits were registered for this user? In this example, I'd want the "SKILLS" section to show up in the result set.skMed,
Yes, that is a problem. Alternatives are the first method using UNION ALL or creating a MATERIALIZED VIEW and indexing that, similar to what I demonstrated to the other poster on this thread, or CTX_DOC.HIGHLIGHT as Roger said. I have provided a demonstration of the problem below, followed by an alternative solution that uses CTX_DOC.HIGHLIGHT as Roger suggested. I used a function but Roger may have a more elegant method.
SCOTT@orcl_11g> CREATE TABLE employee_tbl
2 (employee_id NUMBER,
3 fname VARCHAR2 (7),
4 lname VARCHAR2 (7),
5 dob DATE,
6 city VARCHAR2 (9),
7 state VARCHAR2 (2),
8 dummy_column VARCHAR2 (1),
9 CONSTRAINT emp_id_pk PRIMARY KEY (employee_id))
10 /
Table created.
SCOTT@orcl_11g> CREATE TABLE skills
2 (employee_id NUMBER,
3 skill VARCHAR2 (30),
4 CONSTRAINT skills_id_fk FOREIGN KEY (employee_id) REFERENCES employee_tbl (employee_id))
5 /
Table created.
SCOTT@orcl_11g> CREATE TABLE jobs
2 (employee_id NUMBER,
3 job VARCHAR2 (30),
4 CONSTRAINT job_id_fk FOREIGN KEY (employee_id) REFERENCES employee_tbl (employee_id))
5 /
Table created.
SCOTT@orcl_11g> BEGIN
2 INSERT INTO employee_tbl VALUES
3 (1, 'Adam', NULL, NULL, NULL, NULL, NULL);
4 INSERT INTO employee_tbl VALUES
5 (2, 'Bob', NULL, NULL, NULL, NULL, NULL);
6 INSERT INTO employee_tbl VALUES
7 (3, 'Charles', NULL, NULL, NULL, NULL, NULL);
8 INSERT INTO employee_tbl VALUES
9 (4, 'David', NULL, NULL, NULL, NULL, NULL);
10 INSERT INTO skills VALUES (1, 'OTHERS');
11 INSERT INTO skills VALUES (2, '.NET');
12 INSERT INTO skills VALUES (3, 'OTHERS');
13 INSERT INTO skills VALUES (4, '.NET');
14 INSERT INTO jobs VALUES (1, '.NET');
15 INSERT INTO jobs VALUES (2, 'OTHERS');
16 INSERT INTO jobs VALUES (3, '.NET');
17 INSERT INTO jobs VALUES (4, '.NET');
18 END;
19 /
PL/SQL procedure successfully completed.
SCOTT@orcl_11g> CREATE OR REPLACE PROCEDURE resume
2 (p_rowid IN ROWID,
3 p_clob IN OUT CLOB)
4 AS
5 BEGIN
6 FOR e IN
7 (SELECT employee_id,
8 employee_id || ' ' || fname || ' ' || lname || ' ' || dob || ' '
9 || city || ', ' || state AS personal
10 FROM employee_tbl
11 WHERE ROWID = p_rowid)
12 LOOP
13 DBMS_LOB.WRITEAPPEND (p_clob, 10, '<PERSONAL>');
14 DBMS_LOB.WRITEAPPEND (p_clob, LENGTH (e.personal), e.personal);
15 DBMS_LOB.WRITEAPPEND (p_clob, 11, '</PERSONAL>');
16 DBMS_LOB.WRITEAPPEND (p_clob, 8, '<SKILLS>');
17 FOR s IN (SELECT skill FROM skills WHERE employee_id = e.employee_id) LOOP
18 DBMS_LOB.WRITEAPPEND (p_clob, LENGTH (s.skill) + 1, s.skill || ' ');
19 END LOOP;
20 DBMS_LOB.WRITEAPPEND (p_clob, 9, '</SKILLS>');
21 DBMS_LOB.WRITEAPPEND (p_clob, 12, '<JOBHISTORY>');
22 FOR j IN (SELECT job FROM jobs WHERE employee_id = e.employee_id) LOOP
23 DBMS_LOB.WRITEAPPEND (p_clob, LENGTH (j.job) + 1, j.job || ' ');
24 END LOOP;
25 DBMS_LOB.WRITEAPPEND (p_clob, 13, '</JOBHISTORY>');
26 END LOOP;
27 END resume;
28 /
Procedure created.
SCOTT@orcl_11g> SHOW ERRORS
No errors.
SCOTT@orcl_11g> BEGIN
2 CTX_DDL.CREATE_PREFERENCE ('your_datastore', 'USER_DATASTORE');
3 CTX_DDL.SET_ATTRIBUTE ('your_datastore', 'PROCEDURE', 'resume');
4 CTX_DDL.CREATE_SECTION_GROUP ('your_sec_group', 'XML_SECTION_GROUP');
5 CTX_DDL.ADD_FIELD_SECTION ('your_sec_group', 'PERSONAL', '<PERSONAL>', TRUE);
6 CTX_DDL.ADD_FIELD_SECTION ('your_sec_group', 'SKILLS', '<SKILLS>', TRUE);
7 CTX_DDL.ADD_FIELD_SECTION ('your_sec_group', 'JOBHISTORY', '<JOBHISTORY>', TRUE);
8 END;
9 /
PL/SQL procedure successfully completed.
SCOTT@orcl_11g> CREATE INDEX resume_idx ON employee_tbl (dummy_column)
2 INDEXTYPE IS CTXSYS.CONTEXT
3 PARAMETERS
4 ('DATASTORE your_datastore
5 SECTION GROUP your_sec_group
6 STOPLIST CTXSYS.EMPTY_STOPLIST')
7 /
Index created.
SCOTT@orcl_11g> CREATE OR REPLACE FUNCTION list_element
2 (p_string VARCHAR2,
3 p_element INTEGER,
4 p_separator VARCHAR2 DEFAULT ':')
5 RETURN VARCHAR2
6 AS
7 v_string VARCHAR2 (32767);
8 BEGIN
9 v_string := p_separator || p_string || p_separator;
10 v_string := SUBSTR (v_string, INSTR (v_string, p_separator, 1, p_element) + LENGTH (p_separator));
11 RETURN SUBSTR (v_string, 1, INSTR (v_string, p_separator) - 1);
12 END list_element;
13 /
Function created.
SCOTT@orcl_11g> SELECT * FROM employee_tbl ORDER BY employee_id
2 /
EMPLOYEE_ID FNAME LNAME DOB CITY ST D
1 Adam
2 Bob
3 Charles
4 David
SCOTT@orcl_11g> SELECT * FROM skills ORDER BY employee_id
2 /
EMPLOYEE_ID SKILL
1 OTHERS
2 .NET
3 OTHERS
4 .NET
SCOTT@orcl_11g> SELECT * FROM jobs ORDER BY employee_id
2 /
EMPLOYEE_ID JOB
1 .NET
2 OTHERS
3 .NET
4 .NET
SCOTT@orcl_11g> COLUMN ixv_value FORMAT A26
SCOTT@orcl_11g> COLUMN from_section FORMAT A15
SCOTT@orcl_11g> SELECT ixv_value,
2 list_element (ixv_value, 1) AS from_section,
3 TO_NUMBER (list_element (ixv_value, 3)) AS token_type
4 FROM ctx_user_index_values
5 WHERE ixv_index_name = 'RESUME_IDX'
6 AND ixv_class = 'SECTION_GROUP'
7 /
IXV_VALUE FROM_SECTION TOKEN_TYPE
SKILLS:SKILLS:17:Y SKILLS 17
PERSONAL:PERSONAL:16:Y PERSONAL 16
JOBHISTORY:JOBHISTORY:18:Y JOBHISTORY 18
SCOTT@orcl_11g> COLUMN token_info FORMAT A30 WORD_WRAPPED
SCOTT@orcl_11g> SELECT token_text, token_type, token_first, token_last, token_count
2 FROM dr$resume_idx$i
3 WHERE token_text = 'NET'
4 /
TOKEN_TEXT TOKEN_TYPE TOKEN_FIRST TOKEN_LAST TOKEN_COUNT
NET 0 1 4 4
NET 17 2 4 2
NET 18 1 4 3
SCOTT@orcl_11g> -- problem:
SCOTT@orcl_11g> SELECT t.employee_id, t.fname,
2 SCORE (1),
3 list_element (v.ixv_value, 1) AS from_section
4 FROM employee_tbl t, dr$resume_idx$i i, dr$resume_idx$k k, ctx_user_index_values v
5 WHERE CONTAINS (t.dummy_column, '.NET%', 1) > 0
6 AND i.token_text = 'NET'
7 AND i.token_type = TO_NUMBER (list_element (v.ixv_value, 3))
8 AND k.docid BETWEEN i.token_first AND i.token_last
9 AND k.textkey = t.ROWID
10 ORDER BY t.employee_id
11 /
EMPLOYEE_ID FNAME SCORE(1) FROM_SECTION
1 Adam 3 JOBHISTORY
2 Bob 3 JOBHISTORY
2 Bob 3 SKILLS
3 Charles 3 SKILLS
3 Charles 3 JOBHISTORY
4 David 6 JOBHISTORY
4 David 6 SKILLS
7 rows selected.
SCOTT@orcl_11g> -- alternative solution:
SCOTT@orcl_11g> CREATE OR REPLACE FUNCTION from_section
2 (p_emp_id IN VARCHAR2,
3 p_text IN VARCHAR2,
4 p_rowid IN ROWID)
5 RETURN VARCHAR2
6 AS
7 hightab ctx_doc.highlight_tab;
8 v_clob CLOB;
9 v_clob2 CLOB;
10 v_section VARCHAR2 (32767);
11 v_result VARCHAR2 (32767);
12 BEGIN
13 CTX_DOC.HIGHLIGHT ('resume_idx', p_emp_id, p_text, hightab, FALSE);
14 DBMS_LOB.CREATETEMPORARY (v_clob, TRUE);
15 DBMS_LOB.CREATETEMPORARY (v_clob2, TRUE);
16 resume (p_rowid, v_clob);
17 FOR i IN 1 .. hightab.COUNT LOOP
18 v_clob2 := SUBSTR (v_clob, 1, hightab(i).offset);
19 v_clob2 := SUBSTR (v_clob2, 1, INSTR (v_clob2, '>', -1) - 1);
20 v_section := SUBSTR (v_clob2, INSTR (v_clob2, '<', -1) + 1);
21 v_result := v_result || ',' || v_section;
22 END LOOP;
23 DBMS_LOB.FREETEMPORARY (v_clob);
24 DBMS_LOB.FREETEMPORARY (v_clob2);
25 RETURN LTRIM (v_result, ',');
26 END from_section;
27 /
Function created.
SCOTT@orcl_11g> SHOW ERRORS
No errors.
SCOTT@orcl_11g> COLUMN from_section FORMAT A60 WORD_WRAPPED
SCOTT@orcl_11g> SELECT t.employee_id, t.fname, SCORE (1),
2 from_section (employee_id, '.NET%', ROWID) AS from_section
3 FROM employee_tbl t
4 WHERE CONTAINS (t.dummy_column, '.NET%', 1) > 0
5 ORDER BY t.employee_id
6 /
EMPLOYEE_ID FNAME SCORE(1) FROM_SECTION
1 Adam 3 JOBHISTORY
2 Bob 3 SKILLS
3 Charles 3 JOBHISTORY
4 David 6 SKILLS,JOBHISTORY
SCOTT@orcl_11g> -
Performance problem when creating XML-file
Hi,
I want to create a XML-file with customer data from an internal table. This internal table has appr. 62000 entries. It takes hours to create the elements of the file.
This is the coding I have used:
loop at it_debtor.
at first.
Creating a ixml factory
l_ixml = cl_ixml=>create( ).
Creating the dom object model
l_document = l_ixml->create_document( ).
Fill root node
l_element_argdeb = l_document->create_simple_element(name = 'argDebtors'
parent = l_document ).
endat.
Create element 'debtor' as child of 'argdeb'
l_element_debtor = l_document->create_simple_element(
name = 'debtor'
parent = l_element_argdeb ).
Create elements as child of 'debtor'
l_value = it_debtor-admid.
perform create_element using 'financialAdministrationId'.
l_value = it_debtor-kunnr.
perform create_element using 'financialDebtorId'.
l_value = it_debtor-name1.
21 child elements in total are created
endloop.
Creating a stream factory
l_streamfactory = l_ixml->create_stream_factory( ).
Connect internal XML table to stream factory
l_ostream = l_streamfactory->create_ostream_itable( table =
l_xml_table ).
Rendering the document
l_renderer = l_ixml->create_renderer( ostream = l_ostream
document = l_document ).
l_rc = l_renderer->render( ).
open dataset p_path for output in binary mode.
if sy-subrc eq 0.
loop at l_xml_table into rec.
transfer rec to p_path.
endloop.
close dataset p_path.
if sy-subrc eq 0.
write:/ wa_lines, 'records have been processed'.
endif.
else.
write:/ p_path, 'can not be opened.'.
endif.
form create_element using p_text.
check not l_value is initial.
l_element_dummy = l_document->create_simple_element(
name = p_text
value = l_value
parent = l_element_debtor ).
endform. " create_element
Please can anyone tell me how to improve the performance.
The method create_simple_element takes a long time.
SAP release : 46C
Regard,
ChristineHi Christine!
There might be several reasons - but you have to look at the living patient, not only the dead coding.
You did not show any selects, loop at ... where or read table statements -> the usual slow parts are not included (or visible...).
Of course the method-calls can contain slow statements, but you can also have problems because of size (when internal memory gets swaped to disc).
Make a runtime analysis (SE30), have a look in SM50 (details!) for the size, maybe add an info-message for every 1000-customer (-> will be logged in job-log), so you will see if all 1000-packs are executed in same runtime.
With this tools you have to search for the slow parts:
- general out of memory problems, maybe because of to much buffering (visible by slower execution at the end)
- slow methods / selects / other components by SM30 -> have a closer look
Maybe a simple solution: make three portions with 20000 entries each and just copy the files into one, if necessary.
Regards,
Christian -
Problems with creating XML file via Call Transformation
Hi,
When creating a XML file via Call transformation an extra character '#'is placed at the beginning of the file.
This problems occurs since the upgrade to ECC6.0 and the Unicode conversion.
When opening the XML file the following error message appears:
Invalid at the top level of the document. Error processing resource 'file ....
Has anybody an idea why this extra character is placed at the beginning of the file. Has it something to do with the unicode conversion and how can we solve the problem?
thanks for your help
kind regards,
Maarten van IJzendoornHello Marteen,
Can you please share the solution to this issue and let me know.
Our Issue:
1) We are executing a report which generates an XML file on FTP.
2) The FTP file is always in Error when executed thorugh JAPANESE login but not thorugh EN login.
3) The XML files generated have always an extra character in the end ( which can be space,#,$%^&, etc.) when this extra character is removed from XML file with opening it in NOTEPAD then XML works OK in JA login as well.
4) In the PROGRAM everything has been checked with respect to OPEN dataset statement , XML ports UNICODE etc.
5) THIS issue has been reported only after upgrading to ECC 6.0 from 4.6C.( in older version it works fine).
Various OPEN dataset statments are :
OPEN DATASET path_fil
FOR OUTPUT
Thanks to reply. -
Problems in creating xml tags using java
i had analysed the xmlnode builder class but i am unable to learn what is the functions of that class.
so please send me a sample coding to create the following output.
i need this kind of output.
<?xml version="1.0"?>
<tree>
<node id="acc" text="Accounts" cImage="tree/images/book.gif" oImage="tree/images/bookopen.gif" contextid="con1">
<contents>
<node id="1" text="Liabilites" cImage="tree/images/book.gif" oImage="tree/images/bookopen.gif" contextid="con1">
<contents>
<node id="5" text="Capital" cImage="tree/images/book.gif" oImage="tree/images/bookopen.gif" contextid="con1">
<contents>
<node id="L5" text="Gods A/c" cImage="tree/images/book.gif" oImage="tree/images/bookopen.gif" contextid="con1"/>
</contents>
</node>
<node id="10" text="Current Liablities" cImage="tree/images/book.gif" oImage="tree/images/bookopen.gif" contextid="con1"/>
<node id="11" text="Cash On Hand" cImage="tree/images/book.gif" oImage="tree/images/bookopen.gif" contextid="con1">
<contents>
<node id="L11" text="Cash" cImage="tree/images/book.gif" oImage="tree/images/bookopen.gif" contextid="con1"/>
</contents>
</node>
<node id="12" text="Bank Balance" cImage="tree/images/book.gif" oImage="tree/images/bookopen.gif" contextid="con1">
<contents>
<node id="L12" text="ICICI" cImage="tree/images/book.gif" oImage="tree/images/bookopen.gif" contextid="con1"/>
</contents>
</node>
</contents>
</node>
<node id="2" text="Asset" cImage="tree/images/book.gif" oImage="tree/images/bookopen.gif" contextid="con1">
<contents>
<node id="6" text="Fixed Asset" cImage="tree/images/book.gif" oImage="tree/images/bookopen.gif" contextid="con2"/>
</contents>
</node>
<node id="3" text="Expenses" cImage="tree/images/book.gif" oImage="tree/images/bookopen.gif" contextid="con1">
<contents>
<node id="15" text="Direct Expenses" cImage="tree/images/book.gif" oImage="tree/images/bookopen.gif" contextid="con2">
<contents>
<node id="8" text="Purchase" cImage="tree/images/book.gif" oImage="tree/images/bookopen.gif" contextid="con2"/>
</contents>
</node>
<node id="16" text="InDirect Expenses" cImage="tree/images/book.gif" oImage="tree/images/bookopen.gif" contextid="con2">
<contaents>
<node id="L16" text="Staff Welfare" cImage="tree/images/book.gif" oImage="tree/images/bookopen.gif" contextid="con2"/>
</contaents>
</node>
</contents>
</node>
<node id="4" text="Income" cImage="tree/images/book.gif" oImage="tree/images/bookopen.gif" contextid="con1">
<contents>
<node id="13" text="Direct Income" cImage="tree/images/book.gif" oImage="tree/images/bookopen.gif" contextid="con2">
<contents>
<node id="7" text="Sales" cImage="tree/images/book.gif" oImage="tree/images/bookopen.gif" contextid="con2"/>
</contents>
</node>
<node id="14" text="InDirect Income" cImage="tree/images/book.gif" oImage="tree/images/bookopen.gif" contextid="con2"/>
</contents>
</node>
</contents>
</node>
<node id="inv" text="Inventory" cImage="tree/images/book.gif" oImage="tree/images/bookopen.gif" contextid="con1">
<contents>
<node id="1" text="Raw Material" cImage="tree/images/book.gif" oImage="tree/images/bookopen.gif" contextid="con1">
<contents>
<node id="I1" text="Pigments" cImage="tree/images/book.gif" oImage="tree/images/bookopen.gif" contextid="con1"/>
</contents>
</node>
<node id="2" text="Intermediate" cImage="tree/images/book.gif" oImage="tree/images/bookopen.gif" contextid="con1"/>
<node id="3" text="Work In Process" cImage="tree/images/book.gif" oImage="tree/images/bookopen.gif" contextid="con1"/>
<node id="4" text="Finised Goods" cImage="tree/images/book.gif" oImage="tree/images/bookopen.gif" contextid="con1"/>
<node id="5" text="Packing Materials" cImage="tree/images/book.gif" oImage="tree/images/bookopen.gif" contextid="con1"/>
</contents>
</node>
</tree>Unless you are using some special tag library or something, SQL is not, as far as I've ever seen, going to handle while loops within the statements. You want to create the table, then you have to create the CREATE statement string
String c = "CREATE TABLE [dbo].[tblNewTable] (";
for(int x = 0; x < vFieldFruitVector.size(); x++) {
c += vFieldFruitVector.get(x) + " char 50 COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL";
c += ")";
int res = stmt.executeUpdate(c); -
Problem with create asm disk group
Hi all
I am about configuring ASM, so I have downloaded the Grid infrastructure 11g (32 bit), I have configured and created parameters and directories.
I runned the installer but get stack at the 3 step where I have to change the discovery path. I have taped as path /dev where I have created 3 partitions sdb1, sdc1 and sdd1.
Is there any thing should I perform on partitions may be or parameters to set before I go through the installation?
Thanks for helpYou can use the below link to install ASMLIB:
http://gssdba.wordpress.com/category/asm/
REFERANCE : Doc ID 580153.1
There are two different methods to configure ASM on Linux:
ASM with ASMLib I/O: This method creates all Oracle database files on raw block devices managed by ASM using ASMLib calls. RAW devices are not required with this method as ASMLib works with block devices.
ASM with Standard Linux I/O: This method creates all Oracle database files on raw character devices managed by ASM using standard Linux I/O system calls. You will be required to create RAW devices for all disk partitions used by ASM.
You can download the ASMLIB rpm’s from below URL:
http://www.oracle.com/technetwork/server-storage/linux/downloads/rhel5-084877.html
STEP 01: LOG IN AS ROOT USER AND INSTALL THE RPMS
[root@node1 ASMLIB]# rpm -Uvh oracleasm-2.6.18-164.el5-2.0.5-1.el5.i686.rpm \
> oracleasmlib-2.0.4-1.el5.i386.rpm \
> oracleasm-support-2.1.8-1.el5.i386.rpm
warning: oracleasm-2.6.18-164.el5-2.0.5-1.el5.i686.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159
Preparing… ########################################### [100%]
1:oracleasm-support ########################################### [ 33%]
2:oracleasm-2.6.18-164.el########################################### [ 67%]
3:oracleasmlib ########################################### [100%]
STEP 02: CONFIGURE ASMLIB
[root@node1 ASMLIB]# /etc/init.d/oracleasm configure
Configuring the Oracle ASM library driver.
This will configure the on-boot properties of the Oracle ASM library
driver. The following questions will determine whether the driver is
loaded on boot and what permissions it will have. The current values
will be shown in brackets (‘[]‘). Hitting <ENTER> without typing an
answer will keep that current value. Ctrl-C will abort.
Default user to own the driver interface []: oracle
Default group to own the driver interface []: dba
Start Oracle ASM library driver on boot (y/n) [n]: y
Scan for Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: done
Initializing the Oracle ASMLib driver: [ OK ]
Scanning the system for Oracle ASMLib disks: [ OK ]
STEP 03 :CREATE ASM DISK
[root@node1 ASMLIB]# /etc/init.d/oracleasm listdisks
[root@node1 ASMLIB]#
[root@node1 ~]# /etc/init.d/oracleasm createdisk VOL1 /dev/sdb1
Marking disk “VOL1″ as an ASM disk: [ OK ]
[root@node1 ~]# /etc/init.d/oracleasm createdisk VOL2 /dev/sdc1
Marking disk “VOL2″ as an ASM disk: [ OK ]
[root@node1 ~]# /etc/init.d/oracleasm createdisk VOL3 /dev/sdd1
Marking disk “VOL3″ as an ASM disk: [ OK ]
[root@node1 ~]# /etc/init.d/oracleasm createdisk VOL4 /dev/sde1
Marking disk “VOL4″ as an ASM disk: [ OK ]
[root@node1 ~]# /etc/init.d/oracleasm createdisk VOL5 /dev/sdf1
Marking disk “VOL5″ as an ASM disk: [ OK ]
[root@node1 ~]# /etc/init.d/oracleasm listdisks
VOL1
VOL2
VOL3
VOL4
VOL5
[root@node1 ~]# -
Problem with creating view with group by
I created a veiw like this
CREATE OR REPLACE FORCE VIEW "Emp" ("team", "Num") AS
select team, count(*) AS Num
from employee
group by team
The data in the view like this:
team Num
1 29
2 10
5 1
I have team 1, 2, 3, 4, 5 in table employee. I wanta the view to have data like this;
team Num
1 29
2 10
3 0
4 0
5 1
is there some way to achieve this?
Thanks for your help.SQL> select * from emp;
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7566 JONES MANAGER 7839 02-APR-81 2975 1000 20
7902 FORD ANALYST 7566 03-DEC-81 3000 20
7839 KING PRESIDENT 17-NOV-81 5000 10
7698 BLAKE MANAGER 7839 01-MAY-81 2850 30
7782 CLARK MANAGER 7839 09-JUN-81 2450 10
7369 SMITH CLERK 7902 17-DEC-80 800 20
7499 ALLEN SALESMAN 7698 20-FEB-81 1600 300 30
7521 WARD SALESMAN 7698 22-FEB-81 1250 500 30
7654 MARTIN SALESMAN 7698 28-SEP-81 1250 1400 30
7788 SCOTT ANALYST 7566 09-DEC-82 3000 20
7844 TURNER SALESMAN 7698 08-SEP-81 1500 0 30
7876 ADAMS CLERK 7788 12-JAN-83 1100 20
7900 JAMES CLERK 7698 03-DEC-81 950 30
7934 MILLER CLERK 7782 23-JAN-82 1300 10
14 rows selected.
SQL> select deptno, count(*)
2 from emp
3 group by deptno;
DEPTNO COUNT(*)
10 3
20 5
30 6
SQL> can you post the result of this query:
select distinct team from employee;note: just want to check what team values do you have from your table employee -
XML Section Group(INPATH)
I have the below 2 xml files. When i am trying to query using inpath the pattern matches for both xmls and so pulls the data from both the xml's but i want to grab the data from xml1 which is Exact matching data.
The query pulls the data even if it finds single match from all xml files not the exact match .
So, can anyone provide the solution for this would be really appreciated.
XML 01:
<A>
<B>
<C>value0</C>
<D>value1</D>
</B>
</A>
XML 02:
<A>
<B>
<C>value0</C>
</B>
<B>
<D>value1</D>
</B>
</A>
contains(xml_doc, 'value0 INPATH (//B/C)) & value0 INPATH (//B/C))' > 0Sorry,
I posted the wrong sample xml.Please check the correct xml's below:
XML 01:
<A>
<B>
<C>value0</C>
<D>value1</D>
</B>
</A>
XML 02:
<A>
<B>
<C>value0</C>
</B>
<B>
<D>value1</D>
</B>
</A>
contains(xml_doc, 'value0 INPATH (//B/C)) & value0 INPATH (//B/C))' > 0 -
Newbie: Problem populating DataGrid from CF created xml
Hi,
I'm new to Flex and I'm working my way through the chapter 'Using HTTPService components' so I can populate a DataGrid from CF created xml.
The Document on Live docs works only partially for me - ColdFusion section under (http://livedocs.adobe.com/flex/3/html/help.html?content=data_access_2.html#195458).
The insert part works and I'm able to write to the database without a problem, but the DataGrid is not being populated and stays empty? I'm working locally, so there shouldn't be any cross-domain issue?
Hope someone is able to point into the right direction.
Thanks.Use the debugger and see if any data is received from the server on request ( I'm assuming that somewhere, you are making a request to the server that should read some data ). If data is received then you are not populating the DataGrid correctly ( most likely you are not giving the correct path to the elements that should appear in the DataGrid ); else, the server-side script is not reading any data and you should check why.
-
Problem in creating a build.xml for weblogic portal application
Team ,
I am facing problem in creating the build.xml using weblogic.BuildXMLGEN tool .
a) Below is the structure of my portal application
SrcCode
--- .metadata (eclipse plugins folder)
--- B2BApp ( Ear Content)
--- b2bPortal ( portal related file(controllers,jsp)
--- b2bsrc (java src)
b) Now I executed below utility to generate the build.xml "
java weblogic.BuildXMLGen -projectName B2BApp -username weblogic -file build.xml -password welcome1 F:\srcCode"
c) Based on the above step , build.xml got generated .
d) when I execute "ant compile" target from the command prompt , I see the below exception
ant compile
Buildfile: build.xml
compile:
+[wlcompile] [JAM] Warning: failed to resolve class AbstractJspBacking+
+[wlcompile] [JAM] Error: unexpected exception thrown:+
+[wlcompile] com.bea.util.jam.internal.javadoc.JavadocParsingException: Parsing failure in F:\b2bNew\b2bPortal\src\portlets\b2b\dmr\Picker\PickerController.java at line 58.+
e) I suspect , the problem is bcoz of classpath issues , as I generated build.xml donot have the references to dependent lib's.As build.xml looks like below :
+<target name="compile" description="Only compiles B2BApp application, no appc">+
+<wlcompile srcdir="${src.dir}" destdir="${dest.dir}">+
+<!-- These referenced libraries were not found -->+
+<!-- <library file="p13n-core-web-lib" /> -->+
+<!-- <library file="jersey-web-lib" /> -->+
+.....+
+....+
Please help me to reslove these issues .
PS: I able to deploy the application using 10.3.2 weblogic workshop ( i.e inbuilt eclipse )i JaySen ,
thanks for your response. As mentioned we added all the necessary library within the -librarydir but still we see the same error :
+[JAM] Error: unexpected exception thrown:+
com.bea.util.jam.internal.javadoc.JavadocParsingException: Parsing failure in F:\b2bNew\b2bPortal\src\portlets\typeAhead\TypeAheadController.java at line 70. Most likely, an annotation is declared whose type has not been imported.
at com.bea.util.jam.internal.javadoc.JavadocTigerDelegateImpl_150.getAnnotationTypeFor(JavadocTigerDelegateImpl_150.java:410)
at com.bea.util.jam.internal.javadoc.JavadocTigerDelegateImpl_150.extractAnnotations(JavadocTigerDelegateImpl_150.java:176)
at com.bea.util.jam.internal.javadoc.JavadocTigerDelegateImpl_150.extractAnnotations(JavadocTigerDelegateImpl_150.java:152)
at com.bea.util.jam.internal.javadoc.JavadocClassBuilder.addAnnotations(JavadocClassBuilder.java:404)
at com.bea.util.jam.internal.javadoc.JavadocClassBuilder.populate(JavadocClassBuilder.java:359)
===================
a) this is a upgrade project [ upgrading from wlp 8.1.4 to 10.3.2 ]
i.e we are using weblogic portal 10.3.2 version.
b) Searched some sites/forums regarding the above error, and it says something related to "jwsc" ant task [ i.e while compiling a webservice(JWS) ], but we see this error while compiling a normal controller(jpf) class :(
c) we are using "ant compile" target which internally calls wlcompile task , while executing wlcompile this error is thrown .
Help Appreciated
Thx,
Sarat -
How to create Matrix with Group report layout in xml
Hi,
i would be glad if anyone could tell me How to create Matrix with Group report layout in xml?
Here i am attaching the required design doc
below is the code
select COST_CMPNTCLS_CODE,
-- crd.RESOURCES,
NOMINAL_COST,
cmm.COST_MTHD_CODE,
-- crd.COST_TYPE_ID,
gps.period_code
-- ORGANIZATION_ID
from CM_RSRC_DTL crd,
gmf_period_statuses gps,
CM_MTHD_MST cmm,
CR_RSRC_MST crm,
CM_CMPT_MST ccm
where gps.period_id = crd.PERIOD_ID
and crd.cost_type_id = cmm.cost_type_id
and crd.RESOURCES = crm.RESOURCES
and crm.COST_CMPNTCLS_ID = ccm.COST_CMPNTCLS_ID
and gps.period_code in (:p_period1, :p_period2, :p_period3)
group by COST_CMPNTCLS_CODE, cmm.COST_MTHD_CODE, gps.period_code,NOMINAL_COST
order by 1,2,3,4.
The o/p of the report shoud be as given below
Period-1 Period-2 Period-3 Period-4
COMPONENT
LABOUR - DIRECT
Actual 1 2 3 4
Actual Rate 10 10 10 10
Standard Rate
Var%
DEPRICIATION-DIRECT
Actual
Actual Rate
Standard Rate
Var%
OVERHEAD - DIRECT
Actual
Actual Rate
Standard Rate
Var%
LABOUR - IN DIRECT
Actual
Actual Rate
Standard Rate
Var%
Thanks in advanceYour friend is obviously not a reliable source of HTML
information.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"Mr.Ghost" <[email protected]> wrote in
message
news:f060vi$npp$[email protected]..
> One of my friends advised me to develop my whole site on
the layout mode
> as its
> better than the standard as he says
> but I couldnot make an ordinary table with rows and
columns in th layout
> mode
> is there any one who can tell me how to?
> thanx alot
> -
Problem in creating material group
Hi All,
I have created new material group 230003-01 as per the user's request. It seems fine from my end. I transported it to production. Now user is saying material group is not working and its giving error in ME22N, 'G/L account 230003 cannot be used(please correct)'. Is anything to be modified in that balance sheet a/c?
Can anybody help me to find what could be the cause, how to resolve this problem.
Thanks in advance.
Vishal.Its giving error msg 'G/L account 230003 can't be used(Please correct).
-
Permission problem while creating cache group
Hi,
I am trying to create cache groups on SQL developer in TimesTen Cache DB. I have connected to the CacheDB using schema owner/password (say HR/HR). While creating a cache group, I am required to set cache administrator, which in turn requires this user (that is the schema user) to have the CACHE_MANAGER permission.
Is it necessary for the schema user to also be the cache_manager to be able to create a cache group?
As per the documentation, no such requirement has been mentioned, which means I am probably missing a step in between.
Also, if I connect to the DB via Cache Manager user (cacheuser/timesten with oracle as ORA pwd), I don't see the HR schema tables while creating a cache group.
Could someone clarify this?
Thanks in advance!
Regards,
Silky
Applications Engineer
Oracle India Pvt. Ltd.A cache admin user require CACHE_MANAGER privilege to do all cache operation. It has been documented here
http://docs.oracle.com/cd/E21901_01/doc/timesten.1122/e21634/prereqs.htm#CHDJBIAE
Please go through the section "Configuring a TimesTen database to cache Oracle data " for setting up cache in Timesten side.
"As the instance administrator, use the ttIsql utility to grant the cache manager user cacheuser the required privileges:
Command> GRANT CREATE SESSION, CACHE_MANAGER, CREATE ANY TABLE TO cacheuser;
Command> exit "
Hope you have run required script in Oracle side also. Section : Configuring the Oracle database to cache data in TimesTen
Regards
Rajesh -
Release Procudure - Problem while creating Release Group:Reg-
in release procedure char. were created and class also created and the char. were assigned to the class too.
But when i am creating release group the below error was coming..
Please check release classes (see long text)
and if i am see long text the below is the error
Please check release classes (see long text)
Message no. ME492
Diagnosis
Here you can assign release groups to release classes. Only one release class should be used within the release groups for overall release and the release groups without overall release in each case. However, in this instance several release classes have been used.
Procedure
Assign the release groups that were created for overall release to one release class only. Assign the release groups that were not created for overall release to a different release class.
Example:
Rel. group Rel. obj. Overall rel. Class Description
01 1 _ FRG_EBAN Group 01
02 1 _ FRG_EBAN Group 02
S1 1 X FRG_GF_EBAN Group S1
S2 1 X FRG_GF_EBAN Group S2
please see what can i do to solve the issue.
Thanks and Regards,
Rajesh.HI,
It is not possible to have more than one class define in the release
strategy but it is possible to define difference characterics within
the same class.
Please verify the following:
1) As the long text of the message says, first check that one release
class only is used within the release groups for overall release and
the release groups without overall release in each case. However, in
this instance several release classes have been used.
This means you have to have one release class only for all the
release groups for overall release.
Assign the release groups that were not created for overall release
to a different release class.
Example:
Rel. group, Rel. obj., Overall rel., Class , Description
01,,1,,_, FRG_EBAN, Group 01
02,,1,,_, FRG_EBAN, Group 02
S1,,1,,X, FRG_GF_EBAN, Group S1
S2,,1,,X, FRG_GF_EBAN, Group S2
2) If you have followed all the indications of the long text of the
message and the error is still displayed, please try to create the
new release group via the 'New Entries' button.
3) If you tried to create the release group via this button and the
error is still been displayed, please verify the implementation of
note 125316 in you system.
Best Regards,
Arminda Jack
Maybe you are looking for
-
My 4thgen iTouch will no longer charge...
My iTouch will no longer charge, at first I thought it was my charging dock on the alarm clock but it will not charge and is not recognized on the computer either. My pc says "the hardware plugged in has malfunctioned and is not recognized". Can I do
-
hi experts, i am new to these and i want know that in real time how can ale used what do abaper has to do, just creating 1. logical systems.... yet last sending data and receiving data. my question is that how could a client use this these steps plea
-
Ny people!! Can you listen to z100 on your iphone??
or how about other local ny radio stations?
-
Print:Panel To PostScript Method
I´m using labview 2011 and I want to use the method "Print : Panel To PostScript Method" and I can´t find it, I can only the others print methods. Can someone upload an example with this method, so I can copy it? I really need it. Thank you guys!
-
Some of my menu button text is rather long, and it does not fit within the button parameters. How can I adjust the button area? I go to the Layers tab, select the Highlight layer of the button and I can change its bounding box, but I am unable to cha