How to create the database and a tablespace?

Hello experts,

I want to create a database named influx as tablespace influx.

for this that I login under the sys account.

now, I'm trying to run the following command:


CREATE DATABASE WORKFLOWS
LOGFILE GROUP 1 ("G:\app\dhirender\oradata\INFLUX\redo01.log") SIZE 100 M,
GROUP 2 ("G:\app\dhirender\oradata\INFLUX\redo02.log") SIZE 100 M
GROUP 3 ("G:\app\dhirender\oradata\INFLUX\redo03.log") SIZE 100M
MAXLOGFILES 5
MAXLOGMEMBERS 5
MAXLOGHISTORY 1
MAXDATAFILES 100
DEFAULT TABLESPACE users
DATAFILE 'G:\app\dhirender\oradata\INFLUX\INFLUX01.dbf '.
SIZE 500M REUSE AUTOEXTEND ON MAXSIZE UNLIMITED

FOLLOWING ERROR IS COMING:

ORA-01501 datbase remote.

database ORA-01100 already mount

also help me create tablespace.

Please help me.

Thank you

Yoann

Follow, you will get help!

http://docs.Oracle.com/CD/E11882_01/server.112/e26088/statements_5004.htm

http://docs.Oracle.com/CD/E11882_01/server.112/e26088/statements_7003.htm

https://forums.Oracle.com/thread/2481617

https://forums.Oracle.com/thread/661075

See you soon,.

Manik.

Tags: Database

