Convert Sybase Update from query to Oracle PL/SQL

Hi,
I have a following Sybase Query for updating a table CRM_Report from another table CRM_Report1 r1, which I have to migrate PL/SQL.
update CRM_Report
set LT_MMT = r1.LT_MMT, ST_MMT = r1.ST_MMT,
LT_FixedInc = r1.LT_FixedInc, ST_FixedInc = r1.ST_FixedInc,
LT_CrdCLN = r1.LT_CrdCLN, ST_CrdCLN = r1.ST_CrdCLN,
LT_Der = r1.LT_Der, ST_Der = r1.ST_Der,
LT_FX = r1.LT_FX, ST_FX = r1.ST_FX,
LT_CrdCDS = r1.LT_CrdCDS, ST_CrdCDS = r1.ST_CrdCDS
from CRM_Report1 r1
where r1.Location = CRM_Report.Location
and r1.CountriesGrp_Id = CRM_Report.CountriesGrp_Id
and r1.CountriesGrp_ShortName = CRM_Report.CountriesGrp_ShortName
I used Oracle SQL Developer for query migration, but it doesn't seem to work
Any Suggestions.

In oracle
update CRM_Report
   set (
        LT_MMT,
        ST_MMT,
        LT_FixedInc,
        ST_FixedInc,
        LT_CrdCLN,
        ST_CrdCLN,
        LT_Der,
        ST_Der,
        LT_FX,
        ST_FX,
        LT_CrdCDS,
        ST_CrdCDS
       ) =
       (SELECT r1.LT_MMT,
                   r1.ST_MMT,
                   r1.LT_FixedInc,
                   r1.ST_FixedInc,
                   r1.LT_CrdCLN,
                   r1.ST_CrdCLN,
                   r1.LT_Der,
                   r1.ST_Der,
                   r1.LT_FX,
                   r1.ST_FX,
                   r1.LT_CrdCDS,
                   r1.ST_CrdCDS
          from CRM_Report1 r1
      where r1.Location            = CRM_Report.Location
        and r1.CountriesGrp_Id       = CRM_Report.CountriesGrp_Id
        and r1.CountriesGrp_ShortName = CRM_Report.CountriesGrp_ShortName)
WHERE EXISTS (SELECT NULL
          from CRM_Report1 r1
            where r1.Location            = CRM_Report.Location
           and r1.CountriesGrp_Id       = CRM_Report.CountriesGrp_Id
           and r1.CountriesGrp_ShortName = CRM_Report.CountriesGrp_ShortName)        

