URGENT: RAI - AS7.0-beta: Oracle connectivity [796195]

i had some new requirements and could not find any docs for it.
How do i create a Connection Pool for a Oracle 8i
Using the Following Parameters.
Name= RAiRepositoryPool
Description=RAiRepositoryPool
Datasource Classname=oracle.jdbc.driver.OracleDriver
URL=jdbc:oracle:thin:user/user@ECLIPSE:1521:ECLIPSE
The following is the snapshot of the Configurations Of
Connection Pool in Weblogic6.1sp3
<JDBCConnectionPool DriverName="oracle.jdbc.driver.OracleDriver"
Name="RAiRepositoryPool" Properties="dll=ocijdbc8;protocol=thin"
Targets="myserver"
URL="jdbc:oracle:thin:user/user@ECLIPSE:1521:ECLIPSE"/>
DataSource in Weblogic6.1sp3
<JDBCDataSource JNDIName="jdbc/Repository" Name="jdbc/Repository"
PoolName="RAiRepositoryPool" Targets="myserver"/>
Please provide some documentation as the JDBC Resource section at
http://docs.sun.com/source/816-7156-10/agj2eres.html#33267
says
(This module is not available for Beta refresh)

Any pointer on below's cust outcome after trying the following suggestion based on the initial proposal:
Here's a snippet of a server.xml file that includes a connection pool definition for an Oracle 8.1.x
client containing your requirement specifics which interacts with an Oracle 8.1.6 server:
<resources>
<jdbc-resource enabled="true" pool-name="OraclePool" jndi-name="jdbc/jdbc-simple"/>
<jdbc-connection-pool steady-pool-size="8" max-pool-size="32" max-wait-time-in-millis="60000"
pool-resize-quantity="2" idle-timeout-in-seconds="300"
is-isolation-level-guaranteed="false" is-connection-validation-required="false"
connection-validation-method="auto-commit" fail-all-connections="false"
datasource-classname="oracle.jdbc.pool.OracleDataSource" name="RAIRepositoryPool">
<property value="jdbc:oracle:thin:user/user@ECLIPSE:1521:ECLIPSE" name="URL"/>
<property value="user" name="user"/>
<property value="user" name="password"/>
</jdbc-connection-pool>
</resources>
You will then copy the driver JAR file to the <instance_root>/lib/ directory and restart the
server instance to add the driver to the server instance's classpath.
Regards,
Gaetan
@@@@@@@@@@@@@@@ cust's results @@@@@@@@@@@@@@@@@@@@@@@@@@@
Here is the stack Trace of the error i get after i use the Jdbc Datasource .
INFO: CORE3282: stdout: DEBUG [05 Sep 2002 13:03:52] [RAI.RAIID.REPOSITORY]
[Thread-7] (?:?) - In constructor
INFO: CORE3282: stdout: DEBUG [05 Sep 2002 13:03:52] [RAI.RAIID.REPOSITORY]
[Thread-7] (?:?) - in ejbCreate
INFO: CORE3282: stdout: DEBUG [05 Sep 2002 13:03:52] [RAI.RAIID.REPOSITORY]
[Thread-7] (?:?) - In constructor
INFO: CORE3282: stdout: DEBUG [05 Sep 2002 13:03:52] [RAI.RAIID.REPOSITORY]
[Thread-7] (?:?) - In constructor
INFO: CORE3282: stdout: DEBUG [05 Sep 2002 13:03:52] [RAI.RAIID.REPOSITORY]
[Thread-7] (?:?) - In JDBCHandler in initialize
INFO: CORE3282: stdout: DEBUG [05 Sep 2002 13:03:52] [RAI.RAIID.REPOSITORY]
[Thread-7] (?:?) - in setDataSourceJndiName jdbc/Repository
INFO: CORE3282: stdout: DEBUG [05 Sep 2002 13:03:52] [RAI.RAIID.REPOSITORY]
[Thread-7] (?:?) - in setUserID raiuser
INFO: CORE3282: stdout: DEBUG [05 Sep 2002 13:03:52] [RAI.RAIID.REPOSITORY]
[Thread-7] (?:?) - in setPassword raiuser
INFO: CORE3282: stdout: DEBUG [05 Sep 2002 13:03:52] [RAI.RAIID.REPOSITORY]
[Thread-7] (?:?) - in setXmlURL /RAI_SUNONE/xml
INFO: CORE3282: stdout: DEBUG [05 Sep 2002 13:03:52] [RAI.RAIID.REPOSITORY]
[Thread-7] (?:?) - in setXsdURL /RAI_SUNONE/schema
WARNING: CORE3283: stderr: java.sql.SQLException: Operation not allowed
under global transaction context
INFO: CORE3282: stdout: DEBUG [05 Sep 2002 13:03:52] [RAI.RAIID.REPOSITORY]
[Thread-7] (?:?) - leaving initialize
INFO: CORE3282: stdout: DEBUG [05 Sep 2002 13:03:52] [RAI.RAIID.REPOSITORY]
[Thread-7] (?:?) - In constructor
INFO: CORE3282: stdout: DEBUG [05 Sep 2002 13:03:52] [RAI.RAIID.REPOSITORY]
[Thread-7] (?:?) - In constructor
WARNING: CORE3283: stderr: at
com.sun.enterprise.resource.JdbcXAConnection$JdbcConnection.setAutoCommit(Un
known Source)
WARNING: CORE3283: stderr: at
com.rai.raiid.repository.JDBCHandler.getConnection(Unknown Source)
INFO: CORE3282: stdout: DEBUG [05 Sep 2002 13:03:52] [RAI.RAIID.REPOSITORY]
[Thread-7] (?:?) - In JDBCHandler in initialize
INFO: CORE3282: stdout: DEBUG [05 Sep 2002 13:03:52] [RAI.RAIID.REPOSITORY]
[Thread-7] (?:?) - in setDataSourceJndiName jdbc/Repository
WARNING: CORE3283: stderr: at
com.rai.raiid.repository.JDBCHandler.getConnection(Unknown Source)
WARNING: CORE3283: stderr: at
com.rai.raiid.repository.JDBCBusinessRepositoryHandler.prepareSelectALLSQL(U
nknown Source)
INFO: CORE3282: stdout: DEBUG [05 Sep 2002 13:03:52] [RAI.RAIID.REPOSITORY]
[Thread-7] (?:?) - in setUserID raiuser
INFO: CORE3282: stdout: DEBUG [05 Sep 2002 13:03:52] [RAI.RAIID.REPOSITORY]
[Thread-7] (?:?) - in setPassword raiuser
WARNING: CORE3283: stderr: at
com.rai.raiid.repository.JDBCBusinessRepositoryHandler.loadAll(Unknown
Source)
WARNING: CORE3283: stderr: at
com.rai.raiid.repository.BusinessRepositoryManagerBean.getAllBusinessReposit
ories(Unknown Source)
INFO: CORE3282: stdout: DEBUG [05 Sep 2002 13:03:52] [RAI.RAIID.REPOSITORY]
[Thread-7] (?:?) - in setXmlURL /RAI_SUNONE/xml
INFO: CORE3282: stdout: DEBUG [05 Sep 2002 13:03:52] [RAI.RAIID.REPOSITORY]
[Thread-7] (?:?) - in setXsdURL /RAI_SUNONE/schema
WARNING: CORE3283: stderr: at
com.rai.raiid.repository.BusinessRepositoryManagerBean_EJBObjectImpl.getAllB
usinessRepositories(BusinessRepositoryManagerBean_EJBObjectImpl.java:437)
WARNING: CORE3283: stderr: at
com.rai.raiid.repository._BusinessRepositoryManager_Stub.getAllBusinessRepos
itories(Unknown Source)
INFO: CORE3282: stdout: DEBUG [05 Sep 2002 13:03:52] [RAI.RAIID.REPOSITORY]
[Thread-7] (?:?) - leaving initialize
INFO: CORE3282: stdout: DEBUG [05 Sep 2002 13:03:52] [RAI.RAIID.REPOSITORY]
[Thread-7] (?:?) - Entering getAllBusinessRepositories
WARNING: CORE3283: stderr: at
com.rai.raiid.session.RAISessionManagerBean.getAllBusinessRepositories(Unkno
wn Source)
WARNING: CORE3283: stderr: at
com.rai.raiid.session.RAISessionManagerBean_EJBObjectImpl.getAllBusinessRepo
sitories(RAISessionManagerBean_EJBObjectImpl.java:1269)
INFO: CORE3282: stdout: DEBUG [05 Sep 2002 13:03:52] [RAI.RAIID.REPOSITORY]
[Thread-7] (?:?) - in loadAll
INFO: CORE3282: stdout: DEBUG [05 Sep 2002 13:03:52] [RAI.RAIID.REPOSITORY]
[Thread-7] (?:?) - LoadAll Start Time :: Thu Sep 05 13:03:52 PDT 2002
WARNING: CORE3283: stderr: at
com.rai.raiid.session._RAISessionManagerBean_EJBObjectImpl_Tie._invoke(Unkno
wn Source)
WARNING: CORE3283: stderr: at
com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatchToServant(Unknown
Source)
INFO: CORE3282: stdout: DEBUG [05 Sep 2002 13:03:52] [RAI.RAIID.REPOSITORY]
[Thread-7] (?:?) - in prepareSelectALLSQL
INFO: CORE3282: stdout: DEBUG [05 Sep 2002 13:03:52] [RAI.RAIID.REPOSITORY]
[Thread-7] (?:?) - in getConnection
WARNING: CORE3283: stderr: at
com.sun.corba.ee.internal.POA.GenericPOAServerSC.internalDispatch(Unknown
Source)
WARNING: CORE3283: stderr: at
com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatch(Unknown Source)
INFO: CORE3282: stdout: DEBUG [05 Sep 2002 13:03:52] [RAI.RAIID.REPOSITORY]
[Thread-7] (?:?) - in getConnection(String,String,String)
INFO: CORE3282: stdout: ERROR [05 Sep 2002 13:03:52] [RAI.RAIID.REPOSITORY]
[Thread-7] (?:?) - Exception Message is : java.sql.SQLException: Operation
not allowed under global transaction context
WARNING: CORE3283: stderr: at
com.sun.corba.ee.internal.iiop.ORB.process(Unknown Source)
WARNING: CORE3283: stderr: at
com.sun.corba.ee.internal.iiop.RequestProcessor.process(Unknown Source)
INFO: CORE3282: stdout: ERROR [05 Sep 2002 13:03:52] [RAI.RAIID.SESSION]
[Thread-7] (?:?) - Class RAISessionManagerBean:: Method::
getAllBusinessRepositories Exception
javax.transaction.TransactionRolledbackException: CORBA
TRANSACTION_ROLLEDBACK 9998 Maybe; nested exception is:
INFO: CORE3282: stdout: org.omg.CORBA.TRANSACTION_ROLLEDBACK:
vmcid: 0x2000 minor code: 1806 completed: Maybe
WARNING: CORE3283: stderr: at
com.iplanet.ias.corba.ee.internal.iiop.ServicableWrapper.service(Unknown
Source)
WARNING: CORE3283: stderr: at
com.iplanet.ias.util.threadpool.FastThreadPool$ThreadPoolThread.run(Unknown
Source)
WARNING: CORE3283: stderr: at java.lang.Thread.run(Thread.java:536)
INFO: CORE3282: stdout: DEBUG [05 Sep 2002 13:03:54] [RAI.RAIID.GUI]
[Thread-11] (?:?) - tree in brtree handler is null
Why is java.sql.SQLException: Operation not allowed under global transaction
context thrown
- Rajinder
@@@@@@@@@@@@@@@

