Create the new database of complete hot RMAN, atrchivelog and backup control files

Hi all

I'm trying to create the new database U1234 of P1234 of full hot RMAN, atrchivelog and control P1234 file backup.

Here are my steps

(1) to restore the control file

#! / bin/sh
ORACLE_SID = P1234
export ORACLE_SID
RMAN nocatalog target / < < EOF | Tee restorecontrol.out
startup nomount pfile=/u01/oradba/admin/U1234/scripts/restore/restore071009U1234/initP1234.ora;
the value of DBID 6767676;
run
{
allocate channel d1 type disk;
controfile catering to ' / u02/oradba/U1234/control/P1234_control01.ctl';
Restore controlfile to ' / orarman/restore/P1234/cf_P1234_c-00';
change the editing of the database;
}
EXPRESSIONS OF FOLKLORE

(2) database stop then restart the database with the new contraol file using pfile.

(3) restore data files

#! / bin/sh
ORACLE_SID = P1234
export ORACLE_SID
RMAN nocatalog target / < < EOF | Tee restore_dbfiles.out
Run {}
the value of newname for datafile 1 to ' / u05/oradba/U1234/dbfile/U1234_system01.dbf';
the value of newname for datafile 2 to ' / u05/oradba/U1234/dbfile/U1234_undotbs01.dbf';
the value of newname for datafile 3 to ' / u05/oradba/U1234/dbfile/U1234_sysaux01.dbf';
the value of newname for datafile 4 to ' / u06/oradba/U1234/dbfile/U1234_users_d01.dbf';
the value of newname for datafile 5 to ' / u06/oradba/U1234/dbfile/U1234_tools_d01.dbf';
the value of newname for datafile 6 to ' / u08/oradba/U1234/dbfile/U1234_audt_x01.dbf';
the value of newname for datafile 7 to ' / u07/oradba/U1234/dbfile/U1234_audt_d01.dbf';
the value of newname for datafile 8 to ' / u07/oradba/U1234/dbfile/U1234_audt_d02.dbf';
the value of newname for datafile 9 to ' / u08/oradba/U1234/dbfile/U1234_lh_x01.dbf';
restore the database;
switch datafile;
}
EXPRESSIONS OF FOLKLORE


ORA-27063: number of bytes read or written is incorrect
SVR4 error: 28: no space is available on the device

Now, I missed the space during the restoration of data files and want to restore remaining who is 3 and 4 of datafile datafile.

Can you please let me know how I can restore it.

I need to change the names of database after the successful restoration.

DBVERSION 10.2.0.1
operating system: solaris 10

Thanks in advance.

Hello..

Do you have free space? If Yes, then you can try: -.

RUN {}
SET NEWNAME for DATAFILE 3 to ' / u05/oradba/U1234/dbfile/U1234_sysaux01.dbf';
RESTORE THE 3 DATA FILE;
DATAFILE 3 SWITCH;
}

