Application and Database on the same server

I have a Java Application and a db2 database(SWDTEST) that reside on the same server. In the Application I want to connect to the database. What would I use to do this? When the application resides on a client machine I use the "sun.jdbc.odbc.JdbcOdbcDriver" driver and can get a connection. Code looks like:
try{
//load the driver class
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
//Define the data source for the driver               
String wdURL = "jdbc:odbc:SWDTEST";
String username = "UNTEST";
String password = "PTEST";
wdConnection = DriverManager.getConnection(wdURL, username, password);
wdStatement = wdConnection.createStatement();
catch(SQLException e)
System.out.println( e.toString() );
But when I move the same application to the server and run it I get the following error message:
java.sql.SQLException: [IBM][CLI Driver] SQL1013N The database alias name or database name "SWDTEST" could not be found. SQLSTATE=42705
Do I need to set something on the server so that SWDTEST is a recognized database name or connect to it some other way?
Thanks in advance.

Does the server have ODBC installed on it? (Windows boxes will, unix will likely not.)
Do you have a ODBC driver installed on the the server. This has nothing to do with java.
Have you created a DSN on the server?

Similar Messages

  • Installation of EBS 12.1 and Database on the same server

    Hi,
    Due to resource crunch, I would like to do new installation of EBS 12.1 and Database on the same server where already EBS 12.1 and Database installed.
    I have one server where EBS 12.1 and Database installed (Single node installation).
    Now I want to create another environment for other purpose (another test env.). But I don't have another server .
    So Can I start new installation of EBS 12.1 and database on the same server ?
    I have enough space and memory on server.
    Are the installtion conflict with each other ? any implications happen on the first environment ?
    I want my first environment run fine without any prob., after installing EBS and DB on the same server.
    Please guide me.
    Regards,
    Sanjay Patel

    So Can I start new installation of EBS 12.1 and database on the same server ?
    I have enough space and memory on server.Yes you can as long as you have sufficient resources.
    Are the installtion conflict with each other ? any implications happen on the first environment ? If you install in different ORACLE_HOMEs you should be OK.
    Thanks,
    Hussein

  • Rman duplication of database to the same server and same disk group

    Hi,
    We have multiple databases - rmsprd1 and oidprd1 on asm disk groups - ASMDG_DAT01 and ASMDG_FRA01 on a server.
    Both these databases are single instance asm based databases.
    I am trying to do a rman duplication from rmsprd1 to rmsprd2 in the same server. I intend to use the same asm disk groups - ASMDG_DAT01 and ASMDG_FRA01.
    Is this possible ?
    Currently I have the following structure
    +ASMDG_DAT01/RMSPRD1/DATAFILE
    +ASMDG_DAT01/RMSPRD1/CHANGETRACKING/
    +ASMDG_DAT01/RMSPRD1/CONTROLFILE/
    +ASMDG_DAT01/RMSPRD1/DATAFILE/
    +ASMDG_DAT01/RMSPRD1/ONLINELOG/
    +ASMDG_DAT01/RMSPRD1/PARAMETERFILE/
    +ASMDG_DAT01/RMSPRD1/TEMPFILE/
    +ASMDG_FRA01/RMSPRD1/AUTOBACKUP/
    +ASMDG_FRA01/RMSPRD1/BACKUPSET/
    +ASMDG_FRA01/RMSPRD1/CONTROLFILE/
    +ASMDG_FRA01/RMSPRD1/DATAFILE/
    +ASMDG_FRA01/RMSPRD1/ONLINELOG/
    Will I be able to create something like
    +ASMDG_DAT01/RMSPRD2/DATAFILE
    +ASMDG_DAT01/RMSPRD2/CHANGETRACKING/
    +ASMDG_DAT01/RMSPRD2/CONTROLFILE/
    +ASMDG_DAT01/RMSPRD2/DATAFILE/
    +ASMDG_DAT01/RMSPRD2/ONLINELOG/
    +ASMDG_DAT01/RMSPRD2/PARAMETERFILE/
    +ASMDG_DAT01/RMSPRD2/TEMPFILE/
    +ASMDG_FRA01/RMSPRD2/AUTOBACKUP/
    +ASMDG_FRA01/RMSPRD2/BACKUPSET/
    +ASMDG_FRA01/RMSPRD2/CONTROLFILE/
    +ASMDG_FRA01/RMSPRD2/DATAFILE/
    +ASMDG_FRA01/RMSPRD2/ONLINELOG/
    I know that I can create a different asm disk group for the rman duplication but this is proving to be a hassle.
    Thanks
    Sandeep

    Hi,
    I have found the answer working with Oracle via a service request. Admittedly there was no direct oracle documentation for doing this and hence documenting the steps here.
    No legalities, formalities involved please.
    Here are the steps - rmsprd1 is the source, rmsprd2 is the target, +ASM is the asm instance supporting both rmsprd1 and rmsprd2. The intention is to put both the source and destination in the same server. The backupset backup in location /dbaadm/sandeep_rman_refresh will be used for the duplication.
    1) Take rman backupset backup of the source database - rmsprd1
    rman_take_backup.ksh ( Take backup of source - rmsprd1 using rman ). The contents of the rman_take_backup.sh script are given below :
    rm /dbaadm/sandeep_rman_refresh/*
    export NLS_DATE_FORMAT='YYYY-MM-DD:HH24:MI:SS'
    rman target / <<EOF
    run
    allocate channel d1 device type disk format '/dbaadm/sandeep_rman_refresh/%U';
    allocate channel d2 device type disk format '/dbaadm/sandeep_rman_refresh/%U';
    allocate channel d3 device type disk format '/dbaadm/sandeep_rman_refresh/%U';
    allocate channel d4 device type disk format '/dbaadm/sandeep_rman_refresh/%U';
    allocate channel d5 device type disk format '/dbaadm/sandeep_rman_refresh/%U';
    allocate channel d6 device type disk format '/dbaadm/sandeep_rman_refresh/%U';
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/dbaadm/sandeep_rman_refresh/%F';
    backup as backupset database plus archivelog tag 'clonebackupset';
    EOF
    2) Make the directories for destination database ( rmsprd2 )
    /opt/oracle/admin> mkdir -p rmsprd2/adump rmsprd2/dpdump rmsprd2/pfile rmsprd2/scripts
    3) Create pfile from rmsprd1 spfile. copy/rename the pfile to make a pfile for rmsprd2.
    4) Edit listener.ora in ASM ORACLE_HOME and edit tnsnames.ora in DB ORACLE_HOME
    listener.ora
    LISTENER_RMSPRD2 =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1522))
    (ADDRESS = (PROTOCOL = TCP)(HOST = kirkjerpdb01.kirklands.com)(PORT = 1522))
    SID_LIST_LISTENER_RMSPRD2 =
    (SID_LIST =
    (SID_DESC =
    ( ORACLE_HOME = /opt/oracle/product/11.2.0/db_1 )
    ( SID_NAME = rmsprd2 )
    ADR_BASE_LISTENER_RMSPRD2 = /opt/oracle
    ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_RMSPRD2=ON # Section added by Sandeep
    SUBSCRIBE_FOR_NODE_DOWN_EVENT_LISTENER_RMSPRD2=OFF
    ADMIN_RESTRICTIONS_LISTENER_RMSPRD2=ON
    tnsnames.ora ( http://francispaulraj.wordpress.com/ora-12528-tnslistener-all-appropriate-instances-are-blocking-new-connections/ )
    RMSPRD2 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = kirkjerpdb01.kirklands.com)(PORT = 1522))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = rmsprd2)
    (UR = A)
    5) Build a passwordfile ( I just copied and renamed it )
    6) Edit /etc/oratab to add database entry for rmsprd2
    7) Set the environment for rmsprd2
    . oraenv
    rmsprd2
    8) Startup nomount of rmsprd2
    sqlplus / as sysdba
    startup nomount pfile=/opt/oracle/admin/rmsprd2/pfile/initrmsprd2.ora
    9) Create spfile from pfile='/opt/oracle/admin/rmsprd2/pfile/initrmsprd2.ora';
    10) shutdown and startup rmsprd2 with spfile
    SQL> shutdown abort;
    ORACLE instance shut down.
    SQL> startup nomount;
    ORACLE instance started.
    Total System Global Area 1068937216 bytes
    Fixed Size 2213632 bytes
    Variable Size 788531456 bytes
    Database Buffers 268435456 bytes
    Redo Buffers 9756672 bytes
    11) We are now ready for duplication from rmsprd1 ( source ) to rmsprd2 ( destination ) both using +ASM standalone asm instance. set the environment to rmsprd1and fire away.
    Please note that the duplicate script is only connecting to auxilary database ( rmsprd2 ) and using the backup location for the duplication.
    I used a unix shell script -rman_duplicate_from_backup.ksh. The contents are given below :
    $ORACLE_HOME/bin/rman auxiliary sys/prd123@rmsprd2 log=rman_duplicate_from_backup.log << EOF
    run
    allocate auxiliary channel d1 device type disk;
    allocate auxiliary channel d2 device type disk;
    allocate auxiliary channel d3 device type disk;
    allocate auxiliary channel d4 device type disk;
    allocate auxiliary channel d5 device type disk;
    allocate auxiliary channel d6 device type disk;
    DUPLICATE DATABASE TO rmsprd2
    BACKUP LOCATION '/dbaadm/sandeep_rman_refresh';
    EOF
    12) Voila - the rmsprd1 to rmsprd2 is done.....
    Hope this helps somebody else wanting to do the same excercize. Have Fun.....
    regards
    Sandeep

  • Restore database in the same server but with other sid (name)

    i try to restore the database in the same server but with other sid (name) . The backup is on tape and
    I want to know the steps I should follow.
    thank.

    To perform restore of database in same host to choose another DB name you can go for
    1) duplicate using RMAN.
    Directory structure should be different so take care of db_file_name_convert & log_file_name_convert parameters
    Also check the Tns services exactly is it pointing to target & auxiliary
    http://www.shutdownabort.com/quickguides/clone_rman.php
    http://www.oracle-base.com/articles/9i/DuplicateDatabaseUsingRMAN9i.php

  • How to Install R/3 and CRM on the same Server?

    Hi All,
    I would like to install R/3 and CRM on the same server (as the load is less). I know how to install them seperately.
    I would like to have some instructions how to have them installed on the same server.
    Thanks in advance.
    Regards,
    Vijay

    As Sunil explained - MCOD (or) you can think to have 2 differnt DB SID's as weel 2 different SAP SID's. By default 1st Installation takes Listener Name as LISTENER & port 1527 when you are doing second Oracle installation use another lister name as LISTENER002 & give port 1526 ( for example).
    MCOD will be the best option to unplug from oracle instalation requirement but - think of future plans. even it can be any size business don't think to do MCOD with SAP Business System like R3 .
    Becuase qwe may have different requirements from the Business / functionla Team for refreshing / building the development system with a copy of production system - don;t get confused there are Techniques for Refreshing a Development Instance with production system also.
    Any how you have to take decission to go with MCOD (or) not . I also request SUNIL to comment on MCOD installations  with R3 system .
    But  I beleive Sascha Version is wrong - i can have multiple application servers of differnet products on single Box if my OS supports.
    as application servers will have 3 individual mount point which points to different system
    <Central Instance>:/sapmnt/<SID>/global
    <Central Instance>:/sapmnt/<SID>/prfoile
    <Central Instance>:/sapmnt/<SID>/exe
    each SID  NFS mount point can point to different sever & i can multiple application server of differnt SAP Products on 1 BOX.
    Trans directory is problem - but it does not require either for installation (or) for runningAS instance .

  • Securing applications communications running in the same server

    Hi everybody,
    I want to share critical information between two applications (medical information about patients) using JMS queues, moreover due to this criticity i was planning to secure this communication using SSL. The problem is that one of the client applications, because of his architecture, have problems when accessing the JMS queues.
    But I have to say that both applications will run in the same server (physical machine), knowing that, what kind of security problems could we encounter if, finnally we don't cypher the communication?
    I guess that the danger is lower than if the two applications would run in different machines, wouldn't it?
    Thanks!!!

    hi,
    add crossContext="true" in server.xml under tomcatx.x\conf\ in your <Context tag

  • SUP and WSUS on the same server.

    Hi,
    My SCCM environment as follows:
    Windows Server 2012 R2 Standard, Configuration Manager 2012 R2, SQL 2012 SP1 CU7
    WSUS 6.3.9600.163.84 . All these running on the same server.
    SCCM SUP role is enabled, WSUS using SQL Express database. This is Central and Primary site server as well.
    Issue is:
    1. SUP does not get updates. SUP is configured to get updates from Internet and WSUS console Sync options pointing to its own server name. I tried to change WSUS console sync option to internet couple of times but it looks WSUS changes this back.
    2. I want to use WSUS/SUP for SCCM Endpoint definitions update and also for patch installation for clients (Clients Windows update pointing to this server)

    What do you mean that this is a Central and Primary site server? Those two roles can not be installed on the same site server.
    When it comes to SUP in ConfigMgr, the installation process on WS 2012 is basically this:
    1. Install the Windows Server Update Services role, run the initial configuration wizard.
    2. Install a SUP site system role on the server and let ConfigMgr configure everything.
    Additionally I'd not run a SQL Express for the WSUS since you already have SQL installed. Instead I'd create the SUSDB on the same SQL server that you're running the ConfigMgr DB on.
    In my preprequisites installation tool, all you need to do is to open a PowerShell console, run the tool and click on the Install WSUS button, specify the SQL Server and the tool will automatically configure everything. When the tool has completed, you can
    go ahead and add the SUP from ConfigMgr and configure it from the ConfigMgr console.
    You'll find the tool here:
    http://gallery.technet.microsoft.com/ConfigMgr-2012-R2-e52919cd
    Regards,
    Nickolaj Andersen | www.scconfigmgr.com | @Nickolaja

  • APO and BW in the same server, is possible?

    Hi Experts,
    We have an BW 7.0 installation, and we are thinking about to install APO in the same server.
    - Is this possible? 
    - Is there any application that integratte BI (Netweaver 2004s) and SCM-APO?
    - I will have only one login or are the separate applications  with individual user and loggin?
    >> Could you give me any link with sap recomendations about this?
    Thank you in advance!

    Hello,
    BW is integral part of APO system & this is mainly used for APO Applications (DP). However yau may not be able to load APO on server where BW is already in place.
    In case you are using BW extensively for other application, recommendation is to have independant BW sytem.
    with regards
    Mangesh A. Kulkarni

  • Sender and receiver on the same server

    Good morning!
    We plan a TDTIM for 2 different SIDs but with their Oracle DBs on the same server (NOT MCOD).
    If we use them as the sender and receiver respectively, any concern about the performance?
    Any other concerns?
    We know that TDMS within the same SID but different clients is NOT recommended.
    Our TDMS server is on a seperated box.
    Thanks for sharing your experience.

    As the hardware resources will be shared, you need to make sure -
    > the box has optimum resources to handle large data transfer volume.
    > the system and DB parameters are set correctly. There is a note to suggest these setting for high volume data transfer.
    > avoid two data intensive steps to run in parallel, for example do not run receiver deletion and data selection in parallel.

  • Exchange 2013 Windows Server 2012 NLB and DAG on the same server

    Hi all, I am installing Exchange 2013 infrastructure with two servers. 
    Both servers have the CAS and Mailbox roles. 
    For mounting on High Availability, will create a DAG. 
    Client Access I have no external Network Load Balancer. 
    I thought about installing the NLB servers in the DAG members, this could not be done before. 
    I do not know if in Windows Server 2012 and Exchange 2013 
    Can I install NLB on members of a DAG? 
    regards
    Microsoft Certified IT Professional Server Administrator

    Hi,
    I’m afraid that WNLB and DAG cannot coexist in the same server. Because WNLB is incompatible with Windows failover clustering. If we're using an Exchange 2010 DAG and we want to use WNLB, we need to have the Client Access server role and the Mailbox server
    role running on separate servers.
    For more information, you can refer to the following article:
    http://technet.microsoft.com/en-us/library/ff625247(v=exchg.141).aspx
    Thanks,
    Angela Shi
    TechNet Community Support

  • Moving the database in the same server

    Your replay:-
    for WIN NT: take a look at note 61747.1 Moving a 7.3 or 8.x database. And take a look at Note:99275.1, UNIX/NT: Moving a Database Within the Same Machine.
    Clarification: Where can i get the help for Note:61747.1 & 99275.1

    Sorry Sridhar.
    Take a look in MetaLink (www.metalink.com) and use the note ids to look up the information.
    Thanks.

  • Oracle10g and 8i on the same server

    Hello,
    I have seen a similar message but prefer ask my question because
    I have to installer Oracle8i and Oracle10g Rel. 2 on a HP-UX 11.11 server.
    Is it possible on the same server ?
    by creating two different oracle_home ?
    Aren't any compatibility problem ? Concerning the system, due to prequires ?
    Regards,
    Olivier
    Message was edited by:
    user556666

    Ok, thanks.
    It is by creating two different oracle_home ?
    there aren't any compatibility problem ? Concerning the system, due to prequires ?

  • Lync 2013 Error Edge and RP on the same server

    Hello everybody
    We have the following issue:
    In one Lync hybrid deployment with O365, the Edge and RP roles have been deployed on the same server.
    The Edge services are configured to use different ports than 443, the Edge service is working fine, however; the issue is that the RP is not working at all. The most critical feature is the access to mobility services and that all O365 users view the local
    users with presence unknown.
    The server is configured with two nics, one to the internal network and the other one has configured two diferente IP addresses, each is one published thorught NAT to specific Public IP addresses for Edge and RP.
    So far we identified that the Ip address that belongs to Edge services, is always listening on port 443, even when the service is stopped.
    Any experience or idea is welcome!
    Thanks in advance.
    Regards.
    Regards. Cristian V.

    Someone got it working (not recommended): http://social.technet.microsoft.com/Forums/lync/en-US/8963a687-8125-4843-8a9a-2d1ee0c819df/iis-arr-reverse-proxy-on-edge-server-supported-i-dont-think-so?forum=lyncdeploy
    Please mark posts as answers/helpful if it answers your question.
    Blog
    Lync Validator - Used to assist in the validation and documentation of Lync Server 2013.

  • How to configure one Listener for 2 databases on the same server

    Hello all,
    Please, I am stuck as with my application server which requests the port 1521. I want to configure the repository to make use of the port 1521 which is also shared by another database on the server.
    Regards,
    Nadine

    Maybe it is worth mentioning here that am installing it with two different users as to have two ORACLE_HOME independent of each other.
    Below are the configuration files for the Listener.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = test.appstech.local)
    (ORACLE_HOME = /d02/app/oracle/product/10.2.0/db_1)
    (SID_NAME = test)
    (SID_DESC =
    (GLOBAL_DBNAME = testing.appstech.local)
    (ORACLE_HOME = /d01/app/oracle/product/10.1.2/ora_infra)
    (SID_NAME = testing)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = ebs.appstech.local)(PORT = 1521))
    TRACE_LEVEL_LISTENER = USER
    TEST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.15.4)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = test.appstech.local)
    TESTING =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.15.4)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = testing.appstech.local)
    Regards,

  • How to set a different smtp in and out on the same server

    Hello,
    I got an xserve on 10.5.6 and the ethernet ports are connected to two differents networks. One is on the local network (192.168.0.5) and the other on a wan. The lan is on ADSL box that is also the router. I would like to receive my email from the adsl box (it work like this actualy - smtp in) but sent the mails from my user with the wan (smtp out). I did'nt find any setting on the admin server graphic interface and Apple confirms that it is not possible without modifing files with the terminal. (they did'nt give the solution:()
    Is anyone can help me to make this configuration work.
    Thanks in advance.

    Short answer: you can't - at least not directly.
    What you're trying to do breaks the fundamental rules of IP routing - specifically you can only have one default route that's used for all non-local traffic. That route will either point out our ADSL link or your second WAN link. You cannot route by port or protocol.
    Your best bet is to use an SMTP relay where you tell your server to relay all outgoing mail through an intermediate server (rather than directly to the destination domain). Then you can setup a static route to that relay over the second WAN link to override the default route.

Maybe you are looking for

  • Internal camera doesn't work after Firmware Update

    Hi everybody, I had some troubles after updating the Firmware to version 1.1 on my MacBook (the black model). Since the update my camera (the one mounted on top of the screen) doesn't work any longer (it keeps capturing a plain green picture) and the

  • Fact design accumulative snapshot

    This is Loan domain and I am trying to create an accumulative snap shot table at loan level with following columns on 01-jan-2011 this snap shot would be like LOAN_KEY,LOAN_DATE,DEPOSIT_DATE,RETURN_DATE,CLEAR_DATE,WRITEOFF_DATE,LOAN_PAIDOFF_DATE, LOA

  • GAP Analysis on Security for R/3 4.6B and ECC60

    Hello Security Gurus: I am trying to know the differences in security authorizations in  R/3 46B and ECC60 version. I may need to do GAP analysis also.I have no idea on this. Can you please send any weblinks or documents ? Thank you,

  • ACS - Shell Command Authorization Sets

    Hi, I have had a problem where a set of users in two groups in ACS are struggling entering commands.  The commands are set in the Shell Command Authorization Sets and this hasnt changed.  Other commands are working.  As this is spanning two groups in

  • Mail will not open a safari link?

    Mail will not open a Safari link?