I want to connect two database in Oracle

Dear All
I want to connect two database in Oracle ver-10.2.0.1.0 ,And fetch data from 2nd table.
OS - XP Pro.
Regards,
Parwez

Configure remote DB in TNS first.
Create DB link.
CREATE {PUBLIC} DATABASE LINK "DBLINKNAME"  CONNECT TO "remoteuser" IDENTIFIED BY "remotepwd" USING 'REMOTEDBTNSALIAS';Query remote tables using
select * from remotetable@DBLINKNAME;

Similar Messages

  • How do we connect two databases in Oracle other than Database Link?

    Good Morning,
    How do we connect two databases in Oracle other than Database Link?
    I am using Oracle 10g, I heard that we can connect two database in Oracle through ODBC. Is it possible? How?
    Thanks
    Nihar

    See if this helps.
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:4406709207206#18830681837358

  • How to connect access database through oracle sql prompt

    i want to connect access database via oracle , i am trying to import all the data in Access table into oracle table how it is possible .
    A.R

    The simplest way, if You have already created tables in Oracle DB, is to open the Access MDB, link Oracle tables via ODBC and build a query to append rows reading from Access tables to Oracle tables.
    Hope this helps
    Max

  • I want to connect a DataBase(oracle) through Tomcat5.

    i want to connect a DataBase(oracle) through Tomcat5.
    pls tell me the steps how can i do this .or pls give me any link
    thanks previously

    The bottom line is. If you can't figure this part out on your own then you have no business doing any JDBC programming anyway. Think of it as a minimal competency test to make sure it's safe for you to proceed. It isn't safe yet.

  • Generate query  at a time &  connect  two database ?

    Hi
    Could u help me? it is necessary  that  
    I have  two database ( RSHPL,RSPL)  and both data base have  same table name and same fieldname (Table Name :-OITM, Fieldname :ONHAND ,pk- ITEMcode,) 
    At first I tell u what I want?
    I want to generate query  at a time &  connect  two database and same table name(OITM)  to select the TOTAL VALUE of this  field(ONHAND) and pk-key is Itemcode.  
    Is it Possible? If  Possible  plz  write this query and send me.

    Hi,
    I don't think its possible to write a query from within SAP that allows you to get data from another SAP database. 
    I have used SQL Reporting Services to report on data from multiple databases, and this works very well for many of my clients.  It depends on what you want to do with the data, do you need to display it on the screen in SAP and it to a field or will a report suffice?
    Regards,
    Adrian

  • ATG CIM: Not able to connect to database jdbc:oracle:thin

    Hi All,
    I am trying to setup a ATG environment on windows boxes. Below is the setup:
    VM1) DC - Windows Domain Controller (Windows Server 2008)
    VM2) javadb - Oracle 11g (Windows Server 2008)
    VM3) javaweb - ATG 10.0.3 / WebLogic wlserver_10.3/ TomCat 7 (Windows Server 2008)
    Installation / Setup Progress
    * Oracle 11g installation successful. Sample DB successfully created.
    * WebLogic installation successful. Base_Domain successfully created.
    * Able to create successful connection to Oracle (javadb vm) from TomCat (javaweb vm) and query data
    Error: When configuring CIM I keep on getting >> "Not able to connect to database jdbc:oracle:thin:@javadb:1521:SampleDB @ scott"+_
    Corrective action already taken:
    1) Disabled firewall on all boxes
    2) Added path of JDBC driver (ojdbc6.jar) in Environment Variables
    3) Tested Oracle 11g (javadb vm) connectivity both from Eclipse and Tomcat. Which is successful
    4) Cleared all files under C:\ATG\ATG10.0.3\CIM\data to reset CIM
    Please refer CIM details below:
    ===========================================
    CIM DISPLAY START
    ===========================================
    -------ENTER CONNECTION DETAILS-----------------------------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
    Production Core
    Select Database Type
    *[1] Oracle Thin
    [2] MS SQL
    [3] iNet MS SQL
    [4] DB2
    [5] My SQL
    Select one > 1
    Enter User Name [[system]] > scott
    Enter Password [[**********]] > **********
    Re-enter Password > **********
    Enter Host Name [[javadb]] > javadb
    Enter Port Number [[1521]] > 1521
    Enter Database Name [[sampledb]] > SampleDB
    Enter Database URL [[jdbc:oracle:thin:@javadb:1521:SampleDB]]
    >
    Enter Driver Path [[C:/Oracle/Middleware/wlserver_10.3/server/lib/ojdbc6.jar]]
    Enter JNDI Name [[ATGProductionDS]] >
    -------CONFIGURE DATASOURCE PRODUCTION CORE-----------------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
    [C] Connection Details - Done
    *[T] Test Connection
    [S] Create Schema
    Import Initial Data
    [D] Drop Schema
    [O] Configure Another Datasource
    > T
    -------TEST DATASOURCE CONNECTION---------------------------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
    Production Core
    >> Not able to connect to database jdbc:oracle:thin:@javadb:1521:SampleDB @ scott
    ===========================================
    CIM DISPLAY END
    ===========================================
    ===========================================
    CIM LOG START
    ===========================================
    **** Warning     Mon Jul 23 22:46:25 IST 2012     1343063785645     atg.cim.worker.status.StatusUpdateValidator     Status id nonswitchingCore-DatasourceConnectionTemplateStep is unknown.
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator     Not able to connect to database jdbc:oracle:thin:@javadb:1521:SampleDB : -1     java.lang.ArrayIndexOutOfBoundsException: -1
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at oracle.jdbc.driver.T4CTTIoauthenticate.setSessionFields(T4CTTIoauthenticate.java:948)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at oracle.jdbc.driver.T4CTTIoauthenticate.<init>(T4CTTIoauthenticate.java:225)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:358)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:538)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:228)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:521)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at java.sql.DriverManager.getConnection(DriverManager.java:582)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at java.sql.DriverManager.getConnection(DriverManager.java:185)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.service.jdbc.BasicDataSource.getDriverManagerConnection(BasicDataSource.java:526)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.service.jdbc.BasicDataSource.getDriverManagerConnection(BasicDataSource.java:588)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.service.jdbc.BasicDataSource.getConnection(BasicDataSource.java:475)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.service.jdbc.FakeXADataSource.getXAConnection(FakeXADataSource.java:671)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.service.jdbc.MonitoredDataSource.createResource(MonitoredDataSource.java:837)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.service.resourcepool.ResourcePool.populateSlot(ResourcePool.java:2064)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.service.resourcepool.ResourcePool.checkOut(ResourcePool.java:1332)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.service.jdbc.MonitoredDataSource.co(MonitoredDataSource.java:1792)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.service.jdbc.MonitoredDataSource.getConnection(MonitoredDataSource.java:1070)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.worker.databaseconfig.TestJdbcConnectionValidator.performTestConnection(TestJdbcConnectionValidator.java:319)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.worker.databaseconfig.TestJdbcConnectionValidator.validate(TestJdbcConnectionValidator.java:266)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.step.StepExecutor.executeValidations(StepExecutor.java:280)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.ui.text.TextDisplay.processStep(TextDisplay.java:338)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.ui.UIDispatchImpl.processStep(UIDispatchImpl.java:89)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.step.StepExecutor.processStep(StepExecutor.java:201)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.step.StepExecutor.processCurrentStep(StepExecutor.java:80)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.runner.Runner.run(Runner.java:152)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.command.types.LaunchTemplate.execute(LaunchTemplate.java:69)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.command.CommandExecutor.execute(CommandExecutor.java:128)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.command.CommandExecutor.executeCommands(CommandExecutor.java:156)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.step.StepExecutor.processStep(StepExecutor.java:129)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.step.StepExecutor.processCurrentStep(StepExecutor.java:80)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.runner.Runner.run(Runner.java:152)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.command.types.LaunchTemplate.execute(LaunchTemplate.java:69)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.command.CommandExecutor.execute(CommandExecutor.java:128)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.command.CommandExecutor.executeCommands(CommandExecutor.java:156)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.step.StepExecutor.processStep(StepExecutor.java:129)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.step.StepExecutor.processCurrentStep(StepExecutor.java:80)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.runner.Runner.run(Runner.java:152)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.command.types.LaunchTemplate.execute(LaunchTemplate.java:69)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.command.CommandExecutor.execute(CommandExecutor.java:128)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.command.CommandExecutor.executeCommands(CommandExecutor.java:156)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.step.StepExecutor.processStep(StepExecutor.java:129)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.step.StepExecutor.processCurrentStep(StepExecutor.java:80)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.runner.Runner.run(Runner.java:152)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.command.types.LaunchWizard.execute(LaunchWizard.java:73)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.command.CommandExecutor.execute(CommandExecutor.java:128)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.command.CommandExecutor.executeCommands(CommandExecutor.java:156)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.step.StepExecutor.processStep(StepExecutor.java:216)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.step.StepExecutor.processCurrentStep(StepExecutor.java:80)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.runner.Runner.run(Runner.java:152)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.flow.CimFlow.startupFlow(CimFlow.java:69)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.flow.CimFlowCreator.startDefaultCimFlow(CimFlowCreator.java:78)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.Launcher.startCimFlow(Launcher.java:168)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.Launcher.main(Launcher.java:68)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator     
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792218     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator     Error initializing connection from parameters. Test for jdbc connection failed
    ===========================================
    CIM LOG END
    ===========================================
    Any suggestion how to resolve this issue. Thanks in advance.
    cheers,
    Sandeep
    Edited by: 948180 on Jul 23, 2012 11:29 PM

    Hi,
    Earlier my ojdbc6.jar path was not at the beginning of ClassPath. I have made necessary changes. Please refer below:
    Environment Variables Settings on machine where CIM resides:
    PATH = C:\Oracle\Middleware\wlserver_10.3\server\lib\ojdbc6.jar+;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Java\jre7\bin;C:\Program Files\Apache Software Foundation\Tomcat 7.0\bin;C:\Program Files\cvsnt;C:\Program Files\Java\jdk1.7.0\bin;C:\Program Files\Sun\JavaDB\bin;C:\Program Files\Sun\JavaDB\lib;;C:\ATG\ATG10.0.3\MySQL\win32\bin;C:\ATG\ATG10.0.3\home\bin\;C:\Oracle\Middleware\wlserver_10.3\server\lib\;
    Note: I have verified by ojdbc6.jar path.
    Below are the precise steps I executed after updating my environment variables and restarting CMD.
    ===========================================
    CIM DISPLAY START
    ===========================================
    C:\ATG\ATG10.0.3\home\bin>cim.bat
    Nucleus running
    _ | () |
    __ _ | |_ __ _ ----
    / _` | | __| / _` |
    | (_| | | |_ | (_| |
    \__,_| \__| \__, |
    |___/
    Configuration Installation Manager
    =======CIM MAIN MENU============================================================
    enter [h]elp, [q]uit to exit
    Choose the task you want to perform:
    *[1] Database Configuration
    [2] Server Instance Configuration
    [3] Application Assembly & Deployment
    [P] Product Selection - Done (ATG B2C Commerce)
    [A] Select Application Server - Done (Weblogic Online)
    [C] Custom CIM Plugin Launcher
    > 1
    -------CALCULATE DATASOURCE DEPENDENCIES----------------------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
    Calculating Datasource Dependencies. View log file at C:/ATG/ATG10.0.3/home/
    ../CIM/log/cim.log
    |. . |
    |. . |
    -------SELECT A DATASOURCE TO CONFIGURE-----------------------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
    *[P] Publishing
    [C] Production Core
    [D] Done
    > c
    -------CONFIGURE DATASOURCE PRODUCTION CORE-------------------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
    [C] Connection Details - Done
    *[T] Test Connection
    [S] Create Schema
    Import Initial Data
    [D] Drop Schema
    [O] Configure Another Datasource
    > t
    -------TEST DATASOURCE CONNECTION-----------------------------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
    Production Core
    >> Not able to connect to database jdbc:oracle:thin:@javadb:1521:SampleDB @
    scott
    *[E] Edit Connection Details
    [R] Redo
    [D] Done
    > e
    -------RE-USE VALUES FROM PREVIOUS DATASOURCE-----------------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
    Production Core
    Base on previous database details:
    [1] system@jdbc:oracle:thin:@javadb:1521:sampledb
    [2] scott@jdbc:oracle:thin:@javadb:1521:SampleDB
    *[3] None/Use Existing
    Select one > 2
    -------ENTER CONNECTION DETAILS-------------------------------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
    Production Core
    Select Database Type
    *[1] Oracle Thin
    [2] MS SQL
    [3] iNet MS SQL
    [4] DB2
    [5] My SQL
    Select one > 1
    Enter User Name [[scott]] > scott
    Enter Password [[**********]] > **********
    Re-enter Password > **********
    Enter Host Name [[javadb]] > javadb
    Enter Port Number [[1521]] > 1521
    Enter Database Name [[SampleDB]] > SampleDB
    Enter Database URL [[jdbc:oracle:thin:@javadb:1521:SampleDB]]
    > jdbc:oracle:thin:@javadb:1521:SampleDB
    Enter Driver Path [[C:/Oracle/Middleware/wlserver_10.3/server/lib/ojdbc6.jar]
    ] > C:\Oracle\Middleware\wlserver_10.3\server\lib\ojdbc6.jar
    Enter JNDI Name [[ATGProductionDS]] > ATGProductionDS
    -------CONFIGURE DATASOURCE PRODUCTION CORE-------------------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
    [C] Connection Details - Done
    *[T] Test Connection
    [S] Create Schema
    [I] Import Initial Data
    [D] Drop Schema
    [O] Configure Another Datasource
    > T
    -------TEST DATASOURCE CONNECTION-----------------------------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
    Production Core
    >> Not able to connect to database jdbc:oracle:thin:@javadb:1521:SampleDB @
    scott
    *[E] Edit Connection Details
    [R] Redo
    [D] Done
    >
    ===========================================
    CIM DISPLAY END
    ===========================================
    Don't understand what could possibly be going wrong.
    Cheers,
    Sandeep
    Edited by: 948180 on Jul 24, 2012 12:23 AM

  • Creation of two databases in oracle 11g on linux

    HI,
    I need to create two databases in oracle 11g on linux.
    how to set SID'S in .bash_profile and change the init.ora file.
    pls anyone let me know
    thanks
    srinivas

    If you have different databases on same node you could choose to not set ORACLE_SID in shell init file but use instead interactive oraenv Oracle script to set the right ORACLE_SID.
    Please read Configuring the Operating System Environment Variables in http://download.oracle.com/docs/cd/E11882_01/server.112/e10897/em_manage.htm#ADMQS12369
    To create easily a database (ie without using your own scripts) try to use DBCA that will automatically take care of database initialization file: http://download.oracle.com/docs/cd/E11882_01/server.112/e10897/install.htm#BABEIAID
    Edited by: P. Forstmann on 5 août 2011 12:01

  • I want to connect two itunes accounts.

    Hi i want to connect two itunes accounts. my old one with all my music is on my pc with one email address and i have a newish mac which has a different email account number. how do i move the old accounts music to the new one. thanks kellie

    At this time you can not. Apple IDs can not be merged, and content purchased with one Apple ID can not be transfered to another. I suggest you keep using the original account. There is no need for you to create a new Apple ID for the iTunes Store just because your brought a new computer.

  • I want to connect two pair for earphones to my IPAD at the same time is there a recommended splitter or amplifier I should use?

    I want to connect two pair for earphones to my IPAD at the
    same time is there a recommended splitter or amplifier I should use? 

    tracer took the words out of my mouth.  Doing the search I found this one amongst many others.
    http://store.apple.com/us/product/HA828ZM/A/belkin-audio-splitter-35mm-m2x35mm-f

  • MySQL Database Connection (two databases at the same time)

    I have never had to open more than one MySQL database from within the same website before, but I do now.  The website I have is designed where all the content comes from within the main database.  I am building an Inventory system that I want within it's own database, in the event I would ever need to move the application to another server or something, I don't want this data residing in the main database.
    Currently, I open the database connection from within a file called "common.php" that resides in a directory called "lib" that can be accessed from the root directory.  Below is the proposed code that would be placed within the "common.php" file:
    // Define Database Variables
    $dbserver = "127.0.0.1";
    $dbuser  = array('clevelan_user1', 'clevelan_user2');
    $dbpass  = array('P@ssw0rd', 'P@ssw0rd2');
    $dbname  = array('clevelan_database1', 'clevelan_database2');
    // Start Session
    session_start();
    // Connect to Databases
    connectdb($dbserver, $dbuser[0], $dbpass[0], $dbname[0]);
    connectdb2($dbserver, $dbuser[1], $dbpass[1], $dbname[1]);
    // Database 1 Connection
    function connectdb($dbserver, $dbuser, $dbpass, $dbname) {
    // connects to db
      global $connection;
      $connection = @mysql_connect($dbserver, $dbuser, $dbpass) or die ("could not connect to server");
      $db = @mysql_select_db($dbname, $connection) or die ("could not select databsase");
      return $connection;
    // Database 2 Connection
    function connectdb2($dbserver, $dbuser, $dbpass, $dbname) {
    // connects to db
      global $connection2;
      $connection2 = @mysql_connect($dbserver, $dbuser, $dbpass) or die ("could not connect to server");
      $db2 = @mysql_select_db($dbname, $connection2) or die ("could not select databsase");
      return $connection2;
    //End of Code Within the "common.php"
    From within any page of the website, I want to access both connections by placing an include at the top of each page:
    include_once("lib/common.php");
    Currently, when I run the code above, any page within the website (the home page) provides error messages with regards to database connectivity (the pages are looking for there content from within the second database.  It's as if the second database is the only database seen by the website.
    I need help figuring out how I can have two MySQL databases open at the same time (the second database will only be open for short periods of time and then closed).  But the main database is always open.

    Create one project using one copy of the exact tables.
    create 2 different sessions.xml files each pointing to the same project. Set the login information in the sessions.xml files.
    That should work fine.
    Peter

  • Connect two database in runtime

    I have a application, which will set the JDBC connection once the tomcat load. Then i can get the connection each time. But there are another function in the application, which will insert some data into another database. But I don't know how to load two database connection once the tomcat load or switch to another database base. Thanks for you help.
    In the context.xml. the current setting as belows
    <?xml version="1.0" encoding="UTF-8"?>
    <Context reloadable="true" path="/">
    <Resource auth="Container"
                   driverClassName="oracle.jdbc.OracleDriver"
                   maxActive="15"
                   maxIdle="60"
                   maxWait="8000"
                   name="jdbc/dbdatasource"
                   username="xxx"
                   password="xxx"
                   type="javax.sql.DataSource"
                   url="jdbc:oracle:thin:@(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.100.1)(PORT = 1521))(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.100.2(PORT = 1521))(LOAD_BALANCE = yes))(CONNECT_DATA =(SERVICE_NAME = toc)))"/>
    </Context>
    And when the application get connection, will use the following coding.
    db = new DBAccess(this.getClass());
    public DBAccess(Class sInClass) throws Exception{
    sCallerClassName = sInClass.getName();
    connectDB();
    private void connectDB() throws Exception{
    String sDbName;
    String sDbUser;
    String sDbPasswd;
              try {
              Context initCtx = new InitialContext();
              Context envCtx = (Context) initCtx.lookup("java:comp/env");
              DataSource ds = (DataSource) envCtx.lookup("jdbc/dbdatasource");
              this.oCon = ds.getConnection();
    oSystemLog.debug(" ----- Class " + sCallerClassName + " connection started ----- ");
    } catch (Exception e) {
    oSystemLog.error("",e);
    throw e;
    }

    Configure another Resource entry with a different JNDI name (yours is called "jdbc/dbdatasource") in Tomcat and create a corresponding mapping in your web application's deployment descriptor (the web.xml file).

  • I Want to connect to database . plz help

    dear programmers
    i use forms9i and oracle database 9i under winxp. the database is on the local machine .
    to connect database from the form i do the following:
    1-choose file | connect from the main menue
    2-type scott/tiger then click on connect
    the following message appear
    ORA-12560 TNS :protocol adapter error.
    please i urgently need to connect to database
    please help

    dear Pamela Gamer
    I really thank u for helping me .
    I did the following :
    1- from Start menu,I select Programs > Oracle9i Developer Suite > Forms Developer > Start OC4J Instance. I waited till the window displays a message that OC4J has been initialized, and I minimized the window,and i did not close it.
    2-I opened my form and connected my database successfuly.
    3- when i started to run my form the same message appeared ( frm-10142: the http listener is not running on 127.0.0.1 at port 8888 . please start the listener or check your runtime perference)
    i do not know why it appeared again .i want to know what is the problem . in fact i hardly need to shift to forms9i, but this problem makes me disapointed.
    if you know the solution , please help me
    thank u again for helping me
    tarek

  • Connecting Two database

    I have two Database. One the master databse is Oracle 7.3 and another Oracle 8.06. Now i want to update a field in Oracle 8.06 from Oracle 7.3. These updation also has to be done for the new records created. How i can do.

    May be using create database link!

  • Error while trying to connect to Database using Oracle instantclient

    I have a linux box where i have downloaded"instantclient-basic-linux.x64-11.2.0.3.0.zip". I have unzipped in /opt/instantclient_11_2.
    I am using this as a client in my code for connecting to the oracle 11g database which is in a different server. I have set the below env variables.
    LD_LIBRARY_PATH=/opt/instantclient_11_2
    CLASSPATH=/opt/instantclient_11_2:...
    PATH=/opt/instantclient_11_2:...
    When i run my program i am getting the below error.
    java.sql.SQLException: ORA-12154: TNS:could not resolve the connect identifier specified
    at oracle.jdbc.driver.T2CConnection.checkError(T2CConnection.java:765)
    at oracle.jdbc.driver.T2CConnection.logon(T2CConnection.java:414)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:546)
    at oracle.jdbc.driver.T2CConnection.<init>(T2CConnection.java:162)
    I am trying to connect through a thick client as below.
    Class.forName ("oracle.jdbc.OracleDriver");
                   Connection conn = DriverManager.getConnection("jdbc:oracle:oci8:@hostname_orcl", userid, pwd);
    I have seen in some forums that we need to set $ORACLE_HOME and $TNS_ADMIN env variables as well. But, here i am trying to connect to a remote database. what should i set these variables to as i don't have oracle in my machine??
    Thanks

    looks like you didnt complete the install of the instant client. the ORACLE_HOME and TNS_ADMIN points to the location of the tnsnames if you dont have the full tns string in your jdbc connection string
    https://kb.berkeley.edu/jivekb/entry.jspa?externalID=1826

  • Problem in connecting to database using oracle jdbc thin driver

    hi
    i am trying to connect to a database using oracle thin driver.
    i am getting following error:
    java.sql.sqlexception:Io exception: the network adapter could not establish the connection
    Io exception: the network adapter could not establish the connection
    the connection string has the property of using a dedicated server
    for this reason i have put USE_DEDICATED_SERVER=ON in sqlnet.ora file...
    we did not face this problem while connecting to other databases which do not have the property of dedicated server in their connection string in tnsnames.ora file.
    please suggest a solution for this.
    thanks and regards,
    asif

    If you are using the thin driver, sqlnet.ora does not come into play. None of Oracle networking does. That is one of the great things about using the thin driver, no need to have the client installed.
    That error is due to incorrect connection info you are supplying or the machine you are connection from can't ping the machine it is trying to connect to.

Maybe you are looking for

  • Mobile accounts not syncing at logout

    Hi guys, We are experiencing some synchronisation issues when attempting to use mobile accounts for the first time at our school. Synchronisation is only occurring at login and not at logout even though all options are selected under Rules>Home Sync

  • How do i decrease the Start-Up time of my HP Pavilion m6-1002tx running on Windows 7 64-Bit?

    when i bought it 3 months ago it used to start-up fast but now it takes almost the triple time to start-up also file transfer is slow and background apps take time to load on start-up i use Quick-Heal Antivirus Disk-Cleanup is done once in a fortnigh

  • How to catch a switching of radiobutton in "AT SELECTION-SCREEN"

    Hi, I have a selection screen with 2 radiobuttons in group 001. I need to perform some code when I change a status of particular radiobutton (checked - unchecked). I have a code in AT SELECTION SCREEN ON RADIOBUTTON GROUP 001 but this code is not exe

  • Unknown Apple ID Password requests when Restoring from iCloud

    Hi peeps Background info: iPhone 5 64GB unlocked, iOS 8.2, purchased from iStore new two years ago (not some craigslist special) Has two Apple ID's used on it - my current one from my own country and an old one from when I lived in another country. N

  • Cancellation error of serial number material PGI

    Hi Experts, I got the following error when cancelling the serial management material PGI. 'User status AVAL is active' 'For object EQU 20028943 user status AVAL (1 - Unassigned) is active. According to this status, transaction 'Return to stock' is no