Similar Questions

  • How to start the database and servers after the installation of the Webcenter JSK Portal

    Hello

    I finally installed the portal WebCenter using JSK, after it turned off the machine, I don't know how to start the database or server, I need to set the environment variables? create the oracletab file? or is it a file .sh to start the database and servers?

    Any help will be great!

    Best regards!

    Thanks Françoise-Oracle for your response

    As you say, I need to go to /WCPortal_JSK_Linux.x 86-64/linux64, I found all the scripts that I needed to start or stop a server or database. But more especially if you run evertything, (I did) you just need to run the de./startup.sh script and wait, he'll run, but take some time.

    Best regards!

  • How to create the database using the command line?

    Hi all

    Win7
    10g or 11g

    I want to create a new database using a script.

    I set up my new SID and oracle_home.

    Then sqlplus / DBA.

    then I execute a common script...
    startup nomount;
    create database PRODB
           logfile group 1 ('z:\oradata\PRODB\redo01.log',
                            'z:\oradata\PRODB\redo01b.log') size 50M,
                   group 2 ('z:\oradata\PRODB\redo02.log',
                            'z:\oradata\PRODB\redo02b.log') size 50M,
                   group 3 ('z:\oradata\PRODB\redo03.log',
                            'z:\oradata\PRODB\redo03b.log') size 50M,
                   group 4 ('z:\oradata\PRODB\redo04.log',
                            'z:\oradata\PRODB\redo04b.log') size 50M
           character set AL32UTF8
           datafile 'z:\oradata\PRODB\sysPRODB.dbf' size 500M
           sysaux datafile 'z:\oradata\PRODB\auxPRODB.dbf' size 300M
           undo tablespace undo
                   datafile 'z:\oradata\PRODB\undoPRODB.dbf' size 100M
           default temporary tablespace temp
                   tempfile 'z:\oradata\PRODB\tempPRODB.dbf' size 150M;
    @/opt/app/oracle/product/10.2.0/db_1/rdbms/admin/catalog.sql;
    @/opt/app/oracle/product/10.2.0/db_1/rdbms/admin/catproc.sql;
    connect system/manager;
    @/opt/app/oracle/product/10.2.0/db_1/sqlplus/admin/pupbld.sql;
    exit;
    
    
    
    SQL> startup nomount;
    ORA-12560: TNS:protocol adapter error
    SQL> create database PRODB
      2         logfile group 1 ('z:\oradata\PRODB\redo01.log',
      3                          'z:\oradata\PRODB\redo01b.log') size 50M,
      4                 group 2 ('z:\oradata\PRODB\redo02.log',
      5                          'z:\oradata\PRODB\redo02b.log') size 50M,
      6                 group 3 ('z:\oradata\PRODB\redo03.log',
      7                          'z:\oradata\PRODB\redo03b.log') size 50M,
      8                 group 4 ('z:\oradata\PRODB\redo04.log',
      9                          'z:\oradata\PRODB\redo04b.log') size 50M
     10         character set AL32UTF8
     11         datafile 'z:\oradata\PRODB\sysPRODB.dbf' size 500M
     12         sysaux datafile 'z:\oradata\PRODB\auxPRODB.dbf' size 300M
     13         undo tablespace undo
     14                 datafile 'z:\oradata\PRODB\undoPRODB.dbf' size 100M
     15         default temporary tablespace temp
     16                 tempfile 'z:\oradata\PRODB\tempPRODB.dbf' size 150M;
    I always hit it

    SQL > startup nomount;
    ORA-12560: TNS:protocol adapter error

    But if I run it on Linux is good.


    Help, please...


    Thank you very much

    zxy

    yxes2013 wrote:

    I want to create a new database using a script.

    Suggestion. DBCA allows to generate the database model and use the option "+ Save as scripts + ' (no need to create the database).

    In the scripts directory, there will be a couple of shell and SQL scripts to create the database. Use them as your CLI model for the creation of a custom database. (I guess that DBCA works the same on Windows as it does on Linux).

    Another option, if you are using Oracle XE, is to copy ORACLE_HOME/bin/createdb.sh (probably a + .cmd on Windows) script and change for use. If you manually add non-XE features to the script (such as the installation of the Java virtual machine) If you want a database of SE or EE. (whereby DBCA scripts are a better answer).

  • How to create the database links

    Hello

    We have two databases on two servers differenet and we want both of the databases to be synchronized and application runs only on a single server.

    It is possible through links DB if yes then how.

    If a better solution than DB links is pl tell.

    Hello

    Edit the tnsmaes.ora file and add the entry to the database and verify the connection using tnsping .if connection is ok and then create a database link in oracle

    CREATE DATABASE LINK link_name - name of the link
    CONNECT username - user name
    IDENTIFIED BY password - password of the user
    With the HELP of "Database_sid" - name of the database

    Created database link

    Select * from owner.table_name @ link_name

  • How to create the database of integrated security

    Hello
    I should create a database and in the next step, install oraclefailsafe to use another server to pass if the first crash. Then I created the SERVER1 database (with all the files on a shared file system).

    Now how can we establish the 'same' database on SERVER2?

    Thank you.

    I'm reading: Oracle® Fail Safe
    Concepts and Administration Guide
    Version 3.3.3 for Windows
    Reference No.. B12070-01
    December

    But do not see the answer to my question.
    Thank you.

    Please tell me if my question is clear?

    http://download.Oracle.com/docs/CD/E10736_01/doc/install.341/e10720/ofsman.htm

    Hope that you will help, as far as failsafe is concerned, you must install the oracle software on the servers participating in the cluster and the database created in the common storage space. That the file password and init copied to servers. You must also create the service in the second server. Then, as mentioned above link to the needs of service created to monitor and start kick on the other node in the cluster.

  • How to create the database link between the production and the test server

    You will need to create a link between Test and prod DB access. We need only select access from user@prod to user1@test.

    Could someone please answer for example?




    Thank you
    sRII

    You will need to create a link between Test and prod DB access. We need only select access from user@prod to user1@test.

    Could someone please answer for example?

    If test for prod

    create public database link to_prod connect to the user identified by password using 'to_prod ';

    Check that to_prod is directed to your production database.

  • How to create the legend and graphic label using VBS

    Hello

    I scoured internet before that I resorted to my question here. I hope someone can answer my question.

    Using VBS, how can I create a legend of the channels used in the chart and the label of the axis in the chart? Thanks in advance!

    I managed to find a way to create labels...

    Call GraphObjOpen(D2AxisXObj(1))
            D2AxisXTxt = "@@ChnName(CurrChnNo)@@ [@@ChnDim(CurrChnNo)@@]" ' Defines the x-label
    Call GraphObjClose(D2AxisXObj(1))
    

    Now, to figure out how create the legend. If anyone can help me, it would be great.

    ... And now I feel like a fool outright.

    After scouring more, I managed to find what I need

    Call GraphObjOpen("2D-Axis1")
      '------------------- Swith legend on -------------------------------
      D2LEGDRAW        =1
    
      D2LEGTXTTYPE     ="Free text" ' "ChannelName" or other keywords
      D2LEGTXTFREE     ="My free legend"
    
    Call GraphObjClose("2D-Axis1")
    'redraw
    Call Picupdate()
    
  • How to create the database of video/photo thumbnails file

    I notice that there is a thumbnails db file in some of my folders containing video/photos while others do not.  Those who seem to have miniature views of video/photo pop up much faster than the others when we look at the extra large icons in windows Explorer.

    Is this faster thumbnail upload because the db file "thumbnails"?  If so how can I get this file created in all my photo and video files?

    Thank you.

    Hello

    Which popup you are referring to?

    Each time seen miniature is enabled or has been enabled in Microsoft Windows the hidden thumbs.db file is automatically created in the same directory than where thumbnails have been read. This file contains the information required by Windows to display thumbnails for each of the icons and will be placed in each model file are read. Thumbs.DB looks a lot like its name. It stores the graphics, the film and some document files, and then generates an overview of the content of file using a cache of thumbnails. This file can be deleted safely from any directory, however, it will be automatically recreated if thumbnail display is always on and you open this directory again. Thus, it is not related to upload faster thumbnail.

    Let us know if you have other questions related to the issue. We would be happy to help you.

  • How to export the database and import the database using sql developer

    Hello

    I need to export the database to a server and import it on another server db using the export function of database under the Tools menu in SQLl developer. How to import it? This is for Oracle database 10g.

    Thank you

    Hello

    I think it generates the file .sql containing all the objects that you are exported. Then you can simply open the target database file and run as a script. Also, there is another forum for sqldeveloper related issues.

    Concerning

  • How to monitor the database and listener using grep

    Hi all

    This may sound simple, but I need to know.

    How do you analyze 2 processes and database listener using ps - ef | grep pid.

    I tried now
    [oradb04@dbserver ~]$ ps -ef|grep lsnr
    oradb03   7044     1  0  2009 ?        00:03:53 /oracle/fdqmdb/10.2.0/bin/tnslsnr FDQM -inherit
    oradb05  13504     1  0  2009 ?        00:00:15 /oracle/fdqmsitdb/10.2.0/bin/tnslsnr FDQMSIT -inherit
    oradb01  21066     1  0 Jan07 ?        00:11:27 /oracle/hypdevdb/10.2.0/bin/tnslsnr HYPDEV -inherit
    oradb04  23116     1  0  2009 ?        00:06:56 /oracle/hypsitdb/10.2.0/bin/tnslsnr HYPSIT -inherit
    oradb04  25605 24208  0 23:04 pts/0    00:00:00 grep lsnr
    [oradb04@dbserver ~]$ ps -ef|grep pmon
    oradb01   3589     1  0 03:21 ?        00:00:02 ora_pmon_HYP11DEV
    oradb03   4097     1  0  2009 ?        00:00:01 ora_pmon_FDQM
    oradb05  12831     1  0  2009 ?        00:00:04 ora_pmon_FDQMSIT
    oradb04  22671     1  0  2009 ?        00:00:37 ora_pmon_HYP11SIT
    oradb04  27517 24208  0 23:05 pts/0    00:00:00 grep pmon
    [oradb04@dbserver ~]$ ps -ef|grep lsnr
    oradb03   7044     1  0  2009 ?        00:03:53 /oracle/fdqmdb/10.2.0/bin/tnslsnr FDQM -inherit
    oradb05  13504     1  0  2009 ?        00:00:15 /oracle/fdqmsitdb/10.2.0/bin/tnslsnr FDQMSIT -inherit
    oradb01  21066     1  0 Jan07 ?        00:11:27 /oracle/hypdevdb/10.2.0/bin/tnslsnr HYPDEV -inherit
    oradb04  23116     1  0  2009 ?        00:06:56 /oracle/hypsitdb/10.2.0/bin/tnslsnr HYPSIT -inherit
    oradb04  27520 24208  0 23:05 pts/0    00:00:00 grep lsnr
    [oradb04@dbserver ~]$ ps -ef|grep 23116
    oradb04  23116     1  0  2009 ?        00:06:56 /oracle/hypsitdb/10.2.0/bin/tnslsnr HYPSIT -inherit
    oradb04  27661 24208  0 23:06 pts/0    00:00:00 grep 23116
    [oradb04@dbserver ~]$ ps -ef|grep 22671
    oradb04  22671     1  0  2009 ?        00:00:37 ora_pmon_HYP11SIT
    oradb04  28774 24208  0 23:06 pts/0    00:00:00 grep 22671
    [oradb04@dbserver ~]$ ps aux|grep 22671
    oradb04  22671  0.0  0.0 3295640 23896 ?       Ss    2009   0:37 ora_pmon_HYP11SIT
    oradb04  32317  0.0  0.0  61088   700 pts/0    S+   23:09   0:00 grep 22671
    [oradb04@dbserver ~]$ ps aux|grep 22671|grep 23116
    [oradb04@dbserver ~]$ ps aux|grep HYP|grep 22671|grep 23116
    My need is a single command to show the status of pid 22671 and 23116

    Kind regards
    Sam

    If you use Linux, you can try ps - fp :

    $ ps -fp 4738 18890
    UID        PID  PPID  C STIME TTY      STAT   TIME CMD
    oracle    4738     1  0  2009 ?        Ss     0:06 ora_pmon_DB102
    oracle   18890     1  0 Jan04 ?        Ssl    0:01 /oracle/app/oracle/product/10.2.0/dbhome_1/bin/tnslsnr LIS
    
  • How to create the database for setting up connection

    Hello
    I'm trying to pass on the values of the variables from a database instead of the usual .csv file. I need to connect to a database for this. When I try to connect to the Oracle XE (installed with the ATS) he invites me to put in the following:

    -SID
    -Service name
    -Alais

    I don't know what is the SID or Service name values.

    Concerning

    Hello

    -SID: XE
    -Name Service: even
    -Alais: what you want

    You must also put the host name somewhere (you can put localhost)

    JB

  • How to recover the database when archive some of the log file are deleted.

    I am facing a problem with the Oracle database, which is linked to archivelogs.
    Our development database is running in archivelog mode, but we don't have safeguards and have no recovery catalog.
    When the database was in running, disk got full, so some archivelogs were deleted manually.
    After that they have restarted the DB, and DB now not come. The errors are as follows:

    -------------------------------------------------------------------------------------------------------------


    SQL > startup
    ORACLE instance started.

    Total System Global Area 1444383504 bytes
    Bytes of size 731920 fixed
    486539264 variable size bytes
    956301312 of database buffers bytes
    Redo buffers 811008 bytes
    Mounted database.
    ORA-01589: must use RESETLOGS or NORESETLOGS option of database open


    SQL > alter database open resetlogs;
    ALTER database open resetlogs
    *
    ERROR on line 1:
    ORA-01113: file 1 needs media recovery
    ORA-01110: data file 1: ' / export/home/oracle/dev/ADVFRW/ADVFRW.system'


    SQL > recover datafile ' / export/home/oracle/dev/ADVFRW/ADVFRW.system'
    ORA-00283: cool cancelled due to errors
    ORA-01610: recovery using BACKUP CONTROLFILE option must be


    SQL > restore database using backup controlfile;
    ORA-00279: change 215548705 generated at 2008-09-02 17:06:10 needed for thread
    1
    ORA-00289: suggestion:
    /export/home/Oracle/dev/ADVFRW/ADVFRW.archivelog1/LOG_ADVFRW_1107_1.arc
    ORA-00280: change 215548705 thread 1 is in sequence #1107


    Specify the log: {< RET > = suggested |} Filename | AUTO | CANCEL}
    /export/home/Oracle/dev/ADVFRW/ADVFRW.archivelog1/LOG_ADVFRW_1107_1.arc
    ORA-00308: cannot open archived log
    ' / export/home/oracle/dev/ADVFRW/ADVFRW.archivelog1/LOG_ADVFRW_1107_1.ARC'
    ORA-27037: unable to get file status
    SVR4 error: 2: no such file or directory
    Additional information: 3


    Specify the log: {< RET > = suggested |} Filename | AUTO | CANCEL}
    Cancel
    Cancelled media recovery.
    SQL >

    -------------------------------------------------------------------------------------------------------------


    1 how to recover the database and put online

    Any help will be much appreciated.

    Regarding
    Hemant Joshi

    Published by: hem_Kec on 7 Sep 2008 09:07

    Hello

    It is actually quite easy.
    We knew that Oracle was looking for logsequence 1107. There is no archived log, it was deleted, or it has never generated. As you delete files, the 1st solution would be possible, BUT as there was only an instance crash so more old archived logs is not required for crash recovery. There is a need during the restoration of the old backup files, which is not our case.

    Thus, the missing log sequence has not been archived = > it is a redo log.
    To identify the required online redo log, we just to log query v$ as I suggest.

    Once the log identified file, we can recover it by specifying the redo log when you ask logsequence 1107.

    And it is on. We win! :)

  • How to create a database in the server-2 based on the game of RMAN backup in server-1

    Hi all

    I need help related to RMAN backup in the following scenario, my server-1 details are given below.

    * Operating system-Windows server 2012 R2 Standard Edition

    * Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production

    PL/SQL Release 11.2.0.1.0 - Production

    CORE 11.2.0.1.0 Production

    AMT for 64-bit Windows: Version 11.2.0.1.0 - Production

    NLSRTL Version 11.2.0.1.0 - Production,

    I have configured RMAN and level 0 and backup of level 1 with on the external HARD drive.

    all the RMAN backup is located in this drive external HARD only, same archivelog.

    My question is,

    How to create a database to Server-2 based on the RMAN backup I took in server-1.

    It's to help me create a server test and even if the server-1 crash, then I can create a database in the new server-2 with backup I took on the external HARD drive.

    Is it possible to achieve the same or not. Kindly suggest me or share a good Internet link or document and share your knowledge to achieve my need of stimulus.  This will really help me

    It does not matter whether you use ASM. The link above should guide you on how to change the file names of data before restoring if the location of the data file on server 2 will be different from server 1.

    Since you asked for 11g binding, it is here

    http://shivanandarao-Oracle.com/2012/04/28/duplicating-database-without-connecting-to-target-database-or-catalog-database-in-Oracle-11g/

    Kind regards

    Shivananda

  • How to check the database is created in the database of node 2 RAC

    Hi all

    Please allow questions maybe too obvious. I'm not familiar with RAC and ASM.
    virtual box (Windows 7)

    2 built nodes on Linux 6.1 Windows 64-bit virtual machine.
    11.2.0.3 software grid & database.
    One of DB name is demo
    Node1 (demo1)
    Node2 (demo2)


    1. I installed the 11.2.0.3 grid software and set up ASM with her. The installation seems to succeed.

    I am able to use view state using crsctl (see the log)

    2. I installed the database software and you want to create a database (demo) by default. the software from 95%, but not able to realized the dbca.

    I see that the asm_pmon is running, but not able to see the process of demo db. I think at this point, I don't have my demo of database has been created yet.

    Yes, question
    1: is the database created?
    2. I try to use dbca to create my demo db, but at the stage of creation of the 'copy of the database files' - she complaint ORA-03114: not connected to ORACLE
    ???? What? What oracle server trying to connect?
    3. If the database is created, how to start the database, in particular it has 2 instances (demo1 and demo2)?

    Please advise!

    Thank you very much!




    [grid@demo1 ~] $ crsctl stat res t
    --------------------------------------------------------------------------------
    TARGET STATE SERVER STATE_DETAILS NAME
    --------------------------------------------------------------------------------
    Local resources
    --------------------------------------------------------------------------------
    ORA. DATA.dg
    Demo1 ONLINE
    Demo2 online
    ORA. LISTENER.lsnr
    Demo1 ONLINE
    Demo2 online
    ORA.asm
    Demo1 Started online
    Demo2 Started ONLINE
    ORA. GSD
    In offline mode offline demo1
    Demo2 offline offline
    ORA.net1.Network
    Demo1 ONLINE
    Demo2 online
    ORA.ons
    Demo1 ONLINE
    Demo2 online
    --------------------------------------------------------------------------------
    Cluster resources
    --------------------------------------------------------------------------------
    ORA. LISTENER_SCAN1. LSNR
    1 demo1 ONLINE
    ORA.demo1.VIP
    1 demo1 ONLINE
    ORA.demo2.VIP
    1 demo2 online
    ORA. CVU
    1 demo1 ONLINE
    ORA. OC4J
    1 demo1 ONLINE
    ORA.scan1.VIP
    1 demo1 ONLINE

    Published by: 969880 on November 13, 2012 14:18

    1. What is sure, is that your database is not registered in OCR because there are missing elements in crsctl stat res t exit for database instances.
    2. default DBCA trying to restore an RMAN backup to create a database. DBCA probably also try to connect to the new instance of the database to run scripts.
    3. you must use:

    srvctl start database -d demo
    

    This should start all database instances.

    But first try to check the DBCA logs that should be under $ORACLE_HOME/cfgtoollogs/dbca and to correct related errors.

  • How to re-create the database from the Complutense University of MADRID

    «I was able to change the connection DB from one to the other by changing the settings through the ' system properties '.» However, there are a few objects (tables) database created during installation of the Complutense University of MADRID. is there anyway that I can go to the new database and database get UCM objects re-created without re-installation of the UCM? It seems some sql scripts in the database directory, but I don't know how to operate, the order and setting are not clear for me.

    Thank you

    Hello

    One thing you can do to recreate the default tables and columns is to run the script all.sql on the DB that is specific for your db. If you want to just recreate a replica of the image then extract the ddl from your current database instructions and put it in a sql script that run directly on the another instance of db. In this case make sure you change instance specifc details in the extracted ddl script and replace with the instance details latest as the table space name, the user name will execute it and like wise.

    Another way would be to use archiver to create the batch file export for tables and then imported to the target instance. The way out for this is to go to Archiver Applet - create new Archive - Export - Tables and here and include any tables that are there in the content server.

    Hope this helps

    Thank you
    Srinath

