Creating a Control File

I have a question about creating another control file. If I want to create another control file, do I need to put the values/paths of the current control files in the CREATE CONTROLFILE statement?

996403 wrote:
If I am wanting to create a new control file, do you recommend:
1. Use the Create Control file statementWhen to Create New Control Files:
All control files for the database have been permanently damaged/missing and you do not have a control file backup.
You want to change one of the permanent database parameter settings originally specified in the CREATE DATABASE statement.
These settings include the database name and the following parameters: MAXLOGFILES, MAXLOGMEMBERS, MAXLOGHISTORY, MAXDATAFILES, and MAXINSTANCES.
For example, you would change a database name if it conflicted with another database name in a distributed environment,
or you would change the value of MAXLOGFILES if the original setting is too low.
2. Copy an existing control file and then edit the parameter file?i will recommend 2nd (if you have healthy control file) if you want multiplex control files.

Similar Messages

  • Regarding RESETLOG and NORESETLOG option while creating a control file

    Hi,
    I dont understand the need for resetlogs option while creating a controlfile for a db in NOARCHIVELOGMODE. I assume that reset logs clears all the redo log contents.
    While taking a cold backup what I did was:
    1. Shutdown instance
    2. Copy all the files
    3. Startup
    Now I tried recovering the same database on a new machine (with different path btw.) coz of which i had to create a new control file. My question is: while restoring the database, do I need to create the control file with NORESETLOG or RESETLOG option?
    When I tried using the NORESETLOG (NOARCHIVELOG) option I was able to recover the instance without any hassles.
    ie
    1. STARTUP NOMOUNT
    2. CREATE NEW CONTROL FILE USING NORESETLOG (NOARCHIVELOG)
    3. RECOVER DATABASE
    4. ALTER DATABASE OPEN;
    While the same thing with NORESETLOG (NOARCHIVELOG) option:
    1. STARTUP NOMOUNT
    2. CREATE NEW CONTROL FILE USING RESETLOG (NOARCHIVELOG)
    3. RECOVER DATABASE USING BACKUP CONTROLFILE
    This step asked me for some archivelogs which were not generated since the db is in NOARCHIVELOG mode.
    I wonder why we require the RESETLOG OPTION SINCE A NORMAL SHUTDOWN PERFORMED BEFORE COLD BACKUP would have ensured that there is no redo information left in the redo logs.
    Please let me know if I am thinking the incorrect way.
    Regards and Thanx in Advance,
    Raj

    If you had a db running in noarchivelog mode and had to clone the db and rename it, the create controlfile stmt:
    create controlfile reuse <db_name> needs to be changed to: create controlfile SET <db_name>, in which case the db can only be opened with resetlogs. Hope this answers your question

  • If it is not specified,Oracle creates one control file in a default locatio

    Hi
    The CONTROL_FILES parameter is not required when you create a database. If it is not specified,Oracle creates one control file in a default location,.
    Where oracle create contol file default in this condition
    Thanks

    Can you try to create a database and see
    FYI
    It creates in $ORACLE_HOME\database folder..if not specified but in UNIX i think it will be under $ORACLE_HOME/dbs
    Because i dont have UNIX right now to test it
    Message was edited by:
    Maran Viswarayar

  • How to dynamically create sqlldr control file using stored procedure

    I am trying to dynamically create the control file (.ctl) and execute the same using a stored procedure.I would be passing the file name as a parameter to this procedure. How do I go about doing this?
    The control file has the following structure. The file name (mktg) varies and is passed as an input to the stored procedure.
    SPOOL mktg.ctl
    LOAD DATA
    INFILE 'mktg.csv'
    INTO TABLE staging
    FIELDS TERMINATED BY ','
    TRAILING NULLCOLS
    (COMPANY_NAME,
    ADDRESS,
    CITY,
    STATE,
    ZIP)
    SPOOL OFF ;
    sqlldr scott/tiger CONTROL= mktg.ctl LOG=mktg.log BAD=mktg.bad

    We are using oracle 9i rel 2.
    I have not had much success with the creation of log and bad files using external tables when they are being used within a dynamic sql.
    Plz check this:
    Re: problems related to data loads from excel, CSV files into an oracle 9i db

  • Is it possible to create a control file without the datafiles

    Hi All,
    Is it possible to create a control file without the datafiles?
    on any OS or DB version
    regards,
    sachin

    if I understand properly:
    - you have a script to recreate the controlfile
    - you have all of your database files backed up except your controlfiles
    This should work as this is how we sometimes refresh dev databases:
    1) restore the copies of the database files
    2) recreate the controlfile
    3) recover the database files to the desired point in time (if hot backup or archivelogs are available, otherwise, it would be as of the time of the backup)
    4) add temp files to temporary tablespace(s)
    The simpler solution would be to backup your controlfile at the same time as your datafiles (RMAN or o/s copy).
    I hope I understood your question properly.

  • Creating acscii control file from binary control file

    Hi,
    We are in the process of cloning DB on a different server from cold backups taken on source server. The DBA forgot to take the backup of control file by dumping to trace using command
    alter database backup controlfile to trace;
    We have the cold backup files of control files.
    Is there was to create ascii control file from those binary control file?
    I am wondering if we can use any binary file editors like emacs to do this
    Is there any other way to clone it without backup of control file?
    TIA
    andy

    Apart from that I recommend you to have this thread on hand if you get any trouble duplicating the database.
    TIP 04: Duplicating a Database in 10g by Joel Pèrez
    TIP 04: Duplicating a Database in 10g by Joel Pèrez
    Joel Pérez
    http://otn.oracle.com/experts

  • Re createing the control file

    alter database backup controlfile to trace;
    How do I re create the control file using what's in trace(Oracle 9i Solaris 9)
    Thanx.

    See Note 1012929.6 How to Recreate the Controlfile, the trace contains the syntax to recreate the controlfile, you can copy the contents to a sql file such as newctl.sql, edit the contents removing the header and make other changes such as increasing maxlogfiles, then run the sql file.
    HTH
    Enrique
    PS Why do you need to rebuild the controlfile?

  • CREATE DATABASE cannot create a control file

    I know, it's not supported. Please refrain from reminding me.
    I am trying to install a second database on an Oracle 8i installation (8.1.7.4) on a Windows 2003 server. I cannot use DBCA because it doesn't work, so I create the databases manually using the script produced by DBCA.
    So I run the following:
    connect INTERNAL@TEST
    startup nomount pfile="C:\oracle\admin\COHPTEST\pfile\initTEST.ora"
    CREATE DATABASE TEST
    LOGFILE 'D:\oracle\oradata\TEST\redo01.log' SIZE 1024K,
    'D:\oracle\oradata\TEST\redo02.log' SIZE 1024K,
    'D:\oracle\oradata\TEST\redo03.log' SIZE 1024K
    MAXLOGFILES 32
    MAXLOGMEMBERS 2
    MAXLOGHISTORY 1
    DATAFILE 'D:\oracle\oradata\TEST\system01.dbf' SIZE 264M REUSE AUTOEXTEND ON NEXT 10240K
    MAXDATAFILES 254
    MAXINSTANCES 1
    CHARACTER SET WE8ISO8859P1
    NATIONAL CHARACTER SET WE8ISO8859P1;
    I receive the following error:
    ORA-01501: CREATE DATABASE failed
    ORA-00200: controlfile could not be created
    ORA-00202: controlfile: 'D:\oracle\oradata\TEST\ctrl01.ctl'
    ORA-27040: skgfrcre: create error, unable to create file
    OSD-04002: unable to open file
    O/S-Error: (OS 3) The system cannot find the path specified.
    More information:
    1) Added the "Everyone" account to full control on the D: drive, to eliminate the possibility of access issues.
    2) The control files, the alertLog, and just about every other file do not exist before, or after the error.
    3) I cannot produce more detailed information other than what you see. I do not know of a trace that will track this, which would be helpful.
    4) I've tried from both SQLPLUS and SVRMGRL, as well as using INTERNAL, SYS accounts as well as adding sysdba privileges.
    I would love to upgrade this instance, but it has other databases on it, and only one box to run this DB on.
    SO, just to be sure, telling me to upgrade isn't what I am hoping to learn. I would appreciate some insight on how to display the account svrmgrl runs under, or how to get it to run under another user ID that would be great, or why it can't create the file, or a manual way to create the file (CREATE CONTROLFILE is for existing db's only right? )

    Hello, my name is stupid.
    I was using a remote file in my TNS_ADMIN environment value. It was pointing to the old database the whole time. The old database was up and down all day, but no one was on it to notice.
    Answer: Please check your TNS_ADMIN file, to make sure that you do not have any naming conflicts with the database you are creating, and another database with the same name in your collection of databases.
    What happened:
    The reason it could not create the files: There was another TEST database, which was what was connected to, and I tried to create the files on another server which did not have a D: Drive.
    When I switched to C: it stated the files were already in existence, which I knew wasn't true, and what led me to look at what I was connecting to.
    When I checked my TNSNames.Ora file, I noticed the 2nd entry for a database also named "TEST" that a previous DBA had left in there, I realized I was working on the wrong database because it connected to the first database in the TNSNames listed for that SID.
    I removed the entry from the TNSNames file, and the database was created successfully (Manually, DBCA still doesn't work).
    Thanks for all that tried to help, but introspection was the only solution.

  • How to create .ctl (control file) to calide excel rows in ssis ?

    In my package i have a requirement to use .ctl control file to valide excel rows. can anyone tell me how to create a .ctl file which will have all of this information. 

    A few assumptions 1st:
    1) I understood the .ctl file can be any ASCII (flat) file of arbitrary format; and that
    2) You will drive the validation rules.
    Since you seem like want to apply the validation as the first step in your package I advocate plugging the Script Transformation task in which happens to expose the "ProcessInputRow" method that in turn allows a developer to intercept each row for inspection.
    This is where you will need to apply much thinking to how to make the validation rules applied in retrospect to the incoming data.
    You drive the code (logic). More through help is a click away here http://www.codeproject.com/Articles/193855/An-indespensible-SSIS-transformation-component-Scr which only covers how to make the row-by-row processing possible.
    If you expected SSIS to have this functionality provided for free - unfortunately this is not happening.
    One of many reason is, what you want to do is extremely laborious.
    Arthur My Blog

  • Creating a control file copy with ASM

    Configuration is Oracle 10.2, RAC, and ASM (Automatic Storage Management). I would like to create a second copy of the control file.
    If this wasn't ASM, I could just bring down the database, copy the control file using an operating system command, modify the pfile to reference both the original and new copy, and then restart the database.
    Since this is ASM, I cannot use an operating system command to copy the control file, and RMAN "BACKUP" (which is the only way I know to make a copy of the control file) will only work if the database is up. When I "restore" the control file using RMAN and change the pfile to reference both control files I get a message like the following when attempting to start the database:
    ORA-00214: control file '+ASMGROUP1/db1/controlfile/current.271.566646845'
    version 2241 inconsistent with file
    '+ASMGROUP1/db1/controlfile/current.268.566661765' version 2236
    Soooooo, how do I make and implement a second copy of a control file using ASM.
    Thanks

    Hi.
    This is not testet so presede with caution as it is meant as a discussion ;-)
    As I see it there is no logical way to extend the instance by adding a controlfile.
    The following procedure might work (has not been tested)
    I think you have to make a controlfilebackup with the database closed in normal mode using RMAN.
    Further you might be able to edit the pfile with create pfile from spfile and further create spfile from pfile. Extending the controlfile parameter to represent number and names of controlfile needed.
    With this done, the database is closed normal with a controlfile copy presented somewhere on the filesystem.
    startup mount;
    restore controlfile from '<backup controlfile location>'
    alter database mount;
    alter database open;
    Any thoughts about this procedure guys?
    Rgds
    Kjell Ove

  • Error, while creating a control file

    Hi All,
    DB Version :- SQL*Plus: Release 10.2.0.3.0
    I am in process of carrying out full db refresh from cold backup. I came across with following, while creating a contrl file. strange to see two dbf's has same file_id. Please help me to solve this issue.
    ==
    SQL> @a.sql
    CREATE CONTROLFILE SET DATABASE LNRATU2 RESETLOGS NOARCHIVELOG
    ERROR at line 1:
    ORA-01503: CREATE CONTROLFILE failed
    ORA-01167: two files are the same file/group number or the same file
    ORA-01110: data file 6: '/data/oracle/LNRATU2/data02/LNRATU2_audits.dbf'
    ORA-01110: data file 6: '/data/oracle/LNRATU2/data01/LNRATU2_audits_01.dbf'
    ===
    hare krishna

    Thanks.. Find below the a.sql contents.
    CREATE CONTROLFILE SET DATABASE LNRATU2 RESETLOGS NOARCHIVELOG
    MAXLOGFILES 5
    MAXLOGMEMBERS 3
    MAXDATAFILES 300
    MAXINSTANCES 1
    MAXLOGHISTORY 58720
    LOGFILE
    GROUP 2 (
    '/data/oracle/LNRATU2/redo01/LNRATU2_redo02a.dbf',
    '/data/oracle/LNRATU2/redo02/LNRATU2_redo02b.dbf'
    ) SIZE 500M,
    GROUP 3 (
    '/data/oracle/LNRATU2/redo01/LNRATU2_redo03a.dbf',
    '/data/oracle/LNRATU2/redo02/LNRATU2_redo03b.dbf'
    ) SIZE 500M
    DATAFILE
    '/data/oracle/LNRATU2/data01/LNRATU2_audits_01.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_01.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_02.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_03.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_04.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_05.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_06.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_07.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_08.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_09.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_10.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_11.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_12.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_13.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_14.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_15.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_16.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_17.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_18.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_19.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_20.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_21.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_22.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_23.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_24.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_25.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_26.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_27.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_28.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_29.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_30.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_INDX01_01.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_INDX01_02.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_INDX01_03.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_INDX01_04.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_INDX01_05.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_INDX01_06.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_INDX01_07.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_INDX01_08.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_INDX01_09.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_INDX01_10.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_INDX01_11.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_INDX01_12.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_INDX01_13.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_INDX01_14.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_INDX01_15.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_INDX01_16.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_INDX01_19.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_MCINFO_DATA01_01.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_MCINFO_INDX01_01.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_MCINFO_LOB01_01.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_quest_01.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_RATEOD_LOB01_01.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_RMS_DATA01_01.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_RMS_DATA01_02.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_RMS_INDX01_01.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_RMS_INDX01_02.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_RMS_INDX01_03.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_RMS_LOB01_01.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_sysaux_01.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_system01.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_tools_01.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_UNDOTBS101.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_users_01.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_audits.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_DATA01_31.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_DATA01_32.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_DATA01_33.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_DATA01_34.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_DATA01_35.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_DATA01_36.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_DATA01_37.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_DATA01_38.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_DATA01_39.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_DATA01_40.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_DATA01_41.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_INDX01_17.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_INDX01_18.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_INDX01_20.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_INDX01_21.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_INDX01_22.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_INDX01_23.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_INDX01_24.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_INDX01_25.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_INDX01_26.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_INDX01_27.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_INDX01_28.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_INDX01_29.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_INDX01_30.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_INDX01_31.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_INDX01_32.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_INDX01_33.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_INDX01_34.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_INDX01_35.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_INDX01_36.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_INDX01_37.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_INDX01_38.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_quest_01.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_RATEOD_LOB01_02.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_RMS_DATA01_03.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_RMS_DATA01_04.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_RMS_DATA01_05.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_RMS_INDX01_04.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_RMS_INDX01_05.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_RMS_INDX01_06.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_RMS_INDX01_07.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_statpack_01.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_sysaux_01.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_system01.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_tools_01.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_UNDOTBS1_02.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_users_01.dbf'
    CHARACTER SET WE8ISO8859P1
    hare krishna

  • I am getting error while creating Control file for a fla file upoad in HANA

    Hi Experts,
    I am getting the following error when I try to create crtrol file for a flat file extraction in SAP HANA.
    Could not execute 'import data into table P935718."COPATBL" from 'COPATBL.csv' record delimited by '\n' fields ...'
    SAP DBTech JDBC: [257] (at 14): sql syntax error: incorrect syntax near "into": line 2 col 1 (at pos 14)
    Here is the code I have used to create control file after I creating the table.
    import data
    into table P935718."COPATBL"
    from 'COPATBL.csv'
        record delimited by '\n'
        fields delimited by ','
        optionally enclosed by '"'
    error log 'P935718.COPATBL.err'
    p935718 is my user ID, COPATBL is my table created, COPABL.CSV is a flat file.
    Please help me in this regard.
    Thanks,
    Guna

    Hello,
    guessing from the error message it looks that you are trying to execute "import data" as SQL command.
    Please note that import data is NOT SQL command but it is syntax for control file. You need to create file with this syntax on server and then use command: IMPORT FROM '/<path>/<filename>.ctl'
    In a shortcut:
    1.- create comma separated CSV file with your data - <source cvs>.csv
    2.- upload CVS file to HANA server
    3.- create the control file <filename>.ctl:
    import data
    into table <schema>."<table name>"
    from '<source cvs>.csv'
    record delimited by '
    fields delimited by ','
    optionally enclosed by '"'
    error log '<file name>.err'
    4.- execute command:
    IMPORT FROM '/<path>/<filename>.ctl'
    Please check following threads:
    How to load CSV files into HANA
    Will HANA supports Bulkload
    Tomas

  • 11i RW-50004 while creating control file...

    Dear all,
    Kindly let me know what this log file sys...
    I am trying to install 11i on OEL4.6 with 2GB RAM in VMware for Important test purpose. While creating control file in second stage i am getting this Error:,,
    RW-50004 : Error code received when running external process.
    Check log file for details.
    I have check ORALCEHOME/appsutil/log/SID/04270524.log
    Please let me know this error.
    Regards
    GAZA
    Creating the control file for abc_apps11i database ...+
    SQLPlus: Release 9.2.0.5.0 - Production on Fri Apr 27 06:23:10 2012*+
    Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.+
    ERROR:+
    ORA-01031: insufficient privileges+
    ORA-01031: insufficient privileges+
    ERROR:+
    ORA-01031: insufficient privileges+
    ORA-01031: insufficient privileges+
    SP2-0640: Not connected+
    SP2-0640: Not connected+
    SP2-0640: Not connected+
    SP2-0640: Not connected+
    ORA-01012: not logged on+
    ERROR:+
    ORA-01031: insufficient privileges+
    ORA-01031: insufficient privileges+
    SP2-0640: Not connected+
    SP2-0641: "EXECUTE" requires connection to server+
    ORA-01031: insufficient privileges+
    ERROR:+
    ORA-01031: insufficient privileges+
    ORA-01031: insufficient privileges+
    SP2-0640: Not connected+
    SP2-0640: Not connected+
    SP2-0640: Not connected+
    SP2-0640: Not connected+
    SP2-0640: Not connected+
    exit_code=0+
    Checking for errors ...+
    ORA-01031: insufficient privileges+
    ORA-01031: insufficient privileges+
    ORA-01031: insufficient privileges+
    ORA-01031: insufficient privileges+
    ORA-01012: not logged on+
    ORA-01031: insufficient privileges+
    ORA-01031: insufficient privileges+
    ORA-01031: insufficient privileges+
    ORA-01031: insufficient privileges+
    ORA-01031: insufficient privileges+
    The database has not been successfully created. Shutting down the instance ...+
    SQLPlus: Release 9.2.0.5.0 - Production on Fri Apr 27 06:23:12 2012*+
    Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.+
    ERROR:+
    ORA-01031: insufficient privileges+
    ORA-01031: insufficient privileges+
    Cannot create control file for abc+
    RW-50010: Error: - script has returned an error:   9+
    RW-50004: Error code received when running external process.  Check log file for details.+
    Running Database Install Driver for abc instance+

    Please make sure the user accounts for the installation (applmgr/oracle) have full privileges.
    Oracle Applications Installation Guide: Using Rapid Install -- Page 1-9
    http://docs.oracle.com/cd/B25516_18/current/acrobat/r115102ins.pdf
    If you still have the same issue, please upload all the log files to any free hosting website and post the link here so we can review it.
    Thanks,
    Hussein

  • Problem in creating control files

    Hi
    I am using oracle 9i
    I want to import the excel sheet data into the database.
    Please let me know how to create the control file for sql loader.
    For that i created control file using the following code
    set echo off ver off feed off pages 0
    accept tname prompt 'Enter Name of Table: '
    accept dformat prompt 'Enter Format to Use for Date Columns: '
    spool &tname..ctl
    select 'LOAD DATA'|| chr (10) ||
    'INFILE ''' || lower (table_name) || '.dat''' || chr (10) ||
    'INTO TABLE '|| table_name || chr (10)||
    'FIELDS TERMINATED BY '','''||chr (10)||
    'TRAILING NULLCOLS' || chr (10) || '('
    from user_tables
    where table_name = upper ('&tname');
    select decode (rownum, 1, ' ', ' , ') ||
    rpad (column_name, 33, ' ') ||
    decode (data_type,
    'VARCHAR2', 'CHAR NULLIF ('||column_name||'=BLANKS)',
    'FLOAT', 'DECIMAL EXTERNAL NULLIF('||column_name||'=BLANKS)',
    'NUMBER', decode (data_precision, 0,
    'INTEGER EXTERNAL NULLIF ('||column_name||
    '=BLANKS)', decode (data_scale, 0,
    'INTEGER EXTERNAL NULLIF ('||
    column_name||'=BLANKS)',
    'DECIMAL EXTERNAL NULLIF ('||
    column_name||'=BLANKS)')),
    'DATE', 'DATE "&dformat" NULLIF ('||column_name||'=BLANKS)', null)
    from user_tab_columns
    where table_name = upper ('&tname')
    order by column_id;
    select ')'
    from dual;
    spool off
    and after then i have written in the commond prompt like
    C:\sqlldr username/password@host controlfile
    then it is giving like this
    Commit point reached - logical record count 1
    Any Help?
    Thank you

    What does it say in the .log file?
    What records are in the .bad file?
    How many records in the data file - if 1 then it's all good.
    Excel often puts column headings in the .csv file - you may need to SKIP the first record (look it up in the docs).
    Don't hard code the filename into the control file - it's easier to do that when you load:
    sqlldr u/p control=controlfile data=datafileRead carefully what FLOAT and DECIMAL mean. Unless you are dealing with binary datatypes (you aren't) you probably don't need these. Only DATE needs careful treatment.
    Also, consider pulling the data in using an external table (if it is on the Oracle server already). Again, look it up in the docs - you'll still have to get the control definition right...
    Regards Nigel

  • Reg Creating Physical Standby Control File

    Hi,
    I am trying to create a physical standby in the same server in a different partition.
    I have copied the home and changed the init.ora file.
    I have created listeners.
    I did creating standby Control file Using
    alter database create standby controlfile as '/some/path/to/a/file'
    Then i copied the datafiles from primary to standby and when i tried to mount the database it gives error
    RACLE instance started.
    Total System Global Area 285212672 bytes
    Fixed Size 1267044 bytes
    Variable Size 88083100 bytes
    Database Buffers 188743680 bytes
    Redo Buffers 7118848 bytes
    ORA-01103: database name 'WMSTDBY' in control file is not 'WMTEST'
    My Primary Sid is WMSTDBY
    My Standby SId is WMTEST.
    Please help in this regard.
    Krishna.V.V

    You cannot change the DB_NAME of the standby. It has to be the same as the Primary. You can change (and should) the INSTANCE_NAME (SID) and the DB_UNIQUE_NAME parameters to WMTEST.
    Larry

Maybe you are looking for

  • ComboBox w/RO DataProvider Problem

    I've got a combobox that is supposed to get filled from a RemoteObject call, but for some reason all I'm seeing is the text "[objectOperation]" in the dropdown. Here's the combobox: <mx:ComboBox width="150" id="categorySelector" labelField="CATEGORYN

  • How to cancel the process in initiator of human task in 11g?

    human task as the initiator of the process, by default there is only a SUBMIT button, how to cancel the process then? if I just close the form, a task will still created in the task list, still in initiator step. what if I don't want this? I tried to

  • Only one visualizer????

    Tried to load iTunes 7 which was a bust. So I un-installed and finally got iTunes 6.0.05.02 to load and run. Now I only seem to have one form/style of the visualizer. Is there somewhere to DL the visualizer by themselves, or can I run the "repair", o

  • I lose songs when installing on new computer - Help!

    I've had the misfortune of installing iTunes on 4 different computers and every time, losing my purchased and downloaded songs. What do I need to to to avoid this. And is there any recourse for me to retrieve past material? Thank you for any help you

  • 15-d001au bios flash gone wrong .....

    hi. after doing a bios update off the hp website, the computer went through the reboot cycle, but it didnt even attempt to restart.  just fell to a black screen and has not done a check or anything. i am wondering if this unit is suitable for a win/b