Sybase 15 Oracle Migration Error

I worked on our database from Sybase ASE 15 migration to Oracle. I followed all the instructions on the site Web of Oracle using the Migration SQL Developer tool. Once the migration starts, I get this error for any reason that I could not understand. Here's the XML file for my mistake.

<?xml version="1.0" encoding="windows-1252" standalone="no"?>
<log>
<record>
  <date>2014-07-31T12:26:27</date>
  <logger>oracle.dbtools.migration.workbench.core.MigrationLogResourceBundle</logger>
  <level>SEVERE</level>
  <class>oracle.dbtools.migration.workbench.core.logging.MigrationLogUtil</class>
  <message>Capture
Enterprise Capture
Capture failed.  Refer to MIGRLOG table in the repository for details</message>
  <param>oracle.dbtools.migration.workbench.core.ui.FullMigrateTask.doOnlineEnterpriseCapture(FullMigrateTask.java:758)</param>
  <param>oracle.dbtools.migration.workbench.core.ui.FullMigrateTask.doCapture(FullMigrateTask.java:601)</param>
  <param>oracle.dbtools.migration.workbench.core.ui.FullMigrateTask.doMaskBasedActions(FullMigrateTask.java:400)</param>
  <param>oracle.dbtools.migration.workbench.core.ui.FullMigrateTask.doWork(FullMigrateTask.java:314)</param>
  <param>oracle.dbtools.migration.workbench.core.ui.FullMigrateTask.doWork(FullMigrateTask.java:147)</param>
  <param>oracle.dbtools.raptor.backgroundTask.RaptorTask.call(RaptorTask.java:193)</param>
  <param>java.util.concurrent.FutureTask.run(FutureTask.java:262)</param>
  <param>oracle.dbtools.raptor.backgroundTask.RaptorTaskManager$RaptorFutureTask.run(RaptorTaskManager.java:554)</param>
  <param>java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)</param>
  <param>java.util.concurrent.FutureTask.run(FutureTask.java:262)</param>
  <param>java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)</param>
  <param>java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)</param>
  <param>java.lang.Thread.run(Thread.java:745)</param>
  <param>oracle.dbtools.migration.workbench.core.logging.LogInfo@caaa1c7</param>
  <exception>
    <message>oracle.dbtools.migration.workbench.core.ui.FullMigrateTask$FullMigrateTaskException: Capture
Enterprise Capture
Capture failed.  Refer to MIGRLOG table in the repository for details</message>
    <frame>
      <class>oracle.dbtools.migration.workbench.core.ui.FullMigrateTask</class>
      <line>758</line>
    </frame>
    <frame>
      <class>oracle.dbtools.migration.workbench.core.ui.FullMigrateTask</class>
      <line>601</line>
    </frame>
    <frame>
      <class>oracle.dbtools.migration.workbench.core.ui.FullMigrateTask</class>
      <line>400</line>
    </frame>
    <frame>
      <class>oracle.dbtools.migration.workbench.core.ui.FullMigrateTask</class>
      <line>314</line>
    </frame>
    <frame>
      <class>oracle.dbtools.migration.workbench.core.ui.FullMigrateTask</class>
      <line>147</line>
    </frame>
    <frame>
      <class>oracle.dbtools.raptor.backgroundTask.RaptorTask</class>
      <line>193</line>
    </frame>
    <frame>
      <class>java.util.concurrent.FutureTask</class>
      <line>262</line>
    </frame>
    <frame>
      <class>oracle.dbtools.raptor.backgroundTask.RaptorTaskManager$RaptorFutureTask</class>
      <line>554</line>
    </frame>
    <frame>
      <class>java.util.concurrent.Executors$RunnableAdapter</class>
      <line>471</line>
    </frame>
    <frame>
      <class>java.util.concurrent.FutureTask</class>
      <line>262</line>
    </frame>
    <frame>
      <class>java.util.concurrent.ThreadPoolExecutor</class>
      <line>1145</line>
    </frame>
    <frame>
      <class>java.util.concurrent.ThreadPoolExecutor$Worker</class>
      <line>615</line>
    </frame>
    <frame>
      <class>java.lang.Thread</class>
      <line>745</line>
    </frame>
  </exception>


</record>
<record>
  <date>2014-07-31T12:26:27</date>
  <logger>oracle.dbtools.migration.workbench.core.MigrationLogResourceBundle</logger>
  <level>WARNING</level>
  <class>oracle.dbtools.migration.workbench.core.ui.FullMigrateTask</class>
  <message>Error:ORA-06550: line 1, column 14:
PLS-00201: identifier 'SYB12ALLPLATFORM.STAGECAPTURE' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
: FAILED : Database Migration : FAILED</message>
  <param>oracle.dbtools.migration.workbench.core.logging.LogInfo@434de9ab</param>


</record>
</log>

Hello

My guess is the user you tried to install/partner to the migration repository done don't have the appropriate privileges.

Best to start over if we can enter the question.

Start by creating a new user in Oracle for the migration repository. Give the correct privileges

> Connect to SYS or SYSTEM and run the following commands

Migrep CREATE a USER identified by migrep;

GRANT connect, resources, create view, create a view on migrep;

ALTER USER migrep unlimited quota on USERS;

Now using SQL Developer, create a connection to the MIGREP and associate the migration repository in this regard.

Check if migration Repository packages have been created and are compiled valid. Worth the package bodies are valid as well.

I hope it was just a privilege you were missing.

Kind regards

Dermot.

SQL development team.

Tags: Database

