DB_NAME 과 SID 변경하는 방법

제품 : ORACLE SERVER
작성날짜 : 2002-10-22
(V7.X ~ V9.X) Modifying a database to run under a new ORACLE_SID
================================================================
1. Shutdown instance
2. Backup all control, redo and data files.
3. Go thru the .profile, .cshrc, .login, oratab, tnsnames.ora(for net v2)
, and redefine the environment variable ORACLE_SID to a new value.
ie search thru disks and do a grep ORACLE_SID *
4. cd $ORACLE_HOME/dbs and rename the following files:
o init<sid>.ora (or use pfile to point to the init file.)
o control file(s) This is optional if you don't rename any of
the controlfiles, and the control_files parameter is used.
control_files would be set in the initSID.ora file or in a file
it references with the ifile parameter. Make sure control_files
doesn't point to any old file names, if you renamed them.
o crdb<sid>.sql & crdb2<sid>.sql This is optional. These are
only used at database creation.
5. cd $ORACLE_HOME/rdbms/admin and rename the file:
o startup<sid>.sql This is optional.
(On some platforms, this file may be in $ORACLE_HOME/rdbms/install.)
Make sure the contents of this file do not reference old initSID.ora
files that have been renamed. This file simplifies the process to
"startup exclusive" your database.
6. To rename the database files and redo log files, you would follow
the instructions in the bulletin: 98863.723.
7. Change the ORACLE_SID environment variable to the new value.
8. start up database and verify it works. Once you have done this,
shutdown the database and take a final backup of all control, redo
and data files.
9. When the instance is started, the control file gets updated with
the current ORACLE_SID.
Changing the dbname for a database
1. sqldba
2. connect internal
3. alter database backup controlfile to trace;
This will write in a trace file, the CREATE CONTROLFILE command that
would recreate the controlfile as it currently exists.
4. Exit and go to the directory where your trace files are located.
They are usually in the $ORACLE_HOME/rdbms/log directory.
If user_dump_dest is set in the initSID.ora, then go to the directory
listed in the user_dump_dest variable.
The trace file will have the form "ora_NNNN.trc with NNNN being a
number.
5. Get the CREATE CONTROLFILE command from the trace file and put it in
a new file called something like ccf.sql.
6. Edit the ccf.sql file and modify the CREATE CONTROLFILE command.
Just change the word "REUSE" to "SET",and "NORESETLOGS" to
"RESETLOGS", and modify the dbname.
Old line:
CREATE CONTROLFILE REUSE DATABASE "olddbname" NORESETLOGS ...
New line:
CREATE CONTROLFILE set DATABASE "newdbname" RESETLOGS ...
Then save the ccf.sql file.
7. Rename the old control files for backup purposes and so they are not
in the way of creating the new ones.
8. Edit initSID.ora so that db_name="newdbname".
9. sqldba
10. connect internal
11. startup nomount
12. @ccf
13. alter database open resetlogs;
14. Make sure the database is working. Shutdown and backup the database.
Reference Documents
<Note:15390.1>

