Possible in 8i to rename an instance ?

I've got an instance that the suits say is a controversial
name.... say warrior.
They want it renamed to something 'business like' such as ;
lx101c or linux1 or something.
I couldn't find any cookbook on doing this, so I thought I'd ask
the crowd if anyone's had the pleasure.
By trying, failing, and falling back to square 1,
I know some of the things I need to keep in mind are :
1. /etc/oratab
2. initwarrior.ora vs. initlinux1.ora
3. tnsnames.ora
4. listener.ora
5. altering / changing the database name in the control files
somehow. This is the part that laughs at me.
If anybody can lend advice, I'd appreciate it.
- Freddy
[email protected]
null

Here is a copy of the notes that I've gleened off the web
in expectation of needing the info' myself. I've yet to
try them out (or tidy them up!) but they should get you
started,
colin.
>> Article on how to modify a database to run under a new
ORACLE_SID.
This entry describes how to change the ORACLE_SID for an
instance, without
recreating the database.
1. Shutdown the instance
2. Backup all control, redo, and data files.
3. Go through the .profile, .cshrc, .login, oratab,
tnsnames.ora,
(for net v2), and redefine the ORACLE_SID environment
variable
to a new value.
For example, search through disks and do a grep ORACLE_SID *
4. Change locations to the "dbs" directory
% cd $ORACLE_HOME/dbs
and rename the following files:
o init<sid>.ora (or use pfile to point to the init
file.)
o control file(s) This is optional if you do not rename
any
of the controlfiles, and the control_files parameter is
used.
The control_files parameter is set in the init<SID>.ora
file
or in a file it references with the ifile parameter.
Make
sure that the control_files parameter does not point to
old
file names, if you have renamed them.
o crdb<sid>.sql & crdb2<sid>.sql This is optional. These
are
only used at database creation.
5. Change locations to the "rdbms/admin" directory
% cd $ORACLE_HOME/rdbms/admin
and rename the file:
o startup<sid>.sql This is optional. On some
platforms,
this file may be in the "$ORACLE_HOME/rdbms/install"
directory.
Make sure that the contents of this file do not
reference old
init<SID>.ora files that have been renamed. This file
simplifies the "startup exclusive" process to start your
database.
6. To rename the database files and redo log files, you would
follow the
instructions in the RTSS bulletin 98863.723.
7. Change the ORACLE_SID environment variable to the new value.
8. Check in the "$ORACLE_HOME/dbs" directory to see if the
password
file has been enabled. If enabled, the file orapw<OLD_SID>
will
exist and a new password file for the new SID must be
created
(renaming the old file will not work). If orapw<OLD_SID>
does not
exist, skip to step 9. To create a new password file, issue
the following command as oracle owner:
orapwd file=orapw<NEWSID> password=?? entries=<number of
users to be
granted permission to start the database instance>
9. Start up the database and verify that it works. Once you
have done
this, shutdown the database and take a final backup of all
control,
redo, and data files.
10. When the instance is started, the control file is updated
with the
current ORACLE_SID.
>> Article on how to modify a database to run under a new
ORACLE_SID.
This entry describes how to change the "db_name" for a database
without
recreating the database.
1. Login to SQL*DBA or Server Manager
% sqldba
SQLDBA> connect internal
2. Type
SQLDBA> alter database backup controlfile to trace
resetlogs;
This will write in a trace file, the "CREATE CONTROLFILE"
command that
would recreate the controlfile as it currently exists.
3. Exit SQL*DBA
SQLDBA> exit
4. Change locations to the directory where your trace files are
located.
They are usually in the $ORACLE_HOME/rdbms/log directory. If
user_dump_dest is set in the init<SID>.ora file, then go to
the
directory listed in the user_dump_dest variable. The trace
file will
have the form "ora_NNNN.trc with NNNN being a number.
5. Get the "CREATE CONTROLFILE" command from the trace file and
put it in a
new file called something like "ccf.sql".
6. Edit the "ccf.sql" file
FROM: CREATE CONTROLFILE REUSE DATABASE "olddbname"
NORESETLOGS ...
TO: CREATE CONTROLFILE set DATABASE "newdbname" RESETLOGS
7. Save and exit the "ccf.sql" file
8. Rename the old control files for backup purposes and so they
are
not in the way of creating the new ones.
9. Edit the init<SID>.ora file so that db_name="newdb_name" .
10. Login to SQL*DBA or Server Manager
% sqldba
SQLDBA> connect internal Type:
11. Startup
SQLDBA> startup nomount
12. Run the "ccf.sql" script
SQLDBA> @ccf
13. Issue the alter database command
SQLDBA> alter database open;
14. Make sure the database is working.
15. Shutdown and backup the database.
Some said to this...
This doc is for v7, the problem that I am having is with v8. I
use basically
the same steps, except I do a reuse for the controlfile. The
problem that I
am having is not being able to reset the database id the new (in
v8) unique
identifier for each database. I don't know if taking the reuse
out of the
create controlfile script will be different because the reuse is
only
supposed to say reuse the file not any of the data within the
file, thereby
logically the dbid is stored in the data dictionary not the
control file.
>> Changing a D/B to run under a new ORACLE_SID
1. Shutdown instance
2. Backup all control, redo and data files.
3. Go thru the .profile, .cshrc, .login, oratab,
tnsnames.ora(for net v2),
and redefine the environment variable ORACLE_SID to a new
value.
ie search thru disks and do a grep ORACLE_SID *
4. Rename the following files in $ORACLE_HOME/dbs
. init<sid>.ora
(or use pfile to point to the init file.)
. control file(s)
This is optional if you don't rename any of the
controlfiles, and the
control_files parameter is used. control_files would be
set in the
init<sid>.ora file or in a file it references with the
ifile parameter.
Make sure control_files doesn't point to any old file
names, if you
renamed them.
. crdb<sid>.sql & crdb2<sid>.sql
This is optional. These are only used at database
creation.
5. Rename the following files in $ORACLE_HOME/rdbms/admin
. startup<sid>.sql
This is optional.
On some platforms, this file may be in
$ORACLE_HOME/rdbms/install
Make sure the contents of this file do not reference old
init<sid>.ora
files that have been renamed. This file simplifies the
process to
"startup exclusive" your database.
6. To rename the database files and redo log files, you would
follow the
instructions in the bulletin: 98863.723.
7. Change the ORACLE_SID environment variable to the new value.
8. start up database and verify it works. Once you have done
this, shutdown
the database and take a final backup of all control, redo
and data files.
9. When the instance is started, the control file gets updated
with the
current ORACLE_SID.
>> Changing the dbname for a database.
1. sqldba
2. connect internal
3. alter database backup controlfile to trace;
This will write in a trace file, the CREATE CONTROLFILE
command that
would recreate the controlfile as it currently exists.
4. Exit and go to the directory where your trace files are
located.
They are usually in the $ORACLE_HOME/rdbms/log directory.
If user_dump_dest is set in the initSID.ora, then go to the
directory
listed in the user_dump_dest variable.
The trace file will have the form "ora_NNNN.trc with NNNN
being a number.
5. Get the CREATE CONTROLFILE command from the trace file and
put it in a
new file called something like ccf.sql.
6. Edit the ccf.sql file and modify the CREATE CONTROLFILE
command.
Just change the word "REUSE" to "SET",and "NORESETLOGS" to
"RESETLOGS",
and modify the dbname.
Old line:
CREATE CONTROLFILE REUSE DATABASE "olddbname"
NORESETLOGS ...
New line:
CREATE CONTROLFILE set DATABASE "newdbname" RESETLOGS
Then save the ccf.sql file.
7. Rename the old control files for backup purposes and so they
are not in
the way of creating the new ones.
8. Edit initSID.ora so that db_name="newdbname".
9. sqldba
10. connect internal
11. startup nomount
12. @ccf
13. alter database open;
14. Make sure the database is working. Shutdown and backup the
database.
null

