Database clonning
hi friends.
we need to clone our production db to test db.test db is allready exists but it is very old. now we need to update test db to the current time
setup is like this
production : sun solaris 9,oracle 9i,
test: sun solaris 9,oracle9i
production db and test db are on different file system
production: datafiles are on /d1
logfiles and control files on /d2
test: everything is in /test mount poing
on both side db is in noarchivelog mode.
i m trying to use exp/imp but the db size is 27 gb so i think exp/imp wont workout
so how do i clone my db plz suggest me its realy urgent.
Thanks in advance
I used the following document from metalink last week.
Note 174226.1
How To Copy an Oracle Database To Another Machine
Similar Messages
-
Hi,
I make a database clone.
I copied all files from start database.
After what I recreate controlfiles into the new database, and I have an error which I don't know what is it :
Wed Jul 28 13:22:28 2004
CREATE CONTROLFILE SET DATABASE "IPUMAS" RESETLOGS NOARCHIVELOG
MAXLOGFILES 32
MAXLOGMEMBERS 4
MAXDATAFILES 250
MAXINSTANCES 8
MAXLOGHISTORY 907
LOGFILE
GROUP 1 (
'/appli/oraredolog/IPUMAS/rep01/IPUMAS_redo1_1.rdo',
'/appli/oraredolog/IPUMAS/rep02/IPUMAS_redo1_2.rdo'
) SIZE 100M,
GROUP 2 (
'/appli/oraredolog/IPUMAS/rep01/IPUMAS_redo2_1.rdo',
'/appli/oraredolog/IPUMAS/rep02/IPUMAS_redo2_2.rdo'
) SIZE 100M,
GROUP 3 (
'/appli/oraredolog/IPUMAS/rep01/IPUMAS_redo3_1.rdo',
'/appli/oraredolog/IPUMAS/rep02/IPUMAS_redo3_2.rdo'
) SIZE 100M,
GROUP 4 (
'/appli/oraredolog/IPUMAS/rep01/IPUMAS_redo4_1.rdo',
'/appli/oraredolog/IPUMAS/rep02/IPUMAS_redo4_2.rdo'
) SIZE 100M
DATAFILE
'/appli/oradata/IPUMAS/rep01/IPUMAS_system_01.dbf',
'/appli/oradata/IPUMAS/rep07/IPUMAS_rollback_01.dbf',
'/appli/oradata/IPUMAS/rep16/IPUMAS_rollback_02.dbf',
'/appli/oradata/IPUMAS/rep01/IPUMAS_temp_01.dbf',
'/appli/oradata/IPUMAS/rep02/IPUMAS_temp_02.dbf',
'/appli/oradata/IPUMAS/rep04/IPUMAS_TAB_BOREF_01.dbf',
'/appli/oradata/IPUMAS/rep03/IPUMAS_TAB_DATA01_01.dbf',
'/appli/oradata/IPUMAS/rep03/IPUMAS_TAB_DATA01_02.dbf',
'/appli/oradata/IPUMAS/rep03/IPUMAS_TAB_DATA01_03.dbf',
'/appli/oradata/IPUMAS/rep03/IPUMAS_TAB_DATA01_04.dbf',
'/appli/oradata/IPUMAS/rep03/IPUMAS_TAB_DATA01_05.dbf',
'/appli/oradata/IPUMAS/rep03/IPUMAS_TAB_DATA01_06.dbf',
'/appli/oradata/IPUMAS/rep04/IPUMAS_TAB_DATA01_07.dbf',
'/appli/oradata/IPUMAS/rep04/IPUMAS_TAB_DATA01_08.dbf',
'/appli/oradata/IPUMAS/rep04/IPUMAS_TAB_DATA01_09.dbf',
'/appli/oradata/IPUMAS/rep04/IPUMAS_TAB_DATA01_10.dbf',
'/appli/oradata/IPUMAS/rep04/IPUMAS_TAB_DATA01_11.dbf',
'/appli/oradata/IPUMAS/rep04/IPUMAS_TAB_DATA01_12.dbf',
'/appli/oradata/IPUMAS/rep05/IPUMAS_TAB_DATA02_01.dbf',
'/appli/oradata/IPUMAS/rep05/IPUMAS_TAB_DATA02_02.dbf',
'/appli/oradata/IPUMAS/rep05/IPUMAS_TAB_DATA02_03.dbf',
'/appli/oradata/IPUMAS/rep05/IPUMAS_TAB_DATA02_04.dbf',
'/appli/oradata/IPUMAS/rep05/IPUMAS_TAB_DATA02_05.dbf',
'/appli/oradata/IPUMAS/rep16/IPUMAS_TAB_DATA02_06.dbf',
'/appli/oradata/IPUMAS/rep06/IPUMAS_TAB_DATA03_01.dbf',
'/appli/oradata/IPUMAS/rep06/IPUMAS_TAB_DATA04_01.dbf',
'/appli/oradata/IPUMAS/rep08/IPUMAS_TAB_MVT01_01.dbf',
'/appli/oradata/IPUMAS/rep08/IPUMAS_TAB_MVT02_01.dbf',
'/appli/oradata/IPUMAS/rep08/IPUMAS_TAB_REJ_01.dbf',
'/appli/oradata/IPUMAS/rep07/IPUMAS_TAB_WORK_01.dbf',
'/appli/oradata/IPUMAS/rep12/IPUMAS_IDX_WORK_01.dbf',
'/appli/oradata/IPUMAS/rep07/IPUMAS_TAB_MAS_01.dbf',
'/appli/oradata/IPUMAS/rep07/IPUMAS_TAB_MAS_02.dbf',
'/appli/oradata/IPUMAS/rep07/IPUMAS_TAB_MAS_03.dbf',
'/appli/oradata/IPUMAS/rep07/IPUMAS_TAB_MAS_04.dbf',
'/appli/oradata/IPUMAS/rep07/IPUMAS_TAB_MAS_05.dbf',
'/appli/oradata/IPUMAS/rep07/IPUMAS_TAB_MAS_06.dbf',
'/appli/oradata/IPUMAS/rep09/IPUMAS_IDX_DATA01_01.dbf',
'/appli/oradata/IPUMAS/rep09/IPUMAS_IDX_DATA01_02.dbf',
'/appli/oradata/IPUMAS/rep09/IPUMAS_IDX_DATA01_03.dbf',
'/appli/oradata/IPUMAS/rep09/IPUMAS_IDX_DATA01_04.dbf',
'/appli/oradata/IPUMAS/rep10/IPUMAS_IDX_DATA01_05.dbf',
'/appli/oradata/IPUMAS/rep10/IPUMAS_IDX_DATA01_06.dbf',
'/appli/oradata/IPUMAS/rep10/IPUMAS_IDX_DATA01_07.dbf',
'/appli/oradata/IPUMAS/rep10/IPUMAS_IDX_DATA01_08.dbf',
'/appli/oradata/IPUMAS/rep16/IPUMAS_IDX_DATA01_09.dbf',
'/appli/oradata/IPUMAS/rep16/IPUMAS_IDX_DATA01_10.dbf',
'/appli/oradata/IPUMAS/rep11/IPUMAS_IDX_DATA02_01.dbf',
'/appli/oradata/IPUMAS/rep11/IPUMAS_IDX_DATA02_02.dbf',
'/appli/oradata/IPUMAS/rep11/IPUMAS_IDX_DATA02_03.dbf',
'/appli/oradata/IPUMAS/rep15/IPUMAS_IDX_MVT_01.dbf',
'/appli/oradata/IPUMAS/rep14/IPUMAS_IDX_MAS_01.dbf',
'/appli/oradata/IPUMAS/rep14/IPUMAS_IDX_MAS_02.dbf',
'/appli/oradata/IPUMAS/rep13/IPUMAS_IDX_MAS_03.dbf',
'/appli/oradata/IPUMAS/rep13/IPUMAS_IDX_MAS_04.dbf',
'/appli/oradata/IPUMAS/rep11/IPUMAS_IDX_MAS_05.dbf',
'/appli/oradata/IPUMAS/rep12/IPUMAS_IDX_MAS_06.dbf',
'/appli/oradata/IPUMAS/rep01/IPUMAS_tools_01.dbf',
'/appli/oradata/IPUMAS/rep16/IPUMAS_TAB_BLOB01_01.dbf'
CHARACTER SET WE8ISO8859P15
Wed Jul 28 13:22:28 2004
ORA-1503 signalled during: CREATE CONTROLFILE SET DATABASE "IPUMAS" RESETLOGS...
Wed Jul 28 13:22:28 2004
alter database open resetlogs
ORA-1507 signalled during: alter database open resetlogs
Thank you for your help
Nicolas.Hi Alurich,
I deleted controlfile, I verified init.ora the controlfile directories is correct...
I have always this error :
Total System Global Area 1442754452 bytes
Fixed Size 73620 bytes
Variable Size 99921920 bytes
Database Buffers 1342177280 bytes
Redo Buffers 581632 bytes
CREATE CONTROLFILE SET DATABASE "IPUMAS" RESETLOGS NOARCHIVELOG
ERROR at line 1:
ORA-01503: CREATE CONTROLFILE failed
ORA-01161: database name IPMAS in file header does not match given name of
IPUMAS
ORA-01110: data file 56: '/appli/oradata/IPUMAS/rep16/IPUMAS_rollback_02.dbf'
IPMAS is my start database, I copied all file, and rename database from IPMAS to IPUMAS with command line create controlfile...
Nicolas. -
Unable to display page after database clone
We are currently running Application Express 4.02 using Oracle Web Logic on a Suse Linux 11 server. We had a new database set up for APEXPRD port 1542 that was working correctly with application express. We also had a database set up for APEXTST port 1542 (on a different database server). We removed the APEXPRD database from the database server using DBCA and then used OEM to clone the APEXTST instance to the production server. Our new database instance has the name APEXPRD with the port 1542. We have recycled all services on the APEX server but our APEX Production site no longer runs -- just getting unable to display page error 404. We checked our dads.conf file to ensure no changes were needed but everything appears correct there since the database name and port did not change.
Is there anything within the database or any other configuration files that I would need to change to get APEX to work after a database clone?
Thank you!
AmberWe got this resolved...We modified the dads.conf file to show the debug information in the browser window. From this we found where our cloned database had no temporary datafile. Once this datafile was created the APEX works correctly.
Thanks! -
DFSR Database Clone Error 0x00002336
Hi. On my second downstream server (where I want the clone imported), I get this error message:
Import-DfsrClone : Could not import the database clone. Error code: 0x00002336
At line:1 char:1
+ Import-DfsrClone -Volume d:\ -Path D:\DBCLONE
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidResult: (d:\:String) [Import-DfsrClone], DfsrException
+ FullyQualifiedErrorId : Import-DfsrClone.ImportDBCloneMethodFailed,Microsoft.DistributedFileSystemReplication.Co
mmands.ImportDfsrCloneCommand
I followed Ned Pyle's tutorial and followed his tutorial:
https://www.youtube.com/watch?v=0kPob4IKY_U
The only thing different I did modify the config.xml file because on the downstream server, the paths are different. For example, D:\Shared\Public is instead, D:\Public so that is all I changed.
What am I doing wrong?Hi,
Thanks for your posting.
I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience.
Thank you for your understanding and support.
Best Regards,
Mandy
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place. -
What is Database clone? what are the ways in MS SQL Server?
No ,I am looking for Database cloning. Is there any feature in sqlserver like this.
Bz someone ask me that What is Database cloning in Sqlserver.No ,I am looking for Database cloning. Is there any feature in sqlserver like this.
Bz someone ask me that What is Database cloning in Sqlserver.
No there is no feature exactly to clone a database.Or a command or GUI for *cloning* specifically.
Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers -
Hi all,
Can any one tell me how to clone oracle 9i database. I am new in DBA post plz help me. Or plz give me any document ID in metalink.You could use RMAN to clone a database:
Steps for Creating Duplicate Database using Rman:
• Create an Oracle Password file for the Auxiliary (Duplicate) db.
• Create an entry for the duplicate db in listener.ora & tnsnames.ora
• Create an Initialization file for the Duplicate db & modify the following parameters:
DB_FILE_NAME_CONVERT='/u01/oradata','/u01/oradata1/' [ specify primary db dbf location & duplicate db dbf location ]
LOG_FILE_NAME_CONVERT='/u02/oradata/','/u02/oradata1/' [ specify primary db redolog location & duplicate db redolog location] CONTROL_FILES=(/dup/oracle/oradata/trgt/control01.ctl)
• Create spfile for the duplicate db
• Startup nomount - - - duplicate db
• Mount or open the primary db
• Take a backup of primary db including archivelogs using rman
• Duplicating a Database on a Remote Host with the Same Directory Structure: rman catalog=rman/17rman05@t920_ant target=/ auxiliary=sys/dbsys@dupdb
run { DUPLICATE TARGET DATABASE TO dupdb NOFILENAMECHECK; }
• Duplicating a Database on a Remote Host with the Different Directory Structure: DUPLICATE TARGET DATABASE TO dupdb -
11gR1 backup for 11gR2 database clone.
Hi all,
Our OS is 64 bit RHEL 5.7. On this we have EBS R12.1.3. with db version 11.1. Recently I installed EBS 12.1.3 (actually installed 12.1.1 and upgraded to 12.1.3) on a VM and upgraded its 11.1.0.7 db to 11.2.0.3. Now as I want to test the CPU patches on this instance I decided to clone the production instance here. Since this is a higher version oracle home (11.2.0), I will have to do some new steps here but am not sure what they are. I have restored the controlfile, restored and recovered the database and opened the database with STARTUP UPGRADE command. What steps should I perform next?
Regards,
VinodI believe this is what you need to do:
- Clone your application tier node only
Cloning Oracle Applications Release 12 with Rapid Clone [ID 406982.1]
Rapid Clone Documentation Resources For Release 11i and 12 [ID 799735.1]
- Re-apply the application patches you applied for 11.2.0.3 upgrade using "nodatabaseportion"
Interoperability Notes EBS 12.0 and 12.1 with Database 11gR2 [ID 1058763.1]
AD Command Line Options for Release R12 [ID 1078973.1]
- Apply CPU patches
Oracle E-Business Suite Releases 11i and 12 Critical Patch Update Knowledge Document (April 2013) [ID 1530756.1]
Thanks,
Hussein -
Can I restore the database (clone) to different Host/User account?
Hi,
We use RMAN catalog that backup our production database using "oracle" user (OS user is "oracle") account. We wanted to clone this database to different host and to different OS user (for example is "oradev") account. Both user has same group (oradba). Can I able to restore the control fies/data files to different user account (the account that wasn't backed up).
Please update if you know of any documents/pdfs/links that explains this detail.
Thanks in advance for your assistance,
Ranga.Yes, the user account should be transparent assuming the backuppieces have the appropriate user/group permissions.
-
Hello -
I am running Oracle 8.1.7.4 on Solaris. I am attempting to clone a database on the same server. For example, use online backups of db1 and recover as db2 on the same server. I need to recover using the backup controlfile because I have to recover the archived logs. My problem is the database name. I am receiving an error stating that the database name in the init file is not the same as the controlfile. However, to give a new database name you have to create a new controlfile from trace. I can't do that though because I need the backup controlfile.
Does anyone know how this can be done?
Thanks.Hey Mike, you can do the following:-
1) In the initdb2.ora (the parameter file of the cloned Database) set instance_name = db2.
2) startup mount the clone database.
3) Rename datafiles of db2, this is very important. Or if you are using trace of the Controlfile, make sure that you give the new locations for the datafiles.
4) than do the shutdown immediate.
5) at the command prompt use, "nid" utility to rename the database - db2
6) shutdown the database again, and set db_name=db2 in the parameter file.
7) startup the database again for users.
Note : Just make sure that ORACLE_SID=db2 is all time during the database rename.
-Sameer. -
We move our production data into test environments quite often with oracle datapump and rman. Backups are not an issue but the actual time consumed is in transferring backup to test environments. Can someone suggest preparing test environments quickly and reduce the backup copy time.
Buying third party tools would be secondary option.If you have Enterprise Edition, then you should try doing incremental backups. In order to save time, you need a block change tracking file, then do a weekly level 0 incremental and a daily level 1 incremental backup. You would then need to copy the latest level 1 incremental backup every day, and the level 0 backup weekly. You need the block change tracking file to get a true incremental backup, and you need Enterprise edition to create a block change tracking file.
Another option is to keep a standby database in your test environment that you can clone from, but you need to see how well that database keeps up as a standby. It would be an optional standby, which could be used for cloning. -
When cloning a database with RMAN do all the old datafiles, control files and redo logs need to be removed or will Oracle overwrite these files
with the backup ? I seen some documention that says to remove the old files first.
Thanksuser771256 wrote:
So what your saying using the same number of datafiles and same file names just keep them all in the same directory including control files and redo logs etc..
Does it wipe the whole file clean first then re-write the file. This database is 500GB and I do this often for our test enviroment.
If seems like this would make more work for Oracle to do.
What happens to the datafile if its larger then what is being restored ?
Does Oracle clean out the old data blocks in each datafile during the clone process ?
Thanks-I'd bet a round at the local pub that rman is simply asking the OS to open the file for output, then asking the os to write to said file, passing it the blocks to be written. Point being that rman itself is not really writing the file, but asking the OS to do it with standard I/O calls to the OS. And I believe that if the OS is asked to open a file for output, and a file with that name already exists, the OS will simply de-allocate the space occupied by the existing file, then start allocating space by its normal mechanism, having no bearing on where the pieces of the original file were located.
So the answer would be no it does not wipe the old file (at least not in the sense of preserving the space but deleting the contents), it simply deallocates the space that it occupied. And then starts allocating space for the new file, with said space may or may not include all or parts of the space previously occupied by the old file. -
Hi All,
I have a requirement to clone 2 RAC Database to Non-RAC.
Db and Clusterware version --->10.2.0.4
OS version -->OEL 4.6
Nodes in cluster ---> 2
Shared storage type --> ocfs
I have already prepared target server with OS 4.6 linux and database specific settings.
thanks in advance.on source db:
1. alter system switch logfile; alter database begin backup;
2. Copy all database files (ie. datafile, tempfile, control file, spfile/pfile, redo ... etc) to target server
3. alter database end backup;
On target server:
0. Set cluster_database=false in the pfile
1. Startup mount;
2. alter database datafile '<datafile>' end backup;
3. alter database open;
if you want to rename datafile & rename database, you need to recreate control file.
Edited by: user5544520 on Feb 15, 2011 3:47 AM -
Scheduled process flows are not running automaticaly-OWB database clonning
What I did:
1. Cloned the entire OWB repository database from live (bidb01.bh.xyz.com) server to new (green1.bh.xyz.com) server.
****** Source New
Physical Hostname bidb01.bh.xyz.com green1.bh.xyz.com
DB Logical Hostname xyzbidb bidb-lh
Service Name BIPROD BIPROD
Listener Port 1521 1521
Oracle Home of RDBMS /app/oracle/home/product/10.2.0 /orabidb/oracle/product/10.2.0
Oracle Home of OWB /app/oracle/home/product/10.2.0/owb /orabidb/oracle/product/10.2.0/owb
2. Followed the Metalink Note 434272.1 (How To Update Warehouse Builder After A Database Cloning)
Issue:
Before doing the step-2, every time we put the new database up the normal process flows which run every day (10 AM, 1 AM , 2 AM , 2 PM, etc.) got executed on the production environment and hung the original processes that are being run on the production environment.
After following the note 434272, scheduled process flows in production is working fine but in the new server it is not at all working.
Could anyone please help me to fix this?
Edited by: Padmanaban G on May 7, 2010 5:15 PMThe issue was resolved by renaming the workflow. What is learned here is, we should not have same workflow name for two different workspace.
-
hi all
1.how to clone a oracle database?
2.what is the difference between cloned database and restored back up of a particular database?Hi.. I am giving procedure for cloning a database
Regards
sai
Task :Creating cloning database
================================
S no Task Result
===================================================================================================
1 Shut the database & open in SQL>shut immediate
the restric mode. SQL>startup restrict
2 Take controlfile backup SQL>alter database backup controlfile to trace;
3 shut cleanshutdown SQL>shut normal
4 Go to the trace files $cd admin/jay/udump
5 copy the reset logs file $vi clone.sql
information & paste in
new .sql file
6 Change the sid sid change jay to clone
7 Create file of environment $vi clone.env variable
8 Change the SID of the clone.env SID is clone
9 Run the bashrc . clone.env
10 Go to the admin&create directory admin$mkdir clone
directory
11 Create cdump bdump udump dir clone$mkdir cdump udump bdump
ectory in the clone
12 Create clone directory in the oradata$ mkdir clone
oradata and copy all files which
are in the previous directory
(another database sid name)
except control files
13 Copy initjay.ora initclone.ora initclone.ora
and change sid and comment of EXCLUSIVE
14 Open the database in nomount SQL>startup nomount
15 Run the script SQL>@clone.sql
16 Open the database SQL>alter database open resetlogs
clone.sql:
CREATE CONTROLFILE SET DATABASE "CLONE" RESETLOGS ARCHIVELOG
-- SET STANDBY TO MAXIMIZE PERFORMANCE
MAXLOGFILES 50
MAXLOGMEMBERS 5
MAXDATAFILES 100
MAXINSTANCES 1
MAXLOGHISTORY 226
LOGFILE
GROUP 1 '/ora2/oracle9/oradata/clone/redo01.log' SIZE 100M,
GROUP 2 '/ora2/oracle9/oradata/clone/redo02.log' SIZE 100M,
GROUP 3 '/ora2/oracle9/oradata/clone/redo03.log' SIZE 100M
-- STANDBY LOGFILE
DATAFILE
'/ora2/oracle9/oradata/clone/system01.dbf',
'/ora2/oracle9/oradata/clone/undotbs01.dbf',
'/ora2/oracle9/oradata/clone/cwmlite01.dbf',
'/ora2/oracle9/oradata/clone/drsys01.dbf',
'/ora2/oracle9/oradata/clone/example01.dbf',
'/ora2/oracle9/oradata/clone/indx01.dbf',
'/ora2/oracle9/oradata/clone/odm01.dbf',
'/ora2/oracle9/oradata/clone/tools01.dbf',
'/ora2/oracle9/oradata/clone/users01.dbf',
'/ora2/oracle9/oradata/clone/xd
[oracle9@of32 clone]$ ls
drsys01.dbf indx01.dbf redo01.log redo03.log temp01.dbf undotbs01.dbf xdb01.dbf
cwmlite01.dbf example01.dbf odm01.dbf redo02.log system01.dbf tools01.dbf users01.dbf
initclone.ora
=============
*.aq_tm_processes=1
*.background_dump_dest='/ora2/oracle9/admin/clone/bdump'
*.compatible='9.2.0.0.0'
*.control_files='/ora2/oracle9/oradata/clone/control01.ctl','/ora2/oracle9/oradata/clone/control02.ctl','/ora2/oracle9/oradata/clone/control03.ctl'
*.core_dump_dest='/ora2/oracle9/admin/clone/cdump'
*.db_block_size=8192
*.db_cache_size=33554432
*.db_domain='orafact.com'
*.db_file_multiblock_read_count=16
*.db_name='clone'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=cloneXDB)','(PROTOCOL=TCP)'
*.fast_start_mttr_target=300
*.hash_join_enabled=TRUE
*.instance_name='clone'
*.java_pool_size=83886080
*.job_queue_processes=10
*.large_pool_size=16777216
*.open_cursors=300
*.pga_aggregate_target=25165824
*.processes=150
*.query_rewrite_enabled='FALSE'
# *.remote_login_passwordfile='EXCLUSIVE'
*.shared_pool_size=83886080
*.sort_area_size=524288
*.star_transformation_enabled='FALSE'
*.timed_statistics=TRUE
*.undo_management='AUTO'
*.undo_retention=10800
*.undo_tablespace='UNDOTBS1'
*.user_dump_dest='/ora2/oracle9/admin/clone/udump'
~ -
Clone database from server to PC
Hi all,
I am having the difficulty after clone the database from a hot backup from server. Both server & PC running at W2k OS and Oracle 8.1.7. Below are the steps what i am doing.
1)Take a hot backup from the server.
2)Create a folder \oracle\oradata\CLONE. Stored all the datafiles there.
3)Copy the init.ora from the server and paste to \oracle\admin\CLONE\pfile. Amended all the location, instance name, db name, etc.
4)log in to server and run the command, ALTER SYSTEM BACKUP CONTROLFILE TO TRACE RESETLOGS.
5)Copy the trace file and amend to the create control file script. Alter the script like
STARTUP NOMOUNT
CREATE CONTROLFILE SET DATABASE "CLONE" RESETLOGS ARCHIVELOG
MAXLOGFILES 5
MAXLOGMEMBERS 3
6)Also created the service using the command ORADIM.
7)Under OS command line, SET ORACLE_SID=CLONE and then log in the SQL*PLUS. Once i executed the create control script. I hv encounter error like ORA-27100: shared memory realm already exists.
Could anyone tell me why this error occurs and how to solve the problem.
TQ,
AlfredYour got this error because you try to create a new control files on an open instance.
You need to shutdown the instance ( SQL>shutdown immediate ) and connect back to the database using the nolog flag, then do connect to the sysadm, this will start the backgroup process. just them you will be able to initiate your command.
SQL> shutdown immediate
c:\>sqlplus /nolog
SQL>connect /as sysdba
SQL>@YourControlFileCreateScript.
Maybe you are looking for
-
Proforma Invoice for Contracts in CRM
Hi, We have a setup where we print invoice documents from the billing document of the contract. Now the requirement is to print the proforma invoice for the contract without doing the actual billing in the system. How can we do this. I found that the
-
How can I add footnotes to a text in a table?
To make use of a wider margin next to longer texts I usually work with two column tables in WORD. No problem to add footnotes to a text there. How can I add footnotes to text in a table when using PAGES? Or -alternatively - how can I write an ordinar
-
How to create folder names based on Excel values or Txt files?
Hi there, I often need to create large numbers of folders based on names I have saved in an Excel spreadsheet. I know in windows there is a way to create a macro within excel that automatically generates folder names based on cell values. I was there
-
When I set up my PDF to open in Full Screen Mode, it always opens at full screen size. Is there a way to reduce the size of the page to 50% or so? I tried doing so in the settings but whatever I do, it keeps opening up to full screen size. Thanks!
-
Playing Burned DVD's - some work, some stop and pixelate
I created my first DVD project with Final Cut Pro and finished it in DVD Studio Pro. I played it on my 2004 Panasonic DVD player without a problem, but when I sent it to family and friends many of them said there was chatter and sometimes it hung up