Enterprise manager repository creation in Oracle 10g

Hi
i was checking out emRepository.sql file that creates the enterprise manager repository in Oracle10g.I calls a particular program/script called emrepocrea that takes as parameter the user name SYSMAN, the passwd for SYSMAN TEMP ON.
Could someone explain me what language is this program/script is written and what is exactly going on behind the scenes of the DBCA?
Thanks and Regards
Prahalad Deshpande

emRepository.sql is one of the scripts that are normally run when you create a new DB. DBCA puts these scripts, normally, in $ORACLE_BASE/admin/<DB>/scripts.
emRepository.sql calls emreposcre.sql (another Sql script), passing to it 5 parameters :
1. Oracle Home
2. Username
3. Password
4. Temporary tablespace name
5. Verify On/Off

Similar Messages

  • Error in creating Enterprise manager repository

    Error in Enterprise manager repository
    oracle@oracle:~&gt; emca -repos create
    STARTED EMCA at Mar 8, 2009 9:14:45 PM
    EM Configuration Assistant, Version 10.2.0.1.0 Production
    Copyright (c) 2003, 2005, Oracle. All rights reserved.
    Enter the following information:
    Database SID: ora01
    Listener port number: 1521
    Password for SYS user:
    Password for SYSMAN user:
    Do you wish to continue? yes(Y)/no(N): Y
    Mar 8, 2009 9:15:08 PM oracle.sysman.emcp.EMConfig perform
    INFO: This operation is being logged at /home/oracle/product/10gR2/cfgtoollogs/emca/ora01/emca_2009-03-08_09-14-45-PM.log.
    Mar 8, 2009 9:15:09 PM oracle.sysman.emcp.EMReposConfig createRepository
    INFO: Creating the EM repository (this may take a while) ...
    Mar 8, 2009 9:15:09 PM oracle.sysman.emcp.EMReposConfig invoke
    SEVERE: Error creating the repository
    Mar 8, 2009 9:15:09 PM oracle.sysman.emcp.EMReposConfig invoke
    INFO: Refer to the log file at /home/oracle/product/10gR2/cfgtoollogs/emca/ora01/emca_repos_create_&lt;date&gt;.log for more details.
    Mar 8, 2009 9:15:09 PM oracle.sysman.emcp.EMConfig perform
    SEVERE: Error creating the repository
    Refer to the log file at /home/oracle/product/10gR2/cfgtoollogs/emca/ora01/emca_2009-03-08_09-14-45-PM.log for more details.
    Could not complete the configuration. Refer to the log file at /home/oracle/product/10gR2/cfgtoollogs/emca/ora01/emca_2009-03-08_09-14-45-PM.log for more details.
    emca_repos_create_2009-03-08_09-15-09-PM.log
    Check if repos user already exists.
    old 6: WHERE username=UPPER('&EM_REPOS_USER');
    new 6: WHERE username=UPPER('SYSMAN');
    old 8: IF ( '&EM_CHECK_TYPE' = 'EXISTS') THEN
    new 8: IF ( 'NOT_EXISTS' = 'EXISTS') THEN
    old 11: raise_application_error(-20000, '&EM_REPOS_USER does not exists..');
    new 11: raise_application_error(-20000, 'SYSMAN does not exists..');
    old 14: ELSIF ( '&EM_CHECK_TYPE' = 'NOT_EXISTS' ) THEN
    new 14: ELSIF ( 'NOT_EXISTS' = 'NOT_EXISTS' ) THEN
    old 17: raise_application_error(-20001, '&EM_REPOS_USER already exists..');
    new 17: raise_application_error(-20001, 'SYSMAN already exists..');
    old 21: raise_application_error(-20002, 'Invalid Check type &EM_CHECK_TYPE');
    new 21: raise_application_error(-20002, 'Invalid Check type NOT_EXISTS');
    DECLARE
    ERROR at line 1:
    ORA-20001: SYSMAN already exists..
    ORA-06512: at line 17
    emca_2009-03-08_09-14-45-PM.log
    Mar 8, 2009 9:12:13 PM oracle.sysman.emcp.ParamsManager setFlag
    CONFIG: Flag '-repos' set to true
    Mar 8, 2009 9:12:13 PM oracle.sysman.emcp.ParamsManager setFlag
    CONFIG: Flag 'db' set to true
    Mar 8, 2009 9:12:13 PM oracle.sysman.emcp.ParamsManager setFlag
    CONFIG: Flag 'create' set to true
    Mar 8, 2009 9:12:13 PM oracle.sysman.emcp.ParamsManager setParam
    CONFIG: Setting param: ORACLE_HOME value: /home/oracle/product/10gR2
    Mar 8, 2009 9:12:15 PM oracle.sysman.emcp.ParamsManager setParam
    CONFIG: Setting param: SID value: ora01
    Mar 8, 2009 9:12:18 PM oracle.sysman.emcp.ParamsManager setParam
    CONFIG: Setting param: PORT value: 1521
    Mar 8, 2009 9:12:20 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter SYS_PWD.
    Mar 8, 2009 9:12:20 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: SQLEngine connecting with SID: ora01, oracleHome: /home/oracle/product/10gR2, and user: SYS
    Mar 8, 2009 9:12:20 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: SQLEngine created successfully and connected
    Mar 8, 2009 9:12:23 PM oracle.sysman.emcp.ParamsManager setParam
    CONFIG: Setting param: CONFIRMATION ANSWER value:
    Mar 8, 2009 9:12:25 PM oracle.sysman.emcp.ParamsManager setParam
    CONFIG: Setting param: CONFIRMATION ANSWER value: yes
    Mar 8, 2009 9:12:25 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter LOG_FILE.
    Mar 8, 2009 9:12:25 PM oracle.sysman.emcp.ParamsManager setFlag
    CONFIG: Flag 'db' set to true
    Mar 8, 2009 9:12:25 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter DB_UNIQUE_NAME.
    Mar 8, 2009 9:12:25 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter DB_UNIQUE_NAME.
    Mar 8, 2009 9:12:25 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: SQLEngine connecting with SID: ora01, oracleHome: /home/oracle/product/10gR2, and user: SYS
    Mar 8, 2009 9:12:25 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: SQLEngine created successfully and connected
    Mar 8, 2009 9:12:25 PM oracle.sysman.emcp.DatabaseChecks getDbUniqueName
    CONFIG: No Database unique name available. Will try to retrieve it from DB itself
    Mar 8, 2009 9:12:25 PM oracle.sysman.emcp.ParamsManager setParam
    CONFIG: Setting param: DB_UNIQUE_NAME value: ora01
    Mar 8, 2009 9:12:25 PM oracle.sysman.emcp.EMConfig perform
    INFO: This operation is being logged at /home/oracle/product/10gR2/cfgtoollogs/emca/ora01/emca_2009-03-08_09-12-13-PM.log.
    Mar 8, 2009 9:12:25 PM oracle.sysman.emcp.ParamsManager setParam
    CONFIG: Setting param: EM_HOME value: /home/oracle/product/10gR2
    Mar 8, 2009 9:12:25 PM oracle.sysman.emcp.ParamsManager setFlag
    CONFIG: Flag 'db' set to true
    Mar 8, 2009 9:12:25 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter MODIFY_SID.
    Mar 8, 2009 9:12:25 PM oracle.sysman.emcp.DatabaseChecks getDbServiceName
    CONFIG: No service name available. Will try to set db_unique_name.db_domain
    Mar 8, 2009 9:12:25 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: SQLEngine connecting with SID: ora01, oracleHome: /home/oracle/product/10gR2, and user: SYS
    Mar 8, 2009 9:12:25 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: SQLEngine created successfully and connected
    Mar 8, 2009 9:12:25 PM oracle.sysman.emcp.ParamsManager setParam
    CONFIG: Setting param: DB_UNIQUE_NAME value:
    Mar 8, 2009 9:12:25 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter DB_UNIQUE_NAME.
    Mar 8, 2009 9:12:25 PM oracle.sysman.emcp.DatabaseChecks getDbUniqueName
    CONFIG: No Database unique name available. Will try to retrieve it from DB itself
    Mar 8, 2009 9:12:25 PM oracle.sysman.emcp.ParamsManager setParam
    CONFIG: Setting param: DB_UNIQUE_NAME value: ora01
    Mar 8, 2009 9:12:25 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter DB_DOMAIN.
    Mar 8, 2009 9:12:25 PM oracle.sysman.emcp.DatabaseChecks getDbDomain
    CONFIG: No db domain available. Will query db for db_domain parameter
    Mar 8, 2009 9:12:25 PM oracle.sysman.emcp.ParamsManager setParam
    CONFIG: Setting param: DB_UNIQUE_NAME value: ora01
    Mar 8, 2009 9:12:25 PM oracle.sysman.emcp.ParamsManager setParam
    CONFIG: Setting param: SERVICE_NAME value: ora01
    Mar 8, 2009 9:12:25 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter MODIFY_SID.
    Mar 8, 2009 9:12:25 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter MODIFY_SID.
    Mar 8, 2009 9:12:25 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter GLOBAL_DB_UNIQUE_NAME.
    Mar 8, 2009 9:12:25 PM oracle.sysman.emcp.DatabaseChecks getGlobalDbUniqueName
    CONFIG: No Global database unique name available. Will try to retrieve it from DB itself
    Mar 8, 2009 9:12:25 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: SQLEngine connecting with SID: ora01, oracleHome: /home/oracle/product/10gR2, and user: SYS
    Mar 8, 2009 9:12:25 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: SQLEngine created successfully and connected
    Mar 8, 2009 9:12:25 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter DB_DOMAIN.
    Mar 8, 2009 9:12:25 PM oracle.sysman.emcp.DatabaseChecks getDbDomain
    CONFIG: No db domain available. Will query db for db_domain parameter
    Mar 8, 2009 9:12:25 PM oracle.sysman.emcp.ParamsManager setParam
    CONFIG: Setting param: GLOBAL_DB_UNIQUE_NAME value: ora01
    Mar 8, 2009 9:12:25 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: SQLEngine connecting with SID: ora01, oracleHome: /home/oracle/product/10gR2, and user: SYS
    Mar 8, 2009 9:12:26 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: SQLEngine created successfully and connected
    Mar 8, 2009 9:12:26 PM oracle.sysman.emcp.EMReposConfig createRepository
    CONFIG: Spooling to /home/oracle/product/10gR2/cfgtoollogs/emca/ora01/emca_repos_create_2009-03-08_09-12-26-PM.log
    Mar 8, 2009 9:12:26 PM oracle.sysman.emcp.EMReposConfig createRepository
    INFO: Creating the EM repository (this may take a while) ...
    Mar 8, 2009 9:12:26 PM oracle.sysman.emcp.EMReposConfig createRepository
    CONFIG: ORA-20001: SYSMAN already exists..
    ORA-06512: at line 17
    oracle.sysman.assistants.util.sqlEngine.SQLFatalErrorException: ORA-20001: SYSMAN already exists..
    ORA-06512: at line 17
         at oracle.sysman.assistants.util.sqlEngine.SQLEngine.executeImpl(SQLEngine.java:1467)
         at oracle.sysman.assistants.util.sqlEngine.SQLEngine.executeScript(SQLEngine.java:841)
         at oracle.sysman.assistants.util.sqlEngine.SQLPlusEngine.executeScript(SQLPlusEngine.java:265)
         at oracle.sysman.assistants.util.sqlEngine.SQLPlusEngine.executeScript(SQLPlusEngine.java:306)
         at oracle.sysman.emcp.EMReposConfig.createRepository(EMReposConfig.java:360)
         at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:182)
         at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:124)
         at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:142)
         at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:479)
         at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1123)
         at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:463)
         at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:412)
    Mar 8, 2009 9:12:26 PM oracle.sysman.emcp.EMReposConfig invoke
    SEVERE: Error creating the repository
    Mar 8, 2009 9:12:26 PM oracle.sysman.emcp.EMReposConfig invoke
    INFO: Refer to the log file at /home/oracle/product/10gR2/cfgtoollogs/emca/ora01/emca_repos_create_<date>.log for more details.
    Mar 8, 2009 9:12:26 PM oracle.sysman.emcp.EMConfig perform
    SEVERE: Error creating the repository
    Refer to the log file at /home/oracle/product/10gR2/cfgtoollogs/emca/ora01/emca_2009-03-08_09-12-13-PM.log for more details.
    Mar 8, 2009 9:12:26 PM oracle.sysman.emcp.EMConfig perform
    CONFIG: Stack Trace:
    oracle.sysman.emcp.exception.EMConfigException: Error creating the repository
         at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:194)
         at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:124)
         at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:142)
         at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:479)
         at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1123)
         at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:463)
         at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:412)

    oracle@oracle:~>  emca -config dbcontrol db -repos create
    STARTED EMCA at Mar 8, 2009 9:38:46 PM
    EM Configuration Assistant, Version 10.2.0.1.0 Production
    Copyright (c) 2003, 2005, Oracle. All rights reserved.
    Enter the following information:
    Database SID: ora01
    Listener port number: 1521
    Password for SYS user:
    Password for DBSNMP user:
    Password for SYSMAN user:
    Email address for notifications (optional):
    Outgoing Mail (SMTP) server for notifications (optional):
    You have specified the following settings
    Database ORACLE_HOME ................ /home/oracle/product/10gR2
    Database hostname ................ srv603484.adpepper.com
    Listener port number ................ 1521
    Database SID ................ ora01
    Email address for notifications ............... [email protected]
    Outgoing Mail (SMTP) server for notifications ............... www.cyabge.com
    Do you wish to continue? [yes(Y)/no(N)]: Y
    Mar 8, 2009 9:39:23 PM oracle.sysman.emcp.EMConfig perform
    INFO: This operation is being logged at /home/oracle/product/10gR2/cfgtoollogs/emca/ora01/emca_2009-03-08_09-38-46-PM.log.
    Mar 8, 2009 9:39:24 PM oracle.sysman.emcp.EMReposConfig createRepository
    INFO: Creating the EM repository (this may take a while) ...
    Mar 8, 2009 9:41:39 PM oracle.sysman.emcp.EMReposConfig invoke
    INFO: Repository successfully created
    Mar 8, 2009 9:41:43 PM oracle.sysman.emcp.util.DBControlUtil startOMS
    INFO: Starting Database Control (this may take a while) ...
    Mar 8, 2009 9:48:24 PM oracle.sysman.emcp.util.PlatformInterface executeCommand
    WARNING: Error executing /home/oracle/product/10gR2/bin/emctl start dbconsole
    Mar 8, 2009 9:48:24 PM oracle.sysman.emcp.EMConfig perform
    SEVERE: Error starting Database Control
    Refer to the log file at /home/oracle/product/10gR2/cfgtoollogs/emca/ora01/emca_2009-03-08_09-38-46-PM.log for more details.
    Could not complete the configuration. Refer to the log file at /home/oracle/product/10gR2/cfgtoollogs/emca/ora01/emca_2009-03-08_09-38-46-PM.log for more details.
    oracle@oracle:~> emctl start dbconsole
    TZ set to US/Pacific
    Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
    Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
    http://**********:5500/em/console/aboutApplication
    Timezone mismatch: The agentTZRegion value (US/Pacific) in
    /home/oracle/product/10gR2/**********8_ora01/sysman/config/emd.properties
    does not match the current environment TZ setting(US/Pacific).
    The dbconsole cannot run with this mismatch.
    If US/Pacific is the correct timezone, set your timezone environment variable to US/Pacific and repeat the 'emctl start dbconsole' operation.
    If US/Pacific is not the correct timezone, make sure that the timezone in your environment is correct, and then run the following command in your local Oracle Home: 'emctl resetTZ agent'
    The output of this command will include detailed instructions to follow, to correct the mismatch.
    Edited by: user618704 on Mar 9, 2009 2:08 AM

  • StandBy database creation in oracle 10g

    Respected Sir's
    I have to create stand by database in oracle 10g i am working on (Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod) .Plz any body provide steps required for creating stand by database in oracle10g.Both the database db1 and db2 are running on archivelog.I am confuse how to set archivelog parameter that goes to db2(standby database) from db(primary database).Any one provide me steps to properly configuring the stand by database.
    Thanks

    Respected Sir
    These are the detailed steps that i performed on standby and primary database.
    On both the systems i install the oracle in E drive and the database i create in G drive and archive destination also in G drive.
    Like G:\prod1\(all the datafiles,logfiles and control file).
    G:\arch\(all the archive files).
    ON PRIMARY DATABASE(IP:192.168.2.14):
    1.First i create a database with DBCA and the database SID is prod1.
    2.Put the database in archive mode and also enable the force logging.
    3.Shutdown the Primary database and modify the following parameters in pfile.
    log_archive_dest_1='LOCATION=G:\ARCH'
    log_archive_dest_2 = "service=STDBY mandatory reopen=60"
    log_archive_dest_state_1 = enable
    log_archive_dest_state_2 = enable
    log_archive_min_succeed_dest = 2
    4.Mount the primary database and create the standby controle file and create the spfile from the modified pfile.
    5.Shutdown the primary database and take the backup of all the datafile,logfile,standby controlfile ,passwordfile,pfile in a folder.
    6.Startup the primary database.
    Tnsname.ora Configuration.
    Create the connection string using the Net Manager with name STDBY and in host name i provide the IP address of the standby database.
    ON STANDBY DATABASE(IP 192.168.2.9):
    Listener.ora Configuration.
    Create a listener using the Net configuration Assistance.
    1.I copy the datafile,logfile and standby controle file in g:\prod1
    2.Copy the E:\oracle\product\10.2.0\admin\prod1 folder from primary database and past it on the same location on the standby database.
    3.On standby pfile i change only the standby_archive_dest parameter to g:\arch.
    4.Create the service with oradim -SID -NEW prod1 -STARTMODE manuall
    5.Start the standby database in nomount mode.
    6.Create the spfile from pfile and shutdown the database.
    7.Startup the database in nomount mode using spfile.
    8.ALTER DATABASE MOUNT STANDBY DATABASE;
    These are the occurs when i use tnsping stdby on primary database.
    C:\Documents and Settings\Administrator>TNSPING STDBY
    TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 04-FEB-2009 12:03:55
    Copyright (c) 1997, 2005, Oracle. All rights reserved.
    Used parameter files:
    E:\oracle\product\10.2.0\db_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.2.9
    NECT_DATA = (SERVICE_NAME = prod1)))
    OK (20 msec)
    sqlnet.ora file on stand by database.
    SQLNET.AUTHENTICATION_SERVICES= (NTS)
    NAMES.DIRECTORY_PATH= (TNSNAMES, LDAP)
    BEQUEATH_DETACH=yes
    AUTOMATIC_IPC = ON
    NAMES.DEFAULT_DOMAIN = IDEVELOPMENT.INFO
    SQLNET.EXPIRE_TIME=2
    This occurs when i use tnsping prod1 on standby database.
    TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 04-FEB-2
    009 12:01:40
    Copyright (c) 1997, 2005, Oracle. All rights reserved.
    Used parameter files:
    E:\oracle\product\10.2.0\db_1\network\admin\sqlnet.ora
    TNS-03505: Failed to resolve name
    Please help me bec i have to create the stand database as soon as possible.Thanks Sir

  • Enterprise Manager for Linux Fedora Core 10g

    Enterprise Manager Fedora Core 2 with Oracle 10g.
    I can not locate OEMAPP anywhere on my disk. I have reinstalled the system several times, but it does not seem to get installed on my computer.
    I have no problem with the system otherwise, and can run Enterprise Manager (oemapp.bat) from an XP workstation and connect.
    I have selected a custom install as well, and it does not install the program.
    I can run
    emctl start dbconsole
    and run Enterprise Manager thru HTML (localhost:5100)
    but would very much like to run the graphical version.
    Can anyone assist?
    Can I extract it from the CPIO?
    Can I download it somewhere?
    I have seen that many others have run into this same issue, but have not been able to locate any resolution.
    Anyone know how I can install it?
    Has anyone tried to run 10g on Fedora core 3?
    Thanks.

    u are right there is no EM from linux u have to use winnt's EM and u can connect using connect string which u can create manual by creating the connect string in tnsnames.ora files or u can use net8 easy config.
    any problem contact me.
    eDWIN
    email:[email protected]

  • Manual creation of oracle 10g database

    Hi All,
    Please provide me with the steps on how to create a database in oracle 10g manually.
    Thanks

    1)
    configure init.ora
    2)
    create directories
    3)
    create database:
    create database csdb
    logfile group 1 ('/u01/csdb/redologfiles/redo01a.log','/u01/csdb/redologfiles/redo01b.log') size 10M,
    group 2 ('/u01/csdb/redologfiles/redo02a.log','/u01/csdb/redologfiles/redo02b.log') size 10M,
    group 3 ('/u01/csdb/redologfiles/redo03a.log','/u01/csdb/redologfiles/redo03b.log') size 10M
    character set WE8ISO8859P1
    national character set utf8
    datafile '/u01/csdb/datafiles/system01.dbf'
    size 1300M
    autoextend on
    next 10M maxsize unlimited
    extent management local
    sysaux datafile '/u01/csdb/datafiles/sysaux01.dbf'
    size 1300M
    autoextend on
    next 10M
    maxsize unlimited
    undo tablespace undotbs1
    datafile '/u01/csdb/datafiles/undotbs01.dbf'
    size 1300M
    default temporary tablespace temp
    tempfile '/u01/csdb/tempfiles/temp01.dbf'
    size 1300M;
    4)
    run the following scripts:
    alter session set current_schema=SYS;
    @$ORACLE_HOME/rdbms/admin/catalog.sql;
    OK
    @$ORACLE_HOME/rdbms/admin/catproc.sql;
    OK
    @$ORACLE_HOME/rdbms/admin/catblock.sql;
    OK
    @$ORACLE_HOME/rdbms/admin/catexp.sql;
    OK
    @$ORACLE_HOME/rdbms/admin/catrep.sql;
    OK
    @$ORACLE_HOME/rdbms/admin/dbmssml.sql;
    OK
    alter session set current_schema=SYSTEM;
    @$ORACLE_HOME/sqlplus/admin/pupbld.sql;
    OK
    alter session set current_schema=ORDSYS;
    @$ORACLE_HOME/inventory/Templates/ord/im/admin/ordlib.sql;
    OK
    alter session set current_schema=SYS;
    create spfile='$ORACLE_HOME/dbs/spfilerestore.ora' FROM pfile='$ORACLE_HOME/dbs/initrestore.ora';
    OK

  • Ho to install the "BC4J Enterprise Manager Bean" in Application Server 10g

    Hi
    I'd like to monitor my BC4J Application installed on a 10g Application Server. According to the help system I can find this information on the Enterprise Manager Website of the 10g Application Server: open the OC4J (not "home" in my case), open "Administration" tab, click on link "BC4J". After entering the OC4J Admin password you should come to a page where you can monitor BC4J-Pools and so on.
    If I try this on my (custom created) OC4J I get an error message that I should install the "BC4J Enterprise Manager Bean". What is this? I installed the BC4J.EAR Application, but to no avail. However: It works well on the default OC4J "home", but unfortunately my application is on a different OC4J :(
    Can anyone give me a hint, how to install the "BC4J Enterprise Manager Bean"? Can anyone point me to some documentation on this?
    Thanks.

    BC4J Enterprise Manager Bean is the bean to manage the bc4j framework in the oc4j instance. By default, it is only pre-installed by home instance. For all other instances, you have to do it yourself.
    You can use the EM to deploy this bean to the oc4j instance you want, the ear file is located in your iAS_HOME\BC4J\oem directory.

  • Errors in manual creation of oracle 10g database

    I created oracle 10g database manually and i am getting post installation errors.. could you please help out?
    I executed @?/sqlplus/admin/pupbld.sql but it still shows
    Error accessing PRODUCT_USER_PROFILE
    Warning: Product user profile information not loaded!
    You may need to run PUPBLD.SQL as SYSTEM
    i tried to see
    SQL> desc product_user_profile;
    ERROR:
    ORA-04043: object "SYSTEM"."SQLPLUS_PRODUCT_PROFILE" does not exist
    not there?? any other scripts to be run ? please guide me.
    2. I can not able login sys@sid as sysdba
    SQL> select * from v$pwfile_users;
    no rows selected
    i changed
    remote_login_passwordfile string EXCLUSIVE
    re-started db but no help...
    SQL> grant sysdba to sys;
    grant sysdba to sys
    ERROR at line 1:
    ORA-01990: error opening password file
    I re-created
    $ORACLE_HOME/bin/orapwd file=$ORACLE_HOME/dbs/orapwmydb.ora password=xxxx entries=5 force=y
    but no help..
    Could one please help out... ! great thanks in advance..

    thanks for prompt reply .. but still one issue remain..
    oracle DEVS $ sqlplus sys@sid sysdba
    SQL*Plus: Release 10.1.0.4.0 - Production on Thu Jan 7 10:51:44 2010
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Enter password:
    ERROR:
    ORA-01031: insufficient privileges
    but i can able to login as sqlplus sys as sysdba
    SQL> select * From v$pwfile_users;
    no rows selected
    i tired to do
    SQL> grant sysdba to sys;
    grant sysdba to sys
    ERROR at line 1:
    ORA-01990: error opening password file
    '/u02/app/oracle/product/10.1.0/dbs/orapw'
    ORA-27037: unable to obtain file status
    Linux Error: 2: No such file or directory
    Additional information: 3
    there is already one password file with orapwsid.ora.. how this should be solved ? please help. thanks

  • Running Netweaver Identity Management SP 2 with Oracle 10g

    Hello,
    I'm having some troubles installing NW IDM SP2 on Oracle 10g in a Windows 2003 (32 bit) environment.
    According to my MMC snap in, I am running Identity Center 6778-ORA-04.2008.
    I installed the updates per the installer to Schema update level (186 I think)
    I then downloaded the update ORACLE script pack to bring it up to Schema update 198.
    However I am getting the following message:  There is a mismatch between the latest schema update (6778-ORA-04.2008) and the program version (7.0.6753)
    Is there something else I need to download?
    This only seems to affect the MMC snapin.  I am able to access the Workflow and Monitoring interfaces.
    Thanks for your help!

    Hi,
    It is useful to refer below SAP note.
    https://websmp230.sap-ag.de/sap(bD1qYSZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1069458
    It says,
    "When you start the Identity Center user interface you will see a warning that there is a mismatch between the installed databse update and the installed version of the Identity Center user interface. This warning can be ignored."
    And the warning message like above will disappear if you install Identity Center SP2 patch1or2.
    Best Regards,
    Daisuke Ikari

  • Does OAS Enterprise manager console install when Oracle DB EM installed?

    I installed Oracle database 10gR2 on my development machine. After that I installed Oracle Application Server 10g 10.1.3.1.0
    Although I opted to install the EM component I don't think that it did install.
    Here is the install readme found in OAS_HOME\install\readme.txt:
    The installation of Oracle Application Server 10g 10.1.3.1.0 was successful.
    These instructions are located in C:\OracleAS_1\install\readme.txt for your future reference.
    You can view the status of the server with the following command:
    C:\OracleAS_1\opmn\bin\opmnctl status
    Access the Welcome Page with the following URL:
    http://main:80/
    Application Server Control Console is not running in this instance of Oracle Application Server. You can manage this instance remotely through another instance of Oracle Application Server that is configured to run Application Server Control Console.
    Installation Details:
    Installation Directory: C:\OracleAS_1
    Installation Type: J2EE Server and Web Server
    Installed Components: Oracle HTTP Server, Oracle Containers for J2EE (OC4J), and Oracle Process Manager & Notification Server (OPMN)
    Instance Name: orcl.main
    Administrator Username: oc4jadminIn the case of the database and the application server being on the same machine, should I be able to access two different EM consoles? If so then why can't I seem to access the OAS EM console (I can access the database EM).

    Problem discussed and solved here:
    Re: Not allow em console

  • Database creation failed Oracle 10g x64

    Hello,
    Trying to install Oracle 10.2.0.1.0 (x64) on Windows Server 2003 SP2 (x64).
    Towards end of installation, it fails at Database creation stage, stopping at 2%.
    Anyone can give any clue on why it happens ???
    Appreciate your help..

    Thank you for your inputs..
    I have tried to run DBCA , but again it fails at 2% (when database files being copied)
    I have also installed 10g Release 2 (10.2.0.4) Patch Set 3 for MS Windows x64
    also downloaded and installed latest Java
    Still when trying to create databse, it fails at the stage of copying database files.
    Thanks to share if anyone have any clue..

  • Issues with user creation in Oracle 10g

    ear All,
    After logon to database with sysdba user i created one user by following query:
    CREATE USER BI_USER
    IDENTIFIED BY VALUES '0CE8A6E883EE4E19'
    DEFAULT TABLESPACE BI_USER
    TEMPORARY TABLESPACE TEMP1
    PROFILE DEFAULT
    ACCOUNT UNLOCK;
    After creating this i have given following privledges to it:
    GRANT RESOURCE TO BI_USER;
    GRANT CONNECT TO BI_USER;
    GRANT SCHEDULER_ADMIN TO BI_USER;
    GRANT DBA TO BI_USER;
    GRANT SELECT_CATALOG_ROLE TO BI_USER;
    GRANT GLOBAL QUERY REWRITE TO BI_USER;
    GRANT ANALYZE ANY TO BI_USER;
    GRANT EXECUTE ANY PROCEDURE TO BI_USER;
    GRANT CREATE SEQUENCE TO BI_USER;
    GRANT CREATE SYNONYM TO BI_USER;
    GRANT EXECUTE ANY PROGRAM TO BI_USER;
    GRANT SELECT ANY DICTIONARY TO BI_USER;
    GRANT DROP ANY VIEW TO BI_USER;
    GRANT CREATE DIMENSION TO BI_USER;
    GRANT DROP ANY TYPE TO BI_USER;
    GRANT CREATE ANY DIRECTORY TO BI_USER;
    GRANT ALTER ANY MATERIALIZED VIEW TO BI_USER;
    GRANT CREATE MATERIALIZED VIEW TO BI_USER;
    GRANT UNLIMITED TABLESPACE TO BI_USER;
    BEGIN
    SYS.DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE(
    PRIVILEGE => SYS.DBMS_RULE_ADM.EXECUTE_ANY_RULE,
    GRANTEE => 'BI_USER',
    GRANT_OPTION => FALSE);
    END;
    GRANT EXECUTE ANY TYPE TO BI_USER;
    GRANT CREATE ANY MATERIALIZED VIEW TO BI_USER;
    GRANT CREATE TRIGGER TO BI_USER;
    GRANT CREATE ANY TABLE TO BI_USER;
    GRANT CREATE TABLE TO BI_USER;
    BEGIN
    SYS.DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE(
    PRIVILEGE => SYS.DBMS_RULE_ADM.EXECUTE_ANY_RULE_SET,
    GRANTEE => 'BI_USER',
    GRANT_OPTION => FALSE);
    END;
    GRANT CREATE TYPE TO BI_USER;
    GRANT DROP ANY INDEX TO BI_USER;
    GRANT SELECT ANY TABLE TO BI_USER;
    GRANT CREATE JOB TO BI_USER;
    GRANT QUERY REWRITE TO BI_USER;
    GRANT CREATE VIEW TO BI_USER;
    GRANT CREATE SESSION TO BI_USER;
    GRANT EXECUTE ANY CLASS TO BI_USER;
    BEGIN
    SYS.DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE(
    PRIVILEGE => SYS.DBMS_RULE_ADM.EXECUTE_ANY_EVALUATION_CONTEXT,
    GRANTEE => 'BI_USER',
    GRANT_OPTION => FALSE);
    END;
    GRANT CREATE INDEXTYPE TO BI_USER;
    GRANT CREATE DATABASE LINK TO BI_USER;
    GRANT ALTER SESSION TO BI_USER;
    GRANT DROP ANY DIRECTORY TO BI_USER;
    GRANT CREATE PROCEDURE TO BI_USER;
    GRANT DROP ANY SYNONYM TO BI_USER;
    GRANT DROP ANY TABLE TO BI_USER;
    Now following are the issues i am facing:
    1). After all this when i logon to this user through toad it is successful but through SQL it says invalid username and password
    2). Whenever i create a table it is created in SYS schema not in the user schema for creating it in user schema i have to right username.tablename also in select statement.
    Can any body help me in this.

    2). Whenever i create a table it is created in SYS schema not in the user schema for creating it in user schema i have to right username.tablename also in select statement.
    <code>
    sqlplus scott/tiger
    Connected.
    SQL> desc t
    Name                         Null? Type
    TESTCOL                         VARCHAR2(10)
    SQL> select * from t;
    TESTCOL
    1
    2
    3 new
    SQL> conn / as sysdba
    Connected.
    SQL> sho user
    USER is "SYS"
    SQL> select * from scott.t
    2 ;
    TESTCOL
    1
    2
    3 new
    SQL> create table scott.t_copy as select * from scott.t;
    Table created.
    SQL> conn scott/tiger
    Connected.
    SQL> select * from t_copy;
    TESTCOL
    1
    2
    3 new
    <code>
    1). After all this when i logon to this user through toad it is successful
    but through SQL it says invalid username and password
    <code>
    $ echo $ORACLE_SID
    orcl
    $ tnsping orcl
    TNS Ping Utility for Linux: Version 10.2.0.2.0 - Production on 27-AUG-2009 14:38:34
    Copyright (c) 1997, 2005, Oracle. All rights reserved.
    Used parameter files:
    /home/oracle/oracle/product/10.2.0/db_1/network/admin/sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl)))
    OK
    $ sqlplus scott/tiger
    SQL*Plus: Release 10.2.0.2.0 - Production on Thu Aug 27 14:38:42 2009
    Copyright (c) 1982, 2005, Oracle. All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    SQL> sho user
    USER is "SCOTT"
    SQL> select * from t_copy;
    TESTCOL
    1
    2
    3 new
    <code>
    please tell the syntax how you connect through sqlplus

  • Upgrade Enterprise manager repository database 10.10.0.4 to 11.1.0.6

    hello all
    any guys here have exprience in installing and upgrading EM 10g Grid control repository database 10.1.0.4(default) to 10.2.0.4 or 11.1.0.6? can you please share steps with me?
    thank you

    It was a only DB upgrade ? or any additional steps to update repository ?

  • DB creation in Oracle 10g XE for Windows

    Pls. help, I can't create a new db (CAFE). I already created the init.ora and the db creation script. But everytime I ran the said script in sql it displays this error:
    " Error at line 1:
    ORA-01501: CREATE DATABASE failed
    ORA-01504: database name 'CAFE' does not match parameter db_name 'XE'"
    Another thing is that, I can't find the default path of oracle, re: $ORACLE_HOME.

    People coming from other systems get confused with terminology,
    You might be happy using the XE database and simply creating a new schema. A LOT of people use the term database when they really mean schema.
    A schema is simply an Oracle database user that has the privileges to create database objects such as tables and views. An Oracle database can contain any number of schemas. A regular user is then given permission to access objects in the various schemas.

  • How to Manage Archive Files in Oracle 10g

    Dear all
    I have 10g Database server running in Archive Mode, there are huge number of archive files have been increased ,
    (1) how can i find old and obsoleted Archive files that will not be needed for recovery in future.so that i can delete them inorder to free space.
    (2) How to manage Archive Files .
    Kindly help
    Thanks
    Regards
    Farnaw

    Hello,
    (1) how can i find old and obsoleted Archive files that will not be needed for recovery in future.so that i can delete them inorder to free space.It depends on your Backup policy.
    If you use RMAN you can follow the advices previously posted, if you use "user managed" Backup then, you don't need the
    log files archived before the begining of the last full backup of your database.
    To know when the archived log was generated and the first change included in it, you can query the v$archived_log as follow:
    alter session set nls_date_format='DD-MON-YYYY HH24:MI:SS';
    select recid, name, first_change, first_time, completion_time
    from v$archived_log;
    (2) How to manage Archive Files . You must backup the archived logs so as to be able to apply them. After making a safe backup of them on a tape, they can be
    deleted from disk.
    Of course you can also keep the last archived logs on your disk (beside of backup them on tape) so that you don't have to
    restore them and save time if you need them.
    It depends on your needs and the free space you have.
    Hope this help.
    Best regards,
    Jean-Valentin

  • Problem with new user creation in Oracle 10g

    I have created a new user and assigned it the required privileges as shown below:
    GRANTEE GRANTED_ROLE ADM DEF
    SACHIN1 CONNECT NO YES
    SACHIN1 RESOURCE NO YES
    SACHIN1 SELECT_CATALOG_ROLE NO YES
    I am able to connect to database using this user username/password but when I am trying to fire any query like one below or to access any dictionary views it shows me the error message:
    SQL> select * from dept;
    select * from dept
    ERROR at line 1:
    ORA-00942: table or view does not exist
    What is that i am missing which is not set right for this user....Let me know

    user8531525 wrote:
    DEPT table exists as I am able to access when I login using default name SCOTT.
    If its not in my schema how can i include that so that i have access to it.You can use dynamic SQL to generate a script that should work:
    SELECT 'grant select on '||OWNER||'.'||TABLE_NAME||' to SACHIN1;' as script
    FROM dba_tables
    WHERE owner='SCOTT';
    This example generates the following:
    grant select on SCOTT.DEPT to SACHIN1;
    grant select on SCOTT.EMP to SACHIN1;
    grant select on SCOTT.BONUS to SACHIN1;
    grant select on SCOTT.SALGRADE to SACHIN1;
    Eg:
    SQL> conn sys/oracle as sysdba;
    Connected.
    SQL> grant select on scott.a to rajesh;
    Grant succeeded.
    SQL> conn rajesh/rajesh;
    Connected.
    SQL> select * from scott.a;
    ID
    123
    123
    123
    am able to connect to database using this user username/password but when I am trying to fire any query like one below or to access any dictionary views it shows me the error message:try
    SQL> select name from v$database;
    NAME
    REV1
    SQL> select file_name from dba_data_files;
    FILE_NAME
    /u01/app/oracle/oradata/rev1/users01.dbf
    /u01/app/oracle/oradata/rev1/sysaux01.dbf
    /u01/app/oracle/oradata/rev1/undotbs01.dbf
    /u01/app/oracle/oradata/rev1/system01.dbf
    Edited by: rajeysh on Sep 23, 2010 1:39 AM

Maybe you are looking for