Create database in different location

Question for all member: My oracle install in d: drive i create database in d: drive & upload the data but the drive d: have not much space.so can i use other drive space if possible so how ? please help me out. !!!!!!!!!

tell me the step<br>Read my post above, but for more info, read the following doc :<br>
Moving and Renaming Tablespaces: Example<br>
<br>
Nicolas.

Similar Messages

  • Listener.ora and Tnsnames.ora created in a different location

    Hi All,
    I have both the files i.e Listener.ora and Tnsnames.Ora in a location called D:\OraHome_1 and not in D:\OraHome_1\Network\Admin !! Also I do not have the sqlnet.ora file in either of these two locations.
    Though conn sys/pswd@sid is working fine and DB is also up and running, "conn / as sysdba" is not working. I would like to restore these files in their actual location and make "conn / as sysdba also working".
    Thanks in advance
    -Aditi

    Is perhaps TNS_ADMIN set to d:\orahome_1 ?where do i check this parameter ?
    What does output of following tell youc:\> tnsping sid
    C:\WINNT\system32>tnsping sid
    TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 05-JUL-2006 19:17:26
    Copyright (c) 1997, 2005, Oracle. All rights reserved.
    Used parameter files:
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 'complete host name')(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = SID)))
    OK (30 msec)
    ***NOTE*** this leaves a blank space when it says 'Used parameter files:' Isn't this unusual ....!!
    You may not need the listener.ora - it is kinda "optional". Not sqlnet.ora either. There are defaults to survive on.That's fine but I still would like to know why these files got created in a directory different from oraclehome\network\admin?

  • Open database in different location

    Good morning.
    I try to open existing Berkeley DB JE (using DPL), than previously i copy in othrer folder, but it not work. I open the jdb files and I found that the absolute path where the DB was created.
    Any ideas?
    Thank you

    We don't quite understand your question. Perhaps you can rephrase it, and also show the exception message that you get?
    Thanks.

  • Oracle standby database creation different backup location

    Hi,
    I am using Oracle EE 11gR2 on aix 6.2.I am tring to create a standby database.The directory structure od primary and standby database server are different.
    I am taking backup (RMAN) at  /u01/backup directory on primary server and shipping those backup to standby server at /u05/backup.While duplication the rman unable to locate backup pieces at Dr server as those backups are located on different location from Dc.How to over come this situation.catalog start with is not working.
    Regards
    DBAFORU

    Hello;
    Since you are on Oracle 11 one option would be duplicate from active primary. You can use the Standby parameters of DB_FILE_NAME_CONVERT and LOG_FILE_NAME_CONVERT for the directory structure.
    duplicate target database for standby from active database NOFILENAMECHECK;
    How To Restore From An Old Backupset Using RMAN? (Doc ID 209214.1)
    Step by Step Guide on Creating Physical Standby Using RMAN DUPLICATE...FROM ACTIVE DATABASE (Doc ID 1075908.1)
    RMAN ACTIVE DUPLICATE WHEN CONNECTED TO STANDBY AS TARGET (Doc ID 1343515.1)
    Creating a Physical Standby Database (Doc ID 1475344.1)
    Best Regards
    mseberg

  • How to create User and Database in different Table spaces

    How to create User and Database in different Table spaces using oracle 10g
    Regards
    daya

    I am sorry but your question does not seem to make much sense.
    Can you please rephrase your question?

  • SQL Server two database at two different locations

    Hi Guys,
    We are having same database at two different locations (Database A with Sqlserver 2008/Express, database B with Sqlserver 2012).
    Our requirement is when ever a row is inserted in a table of Database A from location 1. Same value should also be added in Server 2 at different location.
    So that at any point of time both the database base values should be same.
    Which is the best method to do it ?
    Regards,
    Raghu.G
    raghu

    Could you please give more information about the editions of SQL Server? Is SQL 2012 express as well?
    Do you also need udpates/deletes to be moved to another server? Also do you want changes in SQL 2012 to be moved to 2008 as well?
    With Express edition you have very limited options.
    Regards, Ashwin Menon My Blog - http:\\sqllearnings.com

  • Script to Create databases with params to support dir location for data or log files

    Script to Create databases with params to support dir location for data or log files

    DECLARE @Query VARCHAR(MAX)=''
    DECLARE @DbName VARCHAR(400) = '<DBNAME>'
    DECLARE @DbFilePath VARCHAR(400) = '<Valid DataFilePath>'
    DECLARE @DBLogFilePath VARCHAR(400)='<Valid LogFile Path>'
    SET @Query = @Query + 'CREATE DATABASE '+@DbName +' ON PRIMARY '
    SET @Query = @Query + '( NAME = '''+@DbName +''', FILENAME = '''+@DbFilePath+@DbName +'.mdf'' , SIZE = 3072KB , MAXSIZE = UNLIMITED, FILEGROWTH = 1024KB ) '
    SET @Query = @Query + ' LOG ON '
    SET @Query = @Query + '( NAME = '''+@DbName +'_log'', FILENAME = '''+@DblogFilePath+@DbName +'_log.ldf'' , SIZE = 1024KB , MAXSIZE = 2048GB , FILEGROWTH = 10%)'
    print @query
    exec(@query)
    --Prashanth

  • Create tables in different database schemas using EJB 3 Entity Persistent

    Hi All,
    I would like to find out how to get the following tasks done using EJB 3.0 Java Entity Persistent:
    ( i ) Create tables in different schemas such as STUDENT under EDUCATION schema and table PATIENT in HOSPITAL schema. We can then reference them in SQL as EDUCATION.STUDENT and HOSPITAL.PATIENT.
    ( ii ) Reference these tables uniquely once they are created.
    There are no pre-existing tables or naming conventions that needs to be adhere to in this situation.
    I have no problem creating tables on the current schema in EJB 3.0 Java Entity Persistent.
    Any suggestions would be appreciated.
    Thanks,
    Jack

    Use the schema attribute of the Table annotation:
    package javax.persistence;
    @Target({TYPE}) @Retention(RUNTIME)
    public @interface Table
       String name( ) default "";
       String catalog( ) default "";
       String schema( ) default "";
       UniqueConstraint
    uniqueConstraints( ) default {};
    }

  • Unable to Load Database/Unable to create database.

    RoboHelp 6.0 on my PC is suddenly unable to open existing
    projects or create new ones. The problem is not in the projects, as
    other people can unzip the same set of files and open them with
    RoboHelp on their PCs.
    The Details:
    When attempting to open an existing project (any project
    whether in version control or not), I get the message " Open
    project was cancelled or the application was unable to load
    database for..."
    I found the article that says to delete the CPD and XPJ files
    and then to use the Edit option to open the HHP file so that
    RoboHelp will recreate the two files. When I try that, I get the
    message "Unable to create database. Check that the directory is not
    read-only." It's
    not read-only.
    When I attempt to create a new project, the application acts
    like it is going to create one, but it just creates a project
    folder without the new first topic and then repeats the New Project
    Wizard window that prompts for title, etc. It will keep creating
    folders and returning to this window in a loop without ever really
    creating a project.
    RoboSource Control is functioning normally, by the way.
    I have uninstalled and reinstalled RH 6 several times, and
    have even uninstalled RH 6 and installed to RH 5 just to see if it
    could open projects, which it does with no problems. After that
    test, I uninstalled RH 5 and reinstalled RH 6, only to encounter
    the same problem all over again.
    This started happening after I uninstalled other unrelated
    software and received a message that some Service Pack 2 files had
    been changed and prompting me to insert the Service Pack 2 CD,
    which I don't have. This is because our IT department pre-builds
    our systems from an image and then distributes job-specific
    applications over the network. IT tried repairing Service Pack 2,
    but that didn't work. I'd like to uninstall and reinstall Service
    Pack 2, but the IT person says it's too risky on a system that was
    built from an image.
    We would like to find out
    which files RoboHelp is looking for when it launches a
    project so we can replace those files manually. Does anyone
    know what they are or have another suggestion that might fix the
    problem?
    Otherwise, I am stuck having to allow IT to rebuild my
    system. That means reinstalling and reconfiguring everything on it,
    just as if I were upgrading to a new PC. This can take a whole work
    week. However, I have already spent close to a work week on this
    problem, so maybe rebuilding would save time in the long
    run.

    Problem Resolution = HHA.dll
    For anyone who might be interested in the resolution to this
    issue, we did rebuild my PC and reinstall all of my software. The
    RoboHelp installation "complained" that I did not have HTML Help
    Workshop on my system and told me to download version 1.4 from
    Microsoft. I did have HTML Help Workshop..it's in my programs list.
    (It's not listed in programs on my co-workers' PCs, and they were
    not having problems, by the way.) But to make RH happy, I
    uninstalled the workshop and tried to install the version from
    Microsoft. But a message informed me that I already had a newer
    version of the workshop on my system, and I was back where I
    started. I could open projects, but there were weird problems.
    Selecting Topic Properties was met with an error message, and when
    the properties window opened, I could only see whatever template
    was assigned (or none if the topic had lost its template), and
    there was an extra section for Oracle help.
    So I started dinking around in the registry to see if I could
    get rid of any traces of the workshop so I could install the
    version RH wanted or to find any other clues to my problem. Under
    HTMLHelpAuthor, there was a reference to an HHA.dll file located in
    C:\WINDOWS\system32...only the file did not exist on my system.
    (Remember that my original problem was that some Service Pack 2
    files were either modified or missing.) So I did a Google search on
    that file name and found out that HTML Help Workshop is included in
    newer Windows operating systems, but that people used to have to
    get HTML Help Workshop from Microsoft, and that some people had
    made the mistake of just putting the HHA.dll file into the
    C:WINDOWS\system32 folder without also installing HTML Help
    Workshop. At this point it was obvious that I needed the HHA.dll,
    so I got it from a co-worker's PC. (Looking at the registry
    entries, I can also see that my system was built with a slightly
    different version of the operating system than my co-workers have.)
    Adding the HHA file to my system solved the problem. All
    projects but one were fine; one was still exhibiting the strange
    behavior. I fixed it by going back to the RoboHelp 5 version of the
    project and re-converting it to RoboHelp 6.
    I suspect that if I had known about the HHA.dll file before
    we rebuilt the PC, I could have solved the problem without going
    through that painful process. That is why I thought I should post
    the solution even though it was after the rebuild.

  • Failed to create Database Link in OWB 9.2 for remote SQL Server

    Hi,
    I have to create Database link for connecting to SQL server in a different machine.I am using OWB 9.2 and XP.
    Dataserver is the machine name which is running SQL Server
    I included follwing lines in TNSNAMES.ORA file
    hsodbc.world =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = dataserver)(PORT = 1433)
    (CONNECT_DATA = (SID=hsodbc.world)
    (HS =OK)
    I included follwing lines in Listener.ORA file
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = dataserver)(PORT = 1433)
    (SID_DESC=
    (SID_NAME=hsodbc.world)
    (ORACLE_HOME=C:\ora92)
    (PROGRAM=hsodbc)
    I included follwing lines in inithsodbc.ORA file
    HS_FDS_CONNECT_INFO = testdsn
    HS_FDS_TRACE_LEVEL = 0
    While creating new database link I gave the follwing values
    DB Link Name : Mylink
    SQL * Net Connect String: hsodbc
    User Name: sa
    password:<my password>
    Then clicked "Create and Test" button to get the follwing error message
    Testing...
    Failed.
    ORA-12154 TNS:could not resolve service name
    *Cause: The service name specified is not defined correctly in the TNSNAMES.ORA file
    *Action: Make the following checks and correct the error:
    - Verify that a TNSNAMES.ORA file exists on your repository server
    in the proper place and is accessible. See the operating
    system specific manual for details on the required name and location.
    - Check to see that the service name exists in one of the
    TNSNAMES.ORA files and add it if necessary.
    - Make sure there are no syntax errors in the file.
    Particularly look for unmatched parentheses or stray characters.
    Any error in a TNSNAMES.ORA file makes it unusable. See
    Chapter 4 in the SQL*Net V2 Administrator's Guide. If possible,
    regenerate the configuration files using the Oracle Network Manager.
    Is there anything wrong in my configuration. Please help me in getting out of this problem.
    Thanks in advance
    Andy

    Hi Mark,
    Thanks Mark.I did the changes in the specified .ora file but now it shows a different error message.
    The error is
    Testing...
    Failed.
    Cwm Error Message: SQL Exception
    Cwm Error: SQL Exception
    Class Name: CacheMediator
    Method Name: getDDEntryFromDB
    Repository Error Message: ORA-28545: error diagnosed by Net8 when connecting to an agent
    NCRO: Failed to make RSLV connection
    ORA-02063: preceding 2 lines from MYLINK
    Query: select 1 from dual@MyLink
    I got the same error when i tried manually in sql plus.
    Please help me in getting out of thid problem
    Thanks in advance
    Andy

  • Not able to create database in Solaris 10 x86 Oracle 10.1.0.3

    I have installed Oralce 10.1.0.3 in Solaris 10 X86 using the procedure given without creating the database.(Installing the binaries)
    Hardware:Sun fire V20z.
    When i tried creating Database using DBCA,it was throwing lots of error.
    The errors are:
    1) ORA-03113: end-of-file on communication channel
    2) ORA-03114: not connected to oracle
    3) ORA-27100: shared memory realm already exists.
    Any help on creating a database in Solaris 10 x86 Oracle 10.1.0.3
    Thanks in Advance.

    Hi.
    Are You read documentation ?
    [http://download.oracle.com/docs/cd/E19680-01/html/821-1255/babhabac.html#z40000471052274]
    Guidelines for the /globaldevices File System
    Oracle Solaris Cluster software offers two choices of locations to host the global-devices namespace:
    A lofi device
    A dedicated file system on one of the local disks
    This section describes the guidelines for using a dedicated partition. This information does not apply if you instead host the global-devices namespace on a lofi.
    The /globaldevices file system is usually located on your root disk. However, if you use different storage on which to locate the global-devices file system, such as a Logical Volume Manager volume, it must not be part of a Solaris Volume Manager shared disk set or part of a VxVM disk group other than a root disk group. This file system is later mounted as a UFS cluster file system. Name this file system /globaldevices, which is the default name that is recognized by the scinstall(1M) commandSo:
    >I have mounted one (1) common 2gb LUN for both the nodes, so it is creating the problem...?
    It source of problem.
    Every node require have it's own separate slice for globaldevice.
    Shared Lun can be mounted with option global for access from both nodes at same time, but it will be second step - configure data-services.
    Regards.

  • Unable to copy database with different name in the same instance

    I had a huge database and wanted to try some change optimization changes.
    So wanted to make a copy of the database along with data in the same instance.
    I have tried copy database wizard several times but always see the error as in attachment.
    Can someone let me know how to troubleshoot further?
    If this is not the correct way please suggest how do i copy a database with different name in the same instance along with data.

    Hi Nandu,
    From the screenshot, the error 1813 happens when corrupt database log is attempted to attach to the SQL Server. To work around this issue, please preform the following steps, for more details, please review this
    blog.
    1. Create a new database with same name which you want to recover. Make sure that the MDF file and LDF file have same name with previous database data and log file.
    2. Stop SQL Server. Move original MDF file from old location to new location by replacing just created MDF file. Delete the LDF file of new location just created.
    3. Start SQL Server. At this point, the database is in suspect status.
    4. Make sure that system tables of Master database allows to update the values. Please note that you will be performing this in query window.
    Use Master
    go
    sp_configure 'allow updates',1
    reconfigure with override
    go
    5. Change database mode to emergency mode.
    SELECT *
    FROM sysdatabases
    WHERE name = 'DatabaseName'
    BEGIN
    UPDATE sysdatabases
    SET status = 32768
    WHERE name = ' DatabaseName '
    COMMIT TRAN
    6. Restart SQL Server. Then execute the following DBCC command in query window to create new log file.
    DBCC TRACEON (3604)
    DBCC REBUILD_LOG(databasename,'c:\yourdatabasename_log.ldf')
    GO
    7. Reset the database status using following command.
    sp_RESETSTATUS yourdatabasename
    GO
    8. Turn off the update to system tables of Master database running following script.
    USE MASTER
    GO
    sp_CONFIGURE 'allow updates',0
    RECONFIGURE WITH OVERRIDE
    GO
    9. Reset the database status to previous status.
    BEGIN
    UPDATE sysdatabases
    SET status = (value retrieved in first query of step 5)
    WHERE name = 'DatabaseName‘
    COMMIT TRAN
    GO
    Make sure that you have done all the steps in order and restarted SQL Server where it is mentioned. Also run SQL Server Management Studio as administrator.(Right click-> Run as Administrator)
    Thanks,
    Lydia Zhang

  • Importing full database to different name

    Hi i have one douhgt ,i want to import a full database dump to a new database with different name and new location.Can i do that i will explain the steps what i am plan to do
    1) create an blank database with new name eg dev and same talbepsaces
    2) take and full db export from source name prod using system
    3) import with full db with system
    4)Source is 9i and dest is 10grel2
    Whether it will throw any error ?
    rgds
    jon

    fine.
    But i think exp/imp binary don't support 9i to 10g import.
    so you using 10g export binary to take the 9i database full backup and import into 10g database use the 10g export binary.
    Regards
    Rajabaskar

  • Create Database on NAS Shared Folder

    I installed Oracle 10g Server on Windows 2000 Advanced Server. I use a Fastora NAS-208 NAS system and create a shared folder on it and I want to create an oracle databas on this shared folder but I can't because of Oracle Server wants to change ACL (Access Control List) of database location and add Administrator & SYSTEM users to ACL after clear ACL. It could clear ACL of shared folder but couldn't add SYSTEM and Administrator users to ACL thus ACL of container folder of database will be empty and Oracle Server colud not create database files (data files,...) on it.
    Please guide me to solve this problem.

    thx for the reply.
    1.) no only one vm would access the datafiles.
    The methodology helps where I can deploy the version of oracle that runs the database is deployed as a vm.
    The version of the database doesn't change often for the product. The database can change, often.
    To level set a host of machines where developers are working, unit test are running and so on. I can push
    a set of files that make up the database off to a bunch of different physical machines.
    Or people can simply grab the set of files and copy them.
    This allows an easy way to only push/pull the data files, without vm's even started. And to only to have to transmit
    that what has changed, the data files.
    2.) the uid/gid of the oracle user in the guest, and the user that owns the directory on the host are the same and are what I'm using in the mount command.
    I do not believe this is a rights issue. The oracle user can create/delete/edit/touch files in the shared folder in question.
    It's simply that oracle seems to think it's a nfs mount, which it is not.
    So just wondering if anyone else has solved this. thx...

  • RMAN backup to 3 different locations

    Hi,
    I'm trying to backup my database to 3 different locations. If one location is unavailiable backup fails. Is there a possibility to make backup to other 2 locations when one is unavailiable? For example second location from following code is unavailiable. Here is my code:
    RUN
    CONFIGURE DEVICE TYPE DISK PARALLELISM 1;
    CONFIGURE DEFAULT DEVICE TYPE TO DISK;
    CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/backup/location1/%d_DB_%u_%s_%p', '/backup/location2/%d_DB_%u_%s_%p', '/backup/location3/%d_DB_%u_%s_%p';
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 3;
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 3;
    BACKUP DATABASE PLUS ARCHIVELOG SKIP INACCESSIBLE;
    }

    Hello again;
    I was able to find an example of your other question :
    If you specify a nonexistent directory, RMAN displays output such as the following:
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of backup command on ORA_DISK_1 channel at 08/29/2001
                14:36:04
    ORA-19504: failed to create file "/nosuchdisk/0cd2momi_1_1"
    ORA-27040: skgfrcre: create error, unable to create file
    SVR4 Error: 2: No such file or directory
    Source
    Spreading a Backup Across Multiple Disk Drives: Example
    Database Backup and Recovery Advanced User's Guide
    So it really looks like it errors, ORA-19504 appears to be the key.
    Unable to find any Oracle note regarding skip. Interesting question.
    Best Regards
    mseberg

Maybe you are looking for