Converting complex Sybase view to Oracle...

I have the following View in Sybase (it's ugly, but works).
From what I have found, Oracle doesn't like to join the base table to more than one other table.
Does anyone have an idea to make this work in Oracle 8.1.7?
create view EVENT_FIND
(swCaseId, swDateCreated,
CRSymptom, CRResolution, Symptom, Resolution,
swSubject, swStatus, swTypeId,
SysSerialNo, FullName, AcctName, SquishAcctName,
SaleOrderId, ConsId, AcctID400, swPriority,
LastId, LastModf, BadgeNum, GroupOwner, SysNo)
as
select SW_CASE.swCaseId, SW_CASE.swDateCreated,
GW_CR_CALLDATA.CRSymptom,
GW_CR_CALLDATA.CRResolution,
(GW_CALLDATA.Symptom1 + "/" + GW_CALLDATA.Symptom2 + "/" +
GW_CALLDATA.Symptom3 + "/" + GW_CALLDATA.Symptom4),
(GW_CALLDATA.Resolution1 + "/" + GW_CALLDATA.Resolution2 + "/" +
GW_CALLDATA.Resolution3 + "/" + GW_CALLDATA.Resolution4),
SW_CASE.swSubject, SW_CASE.swStatus, SW_CASE.swTypeId,
CONSUMERPRODSYS.SysSerialNo, SW_CASE.FullName,
CONSUMER.AcctName, CONSUMER.SquishAcctName,
SW_CASE.SaleOrderId, SW_CASE.ConsId, CONSUMER.AcctID400, SW_CASE.swPriority,
SW_CASE.LastId, SW_CASE.LastModf, SW_CASE.BadgeNum, SW_CASE.GroupOwner, SW_CASE.SysNo
from SW_CASE, CONSUMER, GW_CALLDATA, GW_CR_CALLDATA,
INSTCFG..CONSUMERPRODSYS CONSUMERPRODSYS
where SW_CASE.ConsID = CONSUMER.ConsID
and SW_CASE.swCaseId *= GW_CALLDATA.swCaseId
and SW_CASE.swCaseId *= GW_CR_CALLDATA.swCaseId
and SW_CASE.SysNo *= CONSUMERPRODSYS.SysNo

, Oracle doesn't like to join the base table to more than one other tableSure it does. Oracle will not OUTER join to muliple tables.
But, looking at your view - it should convert no problem.

Similar Messages

  • Keys lost in converting from sybase to oracle

    I am trying to convert from sybase 12 to oracle 10 using the migration workbench.
    The oracle data base created does not have the primary keys that were in the sybase data base. I used the tool to create migration scripts, Create.sql and Drop.sql. These scripts create the tables but do not have primary keys in them.
    Another question is I have user types from the sybase database. Is it possible to change them in the tool? Right now it looks like I can only change the basic database types as in smallInt.

    Hi <Please Supply Your Name>,
    What version of SQL Developer are you using?
    "Create.sql" and "Drop.sql" sound like old OMWB names, Just want to double check.
    Thanks
    Dermot.

  • Sql developer is not converting sybase schema to oracle schema

    Hi from France,
    I am trying to convert a sybase 15 database (a small database) to oracle. I am doing this offline trom beginning to end.
    sybase 15 : virtual box W7
    oracle 11gR2 ; virtual box Oel 6.5
    host W7
    Installed jdts 1.3
    Created the repository
    Captured the configuration off line inside the W7 VM using a shared folder.
    Used SQL dev to migrate
    Everything seems OK but i have no table under converted schema inside SQLDEV, the loader files oracle_external.sh, oracle_loader.sh are empty
    The reporting seems good.
    Another strange thing the master.sql script witch create the Emulation user does not not work :
    =========================================
    SET ECHO OFF
    SET VERIFY OFF
    SET FEEDBACK OFF
    SET DEFINE ON
    CLEAR SCREEN
    set serveroutput on
    COLUMN date_time NEW_VAL filename noprint;
    SELECT to_char(systimestamp,'yyyy-mm-dd_hh24-mi-ssxff') date_time FROM DUAL;
    spool Test_&filename..log
    -- Password file execution
    @passworddefinition.sql
    PROMPT Creating Role
    @role.sql
    prompt Building objects in Emulation
    @@Emulation/master.sql
    prompt starting post processing for schema Emulation
    @@Emulation/post.sql
    spool off;
    ======================================
    Where are my mistakes ?
    Thank you and waiting for your answer.
    Regards

    Hi from france
    I tested with another database DB2 (11.2.0.4) and it's work !!. The previous one DB1 with which it does'nt is a upgraded database from 11.2.0.3 to 11.2.0.4.
    Another difference is that DB1 is including APEX 4.2 and DB2 APEX 3.2.
    I did also a big mistake in the past because yesterday i found repository structures in the sys schema i dropped the repository from sys but the issue is still there.
    By comparing the folder generated by migration I noticed that the MySchemaToMigrate folder is not created when using DB1 :
    Here folders generated with DB1
    Emulation
    .wrapper.sql
    dropallschemas.sql
    master.sql
    passworddefinition.sql
    reportallstatus.sql
    role.sql
    below folders generated with DB2
    Emulation
    MySchemaToMigrate
    .wrapper.sql
    dropallschemas.sql
    master.sql
    passworddefinition.sql
    reportallstatus.sql
    role.sql
    Look like there is a problem with the generation program...
    and the master.sql looks different too :
    DB1 :
    SET ECHO OFF
    SET VERIFY OFF
    SET FEEDBACK OFF
    SET DEFINE ON
    CLEAR SCREEN
    set serveroutput on
    COLUMN date_time NEW_VAL filename noprint;
    SELECT to_char(systimestamp,'yyyy-mm-dd_hh24-mi-ssxff') date_time FROM DUAL;
    spool test06_&filename..log
    -- Password file execution
    @passworddefinition.sql
    PROMPT Creating Role
    @role.sql
    prompt Building objects in Emulation
    @@Emulation\master.sql
    prompt starting post processing for schema Emulation
    @@Emulation\post.sql
    spool off;
    DB2 :
    SET ECHO OFF
    SET VERIFY OFF
    SET FEEDBACK OFF
    SET DEFINE ON
    CLEAR SCREEN
    set serveroutput on
    COLUMN date_time NEW_VAL filename noprint;
    SELECT to_char(systimestamp,'yyyy-mm-dd_hh24-mi-ssxff') date_time FROM DUAL;
    spool test02_&filename..log
    -- Password file execution
    @passworddefinition.sql
    PROMPT Creating Role
    @role.sql
    prompt creating user MySchemaToMigrate
    @@MySchemaToMigrate\user.sql
    prompt Building objects in Emulation
    @@Emulation\master.sql
    prompt Building objects in NATIXIS
    @@MySchemaToMigrate\master.sql
    prompt starting post processing for schema MySchemaToMigrate
    @@MySchemaToMigrate\post.sql
    prompt starting post processing for schema Emulation
    @@Emulation\post.sql
    spool off;
    Which program/package is generating these folder and files ? By investigating them, may be i can found where is the problem...
    Thank you for your help
    Michel

  • Migration from sybase 11 to Oracle 9i

    Hi,
    I have to migrate all db objects (tables structures,table data,triggers,sp) from Sybase 11 to Oracle 9i
    There are currently two free tools -
    Migration workbench (http://www.oracle.com/technology/tech/migration/workbench/index.html )
    and
    SQL Developer( http://www.oracle.com/technology/tech/migration//workbench/index_sqldev_omwb.html )
    for this purpose.
    SQL developer has a provision to convert scripts which I can use for SPs and scripts one @ a time.
    Problem is migrating table structures along with data.
    from SQL developer I can't connect to sybase thou I provide all the details and from workbench in the online mode I need the sa login which is not possible as the database is live and @ client side.
    SQL Loader can be used but will require to make CSV files from each sybase table and hence is time consuming.

    Hi,
    Migration Workbench is not available for Sybase database.
    As you can see on this website:
    http://www.oracle.com/technology/tech/migration/workbench/files/mig_rel10104.html
    Only Informix and DB2 database are supoprted now with this product.
    With SQL Developer, we only support last versions of Sybase : V12 and V15.
    As you don't have any remote access to your client database and no SA login , the best way would be :
    ==>to get and export from Sybase 11.
    ==>install a V12 somewhere (on your site , you can download the Sybase V15 )and import the Sybase database
    Then SQL developer can migrate quickly your database without any problem.
    I hope it helps you.
    Mireille

  • Migrating table from Sybase 12 to Oracle 10g

    Hi ,
    We have a situation where we have to migrate multiple Sybase databases to Oracle10g . These multiple database have same set of tables but different data in these tables on each sybase database ( data differ, based on location or region wise but same table name and structure). We want to migrate all these sybase database to Oracle 10g and in single database, which involves inserting data from multiple tables ( though they exist on different database in sybase) into single Oracle table.
    for example if we have a table 'TESTK' that exist on five different sybase database but with different region wise data. I want to bring data from these five tables( Five as they exist in five differet sybase databases) and insert them into a single oracle table 'TESTK' .
    Have anybody ever face such scenerio , what are all possible approch please suggest. Once data is inserted into oracle table i need to partitioned this oracle table as well.

    It is not quite clear whether you have multiple tables (referencing each other) in multiple sybase databases or either one table or several non connected tables in multiple sybase databases.
    In the first case of course your task is harder because you need to keep references and most probably you cannot blindly copy data from db 1, db 2 and unite them because they can have the same id's coming from different sources.
    In the second case your task of course is much easier you can simply load all your data in Oracle tables either using some interim tables (if you need to filter out duplicates) or load data straight into target tables if you are sure you haven't duplicates.
    Also another question in case 1 is whether intersection of your data is 0 rows i.e. all data are completely different in each source db or not.
    So I'm sure you can find tools for blindly moving data from sybase to Oracle, although if you need to do some more complex filtering, computation or whatever you most probably need to write it yourself.
    I'v done a few data conversion projects from one schema to another and as the requirements were quite complex the only possibility for us was to initiate a separate data conversion project and create conversion software (pl/sql packages manually).
    You can find an overview of our approach in my article "Data migration from old to new application: an experience" here http://www.gplivna.eu/papers/legacy_app_migration.htm
    Gints Plivna
    http://www.gplivna.eu

  • Developing database views between Oracle and SQL Server tables

    I am on Oracle 10.2, my organization has many SQL Server databases as well and has now made
    SQL server as company standard so many new databases will be developed in SQL Server. It is of course
    not possible to convert all Oracle databases to SQL Server, so a mix environment will exist. Two questions:
    1.     Is it possible to develop database views in Oracle (10g in my case) which join Oracle tables with tables in SQL Server 2008? If yes, how. I have seen some heterogeneous connectivity setup to connect SQL Server to Oracle, but not sure whether it is possible to develop a database view across two databases.
    2.     I know it is not a SQL Server forum, but many DBA’s know both Oracle and SQL Server. Is it possible to develop views in SQL Server (SQL Server 2008 R2 in my case) which join Oracle 10g and SQL Server 2008 tables? I know in SQL Server, there is way to set up linked servers, but do not know whether it is possible to develop views.
    Thanks a lot for your insight.

    You can create views that join local Oracle tables and remote SQL Server tables. I'm pretty sure you can do the reverse as well but I haven't personally done it.
    However, I would be very concerned about the performance you'd get if you created that sort of view. You'd very frequently end up in a situation where Oracle has to pull all the data in the remote table across the database link in order to apply predicates and join the data locally. That could be disastrous from a performance standpoint.
    Justin

  • Sybase group to oracle roles

    I've been testing Sybase to Oracle migration using SQL Developer 3.1.06 release. I dont see the user/groups on the Sybase is not getting converted in respective roles in Oracle. Am i missing something here? Any help is much appropriated.
    Thanks
    ~ G

    Looks like a open issue. My Query is very similar to one below. Any update on this? Is this a know issue on SQL Developer migration option for Sybase? Can someone confirm..
    SQL Developer 3.1 not migrating Sybase Users to Oracle 11g R2

  • Views in oracle

    what is composite view in oracle ?
    what is the difference between composite & materialized view ?

    Hi
    There is no composite view in the Oracle. This is 100% correct. We have composite primary key, composite index are there. Means more than one column of primary key called composite PK, same more than one column index called composite index.
    complex view
    Complex view is a database object which is created by more than one table and with group by functions.(max, min, count,avg,sum). So, we can't perform DML operations on this view. Only Instead of trigger can help you.
    Ganesh has given the Example of complex view. That is more than enough. Regarding Materialized view, given the URL is enough.Still you have any queries...!!! shoot them.
    Regards
    KPR.
    *If this response correct then mark it as correct answer.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Displaying Sybase data in Oracle Portal?

    I am using the Oracle Transparent Gateway for Sybase to access Sybase data in SQL Plus. How do I display
    the sybase data in Oracle Portal? Does anyone know what to do or is there any documentation on this? Thanks.

    Thomas,
    First of all you need to create a schema for your Portal Application. Once that is done you will need to run in a DBA script called provsyns.sql so that this schema can execute and view the Portal core objects.
    This script is located in $9ias_ORACLE_HOME/portal30/admin/plsql/wwc
    Run this script as PORTAL30 with one parameter, this being the name of your new schema.
    Then your next step would be to set up all the necessary grants and synonyms so that the objects you wish to view over the gateway can be viewed from your application schema.
    Then you are ready to create an application in Portal via Navigator --> Applications.
    Choose the new schema as the Application schema (this is where all the Portal generated code gets compiled) and try creating a simple Report component to see if your non-portal components are set up properly.
    Hope this helps...
    John

  • How to wrap a view in oracle

    Does any one know how to wrap a view in Oracle, I know it is not possible, yet. Are there any third party software to wrap the logic in the view.
    Thanks,
    Sanjay

    Your best bet is to write a view that queries the source tables and contains any necessary business logic
    CREATE VIEW VBASE AS SELECT A.COLUMN_A FROM TABLE_1 A, TABLE_2 B, TABLE_3 C WHERE A.ID = B.ID AND B.ID = C.ID;
    create a view for exposure to the user that queries the base view.
    CREATE VIEW VSECURE AS SELECT COLUMN_B FROM VBASE;
    and grant privileges to VSECURE.
    GRANT SELECT ON VSECURE TO SECURE_USER;
    This will allow the user to see, query, and describe VSECURE without seeing the definition for VBASE.
    The advantage of the this approach is that the query engine can still push predicates down into the base view to optimize the performance or the query where as this is limited with the pipeline function and can become a tuning headache.
    eg.
    SQL> -----------------------------------------
    SQL> -- create some tables
    SQL> -----------------------------------------
    SQL> CREATE TABLE table_1(ID NUMBER, MESSAGE VARCHAR2(100))
    Table created.
    SQL> CREATE TABLE table_2(ID NUMBER, message2 VARCHAR2(100))
    Table created.
    SQL> CREATE TABLE table_3(ID NUMBER, message3 VARCHAR2(100))
    Table created.
    SQL> -----------------------------------------
    SQL> -- populate tables with some data
    SQL> -----------------------------------------
    SQL> INSERT INTO table_1
    SELECT ROWNUM,
    CASE
    WHEN MOD ( ROWNUM, 50 ) = 0 THEN 'HELLO there joe'
    ELSE 'goodbye joe'
    END
    FROM DUAL
    CONNECT BY LEVEL < 1000000
    999999 rows created.
    SQL> INSERT INTO table_2
    SELECT ROWNUM,
    CASE
    WHEN MOD ( ROWNUM, 50 ) = 0 THEN 'how are you joe'
    ELSE 'good to see you joe'
    END
    FROM DUAL
    CONNECT BY LEVEL < 1000000
    999999 rows created.
    SQL> INSERT INTO table_3
    SELECT ROWNUM,
    CASE
    WHEN MOD ( ROWNUM, 50 ) = 0 THEN 'just some data'
    ELSE 'other stuff'
    END
    FROM DUAL
    CONNECT BY LEVEL < 1000000
    999999 rows created.
    SQL> -----------------------------------------
    SQL> --create base view
    SQL> -----------------------------------------
    SQL> CREATE OR REPLACE VIEW vbase AS
    SELECT a.MESSAGE,
    c.message3
    FROM table_1 a,
    table_2 b,
    table_3 c
    WHERE a.ID = b.ID
    AND b.ID = c.ID
    View created.
    SQL> -----------------------------------------
    SQL> --create secure view using base view
    SQL> -----------------------------------------
    SQL> CREATE OR REPLACE VIEW vsecure AS
    SELECT MESSAGE,
    message3
    FROM vbase
    View created.
    SQL> -----------------------------------------
    SQL> -- create row type for pipeline function
    SQL> -----------------------------------------
    SQL> CREATE OR REPLACE TYPE vbase_row
    AS OBJECT
    message varchar2(100),
    message3 varchar2(100)
    Type created.
    SQL> -----------------------------------------
    SQL> -- create table type for pipeline function
    SQL> -----------------------------------------
    SQL> CREATE OR REPLACE TYPE vbase_table
    AS TABLE OF vbase_row;
    Type created.
    SQL> -----------------------------------------
    SQL> -- create package
    SQL> -----------------------------------------
    SQL> CREATE OR REPLACE PACKAGE pkg_getdata AS
    FUNCTION f_get_vbase
    RETURN vbase_table PIPELINED;
    END;
    Package created.
    SQL> -----------------------------------------
    SQL> -- create package body with pipeline function using same query as vbase
    SQL> -----------------------------------------
    SQL> CREATE OR REPLACE PACKAGE BODY pkg_getdata AS
    FUNCTION f_get_vbase
    RETURN vbase_table PIPELINED IS
    CURSOR cur IS
    SELECT a.MESSAGE,
    c.message3
    FROM table_1 a,
    table_2 b,
    table_3 c
    WHERE a.ID = b.ID
    AND b.ID = c.ID;
    BEGIN
    FOR rec IN cur
    LOOP
    PIPE ROW ( vbase_row ( rec.MESSAGE, rec.message3 ) );
    END LOOP;
    END;
    END pkg_getdata;
    Package body created.
    SQL> -----------------------------------------
    SQL> -- create secure view using pipeline function
    SQL> -----------------------------------------
    SQL> CREATE or replace VIEW vsecure_with_pipe AS
    SELECT *
    FROM TABLE ( pkg_getdata.f_get_vbase ( ) )
    View created.
    SQL> -----------------------------------------
    SQL> -- this would grant select on the 2 views, one with nested view, one with nested pipeline function
    SQL> -----------------------------------------
    SQL> GRANT SELECT ON vsecure TO test_user
    Grant complete.
    SQL> GRANT SELECT ON vsecure_with_pipe TO test_user
    Grant complete.
    SQL> explain plan for
    SELECT *
    FROM vsecure
    WHERE MESSAGE LIKE 'HELLO%'
    Explain complete.
    SQL> SELECT *
    FROM TABLE ( DBMS_XPLAN.display ( ) )
    PLAN_TABLE_OUTPUT
    Plan hash value: 3905984671
    | Id | Operation | Name | Rows | Bytes |TempSpc| Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | 16939 | 2365K| | 3098 (3)| 00:00:54 |
    |* 1 | HASH JOIN | | 16939 | 2365K| 2120K| 3098 (3)| 00:00:54 |
    |* 2 | HASH JOIN | | 24103 | 1835K| | 993 (5)| 00:00:18 |
    |* 3 | TABLE ACCESS FULL| TABLE_1 | 24102 | 1529K| | 426 (5)| 00:00:08 |
    | 4 | TABLE ACCESS FULL| TABLE_2 | 1175K| 14M| | 559 (3)| 00:00:10 |
    | 5 | TABLE ACCESS FULL | TABLE_3 | 826K| 51M| | 415 (3)| 00:00:08 |
    Predicate Information (identified by operation id):
    1 - access("B"."ID"="C"."ID")
    2 - access("A"."ID"="B"."ID")
    3 - filter("A"."MESSAGE" LIKE 'HELLO%')
    Note
    PLAN_TABLE_OUTPUT
    - dynamic sampling used for this statement
    23 rows selected.
    SQL> -----------------------------------------
    SQL> -- note that the explain plan shows the predicate pushed down into the base view.
    SQL> -----------------------------------------
    SQL> explain plan for
    SELECT count(*)
    FROM vsecure_with_pipe
    WHERE MESSAGE LIKE 'HELLO%'
    Explain complete.
    SQL> SELECT *
    FROM TABLE ( DBMS_XPLAN.display ( ) )
    PLAN_TABLE_OUTPUT
    Plan hash value: 19045890
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | 1 | 2 | 15 (0)| 00:00:01 |
    | 1 | SORT AGGREGATE | | 1 | 2 | | |
    |* 2 | COLLECTION ITERATOR PICKLER FETCH| F_GET_VBASE | | | | |
    Predicate Information (identified by operation id):
    2 - filter(VALUE(KOKBF$) LIKE 'HELLO%')
    14 rows selected.
    SQL> -----------------------------------------
    SQL> -- note that the filter is applied on the results of the pipeline function
    SQL> -----------------------------------------
    SQL> set timing on
    SQL> SELECT count(*)
    FROM vsecure
    WHERE MESSAGE LIKE 'HELLO%'
    COUNT(*)
    19999
    1 row selected.
    Elapsed: 00:00:01.42
    SQL> SELECT count(*)
    FROM vsecure_with_pipe
    WHERE MESSAGE LIKE 'HELLO%'
    COUNT(*)
    19999
    1 row selected.
    Elapsed: 00:00:04.11
    SQL> -----------------------------------------
    SQL> -- note the difference in the execution times.
    SQL> -----------------------------------------

  • Explicit cast needed to convert java.* to to oracle.*

    Hello,
    I am trying to compile and run the following JSP but keep getting the "Incompatible type for = Explicit cast needed ..." error. The JSP and oracle procedure code are as follows:
    <%@ page language="java" import="java.sql.*" %>
    <%@ page import="oracle.jdbc.driver.*" %>
    <HTML>
    <HEAD>
    <TITLE>
    SimpleQuery JSP
    </TITLE>
    </HEAD>
    <BODY BGCOLOR=EOFFFO>
    <TABLE BORDER=1 BGCOLOR="C0C0C0">
    <TH BGCOLOR="white"> <I>Node ID</I> </TH>
    <%
         Connection con = null;
    OracleCallableStatement cstmt= null;
         ResultSet rs = null;
    try {
              String SYSTEM_DB_DRIVER =
    "oracle.jdbc.driver.OracleDriver";
    String SYSTEM_DB_URL =
    "jdbc:oracle:thin:@myserver.com:1521:";
    String SYSTEM_DB_FILE = "CONN_STRING";
    String SYSTEM_DB_USER = "UNAME";
    String SYSTEM_DB_PASSWORD = "PASSWD";
              Class.forName(SYSTEM_DB_DRIVER);
    con = DriverManager.getConnection(SYSTEM_DB_URL +
    SYSTEM_DB_FILE, SYSTEM_DB_USER, SYSTEM_DB_PASSWORD);
              cstmt = con.prepareCall("call eaicl_p_requirement.open_rule_dtl(?,?)");
              cstmt.registerOutParameter(1, OracleTypes.CURSOR);
    <<I think I have to pass the p_product_id_in here but not sure how>>
              cstmt.execute();
              rs = ((OracleCallableStatement)cstmt).getCursor(1);
              while(rs.next())
              {%>
         <TR>
         <TD ALIGN=CENTER> <%= rs.getString(1) %> </TD>
         <TD ALIGN=CENTER> <%= rs.getInt(2) %> </TD>
    </TR>
              <%}
                   rs.close();
    cstmt.close();
    con.close();
    catch(Exception e)
    %>
    </TABLE>
    </BODY>
    </HTML>
    The Oracle PL/SQL package.procedure it is calling is:
         PROCEDURE open_rules_dtl (
              prc_rules_dtl_out          OUT     rc_fetch_rule_dtl,
              p_product_id_in          IN          NUMBER )
         IS
              vrc_rules_dtl               rc_fetch_rule_dtl;
         BEGIN
              OPEN vrc_rules_dtl FOR
                   SELECT
                        r.rule_id,
                        r.rule_name,
                        r.rule_objective,
                        r.rule_description,
                        r.clearance_requirement,
                        r.rule_type
                   FROM
                        eaicl_rule r
                   WHERE
                        r.is_old = 'N' AND
                        r.product_id = CHR( p_product_id_in )
                   ORDER BY
                        r.rule_name
              prc_rules_dtl_out := vrc_rules_dtl;
    END open_rules_dtl;
    I keep getting the following error on the webserver:
    [05/Dec/2001:16:56:02] info ( 632): JSP: JSP1x compiler threw exception
    org.apache.jasper.JasperException: Unable to compile class for JSPC:\iPlanet\Server4\https-wacc\config\..\ClassCache\_jsps\_ss_test5_jsp.java:84: Incompatible type for =. Explicit cast needed to convert java.sql.CallableStatement to oracle.jdbc.driver.OracleCallableStatement.
              cstmt = con.prepareCall("call eaicl_p_requirement.open_rule_dtl(?,?)");
              ^
    I'm not sure how to fix it. I also need to pass the p_product_id parameter to the procedure.
    Hope someone can point me in the right direction. Thanks.

    Here's how you do an explicit cast:cstmt = (OracleCallableStatement)con.prepareCall("call eaicl_p_requirement.open_rule_dtl(?,?)");

  • How to Register a View in Oracle Applications

    Hi,
    I have created a Custom View and want it to see it in one of the BPA Pages. For this purpose I shall need to register the view in Oracle Applications.
    Can you please provide me clues to do so. I tried the Application Developer responsibility, there I can only query the view and not register them.
    Also if I try using backend I could get hold of Package AD_DD which registers a table. Any clues for registering the View would be welcome.
    Thanks

    Thanks for your response.
    Actually I need to show Sales Order Line No, Federal Id and a few other Fields on our Invoice. Now these are not available in Oracle Recievables view. So I was trying to create my own View.
    I created a View in database. Now I am trying to create a Data source and associate this (custom created) View to it. However my View is not showing in the Views List of Values.
    I am not sure whether I am doing it right. Can you please help me with this. Any pointers to a document which explains my requirement would be great.
    Thanks
    Sumit

  • Creating a Materialized View in Oracle 8i

    Hello -
    What are the steps and privileges required to create a materialized view in Oracle 8i?
    Thanks

    To create a materialized view in your own schema:
    You must have been granted the CREATE MATERIALIZED VIEW system privilege and either the CREATE TABLE or CREATE ANY TABLE system privilege.
    You must also have access to any master tables of the materialized view that you do not own, either through a SELECT object privilege on each of the tables or through the SELECT ANY TABLE system privilege.
    To create a materialized view in another user's schema:
    You must have the CREATE ANY MATERIALIZED VIEW system privilege.
    The owner of the materialized view must have the CREATE TABLE system privilege. The owner must also have access to any master tables of the materialized view that the schema owner does not own (for example, if the master tables are on a remote database), and to any materialized view logs defined on those master tables, either through a SELECT object privilege on each of the tables or through the SELECT ANY TABLE system privilege.
    Thanks
    Manish

  • Error: ORA-03113 while executing complex java code from Oracle PL/SQL

    Hi,
    I am trying to execute a complex java code from Oracle PL/SQL. The classes were resolved successfully. But in the middle of execution, I am getting the following error:
    ERROR:
    ORA-03114: not connected to ORACLE
    begin
    ERROR at line 1:
    ORA-03113: end-of-file on communication channel
    Process ID: 13685
    Session ID: 21 Serial number: 20
    Is there a way to debug the Java classes loaded into oracle? Or is there any utility to find out why the connection was lost?
    Regards,
    Saravana

    Hi Saravana:
    You could use simply System.out.println(..) at your Java code and see the output at the .trc files generated for your Oracle session.
    Or better than this adding Java Util Logging messages at your code, to see how to use JUL API at the OJVM please see this blog post [Using JUL API inside the OJVM|http://marceloochoa.blogspot.com/2007/11/getting-logging-entering-exiting-and.html].
    Best regards, Marcelo.
    PD: ora-0600 generally are associated with RDBMS bugs, but these bugs can be bypassed by replacing the code which throws the exception by other with a workaround.

  • Problems with Sybase 12 to Oracle 10g migration

    Hi,
    I'm using SQL Developer to test a migration between Sybase and Oracle and it doesn't work (both online and offline)
    I've create a dedicated user account and connection, with the roles and privileges required (as seen in http://download.oracle.com/docs/cd/B32485_01/doc/appdev.110/b31695/migration.htm#i1005739)
    I've created the migration repository without any problems (using the above user account).
    QUICK MIGRATION
    - select the source Sybase connection: OK
    - select the target Oracle connection: OK
    - select the referential: OK
    - verify privileges before migration: OK
    - migrate tables only and click Next
    ## window closes and nothing happens ## - nothing on Captured Model pane
    CAPTURE SOURCE SYBASE DATABASE
    - right click on the Sybase connection in the Connections pane
    - choose Capture Sybase
    ## window closes and nothing happens ## - nothing on Captured Model pane
    OFFLINE CAPTURE
    - create database capture scripts: OK
    - launch the database scripts (SYB12_OFFLINE_CAPTURE.BAT): OK
    - load database capture script output (sybase12.ocp)
    ## window closes and nothing happens ## - nothing on Captured Model pane
    I can't find any relevant logs or trace from the application.
    I even tried to use the capture file sybasemigration.zip from the "Migrating a Sybase Database to Oracle Database 11g" web page (http://www.oracle.com/technology/obe/hol08/sqldev_migration/sybase/migrate_sybase_otn.htm), but the result was the same.
    Does anyone encountered the same problems? Does someone knows where are the logs (if any)?
    Thanks in advance.
    Regards,
    Pedro

    Hi Pedro,
    What version of SQL Developer are you using?
    Can you browse your Sybase connection in SQL Developer, to see its tables for example?
    If not, then you may need to point SQL Developer to your JTDS 1.2 driver again.
    Are you capturing a non system database ? SQL Developer wont migration master or tempdb ...
    Can you try running SQL Developer from the command line and watch the command line for any errors during the capture.
    \sqldeveloper\bin\sqldeveloper.exe
    Regards,
    Dermot
    SQL Developer Team

Maybe you are looking for