Compiling packages or procedures
Hello,
I am compiling a package , procedures etc. The query comes back with invalids. I have show error. How do I retrieve more detail information about why the package/procedure/view are invalid?
DECLARE
v_status VARCHAR2(10);
v_cmd VARCHAR2(150);
Cursor rw_objects
IS
Select object_name,object_type,status,owner
From dba_objects
WHERE UPPER(object_type) IN ('VIEW','PROCEDURE','FUNCTION','PACKAGE', 'PACKAGE BODY','TRIGGER','SYNONYM')
AND owner = UPPER('&&DW_SCHEMA')
AND status = 'INVALID';
BEGIN
FOR t IN rw_objects
LOOP
IF t.object_type ; IN ('SYNONYM','VIEW','TRIGGER','PROCEDURE','FUNCTION') THEN
v_cmd := 'ALTER ' || t.object_type || ' ' || t.owner||'.'||t.object_name || ' COMPILE ';
execute immediate v_cmd;
ELSIF
t.object_type ; = ('PACKAGE') THEN
v_cmd := 'ALTER PACKAGE ' || ' ' || t.owner||'.'||t.object_name || ' COMPILE PACKAGE';
execute immediate v_cmd;
ELSIF
t.object_type ; = ('PACKAGE BODY') THEN
v_cmd := 'ALTER PACKAGE ' || ' ' || t.owner||'.'||t.object_name || ' COMPILE BODY';
execute immediate v_cmd;
dbms_output.put_line( rpad( t.object_type || ' ' || t.object_name, 50, ' ' ) || ' VALID ');
END IF;
END LOOP;
END;
SELECT object_name, object_type, status
FROM dba_objects
WHERE STATUS = 'INVALID'
AND UPPER(object_type) IN ('VIEW','PROCEDURE','FUNCTION','PACKAGE', 'PACKAGE BODY','TRIGGER','SYNONYM')
AND owner = UPPER('&&DW_SCHEMA')
ORDER by object_type;
show errors; Here are the results.
OBJECT_NAME OBJECT_TYPE STATUS
PM206 PACKAGE BODY INVALID
DW_BE_DFACT_TB_REFRESH_HANDLER PACKAGE BODY INVALID
DW_BE_DFACT_TB_INITIAL_HANDLER PACKAGE BODY INVALID
CHART_HANDLER PACKAGE BODY INVALID
DW_CRS_HANDLER PACKAGE BODY INVALID
DELETE_UPDATE_PROC PROCEDURE INVALID
DW_CBS_PROC PROCEDURE INVALID
DW_GL_DFACT_VW VIEW INVALID
8 rows selected.
No errors.
too bad COPY & PASTE are broken for you!
1 DECLARE
2 v_status VARCHAR2(10);
3 v_cmd VARCHAR2(150);
4 Cursor rw_objects
5 IS
6 Select object_name,object_type,status,owner
7 From dba_objects
8 WHERE UPPER(object_type) IN ('VIEW','PROCEDURE','FUNCTION','PACKAGE', 'PACKAGE BODY','TRIGGER','SYNONYM')
9 AND owner = UPPER('&&DW_SCHEMA')
10 AND status = 'INVALID';
11 BEGIN
12 FOR t IN rw_objects
13 LOOP
14 IF t.object_type ; IN ('SYNONYM','VIEW','TRIGGER','PROCEDURE','FUNCTION') THEN
15 v_cmd := 'ALTER ' || t.object_type || ' ' || t.owner||'.'||t.object_name || ' COMPILE ';
16 execute immediate v_cmd;
17 ELSIF
18 t.object_type ; = ('PACKAGE') THEN
19 v_cmd := 'ALTER PACKAGE ' || ' ' || t.owner||'.'||t.object_name || ' COMPILE PACKAGE';
20 execute immediate v_cmd;
21 ELSIF
22 t.object_type ; = ('PACKAGE BODY') THEN
23 v_cmd := 'ALTER PACKAGE ' || ' ' || t.owner||'.'||t.object_name || ' COMPILE BODY';
24 execute immediate v_cmd;
25 dbms_output.put_line( rpad( t.object_type || ' ' || t.object_name, 50, ' ' ) || ' VALID ');
26 END IF;
27 END LOOP;
28* END;
29 /
old 9: AND owner = UPPER('&&DW_SCHEMA')
new 9: AND owner = UPPER(' USER1')
IF t.object_type ; IN ('SYNONYM','VIEW','TRIGGER','PROCEDURE','FUNCTION') THEN
ERROR at line 14:
ORA-06550: line 14, column 49:
PLS-00103: Encountered the symbol ";" when expecting one of the following:
. ( * @ % & = - + < / > at in is mod remainder not rem then
<an exponent (**)> <> or != or ~= >= <= <> and or like like2
like4 likec between || multiset member submultiset
The symbol ";" was ignored.
ORA-06550: line 18, column 48:
PLS-00103: Encountered the symbol ";" when expecting one of the following:
. ( * @ % & = - + < / > at in is mod remainder not rem then
<an exponent (**)> <> or != or ~= >= <= <> and or like like2
like4 likec between || multiset
ORA-06550: line 22, column 49:
PLS-00103: Encountered the symbol ";" when expecting one of the following:
. ( * @ % & = - + < / > at in is mod remainder not rem then
<an exponent (**)> <> or != or ~= >= <= <> and or like like2
like4 likec between || multiset
SQL>
Similar Messages
-
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:
SvSigi 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 compile all functions, procedures and packages with a script?
I need to compile all functions, procedures and packages of 5 schemas (users) with a script.
How can I do it?
Thanks!you can create a script to select all invalid objects in those schemas Since Oracle 8 introduced NDS this approach has struck me as a trifle old fashioned. It's much simpler to loop round the query in PL/SQL and use EXECUTE IMMEDIATE to fire off the DDL statements. No scripts, no muss, no fuss.
Having said that, the problem with this approach and also with using DBMS_UTILITY.COMPILE_SCHEMA is that they do not compile all the invalid objects in dependency order. This may result in programs being invalidated by the subsequent compilation of dependencies. This is due to the introduction of Java into the database.
The UTLRP script is much better, because it (usually) avoids cyclic references. But you still may need to run it more than once.
In general it is better to avoid sledgehammer recompilations (like DBMS_UTILITY.COMPILE_SCHEMA, which starts by invalidating all the objects). If we have twenty invalid objects, nineteen of which are dependencies of the twentieth, we actually only need to recompile the master object, as recompiling it will trigger the recompilation of all the others.
Cheers, APC -
How to compile packge inside procedure which uses this package
ORACLE 10g, 11g
CREATE OR REPLACE PACKAGE PKG_TEST_COMMIT
PROCEDURE Insert_into_table_T1;
PROCEDURE Update_table_T1;
END PKG_TEST_COMMIT;
CREATE OR REPLACE PROCEDURE PROC_TEST_COMMIT As
Begin
PKG_TEST_COMMIT. Insert_into_table_T1; --insert data into table T1
EXECUTE IMMEDIATE 'DROP table T1';
EXECUTE IMMEDIATE
'create table T1 as select ''1'', ''d'', ''s' from DUAL'; -- now package PKG_TEST_COMMIT in uncompiled stage
-- compile package
DBMS_DDL.alter_compile('PACKAGE', 'OWNER', 'PKG_TEST_COMMIT');
PKG_TEST_COMMIT. Update_into_table_T1;
End PROC_TEST_COMMIT;
When I try to run PKG_TEST_COMMIT I’Ve got an error: can’t lock the package.
I tried to create separate procedure for compilation, but result is the same.
If I finish PROC_TEST_COMMIT before compiling, then compile – OK.
Is there is a way to compile package inside the procedure?I need to automate the process which first call some procedure from the package, then invalidate this package by dropping and recreating the table (I didn't create the code, but I can see thepoint init - this is the farstest way to populate huge table) and then call another proc from the same package (using table just cretated).
Otherwise I need human attention to this process. If it is imposible I can substitude "drop table and create table" for truncate and insert", but I am afraid it will take too long. -
Toad packages and procedures not staying compiled
Dear All,
I am using Toad 9.6, and i am suffering a problem. when my server restart then my some of procedure or function not staying compiled. Even all procedure are compile correctly. Because of this problem , my application generating error.
We haven't seen any pattern as to which ones become uncompiled. One day i compile all my procedure successfully and the next morning the some of procedures are uncompiled. Most of the time they will work after being
recompiled, but occasionally they will stay compiled for a few minutes and then go back to being uncompiled.
any help?
Regards,Thanks alot for reply
If i run this then never compiled object come uncompiled...
Regards, -
Strange download size of on calling packaged stored procedure in VB6
Hi,
I tried to use VB6 to call oracle stored procedure with ref cursor as output parameter under a package in 10g database (10.1.03). Oracle client uses windows 9.2 / 10.1.02 (Oracle OLEDB Provider) . I found that when the package size increases(> 1000 lines codes), the data size transfer from database to VB client also increases. I try to trap the binary data flow between VB6 and database when calling packaged stored procedure. I found that VB6(or oracle client ??) will first download package spec then execute the requested stored procedure. This may explain the cause of increasing size.
However, this large download size for calling only one of the procedure will make my application run slowly when my application uses the package much. How can I solve this problem ? Does this relate to oracle client(p.s. this problem disappear when using Microsoft OLEDB Provider)?
Thanks
StevenYou can use a wrapper to get compiled code and if it's 10g you can do even more by putting it in a library.
OLEDB from VB6 still using Oracle 'Client' as you call Oracle NET. -
Execution of Immediate SQL in compiled package in two versions of SQL*PLUS
A peculiar problem has risen in our database.
Execution of Immediate SQL in compiled package in two versions of SQLPLUS gives different results
We have a compiled package with two procedures that contain immediate SQL statements, and these are:
+PROC_DELETE_ROWS+
+ -- This immediate sql deletes unreferenced Document Types from the DOC_REF_TYPE table+
+ delete from doc_ref_type t where exists (select 1 from PROARC_DOC_REF_TYPE_VW d where d.doc_ref_type = t.doc_ref_type)+
+ and not exists (select 1 from doc_ref d where d.doc_ref_type = t.doc_ref_type)+
+ and doc_ref_type not in (select doc_ref_type from eis_doc_ref_type)+
+ and doc_ref_type not in (select eis_doc_ref_type from eis_doc_ref_type)+
+PROC_ADD_NEW_ROWS+
+ -- Drop the temporary table+
+ drop table TMP_PROARC_DOC_REF_TYPE+
+ -- Create a temporary table+
+ create table tmp_PROARC_DOC_REF_TYPE as+
+ select DOC_REF_TYPE, substr(DOC_REF_TYPE_DESC,1,100) as DOC_REF_TYPE_DESC+
+ from PROARC_DOC_REF_TYPE_VW+
+ -- Insert document types that do not exist in the DOC_REF_TYPE table+
+ insert into doc_ref_type t (DOC_REF_TYPE, DOC_REF_TYPE_DESC)+
+ select distinct DOC_REF_TYPE, DOC_REF_TYPE_DESC from tmp_PROARC_DOC_REF_TYPE s+
+ where not exists (select 1 from doc_ref_type t where t.doc_ref_type = s.doc_ref_type)+
I am using the following test script:
+Exec mypackage.proc_delete_rows;+
+Commit;+
+Select count(*) from DOC_REF_TYPES;+
+Exec mypackage.proc_add_new_rows;+
+Commit;+
+Select count(*) from DOC_REF_TYPES;+We have a Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit
I am using SQL*Plus: Release 8.1.7.0.0
The test script is working as expected.
Count after delete =155
Count after insert = 511
but when I use another computer with SQL*Plus: Release 10.x
The Test script returns the following
Count after delete =155
Count after insert =155
The same is happening when I am running the scripts as a scheduled job.
QUESTION:
I believe I have found a fix for the problem though. By changing tmp_PROARC_DOC_REF_TYPE in the insert statement to all upper case, the script is running in both environments apparently. But how is this possible? I am executing a compiled package in the database. The session shell should have no impact on the behaveour of the procedure I am calling. What causes this?
Edited by: Reon on Jun 16, 2011 4:44 AM1) I am using the same user (PANDORA)
2) (PANDORA) for both
3) I am actually not handling any errors. Just skipping any error altogether. I'll check to see what exceptions are raised, and come back.
I have also noticed that SQL/PLUS is not the culprit here. If I use SQLTools 1.5 to run the script, the same thing happens. So it has to do something with the connection or session environment that is inheritet to both clients.
The CODEZ:_
procedure add_doc_types IS
sqlstr VARCHAR2(2000);
begin
BEGIN
sqlstr := 'drop table TMP_PROARC_DOC_REF_TYPE';
EXECUTE IMMEDIATE sqlstr;
EXCEPTION
WHEN OTHERS THEN
null;
END;
BEGIN
sqlstr := 'create table tmp_PROARC_DOC_REF_TYPE as select DOC_REF_TYPE, substr(DOC_REF_TYPE_DESC,1,100) as DOC_REF_TYPE_DESC from PROARC_DOC_REF_TYPE_VW';
EXECUTE IMMEDIATE sqlstr;
EXCEPTION
WHEN OTHERS THEN
null;
END;
BEGIN
sqlstr := 'insert into doc_ref_type t (DOC_REF_TYPE, DOC_REF_TYPE_DESC)
select distinct DOC_REF_TYPE, DOC_REF_TYPE_DESC from TMP_PROARC_DOC_REF_TYPE s
where not exists (select 1 from doc_ref_type t where t.doc_ref_type = s.doc_ref_type)';
EXECUTE IMMEDIATE sqlstr;
sqlstr := 'update doc_ref_type t set DOC_REF_TYPE_DESC = (
select DOC_REF_TYPE_DESC from tmp_PROARC_DOC_REF_TYPE s
where t.doc_ref_type = s.doc_ref_type)
where exists (select 1 from tmp_PROARC_DOC_REF_TYPE s where t.doc_ref_type = s.doc_ref_type)';
EXECUTE IMMEDIATE sqlstr;
EXCEPTION
WHEN OTHERS THEN
null;
END;
end add_doc_types;
procedure delete_doc_types IS
sqlstr VARCHAR2(2000);
BEGIN
sqlstr := 'delete from doc_ref_type t where exists (select 1 from PROARC_DOC_REF_TYPE_VW d where d.doc_ref_type = t.doc_ref_type)
and not exists (select 1 from doc_ref d where d.doc_ref_type = t.doc_ref_type)
and doc_ref_type not in (select doc_ref_type from eis_doc_ref_type)
and doc_ref_type not in (select eis_doc_ref_type from eis_doc_ref_type)';
EXECUTE IMMEDIATE sqlstr;
EXCEPTION
WHEN OTHERS THEN
null;
end delete_doc_types;Edited by: Reon on Jun 16, 2011 2:01 AM -
PLS-00801: Internal Error - Compiling Package in JDeveloper
I am trying to compile a package in JDeveloper so that I will be able to debug it. The issue is that the whenever I compile it I get a back an PLS-00801: Internal Error.
What is really strange is that when I compile it using sqlplus - the package comes back fine without any problems.
The package is approximately 5400 lines, contains UTF8 characters (I turned on UTF8 encoding in order to get the package to show correctly [found that one on this site - thank you]). It contains approx 15 methods, lost of cursors, ...
I am using the following version of JDeveloper.
Version 9.0.4.0 (Build 1419)
Oracle IDE: 9.0.4.13.2
UML Modelers Vers: 9.0.4.12.69
JMIG Framework: 9.0.4.3.75
SCM Support Version: 9.0.4.12.69
Business Components: 9.0.4.13.79
Java Version: 1.4.2_03
Java Home: c:\Programs\JDev9i\jdk\jre
Any help would be greatly appreciated - even pointing me in the direction of the logs to see if I can track down why I am getting this error.
Thank you
Marc PadbergOkay -
I broke down the PL/SQL package and figured out what was causing the internal error - it was a parameter that was based on ROWTYPE of a cursor.
Whenever I have a CURSOR%ROWTYPE as a parameter I get an internal error in JDeveloper.
Any help to resolve this would be greatly appreciated.
I wrote a small sample package using dual that simulates this.
CREATE OR REPLACE PACKAGE sample_problem IS
PROCEDURE call_internal_method;
END sample_problem;
CREATE OR REPLACE PACKAGE BODY sample_problem IS
CURSOR get_data IS
SELECT 'Test' as NAME FROM dual;
-- I have to comment this method out
-- in order to compile in JDeveloper
PROCEDURE internal_method_with(p_rec get_data%ROWTYPE)
IS
BEGIN
DBMS_OUTPUT.put_line(p_rec.NAME);
END internal_method_with;
PROCEDURE internal_method_without
IS
BEGIN
DBMS_OUTPUT.put_line('No Rowtype Passed');
END internal_method_without;
PROCEDURE call_internal_method
IS
lrec_get_data get_data%ROWTYPE;
BEGIN
OPEN get_data;
FETCH get_data INTO lrec_get_data;
CLOSE get_data;
-- I have to comment this method out
-- in order to compile in JDeveloper
internal_method_with(lrec_get_data);
internal_method_without;
END call_internal_method;
END sample_problem;
/ -
How to turn off validation when compiling Packages...!
Hello,
How do I turn off the validation when compiling Packages in SQLPLus?
Thanks
RaoI'm guessing at what you're after here, but maybe this?
ME_XE?create or replace procedure one
2 as
3 begin
4 null;
5 end;
6 /
Procedure created.
Elapsed: 00:00:00.73
ME_XE?set feedback off
ME_XE?create or replace procedure one
2 as
3 begin
4 null;
5 end;
6 /
Elapsed: 00:00:00.61 -
Ora-04021 error while compiling a stored procedure
Hi Gurus,
I am getting a ora-04021 timeout error while trying to compile a stored procedure. My Oracle version is 9i on Unix.
Thanks
Amitava.amitavachatterjee1975 wrote:
Hi Gurus,
I am getting a ora-04021 timeout error while trying to compile a stored procedure. My Oracle version is 9i on Unix.
Thanks
Amitava.
my car won't go.
tell me how to make my car go.
How do I ask a question on the forums?
https://forums.oracle.com/forums/thread.jspa?threadID=2174552#9360002
[oracle@localhost ~]$ oerr ora 4021
04021, 00000, "timeout occurred while waiting to lock object %s%s%s%s%s"
// *Cause: While waiting to lock a library object, a timeout occurred.
// *Action: Retry the operation later.
[oracle@localhost ~]$ -
Hi Guys,
We have created a custom package where in we are trying to call the standard API's of Oracle projects i.e PA_PROJECT_PUB.When we are trying to call these APIs we are facing the below issue.
We have tried testing in two instances ,Initially it worked in both instances.
Using the same API's multiple times we tested the same data set in these instances.
For the first few runs it works fine.But when we go on using the same API's again and again for our testing we face now and then the below issue.
Standard API's
=========
add_task
update_project
change_structure_status
create_draft_plan
Error:
ORA-20100: File o2670336.tmp creation for FND_FILE failed.You will find more information on the cause of the error in request log. in Package PA_OPPORTUNITY_MGT_PVT Procedure modify_project_attributes ORA-20100: File o2670336.tmp creation for FND_FILE failed.
You will find more information on the cause of the error in request log. in Package PA_PROJECT_PUB Procedure update_project:ORA-0000: normal, successful completionError while publishing the task
Please let us know if anyone of has come across the same situation.
Regards,
VijayBut have issue only with validating invoice batch. I followed metalink ID's 605542.1, 167990.1,261693.1,1088553.1,749491.1, 461271.1 and few more.Was this working before? If yes, any changes have been done recently?
Please see if these docs help.
APXAPRVL: Invoice Validation Errors With MSG-00001 and REP-1419 [ID 333305.1]
Invoice Validation Errors When Others:101505:Non-Oracle Exception Rep-1419 [ID 464125.1]
Invoice Validation Fails with REP-1419 Error in Ap_approval_matched_pkg.Execute_matched_checks [ID 293425.1]
Invoice Validation Failing On Fnd_file Could Not Write To File L0202306.Tmp [ID 461520.1]
Invoice Validation (APPRVL) Errors ORA-20001 APP-SQLAP-10000 PSA_FUNDS_CONTROL_PKG.glxfck [ID 463184.1]
Validate Invoice Error With ORA-20001: APP-SQLAP-10000: AP_FUNDS_CONTROL_PKG.Calc_QV [ID 432702.1]
Invoice Validation Program Is Erroring Out [ID 382844.1]
Error On Validation Of Invoices From Previous Periods [ID 412814.1]
Thanks,
Hussein -
Sql developer doesn't show any packages and procedure.
Hi All,
I am perty new here and I am facing a strange problem in SQL DEVELOPER. I have one schema and it has packages and functions created in it, but when I click
packages or functions in sql developer it says table or views does not exist. however, I can see those packages and procedures from sql plus and oracle enterprise manager. you swift reply would be highly appriciated
hare krishna
AlokWhich version of sqldeveloper?
Which version of Oracle?
This sounds like an old bug where sqldeveloper checked for 'select any table', but you actually need 'select any dictionary' -
Hi all,
I have problem on compiling packages.
Here is the structure of the directory
1:path is c:\java
2:Created a directory inside java folder called test1 as parent directory,then I created a new folder calledd test2 inside the test1.(c:\java\test1\test2).
3. I have created java class called House.java in which I have declared a package
package test1.test2;4.I have created the main class HouseMain.java with
code]package test1.test2;
5.I have copied all the java class in the folder test2.
I cant get it compiled even after setting the classpath.
Can anyone help me please how to compile ?.
Thank youHi all,
I have problem on compiling packages.
Here is the structure of the directory
1:path is c:\java
2:Created a directory inside java folder called
test1 as parent directory,then I created a new
folder calledd test2 inside the
test1.(c:\java\test1\test2).
. I have created java class called House.java in
which I have declared a package
package test1.test2;4.I have created the main class HouseMain.java with
code]package test1.test2;I have copied all the java class in the folder
test2.
I cant get it compiled even after setting the classpath.
Can anyone help me please how to compile ?.
Thank youTry this:
Navigate to c:\java and type exactly this:
javac -classpath . -d . test1\test2\*.javaNote the "dot" after both -classpath and -d. Read the javac docs to make sure you understand what those mean.
You should see all the .class files in the same directory as your .java files. (Not the best idea, but easy for now.)
To run, type this:
java -classpath . test1.test2.HouseMain% -
Trouble compiling a stored procedure
Hello, I have trouble compiling a stored procedure. I include part of the code because I think the key problem is illustrated in these lines:
date1 is declared as a DATE.
index_value2 NUMBER;
BEGIN
date1 := (select sysdate from dual);
index_value2 := (select index_value from tmsdat.a_index_values where price_date < (SELECT sysdate -180
FROM dual) and price_date > (SELECT sysdate -210
FROM dual));
[\code]
The problem seems to be that a more complex syntax is included in the allocation statement (:=), can that be the case? That is, no select etc??
How is this solved?
Any help much appreciated!
best regards
HaraldWell, actually WhiteHat´s magic did the trick, but two errors:
temp := (select (to_number(to_char(sysdate, 'DD'))-1)/(decode(to_char(sysdate,'MM'),'02',28,30)) as result
from dual);
[\code]
this line generates problems but I think the approach is the same maybe, that is:
select to_number(to_char(sysdate, 'DD'))-1)/(decode(to_char(sysdate,'MM'),'02',28,30)) into temp as result frmo dual
Further, some error about encountering end of line?
END CONVERT_MARKET_INDEX; -
Why apps don't need to be granted for synonyms of packages and procedures?
Normally, When a user create a synonym of other schemas' package or procedure, it requires to be authorized to execute via 'grant' by owner before the user can call it.
But on one of our environment of EBS 12.1.1(vis), apps user don't need to be granted. Just need to make synonym and then can call the synonym. while on another environment of EBS 12.1.1(product), it still need to be granted. I notice that apps user in the two diffierent environment has many different database roles. Is any role associated with this? Does anybody know the reason?
Thanks in advance!
Jing
Edited by: user12954958 on Aug 25, 2010 11:44 PMHi Jing;
Please check below thread which is posted Hussein Sawwan
Re: apps & applsys password
aaps,applsyspub,applsys
Re: apps & applsys password
Regard
Helios
Maybe you are looking for
-
What is the difference between Video-out and mirroring?
What is the difference between Video-out and mirroring? I can't get iPhone 4 video to work on my TV screen I have just bought an MD098ZM/A (Apple 30-pin Digital AV Adapter). I am struggling to get it to show a picture on my TV. I know I'm doing somet
-
Hello, back in august i had a problem with a my broadband speed, going from 5-6 meg down too less then 1 meg Seems its came back to haunt me. For the past 6-8 weeks my connection has been terrible, all BT seem to be interested in doing is, a line re
-
PKGBUILD for custom kernel issue
Hi all, Last night I was putting together a PKGBUILD for a kernel I'd like to compile that has the ck patchset, grsecurity (latest testing), and had broadcom-wl on it already so I don't have to keep reinstalling it from AUR and doing depmod each time
-
Oracle SQL not working in Apex
I have been given the following SQL statement by a supposed SQL DBA SELECT TOP 250 TRANS_CODE, TRANS_CASH_IN, Month([TRANS_DATE]) AS Transmonth, TRANS_COMMENT, TRANS_MACHINE_NO FROM TRANSACT WHERE (((Month([TRANS_DATE]))=Month(Now())) AND ((TRANS_COM
-
Grant a user the permission to view only specified objects
Hi all, I want a such user to connect to my SQL Server 2008R2 instance but I wish that: 1) it can't view all database listed, I want that it can see only the database it has the permission 2) it can see only some object in the list for example I want