[http://www.oracle-base.com/articles/9i/DBNEWID.php]

Anand

Tags: Database

Similar Questions

  • Why open DB with RESETLOGS option after either complete or CAMILLE with a backup control file?

    Hi all

    I'm newbie DBA and totally confused when reading about the recovery.

    Why open DB with RESETLOGS option after either complete or CAMILLE with a backup control file?

    Using while will happen after we open DB using resetlogs in above mentioned mode of recovery.. .apart from resetting the log sequence 1?

    Kind regards

    Ritu

    Hi Ritu,

    Google is a very rich source of information...

    I found this article in Hemant which I suppose is very informative for you... Read everything including the comments!

    Hemant Oracle DBA blog: OPEN RESETLOGS without making a recovery

    HTH,

    Thierry

  • create the new database programmatically

    I am creating a new MS Access database you want to connect a few results for in a labview program using the toolkit of connectivity datab ase.  The examples show how link and create a new table in an existing database file, but I want to create a new database and then insert a new table inside for my results.  Any ideas?

    You have installed Access where you can create a blank MDB file?  If so, you can create an and store it as a template in your program folder.  Copy and paste when you run your routine and use table VI to create in the Toolbox to create tables to write.  It is possible to create tables in an INSERT, but you can't control the properties of the fields.  The OP in this thread is doing this thing. (http://forums.ni.com/t5/LabVIEW/Database-connectivity-toolkit/m-p/3046359#M868188)

  • How to create the new database with rman backup

    Hello
    I took an rman backup with nocatelog. can I make a new database with the rman backup.
    If so, how? I m using oracle 9i.


    thxs

    If it is useful, see the following:

    http://www.shutdownabort.com/QuickGuides/clone_rman.php

  • How to create the new database in oracle 11g

    Hello
    I m new in oracle 11g, I downloaded oracle 11g and with the help of the guide of the developer-2 days, I learned all the SQL queries, but I worked with human resources database.
    Now, I want to create my own database with the required tables. Can anyone help me how I can make my own database in oracle 11g.

    Thank you
    Manna

    870692 wrote:
    Hello
    I m new in oracle 11g, I downloaded oracle 11g and with the help of the guide of the developer-2 days, I learned all the SQL queries, but I worked with human resources database.
    Now, I want to create my own database with the required tables. Can anyone help me how I can make my own database in oracle 11g.

    Thank you
    Manna

    Be sure to distinguish between the terms and the database schema. Other products, make them bad. It would be a HR diagram (or a user, which is the same in Oracle). If you do not need to use the database Wizard, unless you are working with a new host with no database.

    A simple way would be to get the DDL to create the HR schema and modify it for your own. It can be extracted from your database in several ways, or you can copy the hr_cre.sql to your own script and change. The two ways are educational, and you can google for instructions.

  • create the new database in MAX

    Is - this possibible to create a database on a shared network drive? I get the error message: "cannot create the database: access is denied."

    I really can't understand this as...

    (1) I "should" have all permissions to the drive letter, I want to put the database.

    (2) the creation of a database on a "D" drive connected on the computer very well SATA works.

    MAX somehow only 'know', that it is a shared network location and prevent its use?

    Any help would be appreciated, I couldn't find through the help files for MAX if there is such a thing as a 'valid' for a database location.

    RichA

    Thanks for your suggestion, it lets me know I have recommended such configured mine. The suggestion is in alignment with how I have mine currently configured. (standby server takes over when the main server will down. used standby server only until I can get the Server primary back. and while the standby server is down, they have a tendency just to this time.)

    Thanks again,

    RichA

  • Create the new database without PDB or without using C#.

    Dear all

    I am able to create the database table in oracle 12 c with prefix c#, while I want to create without prefix. I read all the documents, but still, I don't understand. can anyone explain that

    I use the following command to create the database

    create the c ##test user identified by test;

    Grant connect, resources to c ##test;

    grant imp_full_database c ##test;

    grant permission to c ##test;

    Sandy

    Oracle-DBA-Sundar says:

    Hello

    Alter system set COMMON_USER_PREFIX==''

    create user test123 identified by test123;

    Above may work

    Thank you

    Sundar

    Sometimes I wish we could downvote or dislike some of the answers.

    Even when it works, it is not correct to do so. The problem was how to distinguish between normal users in a PDB file and common users. I guess that the original poster must simply learn to switch / connect on a preliminary draft budget, where it can create users just like it was before. And the cause, it must first of all a PDB file.

    Instead he will now create common users and use these users just as local, thus throwing the whole concept shared in the drain.

    The user command to create now has an additional parameter 'container '. I use in scripts to prevent the execution of a script in the bad environment (CBD/PDB).

    In a CBD, this will create a common user. The default container clause is ALL here.

    create user mycomm identified by mycomm container=all;
    

    This creates a local user in a PDB file. The default container clause CURRENT here.

    SELECT NAME, OPEN_MODE, RESTRICTED, OPEN_TIME FROM V$PDBS;
    
    alter session set container = PDB1
    create user mylocal identified by mylocal container=current;
    

    BTW. I don't see a major issue to create ordinary users without the c# # prefix, as long as you know exactly what you are doing. I see the prefix C# as a safety mechanism, preventing you from accidentally creating common users with identical names as local users.

    Pete Finnigan did some research on how to create different types of users in an environment of 12 c: http://www.petefinnigan.com/weblog/archives/00001370.htm

  • Unable to create the new database server

    I keep running into these fundamental questions before starting even with the integration work.

    I tried to create a new topology-the physical Architecture-> Technologies > data server. But when I try with the right button on any of the technologies, I get no response. The window is not to me for some strange reason. If I right click on Technolgies, ODI invite me to create new or to import technologies.

    rAnyone had this problem before?

    See you soon

    I think you have some problems of java. JRE 6u23 works very well.

  • How to on windows 8.1 PRO create the new partition, save image system on it and restore it from this image

    HP pavilion model - 17-e054ca

    After upgrading to PRO 8.1 window I see
    C:\ 932 GB
    D:\ 28 GB-sized recovery

    I want to save system image backup
    Currently, to create the system image backup, I have only one option to create the image on the external drive or on D:\

    1 is it possible without having to reinstall windows create new partion E:\ in order of the system backup images that him?
    If yes how to create new partition in win.8.1?
    2. If the partion E:\ will contain system images can I boot from usb drive recovery and choose one of the system located on E:\ restoration images
    3. If for some reason I want to reinstall the operating system from the recovery set DVD (s) factory setting of what is going to happen with partion E:\
    4. What is-locations of D:\ marked as recovery?

    1 is it possible without having to reinstall windows create new partion E:\ in order of the system backup images that him? If yes how to create new partition in win.8.1?

    (1) YES. Please see Computers HP - partitioning and naming (Windows 8) readers for the instructions titled "create a new partition.

    2. If the partion E:\ will contain system images can I boot from usb drive recovery and choose one of the system located on E:\ restoration images

    (2) YES, provided that you mean a 'repair Windows USB drive '.

    3. If for some reason I want to reinstall the operating system from the recovery set DVD (s) factory setting of what is going to happen with partion E:\

    (3) If you "reinstall OS" a set of recovery discs HP or an HP Recovery USB Flash drive, partition 'E:\. "is erased as support for HP recovery returns the computer to a factory State. I suggest that you store your "Backup of System Image" windows on an external hard drive for best results.

    4. What is-locations of D:\ marked as recovery?

    (4) the purpose of the "D:\". "HP recovery partition is to create your recovery HP personal media, return the computer to a factory State and restore the originally installed drivers and software.

    If you have any other questions, feel free to ask.

     

    Please click the 'Thumbs Up' white LAURELS to show your appreciation

  • I can not connect db 11g PL/SQL Developer. I want to create the new database and tables. How?

    I can't connect to the database.

    PL/SQL Developer <> Oracle SQL Developer.

    But anyway...

    >I can not log on to db 11 g

    Why not? Is it because you don't have a database to log? You cannot use SQL Developer to create a database. You will need to use the database Wizard or SQL * more to it. Or you can download a virtual appliance machine that already has an installation of database on this subject...

    If you need more assistance in obtaining a database to learn with, I wrote a little more in depth here.

  • Create the new schema of database in jdev

    I can create new database schema in jdev. If yes how?

    I checked the links, but they say how to create the connection to an existing database but does not create the new database?

    Help, please...

    User, even once, to design and build a database table is possible if you have a db instance (which will contain the new tables) already installed.

    My feeling is that you don't have. Solution: install an instance db (for example Oracle XE) and once you have that continue the tutorial.

    Timo

  • Creating a new database with the file exporrt

    Hello


    I am to create a new database with an export file.


    I have the export file (exp) and the environment put in place (Oracle10g on UNIX)


    Can you gimme a few guidelines and this lines that I could probably face and again to correct.



    Kind regards.

    Hello..

    Aman has already given a link, to cross.

    Well, as you already have a new environment 10g put in place, create tablespaces and users, (accurate to the source database) with the script from the source database, and then import (imp) the export dump using fromuser touser parameter.

    Anand

  • Complete Impdp for the new database

    Hello
    I'm trying to move my database to a different server. What I need to ask about is: can I use impdp to move the database to the new environment, new server or the new database with the new paths? and what is the steps to do this? is is the fully automatic process?

    If you ask about the settings file, it's just a text file where you put your orders of datapump. Here is an example:

    my_imp.par
    --------------------
    Full = y
    job_name = my_full_import
    remap_datafiles = "C:\Documents and Settings\All Users\Favorites\file1.dbf":"/oracle_home/dbs/file1.dbf",
    "C:\Documents and Settings\All Users\Favorites\file2.dbf":"/oracle_home/dbs/file2.dbf"

    Then, you perform your impdp as command:

    Username/password Impdp parfile = my_imp.par

    Dean

  • Repair your startup disk Bootcamp disappearing after you create the new partition

    . After some research, I found that it was the way forward to create a separate partition, and so I did another partition.

    I didn't know it would affect my Windows partition that I thought it was completely different.

    So now, when I start it up, there is no option to start with Windows. But when I boot the Mac and select Startup disk, it displays Boot Camp is still there, and all my files etc. are still there.

    I tried to create one separate partition (other than Bootcamp). After that its done and I started my computer, I found that the option to boot Windows (Bootcamp startup disk) has disappeared. But I still see boot camp Mac files. Any solution for this? Thank you.

    (I tried to find this solution on the discussion Forum, and I found: repair Boot Camp after having created the new partition, however, I'm not able to follow these instructions. any help would be appreciated)

    For reference:

    Aerospews-MBP: ~ the marcuslo list $ diskutil

    / dev/disk0 (internal, physical):

    #: NAME SIZE TYPE IDENTIFIER

    0: GUID_partition_scheme * GB 500,3 disk0

    1: disk0s1 EFI EFI 209.7 MB

    2: Apple_HFS Macintosh HD 350,7 GB disk0s2

    3: disk0s3 Apple_Boot Recovery 650.0 MB HD

    4: Apple_HFS 47.6 Untitled GB disk0s4

    5: Microsoft database BOOTCAMP 101,0 GB disk0s5

    Aerospews-MBP: ~ list of cs marcuslo$ diskutil

    No logical volume group CoreStorage found

    Aerospews-MBP: ~ marcuslo$ sudo TPG - vv - r show/dev/disk0

    See the TPG: / dev/disk0: mediasize = 500277790720; SectorSize = 512; blocks = 977105060

    See the TPG: / dev/disk0: PMBR to sector 0

    See the TPG: / dev/disk0: Pri GPT to sector 1

    See the TPG: / dev/disk0: GPT Sec at sector 977105059

    start index size summary

    0 1 PMBR

    1 1 Pri GPT header

    2 32 table GPT Pri

    34 6

    40 409600 1 part TPG - C12A7328-F81F-11D2-BA4B-00A0C93EC93B

    409640 684969040 2 part TPG - 48465300-0000-11AA-AA11-00306543ECAC

    685378680 1269536 3 part TPG - 426F6F74-0000-11AA-AA11-00306543ECAC

    686648216 92929128 4 part TPG - 48465300-0000-11AA-AA11-00306543ECAC

    779577344 262144

    779839488 197265408 5 part TPG - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

    977104896 131

    977105027 32 table dry GPT

    977105059 1 dry GPT header

  • Add the new database

    I have a 2 rac cluster

    rac1 server with 2 network cards

    eth0, eth1

    rac2 server with 2 network cards

    eth0, eth1

    We have completed the installation of rac cluster

    the database is rac

    Now the manager who comes to me and says

    I want you use the environment above and create another database QA

    of course I can easily create a single instance of QA Manager

    said... I want allows you to create a car QA database

    How do I do this with the same material?

    Imagine the size of the data set is 20 GB and data used are 10 GB

    the sys admin says if you want it can create discs more than necessary.

    How to use two servers to create another data base rac called QA

    I can't go to the Manager and say... BUY a material more

    What are the minimum requirements and that is the necessary steps.

    Of course I don't want detailed step by step guide

    just a preview...

    You can use dbca (Database Configuration Wizard) to create multiple databases in the same installation of RAC cluster.

    But first think how big disks (data, Redo, Arch) (grid Infra (clusterware) disc can be same for all databases) you need this new database and add these new drives for servers and ASM if you use.

    And then create a new database with dbca.

Maybe you are looking for