[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference varese::basestar_open

Title:BASEstar Open Multiplatform Application Framework
Notice:Kit pointers: see topic 3
Moderator:VARESE::CORBETTA
Created:Tue Oct 02 1990
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:607
Total number of notes:1971

592.0. "Creating Perm DB problem" by OSEC::VINOD () Mon Apr 21 1997 18:19



        I'm currently having a problem on a customer site creating an ORACLE
        database for a BASEstar realm using bstr_realm_setup_db.

        Initially I was unable to start the realm database, failing with the
        following error :


    grcps3> bstr_realm_start_db PDAS

    ************************************************
    * ERROR: DB Server Failure! Check the log file *
    ************************************************


   grcps3> tail -100 PDAS.log

        7081@grcps3 BSTR_CLI    :
        7655@grcps3 DB Server - PDAS: DB Server starting
        7655@grcps3 DB Server - PDAS: Initialize BASEstar environment for
                                BASEstarAppl
        7655@grcps3 DB Server - PDAS: E-BSTR_S_CNF_DB_INTERNAL_ERROR: Database
                                internal error
        7655@grcps3 DB Server - PDAS: ORA-00472: Unable to open message file
                                (SQL-02113).
        7655@grcps3 DB Server - PDAS: DB server exiting
        7655@grcps3 DB Server - PDAS:  Release BASEstar environment



        After trying various things to start the database, I decided to recreate
        the database using the following commands:


        grcps3> bstr_realm_shut_db PDAS

                Error: No Data Base for realm 'PDAS'

        grcps3> bstr_realm_unset_db PDAS

                Destroying database for realm 'PDAS' . . .

        grcps3> bstr_realm_setup_db PDAS -c

                Creating database for realm 'PDAS' . . .

                Verifying to be able to connect to ORACLE . . .

                &&& Error: cannot connect to ORACLE.


                Error during database initialization.
                Trace of failed initialization saved in file:
                        /usr/opt/pdas/work/realm/PDAS/tmp/PDAS_setup_db.log


                Destroying database for realm 'PDAS' . . .

        grcps3> cat /usr/opt/pdas/work/realm/PDAS/tmp/PDAS_setup_db.log

                ERROR: ORA-00472: PMON  process terminated with error

                Enter password:
                ERROR: ORA-00472: PMON  process terminated with error

                Enter password:
                ERROR: ORA-00472: PMON  process terminated with error

                unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus


        All the ORACLE processes appear to be running OK :

        grcps3> ps ax | grep ora

                14999 ??       S        0:00.10 ora_dbwr_PDAS
                15128 ??       S        0:00.04 ora_pmon_PDAS
                15212 ??       S        0:00.12 ora_lgwr_PDAS
                15497 ??       I        0:00.14 ora_smon_PDAS


        Currently the customer is running using a volatile database only. I need
        to set them up with a permanent database as soon as possible.


        Can anyone help ?



        Thanks
                Vinod.
T.RTitleUserPersonal
Name
DateLines
592.1more info, pleaseIMPERO::SERRAVolumeappalla!Tue Apr 22 1997 09:3521
    
    Vinod, 
    
    which Oracle version are you using ?
    
    Please repeat the bstr_realm_setup_db step, then have a look at the
    
    	$ORACLE_HOME/rdbms/log/alert_BSTR.log
    
    file; near the bottom, you should find information about the problem
    happened, and possibly a pointer to a trace file, maybe:
    
    	$ORACLE_HOME/rdbms/log/pmon_<pid>.trc
    
    If those files won't give you the key of the problem, feel free
    to either post them here or mail them to me. We'll try to find out
    some Oracle guru.
    
    - Beppe -
    
    
592.2OSEC::VINODTue Apr 22 1997 17:4037
        The oracle version is 7.1.6 .


        I done what you suggested without any success. The following log file
        $ORACLE_HOME/rdbms/log/alert_BSTR.log had now related messages in at
        all. I fact this file has not been updated since November last year.

        I also searched for any pmon*.trc files but again the last one updated
        was December last year.

        From the above you can see that the environment at this site has been
        very static since November, Hence, they did not need to use the
        Permanent database until now.

        The other thing which is slightly confusing is that the ora* processes
        all contain the realm name (PDAS). I expected then to be prefixed with
        BSTR.

        ie.

        ora_dbwr_PDAS  instead of       ora_dbwr_BSTR
        ora_smon_PDAS  instead of       ora_smon_BSTR
        ora_lgwr_PDAS  instead of       ora_lgwr_BSTR
        ora_pmon_PDAS  instead of       ora_pmon_BSTR


        The other option I have is to unset the BASEstar node altogether.
        This will destroy the Master database config, as well as the realm
        database config, allowing us to start clean.


        What do you recommend.



	Thanks
		Vinod.
592.3restart from scratch !IMPERO::SERRAVolumeappalla!Tue Apr 22 1997 18:1042
    
    Vinod,

    >> very static since November, Hence, they did not need to use the
    >> Permanent database until now.

    	but something *must* have been changed in the meantime: what ?

    >> I expected then to be prefixed with BSTR.

    	It depends on what DB_Identifier has been choosen at
    	bstr_node_setup time: BSTR is the default, but you can choose
    	any other name. However, what has been specified at bstr_node_setup
    	is recorded into the 
    
    		$BSTR_ETC/db_parameters.h_<hostname>
    
    	file, at the 
    
    		DB.DB_Identifier:
    
    	keyword.
    
    
    >> This will destroy the Master database config, as well as the realm
    >> database config, allowing us to start clean.
    
    	I agree, but I would also add an Oracle shutdown / restart
    	in between:
    
    	1. bstr_node_shut -h
    	2. bstr_node_unset
    	3. shutdown Oracle
    	4. startup Oracle
    	5. bstr_node_setup
    	6. bstr_node_start
    	7. bstr_realm_setup_node PDAS
    	8. bstr_realm_setup_db PDAS
    	
    	
    - Beppe -
    
592.4OSEC::VINODTue Apr 22 1997 19:0146
	Beppe,


        >> but something *must* have been changed in the meantime: what ?

                Good question, no one seems to know.


        >> It depends on what DB_Identifier has been choosen at
        >> bstr_node_setup time: BSTR is the default, but you can choose
        >> any other name. However, what has been specified at bstr_node_setup
        >> is recorded into the
        >>
        >>      $BSTR_ETC/db_parameters.h_<hostname>


                I'm sure the default was used at bstr_node_setup and looking
                in the above file, seems to verify this.

                ie.

grcps3> cat $BSTR_ETC/db_parameters.h_grcps3

        DB.DBMS_Type: ORACLE
        DB.DBA_Username: oracle
        DB.DB_Identifier: BSTR
        DB.Initial_DB_Datafile_Path: /usr/opt/pdas/basestar/work/node/cnf
        DB.Initial_DB_RedoLog1_Path: /usr/opt/pdas/basestar/work/node/cnf
        DB.Initial_DB_RedoLog2_Path: /usr/opt/pdas/basestar/work/node/cnf
        DB.Initial_DB_Tables_Path: /usr/opt/pdas/basestar/work/node/cnf
        DB.Initial_DB_Indexes_Path: /usr/opt/pdas/basestar/work/node/cnf
        DB.Initial_DB_Rollseg_Path: /usr/opt/pdas/basestar/work/node/cnf
        DB.Initial_DB_Tempseg_Path: /usr/opt/pdas/basestar/work/node/cnf




        If there is nothing else you can think of, I'll schedule some down
	time later on this week to unset the BASEstar node altogether and       
        recreate it.


        Thanks
                Vinod.

592.5ORACLE_SID mismatchIMPERO::SERRAVolumeappalla!Wed Apr 23 1997 11:5331
    
    Vinod,
    
    >> I'm sure the default was used at bstr_node_setup and looking
    >> in the above file, seems to verify this.
    >>    DB.DB_Identifier: BSTR
    
    	Hmmm ... in this case the bunch of oracle process should contain
    	`BSTR`, not `PDAS`, in their names.
    
    	I can't figure out how this situation could have been generated,
    	but the normal situation is that the *same* ORACLE_SID (either 
    	BSTR or PDAS or whatever) must be found in:
    
    	1 - the $BSTR_ETC/db_parameters.h_<hostname> file, i.e.
    
    	      DB.DB_Identifier: BSTR
    
    	2 - one of the oracle database initialization files' name, i.e.
    
    	      $ORACLE_HOME/dbs/initBSTR.ora
    
    	3 - the oracle processes' names, i.e.
    
    	      ora_smon_BSTR
    	      ora_pmon_BSTR
              ora_lgwr_BSTR
              ora_dbwr_BSTR
    
    
    - Beppe -
592.6OSEC::VINODFri Apr 25 1997 14:5220

        Hi Beppe,

        I finally got everything working again, by unsetting the BASEstar node
        altogether and re-creating the whole config/environment.

        One other thing to note, I had to re-boot the machine after shutting
        down ORACLE. This was the only way I could create a new BASEstar
        database. Once the machine was rebooted I created the whole envirnoment
        from scratch without ant problems. The ORA process names were also back
        to being prefixed with BSTR rather than PDAS.

        Why ????

        Oh Well, Thanks for all the help.

	
	
	Vinod.