Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Changing unix system clock when Oracle database is running. Oracle
  • Finding Oracle Patches with opatch Oracle
  • get_ratio.sql get the ratio of users from v$session and this uses CASE-WHEN-THEN clause Oracle
  • Finding last recovered file on DR and remove all chanracters before any “/” Linux/Unix
  • get_vmstat.ksh for Solaris Oracle
  • S3 Basic info AWS
  • Optimizer SORT Operations Oracle
  • TABLE SIZING WITH DB_BLOCK ARCHITECTURE Reference : Metalink note : 10640.1 Oracle
  • Mutating Table Error while using database trigger Oracle
  • ext#.sql Oracle
  • Ports used by Oracle Software Oracle
  • sid_wise_sql.sql Further explaination Oracle
  • Validating ORACLE_SID againt oratab file. Linux/Unix
  • In Addition to previous note, following grants needed on PERFSTAT user. Oracle
  • To find explain plan for a statement that occurred in past. Oracle

Changing Instance Name ( No DB_NAME)

Posted on 11-Jun-2007 By Admin No Comments on Changing Instance Name ( No DB_NAME)

Note

Instance name : represented by $ORACLE_SID

database name : represented by DB_NAME init.ora parameter.

You can change instance name to any name with following requirements:

Here we are chaning instance name from AWRTEST1 to PARESH.

Exising setup:

ORACLE_SID=AWRTEST1

Step1:

$ export ORACLE_SID=PARESH;

Step2:

Create password file for new instance PARESH.

$ cd $ORACLE_HOME/dbs

$ orapwd file=orapwPARESH entries=10 password=oracle

Step3:

Start New instance. You must specify parameter file as PFILE or need to create pfile link

in $ORACLE_HOME/dbs for this new instance.

$ sqlplus “/ as sysdba”

SQL> startup pfile=’/db1/home/oracle/app/oracle/admin/AWRTEST1/pfile/initAWRTEST1.ora’

Then insance will be started with new name. All backgraound processes have instance name specific postfix.

12:53:21 @PARESH:-> !ps -ef | grep PARESH

oracle 9550 1 1 12:53:11 ? 0:02 ora_mmon_PARESH

oracle 9481 1 0 12:49:58 ? 0:00 ora_s000_PARESH

oracle 9477 1 0 12:49:58 ? 0:01 ora_cjq0_PARESH

oracle 9465 1 0 12:49:57 ? 0:00 ora_dbw0_PARESH

oracle 9467 1 0 12:49:57 ? 0:00 ora_dbw1_PARESH

and so onnnnnnn………….

12:52:44 @PARESH:-> select * from v$database;

DBID NAME CREATED RESETLOGS_CHANGE# RESETLOGS PRIOR_RESETLOGS_CHANGE# PRIOR_RES LOG_MODE

——— ——— ——— —————– ——— ———————– ——— ————

CHECKPOINT_CHANGE# ARCHIVE_CHANGE# CONTROL CONTROLFI CONTROLFILE_SEQUENCE# CONTROLFILE_CHANGE# CONTROLFI OPEN_RESETL

—————— ————— ——- ——— ——————— ——————- ——— ———–

VERSION_T OPEN_MODE PROTECTION_MODE PROTECTION_LEVEL REMOTE_A ACTIVATION# SWITCHOVER# DATABASE_ROLE

——— ———- ——————– ——————– ——– ———– ———– —————-

ARCHIVELOG_CHANGE# ARCHIVEL SWITCHOVER_STATUS DATAGUAR GUARD_S SUPPLEME SUP SUP FOR PLATFORM_ID

—————— ——– ——————– ——– ——- ——– — — — ———–

PLATFORM_NAME

—————————————————————————————————–

RECOVERY_TARGET_INCARNATION# LAST_OPEN_INCARNATION# CURRENT_SCN FLA SUP SUP DB_UNIQUE_NAME

—————————- ———————- ———– — — — ——————————

STANDBY_BECAME_PRIMARY_SCN

————————–

1.870E+09 AWRTEST1 24-MAY-06 11766618 24-MAY-06 2352360 07-NOV-05 NOARCHIVELOG

26714265 26694297 CURRENT 24-MAY-06 18247 26708945 11-JUN-07 NOT ALLOWED

24-MAY-06 MOUNTED MAXIMUM PERFORMANCE UNPROTECTED ENABLED 2.368E+09 2.368E+09 PRIMARY

0 DISABLED NOT ALLOWED DISABLED NONE NO NO NO NO 2

Solaris[tm] OE (64-bit)

2 2 0 NO NO NO AWRTEST

12:53:12 @PARESH:-> select * from v$instance;

INSTANCE_NUMBER INSTANCE_NAME HOST_NAME VERSION

————— —————- —————————————————————- —————–

STARTUP_T STATUS PAR THREAD# ARCHIVE LOG_SWITCH_ LOGINS SHU DATABASE_STATUS INSTANCE_ROLE ACTIVE_ST

——— ———— — ——— ——- ———– ———- — —————– —————— ———

1 PARESH tuningdb21 10.1.0.4.0

11-JUN-07 OPEN NO 1 STOPPED ALLOWED NO ACTIVE PRIMARY_INSTANCE NORMAL

Oracle, SQL scripts

Post navigation

Previous Post: Find nth max and min.
Next Post: Finding locked objects

Related Posts

  • How to specify 2 arch location to avoid any kind of DB hanging. Oracle
  • Another Tuning Article for subheap of shared pool Oracle
  • sess_server.sql Oracle
  • Identical Dblink Issue… Oracle
  • FGA Part-I Oracle
  • Create type and Grant on it. Oracle

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (392)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (0)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (341)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • SQL Server Vs Oracle Architecture difference25-Jul-2025
  • SQL Server: How to see historical transactions25-Jul-2025
  • SQL Server: How to see current transactions or requests25-Jul-2025
  • T-SQL Vs PL/SQL Syntax25-Jul-2025
  • Check SQL Server edition25-Jul-2025
  • Checking SQL Server Version25-Jul-2025
  • Oracle vs MYSQL Architecture differences (For DBAs)24-Jul-2025
  • V$INSTANCE of Oracle in MYSQL24-Jul-2025
  • Day to day MYSQL DBA operations (Compared with Oracle DBA)24-Jul-2025
  • MYSQL and Oracle Comparison for Oracle DBA24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Jai Shree Ram Oracle
  • Library cahe Latches and internal explaination Oracle
  • find the files that are 1 day old. Linux/Unix
  • Jai Shree Ram Oracle
  • TOP-N Sql to find Nth max or Top N rows Oracle
  • Processes parameter and its dependencies on OS kernel parameters Linux/Unix
  • How to hide author name in WordPress BLOG PHP/MYSQL/Wordpress
  • Display the top 5 salaries for each department using single SQL Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme