How to create a new database instance from an existing one?

Hi, I basically want to create a snapshot of a production
instance (version 8.1.7) for querying purposes. Would anyone
tell me the steps involved? What I did as follows:
1. Copy all data files to a new location
2. Modify init.ora accordingly. I believe there is no separate
control file for this version.
But when I startup the instance, got this error:
ORA-01103: database name 'TRITON' in controlfile is not 'HERCULE'
What is missing? Do these data files contains links to the
previous instance name?
Thanks for any help.

Hi All,
I need some help in recreating new database instance.
Here are the steps I have done so far:
1. Created a database with name 'LASTDB' using DBCA
2. Connected to RMAN.
3. RMAN>SET DBID=******; (of the source database)
4. Connect to target. RMAN>connect target SYS/*****;
5. Executed controlfile restore on RMAN.
     RMAN>Run{
Allocate channel D1 Type DISK;
          Set controlfile autobackup format for device type DISK to
‘\\<ip_address>\Backup\Prod\%F’;
Restore controlfile from autobackup;
6. RMAN> ALTER DATABASE MOUNT;
Now got an error saying ORA-01103: database name ‘PRODDB' in control file is not ‘LASTDB’
I tried using NID to change the database name but it's throwing an error that database is not mounted.
I have browsed a lot and found that I need to recreate a control file of the production database using ALTER DATABASE BACKUP CONTROLFILE TO TRACE and should edit the trace file. But it also says to shutdown the source database which is production database and I cannot try that.
Also I have tried adding a line to init.ora like lock_space_name = LASTDB. Also tried replacing everything from LASTDB to PRODDB but that didn't work either.
I have been trying to find a solution to this. Please bear with me as I'm a beginner and please let me know how I can fix the error.
I am running oracle 10.1.0.2.0 enterprise edition on windows 2000.
Thanks for your patience,
KG

Similar Messages

  • Best Practice for Creating a New WebHelp Project from an Existing One

    I'm currently working in WebHelp Pro (RH version is 9.0.2.271).
    I have a WebHelp project which currently supports the 2012 version of one of our projects. What I needed to do was to create a separate 2013 project, using the 2012 files as the starting point. I couldn't find a way in RH to create a new project by importing an existing WebHelp project, so I copied the 2012 files to a new directory, opened up the project, and renamed it.
    What prompts this question is that following this exercise, all seemed well, for a time. However, I have recently had to create new topics in the 2012 version. However, when I imported these topics to the 2013 project and compiled, they vanished--although the htm files still appear in the appropriate 2013 file folder (when viewed with Windows Explorer).
    After reading some forum postings, I thought that I might have corrupted my database by improperly creating the new project--but if what I did is the wrong way to go about it, I'm not sure what the correct way is. I will be grateful for any suggestions.

    The easy way to do this is create a copy using Windows Explorer.
    Open the project and go to File > Rename.
    Then you have your 2013 ready made project.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Trouble in creating a new iCloud account from the existing one

    my dad gave me his iPad which he bought(iPad 2) it's troubling me with the iCloud account, the iPad has my dad's existing iCloud account and I want to delete it but I don't have the password so does my dad he doesn't have the password for the account.so my question is could you assist me on how to create a new iCloud account without having the password of the old one.it uses iOS 7.1.2.

    You won't be able to delete the existing account in order to set up a new one without the password for the old account.  If your father doesn't remember the password, he can reset it as explained here: iCloud: Change your iCloud password.

  • How to create a new database after copying an existing database with a new name

    hi
    i have an existing database and want to copy with a new name in sql server 2005 how do it is possible 
    spose
    i have a db name attached in sql server StoreManagementDB now i want to copy this database with all the transactions as StoreManagementDB_1.
    thanks

    Use a two steps to use a backup file to restore a database with a new name.
    ----You need to have a full backup of your database:
    --Step 1:
    RESTORE FILELISTONLY
    FROM DISK = 'C:\bk\TEST.BAK'
    --Find out the LogicalName of data file and log file
    -- in this case: the data file: TEST and the log file LogicalName: TEST_log
    --Both names will be used in the MOVE command
    --Step 2:
    -- Restore the files for test1.
    RESTORE DATABASE test1
    FROM DISK = 'C:\bk\TEST.BAK'
    WITH RECOVERY,
    MOVE 'TEST' TO 'C:\bk\test1_Data.mdf',
    MOVE 'TEST_log' TO 'C:\bk\test1_Log.ldf'
    GO

  • Can't select the new Azure sql service tiers when creating a new database or upgrading an existing one

    Hi all,
    I have set up the preview for the new Azure SQL tiers on both of the subscriptions we have for Azure. The one under my MSDN subscription to and a pay as you go subscription
    The pay as you go subscription works fine but when I try to upgrade an existing Azure sql database or create a new one on my MSDN subscription it doesn't give me the option of the new tiers.
    Using the new portal it says I need to sign up to the preview, but I already have and when I go to try to add a new subscription to the preview for Azure SQL it says all my active subscriptions are on the preview.
    Any idea what the issue could be?
    Cheers
    Ash

    Hi,
    Apologies for the inconvenience.
    I suggest you open a Billing Support Ticket. They will be able to check this for you.
    http://azure.microsoft.com/en-us/support/options/
    Regards,
    Mekh.

  • How do I create a new boot disk from an existing one?

    I have a G4 Quicksilver with internal PATA disk, running 10.4. I want to upgrade the internal disk from 40 GB to 160 GB. I have installed a second disk and can see it fine, but what I really want is to put the system on the new disk and have it be the one and only boot disk in the system. Is there a straightforward way to do this? Is a carbon copy cloner the way to go? Will that have problems with the different disk sizes? Will it handle bad blocks properly? Isn't there a way to just use drag-and-drop?
    Once I have made a copy, how do I make it the boot disk? Do I have to swap it into the PATA "master" position to do this?

    Cloning And Backup Tools
    A bootable clone is an exact copy of your drive which is capable of booting your computer. Making a copy of your computer which is capable of actually starting the computer requires special copying procedures. Some people just back up data files but if you have problems you have to reinstall all your operating system and all your applications. With a bootable clone you just start up from the backup drive and clone back everything.
    To copy files from one hard drive to another hard drive you can use:
    [CarbonCopy Cloner|http://www.bombich.com/software/ccc.html] (donationware)
    [SuperDuper|http://www.shirt-pocket.com/SuperDuper/SuperDuperDescription.html] (shareware)
    [IBackup|http://www.grapefruit.ch/iBackup/index.html] (free)
    The Restore function of Disk Utility included in OS X. [Kappy's directions|http://discussions.apple.com/message.jspa?messageID=8799711#8799711]
    [Tri-Backup (commercial)|http://www.tri-edre.com/english/tribackup.html] (payware)
    [Silverkeeper|http://www.lacie.com/silverkeeper> (free) - version 2 has some issues (references: [1|http://www.macintouch.com/readerreports/backup/index.html#d12jan2009],
    [2|http://www.macintouch.com/readerreports/backup/index.html#d13jan2009]) and it is recommended Tiger users stick with 1.1.4.
    [Kappy's Backup Software Recommendations|http://discussions.apple.com/message.jspa?messageID=9065665#906 5665]
    [Overview of Mac OS X Backup Programs|http://8help.osu.edu/1247.html]

  • Creating new graphics object from a existing one and sending it for print

    Hello,
    i have a graphics object which is big in size, I am creating a new graphics object from the existing one as given below
    //map is a graphic object
    Graphic g1 = (Graphic)map.create(x,y,width,height);
    Graphic g2 = (Graphic)map.create(x,y,width1,height1);
    Graphic g3 = (Graphic)map.create(x,y,width2,height2);
    arrayList.add(g1);
    arrayList.add(g2);
    arrayList.add(g3);
    Now I want to send the graphic object g1,g2,g3 for print in the method
    public int print (Graphics g, PageFormat pf, int idx) throws PrinterException {
    // Printable's method implementation
    if (curPageFormat != pf) {
    curPageFormat = pf;
    pages = repaginate (pf);
    if (idx >= 3)) {
    return Printable.NO_SUCH_PAGE;
    g = (Graphics) arrayList.get(idx);
    return Printable.PAGE_EXISTS;
    This is not working... what is wrong. can anybody suggest..
    I tried standardprint.java to print a object inside a scrollpane, it is not printing the entire diagram. so I am thinking of something like this.... Please let me know what to do....
    Thanks
    Serj

    The easy way to do this is create a copy using Windows Explorer.
    Open the project and go to File > Rename.
    Then you have your 2013 ready made project.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Creating a New database instance

    Hello experts,
    I need to create a new database instance and later drop my old one.
    Can anyone send me detailled guidelines on how i should do this without experiencing any performance degradation and also alert me on anything that can go wrong.
    thanks in advance
    Yogeeraj

    I suspect you'll get more help if you address this question to the Linux forum. This question appears to have nothing whatsoever to do with the Oracle ODBC driver.
    Justin

  • How to create a new database in SUP

    Hi,
    Iam using SUP 2.1 ESD#1 licensed version
    How to create a new database other than the default sampleDB.
    Thanks,
    B.Ushasri

    Hi B.Ushasri,
    This is actually pretty easy.
    1) open the Unwired Workspace (SDK in eclipse).
    2) Bottom right, add a new Database connection with the following details:
               Sybase ASA v12.x,
               host=Your Sup box,
               port=5500,
               user=dba
               password= Your password (default = dba)
    3) Once you connect successfully, right click on the connection and choose the "Create database" option.
    That should do it for you. It is the same connection as the sampleDB connection so if you already have that defined then its a simple, right click on it once connected and hit create database.
    Hope that helps,
    Brenton.

  • How to Create A new Database in the oracle 10g XE

    i have oracle 10g XE i tried to create a new database but its giveing me error when i execute the sql command that is create database testDatabase how to create a new database in oracle 10g XE

    Hi there 785434,
    (This is a generic SQL question relating to Database Triggers, please post future questions of this type into the relevant forum area.)
    Moderator, please move this if able
    I use Before Update and Before Delete Triggers to record a 'snapshot' of the row being changed in my applications.
    Example:
    CREATE TABLE TEST
    DATA VARCHAR2(64 CHAR),
    CREATING_USERID VARCHAR2(20 CHAR) DEFAULT user NOT NULL,
    CREATED_DATE DATE NOT NULL,
    CHANGED_BY_USERID VARCHAR2(20 CHAR),
    CHANGED_DATE DATE
    LOGGING
    STORAGE
    (MAXEXTENTS UNLIMITED);
    CREATE TABLE TEST_HISTORY
    DATA VARCHAR2(64 CHAR),
    CREATING_USERID VARCHAR2(20 CHAR) DEFAULT user NOT NULL,
    CREATED_DATE DATE NOT NULL,
    CHANGED_BY_USERID VARCHAR2(20 CHAR),
    CHANGED_DATE DATE,
    CHANGE_DESCRIPTION
    NOLOGGING
    STORAGE
    (MAXEXTENTS UNLIMITED);
    CREATE OR REPLACE TRIGGER TRG_BU_TEST
    BEFORE UPDATE ON TEST FOR EACH ROW
    BEGIN
    INSERT /*+ append */ INTO TEST_HISTORY
    (DATA, CREATING_USERID, CREATED_DATE, CHANGED_BY_USERID, CHANGED_DATE, CHANGE_DESCRIPTION)
    VALUES
    (:old.DATA, :old.CREATING_USERID, :old.CREATED_DATE, USER, SYSDATE, 'UPDATE');
    END;
    CREATE OR REPLACE TRIGGER TRG_BD_TEST
    BEFORE DELETE ON TEST FOR EACH ROW
    BEGIN
    INSERT /*+ append */ INTO TEST_HISTORY
    (DATA, CREATING_USERID, CREATED_DATE, CHANGED_BY_USERID, CHANGED_DATE, CHANGE_DESCRIPTION)
    VALUES
    (:old.DATA, :old.CREATING_USERID, :old.CREATED_DATE, USER, SYSDATE, 'DELETE');
    END;
    Using triggers like this will record who made an update or delete to the database and record the row before it was changed.
    Note that this method might not be suitable for very high transaction rates.
    You will need to 'clear' these history tables as part of routine maintenance.
    Hope that this Helps.
    Ronald.

  • Which rights are required for a user to create a new database instance

    Hi,
    Which user can create a database instance? Is it Admin or any user? or Is it must to have admin rights on the <oracle_home> folder in order to create a new database instance?
    Please let me know what rights the user should have for creating a new database instance.
    Regards,
    venkat

    If I login to machine as a Guest user or I am not a owner of Oracle software then in the both cases I couldn't able to create a new database instance. Am I right?
    Please suggest me.
    Regards,
    Venkat

  • Help with creating a new XML file from an existing DOM tree!!

    i want to create a new XML file from an existing DOM tree
    i used this code to create a new document:
    static public Document createDocument(String fileName) throws ParserConfigurationException//,IOException,SAXException
              try {
                   DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
                   factory.setIgnoringComments(true);
                   factory.setIgnoringElementContentWhitespace(true);
                   factory.setValidating(true);
                   DocumentBuilder builder =factory.newDocumentBuilder();
                   return builder.newDocument();
    //          handle exception creating DocumentBuilder
              catch ( ParserConfigurationException parserError ) {
                        throw new ParserConfigurationException();
              }then i used this code to transform the DOM :
    public void exportDocument(Document document) {
              try {
                   Source xmlSource = new DOMSource( document );
                   Result result = new StreamResult( System.out );
                   TransformerFactory transformerFactory =
                        TransformerFactory.newInstance();
                   Transformer transformer =transformerFactory.newTransformer();
                   transformer.setOutputProperty( "indent", "yes" );
                   transformer.transform( xmlSource, result );
           //then catching the exceptions
    But the file was not created and i didn't find where can i specify the DTD that the XML file should use and where can i enter the name of the XML file itself
    Another questoin can i write a DTD file dynamically during the execution of the program??

    Cross-post: http://forum.java.sun.com/thread.jspa?threadID=784467&messageID=4459240#4459240

  • Windows 8 installation error: "We couldn't create a new partition or locate an existing one. For more information, see the Setup log files."

    I recently tried testing Server 2012 for installation and I had a major issue.  Windows 8 also uses the same method for installation so this should also apply to Windows 8.  I thought this might be helpful for other people who have the same
    problem.  My setup is a 1U server with no DVD drive, no hard drives, and only USB.  I have a new hard drive that I wanted to install Server onto, so I put it in and ran the installer off a thumb drive.  I kept receiving the following error when
    I tried to format the hard drive and proceed with the installation:
    "We couldn't create a new partition or locate an existing one. For more information, see the Setup log files."
    After hours of troubleshooting, I determined my problem was I was using a thumb drive to install it, and Windows didn't like it.  Some people had similar issues when similar devices were plugged in (i.e. external hard drives, SD cards, CF cards, etc). 
    In my case, it was the installation drive itself was a thumb drive.  I ended up digging up an external DVD drive and placed the installation onto a DVD.  Worked flawlessly.  Now I am up and running.
    I tried
    the steps here to no avail.
    Hope this helps anyone else with the same problems.

    Hi,
    Thanks for sharing. We really appreciate your time and efforts. Hope your experience will help other community members facing similar problems.
    Leo Huang
    TechNet Community Support

  • How to create a new DataBase using Oracle 10g Express Edition???

    Hello, I am new to Oracle, I am used to Microsoft SQL Server (Enterprise Manager).
    Here in Oracle I do not get how do I create a DataBase, and then create tables on it.
    could anyone please explain to me how to do it?

    A SQL Server database is roughly equivalent to an Oracle schema.
    You should rarely need to create a new database. If you do need to create a database, get a 'for fee' edition of Oracle and use the dbca tool (Database Configuration Assistant) to do that. In fact, you are only allowed to have one XE database on the machine.
    However, you can create as many schemas in an existing Oracle database as you need. (One schema, owned by userid SYS, is roughly equal to your 'master catalog'.)
    You can create other schemas simply by
    1) creating a userid that will own the schema (one designated for maintenance of the schema);
    2) grant that userid appropriate privileges, such as 'CREATE TABLE', 'CREATE VIEW' as shown in the SQL Reference manual under the GRANT section;
    3) provide that userid with a quota in one or more tablespaces (see the CREATE USER command in the SQL Reference manual);
    4) create the objects, such as tabels, views, sequences, stored procs and functions, etc. (as in the SQL Reference manual);
    5) create the users who will access the objects, and grant them the CREATE SESSION capability (as in the SQL Reference manual);
    6) grant access (select, update, execute, etc.) on the schema objects to these users (as in the SQL Reference manual);
    7) if desired, create synonyms on the schema objects so the users do not need to use fully qualified syntax such as "SELECT col FROM schema.table;" (as in the SQL Reference manual).
    In case you are interested in looking at the SQL Reference manual, it can be found at http://www.oracle.com/pls/db102/portal.portal_db?selected=1 ;-)

  • How to create a new database and use it?

    Hi there,
    I have so many tables in the current database that i'm working on. When i start to create a new table such as employee, student, person...etc it doesnt allow me to create them becuase it says the tables exists. Even when i use the drop command to drop the tables, doesn't help. So most of the time i have to create a table with postfix of 1, 2 to the table name.
    Therefore i need to create a database for every project that i do.
    How do i create a new database?
    Then how do i use the database that i just created?
    Then how do i find the out whats the database that i'm currently working on?
    Thanks!
    Message was edited by:
    dingdong
    Message was edited by:
    dingdong

    A database is a physical set of files that contains many schemas. Each schema has a one to one relationship with database users, so to create a new schema you create a new database user.
    e.g.
    CREATE USER fred IDENTIFIED BY fredspassword;Then, by logging on as fred you can create all the new tables you like as that user, in that users schema.
    If you create a new database then you will find you cannot access functions/procedures, packages, tables etc. that exist in another users schema without creating a database link to the other database that contains them.
    If you just create a new schema, you can more easily get at other users schema objects (tables, packages etc.) by referencing them with the users name e.g. JOE.TABLE1 providing that user has given permission for your user to access them. You can also create synonyms that allow you to reference other users schema objects as if they exist in your own e.g. you can have something called TABLE1 in your own schema that is in fact referencing JOE.TABLE1.
    Message was edited by:
    BluShadow
    remove quotes from password. oops! thanks padders

Maybe you are looking for

  • Problems with new ipod touch gen3

    Hi, I just got a new ipod touch and i have problems connecting it with my WRT54GX ver 2 wirelles router. It shows that is connected but when i check the IP it has the default 169.254.202.45  one which means that the AP did not assign an IP. I tried w

  • New to Mac, how can I use isight webcam and connect ot my MS messenger buds

    Ok about to buy an iMac, never used one always had PCs however all my buddys use MS messenger, I know there is a version of this for Mac now but dont think it supports the iSight camera. Also I dont think the included app iChat allows you to connect

  • Ipad 2 to TV HDMI settings?

    I connected my ipad2 to an lcd tv with the HDMI cable. The image is on the TV but it is very small, perhaps 1/3 of screen. i suspect my settings are not correct. Advice?

  • Re: Can't upgrade Qosmio X300-130 to Win 7 64bit

    Hi. is it not possible to upgrade my X300-130 to Windows 7? It says that the BIOS does not allow 64-bit. Please answer. Alex.

  • Windows Powershell has stopped working

    Hi, I am getting an error during Windows logon, which says "Windows Powershell has stopped working". When I looked at the event logs, I found the below event in App logs. Can you pls help what is going wrong here? Log Name:      Application Source: