How do I rename an XE database on a Windows 2003 Server?

Ok. I'm attempting to rename a freshly installed XE database on a Windows 2003 Server. It looks like there is no getting around the fact that the database gets named "XE" during installation. Because there could potentially be multiple installations of XE in my organization, I thought it'd be a good idea to disambiguate the installations by renaming them to match their function. In this particular case, I'd like to rename the database to "CTXMGMT". It will be a data repository for our Citrix farm administration programs.
Here is what I've performed thus far:
1. Installed Oracle 10g XE on one of our Windows 2003 Server, Standard Edition machines.
2. Verified that the installation was performed correctly by making sure the 'Database Home Page' loads correctly through Internet Explorer, and by performing a few Select statements on the database (i.e. select name from v$database;)
* * I then began following instructions from this document (http://www.utexas.edu/its/unix/reference/oracledocs/v92/B10501_01/server.920/a96652/ch14.htm#1004735) to rename the database. Note: I'm only trying to change the name of the database, not the ID.
3. Shutdown the database
4. Opened the database in MOUNT mode
5. Ran the NID utility. Here's the actual input/output to/from the NID utility:
C:\oraclexe\app\oracle\product\10.2.0\server\BIN>nid target=sys/manager@xe DBNAME=CTXMGMT SETNAME=YES
DBNEWID: Release 10.2.0.1.0 - Production on Mon Jul 10 15:55:10 2006
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to database XE (DBID=2476560070)
Connected to server version 10.2.0
Control Files in database:
C:\ORACLEXE\ORADATA\XE\CONTROL.DBF
Change database name of database XE to CTXMGMT? (Y/[N]) => Y
Proceeding with operation
Changing database name from XE to CTXMGMT
Control File C:\ORACLEXE\ORADATA\XE\CONTROL.DBF - modified
Datafile C:\ORACLEXE\ORADATA\XE\SYSTEM.DBF - wrote new name
Datafile C:\ORACLEXE\ORADATA\XE\UNDO.DBF - wrote new name
Datafile C:\ORACLEXE\ORADATA\XE\SYSAUX.DBF - wrote new name
Datafile C:\ORACLEXE\ORADATA\XE\USERS.DBF - wrote new name
Datafile C:\ORACLEXE\ORADATA\XE\TEMP.DBF - wrote new name
Control File C:\ORACLEXE\ORADATA\XE\CONTROL.DBF - wrote new name
Instance shut down
Database name changed to CTXMGMT.
Modify parameter file and generate a new password file before restarting.
Succesfully changed database name.
DBNEWID - Completed succesfully.
6. After running the NID utility from a separate DOS Window, I attempt to shutdown the newly renamed database from the first DOS Window I used in steps 3 & 4 from above (i.e. to shutdown the database and then start it in MOUNT mode) but I receive this error:
ORA-03113: end-of-file on communication channel
This is somewhat expected since the SQL*Plus connection in this window probably had "the bottom pulled out from under it" when the database was renamed.
However at this point I'm unsure about what state the database is in. Is it down? Is it up? Logic would sort of dictate that the database was left in the MOUNT state, which is the state it was in when the database name was changed. However, the only way I'm able to get back in to the database is by doing the following
a. Opened a new DOS window
b. entered "set ORACLE_HOME=C:\oraclexe\app\oracle\product\10.2.0\server"
c. entered "set ORACLE_SID=XE"
d. entered " sqlplus "/ as sysdba" "
e. at SQL> prompt, entered "startup"... which produces:
SQL> startup;
ORACLE instance started.
Total System Global Area 285212672 bytes
Fixed Size 1287016 bytes
Variable Size 92277912 bytes
Database Buffers 188743680 bytes
Redo Buffers 2904064 bytes
ORA-01103: database name 'CTXMGMT' in control file is not 'XE'
SQL>
From here I don't know what to do. According to the ORA-01103 error message, it looks like I need to change the database name in the control file to "CTXMGMT", but I'm not sure how I should go about that. The control file is a binary file, so I can't just open it up with Notepad and type in a new database name.
I suspect that even once that is done that the listener.ora (and maybe the tnsnames.ora file?) will have to be edited to include the new "CTXMGMT" name, but I'm not sure how exactly those files should look to incorporate the new database name.
Also, would the names of services have to be changed in Windows as well? (i.e. Would the Windows service named "OracleServiceXE" have to be renamed to "OracleServiceCTXMGMT" ?)
In short, I really just need to know how to rename an XE database on Windows appropriately. The steps described above represent as far as I've gotten. If I'm going about it incorrectly could someone shed some light on the correct steps to follow? The more detailed the better. Thanks.
- Gary

Okay, I've....
1) Reinstalled XE, to start from scratch
2) Went in to SQL*Plus, did a "create pfile from spfile;"
3) Shutdown the database
4) Started it up in MOUNT mode
5) Ran NID, to change the database name from 'XE' to 'CTXMGMT'
6) Shutdown the database again
7) Edited the pfile to change the database name (i.e. "db_name='CTXMGMT'")
8) Started up the database
And that worked! So that's good... but now my question is:
How do I change the SID for the database? Currently, the instance name for the database is still 'XE'....
SQL> select instance_name
2 from v$instance;
INSTANCE_NAME
xe
I'd like it so a connection could be made to the database with the tnsnames.ora file looking like this:
CTXMGMT =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(Host = rodin)(Port = 1521))
(CONNECT_DATA = (SID = CTXMGMT))
Could someone explain how to get the database to this state? Thanks.
- Gary

