UNKNOWN ORACLE VERSION ERROR AT LINE 809

hi dear i wana upGRADE my oracle 8i version .6 to database 10g. i tried to upgrade but when creating database or migrating database it gives an error message saying unknown database version can some body help me in this regard. and is this version supported to upgrade
regards with best luck
muhammad mmohsin chattha\

i wana upGRADE my oracle 8i version .6 to database 10gIf by saying "version .6" you mean Oracle8i 8.1.6, then this upgrade path is NOT supported.
You would have to upgrade to Oracle8i 8.1.7 and then to 10G.

Similar Messages

  • ERROR at line 1: ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine ORA-20000: Oracle Text error: DRG-10700: preference does not exist: global_lexer ORA-06512: at "CTXSYS.DRUE", line 160 ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 366

    database version 11.2.0.4
    rac two node
    CREATE INDEX MAXIMO.ACTCI_NDX3 ON MAXIMO.ACTCI
    (DESCRIPTION)
    INDEXTYPE IS CTXSYS.CONTEXT
    PARAMETERS('lexer global_lexer language column LANGCODE')
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000: Oracle Text error:
    DRG-10700: preference does not exist: global_lexer
    ORA-06512: at "CTXSYS.DRUE", line 160
    ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 366

    Like the error message says, you don't have a global_lexer.  So, you need to create a global_lexer and that lexer must have at least a default sub_lexer, then you can use that global_lexer in your index parameters.  Please see the demonstration below, including reproduction of the error and solution.
    SCOTT@orcl12c> -- reproduction of problem:
    SCOTT@orcl12c> CREATE TABLE actci
      2    (description  VARCHAR2(60),
      3      langcode     VARCHAR2(30))
      4  /
    Table created.
    SCOTT@orcl12c> CREATE INDEX ACTCI_NDX3 ON ACTCI (DESCRIPTION)
      2  INDEXTYPE IS CTXSYS.CONTEXT
      3  PARAMETERS('lexer global_lexer language column LANGCODE')
      4  /
    CREATE INDEX ACTCI_NDX3 ON ACTCI (DESCRIPTION)
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000: Oracle Text error:
    DRG-10700: preference does not exist: global_lexer
    ORA-06512: at "CTXSYS.DRUE", line 160
    ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 366
    SCOTT@orcl12c> -- solution:
    SCOTT@orcl12c> DROP INDEX actci_ndx3
      2  /
    Index dropped.
    SCOTT@orcl12c> BEGIN
      2    CTX_DDL.CREATE_PREFERENCE ('global_lexer', 'multi_lexer');
      3    CTX_DDL.CREATE_PREFERENCE ('english_lexer', 'basic_lexer');
      4    CTX_DDL.ADD_SUB_LEXER ('global_lexer', 'default', 'english_lexer');
      5  END;
      6  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl12c> CREATE INDEX ACTCI_NDX3 ON ACTCI (DESCRIPTION)
      2  INDEXTYPE IS CTXSYS.CONTEXT
      3  PARAMETERS('lexer global_lexer language column LANGCODE')
      4  /
    Index created.

  • Unknown Oracle major version [11] null

    Hi ,
    i am using cf9 , i generated ORM cfc service and whin i am calling any service call from flash builder or try to test the cfc from coldfusion buirlder
    i got this error
    unknown Oracle major version [11] null
    i am using the correct jdbc driver , and i also try 3 more jdbc drivers , i am using oracle 11g database
    any help please

    In your Application.cfc, at the top in the Application settings, you need:
      THIS.name ..... etc
          .... other app settings
      THIS.ORMENABLED = true ;
      THIS.ORMSETTINGS = {} ;
      THIS.ORMSETTINGS.dialect = 'Oracle10g' ;
    I believe that's right anyway, don't have any examples with me here at the moment. Check the docs for the ORMSETTINGS.dialect options.
    O.

  • Unknown Database Connector Error using Oracle stored procedures

    We are using an Oracle database for the first time with our Crystal Reports, and I am attempting to modify a report to use a new stored procedure.  When I attempt to add either the new procedure, or to add a new copy of the existing procedure, I get an error message:
    Unknown Database Connector Error
    If I remove the existing procedure first (leaving no database objects at all), and then attempt to add back exactly the same stored procedure that I just removed, I get a different error message:
    Database Connector Error: '42000:[Oracle][ODBC]Syntax error or access violation'
    Neither of these errors is particularly helpful.  The stored procedure in question works as is.  I can run it in SQL Developer, and it also executes within the existing report if I run it.  Unfortunately, it needs to be modified and given a new name, so I need to be able to add the new stored procedure to the report.
    The operating system is Windows XP Professional version 2002 SP3.  The Oracle version is 11g (11.2.0.2.0).  Crystal reports version is Crystal Reports 2008 (12.3.0.601).  The stored procedure returns a refcursor.  The ODBC connection is created using the "Oracle in OraClient11g_home1" driver.  When I test the connection, it tells me it was successful.
    If it matters, the report is a Saba report.
    Can anyone shed any light on what the problem is and how to fix it.  If the solution is to upgrade the Windows version, that is under the control of our tech support and there is no information available as to when it will happen.

    Yes - I had used the Set Datasource Location to point to the correct ODBC connection.  I get the same results with an existing report as I do with a new blank report.
    I have no idea where the service market place is.  Honestly, I find the entire SAP site confusing.  I found one reference to the PAM guide, but when I clicked on it, it insisted on a userid/password, and apparently the userid/password I have for this discussion group doesn't pass.  I did find, eventually, a document called "Crystal Reports 2008 Service Pack 3 for Windows - Supported Platforms".  When I read it, it tells me that it's compatible with Oracle 11g, generic ODBC, and Windows XP SP3, which is what we are using.  I'm hoping that this document has equivalent information to the PAM guide.

  • Oracle ODBC version error on windows server 2008 64 bit

    We had installed oracle 10g standard edition on windows server 2008 64 bit. After one hour use of ODBC connection, we are getting a error message like 'Oracle client and networking components were not found. These components are supplied by Oracle Corporation and are part of the Oracle Version 7.3.3 or later client software installation. Provider is unable to function until these components are installed'
    Find the link for error message. http://www.google.co.in/imgres?newwindow=1&biw=1600&bih=1075&tbm=isch&tbnid=zc1Vas4O9Eqj4M:&imgrefurl=http://social.tech…
    Please give solution for the said issue. Thanks in advance.

    SAP said it is Oracle not support windows server 2008.

  • 'The provider is not compatible with the version of Oracle client error' popping up randomly

    I have several asp.net pages running on an application server which generally work without issue. However I've had the Server error "The provider is not compatible with the version of Oracle client error" crop up twice seemingly randomly that affects all of my pages that interact with the DB server. A simple reboot of the application server solves the issue and the pages run again with no problems. What could be causing this problem?

    Sorry if I wasn't clear initially. Basically I've got 2 different applications in 2 different IIS folders on the webserver, each with several asp.net pages. They work fine for a period of time and then inexplicably that error gets thrown and affects all of my asp.net pages in both applications. The admin tells me that the other older applications on the same server are unaffected. A simple reboot of the server fixes the issue until the next time it happens (I can't identify any consistent point where this crash happens, the admin originally suggested that there might be something in my code causing a memory issue). I had the same applications hosted on my local machine for a time and this never happened as well as it never happening when I run them in localhost. How can I trace whether or not another part of my application is trying to load ODP.NET by itself? How can I verify the DLL search order for my application?

  • ERROR at line 1:ORA-01012: not logged on

    Hi ,i installed OID and the owner of the binaries and database(repository ) is Oracle and then i cahnged the permissions to 775 and now when i am trying to logon to a db(locally) using a different user x who is member of DBA group its saying not logged on .Is something wrong with permissions?
    env|grep ORA
    ORACLE_SID=oidtest
    PS1=[${ME}:${UNAME}:${ORACLE_SID}] ${PWD} >
    ORACLE_HOME=/amoidts1/OID
    [amoidts1:panther:oidtest] /home/amoidts1 > sqlplus
    SQL*Plus: Release 10.1.0.5.0 - Production on Wed Nov 21 19:24:37 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Enter user-name: / as sysdba
    Connected.
    SQL> select * from v$database;
    select * from v$database
    ERROR at line 1:
    ORA-01012: not logged on

    What oracle version?
    Probably there is not enough OS resources.
    *Process J000 died, kkjcre1p: unable to spawn jobq slave process [ID 833613.1]*

  • ERROR: ORACLE prepare error: ORA-00936: missing expression

    Hello,
    I am required to run "pass-through" Oracle SQL, to extract data from tables into SAS for processing and manipulation. My code (attached) reads and writes (executes) but with zero records to test first. I cannot get past the Prepare Error.
    The query is very much like other queries that seem to work, but I cannot get past this prepare error. I have no other access to individauls with adequate knowledge of PL SQL, and as a last stop hoped others in the forum could quickly spot the source of errror.
    Thanks very much in advance for any assistance.
    Jeff
    1 ;*';*";*/;quit;run;
    2 OPTIONS PAGENO=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 _ALL_ CLOSE;
    NOTE: Some of your options or statements may not be supported with the Activex or Java series of devices. Graph defaults for these
    drivers may be different from other SAS/GRAPH device drivers. For further information, please contact Technical Support.
    9 OPTIONS DEV=ACTIVEX;
    10 FILENAME EGHTML TEMP;
    NOTE: Writing HTML(EGHTML) Body 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=("CODEBASE"="http://www2.sas.com/codebase/graph/v91/sasgraph.exe") NOGTITLE NOGFOOTNOTE GPATH=&sasworklocation
    11 ! ;
    12
    13 %gaccessible;
    14 /********************************************************/
    15 * RX_BIPLR_V3.SAS ;
    16 /********************************************************/
    17
    18 dm 'log;clear;out;clear';
    19 options linesize =120;
    20 Option obs=0 NoReplace;
    21
    22 ****************************************************************************************;
    23 *Date Programmer Reviewed By WHAT WAS DONE;
    24 *----- -------------- ------------ -----------------------------------------;
    25 *2005 David Boyd Program creation for test population;
    26 *;
    27 *02/06/2006 Ivon Jones Modified to include total population;
    28 *;
    29 *07/20/2006 Ivon Jones Identified data elements for exclusion;
    30 * or inclusion for consolidation with ;
    31 * Robin's report;
    32 *;
    33 *08/18/2006 Ivon Jones Updated the Specific Therapeutic Classes;
    34 * 10-2009 J Shaf - modified to extract actual or potential Bipolar Dx from UBH and Medical Claims;
    35 ****************************************************************************************;
    36
    37
    38
    39 *%let allclmorgn = ('M','A') ; /* all claims origin code */
    40 %let begdate='01SEP2009'd;
    41 %let enddate='30SEP2009'd;
    42 %let q = %str(%') ;
    43
    44
    45 data _null_ ;
    46 call symput('fdos',put(intnx('month',"&begdate"d,-27,'beginning'), date9.) ) ;
    47 call symput('ldos',put(intnx('month',"&enddate"d,-0,'ending'), date9.) ) ;
    48 run ;
    NOTE: DATA statement used (Total process time):
    real time 0.00 seconds
    2 The SAS System 11:44 Friday, October 30, 2009
    cpu time 0.01 seconds
    49
    50
    51
    52 **************************************************************;
    53 * ??Use the data _null_ step to create a macro variable for the ;
    54 * year and month based on the ldos macro variable in the data ;
    55 * step above?? ;
    56 **************************************************************;
    57
    58
    59 data _null_ ;
    60 if month("&ldos"d) < 10
    61 then call symput('yr_mo',compress(year("&ldos"d) || '0' || month("&ldos"d) ) ) ;
    62 else call symput('yr_mo',compress(year("&ldos"d) || month("&ldos"d) ) ) ;
    63 run ;
    NOTE: Numeric values have been converted to character values at the places given by: (Line):(Column).
    61:39 61:64 62:39 62:57
    NOTE: DATA statement used (Total process time):
    real time 0.00 seconds
    cpu time 0.00 seconds
    64
    65 *%put &biplr_dx;
    66 %put &begdate ;
    '01SEP2009'd
    67 %put &enddate ;
    '30SEP2009'd
    68 %put &fdos ;
    01JUN2007
    69 %put &ldos ;
    30SEP2009
    70 %put &q ;
    71
    72
    73 libname biplr'/home/jshafi01/projects/adhoc/biplr_dprsn/data';
    NOTE: Libref BIPLR was successfully assigned as follows:
    Engine: V9
    Physical Name: /home/jshafi01/projects/adhoc/biplr_dprsn/data
    74 libname rosdwp oracle user="&oracle_user." pass="&oracle_pass." buffsize=32767 path='rosdwp';
    NOTE: Libref ROSDWP was successfully assigned as follows:
    Engine: ORACLE
    Physical Name: rosdwp
    75
    76 data work.biplr_up_v1;
    77 attrib mbr_id length=$26;
    78 set biplr.biplr_ubh_med_v1;
    79 run;
    NOTE: There were 0 observations read from the data set BIPLR.BIPLR_UBH_MED_V1.
    NOTE: The data set WORK.BIPLR_UP_V1 has 0 observations and 1 variables.
    NOTE: DATA statement used (Total process time):
    real time 0.01 seconds
    3 The SAS System 11:44 Friday, October 30, 2009
    cpu time 0.00 seconds
    80
    81 proc contents;
    82 run;
    NOTE: PROCEDURE CONTENTS used (Total process time):
    real time 0.03 seconds
    cpu time 0.03 seconds
    83
    84 proc datasets
    85      library = rosdwp nolist;
    86      delete biplr_up_v1;
    87 quit;
    NOTE: Deleting ROSDWP.BIPLR_UP_V1 (memtype=DATA).
    NOTE: PROCEDURE DATASETS used (Total process time):
    real time 3.74 seconds
    cpu time 0.03 seconds
    88
    89 proc datasets
    90      library=work nolist;
    91      copy out = rosdwp move;
    92      select biplr_up_v1 ;
    93 quit;
    NOTE: Moving WORK.BIPLR_UP_V1 to ROSDWP.BIPLR_UP_V1 (memtype=DATA).
    NOTE: SAS variable labels, formats, and lengths are not written to DBMS tables.
    NOTE: There were 0 observations read from the data set WORK.BIPLR_UP_V1.
    NOTE: The data set ROSDWP.BIPLR_UP_V1 has 0 observations and 1 variables.
    NOTE: PROCEDURE DATASETS used (Total process time):
    real time 0.32 seconds
    cpu time 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);
    105      execute(alter session set nls_date_format = 'ddmonyyyy') by rosdwp;
    106 CREATE table biplr_rx as
    107 SELECT
    108 mrb_id,
    109 pcp_spc,
    110 rx_date,
    4 The SAS System 11:44 Friday, October 30, 2009
    111 brand,
    112 generic,
    113 ahfs_cd,
    114 ahfs_dsc,
    115 lbl,
    116 strngth,
    117 unt,
    118 spc_tx_cls_cd,
    119 spc_tx_cls_dsc,
    120 gcn,
    121 rx_num,
    122 rx_ingrd,
    123 rx_paid,
    124 rx_cnt,
    125 rx_qty,
    126 rx_day
    127 FROM connection to rosdwp
    128 (SELECT
    129 mid.UNIQ_MBR_ID as mrb_id,
    130 pd.PRVDR_SPCLTY_DESC as pcp_spc,
    131 pcf.LAST_SRVC_DT as rx_date,
    132 dd.BRAND_NAME as brand,
    133 dd.GNRC_NAME as generic,
    134 dd.AHFS_THRPTC_CLS_CD as ahfs_cd,
    135 dd.AHFS_THRPTC_CLS_DESC as ahfs_dsc,
    136 dd.LABEL_NAME as lbl,
    137 dd.STRNGTH_NUM as strngth,
    138 dd.STRNGTH_UNIT_DESC as unt,
    139 dd.SPECF_THRPTC_CLS_CD as spc_tx_cls_cd,
    140 dd.SPECF_THRPTC_CLS_DESC as spc_tx_cls_dsc,
    141 dd.GCN_NUM as gcn,
    142 pcf.PRSCRPTN_NUM as rx_num,
    143 SUM(pcf.INGRDNT_AMT) as rx_ingrd,
    144 SUM(pcf.PD_AMT) as rx_paid,
    145 SUM(pcf.UNIT_SRVC_CNT) as rx_cnt,
    146 SUM(pcf.DSPNSD_QTY) as rx_qty,
    147 SUM(pcf.DAY_SUPLY_CNT) as rx_day
    148 FROM
    149 PHRMCY_CLM_FACT pcf,
    150 MBR_ID_DMNSN mid,
    151 DRUG_DMNSN dd,
    152 PRVDR_DMNSN pd,
    153           biplr_up_v1
    154 WHERE
    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 ('M','A')) AND
    162 (PHRMCY_CLM_FACT.LAST_SRVC_DT BETWEEN between &q.&fdos.&q and &q.&ldos.&q)
    163      )
    164 Group By
    165 mid.UNIQ_MBR_ID ,
    166 pd.PRVDR_SPCLTY_DESC ,
    167 pcf.LAST_SRVC_DT ,
    168 dd.BRAND_NAME ,
    5 The SAS System 11:44 Friday, October 30, 2009
    169 dd.GNRC_NAME ,
    170 dd.AHFS_THRPTC_CLS_CD ,
    171 dd.AHFS_THRPTC_CLS_DESC ,
    172 dd.LABEL_NAME ,
    173 dd.STRNGTH_NUM ,
    174 dd.STRNGTH_UNIT_DESC ,
    175 dd.SPECF_THRPTC_CLS_CD ,
    176 dd.SPECF_THRPTC_CLS_DESC ,
    177 dd.GCN_NUM ,
    178 pcf.PRSCRPTN_NUM
    179 );
    ERROR: ORACLE prepare error: ORA-00936: missing expression. SQL statement: SELECT mid.UNIQ_MBR_ID as mrb_id,
    pd.PRVDR_SPCLTY_DESC as pcp_spc, pcf.LAST_SRVC_DT as rx_date, dd.BRAND_NAME as brand, dd.GNRC_NAME as generic,
    dd.AHFS_THRPTC_CLS_CD as ahfs_cd, dd.AHFS_THRPTC_CLS_DESC as ahfs_dsc, dd.LABEL_NAME as lbl, dd.STRNGTH_NUM as
    strngth, dd.STRNGTH_UNIT_DESC as unt, dd.SPECF_THRPTC_CLS_CD as spc_tx_cls_cd, dd.SPECF_THRPTC_CLS_DESC as
    spc_tx_cls_dsc, dd.GCN_NUM as gcn, pcf.PRSCRPTN_NUM as rx_num, SUM(pcf.INGRDNT_AMT) as rx_ingrd, SUM(pcf.PD_AMT)
    as rx_paid, SUM(pcf.UNIT_SRVC_CNT) as rx_cnt, SUM(pcf.DSPNSD_QTY) as rx_qty, SUM(pcf.DAY_SUPLY_CNT) as rx_day
    FROM PHRMCY_CLM_FACT pcf, MBR_ID_DMNSN mid, DRUG_DMNSN dd, PRVDR_DMNSN pd, biplr_up_v1 WHERE (
    (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 ('M','A')) AND (PHRMCY_CLM_FACT.LAST_SRVC_DT BETWEEN between '01JUN2007'
    and '30SEP2009') ) Group By mid.UNIQ_MBR_ID , pd.PRVDR_SPCLTY_DESC , pcf.LAST_SRVC_DT , dd.BRAND_NAME ,
    dd.GNRC_NAME , dd.AHFS_THRPTC_CLS_CD , dd.AHFS_THRPTC_CLS_DESC , dd.LABEL_NAME , dd.STRNGTH_NUM ,
    dd.STRNGTH_UNIT_DESC , dd.SPECF_THRPTC_CLS_CD , dd.SPECF_THRPTC_CLS_DESC , dd.GCN_NUM , pcf.PRSCRPTN_NUM.
    NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements.
    180 execute (drop table biplr_up_v1) by rosdwp;
    NOTE: Statement not executed due to NOEXEC option.
    181 disconnect from rosdwp;
    NOTE: Statement not executed due to NOEXEC option.
    182 quit;
    NOTE: The SAS System stopped processing this step because of errors.
    NOTE: PROCEDURE SQL used (Total process time):
    real time 0.14 seconds
    cpu time 0.03 seconds
    183
    184

    Hello Again ,
    Wish Oracle was a bit more informative. Am using a SAS Institute Product called Enterprise Guide. A "hot fix" was installed to address an issue that the product appears unable to save the latest version of edited code changes (hence " BETWEEN between" remaining even after a prior edit). In any case, with the change, am now receiving this error:
    " ERROR: ORACLE prepare error: ORA-00904: "PHRMCY_CLM_FACT"."LAST_SRVC_DT": invalid identifier". (Log file appears below)
    -The error remains, regardless of whether one uses "pass through" code to pass the date range to Oracle (which looks ok from the log output below I believe), or if I hard code the date range into the PL SQL query itself.
    -The Prepare error always appears at end of the inner SELECT.
    -The Prepare error remains, with or without the GROUP BY clause.
    Is there anything else here I am missing? Someone suggested a reserve word - but from other ANSI SQL versions, I do not see that is the case. I have consulted SAS Tech Support and SAS List Serve at University of GA. but nothing definitive from these sources. Have requested facility to be able to run Oracle directly, outside this SAS Institute product - in process.
    Any suggestions are greatly appreciated. Thanks to everyone very much.
    Jeff
    14 /********************************************************/
    15 * RX_BIPLR_V3.SAS ;
    16 /********************************************************/
    17
    18 dm 'log;clear;out;clear';
    19 options linesize =120;
    20 Option obs=0 NoReplace;
    21
    22 ****************************************************************************************;
    23 *Date       Programmer         Reviewed By     WHAT WAS DONE;
    24 *-----      --------------     ------------    -----------------------------------------;
    25 *2005 D. Boyd Program creation for test population;
    26 *;
    27 *02/06/2006 I. Jones Modified to include total population;
    28 *;
    29 *07/20/2006 I. Jones Identified data elements for exclusion;
    30 * or inclusion for consolidation with ;
    31 * Robin's report;
    32 *;
    33 *08/18/2006 I Jones Updated the Specific Therapeutic Classes;
    34 * 10-2009 J Shaf - modified to extract actual or potential Bipolar Dx from UBH and Medical Claims;
    35 ****************************************************************************************;
    36
    37
    38
    39 *%let allclmorgn = ('M','A') ; /* all claims origin code */
    40 %let begdate='01SEP2009'd;
    41 %let enddate='30SEP2009'd;
    42 %let q = %str(%') ;
    43
    44
    45 data null ;
    46 call symput('fdos',put(intnx('month',"&begdate"d,-27,'beginning'), date9.) ) ;
    47 call symput('ldos',put(intnx('month',"&enddate"d,-0,'ending'), date9.) ) ;
    48 run ;
    2 The SAS System 12:46 Monday, November 2, 2009
    NOTE: DATA statement used (Total process time):
    real time 0.00 seconds
    cpu time 0.00 seconds
    49
    50
    51
    52 **************************************************************;
    53 * ??Use the data null step to create a macro variable for the ;
    54 * year and month based on the ldos macro variable in the data ;
    55 * step above?? ;
    56 **************************************************************;
    57
    58
    59 data null ;
    60 if month("&ldos"d) < 10
    61 then call symput('yr_mo',compress(year("&ldos"d) || '0' || month("&ldos"d) ) ) ;
    62 else call symput('yr_mo',compress(year("&ldos"d) || month("&ldos"d) ) ) ;
    63 run ;
    NOTE: Numeric values have been converted to character values at the places given by: (Line):(Column).
    61:39 61:64 62:39 62:57
    NOTE: DATA statement used (Total process time):
    real time 0.00 seconds
    cpu time 0.01 seconds
    64
    65 *%put &biplr_dx;
    66 %put &begdate ;
    '01SEP2009'd
    67 %put &enddate ;
    '30SEP2009'd
    68 %put &fdos ;
    01JUN2007
    69 %put &ldos ;
    30SEP2009
    70 %put &q ;
    71
    72
    73 libname biplr'/home/jshafi01/projects/adhoc/biplr_dprsn/data';
    NOTE: Libref BIPLR was successfully assigned as follows:
    Engine: V9
    Physical Name: /home/jshafi01/projects/adhoc/biplr_dprsn/data
    74 libname rosdwp oracle user="&oracle_user." pass="&oracle_pass." buffsize=32767 path='rosdwp';
    NOTE: Libref ROSDWP was successfully assigned as follows:
    Engine: ORACLE
    Physical Name: rosdwp
    75
    76 data work.biplr_up_v1;
    77 attrib mbr_id length=$26;
    78 set biplr.biplr_ubh_med_v1;
    79 run;
    NOTE: There were 0 observations read from the data set BIPLR.BIPLR_UBH_MED_V1.
    NOTE: The data set WORK.BIPLR_UP_V1 has 0 observations and 1 variables.
    NOTE: DATA statement used (Total process time):
    real time 0.00 seconds
    cpu time 0.01 seconds
    80
    81 proc contents;
    82 run;
    NOTE: PROCEDURE CONTENTS used (Total process time):
    real time 0.02 seconds
    cpu time 0.02 seconds
    83
    84 proc datasets
    85      library = rosdwp nolist;
    86      delete biplr_up_v1;
    87 quit;
    NOTE: Deleting ROSDWP.BIPLR_UP_V1 (memtype=DATA).
    NOTE: PROCEDURE DATASETS used (Total process time):
    real time 0.61 seconds
    cpu time 0.01 seconds
    88
    89 proc datasets
    90      library=work nolist;
    91      copy out = rosdwp move;
    92      select biplr_up_v1 ;
    93 quit;
    NOTE: Moving WORK.BIPLR_UP_V1 to ROSDWP.BIPLR_UP_V1 (memtype=DATA).
    NOTE: SAS variable labels, formats, and lengths are not written to DBMS tables.
    NOTE: There were 0 observations read from the data set WORK.BIPLR_UP_V1.
    NOTE: The data set ROSDWP.BIPLR_UP_V1 has 0 observations and 1 variables.
    NOTE: PROCEDURE DATASETS used (Total process time):
    real time 0.15 seconds
    cpu time 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);
    105      execute(alter session set nls_date_format = 'ddmonyyyy') by rosdwp;
    106 CREATE table biplr_rx as
    107 SELECT
    108 mrb_id,
    109 uniq_mbr_id,
    110 pcp_spc,
    111 rx_date,
    112 brand,
    113 generic,
    114 ahfs_cd,
    115 ahfs_dsc,
    116 lbl,
    117 strngth,
    118 unt,
    119 spc_tx_cls_cd,
    120 spc_tx_cls_dsc,
    121 gcn,
    122 rx_num,
    123 rx_ingrd,
    124 rx_paid,
    125 rx_cnt,
    126 rx_qty,
    127 rx_day
    128 FROM connection to rosdwp
    129 (SELECT
    130 mid.UNIQ_MBR_ID as uniq_mrb_id,
    131 blpr.mrb_id.mbr_id,
    132 pd.PRVDR_SPCLTY_DESC as pcp_spc,
    133 pcf.LAST_SRVC_DT as rx_date,
    134 dd.BRAND_NAME as brand,
    135 dd.GNRC_NAME as generic,
    136 dd.AHFS_THRPTC_CLS_CD as ahfs_cd,
    137 dd.AHFS_THRPTC_CLS_DESC as ahfs_dsc,
    138 dd.LABEL_NAME as lbl,
    139 dd.STRNGTH_NUM as strngth,
    140 dd.STRNGTH_UNIT_DESC as unt,
    141 dd.SPECF_THRPTC_CLS_CD as spc_tx_cls_cd,
    142 dd.SPECF_THRPTC_CLS_DESC as spc_tx_cls_dsc,
    143 dd.GCN_NUM as gcn,
    144 pcf.PRSCRPTN_NUM as rx_num,
    145 SUM(pcf.INGRDNT_AMT) as rx_ingrd,
    146 SUM(pcf.PD_AMT) as rx_paid,
    147 SUM(pcf.UNIT_SRVC_CNT) as rx_cnt,
    148 SUM(pcf.DSPNSD_QTY) as rx_qty,
    149 SUM(pcf.DAY_SUPLY_CNT) as rx_day
    150 FROM
    151 PHRMCY_CLM_FACT pcf,
    152 MBR_ID_DMNSN mid,
    153 DRUG_DMNSN dd,
    154 PRVDR_DMNSN pd,
    155      BIPLR_UP_V1 blpr
    156 WHERE
    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 ('M','A')) AND
    163 (PHRMCY_CLM_FACT.LAST_SRVC_DT BETWEEN &q.&fdos.&q and &q.&ldos.&q)
    164 );
    ERROR: ORACLE prepare error: ORA-00904: "PHRMCY_CLM_FACT"."LAST_SRVC_DT": invalid identifier. SQL statement: SELECT
    mid.UNIQ_MBR_ID as uniq_mrb_id, blpr.mrb_id.mbr_id, pd.PRVDR_SPCLTY_DESC as pcp_spc, pcf.LAST_SRVC_DT as
    rx_date, dd.BRAND_NAME as brand, dd.GNRC_NAME as generic, dd.AHFS_THRPTC_CLS_CD as ahfs_cd,
    dd.AHFS_THRPTC_CLS_DESC as ahfs_dsc, dd.LABEL_NAME as lbl, dd.STRNGTH_NUM as strngth, dd.STRNGTH_UNIT_DESC as
    unt, dd.SPECF_THRPTC_CLS_CD as spc_tx_cls_cd, dd.SPECF_THRPTC_CLS_DESC as spc_tx_cls_dsc, dd.GCN_NUM as gcn,
    pcf.PRSCRPTN_NUM as rx_num, SUM(pcf.INGRDNT_AMT) as rx_ingrd, SUM(pcf.PD_AMT) as rx_paid, SUM(pcf.UNIT_SRVC_CNT)
    as rx_cnt, SUM(pcf.DSPNSD_QTY) as rx_qty, SUM(pcf.DAY_SUPLY_CNT) as rx_day FROM PHRMCY_CLM_FACT pcf,
    MBR_ID_DMNSN mid, DRUG_DMNSN dd, PRVDR_DMNSN pd, BIPLR_UP_V1 blpr WHERE (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 ('M','A')) AND
    (PHRMCY_CLM_FACT.LAST_SRVC_DT BETWEEN '01JUN2007' and '30SEP2009').
    NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements.
    165 execute (drop table biplr_up_v1) by rosdwp;
    NOTE: Statement not executed due to NOEXEC option.
    166 disconnect from rosdwp;
    NOTE: Statement not executed due to NOEXEC option.
    167 quit;
    NOTE: The SAS System stopped processing this step because of errors.
    NOTE: PROCEDURE SQL used (Total process time):
    real time 0.24 seconds
    cpu time 0.02 seconds
    168
    Edited by: user12142482 on Nov 2, 2009 4:02 PM

  • Oracle intermedia error while creating the index

    desc test
    no number(2) primary key
    name varchar2(20)
    SQL> create index tindex on test(name) indextype is ctxsys.context;
    create index tindex on test(name) indextype is ctxsys.context
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000: ConText error:
    ORA-06520: PL/SQL: Error loading external library
    ORA-06522: ld.so.1: extprocep_agt1: fatal: relocation error: file
    /export/home/oracle8i/OraHome1/ctx/lib/libctxx8.so: symbol ociepgoe: referenced
    symbol not found
    ORA-06512: at "CTXSYS.DRUE", line 122
    ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 34
    ORA-06512: at line 1
    what is the problem ??
    i Add an entry in the tnsnames.ora:
    extproc_connection_data =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = ipc)
    (KEY = DBSID))
    (CONNECT_DATA = (SID = ep_agt1)))
    and
    i Add the following in the listener SID_LIST:
    (SID_DESC = (SID_NAME = ep_agt1)
    (ORACLE_HOME = /oracle)
    (ENVS = LD_LIBRARY_PATH=/oracle/ctx/lib)
    (PROGRAM = extproc))
    my os is sun solaris intel and oracle version is 8.1.5
    null

    Try the following:
    1. Connect as ctxsys, and perform the following:
    SQL> create or replace library dr$libx as '<ORA_HOME>/bin/oractxx8.dll';
    2. Check the status of CTXSYS packages:
    select object_name, status from user_objects where status like 'IN%';
    OBJECT_NAME STATUS
    DRIDISP INVALID
    3. Re-compile any invalid packages (should be just dridisp) from the .plb file(s) in ?\ctx\admin
    SQL> @<ORA_HOME>\ctx\admin\dridisp.plb
    Package body created.
    SQL> select object_name, status from user_objects where status like 'IN%';
    no rows selected
    conn test/test
    SQL> create index simple_index on simple(text) indextype is ctxsys.context ;
    Index created.
    Notes
    Note1. CONTEXT QUERIES WILL STILL NOT RUN.
    SQL> insert into simple values (1, 'the cat sat on the mat') ;
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> select pk from simple where contains(text, 'cat') >0 ;
    select pk from simple where contains(text, 'cat') >0
    ERROR at line 1:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-06550: line 1, column 7:
    PLS-00201: identifier 'CTXSYS.DR_REWRITE' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    Edit <ORA_HOME\admin\orcl\pfile\init.ora
    where orcl is your database name
    Remove the line "text_enable=true" and bounce the database.
    SQL> select pk from simple where contains(text, 'cat') >0 ;
    PK
    1
    Best Regards

  • SAP R/3 4.6C Installation in HPUX /oracle 10g  - Error ORADBUSR_IND_ORA

    Hi all
    While installing 4.6C in Oracle 10g/HPUX, I get the below error towards the end.
    Can some help me to over come this error
    Regards
    Senthil
    .  Oracle Version:                     10.2.0.2.0
    .  Parametervalue os_authent_prefix:   OPS$
    .  Schema Id:                          R3
    .  Database User (Schema):             SAPR3
    .  SAP R/3 Administrator:              OPS$SUPADM
    unable to assign default tablespace to user: SAPR3
    begin
    ERROR at line 1:
    ORA-00959: tablespace 'PSAPUSER1D' does not exist
    ORA-06512: at line 90
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
    With the Partitioning and Data Mining options
    ERROR 2008-03-11 20:15:46 ORADBUSR_IND_ORA ExecuteCheck:0
        Exit code from /oracle/SUP/102_64/bin/sqlplus: 191.
    ERROR 2008-03-11 20:15:46 ORADBUSR_IND_ORA InternalInstallationDo:0
        Phase failed.
    ERROR 2008-03-11 20:15:46 ORADBUSR_IND_ORA InstallationDo:0
        Phase failed.
    ERROR 2008-03-11 20:15:47 Main
        Installation aborted.

    After editing the sql script
    Edit the oradbusr.sql file in the installation directory and change
    the row
    if substr(upper('&&1'),1,5) = 'SAPR3' then
    to
    if substr(upper('&&1'),1,5) = 'SAPR3notCorrect' then
    not supported:
    Schemaowner has to be SAPR3 or SAP<SID> where <SID>
    has to be a three digit Identifier starting with a character
    begin
    ERROR at line 1:
    ORA-06510: PL/SQL: unhandled user-defined exception
    ORA-06512: at line 32
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
    With the Partitioning and Data Mining options
    ERROR 2008-03-12 09:32:34 ORADBUSR_IND_ORA ExecuteCheck:0
        Exit code from /oracle/SUP/102_64/bin/sqlplus: 110.
    ERROR 2008-03-12 09:32:34 ORADBUSR_IND_ORA InternalInstallationDo:0
        Phase failed.
    ERROR 2008-03-12 09:32:34 ORADBUSR_IND_ORA InstallationDo:0
        Phase failed.
    ERROR 2008-03-12 09:32:34 Main
        Installation aborted.
    Can you help
    Regards
    Senthil

  • Different plsql for different Oracle versions

    Hi everyone,
    I am working on a plsql script which may be run on multiple databases. Unfortunately, I have a need to run one query type if the version is 10g, and another if it is 9i. The 10g query is preferable for the type & amount of information it returns, but 9i does not have the same level of support. I wrote the below (dumbed down for posting purposes) to do this:
    spool sqlLog.txt append
    set heading off;
    SET NEWPAGE 0;
    SET SPACE 0;
    SET LINESIZE 32767;
    SET PAGESIZE 0;
    --SET ECHO OFF;
    SET FEEDBACK OFF;
    SET VERIFY OFF;
    SET HEADING OFF;
    SET MARKUP HTML OFF;
    SET TERMOUT OFF;
    SET TRIMOUT ON;
    SET TRIMSPOOL ON;
    SET WRAP OFF ;
    SET LONG 4000;
    SET LONGCHUNKSIZE 500;
    set serverout on;
    set serveroutput on;
    declare     
    ver VARCHAR2(64);
    BEGIN
    select v.version into ver from product_component_version v where product like '%Oracle%';
    ver:=substr(ver,0,2); --remove anything but the highest version number, a.k.a. 9 or 10.
    dbms_output.put_line('ver: '||ver);
    --10g
    IF to_number(ver)>=10
    THEN
         for csr_10g in (SELECT sql_fulltext, a.parsing_schema_name, b.name, b.value_string
                             FROM V$SQL a left outer join v$sql_bind_capture b ON a.SQL_ID = b.SQL_ID)
              loop
                dbms_output.put_line(csr_10g.sql_fulltext||';'|| csr_10g.parsing_schema_name||';'|| csr_10g.name||';'|| csr_10g.value_string);
             end loop;
    ELSE
    --9i
         for csr_9i in (SELECT a.sql_Text, b.Schemaname
                             FROM v$sqlarea a left outer join v$session b ON a.parsing_schema_id=b.schema#
              loop
                dbms_output.put_line(csr_9i.sql_text||';'|| csr_9i.schemaname||';');
             end loop;
    END IF;
    END;
    --run;
    spool off;
    exit;If I run this on a 10g database, it works correctly, spooling the query return to a file.
    If I run this on a 9i database, it will not run, and i get these errors:
                             FROM V$SQL a left outer join v$sql_bind_capture b ON a.SQL_ID = b.SQL_ID --combine to also find the bound variables used
    ERROR at line 13:
    ORA-06550: line 13, column 35:
    PL/SQL: ORA-00942: table or view does not exist
    ORA-06550: line 12, column 17:
    PL/SQL: SQL Statement ignored
    ORA-06550: line 27, column 30:
    PLS-00364: loop index variable 'CSR_10G' use is invalid
    ORA-06550: line 27, column 9:
    PL/SQL: Statement ignored
    Am I doing something wrong with my syntax, or is there another way to go about this?
    Thanks!

    Hi,
    Dynamic SQL, like John suggested, might be the most elegant solution, but here are some others to consider:
    (1) Create dummy objects. Your code guarantees that you'll never get a run-time error trying to query v$sql in Oracle 9, but the problem is that you're getting a compile-time error just by referencing it. So create a v$sql: a dummy table in your own schema, a synonym to the Oracle 10 data dictionary via a database link, anything just so it compiles.
    (2) Create real objects. For example, in your Oracle 9 database, create a view called v$sql, based on v$sqlarea and v$session, that has all the same columns you use in Oracle 10. If you can do this, you won't even need an IF statement in your PL/SQL; the same code that runs against the data dictionary v$sql in Oracle 10 will run against your own schema's v$sql in Oracle 9.
    (3) Isolate the problems. Write two different versions of a package, one for each version, and put all version-dependent code in the package. In most of your code, call the procedure to do the version-dependent stuff. For example, don't open a cursor in your program: instead, call the package to open a cursor.
    (4) Comment Out. Klugy but cute. Write your PL/SQL without IF statements, like this:
    BEGIN
    &v10     for csr_10g in (SELECT sql_fulltext, a.parsing_schema_name, b.name, b.value_string
    &v10                         FROM V$SQL a left outer
    &v9     for csr_9i in (SELECT a.sql_Text, b.Schemaname
    &v9                         FROM v$sqlarea a left outer join v$session b ON a.parsing_schema_id=b.schema#
    &v9                                                                                  join v$sql_bind_capture b ON a.SQL_ID = b.SQL_ID)
              loop
    &v10            dbms_output.put_line(csr_10g.sql_fulltext||';'|| csr_10g.parsing_schema_name||';'|| csr_10g.name||';'|| csr_10g.value_string);
    &v9            dbms_output.put_line(csr_9i.sql_text||';'|| csr_9i.schemaname||';');
             end loop;
    END;Compile your PL/SQL in SQL*Plus.
    Define two substitution variables: v10 and v9.
    In Oracle 10, v10 make " " and make v9 "--".
    In Oracle 9, v10 make "--" and make v9 " ".
    You can do the assignments on the fly with the SQL*Plus "COLUMN ... NEW_VALUE" command.
    In either database, code that only works in the other version will be commented out. Your code will look like hell (good spacing and comments will make it less hard to read), but it will compile and work.
    None of these ideas are mutually exclusive. You might want to do dynamic SQL in some places, and use on dummy objects in others, for example.

  • Oracle Spatial Error

    Hi,
    I am getting the following error:
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-13203: failed to read USER_SDO_GEOM_METADATA view
    ORA-13203: failed to read USER_SDO_GEOM_METADATA view
    ORA-06512: at "MDSYS.SDO_INDEX_METHOD_10I", line 10
    SQL> CREATE TABLE table01
      2  (
      3      col01  DECIMAL(10) NOT NULL,
      4      col02  MDSYS.SDO_GEOMETRY NOT NULL
      5  );
    Table created.
    SQL>
    SQL> CREATE INDEX idx01 ON table01(col01)
      2   INDEXTYPE IS MDSYS.SPATIAL_INDEX PARAMETERS ('SDO_COMMIT_INTERVAL=10000 SDO_RTR_PCTFREE = 0');
    CREATE INDEX idx01 ON table01(col01)
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-13200: internal error [Unsupported Type] in spatial indexing.
    ORA-06512: at "MDSYS.SDO_INDEX_METHOD_10I", line 10
    SQL> Here's the version of the sql:
    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    CORE    10.2.0.4.0      Production
    TNS for Linux: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    SQL> Here's the OS:
    SQL> select platform_id, platform_name from v$database;
    PLATFORM_ID
    PLATFORM_NAME
             13
    Linux x86 64-bit
    SQL>

    The first error is because you don't have any spatial metadata. You need to insert into user_sdo_geom_metadata first. See the documentation for examples of how to do this.
    The canned example you showed failed because you tried to index col01 rather than col02.

  • Please Ignore - Oracle Spatial Error

    Hi,
    I am getting the following error:
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-13203: failed to read USER_SDO_GEOM_METADATA view
    ORA-13203: failed to read USER_SDO_GEOM_METADATA view
    ORA-06512: at "MDSYS.SDO_INDEX_METHOD_10I", line 10
    Is this an licensing issue?
    Edited by: GreenHorn on Dec 22, 2009 1:56 AM

    sorry abt that, i was not sure to post this in plsql forum or database forum.
    here's the info:
    SQL> CREATE TABLE table01
      2  (
      3      col01  DECIMAL(10) NOT NULL,
      4      col02  MDSYS.SDO_GEOMETRY NOT NULL
      5  );
    Table created.
    SQL>
    SQL> CREATE INDEX idx01 ON table01(col01)
      2   INDEXTYPE IS MDSYS.SPATIAL_INDEX PARAMETERS ('SDO_COMMIT_INTERVAL=10000 SDO_RTR_PCTFREE = 0');
    CREATE INDEX idx01 ON table01(col01)
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-13200: internal error [Unsupported Type] in spatial indexing.
    ORA-06512: at "MDSYS.SDO_INDEX_METHOD_10I", line 10
    SQL> Here's the version of the sql:
    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    CORE    10.2.0.4.0      Production
    TNS for Linux: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    SQL> Here's the OS:
    SQL> select platform_id, platform_name from v$database;
    PLATFORM_ID
    PLATFORM_NAME
             13
    Linux x86 64-bit
    SQL>

  • Oracle type error using cygwin on windows to connect via sqlplus to oracle.

    Hi,
    Found already some information on the internet regarding this topic but wasn't able to solve it so far.
    So all informartion, tips are more then welcome.
    Scripts runs with admin account 'DBA_Services'
    Sqlplus connection sqlplus sys/***@oracle_sid
    Thx already
    OWBrun Script (v2.0)
    Enviroment : GAMMA
    Hostname : pvspdb04
    Database : sgviv5
    Date : 05Nov2010
    Time : 15:58:21
    Schema : dwhins
    RuntimeRep: OWBRUN
    Mapping : INS_DLITE_CTRL_JOB_03
    Location : DNA_STAGING_LOCATION
    Type load : PLSQL
    Custom par: ,
    Identifier: INS_DLITE_CTRL_JOB_03_20101105155820
    Logfile : /ING/DWH/ora_dwh_loader/log/dwhins/owbrun_dwhins_INS_DLITE_CTRL_JOB_03_20101105155820.log
    === Check DB connect ===
    05-NOV-2010 15:58:22
    DB connection test is OK (attemps=1)
    === OWB RUN ===
    SQL*Plus: Release 10.1.0.2.0 - Production on Fri Nov 5 15:58:22 2010
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production With the Partitioning, OLAP and Data Mining options
    SQL> SQL> SQL> SQL>
    Session altered.
    Elapsed: 00:00:00.00
    SQL>
    Session altered.
    Elapsed: 00:00:00.00
    SQL>
    Session altered.
    Elapsed: 00:00:00.00
    SQL>
    Session altered.
    Elapsed: 00:00:00.00
    SQL> SQL> SQL> SQL> SQL>
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.01
    SQL> ++ Execute owbruntask dwhins.INS_DLITE_CTRL_JOB_03
    SQL>
    Stage 1: Decoding Parameters
    | location_name=DNA_STAGING_LOCATION
    | task_type=PLSQL
    | task_name=INS_DLITE_CTRL_JOB_03
    Stage 2: Opening Task
    declare
    ERROR at line 1:
    ORA-20001: Task not found - Please check the Task Type, Name and Location are correct.
    ORA-06512: at line 267
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production With the Partitioning, OLAP and Data Mining options Exitcode = 33 Error : OWBRUN INS_DLITE_CTRL_JOB_03
    Date : 05Nov2010
    Time : 15:58:24

    This are the most important scripts:
    DLITE_Sub1_201.ksh
    #!/bin/ksh
    #set -x
    cp /ING/DWH/ora_dwh_loader/conf/stgins.cfg.sgviv5 /ING/DWH/ora_dwh_loader/conf/stgins.cfg
    export FPATH=/ING/IIB/DNA/Interfaces/Scripts
    export FINPATH=/ING/IIB/DNA/In/
    export FOUTPATH=/ING/IIB/DNA/Out/
    #load script into memory
    autoload DLITE_fct_JS
    #load script into memory
    #autoload DNA_fct_JS_EXEC
    JS_SCRIPT=`basename $0`
    JS_ID=201
    JS_TSK_ID=001;JS_TSK_NAM="FP_START_Remove_Files"
    echo "\nstart subtask '${JS_TSK_NAM}"
    cd /ING/IIB/DNA/Out
    rm -f DLITE_CAPSIL_CODE_*.CSV
    rm -f DLITE_CAPSIL_VAL_*.CSV
    rm -f DLITE_VARIA_CODE_*.CSV
    rm -f DLITE_VARIA_VAL_*.CSV
    echo "\nend subtask '${JS_TSK_NAM}"
    JS_TSK_ID=002;JS_TSK_NAM="F_DLITE_01_CODE_DESC"
    cd /ING/IIB/DNA/Interfaces/Scripts
    echo "\nstart subtask '${JS_TSK_NAM}"
    ksh DLITE_owbrun.ksh -s dwhins -t PROCESS -m F_DLITE_01_CODE_DESC -l LOC_DNA_FLOW_STORE -c ","
    JS_TSK_STA=$?
    echo "\nverifying correct execution of subtask '${JS_TSK_NAM}"
    if [ ${JS_TSK_STA} -ne 0 ] ; then
    ksh DLITE_owbrun.ksh -s dwhins -t PLSQL -m INS_DLITE_CTRL_JOB_03 -l DNA_STAGING_LOCATION -c ","
    exit 1
    fi
    echo "\nend subtask '${JS_TSK_NAM}"
    JS_TSK_ID=002;JS_TSK_NAM="Check header/footer of files"
    echo "\nstart subtask '${JS_TSK_NAM}"
    ksh DLITE_CheckHeaderFooter.ksh
    JS_TSK_STA=$?
    if [ ${JS_TSK_STA} -ne 0 ] ; then
    exit 1
    fi
    echo "\nend subtask '${JS_TSK_NAM}"
    DLITE_owbrun.ksh
    . /ING/IIB/DNA/Interfaces/Scripts/DLITE_ods_set_env.ksh
    fout_melding()
         echo "Error : ${1}" | tee -a ${LOGFILE}
         echo " Date     :     $(date +%d%b%Y)" >> ${LOGFILE}
         echo " Time     :     $(date +%H:%M:%S)" >> ${LOGFILE}
    if [ -s ${LOGFILE:=/tmp/foutmelding} ]
    then
    cat ${LOGFILE} | mailx -s "'hostname':${ORACLE_SID};'Enviroment' :${APPL_ENV} : Error OWB run ${SCHEMA} : ${MAPPING}" "${dstG_OWB_errors[*]} ${dstA_OWB_errors[*]}"
    else
    echo "Error : ${1}" | mailx -s "'hostname':${ORACLE_SID};'Enviroment' :${APPL_ENV} : Error OWB run ${SCHEMA} : ${MAPPING}" "${dstG_OWB_errors[*]} ${dstA_OWB_errors[*]}"
    fi
    rm -f ${STATSFILE}
    waarschuwing()
         echo "Warning : ${1}" | tee -a ${LOGFILE}
         echo " Date     :     $(date +%d%b%Y)" >> ${LOGFILE}
         echo " Time     :     $(date +%H:%M:%S)" >> ${LOGFILE}
    if [ -s ${LOGFILE:=/tmp1/foutmelding} ]
    then
    echo ${1} | mailx -s "'hostname':${ORACLE_SID};'Enviroment' :${APPL_ENV} : Warning OWB run ${SCHEMA} : ${TABLENAME}" "${dstG_OWB_errors[*]} ${dstA_OWB_errors[*]}"
    else
    echo "Warning : ${1}" | mailx -s "'hostname':${ORACLE_SID};'Enviroment' :${APPL_ENV} : Warning OWB run ${SCHEMA} : ${TABLENAME}" "${dstG_OWB_errors[*]} ${dstA_OWB_errors[*]}"
    fi
    USAGE="Usage : owbrun.ksh -s target_schema -t type -m mapping -l location -c custom_param -p system_param [-i ident]"
    umask 022
    ORVERSION=2.0
    set -- `getopt s:t:m:c:p:i:l: $*`
    if [ $? -ne 0 ]
    then
         echo ${USAGE}
         exit 2
    fi
    while [ $# -gt 0 ]
    do
    case ${1} in
         -s)
              SCHEMA=${2}
              shift 2
         -t)
              LOADTYPE=${2}
              shift 2
         -l)
              LOCATION=${2}
              shift 2
         -m)
              MAPPING=${2}
              shift 2
         -i)
              IDENT=${2}
              shift 2
         -c)
              CUSTPARAM=${2}
              shift 2
              shift
              break
    esac
    done
    export LISTFILENAMES=${*}
    if [ "${SCHEMA}" = "" ]
    then
         fout_melding "Target Schema is mandatory"
         echo ${USAGE}
         exit 1
    fi
    if [ "${MAPPING}" = "" ]
    then
         echo "Error : Mapping is mandatory"
         echo ${USAGE}
         exit 1
    fi
    if [ "${LOCATION}" = "" ]
    then
         echo "Error : Location is mandatory"
         echo ${USAGE}
         exit 1
    fi
    MAPPING=$(echo ${MAPPING} | tr [:lower:] [:upper:])
    if [ "${LOADTYPE}" = "" ]
    then
         echo "Error : Type (PLSQL/SQLLDR/PROCESS) is mandatory"
         echo ${USAGE}
         exit 1
    fi
    LOADTYPE=$(echo ${LOADTYPE} | tr [:lower:] [:upper:])
    if [ "${LOADTYPE}" != "PLSQL" -a "${LOADTYPE}" != "SQLLDR" -a "${LOADTYPE}" != "PROCESS" ]
    then
         echo "Error : Illegal type ${LOADTYPE}"
         echo ${USAGE}
         exit 1
    fi
    export SCHEMA=$(echo ${SCHEMA} | tr [:upper:] [:lower:])
    export UPSCHEMA=$(echo ${SCHEMA} | tr [:lower:] [:upper:])
    # Call the Configuration script
    . /ING/DWH/ora_dwh_loader/bin/config.ksh -s ${SCHEMA}
    exitcode=$?
    if [ $exitcode -ne 0 ]
    then
         echo "Error : during config.ksh"
         exit ${exitcode}
    fi
    if [ "${IDENT}" = "" ]
    then
         IDENT=${MAPPING}_$(date +%Y%m%d%H%M%S)
         CUSTPARAM=$(echo ${CUSTPARAM} | awk -f ${BASEPATH}/bin/owbrun.awk "datum=$(date +%Y%m%d%H%M%S)")
    fi
    if [ "${RUNREP}" = "" ]
    then
         fout_melding "Runtime Repository is mandatory (see ${SCHEMA}.cfg)"
         echo ${USAGE}
         exit 1
    fi
    export BPIDFILE=${TMPDRIVE}/owbrun_${SCHEMA}_${IDENT}_$$.pidlist
    export LOGFILE=${LOGDRIVE}/owbrun_${SCHEMA}_${IDENT}.log
    export STATSFILE=${LOGDRIVE}/owbrun_${SCHEMA}_${IDENT}.stats
    echo "OWBrun Script (v${ORVERSION})" > ${LOGFILE}
    echo "Enviroment : ${APPL_ENV}" >> ${LOGFILE}
    echo "Hostname : $(hostname)" >> ${LOGFILE}
    echo "Database : ${ORACLE_SID}" >> ${LOGFILE}
    echo "Date     :     $(date +%d%b%Y)" >> ${LOGFILE}
    echo "Time     :     $(date +%H:%M:%S)" >> ${LOGFILE}
    echo "Schema     : ${SCHEMA}" >> ${LOGFILE}
    echo "RuntimeRep: ${RUNREP}" >> ${LOGFILE}
    echo "Mapping : ${MAPPING}" >> ${LOGFILE}
    echo "Location : ${LOCATION}" >> ${LOGFILE}
    echo "Type load : ${LOADTYPE}" >> ${LOGFILE}
    echo "Custom par: ${CUSTPARAM}" >> ${LOGFILE}
    echo "Identifier: ${IDENT}" >> ${LOGFILE}
    echo "Logfile     :     ${LOGFILE}" >> ${LOGFILE}
    echo " " >> ${LOGFILE}
    echo "Hostname : $(hostname)" > ${STATSFILE}
    echo "Database : ${ORACLE_SID}" >> ${STATSFILE}
    echo "Schema     : ${SCHEMA}" >> ${STATSFILE}
    echo "Mapping : ${TABLENAME}" >> ${STATSFILE}
    echo "Period : P${PERIOD}" >> ${STATSFILE}
    echo "Type load : ${LOADTYP}" >> ${STATSFILE}
    echo "Identifier: ${IDENT}" >> ${STATSFILE}
    echo "Start     : $(date +%d%m%Y%H%M%S)" >> ${STATSFILE}
    echo "=== Check DB connect ===" >> ${LOGFILE}
    ${BASEPATH}/bin/chk_db_connect.ksh >> ${LOGFILE}
    exitcode=${?}
    if [ $exitcode -ne 0 ]
    then
         fout_melding "Could NOT connect to database ${ORACLE_SID}"
         exit ${exitcode}
    fi
    echo "=== OWB RUN ===" >> ${LOGFILE}
    sqlplus 'system/*****' <<-EOF >> ${LOGFILE}
    set timing on
    set serveroutput on
    alter session set sort_area_size=2621440;
    alter session set hash_area_size=2621440;
    alter session set skip_unusable_indexes=true;
    alter session enable resumable timeout ${ResumableTimeout} name 'OwbRunTask ${UPSCHEMA}.${MAPPING}';
    set pages 0
    set timing on
    set serveroutput on
    WHENEVER SQLERROR EXIT SQL.SQLCODE
    exec dbms_application_info.set_module('OWBRUNTASK','${UPSCHEMA}.${MAPPING}');
    Prompt ++ Execute owbruntask ${SCHEMA}.${MAPPING}
    declare
    p_repos_owner varchar2(100):= '${RUNREP}';
    p_location_name varchar2(100):='${LOCATION}';
    p_task_type varchar2(100) :='${LOADTYPE}';
    p_task_name varchar2(100) default '${MAPPING}';
    p_system_params varchar2(100) default '","';
    p_custom_params varchar2(200) default '${CUSTPARAM}"';
    p_oem_friendly number default 0;
    l_oem_style boolean := case (p_oem_friendly)
    when 0 then false
    else true
    end ;
    l_audit_execution_id number; -- Audit Execution Id
    l_audit_result number := ${RUNREP}.wb_rt_api_exec.RESULT_FAILURE; -- Result Code
    l_audit_result_disp varchar2(64) := 'FAILURE'; -- Result Display Code
    l_task_type_name varchar2(64); -- Task Type Name
    l_task_type varchar2(64); -- Task Type
    l_task_name varchar2(64); -- Task Name
    l_location_name varchar2(64); -- Location Name
    l_return number ;
    fout exception;
    opgepast exception;
    p_parameters varchar2(4000);
    p_parameter_kind number;
    l_anchor_offset number := 1;
    l_start_offset number := 1;
    l_equals_offset number;
    l_comma_offset number;
    l_value_offset number;
    l_esc_offset number;
    l_esc_count number;
    l_esc_char varchar2(4);
    l_parameter_name varchar2(4000);
    l_parameter_value varchar2(4000);
    begin
    p_custom_params:=replace(p_custom_params,'~',' ');
    execute immediate ('alter session set current_schema = ' || p_repos_owner) ;
    -- Initialize Return Code
    l_return := ${RUNREP}.wb_rt_api_exec.RESULT_FAILURE;
    -- Import Parameters
    dbms_output.put_line('Stage 1: Decoding Parameters');
    l_task_type_name := p_task_type ;
    if UPPER(l_task_type_name) = 'PLSQL'
    then
    l_task_type := 'PLSQL';
    elsif UPPER(l_task_type_name) = 'SQL_LOADER'
    then
    l_task_type := 'SQLLoader';
    elsif UPPER(l_task_type_name) = 'PROCESS'
    then
    l_task_type := 'ProcessFlow';
    else
    l_task_type := l_task_type_name;
    end if;
    l_task_name := p_task_name ;
    l_location_name := p_location_name ;
    dbms_output.put_line('| location_name=' || l_location_name);
    dbms_output.put_line('| task_type=' || l_task_type);
    dbms_output.put_line('| task_name=' || l_task_name);
    -- Decode Parameters
    begin
    -- Prepare Execution
    dbms_output.put_line('Stage 2: Opening Task');
    l_audit_execution_id := ${RUNREP}.wb_rt_api_exec.open(l_task_type, l_task_name, l_location_name);
    dbms_output.put_line('| l_audit_execution_id=' || to_char(l_audit_execution_id));
    commit;
    -- Override Parameters
    p_parameters:=p_system_params;
    p_parameter_kind :=${RUNREP}.wb_rt_api_exec.PARAMETER_KIND_SYSTEM;
    l_anchor_offset:= 1;
    l_start_offset:= 1;
    l_equals_offset:=0;
    l_comma_offset:=0;
    l_value_offset:=0;
    l_esc_offset:=0;
    l_esc_count:=0;
    l_esc_char:=null;
    l_parameter_name:=null;
    l_parameter_value:=null;
    begin
    loop
    l_equals_offset := INSTR(p_parameters, '=', l_start_offset);
    exit when l_equals_offset = 0;
    l_start_offset := l_equals_offset + 1;
    loop
    l_comma_offset := INSTR(p_parameters, ',', l_start_offset);
    if l_comma_offset = 0
    then
    l_comma_offset := length(p_parameters) + 1;
    exit;
    else
    l_esc_count := 0;
    l_esc_offset := l_comma_offset - 1;
    loop
    l_esc_char := SUBSTR(p_parameters, l_esc_offset, 1);
    exit when l_esc_char != '\';
    l_esc_count := l_esc_count + 1;
    l_esc_offset := l_esc_offset - 1;
    end loop;
    if MOD(l_esc_count, 2) != 0
    then
    l_start_offset := l_comma_offset + 1;
    else
    exit;
    end if;
    end if;
    end loop;
    l_parameter_name := LTRIM(RTRIM(SUBSTR(p_parameters, l_anchor_offset, l_equals_offset - l_anchor_offset)));
    l_parameter_value := SUBSTR(p_parameters, l_equals_offset + 1, l_comma_offset - (l_equals_offset + 1));
    -- Override Input Parameter
    ${RUNREP}.wb_rt_api_exec.override_input_parameter(l_audit_execution_id,l_parameter_name,l_parameter_value,p_parameter_kind);
    exit when l_comma_offset >= length(p_parameters)-1;
    l_start_offset := l_comma_offset + 1;
    l_anchor_offset := l_start_offset;
    end loop;
    end;
    p_parameters:=p_custom_params;
    p_parameter_kind :=${RUNREP}.wb_rt_api_exec.PARAMETER_KIND_CUSTOM;
    l_anchor_offset:= 1;
    l_start_offset:= 1;
    l_equals_offset:=0;
    l_comma_offset:=0;
    l_value_offset:=0;
    l_esc_offset:=0;
    l_esc_count:=0;
    l_esc_char:=null;
    l_parameter_name:=null;
    l_parameter_value:=null;
    begin
    loop
    l_equals_offset := INSTR(p_parameters, '=', l_start_offset);
    exit when l_equals_offset = 0;
    l_start_offset := l_equals_offset + 1;
    loop
    l_comma_offset := INSTR(p_parameters, ',', l_start_offset);
    if l_comma_offset = 0
    then
    l_comma_offset := length(p_parameters) + 1;
    exit;
    else
    l_esc_count := 0;
    l_esc_offset := l_comma_offset - 1;
    loop
    l_esc_char := SUBSTR(p_parameters, l_esc_offset, 1);
    exit when l_esc_char != '\';
    l_esc_count := l_esc_count + 1;
    l_esc_offset := l_esc_offset - 1;
    end loop;
    if MOD(l_esc_count, 2) != 0
    then
    l_start_offset := l_comma_offset + 1;
    else
    exit;
    end if;
    end if;
    end loop;
    l_parameter_name := LTRIM(RTRIM(SUBSTR(p_parameters, l_anchor_offset, l_equals_offset - l_anchor_offset)));
    l_parameter_value := SUBSTR(p_parameters, l_equals_offset + 1, l_comma_offset - (l_equals_offset + 1));
    -- Override Input Parameter
    ${RUNREP}.wb_rt_api_exec.override_input_parameter(l_audit_execution_id,l_parameter_name,l_parameter_value,p_parameter_kind);
    exit when l_comma_offset >= length(p_parameters)-1;
    l_start_offset := l_comma_offset + 1;
    l_anchor_offset := l_start_offset;
    end loop;
    end;
    -- Execute
    dbms_output.put_line('Stage 4: Executing Task');
    l_audit_result := ${RUNREP}.wb_rt_api_exec.execute(l_audit_execution_id);
    if l_audit_result = ${RUNREP}.wb_rt_api_exec.RESULT_SUCCESS
    then
    l_audit_result_disp := 'SUCCESS';
    elsif l_audit_result = ${RUNREP}.wb_rt_api_exec.RESULT_WARNING
    then
    l_audit_result_disp := 'WARNING';
    elsif l_audit_result = ${RUNREP}.wb_rt_api_exec.RESULT_FAILURE
    then
    l_audit_result_disp := 'FAILURE';
    else
    l_audit_result_disp := 'UNKNOWN';
    end if;
    dbms_output.put_line('| l_audit_result=' || to_char(l_audit_result) || ' (' || l_audit_result_disp || ')');
    -- Finish Execution
    dbms_output.put_line('Stage 5: Closing Task');
    ${RUNREP}.wb_rt_api_exec.close(l_audit_execution_id);
    commit;
    dbms_output.put_line('Stage 6: Processing Result');
    if l_oem_style
    then
    if l_audit_result = ${RUNREP}.wb_rt_api_exec.RESULT_SUCCESS
    then
    l_return := 0;
    elsif l_audit_result = ${RUNREP}.wb_rt_api_exec.RESULT_WARNING
    then
    l_return := 0;
    else
    l_return := l_audit_result;
    end if;
    else
    l_return := l_audit_result;
    end if;
    dbms_output.put_line('| exit=' || to_char(l_return));
    if (l_return = 3) then
    raise fout;
    elsif (l_return = 2 ) then
    raise opgepast;
    end if;
    exception
    when fout then
    raise_application_error(-20002, 'Error during executing task');
    when opgepast then
    raise_application_error(-20003, 'Warning during executing task');
    when no_data_found
    then
    raise_application_error(-20001, 'Task not found - Please check the Task Type, Name and Location are correct.');
    end;
    dbms_output.put_line('| exit=' || to_char(l_return));
    end ;
    EOF
    exitcode=${?}
    if [ ${exitcode} -ne 0 ]
    then
         echo "Exitcode = ${exitcode}" >> ${LOGFILE}     
         fout_melding "OWBRUN ${MAPPING} "
         exit ${exitcode}
    else
         echo "OWBRUN succesfull" >> ${LOGFILE}
    fi
    echo "---------------------------------------------------------------------" >> ${LOGFILE}
    echo "Date     :     $(date +%d%b%Y)" >> ${LOGFILE}
    echo "Time     :     $(date +%H:%M:%S)" >> ${LOGFILE}
    echo "Terminated succesfull" >> ${LOGFILE}
    echo "---------------------------------------------------------------------" >> ${LOGFILE}
    echo "Stop     : $(date +%d%m%Y%H%M%S)" >> ${STATSFILE}
    times >> ${STATSFILE}
    #echo "Loader Statistics" >> ${LOGFILE}
    #awk -f ${BASEPATH}/bin/loadstat.awk ${STATSFILE} >> ${LOGFILE}
    #${BASEPATH}/bin/loadstat.ksh -s ${SCHEMA} -f ${STATSFILE}
    exit 0

  • SQl server to Oracle -- Replicat error command disallowed by current ..

    I am trying to set replication b/w sql serve *& oracle..
    Source -- SQL server 2005 SP4.
    Target - Oracle 11.2.0.3 - using ASM ..single instance..
    The error log is ....
    2012-02-10 17:33:47 ERROR OGG-00664 Oracle GoldenGate Delivery for Oracle, rcatd1.prm: OCI Error beginning session (status = 15000-ORA-15000: command disallowed by current instance type).
    2012-02-10 17:33:47 ERROR OGG-01668 Oracle GoldenGate Delivery for Oracle, rcatd1.prm: PROCESS ABENDING.
    2012-02-10 17:34:00 INFO OGG-00987 Oracle GoldenGate Command Interpreter for Oracle: GGSCI command (oracle): edit params RCATD1.
    2012-02-10 17:34:10 INFO OGG-00987 Oracle GoldenGate Command Interpreter for Oracle: GGSCI command (oracle): start replicat RCATD1.
    2012-02-10 17:34:10 INFO OGG-00963 Oracle GoldenGate Manager for Oracle, mgr.prm: Command received from GGSCI on host 10.1.7.80 (START REPLICAT RCATD1 ).
    2012-02-10 17:34:10 INFO OGG-00975 Oracle GoldenGate Manager for Oracle, mgr.prm: REPLICAT RCATD1 starting.
    2012-02-10 17:34:10 INFO OGG-00995 Oracle GoldenGate Delivery for Oracle, rcatd1.prm: REPLICAT RCATD1 starting.
    2012-02-10 17:34:11 ERROR OGG-00664 Oracle GoldenGate Delivery for Oracle, rcatd1.prm: OCI Error beginning session (status = 15000-ORA-15000: command disallowed by current instance type).
    2012-02-10 17:34:11 ERROR OGG-01668 Oracle GoldenGate Delivery for Oracle, rcatd1.prm: PROCESS ABENDING.
    edit params RCATD1
    REPLICAT RCATD1
    SOURCEDEFS /home/oracle/GG/dirdef/catalog.def
    USERID ggs,PASSWORD ggs
    MAP dbo.tmp_webskuchs,TARGET catalog.tmp_webskuchs;
    the steps I am doing are
    [oracle@fl1dvmatgdb2 GG]$ ./ggsci
    Oracle GoldenGate Command Interpreter for Oracle
    Version 11.1.1.1.2 OGGCORE_11.1.1.1.2_PLATFORMS_111004.2100
    Linux, x64, 64bit (optimized), Oracle 11g on Oct 4 2011 23:49:46
    Copyright (C) 1995, 2011, Oracle and/or its affiliates. All rights reserved.
    GGSCI (fl1dvmatgdb2) 1> dblogin userid ggs, password ggs
    Successfully logged into database.
    GGSCI (fl1dvmatgdb2) 2> start replicat RCATD1
    Sending START request to MANAGER ...
    REPLICAT RCATD1 starting
    GGSCI (fl1dvmatgdb2) 3> info RCATD1, detail
    REPLICAT RCATD1 Initialized 2012-02-10 15:28 Status STOPPED
    Checkpoint Lag 00:00:00 (updated 02:19:44 ago)
    Log Read Checkpoint File dirdat/l2000000
    First Record RBA 0
    Extract Source Begin End
    dirdat/l2000000 * Initialized * First Record
    Current directory /home/oracle/GG
    Report file /home/oracle/GG/dirrpt/RCATD1.rpt
    Parameter file /home/oracle/GG/dirprm/rcatd1.prm
    Checkpoint file /home/oracle/GG/dirchk/RCATD1.cpr
    Checkpoint table GGS.CHKPT
    Process file /home/oracle/GG/dirpcs/RCATD1.pcr
    Stdout file /home/oracle/GG/dirout/RCATD1.out
    Error log /home/oracle/GG/ggserr.log
    can anybody give me a clue why I am getting ora-15000 on GG
    Thanks in advance..
    Edited by: 898080 on Feb 10, 2012 2:47 PM

    Konsultant wrote:
    Hi all,
    Other details: every time database is started it give message "ORA-15110: no diskgroups mounted" then we manually mount the disk and command
    complete successfully. You can find diskgroup name/s with this query :
    SQL> select name from v$asm_diskgroup;Then use that diskgroup name in the command that will modify spfile's parameter [ASM_DISKGROUPS|http://download.oracle.com/docs/cd/B28359_01/server.111/b31107/asminst.htm#BHCCHHIG] :
    SQL> alter system set asm_diskgroups = 'DISKGROUP_NAME' scope=spfile;
    when we execute some sql then recievese error "ORA-01219: database not open: queries allowed on fixed tables/views only". This simply means that your database is not open.
    Look:
    SQL> startup force mount;
    ORACLE instance started.
    Total System Global Area  209715200 bytes
    Fixed Size                  1248140 bytes
    Variable Size              92275828 bytes
    Database Buffers          113246208 bytes
    Redo Buffers                2945024 bytes
    Database mounted.
    SQL> select status from v$instance;
    STATUS
    MOUNTED
    SQL> select * from my_table;
    select * from my_table
    ERROR at line 1:
    ORA-01219: database not open: queries allowed on fixed tables/views only
    SQL> alter database open;
    Database altered.
    SQL> select status from v$instance;
    STATUS
    OPEN
    SQL> select * from my_table
      no rows selected
    when i execute alter database open command recieving "ORA-15000: command disallowed by current instance type".Most likely because your environment is set for ASM instance , and in the case of the 'alter database open' command, environment should be set for RDBMS . See disscusion about that ORA-15000: command disallowed by current instance type
    another question is that is it possible that i just drop and recreate the database and add the current diskgroups to new created database.yes

Maybe you are looking for

  • HTML Report Viewer: No Print Button

    Greetings, I am using the HTML Report Viewer in an Asp.net Web Form. My problem is there is no print button, even though ShowPrintButton="True" Any help would be greatly appreciated. Many thanks, Todd <rsweb:ReportViewer ID="MainReportViewer" runat="

  • Message bind Not appearing as should

    Dear All; I have an application where i bind, the labels of the buttons and fields, from a pre-existing file using load bundle, and it happens that the names binded are arabic, and when i run locally they appear as should, only when i deployed to ora

  • URGENT: handshake failure

    I'm trying to connect to a site (https://secure.web.telia.com) using URLConnection in J2SDK1.4rc1. No problem loading the page in IE6, but with JSSE, I get: ��javax.net.ssl.SSLException: error while writing to socket End of handshake: ��init context

  • Brightness and battery?

    :moving the slider even a bit changes the brightness from too high to too low.then again if i change it,it becomes too low,like there's no middle setting,either full bright,or nothing.i have tried to change it from the amd vision control engine,same

  • Non existant videos in iTunes/iPad

    In iTunes, when my iPad is connected, it says that I have 5 unwatched TV shows. These shows don't exist in iTunes, nor are they actually on my iPad. I have tried mulitpul times to delete these files.  They delete, but then show up the next time I syn