Rename (relocate) a database
I have never used the 'relocate' command so I ask this question.
After reading all the information available I have to ask, does this work as expected or is this more involved than it looks? Once the system is tested it would be changed back to the old name.
I understand that making the change to the transport directory would be necessary plus new profiles, etc.
Example: T02 > Q03
Config file:
DB_NAME=T02, T03
DB_PATH=/db2/db2t02
INSTANCE=db202
NODENUM=0
Thanks,
Len Jesse
Hi Len,
As per IBM documentation
db2relocatedb - Relocate Database Command
This command renames a database, or relocates a database or part of a database 9 (for example, the container and the log directory) as specified in the configuration file provided by the user. This tool makes the necessary changes 9 to the DB2 instance and database support files.
Sample configuration file can be as mentioned in the link
DB2 Universal Database
You may test the command on a sandbox environment to identify the exact set of activities required to be performed to achieve the expected results.
Hope this helps.
Regards,
Deepak Kori
Similar Messages
-
Can we rename/relocate the RMAN backupset?
Hi All,
Can we rename/relocate the RMAN backupset?
I have the following scenerio:
1.took tha backup on /u99 mountpoint using rman
2.copy the entire backup to tape
3.filesystem /u99 scrapped
4.created new filesystem /u101
5.copy the backup to /u101 from tape.
Now we have to restore the database..but problem is that rman dont know /u101, by default it will search from /u99 filesystem...how to tell rman take the backup from /u101 not from /u99...
Please help me
Regards
SymalYou need to use the RMAN command
SET NEWNAME FOR DATAFILE <datafile_number> TO ‘<path_and_filename>’;
for each datafile you want to restore and recover. -
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.
- GaryOkay, 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 -
Rename State Service Database in SharePoint 2010
As the title says, I want to rename/change database for State Service Application.
I did some experiments wit it as suggested by others but I think I somehow managed to broken my service.
I can SharePoint Products Configuration again and I got another database State_Service_GUID which I didnt want at the first place.
I followed the steps on
http://technet.microsoft.com/en-us/library/ff851878.aspx#State and it failed as well, and I am in middle of no where.
I am even not sure if my service is properly running or not. I can see it in Service Applications page in Central Administration as Started but I cannot select it and use ribbon operations on it.Hi ,
Rename the Service Database
Go to SQL Management Studio and rename the database
Open SQL Management Studio. You may have to go to your SQL Server to do this.
Attach to the instance that host SharePoint
Find your database
Right click on the database name and choose Rename
Delete the GUID off the end of the name or make the name whatever you want then press Enter. SQL Database is now renamed. Notice I changed all of the spaces to underscores. Why? Because DBAs hate spaces in names more than they hate GUIDs and I am a nice
guy.
Now go to your SharePoint Server and use PowerShell to set the database name.
Click Start > All Programs > Microsoft SharePoint 2010 Products > SharePoint 2010 Management Shell. If you have UAC enabled be sure to run it as Administrator.
Then run the following line. Be sure to replace your info for service app and database name.
Now you can celebrate you have saved the world another GUID. I have a master post here with all of the anti GUID posts linked in one place. Right here.
Thx
Surendra Singh, MCITP: SharePoint Administrator 2010 -
Rename SCCM SQL Database is this possible
I would like to rename the SCCM 2012 database. I found a few links explaining how to rename the SCCM Database in SCCM 2007 using a site reset but I have not found anything on SCCM 2012. http://blogs.technet.com/b/configurationmgr/archive/2009/10/27/renaming-the-configuration-manager-2007-database.aspx
Does anyone know if renaming the SCCM 2012 DB is possible. I would only like to rename it and not move it. I was able to get to the change SQL configuration options in the site reset wizard. The SQL server name could be change but the database name
was grayed out and could not be changed.
Thank you in advancedThe reason for the rename is because we would like to use Configuration Manager 2012 Web Frontend for remote control access. This will give our Helpdesk and Desktop techs a web interface to be able to use for remote control feature without requiring the
management console installed. We used something similar in the past and was very popular in our users. The problem is that the software is looking for an SCCM DB that is named CM_OURSITECODE. When setting up our SCCM 2012
DB we used a different name for the database SCCM2012DB. I would like to change our database name to CM_OURSITECODE so this Web Frontend software will work.
I see where it says it is supported but that is for SCCM 2007 and we are using 2012. When I try the steps in the post I can change the server name but the database name is grayed out and can't be changed. In my case I would
like to leave the server name alone and just change the database name. With the option being grayed out I'm thinking that MS has changed something to not allow DB name changes in SCCM 2012. I have not been able to find any documentation that states it is supported
or not.
IIRC, it's not best practise to talk directly to the DB either. This vendor probably should have used the SMS Provider instead.
SMS Provider vs SQL Server: Although Configuration Manager leverages SQL Server for data storage, SQL Server is NOT the primary programming interface to Configuration Manager. The primary programming interface to Configuration Manager is the SMS Provider (WMI) - object creation and modification must be done via the SMS Provider. You should consider SQL Server as providing read-only access to Configuration Manager data for querying and reporting purposes. This is not a matter of permissions, rather matter of maintaining data integrity.
http://msdn.microsoft.com/en-us/library/dn529009.aspx
Tim Nilimaa-Svärd | Blog: http://infoworks.tv | Twitter: @timnilimaa -
Renaming the Oracle10gXE database name
Hi,
Oralce10gXe
Linux Os
How to rename the database name from 'XE' (default) to for eg. 'TEST' ?
what are the exact steps for it ?
RegardsHi,
it is possible to change the SID of XE like any other Oracle edition. The easiest way to do so is to use the nid (newid) utility in $ORACLE_HOME/bin (you shutdown the database cleanly, open in mount state and then execute nid target=sys/password@xe dbname=newSID, then change the dbname in init/spfile, rename the init/spfile to contain the new sid, generate new password file using passwd, and open the database with resetlogs).
However, I would not recommend renaming the XE database. I did that, and it has been a pain, since our developers changed the hardware several times, wished for new testing and development installations, and I had to play again and again with the changing of default oracle scripts. As with XE, you can run only one XE edition instance on the server (that does not change by renaming it). With that in mind, there are multiple oracle scripts with ORACLE_SID=XE hardcoded in them. Namely the /etc/init.d/oracle-xe, then all the scripts in $ORACLE_HOME/config/scripts related to starting/stopping and backing up the db, not forgetting the oracle_env.sh...
Having the experience, I would simply recommend leaving the ORACLE_SID=XE, and changing the service_name, or the TNSNAMES.ora alias. That should be sufficient for the developers to "see a pretty name".
Kind regards,
Martin -
hi experts,
I'm planning to rename a 10g database that runs on Windows. I snot being used at this time.
There are several steps and I (think) I have all of them noted.
Just looking for advice or tips from others who have renamed an Oracle database.
Any terrible experiences as a result?
Thanks! JohnHi John,
I am on unix but done that quite a few times. Startup mount and do:
nid target=sys/<your password>@yourdb DBNAME= newname
Just don't forget to make changes to your init.ora, orapwd - and if you plan to change the service name, the tnsnames & llistener as well.
HTH -
Cloning and Renaming an Oracle Database
Hi All,
Can someone please tell me, in brief, the steps to;
1. Create a clone of a database?
2. Rename an existing Database?
Any help will be greatly appreciated.
Thanks in advance.Hello,
1. Create a clone of a database?
You can use RMAN Duplicate and if you have access to metalink you can find tons of documents and notes for cloning
2. Rename an existing Database?
Here is stepwise procedure to rename existing database.
1. Take full backup (RMAN, export or datapump)
2. Stepwise instructions (Windows but it should very similar for unix/linux as well).
Edit tnsnames.ora entry
orcl =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = orionnet-24d24b)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
Add new one
ODS =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = orionnet-24d24b)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ODS)
C:\ set ORACLE_SID=orcl
C:\>sqlplus "/as sysdba"
SQL*Plus: Release 10.2.0.1.0 - Production on Sun Dec 21 20:35:17 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, Oracle Label Security, OLAP and Data Mining Scoring Engine options
SQL> select instance_name, status from v$instance;
INSTANCE_NAME STATUS
orcl OPEN
SQL> create pfile='C:\oracle\product\10.2.0\ods\admin\pfile\initorcl.ora' from spfile;
File Created
SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount pfile='C:\oracle\product\10.2.0\ods\admin\pfile\initorcl.ora';
ORACLE instance started.
Total System Global Area 209715200 bytes
Fixed Size 1248116 bytes
Variable Size 67110028 bytes
Database Buffers 134217728 bytes
Redo Buffers 7139328 bytes
Database mounted.
Open a new cmd session from Start-> Run -> cmd
C:>nid TARGET=sys/whateveryourpassword@orcl DBNAME=ODS SETNAME=Y
where orcl=old database name, ODS=new database name
DBNEWID: Release 10.2.0.1.0 - Production on Sun Dec 21 20:43:33 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to database ORCL (DBID=2232941135)
Connected to server version 10.2.0
Control Files in database:
C:\ORACLE\PRODUCT\10.2.0\ORADATA\ODS\CONTROL01.CTL
C:\ORACLE\PRODUCT\10.2.0\ORADATA\ODS\CONTROL02.CTL
C:\ORACLE\PRODUCT\10.2.0\ORADATA\ODS\CONTROL03.CTL
Change database name of database ORCL to ODS? (Y/[N]) => Y
Proceeding with operation
Changing database name from ORCL to ODS
Control File C:\ORACLE\PRODUCT\10.2.0\ORADATA\ODS\CONTROL01.CTL - modified
Control File C:\ORACLE\PRODUCT\10.2.0\ORADATA\ODS\CONTROL02.CTL - modified
Control File C:\ORACLE\PRODUCT\10.2.0\ORADATA\ODS\CONTROL03.CTL - modified
Datafile C:\ORACLE\PRODUCT\10.2.0\ORADATA\ODS\SYSTEM01.DBF - wrote new name
Datafile C:\ORACLE\PRODUCT\10.2.0\ORADATA\ODS\UNDOTBS01.DBF - wrote new name
Datafile C:\ORACLE\PRODUCT\10.2.0\ORADATA\ODS\SYSAUX01.DBF - wrote new name
Datafile C:\ORACLE\PRODUCT\10.2.0\ORADATA\ODS\USERS01.DBF - wrote new name
Datafile C:\ORACLE\PRODUCT\10.2.0\ORADATA\ODS\TEST.DBF - wrote new name
Datafile C:\ORACLE\PRODUCT\10.2.0\ORADATA\ODS\TEMP01.DBF - wrote new name
Control File C:\ORACLE\PRODUCT\10.2.0\ORADATA\ODS\CONTROL01.CTL - wrote new name
Control File C:\ORACLE\PRODUCT\10.2.0\ORADATA\ODS\CONTROL02.CTL - wrote new name
Control File C:\ORACLE\PRODUCT\10.2.0\ORADATA\ODS\CONTROL03.CTL - wrote new name
Instance shut down
Database name changed to ODS.
Modify parameter file and generate a new password file before restarting.
Succesfully changed database name.
DBNEWID - Completed succesfully.
C:\>oradim -DELETE -SID orcl
Instance deleted.
Edit initorcl.ora file and replace "ORCL" with "ODS"
C:>oradim -new -sid ODS -intpwd mypassword -startmode AUTO -pfile 'C:\oracle\product\10.2.0\admin\ODS\initorcl.ora'
Instance created.
C:\>set ORACLE_SID=ODS
C:\>sqlplus "/as sysdba"
SQL*Plus: Release 10.2.0.1.0 - Production on Sun Dec 21 20:50:30 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup mount pfile='C:\oracle\product\10.2.0\admin\ODS\pfile\initorcl.ora';
ORACLE instance started.
Total System Global Area 209715200 bytes
Fixed Size 1248116 bytes
Variable Size 67110028 bytes
Database Buffers 134217728 bytes
Redo Buffers 7139328 bytes
ORA-01103: database name 'ODS' in control file is not 'ORCL'
Note: If you don't modify initorcl.ora file and replace it with ODS, you will get ORA-01103 error.
SQL> shutdown immediate;
ORA-01507: database not mounted
Edit initorcl.ora file and replace "ORCL" with "ODS"
ORACLE instance shut down.
SQL> startup mount pfile='C:\oracle\product\10.2.0\admin\ODS\pfile\initods.ora';
ORACLE instance started.
Total System Global Area 209715200 bytes
Fixed Size 1248116 bytes
Variable Size 67110028 bytes
Database Buffers 134217728 bytes
Redo Buffers 7139328 bytes
Database mounted.
SQL>
SQL> alter database open;
Database altered.
NOte: My verification if TESTUSER exists or not after database name change
SQL> select username from dba_users;
USERNAME
SYS
SYSTEM
TESTUSER
OUTLN
MDSYS
ORDSYS
ANONYMOUS
EXFSYS
DBSNMP
WMSYS
XDB
USERNAME
ORDPLUGINS
SI_INFORMTN_SCHEMA
DIP
TSMSYS
15 rows selected.
NOte: ANother test for object existence
SQL> select table_name from dba_tables where owner='TESTUSER';
TABLE_NAME
TESTME
MY_OBJECTS
Note: Final test
SQL> select count(*) from testuser.my_objects;
COUNT(*)
38174Regards -
How to rename the search databases in sharepoint 2013
Hi all,
I have configure the search in sharepoint 2013 and 4 databases has been created in sqlserver.by default db are got created with GUID n sh i want change those DB names .
could you pls help me how can i change the DB names.
THanks
Dhana
sekharHi,
Please check the below links,
https://technet.microsoft.com/en-us/library/jj219654(v=office.15).aspx
https://technet.microsoft.com/en-us/library/ff851878(v=office.15).aspx
http://blogs.technet.com/b/meamcs/archive/2012/10/23/renaming-sharepoint-2010-search-service-database-name.aspx
Don't forget to mark it as an Answer if it resolves your issue and Vote Me as helpful if it useful.
Mahesh -
How to Rename Oracle 11g Database in the Linux
I want to Rename Database.How I must do this problem.Please help me
Edited by: 850512 on Apr 7, 2011 1:18 AM
Edited by: 850512 on Apr 7, 2011 1:22 AM850512 wrote:
Step by step pleaseBefore you proceed any further, you need to define the real problem you are trying to solve. "renaming" a database may or may not be the appropriate solution - not to mention that "rename the database" could mean several things and we don't know your definition of that phrase. -
Renaming issues of Database.
Hi All,
We had replication set up for a database, which we removed few days back and now we want to rename the database, when I tried with
USE master;
GO
ALTER DATABASE abc
Modify Name = zabc
GO, which is throwing an error as Msg 18855, Level 11, State 1, Line 1
Can not rename the database name because it is published or it is a distribution database used by replication.
I verified the publisher server under replication>> publications, no database as such being replicated and verified subscriber server>> replication>> under subscribers no database as such participating in replication.
When I googled I got this :
Can not rename the database because it is published or it is a distribution database used by replication. (Error 18855)
One reason for this to occur is because your database is being replicated. To rename the database you need to disable the replication and then reinstate it afterwards (if required).
To disable replication:
Right click the Servername -> Replication node in Management Studio and Click Disable Distribution. Run through the wizard. Once the database is renamed right click the Replication node node again and select Configure Distribution. You should be able to
accept the defaults if Replication was previously configured.
But if we disable distribution,whole replication setup for all databases will be down, please correct me if I am wrong.
SQL version is
Microsoft SQL Server 2012 - 11.0.5058.0 (X64)
May 14 2014 18:34:29
Copyright (c) Microsoft Corporation
Standard Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1)
Please help me how to proceed with this.
Thanks.Check what output you get when you run the query.
SELECT name,is_published, is_subscribed, is_merge_published, is_distributor
FROM sys.databases
WHERE name = 'Databasename'
If the above query gives 1 for any of this, then you have not cleaned replication properly. You need to clean it properly, but the method you mentioned is not the correct method.
You are right if you disable replication then all other databases which are part of replication is also affected. You need to run the below command against the database in question
sp_removedbreplication 'database_name'
http://msdn.microsoft.com/en-us/library/ms188734(v=sql.110).aspx
Regards, Ashwin Menon My Blog - http:\\sqllearnings.com -
BDB - rename of a database file
If I rename (system call) a db file after closing it - Can thiis coorupt the environment ? What is the difference between renaming a file(closed) using BDB interface and the os system call ?
Any help with theses questions will be appreciated.user11188564 wrote:
a subsequent db_put or db_open was returning a error - error 2 i.e ENOENT .Did you try to open the same database? Was the put for a different database file?
Did you close all the DBcursor handles before closing the database?
Do you use CDS groups?
Bogdan -
SQL DBA renamed the Search databases, and now search isnt working
Our SQL DBA, saw the GUIDs and decided to rename the databases, didnt bother to tell anyone that they did it, now search is not working at all.
Should we reconfigure a new search of try to figure out how to put SharePoint search to the renamed DATABASES?
I also have found that the prior names of the Databases what they were with the GUIDs and was thinking of telling the DBA to rename them back, would this causes an issues... and this is in PRODUCTION SharePoint...You can get the "old" names via Get-SPDatabase. Rename the databases within SQL until you have a chance to follow the proper procedure. The proper procedure is outlined here:
http://technet.microsoft.com/en-us/library/jj219654(v=office.15).aspx
Trevor Seward
Follow or contact me at...
  