Similar Messages

  • Restore on new server with new DB_NAME/SID?

    My goal is to restore database with the RMAN backup on a server that has no connectivity to the production database (I don’t want to use duplicate command).
    I restore a database from RMAN using a same DB_NAME/SID and everything was ok.
    -     restore spfile
    -     restore controlfile
    -     restore database
    -     recover database
    -     open with reset logs
    Now I want to restore database but with different DB_NAME/SID (My production database is PROD and I want to restore this PROD RMAN backup on new server and this new database I want to be called DEV).
    How to restore database with new DB_NAME/SID?
    Oracle 10g, Windows Server 2003
    Thanks in advance!

    user9106065 wrote:
    My goal is to restore database with the RMAN backup on a server that has no connectivity to the production database (I don’t want to use duplicate command).
    I restore a database from RMAN using a same DB_NAME/SID and everything was ok.
    -     restore spfile
    -     restore controlfile
    -     restore database
    -     recover database
    -     open with reset logs
    Now I want to restore database but with different DB_NAME/SID (My production database is PROD and I want to restore this PROD RMAN backup on new server and this new database I want to be called DEV).
    How to restore database with new DB_NAME/SID?
    Oracle 10g, Windows Server 2003
    Thanks in advance!You can use NID command
    Run NID and you can see the options to run
    or see How to Change the DBID, DBNAME Using NID Utility in version 10GgR2 onwards [ID 863800.1]
    Cheers

  • LK DB_NAME FILE에 대하여 (ORA-1102에 대한 원인 설명)

    제품 : ORACLE SERVER
    작성날짜 : 2000-05-05
    LK<DB_NAME> FILE에 대하여 (ORA-1102에 대한 원인 설명)
    ===================================================
    Unix 용 Oracle7.3.3 이전의 version에서는 parallel server mode(OPS)로
    운용하지 않더라도 서로 다른 ORACLE_SID를 이용하는 두개의 instance가 하나의
    database를 동시에 mount하는 것이 경우에 따라서는 가능할 수도 있었다
    (<Bug:272030>). 이 경우, 서로 독립적인 두개의 instance가 동일한 database
    file들을 동기화 (synchronisation)없이 access할 수 있기 때문에 database
    corruption을 유발시킬 수 있었다.
    Unix system에서의 이러한 문제를 회피하기 위하여 7.3.3부터 'mount lock'
    file이 이용된다. 이 file은 그 size가 0 byte, 생성되는 위치는
    $ORACLE_HOME/dbs 이며 그 이름은 lk<DB_NAME> 이다.
    Oracle이 database를 mount할 때 lk<DB_NAME> file과 관련하여 다음과 같은
    절차를 수행한다.
    1. file name의 'DB_NAME' 부분은 db_name parameter를 이용한다.
    예를 들어, db_name=V803 이라면 사용되는 lock file의 위치와 이름은
    '$ORACLE_HOME/dbs/lkV803'이 된다.
    2. 만약 해당 file이 존재하지 않는다면 생성한다.
    존재한다면 file을 open한다.
    3. 이 file에 exclusive Unix file lock을 설정한다.
    위의 과정 상에서 문제가 발생된다면 해당 instance는 db를 mount할 수 없으며
    ORA-1102('cannot mount database in exclusive mode')가 return된다.
    Releasae 7.3.3 이전에서는 동일한 $ORACLE_HOME, 동일한 db_name을 이용하는
    두 개의 database를 $ORACLE_SID만 다르다면 동시에 open하여 사용할 수 있었다.
    그러나 lock file이 사용되는 7.3.3부터는, lock file의 이름에 db_name이
    이용되기 때문에 어느 한쪽의 db_name을 변경해야만 동시에 open하여 사용할
    수가 있다.(db_name의 변경은 controlfile을 재생성함으로써 가능하다.)
    이렇게 database의 db_name이 변경되면 각각의 lk<DB_NAME> file을 생성하여
    이용하게 된다.
    참고 사항
    1. database를 구동하고 있는 instance가 있을 때에는 lk<DB_NAME> file은
    삭제하지 않도록 한다.
    2. database가 shutdown되더라도 lk<DB_NAME> file은 삭제되지 않고 존재한다.
    따라서 이 file의 유무를 가지고 database의 구동 유무를 판단할 수 없다.
    3. lk<DB_NAME>의 DB_NAME은 SID와는 다를 수 있다. SID가 아닌 DB_NAME을
    이용함에 주의.
    4. lock file과 관련하여 다음의 error들이 발생될 수 있다.
    ORA-9992 scumnt: failed to open <FILENAME>
    ORA-9993 scumnt: failed to lock <FILENAME>
    ORA-1102 cannot mount database in exclusive mode

  • Errors in alert log

    Hi,
    we have Oracle 11.2.0 standard running under Windows Xp 32
    At last time alert log is full of error? like
    Tue Dec 18 11:14:26 2012
    Errors in file c:\oracle\diag\rdbms\ \trace\ratik_j000_4448.trc:
    Errors in file c:\oracle\diag\rdbms\ \trace\ratik_j000_4448.trc:
    and Db is open and in read/write mode
    each trace file is over 4 GB size and new trace files appear and they all are like <sid>j000<>.trc
    all trace files contains following messages
    Trace file c:\oracle\diag\rdbms\ \trace\<sid>j0003300.trc
    Oracle Database 11g Release 11.2.0.1.0 - Production
    Windows XP Version V5.1 Service Pack 3
    CPU : 4 - type 586, 4 Physical Cores
    Process Affinity : 0x0x00000000
    Memory (Avail/Total): Ph:705M/2986M, Ph+PgF:3533M/6914M, VA:978M/2047M
    Instance name: ratik
    Redo thread mounted by this instance: 1
    Oracle process number: 19
    Windows thread id: 3300, image: ORACLE.EXE (J000)
    *** 2013-03-12 09:07:08.906
    *** SESSION ID:(192.5) 2013-03-12 09:07:08.906
    *** CLIENT ID:() 2013-03-12 09:07:08.906
    *** SERVICE NAME:(SYS$USERS) 2013-03-12 09:07:08.906
    *** MODULE NAME:(EM_PING) 2013-03-12 09:07:08.906
    *** ACTION NAME:(AGENT_STATUS_MARKER) 2013-03-12 09:07:08.906
    --------Dumping Sorted Master Trigger List --------
    Trigger Owner : SYSMAN
    Trigger Name : MGMT_JOB_EXEC_UPDATE
    --------Dumping Trigger Sublists --------
    trigger sublist 0 :
    trigger sublist 1 :
    Trigger Owner : SYSMAN
    Trigger Name : MGMT_JOB_EXEC_UPDATE
    trigger sublist 2 :
    trigger sublist 3 :
    trigger sublist 4 :
    what it can be and whow can I fix it?
    Thank's

    There are no ora-00600 errors not in aler not in treace file. And it is not a standby, it is a standalone Db server
    full trace files are over 4GB
    so again the alert log
    Starting ORACLE instance (normal)
    LICENSE_MAX_SESSION = 0
    LICENSE_SESSIONS_WARNING = 0
    Picked latch-free SCN scheme 2
    Using LOG_ARCHIVE_DEST_1 parameter default value as USE_DB_RECOVERY_FILE_DEST
    Autotune of undo retention is turned on.
    IMODE=BR
    ILAT =27
    LICENSE_MAX_USERS = 0
    SYS auditing is disabled
    Starting up:
    Oracle Database 11g Release 11.2.0.1.0 - Production.
    Using parameter settings in server-side spfile C:\ORACLE\PRODUCT\11.2.0\DBHOME_1\DATABASE\SPFILERATIK.ORA
    System parameters with non-default values:
    processes = 150
    nls_language = "AMERICAN"
    nls_territory = "AMERICA"
    memory_target = 1200M
    control_files = "C:\ORACLE\ORADATA\RATIK\CONTROL01.CTL"
    control_files = "C:\ORACLE\FLASH_RECOVERY_AREA\ \CONTROL02.CTL"
    Wed Mar 13 11:32:52 2013
    db_block_size = 8192
    compatible = "11.2.0.0.0"
    db_recovery_file_dest = "C:\oracle\flash_recovery_area"
    db_recovery_file_dest_size= 3852M
    undo_tablespace = "UNDOTBS1"
    max_enabled_roles = 148
    remote_login_passwordfile= "EXCLUSIVE"
    db_domain = ""
    dispatchers = "(PROTOCOL=TCP) (SERVICE=ratikXDB)"
    utl_file_dir = "*"
    job_queue_processes = 100
    audit_file_dest = "C:\ORACLE\ADMIN\ \ADUMP"
    audit_trail = "DB"
    db_name = " SID "
    open_cursors = 300
    optimizer_mode = "ALL_ROWS"
    query_rewrite_enabled = "TRUE"
    query_rewrite_integrity = "TRUSTED"
    aq_tm_processes = 1
    diagnostic_dest = "C:\ORACLE"
    Deprecated system parameters with specified values:
    Wed Mar 13 11:33:02 2013
    max_enabled_roles
    End of deprecated system parameter listing
    Wed Mar 13 11:33:03 2013
    PMON started with pid=2, OS id=2484
    Wed Mar 13 11:33:03 2013
    MMAN started with pid=9, OS id=2176
    Wed Mar 13 11:33:04 2013
    DBW0 started with pid=10, OS id=2896
    Wed Mar 13 11:33:04 2013
    SMON started with pid=13, OS id=2380
    Wed Mar 13 11:33:03 2013
    GEN0 started with pid=4, OS id=1056
    Wed Mar 13 11:33:03 2013
    DBRM started with pid=6, OS id=2188
    Wed Mar 13 11:33:04 2013
    RECO started with pid=14, OS id=3452
    Wed Mar 13 11:33:04 2013
    MMNL started with pid=16, OS id=2588
    Wed Mar 13 11:33:03 2013
    VKTM started with pid=3, OS id=2492 at elevated priority
    starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
    Wed Mar 13 11:33:03 2013
    DIA0 started with pid=8, OS id=2180
    starting up 1 shared server(s) ...
    Wed Mar 13 11:33:04 2013
    MMON started with pid=15, OS id=1640
    VKTM running at (10)millisec precision with DBRM quantum (100)ms
    Wed Mar 13 11:33:03 2013
    PSP0 started with pid=7, OS id=2504
    Wed Mar 13 11:33:04 2013
    CKPT started with pid=12, OS id=2544
    Wed Mar 13 11:33:04 2013
    LGWR started with pid=11, OS id=3228
    ORACLE_BASE from environment = C:\oracle
    Wed Mar 13 11:33:03 2013
    DIAG started with pid=5, OS id=2488
    Wed Mar 13 11:33:10 2013
    alter database mount exclusive
    Successful mount of redo thread 1, with mount id 327119926
    Database mounted in Exclusive Mode
    Lost write protection disabled
    Completed: alter database mount exclusive
    alter database open
    Wed Mar 13 11:33:21 2013
    Beginning crash recovery of 1 threads
    Started redo scan
    Completed redo scan
    read 463 KB redo, 146 data blocks need recovery
    Started redo application at
    Thread 1: logseq 517, block 72654
    Recovery of Online Redo Log: Thread 1 Group 1 Seq 517 Reading mem 0
    Mem# 0: C:\ORACLE\ORADATA\RATIK\REDO01.LOG
    Completed redo application of 0.35MB
    Completed crash recovery at
    Thread 1: logseq 517, block 73581, scn 11916940
    146 data blocks read, 146 data blocks written, 463 redo k-bytes read
    Wed Mar 13 11:33:32 2013
    Thread 1 advanced to log sequence 518 (thread open)
    Thread 1 opened at log sequence 518
    Current log# 2 seq# 518 mem# 0: C:\ORACLE\ORADATA\RATIK\REDO02.LOG
    Successful open of redo thread 1
    Wed Mar 13 11:33:35 2013
    SMON: enabling cache recovery
    Wed Mar 13 11:33:36 2013
    Successfully onlined Undo Tablespace 2.
    Verifying file header compatibility for 11g tablespace encryption..
    Verifying 11g file header compatibility for tablespace encryption completed
    SMON: enabling tx recovery
    Database Characterset is CL8MSWIN1251
    No Resource Manager plan active
    replication_dependency_tracking turned off (no async multimaster replication found)
    Starting background process QMNC
    Wed Mar 13 11:33:45 2013
    QMNC started with pid=20, OS id=4012
    Wed Mar 13 11:33:49 2013
    Completed: alter database open
    Wed Mar 13 11:33:56 2013
    Starting background process CJQ0
    Wed Mar 13 11:33:56 2013
    CJQ0 started with pid=22, OS id=2540
    Wed Mar 13 11:33:57 2013
    db_recovery_file_dest_size of 3852 MB is 0.00% used. This is a
    user-specified limit on the amount of space that will be used by this
    database for recovery-related files, and does not reflect the amount of
    space available in the underlying filesystem or ASM diskgroup.
    Wed Mar 13 11:34:23 2013
    Errors in file c:\oracle\diag\rdbms\\trace\_j000_632.trc:
    Wed Mar 13 11:34:29 2013
    Trace dumping is performing id=[cdmp_20130313113429]
    Errors in file c:\oracle\diag\rdbms\\trace\_j000_632.trc:
    Wed Mar 13 11:34:39 2013
    Errors in file c:\oracle\diag\rdbms\\trace\_j000_632.trc:
    Wed Mar 13 11:34:41 2013
    Trace dumping is performing id=[cdmp_20130313113441]
    Errors in file c:\oracle\diag\rdbms\\trace\_j000_632.trc:
    Trace dumping is performing id=[cdmp_20130313113448]
    Wed Mar 13 11:34:53 2013
    Errors in file c:\oracle\diag\rdbms\k\trace\_j000_632.trc:
    Errors in file c:\oracle\diag\rdbms\\trace\_j000_632.trc:
    Wed Mar 13 11:35:01 2013
    Trace dumping is performing id=[cdmp_20130313113501]
    Errors in file c:\oracle\diag\rdbms\\trace\_j000_632.trc:
    Wed Mar 13 11:35:07 2013
    Errors in file c:\oracle\diag\rdbms\\trace\_j000_632.trc:
    Trace dumping is performing id=[cdmp_20130313113509]
    Errors in file c:\oracle\diag\rdbms\ratik\ratik\trace\ratik_j000_632.trc:
    Wed Mar 13 11:35:20 2013
    Errors in file c:\oracle\diag\rdbms\\trace\_j000_632.trc:
    Errors in file c:\oracle\diag\rdbms\\trace\_j000_632.trc:
    Errors in file c:\oracle\diag\rdbms\\trace\_j000_632.trc:
    Wed Mar 13 11:36:20 2013
    Errors in file c:\oracle\diag\rdbms\\trace\_j000_632.trc:
    Errors in file c:\oracle\diag\rdbms\\trace\_j000_632.trc:
    Errors in file c:\oracle\diag\rdbms\\trace\_j000_632.trc:
    Errors in file c:\oracle\diag\rdbms\\trace\_j000_632.trc:
    and this message goes on till server is restarted after server is up that message appear again
    in trace file
    Trace file c:\oracle\diag\rdbms\ \trace\<sid>j0003300.trc
    Oracle Database 11g Release 11.2.0.1.0 - Production
    Windows XP Version V5.1 Service Pack 3
    CPU : 4 - type 586, 4 Physical Cores
    Process Affinity : 0x0x00000000
    Memory (Avail/Total): Ph:705M/2986M, Ph+PgF:3533M/6914M, VA:978M/2047M
    Instance name: ratik
    Redo thread mounted by this instance: 1
    Oracle process number: 19
    Windows thread id: 3300, image: ORACLE.EXE (J000)
    *** 2013-03-12 09:07:08.906
    *** SESSION ID:(192.5) 2013-03-12 09:07:08.906
    *** CLIENT ID:() 2013-03-12 09:07:08.906
    *** SERVICE NAME:(SYS$USERS) 2013-03-12 09:07:08.906
    *** MODULE NAME:(EM_PING) 2013-03-12 09:07:08.906
    *** ACTION NAME:(AGENT_STATUS_MARKER) 2013-03-12 09:07:08.906
    --------Dumping Sorted Master Trigger List --------
    Trigger Owner : SYSMAN
    Trigger Name : MGMT_JOB_EXEC_UPDATE
    --------Dumping Trigger Sublists --------
    trigger sublist 0 :
    trigger sublist 1 :
    Trigger Owner : SYSMAN
    Trigger Name : MGMT_JOB_EXEC_UPDATE
    trigger sublist 2 :
    trigger sublist 3 :
    trigger sublist 4 :
    *** 2013-03-12 09:07:14.046
    oer 8102.3 - obj# 86174, rdba: 0x00810e2c(afn 2, blk# 69164)
    kdk key 8102.3:
    ncol: 8, len: 47
    key: (47):
    01 80 05 41 44 4d 34 36 02 c1 02 0b 78 70 0a 10 08 2c 32 28 f2 c9 c0 02 c1
    04 01 80 01 80 10 c0 89 b8 fe e0 85 45 5a 8d 44 5f 2f 1c b6 ea bb
    mask: (2048):
    05 09 80 54 00 00 00 00 00 4c 00 00 00 88 70 9e 3e 00 00 00 00 00 00 00 00
    40 00 00 00 c8 78 34 0d 94 d1 aa 06 a0 03 8d 0b 00 00 00 00 ed d4 aa 06 9c
    70 9e 3e 00 00 00 00 38 00 00 00 0d 00 00 00 01 00 00 00 03 00 00 00 01 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 a0 79 9e 3e 00 00 00 00 ed d4 aa
    06 e8 70 9e 3e 00 00 00 00 38 00 00 00 00 00 00 00 38 00 00 00 00 00 00 00
    4c 00 00 00 00 00 00 00 9c 70 9e 3e 00 00 00 00 00 00 00 00 14 00 00 00 00
    40 00 00 00 00 00 00 a0 79 9e 3e 6c 00 00 00 c8 1c e4 3e 68 b6 3d 0d 7c 79
    34 0d fc f5 c4 62 a0 03 8d 0b a0 79 9e 3e 38 00 00 00 ff ff ff 7f 00 00 00
    00 00 00 00 00 00 40 00 01 00 00 00 00 38 ca f4 62 00 00 00 00 00 00 00 00
    00 00 00 00 02 00 00 00 02 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 c4 b0 3d 0d 08 76 9e 3e 16 00 00 00 f0 1c e4 3e 00 00 00 00 64 81
    34 0d 00 00 00 00 44 79 34 0d 8c 2c 20 07 17 00 00 00 c4 b0 3d 0d 4c 79 34
    0d 28 23 ea 06 5c 79 34 0d 8c 2c 20 07 17 00 00 00 c4 b0 3d 0d 64 79 34 0d
    28 23 ea 06 b4 79 34 0d a5 d2 ec 62 5c 88 34 0d 80 79 34 0d 8c 2c 20 07 17
    00 00 00 6c 00 00 00 88 79 34 0d 28 23 ea 06 ac 79 34 0d 58 14 cd 62 08 76
    9e 3e a0 03 8d 0b 00 00 00 00 00 00 00 00 02 00 00 00 0c 7e 34 0d c4 b0 3d
    0d 80 ff 8c 0b 6c 00 00 00 d4 79 34 0d 36 a4 c2 62 c8 1c e4 3e 06 00 00 00
    0c 7e 34 0d 02 00 00 00 84 00 00 00 c4 b0 3d 0d 10 7e 34 0d ef 5f 3b 02 c8
    1c e4 3e 06 00 00 00 0c 7e 34 0d 02 00 00 00 84 00 00 00 c4 b0 3d 0d 06 00
    00 00 40 7e 34 0d 02 00 00 00 84 00 00 00 c4 b0 3d 0d 44 7e 34 0d ef 5f 3b
    and those memory blocks till the end of log file
    NO SR is raised.

  • 32 to 64 bit Oracle.

    Hello Colleagues. I'm have a problem and can't understand that's wrong ...
    I'm trying Homogeneous System copy win 32 to 64 , ERP SR3 Central system ABAP+JAVA with Backup/Reastore  ... The Source system are installed by Consultant team and i can't change any settings in any component on system in this time ...
    I'm generate the control.sql on source system, load the JAVA part.
    On Target system i'm install the Oracle 10.2.0.2 Bundle patches. Start sapins with requred system copy
    paths, after sapinst ask's the restore database and all files (per SYS COPY GUIDE), i'm copy oll files with same drives and names, copy the control.sql and init_TARGET.ora to required destinations.
    After i will see error :
    CJS-00084  SQL statement or script failed. DIAGNOSIS: Error message: ORA-02778: Name given for the log directory is invalid
    CREATE CONTROLFILE REUSE
    ERROR at line 1:
    ORA-01034: ORACLE not available
    ALTER DATABASE OPEN RESETLOGS
    ERROR at line 1:
    ORA-01034: ORACLE not available
    ALTER TABLESPACE PSAPTEMP ADD TEMPFILE 'D:\ORACLE\SID\SAPDATA2\TEMP_1\TEMP.DATA1'
    ERROR at line 1:
    ORA-01034: ORACLE not available
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    ORA-02778: Name given for the log directory is invalid.
    I'm checking all paths and directories on initSID.ora , all are correct,
    *._OPTIM_PEEK_USER_BINDS=FALSE
    *.background_dump_dest='D:\oracle\SID\saptrace\background'
    *.compatible='10.2.0'
    *.control_file_record_keep_time=30
    *.control_files='D:\oracle\SID\sapdata1\cntrl\cntlrSID.dbf','D:\oracle\SID\sapdata2\cntrl\cntrlSID.dbf','D:\oracle\SID\sapdata3\cntrl\cntrlSID.dbf'
    *.core_dump_dest='D:\oracle\SID\saptrace\background'
    *.db_block_size=8192
    *.db_cache_size=314572800
    *.db_files=254
    *.db_name='SID'
    *.dml_locks=4000
    *.event='10191 trace name context forever, level 1'
    *.FILESYSTEMIO_OPTIONS='setall'
    *.job_queue_processes=1
    *.log_archive_dest='D:\oracle\SID\oraarch\SIDarch'
    *.log_buffer=1048576
    *.log_checkpoint_interval=0
    *.log_checkpoints_to_alert=true
    *.open_cursors=800
    *.optimizer_features_enable='10.2.0.1'
    *.pga_aggregate_target=419430400
    *.processes=80
    *.recyclebin='off'
    *.remote_login_passwordfile='exclusive'
    *.remote_os_authent=true
    *.sessions=96
    *.sga_max_size=629145600
    *.shared_pool_reserved_size=31457280
    *.shared_pool_size=314572800
    *.sort_area_retained_size=0
    *.sort_area_size=2097152
    *.statistics_level='typical'
    *.undo_management='AUTO'
    *.undo_retention=43200
    *.undo_tablespace='PSAPUNDO'
    *.user_dump_dest='D:\oracle\SID\saptrace\usertrace'
    *.workarea_size_policy='AUTO'
    In alert_SID.log from (D:\oracle\SID\102\RDBMS\trace ) lines only like
    Starting ORACLE instance (normal)
    Thu Feb 05 20:21:58 2009
    Adjusting the default value of parameter parallel_max_servers
    from 160 to 65 due to the value of parameter processes (80)
    Thu Feb 05 20:21:59 2009
    Starting ORACLE instance (normal)
    Thu Feb 05 20:57:22 2009
    Adjusting the default value of parameter parallel_max_servers
    from 160 to 65 due to the value of parameter processes (80)
    Thu Feb 05 20:57:22 2009
    Starting ORACLE instance (restrict)
    Tnslistener are up and running :
    Alias                     LISTENER
    Version                   TNSLSNR for 64-bit Windows: Version 10.2.0.2.0 - Production
    Start Date                05-FEB-2009 19:50:51
    Uptime                    0 days 0 hr. 0 min. 6 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   D:\oracle\SID\102\network\admin\listener.ora
    Listener Log File         D:\oracle\SID\102\network\log\listener.log
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\SID.WORLDipc)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\SIDipc)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=server.local)(PORT=1527)))
    Services Summary...
    Service "SID" has 1 instance(s).
      Instance "SID", status UNKNOWN, has 2 handler(s) for this service...
    OracleServiceSID are started to .....
    What could be the problem ? Thanks for all answers. Regards.

    Hello Joe Bo the Control.sql starts :
    CONNECT / AS SYSDBA
    STARTUP NOMOUNT
    CREATE CONTROLFILE REUSE
    SET DATABASE "SID"
    RESETLOGS
    ARCHIVELOG
    MAXLOGFILES 255
    MAXLOGMEMBERS 3
    MAXDATAFILES 1022
    MAXINSTANCES 50
    MAXLOGHISTORY 11680
    LOGFILE
    GROUP
    e.t.c.
    The log
    SQL*Plus: Release 10.2.0.2.0 - Production on Thu Feb 5 20:16:39 2009
    Copyright (c) 1982, 2005, Oracle.  All Rights Reserved.
    Connected to an idle instance.
    Connected to an idle instance.
    ORACLE instance shut down.
    Connected to an idle instance.
    ORA-02778: Name given for the log directory is invalid
    CREATE CONTROLFILE REUSE
    ERROR at line 1:
    ORA-01034: ORACLE not available
    ALTER DATABASE OPEN RESETLOGS
    ERROR at line 1:
    ORA-01034: ORACLE not available
    ALTER TABLESPACE PSAPTEMP ADD TEMPFILE 'D:\ORACLE\SID\SAPDATA2\TEMP_1\TEMP.DATA1'
    ERROR at line 1:
    ORA-01034: ORACLE not available
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    ORA-02778: Name given for the log directory is invalid
    Yes the D:\oracle\SID\oraarch is there, and is writeable.
    Thanks for your time. Regards.

  • Oracle database won't start/connect

    I apologize in advance if I've missed something in another forum/thread, or leave out necessary information towards solving this. I tried to be as comprehensive in my research as possible prior to posting.
    Here's the story - I have a 10g 10.2.0.1.0 database on Windows XP. It was running fine, until I tried to add DBWS_UTL/10.2.0.3.0 Client... I think?, components to it in order to enable it for Web Services. I followed the tutorial at the following link:
    http://www.oracle.com/technology/obe/10gr2_db_single/develop/java/java_otn.htm
    ... and got down to Instruction #8, just before "Calling the Web Service". It says "Note that there are no errors." Unfortunately, I did have errors... and more unfortunately, I don't still have them handy.
    After some testing I realized that not only do database web services not work, but my database was no longer functioning at all. Consultation with coworkers revealed the problem to likely be tied to now having improper version matching (10.2.0.1 versus 10.2.0.3...)
    So, I tried upgrading my 10.2.0.1 to 10.2.0.3... and believe I have successfully done that. Every service started up in Windows Services except for "OracleDBConsoleSID", which reported "Error 1053: The service did not respond to the start or control request in a timely fashion" right after the little green timer blocks slowly and steadily filled up to the end.
    Some more experimentation with a coworker, the OracleDBConsoleSID service no longer exists in my services list, and the database still doesn't start up.
    Things I've tried:
    1. Checking my tnsnames.ora and listener.ora files - the proper hostnames and Oracle home are listed.
    2. Rebuilding the OracleDBConsole via "emca" commands from command prompt. EMCA responds but the actual commands to reconfigure or rebuild the repository fail out because the database is not responsive.
    3. Connecting via my installed applications, Enterprise Manager, SQL Plus, and Command Line - all fail the same way, Error 1034.
    4. Reconfiguring/rebuilding my Listener with Net Configuration Assistant - values seem to check out, no positive results.
    5. Many many other small/random things mentioned in forums here and elsewhere on the net.
    I guess that's it for now, there's plenty more details I could include but I don't want to muddle the post with irrelevant information. Any ideas/help are greatly appreciated, I would just reinstall/start over but I have important data in the database that I don't want to lose.
    Thanks,
    Greg
    Edited by: user10997705 on May 6, 2009 4:47 PM

    Ok, it's apparently the entire life's history of my database. Here's the most recent complete entry for today's date:
    Dump file c:\oracle\product\10.2.0/admin/SID/bdump\alert_SID.log
    Thu May 07 11:58:53 2009
    ORACLE V10.2.0.3.0 - Production vsnsta=0
    vsnsql=14 vsnxtr=3
    Windows XP Version V5.1 Service Pack 3
    CPU : 1 - type 586, 1 Physical Cores
    Process Affinity : 0x00000000
    Memory (Avail/Total): Ph:1609M/2014M, Ph+PgF:1923M/2197M, VA:1939M/2047M
    Thu May 07 11:58:53 2009
    Starting ORACLE instance (normal)
    LICENSE_MAX_SESSION = 0
    LICENSE_SESSIONS_WARNING = 0
    Picked latch-free SCN scheme 2
    Using LOG_ARCHIVE_DEST_10 parameter default value as USE_DB_RECOVERY_FILE_DEST
    Autotune of undo retention is turned on.
    IMODE=BR
    ILAT =18
    LICENSE_MAX_USERS = 0
    SYS auditing is disabled
    ksdpec: called for event 13740 prior to event group initialization
    Starting up ORACLE RDBMS Version: 10.2.0.3.0.
    System parameters with non-default values:
    processes = 150
    __shared_pool_size = 142606336
    __large_pool_size = 4194304
    __java_pool_size = 4194304
    __streams_pool_size = 0
    spfile = C:\ORACLE\PRODUCT\10.2.0\DB_2\DBS\SPFILESID.ORA
    sga_target = 281018368
    control_files = C:\ORACLE\PRODUCT\10.2.0\ORADATA\SID\CONTROL01.CTL, C:\ORACLE\PRODUCT\10.2.0\ORADATA\SID\CONTROL02.CTL, C:\ORACLE\PRODUCT\10.2.0\ORADATA\SID\CONTROL03.CTL
    db_block_size = 8192
    __db_cache_size = 125829120
    compatible = 10.2.0.1.0
    db_file_multiblock_read_count= 16
    db_recovery_file_dest = C:\oracle\product\10.2.0/flash_recovery_area
    db_recovery_file_dest_size= 2147483648
    undo_management = AUTO
    undo_tablespace = UNDOTBS1
    remote_login_passwordfile= EXCLUSIVE
    db_domain =
    dispatchers = (PROTOCOL=TCP) (SERVICE=SIDXDB)
    job_queue_processes = 10
    audit_file_dest = C:\ORACLE\PRODUCT\10.2.0\ADMIN\SID\ADUMP
    background_dump_dest = C:\ORACLE\PRODUCT\10.2.0\ADMIN\SID\BDUMP
    user_dump_dest = C:\ORACLE\PRODUCT\10.2.0\ADMIN\SID\UDUMP
    core_dump_dest = C:\ORACLE\PRODUCT\10.2.0\ADMIN\SID\CDUMP
    db_name = SID
    open_cursors = 300
    pga_aggregate_target = 93323264
    PMON started with pid=2, OS id=1184
    PSP0 started with pid=4, OS id=1288
    MMAN started with pid=5, OS id=1296
    DBW0 started with pid=6, OS id=1304
    LGWR started with pid=7, OS id=1316
    CKPT started with pid=8, OS id=1320
    SMON started with pid=9, OS id=1336
    RECO started with pid=10, OS id=1348
    CJQ0 started with pid=11, OS id=1356
    MMON started with pid=12, OS id=1360
    MMNL started with pid=13, OS id=1364
    Thu May 07 11:58:54 2009
    starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
    starting up 1 shared server(s) ...
    Thu May 07 11:58:57 2009
    alter database mount exclusive
    Thu May 07 11:59:02 2009
    Setting recovery target incarnation to 2
    Thu May 07 11:59:03 2009
    Successful mount of redo thread 1, with mount id 1106751361
    Thu May 07 11:59:03 2009
    Database mounted in Exclusive Mode
    Completed: alter database mount exclusive
    Thu May 07 11:59:03 2009
    alter database open
    Thu May 07 11:59:07 2009
    Beginning crash recovery of 1 threads
    Thu May 07 11:59:08 2009
    Started redo scan
    Thu May 07 11:59:10 2009
    Completed redo scan
    0 redo blocks read, 0 data blocks need recovery
    Thu May 07 11:59:10 2009
    Started redo application at
    Thread 1: logseq 475, block 3, scn 18427404
    Thu May 07 11:59:10 2009
    Recovery of Online Redo Log: Thread 1 Group 3 Seq 475 Reading mem 0
    Mem# 0: C:\ORACLE\PRODUCT\10.2.0\ORADATA\SID\REDO03.LOG
    Thu May 07 11:59:10 2009
    Completed redo application
    Thu May 07 11:59:10 2009
    Completed crash recovery at
    Thread 1: logseq 475, block 3, scn 18447405
    0 data blocks read, 0 data blocks written, 0 redo blocks read
    Thu May 07 11:59:15 2009
    Thread 1 advanced to log sequence 476
    Thread 1 opened at log sequence 476
    Current log# 1 seq# 476 mem# 0: C:\ORACLE\PRODUCT\10.2.0\ORADATA\SID\REDO01.LOG
    Successful open of redo thread 1
    Thu May 07 11:59:16 2009
    MTTR advisory is disabled because FAST_START_MTTR_TARGET is not set
    Thu May 07 11:59:17 2009
    SMON: enabling cache recovery
    Thu May 07 11:59:19 2009
    Errors in file c:\oracle\product\10.2.0\admin\SID\udump\SID_ora_1396.trc:
    ORA-00704: bootstrap process failure
    ORA-39700: database must be opened with UPGRADE option
    Thu May 07 11:59:19 2009
    Error 704 happened during db open, shutting down database
    USER: terminating instance due to error 704
    Thu May 07 11:59:19 2009
    Errors in file c:\oracle\product\10.2.0\admin\SID\bdump\SID_pmon_1184.trc:
    ORA-00704: bootstrap process failure
    Thu May 07 11:59:19 2009
    Errors in file c:\oracle\product\10.2.0\admin\SID\bdump\SID_reco_1348.trc:
    ORA-00704: bootstrap process failure
    Thu May 07 11:59:19 2009
    Errors in file c:\oracle\product\10.2.0\admin\SID\bdump\SID_smon_1336.trc:
    ORA-00704: bootstrap process failure
    Thu May 07 11:59:19 2009
    Errors in file c:\oracle\product\10.2.0\admin\SID\bdump\SID_lgwr_1316.trc:
    ORA-00704: bootstrap process failure
    Thu May 07 11:59:20 2009
    Errors in file c:\oracle\product\10.2.0\admin\SID\bdump\SID_ckpt_1320.trc:
    ORA-00704: bootstrap process failure
    Thu May 07 11:59:20 2009
    Errors in file c:\oracle\product\10.2.0\admin\SID\bdump\SID_psp0_1288.trc:
    ORA-00704: bootstrap process failure
    Thu May 07 11:59:22 2009
    Errors in file c:\oracle\product\10.2.0\admin\SID\bdump\SID_dbw0_1304.trc:
    ORA-00704: bootstrap process failure
    Thu May 07 11:59:22 2009
    Errors in file c:\oracle\product\10.2.0\admin\SID\bdump\SID_mman_1296.trc:
    ORA-00704: bootstrap process failure
    Instance terminated by USER, pid = 1396
    ORA-1092 signalled during: alter database open...
    *******************************************************************************************

  • The difference in SID,INSTANCE_NAME,DB_NAME,GLOBAL_NAME

    hi,
    who can tell me the difference in SID,INSTANCE_NAME,DB_NAME,GLOBAL_NAME
    many thanks,
    zhiwei

    who can tell me the difference in
    SID,INSTANCE_NAME,DB_NAME,GLOBAL_NAMEthe SID, or Oracle System Identifier, uniquely identifies your Instance on the server, it is usually set in an environment variable called ORACLE_SID
    the INSTANCE_NAME must match your ORACLE_SID. In Real Application Cluster, you can have more than one INSTANCE per DATABASE, in which case the INSTANCE_NAME's must be unique.
    the DATABASE_NAME usually is the same as INSTANCE_NAME, but can be different (ex:RAC), and it is saved in the CONTROL FILE. to change it, you must recreate the controlfile (Oracle 7) or use the NID utility.
    the GLOBAL_NAME can be anything you want, is sometimes used in TNSNAMES.ORA, can be changed with ALTER DATABASE RENAME, and defaults to DB_NAME.DOMAIN_NAME
    the SERVICE_NAMES provide one or more SERVICE_NAME to be registered in your listener.
    As always, read the ***fine*** manual

  • Oracle SID / DB_NAME

    hey all,
    Is it possible to have dashes (-) or underscores in an oracle SID? I've tried searching a little and haven't found anything with rules about the SID apart from the fact that it should be limited to 8 characters.
    thanks
    Ramin

    Database name can have only
    alphabets,numbers,'_','#' or '$' symbols
    A simple test would have done that for you..
    Infact i tried now and this the output i got

  • Is db_name is the only parameter for creating database ? [Exper. on 32-bit]

    Because of the discussion present in the following thread, I did few experiments and would you like to share with you. Hope it is a useful information for you guys.
    Re: db_name & memory allocation
    OS: Win XP SP2 or Windows 2000 <b>(32-bit)</b>
    Oracle Version: Oracle 10gR2
    System RAM: 1G
    <b>Attempting to create the database CCC by specifying db_name parameter only</b>
    C:\oracle\product\10.2.0\db_1\database>copy con initCCC.ora
    db_name=CCC
    ^Z
            1 file(s) copied.
    <b> Starting the service </b>
    C:\oracle\product\10.2.0\db_1\database>oradim -new -sid CCC -startmode m
    Instance created.
    C:\oracle\product\10.2.0\db_1\database>set oracle_sid=CCC
    C:\oracle\product\10.2.0\db_1\database>sqlplus "/as sysdba"
    SQL*Plus: Release 10.2.0.1.0 - Production on Fri Apr 6 07:50:06 2007
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to an idle instance.
    SQL>
    SQL>
    SQL> startup nomount
    ORACLE instance started.
    Total System Global Area  <b>113246208</b> bytes -- Default SGA size
    Fixed Size                  1247588 bytes
    Variable Size              58721948 bytes
    Database Buffers           50331648 bytes
    Redo Buffers                2945024 bytes
    <b> On seeing dynamic components size, shared pool got
    33m, large pool got 0m, java pool got 25m and buffer cache
    got 50m. Please check the references for these default
    values. </b>
    SQL> select component,current_size from v$sga_dynamic_components;
    COMPONENT                                                        CURRENT_SIZE
    shared pool                                                          33554432
    large pool                                                                  0
    java pool                                                            25165824
    streams pool                                                                0
    DEFAULT buffer cache                                                 50331648
    KEEP buffer cache                                                           0
    RECYCLE buffer cache                                                        0
    DEFAULT 2K buffer cache                                                     0
    DEFAULT 4K buffer cache                                                     0
    DEFAULT 8K buffer cache                                                     0
    DEFAULT 16K buffer cache                                                    0
    COMPONENT                                                        CURRENT_SIZE
    DEFAULT 32K buffer cache                                                    0
    ASM Buffer Cache                                                            0
    13 rows selected.
    <b>Total=109051904 </b>
    SQL>
    create database
    ERROR at line 1:
    ORA-01092: ORACLE instance terminated. Disconnection forced
    <b>Errors in alert log file</b>
    ORA-00604: error occurred at recursive SQL level 1
    <b>ORA-04031: unable to allocate 40 bytes of shared memory ("shared pool","create unique index
    i_proxy_...","sql area","kksol : kksnsg")
    </b>
    Error 1519 happened during db open, shutting down database
    USER: terminating instance due to error 1519
    <b>It was thought that shared_pool memory area is not
    sufficient. Then thought to know how oracle will behave on
    setting sga_target parameter.</b>
    <b>initCCC.ora</b>
    db_name=CCC
    sga_target=113m
    SQL> startup nomount
    ORACLE instance started.
    Total System Global Area  <b>121634816 bytes -- Got around 121m  </b>
    Fixed Size                  1247636 bytes
    Variable Size              54527596 bytes
    Database Buffers           62914560 bytes
    Redo Buffers                2945024 bytes
    <b>Now create database statement got success here.
    Instance got few extra Mbs of memory and oracle can create
    the database.</b>
    <b>Then it was thought that, why to give 121Mb even. Let exactly 113246208 bytes be devoted to the instance.</b>
    initCCC.ora
    db_name=CCC
    sga_target=113246208 -- providing exact number of bytes as obtained in default case
    SQL> startup nomount
    ORACLE instance started.
    Total System Global Area  113246208 bytes
    Fixed Size                  1247588 bytes
    Variable Size              54527644 bytes
    Database Buffers           54525952 bytes
    Redo Buffers                2945024 bytes
    SQL>
    <b> Now create database statement got success here as
    well. Because of sga_target, automatic shared memory
    management enabled and instance was taking care of buffer
    cache, shared pool, large pool, java pool and
    streams_pool. In this case shared pool got 46m (greater
    than default case value). Java pool and Large pool got 4
    mb each and buffer cache got 54m. </b>
    SQL> select component,current_size
      2  from v$sga_dynamic_components;
    COMPONENT                                                        CURRENT_SIZE
    shared pool                                                          46137344
    large pool                                                            4194304
    java pool                                                             4194304
    streams pool                                                                0
    DEFAULT buffer cache                                                 54525952
    KEEP buffer cache                                                           0
    RECYCLE buffer cache                                                        0
    DEFAULT 2K buffer cache                                                     0
    DEFAULT 4K buffer cache                                                     0
    DEFAULT 8K buffer cache                                                     0
    DEFAULT 16K buffer cache                                                    0
    COMPONENT                                                        CURRENT_SIZE
    DEFAULT 32K buffer cache                                                    0
    ASM Buffer Cache                                                            0
    13 rows selected.
    <b>Total=109051904 </b>
    SQL>
    By providing 113246208 bytes (as in default case) of
    memory to SGA by setting sga_target value, Oracle gave
    extra memory to shared_pool and buffer cache than in case
    of default, thus helping create database statement to get
    pass. Oracle always recommends to use automatic shared
    memory management by setting sga_target parameter value.
    Hope this experiment provides few clues about automatic
    shared memory management feature of Oracle 10g. This case
    was conducted on 32-bit Oracle. It is quite possible that
    create database statement might get success in 64-bit
    Platform as by default Oracle will provide 84 Mb to Shared
    pool. But to confirm, it has to be experimented.
    References:
    Shared pool
    http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14237/initparams196.htm#sthref804
    Large Pool
    http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14237/initparams090.htm#sthref377
    Java Pool
    http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14237/initparams087.htm#sthref364
    Buffer Cache
    http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14237/initparams043.htm#sthref185

    Hi,
    Good Work Mohammed !!!
    Regards
    Taj

  • Possible to get SID of current session when not logged on as SYS

    I would like to get teh SID of my current session, but access to V$MYSTAT is restricted:
    conn user/******@DB
    SQL> desc v$mystat
    ERROR:
    ORA-04043: object "SYS"."V_$MYSTAT" does not exist
    SQL> conn sys/******@DB  as sysdba
    Connected.
    SQL> desc v$mystat
    Name                                      Null?    Type
    SID                                                NUMBER
    STATISTIC#                                         NUMBER
    VALUE                                              NUMBERThanks

    Can you use [url http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14200/functions165.htm#i1038176]SYS_CONTEXT for getting DB_NAME, INSTANCE_NAME, SID etc?

  • Setting up new dbname/sid while creating oracle db from rman backups in 11g

    Hi all,
    I have rman backups and need to create another database from rman backups with different name... but it is unsuccessful..
    created instance with new db...
    running create new db connecting rman auxiliary sys/password@newdb
    run {
    SET NEWNAME FOR DATAFILE 1 TO 'F:\app\HOME\oradata\clonedb1\SYSTEM01.DBF';
    SET NEWNAME FOR DATAFILE 2 TO 'F:\app\HOME\oradata\clonedb1\SYSAUX01.DBF';
    SET NEWNAME FOR DATAFILE 3 TO 'F:\app\HOME\oradata\clonedb1\UNDOTBS01.DBF';
    SET NEWNAME FOR DATAFILE 4 TO 'F:\app\HOME\oradata\clonedb1\USERS01.DBF';
    SET NEWNAME FOR DATAFILE 5 TO 'F:\app\HOME\oradata\clonedb1\EXAMPLE01.DBF';
    SET NEWNAME FOR TEMPFILE 1 TO 'F:\app\HOME\oradata\clonedb1\TEMP01.DBF';
    DUPLICATE DATABASE TO clonedb
    pfile 'D:\TESTDELETE\initclonedb1.ora'
    BACKUP LOCATION 'F:\app\HOME\flash_recovery_area\orcl\'
    LOGFILE GROUP 1 ('F:\APP\HOME\ORADATA\ORCL\REDO01.LOG') SIZE 60M REUSE,
    GROUP 2 ('F:\APP\HOME\ORADATA\ORCL\REDO02.LOG.rdo') SIZE 60M REUSE,
    GROUP 3 ('F:\APP\HOME\ORADATA\ORCL\REDO03.LOG') SIZE 60M REUSE;
    Error it shown is in rman backup creation is as follows
    <part>>
    sql statement: alter system set db_name = ''ORCL'' comment= ''Modified by RMAN
    duplicate'' scope=spfile
    Oracle instance shut down
    Oracle instance started
    Total System Global Area 640286720 bytes
    Fixed Size 1376492 bytes
    Variable Size 314576660 bytes
    Database Buffers 318767104 bytes
    Redo Buffers 5566464 bytes
    Starting restore at 20-DEC-11
    allocated channel: ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: SID=133 device type=DISK
    channel ORA_AUX_DISK_1: restoring control file
    channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:07
    output file name=F:\APP\HOME\ORADATA\CLONEDB1\CONTROL01.CTL
    output file name=F:\APP\HOME\FLASH_RECOVERY_AREA\CLONEDB1\CONTROL02.CTL
    Finished restore at 20-DEC-11
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 12/20/2011 07:07:11
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-06136: ORACLE error from auxiliary database: ORA-01102: cannot mount databa
    se in EXCLUSIVE mode
    RMAN> EXIT
    how can i prevent rman setting db_name=orcl which is already exists in the db.. i need to create db from rman backups with different dbname...
    whould someone help me out, how can i create database from another database rman backups with different dbname/sid on same host..
    My pfile has new db_name , but while db creation rman setting to db_name to source dbname.. it should be new db name that i want create with new db name...
    is there any RMAN command to specify new DB name it should set while running
    sql statement: alter system set db_name = newdbname -- as part rman script execution...
    it appears to be i should not touch the soruce db.. i have access to only source db rman backups and need to create another db with different dbname/sid.. please do help...

    When you performing RMAN duplicate why you making your script so complicated?
    Your instance name and DB name can be different, But what is the contents in your pfile "D:\TESTDELETE\initclonedb1.ora" ? please do post
    Have you started any other services related to ORACLE? check in start --> run --> services.msc any other active oracles services, Make sure you have clonedb1.
    Startup in nomount
    check the connectivity to target server.
    SET NEWNAME FOR TEMPFILE 1 TO 'F:\app\HOME\oradata\clonedb1\TEMP01.DBF';Why you mentioning SET NEWNAME FOR DATAFILE ? You have option of db_file_name_convert/log_file_name_convert in case if your file system different in Target & auxiliary.
    BACKUP LOCATION 'F:\app\HOME\flash_recovery_area\orcl\'When you have backup in same location why you are mentioning this clause?
    First run duplicate from auxiliary server as
    rman target sys/*****@prod auxiliary /
    RMAN> duplicate target database to "db_name";
    Am not sure what you are trying to do. is it 11gR1 or 11gR2?
    You have option of duplicate from active database without having backup also..
    here some links please check it.
    http://docs.oracle.com/cd/E14072_01/backup.112/e10642/rcmdupdb.htm#BGBFDJHB
    RMAN 11GR2 : DUPLICATE WITHOUT CONNECTING TO TARGET DATABASE [ID 874352.1]
    knowledgespring      
         Newbie
    Handle:      knowledgespring
    Status Level:      Newbie (10)
    Registered:      Dec 26, 2007
    Total Posts:      243
    Total Questions:      77 (75 unresolved)
    So sad that forum was able to help only in two answers out of your 77 questions :(
    Edited by: CKPT on Dec 21, 2011 5:12 PM

  • How to change the SID name in the server

    hi all,
    i installed oracle 10g R1 on windows 2003 server. i gave an sid and created a database. the database is new and there is no data in the db. now i want to change the SID name of the database. pls help me in doing this.
    regards,
    nagarjuna

    Hi,
    Just a notice: SID and DBNAME are two different things. But the usual practice is to have SID = DBNAME, so let me assume you want to change both SID and DBNAME.
    Either you can do it manually by recreating the controlfile as orawiss suggests. You may discover some challenges around the way (for instance, for the command CREATE CONTROLFILE SET "new_dbname" to work, you have do delete or rename the old controlfiles first).
    Or, you can change it easier by using nid utility. The detailed howto and all implications can be found on:
    http://download.oracle.com/docs/cd/B14117_01/server.101/b10825/dbnewid.htm
    Basically:
    SQL> create pfile from spfile;
    SQL> shutdown immediate;
    nid TARGET=sys/password@oldname DBNAME=newname
    copy the initoldname.ora to initnewname.ora and edit the DB_NAME parameter to reflect the new name
    sqlplus / as sysdba
    SQL> create spfile from pfile;
    SQL>startup mount;
    SQL> alter database open resetlogs;
    Then don't forget to generate new password file for the new dbname (using orapw) and make changes in tnsnames.ora and listener.ora if needed.
    Just make sure, the database has been properly shut down before changing the db_name either manualy by recreating controlfile or by the newid utility, as the renamed database has to be opened with resetlogs - making any crash recover of improperly shut down database impossible.
    Kind regards,
    Martin

  • Unable to find trace file for a particular sid

    Hi all,
    I have a oracle 9.2.0.6 on solaris platform.I have to use tkrpof for PT for a particular sid.But when i checked out the trace file for that particular sid, i am not able to find out the same.....
    SQL> select c.value || '\' || lower(d.value) || '_ora_' ||  to_char(a.spid, 'fm0
    0000') || '.trc' "TRACE FILE"
      2  from v$process a, v$session b, v$parameter c, v$parameter d where a.addr =
    b.paddr
      3  and b.audsid = userenv('sessionid') and c.name   = 'user_dump_dest'
      4  and d.name   = 'db_name';
    TRACE FILE
    /arch/dump/udump\icai_ora_02464.trc-rw-r----- 1 oracle dba 2526 Nov 9 04:27 icai12_ora_1314.trc
    -rw-r----- 1 oracle dba 2528 Nov 9 04:41 icai12_ora_1541.trc
    -rw-r----- 1 oracle dba 689 Nov 9 14:26 icai11_ora_14071.trc
    -rw-r----- 1 oracle dba 6414 Nov 9 23:56 icai12_ora_456.trc
    -rw-r----- 1 oracle dba 1427 Nov 10 12:02 icai11_ora_1867.trc
    -rw-r----- 1 oracle dba 613 Nov 10 12:02 icai12_ora_292.trc
    -rw-r----- 1 oracle dba 678 Nov 10 12:07 icai11_ora_2356.trc
    -rw-r----- 1 oracle dba 613 Nov 10 12:12 icai12_ora_490.trc
    -rw-r----- 1 oracle dba 626 Nov 10 12:12 icai11_ora_2275.trc
    -rw-r----- 1 oracle dba 613 Nov 10 12:12 icai12_ora_505.trc
    -rw-r----- 1 oracle dba 626 Nov 10 12:15 icai11_ora_2430.trc
    -rw-r----- 1 oracle dba 613 Nov 10 12:15 icai12_ora_286.trc
    -rw-r----- 1 oracle dba 625 Nov 10 12:42 icai11_ora_2378.trc
    -rw-r----- 1 oracle dba 625 Nov 10 12:45 icai11_ora_2549.trc
    -rw-r----- 1 oracle dba 625 Nov 10 12:46 icai11_ora_2514.trc
    -rw-r----- 1 oracle dba 626 Nov 10 12:48 icai11_ora_2626.trc
    -rw-r----- 1 oracle dba 731 Nov 10 12:49 icai11_ora_2322.trc
    -rw-r----- 1 oracle dba 1312 Nov 10 12:49 icai11_ora_2096.trc
    -rw-r----- 1 oracle dba 625 Nov 10 12:50 icai11_ora_2315.trc
    -rw-r----- 1 oracle dba 625 Nov 10 12:50 icai11_ora_1390.trc
    -rw-r----- 1 oracle dba 729 Nov 10 12:51 icai11_ora_1990.trc
    -rw-r----- 1 oracle dba 626 Nov 10 12:52 icai11_ora_2485.trc
    -rw-r----- 1 oracle dba 626 Nov 10 12:52 icai11_ora_2063.trc
    -rw-r----- 1 oracle dba 644 Nov 10 12:53 icai11_ora_2605.trc
    -rw-r----- 1 oracle dba 626 Nov 10 12:54 icai11_ora_2299.trc
    -rw-r----- 1 oracle dba 625 Nov 10 13:07 icai11_ora_2333.trc
    -rw-r----- 1 oracle dba 626 Nov 10 13:07 icai11_ora_2380.trc
    -rw-r----- 1 oracle dba 729 Nov 10 13:07 icai11_ora_2174.trc
    -rw-r----- 1 oracle dba 625 Nov 10 13:08 icai11_ora_2851.trc
    -rw-r----- 1 oracle dba 613 Nov 10 13:08 icai12_ora_627.trc
    -rw-r----- 1 oracle dba 626 Nov 10 13:11 icai11_ora_2894.trc
    -rw-r----- 1 oracle dba 1365 Nov 10 13:12 icai11_ora_2443.trc
    -rw-r----- 1 oracle dba 1640016 Nov 10 13:42 icai12_ora_427.trc
    -rw-r----- 1 oracle dba 676 Nov 10 13:48 icai11_ora_2183.trc
    -rw-r----- 1 oracle dba 626 Nov 10 13:48 icai11_ora_2230.trc
    -rw-r----- 1 oracle dba 645 Nov 10 13:55 icai11_ora_3220.trc
    -rw-r----- 1 oracle dba 675 Nov 10 13:57 icai12_ora_276.trc
    -rw-r----- 1 oracle dba 625 Nov 10 14:07 icai11_ora_3198.trc
    -rw-r----- 1 oracle dba 1376 Nov 10 14:08 icai11_ora_2935.trc
    -rw-r----- 1 oracle dba 625 Nov 10 14:09 icai11_ora_3273.trc
    -rw-r----- 1 oracle dba 677 Nov 10 14:10 icai11_ora_2465.trc
    -rw-r----- 1 oracle dba 634 Nov 10 14:17 icai12_ora_1137.trc
    -rw-r----- 1 oracle dba 687 Nov 10 14:21 icai11_ora_1971.trc
    -rw-r----- 1 oracle dba 688 Nov 10 14:23 icai11_ora_2973.trc
    -rw-r----- 1 oracle dba 626 Nov 10 14:25 icai11_ora_2144.trc
    -rw-r----- 1 oracle dba 770 Nov 10 14:32 icai12_ora_399.trc
    -rw-r----- 1 oracle dba 718 Nov 10 14:37 icai12_ora_917.trc
    -rw-r----- 1 oracle dba 644 Nov 10 14:48 icai11_ora_3510.trc
    -rw-r----- 1 oracle dba 645 Nov 10 15:31 icai11_ora_2957.trc
    -rw-r----- 1 oracle dba 730 Nov 10 15:33 icai11_ora_1973.trc
    -rw-r----- 1 oracle dba 688 Nov 10 15:56 icai11_ora_3830.trc
    -rw-r----- 1 oracle dba 2527 Nov 10 16:11 icai12_ora_364.trc
    -rw-r----- 1 oracle dba 687 Nov 10 16:34 icai11_ora_4150.trc
    -rw-r----- 1 oracle dba 1332 Nov 10 16:35 icai11_ora_3760.trc
    -rw-r----- 1 oracle dba 715 Nov 10 16:38 icai11_ora_3723.trc
    -rw-r----- 1 oracle dba 687 Nov 10 16:46 icai11_ora_4295.trc
    -rw-r----- 1 oracle dba 714 Nov 10 16:56 icai11_ora_2598.trc
    -rw-r----- 1 oracle dba 615 Nov 10 17:06 icai12_ora_2232.trc
    -rw-r----- 1 oracle dba 615 Nov 10 17:09 icai12_ora_2290.trc
    -rw-r----- 1 oracle dba 2527 Nov 10 17:13 icai12_ora_1875.trc
    -rw-r----- 1 oracle dba 688 Nov 10 17:18 icai11_ora_4473.trc
    -rw-r----- 1 oracle dba 978 Nov 10 17:25 icai12_ora_2265.trc
    -rw-r----- 1 oracle dba 645 Nov 10 17:29 icai11_ora_4582.trc
    -rw-r----- 1 oracle dba 730 Nov 10 17:36 icai11_ora_4084.trc
    -rw-r----- 1 oracle dba 616 Nov 10 17:46 icai12_ora_2281.trc
    -rw-r----- 1 oracle dba 615 Nov 10 17:46 icai12_ora_1811.trc
    -rw-r----- 1 oracle dba 730 Nov 10 17:50 icai11_ora_4225.trc
    -rw-r----- 1 oracle dba 2528 Nov 10 18:08 icai12_ora_2352.trc
    -rw-r----- 1 oracle dba 626 Nov 10 18:10 icai11_ora_2501.trc
    -rw-r----- 1 oracle dba 738 Nov 10 18:10 icai11_ora_2790.trc
    -rw-r----- 1 oracle dba 688 Nov 10 18:28 icai11_ora_3768.trc
    -rw-r----- 1 oracle dba 626 Nov 10 18:33 icai11_ora_4029.trc
    -rw-r----- 1 oracle dba 626 Nov 10 18:33 icai11_ora_3965.trc
    root@ai2 #

    You seem to have RAC with multiple instances.
    Anyhow, lower(d.value) --> icai, doesn't occur in any filename. This is because the instance name is in the trace filename, not the database name.
    You are aware you can set the tracefile_identifier?
    This will be simply appended to the original filename.
    Sybrand Bakker
    Senior Oracle DBA

  • Changing SID

    Hello everyone,
    I use Oracle 10g R2 on Fedora Core 4.
    I was trying to change the SID of my test database.
    What I did was:
    1- Shutting down the Instance
    2- changing ORACLE_SID Environment Variable (I also changed the oracle user's .bash_profile, cause I set all required variables in there)
    3- changing the PFILE's name and content (I use SPFILE, but I've created a PFILE from the SPFILE and I've changed its name and content)
    4- changing the content of tnsnames.ora and listener.ora
    5- creating a new password file with a new name
    then:
    sqlplus "/ as sysdba"
    startup;
    and database started successfully.
    but then, when I was trying to startup oracle's listener, I couldn't..
    Here is the error:
    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 12-MAY-2006 13:05:47
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Starting /u01/app/oracle/product/10.2.0/oraHome/bin/tnslsnr: please wait...
    TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    System parameter file is /u01/app/oracle/product/10.2.0/oraHome/network/admin/listener.ora
    Log messages written to /u01/app/oracle/product/10.2.0/oraHome/network/log/listener.log
    Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=TestSys)(PORT=1521)))
    TNS-12560: TNS: protocol adapter error
    TNS-00583: Valid node checking: unable to parse configuration parameters
    Listener failed to start. See the error message(s) above...
    here is the listener.ora:
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = TestSys)(PORT = 1521))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = tDbSID)
    (ORACLE_HOME = /u01/app/oracle/product/10.2.0/oraHome)
    PFILE (inittDbSID.ora):
    tDbSID.__db_cache_size=79691776
    tDbSID.__java_pool_size=4194304
    tDbSID.__large_pool_size=4194304
    tDbSID.__shared_pool_size=75497472
    tDbSID.__streams_pool_size=0
    *.audit_file_dest='/u01/app/oracle/admin/testDb/adump'
    *.background_dump_dest='/u01/app/oracle/admin/testDb/bdump'
    *.compatible='10.2.0.1.0'
    *.control_files='/u01/app/oracle/oraData/testDb/control01.ctl','/u01/app/oracle/oraData/testDb/control02.ctl','/u01/app/oracle/oraData/testDb/control03.ctl'
    *.core_dump_dest='/u01/app/oracle/admin/testDb/cdump'
    *.db_block_size=8192
    *.db_domain='TestSys'
    *.db_file_multiblock_read_count=16
    *.db_name='testDb'
    *.open_cursors=300
    *.pga_aggregate_target=16777216
    *.processes=150
    *.remote_login_passwordfile='EXCLUSIVE'
    *.sga_target=167772160
    *.undo_management='AUTO'
    *.undo_tablespace='UNDOTBS'
    *.user_dump_dest='/u01/app/oracle/admin/testDb/udump'
    and tnsnames.ora:
    TESTDB =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = TestSys)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = tDbSID)
    The error is talking about an error in parsing the listener file.
    But the file looks alright. I thought maybe something else causing this problem.
    Someone in another forum has mentioned that I had to use NID. But NID is just for changing DBID and DbNAME, not SID.
    Any Idea, Please?
    Thanks in advance
    Amir Gheibi

    Thanks a lot for the reply,
    Eventually someone got what I mean?
    Actually that's the place that I found my answer few days ago and I've done the same thing and endup with this problem.
    So when I published my problem, everyone keep telling me use NID.
    Now, do you think the problem is in the Listener.ora?
    Because, as you can see in the first post, the error is talking about parsing problem.
    Thanks again
    Amir

  • How can I know the name of instance (SID)?

    Dear all,
    After I install the Oracle client in my computer, I would like to change the tnsname.ora. However, I don't know the name of instance (SID) because I am not the one install the database and the DBA is gone. So, how can I know the SID name and the port number as well.
    Best Regards,
    amy

    Hey,
    The sid defaults to the database name.
    http://www.adp-gmbh.ch/ora/misc/identifiers.html
    you can find it by
    select name from v$database;
    or by
    show parameter db_name (run this in sql prompt)
    Run the above on the database server.

Maybe you are looking for

  • "cannot sync because playlists do not exist" ??

    I just plugged my iPod into my computer and it wiped out every single song and playlist that was on my iPod, but everything is still in iTunes. When I try to transfer all my songs, a window comes up that says "Songs on this iPod cannot be synced beca

  • Business Objects in Unix environment

    Can anyone explain to me what I am seeing when I submit this unix command on my Business Objects report server: ps -ef | grep nikutst I get several lines that show: nikutst 23886 15890   0   Feb 25 ?           0:37 Xvfb :2 -screen 1 1024x768x24 -sp /

  • Help! Problem with text/html data flavor

    I am having trouble copying text/html mime data to the clipboard. I can copy fine but there seems to be a bug in the JDK that puts extra information onto the clipboard along with the HTML. I am getting the following data copied to the clipboard: Vers

  • File Browsing for Freaks (i.e. 'advanced users')

    I'm currently searching a simple, lightweight, shell-based file-browser. I'm not searching a file-manager, too much bloat in it. I don't want to manage my files through a file-manager, I prefer to use cp, mv, vi/nano etc.. I just want a file-browser

  • My website wont display right on firefox

    Hi my website wont display right on firefox, website is www.nexu.co.il in chrome and IE it works very well, only at firefox i have this issue \= what is the problem