Creating Database with Script

Can any body guide me how to create DB with scripts, Here is the scripts
ls -ltrtotal 6952
-rw-r----- 1 oracle oinstall 7061504 Dec 4 11:17 tempControl.ctl
-rw-r----- 1 oracle oinstall 2057 Dec 4 11:17 rmanRestoreDatafiles.sql
-rwxr-xr-x 1 oracle oinstall 948 Dec 4 11:17 PSC01P1.sql
-rwxr-xr-x 1 oracle oinstall 645 Dec 4 11:17 PSC01P1.sh
-rw-r----- 1 oracle oinstall 682 Dec 4 11:17 postScripts.sql
-rw-r----- 1 oracle oinstall 2634 Dec 4 11:17 initPSC01PTemp.ora
-rw-r----- 1 oracle oinstall 2719 Dec 4 11:17 initPSC01PTempOMF.ora
-rw-r----- 1 oracle oinstall 2621 Dec 4 11:17 init.ora
-rw-r----- 1 oracle oinstall 185 Dec 4 11:17 CreateClustDBViews.sql
-rw-r----- 1 oracle oinstall 915 Dec 4 11:17 CloneRmanRestore.sql
-rw-r----- 1 oracle oinstall 1756 Dec 4 11:17 cloneDBCreation.sql
-rw-r----- 1 oracle oinstall 954 Dec 4 11:18 postDBCreation.sql

