Dba_source

select * from dba_source
where owner = 'SYS'
and name like 'DBMS%'
and type = 'PACKAGE'
;am i right to use the code above to list the packages that is available to be use on my XE?
It listed dbms_redef
NAME                           TYPE                                            
DBMS_LOGREP_DEF_PROC_UTL       PACKAGE                                         
DBMS_METADATA_UTIL             PACKAGE                                         
DBMS_NETWORK_ACL_ADMIN         PACKAGE                                         
DBMS_NETWORK_ACL_UTILITY       PACKAGE                                         
DBMS_PLUGTSP                   PACKAGE                                         
DBMS_PREPROCESSOR              PACKAGE                                         
DBMS_PROPAGATION_ADM           PACKAGE                                         
DBMS_PRVTAQIM                  PACKAGE                                         
DBMS_PRVTAQIS                  PACKAGE                                         
DBMS_RECTIFIER_FRIENDS         PACKAGE                                         
DBMS_REDEFINITION              PACKAGE                                          which i am sure it did not supported at all .

Are you asking "Is DBMS_REDEFINITION available on Express Edition ?"
If this is your question then :
Yes, it is.
See example : http://ora-exp.blogspot.in/2006/11/online-ddl-modifications-in-oracle_14.html
else
Please post your question again.
end if;
Regards
Girish Sharma

