Multiple databases on backup

I grabbed a backup script that was posted about here and it seems to work ok (once i told it to use bash instead of ksh) if I've got the ORACLE_SID defined, but I've got two instances of oracle running on my server and I need to backup both databases. Is there any way to back both up without setting the ORACLE_SID?
This is Oracle 8i 8.1.6 on Redhat 6.2.
I'm wondering if I'll have to somehow loop the script and change the SID at each revolution.
comments? a better solution? please let me know.
Allen
null

Try parameterising the script and calling it from cron, passing in the SID
Alternatively you can ps -ef | grep ora_dbw and parse the returned list to derive the SID, using this as the list to backup.
HTH
Andy

Similar Messages

  • T-SQL: Manual Backup of Multiple Databases

    I am looking to change the way I do manual backups of multiple databases on the same instance of SQL Server 2008 R2.
    Currently I have T-SQL scripts for each database that look like this:
    BACKUP DATABASE [mydbname]
    TO DISK = N'D:\backup\manual\2014-01-01_1618\mydbname_2014-1-01_1618.bak'
    WITH NOFORMAT,
    NOINIT,
    NAME = N'mydbname-Full Database Backup',
    SKIP,
    NOREWIND,
    NOUNLOAD,
    STATS = 10
    GO
    But there are six of these scripts, one for each database. Now in another language and my past programming experience I would just use an array of database names and a loop, so that BACKUP DATABASE would only exist once in the script, but be executed multiple
    times, once for each database name in the array.
    I have such a very limited understanding of T-SQL, but I am guessing there is a completely different paradigm for the equivalent of, say, a for loop.
    I'd also like a solution where the date_time directory for the output of each backup to be dynamically generated. Instead of having to pre-create the dirs myself.
    Any help would be appreciated.

    I don't understand why you haven't been answered directly considering the simplicity of the question you are asking.  Maybe it's because I'm the only truly "old school" DBA left.  I don't use the GUI based maintenance or performance tools included
    with SQL Server not because I'm "old school" but because every time I've tried the results have been mediocre at best and in an environment where critical data is on the line mediocre doesn't cut it.
    Since I've had this type of tool in my "tool box" for more than a decade allow me to share what I typically do in this type of situation...
    declare @DatabaseName nvarchar(50),
    @DynamicSQL nvarchar(4000),
    @FileNameDate nvarchar(18)
    declare Database_Cursor
    cursor fast_forward for
    select d.name
    from sys.databases as d
    where d.name in ('MyDB1', 'MyDB2', 'MyDB3', 'MyDB4', 'MyDB5', 'MyDB6')
    open Database_Cursor
    fetch next
    from Database_Cursor
    into @DatabaseName
    while @@fetch_status = 0
    begin
    set @FileNameDate = cast(year(getdate()) as varchar(4)) + '-' +
    right('00' + cast(month(getdate()) as varchar(2)), 2) + '-' +
    right('00' + cast(day(getdate()) as varchar(2)), 2) + '_' +
    right('00' + cast(datepart(hour, getdate()) as varchar(2)), 2) +
    right('00' + cast(datepart(minute, getdate()) as varchar(2)), 2)
    set @DynamicSQL = '
    BACKUP DATABASE ' + quotename(@DatabaseName) + '
    TO DISK = N''D:\backup\manual\' + @FileNameDate + '\' + @DatabaseName + '_' + @FileNameDate + '.bak''
    WITH NOFORMAT,
    NOINIT,
    NAME = N''' + @DatabaseName + '-Full Database Backup'',
    SKIP,
    NOREWIND,
    NOUNLOAD,
    STATS = 10'
    print @DynamicSQL
    --execute sp_executesql
    -- @DynamicSQL
    fetch next
    from Database_Cursor
    into @DatabaseName
    end
    close Database_Cursor
    deallocate Database_Cursor
    There are two items you need to change in the above script to make it do precisely what you are asking...
    This should be obvious but you need to change the where clause in the cursor definition to include the 6 databases you want o backup instead of leaving it as "where d.name in ('MyDB1', 'MyDB2', 'MyDB3', 'MyDB4', 'MyDB5', 'MyDB6')"
    I've commented out two lines of code in the script.  Those lines actually run the backup statements which are built by the cursor.  The lines I'm referring to begin with the "execute sp_executesql" statement.  I've commented those lines out
    because you'll need to test the code prior to using it.  The code as designed will output the backup statements it procedures allowing you to verify it.
    I hope that helps.

  • RMAN backup multiple database on multiple hosts using recovery catalog

    I would like to know if I create one schema called "rman" is enough for repository for backing up multiple database on multiple machines using recovery catalog.
    Or is there any better way to handle for reporting peposes.
    Quick response is appreciated.
    OS Solairs9.
    Oracle 9i.
    Thanks.
    Srini

    This worked perfectly fine except for putting sbt in single quotes.
    See the reults below.
    You are just great Daljith.
    Thanks and I do appreciate your help.
    Still you did not answe my question.
    How come I see backups from June and May even though they are from
    diffierent catalog database?
    RMAN> allocate channel for maintenance device type 'sbt';
    allocated channel: ORA_MAINT_SBT_TAPE_1
    channel ORA_MAINT_SBT_TAPE_1: sid=9 devtype=SBT_TAPE
    channel ORA_MAINT_SBT_TAPE_1: VERITAS NetBackup for Oracle - Release 5.0GA (200)
    RMAN> crosscheck backup;
    crosschecked backup piece: found to be 'EXPIRED'
    backup piece handle=bk_2_1_624018818 recid=1 stamp=624018818
    crosschecked backup piece: found to be 'EXPIRED'
    backup piece handle=bk_1_1_624018817 recid=2 stamp=624018818
    crosschecked backup piece: found to be 'EXPIRED'
    backup piece handle=bk_3_1_624019733 recid=3 stamp=624019733
    crosschecked backup piece: found to be 'EXPIRED'
    backup piece handle=al_5_1_624020641 recid=4 stamp=624020642
    crosschecked backup piece: found to be 'EXPIRED'
    backup piece handle=al_4_1_624020641 recid=5 stamp=624020642
    crosschecked backup piece: found to be 'EXPIRED'
    backup piece handle=al_6_1_624020677 recid=6 stamp=624020677
    crosschecked backup piece: found to be 'EXPIRED'
    backup piece handle=bk_8_1_624115253 recid=7 stamp=624115253
    crosschecked backup piece: found to be 'EXPIRED'
    backup piece handle=bk_7_1_624115252 recid=8 stamp=624115253
    crosschecked backup piece: found to be 'EXPIRED'
    backup piece handle=bk_9_1_624116161 recid=9 stamp=624116161
    crosschecked backup piece: found to be 'EXPIRED'
    backup piece handle=al_11_1_624117067 recid=10 stamp=624117068
    crosschecked backup piece: found to be 'EXPIRED'
    backup piece handle=al_10_1_624117067 recid=11 stamp=624117068
    crosschecked backup piece: found to be 'EXPIRED'
    backup piece handle=bk_13_1_624365687 recid=12 stamp=624365687
    crosschecked backup piece: found to be 'EXPIRED'
    backup piece handle=bk_12_1_624365686 recid=13 stamp=624365687
    crosschecked backup piece: found to be 'EXPIRED'
    backup piece handle=bk_14_1_624366605 recid=14 stamp=624366605
    crosschecked backup piece: found to be 'EXPIRED'
    backup piece handle=al_16_1_624367501 recid=15 stamp=624367502
    crosschecked backup piece: found to be 'EXPIRED'
    backup piece handle=al_15_1_624367501 recid=16 stamp=624367502
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=bk_22_1_628264333 recid=17 stamp=628264333
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=bk_21_1_628264333 recid=18 stamp=628264333
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=bk_23_1_628265249 recid=19 stamp=628265249
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=c-2926506834-20070718-00 recid=20 stamp=628266151
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=al_26_1_628266195 recid=21 stamp=628266196
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=al_25_1_628266195 recid=22 stamp=628266196
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=c-2926506834-20070718-01 recid=23 stamp=628266233
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=bk_29_1_628267004 recid=24 stamp=628267004
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=bk_28_1_628267004 recid=25 stamp=628267004
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=bk_30_1_628267919 recid=26 stamp=628267920
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=c-2926506834-20070718-02 recid=27 stamp=628268832
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=al_32_1_628268875 recid=28 stamp=628268876
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=al_33_1_628268875 recid=29 stamp=628268876
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=c-2926506834-20070718-03 recid=30 stamp=628268913
    Crosschecked 30 objects
    RMAN> delete expired backup;
    List of Backup Pieces
    BP Key BS Key Pc# Cp# Status Device Type Piece Name
    11820 11804 1 1 EXPIRED SBT_TAPE bk_2_1_624018818
    11821 11805 1 1 EXPIRED SBT_TAPE bk_1_1_624018817
    11822 11806 1 1 EXPIRED SBT_TAPE bk_3_1_624019733
    11823 11807 1 1 EXPIRED SBT_TAPE al_5_1_624020641
    11824 11808 1 1 EXPIRED SBT_TAPE al_4_1_624020641
    11825 11809 1 1 EXPIRED SBT_TAPE al_6_1_624020677
    11826 11810 1 1 EXPIRED SBT_TAPE bk_8_1_624115253
    11827 11811 1 1 EXPIRED SBT_TAPE bk_7_1_624115252
    11828 11812 1 1 EXPIRED SBT_TAPE bk_9_1_624116161
    11829 11813 1 1 EXPIRED SBT_TAPE al_11_1_624117067
    11830 11814 1 1 EXPIRED SBT_TAPE al_10_1_624117067
    11831 11815 1 1 EXPIRED SBT_TAPE bk_13_1_624365687
    11832 11816 1 1 EXPIRED SBT_TAPE bk_12_1_624365686
    11833 11817 1 1 EXPIRED SBT_TAPE bk_14_1_624366605
    11834 11818 1 1 EXPIRED SBT_TAPE al_16_1_624367501
    11835 11819 1 1 EXPIRED SBT_TAPE al_15_1_624367501
    Do you really want to delete the above objects (enter YES or NO)? y
    deleted backup piece
    backup piece handle=bk_2_1_624018818 recid=1 stamp=624018818
    deleted backup piece
    backup piece handle=bk_1_1_624018817 recid=2 stamp=624018818
    deleted backup piece
    backup piece handle=bk_3_1_624019733 recid=3 stamp=624019733
    deleted backup piece
    backup piece handle=al_5_1_624020641 recid=4 stamp=624020642
    deleted backup piece
    backup piece handle=al_4_1_624020641 recid=5 stamp=624020642
    deleted backup piece
    backup piece handle=al_6_1_624020677 recid=6 stamp=624020677
    deleted backup piece
    backup piece handle=bk_8_1_624115253 recid=7 stamp=624115253
    deleted backup piece
    backup piece handle=bk_7_1_624115252 recid=8 stamp=624115253
    deleted backup piece
    backup piece handle=bk_9_1_624116161 recid=9 stamp=624116161
    deleted backup piece
    backup piece handle=al_11_1_624117067 recid=10 stamp=624117068
    deleted backup piece
    backup piece handle=al_10_1_624117067 recid=11 stamp=624117068
    deleted backup piece
    backup piece handle=bk_13_1_624365687 recid=12 stamp=624365687
    deleted backup piece
    backup piece handle=bk_12_1_624365686 recid=13 stamp=624365687
    deleted backup piece
    backup piece handle=bk_14_1_624366605 recid=14 stamp=624366605
    deleted backup piece
    backup piece handle=al_16_1_624367501 recid=15 stamp=624367502
    deleted backup piece
    backup piece handle=al_15_1_624367501 recid=16 stamp=624367502
    Deleted 16 EXPIRED objects
    RMAN> list backup summary;
    List of Backups
    ===============
    Key TY LV S Device Type Completion Time #Pieces #Copies Tag
    11895 B F A SBT_TAPE 18-JUL-07 1 1 HOT_DB_BK_LEVEL0
    11896 B F A SBT_TAPE 18-JUL-07 1 1 HOT_DB_BK_LEVEL0
    11897 B F A SBT_TAPE 18-JUL-07 1 1 HOT_DB_BK_LEVEL0
    11916 B F A SBT_TAPE 18-JUL-07 1 1
    11926 B A A SBT_TAPE 18-JUL-07 1 1 TAG20070718T142315
    11927 B A A SBT_TAPE 18-JUL-07 1 1 TAG20070718T142315
    11935 B F A SBT_TAPE 18-JUL-07 1 1
    11939 B F A SBT_TAPE 18-JUL-07 1 1 HOT_DB_BK_LEVEL0
    11940 B F A SBT_TAPE 18-JUL-07 1 1 HOT_DB_BK_LEVEL0
    11941 B F A SBT_TAPE 18-JUL-07 1 1 HOT_DB_BK_LEVEL0
    11960 B F A SBT_TAPE 18-JUL-07 1 1
    11970 B A A SBT_TAPE 18-JUL-07 1 1 TAG20070718T150755
    11971 B A A SBT_TAPE 18-JUL-07 1 1 TAG20070718T150755
    11977 B F A SBT_TAPE 18-JUL-07 1 1
    RMAN>
    Message was edited by:
    user539835

  • Discoverer Reporting Solution for Multiple Databases

    I have to build oracle discoverer reports (single point of access) for four different applications. Each application is having separate databases. So whether i should create separate EULs for each applications (in respective databases) or Should i create a single EUL in any one of the databases and then use db links to connect rermaining databases (for reports from the other applications).
    Can u suggest me which method will work good if you see the performace?. I need a dingle point of access for all the discoverer reports.
    The worksheets need to be deployed with oracle portal for access of reports in a single click. Is there any way to pre configure the db credentila for each worksheet...?

    Hi
    My replies below make the assumption that you are not allowed to do any ETL and therefore the data from each database has to be pulled as is. If you do have ETL capability the situation changes dramatically.
    In addition to what Sharon has said the cost based optimiizer will have a difficult job rewriting your query efficiently if you use database links, and if you attempt to have queries with some tables from one database and some from another the optimizer will not work at all. I mean. How could it? How could the optimzier in database A know anything about the statistics in databases B, C or D? Wherever the EUL is, that is where the driving optimizer will be so choose wisely obi-wan :-)
    For me it's more about user needs than IT needs. If the business has a need to combine data from multiple databases then having a single EUL with database links would be a necessity. However, if they really are disparate systems with nothing in common such as say having Peoplesoft HR in one and E-Busines Suite Inventory in another with perhaps an in-house tracking system in another then I would look at having separate EULs, one in each.
    Having one EUL across non-related systems means you have to mix users and roles and can be hard to manage. It actually becomes messy when just two databases are involved never mind four. So even though you might think it is more difficult to maintain 4 EULs, if the objects really are different and you have differing roles and usernames it actually will probably be simpler. They will be simpler to backup, simpler for exporting and importing and it will be faster for Discoverer to maintain workbooks as there will be fewer of them. Plus your system will have access to its local optimzier thereby ensuring the SQL is efficient.
    If you are going to use one EUL you need to start out on a sound foundation. This means using libraries to control access too business areas and workbooks. You'll need to adopt some simple naming standards to keep things separate and manageable. I wrote a paper about libraries a few years ago and it is available free of change here on my website: http://ascbi.com/downloads.htm. The paper is called Discoverer Libraries - a Concept.
    Best wiishes
    Michael

  • Multiple database members in a single Grid Row

    Hi All,
    I have created an FR report (9.3x) and getting the below error while trying to run the report via Web Preview.
    5217: Error Processing Results;hasPovDims=1;povXML=<?xml version="1.0"?><datasources><datasource name="FIN QA" dsid="-117fcde3_132fd17f2f6_-771b" allowEdit="1"><dim name="Versions" dimIndex="0" dsName="FIN QA" keyDimName="Versions" memberName="Versions" displayName="Versions: Versions"/><dim name="Scenarios" dimIndex="4" dsName="FIN QA" keyDimName="Scenarios" memberName="Scenarios" displayName="Scenarios: Scenarios"/><dim name="Components" dimIndex="5" dsName="FIN QA" keyDimName="Components" memberName="Components" displayName="Components: Components"/><dim name="Customers" dimIndex="6" dsName="FIN QA" keyDimName="Customers" memberName="Customers" displayName="Customers: Customers"/><dim name="Assets" dimIndex="7" dsName="FIN QA" keyDimName="Assets" memberName="Assets" displayName="Assets: Assets"/></datasource><datasource name="FINDEF QA" dsid="-607fb334_128b79d246e_-7d0a" allowEdit="1"><dim name="Time Periods" dimIndex="1" dsName="FINDEF QA" keyDimName="Time Periods" memberName="Time Periods" displayName="Time Periods: Time Periods"/><dim name="Scenario" dimIndex="3" dsName="FINDEF QA" keyDimName="Scenario" memberName="SC_Actual" displayName="Scenario: SC_Actual"/><dim name="Versions" dimIndex="4" dsName="FINDEF QA" keyDimName="Versions" memberName="VR_Input_Version" displayName="Versions: VR_Input_Version"/><dim name="Customers_Region" dimIndex="6" dsName="FINDEF QA" keyDimName="Customers_Region" memberName="CU_NA" displayName="Customers_Region: CU_NA"/><dim name="Assets" dimIndex="7" dsName="FINDEF QA" keyDimName="Assets" memberName="Assets_NA" displayName="Assets: Assets_NA"/></datasource></datasources>
    In my report I have selected 2 rows where I have selected @descendants of ccounts from one database which is FIN QA and in the second row I have selected @children of Accounts from another database which is FINDEF QA. I am using only ONE GRID here.
    Is it not possibe to run a FR report by select members from multiple databases in a single grid??
    Please have your valuable inputs.

    Yes it possible to retrive data from multiple database using single grid.
    Also there are few limitations namely:
    Database connections must be of the same type (for example, both must be Essbase database connections or both must be Financial Management database connections).
    Mismatched number of dimensions in the database connections may cause retrieval errors.
    For more details refer to this link for details:-
    http://www.oracle.com/technetwork/middleware/financial-management/tutorials/obe-multipledbs-086586.html
    Cheers
    Vikas Naidu

  • Use 1 listener for multiple database in a server

    hi guys,
    just want to check whether this is the right way to configure my Listener.ORA . I am using 1 listener.ora to listen for incoming request connection from remote client. There are multiple databases installed in a server.
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = ora03)(PORT = 1521))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = O11R2)
    (ORACLE_HOME = /oracle/app/oracle/product/11.2.0/db_1)
    (SID_NAME = O11R2)
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = O10G)
    (ORACLE_HOME = /oracle/app/oracle/product/10.2.0/db_1)
    (SID_NAME = O10G)
    )sorry i am reading about it so did not install another database to test out. Just thinking in the line that it mention that the list of SID is refering to the multiple database that is installed in a server and i am using 1 listener.
    Please further advice.

    Shivananda Rao wrote:
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = ora03)(PORT = 1521))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = O11R2)
    (ORACLE_HOME = /oracle/app/oracle/product/11.2.0/db_1)
    (SID_NAME = O11R2)
    (SID_DESC =
    (GLOBAL_DBNAME = O10G)
    (ORACLE_HOME = /oracle/app/oracle/product/10.2.0/db_1)
    (SID_NAME = O10G)
    )Please use as above. You can have one listener for multiple databases.right right so it the pattern goes like this:
    SID_LIST_LISTENER =
         (SID_LIST =
              (SID_DESC =
              (GLOBAL_DBNAME = AAAA)
              (ORACLE_HOME = /oracle/app/oracle/product/11.2.0/db_1)
              (SID_NAME = AAAA)
              (SID_DESC =
              (GLOBAL_DBNAME = BBBB)
              (ORACLE_HOME = /oracle/app/oracle/product/10.2.0/db_1)
              (SID_NAME = BBBB)
         )thanks !

  • Multiple databases in one file: a small snafu

    Hello everyone,
    Opening multiple databases in a single file is an administrative convenience. It is well explained in the manual (see db/docs/ref/am/opensub.html). Normally, there is little difference between databases in their own physical files or grouped together in a single physical file. There is one small sentence in the manual that says the following:
    (begin fragment)
    However, since multiple databases in a file exist in a single physical file, opening two databases in the same file simultaneously requires locking be enabled unless all of the handles are read-only. As the locks for the two databases can only conflict during page allocation, this additional locking is unlikely to affect performance.
    (end fragment).
    I didn't pay attention to it, except the "unlikely to affect performance" part which told me that I wasn't to worry about it. The sun was shining. Life was good.
    And I was wrong. It was one of those "epic bug quests" I had to embark on, only to realise that it may not be a BDB bug, but my carelessnes. Nevertheless, I'm left with an uneasy feeling which I would like to explain here.
    Consider BDB configured as a concurrent data store.
    There are 2 threads. The first thread has the following pseudocode:
    cursor1 = db1->cursor(...)
    while(cursor1->c_get(... DB_NEXT...))
    // 1
    cursor2 = db2->cursor(...)
    while(cursor2->c_get(... DB_NEXT...))
    The second thread does only the following:
    db3->put(...)
    db1, db2 and db3 are all distinct databases. All cursors are read-only (the cursor implicitly used in db3->put is of course a write cursor).
    While the first thread is running, the second thread executes db3->put(...) at "//1".
    Question: what happens?
    Answer 1: if db1, db2 and db3 reside in different physical files, nothing special happens. Everything proceeds as it should.
    Answer 2: if db1, db2 and db3 reside in the same physical file, both threads block "sometimes".
    The "sometimes" used here means "when the put operation in thread 2 needs to allocate a new page".
    Reading the BDB source code is extraordinarily difficult (which says more about my limitations than about the clarity of the code) but here is what happens, as far as I could determine:
    (thread 1) cursor1 needs and acquires a read lock on db1
    (thread 2) db3->put needs a write lock on db2 to allocate a new page. Since db2 is in the same physical file as db1 and thread 1 already has a read lock, thread 2 waits until the read lock is released. Thread 2 blocks.
    (thread 1) cursor 2 needs a read lock on db3. For some reason, BDB detects that the another thread is waiting for a write lock on the physical file, and thread 1 blocks.
    Both threads block waiting on each other to complete.
    I suppose the system is the way it is to avoid starvation, but there you have it: be careful when you're lumping together multiple databases in one file!
    Anyone who can clarify or confirm this is welcome.
    Vincent

    I had experienced a similar problem. I run multiple process. Each one of them starts a transaction that does db->put and db->pget to its own database (which also has a secondary index). When each database is in a separate physical file there is no problem but when I put all databases in a single file the processes start to dead-lock.
    The following combination of options solved the deadlocking problem:
    - use serializable isolation level instead of snapshot, i.e. do not pass DB_TXN_SNAPSHOT to txn_begin
    - do not pass the DB_NO_WAIT option to txn_begin
    - use Btree instead of a Hash
    Hope that helps.

  • Can you have multiple databases on the same LUN in Exchange 2010?

    I'm sure you can but is it possible with exchange 2010 to have multiple databases on the same LUN.  We currently have 8 DB's all writing to their own DB drive and separate log drive so 16 drives in total.  I need to spin a new DB up this week and
    wanted to double check this is possible.  I've looked online and cant find anything that I've seen before that says this is possible.
    Thanks.

    Hi,
    Yes, multiple databases could be placed on the same LUN, but it's not recommended.
    If you have 2 drives fail at the same time (it happens more than you think), then losing 100% of your DBs is a lot worse than losing one of them or some of them depending on where the failures are.
    Here is a similar thread for your reference:
    Multiple databases on the same LUN in Exchange 2010
    Hope this helps!
    Thanks.
    Niko Cheng
    TechNet Community Support

  • How to access multiple database present in single instance

    Hi Team,
    In oracle 11.2, can there be multiple databases in an instance???  In one of our environment, I could see multiple databases in an instance. Could you please help me in giving the data dictionary or query to access those databases?
    Actually, querying v$database, I could see only one database which is same as instance name. But in inventory, there are multiple database in an instance?
    I am still not exactly clear about this. Can someone help me with this?
    Thanks!
    Vidhya

    In Oracle one instance manages one (1) database. A database consists of multiple *schemas*.
    Other vendors erroneously call a schema 'database'.
    So, no, you didn't see multiple databases.
    There is also one datadictionary, consisting of a set of views.
    All views beginning with dba_  list the entire database, all schemas.
    All views beginning with all_ list the objects you have access to.
    All views beginning with user_ list your own objects.
    The view DICT show you the contents of the datadictionary.
    Oracle also has online documentation at http://docs.oracle.com
    From your question it is clear you should read the document called the 'Oracle Concepts Manual'.
    You can find all documentation for 11gR2 here Oracle Database Online Documentation 11g Release 2 (11.2)
    Too many people here don't make any effort to read it. This is probably the reason why you got no response.
    Sybrand Bakker
    Senior Oracle DBA

  • TDE Wallets & Multiple Databases on same Host

    The Oracle TDE Best Practices (doc ID 130696) states this:
    Multiple databases on the same host
    If there are multiple Oracle Databases installed on the same server, they
    must access their own individual TDE wallet. Sharing the same wallet between independent instances is not supported
    and can potentially lead to the loss of encrypted data.
    If the databases share the same ORACLE_HOME, they also share the same
    sqlnet.ora file in $TNS_ADMIN . In order to access their individual wallet, the
    DIRECTORY entry for the ENCRYPTION_WALLET_LOCATION
    needs to point each database to its own wallet location:
    DIRECTORY= /etc/ORACLE/WALLETS/$ORACLE_UNQNAME
    The names of the subdirectories under /etc/ORACLE/WALLETS/ reflect
    the ORACLE_UNQNAME names of the individual databases.
    If the databases do not share the same ORACLE_HOME, they will also have their individual sqlnet.ora
    files that have to point to the individual subdirectories.
    What is the correct sqlnet.ora syntax to do this?  I currently have what is below but it doesn't seem to be correct:
    ENCRYPTION_WALLET_LOCATION =
      (SOURCE = (METHOD = FILE)
      (METHOD_DATA =
      (DIRECTORY = /local/oracle/admin/wallet/DB#1)
      (DIRECTORY = /local/oracle/admin/wallet/DB#2)

    Hi,
    You can check this :Setting ENCRYPTION_WALLET_LOCATION For Wallets Of Multiple Instances Sharing The Same Oracle Home (Doc ID 1504783.1)
    i haven't done this for multiple database, but as per Doc you can use the syntex like
    ENCRYPTION_WALLET_LOCATION =
      (SOURCE = (METHOD = FILE)
      (METHOD_DATA =
      (DIRECTORY = /local/oracle/admin/wallet/$ORACLE_UNQNAME)
    Whenever you set the Environmnet with
    export $ORACLE_UNQNAME=DB#1 
    it will choose the file from respective directory like  /local/oracle/admin/wallet/DB#1
    HTH

  • How do i create multiple databases on the same unix box?

    Hello experts.
    Please send me some guidelines on how to create multiple databases on the same unix box and how to configure their startups including listeners.
    Please also, list me the possible precautions to takes especially if the existing database is a production one!
    thanks very much for you reply
    Best Regards
    Yogeeraj

    Hello,
    I tried the following:
    svrmgrl> startup nomount pfile=I:\d01\oracle\admin\cmttest\pfile\init.ora
    then
    svrmgrl> CREATE DATABASE cmttest
    LOGFILE 'i:\d01\oracle\oradata\cmttest\redo01.log' SIZE
    1024K,'i:\d01\oracle\oradata\cmttest\redo02.log' SIZE 1024K
    MAXLOGFILES 32
    MAXLOGMEMBERS 3
    MAXLOGHISTORY 1
    DATAFILE 'i:\d01\oracle\oradata\cmttest\system01.dbf' SIZE 50M REUSE
    MAXDATAFILES 254
    MAXINSTANCES 1
    CHARACTER SET WE8ISO8859P1
    NATIONAL CHARACTER SET WE8ISO8859P1;
    Then when i try to run both databases:
    svrmgrl> set instance cmttest
    ORA-12500: TNS: Listener failed to start a dedicated process
    ===================
    I am doing something wrong.
    please help
    Regards
    Yogeeraj

  • Multiple databases in a single query

    I need to query multiple databases in a single query.
    e.g.
    Database d1 contains table t1 with column id
    Database d2 contains table t2 with column id
    I need a query like
    SELECT * FROM t1, t2 WHERE t1.id = t2.id;
    is this possible in jdbc? if yes can anyone help with some sample code?
    thanks,
    Ashish Saraf

    It is not possible using the JDBC API to query tables in two or more databases using a single query. The reason is that a JDBC Connection is made to a single data source.
    However, some databases support the idea of federations or linked tables. What you do is inside the database manager link or federate a table that is present in another DBMS. Then, pose a single JDBC query to the one DBMS which will have its own table and links to the external tables.
    Another approach is to use a special JDBC driver with a built-in integration engine that will perform a query across multiple databases. In effect, the system poses separate queries to the different databases and integrates and joins the data together for you automatically on the client-side. That is much easier than doing it yourself in code, but that is also possible for simple queries.
    As part of my research program, we have released a shareware version of the UnityJDBC driver that can query multiple databases using a single SQL query. For more information, see:
    http://www.unityjdbc.com
    http://www.cs.uiowa.edu/~rlawrenc/research/projects.html
    Sincerely,
    Dr. Ramon Lawrence
    Assistant Professor
    Department of Computer Science
    University of Iowa
    [email protected]

  • Need to get data from multiple database instances in a single query

    Hi,
    I need a small favour from you guys. The prob is as follows:
    I need to get name, row_id from table A from schema 1 and gbu_name, name from table B from schema 2 where a.name = b.name. I wrote the query in the following manner:
    SELECT a.name, a.row_id, b.gbu_name
    FROM Schema1.A as a, Schema2.B as b
    Where a.name = b.name
    But this query is not working and the error is like " The table does not exists".
    Please update me how to avoid the error and get the right sort of result.
    Thanks & Regards,
    Debabrata

    Ah, youre actually asking different things.
    In your topic title, you say youre running separate instances
    In your body text, you say you are under different user/schema
    So tell me, do you have more than one database or not? How many entries in your TNS file?
    I would say, for "multiple database instances"
    SELECT
      a.id, b.id
    FROM
      tableA a
      INNER JOIN
      tableB@OTHER_DATABASE_LINK_NAME b  <--NOTE!
      USING(id)And of course you will have to look up CREATE PUBLIC DATABASE LINK sql..
    Message was edited by:
    charred

  • Multiple Database access in a single transaction

    Hello All,
    I have read in a book which states that "according to J2ee Specification,a single transaction(an EJB method for example) may not be provided access to multiple JDBC resource providers.."
    Does it mean that i cannot access multiple databases from different vendors in a single EJB transaction??
    Any help is very much appreciated
    Thanks

    Hello Sebastien,
    Thanks for your response!!!
    Let me make it bit more clear.In deploymewnt descriptor,we define jndi name for any resource and do a lookup on that resource from the code.
    Let us consider that resource as JDBC data source for our discussion.usually you define any jdbc data source under a JDBC resource provider.
    So my question is,in a single transaction can you access multiple data sources defines under multiple JDBC resource providers.
    Ex:A datasource "x "defined under resource provider "A"[say DB2 jbdc provider] and a datasource "y" defined under respurce provider "B"[say mysql jdbc provider].
    Thanks

  • Multiple DataBase Connection in a Single Form

    hi all
    Is it Possible to have Multiple Database Connection With a Single Form
    Block a : Retriving data from a database Service a/Schema A.
    Block b : Retriving data from a Remote Database Service b / Schema B.
    If yes how to do this.
    regards
    jai
    email:[email protected]

    Sure you can access a database this way,
    but can you base a block on this database connect? No you can't.
    Frank

Maybe you are looking for

  • I bought the wrong song from the itunes store for my ipod

    how do i get credit back for the wrong song that I bought?

  • Widgets in templates

    The problem I am having is creating an editable region for widgets I've inserted into my template. I've inserted collapsible panels into what will be the sidebar to the template of my website. I have figured out how to create an editable region in th

  • Analysis service Tabular Model Rolling the values

    Hi Help me anyone, I Have to calculate for 1 Year rolling values from current date  example let say i am in march-2014   i have to rolling my column values for 1 year means April-2013  For this what function should i use  and also one more thing I ha

  • Can I run Final Cut Pro 7 after upgrading to OS Mavericks?

    I have not upgraded in a while (10.7.5), but have heard that FCP 7 crashes with other upgrades. I'm assuming such is the case here, but I would like confirmation one way or the other.

  • Few Que

    Hi Pls suggest me on following Question if you can When using a count(distinct) is it better to use a self-join or temp table to find redundant data, and provide an example? How PL SQL is different from T-SQL What will be the impact of replacing an A