How to mount database copy without specific datafiles

Hello all,
I need to make a database copy without specific datafiles. This is due to, in the copy, I just need some, not all, datafiles.
I tried the following command:
startup mount
alter tablespace mydata offlineBut it appears that the database must be open.
Anybody have performed some similar?
There is a document where I can read about it?
What else I need to know in order to start up this, reduced database copy?
Thank you in advance.

Hello All,
Thanks for your answers.
Yes I have already copied some filesystems to another server. All the data I need are on that filesystems. I haven´t tried to open the database. So, in order to put it online, and taking in consideration all your suggestions I will perform on this sequence:
startup mount
alter database datafile mydatafile1 offline
alter database datafile mydatafile2 offline
alter database datafile myindexdatafile1 offline
alter database datafile myindexdatafile2 offline
alter database openWith this steps, the database should bring online. Correct?
There is another step, that Im missing?
What about the listener?
Will be enough to change the port and server name?
Thanks again.

Similar Messages

  • Homogeneous Database copy without tape restoration

    Hi all,
    I have AIX 5.3 servers with Oracle as databse. I am supposed to do database copy on a new server from an already existing server. However there ios no tape connectivity to that server. But both the servers are on same SAN. How is it possible to do database copy. Both would be same OS and same Database. Please tell me what are the steps to be taken for database copy.
    Regards,
    Priya

    Hi,
    Do the following:
    1. Take Latest Offline/Online Oracle DB Backup of that Source System, from which you want to copy DB.
    2. Copy that Offline/Online Oracle DB Backup Fille and Backup log file (*.anf) of that Source System to the Target System, on its free available local disk space.
    3. Perform Homogeneous System Copy using Oracle DB Restore method:
         3.1 Restore Target Oracle DB using that Source Oracle DB with the help of BRRESTORE command.
         3.2 Backup Control Files from Source System and Change it according to the Target System directory structure before applying to to Target System.
         3.3 Perform Recovery using available Offline redo-log files (if you have restored Online Backup)
    All above mentioned steps are well described in this useful document "[Homogeneous System Copy using Online/Offline Database Backup|http://www.basisconsultant.com/component/remository/Sytem-Copy-Guides/Homogeneous-System-Copy-using-OnlineandOffline-Backup/]" with proper understanding. Download it with simple registration and Please read it carefully and follow the steps mentioned in that guide.
    Upon error, post your message.
    Regards,
    Bhavik G. Shroff

  • How to identify database records without using rowid.

    Hello,
    I want to find a way to identify records uniquely in my database without the use of the rowid.
    What I want to do is the following :
    I have a table that contains images. Something like that :
    Table images (id number, image blob).
    Lets say that in this table I have scanned images of persons, invoices and orders.
    I want to be able to associate a record with different records from different tables from my ERP via an association table.
    this table could be :
    Table image_associations (imageid number, rowid_column varchar2(100))
    The "rowid_column" would contain the rowid of the row that is associated with the image.
    The problem is that the rowid is something that changes (for example after export/import).
    So I do not want to use rowid.
    Any ideas?
    Thanks

    What you are saying is you want to avoid theaccepted relational design theory and subvert the
    fundamental principles of very model?
    Yes !!!!Then you are very short sighted and will fail. Why would you want to do this? How is it that you think you are smarter than the forefathers of our industry? an idea so compelling that huge companies have many massive profits implementing the concepts? (sometimes even properly) and how is it that you imagine you can work outside the concepts underlying those tools, within the tool and come to a better solution? this is arrogance surely.
    >
    I think a lot of people use rowid to identify within
    plsql code a record instead of using the table-key.
    There is very limited specific application of the ROWID for temporary reference within known bounds.
    You shouldn't rely on the ROWID. Think about what it actually is: a physical location address hash.
    Don't use it. Just don't.
    As I can remember from my classrooms (a lot of years
    ago) rowid was never mentioned in ER models. Still
    that helps a lot..For very good reason. Rowid is an implementation concept, and not a logical concept.
    Oracle already makes provision at the physical storage level to store BLOBs out of line with a record. You don't need to try to do this at the logical level as I said already.

  • Mount database copy zero site collections issue

    Hi,
    I wanted to have a copy of the whole webapplication and all site collections.
    I have done a db copy and created a new webapplication where i detached the generated db in central administration.When using the PS
    Mount-SPContentDatabase WSS_Content_SP13Copy -WebApplication http://sp13:66666 -AssignNewDatabaseIdit shows me in result the Currentsitecount : 0
    And when browsing there are no site colelctions. With testdb webapplication PS it shows me orphans sites, but i need the site collections for testing.
    I already recreated again webapplication, with root site collection, with /sites collection with no collections at all, but nothing..
    How can I get the trick? Please if you have any advice, would be great! Thanks!
    gruss Daniel Ovadia MBSS - Microsoft Dynamics CRM MCNPS

    I copied the whole db not only the site collection..
    is it the same? I created a new webapplication and then assigned the DB.
    Because for my understanding it should not be an issue? Its a completly diffrent webapplication with different name and port, and the DB is also restored with a different name. Why it should be a problem if there exist in antoher webapllication with another
    port and another db name, only the site collections under this different webapp are same named, but i thought this is foreclosed??
    I am confused now...
    gruss Daniel Ovadia MBSS - Microsoft Dynamics CRM MCNPS

  • How to make Database calls without directly htting the DB Listener?

    Hi
    I have a frontend end (code sitting on user's PC) application that needs to call the database, say, to look up table data and populate a JTable.
    So, I make a call directly to the database, on the default 1521 (yes, it's Oracle!) and get my data. However, I have other server side java code connecting with my application over a Java socket. (sending messages back and forth).
    So, I've got two ports open, 3041 (arbitrary ) for the Java socket and 1521 for the DB.
    I want to close 1521 and move the sql statements to the server.
    I can't work out a way to do this effectively. At the moment, I'm sending a message through 3041 to tell the server side code to perform a DB call. Then the database returns the info and I send a message back to the client PC with the data.
    It makes the DB call asynchronous (good or bad thing?), since I have a listener on the client waiting for messages from the server.
    It all looks a bit messy....ie sending messages and waiting for replies just for a DB call.
    Is there a standard practice for my problem that I can use?
    Thanks

    Your script won't work.
    #Renamed the variable so that it's less confusing.
    $webUrl = "http://spsite"
    #There's no point getting the SPSite object if you only want/need the SPWeb object.
    #$spSite = Get-SPSite -Identity $mySiteUrl
    #$spWeb = $spSite.OpenWeb()
    $spWeb = Get-SPWeb $webUrl
    #You've copied this from an example that uses a subsite which has the documents. That's not a great approach and probably not valid for yours
    #$cvDocumentLibrary = $spWeb.GetList("subsite/Documents")
    $library = $spWeb.Lists["ListName"]
    #Here you are referencing '$lib' which hasn't been declared. PowerShell will be completely ignorant of what on earth that is and will throw a null reference exception
    # $item = $lib.Items | where {$_.Name -eq "Report.docx"}
    #This still isn't perfect as it's slow and won't work on lists that are over the throttling limit but it'll work most of the time.
    $item = $library.Items | where {$_.Name -eq "Report.docx"}
    $item.Delete()
    You need to slow down and check things.
    $webUrl = "http://spsite"
    $spWeb = Get-SPWeb $webUrlWrite-Host "The URL of the website is: " $SPWeb.URL
    $library = $spWeb.Lists["ListName"]
    Write-Host "The Library title is: " $Library.Title$item = $library.Items | where {$_.Name -eq "Report.docx"}
    Write-Host "Deleting item named: " $item.Name$item.Delete()
    In that version it should print out some lines as it processes which will confirm that you've found the web, list and item before it does anything.
    If you hit errors post up the EXACT code you're using, change the URLs a little bit if you want but try to only replace words rather than missing out whole chunks.

  • How to locale a file without specific file name in a shared folder

    Dear experts,
    Is there any function module can be used to search for files in a shared folder in executing the program background? The file name is dynamic and varied. Thanks in advance.
    Regards

    This function module 'EPS2_GET_DIRECTORY_LISTING' does not work in background.
    I solve this issue by using the function module 'Z0_DIRECTORY_LISTING'. But I do not know whether this fm is available is version 4.6. Anyone is using version 4.6 and can tell me whether it exists in 4.6?
    Edited by: Chiew Ngee Ho on Jun 19, 2009 6:51 PM
    Edited by: Chiew Ngee Ho on Jun 19, 2009 6:57 PM

  • How can I clean all data in a database but keep all datafile still same nam

    hi,
    How can I get a easy way to clean all data in a database but keep all datafiles still same name and location just like a new created database?
    dbca has two choice: create templet without datafile or with all datafiles but not empty datafiles.
    thanks

    What version is your database? DBCA in 10gR2 allows you to create a template from an existing database using only the structure. From DBCA
    From an existing database (structure only)
    The template will contain structural information about the source database including database options, tablespaces, datafiles, and initialization parameters specified in the source database. User defined schemas and thier data will not be part of the created template.

  • How to open database when datafile of nonsystem tablespace is missing?

    Hi,
    I am runnig 10gR2 on Windows XP SP 2
    Here my situation:
    My db is running in archive mode. I have taken backup of my tablespace 'ocp' by using RMAN with Database Control.
    Now I shutdown the db and removed datafile which belongs to the tablespace.
    My problem is now that I am able to start db in mount only.
    I can not open it and getting folowing error:
    SQL> alter database open;
    alter database open
    ERROR at line 1:
    ORA-01157: cannot identify/lock data file 6 - see DBWR trace file
    ORA-01110: data file 6: 'C:\ORACLE\ORADATA\ORCL\OCP.DBF'
    My question is:
    How to drop the tablespase and run backup?
    Thanks

    Hi, you must mount the database and put the datafiles in offline mode
    ALTER DATABASE DATAFILE '<full_path_file_name>' OFFLINE DROP
    After you must open the database.
    Luck.
    Have a good day.
    Regards.

  • Undo Datafile deleted, How to startup database?

    Hi
    I was getting that message when startup database
    SQL> startup
    ORACLE instance started.
    Total System Global Area 167772160 bytes
    Fixed Size 1218292 bytes
    Variable Size 83888396 bytes
    Database Buffers 75497472 bytes
    Redo Buffers 7168000 bytes
    Database mounted.
    ORA-01157: cannot identify/lock data file 7 - see DBWR trace file
    ORA-01110: data file 7: '/u01/app/oracle/oradata/impl2pk/undotbs02.dbf'
    Later on got to know that a datafile was deleted.
    Anybody help me how to start database now?
    Thanks

    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:5669213349582Khurram

  • How do I restart apex without restarting the database?

    As the title says... How do I restart apex without restarting the database?
    For the second time in as many weeks apex 3.0.1(?) has stopped working while the database (10gR2) hasn't missed a beat.
    How do I restart apex?
    How do I get it to restart automatically on failure.
    How do I receive failure notification messages.
    How do I diagnose the cause of the failure.
    We were looking at using apex in a production environment but the prospect of unplanned restarts of production databases every week is a little daunting.
    Regards,
    David

    David,
    >> We're not using oracle http server as it's a 64 bit version so yes the whole thing is running within the database.
    1) So your Web server is the XDB HTTP protocol server and embedded PL/SQL gateway (basically, the database's embedded Web server)? Is this 11g? If so, what platform?
    2) Are there any reported issues in the database alert log?
    3) When you check the status of the database listener, does it show services running for this specific port (default 8080, I guess)?
    4) If you normally go to http://server:port/apex, when this situation occurs, what happens when you try and go to http://server:port?
    Joel

  • I deleted all my playlist by mistake from itunes. tried copying the to on the go on ipod and thought it would copy it on to my itune but it didn't. does any one know how i can do this without redoing all my playlists. thanks

    I deleted all my playlist by mistake from itunes. tried copying them to on the go on ipod and thought it would copy it on to my itune but it didn't. does any one know how i can do this without redoing all my playlists. thanks

    Are the playlists still on the iPod? If so I can probably cook up a script to read them back into iTunes, or you can check the features of the various tools listed at the end of this user tip to see if you can find one that you want to use.
    tt2

  • How do I move/copy contacts from Entourage to iCloud Address Book without creating duplicates? Address Book on Mac, iCloud, iPhone and iPad is now empty

    How do I move/copy contacts from Entourage to iCloud Address Book without creating duplicates? Address Book on Mac, iCloud, iPhone and iPad is now empty

    Thank you for letting me know!
    Going to give it a go. Had a back up of all my clients files stupidly not my software as I have the originals disks. Just realised that amongst the software is ibiz and have lost al my accounting and billing files for the last 7 years want to cry so losing my contacts now will really tip me over the edge!
    Fingerscrossed this works!

  • HT1926 I'm getting the message "This copy of itunes is corrupted or not stalled correctly. Please reinstall itunes" How do i do this without losing my music library?

    I'm getting the message "This copy of itunes is corrupted or not installed correctly. Please restall itunes" How do I do this without losing my itunes library? (I use Windows vista). Do I delete my existing itunes?

    Try this discussion...
    https://discussions.apple.com/message/20664047#20664047
    From the  More Like This section on the right

  • How to mounted oracle database automatically  in oracle version 8.1.7?

    i want to know,how to mounted oracle database automatically in oracle version 8.1.7?

    Does this mean you are not using the WIndows operating system, or you doi not want to do this 'manually' using some point and click method?
    If this means, "do it automatically for reboots" and you are using the Windows OS, you need to set up a service and set it to automatic at reboot. Or, again in a Windows environment but at commnand line, use "net start {service name}" - as described in the manual.

  • Microsoft Exchange Server/Exchange 2010/Mailbox/Database Copy Mounted

    Good Morning everyone!!!
    I Have SCOM 2007 R2 CU5 Envoirnment and i am monitoring Microsoft Exchange 2010 SP1 Messaging infrastracture,
    I have Microsoft Exchange  2010 SP1 Monitoring MP, MP version is 14.2.71.0.
    Case:-
    When exchange is having issue with DAG, SCOM monitoring rule:- KHI: The database copy is not mounted on the local server. Another database copy may be mounted on a different server.
    is generating the alert but alert Description is only "    _ef4a8515_1cc0_48a9_aa12_92ba059a6eae_ " and rest of the things are blank
    and because of this ticketing team is unable to process these alerts,
    Impact:-
    Whenever DAG is unavailable, messaging team is not getting notification and because of this. Exchange services are failing down,
    Does anyone having this kind of issues on their exchange environment?
    I am looking solution for this issue, please let me know if anyone is aware about this.
    Regards, Ganesh M <!> Microsoft MPN - Member =========================================================== Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer
    your question. This can be beneficial to other community members reading the thread.

    Does anyone has updated information regarding Exchange 2010 DAG monitoring fix, <o:p></o:p>
    As i see there was exchange MP release on 31st Aug 2012
    ID
    Name
    Targets
    _ef4a8515_1cc0_48a9_aa12_92ba059a6eae_
    KHI: The   database copy is not mounted on the local server. Another database copy may   be mounted on a different server.
    Root   Management Server
    _EF51D339_22C5_49b3_8B6B_25002BE31D4A_
    KHI: Retry   Mailbox Delivery Queue Length - sustained for 90 minutes - Red(>1) - Hub   Transport.
    Root   Management Server
    _93558cf0_e063_45b1_b57a_0d4b53e0d615_
    KHI: The   Microsoft Exchange Information Store service (MSExchangeIS) isn't running.
    Root   Management Server
    My monitoring is affected for these rules which i mentioned below, here alerts
    information is shown as rule ID instead of Rule name. and we don’t get alert description
    for above rules when the generate alerts.<o:p></o:p>
    Response would be appreciated <o:p></o:p>
    Regards, Ganesh M <!> Microsoft MPN - Member =========================================================== Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer
    your question. This can be beneficial to other community members reading the thread.

Maybe you are looking for

  • Game Center games reset after restore

    Okay, so after i have restored my iPhone 4 in iTunes(because my phone was lagging) everything was back to normal when i realized something was not right, my Game Center account was perfectly fine until i played Zombie Cafe and was shocked to see my c

  • How to organize playlists and folders in Music app

    Hey guys, I've got iTunes Match enabled on my devices and it lists all my playlists and playlist folders alphabetically, Here's the thing, I'd really like to have my folders separated from the standalone playlists on my iOS devices. It works this way

  • Catalog sharing between Lightroom and Photoshop Elements

    Can the catalog be shared between Lightroom 2 and Photoshop Elements 10?

  • Nomad Zen Xtra - 60G - Major Issues

    I bought the Zen Xtra for my husband for his b-day last April (2004). Over the summer the Zen Xtra worked well and transfer of 307 tracks of songs was successful. Then, in the fall we decided to try setting up playlists through the Creative MediaSour

  • Accessing variables from a symbol?

    Hey there guys, sorry I'm not much of a coder and am a designer but here's my issue. I have a character who is a student who is going to enter a chemistry lab, but before he does, the user has a choice to put on a coat and goggles on the character, s