Error in PL/SQL generated package

Hello,
With the help of ODM (version 10,2,0,3,1 -Build 479) I created a SVM classification model, which works very fine.
After that, I generated the PL/SQL package, which returns an ORA-06512 in the call into DBMS_DATA_MINING.CREATE_MODEL.
I tried to rebuild the model in the ODM and all worked well.
I am kind of stuck here and don't know what to do next.
Thanks,
Igor

Hi,
hope you had a nice vacation.
As for the code I have a feeling I try to fill a varchar2 with text, larger than declared length. I created a standard PL/SQL package as defined in the tutorial and the error remained. I wonder how come that with the use of odminer the building process is successful while the use of PL/SQL package returns errors?
Thanks,
Igor
CREATE VIEW mining_data_build_v AS
SELECT
a.CUST_ID,
a.CUST_GENDER,
2003-a.CUST_YEAR_OF_BIRTH AGE,
a.CUST_MARITAL_STATUS,
c.COUNTRY_NAME,
a.CUST_INCOME_LEVEL,
b.EDUCATION,
b.OCCUPATION,
b.HOUSEHOLD_SIZE,
b.YRS_RESIDENCE,
b.AFFINITY_CARD,
b.BULK_PACK_DISKETTES,
b.FLAT_PANEL_MONITOR,
b.HOME_THEATER_PACKAGE,
b.BOOKKEEPING_APPLICATION,
b.PRINTER_SUPPLIES,
b.Y_BOX_GAMES,
b.OS_DOC_SET_KANJI
FROM
sh.customers a,
sh.supplementary_demographics b,
sh.countries c
WHERE
a.CUST_ID = b.CUST_ID
AND a.country_id = c.country_id
AND a.cust_id between 101501 and 103000;
using the package
CREATE PACKAGE "DATAMININGACTIVITY9" AUTHID DEFINER AS
PROCEDURE "MINING_DATA_BUI666498540_BA"(case_table IN VARCHAR2 DEFAULT '"DMUSER"."MINING_DATA_BUILD_V"',
additional_table_1 IN VARCHAR2 DEFAULT NULL,
model_name IN VARCHAR2 DEFAULT 'MINING_DATA_B80870_SV',
confusion_matrix_name IN VARCHAR2 DEFAULT '"DM4J$T504449054041_M"',
lift_result_name IN VARCHAR2 DEFAULT '"DM4J$T504449083327_L"',
roc_result_name IN VARCHAR2 DEFAULT '"DM4J$T504449092305_R"',
test_metric_name IN VARCHAR2 DEFAULT '"DM4J$MINING_D51278_TM"',
drop_output IN BOOLEAN DEFAULT FALSE);
END;
CREATE PACKAGE BODY "DATAMININGACTIVITY9" AS
c_long_sql_statement_length CONSTANT INTEGER := 32767;
SUBTYPE SQL_STATEMENT_TYPE IS VARCHAR2(32767);
SUBTYPE LONG_SQL_STATEMENT_TYPE IS DBMS_SQL.VARCHAR2A;
TYPE TABLE_ARRAY is TABLE OF VARCHAR2(62);
TYPE LSTMT_REC_TYPE IS RECORD (
lstmt dbms_sql.VARCHAR2A,
lb BINARY_INTEGER DEFAULT 1,
ub BINARY_INTEGER DEFAULT 0);
TYPE LSTMT_REC_TYPE_ARRAY is TABLE OF LSTMT_REC_TYPE;
TYPE QUERY_ARRAY is TABLE OF SQL_STATEMENT_TYPE;
TYPE TARGET_VALUES_LIST IS TABLE OF VARCHAR2(32);
TYPE VALUE_COUNT_LIST IS TABLE OF NUMBER;
PROCEDURE dump_varchar2a(vc2a dbms_sql.VARCHAR2A) IS
v_str varchar2(32767);
BEGIN
DBMS_OUTPUT.PUT_LINE('dump_varchar2a:');
FOR i IN 1..vc2a.COUNT LOOP
v_str := vc2a(i);
DBMS_OUTPUT.PUT_LINE(v_str);
END LOOP;
END;
PROCEDURE ls_append(
r_lstmt IN OUT NOCOPY LSTMT_REC_TYPE,
p_txt VARCHAR2)
IS
BEGIN
r_lstmt.ub := r_lstmt.ub + 1;
r_lstmt.lstmt(r_lstmt.ub) := p_txt;
END ls_append;
PROCEDURE ls_append(
r_lstmt IN OUT NOCOPY LSTMT_REC_TYPE,
p_txt LSTMT_REC_TYPE) IS
BEGIN
FOR i IN p_txt.lb..p_txt.ub LOOP
r_lstmt.ub := r_lstmt.ub + 1;
r_lstmt.lstmt(r_lstmt.ub) := p_txt.lstmt(i);
END LOOP;
END ls_append;
FUNCTION query_valid(
p_query VARCHAR2) RETURN BOOLEAN
IS
v_is_valid BOOLEAN;
BEGIN
BEGIN
EXECUTE IMMEDIATE p_query;
v_is_valid := TRUE;
EXCEPTION WHEN OTHERS THEN
v_is_valid := FALSE;
END;
RETURN v_is_valid;
END query_valid;
FUNCTION table_exist(
p_table_name VARCHAR2) RETURN BOOLEAN IS
BEGIN
RETURN query_valid('SELECT * FROM ' || dbms_assert.simple_sql_name(p_table_name));
END table_exist;
FUNCTION model_exist(
p_model_name VARCHAR2) RETURN BOOLEAN
IS
v_model_cnt NUMBER;
v_model_exists BOOLEAN := FALSE;
BEGIN
SELECT COUNT(*) INTO v_model_cnt FROM DM_USER_MODELS WHERE NAME = UPPER(p_model_name);
IF v_model_cnt > 0 THEN
v_model_exists := TRUE;
END IF;
--DBMS_OUTPUT.PUT_LINE('model exist: '||v_model_exists);
RETURN v_model_exists;
EXCEPTION WHEN OTHERS THEN
RETURN FALSE;
END model_exist;
PROCEDURE drop_table(
p_table_name VARCHAR2)
IS
v_stmt SQL_STATEMENT_TYPE;
BEGIN
v_stmt := 'DROP TABLE '||dbms_assert.simple_sql_name(p_table_name)||' PURGE';
EXECUTE IMMEDIATE v_stmt;
EXCEPTION WHEN OTHERS THEN
NULL;
--DBMS_OUTPUT.PUT_LINE('Failed drop_table: '||p_table_name);
END drop_table;
PROCEDURE drop_view(
p_view_name VARCHAR2)
IS
v_stmt SQL_STATEMENT_TYPE;
BEGIN
v_stmt := 'DROP VIEW '||dbms_assert.simple_sql_name(p_view_name);
EXECUTE IMMEDIATE v_stmt;
EXCEPTION WHEN OTHERS THEN
NULL;
--DBMS_OUTPUT.PUT_LINE('Failed drop_view: '||p_view_name);
END drop_view;
PROCEDURE drop_model(
p_model_name VARCHAR2)
IS
BEGIN
DBMS_DATA_MINING.DROP_MODEL(p_model_name);
EXCEPTION WHEN OTHERS THEN
NULL;
--DBMS_OUTPUT.PUT_LINE('Failed drop_model: '||p_model_name);
END drop_model;
FUNCTION create_new_temp_table_name(prefix IN VARCHAR2, len IN NUMBER)
RETURN VARCHAR2 IS
v_table_name VARCHAR2(30);
v_seed NUMBER;
BEGIN
dbms_random.seed(SYS_GUID());
v_table_name := 'DM$T' || SUBSTR(prefix, 0, 4) || dbms_random.string(NULL, len-8);
--DBMS_OUTPUT.PUT_LINE('create_new_temp_table_name: '||v_table_name);
RETURN v_table_name;
END create_new_temp_table_name;
FUNCTION create_new_temp_table_name(prefix IN VARCHAR2)
RETURN VARCHAR2 IS
BEGIN
RETURN create_new_temp_table_name(prefix, 30);
END create_new_temp_table_name;
FUNCTION ADD_TEMP_TABLE(tempTables IN OUT NOCOPY TABLE_ARRAY, temp_table IN VARCHAR2) RETURN VARCHAR2 IS
BEGIN
tempTables.EXTEND;
tempTables(tempTables.COUNT) := temp_table;
return temp_table;
END;
PROCEDURE DROP_TEMP_TABLES(tempTables IN OUT NOCOPY TABLE_ARRAY) IS
v_temp VARCHAR2(30);
BEGIN
FOR i IN 1..tempTables.COUNT LOOP
v_temp := tempTables(i);
drop_table(v_temp);
drop_view(v_temp);
tempTables.DELETE(i);
END LOOP;
END;
PROCEDURE CHECK_RESULTS(drop_output IN BOOLEAN,
result_name IN VARCHAR2) IS
BEGIN
-- drop all results if drop = true, otherwise make sure all results don't exist already (raise exception)
IF result_name IS NOT NULL THEN
IF drop_output THEN
drop_table(result_name);
drop_view(result_name);
ELSIF (table_exist(result_name)) THEN
RAISE_APPLICATION_ERROR(-20000, 'Result table exists: '||result_name);
END IF;
END IF;
END;
PROCEDURE CHECK_MODEL(drop_output IN BOOLEAN,
model_name IN VARCHAR2) IS
BEGIN
-- drop all results if drop = true, otherwise make sure all results don't exist already (raise exception)
IF model_name IS NOT NULL THEN
IF drop_output THEN
drop_model(model_name);
ELSIF (model_exist(model_name)) THEN
RAISE_APPLICATION_ERROR(-20001, 'Model exists: '||model_name);
END IF;
END IF;
END;
PROCEDURE create_table_from_query(query IN OUT NOCOPY LSTMT_REC_TYPE)
IS
v_cursor NUMBER;
v_feedback INTEGER;
BEGIN
v_cursor := DBMS_SQL.OPEN_CURSOR;
DBMS_SQL.PARSE(
c => v_cursor,
statement => query.lstmt,
lb => query.lb,
ub => query.ub,
lfflg => FALSE,
language_flag => dbms_sql.native);
v_feedback := DBMS_SQL.EXECUTE(v_cursor);
DBMS_SQL.CLOSE_CURSOR(v_cursor);
EXCEPTION WHEN OTHERS THEN
IF DBMS_SQL.IS_OPEN(v_cursor) THEN
DBMS_SQL.CLOSE_CURSOR(v_cursor);
END IF;
RAISE;
END;
FUNCTION get_row_count(tableName IN VARCHAR2)
RETURN INTEGER IS
v_stmt VARCHAR(100);
qcount INTEGER := 0;
BEGIN
v_stmt := 'SELECT COUNT(*) FROM '|| tableName;
EXECUTE IMMEDIATE v_stmt INTO qcount;
RETURN qcount;
END get_row_count;
PROCEDURE SET_EQUAL_DISTRIBUTION (
counts IN OUT VALUE_COUNT_LIST )
IS
v_minvalue NUMBER := 0;
BEGIN
FOR i IN counts.FIRST..counts.LAST
LOOP
IF ( i = counts.FIRST )
THEN
v_minvalue := counts(i);
ELSIF ( counts(i) > 0 AND v_minvalue > counts(i) )
THEN
v_minvalue := counts(i);
END IF;
END LOOP;
FOR i IN counts.FIRST..counts.LAST
LOOP
counts(i) := v_minvalue;
END LOOP;
END SET_EQUAL_DISTRIBUTION;
PROCEDURE GET_STRATIFIED_DISTRIBUTION (
table_name VARCHAR2,
attribute_name VARCHAR2,
percentage NUMBER,
attr_values IN OUT NOCOPY TARGET_VALUES_LIST,
counts IN OUT NOCOPY VALUE_COUNT_LIST,
counts_sampled IN OUT NOCOPY VALUE_COUNT_LIST )
IS
v_tmp_stmt VARCHAR2(4000);
BEGIN
v_tmp_stmt :=
'SELECT /*+ noparallel(t)*/ ' || attribute_name ||
', count(*), ROUND ( ( count(*) * ' || percentage || ') / 100.0 ) FROM '|| table_name ||
' WHERE ' || attribute_name ||' IS NOT NULL GROUP BY ' || attribute_name;
EXECUTE IMMEDIATE v_tmp_stmt
BULK COLLECT INTO attr_values, counts, counts_sampled;
END GET_STRATIFIED_DISTRIBUTION;
FUNCTION GENERATE_STRATIFIED_SQL (
v_2d_temp_view VARCHAR2,
src_table_name VARCHAR2,
attr_names TARGET_VALUES_LIST,
attribute_name VARCHAR2,
percentage NUMBER,
op VARCHAR2,
equal_distribution IN BOOLEAN DEFAULT FALSE) RETURN LSTMT_REC_TYPE
IS
v_tmp_lstmt LSTMT_REC_TYPE;
attr_values_res TARGET_VALUES_LIST;
counts_res VALUE_COUNT_LIST;
counts_sampled_res VALUE_COUNT_LIST;
tmp_str VARCHAR2(4000);
sample_count PLS_INTEGER;
BEGIN
GET_STRATIFIED_DISTRIBUTION(src_table_name, attribute_name, percentage, attr_values_res, counts_res, counts_sampled_res);
IF ( equal_distribution = TRUE )
THEN
SET_EQUAL_DISTRIBUTION(counts_sampled_res);
END IF;
v_tmp_lstmt.ub := 0; -- initialize
ls_append(v_tmp_lstmt, 'CREATE TABLE ');
ls_append(v_tmp_lstmt, v_2d_temp_view);
ls_append(v_tmp_lstmt, ' AS ');
ls_append(v_tmp_lstmt, '( SELECT ');
FOR i IN attr_names.FIRST..attr_names.LAST
LOOP
IF ( i != attr_names.FIRST )
THEN
ls_append(v_tmp_lstmt,',');
END IF;
ls_append(v_tmp_lstmt, attr_names(i));
END LOOP;
ls_append(v_tmp_lstmt, ' FROM (SELECT /*+ no_merge */ t.*, ROWNUM RNUM FROM ' || src_table_name || ' t) WHERE ' );
FOR i IN attr_values_res.FIRST..attr_values_res.LAST
LOOP
IF ( i != attr_values_res.FIRST )
THEN
tmp_str := ' OR ';
END IF;
IF ( counts_res(i) <= 2 ) THEN
sample_count := counts_res(i);
ELSE
sample_count := counts_sampled_res(i);
END IF;
tmp_str := tmp_str ||
'( ' || attribute_name || ' = ''' || attr_values_res(i) || '''' ||
' AND ORA_HASH(RNUM,(' || counts_res(i) || ' -1),12345) ' || op || sample_count || ') ';
ls_append(v_tmp_lstmt, tmp_str );
END LOOP;
ls_append(v_tmp_lstmt, ') ');
return v_tmp_lstmt;
END GENERATE_STRATIFIED_SQL;
PROCEDURE "MINING_DATA_BUI666498540_BA"(case_table IN VARCHAR2 DEFAULT '"DMUSER"."MINING_DATA_BUILD_V"',
additional_table_1 IN VARCHAR2 DEFAULT NULL,
model_name IN VARCHAR2 DEFAULT 'MINING_DATA_B80870_SV',
confusion_matrix_name IN VARCHAR2 DEFAULT '"DM4J$T504449054041_M"',
lift_result_name IN VARCHAR2 DEFAULT '"DM4J$T504449083327_L"',
roc_result_name IN VARCHAR2 DEFAULT '"DM4J$T504449092305_R"',
test_metric_name IN VARCHAR2 DEFAULT '"DM4J$MINING_D51278_TM"',
drop_output IN BOOLEAN DEFAULT FALSE)
IS
additional_data TABLE_ARRAY := TABLE_ARRAY(
additional_table_1
v_tempTables TABLE_ARRAY := TABLE_ARRAY();
v_2d_view VARCHAR2(30);
v_2d_view_build VARCHAR2(30);
v_2d_view_test VARCHAR2(30);
v_2d_temp_view VARCHAR2(30);
v_txn_views TABLE_ARRAY := TABLE_ARRAY();
v_txn_views_build TABLE_ARRAY := TABLE_ARRAY();
v_txn_views_test TABLE_ARRAY := TABLE_ARRAY();
v_txn_temp_views TABLE_ARRAY := TABLE_ARRAY();
v_case_data SQL_STATEMENT_TYPE := case_table;
v_case_id VARCHAR2(30) := 'DMR$CASE_ID';
v_tmp_lstmt LSTMT_REC_TYPE;
v_target_value VARCHAR2(4000) := '1';
v_num_quantiles NUMBER := 10;
v_build_data VARCHAR2(30);
v_test_data VARCHAR2(30);
v_prior VARCHAR2(30);
v_build_setting VARCHAR2(30);
v_apply_result VARCHAR2(30);
v_build_cm VARCHAR2(30);
v_test_cm VARCHAR2(30);
v_accuracy NUMBER;
v_area_under_curve NUMBER;
v_avg_accuracy NUMBER;
v_predictive_confidence NUMBER;
v_confusion_matrix VARCHAR2(30);
v_gen_caseId BOOLEAN := FALSE;
v_2d_txt_view VARCHAR2(30);
v_content_index VARCHAR2(30);
v_content_index_pref VARCHAR2(30);
v_category_temp_table VARCHAR2(30);
v_term_definitions VARCHAR2(30);
v_term_final_table VARCHAR2(30);
v_term_final_table_index VARCHAR2(30);
v_term_final_table_test VARCHAR2(30);
pragma autonomous_transaction;
BEGIN
CHECK_MODEL(drop_output, model_name);
CHECK_RESULTS(drop_output, test_metric_name);
CHECK_RESULTS(drop_output, confusion_matrix_name);
CHECK_RESULTS(drop_output, lift_result_name);
CHECK_RESULTS(drop_output, roc_result_name);
IF (v_gen_caseId) THEN
v_case_data := ADD_TEMP_TABLE(v_tempTables, create_new_temp_table_name('DM$T'));
EXECUTE IMMEDIATE 'CREATE TABLE '||v_case_data||' as SELECT rownum as DMR$CASE_ID, t.* FROM ('||case_table||') t ';
EXECUTE IMMEDIATE 'ALTER TABLE '||v_case_data||' add constraint '||create_new_temp_table_name('PK')||' primary key (DMR$CASE_ID)';
END IF;
----- Start: Input Data Preparation -----
v_2d_temp_view := ADD_TEMP_TABLE(v_tempTables, create_new_temp_table_name('DM$T'));
ls_append(v_tmp_lstmt, 'CREATE VIEW ');
ls_append(v_tmp_lstmt, v_2d_temp_view);
ls_append(v_tmp_lstmt, ' AS ');
ls_append(v_tmp_lstmt, ' ( ');
ls_append(v_tmp_lstmt, 'SELECT "CASE_TABLE"."CUST_ID" as "DMR$CASE_ID", TO_CHAR( "CASE_TABLE"."AFFINITY_CARD") AS "AFFINITY_CARD",
"CASE_TABLE"."AGE" AS "AGE",
TO_CHAR( "CASE_TABLE"."BOOKKEEPING_APPLICATION") AS "BOOKKEEPING_APPLICATION",
TO_CHAR( "CASE_TABLE"."BULK_PACK_DISKETTES") AS "BULK_PACK_DISKETTES",
"CASE_TABLE"."COUNTRY_NAME" AS "COUNTRY_NAME",
"CASE_TABLE"."CUST_GENDER" AS "CUST_GENDER",
"CASE_TABLE"."CUST_INCOME_LEVEL" AS "CUST_INCOME_LEVEL",
"CASE_TABLE"."CUST_MARITAL_STATUS" AS "CUST_MARITAL_STATUS",
"CASE_TABLE"."EDUCATION" AS "EDUCATION",
TO_CHAR( "CASE_TABLE"."FLAT_PANEL_MONITOR") AS "FLAT_PANEL_MONITOR",
TO_CHAR( "CASE_TABLE"."HOME_THEATER_PACKAGE") AS "HOME_THEATER_PACKAGE",
"CASE_TABLE"."HOUSEHOLD_SIZE" AS "HOUSEHOLD_SIZE",
"CASE_TABLE"."OCCUPATION" AS "OCCUPATION",
TO_CHAR( "CASE_TABLE"."OS_DOC_SET_KANJI") AS "OS_DOC_SET_KANJI",
TO_CHAR( "CASE_TABLE"."Y_BOX_GAMES") AS "Y_BOX_GAMES",
"CASE_TABLE"."YRS_RESIDENCE" AS "YRS_RESIDENCE" FROM (' || v_case_data || ') CASE_TABLE ');
ls_append(v_tmp_lstmt, ' ) ');
create_table_from_query(v_tmp_lstmt);
v_2d_view := v_2d_temp_view;
----- End: Input Data Preparation -----
----- Start: Outlier Treatment Transformation -----
v_tmp_lstmt.ub := 0; -- initialize
v_2d_temp_view := ADD_TEMP_TABLE(v_tempTables, create_new_temp_table_name('DM$T'));
ls_append(v_tmp_lstmt, 'CREATE VIEW ');
ls_append(v_tmp_lstmt, v_2d_temp_view);
ls_append(v_tmp_lstmt, ' AS ');
ls_append(v_tmp_lstmt, ' ( ');
ls_append(v_tmp_lstmt, 'SELECT
"AFFINITY_CARD",
( CASE WHEN "AGE" < -1.3 THEN -1.3
WHEN "AGE" >= -1.3 AND "AGE" <= 79.77 THEN "AGE"
WHEN "AGE" > 79.77 THEN 79.77
end) "AGE"
"BOOKKEEPING_APPLICATION",
"BULK_PACK_DISKETTES",
"COUNTRY_NAME",
"CUST_GENDER",
"CUST_INCOME_LEVEL",
"CUST_MARITAL_STATUS",
"DMR$CASE_ID",
"EDUCATION",
"FLAT_PANEL_MONITOR",
"HOME_THEATER_PACKAGE",
"HOUSEHOLD_SIZE",
"OCCUPATION",
"OS_DOC_SET_KANJI",
"Y_BOX_GAMES",
( CASE WHEN "YRS_RESIDENCE" < -1.7 THEN -1.7
WHEN "YRS_RESIDENCE" >= -1.7 AND "YRS_RESIDENCE" <= 10 THEN "YRS_RESIDENCE"
WHEN "YRS_RESIDENCE" > 10 THEN 10
end) "YRS_RESIDENCE"
FROM ');
ls_append(v_tmp_lstmt, v_2d_view);
ls_append(v_tmp_lstmt, ' ) ');
create_table_from_query(v_tmp_lstmt);
v_2d_view := v_2d_temp_view;
----- End: Outlier Treatment Transformation -----
----- Start: Missing Values Transformation -----
v_tmp_lstmt.ub := 0; -- initialize
v_2d_temp_view := ADD_TEMP_TABLE(v_tempTables, create_new_temp_table_name('DM$T'));
ls_append(v_tmp_lstmt, 'CREATE VIEW ');
ls_append(v_tmp_lstmt, v_2d_temp_view);
ls_append(v_tmp_lstmt, ' AS ');
ls_append(v_tmp_lstmt, ' ( ');
ls_append(v_tmp_lstmt, 'SELECT
DECODE ( "AGE" , NULL,
39.23831 , "AGE" ) "AGE" ,
DECODE ( "YRS_RESIDENCE" , NULL,
4.128 , "YRS_RESIDENCE" ) "YRS_RESIDENCE" ,
DECODE ( "BOOKKEEPING_APPLICATION" , NULL,
''1'' , "BOOKKEEPING_APPLICATION" ) "BOOKKEEPING_APPLICATION" ,
DECODE ( "BULK_PACK_DISKETTES" , NULL,
''1'' , "BULK_PACK_DISKETTES" ) "BULK_PACK_DISKETTES" ,
DECODE ( "COUNTRY_NAME" , NULL,
''United States of America'' , "COUNTRY_NAME" ) "COUNTRY_NAME" ,
DECODE ( "CUST_GENDER" , NULL,
''M'' , "CUST_GENDER" ) "CUST_GENDER" ,
DECODE ( "CUST_INCOME_LEVEL" , NULL,
''J: 190,000 - 249,999'' , "CUST_INCOME_LEVEL" ) "CUST_INCOME_LEVEL" ,
DECODE ( "CUST_MARITAL_STATUS" , NULL,
''Married'' , "CUST_MARITAL_STATUS" ) "CUST_MARITAL_STATUS" ,
DECODE ( "EDUCATION" , NULL,
''HS-grad'' , "EDUCATION" ) "EDUCATION" ,
DECODE ( "FLAT_PANEL_MONITOR" , NULL,
''1'' , "FLAT_PANEL_MONITOR" ) "FLAT_PANEL_MONITOR" ,
DECODE ( "HOME_THEATER_PACKAGE" , NULL,
''1'' , "HOME_THEATER_PACKAGE" ) "HOME_THEATER_PACKAGE" ,
DECODE ( "HOUSEHOLD_SIZE" , NULL,
''3'' , "HOUSEHOLD_SIZE" ) "HOUSEHOLD_SIZE" ,
DECODE ( "OCCUPATION" , NULL,
''Exec.'' , "OCCUPATION" ) "OCCUPATION" ,
DECODE ( "OS_DOC_SET_KANJI" , NULL,
''0'' , "OS_DOC_SET_KANJI" ) "OS_DOC_SET_KANJI" ,
DECODE ( "Y_BOX_GAMES" , NULL,
''0'' , "Y_BOX_GAMES" ) "Y_BOX_GAMES" ,
"AFFINITY_CARD",
"DMR$CASE_ID"
FROM ');
ls_append(v_tmp_lstmt, v_2d_view);
ls_append(v_tmp_lstmt, ' ) ');
create_table_from_query(v_tmp_lstmt);
v_2d_view := v_2d_temp_view;
----- End: Missing Values Transformation -----
----- Start: Normalize Transformation -----
v_tmp_lstmt.ub := 0; -- initialize
v_2d_temp_view := ADD_TEMP_TABLE(v_tempTables, create_new_temp_table_name('DM$T'));
ls_append(v_tmp_lstmt, 'CREATE VIEW ');
ls_append(v_tmp_lstmt, v_2d_temp_view);
ls_append(v_tmp_lstmt, ' AS ');
ls_append(v_tmp_lstmt, ' ( ');
ls_append(v_tmp_lstmt, 'SELECT
"BOOKKEEPING_APPLICATION",
"BULK_PACK_DISKETTES",
"COUNTRY_NAME",
"CUST_GENDER",
"CUST_INCOME_LEVEL",
"CUST_MARITAL_STATUS",
"EDUCATION",
"FLAT_PANEL_MONITOR",
"HOME_THEATER_PACKAGE",
"HOUSEHOLD_SIZE",
"OCCUPATION",
"OS_DOC_SET_KANJI",
"Y_BOX_GAMES",
"AFFINITY_CARD",
"DMR$CASE_ID",
LEAST(1, GREATEST(0, (ROUND(("AGE" - 17.0) / (79.77 - 17.0),15) * (1.0 - 0.0) + 0.0))) "AGE",
LEAST(1, GREATEST(0, (ROUND(("YRS_RESIDENCE" - 0.0) / (10.0 - 0.0),15) * (1.0 - 0.0) + 0.0))) "YRS_RESIDENCE"
FROM ');
ls_append(v_tmp_lstmt, v_2d_view);
ls_append(v_tmp_lstmt, ' ) ');
create_table_from_query(v_tmp_lstmt);
v_2d_view := v_2d_temp_view;
----- End: Normalize Transformation -----
----- Start: Stratified Split Transformation -----
v_tmp_lstmt.ub := 0; -- initialize
v_2d_temp_view := ADD_TEMP_TABLE(v_tempTables, create_new_temp_table_name('DM$T'));
ls_append(v_tmp_lstmt, GENERATE_STRATIFIED_SQL(v_2d_temp_view, v_2d_view, TARGET_VALUES_LIST('"BOOKKEEPING_APPLICATION"',
'"BULK_PACK_DISKETTES"',
'"COUNTRY_NAME"',
'"CUST_GENDER"',
'"CUST_INCOME_LEVEL"',
'"CUST_MARITAL_STATUS"',
'"EDUCATION"',
'"FLAT_PANEL_MONITOR"',
'"HOME_THEATER_PACKAGE"',
'"HOUSEHOLD_SIZE"',
'"OCCUPATION"',
'"OS_DOC_SET_KANJI"',
'"Y_BOX_GAMES"',
'"AFFINITY_CARD"',
'"DMR$CASE_ID"',
'"AGE"',
'"YRS_RESIDENCE"'), '"AFFINITY_CARD"', 60, ' < ' ));
create_table_from_query(v_tmp_lstmt);
v_2d_view_build := v_2d_temp_view;
v_tmp_lstmt.ub := 0; -- initialize
v_2d_temp_view := ADD_TEMP_TABLE(v_tempTables, create_new_temp_table_name('DM$T'));
ls_append(v_tmp_lstmt, GENERATE_STRATIFIED_SQL(v_2d_temp_view, v_2d_view, TARGET_VALUES_LIST('"BOOKKEEPING_APPLICATION"',
'"BULK_PACK_DISKETTES"',
'"COUNTRY_NAME"',
'"CUST_GENDER"',
'"CUST_INCOME_LEVEL"',
'"CUST_MARITAL_STATUS"',
'"EDUCATION"',
'"FLAT_PANEL_MONITOR"',
'"HOME_THEATER_PACKAGE"',
'"HOUSEHOLD_SIZE"',
'"OCCUPATION"',
'"OS_DOC_SET_KANJI"',
'"Y_BOX_GAMES"',
'"AFFINITY_CARD"',
'"DMR$CASE_ID"',
'"AGE"',
'"YRS_RESIDENCE"'), '"AFFINITY_CARD"', 60, ' >= ' ));
create_table_from_query(v_tmp_lstmt);
v_2d_view_test := v_2d_temp_view;
----- End: Stratified Split Transformation -----
----- Start: Mining Data Preparation -----
v_tmp_lstmt.ub := 0; -- initialize
v_2d_temp_view := ADD_TEMP_TABLE(v_tempTables, create_new_temp_table_name('DM$T'));
ls_append(v_tmp_lstmt, 'CREATE VIEW ');
ls_append(v_tmp_lstmt, v_2d_temp_view);
ls_append(v_tmp_lstmt, ' AS ');
ls_append(v_tmp_lstmt, ' ( ');
ls_append(v_tmp_lstmt,
'SELECT caseTable."AFFINITY_CARD"
, caseTable."AGE"
, caseTable."BOOKKEEPING_APPLICATION"
, caseTable."BULK_PACK_DISKETTES"
, caseTable."COUNTRY_NAME"
, caseTable."CUST_GENDER"
, caseTable."CUST_INCOME_LEVEL"
, caseTable."CUST_MARITAL_STATUS"
, caseTable."DMR$CASE_ID"
, caseTable."EDUCATION"
, caseTable."FLAT_PANEL_MONITOR"
, caseTable."HOME_THEATER_PACKAGE"
, caseTable."HOUSEHOLD_SIZE"
, caseTable."OCCUPATION"
, caseTable."OS_DOC_SET_KANJI"
, caseTable."Y_BOX_GAMES"
, caseTable."YRS_RESIDENCE"
FROM ('); ls_append(v_tmp_lstmt, v_2d_view_build); ls_append(v_tmp_lstmt, ') caseTable
ls_append(v_tmp_lstmt, ' ) ');
create_table_from_query(v_tmp_lstmt);
v_2d_view_build := v_2d_temp_view;
v_tmp_lstmt.ub := 0; -- initialize
v_2d_temp_view := ADD_TEMP_TABLE(v_tempTables, create_new_temp_table_name('DM$T'));
ls_append(v_tmp_lstmt, 'CREATE VIEW ');
ls_append(v_tmp_lstmt, v_2d_temp_view);
ls_append(v_tmp_lstmt, ' AS ');
ls_append(v_tmp_lstmt, ' ( ');
ls_append(v_tmp_lstmt,
'SELECT caseTable."AFFINITY_CARD"
, caseTable."AGE"
, caseTable."BOOKKEEPING_APPLICATION"
, caseTable."BULK_PACK_DISKETTES"
, caseTable."COUNTRY_NAME"
, caseTable."CUST_GENDER"
, caseTable."CUST_INCOME_LEVEL"
, caseTable."CUST_MARITAL_STATUS"
, caseTable."DMR$CASE_ID"
, caseTable."EDUCATION"
, caseTable."FLAT_PANEL_MONITOR"
, caseTable."HOME_THEATER_PACKAGE"
, caseTable."HOUSEHOLD_SIZE"
, caseTable."OCCUPATION"
, caseTable."OS_DOC_SET_KANJI"
, caseTable."Y_BOX_GAMES"
, caseTable."YRS_RESIDENCE"
FROM ('); ls_append(v_tmp_lstmt, v_2d_view_test); ls_append(v_tmp_lstmt, ') caseTable
ls_append(v_tmp_lstmt, ' ) ');
create_table_from_query(v_tmp_lstmt);
v_2d_view_test := v_2d_temp_view;
v_build_data := v_2d_view_build;
v_test_data := v_2d_view_test;
----- End: Mining Data Preparation -----
v_prior := ADD_TEMP_TABLE(v_tempTables, create_new_temp_table_name('DM$T'));
EXECUTE IMMEDIATE 'CREATE TABLE ' || v_prior || ' (TARGET_VALUE VARCHAR2(4000), PRIOR_PROBABILITY NUMBER)';
EXECUTE IMMEDIATE 'INSERT INTO ' || v_prior || ' VALUES (''0'', 0.25333333333333335)';
EXECUTE IMMEDIATE 'INSERT INTO ' || v_prior || ' VALUES (''1'', 0.7466666666666666)';
COMMIT;
v_build_setting := ADD_TEMP_TABLE(v_tempTables, create_new_temp_table_name('DM$T'));
EXECUTE IMMEDIATE 'CREATE TABLE ' || v_build_setting || ' (setting_name VARCHAR2(30), setting_value VARCHAR2(128))';
EXECUTE IMMEDIATE 'INSERT INTO ' || v_build_setting || ' VALUES (''JDMS_TARGET_NAME'', ''"AFFINITY_CARD"'')';
EXECUTE IMMEDIATE 'INSERT INTO ' || v_build_setting || ' VALUES (''SVMS_ACTIVE_LEARNING'', ''SVMS_AL_ENABLE'')';
EXECUTE IMMEDIATE 'INSERT INTO ' || v_build_setting || ' VALUES (''JDMS_FUNCTION_TYPE'', ''CLASSIFICATION'')';
EXECUTE IMMEDIATE 'INSERT INTO ' || v_build_setting || ' VALUES (''ALGO_NAME'', ''ALGO_SUPPORT_VECTOR_MACHINES'')';
EXECUTE IMMEDIATE 'INSERT INTO ' || v_build_setting || ' VALUES (''SVMS_CONV_TOLERANCE'', ''0.0010'')';
EXECUTE IMMEDIATE 'INSERT INTO ' || v_build_setting || ' VALUES (''CLAS_PRIORS_TABLE_NAME'', :priorTable)' USING v_prior;
COMMIT;
-- BUILD MODEL
DBMS_DATA_MINING.CREATE_MODEL(
model_name => model_name,
mining_function => dbms_data_mining.classification,
data_table_name => v_build_data,
case_id_column_name => v_case_id,
target_column_name => 'AFFINITY_CARD',
settings_table_name => v_build_setting);
v_test_cm := ADD_TEMP_TABLE(v_tempTables, create_new_temp_table_name('DM$T'));
EXECUTE IMMEDIATE 'CREATE TABLE ' || v_test_cm || ' (actual_target_value VARCHAR2(4000), predicted_target_value VARCHAR2(4000), cost NUMBER)';
EXECUTE IMMEDIATE 'INSERT INTO ' || v_test_cm || ' VALUES (''0'', ''0'', 0.0)';
EXECUTE IMMEDIATE 'INSERT INTO ' || v_test_cm || ' VALUES (''0'', ''1'', 1.0)';
EXECUTE IMMEDIATE 'INSERT INTO ' || v_test_cm || ' VALUES (''1'', ''0'', 1.0)';
EXECUTE IMMEDIATE 'INSERT INTO ' || v_test_cm || ' VALUES (''1'', ''1'', 0.0)';
COMMIT;
-- TEST MODEL
IF (test_metric_name IS NOT NULL) THEN
-- CREATE APPLY RESULT FOR TEST
v_apply_result := ADD_TEMP_TABLE(v_tempTables, create_new_temp_table_name('DM$T'));
DBMS_DATA_MINING.APPLY(
model_name => model_name,
data_table_name => v_test_data,
case_id_column_name => v_case_id,
result_table_name => v_apply_result);
EXECUTE IMMEDIATE 'CREATE TABLE ' || test_metric_name || ' (METRIC_NAME VARCHAR2(30), METRIC_VARCHAR_VALUE VARCHAR2(31), METRIC_NUM_VALUE NUMBER)';
EXECUTE IMMEDIATE 'INSERT INTO ' || test_metric_name || ' (METRIC_NAME, METRIC_VARCHAR_VALUE) VALUES (''MODEL_NAME'', :model)' USING model_name;
EXECUTE IMMEDIATE 'INSERT INTO ' || test_metric_name || ' (METRIC_NAME, METRIC_VARCHAR_VALUE) VALUES (''TEST_DATA_NAME'', :test_data)' USING v_test_data;
EXECUTE IMMEDIATE 'INSERT INTO ' || test_metric_name || ' (METRIC_NAME, METRIC_VARCHAR_VALUE) VALUES (''MINING_FUNCTION'', ''CLASSIFICATION'')';
EXECUTE IMMEDIATE 'INSERT INTO ' || test_metric_name || ' (METRIC_NAME, METRIC_VARCHAR_VALUE) VALUES (''TARGET_ATTRIBUTE'', :target)' USING 'AFFINITY_CARD';
EXECUTE IMMEDIATE 'INSERT INTO ' || test_metric_name || ' (METRIC_NAME, METRIC_VARCHAR_VALUE) VALUES (''POSITIVE_TARGET_VALUE'', :target_value)' USING v_target_value;
COMMIT;
IF confusion_matrix_name IS NULL THEN
v_confusion_matrix := ADD_TEMP_TABLE(v_tempTables, create_new_temp_table_name('DM$T'));
ELSE
v_confusion_matrix := confusion_matrix_name;
END IF;
DBMS_DATA_MINING.COMPUTE_CONFUSION_MATRIX (
accuracy => v_accuracy,
apply_result_table_name => v_apply_result,
target_table_name => v_test_data,
case_id_column_name => v_case_id,
target_column_name => 'AFFINITY_CARD',
confusion_matrix_table_name => v_confusion_matrix,
score_column_name => 'PREDICTION',
score_criterion_column_name => 'PROBABILITY',
cost_matrix_table_name => v_test_cm);
-- DBMS_OUTPUT.PUT_LINE('**** MODEL ACCURACY ****: ' || ROUND(accuracy, 4));
IF (confusion_matrix_name IS NOT NULL) THEN
EXECUTE IMMEDIATE 'INSERT INTO ' || test_metric_name || ' (METRIC_NAME, METRIC_NUM_VALUE) VALUES (''ACCURACY'', :accuracy)' USING v_accuracy;
EXECUTE IMMEDIATE 'INSERT INTO ' || test_metric_name || ' (METRIC_NAME, METRIC_VARCHAR_VALUE) VALUES (''CONFUSION_MATRIX_TABLE'', :confusion_matrix_name)' USING confusion_matrix_name;
COMMIT;
-- Average Accuracy
EXECUTE IMMEDIATE '
WITH
a as
(SELECT a.actual_target_value, sum(a.value) recall_total
FROM ' || confusion_matrix_name || ' a
group by a.actual_target_value)
b as
(SELECT count(distinct b.actual_target_value) num_recalls
FROM ' || confusion_matrix_name || ' b)
c as
(SELECT c.actual_target_value, value
FROM ' || confusion_matrix_name || ' c
where actual_target_value = predicted_target_value)
d as
(SELECT sum(c.value/a.recall_total) tot_accuracy
FROM a, c
where a.actual_target_value = c.actual_target_value)
SELECT d.tot_accuracy/b.num_recalls * 100 avg_accuracy
FROM b, d' INTO v_avg_accuracy;
EXECUTE IMMEDIATE 'INSERT INTO ' || test_metric_name || ' (METRIC_NAME, METRIC_NUM_VALUE) VALUES (''AVG_ACCURACY'', :avg_accuracy)' USING v_avg_accuracy;
COMMIT;
END IF;
-- Predictive Confidence
EXECUTE IMMEDIATE '
WITH
a as
(SELECT a.actual_target_value, sum(a.value) recall_total
FROM ' || v_confusion_matrix || ' a
group by a.actual_target_value)
b as
(SELECT count(distinct b.actual_target_value) num_classes
FROM ' || v_confusion_matrix || ' b)
c as
(SELECT c.actual_target_value, value
FROM ' || v_confusion_matrix || ' c
where actual_target_value = predicted_target_value)
d as
(SELECT sum(c.value/a.recall_total) tot_accuracy
FROM a, c
where a.actual_target_value = c.actual_target_value)
SELECT (1 - (1 - d.tot_accuracy/b.num_classes) / GREATEST(0.0001, ((b.num_classes-1)/b.num_classes))) * 100
FROM b, d' INTO v_predictive_confidence;
EXECUTE IMMEDIATE 'INSERT INTO ' || test_metric_name || ' (METRIC_NAME, METRIC_NUM_VALUE) VALUES (''PREDICTIVE_CONFIDENCE'', :predictive_confidence)' USING v_predictive_confidence;
COMMIT;
IF lift_result_name IS NOT NULL AND v_target_value IS NOT NULL THEN
DBMS_DATA_MINING.COMPUTE_LIFT (
apply_result_table_name => v_apply_result,
target_table_name => v_test_data,
case_id_column_name => v_case_id,
target_column_name => 'AFFINITY_CARD',
lift_table_name => lift_result_name,
positive_target_value => v_target_value,
num_quantiles => v_num_quantiles,
cost_matrix_table_name => v_test_cm);
EXECUTE IMMEDIATE 'INSERT INTO ' || test_metric_name || ' (METRIC_NAME, METRIC_VARCHAR_VALUE) VALUES (''LIFT_TABLE'', :lift_result_name)' USING lift_result_name;
COMMIT;
END IF;
IF roc_result_name IS NOT NULL AND v_target_value IS NOT NULL THEN
DBMS_DATA_MINING.COMPUTE_ROC (
roc_area_under_curve => v_area_under_curve,
apply_result_table_name => v_apply_result,
target_table_name => v_test_data,
case_id_column_name => v_case_id,
target_column_name => 'AFFINITY_CARD',
roc_table_name => roc_result_name,
positive_target_value => v_target_value,
score_column_name => 'PREDICTION',
score_criterion_column_name => 'PROBABILITY');
-- DBMS_OUTPUT.PUT_LINE('**** AREA UNDER ROC CURVE ****: ' || area_under_curve );
EXECUTE IMMEDIATE 'INSERT INTO ' || test_metric_name || ' (METRIC_NAME, METRIC_VARCHAR_VALUE) VALUES (''ROC_TABLE'', :roc_result_name)' USING roc_result_name;
EXECUTE IMMEDIATE 'INSERT INTO ' || test_metric_name || ' (METRIC_NAME, METRIC_NUM_VALUE) VALUES (''AREA_UNDER_CURVE'', :v_area_under_curve)' USING v_area_under_curve;
COMMIT;
END IF;
END IF;
DROP_TEMP_TABLES(v_tempTables);
EXCEPTION WHEN OTHERS THEN
DROP_TEMP_TABLES(v_tempTables);
RAISE;
END;
END;
/

Similar Messages

  • CDS-11025 Error: Oracle Designer generation error with PL/SQL package

    Hi friends,
    We tried to generate a database package from Oracle Designer (10.1.2.6) and getting "syntax errors" but the package has no syntax errors when we copy and paste the code and compile in TOAD (10.6)
    Error from Designer:
    Server Generator 10.1.2.6 (Build 10.1.2.11.12) , Wed Oct 17 10:58:43 2012
    Copyright (c) Oracle Corporation 1995, 2010. All rights reserved.
    CDS-11025 Error: The PL/SQL within PACKAGE BODY AVP_WATER_ANALYSIS_V has syntax errors - At token 'END', around:
    ...te_dist.VLV_INTL_ID;
    END LOOP;
    Processing Complete: 1 error(s), 0 warning(s)
    code snippet from the Error message:
    FOR rec_update_dist IN cur_update_dist (i_anlyd_intl_id,
    i_iterd_intl_id,
    i_phsed_intl_id,
    i_wtrc_intl_id)
    LOOP
    UPDATE AVP_VALVE AvpValve
    SET AvpValve.DIST_FROM_EDGE = rec_update_dist.DIST_FROM_EDGE
    WHERE AvpValve.ANLYD_INTL_ID = rec_update_dist.ANLYD_INTL_ID
    AND AvpValve.ITERD_INTL_ID = rec_update_dist.ITERD_INTL_ID
    AND AvpValve.PHSED_INTL_ID = rec_update_dist.PHSED_INTL_ID
    AND AvpValve.WTRC_INTL_ID = rec_update_dist.WTRC_INTL_ID
    AND AvpValve.VLV_INTL_ID = rec_update_dist.VLV_INTL_ID;
    END LOOP;
    Thanks for any feedback,
    Jim

    Found the problem.
    It was an issue with the CURSOR with the SELECT ... FROM (SELECT CASE WHEN THEN ELSE END). After swithing to the DECODE statement, Designer is able to generate the package.
    CASE
    WHEN ISOLATION_IND = 'Y' THEN
    'A'
    WHEN OPERATED_IND = 'Y' THEN
    'B'
    ELSE
    'C'
    END
    decode(ISOLATION_IND,'Y','A',decode(OPERATED_IND,'Y','B','C'))
    However, still strange to me that Designer doesn't like the CASE as part of SELECT.
    Edited by: user476620 on Oct 18, 2012 8:13 PM

  • Error with Oracle10G Sql Browser while execute package with exec clause

    Dear Experts,
    Please tell me why i am getting Error ORA- 00900 while executing this script with Oracle10G Sql Browserbut not getting error with Oracle9i Sql Browser
    var r1 refcursor;
    var r2 refcursor;
    exec ETKT_CANCEL_TICKET_PCK.GET_DATA(:r1,:r2,'05052007/00000003/0000994','23');

    It would be interesting to know, what Sql Browser is.

  • Oracle error 1403:java.sql.SQLException: ORA-01403: no data found ORA-06512

    My customer has an issue, and error message as below:
    <PRE>Oracle error 1403: java.sql.SQLException: ORA-01403: no data found ORA-06512:
    at line 1 has been detected in FND_SESSION_MANAGEMENT.CHECK_SESSION. Your
    session is no longer valid.</PRE>
    Servlet error: An exception occurred. The current application deployment descriptors do not allow for including it in this response. Please consult the application log for details.
    And customer’s statement is: Upgrade from EBS 11.5.10 to 12.1.3. Login the EBS, open any forms and put it in idle. Then refresh the form, error happens
    Then, I checked ISP, and found two notes:
    Note 1284094.1: Web ADI Journal Upload Errors With ORA-01403 No Data Found ORA-06512 At Line Has Been Detected In FND_SESSION_MANAGEMENT.CHECK_SESSION.Your Session Is No Longer Valid (Doc ID 1284094.1)
    Note 1319380.1: Webadi Gl Journal Posting Errors After Atg R12.1.3 (Doc ID 1319380.1)
    But these two notes are both WebADI.
    Following is the data collection from customer:
    1. Run UNIX command to check .class file version:
    strings $JAVA_TOP/oracle/apps/bne/utilities/BneViewerUtils.class | grep Header--> S$Header: BneViewerUtils.java 120.33.12010000.17 2010/11/21 22:19:58 amgonzal s$
    2. Run SQL to check you patch level:
    SELECT * FROM fnd_product_installations WHERE patch_level LIKE '%BNE%';--> R12.BNE.B.3
    3. Run SQL to check patch '9940148' applied or not:
    SELECT * FROM ad_bugs ad WHERE ad.bug_number = '9940148';--> No Rows returned
    4. Run SQL to check patch '9785477' applied or not:
    SELECT * FROM ad_bugs WHERE bug_number in ('9785477');-->
    BUG_ID APPLICATION_SHORT_NAME BUG_NUMBER CREATION_DATE ARU_RELEASE_NAME CREATED_BY LAST_UPDATE_DATE LAST_UPDATED_BY TRACKABLE_ENTITY_ABBR BASELINE_NAME GENERIC_PATCH LANGUAGE
    576982 11839583 2011/8/7 上午 08:20:36 R12 5 2011/8/7 上午 08:20:36 5 pjt B n US
    516492 9785477 2011/6/12 上午 11:42:45 R12 5 2011/6/12 上午 11:42:45 5 bne B n US
    546109 9785477 2011/6/12 下午 01:17:41 R12 5 2011/6/12 下午 01:17:41 5 bne B n ZHT
    5. Run SQL to check the status of object ‘FND_SESSION_MANAGEMENT’
    SELECT * FROM dba_objects do WHERE do.object_name = 'FND_SESSION_MANAGEMENT';-->
    OWNER OBJECT_NAME SUBOBJECT_NAME OBJECT_ID DATA_OBJECT_ID OBJECT_TYPE CREATED LAST_DDL_TIME TIMESTAMP STATUS TEMPORARY GENERATED SECONDARY NAMESPACE EDITION_NAME
    APPS FND_SESSION_MANAGEMENT 219425 PACKAGE 2004/10/30 下午 01:52:35 2011/8/7 上午 08:18:39 2011-08-07:08:18:26 VALID N N N 1
    APPS FND_SESSION_MANAGEMENT 226815 PACKAGE BODY 2004/10/31 上午 01:05:40 2011/8/7 上午 08:18:54 2011-08-07:08:18:27 VALID N N N 2
    So, my question is: Customer’s BneViewerUtils.java version is already 120.33.12010000.17, which greater than 120.33.12010000.14. Is there any others solutions for this issue? Does customer still need to apply patch '9940148' based on action plan of
    Note 1284094.1: Web ADI Journal Upload Errors With ORA-01403 No Data Found ORA-06512 At Line Has Been Detected In FND_SESSION_MANAGEMENT.CHECK_SESSION.Your Session Is No Longer Valid?
    Customer's EBS version is 12.1.3; OS is HP-UX PA-RISC (64-bit); DB is 11.2.0.2.
    Thanks,
    Jackie

    And customer’s statement is: Upgrade from EBS 11.5.10 to 12.1.3. Login the EBS, open any forms and put it in idle. Then refresh the form, error happens
    Idle for how long? Is the issue with all sessions?
    Please see these docs/links
    User Sessions Get Timed Out Before Idle Time Parameter Values Are Reached [ID 1306678.1]
    https://forums.oracle.com/forums/search.jspa?threadID=&q=Timeout+AND+R12&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Then, I checked ISP, and found two notes:
    Note 1284094.1: Web ADI Journal Upload Errors With ORA-01403 No Data Found ORA-06512 At Line Has Been Detected In FND_SESSION_MANAGEMENT.CHECK_SESSION.Your Session Is No Longer Valid (Doc ID 1284094.1)
    Note 1319380.1: Webadi Gl Journal Posting Errors After Atg R12.1.3 (Doc ID 1319380.1)
    But these two notes are both WebADI.Can you find any details about the error in Apache log files and in the application.log file?
    Any errors in the database log file?
    So, my question is: Customer’s BneViewerUtils.java version is already 120.33.12010000.17, which greater than 120.33.12010000.14. Is there any others solutions for this issue? No.
    Does customer still need to apply patch '9940148' based on action plan ofIf the issue not with Web ADI, then ignore this patch. However, if you use Web ADI you could query AD_BUGS table and verify if you have the patch applied.
    Note 1284094.1: Web ADI Journal Upload Errors With ORA-01403 No Data Found ORA-06512 At Line Has Been Detected In FND_SESSION_MANAGEMENT.CHECK_SESSION.Your Session Is No Longer Valid?
    Customer's EBS version is 12.1.3; OS is HP-UX PA-RISC (64-bit); DB is 11.2.0.2.If you could not find any details in the logs, please enable debug as per (R12, 12.1 - How To Enable and Collect Debug for HTTP, OC4J and OPMN [ID 422419.1]).
    Thanks,
    Hussein

  • Error  in PL/SQL Webservice Creation

    Error in PL/SQL WebService Creation
    We are using Jdeveloper Oracle IDE 9.0.3.9.93.
    I am trying to convert a simple function inside a package whose specification is as follows:
    package opera_util as
    Function get_codes_in_string
    (in_select_statement in varchar2,
    in_separator in varchar2 default ',' ) return varchar2;
    end opera_util;
    This gives me following error
    java.lang.NullPointerException
    void oracle.jdevimpl.webservices.generator.WrapperClassGenerator.wrapTimestamps(oracle.jdeveloper.model.JProject, java.lang.String, java.util.List)
    WrapperClassGenerator.java:417
    java.util.List oracle.jdevimpl.webservices.generator.WrapperClassGenerator.generate(oracle.jdeveloper.model.JProject, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.util.List, oracle.ide.dialogs.ProgressBar)
    WrapperClassGenerator.java:340
    void oracle.jdevimpl.webservices.generator.SPWebServiceGenerator.generateImpl(oracle.jdevimpl.webservices.wizard.publish.SPPublishModel, oracle.jdevimpl.webservices.util.JavaXSDTypeMap)
    SPWebServiceGenerator.java:234
    void oracle.jdevimpl.webservices.generator.SPWebServiceGenerator.access$1000071(oracle.jdevimpl.webservices.generator.SPWebServiceGenerator, oracle.jdevimpl.webservices.wizard.publish.SPPublishModel, oracle.jdevimpl.webservices.util.JavaXSDTypeMap)
    SPWebServiceGenerator.java:68
    void oracle.jdevimpl.webservices.generator.SPWebServiceGenerator$1.run()
    SPWebServiceGenerator.java:155
    void oracle.ide.dialogs.ProgressBar.run()
    ProgressBar.java:522
    void java.lang.Thread.run()
    Thread.java:484
    Any Ideas?

    Hi,
    Could you re-try publication, running jdevw.exe instead of jdev.exe, please? This will send some extra information to a console.
    I have a feeling something may be going wrong when JPublisher and SQLJ is invoked by the generator, and they both print out errors and warnings to the console. Post the information from the console here and we'll be able to figure out what's going wrong.
    Thanks,
    Alan.

  • Error message when compiling invalid packages and procedures

    Hi.
    I have a routine for copying certain data from a production database to a test database. To do this I disable constraints and triggers, truncate tables, copy tables and enable triggers and constraints again.
    Now several of my functions, procedures and packages are made invalid and marked with a red cross. In SQL Developer I can compile invalid functions, procedures and packages. When I compile functions it works fine, but when compiling procedures and packages I get the following error message:
    An error was encountered performing the requested operation:
    ORA-00904: "ATTRIBUTE": Invalid identifier
    Vendor code 904
    When I click OK on this message I get a confirmation saying:
    Packages have been compiled with #0.CNT# errors.
    I had this error in both the previous and the new version. Is this a bug or is there a way to come around it? When I copy and modify the SQL generated to perform this task and run it in SQL Plus it works fine.
    I use Windows 2000 5.00.2195 Service Pack 4, SQL Developer version 1.2.1, Oracle 9.2.0.8.0 and Java version 1.5.0_11
    Message was edited by:
    SvSig

    i have now upgraded to Java 1.6 update 2. I still get basically the same error, but it is presented a little bit differently:
    An error was encountered performing the requested operation:
    ORA-00904: "ATTRIBUTE": invalid identifier
    00904. 00000 - "%s: invalid identifier"
    *Cause:
    *Action:
    Vendor code 904
    Are there other possible error causes than the operating system version and the database version?
    We are going to install an Oracle 10 test database in a couple of weeks, so then I will find out whether the database version is the problem.

  • How can I install WEB PL/SQL Generator?

    When I running "Install Web PL-SQL Generator",I got the following errors:
    Someone help me, please!
    No errors.
    No errors.
    Package wsglm...
    Input truncated to 11 characters
    No errors.
    Package wsgjsl...
    No errors.
    Package wsgfl...
    No errors.
    Package wsgl...
    Warning: Package created with compilation errors.
    Errors for PACKAGE WSGL:
    LINE/COL ERROR
    62/22 PLS-00201: identifier 'OWA.VC_ARR' must be declared
    62/22 PL/SQL: Declaration ignored
    63/22 PLS-00201: identifier 'OWA_TEXT.VC_ARR' must be declared
    63/22 PL/SQL: Declaration ignored
    Package body wsgjsl...
    Warning: Package Body created with compilation errors.
    Errors for PACKAGE BODY WSGJSL:
    LINE/COL ERROR
    280/7 PL/SQL: Statement ignored
    311/53 PLS-00905: object OWNER.WSGL is invalid
    334/7 PL/SQL: Statement ignored
    344/17 PLS-00905: object OWNER.WSGL is invalid
    472/7 PL/SQL: Statement ignored
    493/31 PLS-00905: object OWNER.WSGL is invalid
    813/10 PL/SQL: Statement ignored
    813/22 PLS-00905: object OWNER.WSGL is invalid
    828/10 PL/SQL: Statement ignored
    828/22 PLS-00905: object OWNER.WSGL is invalid
    843/10 PL/SQL: Statement ignored
    843/22 PLS-00905: object OWNER.WSGL is invalid
    852/10 PL/SQL: Statement ignored
    852/22 PLS-00905: object OWNER.WSGL is invalid
    861/10 PL/SQL: Statement ignored
    861/22 PLS-00905: object OWNER.WSGL is invalid
    884/10 PL/SQL: Statement ignored
    884/22 PLS-00905: object OWNER.WSGL is invalid
    960/3 PL/SQL: Statement ignored
    960/15 PLS-00201: identifier 'HTF.ESCAPE_SC' must be declared
    Package body wsgl...
    Warning: Package Body created with compilation errors.
    Errors for PACKAGE BODY WSGL:
    LINE/COL ERROR
    0/0 PL/SQL: Compilation unit analysis terminated
    1/14 PLS-00905: object OWNER.WSGL is invalid
    1/14 PLS-00304: cannot compile body of 'WSGL' without its
    specification
    Package body wsgfl...
    No errors.
    No errors.
    No errors.
    No errors.
    Warning: Package Body created with compilation errors.
    Errors for PACKAGE BODY WSGMC_OUTPUT1:
    LINE/COL ERROR
    49/4 PLS-00201: identifier 'HTP.P' must be declared
    49/4 PL/SQL: Statement ignored
    51/7 PLS-00201: identifier 'HTP.P' must be declared
    51/7 PL/SQL: Statement ignored
    53/10 PLS-00201: identifier 'HTP.P' must be declared
    53/10 PL/SQL: Statement ignored
    60/4 PLS-00201: identifier 'HTP.P' must be declared
    60/4 PL/SQL: Statement ignored
    Warning: Package Body created with compilation errors.
    Errors for PACKAGE BODY WSGMC_OUTPUT2:
    LINE/COL ERROR
    36/13 PLS-00201: identifier 'HTP.P' must be declared
    36/13 PL/SQL: Statement ignored
    42/10 PLS-00201: identifier 'HTP.P' must be declared
    42/10 PL/SQL: Statement ignored
    48/13 PLS-00201: identifier 'HTP.P' must be declared
    48/13 PL/SQL: Statement ignored
    53/16 PLS-00201: identifier 'HTP.P' must be declared
    53/16 PL/SQL: Statement ignored
    59/13 PLS-00201: identifier 'HTP.P' must be declared
    59/13 PL/SQL: Statement ignored
    64/10 PLS-00201: identifier 'HTP.P' must be declared
    64/10 PL/SQL: Statement ignored
    70/13 PLS-00201: identifier 'HTP.P' must be declared
    70/13 PL/SQL: Statement ignored
    87/28 PLS-00201: identifier 'HTP.BR' must be declared
    87/28 PL/SQL: Statement ignored
    92/25 PLS-00201: identifier 'HTP.P' must be declared
    92/25 PL/SQL: Statement ignored
    99/13 PLS-00201: identifier 'HTP.P' must be declared
    99/13 PL/SQL: Statement ignored
    The following synonyms already exist. Please check that they are valid:
    OWA
    OWA_UTIL
    OWA_COOKIE
    OWA_IMAGE
    OWA_INIT
    OWA_OPT_LOCK
    OWA_PATTERN
    OWA_SEC
    OWA_TEXT
    HTP
    HTF
    CG$ERRORS
    WSGL
    WSGJSL
    WSGLM
    WSGFL
    Webserver Generator Compilation Report
    NAME TY LINE COL TEXT
    WSGJSL PB 311 53 PLS-00905: object OWNER.WSGL is invalid
    280 7 PL/SQL: Statement ignored
    344 17 PLS-00905: object OWNER.WSGL is invalid
    334 7 PL/SQL: Statement ignored
    493 31 PLS-00905: object OWNER.WSGL is invalid
    472 7 PL/SQL: Statement ignored
    813 22 PLS-00905: object OWNER.WSGL is invalid
    813 10 PL/SQL: Statement ignored
    828 22 PLS-00905: object OWNER.WSGL is invalid
    828 10 PL/SQL: Statement ignored
    843 22 PLS-00905: object OWNER.WSGL is invalid
    843 10 PL/SQL: Statement ignored
    852 22 PLS-00905: object OWNER.WSGL is invalid
    852 10 PL/SQL: Statement ignored
    861 22 PLS-00905: object OWNER.WSGL is invalid
    861 10 PL/SQL: Statement ignored
    884 22 PLS-00905: object OWNER.WSGL is invalid
    884 10 PL/SQL: Statement ignored
    960 15 PLS-00201: identifier 'HTF.ESCAPE_SC' must be
    declared
    NAME TY LINE COL TEXT
    WSGJSL PB 960 3 PL/SQL: Statement ignored
    WSGL PA 62 22 PLS-00201: identifier 'OWA.VC_ARR' must be
    CK declared
    AG
    E
    62 22 PL/SQL: Declaration ignored
    63 22 PLS-00201: identifier 'OWA_TEXT.VC_ARR' must be
    declared
    63 22 PL/SQL: Declaration ignored
    PB 1 14 PLS-00905: object OWNER.WSGL is invalid
    1 14 PLS-00304: cannot compile body of 'WSGL' without
    its specification
    0 0 PL/SQL: Compilation unit analysis terminated
    null

    Hi,
    Is necesary install XDB?
    Because i have executed;
    select * from dba_registry
    where COMP_ID = 'XDB'
    Oracle XML Database
    Regards

  • HELP : customize SQL generated

    Hi,
    I've followed the Tutorial 'Generating a Struts-based JSP Application for an
    Application Module', where I'm working with only one table.
    When I run the 'main.html', on the left side ( navigator ), there are 'Browse' and 'Query' options.
    Every time I click on 'Browse', I always have this error :
    Error Message: JBO-26044: Error while getting estimated row count for view object TimesheetView1, statement
    SELECT count(1) FROM (SELECT Timesheet.ts_id, Timesheet.ts_user, Timesheet.ts_code, Timesheet.ts_date, Timesheet.ts_hour
    FROM timesheet Timesheet) ESTCOUNT
    My config are :
    * Win2K
    * JAVA_HOME set to j2sdk1.4.1_01
    * mySQL 3.23.49 with JDBC driver mysql-connector-java-2.0.14-bin.jar
    * I use ultraDevHack=true as parameter within the URL
    * JDev 9.0.3 prod release
    Even with 'ultraDevHack=true' parameter, the subselect still not working.
    I've seen in the forum that JDev Team have tried with that parameter, and it worked,
    but it didn't mention with which version of mySQL and which JDBC driver.
    I would like to modify the above SQL into a simpler one 'SELECT COUNT(*) FROM timesheet'.
    Anybody know how ?
    The View Object Wizard didn't help me at all for the above SQL.
    In fact I would like to fully controled, modified, or cuztomised all SQL generated.
    Back to main.html, the header contains two buttons 'BC4J Admin' and 'Help'.
    When I click on 'BC4J Admin', I have this :
    500 Internal Server Error
    OracleJSP: oracle.jsp.provider.JspCompileException:
    Errors compiling:C:\usr\J2EE\JDEV\system9.0.3.1035\oc4j-config\application-deployments\bc4j\webapp\persistence\_pages\_wm\_bc4j.java
    error: Invalid class file format in C:\j2sdk1.4.1_01\jre\lib\rt.jar(java/lang/Object.class). The major.minor version '48.0' is too recent for this tool to understand.
    C:\usr\J2EE\JDEV\system9.0.3.1035\oc4j-config\application-deployments\bc4j\webapp\persistence\_pages\_wm\_bc4j.java:0: Class java.lang.Object not found in class com.orionserver.http.OrionHttpJspPage.
    package _wm;
    ^
    2 errors
    Why is that ?
    Out of scope, sometimes it's very slow accessing this forum ( 'Connection timed out' or 'The specified network name is no longer available' ...).
    Any of you have the same problem ?
    Is it possible to put some criterias within the Search, i.e. Sort by Date ?
    Thanks for any help.

    CR4E and the Crystal Report Designer both has access to the SQL Command Object that you're trying to work with.
    However, CR4E uses the Eclipse functionality - the SQL Command Scratchpad - that has more limitations than the Command Object editor in Crystal Report Designer.
    Sincerely,
    Ted Ueda

  • To JDev Team : SQL generated, Struts, BC4J Admin, ...

    Hi,
    I've followed the Tutorial 'Generating a Struts-based JSP Application for an
    Application Module', where I'm working with only one table.
    When I run the 'main.html', on the left side ( navigator ), there are 'Browse' and 'Query' options.
    Every time I click on 'Browse', I always have this error :
    Error Message: JBO-26044: Error while getting estimated row count for view object TimesheetView1, statement
    SELECT count(1) FROM (SELECT Timesheet.ts_id, Timesheet.ts_user, Timesheet.ts_code, Timesheet.ts_date, Timesheet.ts_hour
    FROM timesheet Timesheet) ESTCOUNT
    My config are :
    * Win2K
    * JAVA_HOME set to j2sdk1.4.1_01
    * mySQL 3.23.49 with JDBC driver mysql-connector-java-2.0.14-bin.jar
    * I use ultraDevHack=true as parameter within the URL
    Even with 'ultraDevHack=true' parameter, the subselect still not working.
    I've seen in the forum that JDev Team have tried with that parameter, and it worked,
    but it didn't mention with which version of mySQL and which JDBC driver.
    I would like to modify the above SQL into a simpler one 'SELECT COUNT(*) FROM timesheet'.
    Anybody know how ?
    The View Object Wizard didn't help me at all for the above SQL.
    In fact I would like to fully controled, modified, or cuztomised all SQL generated.
    Back to main.html, the header contains two buttons 'BC4J Admin' and 'Help'.
    When I click on 'BC4J Admin', I have this :
    500 Internal Server Error
    OracleJSP: oracle.jsp.provider.JspCompileException:
    Errors compiling:C:\usr\J2EE\JDEV\system9.0.3.1035\oc4j-config\application-deployments\bc4j\webapp\persistence\_pages\_wm\_bc4j.java
    error: Invalid class file format in C:\j2sdk1.4.1_01\jre\lib\rt.jar(java/lang/Object.class). The major.minor version '48.0' is too recent for this tool to understand.
    C:\usr\J2EE\JDEV\system9.0.3.1035\oc4j-config\application-deployments\bc4j\webapp\persistence\_pages\_wm\_bc4j.java:0: Class java.lang.Object not found in class com.orionserver.http.OrionHttpJspPage.
    package _wm;
    ^
    2 errors
    Why is that ?
    Out of scope, sometimes it's very slow accessing this forum ( 'Connection timed out' or 'The specified network name is no longer available' ...).
    Any of you have the same problem ?
    Is it possible to put some criterias within the Search, i.e. Sort by Date ?
    Any help would be appreciated.

    Hi,
    I've followed the Tutorial 'Generating a Struts-based JSP Application for an
    Application Module', where I'm working with only one table.
    When I run the 'main.html', on the left side ( navigator ), there are 'Browse' and 'Query' options.
    Every time I click on 'Browse', I always have this error :
    Error Message: JBO-26044: Error while getting estimated row count for view object TimesheetView1, statement
    SELECT count(1) FROM (SELECT Timesheet.ts_id, Timesheet.ts_user, Timesheet.ts_code, Timesheet.ts_date, Timesheet.ts_hour
    FROM timesheet Timesheet) ESTCOUNT
    My config are :
    * Win2K
    * JAVA_HOME set to j2sdk1.4.1_01
    * mySQL 3.23.49 with JDBC driver mysql-connector-java-2.0.14-bin.jar
    * I use ultraDevHack=true as parameter within the URL
    Even with 'ultraDevHack=true' parameter, the subselect still not working.
    I've seen in the forum that JDev Team have tried with that parameter, and it worked,
    but it didn't mention with which version of mySQL and which JDBC driver.
    I would like to modify the above SQL into a simpler one 'SELECT COUNT(*) FROM timesheet'.
    Anybody know how ?
    The View Object Wizard didn't help me at all for the above SQL.
    In fact I would like to fully controled, modified, or cuztomised all SQL generated.
    Back to main.html, the header contains two buttons 'BC4J Admin' and 'Help'.
    When I click on 'BC4J Admin', I have this :
    500 Internal Server Error
    OracleJSP: oracle.jsp.provider.JspCompileException:
    Errors compiling:C:\usr\J2EE\JDEV\system9.0.3.1035\oc4j-config\application-deployments\bc4j\webapp\persistence\_pages\_wm\_bc4j.java
    error: Invalid class file format in C:\j2sdk1.4.1_01\jre\lib\rt.jar(java/lang/Object.class). The major.minor version '48.0' is too recent for this tool to understand.
    C:\usr\J2EE\JDEV\system9.0.3.1035\oc4j-config\application-deployments\bc4j\webapp\persistence\_pages\_wm\_bc4j.java:0: Class java.lang.Object not found in class com.orionserver.http.OrionHttpJspPage.
    package _wm;
    ^
    2 errors
    Why is that ?
    Out of scope, sometimes it's very slow accessing this forum ( 'Connection timed out' or 'The specified network name is no longer available' ...).
    Any of you have the same problem ?
    Is it possible to put some criterias within the Search, i.e. Sort by Date ?
    Any help would be appreciated.

  • Error While Creating Block on Package Procedure

    Hi
    When I try to create a block on a package Procedure I get the following error
    ifbld60.exe has generated errors and will be closed by Windows.
    You will need to restart the program.
    An Error log is being created,
    and forms closes.
    Is it something to do with Forms problem or with Windows? Is there a patch available for this problem or its a OS bug. The client I am testing this form from is Windows 2000 Professional.
    Thanks for your help
    Diogo

    Hi
    You cannot directly insert object in Stored Procedure universe,Whatever object you are using to define your derived table,you have to include all those objects into the universe first.
    From the below image you can see that i have 3 derived tables ,but whatever objects i am trying to use all those i have inserted into the universe.
    Try to build like this save and export.
    Let me know if you face nay error

  • Error in converting SQL 2014 Trial to Full version using VLKey

    Hi,
    I am currently trying to upgrade my SQL 2014 evaluation version to the full version.
    I have purchased a Volume License for SQL Server 2014 Server/CAL and have extracted the product key from the ISO File.
    I have verified this product key with the product activation department and it is confirmed that it is a valid product key "ProdKey3 SQL Svr Standard Edtn 2014 00204 PA/BP VL:GVLK Pre Pidded"
    However, when i input the product key in to the server, it is showing me the error message:
    The SQL product key is not valid, enter key from certificate of authenticity or SQL server packaging
    Checked on the version of the evaluation and this is the edition - Microsoft SQL Server 2014.0120.2000.08
    The site that I am activating the server on does not have any internet connection, does this affect the activation?
    Would there be an alternate phone activation method for converting to Trial to Full?
    Kindly Assist. Thank you.

    Hi Julian,
    Firstly, according to the error message, please ensure that your SQL Server installation file is not corrupt, and make sure you use corresponding license key matched the edition and version of SQL Server. For more details about the error, please review the
    similar
    thread.
    Secondly, in addition to Ed’s post, you can also use the following command lines to upgrade SQL Server 2014 Trial to a full version.
    Setup.exe /q /ACTION=editionupgrade /INSTANCENAME=<MSSQLSERVER or instancename> /PID=<PID key for new edition>" /IACCEPTSQLSERVERLICENSETERMS
    Thirdly, for more detailed information regarding to the license issue, please call
    1-800-426-9400,
    Monday through Friday, 6:00 A.M. to 6:00 P.M. (Pacific Time) to speak directly to a Microsoft licensing specialist. For international customers, please use the Guide to Worldwide Microsoft Licensing Sites to find contact information in your locations.
    Thanks,
    Lydia Zhang

  • Getting error while installing sql server std 2008 R2 on win 7 prof. sp1 64bit

    Hi,
    I am getting error while installing sql server std 2008 R2 on win 7 prof. sp1 64bit. I have already tried all option but fail to installation
    an error during the installation of assembly micro soft.vc80.crt

    Hi,
    I am getting error while installing sql server std 2008 R2 on win 7 prof. sp1 64bit. I have already tried all option but fail to installation
    an error during the installation of assembly micro soft.vc80.crt
    Can you please post summary.txt file here.Below link will help you in finding it.
    http://technet.microsoft.com/en-us/library/ms143702(v=sql.105).aspx
    Also with error you posted I guess it is a known issue .You need to install below package and then continue with fresh installation
    http://www.microsoft.com/en-gb/download/details.aspx?id=15336
    Please make sure before beginning fresh installation you make sure previous failed installation is removed completely.Use add remove program to remove failed SQL Server.If yu still face issue please post summary.txt file here
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • View log not showing physical SQL generated in OBIEE 11.1.1.6.7

    Hi,
    I am currently using OBIEE 11.1.1.6.7 version. In this version I am unable to view the physical SQL generated by OBIEE under Administration --> Manage Marketing Jobs --> Select a Job --> Click on View SQL OR Administration --> Manage Sessions--> Select a Job --> Click on View SQL. It is not showing the physical SQL generated by OBIEE for a report or segment which I have executed.
    It was available in previous version i.e. OBIEE 10.1.3.4.2.
    I have searched in metalink and it has been suggested to use the following <Filters> section into instanceconfig.xml file. I have added the following details into existing instanceconfig.xml file and then restarted the BI services. Still the problem persist.
    <Filters>
    <!--This Configuration setting is managed by Oracle Enterprise Manager Fusion Middleware Control--><FilterRecord writerClassGroup="Console" path="saw" information="16" warning="31" error="31" trace="32" incident_error="1"/>
    <!--This Configuration setting is managed by Oracle Enterprise Manager Fusion Middleware Control--><FilterRecord writerClassGroup="File" path="saw" information="16" warning="31" error="31" trace="32" incident_error="1"/>
    <!--This Configuration setting is managed by Oracle Enterprise Manager Fusion Middleware Control--><FilterRecord writerClassGroup="Marketing" path="saw.mktgsqlsubsystem.joblog" information="16" warning="31" error="31" trace="32" incident_error="1"/>
    <!--This Configuration setting is managed by Oracle Enterprise Manager Fusion Middleware Control--><FilterRecord writerClassGroup="File" path="saw.httpserver.request" information="16" warning="31" error="31" trace="32" incident_error="1"/>
    <!--This Configuration setting is managed by Oracle Enterprise Manager Fusion Middleware Control--><FilterRecord writerClassGroup="File" path="saw.httpserver.response" information="16" warning="31" error="31" trace="32" incident_error="1"/>
    </Filters>
    Thanks,
    Prasanta

    Hi,
    Thanks for the reply.
    We used to view the log details (physical SQL) using Manage Marketing Jobs in OBIEE10g.
    In OBIEE11g we can see the job details and when selecting a job (under Action column Details link) there is an option in left pane as 'View Log'. If I click on 'View Log' it is showing as 'No Logs Found'.
    Just wanted to confirm if this is an issue in OBIEE11g.
    Also, I believe there is a limitation in 'Manage Session' to view the number of job details whereas in 'Manage Marketing Jobs' section we can increase the number of jobs to be displayed.
    Thanks,
    Prasanta

  • Error while executing SQL query -' Must Specify Table to select from'

    Hi all,
    While executing query using query generator
    it shows error message
    [Microsoft][SQL Native Client][SQL Server]Must specify table to select from.
    2). [Microsoft][SQL Nativ
    SELECT T1.ItemCode, T1.Dscription AS 'Item Description', T1.Quantity, T1.Price, T1.LineTotal,
    (Select SUM(T2.TaxSum) From PCH4 T2 Where T0.DocEntry=T2.DocEntry AND T2.staType=-90 AND T1.LineNum=T2.LineNum) as 'BEDAmt',
    (Select SUM(T2.TaxSum) From PCH4 T2 Where T0.DocEntry=T2.DocEntry AND T2.staType=-60 AND T1.LineNum=T2.LineNum) as 'ECSAmt',
    (Select SUM(T2.TaxSum) From PCH4 T2 Where T0.DocEntry=T2.DocEntry AND T2.staType=7 AND T1.LineNum=T2.LineNum) as 'HECSAmt',
    (Select SUM(T2.TaxSum) From PCH4 T2 Where T0.DocEntry=T2.DocEntry AND T2.staType=1 AND T1.LineNum=T2.LineNum) as 'VATAmt',
    (Select SUM(T2.TaxSum) From PCH4 T2 Where T0.DocEntry=T2.DocEntry AND T2.staType=4 AND T1.LineNum=T2.LineNum) as 'CSTAmt'
    FROM dbo.[OPCH] T0  INNER JOIN PCH1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN PCH4 T2 ON T2.DocEntry=T0.DocEntry
    WHERE T0.DocDate >='[%0]' AND  T0.DocDate <='[%1]' AND T0.DocType = 'I'
    GROUP BY T1.ItemCode,T1.Dscription,T1.Quantity, T1.Price, T1.LineTotal,T0.DocEntry,T1.DocEntry,T1.LineNum,T2.LineNum
    It's executing fine in MS SQL Server Studio Management.
    Please give y'r ideas to solve the problem.
    Jeyakanthan

    try this, it works fine in my B1:
    SELECT T1.ItemCode, T1.Dscription AS 'Item Description', T1.Quantity, T1.Price, T1.LineTotal,
    (Select SUM(T2.TaxSum) From PCH4 T2 Where T0.DocEntry=T2.DocEntry AND T2.staType=-90 AND T1.LineNum=T2.LineNum) as 'BEDAmt',
    (Select SUM(T2.TaxSum) From PCH4 T2 Where T0.DocEntry=T2.DocEntry AND T2.staType=-60 AND T1.LineNum=T2.LineNum) as 'ECSAmt',
    (Select SUM(T2.TaxSum) From PCH4 T2 Where T0.DocEntry=T2.DocEntry AND T2.staType=7 AND T1.LineNum=T2.LineNum) as 'HECSAmt',
    (Select SUM(T2.TaxSum) From PCH4 T2 Where T0.DocEntry=T2.DocEntry AND T2.staType=1 AND T1.LineNum=T2.LineNum) as 'VATAmt',
    (Select SUM(T2.TaxSum) From PCH4 T2 Where T0.DocEntry=T2.DocEntry AND T2.staType=4 AND T1.LineNum=T2.LineNum) as 'CSTAmt'
    FROM dbo.OPCH T0  INNER JOIN PCH1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN PCH4 T2 ON T2.DocEntry=T0.DocEntry
    WHERE T0.DocDate >='[%0]' AND  T0.DocDate <='[%1]' AND T0.DocType = 'I'
    GROUP BY T1.ItemCode,T1.Dscription,T1.Quantity, T1.Price, T1.LineTotal,T0.DocEntry,T1.DocEntry,T1.LineNum,T2.LineNum
    B1 don't like brackets!
    Regards

  • Statspack: error with spcreate.sql in 11.1.0.7 on WIndows

    Hello,
    I'm trying to install statspack on a 11.1.0.7 64bit RDBMS on Windows 2008 R2.
    I get this error during spcreate.sql as sysdba
    ... Creating views
    . quisce_t*drms quiesce_time
    ERROR at line 5
    ORA-00904: "QUISCE_T" : invalid identifier
    I wasn't able to find anything related on metalink....
    Any hint?
    I was previously able to run it on 11.2.0.1 and 11.2.0.3 RDBMS on Linux systems...
    I don't know if it is a problem with this particular version of the rdbms.
    Thanks in advance,
    Gianluca

    hello,
    running now a snap as perfstat user I get this error
    SQL> exec statspack.snap;
    BEGIN statspack.snap; END;
    ERROR at line 1:
    ORA-04063: package body "SYS.DBMS_SHARED_POOL" has errors
    ORA-06508: PL/SQL: could not find program unit being called:
    "SYS.DBMS_SHARED_POOL"
    ORA-06512: at "PERFSTAT.STATSPACK", line 5767
    ORA-06512: at line 1
    In fact
    SQL> select owner,object_name,object_type from dba_objects where status='INVALID
    2 order by object_name;
    OWNER OBJECT_NAME OBJECT_TYPE
    SYS DBMS_SHARED_POOL PACKAGE BODY
    PUBLIC STATSPACK SYNONYM
    Trying to recompile as sysdba I get
    Connected to:
    Oracle Database 11g Release 11.1.0.7.0 - 64bit Production
    SQL> alter package dbms_shared_pool compile body;
    Warning: Package Body altered with compilation errors.
    SQL> show errors
    Errors for PACKAGE BODY DBMS_SHARED_POOL:
    LINE/COL ERROR
    87/13 PLS-00323: subprogram or cursor 'PURGE' is declared in a package
    specification and must be defined in the package body
    Could it be that t was my first 10.2.0.3 spcreate.sql putting the package in this state?
    I don't suppose so and that the package was already invalid before... but not sure...
    How to correct? I found similar cases where Oracle oly suggested catalog/catproc runs... but I would like to avoid if possible...
    Thanks in advance

Maybe you are looking for

  • Changing the Default Location for Backups

    I've just downloaded PC Suite 6.81.13.0. How do I change the default location where backups are stored on my laptop? The default location stores the data in an location that is not compatible with my company network profile. I want to store the data

  • How can I print out a page directly from my browser?

    Sometimes I want to print out something that I'm reading on-screen. Before there was an icon in the upper left hand corner of the screen and clicking here led me many things as well as printing one or more pages that I was reading online. At some poi

  • Length of clip expands when sending from Final Cut to Motion

    Hi everybody. I'm a motion beginner, so pardon me if this is a boneheaded question. I have a clip whose speed has been slowed in an FC timeline. I sent it to motion in order to switch the method of speed alteration to 'optical flow'. The clip in the

  • LE-Printing HUN labels from Outbound delivery

    Hi Guys, At this moment we activated the pick/pack functioanlity in thewarehouse. There is a customized Tcode (let's say - Z001) we use at this moment, which prints the Pick ticket and initiates the printing HUNs. we have different kind of deliveries

  • From WIndows 7 to OS X Mountain Lion

    Dear This week I bought myself a new MacBook Pro 13". Before I had an average Acer running on WIndows 7. My BlackBerry Bold 9780 is synced with this Acer. (Contacts, agenda, music...) The contacts and agenda are synced with Microsoft Outlook. I would