Can't create controlfile ORA-00972

..

ORA-00972: identifier is too long
How can I fix this? 00972, 00000, "identifier is too long"
// *Cause:  An identifier with more than 30 characters was specified.
// *Action:  Specify at most 30 characters.
make the new control file in /tmp

Similar Messages

  • Can't create Workspace (ORA-20000)

    Hey,
    i get the message "ORA-20000: User nobody does not have privilege on the BRHOME schema."
    I tried 2 times, but it doesn't work.
    Can somebody gimme a hint? =(
    Regards,
    JR

    Hi JR,
    what kind of web server do you use to host APEX, and which APEX version on which database version do you use? Seems that you use the wrong user to connect to the APEX-database.
    -Udo

  • I can't create database - ORA-604 and ORA-1519

    *** SESSION ID:(9.5) 2006-02-01 16:00:17.093
    ORA-00604: error occurred at recursive SQL level 1
    ORA-00000: normal, successful completion
    Offending statement at line 647
    create tablespace SYSTEM datafile '/u03/oradata/MMSTUS/system01.dbf' SIZE 200M
    AUTOEXTEND ON NEXT 1024M MAXSIZE 4096M
    default storage (initial 10K next 10K) EXTENT MANAGEMENT DICTIONARY online
    ORA-01501: CREATE DATABASE failed
    ORA-01519: error while processing file '?/rdbms/admin/sql.bsq' near line 647
    ORA-00604: error occurred at recursive SQL level 1
    ORA-00000: normal, successful completion
    Any Ideas?

    Here is my create database script:
    startup nomount pfile="$ORACLE_HOME/dbs/initMMSTUS.ora";
    CREATE DATABASE MMSTUS
    MAXINSTANCES 1
    MAXLOGHISTORY 1
    MAXLOGFILES 255
    MAXLOGMEMBERS 5
    MAXDATAFILES 1024
    DATAFILE '/u03/oradata/MMSTUS/system01.dbf' SIZE 200M
    AUTOEXTEND ON NEXT 1024M MAXSIZE 4096M
    EXTENT MANAGEMENT LOCAL
    DEFAULT TEMPORARY TABLESPACE TEMP
    TEMPFILE '/u03/oradata/MMSTUS/temp01.dbf' SIZE 200M
    AUTOEXTEND ON NEXT 1024M MAXSIZE 4096M
    UNDO TABLESPACE "UNDOTBS1"
    DATAFILE '/u03/oradata/MMSTUS/undotbs01.dbf' SIZE 200M
    AUTOEXTEND ON NEXT 1024M MAXSIZE 4096M
    CHARACTER SET AL32UTF8
    NATIONAL CHARACTER SET AL16UTF16
    LOGFILE GROUP 1 ('/u02/oralog/MMSTUS/mmstus_redo1_1A.log',
    '/u03/oralog/MMSTUS/mmstus_redo1_1B.log') SIZE 100M ,
    GROUP 2 ('/u02/oralog/MMSTUS/mmstus_redo1_2A.log',
    '/u03/oralog/MMSTUS/mmstus_redo1_2B.log') SIZE 100M ,
    GROUP 3 ('/u02/oralog/MMSTUS/mmstus_redo1_3A.log',
    '/u03/oralog/MMSTUS/mmstus_redo1_3B.log') SIZE 100M ,
    GROUP 4 ('/u02/oralog/MMSTUS/mmstus_redo1_4A.log',
    '/u03/oralog/MMSTUS/mmstus_redo1_4B.log') SIZE 100M ,
    GROUP 5 ('/u02/oralog/MMSTUS/mmstus_redo1_5A.log',
    '/u03/oralog/MMSTUS/mmstus_redo1_5B.log') SIZE 100M ,
    GROUP 6 ('/u02/oralog/MMSTUS/mmstus_redo1_6A.log',
    '/u03/oralog/MMSTUS/mmstus_redo1_6B.log') SIZE 100M ,
    GROUP 7 ('/u02/oralog/MMSTUS/mmstus_redo1_7A.log',
    '/u03/oralog/MMSTUS/mmstus_redo1_7B.log') SIZE 100M ,
    GROUP 8 ('/u02/oralog/MMSTUS/mmstus_redo1_8A.log',
    '/u03/oralog/MMSTUS/mmstus_redo1_8B.log') SIZE 100M ;

  • ORA-01180: can not create datafile 1 during RMAN restore.

    Hello,
    I am trying to refresh one of our QA environments and I am getting this error message:
    RMAN> run
    2> {
    3> allocate channel c1 device type disk;
    4> allocate channel c2 device type disk;
    5> restore database;
    6> recover database;
    7> }
    allocated channel: c1
    channel c1: SID=5 device type=DISK
    allocated channel: c2
    channel c2: SID=131 device type=DISK
    Starting restore at 08-NOV-12
    using channel ORA_DISK_1
    creating datafile file number=1 name=+DATA1/alephpr/datafile/system.269.722874729
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 11/08/2012 16:27:40
    ORA-01180: can not create datafile 1
    ORA-01110: data file 1: '+DATA1/alephpr/datafile/system.269.722874729' I created a new database from scratch with the same name as is in Production, later on I will proceed to rename it to the right one. I started the steps for refreshing the PRD copy:
    RMAN> shutdown immediate
    using target database control file instead of recovery catalog
    database dismounted
    Oracle instance shut down
    RMAN> startup nomount
    connected to target database (not started)
    Oracle instance started
    Total System Global Area 534462464 bytes
    Fixed Size 2228200 bytes
    Variable Size 176160792 bytes
    Database Buffers 348127232 bytes
    Redo Buffers 7946240 bytes
    RMAN> set dbid=3573460394
    executing command: SET DBID
    RMAN> restore controlfile from '/restorealeph/c-3573460394-20121106-01';
    Starting restore at 08-NOV-12
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=130 device type=DISK
    channel ORA_DISK_1: restoring control file
    channel ORA_DISK_1: restore complete, elapsed time: 00:00:07
    +output file name=+DATA1/alephpr/controlfile/current.260.798747585+
    +output file name=+FLASH/alephpr/controlfile/current.276.798747585+
    Finished restore at 08-NOV-12
    RMAN> alter database mount;
    database mounted
    released channel: ORA_DISK_1Once the control file is restored, I need to crosscheck, delete expired and catalog the backups at the new server:
    RMAN> crosscheck backup;
    Crosschecked 48 objects
    RMAN> delete noprompt expired backup;
    Deleted 48 EXPIRED objects
    RMAN> list backup summary;
    specification does not match any backup in the repositoryI need now to catalog the backups we transferred from Prod into the QA server's directory /restorealeph:
    RMAN> catalog start with '/restorealeph/';
    searching for all files that match the pattern /restorealeph/
    List of Files Unknown to the Database
    =====================================
    File Name: /restorealeph/9cnpm51u_1_1
    File Name: /restorealeph/9enpm6lj_1_1
    File Name: /restorealeph/c-3573460394-20121107-00
    File Name: /restorealeph/c-3573460394-20121107-01
    File Name: /restorealeph/c-3573460394-20121106-01
    Do you really want to catalog the above files (enter YES or NO)? YES
    cataloging files...
    cataloging done
    List of Cataloged Files
    =======================
    File Name: /restorealeph/9cnpm51u_1_1
    File Name: /restorealeph/9enpm6lj_1_1
    File Name: /restorealeph/c-3573460394-20121107-00
    File Name: /restorealeph/c-3573460394-20121107-01
    File Name: /restorealeph/c-3573460394-20121106-01
    RMAN> list backup summary;
    List of Backups
    ===============
    Key     TY LV S Device Type Completion Time #Pieces #Copies Compressed Tag
    4097    B  F  A DISK        07-NOV-12       1       1       NO         BACKUP_ALEPHPR.TUR_110712030000
    4098    B  A  A DISK        07-NOV-12       1       1       NO         BACKUP_ALEPHPR.TUR_110712030000
    RMAN> list backup tag="BACKUP_ALEPHPR.TUR_110712030000";
    List of Backup Sets
    ===================
    BS Key  Type LV Size       Device Type Elapsed Time Completion Time
    4097    Full    178.04G    DISK        00:00:00     07-NOV-12
            BP Key: 4097   Status: AVAILABLE  Compressed: NO  Tag: BACKUP_ALEPHPR.TUR_110712030000
            Piece Name: /restorealeph/9cnpm51u_1_1
      List of Datafiles in backup set 4097
      File LV Type Ckp SCN    Ckp Time  Name
      1       Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/system.269.722874729
      2       Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/sysaux.266.722874731
      3       Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/undotbs1.289.722874727
      4       Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/undotbs2.257.722874727
      5       Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/users.298.722874731
      6       Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/audit.299.723372305
      7       Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/case_datos.260.723372307
      8       Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/case_indices.261.723372307
      9       Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/data_hist.262.723372309
      10      Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/data_l.264.723372319
      11      Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/data_long.265.723372349
      12      Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/data_md.270.723372355
      13      Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/data_sm.271.723372369
      14      Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/data_xl.272.723372375
      15      Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/index_l.273.723372401
      16      Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/index_md.274.723372427
      17      Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/index_sm.275.723372455
      18      Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/index_xl.276.723372473
      19      Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/tools.278.723372501
      26      Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/data_sm.300.736088959
      27      Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/dev_disco_ptm5_meta.301.746385117
      28      Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/dev_disco_pstore.302.746385119
      29      Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/dev_disco_ptm5_cache.304.746385121
      30      Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/undotbs1.305.796391931
      31      Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/undotbs2.306.796392185
    BS Key  Size       Device Type Elapsed Time Completion Time
    4098    16.89G     DISK        00:00:00     07-NOV-12
            BP Key: 4098   Status: AVAILABLE  Compressed: NO  Tag: BACKUP_ALEPHPR.TUR_110712030000
            Piece Name: /restorealeph/9enpm6lj_1_1
      List of Archived Logs in backup set 4098
      Thrd Seq     Low SCN    Low Time  Next SCN   Next Time
      1    35722   6919870864350 06-NOV-12 6919871887697 06-NOV-12
      1    35723   6919871887697 06-NOV-12 6919872372211 06-NOV-12
      1    35724   6919872372211 06-NOV-12 6919872410158 06-NOV-12
      1    35725   6919872410158 06-NOV-12 6919872447301 06-NOV-12
      1    35726   6919872447301 06-NOV-12 6919872503332 06-NOV-12
      1    35727   6919872503332 06-NOV-12 6919872551564 06-NOV-12
      1    35728   6919872551564 06-NOV-12 6919872603881 06-NOV-12
      1    35729   6919872603881 06-NOV-12 6919872655942 06-NOV-12
      1    35730   6919872655942 06-NOV-12 6919872698722 06-NOV-12
      1    35731   6919872698722 06-NOV-12 6919872741655 06-NOV-12
      1    35732   6919872741655 06-NOV-12 6919872782284 06-NOV-12
      1    35733   6919872782284 06-NOV-12 6919872872302 06-NOV-12
      1    35734   6919872872302 06-NOV-12 6919872910206 06-NOV-12
      1    35735   6919872910206 06-NOV-12 6919872945577 06-NOV-12
      1    35736   6919872945577 06-NOV-12 6919872980056 06-NOV-12
      1    35737   6919872980056 06-NOV-12 6919873013411 06-NOV-12
      1    35738   6919873013411 06-NOV-12 6919873050761 06-NOV-12
      1    35739   6919873050761 06-NOV-12 6919873084996 06-NOV-12
      1    35740   6919873084996 06-NOV-12 6919873122049 06-NOV-12
      1    35741   6919873122049 06-NOV-12 6919873521767 06-NOV-12
      1    35742   6919873521767 06-NOV-12 6919873952773 06-NOV-12
      1    35743   6919873952773 06-NOV-12 6919874258549 06-NOV-12
      1    35744   6919874258549 06-NOV-12 6919874472213 06-NOV-12
      1    35745   6919874472213 06-NOV-12 6919874744856 06-NOV-12
      1    35746   6919874744856 06-NOV-12 6919875113086 06-NOV-12
      1    35747   6919875113086 06-NOV-12 6919875733337 06-NOV-12
      1    35748   6919875733337 06-NOV-12 6919876139061 06-NOV-12
      1    35749   6919876139061 06-NOV-12 6919876707162 06-NOV-12
      1    35750   6919876707162 06-NOV-12 6919877706313 06-NOV-12
      1    35751   6919877706313 06-NOV-12 6919877919039 06-NOV-12
      1    35752   6919877919039 06-NOV-12 6919878024429 06-NOV-12
      1    35753   6919878024429 06-NOV-12 6919878107673 06-NOV-12
      1    35754   6919878107673 06-NOV-12 6919878258511 06-NOV-12
      1    35755   6919878258511 06-NOV-12 6919878308336 06-NOV-12
      1    35756   6919878308336 06-NOV-12 6919878424419 06-NOV-12
      1    35757   6919878424419 06-NOV-12 6919878488485 06-NOV-12
      1    35758   6919878488485 06-NOV-12 6919878827092 06-NOV-12
      1    35759   6919878827092 06-NOV-12 6919879350098 07-NOV-12
      1    35760   6919879350098 07-NOV-12 6919879675556 07-NOV-12
      2    35949   6919870864360 06-NOV-12 6919871494640 06-NOV-12
      2    35950   6919871494640 06-NOV-12 6919871887487 06-NOV-12
      2    35951   6919871887487 06-NOV-12 6919872410655 06-NOV-12
      2    35952   6919872410655 06-NOV-12 6919872552468 06-NOV-12
      2    35953   6919872552468 06-NOV-12 6919872698940 06-NOV-12
      2    35954   6919872698940 06-NOV-12 6919872872690 06-NOV-12
      2    35955   6919872872690 06-NOV-12 6919872980371 06-NOV-12
      2    35956   6919872980371 06-NOV-12 6919873085902 06-NOV-12
      2    35957   6919873085902 06-NOV-12 6919873569082 06-NOV-12
      2    35958   6919873569082 06-NOV-12 6919873949096 06-NOV-12
      2    35959   6919873949096 06-NOV-12 6919874404640 06-NOV-12
      2    35960   6919874404640 06-NOV-12 6919875011814 06-NOV-12
      2    35961   6919875011814 06-NOV-12 6919875631429 06-NOV-12
      2    35962   6919875631429 06-NOV-12 6919876324885 06-NOV-12
      2    35963   6919876324885 06-NOV-12 6919876363526 06-NOV-12
      2    35964   6919876363526 06-NOV-12 6919876748508 06-NOV-12
      2    35965   6919876748508 06-NOV-12 6919877741784 06-NOV-12
      2    35966   6919877741784 06-NOV-12 6919878108943 06-NOV-12
      2    35967   6919878108943 06-NOV-12 6919878424477 06-NOV-12
      2    35968   6919878424477 06-NOV-12 6919879012111 06-NOV-12
      2    35969   6919879012111 06-NOV-12 6919879260589 07-NOV-12
      2    35970   6919879260589 07-NOV-12 6919879350086 07-NOV-12
      2    35971   6919879350086 07-NOV-12 6919879464935 07-NOV-12
      2    35972   6919879464935 07-NOV-12 6919879548399 07-NOV-12
      2    35973   6919879548399 07-NOV-12 6919879675564 07-NOV-12
    RMAN> list incarnation;
    List of Database Incarnations
    DB Key  Inc Key DB Name  DB ID            STATUS  Reset SCN  Reset Time
    1       1       ALEPHPR  3573460394       PARENT  1          13-MAY-10
    2       2       ALEPHPR  3573460394       PARENT  2229467    28-JUN-10
    3       3       ALEPHPR  3573460394       CURRENT 6918261828355 26-SEP-12The ASM structure is created...
    ASMCMD> lsdg
    State Type Rebal Sector Block AU Total_MB Free_MB Req_mir_free_MB Usable_file_MB Offline_disks Voting_files Name
    MOUNTED EXTERN N 512 4096 1048576 509282 507421 0 507421 0 N DATA1/
    MOUNTED EXTERN N 512 4096 1048576 50641 42850 0 42850 0 N FLASH/
    ASMCMD> cd DATA1/ALEPHPR/DATAFILE
    ASMCMD> pwd
    +DATA1/ALEPHPR/DATAFILEBoth source and target databases are 11.2.0.2 PSU 6 running on Linux x64. I cannot use RMAN Duplicate since there is no visibility among different environments (PROD - QA in this case).
    Any idea?
    Thanks
    Martin
    Edited by: martin.morono on Nov 8, 2012 11:19 AM
    Edited by: martin.morono on Nov 8, 2012 11:49 AM

    Thanks Levi,
    I slightly modified your script to recatalog the backup pieces since they are note stored at the same location in PR and QA.
    No luck. The error message is different but the result is the same... it keeps failing.
    RMAN> run {
    2> allocate channel c1 device type disk;
    3> allocate channel c2 device type disk;
    4> restore controlfile from '/restorealeph/c-3573460394-20121107-01';
    5> startup mount;
    6> catalog start with '/restorealeph/';
    7> restore database from tag 'BACKUP_ALEPHPR.TUR_110712030000';
    8> }
    allocated channel: c1
    channel c1: SID=191 device type=DISK
    allocated channel: c2
    channel c2: SID=131 device type=DISK
    Starting restore at 09 NOV 2012 13:11:09
    channel c2: skipped, AUTOBACKUP already found
    channel c1: restoring control file
    channel c1: restore complete, elapsed time: 00:00:15
    output file name=+DATA1/alephpr/controlfile/current.260.798747585
    output file name=+FLASH/alephpr/controlfile/current.276.798747585
    Finished restore at 09 NOV 2012 13:11:24
    database is already started
    database mounted
    Starting implicit crosscheck backup at 09 NOV 2012 13:11:31
    Crosschecked 52 objects
    Finished implicit crosscheck backup at 09 NOV 2012 13:11:39
    Starting implicit crosscheck copy at 09 NOV 2012 13:11:39
    Crosschecked 2 objects
    Finished implicit crosscheck copy at 09 NOV 2012 13:11:40
    searching for all files in the recovery area
    cataloging files...
    cataloging done
    List of Cataloged Files
    =======================
    File Name: +flash/ALEPHPR/ARCHIVELOG/2012_09_26/thread_2_seq_1.279.795017193
    File Name: +flash/ALEPHPR/ARCHIVELOG/2012_09_26/thread_2_seq_34950.273.795014469
    File Name: +flash/ALEPHPR/ARCHIVELOG/2012_09_26/thread_1_seq_1.281.795017413
    File Name: +flash/ALEPHPR/ARCHIVELOG/2012_09_26/thread_1_seq_2.283.795017519
    File Name: +flash/ALEPHPR/ARCHIVELOG/2012_09_26/thread_1_seq_3.290.795018411
    File Name: +flash/ALEPHPR/ARCHIVELOG/2012_09_26/thread_1_seq_4.291.795018559
    File Name: +flash/ALEPHPR/ARCHIVELOG/2012_09_26/thread_1_seq_5.292.795018707
    File Name: +flash/ALEPHPR/ARCHIVELOG/2012_09_26/thread_1_seq_6.293.795018811
    File Name: +flash/ALEPHPR/ARCHIVELOG/2012_09_26/thread_1_seq_7.294.795018899
    File Name: +flash/ALEPHPR/ARCHIVELOG/2012_09_26/thread_1_seq_8.295.795020509
    File Name: +flash/ALEPHPR/CONTROLFILE/Current.268.798725123
    searching for all files that match the pattern /restorealeph/
    List of Files Unknown to the Database
    =====================================
    File Name: /restorealeph/9cnpm51u_1_1
    File Name: /restorealeph/9enpm6lj_1_1
    File Name: /restorealeph/c-3573460394-20121107-00
    File Name: /restorealeph/c-3573460394-20121107-01
    File Name: /restorealeph/c-3573460394-20121106-01
    Do you really want to catalog the above files (enter YES or NO)? YEs
    cataloging files...
    cataloging done
    List of Cataloged Files
    =======================
    File Name: /restorealeph/9cnpm51u_1_1
    File Name: /restorealeph/9enpm6lj_1_1
    File Name: /restorealeph/c-3573460394-20121107-00
    File Name: /restorealeph/c-3573460394-20121107-01
    File Name: /restorealeph/c-3573460394-20121106-01
    Starting restore at 09 NOV 2012 13:11:48
    released channel: c1
    released channel: c2
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 11/09/2012 13:11:48
    RMAN-06026: some targets not found - aborting restore
    RMAN-06023: no backup or copy of datafile 31 found to restore
    RMAN-06023: no backup or copy of datafile 30 found to restore
    RMAN-06023: no backup or copy of datafile 29 found to restore
    RMAN-06023: no backup or copy of datafile 28 found to restore
    RMAN-06023: no backup or copy of datafile 27 found to restore
    RMAN-06023: no backup or copy of datafile 26 found to restore
    RMAN-06023: no backup or copy of datafile 19 found to restore
    RMAN-06023: no backup or copy of datafile 18 found to restore
    RMAN-06023: no backup or copy of datafile 17 found to restore
    RMAN-06023: no backup or copy of datafile 16 found to restore
    RMAN-06023: no backup or copy of datafile 15 found to restore
    RMAN-06023: no backup or copy of datafile 14 found to restore
    RMAN-06023: no backup or copy of datafile 13 found to restore
    RMAN-06023: no backup or copy of datafile 12 found to restore
    RMAN-06023: no backup or copy of datafile 11 found to restore
    RMAN-06023: no backup or copy of datafile 10 found to restore
    RMAN-06023: no backup or copy of datafile 9 found to restore
    RMAN-06023: no backup or copy of datafile 8 found to restore
    RMAN-06023: no backup or copy of datafile 7 found to restore
    RMAN-06023: no backup or copy of datafile 6 found to restore
    RMAN-06023: no backup or copy of datafile 5 found to restore
    RMAN-06023: no backup or copy of datafile 4 found to restore
    RMAN-06023: no backup or copy of datafile 3 found to restore
    RMAN-06023: no backup or copy of datafile 2 found to restore
    RMAN-06023: no backup or copy of datafile 1 found to restore
    RMAN>Just in case, I re-run this script including the crosscheck backup and the delete noprompt expired backups before restoring an the error messages were the same.
    THanks again for your help.
    Regards.
    Martin
    Edited by: martin.morono on Nov 9, 2012 7:21 AM

  • ORA-01503: CREATE CONTROLFILE failed

    Hello.
    I'm trying to install an ORACLE EBS 11i on an Oracle Linux Release 5 Update 5 Media Pack v1 for x86 (32 bit) from stage.
    The process is going great until the "Creating the database controlfile..." step. It crashes there.
    I've looked in the log file and this is what I can find:
    ORACLE_HOME : /u01/oracle/visdb/9.2.0
    ORACLE_SID : VIS
    TWO_TASK :
    PATH : /u01/oracle/visdb/9.2.0/Apache/perl/bin:/u01/oracle/visdb/9.2.0/bin:/usr/bin:/usr/sbin:/u01/oracle/visdb/9.2.0/jre/1.4.2/bin:/usr/ccs/bin:/bin:/usr/bin/X11:/usr/local/bin:/usr/bin:/usr/bin:/u01/Stage11i/startCD/Disk1
    /rapidwiz/unzip/Linux:/usr/bin:/usr/local/bin:/usr/lib/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin
    LD_LIBRARY_PATH : /u01/oracle/visdb/9.2.0/lib:/usr/X11R6/lib:/usr/openwin/lib:/u01/oracle/visdb/9.2.0/ctx/lib
    Executable : /u01/oracle/visdb/9.2.0/bin/sqlplus
    The log information will be written to
    /u01/oracle/visdb/9.2.0/appsutil/log/VIS_ebs/adcrdb_VIS.txt
    Creating the control file for VIS_ebs database ...
    SQL*Plus: Release 9.2.0.5.0 - Production on Wed Feb 23 17:28:54 2011
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Connected to an idle instance.
    ORACLE instance shut down.
    Connected to an idle instance.
    ORACLE instance started.
    Total System Global Area 581506616 bytes
    Fixed Size 452152 bytes
    Variable Size 402653184 bytes
    Database Buffers 167772160 bytes
    Redo Buffers 10629120 bytes
    CREATE CONTROLFILE REUSE SET DATABASE "VIS"
    ERROR at line 1:
    ORA-01503: CREATE CONTROLFILE failed
    ORA-01565: error in identifying file '/u01/oracle/visdata/tx_data11.dbf'
    ORA-27046: file size is not a multiple of logical block size
    Additional information: 1
    alter database open resetlogs
    ERROR at line 1:
    ORA-01507: database not mounted
    alter tablespace TEMP add tempfile '/u01/oracle/visdata/tmp1.dbf' REUSE
    ERROR at line 1:
    ORA-01109: database not open
    ALTER DATABASE RENAME GLOBAL_NAME TO "VIS.gdmelectronics.com"
    ERROR at line 1:
    ORA-01109: database not open
    ORA-01507: database not mounted
    ORACLE instance shut down.
    Connected to an idle instance.
    ORACLE instance started.
    Total System Global Area 581506616 bytes
    Fixed Size 452152 bytes
    Variable Size 402653184 bytes
    Database Buffers 167772160 bytes
    Redo Buffers 10629120 bytes
    ORA-00205: error in identifying controlfile, check alert log for more info
    BEGIN dbms_backup_restore.zeroDbid(0); END;
    ERROR at line 1:
    ORA-00210: cannot open the specified controlfile
    ORA-06512: at "SYS.X$DBMS_BACKUP_RESTORE", line 3284
    ORA-06512: at line 1
    ORACLE instance shut down.
    Connected to an idle instance.
    ORACLE instance started.
    Total System Global Area 581506616 bytes
    Fixed Size 452152 bytes
    Variable Size 402653184 bytes
    Database Buffers 167772160 bytes
    Redo Buffers 10629120 bytes
    CREATE CONTROLFILE REUSE SET DATABASE "VIS"
    ERROR at line 1:
    ORA-01503: CREATE CONTROLFILE failed
    ORA-01565: error in identifying file '/u01/oracle/visdata/tx_data11.dbf'
    ORA-27046: file size is not a multiple of logical block size
    Additional information: 1
    alter database open resetlogs
    ERROR at line 1:
    ORA-01507: database not mounted
    alter tablespace TEMP add tempfile '/u01/oracle/visdata/tmp1.dbf' REUSE
    ERROR at line 1:
    ORA-01109: database not open
    Is there something I'm doing wrong ?
    How do I create a new control file and use it ?
    I don't know if I gave needed information. If you need more details, please ask and I will try to provide them.
    Thank you and regards,
    Sorin Miroiu

    Hi schavali.
    Thanks for the quick reply.
    I've checked and that file doesn't exists.
    [root@ebs ~]# ls /u01/oracle/visdata/
    apps_ts_tx_interface.dbf media1.dbf owa1.dbf summary2.dbf sys4.dbf tx_data1.dbf tx_data8.dbf tx_idx4.dbf undo02.dbf
    archive1.dbf media2.dbf portal.dbf summary3.dbf sys5.dbf tx_data2.dbf tx_data9.dbf tx_idx5.dbf undo03.dbf
    archive2.dbf media3.dbf queues1.dbf summary4.dbf sys6.dbf tx_data3.dbf tx_idx10.dbf tx_idx6.dbf undo04.dbf
    ctx1.dbf mobile01.dbf queues2.dbf summary5.dbf sys7.dbf tx_data4.dbf tx_idx11.dbf tx_idx7.dbf
    log1.dbf nologging1.dbf reference1.dbf sys1.dbf tmp1.dbf tx_data5.dbf tx_idx1.dbf tx_idx8.dbf
    log2.dbf odm.dbf reference2.dbf sys2.dbf tx_data10.dbf tx_data6.dbf tx_idx2.dbf tx_idx9.dbf
    log3.dbf olap.dbf summary1.dbf sys3.dbf tx_data11.dbf tx_data7.dbf tx_idx3.dbf undo01.dbf
    For some reason it stops at tx_data9.dbf.
    I will try to start the install all over again and comeback with feedback.
    I think I will redo the DB stage as well.
    Regards,
    Sorin Miroiu

  • ORA-00972: identifier is too long

    Hi All,
    I get the error ORA-00972: identifier is too long during installation of NW2004s SR2 Java system with DI. This error is seen on the step Perform post load activites. i have made the changes as suggested by SAP note: 314671. But the error still persists. Can anyone suggest what further more should be done here?
    Oracle is unable to delete : OPS$<14 letter host name>\SAPSERVICESR3 and hence the error.
    the output from ora_sql_results.log
    =============================================================
    2008-04-28, 19:04:56 SAPINST ORACLE start logging for
    @@SAPDBA_ADDITIONAL.SQL
    exit;
    Output of SQL executing program:
    SQL*Plus: Release 10.2.0.1.0 - Production on Mon Apr 28 19:04:56 2008
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Connected.
    old   3:   :sSchemaUser := upper('&&1');
    new   3:   :sSchemaUser := upper('SAPSR3DB');
    old  19:   if upper('&&2') = 'NT' then
    new  19:   if upper('NT') = 'NT' then
    old  21:     :sDomain := upper('&&3');
    new  21:     :sDomain := upper('[14 letter Host Name]\SIDadm');
    old  32:   elsif upper('&&2') = 'UNIX' then
    new  32:   elsif upper('NT') = 'UNIX' then
    old  37:     RAISE_APPLICATION_ERROR(-20004,'Invalid OS, must be "NT" or "UNIX": ' || upper('&&2'));
    new  37:     RAISE_APPLICATION_ERROR(-20004,'Invalid OS, must be "NT" or "UNIX": ' || upper('NT'));
    using following Parameters:
    .  Schema User:                  SAPSR3DB
    .  Parametervalue os_authent_prefix:   OPS$
    .  OPS$SIDADM:                      OPS$[14 letter Host Name]\SIDADM
    .  SAP SID:                      SR3
    .  DB  SID:                      SID
    .  R/3 Service User:                 OPS$[14 letter Host Name]\SAPSERVICESR3
    .  Computer or Domain:                 [14 letter Host Name]\SIDADM
    old 119:   if upper('&&4') = 'SYN' then
    new 119:   if upper('SYN') = 'SYN' then
    old 137:   if upper('&&4') = 'SYN' then
    new 137:   if upper('SYN') = 'SYN' then
    create synonym: SAP_SDBAH SAPSR3DB.SDBAH
    create synonym: SAP_SDBAH SAPSR3DB.SDBAD
    unable to delete user: OPS$[14 letter Host Name]\SAPSERVICESR3
    begin
    ERROR at line 1:
    ORA-00972: identifier is too long
    ORA-06512: at line 46
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SAPINST: End of output of SQL executing program C:\oracle\product\10.2.0\db_1/bin/sqlplus.
    SAPINST found errors.
    SAPINST The current process environment may be found in sapinst_ora_environment.log.
    2008-04-28, 19:04:56 SAPINST ORACLE stop logging
    Thanks in advance,
    Arun E V

    Hi Markus/Stefan,
    Thanks for the quick answer. I know i am using a unsupported version, but that should not be a problem here. Though i have not run the installer from the script, still the DB is a successful installation and i have used it like this a few times.
    Stefan, I have seen the note and made the required modification but still the issue persists. Is there anything more that i need to do apart from what is mentioned in the note?
    The trouble is we are not in a position to change the host name as suggested and would prefer to continue with the same name.
    Thanks,
    Arun E V

  • IMPDP SQLFILE : multibyte characters in constraint_name leads to ORA-00972

    Hi,
    I'm actually dealing with constraint_name made of multibyte characters (for example : constrain_name='VALIDA_CONFIRMAÇÃO_PREÇO13').
    Of course this Bad Idea® is inherited (I'm against all the fancy stuff like éàù in filenames and/or directories on my filesystem....)
    The scenario is as follows :
    0 - I'm supposed to do a "remap_schema". Everything in the schema SCOTT should now be in a schema NEW_SCOTT.
    1 - The scott schema is exported via datapump
    2 - I do an impdp with SQLFILE in order to get all the DDL (table, packages, synonyms, etc...)
    3 - I do some sed on the generated sqlfile to change every occurence of SCOTT to NEW_SCOTT (this part is OK)
    4 - Once the modified sqlfile is executed, I do an impdp with DATA_ONLY.
    (The scenario was imagined from this thread : {message:id=10628419} )
    I'm getting some ORA-00972: identifier is too long at step 4 when executing the sqlfile.
    I see that some DDL for constraint creation in the file (generated at step#2) is written as follow :ALTER TABLE "TW_PRI"."B_TRANSC" ADD CONSTRAINT "VALIDA_CONFIRMAÃÃO_PREÃO14" CHECK ...Obviously, the original name of the constraint with cedilla and tilde gets translated to something else which is longer than 30 char/byte...
    As the original name is from Brazil, I also tried do add an EXPORT LANG=pt_BR.UTF-8 in my script before running the impdp for sqlfile. This didn't change anything. (the original $LANG is en_US.UTF-8)
    In order to create a testcase for this thread, I tried to reproduce on my sandbox database... but, there, I don't have the issue. :-(
    The real system is an 4-nodes database on Exadata (11.2.0.3) with NLS_CHARACTERSET=AL32UTF8.
    My sandbox database is a (nonRAC) 11.2.0.1 on RHEL4 also AL32UTF8.
    The constraint_name is the same on both system : I checked byte by byte using DUMP() on the constraint_name.
    Feel free to shed any light and/or ask for clarification if needed.
    Thanks in advance for those who'll take on their time to read all this.
    I decided to include my testcase from my sandbox database, even if it does NOT reproduce the issue +(maybe I'm missing something obvious...)+
    I use the following files.
    - createTable.sql :$ cat createTable.sql
    drop table test purge;
    create table test
    (id integer,
    val varchar2(30));
    alter table test add constraint VALIDA_CONFIRMAÇÃO_PREÇO13 check (id<=10000000000);
    select constraint_name, lengthb(constraint_name) lb, lengthc(constraint_name) lc, dump(constraint_name) dmp
    from user_constraints where table_name='TEST';- expdpTest.sh :$ cat expdpTest.sh
    expdp scott/tiger directory=scottdir dumpfile=testNonAscii.dmp tables=test- impdpTest.sh :$ cat impdpTest.sh
    impdp scott/tiger directory=scottdir dumpfile=testNonAscii.dmp sqlfile=scottdir:test.sqlfile.sql tables=testThis is the run :
    [oracle@Nicosa-oel test_nonAsciiColName]$ sqlplus scott/tiger
    SQL*Plus: Release 11.2.0.1.0 Production on Tue Feb 12 18:58:27 2013
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> @createTable
    Table dropped.
    Table created.
    Table altered.
    CONSTRAINT_NAME                  LB       LC
    DMP
    VALIDA_CONFIRMAÇÃO_PREÇO13             29         26
    Typ=1 Len=29: 86,65,76,73,68,65,95,67,79,78,70,73,82,77,65,195,135,195,131,79,95
    ,80,82,69,195,135,79,49,51
    SQL> exit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    [oracle@Nicosa-oel test_nonAsciiColName]$ ./expdpTest.sh
    Export: Release 11.2.0.1.0 - Production on Tue Feb 12 19:00:12 2013
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Starting "SCOTT"."SYS_EXPORT_TABLE_01":  scott/******** directory=scottdir dumpfile=testNonAscii.dmp tables=test
    Estimate in progress using BLOCKS method...
    Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
    Total estimation using BLOCKS method: 0 KB
    Processing object type TABLE_EXPORT/TABLE/TABLE
    Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
    . . exported "SCOTT"."TEST"                                  0 KB       0 rows
    Master table "SCOTT"."SYS_EXPORT_TABLE_01" successfully loaded/unloaded
    Dump file set for SCOTT.SYS_EXPORT_TABLE_01 is:
      /home/oracle/scott_dir/testNonAscii.dmp
    Job "SCOTT"."SYS_EXPORT_TABLE_01" successfully completed at 19:00:22
    [oracle@Nicosa-oel test_nonAsciiColName]$ ./impdpTest.sh
    Import: Release 11.2.0.1.0 - Production on Tue Feb 12 19:00:26 2013
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Master table "SCOTT"."SYS_SQL_FILE_TABLE_01" successfully loaded/unloaded
    Starting "SCOTT"."SYS_SQL_FILE_TABLE_01":  scott/******** directory=scottdir dumpfile=testNonAscii.dmp sqlfile=scottdir:test.sqlfile.sql tables=test
    Processing object type TABLE_EXPORT/TABLE/TABLE
    Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
    Job "SCOTT"."SYS_SQL_FILE_TABLE_01" successfully completed at 19:00:32
    [oracle@Nicosa-oel test_nonAsciiColName]$ cat scott_dir/test.sqlfile.sql
    -- CONNECT SCOTT
    ALTER SESSION SET EVENTS '10150 TRACE NAME CONTEXT FOREVER, LEVEL 1';
    ALTER SESSION SET EVENTS '10904 TRACE NAME CONTEXT FOREVER, LEVEL 1';
    ALTER SESSION SET EVENTS '25475 TRACE NAME CONTEXT FOREVER, LEVEL 1';
    ALTER SESSION SET EVENTS '10407 TRACE NAME CONTEXT FOREVER, LEVEL 1';
    ALTER SESSION SET EVENTS '10851 TRACE NAME CONTEXT FOREVER, LEVEL 1';
    ALTER SESSION SET EVENTS '22830 TRACE NAME CONTEXT FOREVER, LEVEL 192 ';
    -- new object type path: TABLE_EXPORT/TABLE/TABLE
    CREATE TABLE "SCOTT"."TEST"
       (     "ID" NUMBER(*,0),
         "VAL" VARCHAR2(30 BYTE)
       ) SEGMENT CREATION DEFERRED
      PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 COMPRESS FOR OLTP LOGGING
      TABLESPACE "MYTBSCOMP" ;
    -- new object type path: TABLE_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
    ALTER TABLE "SCOTT"."TEST" ADD CONSTRAINT "VALIDA_CONFIRMAÇÃO_PREÇO13" CHECK (id<=10000000000) ENABLE;I was expecting to have the cedilla and tilde characters displayed incorrectly....
    Edited by: Nicosa on Feb 12, 2013 7:13 PM

    Srini Chavali wrote:
    If I understand you correctly, you are unable to reproduce the issue in the test instance, while it occurs in the production instance. Is the "schema move" being done on the same database - i.e. you are "moving" from SCOTT to NEW_SCOTT on the same database (test to test, and prod to prod) ? Do you have to physically move/copy the dmp file ? Hi Srini,
    On the real system, the schema move will be to and from different machines (but same DBversion).
    I'm not doing the real move for the moment, just trying to validate a way to do it, but I guess it's important to say that the dump being used for the moment comes from the same database (the long story being that due to some column using object datatype which caused error in the remap, I had to reload the dump with the "schema rename", drop the object column, and recreate a dump file without the object_datatype...).
    So Yes, the file will have to move, but in the current test, it doesn't.
    Srini Chavali wrote:
    Obviously something is different in production than test - can you post the output of this command from both databases ?
    SQL> select * from NLS_DATABASE_PARAMETERS;
    Yes Srini, something is obviously different : I'm starting to think that the difference might be in the Linux/shell side rather than on the impdp as datapump is supposed to be NLS_LANG/CHARSET-proof +(when traditional imp/exp was really sensible on those points)+
    The result on the Exadata where I have the issue :PARAMETER                      VALUE
    NLS_LANGUAGE                   AMERICAN
    NLS_TERRITORY                  AMERICA
    NLS_CURRENCY                   $
    NLS_ISO_CURRENCY               AMERICA
    NLS_NUMERIC_CHARACTERS         .,
    NLS_CHARACTERSET               AL32UTF8
    NLS_CALENDAR                   GREGORIAN
    NLS_DATE_FORMAT                DD-MON-RR
    NLS_DATE_LANGUAGE              AMERICAN
    NLS_SORT                       BINARY
    NLS_TIME_FORMAT                HH.MI.SSXFF AM
    NLS_TIMESTAMP_FORMAT           DD-MON-RR HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT             HH.MI.SSXFF AM TZR
    NLS_TIMESTAMP_TZ_FORMAT        DD-MON-RR HH.MI.SSXFF AM TZR
    NLS_DUAL_CURRENCY              $
    NLS_COMP                       BINARY
    NLS_LENGTH_SEMANTICS           BYTE
    NLS_NCHAR_CONV_EXCP            FALSE
    NLS_NCHAR_CHARACTERSET         AL16UTF16
    NLS_RDBMS_VERSION              11.2.0.3.0the result on my sandbox DB :PARAMETER                      VALUE
    NLS_LANGUAGE                   AMERICAN
    NLS_TERRITORY                  AMERICA
    NLS_CURRENCY                   $
    NLS_ISO_CURRENCY               AMERICA
    NLS_NUMERIC_CHARACTERS         .,
    NLS_CHARACTERSET               AL32UTF8
    NLS_CALENDAR                   GREGORIAN
    NLS_DATE_FORMAT                DD-MON-RR
    NLS_DATE_LANGUAGE              AMERICAN
    NLS_SORT                       BINARY
    NLS_TIME_FORMAT                HH.MI.SSXFF AM
    NLS_TIMESTAMP_FORMAT           DD-MON-RR HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT             HH.MI.SSXFF AM TZR
    NLS_TIMESTAMP_TZ_FORMAT        DD-MON-RR HH.MI.SSXFF AM TZR
    NLS_DUAL_CURRENCY              $
    NLS_COMP                       BINARY
    NLS_LENGTH_SEMANTICS           BYTE
    NLS_NCHAR_CONV_EXCP            FALSE
    NLS_NCHAR_CHARACTERSET         AL16UTF16
    NLS_RDBMS_VERSION              11.2.0.1.0------
    Richard Harrison .  wrote:
    Hi,
    Did you set NLS_LANG also when you did the import?Yes, that is one of the difference between the Exadata and my sandbox.
    My environnement in sandbox has NLS_LANG=AMERICAN_AMERICA.AL32UTF8 where the Exadata doesn't have the variable set.
    I tried to add it, but it didn't change anything.
    Richard Harrison .  wrote:
    Also not sure why you are doing the sed part? Do you have hard coded scheme references inside some of the plsql?Yes, that is why I choose to sed. The (ugly) code have :
    - Procedures inside the same package that references one another with the schema prepended
    - Triggers with PL/SQL codes referencing tables with schema prepended
    - Dynamic SQL that "builds" queries with schema prepended
    - Object Type that does some %ROWTYPE on tables with schema prepended (that will be solved by dropping the column based on those types as they obviously are not needed...)
    - Data model with object whose names uses non-ascii characters
    +(In France we use to call this "gas power plant" in order to tell how a mess it is : pipes everywhere going who-knows-where...)+
    The big picture is that this kind of "schema move & rename" should be as automatic as possible, as the project is to actually consolidate several existing databases on the Exadata :
    One schema for each country, hence the rename of the schemas to include country-code.
    I actually have a workaround yet : Rename the objects that have funky characters in their name before doing the export.
    But I was curious to understand why the SQLFILE messed up the constraint_name on one sustem when it doesn't on another...

  • When to use REUSE/SET, NO-ARCHIVELOGS in create controlfile in HOT BACKUP?

    I am a trainee Oracle DBA and have the following queries. Kindly reply with detailed explanation as I want to get my concepts cleared!
    Q1>> While doing a user managed hot backup, when we are creating a control file(CREATE CONTROLFILE) from trace for recovery when do we use the create control file with the following options:
    *1. REUSE / SET*
    *2. ARCHIVELOGS / NOARCHIVELOGS*
    Q2>> In what scenarios do we re-create the control file while recovering datafiles from a hot backup??
    Thanks a tonne!
    Regards,
    Bhavi

    Hemant K Chitale wrote:
    1.1 It is not "REUSE/SET". These are two very different clauses.
    REUSE is when you want the CREATE to overwrite the existing controlfile(s). If the controlfile(s) {as named in the instance parameter file, initSID.ora or spfileSID.ora} is/are already present, the CREATE fails unless REUSE is specified.
    SET is when you want to change the database name. Oracle then creates the controlfile(s) with the specified database name and updates the headers of all the datafiles. If you run a CREATE with a database name that is different from that in the datafile headers, the CREATE fails unless you include a SET to specify that the name must be changed. Note that this also means that the name in the instance parameter file must already have been updated.
    1.2 ARCHIVELOG/NOARCHIVELOG is to set the database state. The same is achieved by issuing an "ALTER DATABASE ARCHIVELOG/NOARCHIVELOG" when the database is MOUNTed but not OPEN.
    2. You'd run the CREATE CONTROLFILE if you do not have a binary backup of the controlfile.
    Optionally, you can also use CREATE CONTROLFILE to rename all the datafiles by specifying the new locations of the datafiles -- the datafiles must already be present in the new locations, else the CREATE fails if it doesn't find a datafile that is included in the list of datafiles included in the CREATE statement.
    RMAN is the correct way to run Backups. User Managed Backup scripts are used in cases like Storage-based Snapshots / SnapClones / BCV.
    Hemant K ChitaleThanks that was really helpful..One last question when to use the resetlogs/noresetlogs clause in the create controlfile statement. I have noticed that at times it accepts resetlog while at times it accepts noresetlogs

  • SQL Developer Migrate mySQL to 11g gets ORA-00972 due to 30 char name limit

    I am running MySQL version 5.5.30 server, SQL Developer 3.0.04 Build MAIN-04.34, and Oracle Enterprise Server 11.2.0.1.0, and using Migrate option to move both data dictionary and data from mysql to Oracle
    Most of the steps worked fine using OnLine option: used Capture just fine to generate the repositiory, and Convert generated DDL script just fine in the SQL Developer file folder.
    It failed to create users due to privs, but I created them manually: emulation user and also the MYSQL data schema user, after which I took the generated DDL, connected to my Oracle data schema user, and ran the DDL to basically create all the objects. And found out that over 50 tables / column names from MYSQL are longer then 30 char, and thus the generated DDL fails to create objects..
    Question - I can manually replace the names with shorter 30 char names, but if I do, my data migration step will not work.
    i cannot find references to 'name too long' problem anywhere is SQL Server documentation..
    here is the Oracle error example:
    Error report:
    SQL Error: ORA-00972: identifier is too long
    00972. 00000 - "identifier is too long"
    *Cause:    An identifier with more than 30 characters was specified.
    *Action:   Specify at most 30 characters.
    Creating Primary Key Constraint PRIMARY_1 on table bank_account ...

    Hello,
    have you tried the offline migration option? Then you can probably modify also the ctl file for the SQL*Loader to reflect your changes in the DDL script. I didn't yet try it out, it was just an idea that came to my mind.
    Regards
    Wolfgang

  • Can I create a non-Unicode database manually via create database segment

    Hi
    As unicode encode use more bytes than 2-bytes encode (for instance, ZHS16GBK), and XE has the limit with 4GB totally. So, can I create a non-Unicode (for instance, ZHS16GBK) database manually via create database segment? or I just could use unicode?
    Thanks.
    Samuel

    Could you load or paste this scripts? Well, the script is (obviously) a shell script, useless on Windows, unless you have some emulator (CygWin, MKS toolkit or similar). The following is the Sql part :
    sqlplus /nolog <<END
    spool xe_createdb.log
    connect sys/oracle as sysdba
    startup nomount pfile=$filedir/init$ORACLE_SID.ora
    whenever sqlerror exit;
    create database
      maxinstances 1
      maxloghistory 2
      maxlogfiles 16
      maxlogmembers 2
      maxdatafiles 30
    datafile '$filedir/system.dbf'
      size 200M reuse autoextend on next 10M maxsize 600M
      extent management local
    sysaux datafile '$filedir/sysaux.dbf'
      size 10M reuse autoextend on next  10M
    default temporary tablespace temp tempfile '$filedir/temp.dbf'
      size 20M reuse autoextend on next  10M maxsize 500M
    undo tablespace undo datafile '$filedir/undots1.dbf'
      size 50M reuse autoextend on next  5M maxsize 500M
    --character set al32utf8
    character set $dbcharset
    national character set al16utf16
    set time_zone='00:00'
    controlfile reuse
    logfile '$filedir/log1.dbf' size 50m reuse
           , '$filedir/log2.dbf' size 50m reuse
           , '$filedir/log3.dbf' size 50m reuse
    user system identified by oracle
    user sys identified by oracle
    -- create the tablespace for users data
    create tablespace users
      datafile '$filedir/users.dbf'
      size 100M reuse autoextend on next 10M maxsize 5G
      extent management local
    -- install data dictionary views:
    @?/rdbms/admin/catalog.sql
    -- run catblock
    @?/rdbms/admin/catblock
    -- run catproc
    @?/rdbms/admin/catproc
    -- run catoctk
    @?/rdbms/admin/catoctk
    -- run pupbld
    connect system/oracle
    @?/sqlplus/admin/pupbld
    @?/sqlplus/admin/help/hlpbld.sql helpus.sql;
    -- run plustrace
    connect sys/oracle as sysdba
    @?/sqlplus/admin/plustrce
    -- Install context
    @?/ctx/admin/catctx oracle SYSAUX TEMP NOLOCK;
    connect CTXSYS/oracle
    @?/ctx/admin/defaults/dr0defin.sql "AMERICAN"
    -- Install XDB
    connect sys/oracle as sysdba
    @?/rdbms/admin/catqm.sql oracle SYSAUX TEMP;
    connect SYS/oracle as SYSDBA
    @?/rdbms/admin/catxdbj.sql;
    connect SYS/oracle as SYSDBA
    @?/rdbms/admin/catxdbdbca.sql 0 8080;
    connect SYS/oracle as SYSDBA
    begin dbms_xdb.setListenerLocalAccess( l_access => TRUE ); end;
    -- Install Spatial Locator
    connect sys/oracle as sysdba
    create user MDSYS identified by MDSYS account lock;
    @?/md/admin/catmdloc.sql
    create spfile='$filedir/spfile.ora' from pfile
    alter user anonymous account unlock
    disconnect
    -- recompile invalid objects
    connect sys/oracle as sysdba
    begin dbms_workload_repository.modify_snapshot_settings(interval => 0); end;
    begin dbms_scheduler.disable('AUTO_SPACE_ADVISOR_JOB', true); end;
    spool off
    exit
    ENDWords prefixed with $ are OS variables, you have to substitute them with your values.

  • Creating Controlfile Consfusion

    According to Oracle Documents [http://docs.oracle.com/cd/B19306_01/server.102/b14200/statements_5003.htm|http://docs.oracle.com/cd/B19306_01/server.102/b14200/statements_5003.htm]
    When you issue a CREATE CONTROLFILE statement, Oracle Database creates a new control file based on the information you specify in the statement. The control file resides in the location specified in the CONTROL_FILES initialization parameter. If that parameter does not have a value, then the database creates an Oracle-managed control file in the default control file destination, which is one of the following (in order of precedence):
    •One or more control files as specified in the DB_CREATE_ONLINE_LOG_DEST_n initialization parameter. The file in the first directory is the primary control file. When DB_CREATE_ONLINE_LOG_DEST_n is specified, the database does not create a control file in DB_CREATE_FILE_DEST or in DB_RECOVERY_FILE_DEST (the flash recovery area).
    •If no value is specified for DB_CREATE_ONLINE_LOG_DEST_n, but values are set for both the DB_CREATE_FILE_DEST and DB_RECOVERY_FILE_DEST, then the database creates one control file in each location. The location specified in DB_CREATE_FILE_DEST is the primary control file.
    •If a value is specified only for DB_CREATE_FILE_DEST, then the database creates one control file in that location.
    •If a value is specified only for DB_RECOVERY_FILE_DEST, then the database creates one control file in that location.
    If no values are set for any of these parameters, then the database creates a control file in the default location for the operating system on which the database is running. This control file is not an Oracle-managed file.
    SQL> alter database backup controlfile to trace as 'D:\oracle\stuff\control.txt'
      2  /
    Database altered.
    SQL> show parameter control_files
    NAME                                 TYPE        VALUE
    control_files                        string      D:\ORACLE\PRODUCT\10.2.0\ORADA
                                                     TA\ORCL\CONTROL01.CTL, D:\ORAC
                                                     LE\PRODUCT\10.2.0\ORADATA\ORCL
                                                     \CONTROL02.CTL, D:\ORACLE\PROD
                                                     UCT\10.2.0\ORADATA\ORCL\CONTRO
                                                     L03.CTL
    SQL> create pfile='D:\oracle\stuff\pfile.txt' from spfile
      2  /
    File created.take out control_files parameter from pfile.txt and define the parameter only
    db_recovery_file_dest='D:\oracle\product\10.2.0\db_1
    db_recovery_file_dest_size=2147483648
    SQL> shutdown immediate
    ORA-01109: database not open
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup pfile='D:\oracle\stuff\pfile.txt' nomount
    ORACLE instance started.
    Total System Global Area  293601280 bytes
    Fixed Size                  1290208 bytes
    Variable Size             218103840 bytes
    Database Buffers           67108864 bytes
    Redo Buffers                7098368 bytes
    SQL> CREATE CONTROLFILE REUSE DATABASE "ORCL" NORESETLOGS  ARCHIVELOG
      2      MAXLOGFILES 16
      3      MAXLOGMEMBERS 3
      4      MAXDATAFILES 100
      5      MAXINSTANCES 8
      6      MAXLOGHISTORY 292
      7  LOGFILE
      8    GROUP 1 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO01.LOG'  SIZE 50M,
      9    GROUP 2 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO02.LOG'  SIZE 50M,
    10    GROUP 3 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO03.LOG'  SIZE 50M,
    11    GROUP 4 'D:\ORACLE\ORCL\ONLINELOG\O1_MF_4_8MTJ10B8_.LOG'  SIZE 100M
    12  DATAFILE
    13    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSTEM01.DBF',
    14    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\UNDOTBS01.DBF',
    15    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSAUX01.DBF',
    16    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\USERS01.DBF',
    17    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\EXAMPLE01.DBF'
    18  CHARACTER SET WE8MSWIN1252
    19  /
    Control file created.
    SQL> select name from v$controlfile
      2  /
    NAME
    D:\ORACLE\PRODUCT\10.2.0\DB_1\FLASH_RECOVERY_AREA\ORCL\CONTROLFILE\O1_MF_8MTSRCWH_.CTLAs you can see the location of OMF controlfile which is defined in parameter db_Recovery_file_dest,db_recovery_file_dest='D:\oracle\product\10.2.0\db_1\flash_recovery_area'
    But why its failing when i try to assert the Oracle doc statment
    If no values are set for any of these parameters DB_CREATE_ONLINE_LOG_DEST_n,DB_CREATE_FILE_DEST,DB_RECOVERY_FILE_DEST.The database creates a control file in the default location for the operating system on which the database is running. This control file is not an Oracle-managed file.
    SQL> CREATE CONTROLFILE REUSE DATABASE "ORCL" NORESETLOGS  ARCHIVELOG
      2      MAXLOGFILES 16
      3      MAXLOGMEMBERS 3
      4      MAXDATAFILES 100
      5      MAXINSTANCES 8
      6      MAXLOGHISTORY 292
      7  LOGFILE
      8    GROUP 1 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO01.LOG'  SIZE 50M,
      9    GROUP 2 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO02.LOG'  SIZE 50M,
    10    GROUP 3 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO03.LOG'  SIZE 50M,
    11    GROUP 4 'D:\ORACLE\ORCL\ONLINELOG\O1_MF_4_8MTJ10B8_.LOG'  SIZE 100M
    12  DATAFILE
    13    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSTEM01.DBF',
    14    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\UNDOTBS01.DBF',
    15    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSAUX01.DBF',
    16    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\USERS01.DBF',
    17    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\EXAMPLE01.DBF'
    18  CHARACTER SET WE8MSWIN1252
    19  ;
    CREATE CONTROLFILE REUSE DATABASE "ORCL" NORESETLOGS  ARCHIVELOG
    ERROR at line 1:
    ORA-01503: CREATE CONTROLFILE failed
    ORA-00600: internal error code, arguments: [kccbcf_omf_reuse], [], [], [], [],
    SQL> disconnect
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL>

    Oh really , here you go , i hope you can help me to sort the issue.
    SQL> alter database backup controlfile to trace as 'D:\oracle\stuff\control.txt'
      2  /
    Database altered.
    SQL> show parameter control_files
    NAME                                 TYPE        VALUE
    control_files                        string      D:\ORACLE\PRODUCT\10.2.0\ORADA
                                                     TA\ORCL\CONTROL01.CTL, D:\ORAC
                                                     LE\PRODUCT\10.2.0\ORADATA\ORCL
                                                     \CONTROL02.CTL, D:\ORACLE\PROD
                                                     UCT\10.2.0\ORADATA\ORCL\CONTRO
                                                     L03.CTL
    SQL> create pfile='D:\oracle\stuff\pfile.txt' from spfile
      2  /
    File created.take out control_files parameter from pfile.txt
    Pfile Parameters
    orcl.__db_cache_size=71303168
    orcl.__java_pool_size=8388608
    orcl.__large_pool_size=4194304
    orcl.__shared_pool_size=201326592
    orcl.__streams_pool_size=0
    *.audit_file_dest='D:\oracle\product\10.2.0\db_1\admin\orcl\adump'
    *.background_dump_dest='D:\oracle\product\10.2.0\db_1\admin\orcl\bdump'
    *.compatible='10.2.0.3.0'
    #*.control_files='D:\ORACLE\PRODUCT\10.2.0\DB_1\FLASH_RECOVERY_AREA\ORCL\CONTROLFILE\O1_MF_8MV1O4PY_.CTL'
    *.db_recovery_file_dest_size=2147483648
    *.db_recovery_file_dest='D:\oracle\product\10.2.0\db_1\flash_recovery_area'
    *.core_dump_dest='D:\oracle\product\10.2.0\db_1\admin\orcl\cdump'
    *.db_block_size=8192
    *.db_domain=''
    *.db_file_multiblock_read_count=16
    *.db_name='orcl'
    *.dispatchers='(PROTOCOL=TCP) (SERVICE=orclXDB)'
    *.job_queue_processes=10
    *.open_cursors=300
    *.pga_aggregate_target=96468992
    *.processes=150
    *.remote_login_passwordfile='EXCLUSIVE'
    *.sga_target=290455552
    *.undo_management='AUTO'
    *.undo_tablespace='UNDOTBS1'
    *.user_dump_dest='D:\oracle\product\10.2.0\db_1\admin\orcl\udump'
    SQL> shutdown immediate
    ORA-01109: database not open
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup pfile='D:\oracle\stuff\pfile.txt' nomount
    ORACLE instance started.
    Total System Global Area  293601280 bytes
    Fixed Size                  1290208 bytes
    Variable Size             218103840 bytes
    Database Buffers           67108864 bytes
    Redo Buffers                7098368 bytes
    SQL> CREATE CONTROLFILE REUSE DATABASE "ORCL" NORESETLOGS  ARCHIVELOG
      2      MAXLOGFILES 16
      3      MAXLOGMEMBERS 3
      4      MAXDATAFILES 100
      5      MAXINSTANCES 8
      6      MAXLOGHISTORY 292
      7  LOGFILE
      8    GROUP 1 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO01.LOG'  SIZE 50M,
      9    GROUP 2 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO02.LOG'  SIZE 50M,
    10    GROUP 3 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO03.LOG'  SIZE 50M,
    11    GROUP 4 'D:\ORACLE\ORCL\ONLINELOG\O1_MF_4_8MTJ10B8_.LOG'  SIZE 100M
    12  DATAFILE
    13    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSTEM01.DBF',
    14    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\UNDOTBS01.DBF',
    15    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSAUX01.DBF',
    16    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\USERS01.DBF',
    17    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\EXAMPLE01.DBF'
    18  CHARACTER SET WE8MSWIN1252
    19  /
    Control file created.
    SQL> select name from v$controlfile
      2  /
    NAME
    D:\ORACLE\PRODUCT\10.2.0\DB_1\FLASH_RECOVERY_AREA\ORCL\CONTROLFILE\O1_MF_8MTSRCWH_.CTLAs you can see the location of OMF controlfile which is defined in parameter db_Recovery_file_dest,db_recovery_file_dest='D:\oracle\product\10.2.0\db_1\flash_recovery_area'
    But why its failing when i try to assert the Oracle doc statment
    If no values are set for any of these parameters DB_CREATE_ONLINE_LOG_DEST_n,DB_CREATE_FILE_DEST,DB_RECOVERY_FILE_DEST.The database creates a control file in the default location for the operating system on which the database is running. This control file is not an Oracle-managed file.
    Pfile Parameters
    orcl.__db_cache_size=71303168
    orcl.__java_pool_size=8388608
    orcl.__large_pool_size=4194304
    orcl.__shared_pool_size=201326592
    orcl.__streams_pool_size=0
    *.audit_file_dest='D:\oracle\product\10.2.0\db_1\admin\orcl\adump'
    *.background_dump_dest='D:\oracle\product\10.2.0\db_1\admin\orcl\bdump'
    *.compatible='10.2.0.3.0'
    *.control_files='D:\ORACLE\PRODUCT\10.2.0\DB_1\FLASH_RECOVERY_AREA\ORCL\CONTROLFILE\O1_MF_8MV1O4PY_.CTL'
    *.core_dump_dest='D:\oracle\product\10.2.0\db_1\admin\orcl\cdump'
    *.db_block_size=8192
    *.db_domain=''
    *.db_file_multiblock_read_count=16
    *.db_name='orcl'
    *.dispatchers='(PROTOCOL=TCP) (SERVICE=orclXDB)'
    *.job_queue_processes=10
    *.open_cursors=300
    *.pga_aggregate_target=96468992
    *.processes=150
    *.remote_login_passwordfile='EXCLUSIVE'
    *.sga_target=290455552
    *.undo_management='AUTO'
    *.undo_tablespace='UNDOTBS1'
    *.user_dump_dest='D:\oracle\product\10.2.0\db_1\admin\orcl\udump'
    SQL> CREATE CONTROLFILE REUSE DATABASE "ORCL" NORESETLOGS  ARCHIVELOG
      2      MAXLOGFILES 16
      3      MAXLOGMEMBERS 3
      4      MAXDATAFILES 100
      5      MAXINSTANCES 8
      6      MAXLOGHISTORY 292
      7  LOGFILE
      8    GROUP 1 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO01.LOG'  SIZE 50M,
      9    GROUP 2 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO02.LOG'  SIZE 50M,
    10    GROUP 3 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO03.LOG'  SIZE 50M,
    11    GROUP 4 'D:\ORACLE\ORCL\ONLINELOG\O1_MF_4_8MTJ10B8_.LOG'  SIZE 100M
    12  DATAFILE
    13    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSTEM01.DBF',
    14    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\UNDOTBS01.DBF',
    15    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSAUX01.DBF',
    16    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\USERS01.DBF',
    17    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\EXAMPLE01.DBF'
    18  CHARACTER SET WE8MSWIN1252
    19  ;
    CREATE CONTROLFILE REUSE DATABASE "ORCL" NORESETLOGS  ARCHIVELOG
    ERROR at line 1:
    ORA-01503: CREATE CONTROLFILE failed
    ORA-00600: internal error code, arguments: [kccbcf_omf_reuse], [], [], [], [],
    [], [], []when i do not define the contro_files parameter within pfile , it works a trait. It creates the control file using OS default location in the absence of control_files, whats the point?
    Pfile Parameters
    orcl.__db_cache_size=71303168
    orcl.__java_pool_size=8388608
    orcl.__large_pool_size=4194304
    orcl.__shared_pool_size=201326592
    orcl.__streams_pool_size=0
    *.audit_file_dest='D:\oracle\product\10.2.0\db_1\admin\orcl\adump'
    *.background_dump_dest='D:\oracle\product\10.2.0\db_1\admin\orcl\bdump'
    *.compatible='10.2.0.3.0'
    #*.control_files='D:\ORACLE\PRODUCT\10.2.0\DB_1\FLASH_RECOVERY_AREA\ORCL\CONTROLFILE\O1_MF_8MV1O4PY_.CTL'
    *.db_recovery_file_dest_size=2147483648
    *.db_recovery_file_dest='D:\oracle\product\10.2.0\db_1\flash_recovery_area'
    *.core_dump_dest='D:\oracle\product\10.2.0\db_1\admin\orcl\cdump'
    *.db_block_size=8192
    *.db_domain=''
    *.db_file_multiblock_read_count=16
    *.db_name='orcl'
    *.dispatchers='(PROTOCOL=TCP) (SERVICE=orclXDB)'
    *.job_queue_processes=10
    *.open_cursors=300
    *.pga_aggregate_target=96468992
    *.processes=150
    *.remote_login_passwordfile='EXCLUSIVE'
    *.sga_target=290455552
    *.undo_management='AUTO'
    *.undo_tablespace='UNDOTBS1'
    *.user_dump_dest='D:\oracle\product\10.2.0\db_1\admin\orcl\udump'
    SQL> startup pfile='D:\oracle\stuff\pfile.txt' nomount
    ORACLE instance started.
    Total System Global Area  293601280 bytes
    Fixed Size                  1290208 bytes
    Variable Size             218103840 bytes
    Database Buffers           67108864 bytes
    Redo Buffers                7098368 bytes
    SQL>  CREATE CONTROLFILE REUSE DATABASE "ORCL" NORESETLOGS  ARCHIVELOG
      2       MAXLOGFILES 16
      3       MAXLOGMEMBERS 3
      4       MAXDATAFILES 100
      5       MAXINSTANCES 8
      6       MAXLOGHISTORY 292
      7   LOGFILE
      8     GROUP 1 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO01.LOG'  SIZE 50M,
      9     GROUP 2 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO02.LOG'  SIZE 50M,
    10     GROUP 3 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO03.LOG'  SIZE 50M,
    11     GROUP 4 'D:\ORACLE\ORCL\ONLINELOG\O1_MF_4_8MTJ10B8_.LOG'  SIZE 100M
    12   DATAFILE
    13     'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSTEM01.DBF',
    14     'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\UNDOTBS01.DBF',
    15     'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSAUX01.DBF',
    16     'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\USERS01.DBF',
    17     'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\EXAMPLE01.DBF'
    18   CHARACTER SET WE8MSWIN1252
    19   ;
    Control file created.
    SQL> select name from v$controlfile
      2  /
    NAME
    D:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\CTL1ORCL.ORA

  • Create controlfile

    Hi,
    on 10gR2, I recreate a new database (in noarchivlog mode)with the hot backed up data and redolog files of another database (in noarchivlog mode) with following script :
    STARTUP NOMOUNT PFILE="c:\oracle\product\10.2.0\admin\TEST\pfile\initTEST.ORA"
    CREATE CONTROLFILE SET DATABASE "TEST" RESETLOGS  NOARCHIVELOG
        MAXLOGFILES 16
        MAXLOGMEMBERS 3
        MAXDATAFILES 200
        MAXINSTANCES 8
        MAXLOGHISTORY 292
    LOGFILE
      GROUP 1 'D:\BASE\TEST\UNDO\REDO01.LOG'  SIZE 50M,
      GROUP 2 'D:\BASE\TEST\UNDO\REDO02.LOG'  SIZE 50M,
      GROUP 3 'D:\BASE\TEST\UNDO\REDO03.LOG'  SIZE 50M
    DATAFILE
      'D:\BASE\TEST\DATA\SYSTEM01.DBF',
      'D:\BASE\TEST\DATA\UNDOTBS01.DBF',
      'D:\BASE\TEST\DATA\SYSAUX01.DBF',
      'D:\BASE\TEST\DATA\USERS01.DBF',
      'D:\BASE\TEST\DATA\TSDATA01.DBF',
      'D:\BASE\TEST\DATA\TST1.DBF',
      'D:\BASE\TEST\DATA\TS_T1.DBF',
      'D:\BASE\TEST\DATA\TS_PO.DBF',
      'D:\BASE\TEST\DATA\TS_N1.DBF',
      'D:\BASE\TEST\DATA\TS_DATA1.DBF',
      'D:\BASE\TEST\DATA\TS_T2.DBF'
    CHARACTER SET WE8MSWIN1252
    RECOVER DATABASE using backup controlfile until cancel;
    AUTO
    ALTER DATABASE OPEN RESETLOGS;
    ALTER TABLESPACE TEMP ADD TEMPFILE 'D:\BASE\TEST\DATA\TEMP01.DBF'
         SIZE 20971520  REUSE AUTOEXTEND ON NEXT 655360  MAXSIZE 32767M;But it can not continue until end. It stops at "ALTER DATABASE OPEN RESETLOGS;"
    Then I retry "RECOVER DATABASE using backup controlfile until cancel;" and when prompted I give :
    'D:\BASE\TEST\UNDO\REDO01.LOG'
    'D:\BASE\TEST\UNDO\REDO02.LOG'
    These log files would be applied. I issue :
    ALTER DATABASE OPEN RESETLOGS;
    and then every thing is OK. I have my new database.
    My question is :
    Why my script can not go to end ? How can I have it automaticaly until end ? How can I make it to apply redologs automaticaly ?
    Thank you very much.

    thank you Erka, but :
    SQL> alter database recover automatic database using backup controlfile;
    alter database recover automatic database using backup controlfile
    ERROR at line 1:
    ORA-00279: change 12090228 generated at 02/13/2009 21:12:07 needed for thread 1
    ORA-00289: suggestion : D:\BASE\TEST\ARCH\ARC00425_0665589163.001
    ORA-00280: change 12090228 for thread 1 is in sequence #425
    ORA-00278: log file 'D:\BASE\TEST\ARCH\ARC00425_0665589163.001' no longer
    needed for this recovery
    ORA-00308: cannot open archived log 'D:\BASE\TEST\ARCH\ARC00425_0665589163.001'
    ORA-27041: unable to open fileOf cours as I said in the begining the databases are not in archivelog mode.

  • OCS V2 on linux "CREATE CONTROLFILE failed"

    Hello,
    i'd like some help regarding OCS instalation on linux.
    at first i tried to install OCS V2 on redhat 9.
    added redhat-9 to "certified OSes", installer started, fixed issue with "-z defs", then hung on relinkink webcache ins_calypso.mk. (ignored) later running DBCA get message "ORA-01503: CREATE CONTROLFILE failed" (abort) "ORA-01990: error opening password file ..." (abort) "ORA-27037: unable to obtain file status" (abort) same error (ok) other tasks continues...
    even tried OCS V1 singlebox version. the same problem.
    later downloaded and instaled UnitedLinux 1.0.
    some more issues about fully qualified hostname.
    needed to set /proc/sys/kernel/hostname not only to hostname, but to hostname.domainname.
    and the get the same error.
    i cant find answers to my problems in OTN and Metalink.
    please help.
    Thanks.
    Saulius Speicys

    also followed suse recomendations for Oracle 9i R2 install on SLES8 (920_sles8_install.pdf).
    updated kernel, downgraded gcc .
    and got the same troubles.
    at first with hostname, later with ins_sqlplus.mk, and then at dbca "CREATE CONTROLFILE failed".
    can it be because of fqhostname "ocs.as.local" ?
    or any naming of oracle home "/opt/oracle/product/iasdb" , instance name, or instance name "infra" / "ocs_infra" ?
    i think i'm lost %(
    thanks for any help.
    Saulius

  • ORA-00972:identifier too long

    hi
    oracle up limitation ?
    create table aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(a char);
    Error
    ORA-00972:identifier too long
    or
    create table a (aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa char);
    Error
    ORA-00972:identifier too long
    Oracle can not support upto 32 characters table name and field name ?
    It is true?
    null

    If you do a search on the particular Oracle error, you get the following:
    ORA-00972 identifier is too long
    Cause: The name of a schema object exceeds 30 characters. Schema objects are tables, clusters, views, indexes, synonyms, tablespaces, and usernames.
    Action: Shorten the name to 30 characters or less.
    It would appear that there's a 30 character limit.
    Justin
    null

  • Create controlfile fails

    Dear Hussein,
    I refereshed my production database with UAT database and when I am executing create contirolfile command I am getting the below erros:
    SQL> @ctrl01.sql
    ORA-01081: cannot start already-running ORACLE - shut it down first
    SP2-0042: unknown command "DATAFILE" - rest of line ignored.
    SP2-0734: unknown command beginning "'/oracle/o..." - rest of line ignored.
    SP2-0734: unknown command beginning "'/oracle/o..." - rest of line ignored.
    SP2-0734: unknown command beginning "'/oracle/o..." - rest of line ignored.
    SP2-0044: For a list of known commands enter HELP
    and to leave enter EXIT.
    SP2-0734: unknown command beginning "'/oracle/o..." - rest of line ignored.
    SP2-0734: unknown command beginning "'/oracle/o..." - rest of line ignored.
    SP2-0734: unknown command beginning "'/oracle/o..." - rest of line ignored.
    SP2-0734: unknown command beginning "'/oracle/o..." - rest of line ignored.
    SP2-0044: For a list of known commands enter HELP
    ======
    vi ctrl01.sql
    STARTUP NOMOUNT
    CREATE CONTROLFILE REUSE DATABASE "PROD" RESETLOGS ARCHIVELOG
    MAXLOGFILES 32
    MAXLOGMEMBERS 5
    MAXDATAFILES 512
    MAXINSTANCES 8
    MAXLOGHISTORY 20157
    LOGFILE
    GROUP 1 (
    '/oracle/oraprod/PROD/db/apps_st/data/log01a.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/log01b.dbf'
    ) SIZE 1024M,
    GROUP 2 (
    '/oracle/oraprod/PROD/db/apps_st/data/log02a.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/log02b.dbf'
    ) SIZE 1024M
    DATAFILE
    '/oracle/oraprod/PROD/db/apps_st/data/a_archive01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_int01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_media01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_nolog01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_queue01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_queue02.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_ref01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_ref02.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_summ01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_txn_data01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_txn_data02.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_txn_data03.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_txn_data4.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_txn_ind01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_txn_ind02.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_txn_ind03.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_txn_ind04.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_txn_ind05.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/apps_ts_tools01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/cntrl01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/cntrl02.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/cntrl03.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/ctxd01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/interim.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/log01a.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/log01b.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/log02a.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/log02b.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/odm.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/olap.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/owad01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/portal01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/sysaux01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/system01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/system02.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/system03.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/system04.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/system05.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/system07.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/system08.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/system09.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/system10.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/system11.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/temp01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/temp02.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/temp03.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/undo01.dbf'
    CHARACTER SET AR8ISO8859P6;
    can u plz suggest

    SP2-0042: unknown command "DATAFILE" - rest of line ignored.
    SP2-0734: unknown command beginning "'/oracle/o..." - rest of line ignored.
    SP2-0734: unknown command beginning "'/oracle/o..." - rest of line ignored.
    SP2-0734: unknown command beginning "'/oracle/o..." - rest of line ignored.
    SP2-0044: For a list of known commands enter HELP
    and to leave enter EXIT.
    SP2-0734: unknown command beginning "'/oracle/o..." - rest of line ignored.
    SP2-0734: unknown command beginning "'/oracle/o..." - rest of line ignored.
    SP2-0734: unknown command beginning "'/oracle/o..." - rest of line ignored.
    SP2-0734: unknown command beginning "'/oracle/o..." - rest of line ignored.
    SP2-0044: For a list of known commands enter HELPIt seems to be there is space (one line space is there, as per your script) before DATAFILE clause, remove that space and re run the script, it should be fixed
    try with the below script
    STARTUP NOMOUNT
    CREATE CONTROLFILE REUSE DATABASE "PROD" RESETLOGS ARCHIVELOG
    MAXLOGFILES 32
    MAXLOGMEMBERS 5
    MAXDATAFILES 512
    MAXINSTANCES 8
    MAXLOGHISTORY 20157
    LOGFILE
    GROUP 1 (
    '/oracle/oraprod/PROD/db/apps_st/data/log01a.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/log01b.dbf'
    ) SIZE 1024M,
    GROUP 2 (
    '/oracle/oraprod/PROD/db/apps_st/data/log02a.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/log02b.dbf'
    ) SIZE 1024M
    DATAFILE
    '/oracle/oraprod/PROD/db/apps_st/data/a_archive01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_int01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_media01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_nolog01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_queue01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_queue02.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_ref01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_ref02.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_summ01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_txn_data01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_txn_data02.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_txn_data03.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_txn_data4.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_txn_ind01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_txn_ind02.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_txn_ind03.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_txn_ind04.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_txn_ind05.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/apps_ts_tools01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/cntrl01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/cntrl02.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/cntrl03.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/ctxd01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/interim.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/log01a.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/log01b.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/log02a.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/log02b.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/odm.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/olap.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/owad01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/portal01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/sysaux01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/system01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/system02.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/system03.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/system04.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/system05.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/system07.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/system08.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/system09.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/system10.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/system11.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/temp01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/temp02.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/temp03.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/undo01.dbf'
    CHARACTER SET AR8ISO8859P6;Edited by: oraDBA2 on Aug 3, 2009 2:15 PM

Maybe you are looking for

  • Material valuation difference in FI and MM area for P.O in foreign Currency

    Seek assistance in solving the following issues related to P.O in foreign currency. Thanks in advance 1, For purchase orders in foreign currency, during MIGO,in the FI document, the  inventory value which include cost payable to the vendor, taxes, CH

  • Calling a Method in a Parent Class

    I have Class A that instantiates Class B which in turn instantiates Class C. Is there a way to call a method in Class A from Class C without having to pass a reference of A all the way down to C? Is there thread stack information that I can access th

  • IPhoto Slide Shows on iPod?

    I know how to convert my iMovies that I've created by sharing, using expert settings which makes them mpeg4 files... drag to iTunes, then download to my new 60 gig iPod... BUT, can you also do this with slide shows you've created in iPhoto? I'd like

  • Calibrating 23" cinema with eye one 2

    Does anyone know how to tweak profiles when using eye one 2 with 23" cinema display. The profile created is not as good as could be ...blue is way off the red/green curves.

  • How do I find noise margin etc?

    Over the past few months my download speed has dropped from around 7M to around 3. Work has been going on since the start of the year to bring FTTC to the area and I assumed that this was to blame. But that work has now finished, although I personall