Apps schema objects
dear all,
i want to compile 3 package bodies in apps schema .how can i compile these 3 package bodies ?
do i need to use adadmin utility or compile individually from sql prompt as shown below?
sql>conn /as sysdba
sql>alter package <SCHEMA_NAME>.<PACKAGE_BODY_NAME> COMPILE BODY.
YOUR HELP APPRECIATED.
thanks and regards.
Pl do not post duplicates - invalid objects in apps schema
Similar Messages
-
Compile invalid objects in apps schema
i make compiled the apps schema by
adadmin,utlrp.sql,compiled manual but still i am getting INVALID objects .. how to compile these objects ?
Below is the output
SQL>
column owner format A9
column object_name format A31
column object_type format A15
column last_ddl_time format A10
spool invalids.lst
select OWNER, OBJECT_NAME,OBJECT_TYPE,LAST_DDL_TIME
from dba_objects where status='INVALID'
order by owner;
OWNER OBJECT_NAME OBJECT_TYPE LAST_DDL_T
APPS FV_FACTS_TBAL_TRANSACTIONS PACKAGE BODY 03-MAR-13
APPS IGI_IAC_REINSTATE_PKG PACKAGE BODY 03-MAR-13
APPS IGI_IAC_RETIREMENT PACKAGE BODY 03-MAR-13
APPS CST_PERIODIC_ABSORPTION_PROC PACKAGE BODY 03-MAR-13
APPS FV_SLA_UTL_PROCESSING_PKG PACKAGE BODY 03-MAR-13
APPS FV_CCR_UTIL_PVT PACKAGE BODY 03-MAR-13
APPS PSA_AP_BC_PVT PACKAGE BODY 03-MAR-13
APPS XLA_00200_AAD_S_000012_PKG PACKAGE BODY 03-MAR-13
APPS AR_RECEIPT_UPDATE_API_PUB PACKAGE BODY 03-MAR-13
APPS AR_AUTOREC_API PACKAGE BODY 03-MAR-13
10 rows selected.
SQL> alter package APPS.FV_FACTS_TBAL_TRANSACTIONS compile body;
Warning: Package Body altered with compilation errors.
SQL> show err
Errors for PACKAGE BODY APPS.FV_FACTS_TBAL_TRANSACTIONS:
LINE/COL ERROR
1742/6 PL/SQL: SQL Statement ignored
1743/4 PL/SQL: ORA-00918: column ambiguously defined
SQL> alter package APPS.IGI_IAC_REINSTATE_PKG compile body;
Warning: Package Body altered with compilation errors.
SQL> show err
Errors for PACKAGE BODY APPS.IGI_IAC_REINSTATE_PKG:
LINE/COL ERROR
3470/3 PL/SQL: Statement ignored
3470/10 PLS-00306: wrong number or types of arguments in call to
'GET_ASSET_RETIRE_REC'
SQL> alter package APPS.IGI_IAC_RETIREMENT compile body;
Warning: Package Body altered with compilation errors.
SQL> show err
Errors for PACKAGE BODY APPS.IGI_IAC_RETIREMENT:
LINE/COL ERROR
4247/10 PL/SQL: Statement ignored
4247/18 PLS-00306: wrong number or types of arguments in call to
'GET_ASSET_RETIRE_REC'
SQL> alter package APPS.CST_PERIODIC_ABSORPTION_PROC compile body;
Warning: Package Body altered with compilation errors.
SQL> show err
Errors for PACKAGE BODY APPS.CST_PERIODIC_ABSORPTION_PROC:
LINE/COL ERROR
3901/3 PL/SQL: Statement ignored
3901/3 PLS-00306: wrong number or types of arguments in call to
'ITERATION_PROCESS'
SQL> alter package APPS.FV_SLA_UTL_PROCESSING_PKG compile body;
Warning: Package Body altered with compilation errors.
SQL> show err
Errors for PACKAGE BODY APPS.FV_SLA_UTL_PROCESSING_PKG:
LINE/COL ERROR
49/7 PL/SQL: Statement ignored
49/22 PLS-00302: component 'PSA_XLA_ERROR' must be declared
SQL> alter package APPS.FV_CCR_UTIL_PVT compile body;
Warning: Package Body altered with compilation errors.
SQL> show err
Errors for PACKAGE BODY APPS.FV_CCR_UTIL_PVT:
LINE/COL ERROR
2926/3 PL/SQL: Statement ignored
2926/19 PLS-00302: component 'CONTACT_NAME' must be declared
2928/4 PL/SQL: Statement ignored
2928/20 PLS-00302: component 'CONTACT_PHONE' must be declared
2929/8 PL/SQL: Statement ignored
2929/24 PLS-00302: component 'CONTACT_PHONE' must be declared
2931/3 PL/SQL: Statement ignored
2931/19 PLS-00302: component 'CONTACT_EMAIL' must be declared
2932/3 PL/SQL: Statement ignored
2932/19 PLS-00302: component 'CONTACT_FAX' must be declared
SQL> alter package APPS.PSA_AP_BC_PVT compile body;
Warning: Package Body altered with compilation errors.
SQL> show err
Errors for PACKAGE BODY APPS.PSA_AP_BC_PVT:
LINE/COL ERROR
291/11 PL/SQL: Statement ignored
291/26 PLS-00302: component 'PSA_XLA_ERROR' must be declared
346/13 PL/SQL: Statement ignored
346/28 PLS-00302: component 'PSA_XLA_ERROR' must be declared
835/7 PL/SQL: Statement ignored
835/12 PLS-00313: 'ISPREPAYDIST' not declared in this scope
1002/15 PL/SQL: Statement ignored
1002/34 PLS-00201: identifier 'J' must be declared
1014/13 PL/SQL: Statement ignored
1014/48 PLS-00201: identifier 'I' must be declared
1020/13 PL/SQL: Statement ignored
LINE/COL ERROR
1020/43 PLS-00201: identifier 'I' must be declared
1022/13 PL/SQL: Statement ignored
1024/73 PLS-00201: identifier 'I' must be declared
1055/11 PL/SQL: Statement ignored
1055/48 PLS-00201: identifier 'I' must be declared
1057/11 PL/SQL: SQL Statement ignored
1057/51 PLS-00201: identifier 'I' must be declared
1080/80 PLS-00201: identifier 'I' must be declared
1080/80 PLS-00201: identifier 'I' must be declared
SQL> alter package APPS.XLA_00200_AAD_S_000012_PKG compile body;
Warning: Package Body altered with compilation errors.
SQL> show err
Errors for PACKAGE BODY APPS.XLA_00200_AAD_S_000012_PKG:
LINE/COL ERROR
157514/2 PLS-00103: Encountered the symbol "THEN" when expecting one of
the following:
( - + case mod new not null <an identifier>
<a double-quoted delimited-identifier> <a bind variable> avg
count current exists max min prior sql stddev sum variance
execute forall merge time timestamp interval date
<a string literal with character set specification>
<a number> <a single-quoted SQL string> pipe
<an alternatively-quoted string literal with character set
specification>
<an alternatively-quote
LINE/COL ERROR
SQL> alter package APPS.AR_RECEIPT_UPDATE_API_PUB compile body;
Warning: Package Body altered with compilation errors.
SQL> show err
Errors for PACKAGE BODY APPS.AR_RECEIPT_UPDATE_API_PUB:
LINE/COL ERROR
0/0 PL/SQL: Compilation unit analysis terminated
1/14 PLS-00201: identifier 'AR_RECEIPT_UPDATE_API_PUB' must be
declared
1/14 PLS-00304: cannot compile body of 'AR_RECEIPT_UPDATE_API_PUB'
without its specification
SQL> show err
Errors for PACKAGE BODY APPS.AR_AUTOREC_API:
LINE/COL ERROR
2724/9 PL/SQL: SQL Statement ignored
2740/27 PL/SQL: ORA-00904: "EXT"."SEQ_TYPE_LAST": invalid identifier
note:application v12.0.4 database 10.2.3SQL> alter package APPS.FV_FACTS_TBAL_TRANSACTIONS compile body;
Warning: Package Body altered with compilation errors.
SQL> show err
Errors for PACKAGE BODY APPS.FV_FACTS_TBAL_TRANSACTIONS:
LINE/COL ERROR
1742/6 PL/SQL: SQL Statement ignored
1743/4 PL/SQL: ORA-00918: column ambiguously defined
SQL> alter package APPS.CST_PERIODIC_ABSORPTION_PROC compile body;
Warning: Package Body altered with compilation errors.
SQL> show err
Errors for PACKAGE BODY APPS.CST_PERIODIC_ABSORPTION_PROC:
LINE/COL ERROR
3901/3 PL/SQL: Statement ignored
3901/3 PLS-00306: wrong number or types of arguments in call to
'ITERATION_PROCESS'
SQL> alter package APPS.AR_RECEIPT_UPDATE_API_PUB compile body;
Warning: Package Body altered with compilation errors.
SQL> show err
Errors for PACKAGE BODY APPS.AR_RECEIPT_UPDATE_API_PUB:
LINE/COL ERROR
0/0 PL/SQL: Compilation unit analysis terminated
1/14 PLS-00201: identifier 'AR_RECEIPT_UPDATE_API_PUB' must be
declared
1/14 PLS-00304: cannot compile body of 'AR_RECEIPT_UPDATE_API_PUB'
without its specification
SQL> alter package APPS.XLA_00200_AAD_S_000012_PKG compile body;
Warning: Package Body altered with compilation errors.
SQL> show err
Errors for PACKAGE BODY APPS.XLA_00200_AAD_S_000012_PKG:
LINE/COL ERROR
157514/2 PLS-00103: Encountered the symbol "THEN" when expecting one of
the following:
( - + case mod new not null <an identifier>
<a double-quoted delimited-identifier> <a bind variable> avg
count current exists max min prior sql stddev sum variance
execute forall merge time timestamp interval date
<a string literal with character set specification>
<a number> <a single-quoted SQL string> pipe
<an alternatively-quoted string literal with character set
specification>
<an alternatively-quote
LINE/COL ERROR
SQL> alter package APPS.FV_CCR_UTIL_PVT compile body;
Warning: Package Body altered with compilation errors.
SQL> show err
Errors for PACKAGE BODY APPS.FV_CCR_UTIL_PVT:
LINE/COL ERROR
2926/3 PL/SQL: Statement ignored
2926/19 PLS-00302: component 'CONTACT_NAME' must be declared
2928/4 PL/SQL: Statement ignored
2928/20 PLS-00302: component 'CONTACT_PHONE' must be declared
2929/8 PL/SQL: Statement ignored
2929/24 PLS-00302: component 'CONTACT_PHONE' must be declared
2931/3 PL/SQL: Statement ignored
2931/19 PLS-00302: component 'CONTACT_EMAIL' must be declared
2932/3 PL/SQL: Statement ignored
2932/19 PLS-00302: component 'CONTACT_FAX' must be declared -
Does the APPS schema have full access to custom objects
DB - 11.2.0.3 - s390 - SLES11SP2
APP - 12.1.3 - x86_64 - SLES11SP2
One of my lead developers has posed a question to me.......namely -
Does the APPS user have implicit select and delete privileges on custom objects without an explicit GRANT statement?Please see (Step By Step Guide to Creating a Custom Application in Applications 11i [ID 216589.1]) which is applicable to R12 as well -- "Grant all privilege from each custom data object to the APPS schema" step.
Please also see (Step 9. Integrate your database objects with the APPS schema by granting APPS the access to your custom schema’s objects) in (Integrating Custom Applications with Oracle Applications [ID 176852.1).
Thanks,
Hussein -
Query hangs when getting apps schema objecs(Ebs R12) objects from BO Designer
Hello Guys,
We are facing an issue on Production instance that the query given by BO support hangs when getting the objects from apps schema by login from BO designer.
We are able to get the objects from Ebs 11i instance with the same query. Below is the instances details for Ebs 11i and R12.
Ebs R12 Application Version : 12.1.3
Ebs R12 DB Version : 11.2.0.3
Ebs 11i Appl Ver : 11.5.9
Ebs 11i DB Ver : 9.2.0.5
Below is the query.
SELECT NULL, u1.owner, u1.object_name, u1.object_type, NULL
FROM all_objects u1, role_tab_privs rtp, all_tab_privs atp
WHERE u1.object_type IN ('TABLE', 'VIEW', 'SYNONYM')
AND u1.object_name LIKE '%' /* Type selection : can be empty */
AND u1.owner = rtp.owner(+)
AND u1.object_name = rtp.table_name(+)
AND u1.owner = atp.grantee(+)
AND 'SELECT' = atp.PRIVILEGE(+)
AND u1.object_name = atp.table_name(+)
AND u1.owner = 'APPS' /* Owner selection : can be empty */
UNION
SELECT NULL, asy.owner, asy.synonym_name, 'SYNONYM', NULL
FROM all_synonyms asy
WHERE asy.synonym_name LIKE '%' /* Type selection : can be empty */
AND asy.owner = 'APPS' /* Synonym Owner selection : can be empty */
ORDER BY 4, 2, 3;
Please help me out as it's very urgent. As users are unable to do transaction.
Thanks
KhanAny update experts on this issue please
-
Error while running Re-create grants and synonyms for APPS schema
Hi,
I have upgraded customer's Oracle Apps 11i (11.5.10) database to Oracle 10g R2. While executing '+Re-create grants and synonyms+ ' as given in Note: 362203.1, I am gettng error:
plus80 -s APPS/***** @E:\EBSTEST\ebstestappl\ad\11.5.0\admin\sql\adappsgs.pls &systempwd 1 INV APPLSYS APPS TRUE FALSE TRUE
Error:
Program exited with status 3
Cause: The program terminated, returning status code 3.
Action: Check your installation manual for the meaning of this code on this operating system.Connected.
old 2: ad_apps_private.create_grants_and_synonyms(&2,'&3','&4','&5','FALSE');
new 2: ad_apps_private.create_grants_and_synonyms(1,'INV','APPLSYS','APPS','FALSE');
begin
*+
ERROR at line 1:
ORA-20000: ORA-00955: name is already used by an existing
object:create_grants_and_synonyms(1,INV,APPLSYS,APPS): create_base_gs(INV,APPS): In Synonyms
Loop:create_synonym(INV,MTL_ONHAND_DISCREPANCY,APPS,MTL_ONHAND_DISCREPANCY):
do_apps_ddl(APPS,CREATE SYNONYM "MTL_ONHAND_DISCREPANCY" FOR INV."MTL_ONHAND_DISCREPANCY"):
ORA-06512: at line 5
MTL_ONHAND_DISCREPANCIES
I checked the database and there isn't MTL_ONHAND_DISCREPANCY synonym. But there is MTL_ONHAND_DISCREPANCIES synonym.
This is an upgraded instance from 11.0.3 and first time I am running Re-create grants and synonyms for APPS schema.
Plz let me know if anyone of you faced this issue.
Rgds,
ThiruHi,
there is no such table MTL_ONHAND_DISCREPANCY or synonym in Applications 11.5.10.2. Is that custom table created in your db?
After dropping this table from APPS schema 'Re-create grants and synonyms for APPS schema' went thru fine.Its correct
This table does not exist in INV schema in 11.5.10.2.
Could be possible that the consultant could have created this table in INV and APPS schema by mistake or whatever.Yes, with the same name, there might be table in APPS SCHEMA. When you run recreate grants and synonyms, adadmin tries to create synonym for that table in APPS schema. since there is object available with the same name in apps chema, you got that error. -
Error In Adadmin Re-Create Grants And Synonyms For Apps Schema
HI,
I upgraded the my DB from 9.2.6 to 10.2.4.It was sucessfull.
While doing Postupgradayion steps -
Recreate grants and synonym for apps
a. Log in to server with applmgr user
b. Execute adadmin
c. Choose -> Maintain Applications Database Entities menu
d. Choose -> Re-create grants and synonyms for APPS schema
2 workers got failed ...
i chked the worker log file i found
sqlplus -s APPS/***** @/stageAPP/stageappl/ad/11.5.0/admin/sql/adappsgs.pls &systempwd 1 PO APPLSYS APPS TRUE FALSE TRUE
Connected.
old 2: ad_apps_private.create_grants_and_synonyms(&2,'&3','&4','&5','FALSE');
new 2: ad_apps_private.create_grants_and_synonyms(1,'PO','APPLSYS','APPS','FALSE');
begin
ERROR at line 1:
ORA-20000: ORA-00955: name is already used by an existing
object:create_grants_and_synonyms(1,PO,APPLSYS,APPS): create_base_gs(PO,APPS):
In Synonyms
Loop:create_synonym(PO,XXGOD_SEQ_DECORTIMESHEET_HDR,APPS,XXGOD_SEQ_DECORTIMESHEE
T_HDR): do_apps_ddl(APPS,CREATE SYNONYM "XXGOD_SEQ_DECORTIMESHEET_HDR" FOR
PO."XXGOD_SEQ_DECORTIMESHEET_HDR"):
ORA-06512: at line 5
Workaround $adctrl
Control
Worker Code Context Filename Status
1 Run Grants/Synonyms R115 adappsgs.pls FAILED
2 Run Grants/Synonyms R115 Wait
3 Run Grants/Synonyms R115 Wait
4 Run Grants/Synonyms R115 Wait
5 Run Grants/Synonyms R115 Wait
6 Run Grants/Synonyms R115 Wait
7 Run Grants/Synonyms R115 Wait
8 Run Grants/Synonyms R115 Wait
9 Run Grants/Synonyms R115 Wait
10 Run Grants/Synonyms R115 Wait
11 Run Grants/Synonyms R115 Wait
12 Run Grants/Synonyms R115 Wait
13 Run Grants/Synonyms R115 Wait
14 Run Grants/Synonyms R115 Wait
15 Run Grants/Synonyms R115 Wait
16 Run Grants/Synonyms R115 Wait
SQL> select owner, object_type from dba_objects where object_name = 'XXGOD_SEQ_DECORTIMESHEET_HDR';
OWNER OBJECT_TYPE
PO SEQUENCE
APPS SEQUENCE
Its Cutom Object .. I think i need to drop/rename anyone .. which one i should drop / rename .
Or
Is it possible to skip the failed workers .. if do .. please give me the steps ...
ThanksHi;
There is 8 option(hidden) avaliable but i suggest dont use this option.(As you mention its a custom,if you belive it wont problem you can use this hidden option or drop 'XXGOD_SEQ_DECORTIMESHEET_HDR' and recreate it later,its own your risk) By the way please check below notes which is similar error like yours
Run Adadmin To Recreate Grants And Synonyms ORA-20000 ORA-00955 In Synonyms Loop:create_synonym(GL,PLAN_TABLE,APPS,PLAN_TABLE) [ID 437714.1]
ADADMIN MAINTAINING APPLICATIONS GRANTS AND SYNONYMS APP-931 ORA-955 ORA-20000 [ID 1014455.102]
Regard
Helios -
Problem with database schema objects in the entity object wizard
Hi All,
When creating a new entity object, I am facing a problem with database schema objects in the entity object wizard, database schema objects (check boxes for tables,synonyms...) are disabled. Actually I am using a synonym but I am not able to select the synonym check box.
Can any of you folks tell me how to enable the database schema objects (check boxes for tables,synonyms...).
Thanks in Advance.
Raja.MMake sure your using rite version of jdeveloper..
Make sure your using apps schema and check whether your able perform DML operations in the schema vis sql developer.
--Prasanna -
IStore - Cloned Apps Schema to access standalone Oracle Applications
Client has business across different continents and are using standalone oracle ebusiness applications across the locations.
They have recently bought an single iStore license and wants to use it across the locations. Oracle has recommended to buy four licenses of the same as they have standalone oracle e-biz installed at four locations.
Client is not happy buying so many licenses as they may have business in new locations in future. Client has agreed with the approach of cloning the APPS schema four times and then create/replace synonyms with DBlinks which points to four different locations.
This is similar to creating a responsibility using APPS_READ_ONLY schema. The only difference is creating a read/write APPS schema instead of ReadOnly.
• Database
• Create a Database Link in iStore instance pointing to the US Oracle Apps instance
• Create a Custom schema XXAPPS (contains synonyms + code objects), which is a clone of APPS schema
• Provide Grants on objects in APPS schema for XXAPPS schema
• Recursively re-compile the invalid code objects in XXAPPS schema
• Create/Replace the synonyms in XXAPPS using the DBLink created for US instance, only for the products/modules used by iStore functionality
• Investigate and fix the invalid objects
o e.g errors due to accessing the remote objects, pl/sql feature constraints like FORALL cannot be used on the remote table, etc.,
• The standard Oracle objects which are modified due to the above are placed in the custom top XXIBE_TOP/patch/115/sql
• Oracle Applications
• Register the new Oracle User XXAPPS
o (N) Security -> Oracle -> Register -> Database User Name: XXAPPS
• Register the custom application per location/instance
o (N) Application -> Register -> Application : XXUS iStore Customizations, Shortname: XXIBEUS, Basepath: XXIBE_TOP.
o Please note that XXIBE_TOP is the common top used for all the custom applications (existing and new)
• Register the new Oracle User in the DataGroup
o (N) Security -> Oracle -> DataGroup -> Standard -> Application: XXUS iStore Customizations, Oracle ID: XXAPPS
• Create a custom responsibilitie(s) based on the application 'XXus iStore Customizations'
o (N) Security -> Responsibility -> Define
iStore
Create an iStore User/Dealer/Superuser & approve the user
Assign theto custom responsibilitie(s) the iStore User/Dealer/Superuser in Oracle Applications
I have an apprehension that there will be issues that needs to considered from maintainence perspective. If you have followed such an approach, what problems would you forsee ? and important things that needs to be considered before implementing such a solution?
Edited by: user626569 on Jul 25, 2011 4:14 PMThanks, hsawwan and samx18.
We use VNC. I found another good metalink noteL Subject: Configuring VNC Or XVFB As The X Server For Applications 11i
Doc ID: Note:181244.1
Thanks,
Lily -
APPS Schema name hardcoded in Oracle Applications Adapter Wizard
Hi,
I am current evaluating the use of Oracle BPEL using the OA Adapter. Problem is that the APPS schema is called something other that APPS, say APPS1. When creating a partner link using the OA Adapter wizard, the Wizard is look for the object under APPS which does not exist.
Please help!!!
Regards
JohnYou'll have better luck posting in the right forum. This one is for issues relating to Oracle's ODBC driver.
I'm not familiar enough with JDEV to know which forum that is top of my head though.
Greg -
Not able to connect to APPS schema in 10g database after upgradation
We have upgraded our database from 9.2.0.6 to 10.2.0.1(E-Business suite database).We have upgraded our database using dbua and it was succesful(No invalid objects are there in the databe).Now we are trying to connect using apps username but it is not recognising the username.How do we link the old database schema with new database?
Hi,
Could you please elaborate "You should make sure that all referenced in the context files point to the new ORACLE_HOME and that AutoConfig complete successfully".This is covered in the same upgrade document (See "Step 26. Implement and run AutoConfig" for details).
I think you are referring the context file to xml file which contains parameters like "s_dbdomain". I think mistake lies at this point.Not only this variable, I am referring to any variable which points to the old 9i ORACLE_HOME. But, again this makes no sense if you cannot find the APPS schema in the upgraded database!
Regards,
Hussein -
Guys,
I am on 10g R2 and have this requirement.
We refresh our QA environment from PROD every day ( exp/imp and schema refresh ). App team now have a requirement where by they want to create few objects including tables every day and load those tables with static data. This in a way doesn't need to be refreshed every day.. So, could place this in another schema. But we do not want to grant access on that schema to the user.
Alternatively, we can get them to send the us a script, that can be run as POST refresh script on completion of the refresh. But this would mean that any changes to the script will involve us copying the file, which could be a hassle.
I am wondering, if there is better way to handle this.. BTW, the app team do not have access to the database host and we don't plan to grant it either..
What is the best alternative ?You can use DBMS_METADATA and EXECUTE IMMEDIATE
SQL> create user u1 identified by u1;
User created.
SQL> create or replace type u1.type1 as object (a number, b date);
2 /
Type created.
SQL> declare
2 stat varchar2(32000):= dbms_metadata.get_ddl('TYPE','TYPE1','U1');
3 begin
4 execute immediate replace(stat,'"U1".','');
5 end;
6 /
PL/SQL procedure successfully completed.
SQL> desc type1
Name Null? Type
A NUMBER
B DATEYou can loop on all schema objects selected from dba_objecs to manage all objects with a single statement:
SQL> create function u1.f1 return number is
2 begin
3 return 0;
4 end;
5 /
Function created.
SQL> declare
2 stat varchar2(32000);
3 begin
4 for r in (select object_type, object_name from dba_objects where owner='U1') loop
5 stat := dbms_metadata.get_ddl(r.object_type,r.object_name,'U1');
6 dbms_output.put_line(stat);
7 execute immediate replace(stat,'"U1".','');
8 end loop;
9 end;
10 /
CREATE OR REPLACE TYPE "U1"."TYPE1" as object (a number, b date);
CREATE OR REPLACE FUNCTION "U1"."F1" return number is
begin
return 0;
end;
PL/SQL procedure successfully completed.
SQL> desc f1
FUNCTION f1 RETURNS NUMBER
SQL> desc type1
Name Null? Type
A NUMBER
B DATEMax
[My Italian Oracle blog| http://oracleitalia.wordpress.com/2010/02/07/aggiornare-una-tabella-con-listruzione-merge/] -
Dynamic query to drop apps schema
Hi,
We are having a test ERP instance and we are refreshing it with ERP PROD export data through import on ERP test instance.
Now we want to drop all Oracle apps schema only in our test instance and through Import they will get created again.
Is there some dyanmic query through which i can drop only all apps schema.
Please help it is urgent.
Your help is appreciated.
Regards,
MilanNow we want to drop all Oracle apps schema only in our test instance and through Import they will get created again.
Is there some dyanmic query through which i can drop only all apps schema.You cannot drop apps schema only due to data/object dependencies, so there is no such a query as your approach is not supported.
The only supported way is to install a new fresh database (standalone database), and export all EBS schemas from any other instance and import it to this new database. Or, use Rapid Clone to duplicate your database.
Thanks,
Hussein -
consider the situation and clear my doubt
in case if i perform the export of the apps schema (logical backup) and after performing the schema level export of the apps schema,iam dropping the apps schema.
now i am creating the apps schema and restroing the contents of the apps schema from the dumpfile which i exported.
now my question is ::::: whether the apps schema will have normal functionality (or) is there any things i have to do after restroing the apps schema by importing the objects of the dumpfile into the apps schema
please clear my doubt considering the situation i said hereHi,
now my question is ::::: whether the apps schema will have normal functionality (or) is there any things i have to do after restroing the apps schema by importing the objects of the dumpfile into the apps schemaPartial export/import is not support -- See this thread for similar discussion.
Datapump Export/Import for Refreshing ERP test from production
Datapump Export/Import for Refreshing ERP test from production
Regards,
Hussein -
Give the read only access to user on Apps Schemas!
Hi,
How we can create the database user and give the access on APPS schemas(INV, PO etc).
Please assist me.
Thanks,
FaziarainDear Hussein,
I followed anil passi forum for creating apps read only schema , but only issue is we have multiorg enabled .
what is the modification dowe need in this step.
Step 4
Write a after logon trigger on apps_query schema. The main purpose of this trigger is to alter the session to apps schema, such that the CurrentSchema will be set to apps for the session(whilst retaining apps_query restrictions).In doing so your logon will retain the permissions of apps_query schema(read_only). Howerver it will be able to reference the apps objects with exactly the same name as does a direct connection to apps schema.
conn apps/&1 ;
PROMPT CREATE OR REPLACE TRIGGER xx_apps_query_logon_trg
CREATE OR REPLACE TRIGGER xx_apps_query_logon_trg
--16Jun2006 By Anil Passi
--Trigger to toggle schema to apps, but yet retaining apps_query resitrictions
--Also sets the org_id
AFTER logon ON apps_query.SCHEMA
DECLARE
BEGIN
EXECUTE IMMEDIATE
'declare begin ' ||
'dbms_application_info.set_client_info ( 101 ); end;';
EXECUTE IMMEDIATE 'ALTER SESSION SET CURRENT_SCHEMA =APPS';
END;
Thanks and Regards -
Adadmin Compile APPS schema never complete & it running for infinite time
Hi,
When I am trying to compile apps schema from adadmin --> compile apps schema, It never complete & it is not compiling invalid objects, I tried to manually run the adutlrcmp.sql through SQL, also the same problem the scripts is stuck (hang) in the UTL_RECOMP.RECOMP_PARALLEL proceure.
Please note the following:
1- That I am able to compile invalid objects manually through Toad Or through alter package.
2- The compile apps schema was running successfully & very fast in the past.
What should I do? how can I resolve this issue ?
Your quick feed back is very much appreciated.
MarwanHi Hussein,
The following is the adadmin log for the compile apps schema:
AD code level : [B.1]
Connecting to SYSTEM......Connected successfully.
Connecting to APPS......Connected successfully.
sqlplus -s APPS/***** @/u03/applprod/prod/apps/apps_st/appl/ad/12.0.0/sql/adutlrcmp.sql APPLSYS ***** APPS ***
** ***** 0 0 NONE FALSE
Arguments are:
AOL_schema = APPLSYS, AOL_password = *****,
Schema_to_compile = APPS, Schema_to_compile_pw = *****,
SYSTEM_password = *****, Total_workers = 0, Logical_worker_num = 0
Object_type_to_not_compile = NONE
Use_stored_dependencies = FALSE
Connected.
Running utl_recomp.recomp_parallel(0), if it exists
no rows selected
Elapsed: 00:00:00.17
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.00
STATUS_MESSAGE
Running UTL_RECOMP.RECOMP_PARALLEL...
declare
ERROR at line 1:
ORA-01013: user requested cancel of current operation
An error occurred while running a SQL*Plus script.
As you can see the :
STATUS_MESSAGE
Running UTL_RECOMP.RECOMP_PARALLEL...
Is stucking & you wait for a long long time & it never ends So I canceled it manually.
And when checking the database locks the following appears:
OWNER OBJECT_NAME
APPLSYS FND_CONCURRENT_QUEUES
APPLSYS FND_CONCURRENT_REQUESTS
Regards,
Marwan
Maybe you are looking for
-
[CS3][JS] Help with image resizing
I'm still a newbie of ID scripting. I'm using js scripting in Indesign CS3 to make an auto-impaginator and I have a problem with images. I charged my contents from an xml set of tables, that I put into a fixed textFrame of the master page. Because of
-
Read DMS document into internal table
Hi, I have a requirement to read DMS document in binary format into internal table. and i want to print the data in internal table through SAP spool. Please let me know how to handle this requirement. Thanks Srini
-
Stored proc. returning TABLE ??
Hi, If a ORACLE stored procedure is returning a "TABLE" type, how to get it in JDBC ? Can someone please put some code snippet ? thanks, -raj
-
Displaying types in SOAP envelope
TCP tunnel displays my SOAP body as follows: <soapenv:Body><AddUpdate xmlns="uri:webservice.thenet.software.com"> <TheNetObject> <Reference xmlns="uri:thenet.software.com"><ID>BPELTest</ID></Reference> <AccountName xmlns="uri:thenet.software.com">BPE
-
Blocked Access To Windows Live while Explorer Access OK on same Computer
Logged off of Windows Live account from Firefox and could not log back in. Explorer access to Windows Live OK on same machine but without logging in. Was sure of using correct sign-in and password.