Identifier 'DBMS_OUPTPUT.PUT_LINE' must be declared
When Iam running a PL/SQL block with some DBMS_OUTPUT.PUT_LINE statements, Iam getting the above error mentioned in the subject. Wondering what could be the reason?
I've tried setting serveroutput on, but of no use. Any pointers on this?
Well, the call in your heading has a spelling error: DBMS_OUPTPUT.PUT_LINE.
C.
Similar Messages
-
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 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 -
Can`t access Portal Home page: 'PORTAL.WWPOB_PAGE must be declared
When I try to access Portal's home page (http://server:port/pls/portal) executes Home procedure and redirects me to http://server:port/portal/page?...
Then an error happens, "The Listener returned the following Message: 404 not found.
Apache error_log shows these lines:
[Tue Feb 24 19:11:51 2004] [error] mod_plsql: /pls/portal/!PORTAL.wwpob_page.sho
w HTTP-404 ORA-06550: line 10, column 2:
PLS-00201: identifier 'PORTAL.WWPOB_PAGE' must be declared
ORA-06550: line 10, column 2:
PL/SQL: Statement ignored
The package portal.wwpob_page exists and even is used by HOME procedure, so I don´t understand te message in log.
Any help please ?Fco. Javier Pozo, from the bug info you provide I assume you are running a version of Portal 9.0.2.x. After having a quick look at the patches you mention I see that patch 2943209 seems to make changes to the WWPOB_PAGE package
As far as your language install commands, the first one looks fine and would have installed language 'e' (spanish I think) in both portal and single sign-on server. So I'm not sure why you ran it a second time to re-install language 'e' into single sign-on server only, but I don't think it would break anything.
I would recommend checking that all your db packages are valid and making aure you didn;t recieve any errors in applying all the actions you listed. If this doesn;t fix the problem then go back to your backup which you would have taken before applying these patches and re-apply them one by one, checling at each stage to see if your Portal is still OK.
Otherwise you should call Oracle Suport and log a TAR as I assume you have access to Oracle support and they are who told you to apply these patches.
Cheers,
Mick. -
RMAN-10014: 'DBMS_RCVCAT.REGISTERDATABASE' must be declared
Hi all,
I get this error when trying to register a database in RMAN
RMAN> register database;
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of register command on default channel at 02/25/2013 13:31:05
RMAN-10015: error compiling PL/SQL program
RMAN-10014: PL/SQL error 0 on line 13 column 5: Statement ignored
RMAN-10014: PL/SQL error 201 on line 13 column 5: identifier 'DBMS_RCVCAT.REGISTERDATABASE' must be declared
any help would be greatly appreciated.I have tried this with the following results.
SQL> select * from rc_database;
no rows selected
then
RMAN> unregister database;
database name is "MSCSMS" and DBID is 551127820
Do you really want to unregister the database (enter YES or NO)? yes
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-06004: ORACLE error from recovery catalog database: RMAN-20001: target database not found in recovery catalog
and back to the same error:
RMAN> register database;
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of register command on default channel at 02/25/2013 15:19:15
RMAN-10015: error compiling PL/SQL program
RMAN-10014: PL/SQL error 0 on line 13 column 5: Statement ignored
RMAN-10014: PL/SQL error 201 on line 13 column 5: identifier 'DBMS_RCVCAT.REGISTERDATABASE' must be declared -
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 -
Import Workspace Error - WWV_FLOW_API#G_ID_OFFSET' must be declared
Whenever I try to import a Workspace from an dos export file I get the following error. Any ideas?
Application Express 4.2.2.00.11
Oracle Database EE 11.2.0.2
Execution of the statement was unsuccessful. ORA-06550: line 3, column 4: PLS-00201: identifier
'WWV_FLOW_API#G_ID_OFFSET' must be declared ORA-06550: line 3, column 4: PL/SQL: Statement ignored
begin
wwv_flow_api#g_id_offset := 0;
wwv_flow_hint.g_schema := 'MYUSER';
wwv_flow_hint.check_schema_privs
end;
ORA-06550: line 3, column 4: PLS-00201: identifier 'WWV_FLOW_API#G_ID_OFFSET' must be declared ORA-06550: line 3, column 4: PL/SQL: Statement ignoredIs there a certain user that the script needs to be run as. When I just ran the script as SYS I get the following error:
SQL> @storepage.sql
WORKSPACE 2146208538698704
Creating workspace STOREPAGE...
Creating Groups...
Creating Users...
Check Compatibility...
wwv_flow_team_api.check_version(p_version_yyyy_mm_dd=>'2010.05.13');
ERROR at line 3:
ORA-06550: line 3, column 1:
PLS-00201: identifier 'WWV_FLOW_TEAM_API.CHECK_VERSION' must be declared
ORA-06550: line 3, column 1:
PL/SQL: Statement ignored
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64
bit Production
With the Partitioning option -
Hi,
I just uograded my dev database to from 10.2.0.4 to 11.1.0.7.2. During the testing phase of the upgrade, I had come up wiht scripts to execute after the upgrade to 11g so that my utl_smtp packages will run. But now, after upgrading to 11g, when I run these scripts, I get the below error -
ORA-06550: line 4, column 33:
PL/SQL: ORA-00942: table or view does not exist
ORA-06550: line 4, column 3:
PL/SQL: SQL Statement ignored
ORA-06550: line 6, column 4:
PLS-00201: identifier 'DBMS_NETWORK_ACL_ADMIN.CHECK_PRIVILEGE' must be declared
During the testing phase, I installed 11g instance and created an 11g database and then imported the 10g objects into the 11g database so as to test the application. Now, I think what happened is when I upgraded my 10g database to 11g using DBUA, it did not install APEX. I ytried to configure APEX by following instructions from this site - http://www.oracle.com/technology/obe/11gr1_db/install/apexinst/apexinst.htm and this gives me error the error -
PLS-00201: identifier 'DBMS_XDB.SETHTTPPORT' must be declared
How do I install apex?Can someone please guide me this?
ThanksHi, Ogan, I got this resolved.
After the upgrade by using DBUA, I tried to execute scripts to configure ACLs since my database has dependent objects. That's when I got error saying that dbms_network_acl_admin was not found.
when I queried DBA_registry , it didn't list XDB as one of the components. So, I understood this didn't get installed during the upgrade with DBUA. So, I installed XDB manually by running catqm.sql. This however created a lot of invalid objetcs which wouldnt get validated after tryign to recompile them with utlrp.sql. Most of the errors were looping chain of synonyms. Finally, I de-installed it and re-installed xdb and ran utlrp.sql to validate all the invalid objects. Now, everything is fine.
I guess xdb doesn't get installed during the dbua upgrade and maybe it needs to be installed seperately. But, that's kind of confusing because xdb is supposed to be a mandatory component in 11g. Can someone please clarify this? -
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. -
Hi! I have an specific problem with this program with the variable CADENA
declare
cursor test_tabla is
select td_tabla, td_period, td_fec_ult_test
from ta_tx_test_tabla;
tt_tabla varchar2(20);
tt_period number;
tt_fec_ult date;
propietario varchar2(20);
cursor columnas is
select column_name, data_type
from all_tab_columns
where table_name = tt_tabla and owner=propietario;
bloquePLSQL varchar2(32767);
lineaAuxCol varchar2(3000);
lineaAuxCab varchar2(3000);
cadena varchar2(30);
begin
--recorremos la tabla para comprobar si ha vencido algun plazo
for tt in test_tabla loop
tt_tabla := tt.td_tabla;
tt_period := tt.td_period;
tt_fec_ult := tt.td_fec_ult_test;
if tt_fec_ult + tt_period < sysdate then
--ha vencido el plazo para ejecutar el test
--obtenemos el propietario de la tabla, que puede ser ANALSI o ANALTAURO
select owner into propietario
from all_tables where table_name=tt_tabla and (tablespace_name='SI_TAURO' or tablespace_name='TA_TAURO');
dbms_output.put_line( propietario );
bloquePLSQL := ' declare';
bloquePLSQL := bloquePLSQL || ' fichero utl_file.file_type;';
bloquePLSQL := bloquePLSQL || ' fecha date;';
bloquePLSQL := bloquePLSQL || ' result varchar2(30);';
bloquePLSQL := bloquePLSQL || ' cursor test is';
bloquePLSQL := bloquePLSQL || ' select * from '||propietario||'.' || tt_tabla || ' minus select * from analsepe.' || tt_tabla || ';';
bloquePLSQL := bloquePLSQL || ' begin ';
bloquePLSQL := bloquePLSQL || ' select sysdate into fecha from dual; ';
bloquePLSQL := bloquePLSQL || ' result := to_char(fecha,''ddmmyy'') || ''-'' || ''' || tt_tabla || '''; ';
bloquePLSQL := bloquePLSQL || ' dbms_output.put_line( result ); ';
bloquePLSQL := bloquePLSQL || ' fichero := utl_file.fopen(''/export/home/xmgm'', result||''.txt'', ''w'', 16384);';
lineaAuxCab := '*';
for col in columnas loop
lineaAuxCab := lineaAuxCab || rpad(col.column_name,20) || '*';
end loop;
bloquePLSQL := bloquePLSQL || ' utl_file.put_line(fichero, ''' || lineaAuxCab || ''');';
bloquePLSQL := bloquePLSQL || ' for rec_test in test loop';
lineaAuxCol := '''*''';
dbms_output.put_line('1 '||cadena);
for col in columnas loop
cadena:=null;
insert into cadena select decode(1,2,'X',rec_test.' || col.column_name || ') from dual;
dbms_output.put_line('2 '||cadena);
lineaAuxCol := lineaAuxCol || ' || rpad(nvl(cadena, '' ''),20) || ''*''';
end loop;
bloquePLSQL := bloquePLSQL || ' utl_file.put_line(fichero, ' || lineaAuxCol || ');';
bloquePLSQL := bloquePLSQL || ' end loop;';
bloquePLSQL := bloquePLSQL || ' utl_file.fclose(fichero);';
bloquePLSQL := bloquePLSQL || ' end;';
execute immediate bloquePLSQL;
end if;
end loop;
end;
and this problem
declare
ERROR en l�nea 1:
ORA-06550: line 64, column 26:
PLS-00201: identifier 'CADENA' must be declared
ORA-06550: line 64, column 13:
PL/SQL: SQL Statement ignored
how must i declare or use CADENA?
thanksI think you wanted to write
select select decode(1,2,'X',rec_test.' || col.column_name || ') into cadena from dual;
Maybe you are looking for
-
Error while Installment Plan creation
Dear friends , When i am saving the installment plan i am getting this error can anyone please let me know how to rectify this error Internal error: Incorrect use of a function module Function module FKK_TAX_EXEMPT_KEY_DETERMINE was called with incom
-
Error in posting payment document
While posting outgoing payments through T-code F-53, the client received the error message 'The entry 1210 is missing in table T043G' and the system did not allow the posting payment document. Please anybody can give me solution for this.
-
Battery discharge: Lion 10.7.2 vs Snow Leopard 10.6.8
Has anyone noticed that Lion consumes more resources than Snow Leopard thus causing faster battery discharge? YMMV, but it would be interesting to see of others can get similar results. Do you suppose Lion 7.3 will increase or decrease resource usage
-
Can I get files from a Mac formatted External Hard Drive onto a PC
I have some old files on a mac formated external and wanted to know if there is anyway I could plug it into my pc and be able to access it. So far no dice. If there is a way to do it, I'd really appreciate knowing how. Thanks a lot.
-
New HD - No Airport Card?
I just installed a replacement hard drive, with fresh Mac OS. After start up, no airport. Any tips?