Similar Messages

  • Migration Error from Access to Oracle through SQL Developer.

    Hi,
    Actually I am trying to migrate data from MS Access 2002 to Oracle 9i database through the SQL Developer. But Whenever I go to Capture Database from Access it will show me an error.... Invalid procedure Call and then it shows an error message... >>>>>>
    ShowSplashScreen("_OracleSplashScreen",3)
    after that i wont be able to do this task anymore..... So please help me get out of it... How Cam I Maigrate data from Access to Oracle 9i...
    Is any other tool i use or you can help me for this tool to migrate date...
    Please tell me..
    If yu can send me a mail then mail me on [email protected]
    regards,
    Vishal

    Hi Vishal,
    I have responded to your related thread on the Migration Workbench forum - Migration Error from Access to Oracle through SQL Developer.
    Regards,
    Hilary

  • Converting a MS Access Query to Oracle SQL

    Hi,
    We have a large number of MS Access (2000) queries (mostly select queries -Some containing sub queries-) that need to be converted to Oracle's syntax to be used on our intranet instead of the existing Access frontend.
    Do you know of a tool that can do this?
    We understand that conversion tools are not always reliable, but even if 75% of the queries are converted for us we can then focus on the ones that pose problems.
    Regards,
    Charles McGrotty

    Hi Charles,
    The next release of OMWB ( version 92017, due at the end of this year) will contain some support for Select and Action queries. In that version, we will load queries from the source MS Access database into the OMWB repository. Since the MS Access plugin for OMWB does not currently contain a parser, the query text will be commented out and surrounded in an Oracle View stub - this means that the queries can, at least, be migrated to Oracle and then manually converted by the migrator from within the Oracle database. Often, the body text for a select query exactly matches the syntax for an Oracle view, so the manual work required to convert the queries may be minimal. This will be the first step in migrating MS Access Queries that the OMWB provides.
    I hope this information is useful,
    Tom.

  • Sending arrays from Forms to Oracle PL/SQL

    Hi All,
    I'm stuck up in an urgent requirement where I want to send an array of values(eg., PL/SQL table) with a number of rows say 100 from Forms 6i to Oracle PL/SQL. PL/SQL table is based on a record type consists of a number of columns say 10.
    The actual scenario is that, Forms interactive screen (multiple record block) does validations on the values entered by users and then it should send all the rows together to a Stored Procedure or Packaged procedure. Packaged procedure receives the PL/SQL table, does processing on the data values of the PL/SQL table and send it back to Forms 6i.
    Please help me in getting the solution on this urgent problem. There is a flexibility of using any kind of arrays, it can be PL/SQL, Nested table or varrays.
    Thanks.

    hi,
    I want to give n-array elements from a forms6i application to
    a stored package at the same time. I want to work with n-array
    elements in my stored package >>mypackage<<, because I want to sort the
    array elements in a stored package. Now >>mypackage<< works only with
    one array-element, but I need n-elements. First I start a test with
    a procedure and a package.
    -- Later >>element<< should be a program unit in Forms6i
    CREATE OR REPLACE PROCEDURE element IS
    TYPE tab_spoolfile IS TABLE OF VARCHAR2(100) INDEX BY BINARY_INTEGER;
    t_file     tab_spoolfile;
    BEGIN
    t_file(1):= 'abc_00017_cba'; -- 1.
    t_file(2):= 'xyz_00002_zyx'; -- 2.
    t_file(3):= 'efg_99999_gfe'; -- 3.
    t_file(4):= 'mno_00115_onm'; -- 4.
    t_file(5):= 'hij_00088_jih'; -- 5.
    FOR i IN t_file.FIRST..t_file.LAST
    LOOP
    out('Element: '||t_file(i));
    mypackage.my_procedure(mypackage.tab_array(t_file(i)),null);
    END LOOP;
    END;
    CREATE OR REPLACE PACKAGE MyPackage AS
    TYPE tab_array IS TABLE OF VARCHAR2(300);
    t_file tab_array;
    PROCEDURE my_procedure(in_values IN tab_array, p_param VARCHAR2);
    END MyPackage;
    CREATE OR REPLACE PACKAGE BODY MyPackage AS
    i BINARY_INTEGER:= 1;
    PROCEDURE my_procedure(in_values IN tab_array, p_param VARCHAR2) IS
    BEGIN
    IF in_values.EXISTS(i)
    THEN
    out('Sort : '||in_values(i));
    END IF;
    END;
    END MyPackage;
    SQL> exec element
    Element: abc_00017_cba
    Sort : abc_00017_cba
    Element: xyz_00002_zyx
    Sort : xyz_00002_zyx
    Element: efg_99999_gfe
    Sort : efg_99999_gfe
    Element: mno_00115_onm
    Sort : mno_00115_onm
    Element: hij_00088_jih
    Sort : hij_00088_jih
    Does anybody have an idea?
    Best regards,
    Tom

  • Converting Stuff function from SQLServer to Oracle

    Anyone out there found an Oracle counterpart for the SQL Server "stuff" function.
    It is being used following an ascii(substr(variable)) locating all nonprintable characters and replacing with null.

    anjali5 wrote:
    I am very new to oracle. I am trying to convert this function to oracle, but keep getting errors
    USE [REF]
    GO
    /****** Object: UserDefinedFunction [dbo].[fnc_get_home] Script Date: 10/21/2011 17:50:10 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    -- =============================================
    -- Author:          <Author,,Name>
    -- Create date: <Create Date, ,>
    -- Description:     <Description, ,>
    -- =============================================
    ALTER FUNCTION [dbo].[fnc_get_home]
         @p_ui nvarchar(50), @p_dt datetime
    RETURNS NVARCHAR(50)
    AS
    BEGIN
         declare @v_home NVARCHAR(50);
         select top 1 @v_home = HOME_CODE from dbo.activity_home_b
              where UI = @p_ui
              order by HOME_END_DT desc;
         RETURN @v_home;
    ENDI am very new to Volkwagen cars, but here is a picture of my old Toyota
    My new car won't go
    Tell me how to make my car go.
    You refer to Oracle, but I wonder if this has anything to do with ACCESS.
    post complete CREATE TABLE statement of Oracle Table
    post INSERT for sample test date & expected/desired results

  • Migration from Access to Oracle through SQL developer

    Hi,
    I want to migrate an mdb file which contains a set of tables to oracle. During this process, i have created schema and all the tables in Oracle using DDL scripts. I would like to transfer only the data to Oracle from access through SQL developer. How can I do that?
    Regards,
    Meena

    Hi Meena,
    You mention that you have created the schema and tables in Oracle using DDL scripts. Did you use the Oracle SQL Developer Migration Workbench, creating a Migration Repository, to carry out this process? I see from your other postings that you are experiencing issues using the Exporter tool, which would lead me to believe that you haven't used the Migration Workbench to migrate your database. Obviously you will need to resolve your Exporter issues before you can proceed to the next phase of the migration process. I will aim to assist you with those issues on the seperate thread - ShowSplashScreen("_OracleSplashScreen",3) error The XML file generated by the Exporter tool forms the basis of your MS Access migration.
    In order to migrate your data from MS Access to Oracle using the Migrate Data option in Oracle SQL Developer, you will need to have access to the Migration Repository used for the migration of the MS Access database. The information contained in the Converted Model, in the Migration Repository, is used during the data migration process. The data migration requires the following connections:
    1. a source database connection i.e. a database connection to the MS Access MDB file
    2. a target database connection i.e. a database connection to the migration Oracle schema
    3. a Converted Model connection
    For further information on the creation of a Migration Repository, and the migration process, please refer to the accompanying documentation available via the online Help within Oracle SQL Developer, and also from OTN - http://download.oracle.com/docs/cd/E10405_01/doc/nav/portal_booklist.htm.
    I hope this helps.
    Regards,
    Hilary

  • OLE object Migration from Access to Oracle through SQL developer

    Hello,
    I used sql developer 3.1.07(oracle 11g) to perform data migration from MS ACESS.
    the MS access data has a column with data type as "OLE object" ---there
    saved a lot of pdf files .
    Then I performed "copy to oracle" from MS access connection, the OLE data
    changed to BLOB from oracle database, and data seems to be copied to
    database as binary . However none of the data in the column can be opened. I
    download the blob data to a file from sql developer and tried to open
    using Adobe 8.1 with no success.
    How can I fix this issue? or I should say, how can I migrate MS access OLE data to oracle?
    Thanks,
    H.M.

    thx - will have a look
    Edited by: kgronau on May 22, 2012 4:32 PM
    The original PDF content starts with:
    %PDF-1.4
    %ª«¬
    4 0 obj
    <<
    /Creator (Apache FOP Version 1.0)
    /Producer (Apache FOP Version 1.0)
    /CreationDate (D:20120521131845+02'00')
    >>
    endobj
    5 0 obj
    <<
    /N 3
    /Length 12 0 R
    /Filter /FlateDecode
    >>
    stream
    But when I try to save the content in the BLOB as a file it claims about a missing mime extension and when I ignore this message and save the file anyway as a PDF the content is corrupted.
    It shows as :
    Acrobat Document ..
    ´4 0 obj
    <<
    /Creator (Apache FOP Version 1.0)
    /Producer (Apache FOP Version 1.0)
    /CreationDate (D:20120521131845+02'00')
    >>
    endobj
    5 0 obj
    <<
    /N 3
    /Length 12 0 R
    /Filter /FlateDecode
    >>
    stream
    Did you also get the missing mime type error message?

  • Migrating from Access to Oracle - Captured Model did not convert

    I'm trying to convert an Access database 2003 to Oracle using SQL Developer. I've worked through the migration process to the point where I need to convert the Captured Model to a Converted Model. The first time I ran that step, the application told me there were some issues with some indexes and didn't convert my captured model. I decided to delete my captured model and rerun the process from the point where I import the .xml file and recreate the captured model. I then tried again to create my Converted Model and again it didn't generate. The Converting Database dialog box tells me that it's 'converting the database' and it's 'transforming identifiers' but it just hangs and does nothing. What did I do wrong and how to I correct my issue so that I can create my Converted Model?
    Thank you.

    I was able to get past the Capture Model "hang up" business about three weeks ago. (I'm trying to migrate the Access 2003 Northwind db to APEX 3.2/Oracle 10g.) I found a thread in another forum that noted the problem could be due to a memory issue. This particular post referred to an omwb.bat file in a folder omwb. This may have been referring to an earlier version of SQL Developer -- I could not find the bat file. I'm using SQL Developer Version 2.1.1.64.45. I did, although find a sqldeveloper.bat file in my installation path: C:\Software\sqldeveloper_2.1.1.64.45\sqldeveloper\sqldeveloper\bin. In that file there is one very long java command. And at the very start of that command, I changed
    from: java -Xmx640M -Xms128M .................
    to: java -Xmx1024M -Xms640M ................
    In the java documentation (http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/java.html) this notes that changing these parameters effect the size of the initial and maximum memory allocation pool.
    So that was pretty great -- that it worked. I am at the point now where I've retrieved it all into APEX but it is all invalid and there are so many issues going on all at once that I need to put the project on hold. There is not very much management patience for something like this that goes on and on. Maybe I'll work on it a bit at night now.
    Hope the memory thing helps someone.

  • Update from multiple tables

    Hi friends, need help with the following
    I need to convert the following SQL Server query to Oracle Pl/sql
    UPDATE
    perf
    SET perf.value5 = tmp.storeCount
    FROM dplapro1..ix_spc_performance perf
    INNER JOIN dplapro1..ix_spc_planogram plano ON plano.dbkey = perf.dbparentplanogramkey
    INNER JOIN #TMP_StoreCount tmp ON plano.dbkey6 = tmp.cmkey
    WHERE
    perf.dbparentproductkey = tmp.productkey
    I did the following:
    UPDATE dplapro1.ix_spc_performance perf
    SET perf.value5 =
    SELECT tmp.storeCount
    FROM dplapro1.ix_spc_performance perf
    INNER JOIN dplapro1.ix_spc_planogram plano
    ON plano.dbkey = perf.dbparentplanogramkey
    INNER JOIN tt_433_storecount tmp
    ON plano.dbkey6 = tmp.cmkey
    WHERE perf.dbparentproductkey = tmp.productkey
    which gives me error 'single row subquery returns more than one row',
    Then I tried :
    UPDATE dplapro1.ix_spc_performance perf
    SET perf.value5 =
    SELECT tmp.storeCount
    FROM dplapro1.ix_spc_performance perf
    INNER JOIN dplapro1.ix_spc_planogram plano
    ON plano.dbkey = perf.dbparentplanogramkey
    INNER JOIN tt_433_storecount tmp
    ON plano.dbkey6 = tmp.cmkey
    WHERE perf.dbparentproductkey = tmp.productkey
    where perf.ROWID IN
    SELECT perf.ROWID
    FROM dplapro1.ix_spc_performance perf
    INNER JOIN dplapro1.ix_spc_planogram plano
    ON plano.dbkey = perf.dbparentplanogramkey
    INNER JOIN tt_433_storecount tmp
    ON plano.dbkey6 = tmp.cmkey
    WHERE perf.dbparentproductkey = tmp.productkey
    no luck with this either
    Please help me with this
    Thanks

    I think something like this will do it for you
    MERGE
    INTO dplapro1.ix_spc_performance D
    USING ( SELECT productkey,
                   storecount
              FROM dplapro1.ix_spc_planogram plano
        INNER JOIN tt_433_storecount tmp
                ON plano.dbkey6 = tmp.cmkey
             WHERE perf.dbparentproductkey = tmp.productkey ) S
       ON ( D.dbparentproductkey = S.productkey )
      WHEN MATCHED THEN UPDATE
               SET D.value5 = s.storecount;You need to make sure that the source of the updates - USING clause - returns at most one row for each key in the destination, based on the ON clause. That is, in this case, only one productkey for each dbparentproductkey .

  • Crosstab Query in Oracle

    Dear members:
    I have been trying to generate a crosstab query in Oracle using SQL.
    This is the situation:
    I have two tables in Oracle. One contains characteristics of institutions which people visit, and includes, amongst other fields, the ID of the institution (number) and an identificator for the district where the institution is implanted (number; ranging 1 - 18).
    The second table also contains a field with the ID of the institution, and more: the date when the visit occured (date), and a sequential (unique) number for each visit.
    What I need to obtain is a final table containing the following fields:
    Date of the visit, total number of visitors per date of visit, and a field for each district containing the total number of visitors to instituitions of the district per each date of visit.
    Can anyone give me a hint on this?
    Also; is there a user-frindly interface minimizing the use of SQL that I can download from Oracle for generating this?
    Thank You
    André

    Crosstab is a reporting function not a SQL one. SQL statements must have a fixed number of columns regardless of the data.
    The only way to do it using SQL is to use PL/SQL to generate a dynamic query as shown on Ask Tom here
    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:15151874723724
    Otherwise there are reporting tools such as Oracle Reports that can do it as well.

  • Migration Issues from Informix to Oracle (datetime format)

    Hello, i am performing a Migration from Informix to Oracle, drive by Migration Workbench, i have an error migrating data from datetime and date fields. I suppose its related by datetime and date format, cause the error tells "Incorrect day or month" when i am migrating data from informix. Targets Oracle database date format is DD/MM/YYYY and source`s Informix database date format like MM/DD/YYYY. Is there any way, in OMW, to specify the mask of datetime or date format to convert date strings from informix to oracle format? Or have i got migrate offline and modify control file to do that with sql*loader?
    How can i do that?
    Example, especify to_date('....', 'MM/DD/YYYY H24:MI:SS') format for migrating informix datetime fields to Oracle.

    The problem i have is, several tables witch contains date and datetime fields, at the same table in informix, by migrating drive by omwb to oracle, the date format i receive from informix at reading is DD/MM/YYYY and datetime format receiving is HH24:MI:SS. Migrating date and datetime types from informix to date, both types to date in oracle, i get an error while matching DD = HH24, MM = MI and YYYY = SS where nls_date_format is DD/MM/YYYY and, the same error matching HH24 = DD, MI = MM and SS = YYYY when nls_date_format is HH24:MI:SS.
    If i set nls_date_format as "DD/MM/YYYY HH24:MI:SS" i get the same error, cause reading data from informix results in data format "DD/MM/YYYY" for date fields and "HH24:MI:SS" for datetime fields.
    I have more than 200 tables in informix with this problem to migrate to oracle, i can solve by migrating offline, modifying datacontrol file to casting to_date format, but over 200 tables, 200 datacontrol files... is there any way for solving that by online migration in omwb?

  • MS Access Query to Oracle

    Hi Gurus
    I am trying to convert a MS Access query to Oracle query, Having some trouble Need some help Please.
    This is the MS Access Query:
    Sum(IIf(LOAD1!ARRIVDATE<+Date()+7,LOADLINE1!QTY,0)/ITEM1!UOM) AS Loadtbl
    What would be the Oracle Query???
    Thank you

    Hello,
    well, the problem is the name of the column, ARRIVDATE< - while MS Access allows the "<" inside a column name, Oracle doesn't if you don't be careful. Please see this:
    SQL> create table testtab1 (arrivdate varchar2(100));
    Table created.
    SQL> desc testtab1
    Name Null? Type
    ARRIVDATE VARCHAR2(100)
    SQL> create table testtab2 (arrivdate< varchar2(100));
    create table testtab2 (arrivdate< varchar2(100))
    ERROR at line 1:
    ORA-00902: invalid datatype
    But this works:
    SQL> create table testtab2("ARRIVDATE<" varchar2(100));
    Table created.
    SQL> desc testtab2
    Name Null? Type
    ARRIVDATE< VARCHAR2(100)
    So your query might work if you put ARRIVDATE< in double quotes:
    Sum(DECODE(LOAD1."ARRIVDATE<"+SYSDATE+7,LOADLINE1.QTY,0)/ITEM1.UOM) AS Loadtbl
    Regards
    Wolfgang
    Edited by: wkobargs on Aug 8, 2012 7:51 AM
    Edited by: wkobargs on Aug 8, 2012 7:59 AM
    Edited by: wkobargs on Aug 8, 2012 8:00 AM

  • DB Migration from MYSQL to ORACLE Using Offline Capture

    Hi
    Am doing a database migration from MySQL to Oracle using SQL Developer (version 2.1.1.64). So far, I've successfully captured the MySQL database and converted it to the Oracle Model. However, when generating offline scripts to create the converted model schema into Oracle DDL scripts it managed to generate SQL to create: 1) User 2) Sequences 3) Tables 4) Triggers and 5) constraints.
    It has created the SQL to add the primary key constraints and index constraints. Although it did the foreign key constraints in the SQL, the foreign key constraints seems to have missed the cascading options for the foreign key constraint. I.e. theres no reference of whether the foreign key constraint will restrict on delete or cascade etc.
    We have a foreign keys in the MySql database that have different cascading options and these have not being ported over into the migration SQL. Therefore, all the foreign keys generated in the SQL by default are cascade to restrict on delete.
    Does 'Generate Oracle DDL' not take into account a foreign key's on delete cascading option?
    Any help or information would be greatly appreciated.
    Thanks

    Hello,
    that reminded me for the following thread:
    Migration Microsoft SQL Sever 2005 to Oracle 11g cascade on delete problem
    That is a similar issue, isn't it?
    I opened a bug for that, and it will be fixed in SQL Developer 3.1 (not in any 3.0 Early Adopter version). If you hit the same issue, there is no other way then using the workaround as used in the mentioned thread.
    Regards
    Wolfgang

  • Manual conversion from VMware to Oracle VM

    Hi,
    Could anyone please give me a detailed procedure about converting a machine from VMware to Oracle VM format?
    Our VMware machine have the "-flat.vmdk" format and OVM manager is not converting them. I was advised that I need to do the whole procedure manually.
    Thanks in advance for your help,
    Sam.

    Guys, I am happy to advise that we got a solution for this problem.
    For all those who are unable to convert from WMare to OVM because of the extension *-flat.vmdk just contact Oracle support and ask for a patch for BUG 9569399.
    Regards.

  • Migrating from MySQL to Oracle 11g

    can u tell me the steps to migrating database from MySQL to Oracle using SQL Developer?
    I have installed Oracle 11g(11.1.0.6.0) in server and SQl Developer in my local system.
    I connected to MySQL and Oracle in SQL Developer and tried to MIgrate everything in MySQL to Oracle using Quick Migrate option.
    it took one and half day but didn't work at last...
    is there any pre tasks that i need to do before migrating to oracle from MySQL?
    and also when i export the MySQL data to Oracle using SQL Developer,it is giving data type mismatch errors like (date, boolean etc...).
    please give a reply what i need to do and any refferences also very much appreciated.

    hi Turloch ,
    I followed the steps mentioned above.
    When I right click my MySQL server db Connection and click "Capture MySQL server", it just shows a dialog with "Close" enabled.
    after clicking the close button, it gives following error messages.
    oracle.dbtools.metadata.persistence.PersistableObject.doInsert(PersistableObject.java:238)
    the same error is coming no of times.
    Kindly help me in this regard.

Maybe you are looking for

  • The dreaded 4280 error

    I have been receiving the 4280 error. My computer is up-to-date (it was reformatted less than a month ago), so there should be no issues there. I have tried to decrease my speed (tried burning speeds from 1-8) and nothing has been fixed. Does anyone

  • Safari is crashing upon booting the app up and is giving me a code

    Here is the code in it's entirety... Process:               Safari [827] Path:                  /Applications/Safari.app/Contents/MacOS/Safari Identifier:            com.apple.Safari Version:               8.0.2 (10600.2.5) Build Info:            Web

  • Play Audio through ATV with my HDTV off?

    I've searched the threads without too much luck on this topic. I don't have an ATV yet, but I plan to run an HDMI cable from the ATV to my TV. I also plan to run a toslink optical audio cable from the ATV to an available input on my stereo receiver.

  • Federating the Business explorer role

    Recently we have successfully federated some reports for some business users.  Now another business group is interested in federating the Business explorer role.  They would like to take advantage of the BexWebanayzer iview and a few of its features.

  • Oracle9i occur error when I 'm try to startup  it.

    SQL*Plus: Release 9.0.1.0.0 - Production on 星期六 1月 28 07:37:07 2006 (c) Copyright 2001 Oracle Corporation. All rights reserved. SQL> 已连接到空闲例程。 SQL> ORA-27302: failure occurred at: skgpwreset1 ORA-27303: additional information: invalid shared ctx ORA-