Catalog.sql ; Catexp.sql

I need to run the catalog.sql or catexp.sql.When I run these script, should I run them as sys/pwd as sysdba or only sys/pwd?

The reason I am running the script catalog.sql is to correct an error while exporting. We updated from 8.1.6 to 8.1.7. We have two databases running. Database A has no problems when exporting but Database B was getting error ora-00904 Invalid Column Name.
I researched and was informed that the problem may be that I have to run Catalog or Catexp for Database B. I did run it, but now I'm getting a new error.
About to export the entire database ...
. exporting tablespace definitions
. exporting profiles
. exporting user definitions
. exporting roles
EXP-00008: ORACLE error 4045 encountered
ORA-04045: errors during recompilation/revalidation of SYS.DBMS_AQ_SYS_EXP_INTERNAL
ORA-06552: PL/SQL: Compilation unit analysis terminated
ORA-06553: PLS-905: object SYS.AQ$_SUBSCRIBERS is invalid
ORA-06508: PL/SQL: could not find program unit being called
ORA-06512: at "SYS.DBMS_AQ_EXP_QUEUES", line 141
ORA-06512: at line 1
EXP-00083: The previous problem occurred when calling SYS.DBMS_AQ_EXP_QUEUES.grant_sysprivs_exp
I will research these errors, but maybe someone can point me in the right direction. I think that maybe something became invalid once I ran Catalog.sql and the problem will fix it self during the next export. What insight do you give?

