New database creation

Does anyone know if it is possible to create a new database in a new location other than the one specified by {ORACLE_BASE} ?

Absolutly. If you are using DBCA you can either change the definition of ORACLE_BASE, or edit the file paths in the wizard. Alternatively, you could create a script to create the database and not use DBCA at all.

Similar Messages

  • New database creation problem

    While we are trying to create new database in test server it getting below error.
    Error:

    Hello,
    There may be session accessing the model database, and that prevents the creation of the new database. This is by design; an exclusive lock is required on model database by SQL Server, since it needs to create the new database from a copy of the model database.
    Run the sp_who2 to know which session has opening the model database.
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Problem in new database creation with the help of online  backup

    Dear dba's
    i am using oracle 11gR2 database in windows server 2003. database is running in ARCHIVE LOG mode.
    i have taken an online backup of all datafile,controlfile and spfile.Then i crated folders in all the locations as required for new database.
    then i registerd the service of new database named as 'newdb' by
    oradim -NEW -SID newdb
    then i created a password file manually in 'oracle_home\database' location.
    i created a new contolfile named as controlfile_01.ctl. the content of controlfile as follows
    STARTUP NOMOUNT
    CREATE CONTROLFILE SET DATABASE "NEWDB" NORESETLOGS ARCHIVELOG
    MAXLOGFILES 16
    MAXLOGMEMBERS 3
    MAXDATAFILES 100
    MAXINSTANCES 8
    MAXLOGHISTORY 292
    LOGFILE
    GROUP 1 (
    'D:\APP\ADMINISTRATOR\ORADATA\NEWDB\ONLINELOG\O1_MF_1_7FK0XG7B_.LOG',
    'D:\APP\ADMINISTRATOR\FLASH_RECOVERY_AREA\NEWDB\ONLINELOG\O1_MF_1_7FK0XHWB_.LOG'
    ) SIZE 50M,
    GROUP 2 (
    'D:\APP\ADMINISTRATOR\ORADATA\NEWDB\ONLINELOG\O1_MF_2_7FK0XKB8_.LOG',
    'D:\APP\ADMINISTRATOR\FLASH_RECOVERY_AREA\NEWDB\ONLINELOG\O1_MF_2_7FK0XM0Z_.LOG'
    ) SIZE 50M,
    GROUP 3 (
    'D:\APP\ADMINISTRATOR\ORADATA\NEWDB\ONLINELOG\O1_MF_3_7FK0XNOZ_.LOG',
    'D:\APP\ADMINISTRATOR\FLASH_RECOVERY_AREA\NEWDB\ONLINELOG\O1_MF_3_7FK0XOWB_.LOG'
    ) SIZE 50M
    DATAFILE
    'D:\APP\ADMINISTRATOR\ORADATA\NEWDB\DATAFILE\O1_MF_SYSTEM_7FK0SKN0_.DBF',
    'D:\APP\ADMINISTRATOR\ORADATA\NEWDB\DATAFILE\O1_MF_SYSAUX_7FK0SKPG_.DBF',
    'D:\APP\ADMINISTRATOR\ORADATA\NEWDB\DATAFILE\O1_MF_UNDOTBS1_7FK0SKTC_.DBF',
    'D:\APP\ADMINISTRATOR\ORADATA\NEWDB\DATAFILE\O1_MF_USERS_7FK0SKWB_.DBF',
    'D:\APP\ADMINISTRATOR\ORADATA\NEWDB\DATAFILE\O1_MF_EXAMPLE_7FK0Z5LK_.DBF',
    'D:\APP\ADMINISTRATOR\ORADATA\NEWDB\MARSH.DBF',
    'D:\APP\ADMINISTRATOR\ORADATA\NEWDB\JOMARSH.DBF'
    CHARACTER SET AL32UTF8
    the control file path was registered in pfile also.
    then i brought the database to nomount stage.
    the problem is when i try to mount database it shows following error. anyone can help me to over come from this issue????????
    SQL> startup pfile='D:\app\Administrator\product\11.1.0\db_1\database\INITnewdb.ora' nomount;
    ORACLE instance started.
    Total System Global Area 535662592 bytes
    Fixed Size 1334380 bytes
    Variable Size 301990804 bytes
    Database Buffers 226492416 bytes
    Redo Buffers 5844992 bytes
    SQL> ALTER DATABASE MOUNT;
    ALTER DATABASE MOUNT
    ERROR at line 1:
    ORA-00205: error in identifying control file, check alert log for more info
    the alert massage is:
    ORA-00210: cannot open the specified control file
    ORA-00202: control file: 'D:\APP\ADMINISTRATOR\ORADATA\NEWDB\CONTROLFILE\CONTROLFILE_01.CTL'
    ORA-27048: skgfifi: file header information is invalid
    OSD-04001: invalid logical block size (OS 1413563730)
    Fri Dec 09 13:11:59 2011
    Checker run found 1 new persistent data failures
    ORA-205 signalled during: ALTER DATABASE MOUNT...
    Thanks & Regards,
    John Marshal.A

    Hi;
    Error: ORA 205
    Text: error in identifying control file <name>
    Cause: The system could not find a control file of the specified name and
    size.
    Action: Either
    Check that the proper control filename is referenced in the
    CONTROL_FILES initialization parameter in the initialization parameter
    file and try again.
    When using mirrored control files, that is, more than one control file
    is referenced in the initialization parameter file, remove the control
    filename listed in the message from the initialization parameter file
    and restart the instance.
    If the message does not recur, remove the problem control file from
    the initialization parameter file and create another copy of the
    control file with a new filename in the initialization parameter file.
    Regard
    Helios

  • New database creation in 10g RAC

    Hi,
    I'm trying to create a new database using DBCA in 2 node RAC cluster. When I select custom database and the password for sys and system users. In the next screen I select ASM and it is asking for password. When i give the password which i entered before for sys and system, it is not taking. Even i tried different password but getting an error password for user SYS is not valid. Any idea what the issue is?
    Thanks

    You must have created an ASM instance prior to creating the database. DBCA won't create an ASM instance alongside with a database.
    As the ASM instance apparently doesn't exist, you can't connect to it,
    Create an ASM instance first.
    Sybrand Bakker
    Senior Oracle DBA

  • New database creation crash with ora-470

    i am creating a new instance on redhat linux 4 to migrate an hp erp instance
    after creating database i am creating tablespaces.
    when creating big tablespaces instance crashes with 3113 end of communcation channel
    tried already to change lower_zone_protection=100 (kernel parameter)
    made swap size big and checked space
    nothing helped
    still getting that lgwr crashed and pmon terminated instance with ora-470
    any ideas?
    regards

    /mirsupl/comn_log_out/oradump/bdump/mirsupl_pmon_19527.trc
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    ORACLE_HOME = /mirsupl/oracle/10.2
    System name:     Linux
    Node name:     mis231
    Release:     2.6.9-89.ELsmp
    Version:     #1 SMP Mon Apr 20 10:34:33 EDT 2009
    Machine:     i686
    Instance name: mirsupl
    Redo thread mounted by this instance: 1
    Oracle process number: 2
    Unix process pid: 19527, image: oracle@mis231 (PMON)
    *** 2010-01-22 14:58:52.211
    *** SERVICE NAME:(SYS$BACKGROUND) 2010-01-22 14:58:52.124
    *** SESSION ID:(555.1) 2010-01-22 14:58:52.124
    Background process LGWR found dead
    Oracle pid = 7
    OS pid (from detached process) = 19537
    OS pid (from process state) = 19537
    dtp = 0x2000bbf0, proc = 0x9f426340
    Dump of memory from 0x2000BBF0 to 0x2000BC1C
    2000BBF0 00000074 9F426340 00000000 00000000 [t...@cB.........]
    2000BC00 5257474C 00000200 00004C51 0000AF74 [LGWR....QL..t...]
    2000BC10 00000001 1998D4DE 00040001 [............]
    Dump of memory from 0x9F426340 to 0x9F4268FC
    9F426340 00000102 00000000 00000000 00000000 [................]
    9F426350 00000000 9D63F054 A290E354 9F5FF6B0 [....T.c.T....._.]
    9F426360 A290D508 00000000 A290D56C A290D56C [........l...l...]
    9F426370 A290E348 00000601 00000000 9F5D4948 [H...........HI].]
    9F426380 9F5FF6B0 00000007 00000000 00000000 [.._.............]
    9F426390 00000000 A272B148 A272B1E4 00000000 [....H.r...r.....]
    9F4263A0 00000000 00000000 00000000 00000000 [................]
    Repeat 3 times
    9F4263E0 00030000 00000000 00030000 00000000 [................]
    9F4263F0 00000000 00000000 00040000 00000000 [................]
    9F426400 00030000 00000000 00030000 00000000 [................]
    Repeat 1 times
    9F426420 00030000 00000000 00000000 00000000 [................]
    9F426430 00000000 00000000 00000000 00000000 [................]
    Repeat 3 times
    9F426470 00000000 0000012C 9F426478 9F426478 [....,...xdB.xdB.]
    9F426480 00000000 00000001 00000000 9F42648C [.............dB.]
    9F426490 9F42648C 00000000 00000000 00000000 [.dB.............]
    9F4264A0 00000000 00000000 0000006D 00000000 [........m.......]
    9F4264B0 00005645 00000018 00000004 00000075 [EV..........u...]
    9F4264C0 00000099 A2418354 A2418354 00010000 [....T.A.T.A.....]
    9F4264D0 00000000 00000000 00000000 00000000 [................]
    Repeat 1 times
    9F4264F0 00000000 00000000 00000000 00004C51 [............QL..]
    9F426500 00000000 00000000 00000000 00000000 [................]
    Repeat 2 times
    9F426530 00000000 00000000 00000000 9F426340 [............@cB.]
    9F426540 00000000 00000000 00000000 00000000 [................]
    Repeat 6 times
    9F4265B0 00000000 00000000 9F4265B8 9F4265B8 [.........eB..eB.]
    9F4265C0 00000000 00000000 00000001 00000000 [................]
    9F4265D0 00000000 00028002 0000000B 00004C51 [............QL..]
    9F4265E0 0000AF74 B745C6C0 00000000 00000000 [t.....E.........]
    9F4265F0 00000000 00000000 00000000 00000000 [................]
    9F426600 00000000 00000000 00000000 00000003 [................]
    9F426610 FFFFFFFF 00000000 00000000 00000000 [................]
    9F426620 00000000 00000000 00000000 00000000 [................]
    Repeat 6 times
    9F426690 00000000 00000000 00000000 6D61726F [............oram]
    9F4266A0 6C707572 00000000 00000000 00000000 [rupl............]
    9F4266B0 00000000 00000000 00000000 00000008 [................]
    9F4266C0 3273696D 00003133 00000000 00000000 [mis231..........]
    9F4266D0 00000000 00000000 00000000 00000000 [................]
    Repeat 2 times
    9F426700 00000006 4E4B4E55 004E574F 00000000 [....UNKNOWN.....]
    9F426710 00000000 00000000 00000000 00000000 [................]
    9F426720 00000000 00000008 33353931 00000037 [........19537...]
    9F426730 00000000 00000000 00000000 00000000 [................]
    9F426740 00000005 6361726F 6D40656C 33327369 [....oracle@mis23]
    9F426750 4C282031 29525747 00000000 00000000 [1 (LGWR)........]
    9F426760 00000000 00000000 00000000 00000000 [................]
    9F426770 00000000 00000014 00000002 00000000 [................]
    9F426780 00000000 00000000 00000000 00000000 [................]
    Repeat 9 times
    9F426820 00000200 00000000 00000000 00000000 [................]
    9F426830 00000000 A246F880 A2417718 A241715C [......F..wA.\qA.]
    9F426840 00000000 A2712934 00000000 00000000 [....4)q.........]
    9F426850 00000000 00000000 00000000 00000000 [................]
    9F426860 00000000 9F426864 9F426864 00AF0000 [....dhB.dhB.....]
    9F426870 00000000 00AE8F99 00A45705 015D8F99 [.........W....].]
    9F426880 00000000 00000000 00000000 00000000 [................]
    9F426890 00000000 00000000 00000814 00000000 [................]
    9F4268A0 00000088 00000000 00000814 00000000 [................]
    9F4268B0 00000000 00000000 00000000 00000000 [................]
    Repeat 3 times
    9F4268F0 00000000 00000000 00000006 [............]
    error 470 detected in background process
    ORA-00470: LGWR process terminated with error

  • 805 new database creation

    Hi,
    I created a new 805 database(abc) on unix.(and ran catalog,catproc also).
    SVRMGR> select status from v$instance;
    STATUS
    OPEN
    but ....
    $ sqlplus system/mgr@abc
    SQL*Plus: Release 8.0.5.0.0 - Production on Wed Sep 14 15:46:19 2005
    (c) Copyright 1998 Oracle Corporation. All rights reserved.
    ERROR:
    ORA-01033: ORACLE initialization or shutdown in progress
    Can any one give suggestion plz..
    Thank you in advance.

    Bhoopal,
    If you have an access to metalink, I advise to read metalink note 131277.1 ORA-01403 during Database Startup.
    Here, we can read : The sys.props$ table is not properly populated with NLS parameter values.
    To verify, you have to check the number of rows in sys.props$:
    SVRMGR> connect internal;
    connected.
    SVRMGR> select count(*) from sys.props$;
    The number of rows differs for different versions of the database:
    In 7.3.x there should be 14 entries in sys.props$
    In 8.0.x there should be 15 entries in sys.props$
    In 8.1.x there should be 22 entries in sys.props$
    Check the alert.log file for other possible errors. For example, possible
    sys.props$ table corruption message.
    The only available solution in this case is to recreate the database.
    Tell us if you are in this situation.
    But I think that all is not lost, you are certainly here : an other metalink note 109803.1 ORA-1403 Signaled during alter database open, is more optimist : just recreate controlfile can help (read metalink note 1012929.6 How to Recreate the Controlfile).
    To reacreate ctlfile :
    SVRMGR> connect internal
    SVRMGR> startup mount
    SVRMGR> alter database backup controlfile to trace;Modify the generated file to have a ctl.sql file like this :
    STARTUP NOMOUNT 
       CREATE CONTROLFILE REUSE DATABASE "P716" NORESETLOGS NOARCHIVELOG 
           MAXLOGFILES 32 
           MAXLOGMEMBERS 2 
           MAXDATAFILES 30 
           MAXINSTANCES 8 
           MAXLOGHISTORY 800 
       LOGFILE 
         GROUP 1 '/u01/oracle/7.1.6/dbs/log1p716.dbf'  SIZE 500K, 
         GROUP 2 '/u01/oracle/7.1.6/dbs/log2p716.dbf'  SIZE 500K, 
         GROUP 3 '/u01/oracle/7.1.6/dbs/log3p716.dbf'  SIZE 500K 
       DATAFILE 
         '/u01/oracle/7.1.6/dbs/systp716.dbf' SIZE 40M, 
         '/u01/oracle/7.1.6/dbs/tempp716.dbf' SIZE 550K, 
         '/u01/oracle/7.1.6/dbs/toolp716.dbf' SIZE 15M 
       # Recovery is required if any of the datafiles are restored backups, 
       # or if the last shutdown was not normal or immediate. 
       RECOVER DATABASE 
       # Database can now be opened normally. 
       ALTER DATABASE OPEN;  Shutdown you database :
    SVRMGR> shutdown immediate Rename your current ctlfile, don't forget init.ora (ctlfile string)
    Run the ctl.sql script
    SVRMGR> connect internal                    
    SVRMGR> @ctl.sqlAt the first opportunity, shutdown the database and take a full backup.
    Hope this help,
    Nicolas.

  • New database creation no longer generating OracleDBConsole SID service

    Environment:
    Windows 2K Server, Oracle 10.2.0
    I created two instances last week on the system, and the two DBConsole services got created fine. This week, when I create another instance, the DBConsole service never gets created.
    Running the DBCU, I get to 85% when the process just goes away. There's nothing in the emConfig.log indicating what the problem may be, it just stops.
    The instance itself was created fine, it's just the DBConsole service never gets created.
    I tried emca -deconfig dbcontrol db -repos drop suggested in another thread, but get an exception:
    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x7C3
    50513
    Function=wcsncpy+0x14
    Library=E:\oracle\product\10.2.0\db_2\bin\MSVCR71.dll

    Hi;
    Error: ORA 205
    Text: error in identifying control file <name>
    Cause: The system could not find a control file of the specified name and
    size.
    Action: Either
    Check that the proper control filename is referenced in the
    CONTROL_FILES initialization parameter in the initialization parameter
    file and try again.
    When using mirrored control files, that is, more than one control file
    is referenced in the initialization parameter file, remove the control
    filename listed in the message from the initialization parameter file
    and restart the instance.
    If the message does not recur, remove the problem control file from
    the initialization parameter file and create another copy of the
    control file with a new filename in the initialization parameter file.
    Regard
    Helios

  • Request execution order, dictionnary dynamic views, new database creation

    Hi,
    Could you tell me, in which order this sql request is executed:
    select pro_name from product where pro_price =(select max(pro_price) from product);
    Is the sub-request executed first and the principal request executed once the sub request has sent its result or
    -is the principal request executed first, waiting the sub-request result when its arrived to
    =(select max(pro_price) from product);
    Thanks a lot for your answer
    Secondly can you tell me what means the option "management local" when you create the system, sysaux and undo datafiles, for example like this
    datafile 'C:\ORADATA\DBPROD\Base\DBPROD_SYSTEM_01.dbf' size 300M autoextend ON next 10M maxsize 500M extent management local
    To finish, what permit to créate the et catoctk.sql script when you create the data dictionnary.
    Thanks a lot for your answer.
    Nathalie

    1) The order in which elements of a SQL statement are processed is completely up to the optimizer. Which means that it is subject to change over time. Today, the optimizer may choose to execute a query one way, tomorrow, it may choose a different order of operations.
    Now, practically, it is almost certain that Oracle would choose to evaluate the maximum price first and then scan the product table for the products with that maximum price. But that's just because there aren't any other options that would seem appealing. If you added another condition, it might make sense to evaluate that condition first and then find the maximum price.
    2) Extent management local means that you are creating a locally managed tablespace. Assuming you're using a vaguely recent version of Oracle, all tablespaces are locally managed. Old versions of Oracle used dictionary managed tablespaces which basically meant that tracking information about when extents were allocated was stored in the SYSTEM tablespace. This was occasionally a performance problem which is why Oracle moved that information into the tablespace.
    3) I'm not sure what you're asking when you ask about a "permit to create the catoctk.sql script"
    Justin

  • Creation of new database

    Could somebody provide me with some help on how to create a new database in Oracle 10g? If this is not the suitable place to post this query, please provide me with a good forum's url.
    Thnks in advance
    Message was edited by:
    Manthan0

    Hi
    If you are using Windows and want to use a GUI then select e.g
    Start -> Oracle10g_Home1 -> Configuration and migration tools -> Database Configuration Assistant
    and follow instructions given to you...
    There is a similar tool for linux/unix , I do not remember it's name and do not have a current connection to a linux / oracle installation.

  • ORA-12154- during creation new database

    Hi All,
    when creating new database I I get this ora error ORA-12154 , Step : copying database files.
    Could you please help ?
    Thanks,

    Hi,
    ORA-12154:
         TNS:could not resolve the connect identifier specified
    Cause:      A connection to a database or other service was requested using a connect identifier, and the connect identifier specified could not be resolved into a connect descriptor using one of the naming methods configured. For example, if the type of connect identifier used was a net service name then the net service name could not be found in a naming method repository, or the repository could not be located or reached.
    Action:      
    - If you are using local naming (TNSNAMES.ORA file):
    - Make sure that "TNSNAMES" is listed as one of the values of the NAMES.DIRECTORY_PATH parameter in the Oracle Net profile (SQLNET.ORA)
    - Verify that a TNSNAMES.ORA file exists and is in the proper directory and is accessible.
    - Check that the net service name used as the connect identifier exists in the TNSNAMES.ORA file.
    - Make sure there are no syntax errors anywhere in the TNSNAMES.ORA file. Look for unmatched parentheses or stray characters. Errors in a TNSNAMES.ORA file may make it unusable.
    - If you are using directory naming:
    - Verify that "LDAP" is listed as one of the values of the NAMES.DIRETORY_PATH parameter in the Oracle Net profile (SQLNET.ORA).
    - Verify that the LDAP directory server is up and that it is accessible.
    - Verify that the net service name or database name used as the connect identifier is configured in the directory.
    - Verify that the default context being used is correct by specifying a fully qualified net service name or a full LDAP DN as the connect identifier
    - If you are using easy connect naming:
    - Verify that "EZCONNECT" is listed as one of the values of the NAMES.DIRETORY_PATH parameter in the Oracle Net profile (SQLNET.ORA).
    - Make sure the host, port and service name specified are correct.
    - Try enclosing the connect identifier in quote marks. See the Oracle Net Services Administrators Guide or the Oracle operating system specific guide for more information on naming.

  • Creating a new database in a new Oracle home

    Hi,
    I'd like to add a new database using dbca, but I want it in a different Oracle Home to the other databases on the server. I notice that in the dbca I do not get an option to specify a new Oracle home. I assume it is because this tool is only for database creation and not instance creation. Do I therefore need to do a full Oracle install in order to create a second Oracle home?
    Many thanks.
    ****Ignore this, I know what I'm doing now****
    Edited by: user11201026 on Aug 6, 2009 3:52 AM

    You need to better understand what an ORACLE_HOME is. An Oracle home has nothing to do with a Oracle database.
    ORACLE_HOME defines the location of an installation of an Oracle software installation.
    Where you decide to put a database is irrelevant to the location of an ORACLE_HOME.
    One ORACLE_HOME can have zero, one, or many databases.
    But you can not have an ORACLE_HOME without an installation of Oracle software.
    The concept docs are at http://tahiti.oracle.com.

  • Create a new Database in an other server using a copie of RMAN backup

    Hi all,
    I want to create an other instance for our production database. We have disk and tape in rman backup. My question is can i create a new database using our disk backup in an other server?
    If some procedure or steps is there, email it to my adresse [email protected]
    Hamid.
    Thanks

    By means of the use of Recovery Manager it is possible to duplicate a database out from a previously taken rman backup. The method will be outlined in the next few lines.
    Let's assume a source database named SRCDB and the target database, named GEMINI. A unix like environment is assumed, but it can be implemented on windows as well, just beware of the particular Oracle implementation on a windows platform (orapwd file name, service creation, path format)
    1. Create a password file for the Cloned (GEMINI) instance:
    orapwd file=/u01/app/oracle/product/9.2.0.1.0/dbs/orapwGEMINI password=password entries=10
    2. Configure tnsnames.ora and listner.ora
    Properly identify the database at the tnsnames.ora and have the instance manually registered against the listener.ora files, both files located at the $ORACLE_HOME/network/admin directory.
    2.a Manually register the database against the listener (listener.ora)
    (SID_DESC =
    (ORACLE_HOME = /u01/app/oracle/product/9.2.0.1.0)
    (SID_NAME = GEMINI)
    2.b Added the target GEMINI to the tnsnames.ora
    GEMINI =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = myhost.mydomain.com)(PORT = 1521))
    (CONNECT_DATA =
    (ORACLE_SID = GEMINI)
    2.c Reload the listener
    lsnrctl reload
    3. Create a new init.ora for the cloned database.
    Next create an init.ora file for the cloned database. In case the same paths cannot be used on the target host, either because it is the same source host or because those paths are not reproducible on the target, then DB_FILE_NAME_CONVERT and LOG_FILE_NAME_CONVERT may be required to be defined
    DB_NAME=GEMINI
    CONTROL_FILES=(/u02/oradata/GEMINI/control01.ctl,
    /u02/oradata/GEMINI/control02.ctl,
    /u02/oradata/GEMINI/control03.ctl)
    # Convert file names to allow for different directory structure.
    DB_FILE_NAME_CONVERT=(/u02/oradata/SRCDB/,/u02/oradata/GEMINI/)
    LOG_FILE_NAME_CONVERT=(/u01/oradata/SRCDB/,/u01/oradata/GEMINI/)
    # block_size and compatible parameters must match those of the source database
    DB_BLOCK_SIZE=8192
    COMPATIBLE=9.2.0.0.0
    4. Connect to the cloned instance
    ORACLE_SID=GEMINI; export ORACLE_SID
    sqlplus /nolog
    conn / as sysdba
    5. Create an SPFILE based on the init.ora
    CREATE SPFILE FROM PFILE='/u01/app/oracle/admin/GEMINI/pfile/init.ora';
    6. Start the database in NOMOUNT mode:
    STARTUP FORCE NOMOUNT;
    7. Connect to the TARGET, CATALOG and AUXILIARY databases.
    By means of the rman three connections are open, one for the Source Database (SOURCEDB), another for the Catalog database (RCAT), and one more for the cloned database (GEMINI)
    ORACLE_SID=GEMINI; export ORACLE_SID
    rman TARGET sys/password@SRCDB CATALOG rman/rman@RCAT AUXILIARY /
    8. Complete or Incomplete clone (recover)
    From the rman the database using one of the following commands:
    8.a Clone the database by means of a complete recover.
    DUPLICATE TARGET DATABASE TO GEMINI;
    8.b Clone the database up to a defined point in time in the past by means of an incomplete recover
    DUPLICATE TARGET DATABASE TO GEMINI UNTIL TIME 'SYSDATE-2';
    9. Process finished.
    Once the process is finished, the newly created GEMINI database is ready to be used as an independent new cloned database.
    Ref. RMAN Clone a Database
    ~ Madrid

  • About spfile creating in oracle 10g while creating a new database

    hi everyone,
    i had this problem while i was creating a new database in oracle 10g.when running the database script, it gives an error about invalid option for create temporary tablespace. is it necessary to have an spfile created in 10g. when the script was not working,we tried to create spfile which gives error tht it does not match the parameter db_name. its taking the default db_name=orcl itself..tis not taking our new db name.
    im creating it manually through sql prompt not through DBCA.the problem is that its still accepting the default db name. please send me the solution with syntaxes.
    thanx

    first of all, thanx for giuding me as im a student doing a course in this
    what abt the creation of spfile.. in a documentation for steps in creating database, they have mentioned it as recommended in creating spfile.here are some notes regarding this ....for oracle 10g
    Step 5: Create a Server Parameter File (Recommended)
    Oracle recommends that you create a server parameter file as a dynamic means of maintaining initialization parameters. The server parameter file is discussed in "Managing Initialization Parameters Using a Server Parameter File".
    The following script creates a server parameter file from the text initialization parameter file and writes it to the default location. The script can be executed before or after instance startup, but after you connect as SYSDBA. The database must be restarted before the server parameter file takes effect.
    -- create the server parameter file
    CREATE SPFILE='/u01/oracle/dbs/spfilemynewdb.ora' FROM
    PFILE='/u01/oracle/admin/initmynewdb/scripts/init.ora';
    SHUTDOWN
    -- the next startup will use the server parameter file
    EXIT
    the error : db_name does not match with the parameter.
    its still taking the default orcl database name

  • Error message when creating new database

    Hi, i am trying to create a new database for the first time but keep getting an error. Ive been through the create statement several times and it all looks good to me.Any help would be greatly appreciated !
    The error im getting is :
    ORA-00604: error occurred at recursive SQL level 2
    ORA-00942: table or view does not exist
    Fri Dec 9 22:54:10 2011
    Errors in file /u03/app/oracle/admin/OPS/udump/ops_ora_59850.trc:
    ORA-01501: CREATE DATABASE failed
    ORA-01519: error while processing file '?/rdbms/admin/sql.bsq' near line 5608
    ORA-00604: error occurred at recursive SQL level 2
    ORA-00942: table or view does not exist
    Fri Dec 9 22:54:10 2011
    Error 1519 happened during db open, shutting down database
    USER: terminating instance due to error 1519
    Instance terminated by USER, pid = 59850
    ORA-1092 signalled during: CREATE DATABASE OPS
    Here is my create database statement:
    CREATE DATABASE OPS
    USER SYS IDENTIFIED BY pz6r58
    USER SYSTEM IDENTIFIED BY y1tz5p
    LOGFILE GROUP 1 ('/u98/oradata/OPS/redo01.log') SIZE 30M,
    GROUP 2 ('/u98/oradata/OPS/redo02.log') SIZE 30M
    MAXLOGFILES 5
    MAXLOGMEMBERS 5
    MAXLOGHISTORY 1
    MAXDATAFILES 100
    MAXINSTANCES 1
    CHARACTER SET US7ASCII
    NATIONAL CHARACTER SET AL16UTF16
    DATAFILE '/u02/oradata/OPS/system01.dbf' SIZE 30M REUSE
    EXTENT MANAGEMENT LOCAL
    SYSAUX DATAFILE '/u02/oradata/OPS/sysaux01.dbf' SIZE 30M REUSE
    DEFAULT TABLESPACE tbs01
    DATAFILE '/u07/oradata/OPS/tbs01.dbf' SIZE 325M REUSE
    DEFAULT TEMPORARY TABLESPACE temp01
    TEMPFILE '/u07/oradata/OPS/temp01.dbf'
    SIZE 20M REUSE
    UNDO TABLESPACE undotbs01
    DATAFILE '/u07/oradata/OPS/undotbs01.dbf'
    Size 50m reuse;
    Here is my pfile
    db_block_size=8192
    db_cache_size=25165824
    db_file_multiblock_read_count=16
    open_cursors=300
    db_domain=world
    db_name=OPS
    background_dump_dest=/u03/app/oracle/admin/OPS/bdump
    core_dump_dest=/u03/app/oracle/admin/OPS/cdump
    timed_statistics=TRUE
    user_dump_dest=/u03/app/oracle/admin/OPS/udump
    control_files=("/u02/oradata/OPS/control01.ctl", "/u05/oradata/OPS/control02.ctl", "/u06/oradata/OPS/control03.ctl")
    rollback_segments = (RBS01,RBS02,RBS03)
    os_authent_prefix = ""
    instance_name=OPS
    compatible=10.2.0.0.0
    #hash_join_enabled=TRUEa = obsolete in 10.2
    query_rewrite_enabled=FALSE
    star_transformation_enabled=FALSE
    java_pool_size=0
    large_pool_size=0
    #large_pool_size=8388608
    #shared_pool_size=36700160
    shared_pool_size=76700160
    #large_pool_size=8388608
    #java_pool_size=150000000
    #shared_pool_size=187928166
    streams_pool_size=50331648
    processes=150
    session_max_open_files=20
    fast_start_mttr_target=300
    remote_login_passwordfile=EXCLUSIVE
    pga_aggregate_target=25165824
    sort_area_size=65536
    rollback_segments = (RBS01,RBS02,RBS03)
    undo_management=auto
    undo_tablespace=UNDO_TS
    #undo_retention=10800
    Many thanks

    Refer this MOS ID *CREATE DATABASE Statement Fails With ORA-1501 ORA-1519 ORA-604 ORA-942 Errors [ID 434557.1]*
    Increase the size of SYSAUX tablespace in the CREATE DATABASE statement.
    The SYSAUX tablespace needs to be at least 240 MB at the time of database creation. The space requirements of the SYSAUX tablespace will increase after the database is fully deployed
    Also the size of the system tablespace should be more and not to 30 MB as in your case

  • While Installation of 11g database creation time error ORA-28056: Writing audit records to Windows Event Log failed Error

    Hi Friends,
    OS = Windows XP 3
    Database = Oracle 11g R2 32 bit
    Processor= intel p4 2.86 Ghz
    Ram = 2 gb
    Virtual memory = 4gb
    I was able to install the oracle 11g successfully, but during installation at the time of database creation I got the following error many times and I ignored it many times... but at 55% finally My installation was hanged nothing was happening after it..... 
    ORA-28056: Writing audit records to Windows Event Log failed Error  and at 55% my Installation got hung,,,, I end the installation and tried to create the database afterward by DBCA but same thing happened....
    Please some one help me out, as i need to install on the same machine .....
    Thanks and Regards

    AAP wrote:
    Thanks Now I am able to Create a database , but with one error,
    When I created a database using DBCA, at the last stage I got this error,
    Database Configuration Assistant : Warning
    Enterprise Manager Configuration Failed due to the Following error Listener is not up or database service is not registered with it.  Start the listener & Registered database service & run EM Configuration Assistant again....
    But when I checked the listener was up.....
    Now what was the problem,  I am able to connect and work through sqlplus,
    But  I didnt got the link of EM and when try to create a new connection in sql developer it is giving error ( Status : failure - Test Failed the Network Adapter could not establish the connection )
    Thanks & Regards
    Creation of the dbcontrol requires a connection via the listener.  When configuring the dbcontrol as part of database creation, it appears that the dbcontrol creation step runs before the dynamic registration of the databsase with the listener is complete.  Now that the database itself is completed and enough time (really, just a minute or two) has passed to allow the instance to register, use dbca or emca to create the dbcontrol.
    Are you able to get a sqlplus connection via the listener (sqlplus scott/tiger@orcl)?  That needs to be the first order of business.

Maybe you are looking for

  • Is it possible for documents in a portfolio to keep their page/print setup, i.e.staples/punches etc?

    Hi, I have to create training materials on a regular basis. These materials are generally folders with various forms, role plays cards and general reading. Also, each course demands a different mix of materials - I find my self spending days printing

  • Pentax lens type not displayed in exif data.

    I have an SMC Pentax-DA 18-250mm lens, which I use on my K10D. I save the raw files in .dng format directly on to the memory card, then import them unchanged into LR. LR has persistently refused to show the lens type in the exif data for this lens -

  • Delete ARP table entry

    I need to create a program to delete an entry in the ARP table in Windows 7 with LabVIEW or TestStand.  The test that I am developing communicates with the DUT over Ethernet.  Each DUT has the same IP address to start but different MAC addresses.  I

  • Is it possible to add pages from a different template

    than the one one chose to work in? Juan Carlos

  • Backing up the desk top

    Time Machine keeps backing up my hard drive every hour, even right thought the night when I am not using the computer. What I want to back up are all the files on my desk top - but they don't seem to be backed up at all. Any idea what I can do to ens