This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs. -
Can i rename the Global Database Name
Hi Seniors,
i have installed the Oracle 10.2.3(10203_vista_w2k8_x86_production_db) in my VISTA Laptop.
i have given the Global Database Name as orcsatya but i want to change to orasatya
would u please tell how to proccess if it is.....
thanks
SeenujanuSeenuJanu wrote:
yes , i want the name from orcsatya to orasatya of Global Database Name
is it possible to change the Name or i have to reinstall
which i would like to access the names like
connecting scott/sathi@orasatya;
Thanks in Advance
Edited by: SeenuJanu on Jun 13, 2009 4:43 AMFor that you don't even need to touch the database. The name you use in your connect string is nothing more than an alias that is resolved (in your tnsnames.ora file) to a specific service name on a specific host. Without touching anything else, you could change your tnsnames entry from something like
ORASATYA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = ORA11)
)to
fred = <=== note that this is the only change from the previous entry
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = ORA11)
)At which point you would connect with
sql> connect scott/sathi@fred -
Can I rename a physical Standby database without having to recreate?
Hi all,
One of my DBA's created a new standby database yesterday. He was supposed to create the standby database with a unique name from the primary system, but he didn't. So right now, DataGuard is running and replicating, and the standby has the exact same database name as primary.
I'd like to get this configured the way we had planned, to rename the standby database to something unique. I see Metalink Doc ID 15390.1, showing how to rename a database, but I'm not sure if this is possible in the standby environment? Has anyone ever done this? Anything different that needs to be accounted for, in the physical standby DB?
I'm on 10.2.0.3, on Windows 2003.
Any help/advice is appreciated!!
Thanks,
BradDear TheBlakester,
You have to write it on the spfile and bounce the database. You should also have to change the log_archive_config parameter with the new standby db_unique_name.
From the online Oracle documentation;
For example, if the DB_UNIQUE_NAME parameter has not been defined on either database, the following SQL statements might be used to assign a unique name to each database.
Execute this SQL statement on the primary database:
SQL> ALTER SYSTEM SET DB_UNIQUE_NAME='CHICAGO' SCOPE=SPFILE;
Execute this SQL statement on the standby database:
SQL> ALTER SYSTEM SET DB_UNIQUE_NAME='BOSTON' SCOPE=SPFILE;
Step 4 Verify that the LOG_ARCHIVE_CONFIG database initialization parameter has been defined on the primary and standby database and that its value includes a DG_CONFIG list that includes the DB_UNIQUE_NAME of the primary and standby database.
For example, if the LOG_ARCHIVE_CONFIG parameter has not been defined on either database, the following SQL statement could be executed on each database to configure the LOG_ARCHIVE_CONFIG parameter:
SQL> ALTER SYSTEM SET
2> LOG_ARCHIVE_CONFIG='DG_CONFIG=(CHICAGO,BOSTON)';After than that it is better for you to check following items just in case;
v$archived_log
v$dataguard_status
Data Guard log file & Alert.log file.Hope That Helps.
Ogan
Maybe you are looking for
-
ITunes will not allow me to put music (or anything else) on my iPhone. HELP
Recently got a new laptop which means the new iTunes had to be downloaded unfortunately. Now, iTunes will not let me add files to my iPhone 4s WITHOUT erasing all contents and syncing with the current itunes library (says it is synced with another it
-
How can you get pics from your Camera roll to you photo stream
How can you get pics from your Camera roll to you photo stream
-
Video resolution and dual monitor assistance
Trying to set up a show running on a windows XP Pro PC with dual monitor (ATI HD3870 card) so that videos run using Windows Media Player (or maybe something else if needed?) on the second monitor (actually a large projector). The videos are synchroni
-
can you tell me when the update for Nikon D7200 will be available for Lightroom, please Thanks
-
DB creation - Insufficient priviliges error
Hi DBAs, Whenever I try to create a database oracle 11g R2 in Windows Server 2003 environment by using dbca, i am getting an error ora-01031 insufficient priviliges error.. what should i do to start continuing the database Installation. Any one can g