Migrating a Sybase trigger
I have a trigger in my Sybase DB. This trigger (for INSERT) has a cursor (declare c_mov cursor for select id_mov from INSERTED) that loops in all rows inserted into my table and executes some SQL statements. How can I do this in ORACLE??? Can someone help me?
I have a trigger in my Sybase DB. This trigger (for INSERT) has a cursor (declare c_mov cursor for select id_mov from INSERTED) that loops in all rows inserted into my table and executes some SQL statements. How can I do this in ORACLE??? Can someone help me?
Similar Messages
-
Migrate peoplesoft sybase HRMS database to oracle 11g
Hi All,
I want to know if I can migrate a sybase peoplesoft HRMS database to oracle 11g using sql developer 3.0. I am trying to do this following the steps given in the link below but it is taking for ever for the convert step, I could see the messae saying building converted model.
http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/sqldev/r30/SybaseMigration/SybaseMigration.htm
The sybase database is 55GB and the version is 12. There are around 20,000 tables in Sybase Database.
Please advise, if this is possible with SQL Developer??
If yes, how long this process might take(for each step in the above link), based on any past convertions of the same size database??
If this is not feasable with SQL Developer because of the complexity of the database, are there any other tools we can look into which might be faster/better than SQL Developer.
Please advise.
Thanks..Hi Dermot, Tanks for the reply.
"Do you know the number of views and procedures captured". Below is the ouput from some of the tables in migration repositary.
count from md_derivatives table, grouped by derived_type.
MD_CATALOGS 1
MD_USERS 1
MD_CONNECTIONS 2
MD_SCHEMAS 4
MD_TRIGGERS 40
MD_VIEWS 34316
MD_TABLES 48048
MD_INDEXES 55850
MD_INDEX_DETAILS 112043
MD_COLUMNS 766244
Count from md_views table 34316
Count from md_additional_properties table 110322
"Is there a chance the convert phase has hung, or does it refresh ever so ofter with details of another object being "migrated"?"
It is not hung. I can see the message 'Translating views' right now, and the View names change often but not fast roughly every minute. When I checked for what the session is doing, I could see the below two sql statements.
SELECT PROP_KEY, VALUE, PROPERTY_ORDER, CONNECTION_ID_FK
FROM MD_ADDITIONAL_PROPERTIES
WHERE REF_ID_FK = :1
ORDER BY PROPERTY_ORDER;
SELECT ID
FROM MD_TABLES -- Some times this is MD_VIEWS
WHERE SCHEMA_ID_FK = :1 AND UPPER (TABLE_NAME) = UPPER (:2)
"What is the current "Being migrated" information?"
Translating View xxx.
"Does the tablespaces your migration repository schema is based on have sufficient space?"
Yes, Since there is no data at this point, it is all done in one table space which is set to grow UNLIMITED. At this point the size of the table space is a little over 500M.
"Is SQL Developer being run on the same machine as the Oracle database containing the migration repository? (conversion can be alot quicker for procedure,view,trigger conversion if SQL Developer is on the same machine as the repository)"
NO. SQL developer is running on my machine but the migration repositary is in the database which is on HP-UX box. Below are some of the details of the server. Also, since the database in on HP-UX, I couldn't find SQL developer for UNIX. I also read in the release note of 3.0 that it is not supported with UNIX, Is that right? else is there a way I can install SQL developer on the Unix server and that might improve the performance!, if yes, please guide me with the steps to do this installation.
Server:
Processors: 4, CPU version: PA 8700 CPU module 3.1, clock Frequency: 750MHz, Hardware Model: 900/800/L3000-7x, Kernel width Support 64.
Physical Memory 8199.3 MB
Real Memory --> Active: 2990487.0 KB, Total: 3956471.8 KB
Virtual Memory --> Active: 5787735.5 KB, Total: 6864998.0 KB
Free Memory Pages: 127049 at 4 KB/page
Swap Space --> Avail: 4096 MB, Used: 4096 MB, Free: 0 MB
OS Identification: B.11.11 U
I see the below when I do a 'glance' on the server. Looks like it is using most of the memory and the Swap. These are the numbers from the server after the migration started, they stay consistent all time with very small variation.
CPU Util S SR RU U | 34% 31% 39%
Disk Util F F | 4% 4% 13%
Mem Util S SU UB B | 93% 93% 93%
Swap Util U UR R | 86% 86% 86%
PROCESS LIST Users= 1
User CPU Util Cum Disk Thd
Process Name PID PPID Pri Name ( 400% max) CPU IO Rate RSS Cnt
oraclefap 16560 1 178 oracle 97.9/98.3 132507 0.1/ 0.6 16.0mb 1
My Machine where SQL Developer is Running
Windows XP Professional SP3. 2GB Memoery. All this, time I was using around 1 Gb of memory while this process is running, Out of which SQL developer uses only 200 to 300 MB at any given point and the CPU is less than 5%.
"What version of Oracle database have you installed the migration repository in?"
Below is the Banner.
Oracle Database 10g Release 10.2.0.4.0 - 64bit Production
PL/SQL Release 10.2.0.4.0 - Production
CORE 10.2.0.4.0 Production
TNS for HPUX: Version 10.2.0.4.0 - Production
NLSRTL Version 10.2.0.4.0 - Production
Also please let me know about this request I have popsted. https://apex.oracle.com/pls/apex/f?p=43135:7:2259365896228241::NO:RP,7:P7_ID:29361
I would greatly appreciate any help. Thanks again. -
Migration from SYBASE IQ to SYBASE ASE 11/12 and then to ORACLE 10G
Hi ,
The OWMB tool does not support migration of SYBASE IQ to ORACLE.So there should be some tool to migrate this SYBASE IQ to SYBASE ASE 11/12.And then which we can migrate to ORACLE which the OMWB supports.Does anybody have any idea about such tool(SYBASE IQ to SYBASE ASE 11/12).
Thanks With Regards,
VinothVinoth,
That's correct. However Sybase IQ is normally associated with Data Warehouses. Have you investigated the suitability of using Oracle Warehouse builder to assist with such a migration?
Ispirer supports migration from Sybase IQ 12 ( http://www.ispirer.com/products)
Donal -
Migration from Sybase 11 to Oracle 8i
I am trying to migrate a Sybase DB to Oracle 8i. The platform of Sybase system is VMS and Oracle is UNIX. Can I use workbench to migrate between two different platform?
If not, is it the only way to export sybase to a flat file and then load to Oracle using SQL loader?
ThanksHi,
Migration Workbench is not available for Sybase database.
As you can see on this website:
http://www.oracle.com/technology/tech/migration/workbench/files/mig_rel10104.html
Only Informix and DB2 database are supoprted now with this product.
With SQL Developer, we only support last versions of Sybase : V12 and V15.
As you don't have any remote access to your client database and no SA login , the best way would be :
==>to get and export from Sybase 11.
==>install a V12 somewhere (on your site , you can download the Sybase V15 )and import the Sybase database
Then SQL developer can migrate quickly your database without any problem.
I hope it helps you.
Mireille -
Migrate peoplesoft sybase HR database to oracle 11g
Hi All,
We am looking to migrate from sybase 12 to Oracle 11g. We are not sure on which path to choose for this migration to be done. Ths sybase Database is around 55 GB. Below are few questions. Please let me know. The down time on this database can not be more than 2 days at the max.
1. What is the best and fastest way to do this, if there is one?
2. Any Documentation on steps involved in migration?
3. Do we have to use any 3rd party tools for this?
4. Can we achieve the data migration with sql loader, if yes is it the suggested way to do this and is there any documentation on this?
I tried sql developer to do the migration but it did not go well and finally found that it is not the way to migrate a Database with peoplesoft environment, below is the link to explain more about what I have done with sql developer.
If there is any other information required, below link has almost all the information.
Re: Migrate peoplesoft sybase HRMS database to oracle 11g
Thanks
Kranthi1) Build an Oracle Demo system patched to the same release level as the current production system.
2) Launch Application Designer and compare the production system to the demo system so you may capture the modifications.
3) Load a custom table with the tables listed in the MVPRDEXP.EXP in the production system. Run a script to create an export script for all PSRECDEFN where the RECTYPE is 0. This identifies all application data tables. You may want to dms export large tables in parallel.
4) DMS Import the exported data into the Oracle instance.
5) Reapply the modifications. -
Migration from Sybase 11.9.1 to Oracle 7.3.4
Does the Oracle Migration Workbench 1.2.2 support database migration from Sybase 11.9.1 to Oracle 7.3.4?
If not, is there any work-around or any other tool? Can we still use Migration Workbench for this migration?
Thanks.It is probably best to use the latest version of the workbench (1.2.5.0.0). Migration to 7.3 is not supported but should work except for the newer features, for example use long instead of blob and clob, and do not use 8i temporary tables.
Turloch -
Migration of Sybase 4.9 to Oracle 9i
Hi
We need to migrate a Sybase 4.9 Database to Oracle 9i.
We are in initial research phase and the approach is yet to be decided.
Any info on tools available and approach will be of great help.
Regards
kapilKapil,
The sqlways product from Ispirer might be a possible solution? I would discuss it with them. This is a very old version of Sybase.
http://www.ispirer.com/products/
Donal -
Migrating from Sybase Anywhere to ASE
I am in process of migrating from Sybase Anywhere to ASE and trying to import a table from Anywhere to ASE, I getting following error message that could not find appropriate data type for column - now this column from Anywhere has data type of datetime.
ASE does not have any wizards so you must be using some sort of GUI/tool/application.
What GUI/tool/application are you using? PowerDesigner? Sybase Central? Sybase Control Center? Something else?
Can you *connect* to the ASA and ASE instances with this GUI/tool/application? [Forget the 'import' operation for the moment ... and verify you can just *connect* to both ASA and ASE.]
Also, what is the actual/complete error message?
NOTE: I don't use GUI/tools so depending on the error there may not be much more I can assist with. -
Migrating from Sybase 11.9
Is there an Oracle tool still available for migrating Sybase release 11.9 databases to Oracle? I can't seem to find anything on the Oracle website.
Thank you,
SteveSQL Developer migration is the latest migration tool Oracle offers to mograte foreign databases to Oracle. Unformtunately it does not cover Sybase ASE 11.9 database releases according to the manual:
http://www.oracle.com/technology/tech/migration/workbench/pdf/migrationdatasheet_15.pdf
To migrate a Sybase 11 ASE you might think about using the old Migration Workbench utility:
http://www.oracle.com/technology/software/tech/migration/workbench/index.html
The Sybase 11 plugin has been removed from the list of available resources, but it is still available on the download server:
http://download.oracle.com/otn/nt/omwb/101040/Sybase11.jar
In addition I've notified develoment if they could implement again a link on the OMWB download page fro the Sybase 11 plugin.
So you need to get from the Oracle Migration Workbench download URL the common file of OMWB:
http://download.oracle.com/otn/nt/omwb/101040/omwb.zip
Extract this ZIP file into a directory of your choice.
The plugin (make sure you save the file as it is - as a JAR file) into the OMWB Plugin directory and then get from Sybase te jdbc driver jconn2.jar and put the JDBC driver in
to the OMWB\drivers directory.
Edited by: kgronau on Nov 10, 2008 10:29 AM -
Is it possible to call java from Sybase trigger ? If so can you please supply example or URL to one ? Alternative solution is to call shell script from sybase trigger (as app is based on Solaris).
Regards
MichalThank for your opinion, but what idea is better ?Doing things in the middle tier, where Java lives.
Ever heard of event-based trading systems?
pooling a table every 30 sec. ?. I need to implment
real-time system which process each trade from table
once it appears there.Sounds like you have it backwards - you're trying to drive Java from the database.
I think it'd be better to write that event-based system in Java and leave the database just for persistence.
GigaSpaces and their ilk are being used this way for highly transactional trading systems. Maybe you could see how they're doing it.
% -
Migrate a Sybase 11.5 to Oracle 10.2.0.1
Trying to use the Oracle SQL Developer 1.5.0.53. I have the Sybase database connected and can view the tables. When I try and run the Quick Migrate it fails in the PreMigration Check on "Locating Source Plugin". I'm have trouble determining what this means. I have looked through documentation and message board. Can somebody please help me.
Hi,
the SQL Developer Migration Workbench supports only migrations of Sybase Adaptive Server 12 and 15.
Please see http://www.oracle.com/technology/tech/migration/workbench/pdf/migrationdatasheet_15.pdf
You can still use the standalone Migration Workbench (OMWB) for migrations of Sybase Adaptive Server 11 to Oracle RDBMS 9i or 10g (not 11g).
Please refer to
http://www.oracle.com/technology/tech/migration/workbench/pdf/omwb_ds.pdf
Here are more details about OMWB 10.1.0.4:
http://www.oracle.com/technology/tech/migration/workbench/index.html
Read the documentation given on that URL before trying anything out.
Regards
Wolfgang -
Problem while migrating from Sybase to Oracle using Quick Migrate
Hi,
For SQL Developer version 2.1, while migrating from sybase to oracle, Using Quick migrate, during data move step, for the rows having ''(Blank) values in TEXT data type in SYBASE, which is convertd to CLOB in Oracle, the migration for that table terminates at that row.
However, NULL values in Sybase TEXT data type are successfully inserted in Oracle CLOB.
How can we overcome this?reproduced and see exception in console, bug logged.
Edited by: Jade Zhong on Feb 1, 2010 6:10 PM -
Migrating from Sybase to Oracle
Hi!
Can someone tell me, how to migrate from Sybase to Oracle.
Thank U.Hi,
You don't say if you have used the SQL*Developer migration workbench for the migration so far.
This has a feature for transferring data offline which should do what you want.
Have a look at the documentation linked from -
http://www.oracle.com/technology/tech/migration//workbench/index_sqldev_omwb.html
or at -
http://download.oracle.com/docs/cd/E12151_01/index.htm
SQL Developer User's Guide - section 2.9.1 Transferring the Data Offline
Regards,
Mike -
Issue during migrating from Sybase to Oracle using Oracle SQL Developer
I am using SQL Developer v 3.2.20.09 to migrate from Sybase to Oracle Pl/SQL 12c
While migrating the stored procedure the following block did not convert. I got NULL instead of object_id:
Sybase Block:
IF OBJECT_ID(‘dbo.CheckEst’) IS NOT NULL
BEGIN
DROP PROCEDURE dbo.CheckEst
IF OBJECT_ID(‘dbo.CheckEst’) IS NOT NULL
PRINT ‘<<>>’
ELSE
PRINT ‘<<>>’
END
Oracle Block after conversion:
BEGIN
IF NULL/*TODO:OBJECT_ID(‘dbo.CheckEst’)*/ IS NOT NULL THEN
BEGIN
DROP PROCEDURE CheckEst;
IF NULL/*TODO:OBJECT_ID(‘dbo.CheckEst’)*/ IS NOT NULL THEN
DBMS_OUTPUT.PUT_LINE(‘<<>>’);
ELSE
DBMS_OUTPUT.PUT_LINE(‘<<>>’);
END IF;
END;
END IF;
END;
Lines 1 & 4 got converted to NULL. I have many places where such code is written.
Is there any quick way to overcome such an issue? or what needs to be done in such case?Hi,
You are using an older version of SQL*Developer. Could you download the latest 4.0.2 version available from here -
Oracle SQL Developer
and check if you still have the problem ?
Regards,
Mike -
DB migration from Sybase to MSSQL
Hi All,
This is my first experience migrating from Sybase ASE to MSSQL.
I have migrated successfully in Hyper-V on High availability, the problem is after system copy I can able to connect SAP GUI inside the VM(Hyper-V)
but i could not able to connect from outside the VM i.e, from my laptop. what are the necessary steps I have to check and do to fix the problem.
Thanks & Regard's
KathirHi Kathir,
but i could not able to connect from outside the VM i.e, from my laptop. what are the necessary steps I have to check and do to fix the problem.
Please check the following
1) Windows Firewall is off on target system
2) You are able to ping the server from your laptop
3) You are able to perform telnet <IP address of SAP server> 33<NR>
Hope this helps
Maybe you are looking for
-
How to avoid same entry in numbers
I am using a numbers file to organize my client. However, I entered one client more than one time. How can I avoid making the same entry / alert for entering the same entry? Is there any solution? Thanks for mac fans support
-
I have a scenario like The XML PO data from the HTTP client is posted asynchronously to XI (using quality of service Exactly Once). The control is taken over by BPM and posts the BAPI synchronously into the R/3 system and upon receiving the BAPI re
-
Hello everyone, Can anyone please advise if it is possible and how to track the steps in a Iphone 5 without the M7 processor? Many thanks!!
-
How can I renumber tracks on an album in iTunes?
How can I renumber tracks on an album in iTunes?
-
Transport changes made to company code address (ox02)
Hello All, We are making the changes to the company code address in OX02 in development online client and transporting the request generated while saving to the quality client in the same system. However, after importing the request successfully, we