DBCA silent mode - sys password

Hi,
I would like to create an embedded database with DBCA in silent mode.
That works perfectly but I would like also to change the SYS and SYSTEM password in silent mode during installation process.
Is there some issue with command line parameters or response file entry ?
The commande line parameter '-sysDBAPassword' seems to be available only for option '-createTemplateFromDB' or '-createCloneTemplate' but not for option '-createDatabase'.
Regards,
--Christophe Gierski

Hi,
All user password in Oracle is encrypted so don't worry about that, and the Password file is also encrypted. see below example
ora10g@tornado:/home/ora10g/oracle/product/10.2.0/db_1/dbs> vi orapwb04si
"orapwb04si" [Last line is not complete] 1 line, 1536 characters (1451 null characters)
^B^BZ[\]ORACLE Remote Password file^[^AINTERNAL^H8DAB748757BD84AC^P^OSYS^C76DAE6130FCF0F30^P^O^À[/b]
cheers

Similar Messages

  • Using dbca silent mode change the location of datafiles how to force it

    Hello
    usually i create oracle databases using the create database command, however im trying this time to use the dbca -silent -createDatabase -templateName General_Purpose.dbc - i have edited the General_Purpose.dbc to have the control files. datafiles etc to go to a different location other then the $ORACLE_BASE and no luck so far, whatever i do even changing the $oracle_base just dumps all into a location, how can i force it / change it - this is Oracle 11GR2 on linux
    see sample of my General_Purpose.dbc
    <initParam name="control_files" value="/u01/oradata/control01.ctl, /u02/oradata/control02.ctl"/>
    <initParam name="diagnostic_dest" value="/backup/oracle/oradata"/>
    Name id="1" Tablespace="SYSTEM" Contents="PERMANENT" Size="700" autoextend="true" blocksize="1024">/u01/oradata/system01.dbf</Name>
    <Name id="2" Tablespace="SYSAUX" Contents="PERMANENT" Size="512" autoextend="true" blocksize="1024">/u02/oradata/sysaux01.dbf</Name>
    <Name id="3" Tablespace="UNDOTBS1" Contents="UNDO" Size="25" autoextend="true" blocksize="1024">/u01/oradata/undotbs01.dbf</Name>
    <Name id="4" Tablespace="USERS" Contents="PERMANENT" Size="5" autoextend="true" blocksize="1024">/u02/oradata/users01.dbf</Name>
    thank you

    I think you should use :
    [-datafileDestination <destination directory for all database files> | -datafileNames <a text file containing database objects such as controlfiles, tablespaces, redo log files and spfile to their corresponding raw device file names mappings in name=value format.>] [-datafileDestination <destination directory database for all files> |-datafileNames <a text file containing database objects such as controlfiles, tablespaces, redo log files and spfile to their corresponding raw device file names mappings in name=value format.>]Read this please
    http://docs.oracle.com/cd/E17559_01/em.111/e16599/appdx_creating_db_templates.htm#CJACEDCD

  • DBCA using silent mode

    Hi All
    I want to install Oracle R2 with silent mode, and when I used below sentence to create database,I hope the process is in silent mode,but a console always appear,and many progress info always appear inside too,Is it correct?
    dbca -silent -createDatabase -templateName cyDB.dbc -gdbname TEST -sid TEST -sysPassword xiaby -systemPassword xiaby .
    thanks

    Ref. Oracle® Database Readme
    10g Release 2 (10.2)
    Part Number B14233-04
    40.3.2 Running Database Configuration Assistant (DBCA) in Silent Mode
    In Chapter 2, "Creating an Oracle Database", the following information should be included.
    Silent mode does not have a user interface (other than what you initially input on the command line) or user interaction. It outputs all messages, including information, errors, and warnings, to a log file.
    From the command line, enter the following to see all of the DBCA options that are available when using silent mode:
    dbca -help
    The following sections contain examples that illustrate the use of silent mode.
    DBCA Silent Mode Example 1: Creating a New Database To create a clone database, enter the following on the command line:
    % dbca -silent -createDatabase -templateName Transaction_Processing.dbc
    -gdbname ora10i -sid ora10i -datafileJarLocation
    /private/oracle10i/ora10i/assistants/dbca/templates -datafileDestination
    /private/oracle10i/ora10i/oradata -responseFile NO_VALUE
    -characterset WE8ISO8859P1
    DBCA Silent Mode Example 2: Creating a Seed Template To create a seed template, enter the following on the command line:
    % dbca -silent -createCloneTemplate -sourceDB ora10i -sysDBAUserName
    sys -sysDBAPassword change_on_install -templateName copy_of_ora10i.dbc
    -datafileJarLocation /private/oracle/ora10i/assistants/dbca/templates
    dbca syntax (partial)
    dbca  [-silent | -progressOnly | -customCreate] {<command> <options> }  | { [<command> [options] ] -responseFile  <respo
    nse file > } [-continueOnNonFatalErrors <true | false>]
            -createDatabase
                    -templateName <name of an existing  template>
                    [-cloneTemplate]
                    -gdbName <global database name>
                    [-sid <database system identifier>]
                    [-sysPassword <SYS user password>]
                    [-systemPassword <SYSTEM user password>]
                    [-emConfiguration <CENTRAL|LOCAL|ALL|NOBACKUP|NOEMAIL|NONE>
                            -dbsnmpPassword <DBSNMP user password>
                            -sysmanPassword <SYSMAN user password>
                            [-hostUserName <Host user name for EM backup job>
                             -hostUserPassword <Host user password for EM backup job>
                             -backupSchedule <Daily backup schedule in the form of hh:mm>]
                            [-smtpServer <Outgoing mail (SMTP) server for email notifications>
                             -emailAddress <Email address for email notifications>]
                            [-centralAgent <Enterprise Manager central agent location>]]
                    [-datafileDestination <destination directory for all database files> |  -datafileNames <a text file cont
    aining database objects such as controlfiles, tablespaces, redo log files and spfile to their corresponding raw device f
    ile names mappings in name=value format.>]
                    [-recoveryAreaDestination <destination directory for all recovery files>]
                    [-datafileJarLocation  <location of the data file jar, used only for clone database creation>]
                    [-storageType < FS | ASM | RAW>
                            [-diskList    <list of disks to be used by ASM>
    [                       -diskGroupName    <disk group name to be used by ASM>
                            -redundancy    <HIGH|NORMAL|EXTERNAL>
                            -diskString    <disk discovery path to be used by ASM>
                            -asmPassword    <SYS password for ASM instance>]]
                    [-characterSet <character set for the database>]
                    [-nationalCharacterSet  <national character set for the database>]
                    [-registerWithDirService <true | false>
                            -dirServiceUserName    <user name for directory service>
                            -dirServicePassword    <password for directory service >
                            -walletPassword    <password for database wallet >]
                    [-listeners  <list of listeners to configure the database with>]
                    [-variablesFile   <file name for the variable-value pair for variables in the template>]]
                    [-variables  <comma seperated list of name=value pairs>]
                    [-initParams <comma seperated list of name=value pairs>]
                    [-memoryPercentage <percentage of physical memory for Oracle>
                            [-databaseType <MULTIPURPOSE|DATA_WAREHOUSING|OLTP>]]~ Madrid.

  • DBCA in silent mode gives "template does not exist" error

    We successfully created a database using the DBCA in silent mode like this:
    dbca -silent -responseFile dbca.rspThen, attempting to create a second database on the same machine with a slightly different response file, we get the following error:
    dbca -silent -responseFile dbca.rsp2
    Template General Purpose does not exist. Please specify an existing template for database creation.The "General Purpose" template was used in the original database creation. It does exist. No logfile is created. Any ideas what could be causing this?

    We never did get to the bottom of the mysterious "template does not exist" error, but went with a solution that is better:
    1. we used the already-existing database to create a clone template:
    dbca -silent -createCloneTemplate -sourceDB OLD_SID -sysDBAUserName sys
       -sysDBAPassword XXXX -templateName old_sid_copy.dbc
      -maintainFileLocations true
      -datafileJarLocation /local/opt/oracle/product/10.2.0/assistants/dbca/templates (Note the use of the -maintainFileLocations switch)
    2. edited the template file, replacing all instances of OLD_SID with NEW_SID
    /local/opt/oracle/product/10.2.0/assistants/dbca/templates/old_sid_copy.dbc
    3. create the clone using the new template
    dbca -silent -createDatabase -templateName old_sid_copy.dbc
      -gdbname NEW_SID.MYHOST.COM -sid NEW_SID
      -datafileJarLocation /local/opt/oracle/product/10.2.0/assistants/dbca/templates
      -responseFile NO_VALUE -characterset WE8ISO8859P1

  • Error when creating Oracle12c PDB using DBCA response file in silent mode

    I am getting an Oracle dbca NullPointerException when trying to create a PDB (Pluggable Database) usingdbca response file in silent mode.
    I have a Oracle 12c CDB up and running, listener is also up, $ORACLE_HOME and $ORACLE_SID are also set correctly.
    After database install and creating CDB using response files, I am now trying to create a PDB using dbca response file. Contents of dbca.rsp -
    [GENERAL]
    RESPONSEFILE_VERSION = "12.1.0"
    OPERATION_TYPE = "createPluggableDatabase"
    [CREATEPLUGGABLEDATABASE]
    SOURCEDB = "orcl"
    PDBNAME = "dev"
    CREATEPDBFROM = "DEFAULT"
    PDBADMINUSERNAME = "oracle"
    PDBADMINPASSWORD = "oracle"
    CREATEUSERTABLESPACE = "true" 
    I tried following commands:
    dbca -silent -responseFile /<file path>/dbca.rsp dbca -silent -createPluggableDatabase -responseFile /<file path>/dbca.rsp
    Both give same error:
    ---- Begin output of /u01/app/oracle/product/12c/db_1/bin/dbca -silent -responseFile /<file path>/dbca.rsp
    STDOUT:
    STDERR: Exception in thread "main" java.lang.NullPointerException
    at oracle.sysman.assistants.dbca.backend.CommandLineArguments.processResponseFile(CommandLineArguments.java:6885)
    at oracle.sysman.assistants.dbca.backend.CommandLineArguments.process(CommandLineArguments.java:4544)
    at oracle.sysman.assistants.dbca.Dbca.execute(Dbca.java:110) at oracle.sysman.assistants.dbca.Dbca.main(Dbca.java:184)
    However when I pass exact same parameters as command line arguments, dbca works absolutely fine and PDB is created: Following command runs succefully.
    dbca -silent -createPluggableDatabase -sourceDB orcl -pdbName dev -createPDBFrom default -pdbAdminUserName oracle -pdbAdminPassword oracle -createUserTableSpace true
    My environment need installation using response files only. I had used a dbca response file with "createDatabase" option for CDB and it worked fine. Error is observed only when I run it with OPERATION_TYPE as "createPluggableDatabase".
    There is an option to create PDBs along with CDB creation when OPERATION_TYPE is "createDatabase". But Oracle does not give flexibility to name PDBs in this option. If I ask Oracle to create 3 PDBs, it will name them itself like PDB01, PDB02, PDB03 and so on. This doesn't work in my deployment because of applications compile time dependencies on specific PDB names.

    Yes, I am pointing to correct response file. I have two of these. One for "createDatabase" and another one for "createPluggableDatabase".
    While the first one works absolutely fine, the one which creates PDBs always gives error.
    I tried renaming the response file like dbca_dev.rsp for PDB install but same error message. I read in another forum that rename dbca.rsp is not a good idea.
    So I kept it as dbca.rsp but built it using PDB template.
    When I try after removing -silent, it tries to launch a UI installer. Since I am in Amazon AWS platform, my instance is CentOS based which doesn't support Xwindows display.
    I am stuck with -silent install only. When I try with -progressOnly, I get exactly same error.
    Also tried removing some parameters but still get exact same error message.
    Tried same trick with "createDatabase" response file, now I see parameters missing error message.
    It seems like Oracle doesn't like response file install for "createPluggableDatabase".

  • Changing 'SYS' password in 'Shared' mode ?

    Oracle 9.2/AIx5.3
    I have two Db DB1/DB2, both of these Db's are in 'Shared' remote login password mode. Now, I was under the impression that whilst in this mode, it was not possible to simply issue a command
    alter user SYS Identified by <NEW PASSWORD>;
    to change the password, if you did, it would result in an error message. Today I have tried, and it allowed me to change the 'SYS' password ? How is this the case. I’ve tried it on a 10g Db that’s also running in 'Shared' mode and got the following error message.
    ERROR at line 1:
    ORA-28046: Password change for SYS disallowed

    Metalink 452959.1 states you cannot change or add users to the passwordfile when remote_login_passwordfile='SHARED' and you need to set this to 'EXCLUSIVE'. I had to look this up and I found it simply by searching for the error number.
    Assuming you are not running 10.2.0.1 you could have easily looked up yourself.
    Also as Oracle is always changing, differences between 9.2 and 10gR1 or R2 are best verified by looking in the release notes for that version, providing the quickest answer easily.
    Sybrand Bakker
    Senior Oracle DBA

  • DBCA NOT RESPONDING WHILE CREATING THE DB IN SILENT MODE

    Hi, I am trying to create the database on target node using source copy
    I am executing the below command to create the database using DBCA
    $ $ORACLE_HOME/bin/dbca -silent -createDatabase \
    -templateName dm2_ni_dbca_seeded_template_src.dbc \
    -gdbName tgt.world \
    -sid tgt \
    -sysPassword *** \
    -systemPassword *** \
    -storageType ASM \
    -asmSysPassword *** -diskGroupName DS_DG1 -recoveryGroupName DS_DG_FLASH \
    -nodelist node2 \
    -initParams \
    db_create_online_log_dest_1="+DS_DG1",\
    db_create_online_log_dest_2="+DS_DG_FLASH"$
    BUT it is not responding and it just quits as above.
    the expected results is
    Copying database files
    1% complete
    3% complete
    9% complete
    15% complete
    21% complete
    27% complete
    30% complete
    Creating and starting Oracle instance
    32% complete
    36% complete
    40% complete
    44% complete
    45% complete
    48% complete
    50% complete
    Creating cluster database views
    52% complete
    70% complete
    Completing Database Creation
    73% complete
    76% complete
    79% complete
    88% complete
    97% complete
    100% complete
    Look at the log file "/u01/oracle/product/cfgtoollogs/dbca/tgt/tgt.log" for further details.
    I am using the database version 11.1.0.7 and creating on AIX OS
    Please suggest...
    Edited by: user13009800 on Feb 20, 2013 12:27 PM

    user13009800 wrote:
    The Operating system I am using is AIX
    and the database version is 11.1.0.7
    I didnot find any recent logfiles (at the time of running create database) in the location($ORACLE_HOME/cfgtoollogs/dbca) with tgt.logYou have a mystery & we have no clues from you.
    When was the last time you successfully manually ran dbca?
    What is different between then & now?
    Does this system meet all the prerequisites as stated in the Installation Guide?

  • Upgrade Database from 10.2.0.5.0 to 11.2.0.3.0 in Silent Mode

    Hello there,
    Previously, I had posted a thread on how to upgrade database from 10.2.0.5.0 to 11.2.0.3.0 through the wizards provided (GUI-based) and had successfully upgraded the database. Now, I am attempting to upgrade the database from 10.2.0.5.0 to 11.2.0.3.0 once more but this time, in silent mode (console-based). Unfortunately, I am lack of knowledge regarding the installation of the software and upgrading the database in silent mode.
    I managed to figure out this much so far:
    1 . Traverse through the installation directory to the directory shown below:
           11.2.0.3 > Extracted > database > response
    2 . Fill up the blanks of db_install.rsp file:
           oracle.install.option=INSTALL_DB_SWONLY
           SELECTED_LANGUAGES=en
           ORACLE_HOME=C:\Oracle\11g\DBSwLoc
           ORACLE_BASE=C:\Oracle\11g
           oracle.install.db.InstallEdition=EE
           oracle.install.db.EEOptionsSelection=false
           oracle.install.db.isRACOneInstall=false
           oracle.install.db.config.starterdb.memoryOption=true
           oracle.install.db.config.starterdb.installExampleSchemas=false
           oracle.install.db.config.starterdb.enableSecuritySettings=true
           oracle.install.db.config.starterdb.control=DB_CONTROL
           oracle.install.db.config.starterdb.automatedBackup.enable=false
           oracle.installer.autoupdates.option=SKIP_UPDATES
    3 . Save new db_install.rsp file to a new location (shorter path name without spacing will be best recommended)
    4 . Traverse through the installation directory to where the setup file is located.
    5 . Execute the following command:
           setup.exe -silent -waitforcompletion -responseFile C:\db_install_updated.rspThe result I received is as shown below:
    Starting Oracle Universal Installer...
    Preparing to launch Oracle Universal Installer from C:\Users\...\Temp\OraInstall2012-12-13_03-16-43PM.  Please wait ... [WARNING] - My Oracle Support Username/Email Address Not Specified
    [SEVERE] - Provide the My Oracle Support password.
    Please press Enter to exit...
    Previously in the db_install_updated.rsp response file, I had set autoupdate option to SKIP_UPDATES but why does it still prompt me for the Oracle Support account?
    Edited by: Maxwell T on Dec 13, 2012 4:05 PM

    After running the command below to upgrade the current database (Oracle 10.2.0.5.0):
    dbua -silent -sid DB01 -oracleHome C:\Oracle\10g\DBSwLoc -oracleBase C:\Oracle\10g -diagnosticDest C:\Oracle\11g -sysDBAUserName sys -sysDBAPassword password -autoextendFiles -upgradeTimezone -commonFileLocation C:\Oracle\11g\DBSwLoc\oradata\database -recompile_invalid_objects true -degree_of_parallelism 7 -dbsnmpPassword DefaultPassword1 -sysmanPassword DefaultPassword1 This is the result:
    Oracle recommends gathering dictionary statistics prior to upgrading the database.  Refer to the Upgrade Guide for Performing Pre Upgrade
    UPGRADE_PROGRESS : 0%
    UPGRADE_PROGRESS : 4%
    Upgrading Oracle Server
    UPGRADE_PROGRESS : 5%
    UPGRADE_PROGRESS : 6%
    UPGRADE_PROGRESS : 7%
    UPGRADE_PROGRESS : 8%
    UPGRADE_PROGRESS : 9%
    UPGRADE_PROGRESS : 10%
    UPGRADE_PROGRESS : 11%
    UPGRADE_PROGRESS : 12%
    UPGRADE_PROGRESS : 13%
    UPGRADE_PROGRESS : 14%
    UPGRADE_PROGRESS : 15%
    UPGRADE_PROGRESS : 16%
    UPGRADE_PROGRESS : 17%
    UPGRADE_PROGRESS : 18%
    UPGRADE_PROGRESS : 19%
    UPGRADE_PROGRESS : 20%
    UPGRADE_PROGRESS : 20%
    UPGRADE_PROGRESS : 21%
    UPGRADE_PROGRESS : 22%
    UPGRADE_PROGRESS : 23%
    UPGRADE_PROGRESS : 24%
    UPGRADE_PROGRESS : 25%
    UPGRADE_PROGRESS : 26%
    UPGRADE_PROGRESS : 27%
    UPGRADE_PROGRESS : 28%
    UPGRADE_PROGRESS : 29%
    UPGRADE_PROGRESS : 30%
    Collecting information from database
    UPGRADE_PROGRESS : 31%
    UPGRADE_PROGRESS : 32%
    UPGRADE_PROGRESS : 53%
    Modifying and starting Oracle instance
    UPGRADE_PROGRESS : 58%
    Copying database files
    UPGRADE_PROGRESS : 60%
    Switching database files
    UPGRADE_PROGRESS : 62%
    UPGRADE_PROGRESS : 63%
    ORA-01167: two files are the same file/group number or the same fileORA-00202: control file: 'C:\ORACLE\11G\FULLCLIENT\ORADATA\DATABASE\LV01\CTRLLV01.ORA'Any suggestions for this error?
    Thank you in advance.

  • Drop database in silent mode

    Please let me know how I can drop RAC database in silent mode using response file. Please reply me in clear steps. Thanks in advance.

    hi,
    dbca -deleteDatabase -sourceDB test -sysDBAUserName sys -sysDBAPassword testpassword
    You can issue "dbca -help" to see command line options available for DBCA.
    Salman

  • 10g: Clone database with DBCA silent option

    Hello community,
    I have tried now for several times to make a clone of my existing database with DBCA and "-silent" option. I could improve my progress in cloning but now I always stick in the following error:
    But first, what I have done so far:
    1. Created a clone template of my Database with command:
    dbca -silent -createCloneTemplate -sourceSID DBORIGIN -templateName myTest.dbc -datafileJarLocation /tmp/oratest
    2. Create the clone-database by using the template from (1.) with command:
    dbca -silent -createDatabase -templateName myTest.dbc -cloneTemplate -gdbname DBCLONE -sid DBCLONE -datafileJarLocation /tmp/oratest -datafileDestination /oradata -responseFile NO_VALUE -characterset AL32UTF8
    Then the progress of execution is shown, it ends with a link to a log file. In this log file I can see the following contents:
    ==============================
    Copying database files
    DBCA_PROGRESS : 1%
    DBCA_PROGRESS : 3%
    DBCA_PROGRESS : 11%
    DBCA_PROGRESS : 18%
    DBCA_PROGRESS : 26%
    DBCA_PROGRESS : 33%
    DBCA_PROGRESS : 37%
    Creating and starting Oracle instance
    ORA-01503: CREATE CONTROLFILE failed
    ORA-00200: control file could not be created
    ORA-00202: control file: '/oradata/DBCLONE/<OMF_CONTROL_0>'
    ORA-27040: file create error, unable to create file
    DBCA_PROGRESS : 38%
    ORA-00210: cannot open the specified control file
    ORA-06512: at "SYS.X$DBMS_BACKUP_RESTORE", line 4168
    ORA-06512: at line 1
    ORA-01507: database not mounted
    DBCA_PROGRESS : 40%
    DBCA_PROGRESS : 41%
    ORA-01503: CREATE CONTROLFILE failed
    ORA-00200: control file could not be created
    ORA-00202: control file: '/oradata/DBCLONE/<OMF_CONTROL_0>'
    ORA-27040: file create error, unable to create file
    ORA-01507: database not mounted
    DBCA_PROGRESS : 46%
    DBCA_PROGRESS : 47%
    ORA-01219: database not open: queries allowed on fixed tables/views only
    ORA-01507: database not mounted
    DBCA_PROGRESS : 52%
    ORA-01219: database not open: queries allowed on fixed tables/views only
    ORA-01507: database not mounted
    DBCA_PROGRESS : 53%
    DBCA_PROGRESS : 58%
    ORA-06550: line 1, column 7:
    PLS-00201: identifier 'DBMS_DATAPUMP_UTL.REPLACE_DEFAULT_DIR' must be declared
    and so on
    =====================================================
    I have no idea where the "<OMF_CONTROL_0>" comes from. It is nowhere included in my myTest.dbc-file. In my eyes, it looks like that DBCA tries to create the file exactly with this filename - and this fails on Solaris, sure...
    Here is, what I have in my template file "myTest.dbc" regarding the control files:
    =======================
    <ControlfileAttributes id="Controlfile">
    <maxDatafiles>100</maxDatafiles>
    <maxLogfiles>16</maxLogfiles>
    <maxLogMembers>3</maxLogMembers>
    <maxLogHistory>1</maxLogHistory>
    <maxInstances>8</maxInstances>
    <image name="o1_mf_2k1zmdmp_.ctl" filepath="{ORACLE_BASE}/oradata/{DB_UNIQUE_NAME}/"/>
    <image name="o1_mf_2k1zmdvo_.ctl" filepath="{ORACLE_BASE}/oradata/{DB_UNIQUE_NAME}/"/>
    </ControlfileAttributes>
    ====================================
    To be honest, it is the first time that i try to use the DBCA with all these "special" options, especially the silent mode.
    Does anyone have an idea what is going wrong in my case described here? What do I or could I change to come to a success clone?
    Maybe, you can tell me where I can find some kind of "how to" for creating a clone using the silent-option.
    Thanks a lot in advance for helping a newbie! ;-)
    Regards
    FireFighter

    Hello,
    finally I was successful in installing the clone of my DB. :-)
    You remember that I had problems with the control files and these looked very strange:
    control_files=("/oradata/DBCLONE/<OMF_CONTROL_0>","/oradata/DBCLONE/<OMF_CONTROL_1>")
    The hint to check the permission in "/oradata" was a good one. The permissions were right all the time, but Oracle's DBCA was not able to create the sub-directory "DBCLONE". When I created it manually before installing the clone, the installation worked fine!
    I'm still wondering about this because all other subdirectories were created automatically during running "dbca" (e.g. all subdirectories "DBCLONE" needed below the $ORACLE_BASE/admin/-directory like adump,bdump and so on...).
    And i'm wondering about the names of the control files:
    I expected that these strange OMF-names would be replaced by a "normal" file name. But "dbca" was able to create the files exactly with the names "<OMF_CONTROL_0>" and "<OMF_CONTROL_0>"...
    As I had understood so far from OMF-concept, isn't the idea that Oracle takes care of file-naming instead of myself? I mean it can't be that I have to enter the template for DBCA and manually enter the control files names...
    I'm still close to the thought that it be a bug that isn't documented until now. Maybe, when I have some time left I will open a service request at metalink.
    If you are interested in this I will keep you informed on this topic. The other way round I stay interested in your opions and hints for using "dbca" to make and install a DB-clone.
    Thanks again for you effort to help me as a rookie in Oracle. :-)
    Regards
    FireFighter

  • DBCA -silent

    Hi,
    I am suppose to write shell script which will create database(normal/ASM) based on the unput which i will provide to the shell script. Also i wanted do perform some different activity in shell script.
    I will creating database through DBCA in silent mode.
    And this will create database for 9i,10g,11g databases.
    Just wanted to know are there already available docs which i will refer to perform my task or does anyone can provide some guideline to do this.
    Thanks in advance,

    user13310502 wrote:
    Hi,
    I am suppose to write shell script which will create database(normal/ASM) based on the unput which i will provide to the shell script. Also i wanted do perform some different activity in shell script.
    I will creating database through DBCA in silent mode.
    And this will create database for 9i,10g,11g databases.
    Just wanted to know are there already available docs which i will refer to perform my task or does anyone can provide some guideline to do this.
    Thanks in advance,Create a new db on a system where the oracle software has already been installed? Or install the software. While the OUI will do create a db as part of the installation, they are actually two distinct concepts ... a point which a lot of people miss. Certainly they can both be scripted and silent, but to give you the best advice, we need to know exactly what it is you need to do.
    I very frequently create new databases on virtual machines on my laptop. For that (db creation - not software installation) I did a one-time operation of using dbca to generate the scripts. Then I went through the scripts and changed all the hard-coded references to the SID to a tag like @ORACLE_SID@. Next I wrote an additional script that feeds a command line uses the unix 'sed' to change all occurances of '@ORACLE_SID@'
    #!/bin/sh
    touch 3-prep_for_db.tag
    #  prep_create_db
    #  purpose: this file creates ORACLE_SID specific directories
    #           needed to hold database creation and basic
    #           maintenance scrips.  It also uses sed to change
    #           a place-holder to the value of $ORACLE_SID
    #  usage:  Should be run by unix user 'oracle'.
    # - save the name of the current directory
    export initsetup=`pwd`
    #  ask user for the ORACLE_SID to be created
    echo -n "Enter value for ORACLE_SID: "
    read ans
    export ORACLE_SID=$ans
    # - create the necessary directories to get oradmin started
    mkdir -p $ORACLE_BASE/admin/$ORACLE_SID
    # - copy file templates to the admin directories - these include the scripts
    #    previously created with dbca, and containing "tag" values in place of
    #    hard coded SID
    cp -r ./templates/sidadmin/* $ORACLE_BASE/admin/$ORACLE_SID
    #  $ORACLE_BASE/admin/$ORACLE_SID/scripts specifically contains the
    #    CREATE DATABASE scripts genned from dbca
    cd $ORACLE_BASE/admin/$ORACLE_SID/scripts
    # two files need to have the ORACLE_SID in the file name,
    #  so here we rename them from a 'template' name ....
    mv orasid.sh $ORACLE_SID.sh
    mv orasid.sql $ORACLE_SID.sql
    # - edit the template files with the real ORACLE_SID
    cd ..
    find . -type f -exec sed -i -e "s/@orasid@/${ORACLE_SID}/g" {} \;
    # - set up tnsnames.ora
    cd $initsetup
    tnsnms=$ORACLE_HOME/network/admin/tnsnames.ora
    cp -p $tnsnms $tnsnms.`date +%y%j%H%M%S` 2>/dev/null
    cat ./templates/tnsnames.ora >> $tnsnms
    sed -i -e "s/@orasid@/${ORACLE_SID}/g" $tnsnms
    orahost=`uname -n`
    sed -i -e "s/@orahost@/${orahost}/g" $tnsnms
    # - add entry to oratab and start the listener
    echo "${ORACLE_SID}:${ORACLE_HOME}:Y" >> /etc/oratab
    lsnrctl start
    echo "Enter password for root: "
    su root -c 'touch /var/lock/subsys/dbora'

  • Error in installing 11g2 in silent mode - [SEVERE] - Email Address Not Spec

    I want to install Oracle 11g release 2 in silent mode on Redhat Linux 5.2. I use command /u01/app/ora_sw/11g2/database/runInstaller -silent -responseFile /u01/app/ora_sw/11g2/database/tdev_install.rspwhere tdev_install.rsp has entries oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v11_2_0
    oracle.install.option=UPGRADE_DB
    ORACLE_HOSTNAME=cchdb.thinkstream.com
    UNIX_GROUP_NAME=oinstall
    INVENTORY_LOCATION=/u01/app/oraInventory
    SELECTED_LANGUAGES=en
    ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1
    ORACLE_BASE=/u01/app/oracle
    oracle.install.db.InstallEdition=EE
    oracle.install.db.isCustomInstall=true
    oracle.install.db.customComponents=oracle.server:11.2.0.1.0,oracle.sysman.ccr:10.2.7.0.0,oracle.xdk:11.2.0.1.0,oracle.rdbms.oci:11.2.0.1.0,oracle.network:11.2.0.1.0,oracle.network.listener:11.2.0.1.0,oracle.rdbms:11.2.0.1.0,oracle.options:11.2.0.1.0,oracle.rdbms.partitioning:11.2.0.1.0,oracle.oraolap:11.2.0.1.0,oracle.rdbms.dm:11.2.0.1.0,oracle.rdbms.dv:11.2.0.1.0,oracle.rdbms.lbac:11.2.0.1.0,oracle.rdbms.rat:11.2.0.1.0
    oracle.install.db.DBA_GROUP=dba
    oracle.install.db.CLUSTER_NODES=
    oracle.install.db.config.starterdb.type=TRANSACTION_PROCESSING
    oracle.install.db.config.starterdb.globalDBName=tdev112.localdomain
    oracle.install.db.config.starterdb.SID=tdev112
    oracle.install.db.config.starterdb.characterSet=AL32UTF8
    oracle.install.db.config.starterdb.memoryOption=true
    oracle.install.db.config.starterdb.memoryLimit=3200
    oracle.install.db.config.starterdb.installExampleSchemas=false
    oracle.install.db.config.starterdb.enableSecuritySettings=true
    oracle.install.db.config.starterdb.password.ALL=
    oracle.install.db.config.starterdb.control=DB_CONTROL
    oracle.install.db.config.starterdb.storageType=FILE_SYSTEM_STORAGE
    oracle.install.db.config.starterdb.fileSystemStorage.dataLocation=/app/oracle/oradata
    DECLINE_SECURITY_UPDATES=true
    oracle.install.db.config.starterdb.dbcontrol.enableEmailNotification=true
    oracle.install.db.config.starterdb.dbcontrol.emailAddress=glu@thinkstream.com
    oracle.install.db.config.starterdb.dbcontrol.SMTPServer=earth.thinkstream.comI got error in a couple of seconds Checking Temp space: must be greater than 120 MB.   Actual 2451 MB    Passed
    Checking swap space: must be greater than 150 MB.   Actual 1890 MB    Passed
    Preparing to launch Oracle Universal Installer from /tmp/OraInstall2010-01-08_05-20-03PM.
    Please wait ...[oracle@cchdb database]$ [SEVERE] - Email Address Not Specified
    I removed the last 3 entries involving notification email, but got the same error.
    What email address I need to provide and where I should specify it ?

    Finally figured this one out.
    It happens when oracle.install.db.config.starterdb.type is set to TRANSACTION_PROCESSING.
    Apparently "TRANSACTION_PROCESSING" and "GENERAL_PURPOSE/TRANSACTION_PROCESSING" are not valid types, even though the response template file and the response file generated via OUI list the following:
    Response template file included in the database package:
    +#------------------------------------------------------------------------------+
    +# Specify the type of database to create.+
    +# It can be one of the following:+
    +# - GENERAL_PURPOSE/TRANSACTION_PROCESSING+
    +# - DATA_WAREHOUSE+
    +#------------------------------------------------------------------------------+
    Response file generated by OUI during an interactive install:
    +#-------------------------------------------------------------------------------+
    +# One of the following+
    +# - GENERAL_PURPOSE+
    +# - TRANSACTION_PROCESSING+
    +# - DATAWAREHOUSE+
    +#-------------------------------------------------------------------------------+
    In order to install in silent mode I used the following settings:
    oracle.install.db.config.starterdb.type=GENERAL_PURPOSE
    oracle.install.db.config.starterdb.dbcontrol.enableEmailNotification=false
    oracle.install.db.config.starterdb.dbcontrol.emailAddress=
    oracle.install.db.config.starterdb.dbcontrol.SMTPServer=
    MYORACLESUPPORT_USERNAME=
    MYORACLESUPPORT_PASSWORD=
    SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
    DECLINE_SECURITY_UPDATES=true

  • Silent Mode Login in 11.2.0.1

    Hi All,
    Why is it that I am prompted the following when logging in using sqlplus in silent mode as sqlplus -S
    oracle@tkdp2datdbc28:~> sqlplus -S
    <username>
    Enter password:
    Silent mode should not prompting me with the phrase "Enter Password" if I am not wrong. 11.1.0.7 and earlier versions does not bring up this prompt at all.
    Is this a Bug or something in 11.2.0.1?
    Thanks,
    Anand
    Edited by: Anand on Apr 6, 2011 2:48 AM

    The -s parameter works only if using it together with a script.
    If you run sqlplus in "manual" mode, the -s is ignored.
    I mean you want to enter something, therefore it can not be silent.
    directly from the docs (10g):
    SILENT Option
    -S[ILENT]
    Suppresses all SQL*Plus information and prompt messages, including the command prompt, the echoing of commands, and the banner normally displayed when you start SQL*Plus. If you omit username or password, SQL*Plus prompts for them, but the prompts are not visible! <font color="red">Use SILENT to invoke SQL*Plus within another program so that the use of SQL*Plus is invisible to the user.</font>
    SILENT is a useful mode for creating reports for the web using the SQLPLUS -MARKUP command inside a CGI script or operating system script. The SQL*Plus banner and prompts are suppressed and do not appear in reports created using the SILENT option.Edited by: Sven W. on Apr 6, 2011 4:09 PM

  • How can I do to install Patch and RDBMS using SILENT mode in a Pentium 4 ?

    I was installing the Oracle 8.1.6.0.0 in remote machines using a SILENT mode normally. But now, I`m having a problem with the Pentium 4. I need to apply a patch because of the bug number 1507768. And, after apply the patch, I don't get to install using the same response file (in a SILENT mode). How can I do to install the patch and the RDBMS using a SILENT mode in a Pentium 4?

    I've created a new domain with this command:
    $ asadmin create-domain adminport 18000 user admin dmRemineTest
    I've installed the serviceWindows with this script:
    SETLOCAL
    SET I=C:\Sun\SDK
    c:\windows\system32\sc.exe create JCAPS6U1_dmRemineTest binPath= "%I%\lib\appservService.exe \"%I%\bin\asadmin.bat start-domain dmRemineTest\" \"%I%\bin\asadmin.bat stop-domain dmRemineTest\"" start= auto DisplayName= "JCAPS6U1_dmRemineTest"
    pause
    ENDLOCAL
    like the one suggest me in this forum, and thanks for it but now i have an other problem. I've started the domain dmRemineTest and it is running:
    asadmin> list-domains
    dmRemineTest running
    domain1 not running
    Command list-domains executed successfully.
    I'm proving to access to eManager at link: http://intaliodevsrv:15000/eManager/Welcome.do
    inserting this informations required:
    Server Type: Sun Java System Application Server Domain (9.1)
    Host Name: localhost
    HTTP Administration Port: 18000
    User Name: admin
    Password: adminadmin
    I insert into HTTP Administration Port 18000 from here:
    <http-listener acceptor-threads="1" address="0.0.0.0" blocking-enabled="false" default-virtual-server="__asadmin" enabled="true" family="inet" id="admin-listener" port="18000" security-enabled="false" server-name="" xpowered-by="true"/>
    When I click on Connect to Server, eManager response with this message:
    Connection Failed. Please check the following:
    - Server Type is correct.
    - Server is running.
    - Hostname and Port number(s) are correct.
    - Server SSL configuration.
    How can I solve the problem?

  • Add a machine to Managed Server using silent mode script in wls12c (x64)

    Hi,
    I am Kanakaraju. I am new to this silent installation of weblogic server and domain creation. my requirement while creating domain with production mode is,
    I need to add followings to the domain.
    1. Data source
    2. JMSServer
    3. ConnectionFactory
    4. JMSModule
    5. Queue
    6. Machine which can be assigned to Managed Server.
    7. subdeployment
    I can add only first 3 (Data source, JMSManager, Connection factory), but can't add remaining.
    when i use "+create JMSQueue "PfPerformanceProfileQueue" as queue;+", it is throwing exception like JMSQueue is not found.
    Can anybody please help me creating the script to add these?
    Following is my Silent mode script
    read template from "C:\Oracle\Weblogic12\wlserver_12.1\common\templates\domains\wls.jar";
    set CreateStartMenu "false";
    set JavaHome "C:\bea10_3_3\jrockit_160_17_R28.0.0-679";
    set ServerStartMode "prod";
    find Server "AdminServer" as AdminServer;
    set AdminServer.ListenAddress "";
    set AdminServer.ListenPort "7003";
    set AdminServer.SSL.Enabled "true";
    set AdminServer.SSL.ListenPort "7002";
    //We can directly create a new managed server.
    create Server "ManagedServer_1" as ManagedServer_1;
    set ManagedServer_1.ListenAddress "";
    set ManagedServer_1.ListenPort "7001";
    set ManagedServer_1.SSL.Enabled "true";
    set ManagedServer_1.SSL.ListenPort "7002";
    //Create JDBC datasource and targeting it to cluster
    create JDBCConnectionPool "xxxxDSName" as xxxxxDSName;
    set MVestDSName.DriverName "oracle.jdbc.OracleDriver";
    set MVestDSName.URL "jdbc:oracle:thin:@(xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx)";
    set MVestDSName.Password "xxxxxxx";
    set MVestDSName.Properties "user=xxxxxxx_user";
    assign JDBCConnectionPool "*" to target "ManagedServer_1";
    //create JMS server
    create JMSServer "MVestJMSServer" as jmsserver;
    assign JMSServer "*" to target "ManagedServer_1";
    //create JMS queue, default subdeployment will be created and targeted. Not sure
    create JMSConnectionFactory "xxxxxConnectionFactory" as connectionFactory;
    set connectionFactory.JNDIName "jms/xxxxxConnectionFactory"; //JNDI name for Queue
    assign JMSConnectionFactory "*" to Target "ManagedServer_1"; //Target queue to JMS server
    //create JMS queue, default subdeployment will be created and targeted. Not sure
    //create JMSQueue "PfPerformanceProfileQueue" as queue;
    //set queue.JNDIName "jms/PfPerformanceProfileQueue"; //JNDI name for Queue
    //set queue.StoreEnabled "false";
    //set queue.JMSServer "JMSServer"; //Target queue to JMS server
    //use templates default weblogic user
    find User "weblogic" as u1;
    set u1.password "weblogic1";
    //create a new user
    create User "Admin" as u2;
    set u2.password "weblogic1";
    //assign User "Admin" to Group "Administators";
    write domain to "C:\Oracle\Weblogic12\user_projects\domains\silent-domain"; // The domain name will be "silent-domain"
    close template;
    Edited by: 998028 on 4 Apr, 2013 5:35 AM
    Edited by: 998028 on 9 Apr, 2013 6:28 AM

    Hi,
    I am Kanakaraju. I am new to this silent installation of weblogic server and domain creation. my requirement while creating domain with production mode is,
    I need to add followings to the domain.
    1. Data source
    2. JMSServer
    3. ConnectionFactory
    4. JMSModule
    5. Queue
    6. Machine which can be assigned to Managed Server.
    7. subdeployment
    I can add only first 3 (Data source, JMSManager, Connection factory), but can't add remaining.
    when i use "+create JMSQueue "PfPerformanceProfileQueue" as queue;+", it is throwing exception like JMSQueue is not found.
    Can anybody please help me creating the script to add these?
    Following is my Silent mode script
    read template from "C:\Oracle\Weblogic12\wlserver_12.1\common\templates\domains\wls.jar";
    set CreateStartMenu "false";
    set JavaHome "C:\bea10_3_3\jrockit_160_17_R28.0.0-679";
    set ServerStartMode "prod";
    find Server "AdminServer" as AdminServer;
    set AdminServer.ListenAddress "";
    set AdminServer.ListenPort "7003";
    set AdminServer.SSL.Enabled "true";
    set AdminServer.SSL.ListenPort "7002";
    //We can directly create a new managed server.
    create Server "ManagedServer_1" as ManagedServer_1;
    set ManagedServer_1.ListenAddress "";
    set ManagedServer_1.ListenPort "7001";
    set ManagedServer_1.SSL.Enabled "true";
    set ManagedServer_1.SSL.ListenPort "7002";
    //Create JDBC datasource and targeting it to cluster
    create JDBCConnectionPool "xxxxDSName" as xxxxxDSName;
    set MVestDSName.DriverName "oracle.jdbc.OracleDriver";
    set MVestDSName.URL "jdbc:oracle:thin:@(xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx)";
    set MVestDSName.Password "xxxxxxx";
    set MVestDSName.Properties "user=xxxxxxx_user";
    assign JDBCConnectionPool "*" to target "ManagedServer_1";
    //create JMS server
    create JMSServer "MVestJMSServer" as jmsserver;
    assign JMSServer "*" to target "ManagedServer_1";
    //create JMS queue, default subdeployment will be created and targeted. Not sure
    create JMSConnectionFactory "xxxxxConnectionFactory" as connectionFactory;
    set connectionFactory.JNDIName "jms/xxxxxConnectionFactory"; //JNDI name for Queue
    assign JMSConnectionFactory "*" to Target "ManagedServer_1"; //Target queue to JMS server
    //create JMS queue, default subdeployment will be created and targeted. Not sure
    //create JMSQueue "PfPerformanceProfileQueue" as queue;
    //set queue.JNDIName "jms/PfPerformanceProfileQueue"; //JNDI name for Queue
    //set queue.StoreEnabled "false";
    //set queue.JMSServer "JMSServer"; //Target queue to JMS server
    //use templates default weblogic user
    find User "weblogic" as u1;
    set u1.password "weblogic1";
    //create a new user
    create User "Admin" as u2;
    set u2.password "weblogic1";
    //assign User "Admin" to Group "Administators";
    write domain to "C:\Oracle\Weblogic12\user_projects\domains\silent-domain"; // The domain name will be "silent-domain"
    close template;
    Edited by: 998028 on 4 Apr, 2013 5:35 AM
    Edited by: 998028 on 9 Apr, 2013 6:28 AM

Maybe you are looking for