None of any script will help u. Followings are the steps to create manually database
Assume you have selected f drive for the same -
1. Choose drive with sufficient disk space
2. create folder (folder_name)
3. create bdump,cdump,oradata,pfile folder in (folder_name) folder
4. open notepad and create pfile as named "init_sidname.ora" with required parameters (check parameters in sample pfile or ask to resend
5. go to os prompt
6. type commands
oradim -new -sid init_sidname.ora -startmode m -pfile (path of init_sidname.ora file with filename)
orapwd file=f:\oracle\ora92\database\pwd_nameoffile.ora password=sysdba entries=3
create a sql script to create database with extention .sql
set oracle_sid=sid_name
sqlplus /nologsql>connect sys as sysdba
password : sysdba
sql> create spfile from pfile=(path of pfile)
(it will create spfile in database folder of ora92 folder)
sql> startup nomount
sql> execute catalog.sql and catproc.sql scripts
your database will be create and can be checked with select commands like
select * from dba_datafiles;
Rajesh thakur

Similar Messages

  • Script to Create databases with params to support dir location for data or log files

    Script to Create databases with params to support dir location for data or log files

    DECLARE @Query VARCHAR(MAX)=''
    DECLARE @DbName VARCHAR(400) = '<DBNAME>'
    DECLARE @DbFilePath VARCHAR(400) = '<Valid DataFilePath>'
    DECLARE @DBLogFilePath VARCHAR(400)='<Valid LogFile Path>'
    SET @Query = @Query + 'CREATE DATABASE '+@DbName +' ON PRIMARY '
    SET @Query = @Query + '( NAME = '''+@DbName +''', FILENAME = '''+@DbFilePath+@DbName +'.mdf'' , SIZE = 3072KB , MAXSIZE = UNLIMITED, FILEGROWTH = 1024KB ) '
    SET @Query = @Query + ' LOG ON '
    SET @Query = @Query + '( NAME = '''+@DbName +'_log'', FILENAME = '''+@DblogFilePath+@DbName +'_log.ldf'' , SIZE = 1024KB , MAXSIZE = 2048GB , FILEGROWTH = 10%)'
    print @query
    exec(@query)
    --Prashanth

  • Problem when creating Database with Database, OS and hardware Configuraiton

    Problem when creating Database:
    There are two problems, which I faced during creation of database. When creating database with Oracle Database Assistant. One when creating pre tuned database from CD. And second when creating customized database giving options your self.
    Problem # 1:
    When creating pre tuned database from CD. The process of creating Database is 90 % complete and is at step # 3 Initializing Database. It gives error ORA-03113: end-of-file on communication channel.
    I searched following oracle help for this problem.
    ORA-03113: end-of-file on communication channel
    Cause: An unexpected end-of-file was processed on the communication channel. The problem could not be handled by the Net8, two-task software. This message could occur if the shadow two-task process associated with a Net8 connect has terminated abnormally, or if there is a physical failure of the interprocess communication vehicle, that is, the network or server machine went down.
    Action: If this message occurs during a connection attempt, check the setup files for the appropriate Net8 driver and confirm Net8 software is correctly installed on the server. If the message occurs after a connection is well established, and the error is not due to a physical failure, check if a trace file was generated on the server at failure time. Existence of a trace file may suggest an Oracle internal error that requires the assistance of customer support.
    Conclusion:
    What I conceive from this problem and the help available is that, I have to install NET8 again. But I am not sure about the solution, please tell me whether I am rite or not.
    Problem # 2:
    When creating database with custom option. The process of creating Database is 2 % complete and is at step # 2 Creating Database Files. It gives error ORA-12571: TNS:packet writer failure.
    I searched following oracle help for this problem.
    ORA-12571: TNS:packet writer failure
    Cause: An error occurred during a data send.
    Action: Not normally visible to the user. For further details, turn on tracing and re-execute the operation. If error persists, contact Worldwide Customer Support.
    Conclusion:
    What I conceive from this problem and the help available is that, I have to install NET8 again. But I am not sure about the solution, please tell me whether I am rite or not.
    Software & Hardware Configuration are as follow:
    Software:
    Database
    Oracle 8.1.7.0.0 (Oracle8i)
    Operating System
    Microsoft Windows 2000
    5.00.2195
    Service Pack 2
    Hardware:
    x86 Family 6 Model 8 stepping
    10
    AT/AT COMPITABLE
    260,400 KB RAM

    user563502 wrote:
    I am working on Solaris 8. What is Alert_SID.log? where can I find it?
    ThanksFor the responsible of the upgrade of Oracle database, not even know what Alert log is?
    to be honest with you, this is not your work.

  • How to create database with ASM

    HI
    How to create database with ASM?
    I install vmware workstation on window XP .On virtual machine install Linux 5 enterprise (Oracle) install.
    I install oracle DB software only. Also make 3 disk for ASM .
    1 -- When I want to install oracle DB with ASM . In this process candidate disks not show . Why?
    How I can see disks ..
    so I simple install oracle DB software only.
    2 -- Now I want to create database with ASM by DBCA .
    What process I will follow ?
    Please guide me
    Thanks

    Hi
    Steps to create database with ASM.
    1.Install oracle binary with active CRS(For single node installation CRS is activated when you run root.sh) .
    2.Create disk without file ssytem.
    3.Assign disk to raw .
    4.Change owner and permission to raw devices.
    5.Configure ASM manually or USing DBCA.
    Manually ASM Configuration.
    a.Create initialization parameter file and password file.
    b.Mandatory parameter is "instance_type=asm" as per your need configure rest of parameter like db_cache_size,large_pool_size,processes,remote_login_passwordfile,shared_pool_size etc..
    c.To discover disk configure "asm_diskstring=/dev/raw/raw*"
    Using DBCA to configure ASM.
    1.In storage type section choose ASM.It will ask for password of sysdba in 10g.
    2.ASM configuration window will open -> here it create disk group -> it shows all available ASM candidate disk automatical -> choose normal redundancy,external redundancy or high redundancy.
    ASM disk also can be conbfigured with ASMLIB .
    If ASM disk is configured you can start asm instance in nomount state and query to v$asm_disk to see all candidate disk.V$asm_disk only shows disk which is configured in asm_diskstrings.
    Hope this will help U,
    Tinku

  • Problem to create database with RAC 10g with Oracle Standard Edition

    I install CRS (Cluster Ready Services), and then install Oracle 10g database. Also, I install patches 10.1.0.4. When I create database with ASM storage give me a error to create files database.
    Any idea?
    Thanks
    Edu Alcañiz

    You were right.
    http://download-uk.oracle.com/docs/html/B14203_05/intro.htm#sthref44
    under the section
    "1.3 Configuration Tasks for Oracle Clusterware and Oracle Real Application Clusters"
    "... If you use RAC on Oracle Database 10g Standard Edition, then you must use ASM."
    Thanks, problem solved.
    - Vegard

  • Manually creating DB with scripts question

    As mentioned in admin guide, these are the steps to manually creating DB
    Step 1: Decide on Your Instance Identifier (SID)
    Step 2: Establish the Database Administrator Authentication Method
    Step 3: Create the Initialization Parameter File
    Step 4: Connect to the Instance
    Step 5: Create a Server Parameter File (Recommended)
    Step 6: Start the Instance
    Step 7: Issue the CREATE DATABASE Statement
    I am not sure about step2, can somebody send me quick command what to do here, which are mentioned in
    http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14231/create.htm#i1008823

    C:\Documents and Settings\Ar>set ORACLE_SID=test1
    C:\Documents and Settings\Ar>orapwd FILE=test1.pwd
    PASSWORD=test ENTRIES=30
    = your password file should be named
    = %ORACLE_HOME%\database\orapwORACLE_SID.ora
    C:\Documents and Settings\Ar>sqlplus /nolog
    SQL*Plus: Release 9.2.0.1.0 - Production on Wed May 2
    10:59:01 2007
    Copyright (c) 1982, 2002, Oracle Corporation. All
    rights reserved.
    SQL> connect sys/test as sysdba;
    ERROR:
    ORA-12560: TNS:protocol adapter error
    = First, point to your instance, set the ORACLE_SID environment
    = variable from the OS:
    = set ORACLE_SID=YourInstanceName
    = Next, make sure you use proper authentication method.
    Now how can i run creat database scripts here???= Just before creating your database, in windows, you must first create the service, with the oradim command, this command creates the password file automatically:
    oradim -new -sid YourInstanceName -intpwd YourSYSDBAPassword -startmode A
    = Once you have been properly authenticated, and you had made sure everything is OK, issue your CREATE DATABASE command.
    = I suggest you to use the dbca to create the scripts, this is the easiest way to create the create database scripts, and the least prone to human error.

  • CREATE DATABASE with data file and log file in query pane

    Hi everyone, 
    After I ran the below code I got the following error message. Can someone help me fix this?
    Thanks
    CREATE DATABASE project
    ON
    (Name= 'project_dat',
    FILENAME ='C:\project.mdf',
    SIZE = 10,
    MAXSIZE = 100,
    FILEGROWTH = 5)
    LOG ON
    (NAME = project_log,
    FILENAME = 'C:\project.ldf',
    SIZE =40,
    MAXSIZE = 100,
    FILEGROWTH = 10);
    Msg 5123, Level 16, State 1, Line 1
    CREATE FILE encountered operating system error 5(Access is denied.) while attempting to open or create the physical file 'C:\project.mdf'.
    Msg 1802, Level 16, State 4, Line 1
    CREATE DATABASE failed. Some file names listed could not be created. Check related errors.
    skilo

    Hello ,
    Please go through by support site :
    Use SQL Server Enterprise Manager
    Note The instance of SQL Server Enterprise Manager that is included with SQL Server 7.0 does not support setting the default data directory and the default log directory. However, you can register your instance of SQL Server 7.0 in the instance
    of SQL Server Enterprise Manager that is included with SQL Server 2000, and you can then follow these steps to set the default data directory and the default log directory for your instance of SQL Server 7.0.
    Click Start, point to   Programs, point to
    Microsoft SQL Server, and then click Enterprise Manager.
    In SQL Server Enterprise Manager, right-click your instance of SQL Server, and then click  
    Properties.
    In the SQL Server Properties (Configure) - <Instance Name> dialog box, click the
    Database Settings tab.
    In the New database default location section, type a valid folder path in the
    Default data directory box and in the Default log directory box.
    Click OK.
    Stop your instance of SQL Server, and then restart your instance of SQL Server.
    Ahsan Kabir Please remember to click Mark as Answer and Vote as Helpful on posts that help you. This can be beneficial to other community members reading the thread. http://www.aktechforum.blogspot.com/

  • Can't Create Database with SJISYEN character set

    I am trying to create a new database in Oracle 10g using the SJISYEN character set. The summary page display in the Database Configuration wizard shows the following
    Character Sets
    Database Character Set JA16SJISYEN
    National Character Set AL16UTF16
    The database gets created successfully with no errors, but when I query the V$NLS_PARAMETERS view, the NLS_CHARACTERSET is reported as US7ASCII
    Should I be able to create a database with the SJISYEN character set with Oracle 10g?

    Can you please run the following SQL statement and see what you get:
    SQL>
    1 select * from nls_database_parameters
    2* where parameter like '%CHARACTERSET'

  • How to Configure SQLServer2008R2 to let Windows Authenticated Users Create Database with MCV4 Code First App

    Trying to Learn MVC code first with Vs2013 web express on windows 7 os computer. When code runs to create database get: An exception of type 'System.Data.SqlClient.SqlException' occurred in EntityFramework.dll but was not handled in user code
    Additional information: CREATE DATABASE permission denied in database 'master'.
    Have this problem with the 'OdeToFood' plurasight course as well with the
    'developing ASP.NET MvC 4 Web Applications Jump Start' MVA course.
    Re-installed sql2008r2 using window
    admin user and ran the project and get same message as when i run the project with the none admin user. 
    What are steps to allow database creation for admin user and none windows admin user?
    Daniel Howard

    David, thanks for the reply.
    I believe the problem may be something else because after adding the 
    user to 'sysadmin' and I still get the message
    Additional information: CREATE DATABASE permission denied in database 'master'.
    Perhaps I need to go to ASP.NET forum to ask the question.
    I will mark you answer as answer.
    Thanks again
    Daniel
    Daniel Howard

  • Creating databases with dbca templates after upgrades and patches

    I have a 10.2.0.1 base release Oracle Home. Over time it has been upgraded to 10.2.0.3 and quarterly security patches have been applied. Now I want to create a new database using a dbca (database configuration assistant) template.
    During the 10.2.0.3 install did the templates also upgraded to include all the 10.2.0.3 stuff? Or are they still back at 10.2.0.1?
    What about the quarterly CPU patches? Do they need to be applied to the new db after it is created?
    Thanks,
    Rob

    I opened a Service Request. Here is the official answer from Oracle support.
    QUESTION
    =========
    After applying the latest CPU(JAN2008CPU) I have created a new database using DBCA's seed template (General). Do I need to run the catcpu
    .sql on the newly created database? Are the seed templates already updated with
    the CPU?
    ANSWER
    =======
    No, as these templates are not containing the Oracle binaries that is updated by the CPU.
    Please let me know if you need further assistance regarding this issue and I will be glad to assist you further.
    Otherwise please close this SR from MetaLink.
    Thanks!
    Greetings from Oracle,
    Oracle Support Services

  • RAC: ocfs-option disabled when trying to create database with dbca.

    Hi everybody,
    I have a really weird problem running dbca in my 2-node RAC installation on Red Hat ES.
    The software version of both oracle clusterware and rdbms is 10.2.0.2.0, meaning the latest patchset has been applied.
    I have installed and configured ocfs, and 4 different ocfs-partition are neatly presented to the operating system. I can save files and browse the ocfs file system, everything seems to be working fine.
    Also, srvctl status nodeapps -n <nodename> shows that oracle clusterware is running nicely, all the components are up including the listener, which I used netca to configure.
    However, when trying to create a cluster database using dbca, the option to use ocfs is not enabled, e.g it is "grayed out" in the Oracle Universal installer. So is raw devices option. The only option left is the ASM, which is selectable in the OUI.
    In addition, I can indeed run scripts manually and create a single-instance database and use the ocfs-partitions for the datafiles, redo logs and archivelogs. No problems at all!
    Do any of you guys have the slightest clue what can be causing this behaviour? Of course I have raised an issue with Oracle Support, but while waiting for an update, it doesn't hurt trying the forum.
    I appreciate all suggestions, thanks for taking the time to read my posting.
    Best Regards,
    Vegard

    You were right.
    http://download-uk.oracle.com/docs/html/B14203_05/intro.htm#sthref44
    under the section
    "1.3 Configuration Tasks for Oracle Clusterware and Oracle Real Application Clusters"
    "... If you use RAC on Oracle Database 10g Standard Edition, then you must use ASM."
    Thanks, problem solved.
    - Vegard

  • Create class with script

    Is there any way to dynamically create a class in a Flex application with a script?  Basically what I want to do is loop over data from a database that defines the classes I need, and create them on-the-fly instead of creating them in .as files and recompiling.

    Class I doubt, but its attributes indeed u can create dynamically by making
    public dynamic class TestClass
         public function TestClass()
                this.attribute_1 = value...

  • Create database instance script

    Hello,
    Someone can give me a script to create a db instance please ?
    Thks

    Someone can give me a script to create a db instance please ?Why don't you use Database Configuration Assistant ? (dbca command on Linux/Unix).
    In addition to creating (or rather than creating) the database, you can ask DBCA to create scripts for you.

  • Problem creating database with SAP Netweaver 7 sp 12

    Hello all,
    I have retrieved a new license from the website.
    The problem that I now have is that when I try to create a table, I am prompted for an access key. I input the developer access key (29671482393151224771) and it doesn't work.
    Please, does anybody know how I can remedy this?
    Thanks.

    hi henry,
    you cannot modify the standard sap tables and if the prefix does not start with Y or Z..it will ask for access key ...so while creating a table add Y or Z to the table name...
    not only for table name but also for classess,programs,screens etc..
    thanks
    jaideep
    <b><REMOVED BY MODERATOR></b>
    plz close the thread if it is answered..
    Message was edited by:
            Alvaro Tejada Galindo

  • Create triangle with scripting

    Hi,
    does someone know how to create a triangle with (x1,y1)(x2,y2) and (x3,y3) positions?
    For a rectangle i found this:
    app.activeDocument.rectangles.add({geometricBounds:[0, 144 , 214, 500] } )
    But this is not working for a triangle?
    Please Help

    Or:
    create a rectangle and convert it to a triangle with:
    myRectangle.convertShape(ConvertShapeOptions.CONVERT_TO_TRIANGLE);
    Uwe

Maybe you are looking for

  • Itunes Help For Movies

    I'm a Canadian. And i just got this itunes thing. Got the itunes card but there is no movies yet on it?? Can anyone tell me how to get movies onto ipod?? Or how to get another version of itunes to get the movies?? Plz help! Thanks advance

  • Unknown error occured 1439

    i had synced all my tunes onto my new ipod classic, when i tried to sync further tunes a few days later i am told `appears to be corrupted´ also ùnknown error 1439´ i am being told, i have only purchased  my new ipod 2 months ago, i have downloaded t

  • Regarding exception handling in webdynpro

    Dear frds.. I am using webservice for webdynpro application.,,, when i call a particular method of webservice in webdynpro i get o/ps but when i give wrong outputs the webservice exception is shown in webdynpro at the bottom I dont wanna to display t

  • Opening in New Tab

    Since many of the new browsers allow for tabbed browsing, is there anyway to specify in DW when a link is selected that it open up the file in a "new tab." This is something that I just thought might be helpful... Of course, if there is something out

  • Problema chiusura improvvisa Illustrator cs6

    Mentre sto lavorando su illustrator cs6 improvvisamente mi si chiude e spunta questo report (ho notato che spesso accade quando mi sposto sul tavolo di lavoro tenendo premuto spazio e usando il mouse, ma essendo un'operazione che faccio spesso potreb