Changing Database name

hi every body,
Pl. Tell me ,how to change the database name so that when i query to the V$DATABASE view it should reflect the new database name .Changing the GLOBAL_NAME does not reflect changes in V$DATABASE view.
thanx in advance..

Hi,
1. make a ascii dump of your controlfile : alter database backup controlfile to trace ;
2. shutdown your database
3. export ORACLE_SID=NEW_DB
4. edit your init.ora and change db_name and instance_name parameter (rename your initOLD_DB.ora to initNEW_DB.ora)
5. edit the file generated by (1) and change
CREATE CONTROLFILE...
to
CREATE CONTROLFILE SET DATABASE "NEW_DB" RESETLOGS...
6. Re-create the controlfiles and all will be ok :-)
Fred

Similar Messages

  • Change database name - Crystal10 and Visual Studio 2005

    <p>Hi there,</p>
    <p>
    I have about 150 crystal reports in my development environment. I need to move them into the testing environment. Every environment has its own database and every database is names '[client name]_[environment]' so I get things like client1_dev, client1_test, client1_prod, etc. The reports are very, very unhappy when moving from dev to test. I have googled this a fair bit and have attempted the stuff on:
    </p>
    http://www.codeproject.com/KB/aspnet/crystalwithaspdotnet.aspx
    <br/>
    http://www.tek-tips.com/faqs.cfm?fid=5374
    <br/>
    <p>
    and a few others and have gotten no where. I spent a couple of days working on this and am now over budget and late. I need a fix and fast.
    </p>
    <p>
    I have two ideas I have been working on and both have failed out right.<br/>
    Idea 1 - during run time:<br/>
      - loop through everything thing in sight and set the database information on it<br/>
      - that one looks like:<br/>
    <br/>
    <pre>
    using CrystalDecisions.Shared;
    using CDCRE = CrystalDecisions.CrystalReports.Engine;
    using CrystalDecisions.CrystalReports.Engine;
    using CrystalDecisions.Web;
    public abstract class ReportBase : Page
         ...snip....
        protected virtual void DoLoad(CrystalReportViewer ReportViewer)
            ReportDocument reportDocument = new ReportDocument();
            SetReportInfo(reportDocument);
            SetParameters(reportDocument);
            DumpParameters(reportDocument);
        protected virtual void SetReportInfo(ReportDocument reportDocument)<br/>
            db_Reports.Reports reportInfo = new ReportsClass();
            CriteriaID = reportInfo.InsertCriteria(CommonUtils.GetLanguagePrefix(), CurrentForm["criteria"].Trim() +
    CurrentForm["extracriteria"].Trim(), CSecuritySession.UserSessionInfo.iUserId, string.Empty, CurrentForm["param1"]);
            ADODB._Recordset rs = reportInfo.GetReportInfo(CommonUtils.GetLanguagePrefix(), ModuleName, ReportID, CSecuritySession.UserSessionInfo.iUserId);
            // report to load
            HttpContext.Current.Trace.Warn("Loading the report", rs.Fields["vReportName"].Value as string);
            reportDocument.Load(rs.Fields["vReportName"].Value as string);
            // connection info
            reportDocument.DataSourceConnections[0].SetConnection(rs.Fields["vSQLServer"].Value as string, rs.Fields["vDatabase"].Value as string, false);
            HttpContext.Current.Trace.Warn("Setting connection information",
                string.Format("Server Name:[{0}] Database Name:[{1}]", reportDocument.DataSourceConnections[0].ServerName, reportDocument.DataSourceConnections[0].DatabaseName));
            // logon info
            reportDocument.DataSourceConnections[0].SetLogon(rs.Fields["vUsername"].Value as string, rs.Fields["vPassword"].Value as string);
            HttpContext.Current.Trace.Warn("Setting Logon Information",
                string.Format("Username: [{0}] Password: [{1}]", reportDocument.DataSourceConnections[0].UserID, reportDocument.DataSourceConnections[0].Password));
            DumpConnInfo(reportDocument);
            DumpSubReportConnInfo(reportDocument);
            // reportname / page title
            ReportName = rs.Fields["vDescription"].Value as string;               
        private void DumpSubReportConnInfo(ReportDocument reportDocument)
            foreach (Section sec in reportDocument.ReportDefinition.Sections)
                foreach (ReportObject ro in sec.ReportObjects)
                    if (ro is SubreportObject)
                        SubreportObject sro = (ro as SubreportObject);
                        DumpConnInfo(sro.OpenSubreport(sro.SubreportName));
        protected virtual void DumpConnInfo(ReportDocument reportDocument)
            foreach(CDCRE.Table table in reportDocument.Database.Tables)
                Trace.Warn(string.Format("Connection info[{0}]", table.Name),
                    string.Format("database: {0} Server: {1} User ID: {2} Pwd: {3}",
                    table.LogOnInfo.ConnectionInfo.DatabaseName,
                    table.LogOnInfo.ConnectionInfo.ServerName,
                    table.LogOnInfo.ConnectionInfo.UserID,
                    table.LogOnInfo.ConnectionInfo.Password));
                foreach(NameValuePair2 nvp in table.LogOnInfo.ConnectionInfo.Attributes.Collection)
                    Trace.Warn("connection attributes", string.Format("{0} = {1}", nvp.Name, nvp.Value));
                    if (string.Compare(nvp.Name as string, "QE_LogonProperties", true) == 0)
                        DbConnectionAttributes dca = nvp.Value as DbConnectionAttributes;
                        Trace.Warn("connection attributes - QE_LogonProperties", "processing the 'QE_LogonProperties'. Is null [" + (null == dca).ToString() + "]" );                   
                        foreach (NameValuePair2 nvp1 in dca.Collection)
                            Trace.Warn("connection attributes - QE_LogonProperties", string.Format("{0} = {1}", nvp1.Name, nvp1.Value));
                Trace.Warn("----------------------");           
        protected virtual void DumpParameters(ReportDocument reportDocument)
            HttpContext.Current.Trace.Write("--------------------------");
            HttpContext.Current.Trace.Write(" Dumping Parameters ");
            HttpContext.Current.Trace.Write("--------------------------");
            for (int i = 0; i < reportDocument.ParameterFields.Count; i++)
                if (string.IsNullOrEmpty(reportDocument.ParameterFields<i>.ReportName))
                    HttpContext.Current.Trace.Write(string.Format("[{0}] {1}", i, reportDocument.ParameterFields<i>.Name), GetParamValue(reportDocument.ParameterFields<i>));
                else
                    HttpContext.Current.Trace.Warn(string.Format("SubReport Parameter [{0}] {1}", i, reportDocument.ParameterFields<i>.Name), GetParamValue(reportDocument.ParameterFields<i>));
            HttpContext.Current.Trace.Write("--------------------------");
    </pre>
    <br/>
      - this one always errors out with a can't find database type connection and spits out the old database message.<br/>
      - as you can see there is a stack of tracing in there. all of the trace messages make it look like it is hitting the right database. I have no clue why this isn't working.<br/>
    <br/>
    Idea 2 - fix up reports before moving to the other environments:<br/>
      - I figured I would write a little app that would crawl through the directories of reports and fix them up<br/>
      - I read a few examples of this online and none of them seem to work with Crystal 10. They work with some of our legacy Crystal 8 reports (I have been testing this all over the place) but not with 10.<br/>
      - the last function is the interesting one.<br/>
      - that one looks like:<br/><br/>
    <pre>
    using System;
    using System.Collections;
    using System.Collections.Generic;
    using System.Text;
    using System.IO;
    using System.Reflection;
    using System.Diagnostics;
    namespace crystal_10_switch
        public class Changer
            protected CRAXDDRT.Application app;
            protected object missing = Missing.Value;
            protected string currentFolder = string.Empty;
            protected string OdbcName;
            protected string DBName;
            protected ICollection Folders;
            public Changer(string OdbcName, string DBName, ICollection Folders)
                this.OdbcName = OdbcName;
                this.DBName = DBName;
                this.Folders = Folders;
                app = new CRAXDDRT.Application();
                string junk = Console.ReadLine();
            public virtual void Switch()
                foreach (string dir in Folders)
                    SwitchDir(dir);
            protected virtual void SwitchDir(string dir)
                DirectoryInfo di = new DirectoryInfo(dir);
                FileInfo[] files = di.GetFiles("*.rpt", SearchOption.AllDirectories);
                currentFolder = di.FullName;
                foreach (FileInfo file in files)
                    Trace.WriteLine("Processing the report: " + file.FullName);
                    Trace.Indent();               
                    SwitchFile(file);
                    Trace.Unindent();
            protected virtual void SwitchFile(FileInfo file)
                CRAXDDRT.Report rpt = app.OpenReport(file.FullName, missing);
                SwitchTable(rpt);
                SwitchSubreports(rpt);
                SaveReport(rpt, file);
            protected virtual void SwitchSubreports(CRAXDDRT.Report rpt)
                Trace.Indent();
                foreach (CRAXDDRT.Section section in rpt.Sections)
                    foreach (CRAXDDRT.IReportObject robj in section.ReportObjects)
                        if (robj is CRAXDDRT.ISubreportObject)
                            CRAXDDRT.ISubreportObject sub = (robj as CRAXDDRT.ISubreportObject);
                            Trace.WriteLine("Processing sub report: " + sub.Name);                       
                            SwitchTable(sub.OpenSubreport());                       
                Trace.Unindent();
            protected virtual void SwitchTable(CRAXDDRT.Report rpt)
                Trace.Indent();
                foreach (CRAXDDRT.IDatabaseTable table in rpt.Database.Tables)
                    Trace.WriteLine(" Processing table: " + table.Name);
                    // this one line should do it
                    (table.ConnectionProperties["Database"] as CRAXDDRT.IConnectionProperty).Value = DBName;
                    // but it didn't so try this
                    (table.ConnectionProperties["UseDSNProperties"] as CRAXDDRT.IConnectionProperty).Value = "1";
                    // read that this 'might' work
                    table.SetLogOnInfo(OdbcName, DBName, missing, missing);
                    // but it didn't so I tried this with the user anme and password set
                    table.SetLogOnInfo(OdbcName, DBName, "XXXXX", "XXXXX");
                    // read that this is requiried, but it does nothing
                    table.Name = table.Name;
                    // this causes issues - the map fields thing pops up which is way not cool
                    //table.Location = table.Name;              
                Trace.Unindent();
        }//class
    }//namespace
    </pre>
    <br/>
    At this point I really don't care which one will work the best, I am just desperate for a working solution. Any help, any at all would be greatly appreciated.<br/>
    <br/>
    Thanks<br/>
    <br/>
    -Cam<br/><br/>

    This is a typical requirement of most application and is relatively trivial to implement. There are a lot of samples and documentation on our support site (links below). Also, search these forums for code snippets that will help you. BTW., do not use the craxDDrt.dll as you are not licensed to use it.
    To look for downloads:
    https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/bobj_download/main.htm
    Articles:
    https://www.sdn.sap.com/irj/sdn/businessobjects-articles
    Notes:
    https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_ossnotes&query=&adv=true
    Samples:
    https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsfor.NETSDK+Samples
    Dev. Library and API reference:
    http://help.sap.com/businessobject/product_guides/boexir31/en/crsdk_net_dg_12_en.chm
    http://help.sap.com/businessobject/product_guides/boexir31/en/crsdk_net_apiRef_12_en.chm
    My recommendations:
    https://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/2081b4d9-6864-2b10-f49d-918baefc7a23&overridelayout=true
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/208edbbf-671e-2b10-d7b5-9b57a832e427
    https://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/702ab443-6a64-2b10-3683-88eb1c3744bc&overridelayout=true
    Ludek
    Edited by: Ludek Uher on Jul 21, 2009 8:38 AM

  • Changing database name in 11.2.0.3 grid infrastructure

    I have recently installed 11.2.0.3 grid infastructure and database on an AIX 6.1 platform.
    Our manager does not like the name was have chosen for the database that we install a single instance database using dbca and it is all configured in oracle restart which has bee starting all of the resources perfectly upon reboots.
    We are using ASM for the database files and a jfs file system for the fast recovery area.
    Can we change the database name easily or will this require confgiuration changes within the grid infrastructure installation as well?
    Thanks.

    1)To change DB name:
    CREATE CONTROL FILE statement or use NID utility
    2)Drop the old configuartion from oracle restart
    srvctl drop database -d <dbname>
    3)Register new configuration
    srvctl config database -d <dbname>

  • CHANGE DATABASE NAME

    Hi,
    Database 10g (10.2.0.1)
    OS : redhat 4
    I want to change my test database name .
    Please give me the instruction for the same and
    is there any difference to change the name in windows enviornment.
    Thanks.

    Using DBNEWID (nid) Utility, you can change the DBID and DBNAME of a Database.
    Carefully follow the Oracle Documentations.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/dbnewid.htm#sthref1850
    Regards,
    Sabdar Syed.
    Info added.
    Message was edited by:
    Sabdar Syed

  • Changing the Database Name

    Hi Gurus
    I am using oracle 10g on Windows platform. The issue is I need to change my database name. When i gone through the Oracle docs I found there is an utility called 'DBNEWID' . But not getting a clear cut idea. Since my DB is So critical anybody please tell me the exact steps to change the DB-Name.
    Thanks & Cheers
    Antony

    Changing Only the Database Name
    C:\>SQLPLUS/NOLOG
    SQL*Plus: Release 10.1.0.2.0 - Production on Tue Aug 22 10:54:38 2006
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    SQL> CONN / AS SYSDBA
    Connected.
    SQL> SELECT DBID,NAME FROM V$DATABASE;
    DBID NAME
    1230404613 DB01
    SQL> SHUTDOWN IMMEDIATE;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    Must be : Take Whole Database Backup (Oracle Recommended)
    Otherwise u lost ur database.
    SQL> STARTUP MOUNT;
    ORACLE instance started.
    Total System Global Area 171966464 bytes
    Fixed Size 787988 bytes
    Variable Size 145488364 bytes
    Database Buffers 25165824 bytes
    Redo Buffers 524288 bytes
    Database mounted.
    --Go Command Prompt
    DBNEWID UTILITY >>>NID ( OS Path : d:\oracle\product\10.1.0\db_1\bin\nid)
    C:\>SET ORACLE_SID=DB01
    C:\>NID TARGET=SYS/ORACLE@DB01 DBNAME=ORADB01 SETNAME=YES
    DBNEWID: Release 10.1.0.2.0 - Production
    Copyright (c) 2001, 2004, Oracle. All rights reserved.
    Connected to database DB01 (DBID=1230404613)
    Connected to server version 10.1.0
    Control Files in database:
    D:\ORACLE\PRODUCT\10.1.0\ORADATA\DB01\CONTROL01.CTL
    D:\ORACLE\PRODUCT\10.1.0\ORADATA\DB01\CONTROL02.CTL
    D:\ORACLE\PRODUCT\10.1.0\ORADATA\DB01\CONTROL03.CTL
    Change database name of database DB01 to ORADB01? (Y/[N]) => Y
    Proceeding with operation
    Changing database name from DB01 to ORADB01
    Control File D:\ORACLE\PRODUCT\10.1.0\ORADATA\DB01\CONTROL01.CTL - modified
    Control File D:\ORACLE\PRODUCT\10.1.0\ORADATA\DB01\CONTROL02.CTL - modified
    Control File D:\ORACLE\PRODUCT\10.1.0\ORADATA\DB01\CONTROL03.CTL - modified
    Datafile D:\ORACLE\PRODUCT\10.1.0\ORADATA\DB01\SYSTEM01.DBF - wrote new name
    Datafile D:\ORACLE\PRODUCT\10.1.0\ORADATA\DB01\UNDOTBS01.DBF - wrote new nam
    e
    Datafile D:\ORACLE\PRODUCT\10.1.0\ORADATA\DB01\SYSAUX01.DBF - wrote new name
    Datafile D:\ORACLE\PRODUCT\10.1.0\ORADATA\DB01\USERS01.DBF - wrote new name
    Datafile D:\ORACLE\PRODUCT\10.1.0\ORADATA\DB01\TEMP01.DBF - wrote new name
    Control File D:\ORACLE\PRODUCT\10.1.0\ORADATA\DB01\CONTROL01.CTL - wrote new
    name
    Control File D:\ORACLE\PRODUCT\10.1.0\ORADATA\DB01\CONTROL02.CTL - wrote new
    name
    Control File D:\ORACLE\PRODUCT\10.1.0\ORADATA\DB01\CONTROL03.CTL - wrote new
    name
    Instance shut down
    Database name changed to ORADB01.
    Modify parameter file and generate a new password file before restarting.
    Succesfully changed database name.
    DBNEWID - Completed succesfully.
    Set the DB_NAME initialization parameter in the initialization parameter file (PFILE) to the new database name.
    Note:
    The DBNEWID utility does not change the server parameter file (SPFILE). Therefore, if you use SPFILE to start your Oracle database, you must re-create the initialization parameter file from the server parameter file, remove the server parameter file, change the DB_NAME in the initialization parameter file, and then re-create the server parameter file.
    ---Create New Password File
    cmd>orapwd file=d:\oracle\product\10.1.0\db_1\database\pwddb01.ora password=oracle entries=5
    SQL> STARTUP PFILE=D:\Oracle\product\10.1.0\Db_1\database\initdb01.ora
    ORACLE instance started.
    Total System Global Area 171966464 bytes
    Fixed Size 787988 bytes
    Variable Size 145488364 bytes
    Database Buffers 25165824 bytes
    Redo Buffers 524288 bytes
    Database mounted.
    Database opened.
    SQL> select dbid,name from v$database;
    DBID NAME
    1230404613 ORADB01
    Note:
    After Change DB Name Take Whole Database bkp.
    Note: If i am missing some step or write wrong step plz. correct me.
    Before doing this refer documentation.
    http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14215/dbnewid.htm
    thanx
    Message was edited by:
    user526020
    null

  • Can Oracle 10g XE Database Name be Changed?

    Hi all,
    Oracle 10g Express Edition comes with a Database named XE.
    I would like to change the database named to something like ORA.
    Can this be done in Oracle 10g Express Editorion?
    If have you have done this, please let me know how to do it?
    - How to change Database Name from XE to ORA
    - set the listener configuration to listen to ORA.
    With my basic twidlings, I have come to a conclusion that Oracle 10g XE is does not support it as a feature.
    Thanks,
    Senthil

    In order to get the smaller footprint, XE has a few administrative limitations.
    Keep the name XE, or be prepared to have things in the admin tools and support environment break.

  • Change db name in dataguard

    Hello
    Has anyone experience changing database name(including datafile locations),sid,data and control file location in operational dataguard setup
    My understanding following below steps
    1)shutdown primary and standby (stop managed recovery)
    2)change db name in init.ora of primary and standby change database name control file location
    3)create control file for primary from trace(script) make changes for db name and file locations
    4)mount and open primary database
    5)create standby control file
    6) transfer standby control file to standby
    7) mount stand by database and start manage recovery
    let me know if these steps can change database name and file locations without any error
    Thanks

    I would think the control file would have to know about the change.
    I would consider the DBNEWID Utility to change the database name if I had to.
    If you change the database name the DBID will change.
    I'm thinking it would require a standby rebuild.
    Here's some more info:
    http://www.oracle-base.com/articles/9i/DBNEWID.php (Should work in 9 and above)

  • How can i change the database name on MaxDB?

    Hello.  I need to do a homogeneous copy where the source system is the productive system and the target system is the quality system. Therefore after to restore the data backup i need to change the database name of quality system (from CLP to CLQ) but i'm not sure that it could be possible because in the MaxDB documentation i didn't found nothing about that. please can you tell me if it is possible and how i change it?
    I work with MaxDB 7.6.04.11.  Thanks for your help.

    > I will try to explain better: the SID of the source database is CLP and the SID of the target database is CLQ, when you say "once you restore the DB, it will use the new SID", i understand that the new SID in the target database would CLP or am i wrong? and i need that the SID in the target database remains CLQ after the restore.
    Hi Ivonne,
    what you've described as your requirement is exactly what will happen, when you just perform the procedure that Eric described to you.
    A recovery won't change the SID of the instance you perform the recovery to.
    All it does is: take the instance as is and load the data pages to the data area. Afterwards the log files may be recovered.
    Think of the instance as a kind of container for your database.
    The instance itself is not the database - so the SID does not change with the content of the database.
    Hmm... why not simply try it?
    Create a little test instance and back it up.
    Create another instance with a different name and recover the backup of the first instance.
    You will still have both instances, each with its original name.
    regards,
    Lars

  • Changing global database name

    Hi,
    I am using oracle database 10.2.0.3.0. I tried to change the database name using
    alter database rename global_name to <new name>.
    The command is working.
    But it is not reflecting when,
    select * from global_name;Regards,
    Mathew Collins.

    Hi,
    My issue is
    > I am able to issue the command
    alter database rename global_name to <new name with out domain name>
    Eg: Initially
    > select * from global_name;
    mydb.domain.com
    >alter database rename global_name to mydb;
    > select * from global_name;
    mydb.domain.com
    The I changed db_domain="" and global_names=false in init.ora and bounced the database. Then I checked,
    select * from global_name;mydb.domain.com
    Why it is happening like this?
    Regards,
    Mathew

  • How to make code immune to changes in (external) database names?

    I wonder if there is a way to make code in one database immune to changes in names of other databases that the code uses. Essentially, what I'm after is something like an alias but not for a specific object in a database but rather for a whole database,
    be it on the same server or any other place. Is something like this possible? I wouldn't like to use Linked Servers, bear in mind please... Thanks for any replies!
    Darek

    hi Darek,
    Have you considered using SSIS for your code?  When you use SSIS, you can use data sources which are referenced by the packages, and the underlying connections to databases/servers can be changed without affecting the code.  In fact, if you use
    configuration files it becomes as simple as changing one record in a table to change where your data sources are pointing. Here is a blog on using ssis package configurations to manage data sources.
    http://dataqueen.unlimitedviz.com/2012/02/creating-an-ssis-package-template-with-predefined-package-configurations/
    SSIS is a really powerful way to manage your ETL requirements.
    Martina White

  • Changing database instance name

    Hi,
    I have oracle database 10g installed on linux.
    and now we are aking the databas eto production leve to the www
    do we need to change the oracle database name. is there any security reason for it, so outside doesn't need to know from the service name the location of the database. if we have to, then how to do it without affecting any existing processes.
    or any other ways to secure the database identity.
    any ways to give a alias to the ip address.
    any suggestions please.
    Thanks,
    Philip.

    The Oracle documentation contains a lot of security policies. In your case, you should be very cautious about firewall configuration and especially:
    If Oracle Database is behind a firewall, then do not, under any circumstances, poke a hole through the firewall. For example, do not leave open port 1521 for Oracle Listener to make a connection to the Internet or vice versa.
    Restrict the privileges of the listener, so that it cannot read or write files in the database or the Oracle server address space.
    Harden the host operating system by disabling all unnecessary operating system services. Both UNIX and Windows platforms provide a variety of operating system services, most of which are not necessary for most deployments. Such services include FTP, TFTP, TELNET, and so forth. Be sure to close both the UDP and TCP ports for each service that is being disabled. Disabling one type of port and not the other does not make the operating system more secure.
    (From http://download-uk.oracle.com/docs/cd/B19306_01/network.102/b14266/policies.htm#i1007433)

  • Change database instance name from XE to something else

    Does anyone know how to change the database name during the XE installation?

    Just remember, especially if you are coming from the Microsoft SQL Server or the MySQL world ...
    One MySQL or SQL Server database is roughly one Oracle Schema. You can have any number of Schemas in an Oracle database. It may not be necessary to have a different database name, or multiple XE databases.

  • Change the Database Name in Essbase Studio

    Hi All,
    Happy new year to all of you.
    Is there a way to change the database name in Essbase Studio, what I can see now once we have registered a database in Database Sources panel, we can't change the Database Name because it is always grayed out but the server name, user name and password can be changed.
    Actually I have mentioned this issue to our team before starting development and they proposed me the schema that I can use, but suddenly our client did not agree with it that we have been using, and then our client asked us to use another schema, FYI we are using Oracle Database as the data source.
    Can you guys here share how to manage this situation.
    Thanks,
    Rudy

    For Essbase Studio, the configuration metadata are saved as CP_tablenames, look for the CP tables, and make proper database change for the database name.
    1. Make a Oracle backup for the CP tables before you change the metadata so that you can get back in case if error
    2. Change the CP_CONNECTION TABLE, NAME column
    3. Change the CP_SOURCE table, column DNAME, for example, it is called TBC.Sales, change to NewDB.Sales
    I am not sure if there are other table also need to be updated, anyway, when you update the DBname in the metadata level, everything should be consistent in all of the related tables. Here, I assume the new db has the same table names as the old db, if the new db has very different table names, recreating everything may be easier and has less risk.
    http://hyperionexpert.blogspot.com/
    Bob

  • Pb connecting from client to database after changing domain name

    Hi,
    I've got 3 databases wthis 3 listeners. all worked well since we change domain name. database server is in DMZ and is reconize witn 2 IP adresses.
    I can ping with tnsping but when I run sqlplus user/passwd@ORACLE_SID I've got this message : ERROR:
    ORA-12535: TNS : le dÚlai imparti Ó l'opÚration est ÚcoulÚ
    on local host this command run well and connect to database.
    is there somebody that knows this problem and its solution?
    Thank you for your help.
    PS: I'm on oracle 9.2.0 and windows200 server and client

    I've got this message in listener.log
    Démarré avec pid=3028
    Ecoute sur : (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC0ipc)))
    Ecoute sur : (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=bam_sgbd.imelios.com)(PORT=1522)))
    TIMESTAMP * CONNECT DATA [* PROTOCOL INFO] * EVENT [* SID] * RETURN CODE
    19-MAR-2004 14:21:33 * (CONNECT_DATA=(SERVICE_NAME=ADRPRODR)(CID=(PROGRAM=c:\oracle\ora92\bin\sqlplus.exe)(HOST=U0011001)(USER=BerPRE))) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.2.80.180)(PORT=2032)) * establish * ADRPRODR * 0
    19-MAR-2004 14:34:36 * (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=ADRPRODR)(CID=(PROGRAM=C:\oracle\ora92\bin\sqlplus.exe)(HOST=BAM_SGBD)(USER=BAM_SGBD))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.80.223)(PORT=2394)) * establish * ADRPRODR * 0
    19-MAR-2004 14:40:53 * (CONNECT_DATA=(SERVICE_NAME=ADRPRODR)(CID=(PROGRAM=c:\oracle\ora92\bin\sqlplus.exe)(HOST=U0011001)(USER=BerPRE))) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.2.80.180)(PORT=2195)) * establish * ADRPRODR * 0
    19-MAR-2004 14:44:18 * (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=ADRPRODR)(CID=(PROGRAM=C:\oracle\ora92\bin\sqlplus.exe)(HOST=BAM_SGBD)(USER=BerPre))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.80.223)(PORT=2809)) * establish * ADRPRODR * 0
    19-MAR-2004 14:57:52 * (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=ADRPRODR)(CID=(PROGRAM=C:\oracle\ora92\bin\sqlplus.exe)(HOST=BAM_SGBD)(USER=BAM_SGBD))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.80.223)(PORT=3413)) * establish * ADRPRODR * 0
    19-MAR-2004 15:11:47 * (CONNECT_DATA=(SERVICE_NAME=ADRPRODR)(CID=(PROGRAM=c:\oracle\ora92\bin\sqlplus.exe)(HOST=U0011001)(USER=BerPRE))) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.2.80.180)(PORT=2433)) * establish * ADRPRODR * 0
    19-MAR-2004 15:55:59 * (CONNECT_DATA=(SERVICE_NAME=ADRPRODR)(CID=(PROGRAM=c:\oracle\ora92\bin\sqlplus.exe)(HOST=U0011001)(USER=BerPRE))) * (ADDRESS=(PROTOCOL=tcp)(HOST=IP_ADRESSE)(PORT=2561)) * establish * ADRPRODR * 0
    19-MAR-2004 15:56:26 * (CONNECT_DATA=(SERVICE_NAME=ADRPRODR)(CID=(PROGRAM=c:\oracle\ora92\bin\sqlplus.exe)(HOST=U0011001)(USER=BerPRE))) * (ADDRESS=(PROTOCOL=tcp)(HOST=IP_ADRESSE)(PORT=2568)) * establish * ADRPRODR * 0
    this seems to work pas on client connection doesn't arrive

  • Error: The specified mailbox database [Mailbox Database Name] does not exist, when you try to export mailbox in Exchange 2007

    [Symptom]
    ======================
    In Exchange 2007, when you want to export mailbox to a .pst file, you should run the
    Export-Mailbox cmdlet from a 32-bit computer that has the following installed:
    The 32-bit version of the Exchange management tools
    Microsoft Office Outlook 2003 SP2 or later versions
    If not, you may encounter the following error message:
    You check that you have these required installed, but you get the error below when you run Export-Mailbox in EMS.
    “The specified mailbox database [Mailbox Database Name] does not exist.”
    [Cause Analysis]
    =======================================
    This is because that the account you use to run Export-Mailbox cmdlet don’t have the Exchange Server Administrator role assigned.
    You can check if this account has been delegated the Exchange Server Administrator role through the following path.
    EMC -> Organization Configuration-> Check permissions in the result pane.
    To delegate this Exchange Server Administrator role, right click on the
    Organization Configuration node and choose Add Exchange Administrator,
    you will see the Add Exchange Administrator window.
    [More Information]
    ==============================
    Export-Mailbox
    http://technet.microsoft.com/en-gb/library/aa998579(v=exchg.80).aspx
    How to Export and Import mailboxes to PST files in Exchange 2007 SP1
    http://blogs.technet.com/b/exchange/archive/2007/04/13/3401913.aspx
    Exchange 2007 cannot export pst files via its powershell
    http://social.technet.microsoft.com/Forums/forefront/en-US/b3bc0dce-35f3-4a69-9a33-4f2a855b9f94/exchange-2007-cannot-export-pst-files-via-its-powershell?forum=exchangesvrgenerallegacy
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    Hi,
    Based on my test, if you make the user the owner of the database (rather than a user with the db_owner role), when you create a query, it creates it under the dbo schema rather than DOMAIN\username.
    Steps to do so (in Management Studio):
    Right click database, select Properties 
    Click File 
    Change Owner in the textbox 
    OK to confirm 
    Downside - other users under db_owner role will still have their username appended. So schemas have to be created for these users.
    Jaynet Zhang
    TechNet Community Support

Maybe you are looking for