Configuring DLL in oracle environment

Hello,
I'm using Windows and my Oracle DB version is 9.2.0.1. I want to use DLL (proc & fun) in my pl/sql procedures.
What are the steps to configure the DLL in Oracle. Is it same as configuring External procedures?
Do we need to configure both listener.ora and tnsnames.ora files for this purpose?
Cheers
Ram

You must build an external library, declare it as a LIBRARY object inside Oracle, configure your lib paths, and configure your listener.
Once you've met the config procedures, next you have to create a wrap function to access your external funcion inside a PLSQL block.
Check this documents:
http://download-west.oracle.com/docs/cd/B19306_01/appdev.102/b14289/dcimethcj.htm#sthref250
http://download-west.oracle.com/docs/cd/B19306_01/server.102/b15658/ldr_demo.htm#sthref565
http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14231/manproc.htm#ADMIN00501
Step 1 - Make entry in the TNSNAMES.ORA.
======
Make the following entry in the TNSNAMES.ORA:
extproc_connection_data.world =
     (DESCRIPTION =
          (ADDRESS =
          (PROTOCOL = IPC)
          (KEY = extproc))
          (CONNECT_DATA =
               (SID = extproc)
Step 2 - Make the necessary entries in the LISTENER.ORA.
======
You can either add an entry to the existing listener or add another listener
process.
Option 1: Add an Entry to the Existing Listener
The information contained in each listener differs. Defining the
listener process is done in two parts. The first part is as follows:
LISTENER =
(ADDRESS_LIST =
(ADDRESS=
(PROTOCOL= IPC)
(KEY= V803)
(ADDRESS=          <-Add this line.
(PROTOCOL= IPC) <-Add this line.
(KEY= extproc)     <-Add this line.
(ADDRESS=
(PROTOCOL= TCP)
     (Host= ###.#.#.#)
(Port= ####)
Step 3 - Start the listener process.
======
Any modifications to the existing listener require that you stop and
restart the listener to reload the new listener configuration. Adding a
second listener process, instead of modifying the current, only requires
the startup of the new listener process.
Step 4 - Create a sample DLL using the following code.
======
The following is a basic example of an external procedure. It is a good
way to test to ensure that the environment (mainly the listener) is configured
correctly.
Note: For the remaining steps, the DLL name should be MYEXTPROC.DLL.
#include <stdio.h>
int __declspec(dllexport) square(int x)
return(x*x);
Step 5 - Move the DLL to same server where the database is located.
======
The DLL can be placed in any directory. One approach would be to create an
EXTPROC directory under the ORACLE_HOME and use this to house all external
procedures.
Step 6 - Create the required library.
=======
Log into SQL*Plus and create a library to be associated with the external
procedure.
Note: The user must have CREATE LIBRARY privileges.
CREATE LIBRARY <mylib> AS <path\filename>;
SQL> CREATE LIBRARY SQUARE_LIB AS 'D:\ORANT\EXTPROC\MYEXTPROC.DLL';
Step 7 - Register the external procedure.
======
An external procedure is not called directly. Instead, you call the PL/SQL
subprogram that registers the external procedure. This can either be a
Function or a Stored Procedure.
CREATE OR REPLACE FUNCTION <FunctionName> (<parm1>...) RETURN <value> AS
EXTERNAL LIBRARY <mylib>
NAME "<Name Of Function In DLL>"
LANGUAGE C;
CREATE OR REPLACE PROCEDURE <ProcedureName> (<parm1>...) AS
EXTERNAL LIBRARY <mylib>
NAME "<Name Of Function In DLL>"
LANGUAGE C;
CREATE OR REPLACE FUNCTION square_of (X BINARY_INTEGER)
RETURN BINARY_INTEGER AS
EXTERNAL LIBRARY SQUARE_LIB
NAME "square"
LANGUAGE C;
Step 8 - Run the external procedure.
======
Use the following code to execute the external procedure:
CREATE OR REPLACE PROCEDURE EXTPROCTEST (X BINARY_INTEGER) AS
RetValue BINARY_INTEGER;
BEGIN
RetValue := square_of(X);
DBMS_OUTPUT.PUT_LINE(RetValue);
End;
EXECUTE EXTPROCTEST(15);

Similar Messages

  • Oracle environment variable setting for mulit instances

    Dear experts,
    I am doing CRM_ABAP, CRM_JAVA,ERP installation based on Oracle in a laptop for SAP Best Practise.
    The CRM_ABAP installation have done, and start to install CRM_JAVA named CRJ.
    In CRM_ABAP installation, I set Oracle environment variable as below:(/etc/profile.d/oracle.sh)
    ・CRACLE_SID=u201DCRMu201D
    ・CRACLE_HOME=u201Doracle/CRMu201D
    ・PATH=$PATH:$ORACLE_HOME/bin:$ORACLE_HOME/bin/oPatch:$PATH:
    ・export CRACLE_SID CRACLE_HOME PATH
    My question is that how do I set environment variable for CRM_JAVA(CRJ) in oracle.sh,?
    I tried e.g. CRACLE_SID=u201DCRMu201D:u201DCRJu201D, CRACLE_HOME=u201Doracle/CRMu201D:u201Doracle/CRJ/102_64u201D
    or CRACLE_SID=u201DCRJu201D CRACLE_HOME=oracle/CRJ/102_64u201D export CRACLE_SID CRACLE_HOME
    in addition
    but got an error message in SAPinst (Task Progress: configure Oracle server network)
    said u201CAssertion failed:lsnrctl:Parameter dbHOME has to be a valid ORACLE_HOME).u201D
    kindly help me to reslove the issue.
    Thanks.
    regards.
    Li.etsuhin

    Setting a Linux environment variable like ORACLE_SID to multiple values will not work.
    Use another oracle.sh, and maybe also another Linux user.
    I am not familiar with the details, but what does your installation guide say?
    Or you may have to use the same values for Java. The installation guide will tell you.

  • Pre-configured Linux with Oracle DB and Applications

    Does anyone know if there is a pre-configured oracle-linux stack out there that would have all the components already configured. I have seen this for other products such as sugarCRM. Its really nice to have this, since it takes the complexity and installation time out of the equation, especially if you are just trying to test or demo the software. I imagine a PeopleSoft Oracle Linux Stack, as well as one for each of the Oracle Application and Software Suites. If not, i guess i will go the more fun route of downloading and installing each package individually.

    There is package, named oracle-validated. it verifies and sets system parameters based on Oracle validated configuration recommendations for Oracle Enterprise Linux Release 4.
    [root@jch-lnx etc]# rpm -qli oracle-validated-1.0.0-8.el4
    Name : oracle-validated Relocations: (not relocatable)
    Version : 1.0.0 Vendor: Oracle
    Release : 8.el4 Build Date: Wed 19 Sep 2007 05:46:22 AM CST
    Install Date: Wed 26 Sep 2007 12:03:06 PM CST Build Host: ca-build6.us.oracle.com
    Group : Test Environment/Libraries Source RPM: oracle-validated-1.0.0-8.el4.src.rpm
    Size : 39137 License: GPL
    Signature : DSA/SHA1, Wed 19 Sep 2007 05:46:24 AM CST, Key ID 2e2bcdbcb38a8516
    Summary : Verifies and sets system parameters based on Oracle validated configuration recommendations for OEL4
    Description :
    This package verifies and sets system parameters based on Oracle validated configuration recommendations for Oracle Enterprise Linux Release 4
    Files affected: /etc/sysctl.conf, /etc/security/limits.conf, /etc/modprobe.conf, /boot/grub/grub.conf
    For changes to modules, this package installation will modify module paramters and re-insert.
    /etc/sysconfig/oracle-validated/oracle-validated-verify
    /etc/sysconfig/oracle-validated/oracle-validated.params
    /usr/bin/oracle-validated-verify

  • Cannot load OCI DLL: C:\oracle\product\10.2.0\db_1\bin\oci.dll

    Hello,
    my environment is:
    MS Windows 2003 R2 SP2 Enterprise x64 Edition
    Oracle Database 10g Release 10.2.0.1.0 - 64bit Production
    and I want to use:
    TOAD for Oracle Freeware - version 8.5.0.50 g (from Quest Software)
    my "path" variable is as below:
    C:\Documents and Settings\Administrator.SERVER2003>set path
    Path=C:\oracle\product\10.2.0\db_1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
    PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
    At location "C:\oracle\product\10.2.0\db_1\bin\" I can see "oci.dll"
    BUT... when I try to connect to my database... from TOAD... I get the message below.
    Cannot load OCI DLL: C:\oracle\product\10.2.0\db_1\bin\oci.dll
    Using "netca" or "sqlplus" I can connect to the database with success.
    Help welcome!!!

    Hummm....
    this should be the cause.
    I have Oracle Database 10g Release 10.2.0.1.0 - 64bit Production. Then all the executables including DLLs are 64-bit version compiled.
    Now... I guess that the TOAD software is 32-bit application and it can not load 64-bit OCI.DLL.
    Thanks to EVERYBODY evolved!!!
    By the way:
    The TOAD for Oracle Freeware - version 8.5.0.50 g (from Quest Software) is the latest version available from Quest Software.
    Regards,

  • Cannot load OCI DLL: C:\oracle\product\11.1.0\db_1\BIN\oci.dll

    Hi..
    I tried connect to my oracle 11g using toad version 9.5.. but i got an error as below:-
    Cannot load OCI DLL: C:\oracle\product\11.1.0\db_1\BIN\oci.dll
    As your information.. this is my tnsnames.ora configuration:-
    NV2DEV =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = ASUS-PC)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = NV2DEV)
    Please help me...
    Thank you,
    Baharin

    hi,
    Guys, I installed Oracle 11g client because of the reported fix of System.Transactions issue known in 10g. I use PL/SQL developer, and it told me "Initialization error: Could not locate OCI dll", though the registry entry and ORAHOME folder it showed were Ok. It seems like PL/SQL developer was looking for OCI.dll not in the reported ORAHOME folder but in ORAHOME\bin folder. After copying all files (luckily, they are quite few) from ORAHOME root to bin PL/SQL developer began to work correctly.
    from the following link
    http://forums.oracle.com/forums/thread.jspa?threadID=620900
    it will work for you
    Thanks
    Edited by: CKPT on Sep 27, 2010 12:52 PM

  • Nagios windows and Oracle environment

    Hi Gurus,
    I'm planning to implement Nagios tool for SAP monitoring on windows and Oracle environment. Can any one help me on thisu2026u2026..??
    Regards
    Soumitra

    Dear Soumitra,
    The only requirement of running Nagios is a machine running Linux (or UNIX variant) and a C compiler. You will probably also want to have TCP/IP configured, as most service checks will be performed over the network.
    You can download that suggested plug-in. Extract it and read the Documentation available within that bundle.
    The Following links may provide more details.
    [http://nagios.sourceforge.net/docs/3_0/quickstart.html|http://nagios.sourceforge.net/docs/3_0/quickstart.html]
    [http://wiki.nagios.org/index.php/Main_Page|http://wiki.nagios.org/index.php/Main_Page]
    Also check this"Nagios Toolbox for Windows hosts"
    [Nagios Toolbox for Windows hosts|http://sourceforge.net/projects/ngtbx/] . Nagios Toolbox for Windows host is still in development.
    Regards,
    Bhavik G. Shroff

  • Problem while configuring webutil on oracle application server 10g(9.0.4)

    hi,
    I have configured webutil with oracle application server 10g(9.0.4).JInitiator 1.3.1.17 is installed.
    I did everything according to webutil manual.Then i developed a form using developer suit 10g (9.0.4).
    and successfully compiled and attached webutil library.then i subclass
    webutil object group from webutil.olb into my form,that is also
    subclassed successfully.Form has also been compiled and saved
    successfully.
    also configured my formsweb.cfg,forms90.conf,default.env according to webutil documentation.
    {color:#993366}Now when i run this form from client, it does not show form in the
    browser and shows a message on the client browser console as follows{color}.
    {color:#0000ff}*Applet oracle.forms.webutil.common.RegisterWebUtil*
    {color} {color:#993366}After this message,It does nothing and if i refresh browser,it shows following message in the browser' Console.{color}
    {color:#0000ff}*Applet oracle.forms.engine.Main notinited.*{color}
    Note:In the browser ,loading java applet is also visible.
    how should i resolve this problem?
    any suggestion?
    Its urgent.
    Regards,
    abbasyazdani

    Refer this metalink note,
    566628.1 How To Install Webutil on 10g Oracle AS
    [email protected]

  • Importing Vb Dll in Oracle Forms 6i

    If any one have idea importing vb dll in oracle forms 6i. If any one have idea to Use ORA_FFI package or any other way.

    The Forms Builder Help is the best source of information. It has plenty of examples too, like this one I copied from the Help:
    /* Find foreign library handle for
       a given library name */
    BEGIN
       libhandle := ora_ffi.find_library
                ('mylib.dll');
    END;

  • How to Configure Active-Passive oracle cluster in Windows 2008 R2 64bit Server.

    How to Configure Active-Passive oracle cluster in Windows 2008 R2 64bit Server With Oracle 11g R2.
    How many database will play in this role.
    Best,

    hello
    I was going through your post and i am also doing the same thing here at our organisation for Oracle 10g R2
    Can you pls send me any docs u r having for configuration of Oracle in windows clusters .
    And, can you pls elaborate on this point
    e)Create Oracle Service with the same name in the 2nd node and copy all the files like spfile,tnsnames.ora,listener.ora,password file to Node2.
    Pls send me the details at [email protected] or you can contact me at 08054641476.
    Thanks in advance.

  • OEM configuration issue in Oracle 10g

    Hi,
    I am trying to manually configure OEM on oracle 10g solaris platform (5.10). Earlier I have configured the OEM manually on the same server and then due to customer request de-configure it. But now again, I need to re-configure OEM on same server and facing issue.
    Steps which I am following are :-
    -> Listener is started
    -> Database is up and running.
    -> Creating repository through command emca -repos create
    -> Configuring the dbconsole through command emca -config dbcontrol db
    At this step after providing the information of database name, listener port, Password for SYS user,Password for DBSNMP user,Password for SYSMAN user,Email address for notifications (optional): [email protected],Outgoing Mail (SMTP) server for notifications (optional): wbmlir1.mail.xerox.com, it is giving the below error that db console cannot be started.
    Do you wish to continue? [yes(Y)/no(N)]: Y
    Aug 22, 2011 10:18:38 AM oracle.sysman.emcp.EMConfig perform
    INFO: This operation is being logged at /rdwq/apps/oracle/product/10.2.0.4.2011Q1/cfgtoollogs/emca/rdwq/emca_2011-08-22_10-17-04-AM.log.
    Aug 22, 2011 10:18:43 AM oracle.sysman.emcp.ParamsManager getLocalListener
    WARNING: Error retrieving listener for usa7061ux300
    Aug 22, 2011 10:18:44 AM oracle.sysman.emcp.util.DBControlUtil secureDBConsoleINFO: Securing Database Control (this may take a while) ...
    Aug 22, 2011 10:19:01 AM oracle.sysman.emcp.util.DBControlUtil secureDBConsoleINFO: Database Control secured successfully.
    Aug 22, 2011 10:19:01 AM oracle.sysman.emcp.util.DBControlUtil startOMSINFO: Starting Database Control (this may take a while) ...
    Aug 22, 2011 10:24:21 AM oracle.sysman.emcp.util.PlatformInterface executeCommand
    WARNING: Error executing /rdwq/apps/oracle/product/10.2.0.4.2011Q1/bin/emctl start dbconsole
    Aug 22, 2011 10:24:21 AM oracle.sysman.emcp.EMConfig perform
    SEVERE: Error starting Database ControlRefer to the log file at /rdwq/apps/oracle/product/10.2.0.4.2011Q1/cfgtoollogs/emca/rdwq/emca_2011-08-22_10-17-04-AM.log for more details.
    Could not complete the configuration. Refer to the log file at /rdwq/apps/oracle/product/10.2.0.4.2011Q1/cfgtoollogs/emca/rdwq/emca_2011-08-22_10-17-04-AM.log for more details.
    Below is the content of logfile :-
    Aug 22, 2011 10:19:01 AM oracle.sysman.emcp.util.DBControlUtil secureDBConsole
    INFO: Database Control secured successfully.
    Aug 22, 2011 10:19:01 AM oracle.sysman.emcp.EMDBPostConfig performConfiguration
    CONFIG: Securing Database Control completed successfully .
    Aug 22, 2011 10:19:01 AM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter ORACLE_HOSTNAME.
    Aug 22, 2011 10:19:01 AM oracle.sysman.emcp.util.DBControlUtil startOMS
    INFO: Starting Database Control (this may take a while) ...
    Aug 22, 2011 10:19:01 AM oracle.sysman.emcp.util.PlatformInterface addEnvVarToList
    CONFIG: Value for env var 'DISPLAY' is '', discarding the same
    Aug 22, 2011 10:19:01 AM oracle.sysman.emcp.util.PlatformInterface addEnvVarToList
    CONFIG: Value for env var 'ORACLE_HOSTNAME' is '', discarding the same
    Aug 22, 2011 10:19:01 AM oracle.sysman.emcp.util.PlatformInterface getEnvProps
    CONFIG: Returning env array from cache
    Aug 22, 2011 10:19:01 AM oracle.sysman.emcp.util.PlatformInterface getSortedEnvArray
    CONFIG: New Env List: [BKUPDIR=/data, CLASSPATH=/rdwq/apps/oracle/product/10.2.0.4.2011Q1/jlib/emca.jar:/rdwq/apps/oracle/product/10.2.0.4.2011Q1/jlib/srvm.jar:/rdwq/apps/oracle/product/10.2.0.4.2011Q1/jlib/srvmasm.jar:/rdwq/apps/oracle/product/10.2.0.4.2011Q1/jlib/emConfigInstall.jar:/rdwq/apps/oracle/product/10.2.0.4.2011Q1/jlib/ldapjclnt10.jar:/rdwq/apps/oracle/product/10.2.0.4.2011Q1/jlib/ldap.jar:/rdwq/apps/oracle/product/10.2.0.4.2011Q1/jlib/share.jar:/rdwq/apps/oracle/product/10.2.0.4.2011Q1/jlib/srvmhas.jar:/rdwq/apps/oracle/product/10.2.0.4.2011Q1/jlib/netcfg.jar:/rdwq/apps/oracle/product/10.2.0.4.2011Q1/lib/xmlparserv2.jar:/rdwq/apps/oracle/product/10.2.0.4.2011Q1/assistants/jlib/assistantsCommon.jar:/rdwq/apps/oracle/product/10.2.0.4.2011Q1/sysman/jlib/emCORE.jar:/rdwq/apps/oracle/product/10.2.0.4.2011Q1/oui/jlib/OraInstaller.jar:/rdwq/apps/oracle/product/10.2.0.4.2011Q1/oui/jlib/OraPrereq.jar:/rdwq/apps/oracle/product/10.2.0.4.2011Q1/inventory/prereqs/oui/OraPrereqChecks.jar:/rdwq/apps/oracle/product/10.2.0.4.2011Q1/oui/jlib/OraPrereqChecks.jar:, DYLD_LIBRARY_PATH=/rdwq/apps/oracle/product/10.2.0.4.2011Q1/lib32:/rdwq/apps/oracle/product/10.2.0.4.2011Q1/lib:/rdwq/apps/oracle/product/10.2.0.4.2011Q1/perl/lib, EDITOR=vi, HOME=/rdwq/ap01/rdwsdba, HZ=, LC_COLLATE=en_US.ISO8859-1, LC_CTYPE=en_US.ISO8859-1, LC_MESSAGES=C, LC_MONETARY=en_US.ISO8859-1, LC_NUMERIC=en_US.ISO8859-1, LC_TIME=en_US.ISO8859-1, LD_LIBRARY_PATH=/rdwq/apps/oracle/product/10.2.0.4.2011Q1/jdk/jre/lib/sparc/client:/rdwq/apps/oracle/product/10.2.0.4.2011Q1/jdk/jre/lib/sparc:/rdwq/apps/oracle/product/10.2.0.4.2011Q1/jdk/jre/../lib/sparc:/rdwq/apps/oracle/product/10.2.0.4.2011Q1/lib32:/rdwq/apps/oracle/product/10.2.0.4.2011Q1/lib:/rdwq/apps/oracle/product/10.2.0.4.2011Q1/perl/lib:/rdwq/apps/oracle/product/10.2.0.4.2011Q1/lib:/usr/SUNWspro/lib:/usr/openwin/lib:/usr/dt/lib, LIBPATH=/rdwq/apps/oracle/product/10.2.0.4.2011Q1/lib32:/rdwq/apps/oracle/product/10.2.0.4.2011Q1/lib:/rdwq/apps/oracle/product/10.2.0.4.2011Q1/perl/lib, LOGNAME=rdwsdba, MAIL=/usr/mail/rdwsdba, MANPATH=/local/man:/usr/share/man, NEED_EXIT_CODE=1, NLSPATH=/usr/dt/lib/nls/msg/%L/%N.cat, OLDPWD=/rdwq/ap01/rdwsdba, ORACLE_BASE=/rdwq/apps/oracle, ORACLE_DOC=/rdwq/apps/oracle/doc, ORACLE_HOME=/rdwq/apps/oracle/product/10.2.0.4.2011Q1, ORACLE_PATH=/rdwq/apps/oracle/product/10.2.0.4.2011Q1/bin, ORACLE_SID=rdwq, ORACLE_TERM=xsun5, ORAENV_ASK=NO, ORATAB=, ORA_NLS=/rdwq/apps/oracle/product/10.2.0.4.2011Q1/ocommon/nls/admin/data, PATH=/rdwq/apps/oracle/product/10.2.0.4.2011Q1/bin:/opt/local/scripts:/opt/local/bin:/opt/local/xns:/opt/X11:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/etc:/usr/ccs/bin:/usr/ucb:/usr/openwin:/usr/openwin/bin:/usr/bin/X11:/usr/openwin/bin/X11:/usr/openwin/lib:/usr/lib:/usr/sbin:/usr/local/bin:/app/oracle/local/dba/utilities:/opt/bin:/opt/EDSsrm/bin:/usr/bin, PWD=//rdwq/apps/oracle/product/10.2.0.4.2011Q1/network/admin, SHELL=/bin/bash, SHLIB_PATH=/rdwq/apps/oracle/product/10.2.0.4.2011Q1/lib32:/rdwq/apps/oracle/product/10.2.0.4.2011Q1/lib:/rdwq/apps/oracle/product/10.2.0.4.2011Q1/perl/lib, SHLVL=1, TERM=vt100, TNS_ADMIN=, TZ=US/Pacific, XFILESEARCHPATH=/usr/dt/app-defaults/%L/Dt, _=/rdwq/apps/oracle/product/10.2.0.4.2011Q1/bin/emca]
    Aug 22, 2011 10:19:01 AM oracle.sysman.emcp.util.PlatformInterface executeCommand
    CONFIG: Starting execution: /rdwq/apps/oracle/product/10.2.0.4.2011Q1/bin/emctl start dbconsole
    Aug 22, 2011 10:24:21 AM oracle.sysman.emcp.util.PlatformInterface executeCommand
    CONFIG: Exit value of 1
    Aug 22, 2011 10:24:21 AM oracle.sysman.emcp.util.PlatformInterface executeCommand
    CONFIG: Oracle Enterprise Manager 10g Database Control Release 10.2.0.4.0
    Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
    https://usa7061ux300:1158/em/console/aboutApplication
    Starting Oracle Enterprise Manager 10g Database Control ............................................................................................. failed.
    Logs are generated in directory /rdwq/apps/oracle/product/10.2.0.4.2011Q1/usa7061ux300_rdwq/sysman/log
    Aug 22, 2011 10:24:21 AM oracle.sysman.emcp.util.PlatformInterface executeCommand
    WARNING: Error executing /rdwq/apps/oracle/product/10.2.0.4.2011Q1/bin/emctl start dbconsole
    Aug 22, 2011 10:24:21 AM oracle.sysman.emcp.EMConfig perform
    SEVERE: Error starting Database Control
    Refer to the log file at /rdwq/apps/oracle/product/10.2.0.4.2011Q1/cfgtoollogs/emca/rdwq/emca_2011-08-22_10-17-04-AM.log for more details.
    Aug 22, 2011 10:24:21 AM oracle.sysman.emcp.EMConfig perform
    CONFIG: Stack Trace:
    oracle.sysman.emcp.exception.EMConfigException: Error starting Database Control
    at oracle.sysman.emcp.EMDBPostConfig.performConfiguration(EMDBPostConfig.java:646)
    at oracle.sysman.emcp.EMDBPostConfig.invoke(EMDBPostConfig.java:224)
    at oracle.sysman.emcp.EMDBPostConfig.invoke(EMDBPostConfig.java:193)
    at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:184)
    at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:486)
    at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1142)
    at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:470)
    at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:419)
    Please guide me to resolve this issue.
    Thanks

    Hi,
    Content of emagent.trc :-
    2011-08-22 11:37:07 Thread-1 ERROR http: snmehl_allocateListenerPort: failed to bind socket: Address already in use (errno=125)
    2011-08-22 11:37:07 Thread-1 ERROR http: nmehl_startHttpListener: failed to listen to HTTP port for http://usa7061ux300:3938/emd/main
    2011-08-22 11:37:07 Thread-1 ERROR main: nmehl_startHttpListener failed starting http listener
    Content of emagent.trc :-
    2011-08-22 11:37:07 Thread-1 ERROR http: snmehl_allocateListenerPort: failed to bind socket: Address already in use (errno=125)
    2011-08-22 11:37:07 Thread-1 ERROR http: nmehl_startHttpListener: failed to listen to HTTP port for http://usa7061ux300:3938/emd/main
    2011-08-22 11:37:07 Thread-1 ERROR main: nmehl_startHttpListener failed starting http listener
    rdwsdba$ tail -100 emdctl.trc
    2011-08-23 07:01:19 Thread-1 WARN http: nmehl_readAgentKey: File access failure
    2011-08-23 07:01:19 Thread-1 ERROR ssl: Open wallet failed, ret = 28759
    2011-08-23 07:01:19 Thread-1 ERROR ssl: nmehlenv_openWallet failed
    2011-08-23 07:01:19 Thread-1 ERROR http: 256: Unable to initialize ssl connection with server, aborting connection attempt
    2011-08-23 07:02:49 Thread-1 WARN http: nmehl_readAgentKey: File access failure
    2011-08-23 07:02:49 Thread-1 ERROR ssl: Open wallet failed, ret = 28759
    2011-08-23 07:02:49 Thread-1 ERROR ssl: nmehlenv_openWallet failed
    2011-08-23 07:02:49 Thread-1 ERROR http: 256: Unable to initialize ssl connection with server, aborting connection attempt
    2011-08-23 07:04:19 Thread-1 WARN http: nmehl_readAgentKey: File access failure
    2011-08-23 07:04:19 Thread-1 ERROR ssl: Open wallet failed, ret = 28759
    2011-08-23 07:04:19 Thread-1 ERROR ssl: nmehlenv_openWallet failed
    2011-08-23 07:04:19 Thread-1 ERROR http: 256: Unable to initialize ssl connection with server, aborting connection attempt
    2011-08-23 07:05:49 Thread-1 WARN http: nmehl_readAgentKey: File access failure
    2011-08-23 07:05:49 Thread-1 ERROR ssl: Open wallet failed, ret = 28759
    2011-08-23 07:05:49 Thread-1 ERROR ssl: nmehlenv_openWallet failed
    2011-08-23 07:05:49 Thread-1 ERROR http: 256: Unable to initialize ssl connection with server, aborting connection attempt
    2011-08-23 07:07:19 Thread-1 WARN http: nmehl_readAgentKey: File access failure
    2011-08-23 07:07:19 Thread-1 ERROR ssl: Open wallet failed, ret = 28759
    2011-08-23 07:07:19 Thread-1 ERROR ssl: nmehlenv_openWallet failed
    2011-08-23 07:07:19 Thread-1 ERROR http: 256: Unable to initialize ssl connection with server, aborting connection attempt
    2011-08-23 07:08:50 Thread-1 WARN http: nmehl_readAgentKey: File access failure
    2011-08-23 07:08:50 Thread-1 ERROR ssl: Open wallet failed, ret = 28759
    2011-08-23 07:08:50 Thread-1 ERROR ssl: nmehlenv_openWallet failed
    2011-08-23 07:08:50 Thread-1 ERROR http: 256: Unable to initialize ssl connection with server, aborting connection attempt
    2011-08-23 07:10:20 Thread-1 WARN http: nmehl_readAgentKey: File access failure
    2011-08-23 07:10:20 Thread-1 ERROR ssl: Open wallet failed, ret = 28759
    2011-08-23 07:10:20 Thread-1 ERROR ssl: nmehlenv_openWallet failed
    2011-08-23 07:10:20 Thread-1 ERROR http: 256: Unable to initialize ssl connection with server, aborting connection attempt
    2011-08-23 07:11:50 Thread-1 WARN http: nmehl_readAgentKey: File access failure
    2011-08-23 07:11:50 Thread-1 ERROR ssl: Open wallet failed, ret = 28759
    2011-08-23 07:11:50 Thread-1 ERROR ssl: nmehlenv_openWallet failed
    2011-08-23 07:11:50 Thread-1 ERROR http: 256: Unable to initialize ssl connection with server, aborting connection attempt
    2011-08-23 07:13:20 Thread-1 WARN http: nmehl_readAgentKey: File access failure
    2011-08-23 07:13:20 Thread-1 ERROR ssl: Open wallet failed, ret = 28759
    2011-08-23 07:13:20 Thread-1 ERROR ssl: nmehlenv_openWallet failed
    2011-08-23 07:13:20 Thread-1 ERROR http: 256: Unable to initialize ssl connection with server, aborting connection attempt
    2011-08-23 07:14:50 Thread-1 WARN http: nmehl_readAgentKey: File access failure
    2011-08-23 07:14:50 Thread-1 ERROR ssl: Open wallet failed, ret = 28759
    2011-08-23 07:14:50 Thread-1 ERROR ssl: nmehlenv_openWallet failed
    2011-08-23 07:14:50 Thread-1 ERROR http: 256: Unable to initialize ssl connection with server, aborting connection attempt
    2011-08-23 07:16:20 Thread-1 WARN http: nmehl_readAgentKey: File access failure
    2011-08-23 07:16:20 Thread-1 ERROR ssl: Open wallet failed, ret = 28759
    2011-08-23 07:16:20 Thread-1 ERROR ssl: nmehlenv_openWallet failed
    2011-08-23 07:16:20 Thread-1 ERROR http: 256: Unable to initialize ssl connection with server, aborting connection attempt
    2011-08-23 07:17:51 Thread-1 WARN http: nmehl_readAgentKey: File access failure
    2011-08-23 07:17:51 Thread-1 ERROR ssl: Open wallet failed, ret = 28759
    2011-08-23 07:17:51 Thread-1 ERROR ssl: nmehlenv_openWallet failed
    2011-08-23 07:17:51 Thread-1 ERROR http: 256: Unable to initialize ssl connection with server, aborting connection attempt
    2011-08-23 07:19:21 Thread-1 WARN http: nmehl_readAgentKey: File access failure
    2011-08-23 07:19:21 Thread-1 ERROR ssl: Open wallet failed, ret = 28759
    2011-08-23 07:19:21 Thread-1 ERROR ssl: nmehlenv_openWallet failed
    2011-08-23 07:19:21 Thread-1 ERROR http: 256: Unable to initialize ssl connection with server, aborting connection attempt
    2011-08-23 07:20:51 Thread-1 WARN http: nmehl_readAgentKey: File access failure
    2011-08-23 07:20:51 Thread-1 ERROR ssl: Open wallet failed, ret = 28759
    2011-08-23 07:20:51 Thread-1 ERROR ssl: nmehlenv_openWallet failed
    2011-08-23 07:20:51 Thread-1 ERROR http: 256: Unable to initialize ssl connection with server, aborting connection attempt
    2011-08-23 07:22:21 Thread-1 WARN http: nmehl_readAgentKey: File access failure
    2011-08-23 07:22:21 Thread-1 ERROR ssl: Open wallet failed, ret = 28759
    2011-08-23 07:22:21 Thread-1 ERROR ssl: nmehlenv_openWallet failed
    2011-08-23 07:22:21 Thread-1 ERROR http: 256: Unable to initialize ssl connection with server, aborting connection attempt
    2011-08-23 07:23:51 Thread-1 WARN http: nmehl_readAgentKey: File access failure
    2011-08-23 07:23:51 Thread-1 ERROR ssl: Open wallet failed, ret = 28759
    2011-08-23 07:23:51 Thread-1 ERROR ssl: nmehlenv_openWallet failed
    2011-08-23 07:23:51 Thread-1 ERROR http: 256: Unable to initialize ssl connection with server, aborting connection attempt
    2011-08-23 07:25:21 Thread-1 WARN http: nmehl_readAgentKey: File access failure
    2011-08-23 07:25:21 Thread-1 ERROR ssl: Open wallet failed, ret = 28759
    2011-08-23 07:25:21 Thread-1 ERROR ssl: nmehlenv_openWallet failed
    2011-08-23 07:25:21 Thread-1 ERROR http: 256: Unable to initialize ssl connection with server, aborting connection attempt
    2011-08-23 07:26:52 Thread-1 WARN http: nmehl_readAgentKey: File access failure
    2011-08-23 07:26:52 Thread-1 ERROR ssl: Open wallet failed, ret = 28759
    2011-08-23 07:26:52 Thread-1 ERROR ssl: nmehlenv_openWallet failed
    2011-08-23 07:26:52 Thread-1 ERROR http: 256: Unable to initialize ssl connection with server, aborting connection attempt
    2011-08-23 07:28:22 Thread-1 WARN http: nmehl_readAgentKey: File access failure
    2011-08-23 07:28:22 Thread-1 ERROR ssl: Open wallet failed, ret = 28759
    2011-08-23 07:28:22 Thread-1 ERROR ssl: nmehlenv_openWallet failed
    2011-08-23 07:28:22 Thread-1 ERROR http: 256: Unable to initialize ssl connection with server, aborting connection attempt
    2011-08-23 07:29:52 Thread-1 WARN http: nmehl_readAgentKey: File access failure
    2011-08-23 07:29:52 Thread-1 ERROR ssl: Open wallet failed, ret = 28759
    2011-08-23 07:29:52 Thread-1 ERROR ssl: nmehlenv_openWallet failed
    2011-08-23 07:29:52 Thread-1 ERROR http: 256: Unable to initialize ssl connection with server, aborting connection attempt
    2011-08-23 07:31:22 Thread-1 WARN http: nmehl_readAgentKey: File access failure
    2011-08-23 07:31:22 Thread-1 ERROR ssl: Open wallet failed, ret = 28759
    2011-08-23 07:31:22 Thread-1 ERROR ssl: nmehlenv_openWallet failed
    2011-08-23 07:31:22 Thread-1 ERROR http: 256: Unable to initialize ssl connection with server, aborting connection attempt
    2011-08-23 07:32:52 Thread-1 WARN http: nmehl_readAgentKey: File access failure
    2011-08-23 07:32:52 Thread-1 ERROR ssl: Open wallet failed, ret = 28759
    2011-08-23 07:32:52 Thread-1 ERROR ssl: nmehlenv_openWallet failed
    2011-08-23 07:32:52 Thread-1 ERROR http: 256: Unable to initialize ssl connection with server, aborting connection attempt
    2011-08-23 07:34:22 Thread-1 WARN http: nmehl_readAgentKey: File access failure
    2011-08-23 07:34:22 Thread-1 ERROR ssl: Open wallet failed, ret = 28759
    2011-08-23 07:34:22 Thread-1 ERROR ssl: nmehlenv_openWallet failed
    2011-08-23 07:34:22 Thread-1 ERROR http: 256: Unable to initialize ssl connection with server, aborting connection attempt
    2011-08-23 07:35:52 Thread-1 WARN http: nmehl_readAgentKey: File access failure
    2011-08-23 07:35:52 Thread-1 ERROR ssl: Open wallet failed, ret = 28759
    2011-08-23 07:35:52 Thread-1 ERROR ssl: nmehlenv_openWallet failed
    2011-08-23 07:35:52 Thread-1 ERROR http: 256: Unable to initialize ssl connection with server, aborting connection attempt
    2011-08-23 07:37:23 Thread-1 WARN http: nmehl_readAgentKey: File access failure
    2011-08-23 07:37:23 Thread-1 ERROR ssl: Open wallet failed, ret = 28759
    2011-08-23 07:37:23 Thread-1 ERROR ssl: nmehlenv_openWallet failed
    2011-08-23 07:37:23 Thread-1 ERROR http: 256: Unable to initialize ssl connection with server, aborting connection attempt
    There is no secure.log file.
    Thanks

  • 12c agent install fails with error - The plug-in configuration for the oracle.sysman.oh monitoring plug-in may have failed

    Hi,
    I am trying to install 12c agent on windows 7 64 bit server by following m.note   .
    It is failing with Agent Configuration failed, please see below error message.
    INFO: length of temp is2
    INFO: Return value:C:\/Oracle/12.1.0.3.0_AgentCore_233/core
    INFO: ** Agent Port Check completed successfully.**
    INFO: ERROR: The Management Agent configuration failed. The plug-in configuration for the oracle.sysman.oh monitoring plug-in may have failed, or this plug-in may not be present in the Management Agent software. Ensure that the Management Agent software has the oracle.sysman.oh monitoring plug-in, if not then retry the operation. If the agent software has the oracle.sysman.oh monitoring plug-in, view the plug-in deployment log C:\Oracle\12.1.0.3.0_AgentCore_233\core\install\logs to check if the plug-in configuration for the oracle.sysman.oh monitoring plug-in failed.
    INFO:
    INFO: perform - mode finished for action: configure
    INFO:
    INFO: You can see the log file: C:\Oracle\12.1.0.3.0_AgentCore_233\core\12.1.0.3.0\cfgtoollogs\oui\configActions2014-10-03_08-48-15-AM.log
    INFO:
    INFO: C:\Oracle\12.1.0.3.0_AgentCore_233>exit /b 3
    INFO: Plugin homes:
    INFO: Plugin homes:
    INFO: C:\Oracle\12.1.0.3.0_AgentCore_233\core\12.1.0.3.0\oui\bin\runConfig.bat ORACLE_HOME=C:\Oracle\12.1.0.3.0_AgentCore_233\core\12.1.0.3.0 RESPONSE_FILE=C:\Oracle\12.1.0.3.0_AgentCore_233\core\12.1.0.3.0\agent.rsp ACTION=configure MODE=perform COMPONENT_XML={oracle.sysman.top.agent.11_1_0_1_0.xml} RERUN=true completed with status=3
    SEVERE: ERROR: Agent Configuration Failed
    Thanks,

    Looks like , J2EE is having a problem connecting to the DB.Pls. chk. the following
    -If you have configured the loop-back adapter , if installing on a local system & updated the /etc/host file with your ip address and host name.
    or if the system is part of some n/w group and has ip address assigned ?
    -Jdk 1.4 version is installed in your system
    -Enough free Disk space available in the system
    -How much RAM your system has which windows version you are using  ?
    -Is the DB is coming up properly ? its error related to this. check the logs.
    -If the ports used by sap install / run used by other services running on the system ? & user have admin. privileges on the system .
    Pls. update with your findings on above same , for the step next ...
    Thanks ,
    Uppal

  • Configuring SSL in Oracle Apps 11.5.10.2

    Hi,
    I am in the process of configuring SSL in oracle apps 11.5.10.2.
    I am a bit confused with the Note ID: 123718.1. Could you please clarify me on the below things?
    1. SSL can be implemented at three levels,
    (a) Oracle Web/Apache Server Level
    (b) Oracle Form Server Level
    (c) Oracle Database Level
    Can Implement SSL on any one or any two component levels? As per Note:123718.1, we MUST configure SSL for both the Oracle HTTP Server and Oracle Forms Level and these cannot be configured independently.
    2. As per the Note ID: 123718.1, Option 2.1. Certificate Provisioning for Oracle HTTP Server
    Point b in point 2 says to execute "$OPENSSL_TOP/bin/openssl sha1 or* > $HOME/.rnd"
    But which will be the OPENSSL_TOP?
    Please advise on these above two queries.
    Thanks in advance
    Regards,
    Sravan

    Thanks Hussien,
    I have completed SSL configuration at all level including database. Forms are not getting launched. I am getting below error in the Java Console.
    Java Plug-in 1.6.0_23
    Using JRE version 1.6.0_23-b05 Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\sdalav
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    q: hide console
    r: reload policy configuration
    s: dump system and deployment properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to <n>
    proxyHost=null
    proxyPort=0
    connectMode=HTTPS
    Exception in thread "thread applet-oracle.forms.engine.Main-2" java.lang.NoClassDefFoundError: oracle/security/ssl/OracleSSLSocketFactory
         at oracle.forms.net.HTTPSStream.<init>(Unknown Source)
         at oracle.forms.net.HTTPConnection.connect(Unknown Source)
         at oracle.forms.engine.Runform.initConnection(Unknown Source)
         at oracle.forms.engine.Runform.startRunform(Unknown Source)
         at oracle.forms.engine.Main.createRunform(Unknown Source)
         at oracle.forms.engine.Main.start(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.ClassNotFoundException: oracle.security.ssl.OracleSSLSocketFactory
         at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         ... 8 more
    Caused by: java.io.IOException: open HTTP connection failed:https://sandispa.bp.com:8443/OA_JAVA/oracle/security/ssl/OracleSSLSocketFactory.class
         at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 13 more
    Thanks,
    Sravan

  • How to configure webutil in oracle application server 10g (9.0.4)?

    hi,
    i want to configure webutil for oracle application server 10g(9.0.4).
    how should i start?
    i have read the webutil mannual.it is bit tricky.
    i want step by step configuration.
    Any sort of help is appriciateable.
    Regards,
    abbasyazdani

    hi,
    In webutil directory structure,there r four folders,
    {color:#0000ff}doc
    java
    server
    webutil{color}
    and there are three files.
    {color:#0000ff}webutil.pll,webutil.old and create_webutil_db
    {color}
    In webutil mannual,it is written that we should extract this folder to forms90.
    But in forms90, there are {color:#0000ff}server and java folders.
    {color:#000000}should i replace forms90's sever and java folder with webutil's server and java folder?
    what should i do for this ?
    regards
    abbasyazdani
    {color}{color}

  • Configuring Problem in Oracle Application Express  3.0  Print Server

    hi all,
    Configuring for my Oracle Application Express Print Server in apex 3.0 I have used apache foa and made all steps in the documentation
    http://www.oracle.com/technology/products/database/application_express/html/configure_printing.html
    the print attribute works but I have a problem in the pdf print with characters.
    My reports columns characters are turkish and when I linked to print pdf the print the turkish characters are seeming #
    and I try to change in the script apex_fop_render.jsp I changed the encode but the problem was not solved.Can you help please urgently!
    I am waiting your helps!

    Apache FOP does not support some character sets out of the box, i.e. Asian languages require additional configuration steps. Not sure about those non-standard ISO characters in the Turkish alphabet though. But since you’re writing that those are returned as #, looks like the same problem. There should be information available on the Internet on how to configure those fonts and character sets with Apache FOP. Once BI Publisher is out, using that as the rendering engine with APEX might be another alternative to consider, as that product will support this out of the box.
    Regards,
    Marc

  • Is apps password visible in any configuration files in Oracle Apps R12.0.6?

    Hi
    Is apps password visible in any configuration files in Oracle Apps R12.0.6? Is it hard-coded or soft-coded?
    Regards
    Ateeq

    Hi,
    See this thread.
    Apps password in R12
    Apps password in R12
    Regards,
    Hussein

Maybe you are looking for

  • Can't start kwakd service in systemd

    Does anyone have kwakd running on systemd? I tried everything I could think of, but the result is always the same: $ 0.restart kwakd Job for kwakd.service failed. See 'systemctl status kwakd.service' and 'journalctl -n' for details. $ systemctl statu

  • Know about ant-sca-deploy.xml

    Hi All, Can you please explain me the ant-sca-deploy.xml works, whcih parameters has to be passed ? for deployment

  • Web service Impersonate in SharePoint InfoPath forms

    Hi All, We are using SharePoint 2010 InfoPath forms in one of the sites. We have IIS hosted Web service which is using TIBCO service to fetch the users info in InfoPath forms. Now my client wants to migrate to SAP, due to cost involved they want to u

  • Static members

    Hi, I found a piece of code here on the forum from a while back. I understand how the code itself works, but I'm wondering if somecan explain something to me. This is the code: // TempDir.java import java.io.File; import java.io.IOException; import j

  • How to open the demo projects

    Hi, when I click on Help > Exploring Logic Pro Demo Project nothing happens. How to open the demo project?