ORA-31655, ora-39039 when you do impdp on 10.2.0.5

After moving to 10.2.0.4 in 10.2.0.5, failure of orders impdp who now worked with:

ORA-31655: no data or metadata of objects selected for employment
ORA-39039: pattern Expression 'IN ('MASTERDB')' contains no valid schema

My impdp command:

Impdp LOCALDB/LOCALDB parfile = remote_dump.par


Parfile table of contents:
----------------------
DUMPFILE = "A058.01.dmp."
LOGFILE = "A058.01.log."
DIRECTORY = DB_DOWNLOAD
include = TABLE: 'IN ('algorithm_builder', 'algorithm_definition', 'install', 'applicable_req') '.
SCHEMAS = MASTERDB
REMAP_SCHEMA = MASTERDB:LOCALDB
REMAP_TABLESPACE = AL_INDX:SESD, LOB_TBSP:SESD
CONTENT = DATA_ONLY
TABLE_EXISTS_ACTION = TRUNCATE

The expdp is done in another plant currently on 10.2.0.4.

What Miss me. Before 10.2.0.5, it worked. At that time, I don't have diagrams = line in, but read a thread needed to conduct "intended" on 10.2.0.5. But who did not help with the error 31655 and only added the 39039.

Thanks in advance.

Is a 10.2.0.5 bug, just change:

include = TABLE: 'IN ('algorithm_builder', 'algorithm_definition', 'install', 'applicable_req') '.

for

TABLES is MASTERDB.algorithm_builder, MASTERDB.algorithm_definition, MASTERDB. Facility, MASTERDB.applicable_req

I hope this helps

Best regards
Alfonso

Tags: Database

