Move HR schema from 11g to 10g
I have oracle 10g installed on my sun box and I have oracle 11g installed on my other system. I would like to know how to move HR schema from 11g to my 10g.
please advise me in steps as I am new to oracle.
Ok, didn't know that.
Why not take the file from your 11g installation and run it against your 10g?
If you don't want ro do that, you can use CTAS over dblink or look into COPY command from SQL*Plus.
Regards
Peter
Similar Messages
-
Exporting schema from 11g to 10g
how can i export full schema(suppost scott) from 11g to 10g both are on different machines and i dont know much about db side, if any body can suggest some queries.
thanks and regards
Abbaswhen i run the expdp it gives me following error
Export: Release 10.1.0.4.2 - Production on Wednesday, 27 April, 2011 11:43
Copyright (c) 2003, Oracle. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit
Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
ORA-39002: invalid operation
ORA-39070: Unable to open the log file.
ORA-29283: invalid file operation
ORA-06512: at "SYS.UTL_FILE", line 536
ORA-29283: invalid file operation
what can be wrong
Regards
Abbas -
Data pump import from 11g to 10g
I have 2 database: first is 11.2.0.2.0 and second is 10.2.0.1.0
In 10g i created database link on 11g
CREATE DATABASE LINK "TEST.LINK"
CONNECT TO "monservice" IDENTIFIED BY "monservice"
USING '(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = host)(PORT = port))) (CONNECT_DATA = (SID = sid)))';
And execute this query for test dbLink which work fine:
select * from v$[email protected];
After it i try to call open function:
declare
h number;
begin
h := dbms_datapump.open('IMPORT', 'TABLE', 'TEST.LINK', null, '10.2');
end;
and get exception: 39001. 00000 - "invalid argument value"
if i remove 'TEST.LINK' from the arguments it works fine
Edited by: 990594 on 26.02.2013 23:41Hi Richard Harrison,
result for import from 11g to 10g:
impdp user/pass@dburl schemas=SCHEMANAME network_link=TEST_LINK version=10.2
Connected to: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
ORA-39001: invalid argument value
ORA-39169: Local version of 10.2.0.1.0 cannot work with remote version of 11.2.0.2.0
result for export from 11g to 10g:
expdp user/pass@dburl schemas=SCHEMANAME network_link=TEST_LINK version=10.2
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64 bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing option
ORA-39006: internal error
ORA-39065: unexpected master process exception in DISPATCH
ORA-04052: error occurred when looking up remote object SYS.KUPM$MCP@TEST_LINK
ORA-00604: error occurred at recursive SQL level 3
ORA-06544: PL/SQL: internal, error, arguments: [55916], [], [], [], [], [], [], []
ORA-06553: PLS-801: internal error [55916]
ORA-02063: preceding 2 lines from TEST_LINK
ORA_39097: Data Pump job encountered unexpected error -4052 -
Hi all,
I am importing an expdat.dmp which is an output of 11g to lower 10g db.
So I am using a 11g client to import it to 10g. But I can not understand why some tables got imported while others were not :(
The error said that the table already exist, when in fact is it not yet there.
Have you encountered this kind of issue?
Or how do I import a dump from 11g to 10g?
Thanks a lot,
Yxz
Edited by: yxes2013 on 17.2.2013 20:02sb92075 wrote:
yxes2013 wrote:
Hi all,
I am importing an expdat.dmp which is an output of 11g to lower 10g db.
So I am using a 11g client to import it to 10g. But I can not understand why some tables got imported while others were not :(
The error said that the table already exist, when in fact is it not yet there.
Have you encountered this kind of issue?
Or how do I import a dump from 11g to 10g?
Thanks a lot,
Yxz
Edited by: yxes2013 on 17.2.2013 20:02export MUST be taken or done using the LOWER version utility.
http://docs.oracle.com/cd/E11882_01/server.112/e22490/dp_export.htm#SUTIL870
Wouldn't an export from the 11g Data Pump client work with a 10g database, as long as the dumpset was created with VERSION=10.x?
-Justin -
[Urgent]How to import odi procedure from 11g to 10g.
Hi All,
I am trying to import odi code(interface/procedure) from 11g to 10g but gettting xml error.
Please reply as soon as possible.
ThanksForward compatibility for importing odi artifacts is not supported.
-
Deployment from 11g to 10g connection string cannot get provider error.
Hi, I'm doing a deployment from oracle client 11g to 10g. Is this possible? there are yes and no answer I have try out from the forum. All did not workout with any of the configuration setup.
For development I am using VS2012, MVC 4. EF 4. Oracle 11g
The server is currently running Oracle 10g with Oracle.Dataaccess.dll 10.2.0.100
This is my connection string setup at the server.
<?xml version="1.0"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<configSections>
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=4.4.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false"/>
</configSections>
<connectionStrings>
<add name="OraAspNetConnectionString" connectionString="Data Source=dtsr;User Id=ids;Password=pwd;" providerName="Oracle.DataAccess.Client"/>
<add name="OraAspNetConnectionString2" connectionString="Data Source=dtsr;User Id=ids;Password=pwd;" providerName="Oracle.DataAccess.Client.OracleConnection"/>
</connectionStrings>
<!--<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" />
</startup>-->
<appSettings>
<add key="webpages:Version" value="2.0.0.0"/>
<add key="webpages:Enabled" value="false"/>
<add key="PreserveLoginUrl" value="true"/>
<add key="ClientValidationEnabled" value="true"/>
<add key="UnobtrusiveJavaScriptEnabled" value="true"/>
</appSettings>
<system.data>
<DbProviderFactories>
<add name="Oracle Data Provider for .NET" invariant="Oracle.DataAccess.Client" description="Oracle Data Provider for .NET" type="Oracle.DataAccess.Client.OracleClientFactory,Oracle.DataAccess,Version=4.112.3.0,Culture=neutral,PublicKeyToken=89b483f429c47342" />
</DbProviderFactories>
</system.data>
<system.web>
<compilation targetFramework="4.0">
<assemblies>
<add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<add assembly="System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Web.Helpers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Web.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</assemblies>
</compilation>
<httpRuntime/>
<authentication mode="Windows"/>
<identity impersonate="true"/>
<pages controlRenderingCompatibilityVersion="4.0">
<namespaces>
<add namespace="System.Web.Helpers"/>
<add namespace="System.Web.Mvc"/>
<add namespace="System.Web.Mvc.Ajax"/>
<add namespace="System.Web.Mvc.Html"/>
<add namespace="System.Web.Optimization"/>
<add namespace="System.Web.Routing"/>
<add namespace="System.Web.WebPages"/>
</namespaces>
</pages>
<sessionState mode="InProc" timeout="20" cookieless="false"/>
</system.web>
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<handlers>
<remove name="ExtensionlessUrlHandler-ISAPI-4.0_32bit"/>
<remove name="ExtensionlessUrlHandler-ISAPI-4.0_64bit"/>
<remove name="ExtensionlessUrlHandler-Integrated-4.0"/>
<add name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness32" responseBufferLimit="0"/>
<add name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness64" responseBufferLimit="0"/>
<add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0"/>
</handlers>
<security>
<authorization>
<add accessType="Allow" users="?"/>
</authorization>
</security>
</system.webServer>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35"/>
<bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="2.0.0.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35"/>
<bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35"/>
<bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="2.0.0.0"/>
</dependentAssembly>
<!--<dependentAssembly>
<assemblyIdentity name="Oracle.DataAccess, Version=10.2.0.100, Culture=Neutral," publicKeyToken="89b483f429c47342" />
<bindingRedirect oldVersion="10.2.0.100" newVersion="4.112.3.0"/>
<publisherPolicy apply="no" />
</dependentAssembly>-->
</assemblyBinding>
</runtime>
<entityFramework>
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework"/>
</entityFramework>
</configuration>
I get this error when page trying to connect to database.
[ProviderIncompatibleException: An error occurred while getting provider information from the database. This can be caused by Entity Framework using an incorrect connection string. Check the inner exceptions for details and ensure that the connection string is correct.]
System.Data.Entity.ModelConfiguration.Utilities.DbProviderServicesExtensions.GetProviderManifestTokenChecked(DbProviderServices providerServices, DbConnection connection) +163
System.Data.Entity.ModelConfiguration.Utilities.DbConnectionExtensions.GetProviderInfo(DbConnection connection, DbProviderManifest& providerManifest) +39
System.Data.Entity.DbModelBuilder.Build(DbConnection providerConnection) +46
System.Data.Entity.Internal.LazyInternalContext.CreateModel(LazyInternalContext internalContext) +62
System.Data.Entity.Internal.RetryLazy`2.GetValue(TInput input) +117
System.Data.Entity.Internal.LazyInternalContext.InitializeContext() +453
System.Data.Entity.Internal.InternalContext.GetEntitySetAndBaseTypeForType(Type entityType) +18
System.Data.Entity.Internal.Linq.InternalSet`1.Initialize() +56
System.Data.Entity.Internal.Linq.InternalSet`1.get_InternalContext() +15
System.Data.Entity.Infrastructure.DbQuery`1.System.Linq.IQueryable.get_Provider() +37
I have check the
1. Enviroment Variables path is set to the 10.../client_1/
2. Tnsname.ora already configured.
3. machine.config did not define the connection string path, as it is define in the web.config
4. Oracle.Dataaccess.dll is in the bin of my application website (v4.112.3.0).
5. In my application web bin folder also include additional dlll.
mfc71.dll
msvcr71.dll
oci.dll
ociw32.dll
orannzsbb11.dll
oraocci11.dll
oraociicus11.dll
OraOps11w.dll
Anyone please help.. Thanks in advance..
Edited by: 976886 on Dec 13, 2012 7:46 PM976886 wrote:
I want to know, it is possible to migrate the application from oracle 11g to 10g? such that the component are supported across?
Because in the development, all goes well, no error on the oracle connection.
OR did I miss out anything that causes it not working on my server deployment?yes
yes
yes
how can we reproduce what you claim? -
Hi to all,
I am having a catalog DB in 11g and database in 10g. Can I take backup of 10g from 11g catalog database.
When I try to connect to the rman, I am getting the below error.
rman catalog=rman/rman@catalogdb target=sys@db10g_58
Catalog DB is in 11g
TargetDB in 10g
OS: Windows 2003 Server on both the servers.
Kindly post the suggestions.
RMAN-00554: initialization of internal recovery manager package failed
RMAN-06429: TARGET database is not compatible with this version of RMAN
Regards,
Vijayaraghavan KGo to this link
http://download.oracle.com/docs/cd/B19306_01/backup.102/b14194/compat002.htm
Regards
Asif Kabir -
I am trying to create a database link from the 11g database to the 10g database using:
create database link ORCL10R2 connect to <username10g> identified by <password10g> using <db10g>;
It Returns
Database link created.
select sysdate from dual@ORCL10R2 returns error:
ERROR at line 1:
ORA-12504: TNS:listener was not given the SERVICE_NAME in CONNECT_DATA
Please let me know what changes I need to make to tnsnames and listener at both servers.11g database: 10.1.1.10
10g database: 10.1.1.12
TNSNAMES.ORA at 10.1.1.10
XYZ =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.1.1.10)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XYZ)
LISTENER.ORA at 10.1.1.10
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.1.1.10)(PORT = 1521))
what needs to be modified here?
Edited by: 944558 on 5 Jul, 2012 12:27 AM -
RPC through DB Link from 11g to 10g doesn't work
Guys,
I am unable to make simple RPC to an Oracle 10g database (Running on Unix Server) from Oracle 11g database (Running on XP Professional).
But RPC Call from 10g to 11g works fine.
Any idea?
C:\temp>sqlplus /nolog
SQL*Plus: Release 11.1.0.6.0 - Production on Thu Jan 24 10:13:50 2008
Copyright (c) 1982, 2007, Oracle. All rights reserved.
-- Login into 10g Database and create the procedure
SQL> conn scott/tiger@ORA10G;
Connected.
ORA10g> SET SERVEROUTPUT ON
ORA10g>SELECT * FROM V$VERSION;
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for Linux: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
ORA10g>CREATE OR REPLACE PROCEDURE TEST AS
2 L_CNT NUMBER;
3
4 BEGIN
5 SELECT 1 INTO L_CNT FROM DUAL;
6 DBMS_OUTPUT.PUT_LINE('10G SYSDATE = ' || SYSDATE);
7
8 END;
9 /
Procedure created.
ORA10g>EXEC TEST;
10G SYSDATE = 24-JAN-08
PL/SQL procedure successfully completed.
-- Login to 11g Database and create the DB Link and call the procedure
ORA10g>conn scott/tiger@ORA11G;
Connected.
ORA11g>SELECT * FROM V$VERSION;
BANNER
Personal Oracle Database 11g Release 11.1.0.6.0 - Production
PL/SQL Release 11.1.0.6.0 - Production
CORE 11.1.0.6.0 Production
TNS for 32-bit Windows: Version 11.1.0.6.0 - Production
NLSRTL Version 11.1.0.6.0 - Production
ORA11g>create database link DB_LINK connect to SCOTT identified by TIGER using 'ORA10G';
Database link created.
ORA11g>SELECT * FROM DUAL@DB_LINK;
D
X
ORA11g>exec test@DB_LINK;
BEGIN test@DB_LINK; END;
ERROR at line 1:
ORA-04052: error occurred when looking up remote object SCOTT.TEST@DB_LINK
ORA-00604: error occurred at recursive SQL level 1
ORA-06544: PL/SQL: internal error, arguments: [55916], [], [], [], [], [], [],
ORA-06553: PLS-801: internal error [55916]
ORA-02063: preceding 2 lines from ORA10G
ORA11g>exitHello
Did u get the issue resolved after applying the patch 10.2.0.3?
I am also having the same problem with RPC and using 10g version 10.2.0.3 and 11g version 11.1.0.6
Thanks
Banu -
How to Downgrade Rpd From 11g to 10g???
Hi all,
I want to know how to downgrade rpd from obiee 11.1.1.5 to obiee 10.1.3.4.
please share the valuable links.
Thanks.First, you will have to completely uninstall 11g, see steps below:
http://obiee911.blogspot.com/2013/01/uninstalling-obiee-11g-instance-on.html
This should be followed by installing 10g, and then applying 10g patches to reach 10.1.3.4.1 version. I hope you have all the right 10g installation files available. Im not sure if you can download them from Oracle anymore, please check before proceeding. -
How to convert this package from 11g to 10g (still using dbms_sql) ?
create or replace package pkg_test is
type tab_t is table of ra_analista%rowtype;
function pipeValues return tab_t pipelined;
function selValues return sys_refcursor;
end;
create or replace package body pkg_test is
function pipeValues
return tab_t pipelined is
cr sys_refcursor;
tab tab_t;
cnt int;
cmd pls_integer := dbms_sql.open_cursor;
begin
dbms_sql.parse(cmd, 'select * from RA_Analista', dbms_sql.native);
cnt := dbms_sql.execute(cmd);
cr := dbms_sql.to_refcursor(cmd);
fetch cr bulk collect into tab;
if tab.count > 0 then
for i in tab.first .. tab.last loop
pipe row(tab(i));
end loop;
end if;
return;
end;
function selValues return sys_refcursor is
c1 sys_refcursor;
begin
open c1 for select * from table(pipeValues);
return c1;
end;
end;Create Or Replace Package Body Pkg_Test Is
Function Pipevalues Return Tab_t Pipelined Is
Cr Sys_Refcursor; Tab Tab_t; Cnt Int; Cmd Pls_Integer := Dbms_Sql.Open_Cursor;
Begin
Dbms_Sql.Parse(Cmd, 'select * from RA_Analista', Dbms_Sql.Native); --**there in 10g**
Cnt := Dbms_Sql.Execute(Cmd); --**there 10g**
Cr := Dbms_Sql.To_Refcursor(Cmd); --**no need to use ref cursor here....if you want to use it go for open for instead of dbms_sql**
Fetch Cr Bulk Collect Into Tab;
If Tab.Count > 0 Then For i In Tab.First .. Tab.Last Loop Pipe Row(Tab(i));
End Loop;
End If; Return;
End;Edited by: Nicloei W on Sep 16, 2008 6:26 PM
Edited by: Nicloei W on Sep 16, 2008 6:26 PM
Edited by: Nicloei W on Sep 16, 2008 6:27 PM -
How to move a schema from one databes to another on ASM?
Hi All
I have a schema in database A on ASM and I want to move the complete schema to database B on ASM . Both databases are on RAC and on the same server.
Please tell me the steps how to do it or if there is a script to do it.
Thank you.With the same way on single instance, through utilities like exp/imp, expdp/impdp or insert as select through database link.
Asm can't cause interferance in this task.
Regards,
Rodrigo Mufalani -
How to move a schema from one database to another on ASM?
Hi All
I have a schema in database A on ASM and I want to move the complete schema to database B on ASM . Both databases are on RAC and on the same server.
Please tell me the steps how to do it or if there is a script to do it.
Thank you.There is nothing special which you need to do for ASM instance. In this case too, you will be required to use export/import utility to do the same.
Cheers
Amit
http://askdba.org/weblog/ -
How to move a schema from one tablespace to another
I created a new user in a new Tablespace, Then export current user and import to new user(in new tablespace), but I found out that it was stored in previous Tablespace.
How can I move data to new tablespace?
Thanks
SoheilI created a new user in a new Tablespace, Then export current user and import to new user(in new tablespace), but I found out that it was stored in previous Tablespace.
How can I move data to new tablespace?
Thanks
Soheil Soheil,
Did the data make the transfer to the new tablespace or was it reimported vack into the old tablespace and never made it ot the new tablespace? Are the two users identified by the same name or different names? Did you try to specify which tablespace to import into or did you just use the fromuser and touser parameters? You can try this too:
1. revoke access by the 'old' user to the 'old' tablespace (alter user <user> quota 0 on <old tablespace>
2. grant access to the 'new' user on the 'new' tablespace (alter user <user> quota unlimited on <new tablespace>)
3. point the 'new' user to the 'new' tablespace (alter user <user> default tablespace <new tablespace>.
Then do the import. Then alter the default tablespace back to USERS or whatever if necessary. (thanks to Rita Kirby for this one) -
hi all,
We try to move oracle report from 6i to 10g. however we found that the report's record ordering is different.
The case is that, the record in report is ordered according to the attribute "break order".
There is no "order by" in sql".
It runs without problems in 6i, but in 10g , the ordering of the record has no ordering.
Please help to solve the problems or give some advice. Thanks.Break order property only works for ordering in break groups. For other groups (like the lowest level group) you have to use order by in your SQL.
That was also the case in 6i, so you may just have been lucky that it worked at all.
This is from the Help:
The Break Order property is the order in which to display the column's values. This property applies only to columns that identify distinct values of user-created groups (i.e., break groups ). The order of column values in a default group is determined by the ORDER BY clause of the query for SQL queries
Maybe you are looking for
-
This Computer is no longer authorized!! HELP PLEASE!
After changing the logic board on my MacBookPro recently, tried to sync and transfer my purchased apps & music to ITunes, it comes back saying "This computer is no longer authorized for this Iphone... and then I continue to authorize it, the it says
-
Give "Number of an SD business partner" internally while creating customer
When we create a new custpmer by VD01 or XD01, at the "partner functions" tab, the number for each partner role is given internally. Where is the customization for the internal or external partner number? I want the system to give the partner number
-
How to configure axis value range in combo charts
I am trying to create a combo chart, where one value axis contains values in the millions, and the other contains values less than ten. When I create the chart, it appears that I can only define one range that applies for both axis. Does someone know
-
Why are referenced PK fields made double? (logical model)
The root table has PK of one numeric field "id". (Let us name it TOP) Then by relation 1:N it goes to next table (NEXTONE). One more numeric field is added to make PK : (id, nextid). Now the main part. I create another table (LASTONE) and create a re
-
I have imported a couple of videos into iMovie and they are about 200mb each. When I drag one into the project window to edit, I notice that the film is now only 1mb in size. How do I maintain my 200mb quality?