Clone only structure of 9i to 10g
Hello,
Is there a way to clone the structure/metadata of a 9i database (Windows 2000 Server) to a remote server that's 10g (Windows 2003 R2 Standard x64 Edition)? I'm only interested in the structure/metadata since the table data in 9i are dropped daily and reimported. There's a lot of users, roles, db links, etc, that I want to transport into the 10g database. I've tried exp/imp, and I got a lot of errors. I was suggested to use RMAN, but I don't know how to use RMAN just to backup the structure/metadata of 9i, especially since the directory structure for the datafiles of the new server (10g) is different than the old server (we have a dedicated hard drive ready just for the datafiles in the new server). Also, I would like to increase the db size in the 10g server to 8K (the 9i has db block size of 4K). Any way to do that with RMAN? Thanks.
Thanks for the quick response. I've tried something like that, but I received errors. Here's what I typed in the 9i server:
exp system/******** full=y direct=y constraints=y indexes=y file=C:\backup\expimp\worows\full.dmp log=C:\backup\expimp\worows\log.txt rows=n;
I've copied the full.dmp file (only 10MB) to the 10g server. From the 10g server, I've used the imp command and got the following error:
Export file created by EXPORT:V09.00.01 via direct path
import done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
. importing SYSTEM's objects into SYSTEM
IMP-00017: following statement failed with ORACLE error 29339:
"CREATE UNDO TABLESPACE "UNDOTBS" BLOCKSIZE 4096 DATAFILE 'C:\ORACLE\ORADAT"
"A\INFOTEST\UNDOTBS01.DBF' SIZE 209715200 AUTOEXTEND ON NEXT 5242880 "
"MAXSIZE 16383M EXTENT MANAGEMENT LOCAL "
IMP-00003: ORACLE error 29339 encountered
ORA-29339: tablespace block size 4096 does not match configured block sizes
IMP-00017: following statement failed with ORACLE error 29339:
"CREATE TABLESPACE "CWMLITE" BLOCKSIZE 4096 DATAFILE 'C:\ORACLE\ORADATA\INF"
"OTEST\CWMLITE01.DBF' SIZE 20971520 AUTOEXTEND ON NEXT 655360 MAXSIZE"
" 16383M EXTENT MANAGEMENT LOCAL AUTOALLOCATE ONLINE PERMANENT "
I also got a few other errors, mainly about it can't import some objects since they already exist in the 10g server (I created a new, blank database during 10g installation). I've created the "C:\ORACLE\ORADATA\INFOTEST\" directory on the 10g server before importing, and I don't know how to get around the block size issue (the block size in 9i is 4K, and I want to increase it to 8K in the 10g server). How can I get around all of this?
Some of the instructions I've read online are vague. Do I need to create a database on the 10g server before I use the imp command, or only just install the 10g software? I can drop the database I've created in 10g if I need to (it's only a test box). I can't upgrade the 9i server since it's a live production server. Any ideas? Thank you.
Similar Messages
-
Hi all.
I have a scenario like the following:
I have a production server and a testing server(the clone of the production server).
I want to clone(refresh), only the database from production to testing server.
I have read the metalink doc 230672.1.
In section 4 of this document it is said, that it is possible to clone only the db.
My questions are?
1. After i have done the pre clonning process on the source, i have to copy both proddata and product folders(sid=prod) into the target?
2. when i run the adcfgclone.pl, is it necessary to specify the database target context file? (in both servers i have the same structure of folders)
3. As i understand, i have to follow the doc 230672.1. but only regarding the dbTier, right?
Thanks in advance, Soni1. After i have done the pre clonning process on the source, i have to copy both proddata and product folders(sid=prod) into the target?Correct.
2. when i run the adcfgclone.pl, is it necessary to specify the database target context file? (in both servers i have the same structure of folders)Since no changes have been done on the database tier, then you have to specify the database context file.
3. As i understand, i have to follow the doc 230672.1. but only regarding the dbTier, right?You have to follow the steps under "Refreshing a target system" section in this note to refresh the target system database. -
Powershell script to Clone Ou Structure
Hi ,
I Need make a clone of an ad OU structur with a lot of child OU's .What is the best way to do this ?What I have so far is that it list al the top level ou's and it's related sub ou's but not the subou's of the childeren of the toplevel.Because If I insert an other foreach it doesn't print alle the toplevels for some reason.
$BaseOU=Get-ADOrganizationalUnit -Filter * -SearchBase 'OU=Users,OU=Iconos,DC=iconos,DC=be' -SearchScope OneLevel
foreach($ou in $BaseOU)
$parname = "MBX-"+$ou.Name
$children = Get-ADOrganizationalUnit -Filter * -SearchBase $ou -SearchScope OneLevel
#$newpar =New-ADOrganizationalUnit -Name $parname -Path 'OU=MBX-AD,OU=Mailbox Accounts,OU=Iconos,DC=iconos,DC=be' -ProtectedFromAccidentalDeletion $true -WhatIf
foreach($child in $children)
$childname = "MBX-"+$child.Name
#$newchild=New-ADOrganizationalUnit -Name $childname -Path $newpar.DistinguishedName -ProtectedFromAccidentalDeletion $true -WhatIf
$subchildren = Get-ADOrganizationalUnit -Filter * -SearchBase $child
if(??)#// I only want to execute this if a child has subou's
foreach($subchild in $subchildren)
Write-Host "parent is" $parname "children are" $childname "subchildren" $subchild.Name
else
Write-Host "parent is" $parname "children are" $childname -
RMAN clone - only subset of data
I have a requirement to clone the Production to Test database with the minimum size (subset of data).
Can some one help me how to extract only subset of data from prod ?You could consider using SKIP TABLESPACE with the RMAN DUPLICATE command to create a test database that is a subset of the production, but it may depend on what you mean by "subset" of data.
-
How to clone the database from 8i to 10g
Hi,
I have oracle 8i(8.1.7.4) on solaris 8 machine with application data.
and Now I have installed oracle 10g(10.2.0.4) on redhat - 5 on zlinux machine.
Now I want the same database including all the onject and the data to be available in redhat - 5..
How shoud I start. Please assist me.
RBuser651189 wrote:
Hi,
I have oracle 8i(8.1.7.4) on solaris 8 machine with application data.
and Now I have installed oracle 10g(10.2.0.4) on redhat - 5 on zlinux machine.
Now I want the same database including all the onject and the data to be available in redhat - 5..
How shoud I start. Please assist me.As endian formats are different for Solaris 8 and Redhat (solaris has big, but linux has little), then the easiest way is to use exp/imp utiltiy for migration data.
exp full database from 8i and import it in 10g. You can exp only particular schemas, it really depends, what kind of data you need, how much data You need to import and so on. But exp/imp is the answer how to get data into new database.
Check metalink note 733205.1. -
Why i can not use only 10 view in JHeadstart 10g ?
Hi,
I am a student in King Saud University and i want to use a product help me to enter data and see my project as interface in web page and my project has 19 tables , and i heard a bout JHeadstart 10g it is a nice product just few steps and you will see your project completely finish as a web pages.
But when i use the JHeadstart 10g 10.1.3 i can not only use 10 view , why ?
Is there a way to use JHeadstart 10g in my project that has only 19 tables ?
Please I need help !!!!Michael is correct, this is a limitation of the evaluation version. JHeadstart is not a free product, you can use the evaluation version on a limited set of tables, and if you like the product, please buy Jheadstart licenses, and you get access to the unlimited production version.
Steven Davelaar,
JHeadstart Team. -
Only with Runtime component.(10g)
Hi Friends,
Here my requirement is to install only the Oracle 10g runtime component and not the other forms developer utilities in a separate system and have all the application contents like (Pll's,mmb's and fmxs) there.So that from that system the other users has to access the application.
It should be similar to deploying fomrs in Oracle Application Server.
Is this possible or do I have any other alternatives.Pls guide me for this task.
Regards
Marlon.This requirement is because so many applications are concurrently running in our server and my application is very small and we don't want to bring down the performance of others by having this in the server and also only few users use that.
Thus we wanted to have the forms runtime in one separate system and to access from there.
Pls guide me for this task.
Regards
Marlon. -
Cgmcmd.dat only for cgi implemenmtaion on 10g?
I like to know is cgicmd.dat file only for cgi implemenation of report server. In out case we are running reports using servlet implmentation(report 10g) and I set cgmcmd.dat as this entry:
stu: userid=scott/tiger@XYZ %* and
when i run the reports using:
http://myserver/reports/rwservlet?server=myserv&report=t.rdf&stu&BLANKPAGES=NO
It seems it only shows keyname but erorr message comes up as not logged on.
Help!!It did work. Only thing is key should come as first parameter. Hope Oracle puts such things in BOLD LETTERS when documenting. I really did not find this hint documenatation and saw on a web posting.
-
Help needed to use only SQR reporting with Oracle 10g
I have very old SQR reports (ver 2.28) that are still being used by connecting SQR to an Oracle7 DB. We have migrated the data from Ora7 to Oracle 10.2.0.4. The issue is that SQR 2.28 is not able to connect to Oracle 10.2.0.4. Hence I want to use the new version of SQR that is part of OBIEE.
I am not familiar with OBIEE and my interest is only using the SQR portion of it.
1. Can any one help me as to how to go about installing SQR portion of OBIEE on a Linux Itanium 64-bit box? My Oracle 10.2.0.4 DB is also running on the same box.
2. What are the minimum components of OBIEE I need to install to make use of SQR ?
3. Any other relevant information
Thanks.When installing webgate, make sure the Access Server is running. You will get this error if Access Server is down or not reachable. ( Make sure from the machine where you are installing webgate you can ping to Access Server by Name).
Thanks
Ram -
Clone database using RMAN on Oracle 10g
contents of Memory Script:
shutdown clone;
startup clone nomount ;
executing Memory Script
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 08/26/2009 15:55:39
RMAN-03015: error occurred in stored script Memory Script
RMAN-06136: ORACLE error from auxiliary database: ORA-01013: user requested canc
el of current operation
how to solve this error?
KushalHi,
but i am not able to configure using enterprise manager. it is always giving error.You could check the OEM forum or raise an SR at metalink.
Hard to tell what is going on without the details.
Regards,
Tycho -
Loading image from jars only once in oracle forms 10g
Hi,
I have an oracle forms 10g application which loads image from a jar. Every time i click on a button "A" that loads the image "image" on another button "B" in the same screen, a message is displayed in the java console "Loaded image: jar:https://+IP+/forms/java/+myjar+.jar!/image.gif". So after 10 clicks, i get the same message displayed 10 times. In the form, i've called:
SET_CUSTOM_PROPERTY(p_object_name, 1, 'IMAGE_NAME_ON', '/'||p_image_name);My question is the following:
- is there a way to load this image once and use it later without having to load it every time i clik on "A"? if yes, how?
P.S.: if this thread shouldn't be posted in this forum, please redirect me to the right one.
Thanks in advanceAh okay.
I'm using the rolloverbutton.jar (RollOver Button PJC) [RolloverButton.java -> authors: Steve Button, Duncan Mills].
Here is the part concerning the IMAGE_NAME_ON function:
// make sure we are in rollover mode
enableRollover();
log("setProperty - IMAGE_NAME_ON value=" + value.toString());
// load the requested image
m_imageNameOn = (String) value;
loadImage(ON,m_imageNameOn);
// reset the currrently drawn image if needed
setImage(ON,m_state);
return true;where loadImage function is:
URL imageURL = null;
boolean loadSuccess = false;
//JAR
log("Searching JAR for " + imageName);
imageURL = getClass().getResource(imageName);
if (imageURL != null)
log("URL: " + imageURL.toString());
try
m_images[which] = Toolkit.getDefaultToolkit().getImage(imageURL);
loadSuccess = true;
log("Image found: " + imageURL.toString());
catch (Exception ilex)
log("Error loading image from JAR: " + ilex.toString());
else
log("Unable to find " + imageName + " in JAR");
//DOCBASE
if (loadSuccess == false)
log("Searching docbase for " + imageName);
try
if (imageName.toLowerCase().startsWith("http://")||imageName.toLowerCase().startsWith("https://"))
imageURL = new URL(imageName);
else
imageURL = new URL(m_codeBase.getProtocol() + "://" + m_codeBase.getHost() + ":" + m_codeBase.getPort() + imageName);
log("Constructed URL: " + imageURL.toString());
try
m_images[which] = createImage((java.awt.image.ImageProducer) imageURL.getContent());
loadSuccess = true;
log("Image found: " + imageURL.toString());
catch (Exception ilex)
log("Error reading image - " + ilex.toString());
catch (java.net.MalformedURLException urlex)
log("Error creating URL - " + urlex.toString());
//CODEBASE
if (loadSuccess == false)
log("Searching codebase for " + imageName);
try
imageURL = new URL(m_codeBase, imageName);
log("Constructed URL: " + imageURL.toString());
try
m_images[which] = createImage((java.awt.image.ImageProducer) imageURL.getContent());
loadSuccess = true;
log("Image found: " + imageURL.toString());
catch (Exception ilex)
log("Error reading image - " + ilex.toString());
catch (java.net.MalformedURLException urlex)
log("Error creating URL - " + urlex.toString());
if (loadSuccess == false)
log("Error image " + imageName + " could not be located");In this case, what shall i modify?
Thanks in advance -
How to get only the lower words with 10g regular expressions?
below is a small test case, but last sql didn't work as I expected, any suggestions?
thank you.
CREATE TABLE tab_regexp_tst ( vtest_col VARCHAR2(50) );
INSERT INTO tab_regexp_tst VALUES ('hakan');
INSERT INTO tab_regexp_tst VALUES ('KEMAL');
INSERT INTO tab_regexp_tst VALUES ('ahMET');
COMMIT;
exec dbms_stats.gather_table_stats(user, tabname=>'tab_regexp_tst', cascade=>TRUE);
commit;
SELECT vtest_col "UPPERS" FROM tab_regexp_tst WHERE REGEXP_LIKE(vtest_col, '[[:upper:]]');
UPPERS
KEMAL
ahMET
SELECT vtest_col "lowers" FROM tab_regexp_tst WHERE REGEXP_LIKE(vtest_col, '[[:lower:]]');
lowers
hakan
ahMET
SELECT vtest_col "just lowers" FROM tab_regexp_tst
WHERE REGEXP_LIKE(vtest_col, '[[:lower:]]') and REGEXP_LIKE(vtest_col, '[[:upper:]]{0}');
just lowers
hakan
ahMET <- ?? :)Thank you Volder :)
SELECT vtest_col "sadece küçükler" FROM tab_regexp_tst WHERE regexp_like(vtest_col, '^[[:lower:]]+$') ;
sadece küçükler
hakan
SELECT vtest_col "SADECE BÜYÜKLER" FROM tab_regexp_tst WHERE regexp_like(vtest_col, '^[[:upper:]]+$') ;
SADECE BÜYÜKLER
KEMAL -
Oracle eBS clone : only database refresh
Hi,
Someone last week around asked me regardings steps I will follow wrt database refresh in eBS.
My answer was ( considering a cold backup)
1) Restore the datafiles,redo logs to the target env adn run adcfgclone dbtier contextfile=< context file location for RDBMS>
This will work if the mount point naming convention is exactly the same as on target.
2) Run autoconfig.
My queries here are:
1) Do I need to do something regarding Apps side, ( running autoconfig , or adcfgclone etc )?
2)Was there any need for running autoconfig specially if I have given the contextfile location in step 1?
Thx,
Romit2)Was there any need for running autoconfig specially if I have given the contextfile location in step 1?Yes, you need to run AutoConfig to populate FND_NODES with the application nodes information. You may also need to clear the FND_NODES table as described in the following note:
Note: 260887.1 - Steps to Clean Nonexistent Nodes or IP Addresses from FND_NODES
https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=260887.1 -
Summing only particular values in publisher 10g
Hi All,
We need to sum the sales based on the product at the end of the report.
Below is the required report format:
Colm1 Colm2
A 10
A 20
B 20
B 20
ATOTAL 30
BTOTAL 40
Thanksas example for
<ROW>
<VAL>10</VAL>
<COLOR>A</COLOR>
</ROW>
<ROW>
<VAL>20</VAL>
<COLOR>A</COLOR>
</ROW>
<ROW>
<VAL>20</VAL>
<COLOR>B</COLOR>
</ROW>
<ROW>
<VAL>20</VAL>
<COLOR>B</COLOR>
</ROW>use
ATOTAL : <?sum(//VAL[../COLOR=’A’])?>
BTOTAL : <?sum(//VAL[../COLOR=’B’])?> -
Cpying / Importing only a few tables structure from one schema to other!
Greetings,
Can any one please suggest me the best method to copy the structure of series of tables from one schema to other in a eased way!
For example:- There is a MC scheama and there are about 1000 tables... and there is a AB schema where I need to copy only structure of 85 selected tables from MC -> AB..
Please suggest!Hi,
You could use any of the following:
1) Export 85 tables from source to destination
2) Use Data Pump Export with Network_link if you are on 10g
3) Use CTAS (create table as select )
4) Use DBMS_METADATA.GET_DDL procedure on the source to create a script
Probably, others would come up with more bright ideas.
Regards
Maybe you are looking for
-
Whenever I click on a web link, do download a PDF form, for example, I get this error message: "We are sorry, but Adobe Reader is unable to show documents in this browser configuration. Please use your browser to download this file and open it in Ado
-
Exit for ME51n - ABAP OO coding
Hi, I am writing a BADI for ME51n - ME_REQ_POSTED. In that i want to restrict the account assignment category either A or K. but i am not able to write a coding as i am not good enough in OO. field name is KNTTP. how to do it? Thanks.
-
How do I reset an iPod for a different user
How do I reset an iPod for a different user
-
Problem in Calling a smartform in a driver program(SE38)
Hi, I created a report in SE38 and i have a 5 CHECK Boxes. i called a smartformsin that program. My problem is if i check the 5 check boxes the layout should show 5 copies. if i check 3 check boxes the layout should show 3 copies. e.t.c. Edited
-
Photoshop cs5 getting very quirky on me.
I'm running windows 7, and am using PS CS5. It has started developing a few problems that are becoming very troublesome. My system is 64-bit running intelcore i5 2320 3.00 gz with 6gb ram. It's a Dell which is probably the main problem to begin with,