Automatically creating database using core java by runnin an application

hi evryone...
My question is how to create a database automatically usin core java by runnin an application i mean to say tat Is it possible to create a DSN
where we can directly create a database when we run a java application... plz... help me by solving dis query...
Thank 'U'

Your requirements are vague, but it sounds like you want an embedded database. Here are two:
http://db.apache.org/derby/derby_downloads.html
http://hsqldb.org/
You can't create a database directly using "core" java, unless you equal serializing with real dbs.
Edited by: Brynjar on Jan 26, 2008 4:49 AM

Similar Messages

  • How to create database using shell script

    hai
    how to create database using shell script

    The documentation details the steps to create a database manually. Another option is to use DBCA to create the scripts. DBCA will give you a complete set of scripts that will create a database.
    http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14231/create.htm#sthref220

  • Urgent please send code for this one ( write code by using core java)

    hi sir
    my question
    i am taking one square box .. and i divide that square in again four parts .. now i am placing one object in 1st box now i want to move that object to 2 box or third box... like that only if my object is in 1st box now i want to jump directly to 4th box
    i want that programing code the code will written BY USING CORE JAVA ONLY
    PLEASE HELP FOR THAT

    hi sirWhat if I'm a madam?
    i want that programing code Why did you post here asking for it?
    1) You are the Lead Architect at a world-class company and none of your staff of topnotch developers are able to handle this insidious task. You need to pull in outside resources for this noodler. You would use Dice, Monster, etc., but, by a freak coincidence, you happen to have had illicit trysts with the wives of several high-ranking executives in each of those companies, and as a result, have been blacklisted in perpetuity. You sought help here because you know that the denizens of this particular cyber-community are not only the best of the best of the best in the world of software development, we also happen--by yet another bizarre convergence of the unfahtomable Threads of Fate--to be the handsomest and best-endowed, dude-tube-wise. This is exactly what you need to distract your wife from your many concubines so you can continue with your plan for world dominance, which, of course, is but a small cog in the machina profunda that grinds unfailingly and inexorably toward your ultimate goal of the perfect tofu burrito.
    2) You are a lazy slimeball student who thinks it's acceptable to take credit for somebody else's work. You have no motivation, no ethics, and nothing to contribute to the society upon which you will become a bigger and more loathsome burden daily.

  • 9.0.1 create database using dbca fails

    Solaris 8, 64-bit SPARC, 528mb RAM, 2 SCSI 9gig. Development box with no other users/processes running except Sendmail.
    Installed Oracle 9.0.1 on machine from CDs with no problems, Attempting to create database using Database Configuration Assistant.
    Creating 'general purpose' database using dbca with generally default parameters. Progress bar gets to 50% done, "creating & starting instance" is checked in progress window.
    CPU utilization goes to 100% and nothing happens for hours. Eventually have to cancel dbca. No control files or init.ora created, (pfile directory is empty) there are a bunch of oracle processes left running which have to be killed.
    I've tried this several times, moved stuff to different drives and/or filesystems, no luck. Have 5 gig available on /u01 where the database should install, and 8 gig available on /u02 where the .dbf's go.
    If I had any hair left, I'd pull it out. Any help would be greatly appreciated.
    Thanks in advance!

    I am getting this same problem: The DBCA gets to the point where it is installing the database and starting the instance (it says 51% of the way through), and then it just sits there doing nothing. I noticed when I installed Oracle (9.2.0) when it got to the point of the configuration assistants, there was mention of a listener not being able to start and the installer assuming it was already started (the listener that is). When the DBCA started right after, it stalled out at 51%.
    I aleady had the Sun JDK installed, but am assuming this is not the issue since the install got that far. Can someone please advise a course of action so that I can trouble shoot this? I am very very new to this side of Oracle. Any assistance is greatly appreciated and will be passed along to others in turn.
    Thanks,
    BillR

  • How to find ip address of a PC using Core Java

    Hi guys,
    i would like to find out the ip address of currently running system i.e my PC using Core Java
    Hows that possible,....
    Code if any would be highly appreciable.....

    Deepak_A_L wrote:
    Hi guys,
    i would like to find out the ip address of currently running system i.e my PC using Core Java
    Hows that possible,....
    Code if any would be highly appreciable.....
    String ipAddress = "0.0.0.0";
         String hostName  = "NA";
         String connonicalName = "NA"
          try{
            ipAddress = InetAddress.getLocalHost().getHostAddress(); 
            hostName = InetAddress.getLocalHost().getHostName(); 
            connonicalName = InetAddress.getLocalHost().getCanonicalHostName();
          }catch(Exception exp){
               exp.printStackTrace();
          }Don't forget to import InetAddress Class from java.net package.
    Hope that might help :)
    REGARDS,
    RaHuL

  • How to create database using Java Application or GUI?

    As what mention above, I would like to ask how to create a simple database that can keep information and perform some basic functions like add , delete, search, modify?
    Thanks in advance

    Don't waste your time trying to create databases. There are many good, free, databases already available. MySQL and Postgresql are just a couple that come to mind.

  • Problem in create database use dbca in RAC

    i setup a two-nodes RAC, and use dbca to create db
    here is the output of dbca
    [oracle@rac1 ~]$ dbca -silent -responseFile /home/oracle/dbca.rsp
    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
    80% complete
    81% complete
    90% complete
    99% complete
    100% complete
    Look at the log file "/opt/ora/product/10.2.0/db_1/cfgtoollogs/dbca/mydb/mydb.log" for further details.
    and here is the log output:
    Failed to retrieve network listener resources required for the Real Application Clusters high
    availability extensions configurations on the following nodes: [rac1, rac2].
    Do you want listeners on port 1521 with prefix LISTENER to be created on nodes [rac1, rac2]
    automatically? If you would like to configure the listener with different properties, run NetCA
    before continuing.
    PRKS-1009 : Failed to start ASM instance "+ASM1" on node "rac1", [CRS-0215: Could not start
    resource 'ora.rac1.ASM1.asm'.]
    PRKS-1009 : Failed to start ASM instance "+ASM2" on node "rac2", [CRS-0215: Could not start
    resource 'ora.rac2.ASM2.asm'.]
    Could not mount the diskgroup on node: rac2. The ASM instance on node rac2 is not started.
    Could not mount the diskgroup on node: rac2. The ASM instance on node rac2 is not started.
    Copying database files
    DBCA_PROGRESS : 1%
    DBCA_PROGRESS : 3%
    DBCA_PROGRESS : 9%
    DBCA_PROGRESS : 15%
    DBCA_PROGRESS : 21%
    DBCA_PROGRESS : 27%
    DBCA_PROGRESS : 30%
    Creating and starting Oracle instance
    DBCA_PROGRESS : 32%
    DBCA_PROGRESS : 36%
    DBCA_PROGRESS : 40%
    DBCA_PROGRESS : 44%
    DBCA_PROGRESS : 45%
    DBCA_PROGRESS : 48%
    DBCA_PROGRESS : 50%
    Creating cluster database views
    DBCA_PROGRESS : 52%
    DBCA_PROGRESS : 70%
    Completing Database Creation
    Failed to start listeners on nodes "[rac1, rac2]" of cluster database "mydb", "CRS-1028: Dependency
    analysis failed because of:
    CRS-0223: Resource 'ora.rac2.LISTENER_RAC2.lsnr' has placement error.".
    DBCA_PROGRESS : 73%
    DBCA_PROGRESS : 76%
    DBCA_PROGRESS : 79%
    ORA-01078: failure in processing system parameters
    ORA-01078: failure in processing system parameters
    ORA-01565: error in identifying file '+ORADG/mydb/spfilemydb.ora'
    ORA-17503: ksfdopn:2 Failed to open file +ORADG/mydb/spfilemydb.ora
    ORA-15056: additional error message
    ORA-17503: ksfdopn:DGOpenFile05 Failed to open file +ORADG/mydb/spfilemydb.ora
    ORA-17503: ksfdopn:2 Failed to open file +ORADG/mydb/spfilemydb.ora
    ORA-15173: entry 'spfilemydb.ora' does not exist in directory 'mydb'
    ORA-06512: at line 4
    ORA-01034: ORACLE not available
    DBCA_PROGRESS : 80%
    ORA-01034: ORACLE not available
    ORA-01034: ORACLE not available
    ORA-01034: ORACLE not available
    DBCA_PROGRESS : 81%
    ORA-01034: ORACLE not available
    DBCA_PROGRESS : 90%
    Enterprise manager configuration failed due to the following error -
    Invalid username/password.
    Refer to the log file at /opt/ora/product/10.2.0/db_1/cfgtoollogs/dbca/mydb/emConfig.log for more
    details.
    You can retry configuring this database with Enterprise Manager later by manually running
    /opt/ora/product/10.2.0/db_1/bin/emca script.
    DBCA_PROGRESS : 99%
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    PRKP-1001 : Error starting instance mydb1 on node rac1
    CRS-1028: Dependency analysis failed because of:
    CRS-0223: Resource 'ora.mydb.mydb1.inst' has placement error.
    PRKP-1001 : Error starting instance mydb2 on node rac2
    CRS-1028: Dependency analysis failed because of:
    CRS-0223: Resource 'ora.mydb.mydb2.inst' has placement error.
    DBCA_PROGRESS : 100%
    Database creation complete. Check the logfiles at
    /opt/ora/product/10.2.0/db_1/cfgtoollogs/dbca/mydb for details.
    Database Information:
    Global Database Name:mydb
    System Identifier(SID) Prefix:mydb
    it should be run netca before running dbca?

    this time i run netca first,and then run dbca to configure the ASM,after that i run dbca to create database
    listener and asm instance is online,but when i create DB ,still have error
    Copying database files
    DBCA_PROGRESS : 1%
    DBCA_PROGRESS : 3%
    DBCA_PROGRESS : 9%
    DBCA_PROGRESS : 15%
    DBCA_PROGRESS : 21%
    DBCA_PROGRESS : 27%
    DBCA_PROGRESS : 30%
    Creating and starting Oracle instance
    DBCA_PROGRESS : 32%
    DBCA_PROGRESS : 36%
    DBCA_PROGRESS : 40%
    DBCA_PROGRESS : 44%
    DBCA_PROGRESS : 45%
    DBCA_PROGRESS : 48%
    DBCA_PROGRESS : 50%
    Creating cluster database views
    DBCA_PROGRESS : 52%
    DBCA_PROGRESS : 70%
    Completing Database Creation
    DBCA_PROGRESS : 73%
    DBCA_PROGRESS : 76%
    DBCA_PROGRESS : 79%
    ORA-01078: failure in processing system parameters
    ORA-01078: failure in processing system parameters
    ORA-01565: error in identifying file '+ORADG/mydb/spfilemydb.ora'
    ORA-17503: ksfdopn:2 Failed to open file +ORADG/mydb/spfilemydb.ora
    ORA-15056: additional error message
    ORA-17503: ksfdopn:DGOpenFile05 Failed to open file +ORADG/mydb/spfilemydb.ora
    ORA-17503: ksfdopn:2 Failed to open file +ORADG/mydb/spfilemydb.ora
    ORA-15173: entry 'spfilemydb.ora' does not exist in directory 'mydb'
    ORA-06512: at line 4
    ORA-01034: ORACLE not available
    DBCA_PROGRESS : 80%
    ORA-01034: ORACLE not available
    ORA-01034: ORACLE not available
    DBCA_PROGRESS : 89%
    DBCA_PROGRESS : 98%
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    PRKP-1001 : Error starting instance mydb1 on node rac1
    CRS-0215: Could not start resource 'ora.mydb.mydb1.inst'.
    PRKP-1001 : Error starting instance mydb2 on node rac2
    CRS-0215: Could not start resource 'ora.mydb.mydb2.inst'.
    DBCA_PROGRESS : 100%
    following info from my template file
    <MiscParams>
    <databaseType>MULTIPURPOSE</databaseType>
    <maxUserConn>20</maxUserConn>
    <percentageMemTOSGA>40</percentageMemTOSGA>
    <customSGA>false</customSGA>
    <archiveLogMode>false</archiveLogMode>
    <initParamFileName>+ORADG/admin/{DB_UNIQUE_NAME}/pfile/init.ora</initParamFileName>
    </MiscParams>
    <SPfile useSPFile="true">{ORACLE_HOME}/dbs/spfile{SID}.ora</SPfile>
    </InitParamAttributes>
    and dbca create +ORADG in /home/oracle dir (why??)
    [oracle@rac1 ~]$ ls +ORADG/admin/mydb/pfile/init.ora.6132011173958
    +ORADG/admin/mydb/pfile/init.ora.6132011173958
    Edited by: 859340 on 2011-7-12 下午7:25

  • Can't create database using ASM (SOLVED)

    Hi all
    I'm trying to use ASM for the first time, on Oracle 10.2.0.1 on Solaris x64.
    I have installed the ASM instance into /opt/oracle/asm/10.2.0 and created disk groups. I have cssd running OK. I am able to start and stop the ASM instance without problems, and I can select from v$asm_diskgroup to confirm that disks are mounted OK.
    I have then installed Oracle EE separately into /opt/oracle/server/10.2.0. I first did a software only install, and now I am trying to create a DB.
    The problems come when I try to use this ASM instance to host a new database. I first tried to use DBCA to create a new database, but on database creation I got the following errors:
    ORA-00200: control file could not be created
    ORA-00202: control file: '+DBLIVE1'
    ORA-17502: ksfdcre:4 Failed to create file +DBLIVE1
    ORA-15001: diskgroup "DBLIVE1" does not exist or is not mounted
    ORA-15055: Message 15055 not found; No message file for product=RDBMS, facility=ORA
    ORA-01031: insufficient privileges
    I then told DBCA just to create the DB creation scripts, and I tried manually running these with SQL*Plus.
    When doing it with SQL*PLus, I initially got the same error as shown above. But then something changed (sorry, not sure what), and now the error I get is:
    CREATE DATABASE "NEONREL1"
    ERROR at line 1:
    ORA-01501: CREATE DATABASE failed
    ORA-00349: failure obtaining block size for '+DBLIVE1'
    ORA-01031: insufficient privileges
    I've put some debug info below, showing me succesfully connecting to the ASM instance and then attempting to create the DB using the db creation scripts, showing the error at the end. You can see that the oracle OS user is able to connect fine to ASM, then I swithc ORACLE_SID and ORACLE_HOME to the EE install and try to create the DB, at which point it apparently can't connect to ASM any more.
    I've tried the DB creation many times, and in between attempts I completely empty $ORACLE_HOME/admin/<dbname> and delete the files related to the attempted install from $ORACLE_HOME/dbs/ . I've also stopping/starting ASM, rebooting, and I've done the install of ASM and EE a couple of times over in case I made any mistakes in my earlier attempts.
    Any help would be much appreciated!
    Tom
    ##### CHECKING ASM
    oracle@neonrcom-db1:~$ uname -a
    SunOS neonrcom-db1 5.10 Generic_127128-11 i86pc i386 i86pc
    # css is running
    oracle@neonrcom-db1:~$ ps -ef | grep css
    oracle 498 1 0 21:46:40 ? 0:01 /opt/oracle/asm/10.2.0/bin/ocssd.bin
    # listener is running in the ASM instance
    oracle@neonrcom-db1:~$ ps -ef | grep tnsl
    oracle 1332 1 0 21:49:59 ? 0:00 /opt/oracle/asm/10.2.0/bin/tnslsnr LISTENER -inherit
    # ASM is only entry in /var/opt/oracle/oratab
    oracle@neonrcom-db1:~$ grep -v "^#" /var/opt/oracle/oratab
    +ASM:/opt/oracle/asm/10.2.0:N
    # I can connect to ASM fine, and it has diskgroups mounted.
    oracle@neonrcom-db1:~$ export ORACLE_HOME=/opt/oracle/asm/10.2.0
    oracle@neonrcom-db1:~$ export ORACLE_SID='+ASM'
    oracle@neonrcom-db1:~$ sqlplus "sys as sysdba"
    SQL*Plus: Release 10.2.0.1.0 - Production on Mon Jul 21 20:53:10 2008
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Enter password:
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> set line 150
    SQL> select name, block_size, state, type, total_mb, free_mb from v$asm_diskgroup;
    NAME BLOCK_SIZE STATE TYPE TOTAL_MB FREE_MB
    DBARCH1 4096 MOUNTED EXTERN 2096856 2096784
    DBLIVE1 4096 MOUNTED EXTERN 4193904 4193812
    #### Contents of init.ora for new DB
    db_create_file_dest=+DBLIVE1
    db_recovery_file_dest=+DBARCH1
    db_recovery_file_dest_size=2147483648
    ##### DB INSTALLATION ATTEMPT
    oracle@neonrcom-db1:~$ export ORACLE_HOME=/opt/oracle/server/10.2.0
    oracle@neonrcom-db1:~$ export ORACLE_SID='NEONREL1'
    oracle@neonrcom-db1:~$ export PATH=$ORACLE_HOME/bin:$PATH
    oracle@neonrcom-db1:~$ /opt/oracle/server/10.2.0/admin/NEONREL1/scripts/NEONREL1.sh
    You should Add this entry in the /var/opt/oracle/oratab: NEONREL1:/opt/oracle/server/10.2.0:Y
    SQL*Plus: Release 10.2.0.1.0 - Production on Mon Jul 21 22:10:54 2008
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    specify a password for sys as parameter 1
    Enter value for 1: xxx
    specify a password for system as parameter 2
    Enter value for 2: xxx
    specify a password for sysman as parameter 3
    Enter value for 3: xxx
    specify a password for dbsnmp as parameter 4
    Enter value for 4: xxx
    specify ASM SYS user password as parameter 6
    Enter value for 6: xxx
    Connected to an idle instance.
    SQL> spool /opt/oracle/server/10.2.0/admin/NEONREL1/scripts/CreateDB.log
    SQL> startup nomount pfile="/opt/oracle/server/10.2.0/admin/NEONREL1/scripts/init.ora";
    ORACLE instance started.
    Total System Global Area 1.9294E+10 bytes
    Fixed Size 2054976 bytes
    Variable Size 2264925376 bytes
    Database Buffers 1.7012E+10 bytes
    Redo Buffers 14721024 bytes
    SQL> CREATE DATABASE "NEONREL1"
    2 MAXINSTANCES 8
    3 MAXLOGHISTORY 1
    4 MAXLOGFILES 16
    5 MAXLOGMEMBERS 3
    6 MAXDATAFILES 100
    7 DATAFILE SIZE 300M AUTOEXTEND ON NEXT 10240K MAXSIZE UNLIMITED
    8 EXTENT MANAGEMENT LOCAL
    9 SYSAUX DATAFILE SIZE 120M AUTOEXTEND ON NEXT 10240K MAXSIZE UNLIMITED
    10 SMALLFILE DEFAULT TEMPORARY TABLESPACE TEMP TEMPFILE SIZE 20M AUTOEXTEND ON NEXT 640K MAXSIZE UNLIMITED
    11 SMALLFILE UNDO TABLESPACE "UNDOTBS1" DATAFILE SIZE 200M AUTOEXTEND ON NEXT 5120K MAXSIZE UNLIMITED
    12 CHARACTER SET AL32UTF8
    13 NATIONAL CHARACTER SET UTF8
    14 LOGFILE GROUP 1 SIZE 51200K,
    15 GROUP 2 SIZE 51200K,
    16 GROUP 3 SIZE 51200K
    17 USER SYS IDENTIFIED BY "&&sysPassword" USER SYSTEM IDENTIFIED BY "&&systemPassword";
    CREATE DATABASE "NEONREL1"
    ERROR at line 1:
    ORA-01501: CREATE DATABASE failed
    ORA-00349: failure obtaining block size for '+DBLIVE1'
    ORA-01031: insufficient privileges
    Message was edited by:
    tjobbins

    Update: I've worked out the difference between the two sets of errors I get.
    The basic error is this:
    ORA-00200: control file could not be created
    ORA-00202: control file: '+DBLIVE1'
    ORA-17502: ksfdcre:4 Failed to create file +DBLIVE1
    ORA-15001: diskgroup "DBLIVE1" does not exist or is not mounted
    ORA-15055: Message 15055 not found; No message file for product=RDBMS, facility=ORA
    ORA-01031: insufficient privileges
    However if my init.ora contains the line:
    control_files=/opt/oracle/server/10.2.0/dbs/cntrlNEONREL1.dbf
    then I instead get the second error:
    CREATE DATABASE "NEONREL1"
    ERROR at line 1:
    ORA-01501: CREATE DATABASE failed
    ORA-00349: failure obtaining block size for '+DBLIVE1'
    ORA-01031: insufficient privileges
    So basically these must be the same error, just in the second case I'm not trying to put the control file on the ASM so it fails at a different point.
    But both errors must be because of the same cause, I suppose.

  • Creating webservice using webdynpro java calling bapi from r/3

    hi all,
    as i am new to this area can anyone provide me a guide to create a simple webservice using webdynpro java to call bapi's from r/3?
    i want to consume the created webservice on a .net client.
    Thanks in advance,
    Raghunandan

    You can use the SAP .NET Connector to do it.
    Download from [http://service.sap.com/connectors|http://service.sap.com/connectors].

  • Creating database using DBCA stuck at 85% for about 7minutes~

    when i create DB using DBCA , it stuck in 85% for a long time ,and the a waring appears
    it says :
    EM configuration failed due to the following error
    -error starting database control
    refer to the log file at emConfig.log for more details
    so i checked the log file,and i find this:
    Mar 10, 2009 5:02:50 AM oracle.sysman.emcp.util.PlatformInterface executeCommand
    CONFIG: Starting execution: /u01/app/oracle/oracle/product/10.2.0/db_1/bin/emctl start dbconsole
    Mar 10, 2009 5:09:56 AM oracle.sysman.emcp.util.PlatformInterface executeCommand
    CONFIG: Exit value of 1
    Mar 10, 2009 5:09:56 AM oracle.sysman.emcp.util.PlatformInterface executeCommand
    CONFIG: TZ set to US/Eastern
    Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
    Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
    http://myoracle.localhost.com:1158/em/console/aboutApplication
    Starting Oracle Enterprise Manager 10g Database Control ............................................................................
    ................. failed.
    starting emctl dbconsole takes about 7 minutes. and it still failed
    some guy say it might a bug ,and can fix it using a patch.
    in order to use the patch wizard ,i must login to the em. but i cant open it. and also , i dont have metalink account.
    also ,there is another error , when i use emctl start dbconsole ,
    it says an instance fo oem 10g Database Control is already running
    then i use emctl status dbconsole
    but it says EM daemon is not running .
    my os is RHEL 5.3
    and oracle version is Oracle Database 10g Release 2 (10.2.0.1.0) for Linux x86
    so i was totally confused....
    so ~ if possible give me a reply~ really appreciate~

    hello,
    You can just create database without EM dbconsole and later you can create EM repository manually. Now if you have already configured it and you don't want to repeat the process then you can do this
    To Create
    $ emca -config dbcontrol db -repos create
    To drop
    $ emca -deconfig dbcontrol db -repos drop
    To recreate
    $ emca -config dbcontrol db -repos recreateRegards
    Edited by: OrionNet on Mar 12, 2009 9:48 AM

  • Can use ASM only when creating database using dbca

    I have a problem. When i create a database using DBCA, i can only use ASM as the file sytem. why ?
    i just installed the 10gR2 with cluster and donno why i cannot use ocfs.
    Thanks.

    What were your reasons with going with OCFS rather than ASM?
    Thanks.

  • Creating database using command in SQL*plus

    Hi,
    Its not an urgent question.
    I'm learning Oracle DBA. I have installed Oracle 9.2 in my windows system. And I am trying to create a database using SQL command.
    OracleVersion : 9.2
    Operating System Windows XP
    CREATE DATABASE suri
    USER SYS identified by manager
    USER system identified by surendra
    LOGFILE GROUP 1 ('F:\Oracle\oradata\suri\redo01.log') SIZE 100M,
            GROUP 2 ('F:\Oracle\oradata\suri\redo02.log') SIZE 100M,
            GROUP 3 ('F:\Oracle\oradata\suri\redo03.log') SIZE 100M
       MAXLOGFILES 5
       MAXLOGMEMBERS 5
       MAXLOGHISTORY 1
       MAXDATAFILES 100
       MAXINSTANCES 1
       CHARACTER SET US7ASCII
       NATIONAL CHARACTER SET AL16UTF16
    DATAFILE 'F:\Oracle\oradata\suri\system01.dbf' size 200M EXTENT MANAGEMENT LOCAL
    UNDO tablespace undots datafile 'F:\Oracle\oradata\suri\undots01.dbf' size 200M
    DEFAULT TEMPORARY TABLESPACE tempts1 DATAFILE 'F:\Oracle\oradata\suri\temp01.dbf' SIZE 100M EXTENT MANAGEMENT LOCAL
    I'm getting error like below while executing the CREATE DATABASE command.
    ERROR at line 16:
    ORA-25139: invalid option for CREATE TEMPORARY TABLESPACEI have validated the syntax but not able to find where the error is.
    Please let me know if you need any further details.
    Thanks in advance for your help.
    Regards,
    Suri

    Welcome.
    why I got error when I use DATAFILE in CREATE DATABASE command (In oracle documentation also it shows as DATAFILE only)See http://download.oracle.com/docs/cd/B10501_01/server.920/a96540/statements_55a.htm#2127439
    Also, error description may be helpful...

  • Database used in java card?

    what database is used in java card?Can we use Record management system or sqlite here?

    hi,
    apart from ISO7816-7 that defines SCQL, and the fact that very few card (if none?) support the concept of card database, I don't understand your question.
    I don't think there is a useful or practical way to port sqlite in java language, in order to run in in a javacard.
    And I don't know what "record management system" is.
    record files are just a type of files with a fixed number of sized blocks. but this does not make it a database.
    regards
    sebastien

  • Create database using datafiles from cold backup

    hi,
    I've been given a bunch of datafiles from a cold backup.
    I have created my own database using the same DB_NAME as the original.
    I now want to be able to attach these datafiles to my database. How do I go about? Do I need to start the database in mount mode so that the control file is open, then start adding these datafiles to the tablespace, and then open the database?
    Any help would be appreciated.
    Thank you.

    OracleGuy777 wrote:
    hi,
    I've been given a bunch of datafiles from a cold backup.
    I have created my own database using the same DB_NAME as the original.
    I now want to be able to attach these datafiles to my database. How do I go about? Do I need to start the database in mount mode so that the control file is open, then start adding these datafiles to the tablespace, and then open the database?
    Any help would be appreciated.
    Thank you.Hi,That is not possible.You actually have two different databases,however db_name is same but every db_name are same databases is not same.These has own DBID in same environment.(Their controlfile and datafile information exactly is different).There is similar way is transportable tablespace feature.You can use this feature to transport tablespace between databases.For more information see below link.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/tspaces.htm#i1007169

  • Listener pre-requisite for create database using dbca

    Hello All:
    Oracle binaries successfully installed using dbca (Advanced Installation, Custom, Install DB software only)
    Now when i use dbca to create a database, i have noticed one of the screen prompts me to "Select the listeners for which you want to register the database".
    Question:
    Do we have to create the listener before we create the database so we can register the database.
    Is this a standard step asking us to register the database with the listener or we can get along with the create database without having to create the listener ahead of the database creation.
    Is this step asked because of the type of install i choose earlier for binaries using dbca (Advanced Installation, Custom, Install DB software only)
    Thanks
    San~

    sannidhi wrote:
    The screen doesn't let me go on to the other screen without making a selection. That is the reason i was wondering if it has been tied up the the install options you choose when you install software only.
    Thanks
    San~I don't have dbca in front of me at the moment, but does it present you with a list from which to choose? If so, is one of the choices 'listener' or 'default'? If so, choose one of those.

Maybe you are looking for