Cloning a 10G database
I have a database we created on Windows 2003 Server Oracle 10.2.0.3.
I want to create a clone or copy this instance to another server with the same sid name if possible. What is the best way to do this? I have a full backup of the source database using RMAN. I understand there is a way to clone the database using the DBCU. I would like to avoid having to go through all the steps I went through creating the existing 10G database: install, patch, create database, tablespsaces, accounts, roles, import data, tune/configure.
I assume I will have to install the 10G product and patch to 10.2.0.3 but that's not an iusse. Once I have the 10.2 product installed on the new host server what is the best way to copy my existing 10G database over to that new host??
Is it possible to use a full system backup of the server using a backup created by the WIndows OS and restore this backup to the new server assuming the OS is the same? May have to make network setting adjustments but this may be the easiest solutions and I remeber some shops create clone database servers this way.
Similar Messages
-
Cloning a 10g Database using DBCA and templates
I have created a template from a 10G database (structure and data) and want to use this template and data to create a clone of the database on another server using the DBCA on the standby server. Where does DBCA ask for the names of the templates of my clone database? It seems to only have templates for its pre-existing databases (wharehouse, general purpose, custom, etc.).
Thanks. I figured this out on my own and seems work fine. My problem is I am connected over a Window network domain and the transfer speed is very slow. I finally had to kill the job and manually move the critical control, init, redo, and data files that DBCA missed. I also had to use the DBCA again to create the EM DBconsole server as well as copy over the, initPROD.ora file as well as the tnsnames.ora, listener.ora and sqlnet.ora files over to the $ORACLE_HOME/Network/Admin directory. SPFILE was create using create spfile command, I had to perform a recover database once in the initial startup of the database clone.
If I do this operation again I will move datafiles and DBCA template components from the server to a USB SCCI Drive connected locally to the source server then connect this remote disk to the target server rather than transfer files over a domain network.
Any other tips that anyone can over on cloning a database using DBCA in 10G please let me know any things to avoid, traps, bugs, best practices would be greatly appreciated.
RR. -
Cloning 10g Database in archive mode - How add new created archive files
Deat all
I want to clone oracle 10g database using hot backup. database in archive mode.
Database is running user data entry contifue, during hot backup there are aproximatly 3 to 5 new archive log created. Please guide me how add these new created archive log in cloning process.
Thanks
Alter system switch logfile;
SQL> select max(first_change#) scn from v$archived_log;
SCN
8592924
alter tablespace tablespace1 begin backup;
alter tablespace tablespace2 begin backup;
alter tablespace tablespace3 begin backup;
alter tablespace tablespace1 end backup;
alter tablespace tablespace2 end backup;
alter tablespace tablespace3 end backup;
select name from v$archived_log where first_change# >= 8592924 order by name
NAME
F:\ARCHIVELOGS\ARC00390_0664080689.001
F:\ARCHIVELOGS\ARC00391_0664080689.001
F:\ARCHIVELOGS\ARC00392_0664080689.001
create pfile='init<new database sid>.ora' from spfile;
alter database backup controlfile to trace as '/home/oracle/cr_<new sid>.sql'
STARTUP NOMOUNT
CREATE CONTROLFILE SET DATABASE "ORCL" RESETLOGS FORCE LOGGING NOARCHIVELOG
MAXLOGFILES 50
MAXLOGMEMBERS 5
MAXDATAFILES 100
MAXINSTANCES 1
MAXLOGHISTORY 453
LOGFILE
GROUP 1 'E:\oracle/oradata/dg9a/redo01.log' SIZE 100M,
DATAFILE
Edited by: Naeem Sheeraz on Nov 15, 2008 12:54 PMWhen you attempt to startup the cloned database on the new server you will find that it needs recovery -- because it was taken in hot backup mode.
That is why you need to copy the archivelogs that are generated from the first archivelog after the first "alter tablespace begin backup" to the first archivelog after the last "alter tablespace end backup".
I see that you are also including a CREATE CONTROLFILE script.
You would run that at the cloned environment.
Then you would issue the RECOVER DATABASE USING BACKUP CONTROLFILE UNTIL CANCEL command to make the clone consistent.
You can, of course, use the same method to copy these archivelogs as you use to copy database files -- tar, cpio, tape, etc. -
Wrong results after upgrading 10g database to 11.2.0.2.6
Hi,
Do anyone know, why the following query results are different?
Not Working query:
sql1:
select col1 from tab1
where col1 = (select '123' from dual)
Working query:
sql2:
select col1 from tab1
where col1 = '123';
Both the sql1 and sql2 are returning same reseults in 10g database , but not in 11g.Pl post OS details along with sample outputs and explain plans from the the sql1 statement from the two databases. These MOS Docs may help also
Things to Consider Before Upgrading to 11.2.0.2 to Avoid Poor Performance or Wrong Results [ID 1320966.1]
Wrong Results on 11.2.0.2 with Function-Based Index and OR Expansion [ID 1264550.1]
Wrong Results/No Rows for Sql Involving Functions in 11.2.0.2. [ID 1380679.1]
HTH
Srini -
Problem Oracle 10g database Installation on Windows 2003 Server
Hi All,
I am trying to face some problem to install oracle 10g database on windows 2003 server with service pack 2. Once I start to installation it give me an error "Error in writing to directory 'c:\documents and settings\administrator\local settings\temp\orainstall2004xxx'. Please ensure that this directory is writable and has at least 45MB of disk space. Installation cannot continue"
I double-insured that there is enough disk-space and I am also in the Administrators-Group.
Please guide me for the above problem although I have done oracle 9i database installation with the same configuration.
Regards
Muhammad Shoaib898118 wrote:
Hi All,
I am trying to face some problem to install oracle 10g database on windows 2003 server with service pack 2. Once I start to installation it give me an error "Error in writing to directory 'c:\documents and settings\administrator\local settings\temp\orainstall2004xxx'. Please ensure that this directory is writable and has at least 45MB of disk space. Installation cannot continue"
I double-insured that there is enough disk-space and I am also in the Administrators-Group.
Please guide me for the above problem although I have done oracle 9i database installation with the same configuration.
Regards
Muhammad ShoaibOracle really doesn't like to be installed into directories with spaces in their names. -
Reports 6i against 10g database
Hi,
We are upgrading our database from 9i to 10g. We are running our reports (6i) against 10g database in the batch mode. For some of our reports we are getting the following error:
REP-0736: There exist uncompiled program unit(s).
REP-1247: Report contains uncompiled PL/SQL.
When report is opened in ReportBuilder it needs to be recompiled against 10g and then it runs fine.
Please advise how to solve this problem.This is not because of the database is changed. Some of the packages/program units compilation dates might have changed and hence reports wants it to be recompiled.
Rajesh Alex -
Unable to open 10g Database Control Webpage from another computer
Unable to open 10g Database Control Webpage from another computer
Hi Gurus
I have just installed Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 on my PC Windows XP , created database and configured DB control
I can open Database Control Webpage on the database machine by typing
http://USI2374993VND0.vlgdw2k.visteon.com:1158/em
or
http://136.18.70.189:1158/em
But can not open it from another PC
When I do following from another PC
1. http://USI2374993VND0.vlgdw2k.visteon.com:1158/em
Get error: [code=DNS_NO_DATA] The IP address was not found during the DNS lookup. Contact your system administrator.
2. http://136.18.70.189:1158/em
Get error:Can not display web page
I can ping 136.18.70.189 but not USI2374993VND0.vlgdw2k.visteon.com
On the other PC I also tried adding 136.18.70.189 to
tools - internet options - security - local internet - sites - advanced - add this web
site to the zone as http://136.18.70.189
But it did not work
Please help with any ideas
Thanks a bunch
New DBAFirewalls?
DNS translation issues? -
How to configure Oracle Dataguard for Oracle 10g database
Hi Friends,
I would like to configuer Oracle Dataguard for my Oracle 10g Database.
Please provide me the configuration document.(step by step guide)
Regards,
DBHi
Go throw below link. This would be help to configure ODG..,
http://blogs.oracle.com/AlejandroVargas/2007/09/data_guard_physical_standby_im.html
http://blogs.oracle.com/AlejandroVargas/2007/10/data_guard_broker_observer_and.html
Thanks,
Mayilselvan.S -
Running JAXB2 in a 10g Database
Hi All,
We have some java business logic which uses JAXB2. We now would like to be able to call / store this java code inside the database. It's a 10g database, which I understand has the 1.4 JVM, so I've retrotranslated the code (and the JAXB2 dependencies) and created a compatible jar. The loadjava command^1^ completes successfully, however when I try and execute the code which unmarshals the XML, I get the following error: Caused by: java.lang.RuntimeException: Provider com.sun.xml.bind.v2.ContextFactory could not be instantiated: javax.xml.bind.JAXBException: Provider com.sun.xml.bind.v2.ContextFactory not found
The ContextFactory is definitely in the jar file. Looking through the generated DB trace file I see the following:
creating : class com/sun/xml/bind/v2/ContextFactory with resolver ((* london) (* PUBLIC) (org/apache/* -) (jp/gr/xml/relax/* -) (com/bea/* -) (javax/management/* -) (com/thoughtworks/xstream/* -) (org/jvnet/* -) (com/sun/xml/fastinfoset/* -) (sun/misc/* -))
but then, instead of resolving the class:
skipping : class com/sun/xml/bind/v2/ContextFactory
Why would the ContextFactory be skipped? Is there any way I can force the loadjava command to resolve it?
1. The server-side loadJava command I use is: call sys.dbms_java.loadjava( '-force -verbose -resolve /scripts/p3/db_sql/cta23001.jar','((* london) (* PUBLIC) (org/apache/* -) (jp/gr/xml/relax/* -) (com/bea/* -) (javax/management/* -) (com/thoughtworks/xstream/* -) (org/jvnet/* -) (com/sun/xml/fastinfoset/* -) (sun/misc/* -))' );Hi:
You can find Jaxb related classes implemented by Oracle into ${ORACLE_HOME}/lib/xml.jar but not all classes should be installed, please look at Ant task named unpack-jaxb-classes at:
[http://dbprism.cvs.sourceforge.net/viewvc/dbprism/cms-2.1/tasks/cms.xml?revision=1.19&view=markup]
this Ant task extract all Jaxb required classes which can be installed into an Oracle 10g/11g database, see the Task pre-install which install this jar into SYS's schema.
To see how to use Jaxb marshall/unmarshall operation please take a look at the method processRequestAction, inside the code you can see how to instantiate the marshaller and unmarshaller:
[http://dbprism.cvs.sourceforge.net/viewvc/dbprism/cms-2.1/src/com/prism/cms/action/Controller.java?revision=1.8&view=markup]
Best regards, Marcelo. -
Problem in running a 6i-form against 10g-Database
Hi gentlemen, I'm developing my application with Database 10g and Developer-6i at front end. when I compile a file (which was formarly created with Dev-6i but Database 8.3(personal edition)at the back end) it gives the following error:
Compiling PRE-INSERT trigger on PURINV_MAS data block...
Compilation error on PRE-INSERT trigger on PURINV_MAS data block:
PL/SQL ERROR 0 at line 0, column 0
ORA-00600: internal error code, arguments: [17069], [77299844], [], [], [], [], [], []
Compiling WHEN-LIST-CHANGED trigger on UNIT_NAME item in PURINV_MAS data block...
Compilation error on WHEN-LIST-CHANGED trigger on UNIT_NAME item in PURINV_MAS data block:
PL/SQL ERROR 0 at line 0, column 0
ORA-00600: internal error code, arguments: [17069], [77299844], [], [], [], [], [], []
Compilation errors have occurred.
however if I run this file again with Db8x at back-end,it compiles n runs correctly without any error. Plzzz can u tell me a solution for this? thanx.With 10g database, minimum required patch is patch 16 (patch 17 is last Forms 6i patch).
Regards,
Zlatko Sirotic -
Error while installing oracle 10g database
Hi all,
Can anyone please help me by providing the information to debug this issue.
I have to install 0racle 10g database,got a configuration assistant error during the installation.The configuration assistant error is as follows:
oracle net configuration assistant-cancelled.
I tried to check out the error in the log files but couldnt find the exact error.
Could any one please help me out.
Thanks & Regards,
SwathiPl post OS information, along with the appropriate sections of the install log that shows the error messages. Are you installing 10gR1 or 10gR2 ?
From the Win 32 Install Guide for 10gR2 - http://download.oracle.com/docs/cd/B19306_01/install.102/b14316/ts.htm#BABFDJDB
HTH
Srini -
Error executing a package on Oracle 10G database
Hi,
I've a package on Oracle 10G database which accepts xml string as input,loads it into XMLDOM and does some processing.
When I execute this package from .Net 2.0 client,I get the following error:
**Error**
err ORA-31011: XML parsing failed
ORA-19202: Error occurred in XML processing
LPX-00216: invalid character 0 (0x0)
Error at line 1
**Error**
But when I execute the same package from .Net client 2.0 on Oracle 9i database, it seems to work fine.The xml which I am sending is well-formed one.
Where am i going wrong?
Please help.
Thanks in advance...!
Regards,
AmitCheck the xml strings passed as input . One of the xmls may be malformed.
-
10g database installation in windows2003
Following error found in the insallation of 10g database installation in Windows 2003.
Kindly give me the solutions in [email protected]
Thaning you
Mohan, Milma, Tvm.Kerala India.
Error list from Oracle configuration assistant
Output generated from configuration assistant "Oracle Net Configuration Assistant":
Parsing command line arguments:
Parameter "orahome" = E:\oracle\ora10g
Parameter "orahnam" = OraDb10g_home1
Parameter "instype" = typical
Parameter "inscomp" = client,oraclenet,javavm,server,ano
Parameter "insprtcl" = tcp,nmp
Parameter "cfg" = local
Parameter "authadp" = NO_VALUE
Parameter "nodeinfo" = NO_VALUE
Parameter "responsefile" = E:\oracle\ora10g\network\install\netca_typ.rsp
Done parsing command line arguments.
Oracle Net Services Configuration:
Profile configuration complete.
Oracle Net Listener Startup:
Running Listener Control:
E:\oracle\ora10g\bin\lsnrctl start LISTENER
Listener Control complete.
Listener started successfully.
Setting Listener service to start automatically.
Listener configuration complete.
Default local naming configuration complete.
Oracle Net Services configuration successful. The exit code is 0
Configuration assistant "Oracle Net Configuration Assistant" succeeded
================================================================================================================
Output generated from configuration assistant "iSQL*Plus Configuration Assistant":
iSQL*Plus 10.1.0.2.0
Copyright (c) 2004 Oracle. All rights reserved.
Starting iSQL*Plus ...
iSQL*Plus started.
Configuration assistant "iSQL*Plus Configuration Assistant" succeeded
================================================================================================================
Output generated from configuration assistant "Oracle Database Configuration Assistant":
java.io.IOException:
Instance created.
DIM-00019: create service error
O/S-Error: (OS 1388) A new member could not be added to a local group because the member has the wrong account type.
at oracle.sysman.assistants.util.OsUtilsBase.execProg(OsUtilsBase.java:1090)
at oracle.sysman.assistants.util.OsUtilsBase.execProg(OsUtilsBase.java:1026)
at oracle.sysman.assistants.util.OsUtilsBase.execProg(OsUtilsBase.java:1007)
at oracle.sysman.assistants.util.Oradim.addEntry(Oradim.java:530)
at oracle.sysman.assistants.dbca.backend.InstanceStep.executeImpl(InstanceStep.java:243)
at oracle.sysman.assistants.util.step.BasicStep.execute(BasicStep.java:209)
at oracle.sysman.assistants.util.step.BasicStep.callStep(BasicStep.java:250)
at oracle.sysman.assistants.dbca.backend.CloneRmanRestoreStep.executeImpl(CloneRmanRestoreStep.java:201)
at oracle.sysman.assistants.util.step.BasicStep.execute(BasicStep.java:209)
at oracle.sysman.assistants.util.step.Step.execute(Step.java:140)
at oracle.sysman.assistants.util.step.StepContext$ModeRunner.run(StepContext.java:2394)
at java.lang.Thread.run(Thread.java:534)
Configuration assistant "Oracle Database Configuration Assistant" failedI had the same problem and solved it by doing the following:
Do not stop the DBCA to do this.
Go to Start->Control Panel-> Services -> oracleserviceyoursid and start the service. That will get you through that error.
Just in case you see this one as well....I did encounter a TNS error after that. I resolved this by commenting out (#) the line SQLNET.AUTHENTICATION_SERVICES=(NTS) in SQLNET.ORA file. -
10g Database Installation in Windows Vista
Hi,
I have downloaded 10g database for vista from Oracle site. When i tried to install,i.e, after clicking on setup/OUI a command prompt appears and nothing else is happening.
Mine is a new laptop Vostro series.
Could somebody provide me steps in getting 10g db installed.
Regards
Sudhakar TThe steps are described in detail here
If your setup.exe does not start, check your Vista security setting (also described same place). -
Creating XML file via sql in 10g database
Hi
I am using an Oracle 10g database and via a procedure that is called from Forms 10g, I want to output data in XML format so that this file can be fed into an accounting system that uses XML.
How do I go about doing this?How do I go about doing this?The most flexible way is via SQL/XML publishing functions.
And use DBMS_XSLPROCESSOR.CLOB2FILE to write the result to a file in a single call :
DECLARE
xmlresult clob;
BEGIN
select xmlelement("Departments",
xmlagg(
xmlelement("Department",
xmlattributes(
d.deptno as "id"
, d.dname as "name"
, xmlelement("Employees",
xmlagg(
xmlelement("Employee",
xmlattributes(e.empno as "id")
, xmlforest(
e.ename as "Name"
, e.job as "Job"
, e.mgr as "ManagerId"
) order by e.empno
) order by d.deptno
).getclobval()
into xmlresult
from scott.dept d
join scott.emp e on e.deptno = d.deptno
group by d.deptno, d.dname
dbms_xslprocessor.clob2file(xmlresult, 'TEST_DIR', 'departments.xml');
END;
/Output : departments.xml in Oracle directory TEST_DIR :
<Departments>
<Department id="10" name="ACCOUNTING">
<Employees>
<Employee id="7782">
<Name>CLARK</Name>
<Job>MANAGER</Job>
<ManagerId>7839</ManagerId>
</Employee>
<Employee id="7839">
<Name>KING</Name>
<Job>PRESIDENT</Job>
</Employee>
<Employee id="7934">
<Name>MILLER</Name>
<Job>CLERK</Job>
<ManagerId>7782</ManagerId>
</Employee>
</Employees>
</Department>
<Department id="20" name="RESEARCH">
<Employees>
<Employee id="7369">
<Name>SMITH</Name>
<Job>CLERK</Job>
<ManagerId>7902</ManagerId>
</Employee>
<Employee id="7566">
<Name>JONES</Name>
<Job>MANAGER</Job>
<ManagerId>7839</ManagerId>
</Employee>
<Employee id="7902">
<Name>FORD</Name>
<Job>ANALYST</Job>
<ManagerId>7566</ManagerId>
</Employee>
</Employees>
</Department>
<Department id="30" name="SALES">
<Employees>
<Employee id="7499">
<Name>ALLEN</Name>
<Job>SALESMAN</Job>
<ManagerId>7698</ManagerId>
</Employee>
<Employee id="7521">
<Name>WARD</Name>
<Job>SALESMAN</Job>
<ManagerId>7698</ManagerId>
</Employee>
<Employee id="7654">
<Name>MARTIN</Name>
<Job>SALESMAN</Job>
<ManagerId>7698</ManagerId>
</Employee>
<Employee id="7698">
<Name>BLAKE</Name>
<Job>MANAGER</Job>
<ManagerId>7839</ManagerId>
</Employee>
<Employee id="7844">
<Name>TURNER</Name>
<Job>SALESMAN</Job>
<ManagerId>7698</ManagerId>
</Employee>
<Employee id="7900">
<Name>JAMES</Name>
<Job>CLERK</Job>
<ManagerId>7698</ManagerId>
</Employee>
</Employees>
</Department>
</Departments>(formatted for display purpose)
Maybe you are looking for
-
Problems with PSE8 after upgrading to Windows 7
Hi, I was previously using PSE8 with Windows XP. Now I updated to Windows 7 (32-bit Home Premium). My catalog folder and photos are located in file server folder which is mapped to local drive M:. This drive works normally for all other Windows apps.
-
I am trying to clear up space on my hard drive, so I'm interested in archiving photos by using the "Copy/Move Offline" feature. I no longer want to have full versions on my hard drive, just the thumbnail references, and I'm hoping to minimize the dif
-
Trying to install Cs2 but old indesign won't uninstall or repair?
Trying to install the "new" posted on adobe, Cs2. Win vista for business. 1st step- add/remove programs. old indesign won't uninstall or repair! Get " was interrupted - try again" "can't find xxxxx file in dat 1 cabinet" ??? Searched forums for hours
-
Why aren't my plugins auto updating like I have it set for?
I have set up for my add-ons to automatically update but find they are not always doing that. i.e., Java and Adobe. I know that I can manually do it but do not want to have to and that is why I have it set up to auto update.
-
We are using JDBCTemplate (Spring) with MySQL as database and AES Encryption technique. The data in extended ASCII is saved correctly. But when we retrived the data, in the resultset the data is reterived correctly. However when we display the result