|
Re: PL/SQL: ORA-04063: table "CISADM.CI_BILL" has errors [message #564865 is a reply to message #564864] |
Wed, 29 August 2012 03:54   |
John Watson
Messages: 8979 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
Welcome to the forum. Please read our OraFAQ Forum Guide and How to use [code] tags and make your code easier to read
Your code is full of bugs! Check the msot basic syntax first:orcl> create or replace function tried to return varchar2 is
2 begin
3 null;
4 end;
5 /
Warning: Function created with compilation errors.
orcl> show errors
Errors for FUNCTION TRIED:
LINE/COL ERROR
-------- -----------------------------------------------------------------
1/16 PLS-00103: Encountered the symbol "TO" when expecting one of the
following:
( return compress compiled wrapped
The symbol "TO" was ignored.
orcl>
and post again, using the [code] tags, please.
|
|
|
|
Re: PL/SQL: ORA-04063: table "CISADM.CI_BILL" has errors [message #564991 is a reply to message #564990] |
Wed, 29 August 2012 19:44   |
 |
BlackSwan
Messages: 26766 Registered: January 2009 Location: SoCal
|
Senior Member |
|
|
Please read and follow the forum guidelines, to enable us to help you:
http://www.orafaq.com/forum/t/88153/0/
>Errors for FUNCTION DEEPWELL.COBA:
It appears schema owner of COBA function is DEEPWELL.
>4/33 PL/SQL: ORA-04063: table "CISADM.CI_BILL" has errors
04063, 00000, "%s has errors"
// *Cause: Attempt to execute a stored procedure or use a view that has
// errors. For stored procedures, the problem could be syntax errors
// or references to other, non-existent procedures. For views,
// the problem could be a reference in the view's defining query to
// a non-existent table.
// Can also be a table which has references to non-existent or
// inaccessible types.
// *Action: Fix the errors and/or create referenced objects as necessary.
what object type is CI_BILL? (a VIEW?)
Is CI_BILL really owned by CISADM?
[Updated on: Wed, 29 August 2012 19:55] Report message to a moderator
|
|
|
|
|
|
|
|
|
Re: PL/SQL: ORA-04063: table "CISADM.CI_BILL" has errors [message #565040 is a reply to message #565039] |
Thu, 30 August 2012 02:53   |
 |
zhyege
Messages: 10 Registered: August 2012 Location: Indonesia
|
Junior Member |

|
|
Hi Michel,
sorry i made mistake when copy-paste the script, my script suppose like this:
SQL> create or replace function coba return varchar2 is
2 result varchar2(20);
3 begin
4 select bill_id into result from ci_bill;
5
6 return(result);
7 end coba;
8 /
there is no word "TO" in the script.
below is result of execution script from you:
SQL> show user
User is "deepwell"
SQL> select owner, object_name, object_type, status
2 from dba_objects
3 where object_name in ('CCBSTDBY', 'CI_BILL')
4 /
OWNER OBJECT_NAME OBJECT_TYPE STATUS
---------- --------------- ------------------ -------
DEEPWELL CI_BILL SYNONYM VALID
DEEPWELL CCBSTDBY DATABASE LINK VALID
SQL> select * from dba_synonyms where synonym_name='CI_BILL';
OWNER SYNONYM_NAME TABLE_OWNER TABLE_NAME DB_LINK
-------- ------------- ------------ ------------ ----------------
DEEPWELL CI_BILL CISADM CI_BILL CCBSTDBY
Regard
zhy
--
update: corrected [quote] tags to [code] tags. jw.
[Updated on: Thu, 30 August 2012 03:00] by Moderator Report message to a moderator
|
|
|
Re: PL/SQL: ORA-04063: table "CISADM.CI_BILL" has errors [message #565044 is a reply to message #565040] |
Thu, 30 August 2012 03:03   |
 |
Michel Cadot
Messages: 68761 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
Please use CODE tags and not QUOTE one to post your code.
And I asked you to execute again the first 2 queries within SQL*Plus. Please do it.
After that, connect on the @CCBSTDBY database using user CISADM and execute:
show user
select owner, object_name, object_type, status
from dba_objects
where object_name in ('CI_BILL')
/
show parameter audit
Regards
Michel
[Updated on: Thu, 30 August 2012 03:03] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|