$ORACLE_HOME/rdbms/admin/utlrp.sql

Hi,
can i use this script to compile all my invalids objects without auther effects on my product DB?
Thanks.

Are there invalid objects on your DB at this time.
Normally this may happen at the time of migrating or upgrading a application and the script could be used to compile all invalid objects to save on recompile steps at runtime.
Note this from the comments in the file:
<quote>
Rem * There should be no other DDL on the database while running the
Rem script. Not following this recommendation may lead to deadlocks.
</quote>

Similar Messages

  • How to run @?/rdbms/admin/utlrp.sql from OEM?

    After I make database changes I have to run utlrp.sql to compile all the invalid objects. I know how to do it from the host. But now I'm running this release from the OEM as sql jobs.
    Is there any equivalent of @?/rdbms/sadmin/utlrp.sql running from OEM?
    error msg:
    DOC> 2. Query showing UTL_RECOMP jobs that are running
    DOC>     SELECT job_name FROM dba_scheduler_running_jobs
    DOC>          WHERE job_name like 'UTL_RECOMP_SLAVE_%';
    DOC>#
    utl_recomp.recomp_parallel(threads);
    ERROR at line 4:
    ORA-06550: line 4, column 4:
    PLS-00201: identifier 'UTL_RECOMP.RECOMP_PARALLEL' must be declared
    ORA-06550: line 4, column 4:
    PL/SQL: Statement ignored
    Elapsed: 00:00:00.01
    SELECT dbms_registry_sys.time_stamp('utlrp_end') as timestamp from dual
    ERROR at line 1:
    ORA-00904: "DBMS_REGISTRY_SYS"."TIME_STAMP": invalid identifier
    Elapsed: 00:00:00.00
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.01
    DOC> The following query reports the number of objects that have compiled
    DOC> with errors (objects that compile with errors have status set to 3 in
    DOC> obj$). If the number is higher than expected, please examine the error
    DOC> messages reported with each object (using SHOW ERRORS) to see if they
    DOC> point to system misconfiguration or resource constraints that must be
    DOC> fixed before attempting to recompile these objects.
    DOC>#
    select COUNT(*) "OBJECTS WITH ERRORS" from obj$ where status = 3
    ERROR at line 1:
    ORA-00942: table or view does not exist

    Hi,
    How can you create job in OEM to use EXEC UTL_RECOMP.recomp_serial(); inorder to compile all db objects.
    I tried few things but all resulting in error.
    I am creating OEM job as SQL script and where it ask for SQL script I am giving below code:
    1.
    WHENEVER SQLERROR EXIT FAILURE;
    EXEC UTL_RECOMP.recomp_serial;Error:
    SQL> SQL> SQL> SQL> SQL> BEGIN utl_recomp.recomp_serial ; END;
    ERROR at line 1:
    ORA-06550: line 1, column 7:
    PLS-00201: identifier 'UTL_RECOMP.RECOMP_SERIAL' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    2.when trying with using utlrp.sql:
    WHENEVER SQLERROR EXIT FAILURE;
    @?/rdbms/admin/utlrp.sql;Error:
    SQL> SQL> SQL> SQL> SQL> SELECT dbms_registry_sys.time_stamp('utlrp_bgn') as timestamp from dual
    ERROR at line 1:
    ORA-00904: "DBMS_REGISTRY_SYS"."TIME_STAMP": invalid identifier
    I can run utlrp.sql without any error manually from sql prompt as sys user.
    I am login into OEM as SYSTEM user and also with user who has privilege for backup.
    thanks,

  • How to run @?/rdbms/admin/utlrp.sql remotely

    After running patch set assistant against MDS schema using jython script, I need to run the sql file utlrp to recompile the db objects and the db machine is remote and I would like to run remotely. Any suggestions.
    Thanks

    You can execute remote scripts via SQL*Plus - provided that there is a network access path to that remote script.
    From the SQL*Plus command line help:
    SQL> help @
    @ ("at" sign)
    Runs the SQL*Plus statements in the specified script. The script can be
    called from the local file system or a web server.
    @ {url|file_name[.ext]} [arg ...]
    where url supports HTTP and FTP protocols in the form:
        http://host.domain/script.sql
    @@ (double "at" sign)
    Runs the specified script. This command is almost identical to
    the @ command. It is useful for running nested scripts because it
    has the additional functionality of looking for the nested script
    in the same url or path as the calling script.
    @@ {url|file_name[.ext]} [arg ...]Both HTTP and FTP access to remote scripts are supported. If you do not have either, then you need to copy that remote script to a local location and execute it, via SQL*Plus, from there.

  • Fail running @/oracle/product/infra/rdbms/admin/utlrp.sql in Oracle RAC DB

    Dear Expert,
    I have issue when running recompile db by using below statement in Oracle RAC db.
    SELECT dbms_registry.time_stamp('utlrp_bgn') as timestamp from dual
    ERROR at line 1:
    ORA-00904: "DBMS_REGISTRY"."TIME_STAMP": invalid identifier
    Regard
    Liang

    timestamp not found below
    SQL> desc dbms_registry
    PROCEDURE CHECK_SERVER_INSTANCE
    FUNCTION COMP_NAME RETURNS VARCHAR2
    Argument Name               Type               In/Out Default?
    COMP_ID               VARCHAR2          IN
    PROCEDURE DELETE_PROGRESS_ACTION
    Argument Name               Type               In/Out Default?
    COMP_ID               VARCHAR2          IN
    ACTION                VARCHAR2          IN
    PROCEDURE DOWNGRADED
    Argument Name               Type               In/Out Default?
    COMP_ID               VARCHAR2          IN
    OLD_VERSION               VARCHAR2          IN
    PROCEDURE DOWNGRADING
    Argument Name               Type               In/Out Default?
    COMP_ID               VARCHAR2          IN
    OLD_NAME               VARCHAR2          IN     DEFAULT
    OLD_PROC               VARCHAR2          IN     DEFAULT
    OLD_SCHEMA               VARCHAR2          IN     DEFAULT
    OLD_PARENT               VARCHAR2          IN     DEFAULT
    FUNCTION GET_DEPENDENT_COMPS RETURNS COMP_DEPEND_LIST_T
    Argument Name               Type               In/Out Default?
    COMP_ID               VARCHAR2          IN
    FUNCTION GET_DEPENDENT_COMPS_REC RETURNS TABLE OF RECORD
    Argument Name               Type               In/Out Default?
    COMP_ID               VARCHAR2          IN
    FUNCTION GET_PROGRESS_STEP RETURNS NUMBER
    Argument Name               Type               In/Out Default?
    COMP_ID               VARCHAR2          IN
    ACTION                VARCHAR2          IN
    FUNCTION GET_PROGRESS_VALUE RETURNS VARCHAR2
    Argument Name               Type               In/Out Default?
    COMP_ID               VARCHAR2          IN
    ACTION                VARCHAR2          IN
    FUNCTION GET_REQUIRED_COMPS RETURNS COMP_DEPEND_LIST_T
    Argument Name               Type               In/Out Default?
    COMP_ID               VARCHAR2          IN
    FUNCTION GET_REQUIRED_COMPS_REC RETURNS TABLE OF RECORD
    Argument Name               Type               In/Out Default?
    COMP_ID               VARCHAR2          IN
    PROCEDURE INVALID
    Argument Name               Type               In/Out Default?
    COMP_ID               VARCHAR2          IN
    FUNCTION IS_COMPONENT RETURNS BOOLEAN
    Argument Name               Type               In/Out Default?
    COMP_ID               VARCHAR2          IN
    FUNCTION IS_IN_REGISTRY RETURNS BOOLEAN
    Argument Name               Type               In/Out Default?
    COMP_ID               VARCHAR2          IN
    FUNCTION IS_LOADED RETURNS NUMBER
    Argument Name               Type               In/Out Default?
    COMP_ID               VARCHAR2          IN
    VERSION               VARCHAR2          IN     DEFAULT
    FUNCTION IS_STARTUP_REQUIRED RETURNS NUMBER
    Argument Name               Type               In/Out Default?
    COMP_ID               VARCHAR2          IN
    FUNCTION IS_VALID RETURNS NUMBER
    Argument Name               Type               In/Out Default?
    COMP_ID               VARCHAR2          IN
    VERSION               VARCHAR2          IN     DEFAULT
    PROCEDURE LOADED
    Argument Name               Type               In/Out Default?
    COMP_ID               VARCHAR2          IN
    COMP_VERSION               VARCHAR2          IN     DEFAULT
    COMP_BANNER               VARCHAR2          IN     DEFAULT
    PROCEDURE LOADING
    Argument Name               Type               In/Out Default?
    COMP_ID               VARCHAR2          IN
    COMP_NAME               VARCHAR2          IN
    COMP_PROC               VARCHAR2          IN     DEFAULT
    COMP_SCHEMA               VARCHAR2          IN     DEFAULT
    COMP_PARENT               VARCHAR2          IN     DEFAULT
    PROCEDURE LOADING
    Argument Name               Type               In/Out Default?
    COMP_ID               VARCHAR2          IN
    COMP_NAME               VARCHAR2          IN
    COMP_PROC               VARCHAR2          IN
    COMP_SCHEMA               VARCHAR2          IN
    COMP_SCHEMAS               SCHEMA_LIST_T          IN
    COMP_PARENT               VARCHAR2          IN     DEFAULT
    FUNCTION NOTHING_SCRIPT RETURNS VARCHAR2
    FUNCTION PREV_VERSION RETURNS VARCHAR2
    Argument Name               Type               In/Out Default?
    COMP_ID               VARCHAR2          IN
    PROCEDURE REMOVED
    Argument Name               Type               In/Out Default?
    COMP_ID               VARCHAR2          IN
    PROCEDURE REMOVING
    Argument Name               Type               In/Out Default?
    COMP_ID               VARCHAR2          IN
    PROCEDURE RESET_VERSION
    Argument Name               Type               In/Out Default?
    COMP_ID               VARCHAR2          IN
    FUNCTION SCHEMA RETURNS VARCHAR2
    Argument Name               Type               In/Out Default?
    COMP_ID               VARCHAR2          IN
    FUNCTION SCHEMA_LIST RETURNS SCHEMA_LIST_T
    Argument Name               Type               In/Out Default?
    COMP_ID               VARCHAR2          IN
    FUNCTION SCHEMA_LIST_STRING RETURNS VARCHAR2
    Argument Name               Type               In/Out Default?
    COMP_ID               VARCHAR2          IN
    FUNCTION SCRIPT RETURNS VARCHAR2
    Argument Name               Type               In/Out Default?
    COMP_ID               VARCHAR2          IN
    SCRIPT_NAME               VARCHAR2          IN
    FUNCTION SCRIPT_PATH RETURNS VARCHAR2
    Argument Name               Type               In/Out Default?
    COMP_ID               VARCHAR2          IN
    FUNCTION SCRIPT_PREFIX RETURNS VARCHAR2
    Argument Name               Type               In/Out Default?
    COMP_ID               VARCHAR2          IN
    FUNCTION SESSION_NAMESPACE RETURNS VARCHAR2
    PROCEDURE SET_COMP_NAMESPACE
    Argument Name               Type               In/Out Default?
    COMP_ID               VARCHAR2          IN
    NAMESPACE               VARCHAR2          IN
    PROCEDURE SET_PROGRESS_ACTION
    Argument Name               Type               In/Out Default?
    COMP_ID               VARCHAR2          IN
    ACTION                VARCHAR2          IN
    VALUE                    VARCHAR2          IN     DEFAULT
    STEP                    NUMBER               IN     DEFAULT
    PROCEDURE SET_PROGRESS_STEP
    Argument Name               Type               In/Out Default?
    COMP_ID               VARCHAR2          IN
    ACTION                VARCHAR2          IN
    STEP                    NUMBER               IN
    PROCEDURE SET_PROGRESS_VALUE
    Argument Name               Type               In/Out Default?
    COMP_ID               VARCHAR2          IN
    ACTION                VARCHAR2          IN
    VALUE                    VARCHAR2          IN
    PROCEDURE SET_REQUIRED_COMPS
    Argument Name               Type               In/Out Default?
    COMP_ID               VARCHAR2          IN
    COMP_DEPEND_LIST          COMP_DEPEND_LIST_T     IN
    PROCEDURE SET_REQUIRED_COMPS
    Argument Name               Type               In/Out Default?
    COMP_ID               VARCHAR2          IN
    COMP_DEPEND_LIST          TABLE OF RECORD      IN
    PROCEDURE SET_SESSION_NAMESPACE
    Argument Name               Type               In/Out Default?
    NAMESPACE               VARCHAR2          IN
    PROCEDURE STARTUP_COMPLETE
    Argument Name               Type               In/Out Default?
    COMP_ID               VARCHAR2          IN
    PROCEDURE STARTUP_REQUIRED
    Argument Name               Type               In/Out Default?
    COMP_ID               VARCHAR2          IN
    FUNCTION STATUS RETURNS VARCHAR2
    Argument Name               Type               In/Out Default?
    COMP_ID               VARCHAR2          IN
    FUNCTION STATUS_NAME RETURNS VARCHAR2
    Argument Name               Type               In/Out Default?
    STATUS                NUMBER               IN
    FUNCTION SUBCOMPONENTS RETURNS TABLE OF VARCHAR2(30)
    Argument Name               Type               In/Out Default?
    COMP_ID               VARCHAR2          IN
    COMP_OPTION               NUMBER               IN     DEFAULT
    PROCEDURE UPDATE_SCHEMA_LIST
    Argument Name               Type               In/Out Default?
    COMP_ID               VARCHAR2          IN
    COMP_SCHEMAS               SCHEMA_LIST_T          IN
    PROCEDURE UPGRADED
    Argument Name               Type               In/Out Default?
    COMP_ID               VARCHAR2          IN
    NEW_VERSION               VARCHAR2          IN     DEFAULT
    NEW_BANNER               VARCHAR2          IN     DEFAULT
    PROCEDURE UPGRADING
    Argument Name               Type               In/Out Default?
    COMP_ID               VARCHAR2          IN
    NEW_NAME               VARCHAR2          IN     DEFAULT
    NEW_PROC               VARCHAR2          IN     DEFAULT
    NEW_SCHEMA               VARCHAR2          IN     DEFAULT
    NEW_PARENT               VARCHAR2          IN     DEFAULT
    PROCEDURE UPGRADING
    Argument Name               Type               In/Out Default?
    COMP_ID               VARCHAR2          IN
    NEW_NAME               VARCHAR2          IN
    NEW_PROC               VARCHAR2          IN
    NEW_SCHEMA               VARCHAR2          IN
    NEW_SCHEMAS               SCHEMA_LIST_T          IN
    NEW_PARENT               VARCHAR2          IN     DEFAULT
    PROCEDURE VALID
    Argument Name               Type               In/Out Default?
    COMP_ID               VARCHAR2          IN
    FUNCTION VERSION RETURNS VARCHAR2
    Argument Name               Type               In/Out Default?
    COMP_ID               VARCHAR2          IN
    SQL>

  • *cannot overwrite or remove $ORACLE_HOME/rdbms/admin/externaljob.ora while

    Hi,
    I have trying to apply 10.2.0.4 patch on oracle home i.e. i am trying to upgrade my oracle software from 10.2.0.3 to 10.2.0.4
    But whil applying patch i am getting following message:
    cannot overwrite or remove $ORACLE_HOME/rdbms/admin/externaljob.ora while upgrading
    kindly help.

    This file is used for scheduling external jobs. It should be owned by root:dba and have 644 permissions. Temporarily change the owner to be oracle:dba, perform the upgrade, then change back to root:dba.
    Clarification on Externaljob.ora and Permissions (Doc ID 979186.1)
    Guide to External Jobs on 10g with dbms_scheduler e.g. scripts,batch files
    HTH
    Srini

  • Pb with command "Oracle_express\app\oracle\product\11.2.0\server\rdbms\admin\catalog.sql"

    Ello,
    I create a base manually
    when I execute the command
    sqlplus /nolog
    connect /as sysdba
    @Oracle_express\app\oracle\product\11.2.0\server\rdbms\admin\catalog.sql
    a the end I have the error
    Comment created.
    Comment created.
    Grant succeeded.
    DOC>######################################################################
    DOC>######################################################################
    DOC>    The following PL/SQL block will cause an ORA-20000 error and
    DOC>    terminate the current SQLPLUS session if the user is not SYS.
    DOC>    Disconnect and reconnect with AS SYSDBA.
    DOC>######################################################################
    DOC>######################################################################
    DOC>#
    DECLARE
    ERROR at line 1:
    ORA-06553: PLS-213: package STANDARD not accessible
    Disconnected from Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production
    Somebody have an idea for resolve my issue please ??
    Thank

    TRy this may help u
    CLASSY DBA: ORA-06553: PLS-213: package STANDARD not accessible

  • @/vobs/oracle/rdbms/admin/catproc.sql  error message

    After setting up 9i DB manually when i ran this script all went well with few errors , i am wondering these errors are ignoreable ....
    @/vobs/oracle/rdbms/admin/catproc.sql
    Grant succeeded.
    drop package body sys.diana
    ERROR at line 1:
    ORA-04043: object DIANA does not exist
    drop package sys.diana
    ERROR at line 1:
    ORA-04043: object DIANA does not exist
    Package created.
    Package body created.
    drop package body sys.diutil
    ERROR at line 1:
    ORA-04043: object DIUTIL does not exist
    drop package sys.diutil
    ERROR at line 1:
    ORA-04043: object DIUTIL does not exist
    Package created.
    ERROR at line 1:
    ORA-04043: object PSTUBT does not exist
    Procedure created.
    Grant succeeded.
    drop procedure sys.pstub
    ERROR at line 1:
    ERROR at line 1:
    ORA-04043: object SUBPTXT2 does not exist
    Procedure created.
    drop procedure sys.subptxt
    ERROR at line 1:
    ORA-04043: object SUBPTXT does not exist
    ERROR at line 1:
    ORA-04043: object DBMS_XPLAN_TYPE_TABLE does not exist
    drop type dbms_xplan_type
    ERROR at line 1:
    ORA-04043: object DBMS_XPLAN_TYPE does not exist
    Type created.
    ERROR at line 1:
    ORA-00942: table or view does not exist
    DROP TABLE ODCI_WARNINGS$
    ERROR at line 1:
    ORA-00942: table or view does not exist
    Type created.
    Table truncated.
    drop sequence dbms_lock_id
    ERROR at line 1:
    ORA-02289: sequence does not exist
    Sequence created.
    drop table SYSTEM.AQ$_Internet_Agent_Privs
    ERROR at line 1:
    ORA-00942: table or view does not exist
    drop table SYSTEM.AQ$_Internet_Agents
    ERROR at line 1:
    ORA-00942: table or view does not exist
    Table created.
    DROP SYNONYM def$_tran
    ERROR at line 1:
    ORA-01434: private synonym to be dropped does not exist
    DROP SYNONYM def$_call
    ERROR at line 1:
    ORA-01434: private synonym to be dropped does not exist
    DROP SYNONYM def$_defaultdest
    ERROR at line 1:
    DROP TYPE SYS.ExplainMVMessage FORCE
    ERROR at line 1:
    ORA-04043: object EXPLAINMVMESSAGE does not exist
    Type created.
    drop view sys.transport_set_violations
    ERROR at line 1:
    ORA-00942: table or view does not exist
    PL/SQL procedure successfully completed.
    drop table sys.transts_error$
    ERROR at line 1:
    ORA-00942: table or view does not exist
    drop operator XMLSequence
    ERROR at line 1:
    ORA-29807: specified operator does not exist
    drop function XMLSequenceFromXMLType
    ERROR at line 1:
    ORA-04043: object XMLSEQUENCEFROMXMLTYPE does not exist
    drop function XMLSequenceFromRefCursor
    ERROR at line 1:
    drop function XMLSequenceFromRefCursor2
    ERROR at line 1:
    ORA-04043: object XMLSEQUENCEFROMREFCURSOR2 does not exist
    drop type XMLSeq_Imp_t
    ERROR at line 1:
    ORA-04043: object XMLSEQ_IMP_T does not exist
    drop type XMLSeqCur_Imp_t
    ERROR at line 1:
    ORA-04043: object KU$_IND_PART_T does not exist
    drop type ku$_ind_part_list_t force
    ERROR at line 1:
    ORA-04043: object KU$_IND_PART_LIST_T does not exist
    drop type ku$_piot_part_t force
    ERROR at line 1:
    Grant succeeded.
    Synonym created.
    Grant succeeded.
    Package altered.
    Package altered.
    PL/SQL procedure successfully completed.

    These errors are ignorable, Oracle just trying to drop the package before creating them. If this is the first time you run catproc.sql, the errors are expected.

  • @@/oracle/RSS/102_64/rdbms/admin/catproc.sql  Executed with error.

    Hi All,
    We are in process of  CU&UC  during the unicode process , we have exported the DB and during Import during  create database phase  we are facing this problem..
    Please suggest.....
    @@/oracle/RSS/102_64/rdbms/admin/catproc.sql
    exit;
    Executed with error.
    Thanks,
    Subhash.G

    Some more errors:
    Below error from sapinst.log for reference .
    INFO 2007-11-03 06:19:35 Removing file /tmp/sapinst_instdir/NW04S/LM/COPY/ORA/SYSTEM/CENTRAL/AS-ABAP/ora_query3_tmp0_1.sql. INFO 2007-11-03 06:19:35 Creating file /tmp/sapinst_instdir/NW04S/LM/COPY/ORA/SYSTEM/CENTRAL/AS-ABAP/ora_query3_tmp0_1.sql. ERROR 2007-11-03 06:43:42 CJS-00084 SQL statement or script failed.
    DIAGNOSIS: Error message: ORA-955 for defaultdest ERROR 2007-11-03 06:43:45 MUT-03025 Caught ESAPinstException in Modulecall: ESAPinstException: error text undefined. ERROR 2007-11-03 06:43:47 FCO-00011 The step runCatprocSql with step key |NW_ABAP_OneHost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_CreateDB|ind|ind|ind|ind|0|0|NW_OraDBCheck|ind|ind|ind|ind|0|0|NW_OraDBMain|ind|ind|ind|ind|0|0|NW_OraDBStd|ind|ind|ind|ind|3|0|NW_OraDbBuild|ind|ind|ind|ind|5|0|runCatprocSql was executed with status ERROR . INFO 2007-11-03 06:53:37 An error occured and the user decide to stop.\n Current step "|NW_ABAP_OneHost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_CreateDB|ind|ind|ind|ind|0|0|NW_OraDBCheck|ind|ind|ind|ind|0|0|NW_OraDBMain|ind|ind|ind|ind|0|0|NW_OraDBStd|ind|ind|ind|ind|3|0|NW_OraDbBuild|ind|ind|ind|ind|5|0|runCatprocSql"
    Error from ora_sql.log
    @@/oracle/RSS/102_64/rdbms/admin/catproc.sql exit; Executed with error.
    Thanks

  • Utlrp.sql

    Hi
    When I run the following script to recompile all invalid objects:
    @$ORACLE_HOME/rdbms/admin/utlrp.sql
    I notice that new tables, indexes,views,packagaes are created !!
    What is the reason for this?
    Oracle 9.2.0.8.0

    No I didnt upgrade.
    I just want to test this script.
    SQL> @$ORACLE_HOME/rdbms/admin/utlrp.sql
    PL/SQL procedure successfully completed.
    Table created.
    Table created.
    Table created.
    Index created.
    Table created.
    Table created.
    View created.
    View created.
    Package created.
    No errors.
    Package body created.
    No errors.
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.

  • UTLRP.SQL run very long, how to check ?

    Hello all
    Need your help and advice on my problem that i facing now,
    I did to recompile all the object in oracle using
    @UTLRP.SQL in $ORACLE_HOME\rdbms\admin
    The sql was running about 4 hours but still running, but actually i dont know is it hang or still running
    My question is
    - is this normal, since that already run for 4 hours
    - how to check whether is still running or hang, I did check on the task manager, the oracle.exe keep moving
    - Can i cancell it ? any problem later on if i cancel it ?
    - Is there any log to check
    Sorry so many question, need all of your advice
    Thanks in advance
    Cheers
    Surya

    You can check the decreasing number of invalid objects using below query:
    select count(*) from dba_objects where status = 'INVALID'You can also check session waits for that session that is running utlrp.sql
    With kind regards
    Krystian Zieja
    http://www.projectenvision.com

  • Utlrp.sql script job schedule from OEM

    Any users on how to create grid control job for recompiling object via below script:
    @?/rdbms/admin/utlrp.sql
    I tried few testing but all failing at
    SQL> SQL> SQL> SQL> SQL> SELECT dbms_registry_sys.time_stamp('utlrp_bgn') as timestamp from dual
    ERROR at line 1:
    ORA-00904: "DBMS_REGISTRY_SYS"."TIME_STAMP": invalid identifier
    (creating job as SQL script)
    Thanks,

    Hi Users,
    Thanks for all responses.
    Thanks Absorbine, it was really funny l laughed on that.
    OrionNet, I am trying to run this on atleast 5 db instances and also not real expert in procedures.
    Basically I am trying to create OEM job to run utlrp.sql or UTL_RECOMP pacakages on 5 different db instances.
    Tried below:
    1. created job with utlrp.sql:
    @?.rdbms/admin/utlrp.sql;
    Error:
    SQL> SQL> SQL> SQL> SQL> SELECT dbms_registry_sys.time_stamp('utlrp_bgn') as timestamp from dual
    ERROR at line 1:
    ORA-00904: "DBMS_REGISTRY_SYS"."TIME_STAMP": invalid identifier
    2. Created job with UTL_RECOMP:
    SQL Script:
    WHENEVER SQLERROR EXIT FAILURE;
    EXEC UTL_RECOMP.recomp_serial;
    Error:
    SQL> SQL> SQL> SQL> SQL> BEGIN utl_recomp.recomp_serial ; END;
    ERROR at line 1:
    ORA-06550: line 1, column 7:
    PLS-00201: identifier 'UTL_RECOMP.RECOMP_SERIAL' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    cheers,
    Rapchik

  • Utlrp.sql script from OEM

    Any users on how to create grid control job for recompiling object via below script:
    @?/rdbms/admin/utlrp.sql
    I tried few testing but all failing at
    SQL> SQL> SQL> SQL> SQL> SELECT dbms_registry_sys.time_stamp('utlrp_bgn') as timestamp from dual
    ERROR at line 1:
    ORA-00904: "DBMS_REGISTRY_SYS"."TIME_STAMP": invalid identifier
    Thanks,

    i recreated sysaux because one of our developer add datafile (for sysaux) in home location not in +ASM, that is also only for prod1 not at both
    the location then after some days i was getting ora-600 then i found that wrongly add datafile sysaux.
    then i copied that datafile to other location also.after that ora-600 gone...but after some days i restarted database
    that time it was asking for recovery of sysaux,as we dont have any and any kind of backup and archivelog
    i made offline to that sysaux tablespace,after making offline we are facing problem at very activity so we recreated
    sysaux . . . ..

  • Dbca - what $OH/rdbms/admin scripts does it run, like catalog.sql etc.

    Hi,
    I have a database we've been using on Oracle 806. I am using dbca to create it in Oracle v9.2
    In our database creation scripts, we run the following oracle admin sql scripts. We may run more, but these are what I've found so far:
    catalog.sql
    catproc.sql
    dbmspool.sql
    prvtpool.plb
    utlexcpt.sql
    Is there a need for me to run these scripts when creating a database using dbca in v9.2, or does dbca run them?
    Thanks much
    -Bob

    Thanks you guys.
    I checked the creation scripts, and it ran these:
    connect SYS/change_on_install as SYSDBA
    set echo on
    spool /occ/cots/oracle9i/assistants/dbca/logs/CreateDBCatalog.log
    @/occ/cots/oracle9i/rdbms/admin/catalog.sql;
    @/occ/cots/oracle9i/rdbms/admin/catexp7.sql;
    @/occ/cots/oracle9i/rdbms/admin/catblock.sql;
    @/occ/cots/oracle9i/rdbms/admin/catproc.sql;
    @/occ/cots/oracle9i/rdbms/admin/catoctk.sql;
    @/occ/cots/oracle9i/rdbms/admin/catobtk.sql;
    @/occ/cots/oracle9i/rdbms/admin/caths.sql;
    @/occ/cots/oracle9i/rdbms/admin/owminst.plb;
    connect SYSTEM/manager
    @/occ/cots/oracle9i/sqlplus/admin/pupbld.sql;
    connect SYSTEM/manager
    set echo on
    spool /occ/cots/oracle9i/assistants/dbca/logs/sqlPlusHelp.log
    @/occ/cots/oracle9i/sqlplus/admin/help/hlpbld.sql helpus.sql;
    spool off
    spool off
    exit;
    So, I only need prvtpool.plb, dbmspool.sql, and utlexcpt.sql for my needs.
    I need the exceptions table for sure.
    And dmbspool.sql for memory efficiency and keeping an eye on object sizes - dbmspool.sql also calls prvtpool.plb, so it's two birds with one stone. So I'm set.
    Thanks again all
    -Bob

  • ORA-01519: error while processing file '?/rdbms/admin/sql.bsq' near line 401

    I receive the following error by creating dataabse as below sql:
    ORA-01501: CREATE DATABASE failed
    ORA-01519: error while processing file '?/rdbms/admin/sql.bsq' near line 401
    ORA-00604: error occurred at recursive SQL level 1
    ORA-01119: error in creating database file '/sisdev04/dbs/users01.dbf'
    ORA-27039: create file failed, file size limit reached
    Additional information: 1
    CREATE DATABASE SISDEV04
         LOGFILE GROUP 1 ('/sisdev04/dbs/log01a.dbf','/sisdev04/dbs/log01b.dbf') SIZE 10M,
              GROUP 2 ('/sisdev04/dbs/log02a.dbf','/sisdev04/dbs/log02b.dbf') SIZE 10M
         NOARCHIVELOG
         CHARACTER SET ZHT16BIG5
         NATIONAL CHARACTER SET ZHT16BIG5
         DATAFILE '/sisdev04/dbs/system01.dbf'      
              SIZE 210M AUTOEXTEND OFF
         , '/sisdev04/dbs/rbs01.dbf'
    SIZE 105M AUTOEXTEND OFF
         , '/sisdev04/dbs/temp01.dbf'
    SIZE 105M AUTOEXTEND OFF
         , '/sisdev04/dbs/users01.dbf'
    SIZE 1050M AUTOEXTEND OFF
         , '/sisdev04/dbs/ts_index_ivr01.dbf'
    SIZE 105M AUTOEXTEND OFF
         , '/sisdev04/dbs/ts_ivr01.dbf'
    SIZE 21M AUTOEXTEND OFF
         , '/sisdev04/dbs/ts_ems01.dbf'
    SIZE 21M AUTOEXTEND OFF
         , '/sisdev04/dbs/ts_index_ems01.dbf'
    SIZE 21M AUTOEXTEND OFF
    I have issue df to check the directory sisuat04
    / >df
    Filesystem 512-blocks Free %Used Iused %Iused Mounted on
    /dev/hd4 98304 45664 54% 2446 10% /
    /dev/hd2 2097152 78992 97% 30280 12% /usr
    /dev/hd9var 65536 20536 69% 308 4% /var
    /dev/hd3 294912 262432 12% 147 1% /tmp
    /dev/hd1 49152 5712 89% 1290 21% /home
    /dev/mfcobol 81920 25520 69% 608 6% /mfcobol
    /dev/magiclv 81920 22304 73% 346 4% /usr/magic
    /dev/sispro02lv 6553600 6347792 4% 18 1% /sisdev02
    /dev/sispro03lv 6553600 6347784 4% 19 1% /sisdev03
    /dev/sisappllv 229376 173288 25% 1846 7% /sisappl
    /dev/lvbaklog 98304 85552 13% 68 1% /app/bak_log
    /dev/noteslv0 1048576 541352 49% 2195 2% /notes
    /dev/noteslv1 4194304 1479304 65% 5269 2% /notesrv
    /dev/noteslv2 2097152 898128 58% 51 1% /notesrv/sitesch
    /dev/lvoracle 2097152 237240 89% 8280 4% /opt/oracle
    /dev/u01lv 4194304 128720 97% 11697 3% /u01
    /dev/sisdev01lv 4096000 3021552 27% 27 1% /sisdev04
    Is is still a not enough space problem?

    I receive the following error by creating dataabse as below sql:
    ORA-01501: CREATE DATABASE failed
    ORA-01519: error while processing file '?/rdbms/admin/sql.bsq' near line 401
    ORA-00604: error occurred at recursive SQL level 1
    ORA-01119: error in creating database file '/sisdev04/dbs/users01.dbf'
    ORA-27039: create file failed, file size limit reached
    Additional information: 1
    CREATE DATABASE SISDEV04
         LOGFILE GROUP 1 ('/sisdev04/dbs/log01a.dbf','/sisdev04/dbs/log01b.dbf') SIZE 10M,
              GROUP 2 ('/sisdev04/dbs/log02a.dbf','/sisdev04/dbs/log02b.dbf') SIZE 10M
         NOARCHIVELOG
         CHARACTER SET ZHT16BIG5
         NATIONAL CHARACTER SET ZHT16BIG5
         DATAFILE '/sisdev04/dbs/system01.dbf'      
              SIZE 210M AUTOEXTEND OFF
         , '/sisdev04/dbs/rbs01.dbf'
    SIZE 105M AUTOEXTEND OFF
         , '/sisdev04/dbs/temp01.dbf'
    SIZE 105M AUTOEXTEND OFF
         , '/sisdev04/dbs/users01.dbf'
    SIZE 1050M AUTOEXTEND OFF
         , '/sisdev04/dbs/ts_index_ivr01.dbf'
    SIZE 105M AUTOEXTEND OFF
         , '/sisdev04/dbs/ts_ivr01.dbf'
    SIZE 21M AUTOEXTEND OFF
         , '/sisdev04/dbs/ts_ems01.dbf'
    SIZE 21M AUTOEXTEND OFF
         , '/sisdev04/dbs/ts_index_ems01.dbf'
    SIZE 21M AUTOEXTEND OFF
    I have issue df to check the directory sisuat04
    / >df
    Filesystem 512-blocks Free %Used Iused %Iused Mounted on
    /dev/hd4 98304 45664 54% 2446 10% /
    /dev/hd2 2097152 78992 97% 30280 12% /usr
    /dev/hd9var 65536 20536 69% 308 4% /var
    /dev/hd3 294912 262432 12% 147 1% /tmp
    /dev/hd1 49152 5712 89% 1290 21% /home
    /dev/mfcobol 81920 25520 69% 608 6% /mfcobol
    /dev/magiclv 81920 22304 73% 346 4% /usr/magic
    /dev/sispro02lv 6553600 6347792 4% 18 1% /sisdev02
    /dev/sispro03lv 6553600 6347784 4% 19 1% /sisdev03
    /dev/sisappllv 229376 173288 25% 1846 7% /sisappl
    /dev/lvbaklog 98304 85552 13% 68 1% /app/bak_log
    /dev/noteslv0 1048576 541352 49% 2195 2% /notes
    /dev/noteslv1 4194304 1479304 65% 5269 2% /notesrv
    /dev/noteslv2 2097152 898128 58% 51 1% /notesrv/sitesch
    /dev/lvoracle 2097152 237240 89% 8280 4% /opt/oracle
    /dev/u01lv 4194304 128720 97% 11697 3% /u01
    /dev/sisdev01lv 4096000 3021552 27% 27 1% /sisdev04
    Is is still a not enough space problem? i think you have specified 1050m for users01.dbf file, your file system /sisdev04 has something like
    1.5gb of free space. it failed because of lack of free space. may be you can reduce your datafile size or try to
    create in another filesystem.

  • Locator installation scripts XE - md/admin/catmdloc.sql missing

    Hi,
    just tried to install some spatial tables into my XE edition and it failed.
    When tracing back to the origin, I found dat the mdsys schema is empty, and that the createdb.sh install script (Linux) contains this step:
    -- Install Spatial Locator
    connect sys/oracle as sysdba
    create user MDSYS identified by MDSYS account lock;
    @?/md/admin/catmdloc.sql
    , but the complete directory tree md is missing under $ORACLE_HOME.
    Tried to find this directory by installing various editions of XE (Windows, Debian, Centos) West-European or universal, and non of these installations will give me an md directory tree.
    In the past this directory did however exists in XE editions (my current 11g R2 doesn't have this problem), can anybody explain this ?
    ramon

    The messages tell me that you do not have the ORACLE_HOME variable set correctly. This has been discussed umpteen times, but since search is beyond the call of duty, I'll copy/paste one of my recent responses
    In Linux and Unix Oracle REQUIRES that variables ORACLE_HOME and ORACLE_SID be set properly. And *nix REQUIRES that an executable be in the PATH or explicitly referenced. The easiest way of setting those consistently and correctly is to source the oraenv routine which is placed in /usr/local/bin by the installer. To use that, and assuming you are using Linux,
    1) Find out the ORACLE_SID for your reference
    tail /etc/oratab
    and note the last line. The first field will be the SID.
    2) Source oraenv
    . oraenv
    [ oracle ]?: enter the SID here
    and if you want to put this into a script, enter something like
    ORAENV_ASK=NO
    ORACLE_SID={enter your SID ehere}
    . oraenv
    ORAENV_ASK=
    Many people will suggest you set these variables in your profile. In the long term that is a bad idea (and DBAs should always be thinking in the long term) since most DBAs end up with a second database, ORACLE_HOME, upgrade or product and oraenv ensures that there will be no conflicts.

Maybe you are looking for