Similar Messages

  • Oracle connection failing..URGENT-PLS HELP

    added these files in the classpath : using oracle 9i , jdk1.4.2
    C:\Documents and Settings\Sampathkumar\Desktop>set CLASSPATH=c:\oracle\ora92\jdb
    c\lib\ojdbc14.jar;c:\oracle\ora92\jdbc\lib\nls_charset12.jar;%CLASSPATH%;
    submitted this code as a sample to test the conection
    import java.sql.*;
    public class test{
    public static void main(String[] args) throws SQLException,ClassNotFoundException {
    //load oracle driver
    Class.forName("oracle.jdbc.OracleDriver");
    System.out.println("Driver Loaded");
    //connecTION to the sample database
    String url = "jdbc.oracle:thin:@SEC_MEC-MS3:1521:global.oracle";
    Connection conn=DriverManager.getConnection (url,"sam","aaj");
    System.out.println("Database connection successful");
    //create a statement
    Statement stmt = conn.createStatement();
    ResultSet rset =stmt.executeQuery("select sysdate from Dual");
    while (rset.next())
    System.out.println(rset.getString(1));
    }//end of test DB class
    give the error stack
    C:\Documents and Settings\Sampathkumar\Desktop>java test
    Driver Loaded
    Exception in thread "main" java.sql.SQLException: No suitable driver
    at java.sql.DriverManager.getConnection(Unknown Source)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at test.main(test.java:17)

    added these files in the classpath : using oracle 9i
    , jdk1.4.2
    C:\Documents and Settings\Sampathkumar\Desktop>set
    CLASSPATH=c:\oracle\ora92\jdb
    c\lib\ojdbc14.jar;c:\oracle\ora92\jdbc\lib\nls_charset
    12.jar;%CLASSPATH%;
    submitted this code as a sample to test the
    conection
    import java.sql.*;
    public class test{
    public static void main(String[] args) throws
    SQLException,ClassNotFoundException {
    //load oracle driver
    Class.forName("oracle.jdbc.OracleDriver");
    System.out.println("Driver Loaded");
    //connecTION to the sample database
    String url =
    =
    "jdbc.oracle:thin:@SEC_MEC-MS3:1521:global.oracle";
    Connection conn=DriverManager.getConnection
    tion (url,"sam","aaj");
    System.out.println("Database connection
    on successful");
    //create a statement
    Statement stmt = conn.createStatement();
    ResultSet rset =stmt.executeQuery("select
    ry("select sysdate from Dual");
    while (rset.next())
    System.out.println(rset.getString(1));
    }//end of test DB class
    give the error stack
    C:\Documents and Settings\Sampathkumar\Desktop>java
    test
    Driver Loaded
    Exception in thread "main" java.sql.SQLException: No
    suitable driver
    at
    at java.sql.DriverManager.getConnection(Unknown
    known Source)
    at
    at java.sql.DriverManager.getConnection(Unknown
    known Source)
    at test.main(test.java:17)__________________________________________________________
    You are loading the driver classes ok. But is that the appropriate driver for youir database?
    I know Oracle is phasing out the .zip version classes12.zip, but have tried them
    here the possible drivers
    ojdbc14.jar Oracle 9. and higher and jk1.4 and higher
    ojdbc14_g-1.jar - include extentsion Oracle 9. and higher and jk1.4 and higher
    classes12.zip - Primarily used with oralce 8.* and jk1.2.* - jtk1.3.*

  • NotSerializableException when getting an oracle connection thru RMI

    Hi all,
    I have been trying to access my oracle connections , which are part of a pool, using rmi.
    I have encountered following exception -
    java.rmi.UnmarshalException: error unmarshalling return; nested exception is: java.io.WriteAbortedException: Writing aborted by exception; java.io.NotSerializableException: oracle.jdbc.drive r.OracleConnection java.io.WriteAbortedException: Writing aborted by exception; java.io.NotSerializableException: oracle.jdbc.driver.Oracle Connection
    Is there any reason for OracleConnection not to be serialized or am i doing something wrong?
    Any help in this regard is urgently solicited
    regards
    Pawan
    null

    Just tell your DBA to act like a professional and not shut the server down without notifying the user community! That is one of the top pet peeves of any user to have the carpet jerked out from under him!! All shutdowns should be scheduled unless the machine fails or the world ends...
    Otherwise you will have to look for some method to re-verify the connection again. i don't think that the driver will automatically tell you if the connection got jerked away. It will probably think it is still connected!
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Justin Poyser ([email protected]):
    How do I check if the DBA has bounced the database ? I have the following check to determine if the connection is available
    if (conn == null | | conn.isClosed())
    but it still seems to return false for conn.isClosed.
    thus when you run a sql statement against the returned connection object you get a no more data to read from socket error.<HR></BLOCKQUOTE>
    null

  • BO 4.0 Oracle connection error

    Hi.
    I have a oracle connection in the bo 4.0 .
    Universe is ok,and report runs properly in WebI rich client.
    But in launcpad i get the following error -
    Database error: (CS) "DBDriver failed to load : D:\SAPBusinessObjects\SAP BusinessObjects Enterprise Xi4.0\dataAccess\connectionServer\drivers\lib64\dbd_oci.dll (The specified module could not be found)".(IES 10901)
    I have installed both 64bit and 32bit Oracle client on the server. This is a 64bit Win 2008 R2 server.
    You help is really appreciated.
    Regards,
    Ritesh

    Hi,
    I bet this same workflow in  WRC in 3-tier mode from a Client would fail too.  (i.e. using Connection Servers on Platform)
    I would encourage you to search for knowledge base articles at location https://service.sap.com/xsearch  before submitting posts.  the keywords " Database error (CS) DBDriver failed to load lib64\dbd_oci.dll " are searcheable terms.
    Please take a look at notes:
    1619829 - BI 4.x Error "DBDriver failed to load IES 10901 WIS 1090" when creating a webi report from Webintelligence application on Oracle
    and
    1578731 - Database error: (CS) "DBDriver failed to load : D:\SAPBusinessObjects\SAP BusinessObjects Enterprise Xi4.0\dataAccess\connectionServer\drivers\lib64\dbd_oci.dll (%1 is not a valid Win32 application.)".(IES 10901)
    basically, you need to add ORACLE_HOME in the system environnment variables. Verify that the environnment variable PATH is also populated with the oracle path.
    Regards,
    H

  • Oracle Connection Pool failure in COM+

    I am having some trouble trying to get a specific database to work with an application that makes use of a COM+ Application. When we point the application at the UAT database everything seems fine, but when we point it to the production database after a few successful calls it ends up failing at the COM+ application recycles. The event viewer provides the following information:
    Event Type:     Error
    Event Source:     COM+
    Event Category:     Unknown
    Event ID:     4786
    Date:          8/5/2007
    Time:          12:54:46 PM
    User:          N/A
    Computer:     APPL_SERVER
    Description:
    The system has called a custom component and that component has failed and generated an exception. This indicates a problem with the custom component. Notify the developer of this component that a failure has occurred and provide them with the information below.
    Component Prog ID: Oracle Connection Pool - tnsnames_alias
    Method Name: IDispenserDriver::CreateResource
    Server Application ID: {30A93CB3-25EB-4258-8C88-5AE103B7B86F}
    Server Application Instance ID:
    {A57C513E-519F-45BD-B46D-DC54B285F534}
    Server Application Name: COM+ Application Name
    The serious nature of this error has caused the process to terminate.
    Exception: C0000005
    Address: 0x7C8327F9
    Call Stack:
    + 0x7c8327f9
    ntdll!RtlFindActivationContextSectionGuid + 0x7d2
    ntdll!RtlInitializeSListHead + 0x175
    ntdll!RtlFindActivationContextSectionGuid + 0x1b7
    msvcrt!malloc + 0x6c
    oracommon9!sktsfMalloc + 0x14
    orageneric9!kpummapg + 0x58
    orageneric9!kghalo + 0xabb
    orageneric9!kghalf + 0x102
    orageneric9!kopo2cpc + 0x61
    orageneric9!kopeini + 0x1d
    orageneric9!kopo2cpc + 0xd2
    orageneric9!kopopgi + 0x117
    OraClient9!koudpnp + 0x712
    OraClient9!koudpnp + 0x101
    OraClient9!kpuinit0 + 0xb19
    OraClient9!kpuinit + 0x38
    OraClient9!OCIEnvInit + 0x1c
    oramts!kpntsrvr::kpntsrvr(class kpntdbid *) + 0x80
    oramts!kpntdbid::allocNewSrvr(struct SIDAND_ATTRIBUTES *) + 0x138
    oramts!kpntdbid::GetSrvr(class kpntsvrl * *,unsigned long) + 0x7df
    oramts!kpntdisp::getNet8conn(class kpntsvrl * *,unsigned long) + 0x41
    oramts!kpntsess::initOCI(void) + 0xec
    oramts!kpntsess::sessionBegin(void) + 0x17b
    oramts!kpntdisp::CreateResource(unsigned long,unsigned long *,long *) + 0xc4
    COMSVCS!DispManGetContext + 0xa3d
    COMSVCS!DispManGetContext + 0x1fee
    oramts!kpntdisp::allocateConnection(class kpntsess * *,unsigned long,class kpntrtyp *) + 0x3c4
    oramts!_kpntsvcgetex + 0x183
    oramts!_kpntsvcget + 0x25
    oramts!kpntctra::getConnectionAndHandles(class kpntrtyp *,struct OCISvcCtx * *,struct OCITrans * *,struct OCIError * *) + 0x87
    oramts!kpntctra::abortBranch(struct xid_t &,class kpntbrnch *,struct BOID *,int,struct BOID *) + 0x15a
    oramts!kpntctra::doAbort(struct BOID *,int,struct BOID *) + 0x454
    oramts!kpntajob::doJob(void) + 0x27
    oramts!kpntjobq::serviceRequest(class kpntjob *) + 0x3e
    oramts!workerThread(void *) + 0xd0
    msvcrt!_endthreadex + 0xa3
    kernel32!GetModuleFileNameA + 0xeb
    Not being an expert in Oracle, I have been able to dig up a little bit of information that might be of use ...
    a) Our tnsnames.ora indicates that the connections are to be DEDICATED and running Toad bares this out -- dllhost ends up with a single connection.
    b) most of the database initial set of parameters seem to be very similar. The only difference I noticed was that the archive log mode and db_cache_advice are ON for production.
    c) We have little control over how the connection strings are being created internally in this COM+ application, but however they are created it works for UAT and doesn't for PROD.
    d) When we go into our web application and hit a page that makes use of the COM+ component to render, it will work the first time but when I do a simple browser refresh it will usually fail on the 2nd or 3rd time. Almost like it is trying to expand the connection pool size and the oracle server is throwing up.
    If I didn't mention earlier the two database instances run on different servers but the application server is exactly the same. We only change the alias we are using for the database (both are defined in tnsnames) and the password used to make its connection.
    Does anyone have any clues on this one? I am really spinning my wheels trying to figure out what could cause this type of situation. Anything at all would be very helpful.

    It appeared to us that the problem was with the Oracle server and that it might have been failing when we were trying to expand our application connection pool size or basically obtain more connections.
    The biggest indicator of this is that we run the same application code against two different databases and one works and one does not work. Having said this, I suppose the problem could be rooted in a data error instead of an oracle server error ...
    Is there a specific trace file on the oracle server that would help me point to any error that is truly an oracle server error? Sorry I am very new to Oracle.

  • Crystal report - and oracle connections

    hi to everyone
    i installed client  of oracle
    and after that - the crystal report 2008 sp3
    when i open new (blank page) - and looking for a oracle connection
    its look like he doesnt exist.
    please if someone know why i cant see the connection to oracle/
    yossi bar

    Hello,
    CR looks for the Oracle \bin folder in the PATH statement. If it can't find it then the option to select Oracle native driver will not show.
    Thank you
    Don

  • JDBC-ORACLE CONNECTIVITY ISSUE WITYH OCI8 DRIVER using oracle 11g client..

    JDBC-ORACLE CONNECTIVITY ISSUE WITYH OCI8 DRIVER using oracle 11g client..
    I am getting below error when i m trying to access oracle db using oracle 11g client. It works with earlier oracle client versions. how do i resolve this. is there any issue with version of ojdbc6.jar that i am using??? I cant use thin driver since its an old application for which i dont have source files.
    Apr 6, 2013 1:00:59 PM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet jsp threw exception
    java.lang.UnsatisfiedLinkError: no ocijdbc9 in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
    at java.lang.Runtime.loadLibrary0(Runtime.java:822)
    at java.lang.System.loadLibrary(System.java:992)
    at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:262)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:346)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:468)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:314)
    at java.sql.DriverManager.getConnection(DriverManager.java:525)
    at java.sql.DriverManager.getConnection(DriverManager.java:171)
    at PettyCash.SysDate.getSysSubSys(SysDate.java:232)
    at org.apache.jsp.PettyCash.index_jsp._jspService(org.apache.jsp.PettyCash.index_jsp:186)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    Code is as follow for reference
    import oracle.jdbc.driver.*;
    DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
    conn = DriverManager.getConnection ("jdbc:oracle:oci8:@" + database,db_user, db_pass);
    eNVIRONMENT VARIABLES set are as follows:
    classpath
    C:\Program Files\apache-tomcat-5.5.12\common\lib\servlet-api.jar;C:\Program Files\apache-tomcat-5.5.12\webapps\ROOT\WEB-INF\lib\classes12.jar;C:\Program Files\apache-tomcat-5.5.12\webapps\ROOT\WEB-INF\lib\ojdbc6.jar;
    JAVA_HOME
    C:\Program Files\Java\jdk1.5.0_04
    PATH
    C:\Program Files\Java\jdk1.5.0_04\bin
    ORACLE_HOME
    D:\Oracle11\product\11.2.0\client_1\BIN

    Apr 8, 2013 5:24:06 PM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet jsp threw exception
    java.lang.NullPointerException
         at org.apache.jsp.abc.index_jsp._jspService(org.apache.jsp.abc.index_jsp:280)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Thread.java:595)

  • Oracle Connection Manager

    Hi,
    i'm having a problem configuring Oracle Connection Manager. It does start the instance of connection manager
    Summary of my environment is
    10g Application server and infrastructure machine OS: Windows 2003
    9i Database Server: Windows 2003
    Client : Java Applet
    JDBC driver type : THIN
    Installed: 10g Infra first and then 10g midiier(portal and wireless) in seperate oracle homes on the same machine. Eveything is up and running as i was able to login seperately in infra and midtier enterprise managers.
    Final Goal : Trying to connect to an Oracle 9i database on a differnt machine than the appserver using an applet, thin drivers and Oracle Connection Manager
    Problem : Connection manager instance not started however cmanADMIn service started.
    CMCTL:CMAN_oracle9-app> administer cmanOracleAS
    Current instance cmanOracleAS is not yet started
    Connections refer to (address=(protocol=tcp)(host=10.10.1.101)(port=1610)).
    The command completed successfully.
    CMCTL:cmanOracleAS> startup
    Service Oracleoracle_infraCMAdmincmanOracleAS already running.
    TNS-04012: Unable to start Oracle Connection Manager instance.
    CMCTL:cmanOracleAS>
    Steps done to configure Oracle Connection manager
    1. Copied 4 .exe (CMADMIN, CMCTL,CMGW,CMMIGR) files to bin folder of Appserver or midtier's main ORACLE_HOME/BIN folder.
    2) created a cman.ora file and copied in appservers /NETWORK/ADMIN directory
    3) On cammand prompt type CMCTL...ADMINISTER cman_OracleAS where cman_OracleAS is the name of cman instance used in cman.ora file.
    My cman.ora file is as follows
    # Copyright (c) 2001,2002, Oracle Corporation. All rights reserved.
    # NAME
    # cman.ora
    # DESCRIPTION
    # Sample CMAN configuration file that the user can modify for their
    # own use.
    # NOTES
    # 1. Change <fqhost> to your fully qualified hostname
    # 2. Change <lsnport> to the listening port number
    # 3. Change <logdir> and <trcdir> to your log and trace directories
    # MODIFIED (MM/DD/YYYY)
    # asankrut 10/05/2002 - Added Rule List Specifications
    # asankrut 06/11/2002 - Modified to add new parameters; added comments.
    # asankrut 12/31/2001 - Creation.
    # CMAN Alias
    cmanOracleAS =
    (configuration=
    # Listening address of the cman
    (address=(protocol=tcp)(host=appserver_name)(port=1610))
    # Configuration parameters of this CMAN
    (parameter_list =
    # Need authentication for connection?
    # Valid values: boolean values for on/off
    (aso_authentication_filter=off)
    # Connection statistics need to be collected?
    # Valid values: boolean values for on/off
    (connection_statistics=yes)
    # Log files would be created in the directory specified here
    (log_directory=D:\GAV\OracleAS10\NETWORK\log)
    # Logging would be in done at this level
    # Valid values: OFF | USER | ADMIN | SUPPORT
    (log_level=ADMIN)
    # Maximum number of connections per gateway
    # Valid values: Any positive number (Practically limited by few 1000s)
    (max_connections=256)
    # Idle timeout value in seconds
    # Valid values: Any positive number
    (idle_timeout=0)
    # Inbound connect timeout in seconds
    # Valid values: Any positive number
    (inbound_connect_timeout=0)
    # Session timout in seconds
    # Valid values: Any positive number
    (session_timeout=0)
    # Outbound connect timeout in seconds
    # Valid values: Any positive number
    (outbound_connect_timeout=0)
    # Maximum number of gateways that can be started
    # Valid values: Any positive number (Practically limited by
    # system resources)
    (max_gateway_processes=16)
    # Minimum number of gateways that must be present at any time
    # Valid values: Any positive number (Practically limited by
    # system resources)
    # max_gateway_processes > min_gateway_processes
    (min_gateway_processes=2)
    # Remote administration allowed?
    # Valid Values: Boolean values for on/off
    (remote_admin=on)
    # Trace files would be created in the directory specified here
    (trace_directory=D:\GAV\OracleAS10\NETWORK\trace)
    # Trace done at this level
    # Valid values: OFF | USER | ADMIN | SUPPORT
    (trace_level=ADMIN)
    # Is timestamp needed with tracing?
    # Valid values: Boolean values for on/off
    (trace_timestamp=on)
    # Length of the trace file in kB
    # Valid values: Any positive number (Limited practically)
    (trace_filelen=1000)
    # No. of trace files to be created when using cyclic tracing
    # Valid values: Any positive number
    (trace_fileno=1)
    # Maximum number of CMCTL sessions that can exist simultaneously
    # Valid values: Any positive number
    (max_cmctl_sessions=4)
    # Event logging: event groups that need to be logged
    (event_group=init_and_term,memory_ops)
    # Rule list
    # Rule Specification:
    # src = Source of connection; '*' for 'ANY'
    # dst = Destination of connection; '*' for 'ANY'
    # srv = Service of connection; '*' for 'ANY'
    # act = Action: 'accept', 'reject' or 'drop'
    # Action List Specification:
    # aut = aso_authentication_filter
    # moct = outbound_connect_timeout
    # mct = session_timeout
    # mit = idle_timeout
    # conn_stats = connect_statistics
    (rule_list=
    (rule=
    (src=*)(dst=databaseIP)(srv=*)(act=accept)
    (action_list=(aut=off)(moct=0)(mct=0)(mit=0)(conn_stats=on))
    (rule=
         (src=appserverIP)(dst=127.0.0.1)(srv=cmon)(act=accept)
    Please help
    Thanks
    Atul Jain
    [email protected]

    Forgot to mention that
    cmanOracleAS.log file i.e connection manger log file is as follows.
    It says does not currently know of service 'cmon' but i have the rule which
    allows cmctl to conect locally with 127.0.0.1 .
    TNSLSNR for 32-bit Windows: Version 10.1.0.3.0 - Production on 17-MAR-2005
    12:17:53
    Copyright (c) 1991, 2004, Oracle. All rights reserved.
    System parameter file is D:\GAV\oracle_infra\network\admin\sqlnet.ora
    Command-line specified parameter file is D:\GAV\oracle_infra\network\admin\
    cman.ora
    Log messages written to D:\GAV\OracleAS10\NETWORK\log\cmanoracleas1_924.log
    Trace information written to D:\GAV\OracleAS10\NETWORK\trace\
    cmanoracleas1_924.trc
    Trace level is currently 6
    Started with pid=332
    Running in PROXY mode
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.10.1.101)
    (PORT=1610)))
    TIMESTAMP * CONNECT DATA [* PROTOCOL INFO] * EVENT [* SID] * RETURN CODE
    17-MAR-2005 12:22:07 * (connect_data=(service_name=cmon)(pid=ctl)) *
    (ADDRESS=(PROTOCOL=tcp)(HOST=10.10.1.101)(PORT=4589)) * establish * cmon *
    12514
    TNS-12514: TNS:listener does not currently know of service requested in
    connect descriptor
    17-MAR-2005 12:22:10 * (connect_data=(service_name=cmon)(pid=ctl)) *
    (ADDRESS=(PROTOCOL=tcp)(HOST=10.10.1.101)(PORT=4596)) * establish * cmon *
    12514
    TNS-12514: TNS:listener does not currently know of service requested in
    connect descriptor
    17-MAR-2005 12:23:31 * (connect_data=(service_name=cmon)(pid=ctl)) *
    (ADDRESS=(PROTOCOL=tcp)(HOST=10.10.1.101)(PORT=4782)) * establish * cmon *
    12514
    Thanks
    Atul jain

  • PHP & ORACLE Connectivity on Solaris

    Hi all,
    You can check this site for PHP and Oracle connection tutorial. It is intended to installing Apache and PHP with Oracle support and connecting and using Oracle via PHP.
    Page URL :
    http://gokmen.selcuk.edu.tr/tutor/orasol/ociphp.php
    Additionally, You will see an alternative way escaping from ORA-12154 and ORA-12545 errors while Oracle connection via PHP.
    Hope you find useful...
    Mustafa GOKMEN

    Hello,
    My developers have changed all the API´s to OCI8 and the code is able to connect with oracle 10g with php4 but, i am still getting this warning .i.e
    Warning: ocifreestatement(): supplied argument is not a valid OCI8-Statement resource in /apache/htdocs/English/tender_list.php on line 340
    i am unable to figure it out, every thing is working fine but still i am getting it ?
    thanks

  • Php, oracle connectivity.

    Hello All,
    I have a webserver that has php4,apache1.3 and oci8 instant client installed, and have a seperate oracle 10g db server, the php-oracle connectivity is fine when i run php code from db server but it gives me connectivity error when it runs from web server, error " ocifreestatement(): supplied argument is not a valid OCI8-Statement resource in /apache/htdocs/.....php on line..." while even when i made telnet to my db server 1521 port from web server it shows that listener is working, any idea ? thanks

    Hello,
    My developers have changed all the API´s to OCI8 and the code is able to connect with oracle 10g with php4 but, i am still getting this warning .i.e
    Warning: ocifreestatement(): supplied argument is not a valid OCI8-Statement resource in /apache/htdocs/English/tender_list.php on line 340
    i am unable to figure it out, every thing is working fine but still i am getting it ?
    thanks

  • Certificates in lieu of Oracle connection Manager for our Applets -- Help!!

    I support an application named IDEA out of New York. The IDEA application is an INTRANET application for use within our company Firewall.
    Currently, the IDEA application's front end resides on a Windows 2000 Server running IIS 5 and JRun 3.0. The back-end runs on Oracle 8.1.7 database on a UNIX Database Hosting Utility (DHU). Our applets communicate with the back-end database using Oracle Connection Manager that is installed on the Web Host.
    We are trying to migrate to the DWeb environment (Linux cluster). The linux cluster is running Apache Tomcat. We have been told that installing Oracle connection manager is not a viable solution (our company does not support it). Because of this our applets cannot communicate with our database. Below is a brief description of this limitation and also the work-around.
    ====================================================================================================================================================
    Connecting to the Database through the Applet
    The most common task of an applet using the JDBC driver is to connect to and query a database. Because of applet security restrictions, unless particular steps are taken an applet can open TCP/IP sockets only to the host from which it was downloaded (this is the host on which the Web server is running). This means that without these steps, your applet can connect only to a database that is running on the same host as the Web server.
    If your database and Web server are running on the same host, then there is no issue and no special steps are required. You can connect to the database as you would from an application.
    As with connecting from an application, there are two ways in which you can specify the connection information to the driver. You can provide it in the form of host:port:sid or in the form of a TNS keyword-value syntax.
    For example, if the database to which you want to connect resides on host prodHost, at port 1521, and SID ORCL, and you want to connect with user name scott with password tiger, then use either of the two following connect strings:
    using host:port:sid syntax:
    String connString="jdbc:oracle:thin:@prodHost:1521:ORCL";
    conn = DriverManager.getConnection(connString, "scott", "tiger");
    using TNS keyword-value syntax:
    String connString = "jdbc:oracle:thin:@(description=(address_list=
    (address=(protocol=tcp)(port=1521)(host=prodHost)))
    (connect_data=(sid=ORCL)))";
    conn = DriverManager.getConnection(connString, "scott", "tiger");
    If you use the TNS keyword-value pair to specify the connection information to the JDBC Thin driver, then you must declare the protocol as TCP.
    However, a Web server and an Oracle database server both require many resources; you seldom find both servers running on the same machine. Usually, your applet connects to a database on a host other than the one on which the Web server runs. There are two possible ways in which you can work around the security restriction:
    You can connect to the database by using the Oracle8 Connection Manager.
    or:
    You can use a signed applet to connect to the database directly.
    These options are discussed in the next section, "Connecting to a Database on a Different Host Than the Web Server".
    Connecting to a Database on a Different Host Than the Web Server
    If you are connecting to a database on a host other than the one on which the Web server is running, then you must overcome applet security restrictions. You can do this by using either the Oracle8 Connection Manager or signed applets. ====================================================================================================================================================
    It was suggested that we implement signed applets (it is our only alternative at this time). This is where, hopefully, you can help me. We are unfamiliar with using certificates and signing applets. We need to obtain certificates that will allow our applets to connect to our oracle database on the DHU. What kind of certificates do we use? Are their coding examples of how to use these certificates? We have a CA within our company but they cannot tell us what kind of certificates we need. How many certificates do we need? Do we install any certificates on the backend database server? Any information would be greatly appreciated. We are basically trying to get our applet to work outside the sandbox by establishing a connection to the database server.Thanks in advance for your time.

    or:
    You can use a signed applet to connect to the database directly.
    These options are discussed in the next section, "Connecting to a Database on a Different Host Than the Web Server".
    If you want to connect to the database from the applet there is a third option.
    Since this is an intranet application you have control over the desktops using this
    application. In our company the jre ignores signed applets (as it should) because
    it gives control to the user to run potentially harmfull applets from the Internet.
    The way to dish out special privileges to applets is the policy, put a policy file on
    you intranet and have the jre use it by specifying its URL in the java.security.
    Here is some more info about security configuration of the jre:
    http://forum.java.sun.com/thread.jspa?threadID=646161&tstart=45
    reply 3
    We use Oracle jinitiator to run Oracle forms but I am not involved in that project
    and do not know a lot about it. It does perform quite good though.

  • Certificates in lieu of Oracle connection Manager for our Applets

    I support an application named IDEA out of New York. The IDEA application is an INTRANET application for use within our company Firewall.
    Currently, the IDEA application's front end resides on a Windows 2000 Server running IIS 5 and JRun 3.0. The back-end runs on Oracle 8.1.7 database on a UNIX Database Hosting Utility (DHU). Our applets communicate with the back-end database using Oracle Connection Manager that is installed on the Web Host.
    We are trying to migrate to the DWeb environment (Linux cluster). The linux cluster is running Apache Tomcat. We have been told that installing Oracle connection manager is not a viable solution (our company does not support it). Because of this our applets cannot communicate with our database. Below is a brief description of this limitation and also the work-around.
    ====================================================================================================================================================
    [i][i][i]Connecting to the Database through the Applet
    The most common task of an applet using the JDBC driver is to connect to and query a database. Because of applet security restrictions, unless particular steps are taken an applet can open TCP/IP sockets only to the host from which it was downloaded (this is the host on which the Web server is running). This means that without these steps, your applet can connect only to a database that is running on the same host as the Web server.
    If your database and Web server are running on the same host, then there is no issue and no special steps are required. You can connect to the database as you would from an application.
    As with connecting from an application, there are two ways in which you can specify the connection information to the driver. You can provide it in the form of host:port:sid or in the form of a TNS keyword-value syntax.
    For example, if the database to which you want to connect resides on host prodHost, at port 1521, and SID ORCL, and you want to connect with user name scott with password tiger, then use either of the two following connect strings:
    using host:port:sid syntax:
    String connString="jdbc:oracle:thin:@prodHost:1521:ORCL";
    conn = DriverManager.getConnection(connString, "scott", "tiger");
    using TNS keyword-value syntax:
    String connString = "jdbc:oracle:thin:@(description=(address_list=
    (address=(protocol=tcp)(port=1521)(host=prodHost)))
    (connect_data=(sid=ORCL)))";
    conn = DriverManager.getConnection(connString, "scott", "tiger");
    If you use the TNS keyword-value pair to specify the connection information to the JDBC Thin driver, then you must declare the protocol as TCP.
    However, a Web server and an Oracle database server both require many resources; you seldom find both servers running on the same machine. Usually, your applet connects to a database on a host other than the one on which the Web server runs. There are two possible ways in which you can work around the security restriction:
    You can connect to the database by using the Oracle8 Connection Manager.
    or:
    You can use a signed applet to connect to the database directly.
    These options are discussed in the next section, "Connecting to a Database on a Different Host Than the Web Server".
    Connecting to a Database on a Different Host Than the Web Server
    If you are connecting to a database on a host other than the one on which the Web server is running, then you must overcome applet security restrictions. You can do this by using either the Oracle8 Connection Manager or signed applets. ====================================================================================================================================================
    It was suggested that we implement signed applets (it is our only alternative at this time). This is where, hopefully, you can help me. We are unfamiliar with using certificates and signing applets. We need to obtain certificates that will allow our applets to connect to our oracle database on the DHU. What kind of certificates do we use? Are their coding examples of how to use these certificates? We have a CA within our company but they cannot tell us what kind of certificates we need. How many certificates do we need? Do we install any certificates on the backend database server? Any information would be greatly appreciated. We are basically trying to get our applet to work outside the sandbox by establishing a connection to the database server.
    Thanks in advance for your time.

    Eston,
    Have you searched SUN's java Web site? Maybe this article will help:
    http://java.sun.com/developer/technicalArticles/Security/Signed/index.html
    Good Luck,
    Avi.

  • CSV to Oracle - (Integration) fails on the target ORACLE connection

    Hi,
    I am trying to load data from a csv file into Oracle db via ODI.
    Here are the steps i followed:
    1- Created the FILE physical schema
    1- Created the Oracle data server and physical schema in Physical Architecture
    2- Created and linked to logical schemas
    3- Created the correspondent data models and stores and a
    ble to view the data contents of the CSV and of the target table in ODI.
    4- Created interface, added csv as source and oracle table as target
    5- Used "LKM File to SQL" and "IKM SQL Control Append" (FLOW_CONTROL is false)
    When i execute the interface, the session starts then i receive the following wrror in Operator:
    ODI-1228: Task ARIBA_G1 (Integration) fails on the target ORACLE connection DEV_DW.
    Caused By: java.sql.SQLException: Non supported SQL92 token at position: 116
    at oracle.jdbc.driver.OracleSql.handleODBC(OracleSql.java:1319)
    at oracle.jdbc.driver.OracleSql.parse(OracleSql.java:1190)
    at oracle.jdbc.driver.OracleSql.getSql(OracleSql.java:341)
    at oracle.jdbc.driver.OracleSql.getSqlBytes(OracleSql.java:649)
    at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:217)
    at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:1079)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1466)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3752)
    at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3937)
    at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1535)
    at oracle.odi.runtime.agent.execution.sql.SQLCommand.execute(SQLCommand.java:163)
    at oracle.odi.runtime.agent.execution.sql.SQLExecutor.execute(SQLExecutor.java:102)
    at oracle.odi.runtime.agent.execution.sql.SQLExecutor.execute(SQLExecutor.java:1)
    at oracle.odi.runtime.agent.execution.TaskExecutionHandler.handleTask(TaskExecutionHandler.java:50)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.processTask(SnpSessTaskSql.java:2906)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2609)
    at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:537)
    at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:453)
    at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1740)
    at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:338)
    at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:214)
    at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:272)
    at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:263)
    at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:822)
    at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:123)
    at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:82)
    at java.lang.Thread.run(Thread.java:662)
    This is the Code section:
    BeanShell script error: Sourced file: inline evaluation of: ``if ( odiRef.getUserExit("FLOW_CONTROL").equals("1") ) { out.print(" \ninsert int . . . '' : Typed variable declaration : Error in method invocation: Method getDataSetMin() not found in class'com.sunopsis.dwg.snpreference.SnpReferenceInterne' : at Line: 25 : in file: inline evaluation of: ``if ( odiRef.getUserExit("FLOW_CONTROL").equals("1") ) { out.print(" \ninsert int . . . '' : odiRef .getDataSetMin ( )
    BSF info: Insert new rows at line: 0 column: columnNo
    if ( odiRef.getUserExit("FLOW_CONTROL").equals("1") ) { out.print(" \ninsert into\t") ;
    out.print(odiRef.getTable("L","TARG_NAME","A")) ;
    out.print(" \n( \n\t") ;
    out.print(odiRef.getColList("", "[COL_NAME]", ",\\n\\t", "", "((INS and !TRG) and REW)")) ;
    out.print(" \n\t") ;
    out.print(odiRef.getColList(",", "[COL_NAME]", ",\\n\\t", "", "((INS and TRG) and REW)")) ;
    out.print(" \n) \nselect\t") ;
    out.print(odiRef.getColList("", "[COL_NAME]", ",\\n\\t", "", "((INS and !TRG) and REW)")) ;
    out.print(" \n\t") ;
    out.print(odiRef.getColList(",", "[EXPRESSION]", ",\\n\\t", "", "((INS and TRG) and REW)")) ;
    out.print(" \nfrom\t") ;
    out.print(odiRef.getTable("L","INT_NAME","A")) ;
    out.print(" \n") ;
    } else { out.print(" \ninsert into\t") ;
    out.print(odiRef.getTable("L","TARG_NAME","A")) ;
    out.print(" \n( \n\t") ;
    out.print(odiRef.getColList("", "[COL_NAME]", ",\\n\\t", "", "((INS and !TRG) and REW)")) ;
    out.print(" \n\t") ;
    out.print(odiRef.getColList(",", "[COL_NAME]", ",\\n\\t", "", "((INS and TRG) and REW)")) ;
    out.print(" \n) \n\nselect\n    ") ;
    out.print(odiRef.getColList("", "[COL_NAME]", ",\\n\\t", "", "((INS and !TRG) and REW)")) ;
    out.print("   \n  ") ;
    out.print(odiRef.getColList(",", "[EXPRESSION]", ",\\n\\t", "", "((INS and TRG) and REW)")) ;
    out.print(" \nFROM (\t\n") ;
    for (int i=odiRef.getDataSetMin(); i <= odiRef.getDataSetMax(); i++){out.print("\n") ;
    out.print(odiRef.getDataSet(i, "Operator")) ;
    out.print("\nselect \t") ;
    out.print(odiRef.getPop("DISTINCT_ROWS")) ;
    out.print("\n\t") ;
    out.print(odiRef.getColList(i,"", "[EXPRESSION] [COL_NAME]", ",\\n\\t", "", "((INS and !TRG) and REW)")) ;
    out.print(" \nfrom\t") ;
    out.print(odiRef.getFrom(i)) ;
    out.print("\nwhere\t") ;
    if (odiRef.getDataSet(i, "HAS_JRN").equals("1")) { out.print("\n\tJRN_FLAG <> 'D'\t") ;
    } else {out.print("\t(1=1)\t") ;
    } out.print("\n") ;
    out.print(odiRef.getJoin(i)) ;
    out.print("\n") ;
    out.print(odiRef.getFilter(i)) ;
    out.print("\n") ;
    out.print(odiRef.getJrnFilter(i)) ;
    out.print("\n") ;
    out.print(odiRef.getGrpBy(i)) ;
    out.print("\n") ;
    out.print(odiRef.getHaving(i)) ;
    out.print("\n") ;
    }out.print("\n) ") ;
    out.print(odiRef.getInfo("DEST_TAB_ALIAS_WORD")) ;
    out.print(" ODI_GET_FROM\n\n") ;
    } out.print("\n") ;
    ****** ORIGINAL TEXT ******
    <%if ( odiRef.getUserExit("FLOW_CONTROL").equals("1") ) { %>
    insert into <%=odiRef.getTable("L","TARG_NAME","A")%>
    <%=odiRef.getColList("", "[COL_NAME]", ",\n\t", "", "((INS and !TRG) and REW)")%>
    <%=odiRef.getColList(",", "[COL_NAME]", ",\n\t", "", "((INS and TRG) and REW)")%>
    select <%=odiRef.getColList("", "[COL_NAME]", ",\n\t", "", "((INS and !TRG) and REW)")%>
    <%=odiRef.getColList(",", "[EXPRESSION]", ",\n\t", "", "((INS and TRG) and REW)")%>
    from <%=odiRef.getTable("L","INT_NAME","A")%>
    <% } else { %>
    insert into <%=odiRef.getTable("L","TARG_NAME","A")%>
    <%=odiRef.getColList("", "[COL_NAME]", ",\n\t", "", "((INS and !TRG) and REW)")%>
    <%=odiRef.getColList(",", "[COL_NAME]", ",\n\t", "", "((INS and TRG) and REW)")%>
    select
        <%=odiRef.getColList("", "[COL_NAME]", ",\n\t", "", "((INS and !TRG) and REW)")%>  
      <%=odiRef.getColList(",", "[EXPRESSION]", ",\n\t", "", "((INS and TRG) and REW)")%>
    FROM (
    <%for (int i=odiRef.getDataSetMin(); i <= odiRef.getDataSetMax(); i++){%>
    <%=odiRef.getDataSet(i, "Operator")%>
    select  <%=odiRef.getPop("DISTINCT_ROWS")%>
    <%=odiRef.getColList(i,"", "[EXPRESSION] [COL_NAME]", ",\n\t", "", "((INS and !TRG) and REW)")%>
    from <%=odiRef.getFrom(i)%>
    where <% if (odiRef.getDataSet(i, "HAS_JRN").equals("1")) { %>
    JRN_FLAG <> 'D' <%} else {%> (1=1) <% } %>
    <%=odiRef.getJoin(i)%>
    <%=odiRef.getFilter(i)%>
    <%=odiRef.getJrnFilter(i)%>
    <%=odiRef.getGrpBy(i)%>
    <%=odiRef.getHaving(i)%>
    <%}%>
    ) <%=odiRef.getInfo("DEST_TAB_ALIAS_WORD")%> ODI_GET_FROM
    <% } %>
    Any suggestions are highly appreciated.
    Mike

    Hi Santy,
    No, no error or bad files.
    Actually the data are moved correctly into the temp table created by ODI, but not from there to the final target table.
    I found out the reason though, the knowledge modules imported were from another ODI installation!
    I made sure to import the proper KM and it worked.
    Thanks!

  • Creating an Oracle connection in Net WCF using ODAC causes Exception

    Why am I getting a 'System.TypeInitializationException' when I create an Oracle connection in my .Net WCF web service?
    =========================================================================
    I'm currently working on implementing a WCF service which talks to an Oracle 10g database on the backend. When I attempt to connect to the database from within my service, I get the following exception: System.TypeInitializationException.
    •I'm running on a windows 7 (64 bit machine).
    •I'm using VS 2010.
    •I'm using Oracle 10g on the backend.
    I'm the Oracle.DataAccess.dll (ODP.Net) from the following installed instance
    c:\oracle\product\10.2.0\.....\ODP.NET\bin\1.x\Oracle.DataAccess.dll
    •I've included this DLL in the references for my WCF service.
    •I've included this service as a project within my VS WPF solution.
    •The service starts up automatically when I start my WPF application in VS 2010.
    At runtime I see the following output in my debug output window:
    'WcfSvcHost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\assembly\GAC\Oracle.DataAccess\1.102.2.20__89b483f429c47342\Oracle.DataAccess.dll' A first chance exception of type 'System.TypeInitializationException' occurred in Oracle.DataAccess.dll
    Sure enough, I look at the exception details in the debugger and I see the following information (this occurs when I attempt to create a new ORACLE connection):
    "The type initializer for 'Oracle.DataAccess.Client.OracleConnection' threw an exception." InnerException {"The provider is not compatible with the version of Oracle client"} System.Exception {Oracle.DataAccess.Client.OracleException}
    A Little Background:
    I'm basically migrating my data layer to a WCF service. The same service layer previously existed in a WinForm application. Everything works fine in my WinForm application. I include the same reference to the Oracle.DataAccess.dll and all my reads/writes with the database work fine.
    Is there something obviously different between the WCF and WinForm access/use of the DLL? Is there some limitation I'm unaware of? Is there an issue running this through VS2010 in the debugger?
    I have absolutely no idea what is going on here. Any hints/direction would be greatly appreciated.

    It's certainly possible to install .NET 1.x on the machine while still using VS 2010, but MS does not support and most likely never tested this combination. Running .NET Framework 1.x on Windows 7 also is not supported. I didn't know you had successfully used this combination previously. Nonetheless, it's good to be on a supported combination that has been certified by MS and Oracle if you run into a problem.
    I had another reason to ask you to upgrade to ODP.NET 11.2 As it will be the last version installed, ODP.NET's unmanaged DLLs will appear in your PATH first. The error you see is typical when ODP.NET from one version tries to use DLLs from another Oracle instance installed on your machine.
    If that doesn't work, set the DllPath setting in your web.config file to the BIN directory of your newly installed Oracle Client. Here's an example of that:
    http://docs.oracle.com/cd/E20434_01/doc/win.112/e23174/featConfig.htm#sthref109

  • How to install oracle connection manager on solaris 10

    I have installed oracle application server 10.1.2 on solaris 10. How do i install oracle connection manager utility.
    My end goal is to use applets/jdbc.
    Thanks

    Thank you Zettabyte!!
    Folks, network printers should NOT BE configured like this:
    lpadmin -p somequeue -s someprinter
    that creates a remote style queue and puts all the I/O and processing capability on the basic LPD listener present on network printer interfaces. This will cause problems down the road, not to mention that you cannot control access, get any logging, filter content, or control banner pages.
    Network printers should use any software (or PPD file) supplied by the vendor over the basic lpadmin/netstandard config.
    You can install CUPS, but Oracle won't support it until it's part of the OS (S11, apparently).
    The "System Administration Guide: Solaris Printing" is highly recommended for those administering printers on Solaris.

Maybe you are looking for

  • ERROR OCCURRED WHILE VIEWING A WEBI REPORT

    when i'm trying to refresh a WEBI report, I'm getting this error. Can anyone please help me with it? Here is the snapshot of the error: Thanks! Neha.

  • Shift + Smart Object

    When holding shift with a smart object (to constrain proportions) there are times when the smart object will just jump back to where it was before I was resizing and I cannot get it to move when shift is held down. Ideas as to why this happens? It do

  • Oracle Planning gives error when trying to open application from Workspace.

    Hello, We have version 11.2.2.0.0 of Planning installed. After the install of Essbase Studio Server we have hit some issues where Planning does not seem to be available. Despite re-deploying several times and other things, we cannot connect to the Pl

  • Blackberry Z10 10.3.1 Bugs (so far...)

    After updating to 10.3.1 I have a slew of issues that I am going to list off that perhaps can be (and SHOULD be) fixed as they were clearly not tested properly before release (if at all): 1) Texting problems most likely related to the inability of th

  • Saving MIDI edits in GB3 - is it possible?

    Don't see any obvious way via Save/Save As options. Love how easy it is to edit MIDI in GB, ashame you can't save it in anything other than proprietary GB .band or as an iTunes/iPod file... ;-( And is there a way to play an imported .mid through an e