Similar Messages

  • Is it possible to rename MSSQL Instance Name

    Hi everyone,
    I have two sql instances installed in two node failover cluster mode, i want to rename one of my sql instance, is it possible to change instance name ,
    if possible please suggest the way how i can rename the instance name. 

    Hello,
    Please read the following article.
    https://msdn.microsoft.com/en-us/library/ms178083.aspx
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • "Sorry, we couldn't find your file. Is it possible it was moved, renamed or deleted?" Error with SharePoint 2013 and Office Web Apps

    When I try to open any docx file from the SharePoint it opens on web via office web apps, and when I choose edit document > edit in Word , Microsoft word show me this error "Sorry, we couldn't find your file.
    Is it possible it was moved, renamed or deleted?" followed by half a url to the end users document on onedrive.
    I noted that this problem only happens with Docx files, with specific users  and only when you try to open the Docx file from OneDrive folder ( SkyDrive ) which is hosted in the MySite.
    Any Help?

    Hi,
    According to your post, my understanding is that you failed to open the Docx file from OneDrive folder ( SkyDrive ).
    Since this problem only happens with Docx files, with specific users, I recommend to delete and recreate the personal site for the specific users.
    More information:
    Configure My Sites in SharePoint Server 2013
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Is it possible to delete or rename images or videos on the Touch?

    Is it possible to delete or rename images or videos on the Touch?

    it is posibile for videos and pictures too, I found it the other day on http://www.ipodtouchtricks.blogspot.com just search somewhere on that blog it will guide you step by step.

  • Is it possible to login into the Java instance without password's input, using only my Windows workstation authorization?

    Dear Sirs,
    I try to do an authorization to my NW 7.3 Java instance through my Windows domain authorization.
    I done:
    1) Create connection to LDAP-server and tested it.
    2) Add windows domain certificate to TrustedCAs
    3) Configure SPnego
    Now, I can to login in my NW7.3 Java instance with my windows password, but however I must to input password when I open NW7.3 Java homepage.
    Is it possible to login into the Java instance without password's input, using my windows workstation login/password?
    What I have to do for that?
    I use Windows XP on my workstation and IE 8.0.6 & Chrome 38.0.2125.
    Best regards,
    Alexey Lugovskoy

    Please check
    Using Kerberos Authentication on SAP NetWeaver AS Java - User Authentication and Single Sign-On - SAP Library (NW7.3)
    Using Kerberos Authentication for Single Sign-On - User Authentication and Single Sign-On - SAP Library (NW7.0)

  • Rename RAC-Instances in 11.2.0.2

    Hi,
    I have two Nodes RAC-Systems Version 11.2.0.2 on Linux Redhat 5.4 X86-64.
    + Node names stb, dwh
    + Database name : RAC
    + Instance-Name 1 : RAC1 on stb
    + Instance-Name 2 : RAC2 on dwh
    After executing the following steps:
    + Delete Instance RAC2 with dbca on dwh
    + Convert Instance RAC1 to Instance RACONE_1 (RAC one node)
    + Relocate Instance RACONE_1 to dwh
    + Convert Instance RACONE_1 (RAC one node) to RACONE ( normal RAC )
    + Add Instance RACONE2 to stb
    Since yesterday after shutdowning the corresponding instance I have tried unsuccessfully to rename the instance RACONE2 resp. RACONE to the previous names RAC1 & RAC2 with srvctl modify on the node with the running instance.
    Can any expert help me?
    Thanks
    hqt200475
    Note: http://download.oracle.com/docs/cd/E11882_01/rac.112/e16795/srvctladmin.htm#i1009714 shows:
    srvctl modify instance -d db_unique_name -i instance_name
    {-n node_name | -z}
    Notes:
    * You cannot use this command to rename or relocate a running instance.
    * This command is only available with Oracle Clusterware and Oracle RAC.

    Hi,
    + srvctl stop instance -d -i RACONE2
    + srvctl modify instance -d RAC -i RAC1 -n stb
    Here I have the problem:
    I don't know how to change the name RACONE2 to RAC1 and RACONE to RAC2.
    Do you know the answer?Never tried to change the name of the instance in RAC 11.2.
    But in earlier versions I always perform the following steps to update OCR after changing INSTANCE_NAME in Database (SPFILE).
    We needs to invoke SRVCTL to remove and again add the database information to OCR.
    e.g
    *****before the rename*****
    srvctl stop database -d
    srvctl remove instance -d -i
    srvctl remove instance -d -i
    (repeat above command for each instance as needed)
    *****and after the rename*****
    srvctl add instance -d -i -n
    (repeat above command for each instance as needed)Regards,
    Levi Pereira
    Edited by: Levi Pereira on Jan 30, 2011 10:36 PM

  • Rename asm instance in RAC

    Hello,
    ClusterWare 11.2.0.3 + RAC db same version .
    I need to rename one of the ASM instances
    How can this be done ?
    the situation is as follows , I needed to take one of the server out of the cluster and then bring him back in .
    when I have added him , he got a new ASM instance name (was ASM1 now it got ASM3 , 2 node rac) ,
    thanks
    S.

    Sahar wrote:
    ClusterWare 11.2.0.3 + RAC db same version .
    I need to rename one of the ASM instancesNo you don't. Supply reasons and justification for wanting to changes the SID of an ASM instance,
    the situation is as follows , I needed to take one of the server out of the cluster and then bring him back in .
    when I have added him , he got a new ASM instance name (was ASM1 now it got ASM3 , 2 node rac) ,So? What is wrong with an instance called +ASM3 in a 2 node RAC? How does that now reduce and impair cluster functionality?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Is it possible to submit an abap oo instance?

    Hi experts,
    I need to execute the process of creating 300.000 materials associated with 15 centres in background.
    Is this possible? Apparently, I can't specify the instance of the class to the SUBMIT declarative... I would appreciate your responses.
    Lots of thanks,
    Javier

    I don't know of any way to execute the instance method in the background, but I think you could call a custom FM in background. You could serialize object instance into XML (using CALL TRANSFORMATION statement) and pass the resulting XML string to the custom FM. In the FM, you can then use the CALL TRANSFORMATION statement to create an object from the XML string. Then you can call the method of the reconstructed instance.
    Here's sample code (that I haven't tested, but should get you going in the right direction)
    CLASS cl_class DEFINITION.
      PUBLIC SECTION.
      METHODS do_action.
      INTERFACES if_serializable_object. " <-- This is needed for CALL TRANSFORMATION to work!
    ENDCLASS.
    CLASS cl_class IMPLEMENTATION.
      METHOD do_action.
    *   <--Do whatever the method needs to do here-->
      ENDMETHOD.
    ENDCLASS.
    FORM do_method.
      DATA: lr_instance TYPE REF TO cl_class.
      DATA: l_class_xml TYPE string.
      CREATE OBJECT lr_instance
    * <--Do whatever you need to do to prepare instance here-->
      CALL TRANSFORMATION id SOURCE class = lr_instance RESULT XML l_class_xml.
      CALL FUNCTION 'CALL_METHOD' STARTING NEW TASK
        EXPORTING
          p_class_xml = l_class_xml.
    ENDFORM.
    FUNCTION call_method.
    * IMPORTING
    *   p_class_xml TYPE string.
      DATA: lr_instance TYPE REF TO cl_class
      CALL TRANSFORMATION id SOURCE XML p_class_xml RESULT class = lr_instance.
      CHECK lr_instance IS BOUND.
      lr_instance->do_action( ).
    ENDFUNCTION.

  • Oracle 9i rename db instance

    Hi all,
    Just inquiring if anyone has used the NID utility successfully to rename a database instance.
    This is on a windows env.
    Thanks

    Check below:
    [http://www.oracle-base.com/articles/9i/DBNEWID.php]
    [http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96652/ch14.htm#1656]
    -Anantha

  • Is it possible to isolate services in different instances of TMJAVASRV

    Looking through the TMJAVASRV doc I don't see how one can have different instances of TMJAVASRV advertising different services. Is this possible?

    Hi,
    Absolutely.  Each TMJAVASVR can have its own configuration file that defines the services and other characteristics of the Java server.  Multiple TMJAVASVR servers can share the same configuration file or each have their own.
    Regards,
    Todd Little
    Oracle Tuxedo Chief Architect

  • Possible to copy or rename JDBC datasources in WLS 9.2 ?

    Hello All,
    We are going to be migrating our 9.2.3 environments to from an Oracle 9i database to Oracle 10g Cluster. We currently utilize approximately 20 datasources for all of our applications. Currently all of our applications each use one JDBC datasource, eg AppDS. However rather then modify our application configurations, we are going to create 2 new datasources, e.g. AppDS1, and AppDS2, along with a new Multi-datasource, named AppDS. This requires us to delete the original datasource AppDS so it can be replaced with a Multi-Datasource.
    This would be so much easier if A) we could rename the existing datasource rather then delete it (i.e. rename AppDS to AppDS1), and B) copy datasources (i.e. copy AppDS1 to AppDS2.) Unfortunately there are no such options in the WLS console. Is it possible to do this modifiying the config.xml without my changes getting overwritten ? Would I need to propagate the config.xml and the newly created jdbc config files to the other server in our cluster or will WLS do it for me ? The copy feature (aka 'clone') was in WLS 8.1 and it is sorely missed in 9.2 !
    -Joe

    Thanks, I thought I could do that but have had mixed results with the servers starting up, most likely due to typos on my part. Does Weblogic expect a standard naming convention for the XML files in the config/jdbc directory if I create a new datasource by cutting/pasting inside the config.xml ?

  • Renaming multiple instances on stage

    Hi there,
    I was wondering whether there was a way to rename instances that are physically on the stage other than the laborious clicking on the symbol and then changing it in the properties panel.
    For example, I have thirty buttons in one frame with the names: s1b1, s1b2, s1b3, s1b4 etc to s1b30.
    I've copied and pasted these to a separate frame, where I now want their instance names to be s2b1, s2b2, s2b3, s2b4 ...
    Ideally what I'm looking for is a way to highlight all the buttons I need to change the name of, and then do a find and replace on the instance name for 's1' to 's2'.
    Is there any way to automate this process or am I in for the long haul? :-(
    Thanks in advance
    Alex

    Found the answer, so will post it here in case it's any use to anyone else.
    Someone (MichaelxxOA) very helpfully wrote a Flash command script that does this.
    http://www.actionscript.org/forums/showthread.php3?t=111969
    var removeString = "s1"; // Find
    var replaceString = "s2"; // Replace
    var items = fl.getDocumentDOM().selection;
    for (var i=0; i<items.length; i++) {    var pos = items[i].name.indexOf( removeString  );
    if ( pos != -1 )    {       items[i].name = items[i].name.split( removeString ).join( replaceString );
    In a text editor, save this as a .jsfl file called InstanceRenamer (or something) in your Flash / Common/ First Run / Commands folder.
    Then select the buttons you wish to find replace on in Flash and run this command from the Commands panel in Flash.
    Just change the first two lines in a text editor everytime you want to change the find/replace terms and run again.

  • Is it possible to set character set at instance level?

    hi all,
    I have some confusion.
    say my database character set is AL32UTF8.
    and i want tio set charcter set of instance is WE8MSWIN1252
    Is it passible to set character set at instance level?
    Please reply with yes or No or why?
    Thanks & Regards,

    Hi,
    It's DataBase Level. One best example would be when you try to change the character or characterset conversion by using "Csscan" you can check the log or report. Which can guide what the things are happening. Instance - I think you might be referring to "Session".
    - Pavan Kumar N
    - ORACLE OCP - 9i/10g
    https://www.oracleinternals.blogspot.com

  • Rename asm instance name

    Hi gurus,
    i just install RAC (11.2.0.3 both instances) into linux 5.2
    I don't know why but node 1 has ASM2 and node 2 has ASM1. How can i change it to node 1 --> +asm1 and node 2 --> asm2?
    I only found that document in google:
    http://blog.csdn.net/tianlesoftware/article/details/6359415
    but not sure if i should do "srvctl remove asm -n <node name>" is it ok?
    another issue is that each instance has his own spfile in filesystem instead asm, how can i combine both?
    thanks

    hi mseberg,
    i checked this web but i haven't the asm parameters
    ASMn.instance_number
    ASMn.asm_diskgroups
    in the pfile.
    i found a new information looking at google :
    # crsctl modify res ora.asm -attr "GEN_USR_ORA_INST_NAME@SERVERNAME(hostname)"=ASM_SID
    soon as why can try it i post if it worked.
    If someone have any information or idea, he is welcome
    Edited by: Me_101 on 05-nov-2012 8:33

  • Is it possible to recover by renaming a stdby datafile for space issues

    Hi All,
    In one of the mount point in standby database, i dont have enough space and the mrp is stopped with the below error.
    ORA-01237: cannot extend datafile 66
    My question is, can i follow the below steps to recover the standby.. I have all the archive logs in standby and there is no archive log gap.
    I have space in another mount point also in standby.
    1. shutdown the standby db and copy the afftected datafile from the current mount point to the mount point which i have space.
    2. rename the datafile
    3. start the mrp process again.
    Can i follow the above steps?
    DB version:10.2.0.5
    OS:AIX

    Hi,
    DB_FILE_NAME_CONVERT you need to set when in process of duplicate from primary to standby.
    Here no need of this parameter, make sure STANDBY_FILE_MANAGEMENT is set to AUTO, that should be fine.

Maybe you are looking for

  • Report stock at vendor

    Dear All , Whr can i get report for DATE WISE stock at vendor ? MBLB : no date selextionj criteria is there . Regards

  • Error while starting jdev

    Hello All, I am using jdev 11.1.1.6 I am getting error below [11:32:49 AM] Info: Namespace '/oracle/adf/portlet' is mapped to deploy-target metadata-store-usage 'WebCenterFileMetadataStore' in adf-config.xml but no metadata from the namespace is incl

  • Can I connect the nano 7 to ih15

    Is there an adapter available to connect the nano 7 generation to the IHome 15?

  • Mainstage Ultrabeat into Logic Pro 8?

    Hi, Does anyone know how I could Export a Mainstage "Ultrabeat" (not just a loop but say a five minute improvision jam) into Logic Pro 8, so I could improvise over it in Logic Pro 8? Especially the rhythm combinations. Thanks!

  • Scores incorrect in LMS

    I entered this topic several weeks ago and didn't get an answer. So, I thought I would try again. We have several quizzes that were created in Captivate 1. We recently randomized the questions using Captivate 3. Everything works correctly in Captivat