Similar Messages

  • Problem Oracle 10g database Installation on Windows 2003 Server

    Hi All,
    I am trying to face some problem to install oracle 10g database on windows 2003 server with service pack 2. Once I start to installation it give me an error "Error in writing to directory 'c:\documents and settings\administrator\local settings\temp\orainstall2004xxx'. Please ensure that this directory is writable and has at least 45MB of disk space. Installation cannot continue"
    I double-insured that there is enough disk-space and I am also in the Administrators-Group.
    Please guide me for the above problem although I have done oracle 9i database installation with the same configuration.
    Regards
    Muhammad Shoaib

    898118 wrote:
    Hi All,
    I am trying to face some problem to install oracle 10g database on windows 2003 server with service pack 2. Once I start to installation it give me an error "Error in writing to directory 'c:\documents and settings\administrator\local settings\temp\orainstall2004xxx'. Please ensure that this directory is writable and has at least 45MB of disk space. Installation cannot continue"
    I double-insured that there is enough disk-space and I am also in the Administrators-Group.
    Please guide me for the above problem although I have done oracle 9i database installation with the same configuration.
    Regards
    Muhammad ShoaibOracle really doesn't like to be installed into directories with spaces in their names.

  • How to install 11.5.10 on VMWare with Windows 2003 Server?

    Need help on installing 11.5.10 on VMWare which runs Windows 2003 Server.
    I've XP Pro laptop with 2GB RAM and 80GB HDD and external HD with 250GB. Gathered all required s/w for installation.
    The Win 2003 Server VMWare is sitting on the external HD. I want to install pre-req s/w along with 11.5.10 on the VMWare.
    (1) How do I make the laptop's CD drive and HD visible to the VMWare?
    (2) Can I use the XP laptop HD as staging area and install on VMWare on external HD?
    (3) What are the disadvantages/risks of using the external HD for both staging and actual installation?
    Any help is appreciated.
    FYI - we already have an Oralce 11.5.9 on VMWare. All services are up and running. Able to logon to SQL*Plus and EBS home page. The issue is, we are not able to connect to this Oralce VMWare image from other VMWare image(Siebel), ie, if we do a telnet to oracle vmware image connection establishes and closes immediately. No clue on why this is happening. But this is not happening when we did telnet from a vmware image(plain win 2003 server) that does not have Siebel. All vmware images work fine individually.
    Any inputs?
    Thx,
    Jags

    Need help on installing 11.5.10 on VMWare which runs Windows 2003 Server.
    I've XP Pro laptop with 2GB RAM and 80GB HDD and external HD with 250GB. Gathered all required s/w for installation.
    The Win 2003 Server VMWare is sitting on the external HD. I want to install pre-req s/w along with 11.5.10 on the VMWare.
    (1) How do I make the laptop's CD drive and HD visible to the VMWare?
    (2) Can I use the XP laptop HD as staging area and install on VMWare on external HD?
    (3) What are the disadvantages/risks of using the external HD for both staging and actual installation?
    Any help is appreciated.
    FYI - we already have an Oralce 11.5.9 on VMWare. All services are up and running. Able to logon to SQL*Plus and EBS home page. The issue is, we are not able to connect to this Oralce VMWare image from other VMWare image(Siebel), ie, if we do a telnet to oracle vmware image connection establishes and closes immediately. No clue on why this is happening. But this is not happening when we did telnet from a vmware image(plain win 2003 server) that does not have Siebel. All vmware images work fine individually.
    Any inputs?
    Thx,
    Jags

  • Install oracle database 9i on windows 2003 server

    I have installed a oracle 11g on windows 2003 server, but yo want install oracle 9i same machine, I can?
    exist any problem? i think that not possible

    859811 wrote:
    I have installed a oracle 11g on windows 2003 server, but yo want install oracle 9i same machine, I can?
    exist any problem? i think that not possibleOracle V9 was obsoleted & de-supported before Windows 2003 was ever released.
    It may work or it may not work.
    In any case you are solely responsible for the results.

  • How to monitor oracle 11g database sessions on Windows 2008 server?

    Hi Experts
    How to monitor the Oracle 11g database sessions on Windows 2008 server (other than SQL Developer tool), which procedure or query is taking more time with Java application.

    Recently i found this tool- myorasql on the net to monitor the performence of database, easy to setup and check the performence.  i never tested it but seems impresive.  It is free and i think it would be use ful to you.
    http://myorasql.com/
    You can also use Quest - Toad or sqlplus if you are very good at sql commands and all dictionary tables or OEM/EM grid if it is configured .

  • Moving oracle 9i database from windows 2000 to windows 2003 server

    hi everybody,
    plz provide me a solution how to move oracle 9i database from windows 2000 server to windows 2003 server with step by step and also with commands plz as i am very new to oracle
    thanks in advance
    suresh

    Install 9i on windows 2003 server and patch to the same level as the Oracle on Windows 2k
    Shutdown and make a cold backup of your old database. That includes datafiles, controlfiles, redo files, init file (spfile)
    Copy and put these files to the exact same directory structure/location, for example if old file is under D:\oradata\mysid\ then the file on new file should be under same directory. (If you are using Network Storage that make things easier, just mapping to the same drive letter.)
    Also make sure archive log dest and all dump dest directories are created. You don't have to copy all old logs and dump files over.
    Use oradim to create a new service for the database instance
    http://www.psoug.org/reference/oradim.html
    Set proper ORACLE_HOME, ORACLE_SID envionment varibles
    Run netca to configure listener, actually copy listener.ora and tnsnames.ora to $ORACLE_HOME\network\admin will do
    Try to start the database

  • How to Install 64-bit "Generic / Text Only" print driver on a 32-bit Windows 2003 Server?

    Hi All,
    In a nutshell, I need to Install the 64-bit Generic / Text Only print driver on a 32-bit Windows 2003 Server’s “Generic / Text Only 32-bit print queue.
    The problem is that there is no Driver-Disk to get the drivers. I’ve been able to isolate 14 files related to the 64 bit drivers from a Windows 7 x64 computer and copy them to a temp folder on the Windows 2003 x32 server. When I try to add the 64 bit driver
    to the Windows 2003 x32 server,  it wants a *.inf file, which I don’t have and can’t find.
    Because Microsoft will no longer support Windows XP, my client is replacing all of their Point-of-Sale Windows XP x32 systems with Windows 7 x64. They use Terminal Services (Remote Desktop) to connect to a Windows 2003 x32 server to use the POS system. The
    POS software redirects LPT1 back to the local Generic / Text Only printer. This works great for XP x32.
    When we use the Terminal Services POS software on the new Windows 7 x64 system, none of the labels print out because it’s redirected in 32-bit back to the local Windows 7 x64 Generic / Text Only 64-bit printer.
    This will be a huge issue for me if I can’t get this to work.
    Thanks in advance for any suggestions and help! -Rob

    those may be helpful...
    http://social.technet.microsoft.com/Forums/en-US/a129f49a-0216-41f0-b190-3efb46fbb8ac/generic-text-only-driver-on-windows-2008-server-r2?forum=winserverprint
    http://blogs.technet.com/b/yongrhee/archive/2009/09/14/how-to-add-64-bit-print-drivers-on-32-bit-windows-server-2003-or-windows-server-2008-print-server.aspx
    Best,
    Howtodo

  • [b]Error in installation database in Windows 2003 server[/b]

    Hi, I have a problem. I am trying to install a database Oracle Enterprise Edition 10.1.0.2.0 in a machine that has Windows 2003 Server. On having finished the installation and begin the Database Configuration Assistant appears the error ora-12546 TNS permission denied. In the file listener.log
    the following messages appear:
    TNS-12500: TNS:listener failed to start a dedicated server process
    TNS-12546: TNS:permission denied
    TNS-12560: TNS:protocol adapter error
    TNS-00516: Permission denied
    32-bit Windows Error: 5: Input/output error
    In the alert.log appear:
    OER 7451 in Load Indicator : Error Code = OSD-04500: illegal option specified O/S-Error: (OS 1) Incorrect function. !
    I install in local mode, not remote and using Administrator user.
    Help me, please!
    Regards
    Carlos

    Hello,
    There is a note in SAP that indicates that EMT64/x64 is not compatible with Oracle 9.2 (nota 12546) There is Oracle's FAQ that indicates Oracle's versions and Windows that he(she) supports EMT64.
    http://www.oracle.com/technology/tech/windows/faq.html#x86-64
    Since you can see it(he,she) indicates that Oracle 9.2 is supported in Windows 32 bits with technology EMT64
    And that alone the version 10g 2 be reread it(he,she) is compatible with Windows 2003 SEVER 64 bits with technology EMT64
    I hope that this costs(suits) us to solve our problems
    A greeting

  • How to connect to Window 2003 server using "connect as"

    How can I set up Lion to easily connect to specified shares in the windows 2003 server. I want to authenticate as a user other than the one I am logged into on my Macbook? I am setting this up for teachers in a school. The macbook may be used by multiple teachers. Best way (simplest) please.

    Hi
    Let's pretend the Windows Server has an IP address of 10.10.10.254
    Go Menu > Connect to Server > smb://10.10.10.254. When prompted enter the account credentials of a user (username and password) that exists on the Windows Server. Alternatively you could use cifs://10.10.10.254. Either one will do. Assuming no 'silliness' on the Windows Network Administrator's part the share should mount.
    For ease of connectivity afterwards you could tick the 'remember password using keychain manager' box. Personally I find keychain manager more trouble than it's worth. However you deal with this as you see fit. If it's multiple users using the same workstation I would not enable the option.
    Once mounted you can view the Server Share on the user's Desktop by enabling the option in the Finder. It should appear as a blue-ish drive icon on the Desktop. Add the icon in that User's Login Items in the Accounts Preferences Pane. Think of it a little like the Windows equivalent of "mapping a network drive".
    Next time that user logs into their local account and provided the workstation is connected to the same network, the share point should mount.
    You could also or alternatively drag the share icon to the right hand side of Dock. Click on it to re-connect to the share after you've disconnected from it.
    HTH?
    Tony

  • Installation of Oracle 10g und 9i Database on one Windows 2003 Srv System

    Hello,
    I would like to install Oracle 9i and 10g database on the same server.
    OS is Windows 2003 Server default.
    I already read that i must do some adjustments (regarding ORACLE_HOME / SIDs ..)
    anyone here who knows something about this ?
    Thank you
    Philip

    Yep.
    Install 9i and when it asks for a port to install the listener pick something other than 1521. (1522 should work).
    Then the Oracle 10g installation should go without a hitch.
    ~Jer

  • How can I open all ports on a Window 2003 Server

    How can I open all ports on my windows 2003 server for a specific range of IP addresses?

    Hi,
    Just want to confirm the current situations.
    Please feel free to let us know if you need further assistance.
    Regards.
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Converting a Database from Windows 2003 Server to HP-UX Itanium

    Hi
    I have to convert a database Oracle11g (11.1.0.6.0) from Windows 2003 Server to HP-UX Itanium. Both installation are in the same version. I know there are methods to convert it with RMAN ( Restore/Recover converting the database files ) or with transportable tablespaces. Can you give advices or comment me your experiencies on it ?.
    Thanks

    The RMAN's convert command is going to be needed if the endian format of both the o/s is not same. I didn't check this so please check that whether the source and target are on the same endian or not. If not, you must use the RMAN. If yes, then using transport tablespace would do the job.
    HTH
    Aman....

  • Error in installation database in Windows 2003 server 64 bits

    Hi, I have a problem. I am trying to install a database Oracle Enterprise Edition 9.2.6 in a machine that has Windows 2003 Server 64 bits
    . On having finished the installation and begin the Database Configuration Assistant appears the error ora-12546 TNS permission denied. In the file listener.log
    the following messages appear:
    TNS-12500: TNS:listener failed to start a dedicated server process
    TNS-12546: TNS:permission denied
    TNS-12560: TNS:protocol adapter error
    TNS-00516: Permission denied
    32-bit Windows Error: 5: Input/output error
    I see the note 722966 and my procesador is EM64T
    I install in local mode, not remote and using Administrator user.
    Help me, please!

    Hello,
    There is a note in SAP that indicates that EMT64/x64 is not compatible with Oracle 9.2 (nota 12546) There is Oracle's FAQ that indicates Oracle's versions and Windows that he(she) supports EMT64.
    http://www.oracle.com/technology/tech/windows/faq.html#x86-64
    Since you can see it(he,she) indicates that Oracle 9.2 is supported in Windows 32 bits with technology EMT64
    And that alone the version 10g 2 be reread it(he,she) is compatible with Windows 2003 SEVER 64 bits with technology EMT64
    I hope that this costs(suits) us to solve our problems
    A greeting

  • How to up concurrent manager in R12 EBS installation in windows 2003 server

    Hi,
    I have installed R12 EBS on windows 2003 server. It was working fine for 2 days.
    Then suddenly when I submitted some concurrent program ,
    status was "No Manager" i.e. concurrent manager was down.
    I dont know how to restart/start concurrent manager .
    Any help will be greatly appreciated .
    Thanks

    Thanks hussein , where do I get application env file. I tried stoping cm from the services and then executed file CMCLEAN.sql and then restarted cm from services menu. However still I can't see cm running in application. I bounced the server also before restartingConfiguration and Environment Files
    http://docs.oracle.com/cd/E18727_01/doc.121/e13676/T530334T530337.htm#admu-cef
    Did you commit the changes after running cmclean.sql? If yes, please check the CM log file for any errors.
    Thanks,
    Hussein

  • Upgrade 10.2.4.0 database from 32bit (Windows 2003 os ) to 64 bit (windows)

    we upgrade 10.2.4.0 database from 32bit (Windows 2003 os ) to 64 bit (windows).
    the steps:
    1. Install 10g server and client in 64 bit server and run patch set.
    2. Restore rman db backup (from 32bit machine ) to 64bit server. Migrate database in new server.
    3. setup EM db console in new server.
    emca -config dbcontrol db -repos create
    Step 1 and 2 work fine.
    Step 3 has problem with emca:
    java.io.IOException: The handle is invalid
    at java.io.FileInputStream.close0(Native Method)
    Enterprise Manager configuration completed successfully
    at java.io.FileInputStream.close(FileInputStream.java:245)
    at sun.nio.cs.StreamDecoder$CharsetSD.implClose(StreamDecoder.java:505)
    FINISHED EMCA at Jul 1, 2010 9:33:06 AM at sun.nio.cs.StreamDecoder.close(Stream
    Decoder.java:198)
    at java.io.InputStreamReader.close(InputStreamReader.java:187)
    at java.io.BufferedReader.close(BufferedReader.java:502)
    at oracle.sysman.assistants.util.sqlEngine.SQLEngine$ErrorStreamReader.r
    un(SQLEngine.java:2406)
    at java.lang.Thread.run(Thread.java:595)
    After setup DB console, we can access DB console with https://localhost:1158/em,
    but can not access from https://machinename:1158/em
    Thanks,

    It is offensive that you have posted the exact same question multiple times in a matter of minutes.
    Please go back and edit all but one of them so the subject reads "Please Ignore."
    I am ignoring this thread and all others until you clean it up. We are volunteers and do not appreciate having our time wasted by reading the same request from the same person multiple times while trying to help people that need help.
    Thank you.

Maybe you are looking for

  • Can i upgrade a power mac g5 to snow leaopard

    I am trying to add a new linksys router ea3500 and it will not run the setup utility becasue it says my "architecture is not compatible....will upgrading to snow leaopard help? or is my computer just too old for this?

  • Export to flickr not creating a set

    I thought that the new Flickr export was supposed to create a set for the album when it exported to Flickr, but when I do the export the photos come thru without being in a set. Am I missing something?

  • ITunes Will Not Open Until Restart

    Sometimes iTunes doesn't start (after docking or after double clicking). I know if I restart that it will work fine, but don't want to have to restart just to load the application. Is it a cache issue or is it possible that another file is running in

  • Assignment of a batch is required

    Hi All , I am having problem while doing UD in QA32. It gives Error like ' Assignment of a batch is required '. As there is no batch selected for particular material. And Inspection lot is already conform in production order. How can i remove batch f

  • TS1702 i cant turn my wi-fi on on my iphone can anyone help????

    hi guys cant seem to switch my wifi on on my iphone 4s can anyone suggest anything???????? cheers clare