Connecting SPSS to my oracle database

Hello I am trying to connect my SPSS to our database.
My system includes:
SPSS 14
Oracle 8.17
Windows XP
and now Oracle 10g
(I am not very computer literate, so if you need more info let me know)
I initially did not have Oracle 10g on my computer, but it was suggested I try it out.
I still get an error, but now its a different error.
Before installing 10g, I was using the SPSS OEM 5.0 Oracle driver to try to connect and was getting the following error:
SQL driverconnect failed: Specified driver could not be loaded due to system error 127. (SPSS OEM 5.0 Oracle)
Now after I installed 10g, I tried both the SPSS OEM 5.0 Oracle driver and the
Oracle in OraClient10g_home1 driver and I get the following error:
TNS:could not resolve the connect identifier specified.
Any help would be greatly appreciated.

You have two different tnsnames.ora files.
Which one you use depends on the database you connect to.
The two files are not in sync which is why you are getting this error.
You need to sync them and/or set TNS_ADMIN to the directory of one of those files.
TNS_ADMIN is a string value in the registry in hkey\local_machine\software\oracle
Sybrand Bakker
Senior Oracle DBA

Similar Messages

  • Connecting form 6i  to oracle database 10G express edition

    I am unable to connect forms 6i to oracle database 10G express edition.
    form builder closes without any message.

    Hi, i was try that solution, but have some problem.
    1) I have stopped other database (Oracle 8i, OracleService + Listener), none Oracle service was running.
    2) I was install Oracle XE Univ.
    3) Run sqlplus from XE
    "D:\oraclexe\app\oracle\product\10.2.0\server\BIN>sqlplus system/PASSWORD@xe as sysdba"
    4) Shutdown immediate - OK
    5) Startup mount - failed
    SQL> startup mount
    ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    6) I was check registry "hkey_local_machine\software\oracle" and delete key "local" (walue was set to connection to 8i database).
    7) I was checking status of Listener from XE (after shutdown).
    "Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC_FOR_XEipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=jacek)(PORT=1521)))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
    Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully"
    Have anyone suggestion how to connect "directly" to XE (without @CONNECTION string) ?
    If source of problem can be having DB 8i installed on same machine ?
    BBye.

  • Connecting to a non-oracle database (jdbc) from a java stored procedure

    Does anyone know to configure the database to allow a connection to a non-oracle database from a Java Stored procedured, using JDBC?
    Thank you in advance,
    Chris

    Hi Chris,
    I haven't tried it, and these are just some of my thoughts, but I
    think you would need to load the JDBC driver for the other database
    into the Oracle database (using the "loadjava" tool, of-course).
    Then your java stored procedure should be able to instantiate the
    third party JDBC driver and obtain a connection to the other database.
    Hope this helps.
    Good Luck,
    Avi.

  • Using Oracle ODBC Gateway connecting to a remote Oracle database

    Oracle 11gR2
    RHEL 6.4
    Has anyone use the Oracle ODBC Gateway to connect to another Oracle database?  Any issues with that configuration?  Where do I get the ODBC drivers for Linux?
    (I know, "why not use a dblink?" -- well that would be against company security policies)

    Hi,
       From the Oracle point of view we support using DG4ODBC for Oracle to Oracle connections. However, we have not actually tested it as DG4ODBC is primarily designed for access to non-Oracle databases.
    How DG4ODBC will work between Oracle databases depends on the ODBC driver and what that supports. You will need an ODBC Oracle driver which you can get from various suppliers including Oracle but also vendors such as DataDirect, Easysoft etc. You could try a Google search.
    You say you do not want to use database links but that is how DG4ODBC is used, You cannot do -
    sqlplus user/password@dg4odbc_oracle
    Once Dg4ODBC is setup and configured as in this note - if you are using Linux 64-bit -
    How to Configure DG4ODBC on 64bit Unix OS (Linux, Solaris, AIX, HP-UX Itanium) to Connect to Non-Oracle Databases Post Install (Doc ID 561033.1)
    then in the Oracle database you create a database link and select from tables in the other Oracle database -
    select * from table@dg4odbc_db_link ;
    Regards,
    Mike

  • How to connect more than one oracle databases in single form?

    Hi,
    I have installed Oracle database in three different servers with different users, but the table's structure are same in all three different database users.
    Now in one D2K form i want to connect and access, all three different database users at a time.
    If anybody know answer for this please replay.
    My mail Id: [email protected]
    Regards
    Mahaveer

    You can access other databases/schemas by means of the built-in-package EXEC_SQL. See online help in Forms Builder, especially EXEC_SQL.Open_Connection, EXEC_SQL.Open_Cursor, EXEC_SQL.Fetch_Rows, ...
    If you want to base your blocks on several database connections at the same time, you should write your own on-select, on-fetch, on-lock, ... triggers, I suppose.
    Marc

  • Problem in connecting SQL developer to Oracle database

    Hi,I don't know this is the correct forum for my problem
    I Just installed   Oracle Sql developer 3.2.I encountered a problem while creating a new connection with Oracle database 11g..
    The error message says "Status : Failure -Test failed: The Network Adapter could not establish the connection"..
    The command response as follows
    lsnrctl stop
    LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 31-OCT-2013 21:52
    :56
    Copyright (c) 1991, 2010, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
    TNS-01190: The user is not authorized to execute the requested listener command
    lsnrctl start
    LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 31-OCT-2013 21:55
    :49
    Copyright (c) 1991, 2010, Oracle.  All rights reserved.
    TNS-01106: Listener using listener name LISTENER has already been started
    lsnrctl status
    LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 31-OCT-2013 21:57
    :07
    Copyright (c) 1991, 2010, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for 64-bit Windows: Version 11.2.0.1.0 - Produ
    ction
    Start Date                31-OCT-2013 20:57:07
    Uptime                    0 days 1 hr. 0 min. 0 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   C:\app\RIYAS\product\11.2.0\dbhome_1\network\admin\lis
    tener.ora
    Listener Log File         c:\app\riyas\diag\tnslsnr\RIYAS-PC\listener\alert\log.
    xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
      Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "orcl" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orclXDB" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
    The command completed successfully
    lsnrctl service
    LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 31-OCT-2013 21:58
    :28
    Copyright (c) 1991, 2010, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
      Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
        Handler(s):
          "DEDICATED" established:0 refused:0
             LOCAL SERVER
    Service "orcl" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
        Handler(s):
          "DEDICATED" established:102 refused:0 state:ready
             LOCAL SERVER
    Service "orclXDB" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
        Handler(s):
          "D000" established:0 refused:0 current:0 max:1022 state:ready
             DISPATCHER <machine: RIYAS-PC, pid: 1828>
             (ADDRESS=(PROTOCOL=tcp)(HOST=RIYAS-PC)(PORT=49911))
    The command completed successfully
    set
    ALLUSERSPROFILE=C:\ProgramData
    APPDATA=C:\Users\RIYAS\AppData\Roaming
    CommonProgramFiles=C:\Program Files\Common Files
    CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
    CommonProgramW6432=C:\Program Files\Common Files
    COMPUTERNAME=RIYAS-PC
    ComSpec=C:\windows\system32\cmd.exe
    FP_NO_HOST_CHECK=NO
    HOMEDRIVE=C:
    HOMEPATH=\Users\RIYAS
    LOCALAPPDATA=C:\Users\RIYAS\AppData\Local
    LOGONSERVER=\\RIYAS-PC
    NUMBER_OF_PROCESSORS=4
    OS=Windows_NT
    Path=C:\app\RIYAS\product\11.2.0\dbhome_1\bin;C:\app\RIYAS\product\11.2.0\dbhome
    _2\bin;C:\Program Files (x86)\PC Connectivity Solution\;C:\Program Files\Common
    Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsof
    t Shared\Windows Live;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\
    Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\wi
    ndows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPo
    werShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;
    C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program File
    s (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\I
    ntel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Open
    CL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Progra
    m Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\P
    rogram Files (x86)\Windows Live\Shared
    PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
    PROCESSOR_ARCHITECTURE=AMD64
    PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 58 Stepping 9, GenuineIntel
    PROCESSOR_LEVEL=6
    PROCESSOR_REVISION=3a09
    ProgramData=C:\ProgramData
    ProgramFiles=C:\Program Files
    ProgramFiles(x86)=C:\Program Files (x86)
    ProgramW6432=C:\Program Files
    PROMPT=$P$G
    PSModulePath=C:\windows\system32\WindowsPowerShell\v1.0\Modules\
    PUBLIC=C:\Users\Public
    SESSIONNAME=Console
    SystemDrive=C:
    SystemRoot=C:\windows
    TEMP=C:\Users\RIYAS\AppData\Local\Temp
    TMP=C:\Users\RIYAS\AppData\Local\Temp
    USERDOMAIN=RIYAS-PC
    USERNAME=RIYAS
    USERPROFILE=C:\Users\RIYAS
    windir=C:\windows
    windows_tracing_flags=3
    windows_tracing_logfile=C:\BVTBin\Tests\installpackage\csilogfile.log
    Pls help..

    You don't say what you have done to set up a connection.
    This error is usually caused by something like using the wrong host name, or port number.

  • Problem in OWB: connecting to a non-oracle database

    Good day,
    i'm working on a windows 32 bit machine,i have Oracle database , OWB 11.2.0.1 installed on it
    i'm trying to make OWB connect to a "Sybase" source database on another server , using ODBC
    i've tested the connection from SQLPLUS and it's working perfectly
    but when i test the connection from OWB locations , it gives me this error:
    "ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [OpenLink][ODBC][SQL Server]Statement(s) could not be prepared (0)
    {42000}[OpenLink][ODBC][SQL Server]"DUAL" not found. Specify owner.objectname
    or use sp_help to check whether the object exists (sp_help may produce lots of
    output).
    (208) {42S02,NativeErr = 208}
    my questions are :
    -why would OWB check for DUAL table on a sybase database? is that a bug in OWB?
    -can i bypass this step and just import metadata from the sybase source database? (i tried importing,but OWB performs the same test before importing)

    Hi Chris,
    I haven't tried it, and these are just some of my thoughts, but I
    think you would need to load the JDBC driver for the other database
    into the Oracle database (using the "loadjava" tool, of-course).
    Then your java stored procedure should be able to instantiate the
    third party JDBC driver and obtain a connection to the other database.
    Hope this helps.
    Good Luck,
    Avi.

  • Failure to connect JDeveloper 10g to Oracle Database Expres Edition.

    Hi, i working with Oracle JDeveloper 10.1.3 and Oracle Database 10g Express Edition. CONNECT to Oracle Database XE from Jdeveloper Wizards using JDBC/Thin, generate the next error messge:
    ORA-0064: error ocurred at recursive SQL level 1.
    ORA-12705:Cannot access NLS datafile or invalid environmment specified.
    Vendor code: 604.
    , but connect to using ODBC work Ok.
    If run the application display:
    17002:Exception of E/S: SO: Exception was generated.
    Roberto.

    Hi Roberto,
    this issue can be caused by language incompatibility between JDeveloper language (client language) and database language.
    To check the language of the database, execute the following SQL statement from the DB:
    select * from nls_database_parameters;To check the JDeveloper language:
    Select menu Help --> About in JDev, and see the values for:
    user.language, user.region.
    Are they the same ?
    If not,
    1. Edit <JDev_Home>/jdev/bin/jdev.conf file.
    2. Add the following parameters:
    AddVMOption -Duser.language=...
    AddVMOption -Duser.region=...
    with the values for language and region, f.ex. en and US respectively
    3. Restart JDeveloper and re-test the connection.
    Hope this helps,
    Didier.

  • How to create connection to cluster of Oracle database server?

    Hi, all!
    I have to create connection to Oracle cluster. How to do that?
    I can make a connection to one server but to cluster ....
    I saw many documents but without any result.

    Hello
    Two servers with oracle database server installed organized as a cluster.
    Both server work in parallel, when one of them stop work the other takes connection automaticaly.
    The connection to the cluster is not usual as a one server.
    I have to specify both servers.Any time i can make a connection to one of them but when he stop work my connection will be broken.
    Because of that the servers work under oracle server software.
    So i can make a connection to one of them and both.
    This is made because it is for production firm with many test computers that work 24/7 and send information to this oracle server.
    So i have to make a connection to the general oracle cluster (the two servers simultaneously).
    I saw some connection strings to do tha written on Visual Basic but i have no idea how to do that in C/C++.
    There is no information about that in the Oracle tutorials and manuals.
    I need this explanation because i make a connection without TNS config file.
    Can you help me?
    I will be very appreciated.

  • Connecting R console with Oracle Database

    Hi,
    I had Oracle database client installed in my desktop which connects to the oracle Database 11g and 12c.
    I also installed R console. How can I connect to Database from R console
    Thanks & Regards
    Surya

    Surya,
    To use ROracle to connect to Oracle Database, simply install and load the ROracle package in R and load the driver:
       R> install.packages("ROracle")
       R> library(ROracle)
        Loading required package: DBI
       R> drv <- dbDriver("Oracle")
    Once the ROracle package is installed, create a database connection object and connect to Oracle Database as the OS user.
       R> conn <- dbConnect(drv, username ="<your.username>", password="<your.password>",
                       dbname = "<your.connect.string>")
    ROracle binaries (Windows, AIX, Solaris, SPARC) can be downloaded from OTN. The Linux source package can be downloaded from CRAN.  You may also refer to OTN resources to Learn More about ROracle.
    If you wish to take advantage of the features provided by Oracle R Enterprise, such as transparent access to R base functionality, in-database analytics, and interface to Oracle Data Mining functionality, you'll need to follow the installation instructions in the installation guide.
    Best Regards,
    Sherry

  • Error connecting via PHP to Oracle Database 10g XE in Arch Linux with XAMPP

    I get this error whenever I try to connect through PHP to my locally hosted Oracle Database 10g Express Edition
    Warning: oci_connect() [function.oci-connect]: OCIEnvNlsCreate() failed. There is something wrong with your system - please check that LD_LIBRARY_PATH includes the directory with Oracle Instant Client libraries in <filename>.php on line 10
    What can I do?

    Not sure what to offer for XAMP with php, perhaps it needs a configure pointing OCI8 to your ORACLE_HOME, as well as setting the oracle environment and PATH adjustment in the Apache start script.
    Somewhere under /etc there should be an init.d or perhaps rc.d directory with maybe an apache2 script that gets called at system boot or run level change. It will take editing that shell script and adding something like:
      export ORACLE_HOME=/usr/....
      export PATH=$ORACLE_HOME/bin:$PATH
      export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATHAnd restarting apache ... $ [sudo] {RC path}/apache2 restart or $ ...apache2 stop followed by an $ ...apache2 start all depending on how the boot/inits are setup on the box.
    And in your $ORACLE_HOME/network/admin/tnsnames.ora adding a tnsalias won't hurt (as long as the whitespace as well as matching parenthesis are all in order)
    myxedb =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = myhost.mycompany.com)(PORT = 1521))
        (CONNECT_DATA =
          (SID = XE)
      )

  • How to connect to a Remote Oracle Database

    Hi Friends,
    The error I encountered while connecting to a remote database is ���DataSource name is too long
    String url="jdbc:odbc://abc:1523/test";
    con = DriverManager.getConnection(url,"xyz","xyz1");
    Here Remote Host-name = abc
    Port = 1523
    DataSource Name=test
    User-name = xyz
    Password =xyz1
    The DataSource is created Using Oracle ODBC driver on Windows 2000
    With following details
    DataSource name=test
    Service name = xyz (Database Name)
    User-id=xyz (User name)
    Thanks in advance
    Hamsa

    As suggested you should use a oracle jdbc driver type 2 (JDBC OCI Driver) or 4 (JDBC Thin Driver).
    Because the thin driver is written entirely in Java, is platform-independent. It does not require any
    additional Oracle software on the client side. It can be used for Oracle JDBC applets or applications.
    The OCI driver is targeted for client-server Java applications. It requires an Oracle client installation, so it is Oracle platform-specific and it is not suitable for applets.
    To connect to a database using those drivers here you have two examples of establishing a connection:
    For OCI driver:
    Connection conn = DriverManager.getConnection("jdbc:oracle:oci8:@<dbName>","user","password");
    For thin driver:
    Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@<host>:<port>:<dbName>", "user", "password");
    And make sure that the classes12.zip file is included in your CLASSPATH.

  • Connecting Java application to Oracle Database with JDBC

    How can I connect my Java application using Oracle 11g database?
    Please provide the steps involved along with the coding.

    What kind of Java application? Stand alone/desktop? Or web? Do you need dedicated, individual connections, or connection pooling for 10,000 concurrent users?
    You'll find a few clues in This Article [This Article|http://javawebdb.com/2012/01/30/connecting-a-java-servlet-to-a-database/]

  • Connection pooling and auditing on an oracle database

    Integration of a weblogic application with an oracle backend,
    Connection pooling, and auditing ,2 conflicting requirements ?
    Problem statement :
    We are in the process of maintaining a legacy client server application where
    the client is
    written in PowerBuilder and the backend is using an Oracle database.
    Almost all business logic is implemented in stored procedures on the database.
    When working in client/server mode ,1 PowerBuilder User has a one-to-one relation
    with
    a connection(session) on the oracle database.
    It is a requirement that the database administrator must see the real user connected
    to the database
    and NOT some kind of superuser, therefore in the PowerBuilder app each user connects
    to the database
    with his own username.(Each user is configured on the database via a seperate
    powerbuilder security app).
    For the PowerBuilder app all is fine and this app can maintain conversional state(setting
    and
    reading of global variables in oracle packages).
    The management is pushing for web-based application where we will be using bea
    weblogic appserver(J2EE based).
    We have build an business app which is web-based and accessing the same oracle
    backend app as
    the PowerBuilder app is doing.
    The first version of this web-based app is using a custom build connector(based
    on JCA standard and
    derived from a template provided by the weblogic integration installation).
    This custom build connector is essentially a combination of a custom realm in
    weblogic terms
    and a degraded connection pool , where each web session(browser) has a one-to-one
    relation
    with the back end database.
    The reason that this custom connector is combining the security functionality
    and the pooling
    functionality , is because each user must be authenticated against the oracle
    database(security requirement)
    and NOT against a LDAP server, and we are using a statefull backend(oracle packages)
    which would make it
    difficult to reuse connections.
    A problem that surfaced while doing heavy loadtesting with the custom connector,
    is that sometimes connections are closed and new ones made in the midst of a transaction.
    If you imagine a scenario where a session bean creates a business entity ,and
    the session bean
    calls 1 entity bean for the header and 1 entity bean for the detail, then the
    header and detail
    must be created in the same transaction AND with the same connection(there is
    a parent-child relationship
    between header and detail enforced on the back end database via Primary and Foreing
    Keys).
    We have not yet found why weblogic is closing the connection!
    A second problem that we are experincing with the custom connector, is the use
    of CMP(container managed persistence)
    within entity beans.
    The J2EE developers state that the use of CMP decreases the develoment time and
    thus also maintenance costs.
    We have not yet found a way to integrate a custom connector with the CMP persistence
    scheme !
    In order to solve our loadtesting and CMP persistence problems i was asked to
    come up with a solution
    which should not use a custom connector,but use standard connection pools from
    weblogic.
    To resolve the authentication problem on weblogic i could make a custom realm
    which connects to the
    backend database with the username and password, and if the connection is ok ,
    i could consider this
    user as authenticated in weblogic.
    That still leaves me with the problem of auditing and pooling.
    If i were to use a standard connection pool,then all transaction made in the oracle
    database
    would be done by a pool user or super user, a solution which will be rejected
    by our local security officer,
    because you can not see which real user made a transaction in the database.
    I could still use the connection pool and in the application , advise the application
    developers
    to set an oracle package variable with the real user, then on arrival of the request
    in the database,
    the logic could use this package variable to set the transaction user.
    There are still problems with this approach :
    - The administrator of the database can still not see who is connected , he will
    only see the superuser connection.
    - This scheme can not be used when you want to use CMP persistence , since it
    is weblogic who will generate the code
    to access the database.
    I thought i had a solution when oracle provided us with a connection pool known
    as OracleOCIConnectionPool
    where there is a connection made by a superuser, but where sessions are multiplexed
    over this physical pipe with the real user.
    I can not seem to properly integrate this OCI connectionpool into weblogic.
    When using this pool , and we are coming into a bean (session or entity bean)
    weblogic is wrapping
    this pool with it's own internal Datasource and giving me back a connection of
    the superuser, but not one for the real user,
    thus setting me with my back to the wall again.
    I would appreciate if anyone had experienced the same problem to share a possible
    solution with us
    in order to satisfy all requirements(security,auditing,CMP).
    Many Thanks
    Blyau Gino
    [email protected]

    Hi Blyau,
    As Joe has already provided some technical advice,
    I'll try to say something on engineering process level.
    While migrating an application from one technology to
    other, like client-server to n-tier in you case, customers and
    stakeholders want to push into the new system as many old
    requirements as possible. This approach is AKA "we must
    have ALL of the features of the old system". Mostly it happens
    because they don't know what they want. Ad little understanding
    of abilities of the new technology, and you will get a requirement
    like the one you have in you hands.
    I think "DBA must see real user" is one of those. For this
    type of requirements it can make sense to try to drop it,
    or to understand its nature and suggest alternatives. In this
    particular case it can be a system that logs user names,
    login and logout times.
    Blind copying of old features into an incompatible new architecture
    may endanger the whole project and can result in its failure.
    Hope this helps.
    Regards,
    Slava Imeshev
    "Blyau Gino" <[email protected]> wrote in message
    news:[email protected]...
    >
    Integration of a weblogic application with an oracle backend,
    Connection pooling, and auditing ,2 conflicting requirements ?
    Problem statement :
    We are in the process of maintaining a legacy client server applicationwhere
    the client is
    written in PowerBuilder and the backend is using an Oracle database.
    Almost all business logic is implemented in stored procedures on thedatabase.
    When working in client/server mode ,1 PowerBuilder User has a one-to-onerelation
    with
    a connection(session) on the oracle database.
    It is a requirement that the database administrator must see the real userconnected
    to the database
    and NOT some kind of superuser, therefore in the PowerBuilder app eachuser connects
    to the database
    with his own username.(Each user is configured on the database via aseperate
    powerbuilder security app).
    For the PowerBuilder app all is fine and this app can maintainconversional state(setting
    and
    reading of global variables in oracle packages).
    The management is pushing for web-based application where we will be usingbea
    weblogic appserver(J2EE based).
    We have build an business app which is web-based and accessing the sameoracle
    backend app as
    the PowerBuilder app is doing.
    The first version of this web-based app is using a custom buildconnector(based
    on JCA standard and
    derived from a template provided by the weblogic integrationinstallation).
    This custom build connector is essentially a combination of a custom realmin
    weblogic terms
    and a degraded connection pool , where each web session(browser) has aone-to-one
    relation
    with the back end database.
    The reason that this custom connector is combining the securityfunctionality
    and the pooling
    functionality , is because each user must be authenticated against theoracle
    database(security requirement)
    and NOT against a LDAP server, and we are using a statefull backend(oraclepackages)
    which would make it
    difficult to reuse connections.
    A problem that surfaced while doing heavy loadtesting with the customconnector,
    >
    is that sometimes connections are closed and new ones made in the midst ofa transaction.
    If you imagine a scenario where a session bean creates a business entity,and
    the session bean
    calls 1 entity bean for the header and 1 entity bean for the detail, thenthe
    header and detail
    must be created in the same transaction AND with the same connection(thereis
    a parent-child relationship
    between header and detail enforced on the back end database via Primaryand Foreing
    Keys).
    We have not yet found why weblogic is closing the connection!
    A second problem that we are experincing with the custom connector, is theuse
    of CMP(container managed persistence)
    within entity beans.
    The J2EE developers state that the use of CMP decreases the develomenttime and
    thus also maintenance costs.
    We have not yet found a way to integrate a custom connector with the CMPpersistence
    scheme !
    In order to solve our loadtesting and CMP persistence problems i was askedto
    come up with a solution
    which should not use a custom connector,but use standard connection poolsfrom
    weblogic.
    To resolve the authentication problem on weblogic i could make a customrealm
    which connects to the
    backend database with the username and password, and if the connection isok ,
    i could consider this
    user as authenticated in weblogic.
    That still leaves me with the problem of auditing and pooling.
    If i were to use a standard connection pool,then all transaction made inthe oracle
    database
    would be done by a pool user or super user, a solution which will berejected
    by our local security officer,
    because you can not see which real user made a transaction in thedatabase.
    I could still use the connection pool and in the application , advise theapplication
    developers
    to set an oracle package variable with the real user, then on arrival ofthe request
    in the database,
    the logic could use this package variable to set the transaction user.
    There are still problems with this approach :
    - The administrator of the database can still not see who is connected ,he will
    only see the superuser connection.
    - This scheme can not be used when you want to use CMP persistence , sinceit
    is weblogic who will generate the code
    to access the database.
    I thought i had a solution when oracle provided us with a connection poolknown
    as OracleOCIConnectionPool
    where there is a connection made by a superuser, but where sessions aremultiplexed
    over this physical pipe with the real user.
    I can not seem to properly integrate this OCI connectionpool intoweblogic.
    When using this pool , and we are coming into a bean (session or entitybean)
    weblogic is wrapping
    this pool with it's own internal Datasource and giving me back aconnection of
    the superuser, but not one for the real user,
    thus setting me with my back to the wall again.
    I would appreciate if anyone had experienced the same problem to share apossible
    solution with us
    in order to satisfy all requirements(security,auditing,CMP).
    Many Thanks
    Blyau Gino
    [email protected]

  • How to control the connection numbers in Oracle database

    Post Author: admincrystal_2008
    CA Forum: Data Connectivity and SQL
    Hello,
    We use Crystal Report XI R2 and Oracle 10.2 database. This is a web based application on Windows server 2003. After generating the report user usually kill the broswer, but the connection is still in Oracle database. Is teher a way to set up the max connection numbers on application web server?
    Thanks for your input!

    Alekh wrote:
    lists of jobs execute concurrently.Thats a definition we all aware of ;), I meant do you want to execute the jobs in a sequence? is there any dependency? is it more like scheduling?
    And What kind of jobs you are talking about? running PL/SQL programs? or stats collection? or DB backup?
    Regards,
    Prazy

Maybe you are looking for