PLS-00201: identifier (impdp error)
Hi,
Os: IBM-AIX
Oracle 11.0.1.7.0
Command: impdp user/password directory=dbdir dumpfile=banko.dmp schemas=user logfile=impdp.log
I get the below error while importing a dumpfile
ORA-39083: Object type PROCACT_SCHEMA failed to create with error:
ORA-06550: line 2, column 1:
PLS-00201: identifier 'DBMS_CUBE_EXP.SCHEMA_INFO_IMP_BEG' must be declared
ORA-06550: line 2, column 1:
PL/SQL: Statement ignored
ORA-06550: line 3, column 1:
PLS-00201: identifier 'DBMS_CUBE_EXP.SCHEMA_INFO_IMP_LOOP' must be declared
ORA-06550: line 3, column 1:
PL/SQL: Statement ignored
ORA-06550: line 8, column 1:
PLS-00201: identifier 'DBMS_CUBE_EXP.SCHEMA_INFO_IMP_END' must be declared
ORA-06550: line 8, c
Please suggest me
Thanks
KSG
May be your target database is not having a OLAP support and your dump contains olap cubes.
Not sure may be you have to install dbms_cubes package by running following script.
{ORACLE_HOME}/olap/admin/olapiboo.plb
Hope this will help.
Similar Messages
-
PLS-00201: identifier... ERROR
Hi,
I'm very new at PL/SQL and creating stored procedures. I'm trying to create a very simple stored procedure that inserts a row into the WFLOW table, but I keep receiving an error that looks like this:
PLS-00201: identifier 'WFLOW' must be declared
However, if I insert directly, it works.
Please see the code used below:
CREATE OR REPLACE PROCEDURE inWflowRules IS
BEGIN
INSERT INTO WFLOW (WFLOW_RULE_I, WFLOW_RULE_T) VALUES (2,'This is the 2nd row.');
END inWflowRules;
Please help.
Thanks,
LukeishaIf the table exists in another schema, it is easier to create a public synonym fro that table, so that other users can see that table without adding the schema name in front of the table.
Try this in sqlplus:
select * from wflow where rownum=1;
Do you get an error?
If not, than you are probably not authorized to use table wflow in a procedure. The owner of the table has to grant you for this table.
grant select, insert, update, delete on wflow to <user>; -
PLS-00201: identifier error with grnats to roles
Hi all,
Consider the following: In schema AA I have several tables and packages. All grants (select, insert, update, delete for tables en execute for packages) are set to roles. User BB got the role contaning all those grants. Furthermore, for all objects in schema AA there are public synonyms. Also, user BB got our developer role to create things and a directly granted 'execute any procedure' privilege (forgot why).
If user BB runs the application, no problems, grants take good care. But if user BB creates an object and wants to refer to schama AA objects, eg.
DECLARE
t_var USERAA_TABLE.identifier%TYPE;
BEGIN
END;I get the "PLS-00201: identifier '...' must be declared" error during compilation. Why is this? And, in our 8.1.7 database the above setup compiles without problems.
I sure don't hope I have to grant directly to developers, since I would like to control this using roles instead of maintaining all developers users.
Anyone? What am I missing here?
Regards,
MichielThanks,
The USERAA_TABLE (which is owned by user AA) indeed has a (public) synonym.
If this is true (grant directly for compiling in Pl/Sql), I think this is a horrible step (since this was not the case in Oracle 8.1.7).
Our application is in schema AA, developers first deploy into their own schema, eg. schema BB (say: one package of the application). When you run the application inside schema BB the altered package is used and the rest of the application is used from schema AA, perfectly for testing. When all is to our satisfaction the DBAs deploy into schema BB (I know, the above does not completly apply when packages are fired from within table triggers).
Schema BB now doesn't compile anymore, because all grants are passed via roles and not direclty. Certainly a big drawback if you have a lot of tables and developers.
Does anyone have encountered these problems? -
PLS-00201 identifier must be declared
Hi All,
Can any one please help me regarding this error.
I am getting the PLS-00201 identifier tree_sorting must be declared at the line " Tree_Sorting(1, 0); ".
if i comment the " Tree_Sorting(1, 0); " at pkgfc_gi.v_cphase := '01-13'; and uncomment the " Tree_Sorting(1, 0); " at pkgfc_gi.v_cphase := '01-09' then the procedure is compiling successfully; This is my stored procedure.
Please help me in solving this.
CREATE OR REPLACE PACKAGE BODY FA_Main AS
/*-------------------------------- Calcul_FA -------------------------------*/
FUNCTION Calcul_FA (
p_client_group IN tfc_stc_client_groups.s_client_group%TYPE DEFAULT NULL,
p_admin_group IN tfc_stc_clients.c_admin_group %TYPE DEFAULT NULL,
p_client IN tfc_stc_clients.s_client %TYPE DEFAULT NULL,
p_report_group IN tfc_stc_report_groups.g_classification%TYPE DEFAULT NULL,
p_contract IN tfc_stc_contracts.s_contract %TYPE DEFAULT NULL,
p_fa_typ IN tfc_prm_fa_master.c_fa_typ %TYPE DEFAULT NULL,
p_fa IN tfc_prm_fa_master.s_fa %TYPE DEFAULT NULL,
p_beg_period IN DATE DEFAULT NULL,
p_end_period IN DATE DEFAULT NULL,
p_y_all_ok IN VARCHAR2 DEFAULT 'Y',
p_y_estimate IN VARCHAR2 DEFAULT 'N',
p_est_date IN DATE DEFAULT NULL)
RETURN NUMBER IS
----------------------------------------------------------------------- CURSEURS
-- List of FA to calculate --
CURSOR c_fa IS
SELECT pfm.s_fa s_fa, pfm.c_fa_typ c_fa_typ, sct.s_contract s_contract, srg.g_classification g_classification,
scl.s_client s_client, scl.c_admin_group c_admin_group, scg.s_client_group s_client_group
FROM tfc_prm_fa_master pfm, tfc_stc_contracts sct, tfc_stc_clients scl, tfc_stc_client_groups scg, tfc_stc_report_groups srg
WHERE pfm.c_fa_structure_typ = 'PARM'
AND ((p_fa IS NOT NULL AND pfm.s_fa = p_fa ) OR p_fa IS NULL)
AND ((p_fa_typ IS NOT NULL AND pfm.c_fa_typ = p_fa_typ ) OR p_fa_typ IS NULL)
AND ((p_contract IS NOT NULL AND sct.s_contract = p_contract ) OR p_contract IS NULL)
AND ((p_report_group IS NOT NULL AND srg.g_classification LIKE p_report_group||'%') OR p_report_group IS NULL)
AND ((p_client IS NOT NULL AND scl.s_client = p_client ) OR p_client IS NULL)
AND ((p_admin_group IS NOT NULL AND scl.c_admin_group = p_admin_group ) OR p_admin_group IS NULL)
AND ((p_client_group IS NOT NULL AND scg.s_client_group = p_client_group ) OR p_client_group IS NULL)
AND (NVL(p_client_group,NVL(p_client,NVL(p_contract, p_fa))) IS NOT NULL OR p_admin_group IS NOT NULL OR p_report_group IS NOT NULL)
AND (p_beg_period IS NULL OR ((p_beg_period IS NOT NULL AND pfm.d_first_calculation IS NOT NULL AND p_beg_period >= pfm.d_first_calculation) OR pfm.d_first_calculation IS NULL))
AND (p_end_period IS NULL OR ((p_end_period IS NOT NULL AND pfm.d_end_calculation IS NOT NULL AND p_end_period <= pfm.d_end_calculation) OR pfm.d_end_calculation IS NULL) OR (p_end_period IS NOT NULL AND sct.d_inception <= p_end_period ))
AND sct.s_contract = pfm.fk_contract
AND scl.s_client = sct.fk_client
AND scg.s_client_group (+)= scl.fk_client_group
AND srg.s_report_group (+)= sct.fk_report_group
AND pfm.y_fee_to_calculate = 'Y'
AND sct.c_contract_status = 'ACTIVE'
AND ROWNUM < 2;
BEGIN
COMMIT;
IF pkgfc_faed.v_y_estimate = 'Y' THEN
INSERT INTO tfc_log_application_master (
s_log, l_log,
d_t_begin_task,
c_application_task, c_task_status,
g_key_0, g_key_1,
g_key_2, g_key_3,
g_key_4, g_key_5,
g_key_6, g_key_7,
g_key_8, g_key_9)
VALUES (
pkgfc_faed.v_s_log, v_l_log, SysDate,
'ESTIMATE', 'RUNNING',
TRIM(TO_CHAR(p_client_group)), p_admin_group,
TRIM(TO_CHAR(p_client)), p_report_group,
TRIM(TO_CHAR(p_contract)), p_fa_typ,
TRIM(TO_CHAR(p_fa)), TO_CHAR(p_beg_period,'DD/MM/YYYY'),
TO_CHAR(p_end_period,'DD/MM/YYYY'), v_y_all_ok);
ELSE
INSERT INTO tfc_log_application_master (
s_log, l_log,
d_t_begin_task,
c_application_task, c_task_status,
g_key_0, g_key_1,
g_key_2, g_key_3,
g_key_4, g_key_5,
g_key_6, g_key_7,
g_key_8, g_key_9)
VALUES (
pkgfc_faed.v_s_log, v_l_log,
SysDate,
'CALCULATION', 'RUNNING',
TRIM(TO_CHAR(p_client_group)), p_admin_group,
TRIM(TO_CHAR(p_client)), p_report_group,
TRIM(TO_CHAR(p_contract)), p_fa_typ,
TRIM(TO_CHAR(p_fa)), TO_CHAR(p_beg_period,'DD/MM/YYYY'),
TO_CHAR(p_end_period,'DD/MM/YYYY'), v_y_all_ok);
END IF;
v_return := pkgfc_faed.v_s_log;
COMMIT;
-- Loop on all Fee/Alloc to calculate --
-- Added by Santhakumar
BEGIN
INSERT INTO tmp_prm_fa_details(
SELECT USERENV('SESSIONID') SESSION_ID,
LEVEL CUR_LEVEL,
(CASE WHEN (SELECT MAX(LEVEL)
FROM tfc_prm_fa_details fad2
WHERE fad2.fk_fa = fad1.fk_fa
START WITH fad2.s_fa_detail=fad1.s_fa_detail
CONNECT BY PRIOR fad2.s_fa_detail = fad2.fk_fa_detail_upper_level) > 1
THEN LEVEL + 1
ELSE LEVEL
END) NEXT_LEVEL,
fad1.s_fa_detail,
fad1.fk_fee_alloc_detail,
fad1.fk_fa,
fad1.l_fa_detail,
fad1.g_fa_4calculation,
fad1.fk_fa_detail_upper_level,
fad1.fk_third_party,
fad1.g_consolidation_rule,
fad1.c_fa_calculation_typ,
fad1.fk_aggregation_rule,
fad1.fk_scale,
fad1.g_scale_band_unit,
fad1.g_value,
fad1.n_detail_order,
fad1.y_ref_amount_equal_total_aum,
fad1.c_validation_status,
fad1.g_val_by,
fad1.d_t_val,
fad1.g_ins_by,
fad1.d_t_ins,
fad1.g_upd_by,
fad1.d_t_upd
FROM tfc_prm_fa_details fad1
START WITH fad1.fk_fa_detail_upper_level IS NULL
CONNECT BY PRIOR fad1.s_fa_detail = fad1.fk_fa_detail_upper_level
END;
-- Added by Santhakumar
pkgfc_gi.v_cphase := '00-02';
FOR v_fa IN c_fa LOOP
pkgfc_gi.v_cphase := '01-08';
DECLARE
-- Tree Sorting Recursive Procedure --
PROCEDURE Tree_Sorting (p_level IN NUMBER,p_fk_fa_detail_upper_level IN NUMBER) IS
-- Cursor to retrieve data at current level --
CURSOR c_tfd IS
SELECT *
FROM tfc_tmp_fa_details tfd
WHERE tfd.fk_fa = v_fa.s_fa
AND tfd.session_id = USERENV('SESSIONID')
AND tfd.cur_level = p_level
AND tfd.fk_fa_detail_upper_level = p_fk_fa_detail_upper_level
ORDER BY tfd.n_detail_order ASC;
Error_Found_in_Tree_Sorting EXCEPTION;
-------------------------------------------------------------------------- BEGIN
BEGIN
FOR v_tfd IN c_tfd LOOP
pkgfc_dts.put_nline('Level : '||TO_CHAR(v_tfd.cur_level)||' - '||v_tfd.g_fa_4calculation||' - '||TO_CHAR(p_fk_fa_detail_upper_level));
pkgfc_gi.v_cphase := '01-14';
pkgfc_faed.v_nb_fa_det := pkgfc_faed.v_nb_fa_det + 1;
pkgfc_faed.v_fa_details(pkgfc_faed.v_nb_fa_det) := v_tfd;
pkgfc_faed.v_nb_max_level := GREATEST(pkgfc_faed.v_nb_max_level,
pkgfc_faed.v_fa_details(pkgfc_faed.v_nb_fa_det).cur_level);
-- Break the link with Root Record --
IF (pkgfc_faed.v_fa_details(pkgfc_faed.v_nb_fa_det).fk_fa_detail_upper_level = 0) THEN
pkgfc_faed.v_fa_details(pkgfc_faed.v_nb_fa_det).fk_fa_detail_upper_level := NULL;
END IF;
IF (v_tfd.cur_level < v_tfd.next_level) THEN
pkgfc_gi.v_cphase := '01-15';
Tree_Sorting(v_tfd.next_level, v_tfd.s_fa_detail);
END IF;
IF (pkgfc_gi.v_cretour <> '0') THEN
RAISE Error_Found_in_Tree_Sorting;
END IF;
END LOOP;
---------------------------------------------------------------------- EXCEPTION
EXCEPTION
WHEN Error_Found_in_Tree_Sorting THEN
IF (c_tfd%ISOPEN ) THEN CLOSE c_tfd ; END IF;
WHEN OTHERS THEN
IF (c_tfd%ISOPEN ) THEN CLOSE c_tfd ; END IF;
pkgfc_gi.v_cretour := '9'; -- When Others Error
pkgfc_gi.v_cproc := 'FA_Engine_Main.Tree_Sorting';
pkgfc_gi.v_mess := SUBSTR(SQLERRM(SQLCODE), 1, 255);
pkgfc_dts.put_nline('Err : '||pkgfc_gi.v_cretour||' - '||pkgfc_gi.v_cphase||' - '||pkgfc_gi.v_cproc||' - '||pkgfc_gi.v_mess);
---------------------------------------------------------------------------- END
END Tree_Sorting;
PROCEDURE Autonomous_0108 IS
PRAGMA AUTONOMOUS_TRANSACTION; -- Permit Commit/Rollback independently of the current transaction
BEGIN
-- Clean Temporary Table --
pkgfc_gi.v_cphase := '01-09';
DELETE tfc_tmp_fa_details WHERE session_id NOT IN (SELECT DISTINCT audsid FROM all_sessions);
COMMIT;
--Tree_Sorting(1, 0);
END Autonomous_0108;
BEGIN
Autonomous_0108;
END;
-- Get FA Details from Prm_Fa_Details --
pkgfc_gi.v_cphase := '01-10';
select count(1) into v_num from tfc_tmp_fa_details;
Dbms_output.put_line('first' || v_num);
Dbms_output.put_line('Session Id --> ' || USERENV('SESSIONID'));
INSERT INTO tfc_tmp_fa_details (SELECT * FROM tmp_prm_fa_details WHERE fk_fa = v_fa.s_fa);
-- Insert a Root Record for Tree Sorting purpose --
pkgfc_gi.v_cphase := '01-11';
INSERT INTO tfc_tmp_fa_details (
session_id, cur_level, next_level,
s_fa_detail, fk_fa, fk_fa_detail_upper_level)
VALUES (
USERENV('SESSIONID'), 0, 1,
0, v_fa.s_fa, NULL);
-- Link the Level 1 with Root Level (0) --
pkgfc_gi.v_cphase := '01-12';
UPDATE tfc_tmp_fa_details
SET fk_fa_detail_upper_level = NVL(fk_fa_detail_upper_level, 0)
WHERE fk_fa = v_fa.s_fa
AND s_fa_detail > 0
AND session_id = USERENV('SESSIONID');
-- Sort FA Details Tree according n_detail_order field --
pkgfc_gi.v_cphase := '01-13';
Tree_Sorting(1, 0);
-- Clean Temporary Table --
pkgfc_gi.v_cphase := '01-16';
WHEN OTHERS THEN
dbms_output.put_line('OTHERS');
pkgfc_gi.eev_cur := v_eev_cur;
v_loop_ret := -1;
IF (c_fa%ISOPEN ) THEN CLOSE c_fa ; END IF;
IF (c_cli%ISOPEN) THEN CLOSE c_cli; END IF;
IF (c_ctr%ISOPEN) THEN CLOSE c_ctr; END IF;
IF (c_fam%ISOPEN) THEN CLOSE c_fam; END IF;
IF (c_cad%ISOPEN) THEN CLOSE c_cad; END IF;
IF (c_fad%ISOPEN) THEN CLOSE c_fad; END IF;
pkgfc_gi.v_cretour := '9'; -- When Others Error
pkgfc_gi.v_cproc := 'FA_Engine_Main.Calcul_FA';
pkgfc_gi.v_mess := SUBSTR(SQLERRM(SQLCODE), 1, 255);
pkgfc_dts.put_nline('Err : '||pkgfc_gi.v_cretour||' - '||pkgfc_gi.v_cphase||' - '||pkgfc_gi.v_cproc||' - '||pkgfc_gi.v_mess);
-------------------------------------------------------------------- END
END;
END LOOP;
return(v_return);
END Calcul_FA;
END FA_Main;
/It looks to me like procedure 'tree_sorting' is declared as a local procedure within a nested BEGIN .. END block (which spans lines 288 - 438). You cannot call this procedure outside that block, it is out of scope - you would have to move it to a higher scope.
It would help if you posted something remotely readable in future. -
PLS-00201: identifier 'DBMS_METADATA_DPBUILD' must be declared
Hi There,
Getting following error while executing prvtmetd.plb(Post patch install steps) script after upgrade 11.1.0.7 to 11.2.0.3.
SQL> @@prvtmetd.plb
Warning: Package Body created with compilation errors.
Errors for PACKAGE BODY DBMS_METADATA_DPBUILD:
LINE/COL ERROR
0/0 PL/SQL: Compilation unit analysis terminated
1/14 PLS-00201: identifier 'DBMS_METADATA_DPBUILD' must be declared
1/14 PLS-00304: cannot compile body of 'DBMS_METADATA_DPBUILD'
without its specification
please help me out in this regard.
Regards,What does the error message PLS-00304 tell you? It is self-explanatory, provided you looked it up prior to posting (in your post I see no sign you did).
Look up the error message online and work from there.
Sybrand Bakker
Senior Oracle DBA -
I have created a repgroup CAROLINE and I get an error when I try to add a master site to it.The master definition site is on v 8.1.7.0.0.(tammy sid) and the master site (pony sid) on v 8.0.6.3.0.
The error I get is :
ORA-06550: line 1, column 7:
PLS-00201: identifier '[email protected]' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
ORA-06512: at "SYS.DBMS_REPCAT_UTL4", line 2683
ORA-06512: at "SYS.DBMS_REPCAT_UTL4", line 2377
ORA-06512: at "SYS.DBMS_REPCAT_MAS", line 2039
ORA-06512: at "SYS.DBMS_REPCAT", line 556
ORA-06512: at line 1
I've followed the steps on the metalink doc 117434.1 to setup the replication user.
I have checked all the objects,they exist and are valid. I I get the same error when I try to remove the group or purge administrative requests from the master site. The group is only removed from the master definition site.
I have tried tested the database links and simulated this problem on another 817 db (dandy sid) as the master definition site to the same 8.0.6.3.0 (pony sid)master site and this test worked!
So I can only conclude that there's something wrong on the other 817 db (tammy).Is there an Oracle version number anywhere in sight?
Why are you trying to access a built-in package owned by SYS across a DB Link rather than using the local copy?
Advanced (choke) Replication is a deprecated technology. Why aren't you using Streams? -
PLS-00201: identifier 'DBMS_JAVA.SET_OUTPUT' must be declared
We have recently upgraded to oracle 11g and when trying to execute the code:
begin DBMS_JAVA.SET_OUTPUT(10000); end;
We are returned the error:
ORA-06550: line 1, column 7:
PLS-00201: identifier 'DBMS_JAVA.SET_OUTPUT' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
The DBMS_JAVA package, both body and spec are valid & compiled.
Could there be an issue with permissions or missing dependencies?
Thank you.Hello Frank thank you for your quick response.
I have checked the database:
select * from dba_tab_privs where table_name = 'DBMS_JAVA'
Returns-------
Grantee: PUBLIC
Owner: SYS
Table Name: DBMS_JAVA
Grantor: SYS
Privilege: EXECUTE
Grantable: NO
HIERARCHY: NO
edit: sorry I just noticed the second part of your post.
"Also, make sure there's a public synonym DBMS_JAVA, referencing SYS.DBMS_JAVA."
I believe that this is the issue. I am sorry I only marked your response as 'helpful'..
Edited by: 912947 on Feb 7, 2012 11:33 AM -
Oracle Portal 11g- PLS-00201 identifier 'PORTAL.WWSRC_API' must be declared
Happy Thursday Community!
Hopefuly this is the right place to ask for help, I am fairly new to Portal. I am getting below WARNING and can't move forward. I tried to give 'PORTAL.WWSRC_API' permissions to PUBLIC, still no go. I am using Oracle Designer to genearate the search results from Portal. Please, see code being used after the error list.
ERROR:
Server Generator 10.1.2.6 (Build 10.1.2.11.12) , Thu May 16 10:41:10 2013
Copyright (c) Oracle Corporation 1995, 2010. All rights reserved.
Executing generated DDL ...
Creating Procedure 'PG_SEARCH' ...
CDS-11307 Warning: (compilation error in PROCEDURE 'PG_SEARCH' at 8/22): PLS-00201: identifier 'PORTAL.WWSRC_API' must be declared
CDS-11307 Warning: (compilation error in PROCEDURE 'PG_SEARCH' at 8/22): PL/SQL: Item ignored
CDS-11307 Warning: (compilation error in PROCEDURE 'PG_SEARCH' at 10/21): PLS-00201: identifier 'PORTAL.WWSRC_API' must be declared
CDS-11307 Warning: (compilation error in PROCEDURE 'PG_SEARCH' at 10/21): PL/SQL: Item ignored
CDS-11307 Warning: (compilation error in PROCEDURE 'PG_SEARCH' at 11/17): PLS-00201: identifier 'PORTAL.WWSRC_API' must be declared
CDS-11307 Warning: (compilation error in PROCEDURE 'PG_SEARCH' at 11/17): PL/SQL: Item ignored
CDS-11307 Warning: (compilation error in PROCEDURE 'PG_SEARCH' at 24/1): PLS-00320: the declaration of the type of this expression is incomplete or malformed
CDS-11307 Warning: (compilation error in PROCEDURE 'PG_SEARCH' at 24/1): PL/SQL: Statement ignored
CDS-11307 Warning: (compilation error in PROCEDURE 'PG_SEARCH' at 27/1): PLS-00320: the declaration of the type of this expression is incomplete or malformed
CDS-11307 Warning: (compilation error in PROCEDURE 'PG_SEARCH' at 27/1): PL/SQL: Statement ignored
CDS-11307 Warning: (compilation error in PROCEDURE 'PG_SEARCH' at 44/16): PLS-00320: the declaration of the type of this expression is incomplete or malformed
CDS-11307 Warning: (compilation error in PROCEDURE 'PG_SEARCH' at 44/4): PL/SQL: Statement ignored
DDL execution complete
Processing Complete: 0 error(s), 12 warning(s)
BEGIN
DECLARE
l_rows number := 20 ;
l_pageId varchar2(100) ;
l_results portal.wwsrc_api.items_result_array_type;
l_count number;
l_scores portal.wwsrc_api.number_list_type;
l_pageGroups portal.wwsrc_api.number_list_type;
l_maxRows number;
l_text nvarchar2(30000) ;
l_url varchar2(250);
begin
-- set the response type
owa_util.mime_header('text/xml');
-- setting id of the pagegroup where your items lies
l_pageGroups(0) := 'MyPageGroup';
-- Use of the search API to get results.
l_results := portal.wwsrc_api.item_search(
p_page_groups => l_pageGroups,
p_rows => l_rows ,
p_out_count => l_count,
p_out_scores => l_scores );
-- generate response
htp.p('
<rss version="2.0">
<channel>
<generator>Oracle AS11g</generator>
<title>Some rss items</title>
<description>Description for this rss feed </description>
<language>US</language>
<buildDate>' || SYSDATE || '</buildDate>
for i in 1..l_results.count loop
htp.p('<item>');
htp.p('<title>' || l_results(i).display_name || '</title>');
htp.p('<link>http://server:port/portal/page/portal/pagegroup/page/' || l_results(i).display_name || '</link>');
htp.p('<description>' || l_results(i).description || '</description>');
htp.p('</item>');
end loop;
-- close the feed
htp.p('</channel></rss>');
end;
end; I also tried code from this URL: [http://docs.oracle.com/cd/E14571_01/portal.1111/e10238/pdg_cm_search.htm|http://docs.oracle.com/cd/E14571_01/portal.1111/e10238/pdg_cm_search.htm]
I still get the 'identifier 'WHATEVERTHEAPI' must be declared' error.
How do I avenge this one?
DököllWhat is <tt>MESSAGEUTIL</tt>?
use named parameters to keep track of the correct parameter count:"{ call MESSAGEUTIL.GET_IAF("
+ "V_PEID=> 'AVapp1lLQPakyVfqQ9UO1Q'"
+ ", V_START_TIME=> to_timestamp('21-Jan-11 01:00:00.0 AM','dd-MON-yy hh:mi:ss.F PM')"
...and leaving a space before <tt>call</tt> and before the final <tt>}</tt> meight also be a good idea...
There are some problems in here: your procedure defines out parameters that are not invoked by bind parameters in your java string. Since oracle tends to issue strange error messages this could be part of the problem. If you'r responsible for the procedure try to separate in parameters and out parameters.Defining a paramer to be both, IN and OUT is possible, but you should have a really, really good reason to do so.
BTW: the common naming convetion for parameters in PLSQL is <tt>p_...</tt>. <tt>v_...</tt> is for local variables inside a procedure.
BTW2: use java classes to pass parameters from java to PLSQL:CallableStatement cstmt = getCstmt("{ call MESSAGEUTIL.GET_IAF("
+ "V_PEID=> 'AVapp1lLQPakyVfqQ9UO1Q'"
+ ", V_START_TIME=> ? "
// how do you expect something like 'AVapp1lLQPakyVfqQ9UO1Q' beeing converted to an Integer?
cstmt.registerOutParameter(1,Types.INTEGER);
cstmt.registerOutParameter(2,Types.TIMESTAMP);
cstmt.execute();
java.sql.Timestamp timeStamp = cstmt.getTimestamp(2);bye
TPD -
I get the error message "PLS-00201: identifier 'JAVA_XA.XA_START_NEW' must
be declared" when I try to deploy a J2EE application which uses XA pools and
TX datasources.
I am not sure how to setup my system for running with XA. I have tried to
see what other people have done in this new group and copied from them.
My connection pools looks like this:
<JDBCConnectionPool
DriverName="oracle.jdbc.xa.client.OracleXADataSource"
MaxCapacity="5" Name="alba"
Properties="user=<user>;url=jdbc:oracle:thin:@haux01:1526:UTV8;password=<pas
sword>;dataSourceName=alba"
RefreshMinutes="60" Targets="myserver"
URL="jdbc:oracle:thin:@haux01:1526:UTV8"/>
My data sources look like this:
<JDBCTxDataSource JNDIName="alba_ora817_localsl"
Name="alba_ora817_localsl" PoolName="alba" Targets="myserver"/>
The database is oracle 8.1.7.2.0
The reason I started trying to use XA in the first place was when I tried to
connect to two databases in the same transaction. I then got an error
message saying: java.sql.SQLException: Connection has already been created
in this tx context for pool named <first pool name>. Illegal attempt to
create connection from another pool: <second pool name>. As I have
understood, XA pools should fix this problem.
/Eirik
Hi Eirik
Is your Oracle database Server setup for XA? Check Oracle Docs on how to do
that.
you need to make sure this script is run on the server, initjvm.sql (It
should be in your oracle installation rdbms scripts) and then grant select
permission on dba_pending_transactions.
hth
sree
"newsgroups.bea.com" <[email protected]> wrote in message
news:[email protected]...
> I get the error message "PLS-00201: identifier 'JAVA_XA.XA_START_NEW' must
> be declared" when I try to deploy a J2EE application which uses XA pools
and
> TX datasources.
> I am not sure how to setup my system for running with XA. I have tried to
> see what other people have done in this new group and copied from them.
> My connection pools looks like this:
> <JDBCConnectionPool
> DriverName="oracle.jdbc.xa.client.OracleXADataSource"
> MaxCapacity="5" Name="alba"
>
>
Properties="user=<user>;url=jdbc:oracle:thin:@haux01:1526:UTV8;password=<pas
> sword>;dataSourceName=alba"
> RefreshMinutes="60" Targets="myserver"
> URL="jdbc:oracle:thin:@haux01:1526:UTV8"/>
>
> My data sources look like this:
> <JDBCTxDataSource JNDIName="alba_ora817_localsl"
> Name="alba_ora817_localsl" PoolName="alba" Targets="myserver"/>
>
> The database is oracle 8.1.7.2.0
>
> The reason I started trying to use XA in the first place was when I tried
to
> connect to two databases in the same transaction. I then got an error
> message saying: java.sql.SQLException: Connection has already been created
> in this tx context for pool named <first pool name>. Illegal attempt to
> create connection from another pool: <second pool name>. As I have
> understood, XA pools should fix this problem.
>
>
> /Eirik
>
>
-
Hi,
I developed simple page. It is running at Jdeveloper. But at the time of running import command, i am getting this error.
PLS-00201: identifier 'JDR_MDS_INTERNAL.GETREPOSITORYVERSION' must be declared
Regards,
HanimiPl post your full versions of OS and EBS along with the import command you used.
HTH
Srini -
PLS-00201: identifier 'GLOBALPKG.RCT1'
Hi,
Thanks for assistance.
I have created scripts for procedures and functions in sql server 2000. Then I have migrated it to Oracle using Swissql tool. After migration it one sql script was generated in which entire code is compatible to oracle syntax.
When I tried to run this script i got an error like this......
0/0 PL/SQL: Compilation unit analysis terminated
3/39 PLS-00201: identifier 'GLOBALPKG.RCT1' must be declared
Below is the code.....
CREATE OR REPLACE PROCEDURE PUC_ADM_AGND_GETREASONSEARCH
RCT1 IN OUT GLOBALPKG.RCT1
AS
BEGIN
OPEN RCT1 FOR
SELECT *
FROM PUC_AGND_STATUS;
END;
errors is shown above.
I dont find any relavant answer on google. Plese help me soon. So I can give you more headack.Dear Ratnesh,
Do you see if this procedure PUC_ADM_AGND_GETREASONSEARCH is in some package?
Do you know if GLOBALPCKG is a defined package?
select count(*)
from user_source
where name = 'GLOBALPCKG'
/Cheers
Sarma. -
Hi ALL,
We are using database 10.2.0.4. when I am running below command
begin
dbms_network_acl_admin.drop_acl
(acl => 'utl_http.xml');
end;
it gives error:
ORA-06550: line 3, column 7:
PLS-00201: identifier 'DBMS_NETWORK_ACL_ADMIN.DROP_ACL' must be declared
ORA-06550: line 3, column 7:
PL/SQL: Statement ignored
kindly help to resolve this problem.Dear Purvesh,
hmmm. So, any alternative package available for this Oracle 10g. because I need to create some function that use translate.google.com to translate the words into Arabic. following steps i found in the blog:
SYS@orcl_11gR2> begin
2 dbms_network_acl_admin.drop_acl
3 (acl => 'utl_http.xml');
4 end;
5 /
PL/SQL procedure successfully completed.
SYS@orcl_11gR2> begin
2 dbms_network_acl_admin.create_acl
3 (acl => 'utl_http.xml',
4 description => 'HTTP Access',
5 principal => 'SCOTT',
6 is_grant => true,
7 privilege => 'connect');
8 dbms_network_acl_admin.assign_acl
9 (acl => 'utl_http.xml',
10 host => 'translate.google.com',
11 lower_port => 80,
12 upper_port => 80);
13 commit;
14 end;
15 /
PL/SQL procedure successfully completed.
SYS@orcl_11gR2> connect scott/tiger
Connected.
SCOTT@orcl_11gR2> set define off
SCOTT@orcl_11gR2> create or replace function translation
2 (p_words in clob, -- words to be translated
3 p_to in varchar2 default 'ar', -- language to translate to
4 p_from in varchar2 default 'en') -- language to translate from
5 -- ar = Arabic
6 -- en = English
7 -- es = Spanish
8 -- fr = French
9 return clob
10 as
11 l_res clob;
12 l_words clob;
13 begin
14 l_res := httpuritype
15 ('http://translate.google.com/?hl=' ||
16 p_from || '&layout=1&eotf=1&sl=' || p_from ||
17 '&tl=' || p_to || '&text=' ||
18 utl_url.escape (p_words) || '#').getclob();
19 l_res := substr (l_res, instr (l_res, '<span title="' || p_words || '"'));
20 l_res := substr (l_res, 1, instr (l_res, '</span>') + 6);
21 l_words := XmlType (l_res).extract ('/span/text()').getStringVal();
22 return l_words;
23 end translation;
24 /
Function created.
SCOTT@orcl_11gR2> show errors
No errors.
SCOTT@orcl_11gR2> select translation ('cats and dogs', 'es') from dual
2 /
TRANSLATION('CATSANDDOGS','ES')
gatos y perros
1 row selected. -
PLS-00201: identifier 'SYS.LT_EXPORT_PKG' must be declared
Hi All,
While exporting full Database am getting below warning. Kindly advice me how to proceed here.
server uses WE8ISO8859P1 character set (possible charset conversion)
About to export the entire database ...
. exporting tablespace definitions
. exporting profiles
. exporting user definitions
. exporting roles
. exporting resource costs
. exporting rollback segment definitions
. exporting database links
. exporting sequence numbers
. exporting directory aliases
. exporting context namespaces
. exporting foreign function library names
. exporting PUBLIC type synonyms
. exporting private type synonyms
. exporting object type definitions
. exporting system procedural objects and actions
EXP-00008: ORACLE error 4063 encountered
ORA-04063: package body "WMSYS.LT_EXPORT_PKG" has errors
ORA-06508: PL/SQL: could not find program unit being called: "WMSYS.LT_EXPORT_PKG"
ORA-06512: at line 1
EXP-00083: The previous problem occurred when calling WMSYS.LT_EXPORT_PKG.system_info_exp
EXP-00008: ORACLE error 6550 encountered
ORA-06550: line 1, column 13:
PLS-00201: identifier 'SYS.LT_EXPORT_PKG' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
EXP-00083: The previous problem occurred when calling SYS.LT_EXPORT_PKG.system_info_exp
EXP-00008: ORACLE error 4063 encountered
ORA-04063: package body "WMSYS.LT_EXPORT_PKG" has errors
ORA-06508: PL/SQL: could not find program unit being called: "WMSYS.LT_EXPORT_PKG"
ORA-06512: at line 1
EXP-00083: The previous problem occurred when calling WMSYS.LT_EXPORT_PKG.system_info_exp
EXP-00008: ORACLE error 6550 encountered
ORA-06550: line 1, column 13:
PLS-00201: identifier 'SYS.LT_EXPORT_PKG' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
EXP-00083: The previous problem occurred when calling SYS.LT_EXPORT_PKG.system_info_exp
. exporting pre-schema procedural objects and actions
EXP-00008: ORACLE error 6550 encountered
ORA-06550: line 1, column 13:
PLS-00201: identifier 'SYS.LT_EXPORT_PKG' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
EXP-00083: The previous problem occurred when calling SYS.LT_EXPORT_PKG.schema_info_exp
EXP-00008: ORACLE error 4063 encountered
ORA-04063: package body "WMSYS.LT_EXPORT_PKG" has errors
ORA-06508: PL/SQL: could not find program unit being called: "WMSYS.LT_EXPORT_PKG"
ORA-06512: at line 1
EXP-00083: The previous problem occurred when calling WMSYS.LT_EXPORT_PKG.schema_info_exp
. exporting cluster definitions
. about to export SYSTEM's tables via Direct Path ...
Table DEF$_AQCALL will be exported in conventional path.
. . exporting table DEF$_AQCALL 0 rows exported
Table DEF$_AQERROR will be exported in conventional path.
. . exporting table DEF$_AQERROR 0 rows exported
Thanks,
Majeed.>
I have followed the doc 735171.1, but didn't help.
>
Pl indicate what "didn't help" means. Pl search MOS for "LT_SUPPORT_PKG" and you will find many hits - see if any are helpful in your case. If not, pl open an SR with Support.
HTH
Srini -
PLS-00201: identifier 'MESSAGEUTIL.GET_IAF' must be declared
My DB Procedure:
PROCEDURE GET_IAF (
V_PEID IN OUT VARCHAR2,
V_START_TIME IN OUT TIMESTAMP,
V_END_TIME IN OUT TIMESTAMP,
V_BATCH_ID IN OUT INTEGER,
V_EPS_ID IN OUT INTEGER,
V_EVENT_ID IN OUT INTEGER,
V_USER_INPUT IN OUT VARCHAR2,
V_STARTINDEX IN NUMBER,
V_MAXROWS IN NUMBER,
V_ACCESSCOUNT IN NUMBER DEFAULT -1,
Service_Instance_Id IN VARCHAR2,
V_RESULTSCOUNT OUT NUMBER,
V_STATUS OUT VARCHAR2,
V_ERROR OUT VARCHAR2,
V_MESSAGE OUT VARCHAR2,
V_RECORDSET OUT SYS_REFCURSOR);
My Java Code:
private static final String sqlGetIAF =
"{call MESSAGEUTIL.GET_IAF('AVapp1lLQPakyVfqQ9UO1Q',to_timestamp('21-Jan-11 01:00:00.0 AM','dd-MON-yy hh:mi:ss.F PM'),to_timestamp('21-Feb-11 01:00:00.0 AM','dd-MON-yy hh.mi.ss.F PM'),0,0,3,'A',-1,10,-1,51479661,?,?,?,?,?)}";
CallableStatement cstmt = getCstmt(sqlGetIAF);
cstmt.registerOutParameter(1,Types.INTEGER);
cstmt.registerOutParameter(2,Types.VARCHAR);
cstmt.registerOutParameter(3,Types.VARCHAR);
cstmt.registerOutParameter(4,Types.VARCHAR);
cstmt.registerOutParameter(5, OracleTypes.CURSOR);
rs=cstmt.executeQuery();
I am getting the below error when i am trying to run the above sql.
The user has execute grant on the stored procdure.
Error I am getting:
Caused By: java.sql.SQLException: ORA-06550: line 1, column 7:
PLS-00201: identifier 'MESSAGEUTIL.GET_IAF' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:206)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1035)
at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:191)
at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:950)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1223)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3386)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3430)
at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1491)
at weblogic.jdbc.wrapper.PreparedStatement.executeQuery(PreparedStatement.java:128)
at com.cox.corp.crn.db.dao.IAFProcessDAO.getIAF(IAFProcessDAO.java:65)
at com.cox.corp.crn.mdb.IAFQueueEJBBean.onMessage(IAFQueueEJBBean.java:82)
at sun.reflect.GeneratedMethodAccessor1567.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy240.onMessage(Unknown Source)
at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:466)
at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:371)
at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:327)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4585)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:4271)
at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3747)
at weblogic.jms.client.JMSSession.access$000(JMSSession.java:114)
at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:5096)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)What is <tt>MESSAGEUTIL</tt>?
use named parameters to keep track of the correct parameter count:"{ call MESSAGEUTIL.GET_IAF("
+ "V_PEID=> 'AVapp1lLQPakyVfqQ9UO1Q'"
+ ", V_START_TIME=> to_timestamp('21-Jan-11 01:00:00.0 AM','dd-MON-yy hh:mi:ss.F PM')"
...and leaving a space before <tt>call</tt> and before the final <tt>}</tt> meight also be a good idea...
There are some problems in here: your procedure defines out parameters that are not invoked by bind parameters in your java string. Since oracle tends to issue strange error messages this could be part of the problem. If you'r responsible for the procedure try to separate in parameters and out parameters.Defining a paramer to be both, IN and OUT is possible, but you should have a really, really good reason to do so.
BTW: the common naming convetion for parameters in PLSQL is <tt>p_...</tt>. <tt>v_...</tt> is for local variables inside a procedure.
BTW2: use java classes to pass parameters from java to PLSQL:CallableStatement cstmt = getCstmt("{ call MESSAGEUTIL.GET_IAF("
+ "V_PEID=> 'AVapp1lLQPakyVfqQ9UO1Q'"
+ ", V_START_TIME=> ? "
// how do you expect something like 'AVapp1lLQPakyVfqQ9UO1Q' beeing converted to an Integer?
cstmt.registerOutParameter(1,Types.INTEGER);
cstmt.registerOutParameter(2,Types.TIMESTAMP);
cstmt.execute();
java.sql.Timestamp timeStamp = cstmt.getTimestamp(2);bye
TPD -
PLS-00201: identifier 'ASSET_INVENTORY.POWNER_ID' must be declared
Hi all:
I am an intermediate Oracle Reports user and am evaluating teh use of BI Publisher as a replacement. Since I have a large number of reports, some of which are fairly complex, I wish to take advantage of the conversion tool.
I have successfully converted all of the existing reports. I am working with one of the simple reports that only has three user parameters, one of which is in the Subject line. I have edited my report to use the correct database, i.e. "default" and can connect.
In this example, each of my user parameters get the error above.
I suspect that there is an additional step involved that is not in the documentation.
Any help is appreciated.
thx,
GaryCREATE OR REPLACE PACKAGE infoline AS
END infoline;
and
CREATE OR REPLACE PACKAGE BODY infoline AS
Functions to refer Oracle report placeholders
END infoline ;
as you can see there is not much to this report. Just three queries and of course the charts, which is the part I needed.
More to learn I suppose.
thx
Maybe you are looking for
-
ERROR message while posting SHIPMENT order
Hi all, i have developed one program which can create a shipment order using BAPI_SHIPMENT_CREATE.After uploading, i have passed all the data to this FM. in my return parameter, i am getting only error message number & type of message but message is
-
Hey guys, I just updated my itunes and updated with Snow.. LOVE! Buuuttt.... Now I can not burn any CDs.... it keeps giving me a error -50 and ejects the CD. It trys to initalize... but nadda ! Any suggestions I need to burn stuff for school.. Thanks
-
How to run windows xp files on leopard,
New mac user. I cannot open backup files taken by western digital backup on my old windows system. I guess the question is how or what program do I need to open these files?
-
Problem to display image on report
Hi, I have an image on a differnt server owned by different group. And I need to bring that image and display it on the report. Is this possible? Can some one hlep me how to do this? It was working fine in reports 2.5 but we migrated to 10g and it st
-
HT1338 Computer keeps having to restart. Why is it doing this?
I have also recently taken the computer to geek squad. They ran several test and supposedly there are no hardware problems.