Tool to get database queries from application

Hi
I have to support an application which has oracle as a database but I dont have code for the application.So I want to know the queries run from the application whenever we work on that.So is there any view in oracle which we can use for the same?

If the application uses a single database session, you can also generate a SQLTrace file to analyse with tkprof by using either Oracle Enterprise Manager to turn on SQL Trace for the session, or use DBMS_MONITOR SESSION_TRACE_ENABLE(session_id, serial_num) - you then have to find the trace file on the datbaas eserver USER_DUMP_DEST and either read manually (the queries are easily visible) or use tkprof to analyze it Using Application Tracing Tools  Among other things tkprof can tell you the top resource consuming SQL statements.

Similar Messages

  • I am facing problem to get text file from application sever

    Hi This is lokesh.
    Actually my requirement is to craete sales orders by getting file from other server.for that i have used shell script to connect that server.Ok i am connecting to that different server(not sap server) successfully.
    But my problem is getting text file from application SERVER.
    That different server people will send the file name as 'DDHHMMSS' (Days,Hours,Minutes,Seconds).
    Just suppose if they will send today means that file name will come as 20103025. and with in half an hour if they again send that file file means that file name as '20110025'.
    like that file name is always varies.So how can i read that type of text files from the application server.
    and one more thing that is there chance to read morethan one text file from application server.
    Pls guide me if u know the solution.PLs this requirement is urgent.
    Regards,
    Lokeshgoud

    Hi..,
    <b>Just execute this program ... this is for the files received in JUST 3 MINS...</b>
    change it according to your requirement !!
    data time type sy-uzeit value '100000'. <i>"<<----start time</i>
    data file(8) type c value '20'.
    do 180 times. <i>" <<----- for 3 minutes</i>
    add sy-index to time.
    concatenate file time into file.
    write / file.
    OPEN DATASET FILE FOR INPUT IN TEXT MODE ENCODING DEFAULT.
    IF SY-SUBRC EQ 0.
    PERFORM READ_DATASET.
    ENDIF.
    file = '20'.
    time = '100000'.
    ENDDO.
    <b>form read_dataset.
    read the file here with the file name <b>FILE</b>.
    endform.</b>
    regards,
    sai ramesh

  • Checking database connectivitty from application server

    Hello All,
    I am installing Peoplesoft on Oracle Linux 6.3 but the database server is running on a different windows server. I have created the Peoplesoft database already using peoplesoft client tools(Data mover, config manager) installed on the same windows server. So now I want to verify the connectivity to the database running on windows server from app server installed on Linux.
    In the peoplesoft installation guide, I didn't find the sufficient instructions to do so :
    Before continuing, it is critical to verify connectivity to the database that the application server domain will use. To verify connectivity, connect to the database server from the >application server using the native SQL tool on the application server.
    For Oracle use SQL*Plus.Which SQL tool is it talking about and where I can find it? I have already searched inside $TUX_HOME/bin directory but didn't find any.
    Thanks in advance.

    Hakan Biroglu wrote:
    In order for the application server to connect to the database you should have installed Oracle (Client). Did you do this already?
    If so, copy the tnsnames.ora from the db server to your application server Oracle dir and try connectivity using sqlplus
    +sqlplus SYSADM/SYSADM@[YOUR_SID]+
    in dought, please read Nicolas his posts on installing PeopleSoft on Linux.
    http://gasparotto.blogspot.nl/p/installation.html
    Thanks, The problem is that I am not able to install Oracle DB client 11.0.3 in Oracle Linux 6.3 so I though may be tuxedo have such client which could help me connecting to database.
    Isn't there any way we can connect without DB client?

  • Move CM Node to Database node from Application Tier

    Hi,
    I have setup like this...my set up is 2 node...one node is Database node and another is Application Node.
    Now I want to move Concurrent Manager Node from Application Node to Database Node..
    I Can do this using RAPIDCLONE.....
    What My Doubt is to move the CM Node...
    Do I have to copy APPL_TOP , COMMON_TOP and ORA_TOPs or only APPL_TOP to database node
    Plase help it out

    Hi,
    I want to Move CM to Database node using Shared Applicaiton File System Feature...It is very cool.....
    I did not understand one point there...These lines are from this document
    Sharing the Application Tier File System in Oracle Applications 11i Doc ID: Note:233428.1
    Section 3: Sharing an existing Applications file system
    In the 3rd point....
    Make the Applications files accessible
    Mount the shared disk to all application tier nodes
    Suppose, I have Total Application Tier File System in the Application Node is in /u01 partition...Do I have to NFS Share this partition and Mount it in Database Node...is it correct??? like this I have to do it na....
    (1) NFS share the /u01 partition File system in the Application Node
    (3) mount the /u01 file system in the Database Node
    $mount /u01 /u01
    Is it correct ?????
    If I have to apply any patch...Only we need to apply it on Primary node..once we apply it..it is automatically appearing the node 2....because it is shared file system....Only use is....For CM Running purposes..Database Node Resources(CPU and RAM) will be used......right.....
    We no need to touch the Shared File System in the Database Node 2 in this scenario....right....
    Please confirm it...

  • Class to Get File List from Application Server

    Hi all
    I've to obtain the file list of a directory from application server, I can use a FM too but It's possible the lenght of file name is upper then 40 characters so I can't use FM EPS_GET_DIRECTORY_LISTING.
    Thanks
    Edited by: Aristoteles92 on Apr 20, 2010 3:27 PM

    Try using the function  RZL_READ_DIR_LOCAL.  Here is an example program using this function.
    data: begin of itab occurs 0,
          rec(1000) type c,
          end of itab.
    data: wa(1000) type c.
    data: p_file type localfile.
    data: ifile type table of  salfldir with header line.
    parameters: p_path type salfile-longname
                        default '/usr/sap/TST/DVEBMGS01/data/'.
    call function 'RZL_READ_DIR_LOCAL'
         exporting
              name           = p_path
         tables
              file_tbl       = ifile
         exceptions
              argument_error = 1
              not_found      = 2
              others         = 3.
    loop at ifile.
      format hotspot on.
      write:/ ifile-name.
      hide ifile-name.
      format hotspot off.
    endloop.
    at line-selection.
      concatenate p_path ifile-name into p_file.
      clear itab.  refresh itab.
      open dataset p_file for input in text mode.
      if sy-subrc = 0.
        do.
          read dataset p_file into wa.
          if sy-subrc <> 0.
            exit.
          endif.
          itab-rec = wa.
          append itab.
        enddo.
      endif.
      close dataset p_file.
      loop at itab.
        write:/ itab.
      endloop.
    Regards,
    Rich Heilman

  • Connection of oracle database in database server from application server

    Hi,
    I have two servers, one is application server and another one is database server…..
    I want to connect oracle 10g database in database server to application server. In application server oracle 10g client is installed……In database server, I have set tnsnames.ora, Listener.ora …while checking in lsnrctl…the particular sid is running fine…
    In application server, while I give as sqlplus
    After giving username and password its showing error as
    ORA-12545: Connect failed because target host or object does not exist
    While surfing in net it shows check tnsnames.ora and listener.ora….. I have set the environmental variables here in application server…..
    It’s connecting when I give
    Sqlplus
    Sql>username/password @ hostname: 1521/sid_name
    Is it possible to connect with the username and password
    I have set the host names in /etc/hosts….
    If we are giving the hostname, port number and Sid name this connects without using tnsnames.ora…..
    While pinging between two servers the connectivity is there between two servers…..
    Could u pls help me out?
    Thanks in advance

    hi,
    as u said i have done that ..s.till the same problem persists...
    lsnrctl>services
    $ lsnrctl
    LSNRCTL for IBM/AIX RISC System/6000: Version 10.2.0.1.0 - Production on 08-FEB-2007 03:56:23
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Welcome to LSNRCTL, type "help" for information.
    LSNRCTL> services
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    Services Summary...
    Service "RBTT" has 1 instance(s).
    Instance "RBTT", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0 state:ready
    LOCAL SERVER
    Service "RBTTXDB" has 1 instance(s).
    Instance "RBTT", status READY, has 1 handler(s) for this service...
    Handler(s):
    "D000" established:0 refused:0 current:0 max:1022 state:ready
    DISPATCHER <machine: emea, pid: 197076>
    (ADDRESS=(PROTOCOL=tcp)(HOST=emea)(PORT=37484))
    Service "RBTT_XPT" has 1 instance(s).
    Instance "RBTT", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0 state:ready
    LOCAL SERVER

  • Error in Getting Database Connection from datasource

    Hi,
    I am getting the following error when I tried to get the connection from the datasource object.
    The call is made by the client proxy and the code is getting executed on the server side.
       InitialContext ic = new InitialContext();
       DataSource ods = (DataSource)ic.lookup(dataSourceJndiName);
                conn = ods.getConnection();
    ods.getConnection() is giving the following error
    Caused by: com.sap.engine.services.dbpool.exceptions.BaseSQLException: ResourceException occured in method ConnectionFactoryImpl.getConnection(): com.sap.engine.services.connector.exceptions.BaseResourceException: Not allowed to open connection!
         at com.sap.engine.services.dbpool.cci.ConnectionFactoryImpl.getConnection(ConnectionFactoryImpl.java:59)
         at com.delos.cmx.server.datalayer.DataSourceConnectionData.getDatabaseConnection(DataSourceConnectionData.java:132)
         ... 37 more
    Caused by: com.sap.engine.services.connector.exceptions.BaseResourceException: Not allowed to open connection!
         at com.sap.engine.services.connector.resource.impl.RestrictedResourceSetImpl.getSharedEventHandler(RestrictedResourceSetImpl.java:64)
         at com.sap.engine.services.connector.jca.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:172)
         at com.sap.engine.services.dbpool.cci.ConnectionFactoryImpl.getConnection(ConnectionFactoryImpl.java:51)
         ... 38 more
         at com.sap.engine.services.ejb.exceptions.BaseRuntimeException.writeReplace(BaseRuntimeException.java:273)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at java.io.ObjectStreamClass.invokeWriteReplace(ObjectStreamClass.java:896)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1011)
         at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
         at com.sap.engine.services.rmi_p4.DispatchImpl.throwException(DispatchImpl.java:120)
         at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:270)
         at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:165)
         at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:102)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
         at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:140)
    I am unable to proceed because of this error.
    I would appreciate any help on this.
    Thanks
    Kavitha

    Hi Kavitha,
    If u have not gone through the link given below then
    plz visit it, it may help u.
    http://help.sap.com/saphelp_nw04/helpdata/en/5c/2f2c4142aef623e10000000a155106/content.htm
    Regards,
    Narinder

  • Unable to get database connection  from loaded java class in oracle

    Hi all,
    I am trying to call java class method from oracle function, but getting below exception, while creating connection.
    SQL> select charge_calculation(1,'2011-06-01', 'E') from dual;
    select charge_calculation(1,'2011-06-01', 'E') from dual
    ERROR at line 1:
    ORA-29532: Java call terminated by uncaught Java exception:
    java.lang.ExceptionInInitializerError
    inside main method
    inside main method1
    inside main method2
    inside main method3
    inside main method3
    Exception in thread "Root Thread" java.lang.ExceptionInInitializerError
    at javax.crypto.Cipher.getInstance(DashoA12275)
    at oracle.security.o5logon.O5LoginClientHelper.decryptAES(Unknown Source
    at oracle.security.o5logon.O5LoginClientHelper.generateOAuthResponse(Unk
    nown
    Source)
    at
    oracle.jdbc.driver.T4CTTIoauthenticate.marshalOauth(T4CTTIoauthenticate.java)
    at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:367)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:
    501)
    at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:203)
    at
    oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:33)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java)
    at java.sql.DriverManager.getConnection(DriverManager.java)
    at java.sql.DriverManager.getConnection(DriverManager.java:187)
    at SPEodPricing.spEodPricing(SPEODPRICING:98)
    at SPEodPricing.main1(SPEODPRICING:47)
    Caused by: java.lang.SecurityException: Cannot set up certs for trusted CAs
    at javax.crypto.SunJCE_b.<clinit>(DashoA12275)
    ... 13 more
    Caused by: java.security.PrivilegedActionException: java.io.IOException
    at java.security.AccessController.doPrivileged(Native Method)
    ... 14 more
    Caused by: java.io.IOException
    at java.io.FileOutputStream.writeBytes(Native Method)
    at java.io.FileOutputStream.write(FileOutputStream.java)
    at sun.net.www.protocol.jar.URLJarFile$1.run(URLJarFile.java:177)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.net.www.protocol.jar.URLJarFile.retrieve(URLJarFile.java:165)
    at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:43)
    at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:70)
    at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.ja
    va:102)
    at
    sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConnection.java:1
    24)
    at javax.crypto.SunJCE_d.a(DashoA12275)
    at javax.crypto.SunJCE_b.g(DashoA12275)
    at javax.crypto.SunJCE_b.e(DashoA12275)
    at javax.crypto.SunJCE_q.run(DashoA12275)
    ... 15 more
    SQL> select charge_calculation(1,'2011-06-01', 'E') from dual;
    select charge_calculation(1,'2011-06-01', 'E') from dual
    ERROR at line 1:
    ORA-29549: class BBVA_MERGED.SPEodPricing has changed, Java session state
    cleared
    SQL> exit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64
    bit Production
    With the Partitioning, Real Application Clusters, OLAP, Data Mining
    and Real Application Testing options
    JAVA Sample code:-
    public String method1(int pi_ctry_id,String pi_cur_busi_date ,String pi_eod_bod_flag)
    System.out.println("inside main method1");
    CachedRowSet tmplcrs                = null;
    HashMap resMap                              = new HashMap();
              Double ln_candidate_extra           = 0.0;
              Double ln_calculate_on_val          = 0.0;
              int lv_calculate_on                = 0;
              int lv_cand_attribute                = 0;
    // int pi_ctry_id                          = 0;
    // String pi_cur_busi_date           = null;
    int pi_bch_id                          = 0;
    // String pi_eod_bod_flag               = null;
    Date ldt_cur_busi_date          = null;
    Date lstr_next_calc_date     = null;
    int li_bch_id                         = 0;
    int li_chg_ac_branch               = 0;
    int calFrequency                     = 0;
    DbUtils dbObj = new DbUtils();
    Map reqMap = new HashMap();
    CachedRowSet updtcrs                = null;
    Connection conn = null;
              try
    System.out.println("inside main method2");
                   reqMap.put("pi_ctry_id", ""+pi_ctry_id);
                   reqMap.put("pi_cur_busi_date", ""+pi_cur_busi_date);
                   reqMap.put("pi_eod_bod_flag", ""+pi_eod_bod_flag);
    System.out.println("inside main method3");
                   Class.forName("oracle.jdbc.driver.OracleDriver");
    // Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@10.1.56.85:1521:orcl", "bbva_merged", "bbva_merged");
    // conn = DriverManager.getConnection("jdbc:oracle:thin:@10.1.50.104:1521:cmsdb6", "bbva_base", "bbva_base");
    System.out.println("inside main method3");
    conn = DriverManager.getConnection("jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS = (PROTOCOL = TCP)(HOST = 10.1.50.129)(PORT = 1521))(ADDRESS = (PROTOCOL = TCP)(HOST = 10.1.50.130)(PORT = 1521))(LOAD_BALANCE = yes)(CONNECT_DATA =(SERVER = DEDICATED)(SERVICE_NAME = BBVASIT)))", "BBVA_MERGED", "BBVA_MERGED");
    conn.setAutoCommit(false);
    System.out.println("inside main method4");
    }

    29532, 00000, "Java call terminated by uncaught Java exception: %s"
    // *Cause: A Java exception or error was signaled and could not be
    //          resolved by the Java code.
    // *Action: Modify Java code, if this behavior is not intended.

  • Not able to connect to oracle database 11g from application server10g

    Hello,
    I have installed oracle database 11g. We are using forms and report services through application server 10g. I have add required entries in tnsnames.ora file. But I am not able to connect to database. I am getting following error:
    ORA-12514-TNS:listener does not currently know of service requested in connect descriptor
    Please help me.
    Thanks
    Trusha

    lsnrctl status...
    oracle@orcl11gd:~> lsnrctl status
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 13-FEB-2013 09:16:06
    Copyright (c) 1991, 2009, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    Start Date 11-FEB-2013 12:40:23
    Uptime 1 days 20 hr. 35 min. 42 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /opt/oracle/product/11gR2/db/network/admin/listener.ora
    Listener Log File /opt/oracle/diag/tnslsnr/orcl11gd/listener/alert/log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=orcl11gd.irma.ac.in)(PORT=1521)))
    Services Summary...
    Service "orcl11gd.irma.ac.in" has 1 instance(s).
    Instance "orcl11gd", status READY, has 1 handler(s) for this service...
    Service "orcl11gdXDB.irma.ac.in" has 1 instance(s).
    Instance "orcl11gd", status READY, has 1 handler(s) for this service...
    The command completed successfully
    oracle@orcl11gd:~>
    tnsnames.ora
    # tnsnames.ora Network Configuration File: /opt/oracle/OraBi/network/admin/tnsnames.ora
    # Generated by Oracle configuration tools.
    REP_ASDEMO_ORABI.IRMA.AC.IN =
    (ADDRESS = (PROTOCOL = tcp)(HOST = asdemo)(PORT = 1950))
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = asdemo.irma.ac.in)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = PLSExtProc)
    ORCLDEMO =
         (DESCRIPTION =
              (ADDRESS_LIST =
                   (ADDRESS = (PROTOCOL = TCP) (HOST = 172.16.11.80)(PORT = 1521))
              (CONNECT_DATA =
                   (SERVICE_NAME = ORCLDEMO)
                   (SERVER = DEDICATED)
    ORCL11GD =
         (DESCRIPTION =
              (ADDRESS_LIST =
                   (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.100.180)(PORT = 1521))
              (CONNECT_DATA =
                   (SERVICE_NAME = ORCL11GD)
                   (SERVER = DEDICATED)
         )

  • FM to get the file from application server to presenatation server automati

    Hi!
    In my upload program I am egtting the error log file onmy application server directly. Is there a function module or a way that in my abap code I can mention to bring the file or transfer the file to the presentation server . As my program is been run in the back ground so I cannot directly get the file on the presenattion server, so I need to bring it back on teh presentation server back to see teh eror log.
    I would like my program to do the transfer in background itself so that I can see the error log on a daily basis from my local file .
    Thanks
    when 'X'.                      "X is application server
    *         TRANSLATE p_err USING '\/'." correct slash for unix
          open dataset p_err2 for output in text mode encoding default.
          if sy-subrc = 0.
            loop at t_err into s_nts.
              transfer s_nts to p_err2.
              if sy-subrc ne 0.
                message i010(ad) with p_err2 'Download Failed'.
              endif.
            endloop.
            close dataset p_err2.
          else.
                message i010(ad) with p_err 'dataset could not be found'.
            sy-subrc = -1.             "Maintain error condition
          endif.
    *        endif.
          when ' '.                      "Blank is presenation server
            translate p_err using '/\'."correct slash Dos file
            call function 'DOWNLOAD'
              EXPORTING
                filename = p_err
                filetype = 'ASC'   "FTYPE set to DAT in DATA seg
              TABLES
                data_tab = t_err.
            if sy-subrc ne 0.
              message i010(ad) with 'File ' p_err 'cannot be located.'.
              sy-subrc = -1.             "Maintain error condition
              exit.
            endif.
        endcase.
      ENDIF.
    Thanks

    SO , after reading all , I assume that there is no way in which when I run the background job and get a errro file on application server can be retrievd on my presenattion serevr during the background job run. I was thinking that theer might be a functionn module which will convert the application server file into presenttion server file during the program run in background and store it in the location provided.
    I was trying to use FM  CALL FUNCTION 'C13Z_APPL_TO_FRONT_END' and  CALL FUNCTION 'ARCHIVFILE_SERVER_TO_SERVER' but using teh first one asks for source file and destination file name during teh program run and as it runs in background it cannot be provided again and again and teh second one dosent seem to work.
    Thanks

  • How to access the database tables from application

    Hii all,
    The information in webcenter content, such as meta data fields, users, security groups etc are stored in
    database tables like-      Revisions, SecurityGroups, Users, DocType etc..
    Can we access this tables from an adf application or any webcenter application..
    If yes, then what can be the approach for that..??
    Another things, how can we create custom tables just like the predefined tables...??
    Any information regarding this.??
    Thanks

    Can we access this tables from an adf application or any webcenter application.Yes, you can - like to any other existing database. But I would strongly discourage you from any, but read-only access, or you can easily end up with inconsistent data.
    If yes, then what can be the approach for that..??Just create a database connection and define in your model what tables you want to access.
    Another things, how can we create custom tables just like the predefined tables...
    Actually, WebCenter Content provides functionality of creation of custom tables (see http://docs.oracle.com/cd/E23943_01/doc.1111/e10978/c04_metadata.htm#autoId2 ) and these are probably the only good candidates for read-write access. See further in the manual what use cases are supported. Of course, you could do this even externally, but rather than Data Definition Language, I'd use services (if there are some).

  • Getting database properties from current container

    Hi guys
    I'm a trainee java developer and I'm struggling... I've done countless google's & I'm not getting anywhere...
    I won't mind if the response to this post is RTFM, but at least could you point me in the right direction :)
    My manager told me to replace all our ejb finders to rather use Hibernate (www.hibernate.org).
    I got that working very cool, but the way I setup Hibernate's SessionFactory is through an xml file:
    Example:
    <?xml version="1.0" encoding="utf-8" ?>
    <!DOCTYPE hibernate-configuration (View Source for full doctype...)>
    - <hibernate-configuration>
    - <!-- a SessionFactory instance listed as /jndi/name
    -->
    - <session-factory name="java:comp/env/hibernate/SessionFactory">
    - <!-- properties
    -->
    <property name="connection.driver_class">org.hsqldb.jdbcDriver</property>
    <property name="connection.url">jdbc:hsqldb:hsql://localhost:1703</property>
    <property name="connection.username">sa</property>
    <property name="connection.password" />
    <property name="dialect">net.sf.hibernate.dialect.HSQLDialect</property>
    - <!-- mapping files
    -->
    <mapping resource="za/co/strate/safe/reports/CountPartyUnmatchedOrdersVO.hbm.xml" />
    </session-factory>
    </hibernate-configuration>
    Now my manager want's me to rather get these database connection properties from the current ejb container (not hard-coded in any file)...
    We have client's running JBoss & IBM WebSphere...
    Any pointers would be greatly appreciated!
    Thanks!
    Anthony

    Now my manager want's me to rather get these database connection properties from the current ejb container (not hard-coded in any file)...
    Tell you'r manager that he is a stupid asshole who has no clue about what he is talking.
    Because what he wants is not possible

  • Am I missing something regarding database queries from BPEL?

    Hi,
    I'm trying to execute what I would think is a simple query from within a BPEL process against an Oracle 10g database.
    I have a root table, meter_reading that has an id, a time, a value, and a foreign key to a meter_reading_type table with a simple id-name-description format.
    How do I create a PartnerLink in BPEL that queries for the last reading of a particular type? The SQL is easy. The problem is that with the relationship, I can't find the proper format for a pass-through query so that I can do the subselect AND the select by type (name column).
    Also, is it possible with the BPEL PM/OC4J combination to output the queries being generated from Toplink?
    I've looked through the toplink docs, but they seem to refer to doing this in Java, not in the toplink_mappings.xml file.
    Any help would be appreciated. If I'm missing something obvious, please point it out.
    Thanks for your time,
    Chris

    I am guessing from the examples and from looking around that the only solution to this complexity is stored procs and functions. What happens if you're not allowed to use them? Seems like an awkward part of a product that is owned by Oracle.
    C

  • Getting JNDI name from application module configuration

    How to programmatically get JNDI name of the data source, specified in the bc4j.xcfg, using application module object or oracle.jbo.client.Configuration, or whatever?

    im sorry for interupting this thread. i have a question for Vinay. Actually im watching this thread bcoz i too have the same question.
    Vinay, what imports is to be added for this.None, if you are using ADFbc.
    The method is available in your ApplicationModuleImpl (i.e. the Java Impl for your AM).
    Here's the 11.1.1.5 javadoc:
    http://docs.oracle.com/cd/E24001_01/apirefs.1111/e10653/oracle/jbo/client/remote/ApplicationModuleImpl.html#getSession__
    im using Jdev 11.1.1.5.0 the statement is : System.out.println("Data Source Name"+getSession().getEnvironment().get("JDBCDataSource"));
    Its showing getSession() method not found.
    Any help???Where did you write that statement? It should work in the AMImpl as the javadoc shows....

  • I am not getting any sounds from Applications or Web Browsers, but i am getting alert sounds.

    I've tried everything: Restarting my computer, audio MIDI settings, reseting PRAM, opening garageband :l Nothing seems to work! This is really anoyying. I've looked at all the forums about this and i've tried everything it says, and no luck. Please help. And its weird because my computer is not muted and when i turn on the computer the startup sound comes, then i go into iTunes and play a song, but nothing plays, I just hear nothing but error and alert sounds! Please Help!!

    Hmmm, only thing I can think is some extension not loading or borked, open System Profiler, or whatever the name has changed to now, check Software>Extensions & see if all the myriad Audio ones appear to be loaded & valid...

Maybe you are looking for

  • How to enter a specific vendor for  the delivery costs in purchasing order?

    Now I want to create a purchasing order including planned deliver costs such as Freight, Coustoms ect, as the vendor of such planned deliver costs is different from the goods supplier, then How to enter a specific vendor for  the delivery costs in pu

  • CREATE_CASH : ORA-29282: invalid file ID

    While running the AR_RECEIPT_API_PUB.create_and_apply to create and apply a receipt in R12, i get the error: Message 1. CREATE_CASH : ORA-29282: invalid file ID Message 2. ORA-29282: invalid file ID in Package AR_RECEIPT_API_PUB Procedure Create_cash

  • Syntax Error in the Query

    Dear All, Please tell me syntax error in the below query. When I'm going to write numeric number in this filed "$[ OVPM.DocNUm ]". It's working fine. But when I'm writing this it give me error.Please clear me where am wrong????I SELECT T0.[AcctNum] F

  • JDBC ResultSet and direct D/B access are returning different no. of rows

    I am testing a JDBC application, which is using a DataSource definition configured in Visual Admin under JDBC Connector node. This program gets the JDBC Connection via lookup thro' JNDIContext. What is interesting is I am getting different no. of row

  • Premiere Elements 10 install require PSE trial to install?

    On the Customer Information screen of the Premiere Elements setup there is a check box at the bottom labeled "Install Photoshop Elemtns 10 (Trial)" that is checked, but greyed out so I can't uncheck it. I don't want to install the Photoshop Elements