sqlplus "/as sysdba"
startup mount;
prompt The following should return zero rows
select count(*) from v$recover_file;
select count(*) from v$recovery_log;
select count(*) from v$recovery_status;
select count(*) from v$recovery_file_status;
select name,status from v$datafile where (name like '%MISS%' or status not in ('ONLINE', 'SYSTEM'))
/
select count(*) from v$backup where status != 'NOT ACTIVE' ;
col checkpoint_change# format 999999999999999
prompt The following should return one distinct number
Select distinct checkpoint_change# from v$datafile ;
select distinct to_char(CHECKPOINT_TIME,'DD-MON-YYYY HH24:MI:SS') from v$datafile_header;
prompt This should return "0" and "8192" as output
select distinct fhsta from x$kcvfh;
Sharing real time knowledge,issues on Oracle Apps DBA and Oracle DBA
Thursday, March 11, 2010
Oracle Inventory Creationg/Attach/Dettach/Clone/Relink Code tree
1. Point the inventory to correct location
Make sure the file ./etc/oraInst.loc., ./var/opt/oracle/oraInst.loc. & $ORACLE_HOME/oraInst.loc. has the following entries. If not modify the file and save.
inventory_loc=/oracle/product/oraInventory
inst_group=dba
2. Clone the code tree
+ cd $ORACLE_HOME/oui/bin
+ ./runInstaller -silent -clone -invPtrLoc $ORACLE_HOME/oraInst.loc -ignorePreReq ORACLE_HOME=$ORACLE_HOME ORACLE_HOME_NAME=Ora10204_TEST ORACLE_HOST_NAME=test-01
!!! Please wait until the command is successful. Do not interrupt. !!!
Please check for .cloning is successful. message and will display message to run
.root.sh.. Sometime it may wait for you see this message. Press .enter. to get
the .command prompt..
Run the following ,
+ cp /oracle/product/10.2.0.4//root.sh /oracle/product/10.2.0.4
+sudo /oracle/product/10.2.0.4//root.sh
Accept the default options for the prompts and location of the files.
3. Detach the code tree from oracle central inventory
+ cd $ORACLE_HOME/oui/bin
+./runInstaller -silent -detachHome -local -noClusterEnabled -invPtrLoc $ORACLE_HOME/oraInst.loc -ignorePreReq ORACLE_HOME=$ORACLE_HOME ORACLE_HOME_NAME=Ora10204_TEST
4. Attach the code tree to oracle central inventory . This will add correct host to the inventory
+ cd $ORACLE_HOME/oui/bin
+./runInstaller -silent -attachHome -local -noClusterEnabled -invPtrLoc $ORACLE_HOME/oraInst.loc -ignorePreReq ORACLE_HOME=$ORACLE_HOME ORACLE_HOME_NAME=Ora10204_TEST CLUSTER_NODES=test-01
5. Relink the code tree
find . -type l -exec ls -l {} \; | grep -i [oldsid] | awk '{print "rm -f "$9";ln -s "$11" "$9}'
execute the above command to check any softlinks are pointing to the old env. If yes then edit the output of the above command and run them.
Then,
oraenv ( enter SID at the prompt ). Check the above variables are set.
Make sure correct values are set for ORACLE_HOME, PATH & LD_LIBRARY_PATH
Make sure .SHLIB_PATH. variable is NOT set.
+ cd $ORACLE_HOME/bin
+ relink all
Make sure the file ./etc/oraInst.loc., ./var/opt/oracle/oraInst.loc. & $ORACLE_HOME/oraInst.loc. has the following entries. If not modify the file and save.
inventory_loc=/oracle/product/oraInventory
inst_group=dba
2. Clone the code tree
+ cd $ORACLE_HOME/oui/bin
+ ./runInstaller -silent -clone -invPtrLoc $ORACLE_HOME/oraInst.loc -ignorePreReq ORACLE_HOME=$ORACLE_HOME ORACLE_HOME_NAME=Ora10204_TEST ORACLE_HOST_NAME=test-01
!!! Please wait until the command is successful. Do not interrupt. !!!
Please check for .cloning is successful. message and will display message to run
.root.sh.. Sometime it may wait for you see this message. Press .enter. to get
the .command prompt..
Run the following ,
+ cp /oracle/product/10.2.0.4/
+sudo /oracle/product/10.2.0.4/
Accept the default options for the prompts and location of the files.
3. Detach the code tree from oracle central inventory
+ cd $ORACLE_HOME/oui/bin
+./runInstaller -silent -detachHome -local -noClusterEnabled -invPtrLoc $ORACLE_HOME/oraInst.loc -ignorePreReq ORACLE_HOME=$ORACLE_HOME ORACLE_HOME_NAME=Ora10204_TEST
4. Attach the code tree to oracle central inventory . This will add correct host to the inventory
+ cd $ORACLE_HOME/oui/bin
+./runInstaller -silent -attachHome -local -noClusterEnabled -invPtrLoc $ORACLE_HOME/oraInst.loc -ignorePreReq ORACLE_HOME=$ORACLE_HOME ORACLE_HOME_NAME=Ora10204_TEST CLUSTER_NODES=test-01
5. Relink the code tree
find . -type l -exec ls -l {} \; | grep -i [oldsid]
execute the above command to check any softlinks are pointing to the old env. If yes then edit the output of the above command and run them.
Then,
oraenv ( enter SID at the prompt ). Check the above variables are set.
Make sure correct values are set for ORACLE_HOME, PATH & LD_LIBRARY_PATH
Make sure .SHLIB_PATH. variable is NOT set.
+ cd $ORACLE_HOME/bin
+ relink all
Subscribe to:
Posts (Atom)
Oracle EBS integration with Oracle IDCS for SSO
Oracle EBS integration with Oracle IDCS for SSO Oracle EBS SSO? Why is it so important? Oracle E-Business Suite is a widely used application...
-
Enabling TLS in Oracle Apps R12.2 Here we would be looking at the detailed steps for Enabling TLS in Oracle Apps R12.2 Introduction: ...
-
R12.2. Services Start and Stop Procedure All components - Application (Middle Tier) START $INST_TOP/admin/scripts adstrtal.s...
-
Apps password change routine in Release 12.2 E-Business Suite changed a little bit. We have now extra options to change password, as well ...