Replacement for oracle Jdriver type 2?

Hi,
Since WLS8.1 Sp1, the WebLogic Jdriver is deprecated...
I was using the Oracle JDriver Type 2 (native).
Does it exist a new type 2 driver? Or should I use the oci driver from oracle?
Thank you
Yann.

You should use the type 2 driver from oracle.

Similar Messages

  • Microsoft OLE DB Provider for Oracle: Data type is not supported.

    I got the error:
    Microsoft OLE DB Provider for Oracle: Data type is not supported.
    Shortly after upgrading from Oracle 8 to Oracle 9. I was advised to download more up to date oracle drivers, but I was wondering if there was a way to tell what version of the 'OLE DB Provider for Oracle' is already at. Is there a command I can use via SQL Plus or something?

    I have found Microsoft ODBC for Oracle to be more stable than the Microsoft OLEDB for Oracle driver. I have also found both Microsoft ODBC and OLEDB drivers to be more stable than the drivers from Oracle.
    You could always get the latest MDAC (Microsoft Data Access Components) from Microsoft's MSDN Download site and then get the ODAC (Oracle Data Access Components) from Oracle's OTN Download site. ODAC requires MDAC. And ODAC has the latest drivers.
    I suppose it would help to have the latest patches for your Oracle client software too. Maybe Oracle MetaLink would have these?
    It may even help to have the latest service pack for Visual Studio 6 (Visual C++ 6 and Visual Basic 6) too.

  • Domains for Oracle object types

    When I create a domain for a certain Oracle object type there is no way to create some kind of inheritance tree (and there is no discriminator support it seems). On the database level I have several object types that extend a certain base object type. I want to do the same at the BC4J level. But unfortunately this doesn't seem possible. Is there a work-around for it? I don't mind to write a little extra code, any hints or help are appreciated.
    Regards,
    Peter
    P.S.
    It seems the object type / domain support in JDeveloper 9.0.3(.1) isn't quite up there with entities and view objects. It's not even possible to change an attribute name at the Java side using the domain dialog (it's only possible by manually editing the XML and Java files). Will JDeveloper 9.0.4 have broader support for object types / domains?

    I've found a way to implement the inheritance myself, at least a start. I've noticed all custom domains for oracle object types have the static method "getCustomerDatumFactory". In this method (in the base domain class) normally an instance of the base type is returned. I've modified this method so that it returns instances of the different subtypes depending on the value of a certain column. To make this work I first have to edit the Java files of the subtypes and let them extend the base type instead of the Struct class. The factory method looks like this:
    public static CustomDatumFactory getCustomDatumFactory()
        if (fac == null)
          class facClass implements CustomDatumFactory
            public CustomDatum create(Datum d, int sql_type_code) throws SQLException
              if (d != null)
                BaseType b = new BaseType(d);
                if ("subtype1".equals(b.getType())) b = new SubType1(d);
                else if ("subtype2".equals(p.getType())) b = new SubType2(d);
                else System.err.println("Unknown subtype: " + b.getType());
                return b;
              return null;
          fac = new facClass();
        return fac;
      }I also tried to save several of the subtypes in the database in the attribute field (which is of the base type) using setAttribute, this seems to work out-of-the-box. It seems for now I only get this to work if the object type is saved in a column of a certain table, I can't get it to work (yet) for object type tables (see the other recent topic of mine).
    Is this the correct way to implement what I want? Or is there a better way?
    Regards,
    Peter

  • Refining SQL Replacement for Oracle's WM_CONCAT Function (Pivoting Rows to column)

    Greetings,
    I am moving a query from Oracle SQL to Microsoft SQL and am having some difficulty with the transition. Part of my code (listed here) used to pivot the data and display RESULT_VALUE 
    by the CPI_SEQ . In Oracle this was easy to do by using the function: WM_CONCAT.
    I have been ‘Googling’ for the non-Oracle way to achieve this and stumbled on to the “STUFF((SELECT…)”
     method. This almost works for me except that it places everything into one cell, whereas
     I need to concatenate  RESULT_VALUE by CPI_SEQ (the CPI_SEQ is the unique ID). The current code gives me this:
    RESULTS
    Anxiety, Depression, Diabetes, 
    COPD, ARDS
    Whereas I want  my code to present it this way instead
    CPI_SEQ                              
    RESULTS
    22                                          
    Anxiety, Depression
    44                                          
    Diabetes
    46                                          
    COPD, ARDS
    SELECT (STUFF((SELECT ',' + RESULT_VALUE
    FROM
    SELECT DISTINCT
    C1.CPI_Seq AS CPI_SEQ,C1.Result_Value AS RESULT_VALUE
    ,count(FCurrent.Field_Name) "Current"
    ,count(FPast.Field_Name) "Past"
    ,Count(*) Count
    ,CASE
    When count(FCurrent.Field_Name) > 0 and count(FPast.Field_Name) >0 and count(Fcurrent.Field_Name)+ count(FPast.Field_Name) = Count(C1.PF_RESULT_SEQ) Then CONCAT(C1.Result_Value,'(C/P)')
    When count(FCurrent.Field_Name) > 0 and count(FPast.Field_Name) =0 and count(Fcurrent.Field_Name)+ count(FPast.Field_Name) = Count(C1.PF_RESULT_SEQ) Then CONCAT (C1.Result_Value,'(C)')
    When count(FCurrent.Field_Name) = 0 and count(FPast.Field_Name) >0 and count(Fcurrent.Field_Name)+ count(FPast.Field_Name) = Count(C1.PF_RESULT_SEQ) Then CONCAT(C1.Result_Value,'(P)')
    End Result
    From
    [AnalyticsDW].[dbo].[rr_stag_PF_Results] A1
    join [AnalyticsDW].[dbo].[rr_stag_PF_Results] C1 on A1.PF_Result_Seq = C1.PF_Result_Seq
    join [AnalyticsDW].[dbo].[rr_PF_Fields_Dept] FCurrent on A1.PF_Result_Seq = FCurrent.RES_SEQ
    AND FCurrent.Field_Name = 'Current'
    AND A1.Label_Seq in('187582', '187576','187612','187600','187618','187612')
    left join [AnalyticsDW].[dbo].rr_PF_Fields_Dept FPast on A1.PF_Result_Seq = FPast.Res_Seq
    AND FPast.Field_Name = 'Past'
    AND A1.Label_Seq in('187583', '187577','187613','187601','187619','187613')
    WHERE
    A1.Result_Value ='Yes'
    AND (C1.Result_Value in ('Dyspnea', 'Confusion','Pressure Ulcer', 'Stasis Ulcer','Depression','Anxiety'))
    GROUP BY
    C1.CPI_Seq,
    C1.Result_Value
    ) L1
    FOR XML PATH('')),1,2,'')) RESULTS

    ;With CTE
    AS
    SELECT
    C1.CPI_Seq AS CPI_SEQ,
    C1.Result_Value AS RESULT_VALUE
    From
    [AnalyticsDW].[dbo].[rr_stag_PF_Results] A1
    join [AnalyticsDW].[dbo].[rr_stag_PF_Results] C1 on A1.PF_Result_Seq = C1.PF_Result_Seq
    join [AnalyticsDW].[dbo].[rr_PF_Fields_Dept] FCurrent on A1.PF_Result_Seq = FCurrent.RES_SEQ
    AND FCurrent.Field_Name = 'Current'
    AND A1.Label_Seq in('187582', '187576','187612','187600','187618','187612')
    left join [AnalyticsDW].[dbo].rr_PF_Fields_Dept FPast on A1.PF_Result_Seq = FPast.Res_Seq
    AND FPast.Field_Name = 'Past'
    AND A1.Label_Seq in('187583', '187577','187613','187601','187619','187613')
    WHERE
    A1.Result_Value ='Yes'
    AND (C1.Result_Value in ('Dyspnea', 'Confusion','Pressure Ulcer', 'Stasis Ulcer','Depression','Anxiety'))
    GROUP BY
    C1.CPI_Seq,
    C1.Result_Value
    SELECT CPI_Seq,
    STUFF((SELECT ',' + Result_Value
    FROM CTE
    WHERE CPI_Seq = c.CPI_Seq
    FOR XML PATH(''),TYPE).value('.','varchar(max)'),1,1,'') AS Results
    FROM (SELECT DISTINCT CPI_Seq FROM CTE)c
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • DatabaseMetaData for Oracle Object Types

    I have successfully written a Java program to read a schema - i.e. Tables, Primary Keys, Imported Keys, Exported Keys & Columns - using DatabaseMetaData. However, I need to decompose Oracle Objects.
    My test case is:
    SQL> desc object_column_table
    Name Null? Type
    ID NUMBER(11)
    TYP OBJ_COL_TYP
    SQL> desc obj_col_typ
    Name Null? Type
    VC VARCHAR2(255)
    NUM NUMBER(11)
    DT DATE
    CH CHAR(7)
    I believe I have found the method that I require:
    public void showAttributes(String schema, String typeName, String attribute)
    The JavaDoc says "Retrieves a description of the given attribute of the given type for a user-defined type (UDT) that is available in the given schema and catalog."
    However, this throws "java.sql.SQLException: Unsupported feature"
    My driver details are:
    Driver Name: Oracle JDBC driver
    Version: 10.1.0.2.0
    Major Version: 10
    Minor Version: 1
    JDBC Major Version: 10
    JDBC Minor Version: 1
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.1.0.4.0 - Production
    With the Partitioning, OLAP and Data Mining options
    So, how do I decompose Oracle Objects?
    Thanks in advance for your help.

    reynaudj,
    Try searching this forum's archives for the term "STRUCT". Perhaps also search the OTN Web site as well.
    Good Luck,
    Avi.

  • Getting varchar objects as "???" while using struct for oracle object type

    Hi all.
    I have a problem whith VARCHAR values which is returned from an oracle function. The function returns an oracle type and I get it using STRUCT. I can get all non VARCHAR values of the TYPE like NUMBER and TIME without any problem. But when I get VARCHAR values, they all come as if equal to"???". I called the database function in TOAD and everything works perfect. It seems that somewhere in between we loose the information. Has anyone encountered such a strange problem?
    Part of the code look like:
    CallableStatement callState = null;
              ResultSet rs = null;
              UOAReturnType result= new UOAReturnType();
              try
                   callState = getConnection().prepareCall("{?=call Call.UACBS.GETREDL(?)}");
                   callState.registerOutParameter(1, OracleTypes.STRUCT,"CALL.TYPE_REDL_RO");
                   callState.setString(2,msisdn);
                   callState.execute();
                   Struct RedlRoStrct = (Struct)callState.getObject(1);
                   Object[] redlRo = RedlRoStrct.getAttributes();
                   Struct redlStruct = (Struct)redlRo[0];
                   Object[] redl =null;
                   if(redlStruct!=null){
                        redl = redlStruct.getAttributes();
                        result.setMsisdn(redl[0].toString());
                        try {
                             result.setTime(UtilDate.getDate(redl[1].toString(),dateFormat,custLocale));
                        } catch (NullPointerException e2) {
                             result.setTime(null);
                             e2.printStackTrace();
                        result.setReason(Integer.parseInt(redl[2].toString()));
                        result.setSource(redl[3].toString());
                   Struct opReturnStruct = (Struct)redlRo[1];
                   Object[] opReturn = opReturnStruct.getAttributes();
                   result.setResultCode(Integer.parseInt(opReturn[0].toString()));
                   result.setResultDescription(opReturn[1].toString());Any idea will be appreciated.
    Thanks.......

    Hi,
    I don't think it is a java problem.You can see time and number types because the characters are digits. My guess is that it has something to do with some settings on the client. Try to have the NLS_LANG environment variable appropriately set. Also try invoking your test script from sqlplus to see if the results actually work.
    Kiros

  • Is SOA Suite replacement for Oracle Service Bus 10gR3 (10.3.1.0) ?

    I am confused if i have SOA Suite do I need Oracle Service Bus 10gR3 (10.3.1.0) for my ESB ?

    Right now there are eclipse plug-ins for OSB. In a default OSB installation you should have workshop installed with the OSB plug-ins.
    For the next release, OSB 11g, JDeveloper will incorporate these features.

  • Replacement for Oracle Graphics in Forms 9i.

    I read some time ago that Oracle Forms 9i was going to use a
    special Java tool to create charts but in the 9i documents
    available I can't see any reference to it anymore. What is the
    official direction?

    I suggest that you'll have a look at Oracle's BI beans which integrate with Oracle9i JDeveloper and enable you to create graphs that can be incorporated into Forms also.

  • Cannot create connection pool with weblogic jDriver XA for oracle

    Hi everybody,
    we have serious problems configuring the weblogic jDriver for Oracle with support
    for distributed transactions.
    Everything works fine with the non-XA driver.
    We tried the suggestions given here before like setting the environment variable
    ORACLE_SID. However, this does not change the errors we get. We use Weblgic Server
    6.1 SP2 with oracle 8.1.7 (client and server) under Windows NT.
    When attempting to create the connection pool, we get the following exception:
    Starting Loading jDriver/Oracle .....
    <14.05.2002 15:48:30 CEST> <Error> <JDBC> <Cannot startup connection pool "DiplPool"
    weblogic.common.ResourceException: java.sql.SQLException: open failed for XAResource
    'DiplPool' with error XAER_RMERR : A resource manager error has occured in the transaction
    branch. Check Oracle XA trace file(s) (if any) for database errors. The Oracle XA
    trace file(s) are located at the directory where you start the Weblogic Server, and
    have names like xa_<pool_name><MMDDYYYY>.trc.
    at weblogic.jdbc.oci.xa.XAConnection.<init>(XAConnection.java:58)
    at weblogic.jdbc.oci.xa.XADataSource.getXAConnection(XADataSource.java:601)
    at weblogic.jdbc.common.internal.XAConnectionEnvFactory.makeConnection(XAConnectionEnvFactory.java:200)
    at weblogic.jdbc.common.internal.XAConnectionEnvFactory.createResource(XAConnectionEnvFactory.java:57)
    at weblogic.common.internal.ResourceAllocator.makeResources(ResourceAllocator.java:698)
    at weblogic.common.internal.ResourceAllocator.<init>(ResourceAllocator.java:282)
    at weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.java:623)
    at weblogic.jdbc.common.JDBCService.addDeployment(JDBCService.java:107)
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:329)
    The trace file looks like this:
    ORACLE XA: Version 8.1.5.0.0. RM name = 'Oracle_XA'.
    113105.161:160.160.-1344514975:
    xaoopen: xa_info=Oracle_XA+Acc=P/schamper/schamper+SesTm=100+DB=DiplPool+Threads=true+LogDir=.+DbgFl=0x15,rmid=-1344514975,flags=0x0
    113105.161:160.160.-1344514975:
    ORA-12560: TNS: Fehler bei Protokolladapter
    113105.161:160.160.-1344514975:
    xaolgn_help: XAER_RMERR; OCIServerAttach failed. ORA-12560.
    113105.161:160.160.-1344514975:
    xaoopen: return -3
    We suspect that we do not set the properties of the connection pool correctly. The
    declaration of the pool in config.xml looks something like the following:
    <JDBCConnectionPool CapacityIncrement="1" DriverName="weblogic.jdbc.oci.xa.XADataSource"
    InitialCapacity="10" MaxCapacity="15" Name="DiplPool"
    Properties="user=scott;password=tiger;url=jdbc:weblogic:oracle:srlaptop_aidenbach.muc.sdm-research.de;dataSourceName=DiplPool"
    Targets="Marvin" TestTableName="privcust" URL="jdbc:weblogic:oracle:srlaptop_aidenbach.muc.sdm-research.de"/>
    Are there any known issues with the XA driver and the versions of oracle and Weblogic
    we use? Can someone tell us how exactly we have to define the connection pool or
    provide an example?
    Any help would be greatly appreciated.
    Best regards,
    Michael

    Hi Michael
    Here is an example connection pool tag,
    <JDBCConnectionPool
    Name="oraXAPool"
    Targets="myserver"
    DriverName="weblogic.jdbc.oci.xa.XADataSource"
    InitialCapacity="1"
    MaxCapacity="10"
    CapacityIncrement="2"
    Properties="user=scott;password=tiger;server=ORCL"
    />
    Ensure that the server=ORCL is replaced by server=<what ever the Alias is
    defined in TNSNAMES.ORA file>
    You dont have to specify the URL for this.
    hth
    sree
    "Michael Wufka" <[email protected]> wrote in message
    news:[email protected]...
    >
    Hi everybody,
    we have serious problems configuring the weblogic jDriver for Oracle withsupport
    for distributed transactions.
    Everything works fine with the non-XA driver.
    We tried the suggestions given here before like setting the environmentvariable
    ORACLE_SID. However, this does not change the errors we get. We useWeblgic Server
    6.1 SP2 with oracle 8.1.7 (client and server) under Windows NT.
    When attempting to create the connection pool, we get the followingexception:
    Starting Loading jDriver/Oracle .....
    <14.05.2002 15:48:30 CEST> <Error> <JDBC> <Cannot startup connection pool"DiplPool"
    weblogic.common.ResourceException: java.sql.SQLException: open failed forXAResource
    'DiplPool' with error XAER_RMERR : A resource manager error has occured inthe transaction
    branch. Check Oracle XA trace file(s) (if any) for database errors. TheOracle XA
    trace file(s) are located at the directory where you start the WeblogicServer, and
    have names like xa_<pool_name><MMDDYYYY>.trc.
    at weblogic.jdbc.oci.xa.XAConnection.<init>(XAConnection.java:58)
    atweblogic.jdbc.oci.xa.XADataSource.getXAConnection(XADataSource.java:601)
    atweblogic.jdbc.common.internal.XAConnectionEnvFactory.makeConnection(XAConnec
    tionEnvFactory.java:200)
    atweblogic.jdbc.common.internal.XAConnectionEnvFactory.createResource(XAConnec
    tionEnvFactory.java:57)
    atweblogic.common.internal.ResourceAllocator.makeResources(ResourceAllocator.j
    ava:698)
    atweblogic.common.internal.ResourceAllocator.<init>(ResourceAllocator.java:282
    atweblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.java:623
    at weblogic.jdbc.common.JDBCService.addDeployment(JDBCService.java:107)
    atweblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
    arget.java:329)
    The trace file looks like this:
    ORACLE XA: Version 8.1.5.0.0. RM name = 'Oracle_XA'.
    113105.161:160.160.-1344514975:
    xaoopen:xa_info=Oracle_XA+Acc=P/schamper/schamper+SesTm=100+DB=DiplPool+Threads=true
    LogDir=.DbgFl=0x15,rmid=-1344514975,flags=0x0
    113105.161:160.160.-1344514975:
    ORA-12560: TNS: Fehler bei Protokolladapter
    113105.161:160.160.-1344514975:
    xaolgn_help: XAER_RMERR; OCIServerAttach failed. ORA-12560.
    113105.161:160.160.-1344514975:
    xaoopen: return -3
    We suspect that we do not set the properties of the connection poolcorrectly. The
    declaration of the pool in config.xml looks something like the following:
    <JDBCConnectionPool CapacityIncrement="1"DriverName="weblogic.jdbc.oci.xa.XADataSource"
    InitialCapacity="10" MaxCapacity="15" Name="DiplPool"
    Properties="user=scott;password=tiger;url=jdbc:weblogic:oracle:srlaptop_aide
    nbach.muc.sdm-research.de;dataSourceName=DiplPool"
    Targets="Marvin" TestTableName="privcust"URL="jdbc:weblogic:oracle:srlaptop_aidenbach.muc.sdm-research.de"/>
    >
    Are there any known issues with the XA driver and the versions of oracleand Weblogic
    we use? Can someone tell us how exactly we have to define the connectionpool or
    provide an example?
    Any help would be greatly appreciated.
    Best regards,
    Michael

  • Does Weblogic JDriver for Oracle support Oracle REFCURSOR?

     

    "R. W. Stavros" wrote:
    >
    BUT BE FORWARNED ... IF YOUR CONNECTION IS FROM A CONNECTION POOL ...
    YOU GET A WONDERFUL weblogic.jdbc.pool.ResultSet not a
    java.sql.ResultSet .... BEA wants you to believe its a featureI'm still interested in your position that a weblogic.jdbc.pool.ResultSet
    is not a java.sql.ResultSet. I get the impression you're very frustrated
    and I know that can cause one to make mistakes one normally wouldn't...
    Joe
    >
    Shiva Paranandi <[email protected]> wrote in message news:<[email protected]>...
    Yes, you have to specify it as java.sql.Types.OTHER and use the
    getObject() method to obtain it.
    Shiva.
    Chuan Li wrote:
    Does Weblogic JDriver for Oracle support Oracle REFCURSOR?
    Thanks.
    -Chuan
    PS: Folks: BEA WebLogic is expanding rapidly, with both entry and advanced positions
    for people who want to work with Java, XML, SOAP and E-Commerce infrastructure products.
    We have jobs at Nashua NH, Liberty Corner NJ, San Francisco and San Jose CA.
    Send resumes to [email protected]

  • Setting isolation level with JDriver for Oracle/XA

    edocs (http://e-docs.bea.com/wls/docs70/oracle/trxjdbcx.html#1080746) states that,
    if using jDriver for Oracle/XA you can not set the transaction isolation level
    for a transaction and that 'Transactions use the transaction isolation level set
    on the connection or the default transaction isolation level for the database'.
    Does this mean that you shouldn't try to set it programatically (fair enough)
    or that you can't set it in the weblogic deployment descriptor either? Also anybody
    got any idea what the default is likely to be if you are using an Oracle 9iR2
    database? Is this determined by some database setting?

    IJ wrote:
    edocs (http://e-docs.bea.com/wls/docs70/oracle/trxjdbcx.html#1080746) states that,
    if using jDriver for Oracle/XA you can not set the transaction isolation level
    for a transaction and that 'Transactions use the transaction isolation level set
    on the connection or the default transaction isolation level for the database'.
    Does this mean that you shouldn't try to set it programatically (fair enough)
    or that you can't set it in the weblogic deployment descriptor either? Also anybody
    got any idea what the default is likely to be if you are using an Oracle 9iR2
    database? Is this determined by some database setting?The system should honor the setting defined in the deployment descriptor,
    however, for oracle it may not be helpful to change it. Oracle provides two
    isolation levels. The default is always READ_COMMITTED. The other
    setting is SERIALIZABLE, but this hurts performance, and is also problematic
    in the way oracle implements it. For instance, even if you set SERIALIZABLE,
    oracle will not lock read data. It will allow other transactions to read and/or
    alter data trhat another ongoing SERIALIZABLE transaction has read. The
    only way to really lock read data in oracle is to issue oracle-specific SQL in
    your select: "SELECT ..... FOR UPDATE".
    All in all, you should collect a strong case for why you can't proceed with
    READ_COMMITTED first. Then you should research oracle's recommendations
    (and their problem record) with SERIALIZABLE.
    Joe Weinstein at BEA

  • JDriver for Oracle 9.2

    I am running Weblogic 5.x and want to connect to an Oracle 9.2 database. The jDriver
    dll files that shipped with my version of Weblogic only go up to 8.1.5.
    Is there any way I can download the appropriate jDriver dll files without attempting
    to download a more recent version of Weblogic? I haven't had any success searching
    for only the jDriver files.
    Any help would be greatly appreciated.
    Thanks
    Robert

    Thanks Mitesh. The version I am currently running has the folder oci815_8, which
    I assume is for Oracle 8.1.5.8. Will that one work? If not, where can I go to
    get the 817 jDriver?
    Mitesh Patel <[email protected]> wrote:
    With latest 5.1x weblogic release, we ship 817 jDriver which you can
    use. Also, you can
    not use drivers from different weblogic releases on 5.1x.
    Thanks,
    Mitesh
    Robert Eovine wrote:
    I am running Weblogic 5.x and want to connect to an Oracle 9.2 database.The jDriver
    dll files that shipped with my version of Weblogic only go up to 8.1.5.
    Is there any way I can download the appropriate jDriver dll files withoutattempting
    to download a more recent version of Weblogic? I haven't had any successsearching
    for only the jDriver files.
    Any help would be greatly appreciated.
    Thanks
    Robert

  • Replacement For Not Exists operator in oracle

    Hi Guys,
    I need a replacement for the statement " Where NOT EXISTS (SELECT 'X' FROM ADM_SC_SHIPPING_HEADER_FACT WHERE prod_obj = s.prod_obj AND sc_shipping_doc_num = s.sc_shipping_doc_num AND TO_NUMBER (transportation_status) > TO_NUMBER (s.transportation_status))".
    i am getting an error"literal doesnot match the formatting string" when this statement is included in my procedure.
    Please help me out..
    Thanks in advance.

    1007699 wrote:
    There is no problem with Transportation_status. It is a varchar and it's been converted to number using To_Number .There very likely IS a problem with transportation_status.
    It's supposed to be a number and you're trying to convert it to a number using to_number(), but the error message you're getting implies that there's a value in that column that isn't a valid number.
    If it's not that field, then there must be some othe implicit type conversion going on with one of the other columns in your subquery - 'cos that's what that error message means: "I'm trying to convert from one datatype to another, but it's not in the format I expect".
    Either fix your data to conform to the proper format, or explicitly specify a format that describes your data, or (best of all) use a proper and consistent datatype for your columns. If transportation_status is a number, why store it in a varchar2 column?

  • How to insert long text data in oracle for LONG column type??

    Anybody who can tell me what is best way to store long text (more than 8k) in Oralce table.
    I am using Long datatype for column but it still doenst let me insert longer strings.
    Also I am using ODP.Net.
    Anybody with a good suggestion???
    Thanks in advance

    Hi,
    Are you getting an error? If so, what?
    This works for me..
    Greg
    create table longtab(col1 varchar2(10), col2 long );
    using System;
    using System.Data;
    using Oracle.DataAccess.Client;
    using Oracle.DataAccess.Types;
    using System.Text;
    public class longwrite
    public static void Main()
    // make a long string
    StringBuilder sb = new StringBuilder();
    for (int i=0;i<55000;i++)
    sb.Append("a");
    sb.Append("Z");
    string indata = sb.ToString();
    Console.WriteLine("string length is {0}",indata .Length);
    // insert into database
    OracleConnection con = new OracleConnection("user id=scott;password=tiger;data source=orcl");
    con.Open();
    OracleCommand cmd = new OracleCommand();
    cmd.CommandText = "insert into longtab values(1,:longparam)";
    cmd.Connection = con;
    OracleParameter longparam = new OracleParameter("longparam",OracleDbType.Long,indata .Length);
    longparam.Direction = ParameterDirection.Input;
    longparam.Value = indata ;
    cmd.Parameters.Add(longparam);
    cmd.ExecuteNonQuery();
    Console.WriteLine("insert complete");
    //now retrieve it
    cmd.CommandText = "select rowid,col2 from longtab where col1 = 1";
    OracleDataReader reader = cmd.ExecuteReader();
    reader.Read();
    string outdata = (string)reader.GetOracleString(1);
    Console.WriteLine("string length is {0}",outdata.Length);
    //Console.WriteLine("string is {0}",outdata);
    reader.Close();     
    con.Close();
    con.Close();
    }

  • Configuring Weblogic's jDriver for Oracle to use in distributed transactions

              Here is some errata to the instructions at "Configuring XA JDBC drivers" section of the online beta documentation:
              http://www.weblogic.com/docs60/adminguide/managetx.html#1041268
              The sample JDBC connection pool using Weblogic jDriver for Oracle should be:
              <JDBCConnectionPool
              Name="fundsXferAppPool"
              Targets="myserver"
              URL="jdbc:weblogic:oracle:localdb"
              DriverName="weblogic.jdbc.oci.xa.XADataSource"
              InitialCapacity="0"
              MaxCapacity="5"
              CapacityIncrement="1"
              Properties="user=scott;password=tiger;server=localdb;rmid=0"
              />
              <JDBCTxDataSource
              Name="fundsXferDataSource"
              Targets="myserver,server1"
              JNDIName="myapp.fundsXfer"
              PoolName="fundsXferAppPool"
              />
              Here is an example of an additional XA connection pool for a second database instance:
              <JDBCConnectionPool
              Name="fundsXferAppPool2"
              Targets="myserver"
              URL="jdbc:weblogic:oracle:localdb2"
              DriverName="weblogic.jdbc.oci.xa.XADataSource"
              InitialCapacity="0"
              MaxCapacity="5"
              CapacityIncrement="1"
              Properties="user=scott;password=tiger;server=localdb2;rmid=1"
              />
              <JDBCTxDataSource
              Name="fundsXferDataSource2"
              Targets="myserver,server1"
              JNDIName="myapp.fundsXfer2"
              PoolName="fundsXferAppPool2"
              />
              Please note the different "rmid" values for the 2 different database instances. Note also that the above sample only applies for Beta 1. Instructions may change in the future for Beta 2.
              Also, all the names of the data source properties shown in "Table 8-2 Data Source Properties for WebLogic jDriver for Oracle" should start with lower case.
              The Beta 1 online documentation will soon be updated to reflect the above. Our apologies for any inconvenience caused.
              -- Priscilla Fung, BEA Systems, Inc.
              

              Thanks
              Mark
              "Sree Bodapati" <[email protected]> wrote:
              >Hi Mark,
              >
              >Yes you need 8.1.6 DB Server or higher for WebLogic's jDriver for Oracle/XA
              >as well.
              >
              >/
              >sree
              >
              >
              >"Mark Cordobal" <[email protected]> wrote in message
              >news:[email protected]..
              >>
              >> I read that XA features require version Oracle8i release 8.1.6 or later
              >of
              >the Oracle
              >> server.
              >> Does this apply only to Oracle JDBC drivers (which implement 2pc on top
              >of
              >JAVA_XA
              >> package) or also to Weblogic's jDriver for Oracle/XA ?
              >> I mean, if I have two Oracle 8.06 (or however < 8.1.6) jdbc Resource
              >Manager, can
              >> I implement (wlserver 6.1sp2) a distributed xa transaction using
              >Weblogic's jDriver
              >> for Oracle/XA ?
              >> Or is it (jdriver) built also on top of JAVA_XA package, and so the db
              >server XA
              >> compliancy is a must ?
              >>
              >> Thanks in advance
              >>
              >> Mark
              >
              >
              

Maybe you are looking for

  • Error While Calling a WebService from Application Module

    Hi all I have generated a Proxy from a web Service and i am trying to call the web service from an Application Module it is throwing me error JBO-29000: Unexpected exception caught: oracle.classloader.util.AnnotatedNoClassDefFoundError, msg= Missing

  • Itunes 11 home sharing is not working

    I just recently updated to Itunes 11 and since then, my home sharing feature does not work.  I turn it on by using my user and password, but it never appears.  I cannot access my shared content from my iphone or Apple TV.  Can anyone help? It seems l

  • Removing Advanced Pulldown from AVI files

    I've recently switched from Vegas 4.0 to Final Cut Pro 5.1 and I'm trying to remove the advanced pulldown from my AVI files. I tried using Cinema Tools and it could not use the AVI. Then I tried using FCP tools/remove advanced pulldown option and the

  • Hows should I do this?

    Ok trying a bit of programming, first in ages... Trying to make 2 classes, Player and GameTest. Ok, what i want to do is for a prompt to ask the user for firstname, secondname, nickname etc...you will see in the code. This is player: import java.io.*

  • I cannot create DVD's with Maverick 10.9? Help

    I am difficulty creating a Dvd from Maverick 10.9 any suggestions?