Maybe you are looking for

  • Plug-Ins for iMovie 10.1.1

    You know all the Web sites that have some real Plug-Ins for iMovie 10.1.1? This could be great if there are those that are free. Thank you very much.

  • Problem with the Broadcom BCM70010 on Satellite P200-123 video decoder

    I ran the Broadcom DiagTool.exe, getting several shortcomings, including the Version Compatibility Test. It's on a Satellite P200-123 part number: PSPB6E-02L028EN, Vista Home Premium 32-bit. Says Vista Driver version 2.14.4 Device Manager & "this dev

  • Satellite M40 startup / shutdown problems!

    For almost 3 months now, my Satellite M40 * don't power up * unless it is completely and absolutely * cold *. It freezes at the beginning. Every time I have shut down or restart my laptop, I have to wait about 25 minutes, so I can start it up again.

  • PlayMemories and Win 7 Home Premium

    Memories will not correctly work with windows 7 Home Premium with the camera DSC-W650, or trying to get souvenirs to open correctly. I found it is necessary to use the compatible feature of windows to find a compatible method of the use of memory wit

  • Satellite L650 without cold air down holes

    Hello. I need help please.I have this Toshiba Satellite L650 There's this event here, which seems to have stopped and have no holes in the plastic, is this normal, or was it a mistake when they put together and I should go back? I've seen other lapto