Problems in migrating SQLServer to Oracle8i

Hi,
Iam converting from SQLServer2000 to Oracle8i. Iam trying to find out the equivalent tables for syscolumns, sysobjects. In syscolumns we use a condtion such as :: name=’property_id’ . SQLServer has this name field in syscolumns. What is the equivalent of this in oracle.
2) Also we use column_property( id, column_name, property) function in our storedprocs.
Ex: column_property( 101, name, ‘IsIdentity/IsIndexable’) . In which tables would I get this information in oracle.
3) Also we are using msdb.dbo.sp_add_job to create a job . How can I achieve this in oracle8i .
Similary for msdb.dbo.sp_add_category -- > which creates a category.
Your help is very nuch appreciated.

< the equivalent tables for syscolumns, sysobjects >
dba_tables or dba_objects :- sysobjects
dba_tab_columns :- syscolumns
<< use column_property >>
You can get this from dba_tab_columns
Also run " desc table_name". Same as sp_help.
<< Also we are using msdb.dbo.sp_add_job to create a job . How can I achieve this in oracle8i . >>
You can use DBMS_JOB package in oracle to setup jobs.

Similar Messages

  • Performnace problem in migrating form SOlaris2.5.1 to Solaris8

    have a working system in production for the last six years. It was done on Solaris 2.5.1 using C++ version 4.2. Now i am migrating it to Solaris 8 using C++ 5.4. I use class library from Recursionsw called ObjectSPace.
    My code requires lots of message passing (objects) between processes. This is done by binray streams over sockets. All my code is multi threaded (POSIX) and uses semaphores.
    The time taken to pass approx. 150 messages in the earlier version was 2 seconds (say) on an Ultra 2 but now the same piece of code (without any logical changes) takes over 30 seconds on an E10k.
    With prstat i notice that the sys time value is high and SCL is high. The thtread which is reading messages is taking lot of cpu time. The LCK value is very low.
    Has anyone got any idea or faced similar problem in migrating.
    Any help is welcome.
    Thanks
    Manoj

    We are using a class library called Objectspace from Recursionsw. We did a small test program. This program has an object with about 20 fields (total of around 200 bytes). All we do is write this object (binary stream over socket) from one process and read it from the other process. For banchmarking we write and read this object 200 times.
    The results are as follows:
    Solaris 2.5.1 - Around 13 seconds
    Solaris 7 - Around 60 seconds
    Solaris 8 - Around 120 secinds
    Solaris 9 - 1-2 seconds
    On Soalris 8 i have tried with both std iostream and classic iostream. There is no difference.
    This is without any change in the source code. Can anyone give any clues as to what is going wrong.
    Regards,
    Manoj

  • Problem when migrate from WLI2.1 to WLI7

    I met this problem when migrating my program from WLI2.1 to WLI7.
    It report the following exception in WLI7:
    <2002-10-21 &#19979;&#21320;05&#26102;05&#20998;15&#31186;> <Error> <HTTP> <101019>
    <[ServletContext(id=5904188,name=dkh
    ,context-path=/dkh)] Servlet failed with IOException
    java.rmi.AccessException: Security Violation: User: 'admin' has insufficient permission
    to
    access EJB: type=<ejb>, application=WebLogic Integration, module=WLI-BPM Server,
    ejb=WLPI
    Principal, method=getRolesForUser, methodInterface=Remote, signature={java.lang.String,jav
    a.lang.String,boolean}.
    But it's fine in WLI2.1? Who can tell me why and how to solve it?
    Thanks

    ####<13 oct. 2004 17 h 05 CEST> <Info> <JMS> <ucwwe2> ><ucwls81> <WrapperSimpleAppMain> <<WLS Kernel>> <> <BEA->040114> <JMSServer "JMSServer", Finished scan of file >store "persistence" in directory "c:\bin\bea\jmsstore".                     >Found 2 025 records totalling 21 205 248 bytes.>
              >####<13 oct. 2004 17 h 05 CEST> <Info> <JMS> <ucwwe2> ><ucwls81> <WrapperSimpleAppMain> <<WLS Kernel>> <> <BEA->?040056> <JMSServer "JMSServer". Deleting 2025 messages(s) with no matching destination.>
              My JMS experience on WLS 8.1 ain't great, purley from these error messages it looks like the destination of these messages is the problem. Can you double check the destination exists and is configured correctly.
              Hoos
              www.orbism.com

  • Problems while migrating PDK applications from Portal 7.1 to Portal 7.3

    Hi All,
    I am facing a problem while migrating a PDK application from Portal 7.1 to Portal 7.3.
    Since Portal 7.3 doesnt support PAR files any more it provided with a tool to convert the PAR to an EAR file and deploy the resultant EAR to the new portal.
    I converted the PAR into EAR and deployed the file but the application is not executing. When I looked into the log files i found the following exception. The application is not able to identify the tag "documentBody". I checked the protalapp.xml and the "SharingReference" is properly maintained in the file but the error message suggests that its not able to fine the reference to the tagLib uri maintained in the portalapp.xml
    Now my question is why is it not able to obtain a reference to the taglib? Did any one face similar problem previously. Can you please provide me with any document for migrating / developing PDK application for Portal 7.3
    Parser [PRT] - JspParseException is thrown while parsing JSP file </SAP/sap/POD/J00/j2ee/cluster/apps/TestOrg.co.uk/TestOrg~cas~ptlsvc/servlet_jsp/CASPortalService/root/WEB-INF/pagelet/CASFramework.jsp> :
    com.sap.engine.services.servlets_jsp.jspparser_api.exception.JspParseException: Cannot parse custom tag with short name [documentBody].
    at com.sap.engine.services.servlets_jsp.jspparser_api.jspparser.syntax.JspElement.customTagAction(JspElement.java:969)
    at com.sap.engine.services.servlets_jsp.jspparser_api.jspparser.syntax.JspElement.action(JspElement.java:228)
    at com.sap.engine.services.servlets_jsp.jspparser_api.jspparser.syntax.ElementCollection.action(ElementCollection.java:59)
    at com.sap.engine.services.servlets_jsp.jspparser_api.jspparser.syntax.JspElement.customTagAction(JspElement.java:994)
    at com.sap.engine.services.servlets_jsp.jspparser_api.jspparser.syntax.JspElement.action(JspElement.java:228)
    at com.sap.engine.services.servlets_jsp.jspparser_api.jspparser.syntax.ElementCollection.action(ElementCollection.java:59)
    at com.sap.engine.services.servlets_jsp.jspparser_api.jspparser.syntax.JspElement.customTagAction(JspElement.java:994)
    at com.sap.engine.services.servlets_jsp.jspparser_api.jspparser.syntax.JspElement.action(JspElement.java:228)
    at com.sap.engine.services.servlets_jsp.jspparser_api.jspparser.syntax.ElementCollection.action(ElementCollection.java:59)
    at com.sap.engine.services.servlets_jsp.jspparser_api.jspparser.syntax.ElementCollection.action(ElementCollection.java:69)
    at com.sap.engine.services.servlets_jsp.jspparser_api.jspparser.GenerateJavaFile.generateJavaFile(GenerateJavaFile.java:72)
    at com.sap.engine.services.servlets_jsp.server.jsp.JSPProcessor.parse(JSPProcessor.java:272)
    at com.sap.engine.services.servlets_jsp.server.jsp.JSPProcessor.generateJavaFile(JSPProcessor.java:196)
    at com.sap.engine.services.servlets_jsp.server.jsp.JSPProcessor.parse(JSPProcessor.java:128)
    at com.sap.engine.services.servlets_jsp.jspparser_api.JSPChecker.getClassName(JSPChecker.java:377)
    at com.sap.engine.services.servlets_jsp.jspparser_api.JSPChecker.compileAndGetClassName(JSPChecker.java:306)
    at com.sap.engine.services.servlets_jsp.jspparser_api.JSPChecker.getClassNameForProduction(JSPChecker.java:236)
    Thanks in advance
    PK

    Hi Amit,
    Thanks for your reply. I could see some progress after "thoroughly" going through those links. Thanks a lot (gave points too )
    Now I am facing another problem. The application did deploy successfully but with a warning. When i checked the warning it says that the deployment was successful but can not be started.
    The log file has the following error message.
    Global [startApp] operation of application [newsint.co.uk/newsint~cas~ptlsvc] finished with errors for [5] ms on server process [2721950] [
    >>> Errors <<<
    1). com.sap.engine.services.deploy.exceptions.ServerDeploymentException: Application newsint.co.uk/newsint~cas~ptlsvc cannot be started. Reason: it has hard reference to the following resources, which are currently not available on the system: hard to SAPPORTAL/com.sapportals.htmlb (public) (f=true, cl=false); .
    In order to start the application, components that provide the missing resources should be successfully deployed.
    at com.sap.engine.services.deploy.server.ReferenceResolver.isResolved(ReferenceResolver.java:137)
    at com.sap.engine.services.deploy.server.LifecycleController.startReferencedComponents(LifecycleController.java:173)
    at com.sap.engine.services.deploy.server.application.StartTransaction.beginCommon(StartTransaction.java:200)
    at com.sap.engine.services.deploy.server.application.StartTransaction.begin(StartTransaction.java:166)
    at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:421)
    at com.sap.engine.services.deploy.server.application.ParallelAdapter.makeAllPhases(ParallelAdapter.java:465)
    at com.sap.engine.services.deploy.server.application.StartTransaction.makeAllPhases(StartTransaction.java:605)
    at com.sap.engine.services.deploy.server.DeployServiceImpl.makeGlobalTransaction(DeployServiceImpl.java:1828)
    I dont understand why is SAPPORTAL/com.sapportals.htmlb is not available. As per my understanding it is some thing that should be available with the portal server by default.
    Any hints from any one?
    thanks in advance
    PK

  • Problem to migrate customer development

    We have implemented NWDI for ESS/MSS successfully.
    However, we found problem to migrate customer development into the NWDI
    despite we have followed the SAP Note: 696084 and converted customer
    development from EAR files into SCA file successfully. However, the
    system prompted error as we click import-check. The error is :
    Check Failed, because the sources are not contained in the archive
    Please advise.
    Thanks.
    Edward

    Uncar the SCA with sapcar, then add the necessary folders and files and use sapcar again to create a new SCA.
    Edited by: Pascal Willemsen on Feb 2, 2010 9:18 AM

  • Migration: sqlserver 2000 to oracle - delete cascade [resolved - tank you]

    hi
    no problems on migration... but...
    in the new oracle database, all foreign keys have the "cascade delete" as default...
    but i don't want this default (a stupid human error may be ruinous...)
    can somebody explain me how change this default in a "exception thrown"?
    maybe with an authomatic sql order????
    tank you a lot...
    Giovanni D.
    Message was edited by:
    user535473

    Hi Giovanni,
    Tools> Options> General
    Create Foreign Keys with "ON DELETE CASCADE" option
    Just untick the box and remap from the source to the oracle model.
    Hope this helps
    Dermot.

  • When migrating SQLServer database to Oracle9i

    After capturing the SQLServer database into the Oracle Migration Work Bench repository (omwb) I have migrated the SQLServer sourccode to the Oracle Model (also in the
    omwb repository). But...
    when migrating SQLServer sourcecode to Oracle9i database some of the triggers are not migrated into the Oracle Model: triggers like :
    ----------->
    create trigger dbo.tr_nev_del_audittable
    on event_spare_memofield
    instead of delete
    as
    begin
    <-----------
    are not migrated.
    Can someone tell me why?
    I am only getting the message:
    Error occured on line 9:
    oracle.mtg.sqlserver2k.parser.ParseException: Parse error at line 9, column 10. Encountered: of

    You can rewrite the trigger as a BEFORE (OR AFTER) DELETE trigger on the appropriae table event_spare_memofield/audittable ? Most likely it will be a row-level (FOR EACH ROW) type trigger.
    The instead of type triggers is reserved primarily for views.

  • How to migrate sqlserver procedure to oracle8i procedure?

    In my pb7 & sqlserver application , I hava a procedure result set as datawindow source:
    create procedure proc_rpt()
    as
    begin
    create table #temp_rpt(
    col1 char(10) null,
    col2 char(10) null)
    insert into #temp_rpt
    select * from fact_table1
    insert into #temp_rpt
    select * from fact_table2
    select * from #temp_rpt
    end ;
    It is to say : I want to create a temporary table in procedure and insert rows from other table or update the temp table rows. at last, I will return the result set, so I can use it to create a powerbuilder datawindow . How to do it with oracle8i pl/sql and procedure ?

    Now I have a sqlserver sql script, it is too long ,but it is very easy :
    create procedure proc_rpt_year_fee_plan_sum(
    @ai_year integer, /*year*/
    @as_fee_unit char(10)) /**/
    as
    begin
    declare @ldec_fee_unit decimal(8,2)
    if @as_fee_unit = "10000"
    select @ldec_fee_unit = 10000.00
    else
    select @ldec_fee_unit = 1.00
    create table #rpt_sum(
    unit_no varchar(20) null,
    unit_name varchar(40) null,
    fee_all decimal(12,2) null,
    hys_milesum decimal(10,2) null,
    hys_mile1 decimal(10,2) null,
    hys_mile2 decimal(10,2) null,
    hys_srfee decimal(12,2) null,
    hym_markqtysum integer null,
    hym_markqty2 integer null,
    hym_markqty1 integer null,
    hym_markfee decimal(12,2) null,
    hyb_sbqty integer null,
    hyb_sbfee decimal(12,2) null,
    hyt_btqty integer null,
    hyt_btfee decimal(12,2) null,
    fee_unit char(10) null)
    /*1.select unit rows*/
    insert #rpt_sum(unit_no)
    select hys_no_hut from hys_srfeeplan where hys_year = @ai_year
    union
    select hym_no_hut from hym_markfeeplan where hym_year = @ai_year
    union
    select distinct(hyb_no_hut) from hyb_strobefeeplan where hyb_year = @ai_year
    union
    select hyb_no_hut from hyb_boatfeeplan where hyb_year = @ai_year
    update #rpt_sum
    set #rpt_sum.unit_name = b.hut_name
    from #rpt_sum a, hut_unit b
    where a.unit_no = b.hut_no
    /*1.select unit rows*/
    /*2.begin*/
    update #rpt_sum
    set #rpt_sum.hys_mile1 = hys_srfeeplan.hys_mile1,
    #rpt_sum.hys_mile2 = hys_srfeeplan.hys_mile2,
    #rpt_sum.hys_srfee = hys_srfeeplan.hys_feesum
    from #rpt_sum,hys_srfeeplan
    where #rpt_sum.unit_no = hys_srfeeplan.hys_no_hut and
    hys_srfeeplan.hys_year = @ai_year
    /*2.end*/
    /*3.begin*/
    update #rpt_sum
    set #rpt_sum.hym_markqty2 = hym_markfeeplan.hym_maintmark2,
    #rpt_sum.hym_markqty1 = hym_markfeeplan.hym_maintmark1,
    #rpt_sum.hym_markfee = hym_markfeeplan.hym_feesum
    from #rpt_sum,hym_markfeeplan
    where #rpt_sum.unit_no = hym_markfeeplan.hym_no_hut and
    hym_markfeeplan.hym_year = @ai_year
    /*3.end*/
    /*4.begin*/
    update #rpt_sum
    set #rpt_sum.hyb_sbqty = (select sum(isnull(b.hyb_strobeqty,0)) from hyb_strobefeeplan b where a.unit_no = b.hyb_no_hut and b.hyb_year = @ai_year),
    #rpt_sum.hyb_sbfee = (select sum(isnull(b.hyb_feesum,0)) from hyb_strobefeeplan b where a.unit_no = b.hyb_no_hut and b.hyb_year = @ai_year)
    from #rpt_sum a, hyb_strobefeeplan b
    where a.unit_no = b.hyb_no_hut and
    b.hyb_year = @ai_year
    /*4.end*/
    /*5.begin*/
    update #rpt_sum
    set #rpt_sum.hyt_btqty = b.hyb_boatqty,
    #rpt_sum.hyt_btfee = b.hyb_feesum
    from #rpt_sum a, hyb_boatfeeplan b
    where a.unit_no = b.hyb_no_hut and
    b.hyb_year = @ai_year
    /*5.end*/
    update #rpt_sum
    set fee_all = isnull(hys_srfee,0) + isnull(hym_markfee,0) + isnull(hyb_sbfee,0) + isnull(hyt_btfee,0),
    hys_milesum = isnull(hys_mile1,0) + isnull(hys_mile2,0),
    hym_markqtysum = isnull(hym_markqty1,0) + isnull(hym_markqty2,0)
    update #rpt_sum
    set fee_all = round(fee_all/@ldec_fee_unit,2),
    hys_srfee = round(hys_srfee/@ldec_fee_unit,2),
    hym_markfee = round(hym_markfee/@ldec_fee_unit,2),
    hyb_sbfee = round(hyb_sbfee/@ldec_fee_unit,2),
    hyt_btfee = round(hyt_btfee/@ldec_fee_unit,2),
    fee_unit = @as_fee_unit
    select * from #rpt_sum order by unit_no asc
    end;
    I hve more scripts .but I had to change my dbms to oracle8i , the proplem .......

  • Migration SQLserver 7.0 to Oracle8

    What are the equivalent instruction
    @@DATEFIRST (SQLserver7.0) in Oracle 8?
    null

    SHAM ARORA (guest) wrote:
    : Donal,
    : Could you guide me as to all the literature / books /
    : case studies / tool kits available for migration from
    : Oracle 7.1.6 to Oracle 8i.
    : Would appreciate a response asap.
    : Regards.
    : Sham
    : Donal Daly (guest) wrote:
    : : reddy (guest) wrote:
    : : : Hi,
    : : : We want to migrate the data of oracle7.0 to oracle 7.3. We
    : : : started thinking to do with exp/imp and sqlloader. can you
    : help
    : : : me how to start the process and where to start.
    : : : thanks
    : : : reddy.
    : : Checkout our Oracle documentation for 7.3, There is a whole
    : guide
    : : which explains the various options to upgrade from 7.0 to 7.3
    : : But why go to 7.3, you should really go to 8i (8.1.5)
    instead.
    : : Donal
    Hi,
    We exactly have the same problem, I hope we'll find the solution
    working together.
    What we did was first de-install Oracle V7.0 version under V7.0
    After that we installed V7.3.4, then migrated the data with the
    migration utility provided with.To execute applications developed
    with Forms 3 we re-installed it.
    Everything seems to work except the Triggers and the Relink
    action, a similar problem occured during the installation of the
    old tools (Error in Action Relink SQL* Executables, command was
    make -f)
    The operating system is AIX Version 4.3.1. We intend to go to 8i
    but for financial reasons, we first want to be year 2000
    compliant. You know migrating to 8i also involve the replacement
    of all our passive terminals with PCs.
    Regards
    null

  • Migrating SQLServer uniqueidentifier data type

    I am trying to migrate data from a SQLServer database to Oracle8i using the Migration Workbench. I am having trouble with GUID columns which are of "uniqueidentifier" datatype. The data in these columns is converting to basically a sequence number in Oracle. Is there a way to preserve the data in columns of this datatype?

    The reason this happens is that we have no way of generating new 'uniqueidentifier' values once the migration to Oracle is complete. These values are unique to SQL Server. The solution we implemented tries to replicate this behaviour.

  • Facing problem in migration of StoO_error,StoO_sqlstatus,StoO_fetchstatus

    Hi,
    Migration Workbench convert the sqlserver code but i am facing problems with StoO_error,StoO_sqlstatus,StoO_fetchstatus.
    Please clarify me how to handle this in ORACLE
    I need to know the equivalent Oracle code for the Sql Server code.
    DELETE FROM User_Rights_Access
              WHERE User_ID = p_User_Id;
         IF LEN(p_SelectedRights) > 0 THEN
         BEGIN
              NULL;/*DECLARE CURSOR userselectedrights_cursor */
                   OPEN userselectedrights_cursor;
                   FETCH userselectedrights_cursor INTO
              t_SelectedRightsID;
              IF userselectedrights_cursor%NOTFOUND THEN
                   StoO_sqlstatus := 2;
                   StoO_fetchstatus := -1;
              ELSE
                   StoO_sqlstatus := 0;
                   StoO_fetchstatus := 0;
              END IF;
              <<i_loop1>>
              WHILE StoO_fetchstatus = 0 LOOP
              BEGIN
                   INSERT INTO sa.User_Rights_Access (User_ID, Rights_Id, del_flag)
                        VALUES (p_User_Id,                     t_SelectedRightsID,                                         0);
                        FETCH userselectedrights_cursor INTO
                   t_SelectedRightsID;
                   IF userselectedrights_cursor%NOTFOUND THEN
                        StoO_sqlstatus := 2;
                        StoO_fetchstatus := -1;
                   ELSE
                        StoO_sqlstatus := 0;
                        StoO_fetchstatus := 0;
                   END IF;
              END;
              END LOOP;
                   CLOSE userselectedrights_cursor;
              NULL;
         END;

    Anu,
    I think the declaration of these variable is left out by default as most short procedures do not need them.
    Check out the 'Generate Maximal PL/SQL' stored procedure option, which is detailed in the stored procedure option help page. This option can be applied per procedure.
    Thank you for your time,
    Turloch
    Oracle Migration Workbench Team

  • WHEN MIGRATING SQLSERVER REPOSITORY TO ORACLE MODEL USING OraMigWrkBnch

    I have captured the the SQLServer database to the omwb repository and migrated it to the Oracle Model. Some of the views,
    triggers and stored procedures are not migrated and the followind messages are provided.
    Has somebody done this before and got the same messages?, does someone know how to solve this problem(s)?, is there a
    standard way?
    Please help, anyone.
    VIEW
    [1] Error occured on line 1:oracle.mtg.sqlserver2k.parser.ParseException: Parse error at line 1, column 106. Encountered:
    from
    TRIGGERS
    [2] Error occured on line 9:oracle.mtg.sqlserver2k.parser.ParseException: Parse error at line 9, column 10. Encountered: of
    [3] Error occured on line 17:oracle.mtg.sqlserver2k.parser.ParseException: Parse error at line 17, column 3. Encountered:
    update
    [4] Error occured on line 183:oracle.mtg.sqlserver2k.parser.ParseException: Parse error at line 183, column 5. Encountered:
    cross
    [5] Error occured on line 7:oracle.mtg.sqlserver2k.parser.ParseException: Parse error at line 7, column 1. Encountered:
    create
    STORED PROCEDURES
    [6] Error occured on line 26:oracle.mtg.sqlserver2k.parser.ParseException: Parse error at line 26, column 5. Encountered:
    update
    [7] Error occured on line 163:oracle.mtg.sqlserver2k.parser.ParseException: Parse error at line 163, column 17. Encountered:
    where
    [8] Error occured on line 66:oracle.mtg.sqlserver2k.parser.ParseException: Parse error at line 66, column 47. Encountered:
    @ac_any_type_code
    [9] Error occured on line 69:oracle.mtg.sqlserver2k.parser.ParseException: Parse error at line 69, column 28. Encountered: =
    [10] Error occured on line 70:oracle.mtg.sqlserver2k.parser.ParseException: Parse error at line 70, column 7. Encountered: (
    [11] Error occured on line 9:oracle.mtg.sqlserver2k.parser.ParseException: Parse error at line 9, column 1. Encountered:
    [12] Error occured on line 64:oracle.mtg.sqlserver2k.parser.ParseException: Parse error at line 64, column 5. Encountered:
    delete
    [13] Error occured on line 60:oracle.mtg.sqlserver2k.parser.ParseException: Parse error at line 60, column 35. Encountered:
    as
    [14] Error occured on line 1:oracle.mtg.sqlserver2k.parser.ParseException: Parse error at line 1, column 55. Encountered:
    create
    [15] Error occured on line 65:oracle.mtg.sqlserver2k.parser.ParseException: Parse error at line 65, column 7. Encountered:
    from
    [16] Error occured on line 56:oracle.mtg.sqlserver2k.parser.ParseException: Parse error at line 56, column 51. Encountered: +
    [17] Error occured on line 112:oracle.mtg.sqlserver2k.parser.ParseException: Parse error at line 112, column 1. Encountered:
    null
    [18] Error occured on line 27:oracle.mtg.sqlserver2k.parser.ParseException: Parse error at line 27, column 3. Encountered:
    select
    [19] Error occured on line 74:oracle.mtg.sqlserver2k.parser.ParseException: Parse error at line 74, column 10. Encountered:
    and
    [20] Error occured on line 19:oracle.mtg.sqlserver2k.parser.ParseException: Parse error at line 19, column 6. Encountered: ,
    [21] Error occured on line 194:oracle.mtg.sqlserver2k.parser.ParseException: Parse error at line 194, column 10. Encountered:
    exists
    [22] Error occured on line 269:oracle.mtg.sqlserver2k.parser.ParseException: Parse error at line 269, column 9. Encountered:
    declare
    [23] Error occured on line 49:oracle.mtg.sqlserver2k.parser.ParseException: Parse error at line 49, column 7. Encountered:
    order
    [24] Error occured on line 244:oracle.mtg.sqlserver2k.parser.ParseException: Parse error at line 244, column 41. Encountered:
    rtrim

    The following trigger created:
    CREATE OR REPLACE TRIGGER tr_prs16_ins
    AFTER INSERT
    ON progress_state_16
    FOR EACH ROW
    DECLARE
    /* COMMENT */
    BEGIN
         BEGIN
                   INSERT INTO logtable
                        SELECT :NEW.code, sf_language.code,
    RPAD(CASE WHEN fg1.id IS null THEN '' ELSE RTRIM(fg1.id) END ||
    CASE WHEN pg1.id IS null THEN '' ELSE ': ' || RTRIM(pg1.id) END ||
    CASE WHEN fg2.id IS null THEN '' ELSE ', ' || RTRIM(fg2.id) END ||
    CASE WHEN pg2.id IS null THEN '' ELSE ': ' || RTRIM(pg2.id) END ||
    CASE WHEN fg3.id IS null THEN '' ELSE ', ' || RTRIM(fg3.id) END ||
    CASE WHEN pg3.id IS null THEN '' ELSE ': ' || RTRIM(pg3.id) END ||
    CASE WHEN fg4.id IS null THEN '' ELSE ', ' || RTRIM(fg4.id) END ||
    CASE WHEN pg4.id IS null THEN '' ELSE ': ' || RTRIM(pg4.id) END ||
    CASE WHEN fg5.id IS null THEN '' ELSE ', ' || RTRIM(fg5.id) END ||
    CASE WHEN pg5.id IS null THEN '' ELSE ': ' || RTRIM(pg5.id) END ||
    CASE WHEN fg6.id IS null THEN '' ELSE ', ' || RTRIM(fg6.id) END ||
    CASE WHEN pg6.id IS null THEN '' ELSE ': ' || RTRIM(pg6.id) END ||
    CASE WHEN fg7.id IS null THEN '' ELSE ', ' || RTRIM(fg7.id) END ||
    CASE WHEN pg7.id IS null THEN '' ELSE ': ' || RTRIM(pg7.id) END ||
    CASE WHEN fg8.id IS null THEN '' ELSE ', ' || RTRIM(fg8.id) END ||
    CASE WHEN pg8.id IS null THEN '' ELSE ': ' || RTRIM(pg8.id) END ||
    CASE WHEN fg9.id IS null THEN '' ELSE ', ' || RTRIM(fg9.id) END ||
    CASE WHEN pg9.id IS null THEN '' ELSE ': ' || RTRIM(pg9.id) END ||
    CASE WHEN fg10.id IS null THEN '' ELSE ', ' || RTRIM(fg10.id) END ||
    CASE WHEN pg10.id IS null THEN '' ELSE ': ' || RTRIM(pg10.id) END ||
    CASE WHEN fg11.id IS null THEN '' ELSE ', ' || RTRIM(fg11.id) END ||
    CASE WHEN pg11.id IS null THEN '' ELSE ': ' || RTRIM(pg11.id) END ||
    CASE WHEN fg12.id IS null THEN '' ELSE ', ' || RTRIM(fg12.id) END ||
    CASE WHEN pg12.id IS null THEN '' ELSE ': ' || RTRIM(pg12.id) END ||
    CASE WHEN fg13.id IS null THEN '' ELSE ', ' || RTRIM(fg13.id) END ||
    CASE WHEN pg13.id IS null THEN '' ELSE ': ' || RTRIM(pg13.id) END ||
    CASE WHEN fg14.id IS null THEN '' ELSE ', ' || RTRIM(fg14.id) END ||
    CASE WHEN pg14.id IS null THEN '' ELSE ': ' || RTRIM(pg14.id) END ||
    CASE WHEN fg15.id IS null THEN '' ELSE ', ' || RTRIM(fg15.id) END ||
    CASE WHEN pg15.id IS null THEN '' ELSE ': ' || RTRIM(pg15.id) END ||
    CASE WHEN fg16.id IS null THEN '' ELSE ', ' || RTRIM(fg16.id) END ||
    CASE WHEN pg16.id IS null THEN '' ELSE ': ' || RTRIM(pg16.id) END
    , 255, ' ')
    from dual
    left outer join function_group fg1 on fg1.code = :new.function_group_1_code
    left outer join function_group fg2 on fg2.code = :new.function_group_2_code
    left outer join function_group fg3 on fg3.code = :new.function_group_3_code
    left outer join function_group fg4 on fg4.code = :new.function_group_4_code
    left outer join function_group fg5 on fg5.code = :new.function_group_5_code
    left outer join function_group fg6 on fg6.code = :new.function_group_6_code
    left outer join function_group fg7 on fg7.code = :new.function_group_7_code
    left outer join function_group fg8 on fg8.code = :new.function_group_8_code
    left outer join function_group fg9 on fg9.code = :new.function_group_9_code
    left outer join function_group fg10 on fg10.code = :new.function_group_10_code
    left outer join function_group fg11 on fg11.code = :new.function_group_11_code
    left outer join function_group fg12 on fg12.code = :new.function_group_12_code
    left outer join function_group fg13 on fg13.code = :new.function_group_13_code
    left outer join function_group fg14 on fg14.code = :new.function_group_14_code
    left outer join function_group fg15 on fg15.code = :new.function_group_15_code
    left outer join function_group fg16 on fg16.code = :new.function_group_16_code
    left outer join progress pg1 on pg1.code = :new.progress_1_code
    left outer join progress pg2 on pg2.code = :new.progress_2_code
    left outer join progress pg3 on pg3.code = :new.progress_3_code
    left outer join progress pg4 on pg4.code = :new.progress_4_code
    left outer join progress pg5 on pg5.code = :new.progress_5_code
    left outer join progress pg6 on pg6.code = :new.progress_6_code
    left outer join progress pg7 on pg7.code = :new.progress_7_code
    left outer join progress pg8 on pg8.code = :new.progress_8_code
    left outer join progress pg9 on pg9.code = :new.progress_9_code
    left outer join progress pg10 on pg10.code = :new.progress_10_code
    left outer join progress pg11 on pg11.code = :new.progress_11_code
    left outer join progress pg12 on pg12.code = :new.progress_12_code
    left outer join progress pg13 on pg13.code = :new.progress_13_code
    left outer join progress pg14 on pg14.code = :new.progress_14_code
    left outer join progress pg15 on pg15.code = :new.progress_15_code
    left outer join progress pg16 on pg16.code = :new.progress_16_code
    cross join sf_language
         END;
    END TEST_IF;
    given the following tables exist:
    create table logtable(newcode varchar2(10),
    sfcode varchar2(10),
    other varchar2(10)
    create table sf_language(code varchar2(10),
    id varchar2(10));
    create table progress(code varchar2(10),
    id varchar2(10));
    create table function_group(code varchar2(10),
    id varchar2(10));
    create table progress_state_16 (code varchar2(10),
    function_group_1_code varchar2(10),
    function_group_2_code varchar2(10),
    function_group_3_code varchar2(10),
    function_group_4_code varchar2(10),
    function_group_5_code varchar2(10),
    function_group_6_code varchar2(10),
    function_group_7_code varchar2(10),
    function_group_8_code varchar2(10),
    function_group_9_code varchar2(10),
    function_group_10_code varchar2(10),
    function_group_11_code varchar2(10),
    function_group_12_code varchar2(10),
    function_group_13_code varchar2(10),
    function_group_14_code varchar2(10),
    function_group_15_code varchar2(10),
    function_group_16_code varchar2(10),
    progress_1_code varchar2(10),
    progress_2_code varchar2(10),
    progress_3_code varchar2(10),
    progress_4_code varchar2(10),
    progress_5_code varchar2(10),
    progress_6_code varchar2(10),
    progress_7_code varchar2(10),
    progress_8_code varchar2(10),
    progress_9_code varchar2(10),
    progress_10_code varchar2(10),
    progress_11_code varchar2(10),
    progress_12_code varchar2(10),
    progress_13_code varchar2(10),
    progress_14_code varchar2(10),
    progress_15_code varchar2(10),
    progress_16_code varchar2(10))
    SQL> insert into progress_state_16 values ('1','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1');
    1 row created.
    SQL> select * from logtable;
    no rows selected
    SQL>
    The data to make the select produce a result was not added. I hope your database difficulties are resolved. I hope the fact that the trigger builds gives you more confidence.
    Regards,
    Turloch
    Oracle Migration Workbench Team

  • Application has problems when migrated from 10g to 11g

    Hi there,
    I am hoping someone can shed some light on a problem I have in moving an application from Oracle 10g to Oracle 11g. The app works fine on 10g (uses Apache webserver with PL/SQL module, and APEX 3.1.2.00.2), but on 11g using the embedded web server and APEX 3.2.0.00.27, it doesnt. Most of the app works fine, but there are a couple of pages that provide the ability to add child rows to a parent/child relationship, where the parameter passing mechanism from one page to the next appears to suffer from some sort of corruption. I have traced this using the "session" and "debug" buttons on the developer interface, which show that the values of the parameters get changed inexplicably, when branching from one page to the next - even when the page is actually branching to itself.
    I am using the "Set these items, "With these values" fields in the branch, and have verified that the correct values are being associated with the correct items in the application builder. But while this does work correctly under 10g, with 11g, the wrong values end up being passed. Just prior to the branch the set of parameters have the correct values, but immediately after the branch, one of the values is NULL, another has the value of a different item, and a third has a totally random value - I have no idea were it comes from!
    I migrated the application from 10g to 11g using the APEX application developer's Export/Import options. There have been no other changes. Should this have worked? If so, any ideas what might have gone wrong?
    Thanks,
    Sid.

    Well, I managed to solve this, but not in a way that makes much sense.
    In desperation (I had tried almost everything else!) I changed the value of "Cached" in the page settings from "No" to "Yes", and ran the app, but the page didnt render correctly (in either Firefox or IE7) - in fact all that displayed was the developers toolbar at the bottom of the page. I changed the value of "Cached" back to "Y", ran the app again, and hey presto - everything worked fine! I actually did this a second time with a fresh import of the app from 10g, just to be sure I wasnt seeing things. I wasnt!
    There was just one further issue - everything worked fine apart from this section of code in a page process:-
    ELSIF (:p9_filter_type = 5) THEN
    IF (:p9_x_gene_list IS NOT NULL) THEN
    :p9_filter := :p9_x_gene_list;
    END IF;
    :p9_entity_types := 'GENE';
    END IF;
    In 11g the value of :p9_entity_types was not being set to 'GENE' when :p9_filter_type was 5. This was (and still is) working in 10g. I changed the code as follows:-
    ELSIF (:p9_filter_type = 5) THEN
    :p9_entity_types := 'GENE';
    IF (:p9_x_gene_list IS NOT NULL) THEN
    :p9_filter := :p9_x_gene_list;
    END IF;
    END IF;
    ... and now it works fine in 11g as well.
    Only wish I knew why!

  • Problem with Migration Forms to Apex ...

    Hello !!
    I discovered Apex a few days ago, so I began with the Oracle tutorials, where I found the conversion from Forms to Apex : "Converting Your Oracle Forms Applications to Application Express 3.2".
    I tried to do the same, with a Unix server and my laptop with Windows.
    I downloaded the Forms which where on my Unix server on my laptop, and then converted them with frmf2xml.bat.
    Then I created a project and uploaded only one Forms Module (_fmb.XML). After upload, the Percent Complete column is lower than 100%.
    My problem is at the following step : "Generating Your Application Express Application".
    When I click on "Create Application", select "Based on Migration Project" and then on "Next", I have one of the following errors :
    - 1 error has occurred * The project, "Test Gestuser" does not contain any Blocks associated with database objects.
    - 1 error has occurred * Database schema PROCIE does not contain the associated database objects for the project, login. Ensure the database schema associated with the project contains the database objects associated with the uploaded Forms Module .XML file(s)
    I really don't understand these two errors, having yet checked all the possible error sources, user, schema, ... ?:|
    I have probably forgotten to give some informations, so ask them ;)
    Thanks for your help,
    Pierre C.
    Edited by: Pierre C. on 19 juin 2009 17:22

    I found the problem(s) ... but now I have another one !!
    The problems are with the Forms : I opened them with Forms Builder and created a new Block with the assistant. Then I compared this block with another "normal" block : they haven't the same properties.
    My block has an associated canvas and database source, whereas the other "normal" blocks haven't.
    Where does the error come from ??
    Is there something to do with Forms Builder ?
    On my Unix server before downloading the forms ?
    Another thing to do ??
    Thanks,
    Pierre C.

  • I am having problems with migration assistant (windows pc to Mac 2011) When I get to the 'Quit other applications' box and click continue, nothing happens. There are no other apps running - any ideas, please?

    I am having probems with migration assistant. Trying to transfer data from a windows laptop to iMac 2011. It was working fine when I did the set-up yesterday, but it was going to take hours to transfer some videos so I quit the process with the intention of doing it again at a later stage. However today I find that everytime I get to the 'Quit other applications' box on the Mac and click 'continue', nothing happens. Have checked mission control and confirmed no other apps running. Tried several times with the same result every time. Migration Assistant running on my laptop with the 'Waiting for mac to connect' box displayed. Mac is connected to wi-fi OK as able to use Safari and access internet. Any ideas, please?

    Thanks for your suggestions. Have managed to get Migration Assistant working but now have a new problem, i.e. where does it save the transferred files?!! Searched a few forums and it seems it saves it under your old username, or suchlike. Anyway I tried logging on as a new user using my old user name but there were only a handful of files there, couldn't locate the majority of stuff from my old laptop. Anyway I don't intend to go through any more hoops with MA - will just save the important stuff to an external drive and transfer it that way. Not impressed with MA at all. I thought it was supposed to be a user-friendly tool to simplify the transfer from pc to Mac - not my experience, I'm afraid!

Maybe you are looking for