MIGRATE ODI FROM SQL SERVER 2005 TO ORACLE
Hello,
Presently we have our master and work repositories in sql server 2005.We also have our source tables in sql server 2005.We are planning to migrate our repositories from sql server 2005 to oracle 10g.We are also migrating our source tables from sql server 2005 to oracle.Do we need to redo all our development in oracle.Can any body help with the steps to migrate our repositories and development work from sql server 2005 to oracle 10 g.
Thanks,
Revanth
dbf it's not sql server.
>
SQL Server databases have three types of files:
Primary data files
The primary data file is the starting point of the database and points to the other files in the database. Every database has one primary data file. The recommended file name extension for primary data files is .mdf.
Secondary data files
Secondary data files make up all the data files, other than the primary data file. Some databases may not have any secondary data files, while others have several secondary data files. The recommended file name extension for secondary data files is .ndf.
Log files
Log files hold all the log information that is used to recover the database. There must be at least one log file for each database, although there can be more than one. The recommended file name extension for log files is .ldf.
>
for dbf to oracle see http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:711825134415
Similar Messages
-
Hi,
We face an issue while migrating an SQL Server 2005 DB to Oracle 11.2. It fails during the process. I hope someone on the forum has seen this before and can give us some advice.
I use the latest version of SQL Developer with JRE included (3.2.20.09). The JDBC driver to connect to SQL Server 2005 is 1.2.0
Here are the steps we take in the Migration Workbench wizard:
I made an online extract of the SQL Server database.
Using the workbench in SQL Developer I created a migration repository in schema PDM_MIGRATION.
Next I start the migration, it captures the tables fine, but immediately after the start of the conversion I get a failed message without further explanations.
This is the content of the error xml:
<?xml version="1.0" encoding="windows-1252" standalone="no"?>
<log>
<record>
<date>2013-08-14T16:23:32</date>
<logger>oracle.dbtools.migration.workbench.core.MigrationLogResourceBundle</logger>
<level>SEVERE</level>
<class>oracle.dbtools.migration.workbench.core.logging.MigrationLogUtil</class>
<message>Ongeldig naampatroon.: PDM_MIGRATION .MIGR_FILTER</message>
<param>oracle.dbtools.migration.workbench.core.logging.LogInfo@4c12ab</param>
<exception>
<message>oracle.dbtools.migration.convert.ConvertException: Ongeldig naampatroon.: PDM_MIGRATION .MIGR_FILTER</message>
<frame>
<class>oracle.dbtools.migration.convert.ConverterWorker</class>
<line>1078</line>
</frame>
<frame>
<class>oracle.dbtools.migration.convert.ConverterWorker</class>
<line>316</line>
</frame>
<frame>
<class>oracle.dbtools.migration.workbench.core.ui.FullMigrateTask</class>
<line>1002</line>
</frame>
<frame>
<class>oracle.dbtools.migration.workbench.core.ui.FullMigrateTask</class>
<line>303</line>
</frame>
<frame>
<class>oracle.dbtools.migration.workbench.core.ui.FullMigrateTask</class>
<line>205</line>
</frame>
<frame>
<class>oracle.dbtools.migration.workbench.core.ui.FullMigrateTask</class>
<line>159</line>
</frame>
<frame>
<class>oracle.dbtools.raptor.backgroundTask.RaptorTask</class>
<line>193</line>
</frame>
<frame>
<class>java.util.concurrent.FutureTask$Sync</class>
<line>303</line>
</frame>
<frame>
<class>java.util.concurrent.FutureTask</class>
<line>138</line>
</frame>
<frame>
<class>oracle.dbtools.raptor.backgroundTask.RaptorTaskManager$RaptorFutureTask</class>
<line>515</line>
</frame>
<frame>
<class>java.util.concurrent.Executors$RunnableAdapter</class>
<line>441</line>
</frame>
<frame>
<class>java.util.concurrent.FutureTask$Sync</class>
<line>303</line>
</frame>
<frame>
<class>java.util.concurrent.FutureTask</class>
<line>138</line>
</frame>
<frame>
<class>java.util.concurrent.ThreadPoolExecutor$Worker</class>
<line>886</line>
</frame>
<frame>
<class>java.util.concurrent.ThreadPoolExecutor$Worker</class>
<line>908</line>
</frame>
<frame>
<class>java.lang.Thread</class>
<line>662</line>
</frame>
</exception>
</record>
<record>
<date>2013-08-14T16:23:32</date>
<logger>oracle.dbtools.migration.workbench.core.MigrationLogResourceBundle</logger>
<level>SEVERE</level>
<class>oracle.dbtools.migration.workbench.core.logging.MigrationLogUtil</class>
<message>Ongeldig naampatroon.: PDM_MIGRATION .MIGR_FILTER</message>
<param>oracle.dbtools.migration.convert.ConverterWorker.copyModel(ConverterWorker.java:1078)</param>
<param>oracle.dbtools.migration.convert.ConverterWorker.runConvert(ConverterWorker.java:316)</param>
<param>oracle.dbtools.migration.workbench.core.ui.FullMigrateTask.doConvert(FullMigrateTask.java:1002)</param>
<param>oracle.dbtools.migration.workbench.core.ui.FullMigrateTask.doMaskBasedActions(FullMigrateTask.java:303)</param>
<param>oracle.dbtools.migration.workbench.core.ui.FullMigrateTask.doWork(FullMigrateTask.java:205)</param>
<param>oracle.dbtools.migration.workbench.core.ui.FullMigrateTask.doWork(FullMigrateTask.java:159)</param>
<param>oracle.dbtools.raptor.backgroundTask.RaptorTask.call(RaptorTask.java:193)</param>
<param>java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)</param>
<param>java.util.concurrent.FutureTask.run(FutureTask.java:138)</param>
<param>oracle.dbtools.raptor.backgroundTask.RaptorTaskManager$RaptorFutureTask.run(RaptorTaskManager.java:515)</param>
<param>java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)</param>
<param>java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)</param>
<param>java.util.concurrent.FutureTask.run(FutureTask.java:138)</param>
<param>java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)</param>
<param>java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)</param>
<param>java.lang.Thread.run(Thread.java:662)</param>
<param>oracle.dbtools.migration.workbench.core.logging.LogInfo@5dc1bc</param>
<exception>
<message>oracle.dbtools.migration.convert.ConvertException: Ongeldig naampatroon.: PDM_MIGRATION .MIGR_FILTER</message>
<frame>
<class>oracle.dbtools.migration.convert.ConverterWorker</class>
<line>1078</line>
</frame>
<frame>
<class>oracle.dbtools.migration.convert.ConverterWorker</class>
<line>316</line>
</frame>
<frame>
<class>oracle.dbtools.migration.workbench.core.ui.FullMigrateTask</class>
<line>1002</line>
</frame>
<frame>
<class>oracle.dbtools.migration.workbench.core.ui.FullMigrateTask</class>
<line>303</line>
</frame>
<frame>
<class>oracle.dbtools.migration.workbench.core.ui.FullMigrateTask</class>
<line>205</line>
</frame>
<frame>
<class>oracle.dbtools.migration.workbench.core.ui.FullMigrateTask</class>
<line>159</line>
</frame>
<frame>
<class>oracle.dbtools.raptor.backgroundTask.RaptorTask</class>
<line>193</line>
</frame>
<frame>
<class>java.util.concurrent.FutureTask$Sync</class>
<line>303</line>
</frame>
<frame>
<class>java.util.concurrent.FutureTask</class>
<line>138</line>
</frame>
<frame>
<class>oracle.dbtools.raptor.backgroundTask.RaptorTaskManager$RaptorFutureTask</class>
<line>515</line>
</frame>
<frame>
<class>java.util.concurrent.Executors$RunnableAdapter</class>
<line>441</line>
</frame>
<frame>
<class>java.util.concurrent.FutureTask$Sync</class>
<line>303</line>
</frame>
<frame>
<class>java.util.concurrent.FutureTask</class>
<line>138</line>
</frame>
<frame>
<class>java.util.concurrent.ThreadPoolExecutor$Worker</class>
<line>886</line>
</frame>
<frame>
<class>java.util.concurrent.ThreadPoolExecutor$Worker</class>
<line>908</line>
</frame>
<frame>
<class>java.lang.Thread</class>
<line>662</line>
</frame>
</exception>
</record>
<record>
<date>2013-08-14T16:23:32</date>
<logger>oracle.dbtools.migration.workbench.core.MigrationLogResourceBundle</logger>
<level>WARNING</level>
<class>oracle.dbtools.migration.workbench.core.ui.FullMigrateTask</class>
<message>Building converted model: FAILED : Database Migration : FAILED</message>
<param>oracle.dbtools.migration.workbench.core.logging.LogInfo@15a3779</param>
</record>
Does anybody know what this error means and what steps we should take to continue the migration?
I see the PDM_MIGRATION.MIGR_FILTER is a type.
Many thanks in advance,
KrisHi Wolfgang,
Thanks for your reply.
This is how the type MIGR_FILTER looks like:
create or replace
TYPE MIGR_FILTER IS OBJECT (
FILTER_TYPE INTEGER, -- Filter Types are 0-> ALL, 1->NAMELIST, 2->WHERE CLAUSE, 3->OBJECTID LIST
OBJTYPE VARCHAR2(40),
OBJECTIDS OBJECTIDLIST,
NAMES NAMELIST,
WHERECLAUSE VARCHAR2(1000));
I think the repository user has the correct privileges. This is the overview of privileges it has:
SQL> select * from dba_sys_privs where GRANTEE in ('PDM_MIGRATION') order by GRANTEE;
GRANTEE PRIVILEGE ADM
PDM_MIGRATION ALTER SESSION NO
PDM_MIGRATION CREATE CLUSTER NO
PDM_MIGRATION CREATE DATABASE LINK NO
PDM_MIGRATION CREATE PROCEDURE NO
PDM_MIGRATION CREATE SEQUENCE NO
PDM_MIGRATION CREATE SESSION NO
PDM_MIGRATION CREATE SYNONYM NO
PDM_MIGRATION CREATE TABLE NO
PDM_MIGRATION CREATE TRIGGER NO
PDM_MIGRATION CREATE VIEW NO
PDM_MIGRATION UNLIMITED TABLESPACE NO
SQL> select * from dba_role_privs where GRANTEE in ('PDM_MIGRATION') order by GRANTEE;
GRANTEE GRANTED_ROLE ADM DEF
PDM_MIGRATION CONNECT NO YES
PDM_MIGRATION RESOURCE NO YES
Best regards,
Kris -
Migration from of database and app from SQL server 2005 to Oracle 10g
Hello Every body,
Lately, I have been requested to migrate one inhouse developed hub application from SQL server 2005 to Oracle 10g. The objective is to move application and also the database to Oracel 10g.
Here is the current platform:
OS Win 2008 64 bit
JDK 1.4.2
JBoss 3.2.5
EJB 2.1
My question is what kind of issues you guys see in above upgrade. As far I know, Schema and Database migration can be done by Oracle workbench. Oracle 10g supports JDK 1.4. Oracle 10g also supports EJB 2.1.
Anything, I need to take into consideration or any risks or problems. I would like to list down all the risks, and accordingly, I am thinking of start the upgrade.
Thanks in advance.
Regards,
Zeeshan QureshiIn general the Java/J2EE application needs work in the following categories:
1. Connection Settings: Use Oracle JDBC drivers, create new data sources, connection pools and what not. Disable AUTOCOMMIT for Oracle JDBC Connections.
2. For EJBs, you should regenerate the entity beans because some object names/column names might have changed in oracle.
3. Any custom SQL that is in use in the EJBs will have to be ported to Oracle just as you would do in stored procedures and other applications.
4. For Java front-ends, if you are using callouts to stored procedures and expecting result sets then they will require some changes. You need to modify the stored procedure call signature to include the REF CURSOR variables and process them.
5. Changes to any SQL Server specific database functions manipulating character/date data will be required.
6. CLOB/BLOB/XML apis are different across databases so if you are using those then focus on them as well.
7. Retreiving Auto/generated keys from database also may need changes from what I have seen.
Hope this helps..
Regards
Prakash
NOTE: Not sure why but my posts from yesterday are not visible today. Even worse is that I can see them in one browser (FireFox) but not in Internet explorer. Crazy browser day I am having. -
Migration from SQL Server 2005 to Oracle 10g
Dear buddies,
I need to migrate my tables with data from SQL Server 2005 to Oracle 10g. How can I do it in the best possible way?
Please guide me.
NithNith,
I doubt if there is one best practice that can cover all cases of migrating data from sql server to Oracle. l generally find various factors case-by-case that make me chose one approach over the other. Without considering the business case and environment specific factors, some of the things I would like to know would be: The data types of the tables columns, table sizes, number of tables and if this is a one time process or a recurring process.
One of the easiest (some times rather pesky) process would be:
-Dump source data (Sql Server data) into flat files, csv or any preferred format
-Setup a set of staging set of tables in the destination DB (Oracle in your case). You can setup the stage tables to enforce data-types, value sets and even some level of integrity constraints or any data logic or what ever you would like to filter out. Load the flat file data into a set of Oracle stage tables (Sql*Loader would be a good candidate)
-You can always move data from these stage tables to you application tables
You can script this whole process to run as batch or on demand or how ever you would like.
I am sure you can google and find a bunch of proprietary as well as open source tools to do the same with little to a lot of work.
good luck! -
Siebel database migration from Sql Server 2005 to Oracle 11g RAC.
Hi,
We would like to migrate our Siebel database from Sql Server 2005 to Oracle 11g RAC. Can you suggest the best way to do that ?
The current configurations are:
Application : Siebel
database : SQL Server 2005
The hardware can be changed if needed. Can you please suggest the best approach ?
Thanks,
Naveen.
Edited by: Naveen Kumar C on Mar 18, 2011 9:10 PM
Edited by: Naveen Kumar C on Mar 18, 2011 11:44 PMHi Naveen,
We would like to migrate our Siebel database from Sql Server 2005 to Oracle 11g RAC. Can you suggest the best way to do that ?You will need much more which suggestions.
You will need a Siebel professional which has done this type of migration. Migrating the Database is not a task so hard, after migrating your environment should be functional and healthy it is usually the task problematic.
The hardware can be changed if needed. Can you please suggest the best approach ?We can recommend the minimum recommended, but this documentation already does, you need to do a analysis on your environment and ask a vendor Siebel tell the which is recommended for you and how to find the best "number" for you, in your case is very hard because everything changes.
Check this Step-by-Step
Migrating a Microsoft SQL Server Database to Oracle Database 11g
http://st-curriculum.oracle.com/obe/db/hol08/sqldev_migration/mssqlserver/migrate_microsoft_sqlserver_otn.htm
Regards,
Levi Pereira -
Migrating From Sql Server 2005 to Oracle (Uniqueidentifier Issue)
If i want to migrate from SQL SERVER 2005 to Oracle, How Oracle will deal with my primary key columns in almost all tables having datatype of UNIQUEIDENTIFIER ???
is there any concept of uniqueidentifier in Oracle same as in SQL SERVER ????
RegardsWhen you migrate your SP's from SQL Server to Oracle the parser basically does 'as good a job as it can' to migrate them.
Luckily, using SQL Developer you are able to look at the source SP and converted SP in windows next to each other and see what oracle has done to them.
You can also paste your SQL Server code into a window and ask SQL Developer to translate it to oracle for you. Use the 'Translation Scratch Editor' on the migration menu if this is something that interests you. I was told that the parser used by the Translation Scratch Editor is different to the parser used when migrating the whole database. -
Migration From SQL Server 2005 to Oracle DB through Oracle SQ Dev Problem
Hi all,
we are trying to do a full Migration from MS SQL Server 2005 to Oracle DB 9.2 i
we are using Oracle SQL Developer V 1.5.3,
the capturing of the DB and the conversion to the oracle model completed succefully
however when we try to generate the scripts from the converted model
the script generation hangs on a sequence and no further progress is made (the script generation pop up keeps still on a certain sequence displaying its name, and thats it )
no error messages are displayed,
how can we know the reason for this? or atleast find a log for whats happening...
any suggestions?
Thank youHi,
migrating a sequence shouldn't make a problem. I did a quick test. I created this table in SQL Server:
create table test_seq (col1 int identity(1,1),col2 char(1))
Then I captured the table, converted the table and generated the script. There was no problem.
CREATE SEQUENCE succeeded.
CREATE TABLE succeeded.
Connected
TRIGGER test_seq_col1_TRG Compiled.
As you see, applying the script was also successful.
I am using Oracle RDBMS 11g, I don't know whether this makes a difference. Do you have any 11g instance available to test it?
Can you show me one of the sequences that are causing the hang? Is the CREATE SEQUENCE statement already in the generated script, or not? Your table is for sure more complex than my simple example.
Regards,
Wolfgang
Edited by: wkobargs on Jan 13, 2009 3:01 AM -
Reg. Migrating data from SQL Server 2000 to Oracle
Hi All,
I need to migrate a same data from SQL Server 2000 to Oracle 9i.In sql server Export option is there, but the problem is some 30 tables have More than one LONG datatype column in a table. That's why oracle not allow to import.
Could you guys find any tool for the same.
Please do the needful.
Thanks & Regards,
Prathaphi dermot,
it's very urgent now. Can you please give any solution for this.
and also i tried the SQL developer tool. But i got an below error,
Error starting at line 2 in command:
CREATE USER dbo_testdatalatest IDENTIFIED BY dbo_testdatalatest DEFAULT TABLESPACE USERS TEMPORARY TABLESPACE TEMP
Error at Command Line:2 Column:45
Error report:
SQL Error: ORA-01031: insufficient privileges
01031. 00000 - "insufficient privileges"
*Cause: An attempt was made to change the current username or password
without the appropriate privilege. This error also occurs if
attempting to install a database without the necessary operating
system privileges.
When Trusted Oracle is configure in DBMS MAC, this error may occur
if the user was granted the necessary privilege at a higher label
than the current login.
*Action: Ask the database administrator to perform the operation or grant
the required privileges.
For Trusted Oracle users getting this error although granted the
the appropriate privilege at a higher label, ask the database
administrator to regrant the privilege at the appropriate label.
Error starting at line 3 in command:
GRANT CREATE SESSION, RESOURCE, CREATE VIEW TO dbo_testdatalatest
Error report:
SQL Error: ORA-01031: insufficient privileges
01031. 00000 - "insufficient privileges"
*Cause: An attempt was made to change the current username or password
without the appropriate privilege. This error also occurs if
attempting to install a database without the necessary operating
system privileges.
When Trusted Oracle is configure in DBMS MAC, this error may occur
if the user was granted the necessary privilege at a higher label
than the current login.
*Action: Ask the database administrator to perform the operation or grant
the required privileges.
For Trusted Oracle users getting this error although granted the
the appropriate privilege at a higher label, ask the database
administrator to regrant the privilege at the appropriate label.
Error starting at line 4 in command:
CREATE USER epm_testdatalatest IDENTIFIED BY epm_testdatalatest DEFAULT TABLESPACE USERS TEMPORARY TABLESPACE TEMP
Error at Command Line:4 Column:45
Error report:
SQL Error: ORA-01031: insufficient privileges
01031. 00000 - "insufficient privileges"
*Cause: An attempt was made to change the current username or password
without the appropriate privilege. This error also occurs if
attempting to install a database without the necessary operating
system privileges.
When Trusted Oracle is configure in DBMS MAC, this error may occur
if the user was granted the necessary privilege at a higher label
than the current login.
*Action: Ask the database administrator to perform the operation or grant
the required privileges.
For Trusted Oracle users getting this error although granted the
the appropriate privilege at a higher label, ask the database
administrator to regrant the privilege at the appropriate label.
Error starting at line 5 in command:
GRANT CREATE SESSION, RESOURCE, CREATE VIEW TO epm_testdatalatest
Error report:
SQL Error: ORA-01031: insufficient privileges
01031. 00000 - "insufficient privileges"
*Cause: An attempt was made to change the current username or password
without the appropriate privilege. This error also occurs if
attempting to install a database without the necessary operating
system privileges.
When Trusted Oracle is configure in DBMS MAC, this error may occur
if the user was granted the necessary privilege at a higher label
than the current login.
*Action: Ask the database administrator to perform the operation or grant
the required privileges.
For Trusted Oracle users getting this error although granted the
the appropriate privilege at a higher label, ask the database
administrator to regrant the privilege at the appropriate label.
Error starting at line 6 in command:
CREATE USER lportal_testdatalatest IDENTIFIED BY lportal_testdatalatest DEFAULT TABLESPACE USERS TEMPORARY TABLESPACE TEMP
Error at Command Line:6 Column:49
Error report:
SQL Error: ORA-01031: insufficient privileges
01031. 00000 - "insufficient privileges"
*Cause: An attempt was made to change the current username or password
without the appropriate privilege. This error also occurs if
attempting to install a database without the necessary operating
system privileges.
When Trusted Oracle is configure in DBMS MAC, this error may occur
if the user was granted the necessary privilege at a higher label
than the current login.
*Action: Ask the database administrator to perform the operation or grant
the required privileges.
For Trusted Oracle users getting this error although granted the
the appropriate privilege at a higher label, ask the database
administrator to regrant the privilege at the appropriate label.
Error starting at line 7 in command:
GRANT CREATE SESSION, RESOURCE, CREATE VIEW TO lportal_testdatalatest
Error report:
SQL Error: ORA-01031: insufficient privileges
01031. 00000 - "insufficient privileges"
*Cause: An attempt was made to change the current username or password
without the appropriate privilege. This error also occurs if
attempting to install a database without the necessary operating
system privileges.
When Trusted Oracle is configure in DBMS MAC, this error may occur
if the user was granted the necessary privilege at a higher label
than the current login.
*Action: Ask the database administrator to perform the operation or grant
the required privileges.
For Trusted Oracle users getting this error although granted the
the appropriate privilege at a higher label, ask the database
administrator to regrant the privilege at the appropriate label.
Error starting at line 8 in command:
connect dbo_testdatalatest/dbo_testdatalatest;
Error report:
Connection Failed
Commit
Regards,
Prathap.R -
Migrating a table from SQL server 2005 to oracle 9i
Hi
I need to migrate a table from SQL server to oracle, both of which are on different machines, I tried using SQL server DTS export functionality selected the Oracle driver, created a DSN, but it gave error message box as shown below
Error Source: Microsoft OLE DB Provider for ODBC Drivers
"ORA 12560 :TNS protocol adapter error"
Context:Error During initialization of the provider
While i was successfully able to migrate the table from SQL SERVER to MS-ACCESS and from MS ACCESS to Oracle
thanks
abhishekHi
thanks warren, i just figured out that the DSN i had created while migrating data from Access to oracle was User DSN, i just created a system DSN of the similar kind and was successfully able to export the data from SQL server to oracle, the only problem being the column names in SQL server are longer than the limit of 30 characters we have in ORACLE..
Regards
Abhishek -
Migrating DB from SQL Server (Windows) to Oracle (Unix)
I wish to migrate a SQL Server 2000 database on a Windows environment to an Oracle database on a Unix environment.
Are there any issues with using the Oracle Migration Workbench to migrate a SQL Server database to Oracle between different operating systems?
Thanks in advance.Hi!
After trying to migrate only a copule of schemas from sqlserver, my solution appeared by itself. It seems that something goes wrong if you migrate only selected users, so I build up a test instance in windows, made the workbench repository on it, and ran a full migration from all the users to this test environment.
After this it was nice, cause I made an exp from the squema I wanted and imported it on production environment.
PD: Migration logs only raised java related problems. I got quite crazy realizing what jdbc version I had, but it wasn't the problem.
By the way, if you try to run sqlloader scripts, be careful with language issues, cause I had to reverse data loading because incorrect typos or so.
Thanks a lot for your help.
Mensaje editado por:
manuel lopez -
Problem: Database Migraton from Sql Server 2005 to Oracle 10g
Hi all
i am trying to migrate sql server 2005 Database to Oracle 10g, Using Oracle Sql developer 3.0.04
Whole Daabase including Schemas,user-passwordTables,Views,Indexes,Functions,Procedures etc. migrated sucesfuly
But All Procedures are not correctly migrated
many of procedures showing errors...
how to migrate procedures correctly?
SO.....
How To Resolve thios issue?
please help me out
thanks
Edited by: user10226917 on Jun 8, 2011 1:42 AMHi,
I have tested using the following -
SQL*Developer Version 3.0.04 Build MAIN-04.34
and did the following -
Tools - Migration - Translation Scratch Editor
- made sure I was using the 'Microsoft SQL Server T-SQL to PL/SQL ' option in the 'Translateor' tab.
Then in the worksheet put in your entry -
PRINT '@HID=' + CAST(@HID AS VARCHAR(100))
This is then translated to the following -
BEGIN
DBMS_OUTPUT.PUT_LINE('@HID=' || CAST(v_HID AS VARCHAR2(100)));
END;
Is this what you did and the entry you typed into the scratch pad ?
If not, can you give the full code that gave the error -
DBMS_OUTPUT.PUT_LINE('@HierID=' || CAST(v_HierID AS VARCHAR2(100)));
DBMS_OUTPUT.PUT_LINE('@NodeType=' || CAST(v_NodeType AS VARCHAR2(100)));
DBMS_OUTPUT.PUT_LINE('@NodeTypeReqd=' || CAST(v_NodeTypeReqd AS VARCHAR2(100)));
Error(36,64): PLS-00103: Encountered the symbol "(" when expecting one of the following: . ) @ % The symbol ")" was substituted for "(" to continue. gives error in compiling error
Regards,
Mike -
How to only migrate data from SQL Server 2008 to Oracle 11?
According to our requirement, We need to only migrate data from a SQL Server database to an existed
Oracle database user.
1) I tried to do it with SQL Developer 3.0.04 Migration Wizard, But find an issue.
My SQL Server database name is SCDS41P2, and my Oracle database user name is CDS41P2;
When I used SQL Developer to do offline move data by Migration Wizard, I found all oracle user
name in movedata files which gotten by run Migration Wizard
is dbo_SCDS41P2. If the Oracle user name is not the same as my existed Oracle user name,
the data can't be moved to my existed Oracle user when I run oracle_ctl.bat in command line window.
So I had to modify the Oracle user name in all movedata files, but it's difficult to modify them because there are many tables in
databases. So could you please tell me how to get the movedata files which the oracle user name in them is my
expected Oracle user name?
2) I also tried to use the 'copy to Oracle' function to copy the SQL Server database tables data
to the existed Oracle database user. When clicked 'copy to Oracle', I selected 'Include Data' and 'Replace' option
But I found some tables can't be copied, the error info is as below:
Table SPSSCMOR_CONTROLTABLE Failed. Message: ORA-00955: name is already used by an existing object
Could you please tell me how to deal with this kind of error?
Thanks!
Edited by: 870587 on Jul 6, 2011 2:57 AMHi,
Thanks for you replying. But the 'copy to oracle' function still can't be work well. I will give some info about the table. I also search 'SPSSCMOR_CONTROLTABLE' in the target schema, and only find one object. So why say 'name is already used by an existing object'? Could you please give me some advice? Thanks!
What is the 'Build' version of your SQL*Developer ?
[Answer]:
3.0.04
- what does describe show for the SPSSCMOR_CONTROLTABLE in SQL*Server ?
[Answer]:
USE [SCDS41P2]
GO
/****** Object: Table [dbo].[SPSSCMOR_CONTROLTABLE] Script Date: 07/18/2011 01:25:05 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SPSSCMOR_CONTROLTABLE](
[tablename] [nvarchar](128) NOT NULL,
PRIMARY KEY CLUSTERED
[tablename] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
- what does describe show for the SPSSCMOR_CONTROLTABLE in Oracle ?
[Answer]:
-- File created - Monday-July-18-2011
-- DDL for Table SPSSCMOR_CONTROLTABLE
CREATE TABLE "CDS41P2"."SPSSCMOR_CONTROLTABLE"
( "TABLENAME" NVARCHAR2(128)
) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
TABLESPACE "USERS" ;
-- DDL for Index SYS_C009547
CREATE UNIQUE INDEX "CDS41P2"."SYS_C009547" ON "CDS41P2"."SPSSCMOR_CONTROLTABLE" ("TABLENAME")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
TABLESPACE "USERS" ;
-- Constraints for Table SPSSCMOR_CONTROLTABLE
ALTER TABLE "CDS41P2"."SPSSCMOR_CONTROLTABLE" MODIFY ("TABLENAME" NOT NULL ENABLE);
ALTER TABLE "CDS41P2"."SPSSCMOR_CONTROLTABLE" ADD PRIMARY KEY ("TABLENAME")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
TABLESPACE "USERS" ENABLE;
Edited by: 870587 on Jul 18, 2011 1:42 AM -
Automating Data Migration from SQL Server 2005
Hi All,
I need to migrate data from SQL Server 2005 to Oracle DB ( Datawarehouse). The data migration involves updating Dimensions and Fact table. I have got painful job of switching topology to point to over 100 different weekly SQL DBs ( in sequence) and pull the data into DW. How can I automate my ODI process to switch from one after the other.
Any Ideas?
KSODI Variables are there to help you with this. Please go through this post at [http://blogs.oracle.com/dataintegration/2009/05/using_odi_variables_in_topolog.html] .
This will show you how to use a variable Oracle data server.
On similar lines you should be able to switch to any of your 100 weekly SQL server DBs.
And loop in a sequence to load data from all of them.
Hope that helps -
Reading BLOB from SQL Server 2005 using DB Link from Oracle 10g
Hi All,
I am trying to read a table's data from SQL Server 2005 using ODBC DB Link created in Oracle 10g (10.2.0.3/4) database. I am not using oracle gateway.
I am able read all data except for the BLOB data from SQL server 2005. It gives error given below when I try to execute query SELECT * from T_TRANSACTION_DATA@sdeslink inside a stored procedure:
ORA-22992: cannot use LOB locators selected from remote tables
Kindly help how to read BLOB from SQL server 2005 inside Oracle 10g.
Best Regards!
IrfanIrfan,
If you can read the blob data using 10.2 HSODBC then there should be no problem using the 11g gateway.
I recommend you download the latest version which is 11.2.0.3 available from My oracle Support as -
Patch 10404530: 11.2.0.3.0 PATCH SET FOR ORACLE DATABASE SERVER
This is a full version and does not need a previous version to have bene installed. When installing it needs to be in a completlely separate ORACLE_HOME from the existing 11.2 install.
For the Ora-22992 problem have a look at this note in My Oracle Support -
Ora-22992 has a workaround in 10gR2 (Doc ID 436707.1)
Regards,
Mike -
Migration from sql server 2005 tables to oracle tables.
Hi,
Kindly give the steps to migrate from sql server 2005 tables to oracle tables.
Kindly advise
Oracle database version:
Oracle Database 10g Release 10.2.0.1.0 - Production
PL/SQL Release 10.2.0.1.0 - Production
"CORE 10.2.0.1.0 Production"
TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
Edited by: 873127 on Jul 18, 2011 9:46 PMAre you migrating or taking continual updates?
If migrating it might be worth considering The SQLDeveloper Migration Workbench (which moves more than just data)..
http://www.oracle.com/technetwork/database/migration/sqldevmigrationworkbench-132899.pdf
Cheers
David
Maybe you are looking for
-
Having a great iPhone 3G experience? You're not alone.
Given that this is a support forum, it's to be expected that it's primarily composed of people with issues with their iPhones. However, since several people in other posts have mentioned they are dropping by here to do some research before purchasing
-
Hi All, I need to add regulation requirement ID and Description in Risk and Control Matrix report(F7). I have done the table entry in the required view cluster those are: VC_GRFNREPCUST VC_GRFNREPCOLUMNSC. I am able to see the new column in the repor
-
How to set (class)paths for a Managed server?
How does one configure the PATH and CLASSPATH and pass definitions (like "-Djava.library.path=c:\p\bea\wlserver6.1\bin") to a remotely-started managed server? The section in the WLS 6.1 AdminGuide.pdf that talks about configuring a managed server's R
-
As the previous thread was closed without actual resolution - https://support.mozilla.org/en-US/questions/941350?esab=a&s=&r=0&as=s I managed to solve this on my end by just reinstalling firefox using the localisation of the default dictionary langua
-
I preordered an album in error that is scheduled to download next week. How do I stop it from downloading? I no longer want to purchase it.