Similar Messages

  • Running catproc.sql and catalog.sql scripts

    hi there,
    what is the need to run catproc.sql and catalog.sql scripts after creating the database manually?
    please write me the answer.
    thanks in advance.

    CATALOG.SQL script create data dictionary views,
    synonyms, tables in your sys/system schemas like
    (USER_XXX , DBA_XXXX, ALL_XXXX, V$XXXX .....)
    CATPROC.SQL script creates all packages including
    their procedures and functions in sys schema.
    Both must be run through SYS schema.Apart for this
    These scripts executes many Create View statements as well as series of other scripts.
    Catproc.sql makes call to several other scripts like
    standard.sql: to create datatypes and in-built SQL functions
    catexp: to create views used by Import/Export utilities
    catldr: to create views used by SQL*Loder utilities
    and there many other scripts called too.
    Similarly, catproc.sql makes call to .sql and .plb encrypted scripts like dbmsutil.sql and dbmssql.sql to create procedural options and PL/SQL utilities.

  • Deadlock while executing catalog.sql

    I've installed a local DB on my computer, running Oracle 9i. Wanted to import a dump and the manual says first execute the catalog.sql Script. When I do this as sys I get following errors:
    Execution x:
    ORA-04045: errors during recompilation/revalidation of SYS.CDC_CREATE_CTABLE_AFTER
    ORA-00060: deadlock detected while waiting for resource
    Execution x+1:
    ORA-04020: deadlock detected while trying to lock object SYS.STANDARD
    Execution x+2:
    ORA-04045: errors during recompilation/revalidation of SYS.CDC_CREATE_CTABLE_AFTER
    ORA-00060: deadlock detected while waiting for resource
    Execution x+3:
    ORA-04020: deadlock detected while trying to lock object SYS.STANDARD
    Execution x+4:
    ORA-04045: errors during recompilation/revalidation of SYS.CDC_CREATE_CTABLE_AFTER
    ORA-00060: deadlock detected while waiting for resource
    There seems to be a certain scheme, always alternating error messages. Could anyone help me please?
    Thanks!

    Hmmm, first I ran the Script in the SQL Navigator 5.0 and got the mentioned errors, now I ran it in the SQL *Plus worksheet and got following (different errors):
    SQL*Plus: Release 9.2.0.1.0 - Production on Di Jan 31 17:43:08 2006
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Connect durchgeführt.
    SP2-0310: Datei "standard.sql" konnte nicht geöffnet werdenSP2-0310: Datei "dbmsstdx.sql" konnte nicht geöffnet werden
    SP2-0310: Datei "catcr.sql" konnte nicht geöffnet werden
    PL/SQL-Prozedur wurde erfolgreich abgeschlossen.
    ... (text text text) ...
    Kommentar wurde angelegt.
    SP2-0310: Datei "catcdc.sql" konnte nicht geöffnet werden
    SP2-0310: Datei "cataudit.sql" konnte nicht geöffnet werden
    View wurde angelegt.
    SP2-0310: Datei "utlraw.sql" konnte nicht geöffnet werden
    SP2-0310: Datei "catexp.sql" konnte nicht geöffnet werden
    SP2-0310: Datei "catldr.sql" konnte nicht geöffnet werden
    SP2-0310: Datei "catpart.sql" konnte nicht geöffnet werden
    SP2-0310: Datei "catadt.sql" konnte nicht geöffnet werden
    SP2-0310: Datei "catsum.sql" konnte nicht geöffnet werden
    SP2-0310: Datei "catlsby.sql" konnte nicht geöffnet werden
    SP2-0310: Datei "catxtb.sql" konnte nicht geöffnet werden
    CREATE ROLE RECOVERY_CATALOG_OWNER
    FEHLER in Zeile 1:
    ORA-01921: Rolle 'RECOVERY_CATALOG_OWNER' kollidiert mit anderem Benutzer- oder Rollennamen
    ... ( text text text) ...
    Transaktion mit COMMIT abgeschlossen.
    PL/SQL-Prozedur wurde erfolgreich abgeschlossen.
    Sorry for the German error messages :-/. Can I change the language?
    What's wrong?

  • 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

  • Several errors after running catalog.sql

    I did a fresh installation of oracle apps EBS 11.5.10.2 on Linux OEL and was trying to do an import/export and it was not working as expected. So after i looked at Oracle's documentation it said catalog.sql has to be run before using the import/export. So i ran catalog.sql first but i did not run it with SYSDBA but ran it as SYSTEM and i saw several errors like access denied etcv. after i ran the catalog.sql i was not able to login via apps or any other user except SYSTEM and was giving me erros like ORA-04065:not executed,altered or dropped stored procedure "SYS.DBMS_SESSION"
    After this to fix the issue i ran @?/rdbms/admin/catpatch.sql and @?/rdbms/admin/utlrp as SYSDBA but both executed a lot of grants etc but are haging at some point and not finishing.
    The current state of the database is that im not able to login via any user except SYSTEM and i think i corrupted the db dictionary as everywhere i see they say running catalog.sql on an existing database is a bad idea. Can anyone help?

    Hi Dheeraj,
    My db version is 9.2.0.5.0 and OS is OEL 5.7.
    The doc where it was mentioned to run catalog.sql before using import/export is below:
    http://docs.oracle.com/cd/B10501_01/server.920/a96652/ch01.htm
    Please do not follow the steps in this link and instead follow the steps in (9i Export/Import Process for Oracle Applications Release 11i [ID 230627.1]).
    Currently when im trying to login using apps or any other user below are errors i get.
    ERROR:
    ORA-00604: error occurred at recursive SQL level1
    ORA-04068: existing state of packages has been discarded
    ORA-04065: not executed, altered or dropped stored procedure "SYS.DBMS_SESSION"
    ORA-06508: PL/SQL: could not find program unit being called
    ORA-06512:at "SYS.OWA_VPD_CTX", line 5
    ORA-06512:at "SYS.PORTAL_LOGIN", line 3
    ORA-06512:at line 2
    Can you pls help me to fix this.The status of the package is invalid and you need to validate it. Connect as sysdba and issue:
    SQL> select owner, object_type, status
    from dba_objects
    where object_name = 'DBMS_SESSION';
    SQL> alter package DBMS_SESSION compile body;
    SQL> show error
    SQL> alter package DBMS_SESSION compile;
    SQL> show errorPlease also see:
    Data Dictionary Objects Invalid after Running catalog.sql, catproc.sql, utlrp.sql or catpatch.sql [ID 752783.1]
    Debug and Validate Invalid Objects [ID 300056.1]
    How to Diagnose Invalid or Missing Data Dictionary (SYS) Objects [ID 554520.1]
    Thanks,
    Hussein

  • Invalid objects after running catalog.sql and catproc.sql

    I have a db 10.1.0.3.0. standard edition with the 10.1.0.4.0 patch installed.
    After executing catalog.sql and catproc.sql the database contains lots of invalid objects in the public, olapsys and xdb schemas.
    I have executed utlrp.sql, the script completes successfully, but lots of invalid objects remain.
    Does anyone know how to fix this?
    Thanks in advance.
    Below is the output of
    select owner, object_name, object_type from dba_objects where status like 'INVALID';
    OWNER OBJECT_NAME OBJECT_TYPE
    XDB DBMS_XDBUTIL_INT PACKAGE
    XDB SETMODFLG PROCEDURE
    XDB DBMS_XDBZ0 PACKAGE BODY
    XDB DBMS_XDBUTIL_INT PACKAGE BODY
    PUBLIC DBMS_XDBUTIL_INT SYNONYM
    XDB XDB$PATCHUPSCHEMA PROCEDURE
    OLAPSYS ALL$OLAP2_AW_CATALOGS VIEW
    PUBLIC ALL_OLAP2_AW_CATALOGS SYNONYM
    OLAPSYS ALL$OLAP2_AW_CATALOG_MEASURES VIEW
    PUBLIC ALL_OLAP2_AW_CATALOG_MEASURES SYNONYM
    OLAPSYS ALL$OLAP2_AW_PHYS_OBJ VIEW
    PUBLIC ALL_OLAP2_AW_PHYS_OBJ SYNONYM
    OLAPSYS ALL$OLAP2_AW_PHYS_OBJ_PROP VIEW
    PUBLIC ALL_OLAP2_AW_PHYS_OBJ_PROP SYNONYM
    OLAPSYS ALL$OLAP2_AW_DIMENSIONS VIEW
    PUBLIC ALL_OLAP2_AW_DIMENSIONS SYNONYM
    OLAPSYS ALL$OLAP2_AW_ATTRIBUTES VIEW
    PUBLIC ALL_OLAP2_AW_ATTRIBUTES SYNONYM
    OLAPSYS ALL$OLAP2_AW_CUBES VIEW
    PUBLIC ALL_OLAP2_AW_CUBES SYNONYM
    OLAPSYS ALL$OLAP2_AW_CUBE_DIM_USES VIEW
    PUBLIC ALL_OLAP2_AW_CUBE_DIM_USES SYNONYM
    OLAPSYS ALL$AW_DIM_ENABLED_VIEWS VIEW
    PUBLIC ALL_AW_DIM_ENABLED_VIEWS SYNONYM
    OLAPSYS ALL$AW_CUBE_ENABLED_VIEWS VIEW
    PUBLIC ALL_AW_CUBE_ENABLED_VIEWS SYNONYM
    OLAPSYS ALL$AW_CUBE_ENABLED_HIERCOMBO VIEW
    PUBLIC ALL_AW_CUBE_ENABLED_HIERCOMBO SYNONYM
    OLAPSYS ALL$OLAP2_AW_DIM_LEVELS VIEW
    PUBLIC ALL_OLAP2_AW_DIM_LEVELS SYNONYM
    OLAPSYS ALL$OLAP2_AW_DIM_HIER_LVL_ORD VIEW
    PUBLIC ALL_OLAP2_AW_DIM_HIER_LVL_ORD SYNONYM
    OLAPSYS ALL$OLAP2_AW_CUBE_MEASURES VIEW
    PUBLIC ALL_OLAP2_AW_CUBE_MEASURES SYNONYM
    OLAPSYS ALL$OLAP2_AW_CUBE_AGG_SPECS VIEW
    PUBLIC ALL_OLAP2_AW_CUBE_AGG_SPECS SYNONYM
    OLAPSYS ALL$OLAP2_AW_CUBE_AGG_MEAS VIEW
    PUBLIC ALL_OLAP2_AW_CUBE_AGG_MEAS SYNONYM
    OLAPSYS ALL$OLAP2_AW_CUBE_AGG_LVL VIEW
    PUBLIC ALL_OLAP2_AW_CUBE_AGG_LVL SYNONYM
    OLAPSYS ALL$OLAP2_AW_CUBE_AGG_OP VIEW
    PUBLIC ALL_OLAP2_AW_CUBE_AGG_OP SYNONYM
    OLAPSYS MRAC_OLAP2_AW_DIMENSIONS_V VIEW
    OLAPSYS MRAC_OLAP2_AW_CUBES_V VIEW
    OLAPSYS MRAC_OLAP2_AW_CUBE_MEASURES_V VIEW
    PUBLIC MRV_OLAP2_AW_DIMENSIONS SYNONYM
    PUBLIC MRV_OLAP2_AW_CUBES SYNONYM
    PUBLIC MRV_OLAP2_AW_CUBE_MEASURES SYNONYM
    OLAPSYS CWM2_OLAP_METADATA_REFRESH PACKAGE BODY
    OLAPSYS OLAP_SYS_AW_ACCESS_DIM_VIEW VIEW
    OLAPSYS OLAP_SYS_AW_ACCESS_CUBE_VIEW VIEW
    OLAPSYS OLAP_SYS_AW_ENABLE_ACCESS_VIEW VIEW
    PUBLIC OLAP_SYS_AW_ACCESS_CUBE_VIEW SYNONYM
    PUBLIC OLAP_SYS_AW_ACCESS_DIM_VIEW SYNONYM
    PUBLIC OLAP_SYS_AW_ENABLE_ACCESS_VIEW SYNONYM
    OLAPSYS CWM2_OLAP_OLAPAPI_ENABLE PACKAGE BODY
    OLAPSYS DBMS_AWM PACKAGE BODY
    OLAPSYS CWM2_OLAP_CUBE PACKAGE BODY

    This note explains 80% of the problem: 42 invalid objects are normal, I have 52 invalid objects.
    I have re-executed the catpatch.sql script, I couldn't find any errors in the output. At the end Oracle Intermedia and Oracle Expression Filter remain invalid.
    last lines of catpatch.sql output:
    COMP_NAME STATUS VERSION
    OLAP Analytic Workspace OPTION OFF 10.1.0.3.0
    Oracle OLAP API OPTION OFF 10.1.0.3.0
    Oracle Database Catalog Views VALID 10.1.0.4.0
    Oracle Database Packages and Types VALID 10.1.0.4.0
    JServer JAVA Virtual Machine VALID 10.1.0.4.0
    Oracle XDK VALID 10.1.0.4.0
    Oracle Database Java Packages VALID 10.1.0.4.0
    Oracle XML Database VALID 10.1.0.4.0
    Oracle interMedia INVALID 10.1.0.4.0
    Oracle Text VALID 10.1.0.4.0
    Oracle Ultra Search VALID 10.1.0.4.0
    Oracle Expression Filter INVALID 10.1.0.4.0
    Oracle Enterprise Manager VALID 10.1.0.4.0
    Oracle Workspace Manager VALID 10.1.0.2.0
    Oracle Data Mining OPTION OFF 10.1.0.3.0
    OLAP Catalog OPTION OFF 10.1.0.3.0
    Spatial OPTION OFF 10.1.0.3.0
    SQL> select owner, object_name, object_type from dba_objects where status like 'INVALID';
    OWNER OBJECT_NAME OBJECT_TYPE
    WK_TEST BIN$9oUB6zbaOP/gMCzPA4J5+w==$0 TRIGGER
    OLAPSYS ALL$OLAP2_AW_CATALOGS VIEW
    PUBLIC ALL_OLAP2_AW_CATALOGS SYNONYM
    OLAPSYS ALL$OLAP2_AW_CATALOG_MEASURES VIEW
    PUBLIC ALL_OLAP2_AW_CATALOG_MEASURES SYNONYM
    OLAPSYS ALL$OLAP2_AW_PHYS_OBJ VIEW
    PUBLIC ALL_OLAP2_AW_PHYS_OBJ SYNONYM
    OLAPSYS ALL$OLAP2_AW_PHYS_OBJ_PROP VIEW
    PUBLIC ALL_OLAP2_AW_PHYS_OBJ_PROP SYNONYM
    OLAPSYS ALL$OLAP2_AW_DIMENSIONS VIEW
    PUBLIC ALL_OLAP2_AW_DIMENSIONS SYNONYM
    OLAPSYS ALL$OLAP2_AW_ATTRIBUTES VIEW
    PUBLIC ALL_OLAP2_AW_ATTRIBUTES SYNONYM
    OLAPSYS ALL$OLAP2_AW_CUBES VIEW
    PUBLIC ALL_OLAP2_AW_CUBES SYNONYM
    OLAPSYS ALL$OLAP2_AW_CUBE_DIM_USES VIEW
    PUBLIC ALL_OLAP2_AW_CUBE_DIM_USES SYNONYM
    OLAPSYS ALL$AW_DIM_ENABLED_VIEWS VIEW
    PUBLIC ALL_AW_DIM_ENABLED_VIEWS SYNONYM
    OLAPSYS ALL$AW_CUBE_ENABLED_VIEWS VIEW
    PUBLIC ALL_AW_CUBE_ENABLED_VIEWS SYNONYM
    OLAPSYS ALL$AW_CUBE_ENABLED_HIERCOMBO VIEW
    PUBLIC ALL_AW_CUBE_ENABLED_HIERCOMBO SYNONYM
    OLAPSYS ALL$OLAP2_AW_DIM_LEVELS VIEW
    PUBLIC ALL_OLAP2_AW_DIM_LEVELS SYNONYM
    OLAPSYS ALL$OLAP2_AW_DIM_HIER_LVL_ORD VIEW
    PUBLIC ALL_OLAP2_AW_DIM_HIER_LVL_ORD SYNONYM
    OLAPSYS ALL$OLAP2_AW_CUBE_MEASURES VIEW
    PUBLIC ALL_OLAP2_AW_CUBE_MEASURES SYNONYM
    OLAPSYS ALL$OLAP2_AW_CUBE_AGG_SPECS VIEW
    PUBLIC ALL_OLAP2_AW_CUBE_AGG_SPECS SYNONYM
    OLAPSYS ALL$OLAP2_AW_CUBE_AGG_MEAS VIEW
    PUBLIC ALL_OLAP2_AW_CUBE_AGG_MEAS SYNONYM
    OLAPSYS ALL$OLAP2_AW_CUBE_AGG_LVL VIEW
    PUBLIC ALL_OLAP2_AW_CUBE_AGG_LVL SYNONYM
    OLAPSYS ALL$OLAP2_AW_CUBE_AGG_OP VIEW
    PUBLIC ALL_OLAP2_AW_CUBE_AGG_OP SYNONYM
    OLAPSYS MRAC_OLAP2_AW_DIMENSIONS_V VIEW
    OLAPSYS MRAC_OLAP2_AW_CUBES_V VIEW
    OLAPSYS MRAC_OLAP2_AW_CUBE_MEASURES_V VIEW
    PUBLIC MRV_OLAP2_AW_DIMENSIONS SYNONYM
    PUBLIC MRV_OLAP2_AW_CUBES SYNONYM
    PUBLIC MRV_OLAP2_AW_CUBE_MEASURES SYNONYM
    OLAPSYS CWM2_OLAP_METADATA_REFRESH PACKAGE BODY
    OLAPSYS OLAP_SYS_AW_ACCESS_DIM_VIEW VIEW
    OLAPSYS OLAP_SYS_AW_ACCESS_CUBE_VIEW VIEW
    OLAPSYS OLAP_SYS_AW_ENABLE_ACCESS_VIEW VIEW
    PUBLIC OLAP_SYS_AW_ACCESS_CUBE_VIEW SYNONYM
    PUBLIC OLAP_SYS_AW_ACCESS_DIM_VIEW SYNONYM
    PUBLIC OLAP_SYS_AW_ENABLE_ACCESS_VIEW SYNONYM
    OLAPSYS CWM2_OLAP_OLAPAPI_ENABLE PACKAGE BODY
    OLAPSYS DBMS_AWM PACKAGE BODY
    OLAPSYS CWM2_OLAP_CUBE PACKAGE BODY
    53 rows selected.

  • Catalog.sql hangs

    I understand that you must run catalog.sql after creating a new database so that data dictionaries are updated otherwise the Oracle Enterprise Manager (OEM) will not be able to view details of the new database.
    So ... I've run catalog.sql but it hangs immediately. While it's hung, I cannot log into SQL*Plus from another session -- that hangs too. A little ivestigation into what catalog.sql does suggests that it is the standard.sql script (run by @@standard) that is hanging and looking into that suggests that stdspec.sql is hanging.
    Any tips on how to determine the cause of the underlying hang? Note that I can log into my database and run SQL queries without any problems; I simply can't use OEM to administer it (which is why I'm running catalog.sql).
    Thanks.

    Thanks Joel. I ran that script but it failed with:
    2 (u.ebytes/a.fbytes)*100 USEDPCT
    ERROR at line 2:
    ORA-00923: FROM keyword not found where expected
    So I changed it slightly to this:
    SQL> select u.tblspc "TBLSPC", a.fbytes "ALLOC", u.ebytes USED, a.fbytes-u.ebytes UNUSED
    2 from (select tablespace_name tblspc, sum(bytes) ebytes
    from sys.dba_extents
    3 4 group by tablespace_name) u,
    5 (select tablespace_name tblspc, sum(bytes) fbytes
    6 from sys.dba_data_files
    7 group by tablespace_name) a
    8 where u.tblspc = a.tblspc
    9 ;
    and that fails (when run as sysdba or as system, both of whom I assume have privileges to select catalog) with:
    from sys.dba_data_files
    ERROR at line 6:
    ORA-00942: table or view does not exist
    I can't help but feel that something may have gone badly wrong with this Oracle installation.
    Would it be a sensible option to drop all databases (by manually removing all their files) and then try to run catalog.sql on an (allegedly) empty system?

  • Catalog.sql, catproc.sql

    Hi,
    I created a database manually. Then I run the scripts catproc.sql, catalog.sql and I obtained some errors ORA-01432 - public synonym to be dropped and then drop public synonym. To be ok? To pass with courage at the next step importing the full database exported from another computer?
    Thank you,
    Mihaela

    Well, I don't have an 8.1.7.4 DB on hands to try it :-)
    SQL> select version from v$instance;
    VERSION
    8.1.7.0.1
    SQL> create or replace synonym emp for scott.emp;
    create or replace synonym emp for scott.emp
    ERROR at line 1:
    ORA-00922: missing or invalid option
    SQL>                                                                           

  • Catproc.sql and catalog.sql files

    I am using oracle 10g recently i have runned two files catproc.sql and catalog files by connecting to sys
    after running those files in sys when i select
    select * from tab;
    no rows were returned
    1) these files will show any eeect on data base
    2)From toad when i connect to data base in toad it is showing all the tables in sys user
    is there any effect of running those files

    933900 wrote:
    I am using oracle 10g recently i have runned two files catproc.sql and catalog files by connecting to sys
    after running those files in sys when i select
    select * from tab;
    no rows were returned
    1) these files will show any eeect on data base
    2)From toad when i connect to data base in toad it is showing all the tables in sys user
    is there any effect of running those filesHave you created database newly? so you ran catalog.sql & catproc.sql?
    Of course you can able to see from TOAD but not from SQL, its weird.
    Can you post
    SQL> select * from dba_registry;
    Also any errors from alert log file, when you ran These scripts? if so post here.

  • Reexecuting the catalog.sql and catproc.sql

    what will happened if we re execute the catalog.sql and catproc.sql on existing running oracle database ? is some thing is distructive or what ?

    what will happened if we re execute the catalog.sql and catproc.sql on existing running oracle database ? is some thing is distructive or what ?what's the reason to re-running them? Any errors?
    Catalog - creates data dictionary views.
    Catproc - create in built PL/SQL Procedures, Packages etc
    Dictionary objects might go INVALID and you need to run utlrp.sql to validate them.
    No harm in running. But, its time consuming and resource consuming.
    HTH
    -Anantha

  • Run catalog.sql and catproc.sql?

    Hi,
    Does the install procedure for Oracle 9i Release 2 run catalog.sql and catproc.sql? Or should they be run manually after install? Thanks for the help.
    rmc.

    If I run catalog.sql and catproc.sql in a production database (when application is not accessing db), they will recreate data dictionary, views and recompile packages. But, wiil my data be affected by this?Refer the foll link:
    https://forums.oracle.com/forums/thread.jspa?threadID=2410592
    Refer Metalink Doc Id:
    *Why do I have to run the CATPROC.SQL PUPBLD.SQL Oracle Scripts ? [ID 1033107.1]*
    *Best Practices for running catalog, catproc and utlrp script [ID 863312.1]*
    Edited by: Vedant.. on Dec 11, 2012 4:10 PM

  • Help!!!: catalog.sql and catproc.sql damage my db

    after running the file my.sql (see below), i encounter some error:
    when i try to edit the table data, the following error displayed:
    ORA-04045 ... SYS.DBMS_OUTPUT
    ORA-06508 ...
    ORA-06512 ...
    ORA-06508 ...
    ORA-06512 ...
    then i go to the package SYS.DBMS_OUTPUT, the status is "invalid", i try to recompile it, the following error displayed:
    ORA-04045 ... SYS.CDC_ALTER_CTABLE_BEFORE
    ORA-06508 ...
    ORA-06512 ...
    ORA-06508 ...
    ORA-06512 ...
    my db works well before running the file my.sql. it seems the execution of catalog.sql and catproc.sql cause the error. i am using 9i, and the document histories show that the catalog.sql and catproc.sql are last updated in Apr,2001.
    my questions are:
    1.with 9i db, do i need to run the two files?
    2.how can i recover my db?(i don't have backup, can i use redoXX.log?)
    ***my.sql***
    connect sys/change_on_install@orcl as sysdba
    @/opt/oracle/rdbms/admin/catalog.sql
    connect sys/change_on_install@orcl as sysdba
    CREATE database mydb
    @/opt/oracle/rdbms/admin/catproc.sql
    ***my.sql***

    how can i get my db work properly just as it was?
    what do you mean by "create database script"?
    Database configuration assistant allows you to create the database template and then save it as a set of scripts that you
    can later customize and run to create the database. If you created your "create database scripts" using this option then
    these scripts automatically run the catproc.sql and catalog.sql scripts along with several other scripts.
    If you use Database configuration assistant to create such a set of DB creation scripts, than look at the
    CreateDBCatalog.sql script, as you can see it runs both the scripts. so, if you do it this way, you do not need to do any
    extra steps (apart from your custom scripts that may be part of your post install steps).
    A sample of such DB creation script will be as below (for your reference):
    ===================================================================
    connect SYS/change_on_install as SYSDBA
    set echo on
    spool /home/oracle/Ora9i/assistants/dbca/logs/CreateDBCatalog.log
    @/home/oracle/Ora9i/rdbms/admin/catalog.sql;
    @/home/oracle/Ora9i/rdbms/admin/catexp7.sql;
    @/home/oracle/Ora9i/rdbms/admin/catblock.sql;
    @/home/oracle/Ora9i/rdbms/admin/catproc.sql;
    @/home/oracle/Ora9i/rdbms/admin/catoctk.sql;
    @/home/oracle/Ora9i/rdbms/admin/owminst.plb;
    connect SYSTEM/manager
    @/home/oracle/Ora9i/sqlplus/admin/pupbld.sql;
    connect SYSTEM/manager
    set echo on
    spool /home/oracle/Ora9i/assistants/dbca/logs/sqlPlusHelp.log
    @/home/oracle/Ora9i/sqlplus/admin/help/hlpbld.sql helpus.sql;
    spool off
    spool off
    exit;
    ===========================================================================

  • Creating database without running the catalog.sql and  catproc.sql script

    Hi
    I created tow databse without running catalog.sql and catproc.sql. Any one knows what is the drawback of not running them?
    BR.

    I created tow databse without running catalog.sql and catproc.sql. Any one knows what is the drawback of not running them?Functionality & capabilities will be severely limited.

  • Db creation: what admin scripts should I use (like catalog.sql)

    We're creating databases on an 8.1.7 server.
    What admin scripts are needed to complete a good database creation?
    We're trying to build a nice collection of scripts to do this efficiently, but the only samples I see are from a previous 8.0.5 database
    creation, and they might not be as good as I hope.
    An early step uses catalog.sql to build data dictionary views.
    One of the last steps runs a number of oracle/product/8.1.7/rdbms/admin and sqlplus/admin scripts.
    What admin scripts are needed to complete a good database creation?

    You need to run CATALOG.SQL and CATPROC.SQL

  • Catalog.sql

    Log on like sys/syspassword, run
    catalog.sql, got next error:
    CREATE ROLE exp_full_database
    ERROR at line 1:
    ORA-01921: role name 'EXP_FULL_DATABASE' conflicts with another user or role
    name
    I need export database.
    Help!!!

    I don't know how fix it.
    I just try to export my database .
    exp File="c:\mydump.dmp" Full=Y user=password/password@newstar.
    Before I run catalog.sql but with errors...
    ERROR at line 1:
    ORA-01921: role name 'EXP_FULL_DATABASE' conflicts with another user or role
    name

Maybe you are looking for

  • One-year free subscription to Adobe Creative Cloud Photography

    Hey! I want to buy a Canon Pixma Pro-1 printer and it says there that Adobe and Canon has an offer on a one-year free subscription to Adobe Creative Cloud Photography. My question is: I already have a subscription, how will I be able to use the offer

  • WLS 8.1 hanging when using XA

    I am having an issue with BEA 8.1 hanging when using XA. I have configured it on several other Windows 2000 machines and not seen an issue. This particular machine seems to hang and then give a time out error. ANy suggestions would be appreciated. Be

  • Getting data to PSA (staging area) using an external system

    Hi there, I am a BI Newbi and trying to understand technique of getting data to PSA (staging area) through an external system. I would prefer a high level of integration  not via DB-Connect, Flat-File, ... Can I use bapis to get data to PSA? How and

  • Integration Oracle Advance Queue with OSB

    We are doing integration for Oracle Advance Queue with OSB. I created an AQ adapter in Jdev and generate the WSDL and XSD. I imported both WSDL and XSD in OSB Project. When i am configuring the business service and selecting the WSDl i am not able to

  • Is it possible to copy and paste All the infos in Itune Producer?

    When I fill in all the infos in the Itunes Producer it takes a long time, and I have several books to load. Especially the part about rights and pricing, country by country. I have several books to load at the same price. Is there a way I could use a