Similar Questions

  • ORA-01789 - when you use the operator of TABLE and SEM_MATCH

    Client version: 11.1.0.7 on Windows 7 (32 bit)
    Server version: 11.2.0.3 on Windows 7 (64-bit)

    I am model prototyping a simple RDF, and I'm getting a ' ORA-01789: block has an incorrect number of columns in query results "when you use the SEM_MATCH with the SCOREBOARD operator.

    I can run this:
    select id, a.triple.GET_TRIPLE() from drik.rdf_data a
    and the first line is:
    (<http://www.ihc.com/drik/term#2>, <http://www.w3.org/2000/01/rdf-schema#subClassOf>, <http://www.ihc.com/drik/term#1>)
    Now, I want to use the TABLE like this:
    select
      c
    from 
      table(sem_match('{ <http://www.ihc.com/drik/term#2> <http://www.w3.org/2000/01/rdf-schema#subClassOf> ?c . }', 
            sem_models('Prototype'),
            sem_rulebases('RDFS'),
            sem_aliases(sem_alias('rdfs','http://www.w3.org/2000/01/rdf-schema/')),
            null
            ))
    But this performance gives the ORA-07189. Even try SELECT * gives the same error.

    I expect to get a refund:
    <http://www.ihc.com/drik/term#1>
    How should I approach troubleshooting this?

    Thank you, Steve

    Thanks for posting the script. I was able to reproduce the error locally.

    The problem is the use of the sem_apis.create_rules_index () procedure, which has been deprecated:
    http://docs.Oracle.com/CD/E11882_01/AppDev.112/e25609/sdo_rdf_newfeat.htm#autoId26

    Please use sem_apis.create_entailment () instead, and the error should disappear.
    http://docs.Oracle.com/CD/E11882_01/AppDev.112/e25609/sem_apis_ref.htm#CHEHDGBD

    Thank you
    Matt

  • FRM-40735 / ORA-06508 when you call procedure of a fastened package

    Hi all
    I have a problem when you call a procedure in one of my attached libraries. the code is:

    When upper (trim (NOT_MSG_NAME)) = "REN_MSG_REQ_REG_PERMENANT" then SERV. CLFRM_PBL_NRQP_F(:Parameter.NOTIFICATION_ID);

    and it gives me FRM-40735 indicating that an ORA-06508 has occurred during the call to the procedure.
    Important and funny thing is when I add the path to the library, it works very well!
    When I join, remove the path, it won't as I said...

    the location of the library is: D:\DevSuiteHome\cgenf61\ADMIN, the path is added in the FORMS_PATH and all others
    libraries attached to the form in the same way are working well!

    I use the Forms 10.1.2.0.2 generator and the platform is windows and I migrated forms 9.0.4.0.19
    anyone with any ideas what may be the problem?

    Hello

    Please check the path again and also to create working directory by modifying formsweb.cfg.

    hope this helps you.

    Sarah

  • ORA-28500 when you access an Excel file

    Hello

    I'm getting the dreaded ORA-28500 "optional not implemented" when you try to access an Excel file via ODBC HS. This is a bug in 11.1.0.6 (6701400), however my flavor is 11.1.0.7 fully patched. Because I'm trying to use the OLAP on Windows XP 32, I installed version 11.1.0.6 and applied the patches 6890831 and 7682184, as recommend it on [this page | http://www.oracle.com/technology/products/bi/olap/collateral/olap_certification.html], without as far as I can tell error. This should have fixed the problem with dg4odbc according to the bug page, but when now trying to access an Excel spreadsheet I get the exact same message:
    SQL> select * from "International$"@refdata;
    select * from "International$"@refdata
                  *
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Microsoft][ODBC Excel Driver]Optional feature not implemented
    ORA-02063: preceding 2 lines from REFDATA
    Is it possible that the patch do not go as planned? Or the second patch to restore the old behavior? I am really lost at what to do now.

    Thanks for your help,
    Chris

    Hi Chris,

    The problem is really fixed in 11.1.0.7 However you must change this setting:
    HS_FDS_SUPPORT_STATISTICS = FALSE

    11.1.0.6, the default value of HS_FDS_SUPPORT_STATISTICS is set to 'TRUE '.
    even if the trace files see the value is set to "FALSE".
    In 11.1.0.7 is always 'TRUE' by default, but the trace files now show that
    value.
    Use DG4ODBC with Excel, requires that the value "false".

    I hope this helps you

    Kind regards

    Mireille

  • ORA-00900 when you use the command COPY with dynamic SQL

    Helllo,
    I created the following procedure:

    create or replace procedure copyTable (pSourceTableOwner IN varchar2
    pSourceTableOwnerPasword IN varchar2
    pTargetTableOwner IN varchar2
    pTableName IN varchar2
    pDatabaseLink IN varchar2)
    as

    vStatement varchar2 (250): = null;

    Start

    vStatement: = "copy of". pSourceTableOwner | '/' || pSourceTableOwnerPasword | '@' || pDatabaseLink |
    "Insert" | pTargetTableOwner | '.' || pTableName | ' using select * from '. pTableName;

    immediately run vStatement;

    end;
    /

    The generated command (variable vStatement) looks like this:
    "Insert a copy of O_GLCEN/o_glcen@SELLENTW o_jh. "X_PLZ_CD_MERGED_CTIS using select * from X_PLZ_CD_MERGED_CTIS".

    When you call this procedure as "exec copyTable ('O_GLCEN', 'o_glcen', 'o_jh', 'X_PLZ_CD_MERGED_CTIS', 'SELLENTW');" the following lifts:

    FEHLER in line 1:
    ORA-00900: invalid SQL statement
    ORA-06512: at "SYSTEMTECHNIK". COPYTABLE", line 20
    ORA-06512: at line 1

    But when you call the command COPY directly from SQL prompt the statement runs without error.
    Is in general not possible to use the dynamic COPY with SQL command? If it is possible does anyone has an idea what I am doing wrong?

    Any help will be appreciated...

    Rgds
    JH

    I would like to use something like

    vStatement: = ' start in f (select * from ' | pSourceTableOwner |) '.' || pTableName | '@' || pDatabaseLink | Insert loop ') in ' | pTargetTableOwner | '.' || pTableName | "f-values; end loop; end; »
    immediately run vStatement;

  • ORA-22805 when you attempt to insert validated xml in a table based on a schema

    Hello

    I can't for the life of understand me why I get the error "Unable to insert NULL object in the tables of objects or nested tables" when you attempt to insert a xml file that I have validated against the schema that I registered with several validators. Here is the schema and file. I tried to use dummy data in empty elements. I tried to to escape apostrophes (& apos ;) that surrounds my regex and the values in the file. In addition, I don't know what could be NULL.

    Schema:


    <? XML version = "1.0" encoding = "utf-8"? >
    < xs: Schema elementFormDefault = "qualified".
    xmlns: XS = "http://www.w3.org/2001/XMLSchema".
    targetNamespace = "http://www.trxi.com/schemas/ImportSchema."
    xmlns = "http://www.trxi.com/schemas/ImportSchema" >

    < xs:simpleType name = "hexValue" >
    < xs:restriction base = "XS: String" >
    [< value="0x'[0-9a-fA-F][0-9a-fA-F pattern]" "/ >"
    < / xs:restriction >
    < / xs:simpleType >

    < xs: element name = "ImportTemplate" >
    < xs: complexType >
    < xs: SEQUENCE >
    < xs: element name = "DefaultDirectory" type = "xs: String" / >
    < xs: element name = "TableName" type = "xs: String" / >
    < xs: element name = "RecordDelimiter" type = "hexValue" / >
    < xs: element name = "Parameters FieldDelimiter" type = "hexValue" / >
    < xs: element name = "ColumnMapping" >
    < xs: complexType >
    < xs: SEQUENCE >
    < xs: element name = "Column" maxOccurs = "unbounded" >
    < xs: complexType >
    < xs: SEQUENCE >
    < xs: element name = "ColumnName" type = "xs: String" / >
    < xs: element name = "Datatype" >
    < xs:simpleType >
    < xs:restriction base = "XS: String" >
    < xs:enumeration value = "VARCHAR2" / >
    < xs:enumeration value = 'NUMBER' / >
    < xs:enumeration value = "DATE" / >
    < / xs:restriction >
    < / xs:simpleType >
    < / xs: element >
    < xs: element name = "DestinationTable" type = "xs: String" / >
    < xs: element name = "DestinationColumn" type = "xs: String" / >
    < / xs: SEQUENCE >
    < / xs: complexType >
    < / xs: element >
    < / xs: SEQUENCE >
    < / xs: complexType >
    < / xs: element >
    < / xs: SEQUENCE >
    < / xs: complexType >
    < / xs: element >
    < / xs: Schema >


    File:

    < ImportTemplate >
    < DefaultDirectory > aq_import < / DefaultDirectory >
    catalog_export < TableName > < / TableName >
    < > 0 x '0A' RecordDelimiter < / RecordDelimiter >
    < > 0 x '09' FieldDelimiter < / settings FieldDelimiter >
    < ColumnMapping >
    < column >
    model_number < ColumnName > < / ColumnName >
    VARCHAR2 < Datatype > < / Datatype >
    < DestinationTable > < / DestinationTable >
    < DestinationColumn > < / DestinationColumn >
    < / column >
    < column >
    user_stock_model_number < ColumnName > < / ColumnName >
    VARCHAR2 < Datatype > < / Datatype >
    < DestinationTable > < / DestinationTable >
    < DestinationColumn > < / DestinationColumn >
    < / column >
    < column >
    vendor_number < ColumnName > < / ColumnName >
    VARCHAR2 < Datatype > < / Datatype >
    < DestinationTable > < / DestinationTable >
    < DestinationColumn > < / DestinationColumn >
    < / column >
    < column >
    specification of < ColumnName > < / ColumnName >
    VARCHAR2 < Datatype > < / Datatype >
    < DestinationTable > < / DestinationTable >
    < DestinationColumn > < / DestinationColumn >
    < / column >
    < column >
    vendor_pack < ColumnName > < / ColumnName >
    VARCHAR2 < Datatype > < / Datatype >
    < DestinationTable > < / DestinationTable >
    < DestinationColumn > < / DestinationColumn >
    < / column >
    < column >
    selling_unit < ColumnName > < / ColumnName >
    VARCHAR2 < Datatype > < / Datatype >
    < DestinationTable > < / DestinationTable >
    < DestinationColumn > < / DestinationColumn >
    < / column >
    < column >
    weight < ColumnName > < / ColumnName >
    < Datatype > NUMBER < / Datatype >
    < DestinationTable > < / DestinationTable >
    < DestinationColumn > < / DestinationColumn >
    < / column >
    < column >
    width of < ColumnName > < / ColumnName >
    < Datatype > NUMBER < / Datatype >
    < DestinationTable > < / DestinationTable >
    < DestinationColumn > < / DestinationColumn >
    < / column >
    < column >
    depth of < ColumnName > < / ColumnName >
    < Datatype > NUMBER < / Datatype >
    < DestinationTable > < / DestinationTable >
    < DestinationColumn > < / DestinationColumn >
    < / column >
    < column >
    deal_net < ColumnName > < / ColumnName >
    VARCHAR2 < Datatype > < / Datatype >
    < DestinationTable > < / DestinationTable >
    < DestinationColumn > < / DestinationColumn >
    < / column >
    < column >
    picture_name < ColumnName > < / ColumnName >
    VARCHAR2 < Datatype > < / Datatype >
    < DestinationTable > < / DestinationTable >
    < DestinationColumn > < / DestinationColumn >
    < / column >
    < column >
    blank_column < ColumnName > < / ColumnName >
    VARCHAR2 < Datatype > < / Datatype >
    < DestinationTable > < / DestinationTable >
    < DestinationColumn > < / DestinationColumn >
    < / column >
    < column >
    vendor_to_stock < ColumnName > < / ColumnName >
    VARCHAR2 < Datatype > < / Datatype >
    < DestinationTable > < / DestinationTable >
    < DestinationColumn > < / DestinationColumn >
    < / column >
    < column >
    priced_by < ColumnName > < / ColumnName >
    VARCHAR2 < Datatype > < / Datatype >
    < DestinationTable > < / DestinationTable >
    < DestinationColumn > < / DestinationColumn >
    < / column >
    < column >
    category < ColumnName > < / ColumnName >
    VARCHAR2 < Datatype > < / Datatype >
    < DestinationTable > < / DestinationTable >
    < DestinationColumn > < / DestinationColumn >
    < / column >
    < column >
    vendor_nickname < ColumnName > < / ColumnName >
    VARCHAR2 < Datatype > < / Datatype >
    < DestinationTable > < / DestinationTable >
    < DestinationColumn > < / DestinationColumn >
    < / column >
    < column >
    user_vendor_name < ColumnName > < / ColumnName >
    VARCHAR2 < Datatype > < / Datatype >
    < DestinationTable > < / DestinationTable >
    < DestinationColumn > < / DestinationColumn >
    < / column >
    < column >
    < ColumnName > configurable < / ColumnName >
    VARCHAR2 < Datatype > < / Datatype >
    < DestinationTable > < / DestinationTable >
    < DestinationColumn > < / DestinationColumn >
    < / column >
    < / ColumnMapping >
    < / ImportTemplate >
  • ORA-31603 when you attempt to get the ddl for tablespace

    Running Oracle 11 g 2 on Oracle's Linux

    In my schema, I created a package that includes a procedure that will retrieve the DOF for a given tablespace.  However, the line ' DBMS_METADATA. GET_DDL ('TABLESPACE', '< target tablespace >') returns an ORA-31603 complain the tablespace is not in my diagram.  Specifically, "ORA-31603: object"< tablespace >"TABLESPACE type not found in the schema «< myschema >»»

    It is confusing because I thought no tablespaces were related to patterns.  I checked my pattern has all privileges such as SELECT_ANY_DICTIONARY and run it on DBMS_METADATA.  I can run this command directly in SQL Developer without problem.  It is only when I try to run the procedure that the error appears.  The package belongs my diagram and I try to run it from a SQL Developer session open in my diagram.

    I searched an ora-31603 and "tablespaces" in the center of knowledge and found nothing.

    Jim Wolfe

    Hello

    Documentation:

    DBMS_METADATA

    Security model

    The views of the subject of the Oracle metadata model implement the security as follows:

    • Unprivileged users can see the metadata only their own items.
    • SYSand users with SELECT_CATALOG_ROLE can see all objects.
    • Unprivileged users can also retrieve public synonyms, privileges granted system their and object privileges granted to them or by them to others. It also includes the privileges granted to the PUBLIC .
    • If callers request objects they are not privileged to retrieve, no exception is raised; quite simply, the object is not found.
    • If unprivileged users are granted some form of access to an object in another schema, they will be able to recover the grant through the metadata API specification, but not the actual metadata of the object.
    • Stored in the roles of packages definers-rights, procedures and functions (such as SELECT_CATALOG_ROLE ) are disabled. Therefore, such a PL/SQL program can only to search metadata for objects in its own schema. If you want to write a PL/SQL program that extracts the metadata for the objects in another schema (based on the possession of the appellant of SELECT_CATALOG_ROLE ), you must bring the emission rights Summoners.

    Kind regards

    Juan M

  • Why do I always found ORA-31631 and ORA-39149 when am citing impdp?

    I want to copy all documents in the user database to the production of the Web portal to a developer/test database set up on another machine called dev_webportal

    My data source is: Web portal

    My target database is: dev_webportal

    Directory is: my journal

    Network_link is: to the Web portal

    I used the following command: impdp dev_webportal/xxxx DIRECTORY = dmpdir NETWORK_LINK = old_webportal patterns = beauty = webportal:dev_webportal remap_schema

    Then, I get the following error:

    ORA-31631: privileges are required

    ORA-39149: impossible to link user with privileges to user non-privilegie

    I added IMP_FULL_DATABASE rights and permission to the Portal Web and dev_webportal. What happens here? It's weird and I am completely stuck.

    Thank you
    Heath

    I understood the question. Very delicate. I discovered that despite granting permission beauty, he was not at work news. So I tried the ALTER USER command instead.

  • Error ORA-00979 when you run the SQL in Oracle 11.2.0.3

    Hi Oracle Experts,


    I am trying to execute a SQL statement which consist of 2-3 levels of inline queries. Part of this SQL statement is as below:
    SELECT
          "SAMPLE_RESULT"."PROPERTYID",
          "SAMPLE_RESULT"."QUALIFIER",
          ROUND(AVG(SAMPLE_RESULT.RESULT),2) avg_result,
          AVG(DECODE(SAMPLE.QUALITYSTATUS, 'P', 1,'F', 5)) qltystatus,
          TO_CHAR("SAMPLE"."SAMPLEDT",'dd-Mon-yyyy') sampledt,
          TO_CHAR("SAMPLE"."SAMPLEDT",'rrrr-mm-dd') sortdate
          STD.stdev,
          getCL.cl
        FROM
          (
            SELECT
              ROUND(stddev(INS.avg_result),2) stdev
            FROM
              (
                SELECT
                  "SAMPLE_RESULT"."PROPERTYID",
                  "SAMPLE_RESULT"."QUALIFIER",
                  ROUND(AVG(SAMPLE_RESULT.RESULT),2) avg_result,
                  AVG(DECODE(SAMPLE.QUALITYSTATUS, 'P', 1,'F', 5)) qltystatus,
                  TO_CHAR("SAMPLE"."SAMPLEDT",'dd-Mon-yyyy') sampledt
                FROM
                  "SAMPLE",
                  "SAMPLE_RESULT",
                  "ACTIVITY"
                WHERE
                  (
                    "SAMPLE"."SAMPLEID" = "SAMPLE_RESULT"."SAMPLEID"
                  )
                AND
                  (
                    "SAMPLE_RESULT"."TESTINSTANCE" = fn_max_instance (
                    sample.sampleid, sample_result.testid, sample_result.propertyid
                    )
                  )
                AND
                  (
                    "SAMPLE"."ACTIVITYID" = "ACTIVITY"."ACTIVITYID"
                  )
                AND
                  (
                    ACTIVITY.VARIANTID IN ('Sales Gas','Contaminants End')
                  )
                AND
                  (
                    ACTIVITY.LOCATIONID = 'S-5003C'
                  )
                AND
                  (
                    SAMPLE.EVENTID <> 'AD-HOC'
                  )
                AND
                  (
                    "SAMPLE"."SAMPLESTATUS" = 'L'
                  )
                AND
                  (
                    TO_DATE(TO_CHAR(SAMPLE.SAMPLEDT,'dd-mon-yyyy')) BETWEEN TO_DATE
                    (TO_CHAR(:StartDate,'dd-Mon-RRRR')) AND TO_DATE(TO_CHAR(
                    :StartDate,'dd-Mon-RRRR')) + 6
                  )
                AND
                  (
                    SAMPLE_RESULT.PROPERTYID = 'GCV'
                  )
                GROUP BY
                  SAMPLE_RESULT.PROPERTYID,
                  SAMPLE_RESULT.QUALIFIER,
                  TO_CHAR("SAMPLE"."SAMPLEDT",'dd-Mon-yyyy')
              )
              INS
          )
          STD,
          (
            SELECT
              ROUND(AVG(INS.avg_result),2) cl
            FROM
              (
               SELECT
                  "SAMPLE_RESULT"."PROPERTYID",
                  "SAMPLE_RESULT"."QUALIFIER",
                  ROUND(AVG(SAMPLE_RESULT.RESULT),2) avg_result,
                  AVG(DECODE(SAMPLE.QUALITYSTATUS, 'P', 1,'F', 5)) qltystatus,
                  TO_CHAR("SAMPLE"."SAMPLEDT",'dd-Mon-yyyy') sampledt
                FROM
                 "SAMPLE",
                  "SAMPLE_RESULT",
                  "ACTIVITY"
                WHERE
                  (
                    "SAMPLE"."SAMPLEID" = "SAMPLE_RESULT"."SAMPLEID"
                  )
                AND
                  (
                    "SAMPLE_RESULT"."TESTINSTANCE" = fn_max_instance (
                    sample.sampleid, sample_result.testid, sample_result.propertyid
                    )
                  )
                AND
                  (
                    "SAMPLE"."ACTIVITYID" = "ACTIVITY"."ACTIVITYID"
                  )
                AND
                  (
                    ACTIVITY.VARIANTID IN ('Sales Gas','Contaminants End')
                  )
                AND
                  (
                    ACTIVITY.LOCATIONID = 'S-5003C'
                  )
                AND
                  (
                    SAMPLE.EVENTID <> 'AD-HOC'
                  )
                AND
                  (
                    "SAMPLE"."SAMPLESTATUS" = 'L'
                  )
                AND
                  (
                    TO_DATE(TO_CHAR(SAMPLE.SAMPLEDT,'dd-mon-yyyy')) BETWEEN TO_DATE
                    (TO_CHAR(:StartDate,'dd-Mon-RRRR')) AND TO_DATE(TO_CHAR(
                    :StartDate,'dd-Mon-RRRR')) + 6
                  )
                AND
                  (
                    SAMPLE_RESULT.PROPERTYID = 'GCV'
                  )
                GROUP BY
                  SAMPLE_RESULT.PROPERTYID,
                  SAMPLE_RESULT.QUALIFIER,
                  TO_CHAR("SAMPLE"."SAMPLEDT",'dd-Mon-yyyy')
              )
              INS
    
          )
          getCL,
          "SAMPLE",
          "SAMPLE_RESULT",
          "ACTIVITY"
        WHERE
          (
            "SAMPLE"."SAMPLEID" = "SAMPLE_RESULT"."SAMPLEID"
          )
        AND
          (
            "SAMPLE_RESULT"."TESTINSTANCE" = fn_max_instance (sample.sampleid,
            sample_result.testid, sample_result.propertyid)
          )
        AND
          (
            "SAMPLE"."ACTIVITYID" = "ACTIVITY"."ACTIVITYID"
          )
        AND
          (
            ACTIVITY.VARIANTID IN ('Sales Gas','Contaminants End')
          )
        AND
          (
            ACTIVITY.LOCATIONID = 'S-5003C'
          )
        AND
          (
            SAMPLE_RESULT.PROPERTYID IN ('GCV','SG','T. Sulphur','Dew Point',
            'HC Dew Pts')
          )    
        AND
          (
           TO_DATE(TO_CHAR(SAMPLE.SAMPLEDT,'dd-mon-yyyy')) BETWEEN TO_DATE(TO_CHAR
            (:StartDate,'dd-Mon-RRRR')) AND TO_DATE(TO_CHAR(:StartDate,
            'dd-Mon-RRRR')) + 6
          )
        GROUP BY "SAMPLE_RESULT"."PROPERTYID", "SAMPLE_RESULT"."QUALIFIER", TO_CHAR("SAMPLE"."SAMPLEDT",'dd-Mon-yyyy'), TO_CHAR("SAMPLE"."SAMPLEDT",'rrrr-mm-dd'),
        
          STD.stdev,
          getCL.cl
      )
    When I run the level the lowest and second lowest level inline queries statements, which consists of a select field of data and functions, there is no error and capable of generating the result.

    But when I run the statement which refer to the alias of queries inline (STD, getCL), it prompted an error ORA-00979 not a group by expression. This happened only Oracle 11.2.0.3. If I run the statement in another version of Oracle (11 GR 1 material and below), I am able to generate the result.

    Please advice how can I fix this problem.

    Published by: xysOra on 29 April 2013 19:37

    It seems that this should be the "SAMPLE" TO_CHAR conversions "" SAMPLEDT ".

    You seem to be willing to cut the time part of SAMPLEDT. The best way to do so is TRUNC (SAMPLEDT).

    In each of the groups of clauses, replace TO_CHAR ('SAMPLE'. ("' SAMPLEDT ', 'dd-Mon-yyyy') with TRUNC ('SAMPLE'. (' "SAMPLEDT") and completely remove the TO_CHAR ('SAMPLE'. ("' SAMPLEDT ',"dd-mm-rrrr") in the last group of.

    Replace in selection lists, TO_CHAR ('SAMPLE'. ("' SAMPLEDT ', 'dd-Mon-yyyy') with TO_CHAR (TRUNC ('SAMPLE'. ((' ' SAMPLEDT '), 'dd-Mon-yyyy') and replace TO_CHAR ("SAMPLE". "SAMPLEDT", "dd-mm-rrrr") with TO_CHAR (TRUNC ("SAMPLE" ".")) " "" "SAMPLEDT"), "dd-mm-rrrr").

    These changes can take you the ORA-00979 not one group by expression.

    Also the date manipulation is wrong — you do implicit conversions to date using default formats, when what you seem to want is to truncate the time part. Instead of

     TO_DATE(TO_CHAR(SAMPLE.SAMPLEDT,'dd-mon-yyyy')) BETWEEN TO_DATE(TO_CHAR
            (:StartDate,'dd-Mon-RRRR')) AND TO_DATE(TO_CHAR(:StartDate,
            'dd-Mon-RRRR')) + 6
    

    use

     TRUNC(SAMPLE.SAMPLEDT) BETWEEN TRUNC(:StartDate) AND TRUNC(:StartDate) + 6
    

    I hope this helps.
    David

  • ORA-17629: when you try to use database active for the construction of Eve

    Hey guys, I did research on it for hours and I tried different things but when even cannot get a handle of what Miss me...

    I'll try the 11 g physical creation Eve to help "...". of the active database"instead of the old way. I keep running into a brick wall. Any help would be appreciated.
    DB version is 11.2.0.2 on AIX

    This is what has been done...
    1 created pfile on primary and standby
    2 created orapwd file and transferred to the standby
    3 standby db is nomounted (startup nomount) and listener is running

    cemabc_p = main forum nom_unique
    cemabc_s = unique name of instance eve

    im commands running in mode ensures:
    RMAN target backup_admin/temabc@cemabc_p catalog rman/qaabc@rmnabc

    AUXILIARY backup_admin/temppw@cemabc_s connection
    RMAN > DUPLICATE TARGET DATABASE BEFORE database NOFILENAMECHECK active;

    From February 22, 13 Db double
    allocated channel: ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: SID = 7 type of device = DISK

    content of Script memory:
    {
    backup that copy reuse
    TargetFile ' / oracle/app/oracle/product/11.2.0.2/dbs/orapwcemabc' auxiliary format
    ' / oracle/app/oracle/product/11.2.0.2/dbs/orapwcemabc';
    }
    execution of Script memory

    From backup February 22, 13
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID = 112 type device = DISK
    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Db in dual at 22/02/2013 14:53:52
    RMAN-05501: abandonment of duplicate target database
    RMAN-03015: an error has occurred in the script stored memory Script
    RMAN-03009: failure of the backup command on the ORA_DISK_1 channel at 22/02/2013-14:53:52
    ORA-17629: unable to connect to the remote database server
    ORA-17629: unable to connect to the remote database server



    What ive tried so far... I tried to connect from the primary database:
    adcabc1: / home/oracle/dba > rman target backup_admin/temabc catalog rman/qabc@rmnabc

    Recovery Manager: release 11.2.0.2.0 - Production on Fri Feb 22 14:52:51 2013

    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.

    connected to target database: CEMABC (DBID = 4229695208)
    connected to the recovery catalog database

    RMAN > catalog resync db_unique_name all;


    from full resynchronization of the recovery catalog
    full complete Resync

    from full resynchronization of the recovery catalog
    full complete Resync

    from full resynchronization of the recovery catalog
    full complete Resync



    Still no luck.
    I have cemabc_p and cemabc_s both primary and standby tnsping succuessfully.

    Im sure I'm missing a step, if it didn't there was more information need... Let me know

    Ok

    I guess that

    connected to target database: CEMABC (DBID=4229695208)
    connected to auxiliary database: CEMABC (not mounted)
    

    On the remote server's right? If so, it shows that RMAN was able to connect to the main server and the local static connection. So the problem is probably that the principal server cannot connect back.

    You need an entry for the CLONE in your TNSNAMES file. ORA on both servers. Can you confirm this?

    Can you post the listener.ora for clone entry?

    I'm double control it

    rman target backup_admin/temabc@cemabc_p catalog rman/qaabc@rmnabc
    

    (Above is odd)

    Mine:

    rman target=sys/@recover2 auxiliary=sys/@reclone
    

    I use SYS/password both for him to work.

    Also, make sure that these are defined

    listener.ora
    INBOUND_CONNECT_TIMEOUT_ = 120
    
    sqlnet.ora
    SQLNET.INBOUND_CONNECT_TIMEOUT = 120
    

    Restart the listeners later

    Best regards

    mseberg

    Published by: mseberg on February 22, 2013 15:10

    Published by: mseberg on February 22, 2013 15:11

  • ORA-12514 when you try to connect to new db

    Hello

    I just do a fresh install of Oracle 11 g 2 on x 64 Linux RHEL6. When I'm trying to connect to the db from the client, I always get an error:
    ORA-12514: TNS:listener is not currently of service requested in connect descriptor.
    Seems I have the wrong server listener service name, resembles "name.domain.com' instead of just 'name', how can I change it?

    Here's my:
    -the customer tnsnames.ora:
    ORA11R2 = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.0.2)(PORT = 1521)))
    (CONNECT_DATA = (SERVICE_NAME = ORA11R2)))

    -the server listener.ora:
    LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = ora11g.my.domain.com) (PORT = 1521)))
    ADR_BASE_LISTENER = / u01/app/oracle

    status of $lsnrctl

    LSNRCTL for Linux: Version 11.2.0.3.0 - Production on February 13, 2013 16:15:54
    ...
    Summary of endpoints listening...
    (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=ora11g.my.domain.com) (PORT = 1521)))
    Summary of services...
    Service 'ora11r2.my.domain.com' has 1 instance (s).
    'Ora11r2' instance, State LOAN, has 1 operation for this service...
    Service 'ora11r2XDB.my.domain.com' has 1 instance (s).
    'Ora11r2' instance, State LOAN, has 1 operation for this service...

    Published by: 964323 on 13.2.2013 06:24

    Change your TNS names like below,

    ORA11R2 = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.2)(PORT = 1521))
    (CONNECT_DATA = (SERVICE_NAME = ORA11R2.my.domain.com)))
    

    Mark your message as response or relatively useful if your question is answered.

    Thank you best regards &,.
    SID

    (StepIntoOracleDBA)

    E-mail: [email protected]

    http://stepintooracledba.blogspot.in/

    http://www.stepintooracledba.com/

  • ORA-00942 when you run the application after import

    APEX 4.1.1

    Hello

    I transferred my request via import/export to our production database. I had no errors during installation, but when I run the application, I get the following error message.
    User not found
    ORA-00942: table or view does not exist
    
    Technical Info (only visible for developers)
    
        is_internal_error: true
        ora_sqlcode: -942
        ora_sqlerrm: ORA-00942: table or view does not exist
        component.type: APEX_APPLICATION_COMPUTATIONS
        component.id: 3102806535980644
        component.name: LANG
        error_backtrace:
    
        ORA-06512: at "SYS.DBMS_SYS_SQL", line 1325
        ORA-06512: at "SYS.WWV_DBMS_SQL", line 1287
        ORA-06512: at "SYS.WWV_DBMS_SQL", line 1358
        ORA-06512: at "SYS.WWV_DBMS_SQL", line 1375
        ORA-06512: at "APEX_040100.WWV_FLOW_DYNAMIC_EXEC", line 776
        ORA-06512: at "APEX_040100.WWV_FLOW", line 4155
    I don't know, where to look for the error. I do not have an application element with the name of LANG and there is a calculation application for LANG:
    SELECT  LANG_CODE
    FROM    GPS_WEB_USERS
    WHERE user_name = upper('&APP_USER.')
    All advice where to look?

    Published by: Anne-Marie Rosa on August 16, 2012 05:37

    Published by: Anne-Marie Rosa 16 August 2012 06:32

    Hello
    >
    I transferred my request via import/export to our production database. I had no errors during installation, but when I run the application, I get the following error message.

    User not found
    ORA-00942: table or view does not exist
    
    Technical Info (only visible for developers)
    
    is_internal_error: true
    ora_sqlcode: -942
    ora_sqlerrm: ORA-00942: table or view does not exist
    component.type: APEX_APPLICATION_COMPUTATIONS
    component.id: 3102806535980644
    component.name: LANG
    error_backtrace:
    
    ORA-06512: at "SYS.DBMS_SYS_SQL", line 1325
    ORA-06512: at "SYS.WWV_DBMS_SQL", line 1287
    ORA-06512: at "SYS.WWV_DBMS_SQL", line 1358
    ORA-06512: at "SYS.WWV_DBMS_SQL", line 1375
    ORA-06512: at "APEX_040100.WWV_FLOW_DYNAMIC_EXEC", line 776
    ORA-06512: at "APEX_040100.WWV_FLOW", line 4155
    

    I don't know, where to look for the error. I do not have an application element with the name of LANG and there is a calculation application for LANG:

    SELECT LANG_CODE
    FROM GPS_WEB_USERS
    WHERE user_name = upper('&APP_USER.')
    

    The source of the error is ora_sqlerrm: ORA-00942: table or view does not exist

    Search for the name of the calculation Application in APEX_APPLICATION_COMPUTATIONS APEX view using component.id: 3102806535980644 to find his name.

    Once you have the name, you can change this App mockup and understand what Table/view is not available.

    See you soon,.

    PS: {code} is the tag, which is tiny.

    Published by: Dominique 16 August 2012 18:01

  • ORA-22901 when you use sql (no space) union

    I have a number of spatial views. I want to take some common fields and a column of the geometry of each of these points of view and use sql union to get a single view of all the data that meet certain criteria.

    Example:

    / / DESC View1
    Identification number,
    Comment varchar2 (200)
    geom mdsys.sdo_geometry

    View2 DESC
    Identification number
    Comment varchar2 (200)
    geom mdsys.sdo_geometry

    I want to do this:
    Create view viewUnion as
    SELECT id, comment, geom, viewname 'View1' View1
    Union
    SELECT id, comment, geom, "view2 viewname of view2;

    The creation of the view is accepted, but when I try select * from viewUnion; I get ORA-22901.

    Can I get there from here? Is there something about the space object that prevents the union from working?

    Any guidance will be appreciated.

    Thank you

    View of the "union all" is right for your application?
    i.e.

    Create view viewUnion as
    SELECT id, comment, geom, viewname 'View1' View1
    Union of all the
    SELECT id, comment, geom, "view2 viewname of view2;

  • ORA-00936 when you do mergeTable or refreshTable

    Hello!

    We are facing a serious and strange problem when merging or refresh a certain table.
    It is the output:

    ORA-00936: lack of expression
    ORA-06512: in "SYS.LT", Line 7139

    OWM Version is 10.2.0.1.0

    We tried also on different production system where we get basically the same output, but the line number:

    ORA-00936: lack of expression
    ORA-06512: in "SYS.LT", Line 7295

    OWM Version here is 10.2.0.4.3

    Any reference to what could be the problem? So far we have only noticed with a table, all other tables so far worked perfect.
    It is not anything special about the table, at least nothing obvious where we could say that it might be a problem.

    The operation fails for merge/refreshTable anyway, so it of okay if we put in a WHERE clause or not.
    Also makes no difference what kind of diff we will merge/refreshment, she is not as much inserts as updates.

    Any help is appreciated.

    Kind regards

    Andreas Schilling

    Hello

    I wanted to say that to be constraint_type like '% U '. But you have provided what I was looking for.

    It seems that the MOT_KOMBINATION_UK constraint metadata does not match the actual stress. You can try the following which should force it to be regenerated:

    SQL > exec dbms_wm.beginDDL('CO2MO.) C2_MOTOREN');
    SQL > alter table CO2MO. C2_MOTOREN_LTS change the constraint MOT_KOMBINATION_UK_LTS disable;
    SQL > exec dbms_wm.commitDDL('CO2MO.) C2_MOTOREN');

    SQL > exec dbms_wm.beginDDL('CO2MO.) C2_MOTOREN');
    SQL > alter table CO2MO. C2_MOTOREN_LTS change the active constraint MOT_KOMBINATION_UK_LTS;
    SQL > exec dbms_wm.commitDDL('CO2MO.) C2_MOTOREN');

    If this does not solve the problem (or cannot temporarily disable constraint), I would say a filing SR because it is especially likely that something else.

    Kind regards
    Ben

  • ORA-06502 when you use MAX (Column) with % TYPE

    Hello

    I tried to limit the problem as much as I can and have managed to isolate a particular scenario. As the structure and sensitive data, I had to come up with a scenario that I tested it and it causes the same problem occurs. The scenario is as follows

    Assuming that I have a table defined as follows

    CREATE TABLE TEST_TABLE (TEST_COLUMN CHAR (8 BYTES));

    and the table has only one record NZ07100S

    We also define a function as

    CREATE OR REPLACE FUNCTION
    FUNCTION GETTESTVALUE
    TEST_TABLE RETURN. TYPE % TEST_COLUMN
    IS
    TEST_VALUE TEST_TABLE. TYPE % TEST_COLUMN;
    BEGIN
    SELECT MAX (TEST_COLUMN) IN TEST_VALUE TEST_TABLE;
    RETURN TEST_VALUE;
    END;



    We ran the following command

    SELECT GETTESTVALUE FROM DUAL;

    and receive an error as follows

    Error report:
    SQL error: ORA-06502: PL/SQL: digital or value error: character string buffer too small
    ORA-06512: at "GETTESTVALUE", line 6
    06502 00000 - "PL/SQL: digital error or the value of %s.


    However, if were to change the function of the following

    CREATE OR REPLACE FUNCTION
    FUNCTION GETTESTVALUE
    TEST_TABLE RETURN. TYPE % TEST_COLUMN
    IS
    TEST_VALUE TEST_TABLE. TYPE % TEST_COLUMN;
    BEGIN
    SELECT TEST_COLUMN IN TEST_VALUE TEST_TABLE;
    RETURN TEST_VALUE;
    END;

    There is no error reported and the value nz07100s is returned.

    Of course, when we changed the function is

    CREATE OR REPLACE FUNCTION
    FUNCTION GETTESTVALUE
    TEST_TABLE RETURN. TYPE % TEST_COLUMN
    IS
    TEST_VALUE TEST_TABLE. TYPE % TEST_COLUMN;
    BEGIN
    SELECT CAST (MAX (TEST_COLUMN) AS CHAR (8)) IN TEST_VALUE TEST_TABLE;
    RETURN TEST_VALUE;
    END;

    No error is reported, and the value is returned

    However, the function in question is in the use of production since 2004. We are currently a few changes to the application and imported the backup of Oracle 10 g Oracle XE. When we try to run the function, the error is thrown.

    I would like to understand if this is a limitation with Oracle XE that causes this problem. It seems to me that the problem is to select the MAX value in the variable that has been set. Executing the query directly from sqlplus does not generate an error, and therefore do not feel there is an error with the SQL code. The only time that we can't get the error is with the INTO statement.

    Is there a way to use the function as it has been defined in production? Why the ORA-06502 error would be thrown? It does not seem to make sense to me. Would appreciate any guidance on this.


    Thanks and greetings

    Jega

    Thank you

    What happens if you do this and rerun the select

    SQL>alter table test_table modify test_column varchar2 (8 byte);
    

    Edit:
    You may need to open a SR with Oracle on this one
    (Really, financial system on XE?)

    Concerning
    Peter

    Published by: Peter on March 4, 2009 12:58 AM

Maybe you are looking for