Multi database

I would like to know if its possible i have multi database in same instance. If its possible i would like to know how i create multi database and how i select each databse in same instance.
Thanks in advance

Hi,
One instance can have only one database.
One database only can be mounted on one instance.
However, many instances can access single database in case of Oracle Parellel Server
configuration.
Also, any number of databases can be created
in the same oracle home, each uniquely identified with an instance name ORALCE_SID).
Cheers,
Adithya
null

Similar Messages

  • How to handle and manage a multi Database access in runtime with LCDS?

    Hello there
    I got several customer working with the same application and I wonder how,  with LCDS,  to manage  in a runtime a multi dataBase access; without creating a configuration "mxl" file in
    the folder catalina for each database.
    Indeed, each customer have their own dataBase, and so far, I did not find out how to avoid creating a config xml file in catalina for every single database; which force me to create as well for each customer a  folder application, since the name of the config file in catalina require a folder application to be ran under tomcat....
    Thus, my question is :
    Is there anyway to create only one configuration mxl file in catalina (in the server side) and then from the client side (application) let the user select its environment (meaning its database) to run the application.... this technic can be also used for multi database environment such as : Dev / Test / Prod   environment (or database) where the same application can access to.
    Please if any one have an idea or already delt with; just let me know, because I'm entering in a bootle neck and the situation is getting serioulsy critical....
    Regards

    Hello Ulrich,
    with compact and repair I mean the MSAccess function "Compact and Repair".
    Please follow the link below for more details:
    http://office.microsoft.com/en-us/access-help/compact-and-repair-an-access-file-HP005187449.aspx
    Normally you can execute this function directly in Access or with the Windows ODBC Data Sources Administrator  => "Control Panel" => "Administrative Tools" => "Data Sources (ODBC)"...
     I want to execute this function via cvi code and not by hand ;-).
    Thank you for your support.
    Frank

  • How to handle and Manage Multi DataBase access with LCDS in runtime ?

    Hello there
    I got several customer working with the same application and I wonder how,  with LCDS,  to manage  in a runtime a multi dataBase access; without creating a configuration "mxl" file in
    the folder catalina for each database.
    Indeed, each customer have their own dataBase, and so far, I did not find out how to avoid creating a config xml file in catalina for every single database; which force me to create as well for each customer a  folder application, since the name of the config file in catalina require a folder application to be ran under tomcat....
    Thus, my question is :
    Is there anyway to create only one configuration mxl file in catalina (in the server side) and then from the client side (application) let the user select its environment (meaning its database) to run the application.... this technic can be also used for multi database environment such as : Dev / Test / Prod   environment (or database) where the same application can access to.
    Please if any one have an idea or already delt with; just let me know, because I'm entering in a bootle neck and the situation is getting serioulsy critical....
    Regards

    Hello Ulrich,
    with compact and repair I mean the MSAccess function "Compact and Repair".
    Please follow the link below for more details:
    http://office.microsoft.com/en-us/access-help/compact-and-repair-an-access-file-HP005187449.aspx
    Normally you can execute this function directly in Access or with the Windows ODBC Data Sources Administrator  => "Control Panel" => "Administrative Tools" => "Data Sources (ODBC)"...
     I want to execute this function via cvi code and not by hand ;-).
    Thank you for your support.
    Frank

  • Multi database access in 1 component

    Hi,
    At the moment we're creating general components that look
    like the examples in the CF MX Bible book.
    In these components we've defined an application var that
    contains the database name, so the component could be used by
    multiple websites/application.cfc etc.
    These components are also created in a general folder with
    mappings redirecting to it.
    We're working with some webservices options with the same
    cfc, so we created a website with the home directory as our general
    cfc folder.
    This all looks fine and dandy, but let's say website A uses
    database B and website C uses database D, all nicely defined in the
    application.cfc of those websites.
    And let's say that we've created a webservice from the
    general cfc folder which checks addresses and returns the results,
    if website A and C needs them.
    The problem now is that the webservice website doesn't know
    the application var that contains the database name for website A
    or C.
    I know that the address webservice is not really a good
    example, since you usually just have 1 global address database for
    it, but there are certain situations where website A needs to call
    a webservice that checks a different database than website C.
    I've been thinking of a solution, but I just want to know if
    anyone has done this before or that they can share their idea about
    this.
    Gr,
    Brian

    I'm against the idea of having the datasource as an argument.
    Especially when working with webservices.
    My own idea about it at the moment, is creating an
    application.cfc in the webservices directory and creating the logic
    which database it should select and set the application var with
    it.
    Altho your idea is workable, just a style preference I
    guess.

  • Multi-Database Access

    I am attempting to access four databases with identical structure/tables containing information about data loading
    errors. I wrote a query providing a list of error ids with a count of each, which currently must be run in each database
    separately. A DBA suggested I write a PL/SQL anonymous block procedure with a FOR loop to combine the resultset
    from each database into an overall resultset, but it seems that connectivity would be an issue if I used conventional
    tools such as SQL*Plus or others which require connection to a database before execution of SQL or PL/SQL.
    Is there any sample code or templates which might provide clues on how to implement this requirement?
    Barry

    Have you thought about creating database links in one of the databases to point to the appropriate table(s) in the other three?
    You could then use a UNION to get all the results into a single query.

  • Multi Database Support: TimeQuery setting for non-oracle

    Hello,
    I wanted to develop ADF Application which is database-neutral and thus SQL92 type application.
    I actually wanted to make sure that my application runs fine at least on MySQL DB. Therefore I set up my connection in JDeveloper to Mysql database but I started facing issues while working with it. See this > Re: [ADF-11.1.2] Non Sense Associations and View Links while using Mysql as DB
    Also there's some limitation while working with non-oracle database like : JDeveloper can't recognize primary key column, therefore developer has to manually select primary key attribute in each EO.
    Therefore, I thought to use Oracle DB to overcome from above issues and with Application as SQL92 type.
    Information to share, if applicable to you as well:
    1. database-neutral SQLs: It may not be possible to come up with CREATE TABLE SQL statement which is database-neutral. i.e. You have to modify SQL scripts generated from Oracle Database Model to make it work with other database. This I think is difficult part, but with proper care and with the help of tool, you can achieve the CREATE SQL statements for other database.
    2. Under Model.jpx file of Model project, you can then add your non-oracle Database to test your application with. But make sure you select Oracle Connection while developing/changing Model layer of project << This is again because i think Jdeveloper has some issue with non-oracle Database (mentioned above)
    3. Under bc4j.xcfg file (right click AppModel > Configurations...), you properly set value of "sql92 Db Time Query" (jbo.sql92.DbTimeQuery) property . For e.g. default is "select sysdate from dual" which is compatible to oracle database to fetch the current date from database. However this doesn't work with MySQL. You need to set it as "select now()as CurrentDateTime" if you are using MYSQL. This is require if you are using History Column on EO (I don't know if it is require for other purpose of not!) . Following is the code of bc4j.xcfg, notice "jbo.sql92.DbTimeQuery" property.
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <BC4JConfig version="11.1" xmlns="http://xmlns.oracle.com/bc4j/configuration">
       <AppModuleConfigBag ApplicationName="model.bc.am.AppModule">
          <AppModuleConfig name="AppModuleLocal" DeployPlatform="LOCAL" jbo.project="model.Model" ApplicationName="model.bc.am.AppModule" java.naming.factory.initial="oracle.jbo.common.JboInitialContextFactory">
             <Database jbo.TypeMapEntries="Java" jbo.locking.mode="optimistic" jbo.SQLBuilder="SQL92"
                       jbo.sql92.DbTimeQuery="select now()as CurrentDateTime"/>
             <Security AppModuleJndiName="model.bc.am.AppModule"/>
             <Custom JDBCDataSource="java:comp/env/jdbc/appuser_mysqlDS"/>
          </AppModuleConfig>
          <AppModuleConfig name="AppModuleShared" DeployPlatform="LOCAL" jbo.project="model.Model" ApplicationName="model.bc.am.AppModule" java.naming.factory.initial="oracle.jbo.common.JboInitialContextFactory">
             <AM-Pooling jbo.ampool.isuseexclusive="false" jbo.ampool.maxpoolsize="1"/>
             <Database jbo.TypeMapEntries="Java" jbo.locking.mode="optimistic" jbo.SQLBuilder="SQL92"
                       jbo.sql92.DbTimeQuery="select now()as CurrentDateTime"/>
             <Security AppModuleJndiName="model.bc.am.AppModule"/>
             <Custom JDBCDataSource="java:comp/env/jdbc/appuser_mysqlDS"/>
          </AppModuleConfig>
       </AppModuleConfigBag>
    </BC4JConfig>Note: Point 3 is not mentioned anywhere. Not even here > http://www.oracle.com/technetwork/developer-tools/jdev/mysql-and-bc-howto-082060.html.
    Questions:
    1. How would I make "jbo.sql92.DbTimeQuery" work with other database. It seems I have to hard code the value of it. Can't we externalize it so that we can set it dynamically ?
    2. I am sharing this what I noticed and which is not yet documented (at least I haven't found it anywhere)... please let me know if you are aware of any setting needs to be done which may not be documented ?

    Did you ever find out more information about working with Dates in non-oracle databases?

  • Connecting to multi databases from Oracle Forms

    I am trying to connect to 2 databases from my form. The primary
    connection is to a datbase where reports information(i.e. Report
    name,parameters) is saved. When the form runs and user picks a
    report to run, i want to change connection to a different
    database which reports runs against. I am using Forms6.0 against
    8I database.
    Can any one help ??
    Thanks

    Database links are the only answer if you need distributed
    transactions.
    If you only want to access several different databases without
    transaction coordination between those, then, you may use the
    facilities of the EXEC_SQL built-in package.

  • Run a SQL procedure with multi database querying from Excel

    I'm using SQL Server 2008 Enterprise. I created a procedure in one database. The procedure is composed of several queries to different databases and the final combined result set is being displayed.
    I try to execute it via Excel, so the results will appear automatically in Excel sheet, but I'm getting the error:
    "The query did not run, or the database table could not be opened. Check the database server or contact your DBA. Make sure the external
    database is available and hasn't been moved or recognized, then try the operation again".
    I created a simpler procedure that queries only one database, and the results displayed at the Excel sheet with no issues.
    I suspect that, the original procedure failed due to the fact that I'm querying several databases in the procedure, when in the connection details of the "External Data Properties", only one database is mentioned.
    My question is - can it be solved? Can I use multiple databases in the procedure and see it in the Excel?
    Thanks, Roni

    Use Global Temporary table(##) instead of Local Temporary table(#).
    The scope of the temp table is limited to one database and it dispose automatically when jump to another database.
    No, that is not correct. From where did you get that idea?
    USE tempdb
    go
    CREATE TABLE #a(a int NOT NULL)
    INSERT #a(a) VALUES(9)
    go
    USE master
    go
    SELECT a FROM #a
    go
    USE msdb
    go
    SELECT a FROM #a
    go
    DROP TABLE #a
    And Roni's stored procedure does not even change database.
    ...however, the temp tables may very well be the problem, but for a completely different reason. Excel may ask SQL Server for the shape of the result set before it runs the procedeure, and this does not work with the temp tables. For this reason, using a
    table variable my save the show.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • LEAP @ Multi Database Access

    Can Leap auth against more them one database for a two layer auth?

    You can multiple database as backup
    http://www.cisco.com/en/US/tech/tk722/tk809/technologies_white_paper09186a008009256b.shtml#wp39185

  • Multi database in one computer

    Hello,
    I cloned my database to same computer. The service running as normal.
    But I can not login, I’m getting error no listener, I reconfigured the new Linstener1
    With different port 1522. still same error.
    Any idea?
    Thanks in advance
    Message was edited by:
    user495790

    Well, I thought may be helps. I removed Linstener1 and left default one,
    The first database works fine, I can connect.
    But second one I can’t connect. I’m in process to remove it and recreate. Hope will work this time
    Thanks for your inputs

  • Multi database query

    Is it possible to query two databases at the same time?
    If not is there a workaround for this issue?
    Thanks

    Hi,
    i'm trying to understand your query but i have seen that i have an archive log that for oracle hasn't been transferred but it is already on the standby site. So if i run it (let's say every 10 minutes in a script to check what happens) i always have that this archive has not been transferred.
    Is this right what i'm running?
    SELECT name,sequence#
    FROM v$archived_log
    WHERE standby_dest = 'NO'
    AND sequence#
    NOT IN (SELECT sequence#
    FROM v$archived_log
    WHERE standby_dest = 'YES')
    AND sequence# >
    (SELECT min(sequence#)
    FROM v$archived_log
    WHERE standby_dest = 'YES');
    About what i'm doing is as i told you run the gapcheck on the standby site, if there's a check stop managed, copy the file from primary (with rcp) apply it and the go back to managed.
    Do you know a way that if the archiving fails on the standby site sends a message, email or something so that we are awared of what's happening?

  • Need help with multi database query.

    Hello,
    I am working on a query between multiple databases to be view on a web app.  We have multiple web apps and we are integrating some functionality between them all into one page. 
    The data will be for a delegate someone sets for themselves (they can have more then one also).  I need a way to pull the data view it as follows.
    User, UserNumber, DelegateName, ForApp, ForApp, ForApp, ForApp, ForApp, ForApp
    I have had no problem pulling the delegates themselves and which apps they are a delegate for,  but not which person they are the delegate for.
    SELECT DISTINCT
    dbo.Employee.Position_Num AS Delegate_Position, dbo.Employee.Name AS [Delegate Name],
    (CASE WHEN Hierarchy.dbo.Employee.Position_Num = CVI_Delegate.Delegate THEN 1 ELSE 0 END) AS For_CVI,
    (CASE WHEN Hierarchy.dbo.Employee.Position_Num = Travel_Delegate.Delegate THEN 1 ELSE 0 END) AS For_Travel,
    (CASE WHEN Hierarchy.dbo.Employee.Position_Num = Dept_Deposits_Delegate.Delegate THEN 1 ELSE 0 END) AS For_DeptDeposit,
    dbo.OKCorral_Delegate.For_UserRoles AS For_OkCorralUR, dbo.OKCorral_Delegate.For_FiscalApprover AS For_OkCorralFA,
    (CASE WHEN Hierarchy.dbo.Employee.Position_Num = Reqs_Delegate.Delegate THEN 1 ELSE 0 END) AS For_Reqs
    FROM dbo.Employee LEFT OUTER JOIN
    Reqs.dbo.Delegate AS Reqs_Delegate ON dbo.Employee.Position_Num = Reqs_Delegate.Position LEFT OUTER JOIN
    DeptDeposits.dbo.Delegate AS Dept_Deposits_Delegate ON dbo.Employee.Position_Num = Dept_Deposits_Delegate.Position LEFT OUTER JOIN
    CVI.dbo.Delegate AS CVI_Delegate ON dbo.Employee.Position_Num = CVI_Delegate.Position LEFT OUTER JOIN
    dbo.OKCorral_Delegate ON dbo.Employee.Position_Num = dbo.OKCorral_Delegate.Position LEFT OUTER JOIN
    Travel.dbo.Delegate AS Travel_Delegate ON dbo.Employee.Position_Num = Travel_Delegate.Position
    This query works fine.  The problem I run into is I have to use the same Employee table to get the EmployeeName and Number
    Which will be used for both the person and the delegate.  Any ideas will be a great help.  It had been suggested I use a procedure to accomplish this, but I have no idea where to start that at.  I also have tried a nested sbu-query but since
    a person can have more then one delegate for an app,  this through errors.  Thanks.
    George Fields

    Ok,  here are the tables Travel Application Database/Delegate Table
    INSERT INTO [Travel].[dbo].[Delegate]
    ([Position]
    ,[Delegate]
    ,[StartDate]
    ,[EndDate]
    ,[CreateDate]
    ,[EditDate])
    VALUES
    (<Position, char(6),>
    ,<Delegate, char(6),>
    ,<StartDate, datetime,>
    ,<EndDate, datetime,>
    ,<CreateDate, datetime,>
    ,<EditDate, datetime,>)
    GO
    Requistions Application /Table Delegates
    INSERT INTO [Reqs].[dbo].[Delegate]
    ([Position]
    ,[Delegate]
    ,[StartDate]
    ,[EndDate]
    ,[CreateDate]
    ,[EditDate])
    VALUES
    (<Position, char(6),>
    ,<Delegate, char(6),>
    ,<StartDate, datetime,>
    ,<EndDate, datetime,>
    ,<CreateDate, datetime,>
    ,<EditDate, datetime,>)
    GO
    Heirarchy Database for Purchasing Application / Delegates Table
    INSERT INTO [Hierarchy].[dbo].[OKCorral_Delegate]
    ([Dept_Campus]
    ,[For_DeptNum]
    ,[Position]
    ,[Delegate]
    ,[StartDate]
    ,[EndDate]
    ,[CreateDate]
    ,[EditDate]
    ,[For_FiscalApprover]
    ,[For_UserRoles])
    VALUES
    (<Dept_Campus, char(2),>
    ,<For_DeptNum, char(5),>
    ,<Position, char(6),>
    ,<Delegate, char(6),>
    ,<StartDate, datetime,>
    ,<EndDate, datetime,>
    ,<CreateDate, datetime,>
    ,<EditDate, datetime,>
    ,<For_FiscalApprover, bit,>
    ,<For_UserRoles, bit,>)
    GO
    Heirarchy Database / Employee Table
    INSERT INTO [Hierarchy].[dbo].[Employee]
    ([Dept_Num]
    ,[Position_Num]
    ,[Email]
    ,[Name]
    ,[Campus]
    ,[CWID]
    ,[Student]
    ,[Employee]
    ,[OPID]
    ,[Gender]
    ,[Birth_Date])
    VALUES
    (<Dept_Num, char(5),>
    ,<Position_Num, char(6),>
    ,<Email, varchar(75),>
    ,<Name, varchar(150),>
    ,<Campus, char(2),>
    ,<CWID, varchar(16),>
    ,<Student, char(1),>
    ,<Employee, char(1),>
    ,<OPID, char(4),>
    ,<Gender, char(1),>
    ,<Birth_Date, char(8),>)
    GO
    The other two databases also have a delegate table similar to the ones above.  As you can see all information about an employee is linked by their position number in the Employee Table.
    The Position Number is used in the Position field and Delegate field of all the Delegate tables.
    I am needing to pull an employee (actually all of them) List them and then show delegates for them by which applications the delegate holds permissions too. Which is the purpose of the delegate.  So a delegate may only be a delegate for one application
    or multiple which is why I am pulling from multiple databases.
    George Fields

  • Transaction on multi-database

    Hello I'm developing standalone application from jdbc but i stucked on one thing.
    Can we use transaction method for two databases.?
    I've two database one at server and one at local.
    And i'm tring to INSERT a row in both database by using transaction method.
    But i think it's complex to do that.
    I tried to google but didn't find any solution for my standalone application.

    hello ejp,
    I've tried this code but don't have idea if it is in correct order.
    A Sample Code
    getConnection1().setAutoCommit(false);
    getConnection2().setAutoCommit(false);
    getConnection3().setAutoCommit(false);
    String SQL ="INSERT INTO TABLE1 VALUES('TEST')";
    PreparedStatement ps1 = getConnection1().prepareStatement(SQL);
    ps1.executeUpdate();
    PreparedStatement ps2 = getConnection2().prepareStatement(SQL);
    ps2.executeUpdate();
    PreparedStatement ps3 = getConnection3().prepareStatement(SQL);
    ps3.executeUpdate();
    ps1.commit();
    ps2.commit();
    ps3.commit();
    getConnection1().setAutoCommit(true);
    getConnection2().setAutoCommit(true);
    getConnection3().setAutoCommit(true);The SQL executes on sequence.
    I 'm unable to execute all the SQL at once.
    Should I need to modify my codes?

  • Cache connect to multi instance

    Hi all,
    By seeing previous forum lists, I found that TimesTen's one Data Store can cache connect to one Oracle instance.
    Does TimesTen has a plan to support for multi database instance in upcoming verions?
    And.. let say that i made data store for each Oracle database instance. Can I refer to each data store in the query as db link?
    Best regards,
    Yu-Mi

    There are no current plans to allow a single TT cache datastore to cache data from multiple Oracle databases.
    TimesTen does not currently support anything like DB links and there are no plans to do so. Each datastore is a separate entity and queries and transactions cannot span datastores.
    Sorry.
    Chris

  • Distributed database environment

    In my one Jheadstart project, it will meet distributed database environment, that is some one project's application data be located in different oracle database .
    How to treat this situation, about in one project to handle distributed database environment ?
    Is the jheadstart support multi database connection ?
    or need through database link capacity to fulfill !

    Ting Rung,
    There is at least one thing that you might run into, and that is the issue of transaction management. An application module represents a 'data model' for a tak that is accomplished within one transaction. You can nest application modules, but even then will the top-level application module provide the transaction context.
    This means that all data that necessarily needs to be persisted in one transaction, needs to be represented by the same (hierarcy of) application module(s) and therefore must come from the same data source (database). Said in other words: when the customers are in one database and the orders in another, you cannot persist them in one and the same transaction.
    There are more issues related to distributed applications. I have no experience with that, so I cannot comment on that. I do know that many distributed enterprise applications make use of EJB technology. BC4J supports entity beans (to be compared with entity and view objects). It also knows EJB application modules that behave like session beans. JHeadstart does not support using EJBs, however.
    For further information about the support for EJB technology, I would like to refer you to the online help of JDeveloper.
    Jan Kettenis
    JHeadstart Team

Maybe you are looking for

  • 9.3.1 to 11.1.1

    hi, As my company has decided to take IE8 so as recommended by oracle IE8 dont work with Hyperion 9.3.1 so we have to move to 11 can u guys tell me how to migrate or how to update Even tho i have i solution for that bindows but i like to learn 11 as

  • PDF attachment in MAIL when report generate

    Hi, i have following problem: I have form "Students, with parameters. In form is Print button which creates report and prints it . I need to make new button, which would acted following when button is pressed : "could just launch the creation of the

  • PSE 6 Blank welcome screen and nothing else

    Started suddenly, no issues previously. Installed on an iMac running 10.5.8. Blank welcome screen and nothing else. Tried reinstalling... nothing is working.... help!

  • AUC from Investment measure can't settle to the completed asset partially.

    Dear. I using IM module and AUC which made from Investment measure. and I post cost to Investment order and settle to AUC periodically. Some amount In nvestment order should be tranfer to the completed asset. so remained amount in that should be keep

  • What is the best way to read high rate serial data?

    My goal is to read 14 bytes of binary data from an instrument over RS232 serial (baud 460800) at 2000 Hz. I have not gotten a high speed serial card yet so I am currently using the standard serial port (115200 baud) and reading at 400 Hz. I configure