Similar Questions

  • Sybase to Oracle Migration

    Hello

    all documents or information on this topic:

    Sybase to Oracle Migration

    would be appreciated.

    Thank you.

    Hello

    SQL Develoiper should be your choice.

    http://www.Oracle.com/technetwork/database/migration/Sybase-085571.html

    Salman

  • Sybase to the Migration of Oracle: issues of assignment of object names

    I'm migrating Sybase to Oracle databases. By default, the name of the schema that results is < owner > _ < dbname > (dbo_SALES). To change this, I'm following the example to migrate objects in an existing user, as described here: http://dermotoneill.blogspot.com/2012/03/migrate-to-existing-oracle-users.html

    The name of object change "DATABASE.dbo" to "DATABASE" - and it seems to work very well. The problem I have is that there are many references to the DATABASE... OBJECT that do not include "dbo", the owner of the object. These references seem to be replaced by dbo_DATABASE. Object.

    Is there a way I can add another rule to the object name to catch these references? I am OK the migration offline, but I'd like to avoid performing a find/replace massive.

    Other ideas would be appreciated!
    Kevin

    Hey Kevin,

    I played a bit with a few examples and I was able to reproduce your problem with dbo... conversion of object name.
    Looks like we are trying to guess the name of the target that we did not seize the owners of default database. Speculation works well, unless you specify the name of the target, as in your case.
    Using SQL Developer 3.2.2 there is no solution except the search and replace dbo_databasename in the build script, as you suggest.
    Sick, working on a better solution for the next release, if Developer SQL will guess 'dbo' as the user, then it may as well find the name of the specified target of the dbo instead to assume the default value of naming conversion.
    Thanks for the comments,

    Kind regards
    Dermot.
    SQL development team.

  • Oracle Migration Workbench error

    I am migrating and to access the Oracle (version 10.2.0.3) with Oracle Migration Workbench 2000 database.
    Migration Workbench generated the file < AccessDB_Name > .sql.
    When I run the file on the Oracle database under the pre-created Oracle account I get the following error:


    SQL > show user
    The USER is 'SCO_RECCLUB '.
    SQL > SQL REM This script was generated by the Oracle Migration Workbench
    SQL > REM exporter for Microsoft Access on 2008-10-22 10:27:03
    SQL > REM release: 10.2.0.2.0
    SQL > REM Version: Microsoft Access 2000
    SQL > REM not change this file as any changes will invalidate the export
    SQL > REM and later migration of your Microsoft Access database
    SQL >
    SQL > set define off
    SQL > set verify off
    SQL > set serveroutput size 1000000
    SQL > set off comments
    SQL > WHEN SQLERROR EXIT SQL. SQLCODE ROLLBACK
    SQL >
    SQL > start
    2
    WWV_MIG_ACC_LOAD 3. () INS_WWV_MIG_ACCESS
    p_dbid 4 = > 1,
    5 p_dbname = > "rclub_be"
    "6 p_dbsize = > ' 2338 KB."
    7 p_dbpathname = > 'C:\Rec C DB\rclub_be.mdb.
    8 p_dbuser = > "rclub_be"
    9 p_dbpassword = > ' ',
    10 p_isappdb = > 1,
    11 p_isattacheddb = > 0,
    p_convertdb 12 = > 1,
    p_jetversion 13 = > 4.0,
    14 p_accessversion = > 'MS Access 2000',
    15 p_build = > 211,
    p_collatingorder 16 = > 1033,
    p_querytimeout 17 = > 60,
    p_startupform 18 = > NULL,
    19 p_startupshowstatusbar = 0 >
    (20);
    21
    22 end;
    23.
    Start
    *
    ERROR on line 1:
    ORA-02291: integrity (FLOWS_030100.WWV_MIG_ACC_FK) violated constraint - found parent key
    ORA-06512: at "FLOWS_030100.WWV_MIG_ACC_LOAD", line 120
    ORA-06512: at line 3 level


    Disconnected from the database to Oracle 10 g Enterprise Edition Release 10.2.0.3.0 - 64 bit Production
    With partitioning, OLAP and Data Mining options

    I don't know how to proceed with migration or if it is even possible at this stage. Any help or an explanation of the above error message would be very appreciated.

    Thank you for your help

    Paul

    Hi Paul,.

    The file .sql you sponsor, which is generated by the tool export to MS Access, is required for the migration of your Access to Oracle Application Express application. The exporter tool can generate two files:

    * an XML file containing the schema of your database MS Access database information. This file is required by Oracle SQL Developer Migration Workbench to migrate your Access database to Oracle.
    * a SQL script that contains the application for your MS Access application information. This file is used only by the application "Application migration" in Oracle Application Express 3.0 or later versions.

    I would recommend that you do the following:

    1. run the exporter tool again and make sure that you select the option "export for Oracle SQL Developer. This option causes the generation of an XML file, .xml.
    2. run Oracle SQL Developer and create a repository of Migration
    3. with the help of Migration > Capture Microsoft Access exported XML menu option, download the XML file generated in step 1. This will generate a model of capture of the Access database.
    4. create a model of the Oracle, by right-clicking the captured model.
    5 generate the DDL statements to create your migrated schema by right clicking on your template Converted & by selecting the menu option 'generate '. This will result in the generation of a SQL script containing DDL statements that you need to run in order to build your newly migrated schema.
    6. run the SQL script containing your DDL statements, to create your new migrated schema.

    I also recommend to consult the online documentation for [MS Access Migration | http://download.oracle.com/docs/cd/E12151_01/doc.150/e12154/intro_access.htm#BGBIDDGI], in order to better understand the migration process. I hope this helps.

    Kind regards
    Hilary

  • How transform the trailing spaces &amp; AREAS of data from sybase to oracle

    Helllo,

    We are the migration of data from sybase to Oracle using goldengate... Source Sybase with SPACES (single / Multiple) as data to CHAR/VARCHAR that will be migrated to the VARCHAR2 data type in Oracle. I'm having trouble trying to implement under two conditions to transform the data

    1) Remove SPACES during the IPL for CHAR/VARCHAR

    example: Data Source: "TRAILING SPACE.

    Given target expected - remove the spaces of trailinging: "TRAILING SPACE.

    2) If the data with SPACES like a value (single or Multiple) will be loaded as a single SPACE in Oracle.

    example : Source data                                                  :  "          "

    Expected data from target - unique space:

    Map: dbo. Target TEST_TABLE DEV01. Table_test, COLMAP (USEDEFAULTS, CRE_ID = @IF (@STRRTRIM (CRE_ID) = @NULL AND CRE_ID <>@NULL, ' ', @STRRTRIM (CRE_ID)));

    I tried above mapping in the settings file, but it returns error like below, guidance on the highest implementation requirement will be useful.

    ... RIM (CRE_ID) = @NULL AND CRE_ID...

    ^

    Error in the COLMAP clause. Invalid function or argument.

    Under column mapping is worked :-)

    Map: dbo. Target TEST_TABLE DEV01. TABLE_TEST, COLMAP (USEDEFAULTS, CRE_ID = @IF (@STRLEN (@STRTRIM (CRE_ID)) = 0, ' ', @STRRTRIM (CRE_ID)));

  • GROUP BY clause diff in Sybase and Oracle

    Hello

    I am migrating from Sybase to Oracle code and came across a strange problem which is widely known to others :)
    In Sybase, you can use columns or calculations in SELECTION expressions that do not appear
    in the GROUP BY clause from the query. As

    SELECT order.custid, customer.name, MAX (payments)
    -> IN the order, customer
    -> WHERE order.custid = customer.custid
    -> GROUP BY order.custid;
    works fine but for SQL, we must add customer.name to the customer of the GROUP BY clause.

    In the same spirit, here is my SQL query

    INSERT INTO GTT_CTRT_recalc_proc
    (id_fin_rec,
    id_imnt,
    id_instr_opn,
    dt_instr_opn,
    dt_opn,
    dt_cls_loanet,
    dt_prcss,
    am_invst)
    SELECT t1.id_fin_rec,
    T1.id_imnt,
    T1.id_instr_opn,
    T1.dt_instr_opn,
    T1.dt_opn,
    NVL (t1.dt_cls_loanet, l_dt_to),
    T1.dt_prcss,
    Sum (T2.am_invst) + (0.123 * (1 - abs (sign (0 - SUM (t2.am_invst)))))
    OF GTT_CTRT_TEMP_recalc_process t1, GTT_CTRT_TEMP_recalc_process t2
    WHERE t2.id < = t1.id
    AND t2.id_imnt = t1.id_imnt
    AND t2.id_instr_opn = t1.id_instr_opn
    AND t2.dt_instr_opn = t1.dt_instr_opn
    T1.id_imnt GROUP,
    T1.id_instr_opn,
    T1.dt_instr_opn,
    T1.dt_opn,
    T1.dt_cls_loanet,
    T1.dt_prcss;

    Has no t1.id_fin_rec in GROUP BY it fails in SQL.

    I know that if I add this column in GROUP BY, it will work fine, but told me to keep the feature because it is as the result before and after the addition of the column is different, of course.

    If please guide me what we can do in this situation and should work around that?

    Thank you
    Aashish

    Use the PARTITION MORE rtaher than GROUP BY

    INSERT INTO GTT_CTRT_recalc_proc
                (id_fin_rec, id_imnt, id_instr_opn, dt_instr_opn, dt_opn, dt_cls_loanet, dt_prcss, am_invst)
    SELECT t1.id_fin_rec, t1.id_imnt, t1.id_instr_opn, t1.dt_instr_opn, t1.dt_opn, NVL(t1.dt_cls_loanet, l_dt_to),
           t1.dt_prcss,
             SUM(t2.am_invst) OVER(PARTITION BY t1.id_imnt, t1.id_instr_opn, t1.dt_instr_opn, t1.dt_opn, t1.dt_cls_loanet, t1.dt_prcss)
           + (0.123 * (1 - ABS(SIGN(
                          0 - SUM(t2.am_invst) OVER(PARTITION BY t1.id_imnt, t1.id_instr_opn, t1.dt_instr_opn, t1.dt_opn, t1.dt_cls_loanet, t1.dt_prcss)))))
      FROM GTT_CTRT_TEMP_recalc_process t1, GTT_CTRT_TEMP_recalc_process t2
     WHERE t2.ID <= t1.ID
       AND t2.id_imnt = t1.id_imnt
       AND t2.id_instr_opn = t1.id_instr_opn
       AND t2.dt_instr_opn = t1.dt_instr_opn
    
  • Failed to start oracle-ohasd, error: ioctl inappropriate for the ohasd device was able to start to roothas.pl

    Hello

    I am trying to install the Oracle 11.2.0.1 on Oracle Linux 7.0 database 64-bit deployed on VirtualBox. I'll put up a single on making ASM instance database so the grid on a stand-alone server installation. I launched the installer of grid with YES. When I run the script from root

    /U01/app/grid/product/11.2.0/grid/root.sh

    I get the following error:

    Default: no such file or directory for the command/sbin/initctl start oracle-ohasd

    Failed to start oracle-ohasd, error: Inappropriate ioctl for device

    ohasd could not start: ioctl inappropriate for this device, /u01/app/grid/product/11.2.0/grid/crs/install/roothas.pl line 296

    After installing Oracle Linux 7.0 there is no/etc/init and also no/sbin/initctl created automatically under Linux. I don't know if these directories need to be created automatically or not?

    I googled this problem. Most of the solutions is like this:

    """"""""""""""""""""""""""""""""""""""""""""""

    Hello

    Problem is indeed due to the incompatibility of the upstart/init. Here are the average working:

    1) proceed with the installation as usual until root.sh invocation.

    (2) prior to root.sh edition $GRID_HOME/crs/install/s_crsconfig_lib.pm, go to line 1173 (you should find a code like: if ($srv eq 'ohasd') {# OHASD Start).

    (3) insert a following code snippet before starting the game OHASD (line 1173)

    My $UPSTART_OHASD_SERVICE = 'oracle-ohasd. "

    My $INITCTL = "/ sbin/initctl;

    ($status, @output) = system_cmd_capture ("$INITCTL start $UPSTART_OHASD_SERVICE");

    If (0! = $status)

    {

    error ("' cannot start $UPSTART_OHASD_SERVICE, error: $! '");

    return $FAILED;

    }

    (4) create a file /etc/init/oracle-ohasd.conf with the following content inside

    # Start OHASD oracle

    start the runlevel [35]

    Stop the runlevel [. 35]

    respawn

    exec /etc/init.d/init.ohasd run > / dev/null 2 > & 1 </dev/null

    (5) call root.sh

    (6) complete the installation.

    If you have already run root.sh (unsuccessfully), simply roll back:

    $GRID_HOME/crs/install/roothas.pl - deconfig - force - verbose

    Make changes above and continue.

    """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""

    The part above is not the solution!

    How to solve the problem?

    Thank you!!!

    11.2.0.1 is not supported on RHEL7, even on RHEL6, you must install at least 11.2.0.3.

    You can see the matrix certification Oracle Support for Linux look at this document: master Note Linux OS requirements for database server (Doc ID 851598.1)

    Kind regards

    Oscar

  • VCenter DB from SQL 2005 to Oracle Migration

    Hi all

    I am a student if the vCenter DB to SQL 2005 Standard to Oracle migration is possible.

    I already read a lot of documentation and found no clue on that goal.

    Anyone done any? Is it possible and functional?

    Thanks in advance.

    Hello

    There is a thread on the homepage with the same question.

    http://communities.VMware.com/thread/308260?TSTART=0

    So yes it is possible.  But I recommend cool vCenter from a facility.  Either by moving your hosts on manually recreate your pools of files/resources etc, either using a script PowerCLI.  This way you will not end up with a bribery scheme.

  • ERROR: ORACLE prepare error: ORA-00936: lack of expression

    Hello

    I am required to run the 'pass-through' Oracle SQL, to extract data from tables in the SAS for processing and handling. My code (attached) reads and writes (runs) but with zero records to test first. I can't get beyond the error to prepare.

    The request is just like other queries that seem to work, but I can't get past this prepare error. I have no other access to individauls with an adequate knowledge of the PL SQL and as a last stop hoped others in the forum could quickly identify the source of the error.

    Thank you very much in advance for any help.

    Jeff
    _______________________________________

    1; *'; * « ; * / ; Quit; execution risk;
    2 OPTIONS NUMPAGE = MIN;
    3% LET _CLIENTTASKLABEL = % NRBQUOTE (rx_biplr_v3_2);
    4% LET _EGTASKLABEL = % NRBQUOTE (rx_biplr_v3_2);
    5% LET _CLIENTPROJECTNAME = %NRBQUOTE();
    6% LET _SASPROGRAMFILE =;
    7
    8 ODS CLOSE SUBJECT;
    NOTE: Some of your options or statements will not be managed with the Activex or Java Series devices. Chart by default for these
    drivers may be different from other SAS/GRAPH device drivers. For more information, please contact Technical Support.
    9 OPTIONS DEV = ACTIVEX;
    10 EGHTML TEMP FILE NAME;
    NOTE: Writing, body HTML (EGHTML) file: EGHTML
    11 ODS HTML(ID=EGHTML) FILE = EGHTML ENCODING = 'utf - 8' STYLE = EGDefault.
    11. STYLESHEET=(URL="file:///C:/program%20Files/SAS/shared%20Files/BIClientStyles/EGDefault.CSS")
    11. ATTRIBUTES = ("http://www2.sas.com/codebase/graph/v91/sasgraph.exe"="CODE") NOGTITLE NOGFOOTNOTE GPATH = & sasworklocation
    11.
    12
    gaccessible 13%;
    14 /********************************************************/
    15 * RX_BIPLR_V3. SAS;
    16 /********************************************************/
    17
    18 dm 'journal clearly out; delete ";
    19 linesize options = 120;
    20 option obs = 0 NoReplace;
    21
    22 ****************************************************************************************;
    23 * date reviewed programmer in WHICH WAS MADE;
    24 *----- -------------- ------------ -----------------------------------------;
    25 * 2005 creation of David Boyd program to the test population;
    26 *;
    27 * 06/02/2006 Ivon Jones changed to include the whole of the population;
    28 *;
    29 * 20/07/2006 Ivon Jones identified the holdout data elements;
    30 * or inclusion in the consolidation with;
    31 * Robin report;
    32 *;
    33 * 18/08/2006 Ivon Jones updated specific therapeutic Classes.
    34 * 10 - 2009 J Shaf - changed to extract actual or potential of UBH bipolar Dx and medical claims.
    35 ****************************************************************************************;
    36
    37
    38
    39 * % let allclmorgn = (', 'A'); / * claims origin code * /.
    40% would let begdate ='01 SEP 2009;
    41% let enddate = 30 SEP 2009 would be;
    42% let q = %str(%');
    43
    44
    45 data _null_;
    46. call symput ("fdos", put (intnx ('month' ' and begdate "d,-27," starts"), date9.));
    47 call symput ('ldos', put (intnx ('months', ' and enddate "d-0, 'end'" "), date9.));
    48, run;

    NOTE: DATA statement used (total duration of processes):
    time real 0.01 seconds
    2 the system SAS 11:44 Friday, October 30, 2009

    time CPU 0.01 seconds


    49
    50
    51
    52 **************************************************************;
    53 *? Data _null_ stage allows to create a macro variable to;
    54 * year and month, based on the macro ldos variable in the data;
    55 * step up? ;
    56 **************************************************************;
    57
    58
    59 data _null_;
    If 60 months ("& ldos" d) < 10
    61, then call symput ("yr_mo", compress (year ("& ldos" d) |)) '0' || months ("& ldos" d)));
    62 other call symput ("yr_mo", compress (year ("& ldos" d) | months ("& ldos" d)));
    63 to run;

    NOTE: The numeric values were converted to character values in the locations given by: (Line): (Column).
    61:39 61:64 62:39 62:57
    NOTE: DATA statement used (total duration of processes):
    time real 0.01 seconds
    time processor 0.01 seconds


    64
    65 * make % & biplr_dx;
    position 66% & begdate;
    ' 01 SEP 2009 would be
    67% put & enddate;
    30 SEP 2009 would be
    68% put & fdos;
    JUNE 1, 2007
    69% put & ldos;
    SEPTEMBER 30, 2009
    70% put & q;
    '
    71
    72
    73 libname biplr ' / home/jshafi01/projects/adhoc/biplr_dprsn/data ';
    NOTE: Libref BIPLR has been awarded with success as follows:
    Engine: V9
    Physical name: / home/jshafi01/projects/adhoc/biplr_dprsn/data
    74 rosdwp libname = oracle user "& oracle_user." pass = "& oracle_pass." ' buffsize = 32767 path = "rosdwp"; "
    NOTE: Libref ROSDWP has been awarded with success as follows:
    Engine: ORACLE
    Physical name: rosdwp
    75
    work.biplr_up_v1 76 data;
    mbr_id length 77 attrib = $ 26;
    78 the value biplr.biplr_ubh_med_v1;
    79 to be performed;

    NOTE: There were 0 read comments from the BIPLR data set. BIPLR_UBH_MED_V1.
    NOTE: All data WORK. BIPLR_UP_V1 has 0 comments and variables 1.
    NOTE: DATA statement used (total duration of processes):
    time real 0.01 seconds
    3 the system SAS 11:44 Friday, October 30, 2009

    time processor 0.01 seconds


    80
    81 proc content;
    82 to be performed;

    NOTE: PROCEDURE used CONTENT (total duration of processes):
    time real 0.03 seconds
    time CPU 0.03 seconds


    83
    84 proc datasets
    85 = rosdwp nolist library.
    86. delete biplr_up_v1;
    87 of quitting;

    NOTE: The removal of ROSDWP. BIPLR_UP_V1 (memtype = DATA).
    NOTE: PROCEDURE used DATASETS (time Total of processes):
    time real 3.74 seconds
    time CPU 0.03 seconds


    88
    89 proc datasets
    90 = work nolist library.
    copy 91 = rosdwp move;
    92 select biplr_up_v1;
    93 of quitting;

    NOTE: Move WORK. BIPLR_UP_V1 to ROSDWP. BIPLR_UP_V1 (memtype = DATA).
    NOTE: Variable labels SAS, formats and lengths are not written to the DBMS tables.
    NOTE: There were 0 read comments from the WORKING data set. BIPLR_UP_V1.
    NOTE: All the data ROSDWP. BIPLR_UP_V1 has 0 comments and variables 1.
    NOTE: PROCEDURE used DATASETS (time Total of processes):
    real 0.32 seconds
    time CPU 0.04 seconds


    94
    95
    96
    97 *****************************************************************************;
    98
    99 * execute (commit) by rosdwp
    100 ******************************************************************************;
    101
    102
    103 proc SQL noprint.
    104, connect to oracle as rosdwp (user = "" & oracle_user. "password =" "& oracle_pass ' buffsize = 32767 path ="rosdwp")
    104. preserve_comments);
    run 105 (alter session set nls_date_format = 'ddmonyyyy') by rosdwp;
    CREATE table biplr_rx like 106
    107 SELECT
    mrb_id 108,
    pcp_spc 109,
    rx_date 110,
    4 the system SAS 11:44 Friday, October 30, 2009

    Mark 111,
    generic, 112
    113 ahfs_cd
    ahfs_dsc 114,
    lbl 115,
    strngth 116,
    UNT 117,
    spc_tx_cls_cd 118,
    119 spc_tx_cls_dsc,
    GCN 120,
    rx_num 121,
    rx_ingrd 122,
    rx_paid 123,
    rx_cnt 124,
    rx_qty 125,
    rx_day 126
    127 rosdwp CONNECTION
    128 (SELECT
    129, middle of the year. UNIQ_MBR_ID as mrb_id,
    130 DB. PRVDR_SPCLTY_DESC as pcp_spc,
    FCP 131. LAST_SRVC_DT as rx_date,
    132 JJ. BRAND_NAME as mark,
    133 JJ. GNRC_NAME as generic,
    134 JJ. AHFS_THRPTC_CLS_CD as ahfs_cd,
    DD 135. AHFS_THRPTC_CLS_DESC as ahfs_dsc,
    136 JJ. LABEL_NAME as lbl,
    137 JJ. STRNGTH_NUM as strngth
    138 JJ. STRNGTH_UNIT_DESC as unt,
    139 JJ. SPECF_THRPTC_CLS_CD as spc_tx_cls_cd,
    140 DD. SPECF_THRPTC_CLS_DESC as spc_tx_cls_dsc,
    141 JJ. GCN_NUM as gcn,
    FCP 142. PRSCRPTN_NUM as rx_num,
    SUM of 143 (FCP. INGRDNT_AMT) as rx_ingrd,
    SUM of 144 (FCP. PD_AMT) as rx_paid,
    $ 145 (FCP. UNIT_SRVC_CNT) as rx_cnt,
    SUM of 146 (FCP. DSPNSD_QTY) as rx_qty,
    SUM of 147 (FCP. DAY_SUPLY_CNT) as rx_day
    148
    149 PHRMCY_CLM_FACT pcf,
    150 MBR_ID_DMNSN environment,
    151 DRUG_DMNSN dd,
    152 PRVDR_DMNSN pd,
    153 biplr_up_v1
    154. WHERE THE
    (155)
    156 (biplr_up_v1.mbr_id = MBR_ID_DMNSN. UNIQ_MBR_ID) and
    157 (PHRMCY_CLM_FACT. FINL_CLM_KEY = PHRMCY_FINL_CLM_DMNSN. FINL_CLM_KEY) AND
    158 (PHRMCY_CLM_FACT. MBR_KEY = MBR_ID_DMNSN. MBR_KEY) and
    159 (PHRMCY_CLM_FACT. BNFT_KEY = MBR_BNFT_DMNSN. BNFT_KEY) and
    160 (PHRMCY_CLM_FACT. DRUG_KEY = DRUG_DMNSN. DRUG_KEY) and
    161 (PHRMCY_FINL_CLM_DMNSN. CLM_ORGN_CD IN (', 'A')) AND
    162 (PHRMCY_CLM_FACT. LAST_SRVC_DT BETWEEN q. & fdos. & q and & q. & ldos. & q)
    163)
    164 Group By
    165 mi. UNIQ_MBR_ID,
    166 pd. PRVDR_SPCLTY_DESC,
    FCP 167. LAST_SRVC_DT,
    168 JJ. BRAND_NAME,
    5 the system SAS 11:44 Friday, October 30, 2009

    169 JJ. GNRC_NAME,
    170 JJ. AHFS_THRPTC_CLS_CD,
    171 JJ. AHFS_THRPTC_CLS_DESC,
    172 JJ. LABEL_NAME,
    173 JJ. STRNGTH_NUM,
    174 JJ. STRNGTH_UNIT_DESC,
    175 JJ. SPECF_THRPTC_CLS_CD,
    176 JJ. SPECF_THRPTC_CLS_DESC,
    177 JJ. GCN_NUM,
    FCP 178. PRSCRPTN_NUM
    179);
    ERROR: ORACLE prepare error: ORA-00936: lack of expression. SQL statement: SELECT middle. UNIQ_MBR_ID as mrb_id,
    RDL PRVDR_SPCLTY_DESC like pcp_spc, FCP. LAST_SRVC_DT as rx_date, JJ. BRAND_NAME as brand, JJ. GNRC_NAME as generic,
    DD. AHFS_THRPTC_CLS_CD like ahfs_cd, JJ. AHFS_THRPTC_CLS_DESC as ahfs_dsc, JJ. LABEL_NAME as lbl, JJ. STRNGTH_NUM as
    strngth, JJ. STRNGTH_UNIT_DESC as unt, JJ. SPECF_THRPTC_CLS_CD as spc_tx_cls_cd, JJ. SPECF_THRPTC_CLS_DESC as
    spc_tx_cls_dsc, JJ. GCN_NUM as gcn, FCP. PRSCRPTN_NUM as rx_num, SUM (FCP. INGRDNT_AMT) as rx_ingrd, SUM (FCP. PD_AMT)
    as rx_paid, SUM (FCP. UNIT_SRVC_CNT) as rx_cnt, SUM (FCP. DSPNSD_QTY) as rx_qty, SUM (FCP. DAY_SUPLY_CNT) as rx_day
    OF PHRMCY_CLM_FACT pcf, MBR_ID_DMNSN mi, DRUG_DMNSN JJ, pd of the PRVDR_DMNSN, biplr_up_v1 () WHERE the
    (biplr_up_v1.mbr_id = MBR_ID_DMNSN. UNIQ_MBR_ID) and (PHRMCY_CLM_FACT. FINL_CLM_KEY =
    PHRMCY_FINL_CLM_DMNSN. FINL_CLM_KEY) AND (PHRMCY_CLM_FACT. MBR_KEY = MBR_ID_DMNSN. MBR_KEY) and
    (PHRMCY_CLM_FACT. BNFT_KEY = MBR_BNFT_DMNSN. BNFT_KEY) and (PHRMCY_CLM_FACT. DRUG_KEY = DRUG_DMNSN. DRUG_KEY) and
    (PHRMCY_FINL_CLM_DMNSN. CLM_ORGN_CD IN (', 'A')) AND (PHRMCY_CLM_FACT. LAST_SRVC_DT BETWEEN ' 01 JUN 2007"
    and 30 SEP 2009') Group By mi. UNIQ_MBR_ID, pd. PRVDR_SPCLTY_DESC, FCP. LAST_SRVC_DT, JJ. BRAND_NAME,
    DD GNRC_NAME, JJ. AHFS_THRPTC_CLS_CD, JJ. AHFS_THRPTC_CLS_DESC, JJ. LABEL_NAME, JJ. STRNGTH_NUM,
    DD STRNGTH_UNIT_DESC, JJ. SPECF_THRPTC_CLS_CD, JJ. SPECF_THRPTC_CLS_DESC, JJ. GCN_NUM, FCP. PRSCRPTN_NUM.
    NOTE: PROC SQL set NOEXEC option and will continue to check the syntax of the instructions.
    180 run (drop table biplr_up_v1) in rosdwp;
    NOTE: Statement is not executed because the NOEXEC option.
    181 disconnect of rosdwp;
    NOTE: Statement is not executed because the NOEXEC option.
    182 of quitting;
    NOTE: The SAS system is stopped at this stage of processing errors.
    NOTE: PROCEDURE used SQL (total duration of processes):
    time real 0.14 seconds
    time CPU 0.03 seconds

    183
    184

    (1) assuming that LAST_SRVC_DT is a column of PHRMCY_CLM_FACT, to precede the table alias "FCP" rather than the full table name. If a table alias is specified in the FROM clause, it should be used rather than the full table name when you reference the columns.
    2) there are two tables in the WHERE clause that do not appear in the FROM clause:

    PHRMCY_FINL_CLM_DMNSN
    MBR_BNFT_DMNSN

    user12142482 wrote:
    Hello again,

    Wish Oracle was a bit more informative. Uses an Institute of SAS product called Enterprise Guide. A "hot fix" has been installed to solve a problem that the product appears unable to save the latest version of the revised code changes (hence "BETWEEN between" remaining even after an earlier edition). In any case, with the change, now get this error:

    «ERROR: ORACLE prepare error: ORA-00904: "PHRMCY_CLM_FACT".» ' LAST_SRVC_DT': invalid identifier. (The log file is displayed below)

    -The-Les restes remains of the error, no matter if code "pass" is used to move the date range to Oracle (which seems correct to the log output below that I believe), or if I hard code the date range in the query SQL PL itself.

    -L' preparation error always appears at the end of the internal SELECTION.
    -L' error of preparation remain, with or without the GROUP BY clause.

    Is there something else I'm missing? Someone suggested a reserve word - but other versions of the ANSI SQL standard, I don't see that is the case. I went to Support SAS and SAS list serve to the University of Georgia, but nothing definite from these sources. Have requested either able to run Oracle directly, outside this SAS Institute product - process.

    Any suggestions are greatly appreciated. Thank you to all the world very much.

    Jeff
    150 OF
    151 PHRMCY_CLM_FACT pcf,


    152 MBR_ID_DMNSN environment,
    153 DRUG_DMNSN dd,
    154 PRVDR_DMNSN pd,
    155 BIPLR_UP_V1 BLPR2
    156. WHERE THE
    157 (BIPLR_UP_V1.mbr_id = MBR_ID_DMNSN. UNIQ_MBR_ID) and
    158 (PHRMCY_CLM_FACT. FINL_CLM_KEY = PHRMCY_FINL_CLM_DMNSN. FINL_CLM_KEY) AND
    159 (PHRMCY_CLM_FACT. MBR_KEY = MBR_ID_DMNSN. MBR_KEY) and
    160 (PHRMCY_CLM_FACT. BNFT_KEY = MBR_BNFT_DMNSN. BNFT_KEY) and
    161 (PHRMCY_CLM_FACT. DRUG_KEY = DRUG_DMNSN. DRUG_KEY) and
    162 (PHRMCY_FINL_CLM_DMNSN. CLM_ORGN_CD IN (', 'A')) AND
    163 (PHRMCY_CLM_FACT. BETWEEN LAST_SRVC_DT & q. & fdos. & q and q & ldos. & q)
    (164);
    ERROR: ORACLE prepare error: ORA-00904: "PHRMCY_CLM_FACT." "' LAST_SRVC_DT ': invalid identifier. SQL statement:

  • Datepart (sybase) for oracle conversion

    Hello

    I have problem conversion "datepart' from sybase to oracle.
    Select datepart (dw, getdate ()).
    Could you please help me with this.
    Thank you!

    You can use EXTRACT or TO_CHAR, a few examples below:

    SQL> select extract(year from sysdate), extract(month from sysdate), extract(day from sysdate)
      2  from dual
      3  /
    
    EXTRACT(YEARFROMSYSDATE) EXTRACT(MONTHFROMSYSDATE) EXTRACT(DAYFROMSYSDATE)
    ------------------------ ------------------------- -----------------------
                        2009                         9                       9
    
    SQL> select to_char(sysdate, 'yyyy')
      2  from dual
      3  /
    
    TO_C
    ----
    2009
    
    SQL> select to_char(sysdate, 'dw')
      2  from dual
      3  /
    
    TO
    --
    42
    

    With greetings
    Krystian Zieja
    [Project Envision | http://www.projectenvision.com]

  • Exp-00056: oracle 942 error

    I installed oracle 9i on windows 2000 Server and clients on other machines. The database name is admin I created the table in my own ora102 of connection on the client computer. Now I want to export the tables I created in my own login. I used the following command on the client computer to export tables
    exp file ora102/ora102@admin = c:\demo.dmp tables =(emp,dept)
    But it gives me error
    Exp-00056: oracle 942 error
    ORA-00942: table or view does not exist
    EXP-00000: export completed unsuccessfully

    I also run catexp.sql, catalog.sql, catproc.sql.
    But it still gives above problem

    Give me the solution.

    Although you finally believe me...
    can mark you your question as answered.
    Thanks and greetings

  • Problem migrating from Sybase to Oracle timestamp data

    I'm trying to migrate data from a table of sybase with a timestamp to Oracle column. After having run the generated SQL script unload developer, I get a string that looks like this: 0001000000937aa9 < EOFD >

    The generated SQL Developer loading script however will not process it and I get the following message:


    Column Position Len term Encl. Datatype name

    STATUS_TIMESTAMP NEXT * CHARACTER
    String endpoint of: '< EOFD > '.

    Sheet 1: Rejected - error on table DAROS. DR_STATUS, the STATUS_TIMESTAMP column.
    ORA-01438: value larger than the precision specified for the column

    If you SELECT this field in Sybase you get the same string, except that a number is hexadecimal 0x0001000000937aa9.

    Is there a way to overcome this obstacle to which has also had a very smooth migration?

    Thank you
    Alex

    I understand that a "timestamp" in Sybase cannot be mapped to a DATE or TIMESTAMP in Oracle. The Sybase data type is not, contrary to the name, meant to store a date or a time. It is more closely related to a SNA to in Oracle. If you just want to convert the data, you will probably need to store them in a VARCHAR2 column in Oracle. But if you have some code that works on the column, you will probably need to redesign this code by hitting Oracle. If you have code that uses this to optimistic locking / avoid updates that have been lost, according to the version of Oracle, you probably want to watch using the virtual ORA_ROWSCN rather.

    Justin

  • 11.1.2.2 migration error

    Hi all

    I used the following code to my hash password. In jdev 11.1.2.1 it was working fine but when I migrate to 11.1.2.2 it gives me an error and its not able to import oracle.security.jps.internal.jaas.module.database.util. DBLoginModuleSHA1Encoder the file
    public class WLSencoder {
        public static String encodePassword(String password, String salt) {
                DBLoginModuleSHA1Encoder pwEncoder = new DBLoginModuleSHA1Encoder();
                String encodedPassword = pwEncoder.getKeyDigestString(password, null);
                String wlsEncodedPassword = "{SHA-1}" + encodedPassword;
                return wlsEncodedPassword;
            }
    }
    Are there alternatives to this?

    I use this code to create an encryption scheme that matches the encryption of the password used in weblogic server.


    Thank you
    Rakesh

    Hi Rakesh,
    You can use this code to convert plain text into 64 "SHA-1" hassed code base that will work with WLS

    MessageDigest sha1 = MessageDigest.getInstance("SHA1");
    byte[] hexByte= sha1.digest((plaintext).getBytes());
    //you can convert it to base 64  by using the following code
    String s = new sun.misc.BASE64Encoder().encode(hexByte);
    
    password = "{SHA-1}"+s;
    

    Thnks

    Published by: Puneet on June 8, 2012 12:55

  • MySQL to Oracle Migration offline: scripts incorrectly generated for tables

    Hello

    I used SQL Developer 3.0.4 to migrate Mysql to Oracle databases.

    I have the following errors on the charger (oracle_ctl.sh) scripts to run:

    SQL * Loader-2026: the charge was dropped because SQL Loader cannot continue.
    SQL * Loader-500: could not open the file (data / framework_perdadepacotes_diari.txt)


    The "framework_perdadepacotes_horario.txt" dump file is generated by mysqlsdump with the original mysql table name and ".txt" sufix:
    -excerpt from unload_script.sh
    mysqldump-u $username - p $server h $ t socket=/u01/mysqlmulti/mysql2/mysqld2.sock port password data = 3312 fields terminated by = "< EOFD >" fields escaped by = ""-lines terminated by = "< EORD >" "dxdb" "framework_perdadepacotes_horario" "

    but sql loader controlfile makes reference to the file by using the new name of the oracle table (in this case, that the new name is truncated to 30 characters):
    --
    load data
    INFILE ' data / framework_perdadepacotes_diari.txt ".
    "str"< EORD >"
    in the dxdb.framework_perdadepacotes_diari table


    Another instance of the same problem, but in this case the table name starts wth "_":
    -of unload_script.sh
    mysqldump-h $server u $username - p$ password t data fields terminated by = "< EOFD >" fields escaped by = ""-lines terminated by = "< EORD >" "netdb" "_Clientes" "

    file name generated by mysqldump: "_Clientes.txt."
    CTL file:
    load data
    INFILE ' data / CLIENTES_1.txt ".
    "str"< EORD >"
    in the CLIENTES_1 table

    Is this a bug, or are we supposed to manually fix the scripts for these cases?

    Thank you

    Edited by: user12099785 11/10/2011 06:11

    Currently, you have to fix manually because there was no bug recorded for this question. I have now filed the bug and it will be if all goes well fixed in one of the next versions to come.

  • Active fixed Oracle Migration

    Hi Forum,
    As my requirement in the implementation, it is necessary to migrate the information of Legacy assets in Oracle of the capital. Can any body provide the sample script to migrate the capital in oracle tables.

    One more thing, it is do we not have any import program for the conversion of Oracle assets or through API... Please send the answer as soon as possible.



    Thank you
    Nag

    Hello

    APP-OFA-48400: error: function famgpi returned error (called from FAMAPT)

    Please look for My Oracle Support of this error and go through the docs.

    Please respond immediately...

    Please be aware that we are volunteers here :)

    Thank you
    Hussein

Maybe you are looking for

  • Recently affected by slow and crashes

    Recently - a week or so, I am experiencing extreme slowness and crashes. In addition, it seems the computer - an old, everything continues to run or looking for something, even if it seems that I'm on the website and there is no need to do that? This

  • Invert the table to the Add element to the front of the performance of Bay

    Hi all I read in a few places that reverse an array to add the element to the front of it will give the best performance since no new allocation of memory is necessary. I have 2 questions about this process: 1. "reverse a table on requires pointers c

  • How to save a D 4 table to a file and load it later?

    Hello I try to save a picture of D 4 (table [4000] [3] [20] [5]) of UINT in a file. I can do so through the "write to the binary file. But then I can´t load it. I know that I can turn my table up to 1 D array of 1.200.000 (4000 * 3 * 20 * 5) elements

  • How to recover data after the upgrade to Windows XP Home Edition?

    Original title: lost data My Windows XP program has been replaced by Windows XP Home Edition. Some data was not justified. Is it possible to recover the data?

  • XPS 8900 GTX 960 update graphics card

    Hello I have a XPS8900 with a GTX 960 2 gb card. I would like to replace with a better card. I have seen in some forums that a 1060 GTX is a good option. If this is the case, could someone let me know wich specific GTX1060 buy? and if the power suppl