Similar Messages

  • Trigger does not exists in DBA_SOURCE

    hi all,
    what may be the reason as some of the triggers are not found in DBA_SOURCE,
    SQL>select count(*) from(
    2 select trigger_name from dba_triggers
    3 minus
    4 select name from dba_source where type='TRIGGER'
    5 )
    6 ;
    COUNT(*)
    168
    I also confirmed from DBA_TRIGGERS for source existance
    I am using 10.2.0.3 database

    You can see all triggers via dba_triggers. When triggers were first introduced back in version 7 triggers were not compiled, but triggers are now compiled. I have found user created triggers not in dba_source on 9.2. When I manually compile the trigger it then shows in dba_source as do triggers I have re-created recently.
    You might try comparing dba_triggers to dba_source and then manually compiling all missing triggers then checking again.
    I have yet to get around to doing this so I would find your results interesting.
    HTH -- Mark D Powell --

  • Function to be inserted into dba_source

    Hello Gurus,
    I have to update an existing function which is in dba_source how do I go about doing it.
    Please let me know
    Shiva

    It works for me...
    SQL> create or replace function abc return number as
      2  begin
      3  return 1;
      4  end;
      5  /
    Function created.
    SQL> select text from dba_source where name='ABC';
    TEXT
    function abc return number as
    begin
    return 1;
    end;
    SQL> create or replace function abc return number as
      2  begin
      3  return 2;
      4  end;
      5  /
    Function created.
    SQL> select text from dba_source where name='ABC';
    TEXT
    function abc return number as
    begin
    return 2;
    end;
    SQL>

  • About dba_source

    Can we get the complete code from dba_source? Say,we have a 50000 lines of code for an object so by querying the text column will I be able to get all of them?
    Why I am being a bit skeptic is because the text column is a VARCHAR2(4000) so will it hold a content having more than that material?

    Well, in fact I did, but when i tried to display it using DBMS_OUTPUT, it's all messy
    declare
    v_query varchar2(300);
    v_ddl_clob clob;
    v_offset number;
    v_clobsize number;
    v_exit_flag boolean;
    begin
    for rec in (select object_type,object_name,owner from dba_objects
    where object_type in ('PROCEDURE','FUNCTION','PACKAGE') and owner in ('MY_SCHEMA1','MY_SCHEMA2')
       and object_name in ('MY_PCK1','MY_PCK2'))
    loop
    begin
    dbms_output.put_line ('Schema :- '||rec.owner||','||rec.object_type||' - '||rec.object_name);
    v_query := 'select dbms_metadata.get_ddl('''||rec.object_type||''','''||rec.object_name||''','''||rec.owner||''') ddl from dual';
    dbms_output.put_line ('Query : '||v_query);
    execute immediate v_query into v_ddl_clob;
    v_offset := 1;
    v_clobsize := dbms_lob.getlength(v_ddl_clob);
    dbms_output.put_line ('Size : '||v_clobsize);
    v_exit_flag := TRUE;
    while v_exit_flag
    loop
        dbms_output.put_line('showing from character --'||to_char(v_offset));
        v_ddl := null;
        v_ddl := dbms_lob.substr(v_ddl_clob,32700,v_offset);
        dbms_output.put_line(v_ddl);
        if ((v_clobsize > 32700) AND ((v_clobsize-v_offset) > 32700)) then
           dbms_output.put_line ('here2');
           v_offset := v_offset + least(32700, (v_clobsize-v_offset));
           dbms_output.put_line('next offset --'||to_char(v_offset));
           dbms_output.put_line('total chars left --'||to_char(v_clobsize-v_offset));
        else
           dbms_output.put_line ('here1');
           v_exit_flag := FALSE;
        end if;
        dbms_output.put_line ('here2');
    end loop;
    dbms_output.put_line ('end of file...');
    exception
    when others then
    dbms_output.put_line ('Error1 :-'||sqlerrm);
    end;
    end loop;
    exception
    when others then
    dbms_output.put_line ('Error2 :-'||sqlerrm);
    end;

  • DBA_SOURCE / DBA_DEPENDENCIES

    Hi
    I am trying to find dependencies for package using dba_dependencies.
    It gives me all the dependencies (tables and objects) used inside the package.
    Is there a way to find attribute dependency and procedure name in a package
    table_name / column_name / package.procedure line text /
    Thanks

    look at that:
    http://www.webservertalk.com/archive151-2005-6-1092394.html
    Oracle has a utlity that does something similar, that can be installed
    by running utldtree.sql. It includes a deptree_fill procedure. With a
    little modification of the deptree_fill procedure, you can make your
    own reverse_deptree_fill procedure, that should do about what you want.
    You may want to add some additional modifications or filter the result
    set when you query. Please see the demonstration below.
    scott@ORA92> -- function and views for demonstration:
    scott@ORA92> CREATE OR REPLACE FUNCTION funca
    2 RETURN NUMBER
    3 AS
    4 BEGIN
    5 RETURN 1;
    6 END funca;
    7 /
    Function created.
    scott@ORA92> SHOW ERRORS
    No errors.
    scott@ORA92> CREATE OR REPLACE VIEW viewc AS SELECT funca () some_col
    FROM DUAL
    2 /
    View created.
    scott@ORA92> CREATE OR REPLACE VIEW viewb AS SELECT * FROM viewc
    2 /
    View created.
    scott@ORA92> CREATE OR REPLACE VIEW viewa AS SELECT * FROM viewb
    2 /
    View created.
    scott@ORA92> -- install Oracle utility
    scott@ORA92> -- (substutiting your own Oracle home directory path):
    scott@ORA92> START d:\oracle\ora92\rdbms\admin\utldtree.sql
    scott@ORA92> -- output of installation ommitted to save space
    scott@ORA92> -- create reverse_deptree_fill procedure
    scott@ORA92> -- as modification of deptree_fill procedure:
    scott@ORA92> create or replace procedure reverse_deptree_fill
    2 (type char,
    3 schema char,
    4 name char)
    5 is
    6 obj_id number;
    7 begin
    8 delete from deptree_temptab;
    9 commit;
    10 select object_id into obj_id from all_objects
    11 where owner = upper(reverse_deptree_fill.schema)
    12 and object_name = upper(reverse_deptree_fill.name)
    13 and object_type = upper(reverse_deptree_fill.type);
    14 insert into deptree_temptab
    15 values(obj_id, 0, 0, 0);
    16 insert into deptree_temptab
    17 select referenced_object_id, object_id,
    18 level, deptree_seq.nextval
    19 from public_dependency
    20 connect by prior referenced_object_id = object_id
    21 start with object_id = reverse_deptree_fill.obj_id;
    22 exception
    23 when no_data_found then
    24 raise_application_error
    25 (-20000,
    26 type || ' ' || schema || '.' || name || ' was not found.');
    27 end reverse_deptree_fill;
    28 /
    Procedure created.
    scott@ORA92> show errors
    No errors.
    scott@ORA92> -- execute the reverse_deptree_fill procedure
    scott@ORA92> -- to populate the deptree_temptab table:
    scott@ORA92> EXECUTE reverse_deptree_fill ('VIEW', 'SCOTT', 'VIEWA')
    PL/SQL procedure successfully completed.
    scott@ORA92> -- select from the deptree_temptab table:
    scott@ORA92> SELECT * FROM deptree_temptab
    2 /
    OBJECT_ID REFERENCED_OBJECT_ID NEST_LEVEL SEQ#
    89801 0 0 0
    89800 89801 1 89
    89799 89800 2 90
    64763 89799 3 91
    223 89799 3 92
    222 89799 3 93
    89750 89799 3 94
    647 89750 4 95
    89750 89800 2 96
    647 89750 3 97
    89750 89801 1 98
    647 89750 2 99
    12 rows selected.
    scott@ORA92> -- select from the deptree view:
    scott@ORA92> SELECT * FROM deptree
    2 /
    NESTED_LEVEL TYPE SCHEMA NAME SEQ#
    3 TABLE SYS DUAL 93
    3 SYNONYM PUBLIC DUAL 92
    4 PACKAGE SYS STANDARD 95
    2 PACKAGE SYS STANDARD 99
    3 PACKAGE SYS STANDARD 97
    3 91
    3 FUNCTION SCOTT FUNCA 94
    1 FUNCTION SCOTT FUNCA 98
    2 FUNCTION SCOTT FUNCA 96
    2 VIEW SCOTT VIEWC 90
    1 VIEW SCOTT VIEWB 89
    0 VIEW SCOTT VIEWA 0
    12 rows selected.
    scott@ORA92> -- select from the ideptree view:
    scott@ORA92> SELECT * FROM ideptree
    2 /
    DEPENDENCIES
    VIEW SCOTT.VIEWA
    VIEW SCOTT.VIEWB
    VIEW SCOTT.VIEWC
    <no permission>
    SYNONYM PUBLIC.DUAL
    TABLE SYS.DUAL
    FUNCTION SCOTT.FUNCA
    PACKAGE SYS.STANDARD
    FUNCTION SCOTT.FUNCA
    PACKAGE SYS.STANDARD
    FUNCTION SCOTT.FUNCA
    PACKAGE SYS.STANDARD
    12 rows selected.
    scott@ORA92>

  • Data Dictionary View for Procedure Text

    Hi,
    Is there a data-dictionary where I can see the body of procedures. In fact, I received a request from a collegue to give him the procedure name which access a table "table_1".
    So, my idea is to write a query as follows:
    SELECT <procedure_name> FROM <data_dictionary> WHERE <text> LIKE '%table_1%'.
    Thanks in advance.

    You can try with DBA_SOURCE or USER_SOURCE.
    i.e.
    SELECT NAME FROM DBA_SOURCE
    WHERE OWNER='<OWNER NAME>'
    AND TYPE='PROCEDURE'
    AND TEXT LIKE '%table_1%';
    Regards,
    Sabdar Syed.

  • Apache Error Log mod_security: Access denied with code 400

    Hi
    I am seeing the Access denied with code 400 errors in the apache log's after applying CPU Patch updates below into a Dev/TEST environment
    RDBMS Patches: 9032412 & 9352191 & post steps below:
    @?/rdbms/admin/dbmsaqds.plb
    @?/rdbms/admin/prvtaqds.plb
    @?/rdbms/admin/prvtaqiu.plb
    Java Fix > [ID 1082747.1]
    E-Business Suite Patches & post steps below:
    9323613 & 9506302
    Compiled Forms PLL files using adadmin to solve the known problem below
    ORA-04062: signature of package "APPS.FND_HELP" has been changed
    ORA-04062: KEY-HELP trigger raised unhandled exception ORA-04062.
    the error can be replicated by following the steps below:
    Log in to Oracle Apps E-Business Suite (11.5.10.2) select Report Management Information Responsibility and then transaction reports. (Opens Oracle Discoverer 4i Viewer) > select either Period to date or Year to date and then select any department & and any period (date) and then apply parameters:
    Error message in browser
    This error (HTTP 400 Bad Request) means that Internet Explorer was able to connect to the web server, but the webpage could not be found because of a problem with the address.
    For more information about HTTP errors, see Help.
    Apache log shows:
    error_log shows the following:
    [Fri Jul  8 10:52:08 2011] [error] [client 10.180.225.5] mod_security: Access denied with code 400. Pattern match "!^([-_@|#!=A-Za-z0-9/ :.$/(/)]){0,255}([-_@|#!=A-Za-z0-9/ :.$]){0,255}$" at ARGS_NAMES. [hostname "loadbalancer.webdomain"] [uri "/discoverer4i/viewer"] [unique_id ThbTSAq0BRQAABrfK7M]
    access_log shows the following:
    IP ADDRESS - - [08/Jul/2011:10:51:39 +0100] "GET /disco4iv/html/images/shadow_bottom02_leading_ltr.gif HTTP/1.1" 200 861 0
    IP ADDRESS - - [08/Jul/2011:10:51:39 +0100] "GET /disco4iv/html/images/seperator.gif HTTP/1.1" 200 42 0
    IP ADDRESS - - [08/Jul/2011:10:51:39 +0100] "GET /disco4iv/html/images/arch_blue_bottom_ltr.gif HTTP/1.1" 200 984 0
    10.180.225.5 - - [08/Jul/2011:10:51:39 +0100] "GET /disco4iv/html/images/white.gif HTTP/1.1" 200 37 0
    IP ADDRESS - - [08/Jul/2011:10:51:39 +0100] "GET /disco4iv/html/images/bar_blue_leading_edge_middle_ltr.gif HTTP/1.1" 200 111 0
    IP ADDRESS - - [08/Jul/2011:10:51:39 +0100] "GET /disco4iv/html/images/bar_blue_trailing_edge_middle_ltr.gif HTTP/1.1" 200 129 0
    IP ADDRESS - - [08/Jul/2011:10:51:39 +0100] "GET /disco4iv/html/images/shadow_bottom_leading_edge_ltr.gif HTTP/1.1" 200 862 0
    IP ADDRESS - - [08/Jul/2011:10:51:39 +0100] "GET /disco4iv/html/images/btopshadow.gif HTTP/1.1" 200 44 0
    IP ADDRESS- - [08/Jul/2011:10:51:39 +0100] "GET /disco4iv/html/images/bshadow.gif HTTP/1.1" 200 59 0
    IP ADDRESS - - [08/Jul/2011:10:52:08 +0100] "POST /discoverer4i/viewer HTTP/1.1" 400 227 0
    I have tried to follow a number of metalink notes but unable to resolve this issue, metalink notes looked at are:
    976473.1
    389558.1
    1313128.1 Patch 10324904 applied
    394587.1
    389558.1 Patch 5107107 applied
    1143882.1
    376992.1 Patch 3950067 applied
    Any ideas or suggestions most welcome
    Thank you
    Regards
    Arfan
    Edited by: user1717313 on 08-Jul-2011 04:59

    Hi JD
    I have tried the steps i.e stop apps tier, run adconfig on apps tiers and then started services on apps tiers and can replicate the error
    thanks
    Arfan
    Hi Helios
    I checked note 1080465.1 Patch 9506302 has been applied & Recompile all Forms PLL files using adadmin.
    I ran the sql feom the note, output below
    SQL> select text from dba_source where name='FND_HELP' and line <3;
    TEXT
    package Fnd_Help AUTHID CURRENT_USER as
    /* $Header: AFMLHLPS.pls 115.22 2009/10/12 12:56:58 nchiring ship $ */
    package body FND_HELP as
    /* $Header: AFMLHLPB.pls 115.115 2010/03/19 06:45:24 nchiring ship $ */
    Thanks
    Arfan
    Edited by: user1717313 on 08-Jul-2011 05:04

  • Problem with UTL_FILE (please see my last post on this thread)

    Hi all,
    I'm trying to get the code (procedures, functions, etc) of my schemas. I've tried it using DBMS_METADATA.GET_DDL but it fails with many objects. Finally, I'm trying to create a procedure to extract the code.
    I've created this two procedures:
    CREATE OR REPLACE PROCEDURE spool_code (code IN varchar2, propi IN varchar2) is
    CURSOR codigo is
    select text from dba_source where name = code and owner = propi order by line;
    line varchar2(4000);
    BEGIN
    open codigo;
    loop
    fetch codigo into line;
    exit when codigo%notfound;
    dbms_output.put_line(line);
    end loop
    close;
    END;
    CREATE OR REPLACE PROCEDURE ext_codigo is
    CURSOR objeto is
    select object_name, owner from dba_objects where object_type in ('PROCEDURE','FUNCTION','PACKAGE')
    and owner not in ('OUTLN','DBSNMP','SYSTEM','SYS','REPADMIN','PERFSTAT','SPOTLIGHT','MONITOR','PRUEBAS','TOAD')
    and status='VALID';
    nom varchar2(128);
    owner varchar2(30);
    BEGIN
    open objeto;
    loop
    fetch objeto into nom, owner;
    exit when objeto%notfound;
    spool_code(nom, owner);
    end loop;
    close objeto;
    END;
    And I'm calling from sqlplus to spool it:
    SQL> spool Users_code.sql
    SQL> exec ext_codigo;
    But it don't bring me results...
    where is the problem??
    Thanks in advance for your support!
    dbajug
    Edited by: dbajug on Aug 29, 2012 6:36 AM

    Hi,
    yes guys, I've set serverout on using the max limit but, always fails with:
    ERROR at line 1:
    ORA-20000: ORU-10027: buffer overflow, limit of 1000000 bytes
    ORA-06512: at "SYS.DBMS_OUTPUT", line 35
    ORA-06512: at "SYS.DBMS_OUTPUT", line 198
    ORA-06512: at "SYS.DBMS_OUTPUT", line 139
    ORA-06512: at "SYS.SPOOL_CODE", line 15
    ORA-06512: at "SYS.EXT_CODIGO", line 17
    ORA-06512: at line 1
    I'm working with a 9i version trying to extract the code to migrate it to a 11g.
    In order to avoid the buffer error, I've decide use the UTL_FILE package but I'm having another problem: my procedure now is this
    CREATE OR REPLACE PROCEDURE spool_code (code IN varchar2, propi IN varchar2) is
    CURSOR codigo is
    select text from dba_source where name = code and owner = propi order by line;
    line varchar2(4000);
    out_file UTL_FILE.File_Type;
    BEGIN
    begin
    out_file := UTL_FILE.Fopen('/export/home/oracle', 'Users_code.sql', 'w');
    exception
    when others then
    dbms_output.put_line('Error opening file');
    end;
    open codigo;
    loop
    fetch codigo into line;
    exit when codigo%notfound;
    UTL_FILE.Put_Line(out_file, line);
    end loop;
    close codigo;
    UTL_FILE.Fclose(out_file);
    END;
    The directory exists and the file too but fails with this error:
    ERROR at line 1:
    **ORA-29282: invalid file ID**
    ORA-06512: at "SYS.UTL_FILE", line 714
    ORA-06512: at "SYS.SPOOL_CODE", line 23
    ORA-06512: at "SYS.EXT_CODIGO", line 17
    ORA-06512: at line 1
    any idea? about the reason? The file is a text file on the server:
    ls -lrt /export/home/oracle/Users_code.sql
    -rw-rw-r-- 1 oracle dba 0 Aug 29 14:43 /export/home/oracle/Users_code.sql
    best regards,
    dbajug

  • How do I view package bodies in another schema ?

    For purposes of SOX and security/audit control, we log in under our network id's in our production environment. We have sourcecode compiled into Oracle seeded schemas ( APPS ) so that scheduled jobs are able to run with submitted from the Oracle Applications environment. We don't compile code into our personal network account areas.
    I know how to GRANT EXECUTE privs so that we can execute a package in another schema, but what I want to do is to be able to view the sourcecode in another schema. Compile into APPS but be able to see the package body from my network id schema account.
    I can't seem to find what the correct permission is anywhere. Granted I can look at DBA_SOURCE to get to it, but I want to use a tool like SQL Developer or TOAD to look at the code in a more presentable and easier to debug manner.
    Any help ?

    I did some more searching on the forum... seems its already a request... TOAD gives access to DBA_Views to resolve the issue... SQL Developer has not integrated that functionality yet, but forum entries seem to indicate that it is on the horizon.
    Thanks for responding though.
    ~Barry

  • How to find out names of all stored procedures?

    Hi All,
    I need to find out the names of all stored procedures with parameters and return types. I can use DBA_SOURCE, but in this case I must parse TEXT to find out what I need. Is there any dictionary where the names, parameters and return types of stored procedures saved separately?
    Thanks,
    Andrej.

    Not much fair to bring this old post up, sorry!
    I am still looking for an answer to my post
    where are stored functions like ORA_HASH or GROUPING_ID

  • How to find out when last rman backup was made in 9i

    Hello,
    i have an oracle 9i database running on windows here. Is there a way to find out when the last rman backup was done with a sql query?
    I would like to create a job inside the database that regulary checks if a rman backup ran sucessfully instead of using scripts in the operating system.
    But i only know about commands in the rman utility (that i can not execute as a job, right?) - is something similar possible with for example sqlplus?

    Hello,
    this gives some results, but none of the views begins with RC:
    ALL_DIM_HIERARCHIES
    ALL_SOURCE
    ALL_SOURCE_TABLES
    ALL_SOURCE_TAB_COLUMNS
    DBA_DIM_HIERARCHIES
    DBA_RCHILD
    DBA_REGISTRY_HIERARCHY
    DBA_RSRC_CONSUMER_GROUPS
    DBA_RSRC_CONSUMER_GROUP_PRIVS
    DBA_RSRC_MANAGER_SYSTEM_PRIVS
    DBA_RSRC_PLANS
    DBA_RSRC_PLAN_DIRECTIVES
    DBA_SOURCE
    DBA_SOURCE_TABLES
    DBA_SOURCE_TAB_COLUMNS
    USER_DIM_HIERARCHIES
    USER_RESOURCE_LIMITS
    USER_RSRC_CONSUMER_GROUP_PRIVS
    USER_RSRC_MANAGER_SYSTEM_PRIVS
    USER_SOURCE
    Edited by: user590072 on 22.06.2010 05:49

  • Getting ORA-20001: Creation of new object is not allowed: !!

    Hi Am getting ORA-20001: Creation of new object is not allowed while enabling constraints after importing the dumps from source to target datbase,can anyone assist me to fix this issue.

    Hi Osama/Mustafa,Thanks for your quick response,can you please explain me the following things-
    1)As i don't have privilege to run the DBA_XX views,am not able to run those queries-
    SELECT OWNER, TRIGGER_NAME, TRIGGER_BODY FROM DBA_TRIGGERS WHERE TRIGGER_TYPE IN ('AFTER EVENT', 'BEFORE EVETN') AND TRIGGERING_EVENT LIKE '%CREATE%';
    can you tell me what output it'll throw,based on this output how will we fix the issue.
    2)SELECT * FROM dba_sys_privs WHERE privilege = 'UNLIMITED TABLESPACE';
    why we need to check this privilege?as i don't have privilege to run this one in my db.
    3)select * from dba_source where upper(text) like upper('%Creation of new object is not allowed%');
    as i don't have privilege to run this one in my db,already i got the object name from my logfile
    and more you have quoted"This is an error of someone that coded purposely on your database, probably dba or a developer who has privilege and again it is in a database event trigger"
    4)can you explain me much more deeper about the root cause and as already sent note to my DBA,can you explain me the solution to fix this issue ?

  • 11.5.10.2 to R12.1.1 upgrade: Error loading seed data for GL_DEFAS_ACCESS_SETS:  DEFINITION_ACCESS_SET = SUPER_USER_DEFAS,  ORA-06508: PL/SQL: could not find program unit being called

    Hello,
    EBS version : 11.5.10.2
    DB version : 11.2.0.3
    OS version : AIX 6.1
    As a part of 11.5.10.2 to R12.1.1 upgrade, while applying merged 12.1.1 upgrade driver(u6678700.drv), we got below error :
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    ATTENTION: All workers either have failed or are waiting:
               FAILED: file glsupdas.ldt on worker  3.
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    drix10:/fmstop/r12apps/apps/apps_st/appl/admin/FMSTEST/log>tail -20 adwork003.log
    Restarting job that failed and was fixed.
    Time when worker restarted job: Wed Aug 07 2013 10:36:14
    Loading data using  FNDLOAD function.
    FNDLOAD APPS/***** 0 Y UPLOAD @SQLGL:patch/115/import/glnlsdas.lct @SQLGL:patch/115/import/US/glsupdas.ldt -
    Connecting to APPS......Connected successfully.
    Calling FNDLOAD function.
    Returned from FNDLOAD function.
    Log file: /fmstop/r12apps/apps/apps_st/appl/admin/FMSTEST/log/US_glsupdas_ldt.log
    Error calling FNDLOAD function.
    Time when worker failed: Wed Aug 07 2013 10:36:14
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    drix10:/fmstop/r12apps/apps/apps_st/appl/admin/FMSTEST/log>tail -20 US_glsupdas_ldt.log
    Current system time is Wed Aug  7 10:36:14 2013
    Uploading from the data file /fmstop/r12apps/apps/apps_st/appl/gl/12.0.0/patch/115/import/US/glsupdas.ldt
    Altering database NLS_LANGUAGE environment to AMERICAN
    Dumping from LCT/LDT files (/fmstop/r12apps/apps/apps_st/appl/gl/12.0.0/patch/115/import/glnlsdas.lct(120.0), /fmstop/r12apps/apps/apps_st/appl/gl/12.0.0/patch/115/import/US/glsupdas.ldt) to staging tables
    Dumping LCT file /fmstop/r12apps/apps/apps_st/appl/gl/12.0.0/patch/115/import/glnlsdas.lct(120.0) into FND_SEED_STAGE_CONFIG
    Dumping LDT file /fmstop/r12apps/apps/apps_st/appl/gl/12.0.0/patch/115/import/US/glsupdas.ldt into FND_SEED_STAGE_ENTITY
    Dumped the batch (GL_DEFAS_ACCESS_SETS SUPER_USER_DEFAS , GL_DEFAS_ACCESS_SETS SUPER_USER_DEFAS ) into FND_SEED_STAGE_ENTITY
    Uploading from staging tables
      Error loading seed data for GL_DEFAS_ACCESS_SETS:  DEFINITION_ACCESS_SET = SUPER_USER_DEFAS,  ORA-06508: PL/SQL: could not find program unit being called
    Concurrent request completed
    Current system time is Wed Aug  7 10:36:14 2013
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

    Below is info about file versions and INVALID packages related to GL.
    PACKAGE BODY GL_DEFAS_ACCESS_SETS_PKG is invalid with error component 'GL_DEFAS_DBNAME_S' must be declared.
    I can see GL_DEFAS_DBNAME_S is a VALID sequence accessible by apps user with or without specifying GL as owner.
    SQL> select text from dba_source where name in ('GL_DEFAS_ACCESS_DETAILS_PKG','GL_DEFAS_ACCESS_SETS_PKG') and line=2;
     TEXT
    /* $Header: glistdds.pls 120.4 2005/05/05 01:23:16 kvora ship $ */
    /* $Header: glistddb.pls 120.16 2006/04/10 21:28:48 cma ship $ */
    /* $Header: glistdas.pls 120.4 2005/05/05 01:23:02 kvora ship $ */
    /* $Header: glistdab.pls 120.5 2006/03/13 19:56:21 cma ship $ */ 
    SQL> select * from all_objects where object_name in ('GL_DEFAS_ACCESS_DETAILS_PKG','GL_DEFAS_ACCESS_SETS_PKG')
      2 ; OWNER OBJECT_NAME SUBOBJECT_NAM OBJECT_ID DATA_OBJECT_ID OBJECT_TYPE CREATED LAST_DDL_TIME TIMESTAMP STATUS T G S NAMESPACE
    EDITION_NAME
    APPS GL_DEFAS_ACCESS_DETAILS_PKG 1118545 PACKAGE 05-AUG-13 05-AUG-13 2013-08-05:18:54:51 VALID N N N 1 
    APPS GL_DEFAS_ACCESS_SETS_PKG 1118548 PACKAGE 05-AUG-13 06-AUG-13 2013-08-05:18:54:51 VALID N N N 1 
    APPS GL_DEFAS_ACCESS_SETS_PKG 1128507 PACKAGE BODY 05-AUG-13 06-AUG-13 2013-08-06:12:56:50 INVALID N N N 2 
    APPS GL_DEFAS_ACCESS_DETAILS_PKG 1128508 PACKAGE BODY 05-AUG-13 05-AUG-13 2013-08-05:19:43:51 VALID N N N 2 
    SQL> select * from all_objects where object_name='GL_DEFAS_DBNAME_S'; OWNER OBJECT_NAME SUBOBJECT_NAM OBJECT_ID DATA_OBJECT_ID OBJECT_TYPE CREATED LAST_DDL_TIME TIMESTAMP STATUS T G S NAMESPACE
    EDITION_NAME
    GL GL_DEFAS_DBNAME_S 1087285 SEQUENCE 05-AUG-13 05-AUG-13 2013-08-05:17:34:43 VALIDN N N 1 
    APPS GL_DEFAS_DBNAME_S 1087299 SYNONYM 05-AUG-13 05-AUG-13 2013-08-05:17:34:43 VALIDN N N 1 
    SQL> conn apps/apps
    Connected.
    SQL> SELECT OWNER, OBJECT_NAME, OBJECT_TYPE, STATUS
    FROM DBA_OBJECTS
    WHERE OBJECT_NAME = 'GL_DEFAS_ACCESS_SETS_PKG'; 2 3 OWNER OBJECT_NAME OBJECT_TYPE STATUS
    APPS GL_DEFAS_ACCESS_SETS_PKG PACKAGE VALID
    APPS GL_DEFAS_ACCESS_SETS_PKG PACKAGE BODY INVALID SQL> ALTER PACKAGE GL_DEFAS_ACCESS_SETS_PKG COMPILE; Warning: Package altered with compilation errors. SQL> show error
    No errors.
    SQL> ALTER PACKAGE GL_DEFAS_ACCESS_SETS_PKG COMPILE BODY; Warning: Package Body altered with compilation errors. SQL> show error
    Errors for PACKAGE BODY GL_DEFAS_ACCESS_SETS_PKG: LINE/COL ERROR
    39/17 PLS-00302: component 'GL_DEFAS_DBNAME_S' must be declared 
    drix10:/fmstop/r12apps/apps/apps_st/appl/gl/12.0.0/patch/115/odf>cat $GL_TOP/patch/115/sql/glistdab.pls|grep -n GL_DEFAS_DBNAME_S
    68: SELECT GL.GL_DEFAS_DBNAME_S.NEXTVAL
    81: fnd_message.set_token('SEQUENCE', 'GL_DEFAS_DBNAME_S');
    SQL> show user
    USER is "APPS"
    SQL> SELECT GL.GL_DEFAS_DBNAME_S.NEXTVAL
      FROM dual; 2                         -- with GL.
      NEXTVAL
      1002
    SQL> SELECT GL_DEFAS_DBNAME_S.NEXTVAL from dual;               --without GL. or using synonym.
      NEXTVAL
      1003
    drix10:/fmstop/r12apps/apps/apps_st/appl/gl/12.0.0/patch/115/odf>strings -a $GL_TOP/patch/115/sql/glistdab.pls|grep '$Header'
    REM | $Header: glistdab.pls 120.5 2006/03/13 19:56:21 cma ship $ |
    /* $Header: glistdab.pls 120.5 2006/03/13 19:56:21 cma ship $ */
    drix10:/fmstop/r12apps/apps/apps_st/appl/gl/12.0.0/patch/115/odf>strings -a $GL_TOP/patch/115/sql/glistdas.pls |grep '$Header'
    REM | $Header: glistdas.pls 120.4 2005/05/05 01:23:02 kvora ship $ |
    /* $Header: glistdas.pls 120.4 2005/05/05 01:23:02 kvora ship $ */

  • Various Data DIctionary VIews

    After posting something here a few days back about the myriad views needing to be digested for the Fund.I Exam, I have just gleaned this lot from the Couchman book. No doubt some of the pros out there may well correct me, but this is simple what I have collected from the book, in the last 3 hours. Cheers.
    Dictionary Views
    Data Dictionary
    Which users are in the database password file:
    V$PWFILE_USERS
    Where values set in the init.ora file can be viewed – all parameters:
    V$PARAMETER
    Script used to create the objects that comprise the data dictionary:
    catalog.sql
    To grant a special role to users so they can look at DBA views:
    SELECT_CATALOG_ROLE
    Information about all database objects in the database:
    DBA_OBJECTS
    Information about all tables in the database:
    DBA_TABLES
    Information about all indexes in the database:
    DBA_INDEXES
    Information about all views (including dictionary views) in the database:
    DBA_VIEWS
    Information about all sequences in the database:
    DBA_SEQUENCES
    Information about all users in the database:
    DBA_USERS
    Information about all constraints in the database:
    DBA_CONSTRAINTS
    Information about all table columns that have constraints on them:
    DBA_CONS_COLUMNS
    Information about all columns that have indexes on them in the database:
    DBA_IND_COLUMNS
    Information about all columns in all the tables in the database:
    DBA_TAB_COLUMNS
    Information about all the roles in the database:
    DBA_ROLES
    Information about all object privileges in the database:
    DBA_TAB_PRIVS
    Information about all system privileges granted to all users in the database:
    DBA_SYS_PRIVS
    Displays all PL/SQL source code in the database:
    DBA_SOURCE
    Information about all triggers in the database:
    DBA_TRIGGERS
    Information about object privileges granted to roles
    ROLE_TAB_PRIVS
    Information about system privileges granted to roles
    ROLE_SYS_PRIVS
    Information about roles granted to roles
    ROLE_ROLE_PRIVS
    Information about all tablespaces in the database:
    DBA_TABLESPACES
    Information about all profiles in the database:
    DBA_PROFILES
    For all parameters?
    V$PARAMETER
    General information about the database mounted to your instance:
    V$DATABASE
    Most information about the performance of the database is kept here:
    V$SYSSTAT
    Most information about the performance for individual user sessions is stored here:
    V$SESSION , V$SESSTAT
    Information about online redo logs (2)
    V$LOG, V$LOGFILE
    Information about datafiles
    V$DATAFILE
    Basic information about control files, and the two columns it has:
    V$CONTROLFILE. STATUS / NAME
    An object you can query to obtain a listing of all data dictionary objects (4)
    CATALOG, CAT, DICTIONARY, DICT.
    When the control file was created, Sequence Number, most recent SCN:
    V$DATABASE
    Information stored in different sections of the control file, Sequence Number:
    V$CONTROLFILE_RECORD_SECTION
    To see the names and locations of all control files in the db? (2)
    V$PARAMETER. V$CONTROLFILE
    Tablespace and Datafiles
    Temporary Segments:
    Name, tablespace location, and owner of temporary segments:
    DBA_SEGMENTS
    Size of temporary tablespaces, current number of extents allocated to sort segments, and sort segment high-water mark information. Space usage allocation for temporary segments:
    V$SORT_SEGMENT
    Types of sorts that are happening currently on the database
    V$SORT_USAGE
    To see the username corresponding with the session:
    V$SESSION
    Information about every datafile in the database associated with a temporary tablespace:
    DBA_TEMP_FILES
    Similar to DBA_TEMP_FILES, this performance view gives Information about every datafile in the database associated with a temporary tablespace:
    V$TEMPFILE
    Storage Structures
    A summary view, contains all types of segments and their storage parameters, space utilization settings:
    DBA_SEGMENTS
    Tablespace quotas assigned to users:
    DBA_TS_QUOTAS
    Segment name, type, owner, total bytes of extent, name of tablespace storing the extent:
    DBA_EXTENTS
    The location and amount of free space by tablespace name:
    DBA_FREE_SPACE
    The location of free space in the tablespace that has been coalesced:
    DBA_FREE_SPACE_COALESCED
    Information about datafiles for every tablespace
    DBA_DATAFILES
    Performance view for information for datafiles for every tablespace
    V$DATAFILE
    To see the total amount of space allocated to a table?
    DBA_EXTENTS
    Table creation timestamp, information about the object ID:
    DBA_OBJECTS
    High water mark, all storage settings for a table, and statistics collected as part of the analyze (for row migration) operation on that table
    DBA_TABLES
    Information about every column in every table:
    DBA_TAB_COLUMNS
    To determine how many columns are marked unused for later removal?
    DBA_UNUSED_COL_TABS
    To find the number of deleted index entries ?
    INDEX_STATS
    To determine the columns on a table that have been indexed:
    DBA_ID_COLUMNS
    The dynamic view to show whether the index is being used in a meaningful way?
    V$OBJECT_USAGE
    To see whether a constraint exists on a particular column?
    DBA_CONS_COLUMNS
    To see the constraints associated with a particular table:
    DBA_CONSTRAINTS
    To find the username, ID number, (encrypted) password, default and temporary tablespace information, user profile of a user, password expiry date:
    DBA_USERS
    To all objects, which objects belong to which users, how many objects a user has created?
    DBA_OBJECTS
    Resource-usage parameters for a particular profile:
    DBA_PROFILES
    Identifies all resources in the database and their corresponding cost:
    RESOURCE_COST
    Identifies system resource limits for individual users:
    USER_RESOURCE_LIMITS
    Shows all system privileges:
    DBA_SYS_PRIVS
    Show all object privileges:
    DBA_TAB_PRIVS
    Shows all privileges in this session available to you as the current user:
    SESSION_PRIVS
    Views for audits currently taking place are created by this script:
    cataudit.sql
    a list of audit entries generated by the exists option of the audit command:
    DBA_AUDIT_EXISTS
    A list of audit entries generated for object audits:
    DBA_AUDIT_OBJECT
    A list of audit entries generated by session connects and disconnects:
    DBA_AUDIT_SESSION
    A list of audit entries generated by statement options of the audit command:
    DBA_AUDIT_STATEMENT
    A list of all entries in the AUD$ table collected by the audit command:
    DBA_AUDIT_TRAIL
    To determine the roles available in the database, the names of all the roles on the database and if a password is required to use each role:
    DBA_ROLES
    Names of all users and the roles granted to them:
    DBA_ROLE_PRIVS
    All the roles and the roles that are granted to them:
    ROLE_ROLE_PRIVS
    Which system privileges have been granted to a role:
    DBA_SYS_PRIVS
    All the system privileges granted only to roles:
    ROLE_SYS_PRIVS
    All the object privileges granted only to roles:
    ROLE_TAB_PRIVS
    All the roles available in the current session:
    SESSION_ROLES
    Which object privilege has been granted to a role:
    DBA_TAB_PRIVS
    To display the value of the NLS_CHARACTERSET parameter:
    NLS_DATABASE_PARAMETERS
    DA

    You can also find a lot of stuff by doing:
    SELECT *
    FROM dictionary;

  • How to search source of pl/sql block in database?

    Hi Guys,
    We have an issue in database, there is PL/SQL block running in my database as below which deleting very important historical data.
    begin
    loop
    delete from tabl_name where created_date<sysdate -100 and ronum<10000;
    EXIT WHEN SQL%NOTFOUND;
    commit;
    end loop;
    end;
    I tried following,
    1) I found this block in v$sqlarea
    2) I searched in dba_source,user_source,all_source but no luck.
    3) I checked all the triggeres but no luck.
    4) I checked all the cron entries for oracle/root/app owner in os but no luck.
    5 I checked all the jobs in dba_jobs but no lcuk
    would appreciated if anyone can assist on this.
    I want to disable/remove this query to be executed.
    Regards,
    Rikki

    For ASH,
    I am trying to confirure the OEM and not able to access the OEM from remotely. However any idea from commad prompt.
    I believe there is a script ashrpt.sql but while running this script format is not supporting.
    any idea if you have run it before.
    I agree for log miner utilities, but I need to configure the UTL dir and need to bounce it and its a critical production environment so looking for alternatives. if not possible I would go for this option.
    It seems ASH report is being geneated lets see how does it go.
    Regards,
    Pradeep
    Edited by: user13049723 on Jul 26, 2010 8:07 PM

Maybe you are looking for

  • Helpful Information about getting music from ANY ipod onto your itunes!!!

    This is a message letting all Windows itunes users how to put music from any ipod onto their itunes, or other music player. Many people are annoyed when itunes doesn't let them put music from an ipod, thats not registered with their computer, into th

  • Garmin GPS Updater opens everytime I open pages????

    Have recently updated my iMac to Mavericks and the new Pages and now everytime I open Pages the Updater for our Garmin GPS opens in front of the Pages window. Does anyone know why this might be?

  • Copying Presets and Dual Screens

    Hi there, I am running a small home studio and have just hooked up another monitor to my imac. First question, how do I put the mixer in a separate window on the second screen. I want it so I can have the arrange page on the main screen and then the

  • FM11 crashes when opening DITA files created with FM7.2

    Hi all, I am finding out new truths every day now about FM11 and DITA 1.2.. The latest problem: FM11 crashes (on all our computers) when trying to open existing DITA files. These were created with FM7.2 using the DITA application pack. FM11 is newly

  • URL Transformation

    I am unable to convince plumtree 5.0.1 to display a properly transformed URL through the gateaway. Here's an example to explain: I have remote server x configured as http://server.domain.com/GadgetVirtual/I create a remote web service as /WebServiceA