Remote database access (db2)

How can i connect database remotely?
i can connect it locally but first time trying remotely

You probably are looking for a class 3 driver for DB2.
Check which driver you are using and set it right and correct the URL to also include the hostname for the remote DB2 instance.
Regards,
Peter Norell

Similar Messages

  • Prevent remote database access

    we cannot change easily our passwords and we must prevent remote access to SYS and SYSTEM accounts.
    Is there a way to prevent remote database access on SYSTEM account without changing password ?

    Hi,
    Look for this tip in http://www.oracle.com/technology/oramag/code/tips2004/061404.html
    I hope this helps
    Cheers

  • Remote database access via JDBC?

    Hello,
    Can anyone give me info on accessing remote databases (i.e. Microsoft
    Access, etc) from Java programs (Servlets, JSP's, Classes) residing on the
    iSeries (AS400) or perhaps any platform?
    I currently have a couple of web applications set up on the Websphere App server that access DB2/400 database and I also have some Java Classes on PC's that access MS Access datafiles. I would like to begin writing the majority of my applications that run on the iSeries (or host system) that can remotely access other databases on our network.
    Any info would be of great help to me.
    Thank you
    Don

    I don't know of any existing Access JDBC drivers that support remote access, after all, the Access database itself is not remote access capable except via file sharing. One possibility is to look for a Type 3 JDBC driver that supports reuse of other Type 1 (ODBC bridge), Type 2 (Java/Native Mix) and Type 4 (pure Java)JDBC drivers on the server side.
    If you were using WebLogic Server, I suppose you could use its remote JDBC facilities, but that won't help you.
    One problem you will have to face is that Access JDBC drivers are not (if I recall) meant to be used in a multithreaded fashion. Good luck. By the way, it might be far simpler to port the Access database to DB2/400.
    Chuck

  • Remote Database Connection DB2 - Oracle

    Hi All
    We need to maintain a remote db connection in DBACockpit. We are on DB2 UDB and we need to connect to Oracle. We have all the connection details.
    Now my query is do we need to maintain connection details at DB2 level also , or is it enough to maintain them in DBACockpit.
    Basically i need to connect from my SAP BI system which is on DB2 UDB 9.1 to Oracle Database.
    In oracle we can connect to different databases using TNS functionality, is something there like TNS in DB2 where we have to maintain the remote DB connection details? If yes request you to provide some relevant document for the same
    Thanks in Advance.
    Regards
    Kaleem.

    Hi Kaleem,
    if you want to administer your ORACLE database through DBACockpit, you need to prepare your system for a DBSL multiconnect to ORACLE as described in note 339092 ( i.e. install ORACLE client, ORACLE DBSL library, etc. ).
    This multiconnect can also be used for BI Connect.
    If you just want to query some ORACLE tables in your DB2 system, you may also consider to use the DB2 federation feature to create ncicknames within your DB2 database that point to ORACLE tables. In this case I suggest to consult the DB2 manuals on how to do this. You may also have to install an additional DB2 license for the hererogenous federation feature to create nicknames to ORACLE tables.
    Regards
                   Frank

  • Publishing reports to Enterprise - Remote database access.

    Enterprise newbie.
    I can publish a report that accesses a database residing on the same server as Crystal Enterprise. Under the CMC, report process, database, I'm using the default report DB connections option. It runs fine in the user mode.
    The Problem
    Attempting to publish a report accessing a database not located on the same server as Crystal Enterprise, I get theis error: " There was an error retrieving data from the server: The database logon information for this report is either incomplete or incorrect. "
    I've tried a number of variations on the process database setup and have established user accouts on the remote server, using that accout as the report user and pw under process - database. 
    Both reports created on my desktop with ODBC conections.
    I think I am missing some page or cache server set-up.  Any suggestions appriciated.
    Paul

    Hi,
    If the ODBC connection is set up properly then make sure the servers  in the CCM are running on the domain administrator account.
    Please revert in case of any queries

  • PhpMyAdmin remote database access?

    Hi
    Our professor provided us a url to put our database there. netcentric.dlsu.edu.ph:8100/pma
    The problem is, I can't access it through jdbc. My connection statement is this.
    final String URL = "jdbc:mysql://netcentric.dlsu.edu.pht:8100/pma/webdeve2";
    Connection conn = DriverManager.getConnection(URL, user, pass);
    What should my url be? Thanks

    810623 wrote:
    Hi
    Our professor provided us a url to put our database there. netcentric.dlsu.edu.ph:8100/pma
    The problem is, I can't access it through jdbc. My connection statement is this.
    The statement above certainly looked like a java and jdbc question.
    >
    final String URL = "jdbc:mysql://netcentric.dlsu.edu.pht:8100/pma/webdeve2";That looks like jdbc as well.
    php on the other hand would look something like the following.
    mysql_connect($dbhost, $dbuser, $dbpass)
    So how did the question become solely about php?

  • Disabling remote database access encryption

    We've setup an Oracle 9i enterprise db and client on two separate Linux machines in a lab environment. Applying sniffer to the network we see that the client attempts a non-encrypted connection but the db rejects the request and continues with the connection.
    Is there any way to disable encryption? Our ultimate goal is to view the contents of SQL/TNS packets for development purposes.
    Thanks in advance,
    Chris

    Thanks for the above pointer! So with the client initiating with 'accepted' and the server returning 'rejected' Table 2-1 describes OAS as being off by default.
    The results of a sql log trace are the same as sniffer with samples of the payload below. Is this considered cleartext?
    Thanks for all your help.
    [04-FEB-2004 17:11:30:124] nspsend: 00 33 00 00 06 00 00 00 |.3......|
    [04-FEB-2004 17:11:30:124] nspsend: 00 00 03 54 06 B4 CA 0F |...T....|
    [04-FEB-2004 17:11:30:124] nspsend: 08 B8 CA 0F 08 01 00 00 |........|
    [04-FEB-2004 17:11:30:124] nspsend: 00 00 00 00 00 00 00 00 |........|
    [04-FEB-2004 17:11:30:124] nspsend: 00 00 00 00 00 50 93 FF |.....P..|
    [04-FEB-2004 17:11:30:124] nspsend: BF 0A 00 00 00 26 03 D0 |.....&..|
    [04-FEB-2004 17:11:30:124] nspsend: EF 1A 40 |..@ |
    [04-FEB-2004 17:11:32:054] nsprecv: 01 18 00 00 06 00 00 00 |........|
    [04-FEB-2004 17:11:32:054] nsprecv: 00 00 10 19 12 BD DC D1 |........|
    [04-FEB-2004 17:11:32:054] nsprecv: E8 16 92 55 00 00 78 68 |...U..xh|
    [04-FEB-2004 17:11:32:054] nsprecv: 02 04 0B 32 10 7D 04 00 |...2.}..|
    [04-FEB-2004 17:11:32:054] nsprecv: 00 00 00 00 00 A0 0F 00 |........|
    [04-FEB-2004 17:11:32:054] nsprecv: 00 01 00 00 00 37 01 01 |.....7..|
    [04-FEB-2004 17:11:32:054] nsprecv: 80 00 00 A0 0F 00 00 00 |........|
    [04-FEB-2004 17:11:32:054] nsprecv: 00 00 00 00 00 00 00 00 |........|
    [04-FEB-2004 17:11:32:054] nsprecv: 00 00 00 00 00 00 00 1F |........|
    [04-FEB-2004 17:11:32:054] nsprecv: 00 01 00 A0 0F 00 00 01 |........|
    [04-FEB-2004 17:11:32:054] nsprecv: 0B 0B 00 00 00 0B 47 4C |......GL|
    [04-FEB-2004 17:11:32:054] nsprecv: 4F 42 41 4C 5F 4E 41 4D |OBAL_NAM|
    [04-FEB-2004 17:11:32:054] nsprecv: 45 00 00 00 00 00 00 00 |E.......|
    [04-FEB-2004 17:11:32:054] nsprecv: 00 07 00 00 00 07 78 68 |......xh|
    [04-FEB-2004 17:11:32:054] nsprecv: 02 04 12 05 3C 06 01 02 |....<...|
    [04-FEB-2004 17:11:32:054] nsprecv: 00 01 00 00 00 01 00 00 |........|
    [04-FEB-2004 17:11:32:054] nsprecv: 00 00 00 00 00 00 00 00 |........|
    [04-FEB-2004 17:11:32:054] nsprecv: 00 00 00 00 00 00 00 00 |........|
    [04-FEB-2004 17:11:32:054] nsprecv: 00 FF BF 07 0A 54 45 53 |.....TES|
    [04-FEB-2004 17:11:32:054] nsprecv: 54 44 42 2E 43 4F 4D 08 |TDB.COM.|
    [04-FEB-2004 17:11:32:054] nsprecv: 05 00 C8 45 14 00 00 00 |...E....|
    [04-FEB-2004 17:11:32:054] nsprecv: 00 00 01 00 00 00 00 00 |........|
    [04-FEB-2004 17:11:32:054] nsprecv: 00 00 00 00 00 00 00 00 |........|
    [04-FEB-2004 17:11:32:054] nsprecv: 00 00 04 01 00 00 00 01 |........|
    [04-FEB-2004 17:11:32:054] nsprecv: 01 00 00 00 00 00 00 00 |........|
    [04-FEB-2004 17:11:32:054] nsprecv: 00 00 01 00 00 00 03 00 |........|
    [04-FEB-2004 17:11:32:054] nsprecv: 00 00 00 00 00 00 00 00 |........|
    [04-FEB-2004 17:11:32:054] nsprecv: 00 00 00 00 00 00 00 00 |........|
    [04-FEB-2004 17:11:32:054] nsprecv: 00 00 00 00 00 00 00 00 |........|
    [04-FEB-2004 17:11:32:054] nsprecv: 00 19 00 00 01 00 00 00 |........|
    [04-FEB-2004 17:11:32:054] nsprecv: 36 01 00 00 00 00 00 00 |6.......|
    [04-FEB-2004 17:11:32:054] nsprecv: 40 AC B1 0A 00 00 00 00 |@.......|
    [04-FEB-2004 17:11:32:054] nsprecv: 00 00 00 00 00 00 00 00 |........|
    [04-FEB-2004 17:11:32:054] nsprecv: 00 00 00 00 00 00 00 00 |........|
    [04-FEB-2004 17:11:32:054] nsprecv: 00 00 00 00 00 00 00 00 |........|

  • PERFORMANCE while accessing remote database DB2 on AS/400 using WAS

    Subject: PERFORMANCE while accessing remote database
    We have IBMWebSphere Application Server Standard Edition 3.5.3 running on
    AS/400 iSeries Server (V4R5, test)and local DB2 Database.
    I am using AS/400 Developer Kit for Java JDBC Driver(type2, com.ibm.db2.jdbc.app.DB2Driver)
    to talk to local database. The performance was very good.
    When I try to access remote database (every thing same as local) which is on another AS/400
    machine of V4R4 (we use it for production, remote database) using IBM Toolbox for Java JDBC driver
    (com.ibm.as400.access.AS400JDBCDriver, type 4 driver), I can see 30to40%decrease in performance.
    Here we have WAS on previous V4R5 AS/400 machine.
    My questions are
    Is the performance decrease is due to
    1. the driver I am using? if it is Is there any other alternative drivers to access
    remote database to boost performance?
    2. the release difference of local(V4R5) and remote data base(V4R5)
    3. Currently most uses remote database while we do this testing. Is that the cause?
    or Is there any other cause or Drivers etc??? Suggestions and help is most welcome.
    Thank you.

    What about
    4. the data has to travel across the network.

  • Problem while accessing object in remote database

    Hi All,
    We have a procedure "UPDATE_CONV_DETAILS" created in the remote databse in the "apps" schema. The synonym for the procedure is created in the billing schema(present in the remote database). A dblink is created the local database through which we are tring to access the remote object "UPDATE_CONV_DETAILS".
    Dblink script:
    create public database link PRE_TO_CEL
    connect to BILLING
    identified by BILLING
    using 'MAP1';
    When trying to access the object from the local machine using the schema name.object_name it works fine:
    SQL> DESC APPS.UPDATE_CONV_DETAILS@PRE_TO_CEL
    PROCEDURE APPS.UPDATE_CONV_DETAILS@PRE_TO_CEL
    Argument Name Type In/Out Default?
    IN_MOBILE VARCHAR2 IN
    IN_SERVICE_CODE VARCHAR2 IN
    IN_STATUS VARCHAR2 IN
    OUT_ERROR_CODE NUMBER OUT
    But when trying the access the same object using the synonym_name it gives the error:
    SQL> DESC UPDATE_CONV_DETAILS@PRE_TO_CEL
    ERROR:
    ORA-04043: object APPS.UPDATE_CONV_DETAILS does not exist
    Regards,
    Kirti

    You have two schema.
    apps
    billing
    both reside in remote database.
    there on procedure and on procedure u create one synonym and u want to access it.
    ur remote database name is "map1"
    on ur local database ur create one dblink to access remote database.
    ORA-04043: object string does not exist
    Cause: An object name was specified that was not recognized by the system. There are several possible causes:
    - An invalid name for a table, view, sequence, procedure, function, package, or package body was entered. Since the system could not recognize the invalid name, it responded with the message that the named object does not exist.
    - An attempt was made to rename an index or a cluster, or some other object that cannot be renamed.
    Action: Check the spelling of the named object and rerun the code. (Valid names of tables, views, functions, etc. can be listed by querying the data dictionary.)

  • ORA-28150 when accessing data from a remote database

    Portal Version: Portal 3.0.9.8.0
    RDBMS Version: 8.1.6.3.0
    OS/Vers. Where Portal is Installed:: Solaris 2.6
    Error Number(s):: ORA-28150
    I have a problem with using a database link to access a table in
    a remote database. So long as the dblink uses explicit logins
    then everything works correctly. When the dblink does not have a
    username then I get the ORA-28150 message. The database link is
    always public. A synonym is created locally that points to a
    synonym in the remote database. I am using the same Oracle user
    in both databases. The Oracle portal lightweight user has this
    same Oracle user as its default schema. The contents of the
    remote table are always visible to sqlplus, both when the link
    has a username and when it doesn't have a username.
    All the databases involved are on the same version of Oracle.
    I'm not sure which Oracle login is being used to access the
    remote database, if my lightweight user has a database schema
    of 'xyz' then does portal use 'xyz' to access the remote
    database? I would be very grateful for any help or pointers that
    might help to solve this problem.
    James
    To further clarify this, both my local and remote databases
    schemas are owned by the same login.
    The remote table has a public synonym.
    The link is public but uses default rather than explicit logins.
    The local table has a public synonym that points to the remote
    synonym via the database link.
    If I change the link to have an explicit login then everything
    works correctly.
    I can view the data in the remote database with TOAD and with
    sqlplus even when the database link has default login rather
    than explicit login.
    This seems to point to Portal as being the culprit. Can anyone
    tell me whether default logins can be used across database links
    with portal?
    TIA
    James

    832019 wrote:
    One way to do this is by creating a database link and joining the two tables directly. But this option is ruled out. So please suggest me some way of doing this.Thus you MUST use two connection strings.
    Thus you are going to be either constructing some intricate SQL dynamically or you are going to be dragging a lot of data over the wire and doing an in memory search.
    Although realistically that is what the database link table would have done as well.
    Might be better to look at moving the table data from one database to the other. Depends on size of course.

  • Connect to a remote MS Access database using RmiJdbc

    Hello,
    I want to access a remote MS Access database from oracle stored procedures.
    Does anyone know how i can load the RmiJdbc driver using the loadjava command or with any other way.
    Because when i try to load RmiJdbc.zip using the loadjava command I am getting the error:
    ORA-29533:attempt to overwrite class or resource string while defining or compiling scott.TestClient
    this error is occured for multiple files...
    I don't know how to delete this classes.
    Because this error occured and the first time i tried to load Rmijdbc driver.
    and when i use the dropjava command to drop it,and then load it again the same error occures.
    Can anyone help me how to load this driver?
    Please answer because i need it as soon as possible.
    Thanks

    Hi,
    try this.
    String s = "UPDATE AGENT SET afname='test',alname='u',city='d',AGENT.[percent]=1 WHERE aid=23";
    -------->AGENT.[percent]

  • Connect to different Databases like Oracle, SqlServer,Access,Db2

    Hi all,
    i'm in the process of developing an application using jsp , which should be capable of connecting to all datbases like Oracle, SQL Server,Access DB2, Sybase etc,
    How can i establish that?
    Also what all are things i need to take care,which are specific to each of these databases,like datatype differences etc?
    Any information or links with sample codes is helpfull.
    regards.
    Isaac

    Theoretically if you use just the JDBC API then you should be able to access all these databases. This will be true if you're not using 'exotic' datatypes or functionality. If you are, then you may be in for problems - for example I've had problems with clobs and Oracle that required Oracle specific code, which goes against what you're doing. If that happens, just have call outs to helper classes that use the vendor specific stuff, and only load these classes if you detect that particular JDBC driver, and abstract these vendor specific classes to a standard interface.

  • Access blob/ord column from remote database

    Hi,
    I am using oracle 10.2.
    I have two database X and Y and on Y database i have the table B with column ORDDOC.
    The db link is created on A to access all tables of B. I can access all tables from B except X.
    Could you please advise how can i access table X from B database.
    Database - Y
    SQL> desc B;
    Name Null? Type
    ATTACHMENT_ID NOT NULL NUMBER(38)
    ATTACHMENT ORDSYS.ORDDOC
    SQL>
    Database - X
    SQL> select * from B@DB_LINK_TRDX2.WORLD;
    select * from B@DB_LINK_TRDX2.WORLD
    ERROR at line 1:
    ORA-22804: remote operations not permitted on object tables or user-defined
    type columns
    SQL>
    Anybody could help pls ?

    Kapil wrote:
    The document is in different database and used by other schemas as well from that database.
    .Net is GUI.Daniel raised a very important point. Moving that document via another database doubles the network load for that operation. And doubles the performance impact on the client.
    Is this in any way a sensible thing to do? Most definitely not.
    Assuming that the client cannot reach the remote database containing the documents, and that can only be done via the local database, then you need to look at options such as materialised views. Replicate the remote content from the remote database to the local database at regular intervals.
    As the data set is large (containing LOB documents), consider fast incremental refreshing (and not pull the entire data set across with each refresh).
    Yes, you can write PL/SQL code that grabs the remote document and copies it into a local LOB and then dish that up to the client. But the impact of this on the network and performance are major concerns that need to be thoroughly evaluated first.

  • WebSphere V5 accessing remote database

    Hi.
    Sorry to post IBM product specifice question here. I didn't know where else to put it.
    I need to deploy J2EE appl using CMP beans to WebSphere Application Server version5 to use remote database(DB2) within LAN.
    I have no idea to where to begin and what to look for.
    Can anyone guide me here?

    You need to configure that database as a data source in Websphere using the admin tool. Check the help for details.

  • How to access remote database using applet

    hi all,
    I want to know how to access remote database using applet,
    Please help me anybody.
    Regards
    Jesu

    If the database is on a public server, you probably can't access it directly (security wise). You can make your applet talk to a server-side application, which makes the database calls on behalf of the applet. But even in an intranet environment this setup is often preferable, because you don't need to distribute a JDBC driver to all your clients.

Maybe you are looking for