Database defragmentation or creating a new database?

Hi,
We want to reclaim the whitespace in our Exchange database, so do you recommend creating a second database and moving the mailboxes over there, or shall we go with offline defragmentation?
Database size: 400GB.
Mailboxes counts: 300.
Thoughts and recommendations?

How much free space is in your database?  If it's under 20%, then I'd stay as you are.  If it's between 20% and 40%, it becomes a judgment call.  If it's over 40%, then I'd create a new database and move the mailboxes - primarily because this
will allow your users to access unless their specific mailbox is being moved (and even then, the access I available for most of the move anyway), and you will both remove whitespace and eliminate any bad items you may have in the database.  Just keep
in mind that when you move the mailboxes, any recoverable mailboxes will remain on the original database unless you re-associate them with accounts so you can move them.  (And if you re-associate them with accounts and move them, their "deleted on"
date counter will be reset to the date you move them, if you delete them again.)
Taking the database offline so you can compact it will leave your users out of email access for the duration of the process.  And if you have a DAG and multiple database copies, you will need to reseed them each after the process is complete. 
If you create a new database, with associated copies on other servers, the move mailbox process will automatically reseed the database.
Ever since Exchange 2000, when multiple database were available on a single server, I have been leery of running an offline defrag.  And since Exchange 2010 and its move requests, I am adamant against doing one - we reclaimed nearly 24TB in our 24 databases
(each was nearly 2 TB, and each is now under 1 TB), all using the process I suggest above.

Similar Messages

  • Creating a new database in Oracle Database 10g...

    I have downloaded a copy of Oracle Database 10g Express Edition from Oracle's website. I am using Windows XP. I am trying to create an Oracle database that I can connect to from Access 2003 via ODBC.
    1. How do I create a new database? I can see options to create tables, views, etc. but not a database.
    2. I have created a System DSN connection in the ODBC Data Source Administrator for the Oracle ODBC driver. Once I create a database in Oracle, how do I actually establish a connection to it from Access? The ODBC code to connect is there, but when I run it, I get an error.
    Any help would be appreciated. Thanks.

    1. How do I create a new database? I can see options to create tables, views, etc. but not a database.If you can see those options then you are already connected to the database. You probably want to create a user, not a database (are you by chance coming from SQL Server?)
    driver={OracleDriver};Dbq=TESTDBQ;Uid=Administrator;Pwd=;You would replace "Administrator" with the name of the user you created in the database.

  • How can I create a new database?

    Hi,
    can anyone tell me the steps I have to do if I want to create a new database? Can I perform this operation from the console of the Enterprise Manager or from the DBA studio?
    Thank you.

    You can use DBAssist to create Database of your own desire. No need to go anywhere if u r working on 8i.
    If this sounds good to u then steps can be followed.
    Kartik

  • Access key needed when creating a new database table with SE11

    Hi,
    I'm using SAP Testdrive (evaluation) on linux in order to learn a bit about ABAP programming. I want to create a new database table in the  dictionary to be used in my programs. I proceed in the following way:
    1) I run the SE11 transaction
    2) At the first entry I write the name of the table to be created (in the Database Table field)
    3) I click on the create button.
    But then the system asks me an Access Key to register, where can I get this?
    Thanks in advance,
    Kind Regards,
    Dariyoosh

    Ok I found the answer to my question in another thread
    Developer Key
    Make sure that your program names starts with "Z" or "Y", otherwise the system will ask you to register the object because it thinks you are creating/changing in the SAP namespace.
    In fact this was my error, my table name didn't start with neither "Z" nor "Y".
    Kind Regards,
    Dariyoosh
    Edited by: dariyoosh on Nov 13, 2010 12:34 PM

  • Create a new database in foxpro , msaccess dynamically

    hello,
    i am writing an application in which depending on the users selection a database will be created dynamically .i.e if he selects oracle or foxpro or access it will create a new database using the dsn supplied by the user and then creates the tables in that particular database .
    i would like to know how to create a new database from within a class file for foxpro or msacces dynamically.
    thanks for the help

    hi,
    thanks for ur response.
    i have no problem in creating tables
    my application does that, but i wanna know how to create a new database so that the tables that are created for a particular clients data are stored in a database specific for that client only , i.e. when his work is over he can completely discard the database by dropping it and can create new database when he wants to start a new database related to different client.
    i would like to know how to create that database file, system or file dsn dynamically.

  • Create a new Database in an other server using a copie of RMAN backup

    Hi all,
    I want to create an other instance for our production database. We have disk and tape in rman backup. My question is can i create a new database using our disk backup in an other server?
    If some procedure or steps is there, email it to my adresse [email protected]
    Hamid.
    Thanks

    By means of the use of Recovery Manager it is possible to duplicate a database out from a previously taken rman backup. The method will be outlined in the next few lines.
    Let's assume a source database named SRCDB and the target database, named GEMINI. A unix like environment is assumed, but it can be implemented on windows as well, just beware of the particular Oracle implementation on a windows platform (orapwd file name, service creation, path format)
    1. Create a password file for the Cloned (GEMINI) instance:
    orapwd file=/u01/app/oracle/product/9.2.0.1.0/dbs/orapwGEMINI password=password entries=10
    2. Configure tnsnames.ora and listner.ora
    Properly identify the database at the tnsnames.ora and have the instance manually registered against the listener.ora files, both files located at the $ORACLE_HOME/network/admin directory.
    2.a Manually register the database against the listener (listener.ora)
    (SID_DESC =
    (ORACLE_HOME = /u01/app/oracle/product/9.2.0.1.0)
    (SID_NAME = GEMINI)
    2.b Added the target GEMINI to the tnsnames.ora
    GEMINI =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = myhost.mydomain.com)(PORT = 1521))
    (CONNECT_DATA =
    (ORACLE_SID = GEMINI)
    2.c Reload the listener
    lsnrctl reload
    3. Create a new init.ora for the cloned database.
    Next create an init.ora file for the cloned database. In case the same paths cannot be used on the target host, either because it is the same source host or because those paths are not reproducible on the target, then DB_FILE_NAME_CONVERT and LOG_FILE_NAME_CONVERT may be required to be defined
    DB_NAME=GEMINI
    CONTROL_FILES=(/u02/oradata/GEMINI/control01.ctl,
    /u02/oradata/GEMINI/control02.ctl,
    /u02/oradata/GEMINI/control03.ctl)
    # Convert file names to allow for different directory structure.
    DB_FILE_NAME_CONVERT=(/u02/oradata/SRCDB/,/u02/oradata/GEMINI/)
    LOG_FILE_NAME_CONVERT=(/u01/oradata/SRCDB/,/u01/oradata/GEMINI/)
    # block_size and compatible parameters must match those of the source database
    DB_BLOCK_SIZE=8192
    COMPATIBLE=9.2.0.0.0
    4. Connect to the cloned instance
    ORACLE_SID=GEMINI; export ORACLE_SID
    sqlplus /nolog
    conn / as sysdba
    5. Create an SPFILE based on the init.ora
    CREATE SPFILE FROM PFILE='/u01/app/oracle/admin/GEMINI/pfile/init.ora';
    6. Start the database in NOMOUNT mode:
    STARTUP FORCE NOMOUNT;
    7. Connect to the TARGET, CATALOG and AUXILIARY databases.
    By means of the rman three connections are open, one for the Source Database (SOURCEDB), another for the Catalog database (RCAT), and one more for the cloned database (GEMINI)
    ORACLE_SID=GEMINI; export ORACLE_SID
    rman TARGET sys/password@SRCDB CATALOG rman/rman@RCAT AUXILIARY /
    8. Complete or Incomplete clone (recover)
    From the rman the database using one of the following commands:
    8.a Clone the database by means of a complete recover.
    DUPLICATE TARGET DATABASE TO GEMINI;
    8.b Clone the database up to a defined point in time in the past by means of an incomplete recover
    DUPLICATE TARGET DATABASE TO GEMINI UNTIL TIME 'SYSDATE-2';
    9. Process finished.
    Once the process is finished, the newly created GEMINI database is ready to be used as an independent new cloned database.
    Ref. RMAN Clone a Database
    ~ Madrid

  • Creating a new database containing part of an existing database,same server

    Hi All Experts,
    I have a problem. I am trying to create a new database on a server which already has a database (named qadb10g) running on it. I want the new database to contain only a few tablspaces of the "qadb10g" database. I tried this approach.
    1. Take an RMAN backup of the desired tablespaces from the source database (qadb10g), including system and undo tablespaces as well.
    2. Use "SET NEWNAME FOR DATAFILE ..." RMAN commands to restore all the data files in the new disk location on the same server.
    3. Run "ALTER DATABASE BACKUP CONTROLFILE TO TRACE" command in the "qadb10g" database to generate a "create controlfile...." script.
    4. Edit the resulting file (from step 3) to change file locations and database name, instance name, etc.
    5. Create a new init.ora file for the new database.
    6. From an sql*plus session, with "ORACLE_SID" already set to new database name, run the "create controlfile ..." script which we generated and changed above.
    I performed steps 1-5 successfully, But when I ran the step 6 command, I got an error saying "Datafile Header contains database name 'qadb10g' which is not maching the <newdb name> .....".
    This means, the database datafiles which were backed up and restored from the 'qadb10g' database still contain the same db name in their header and this is preventing new control file from being created. So, the new datbase cannot be created. Can anbody help me how to resolve this problem???
    Any urgent help would be greatly appreciated. Thanks in advance.

    At Step 4, did you use the SET <newdbname> in the create controlfile script ?
    At Step 5, did you change the db_name in the pfile ?
    nid is the new and easier way to change the database name.

  • About spfile creating in oracle 10g while creating a new database

    hi everyone,
    i had this problem while i was creating a new database in oracle 10g.when running the database script, it gives an error about invalid option for create temporary tablespace. is it necessary to have an spfile created in 10g. when the script was not working,we tried to create spfile which gives error tht it does not match the parameter db_name. its taking the default db_name=orcl itself..tis not taking our new db name.
    im creating it manually through sql prompt not through DBCA.the problem is that its still accepting the default db name. please send me the solution with syntaxes.
    thanx

    first of all, thanx for giuding me as im a student doing a course in this
    what abt the creation of spfile.. in a documentation for steps in creating database, they have mentioned it as recommended in creating spfile.here are some notes regarding this ....for oracle 10g
    Step 5: Create a Server Parameter File (Recommended)
    Oracle recommends that you create a server parameter file as a dynamic means of maintaining initialization parameters. The server parameter file is discussed in "Managing Initialization Parameters Using a Server Parameter File".
    The following script creates a server parameter file from the text initialization parameter file and writes it to the default location. The script can be executed before or after instance startup, but after you connect as SYSDBA. The database must be restarted before the server parameter file takes effect.
    -- create the server parameter file
    CREATE SPFILE='/u01/oracle/dbs/spfilemynewdb.ora' FROM
    PFILE='/u01/oracle/admin/initmynewdb/scripts/init.ora';
    SHUTDOWN
    -- the next startup will use the server parameter file
    EXIT
    the error : db_name does not match with the parameter.
    its still taking the default orcl database name

  • TNS Protocol error in 11g when creating a new database

    Hi,
    I have installed 11g R2 64 Bit on Solaris 10 64 Bit. The installation happened successfully. Now when I use DBCA to create a new database it says ORA-12560 TNS:Protocol Adapter Error. I am accessing the server console and performing all operations there itself, I can't understand this issue.
    I have also created a listener.ora and tnsnames.ora and its running successfully (but don't really know if it is needed since I have not even created the database). The sqlnet.log shows following
    =====================================================
    Fatal NI connect error 12560, connecting to:
    (DESCRIPTION=(ADDRESS=(PROTOCOL=beq)(PROGRAM=/export/home/oracle/product/11.1.0/db_1/bin/oracle)(ARGV0=oracleTSG11G)(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))')(DETACH=NO))(CONNECT_DATA=(CID=(PROGRAM=sqlplus)(HOST=sol11oracle-vm)(USER=oracle))))
    VERSION INFORMATION:
    TNS for Solaris: Version 11.2.0.1.0 - Production
    Oracle Bequeath NT Protocol Adapter for Solaris: Version 11.2.0.1.0 - Production
    Time: 17-DEC-2009 10:30:52
    Tracing not turned on.
    Tns error struct:
    ns main err code: 12560
    TNS-12560: TNS:protocol adapter error
    ns secondary err code: 0
    nt main err code: 530
    TNS-00530: Protocol adapter error
    =====================================================
    Some excerpts from the trace is:
    =====================================================
    2009-12-17 11:14:38.776040 : nsopen:opening transport...
    2009-12-17 11:14:38.776097 : ntpcon:entry
    2009-12-17 11:14:38.776140 : ntpcon:toc = 1
    2009-12-17 11:14:38.776196 : sntpcall:entry
    2009-12-17 11:14:38.776221 : sntpcall:not detaching from parent with additional fork
    2009-12-17 11:14:38.796184 : sntpcall:hdl[IR]=13, hdl[IW]=12
    2009-12-17 11:14:38.796429 : sntpcall:result string is NTP8 0
    2009-12-17 11:14:38.796527 : sntpcall:Can't read from pipe; err[1] = 8
    2009-12-17 11:14:38.796571 : sntpcall:exit
    2009-12-17 11:14:38.796674 : ntpcon:exit
    2009-12-17 11:14:38.796755 : nserror:entry
    2009-12-17 11:14:38.796776 : nserror:nsres: id=0, op=65, ns=12560, ns2=0; nt[0]=530, nt[1]=8, nt[2]=0; ora[0]=0, ora[1]=0, ora[2]=0
    2009-12-17 11:14:38.796861 : nsopen:unable to open transport
    2009-12-17 11:14:38.796884 : nstoClearTimeout:entry
    =====================================================
    In /etc/host i have added server ip with host name.
    $ more /etc/host
    172.26.171.57 sol11oracle-vm
    The .profile of oracle user
    export TMP=/tmp
    export TMPDIR=$TMP
    export ORACLE_BASE=/export/home/oracle
    export ORACLE_HOME=$ORACLE_BASE/product/11.1.0/db_1
    export ORACLE_SID=TSG11G
    export PATH=$PATH:/usr/local/bin:/usr/ccs/bin:/usr/sfw/bin:$ORACLE_HOME/bin
    Please suggest.

    $ more tnsnames.ora
    # tnsnames.ora Network Configuration File: /export/home/oracle/product/11.1.0/db_1/network/admin/tnsnames.ora
    # Generated by Oracle configuration tools.
    TSG11G =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.26.171.57)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = TSG11G)
    $ tnsping tsg11g
    TNS Ping Utility for Solaris: Version 11.2.0.1.0 - Production on 17-DEC-2009 11:37:10
    Copyright (c) 1997, 2009, Oracle. All rights reserved.
    Used parameter files:
    /export/home/oracle/product/11.1.0/db_1/network/admin/sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 172.26.171.57)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = TSG11G)))
    OK (50 msec)

  • HELP: Problem creating a new database in Oracle 9i

    I am having difficulty in creating a new database in Oracle 9i, on Windows 2000. I would be obliged if somebody can go through the posting below and guide me as to what mistake I am making or what is the source of the problem:
    I reproduce the steps taken by me.
    I have decide the database to be called Mydb. I have made the following directories:
    -- d:\mydb
    -- d:\mydb\data
    -- d:\mydb\control
    -- d:\mydb\log
    -- d:\mydb\bdump
    -- d:\mydb\cdump
    -- d:\mydb\udump
    -- d:\mydb\archive
    -- d:\mydb\pfile
    -- d:\mydb\scripts
    -- d:\mydb\exp
    I copied the initoracle.ora file to d:\mydb\pfile\initmydb.ora, and made the following changes to it:
    -- db_name = mydb
    -- instance_name = mydb
    -- control_files = ("d:\mydb\control\control01.ctl")
    -- background_dump_dest = d:\mydb\bdump
    -- core_dump_dest = d:\mydb\cdump
    -- user_dump_dest = d:\mydb\udump
    -- remote_login_passwordfile = exclusive
    Also, I created a text file called d:\Oracle\Ora90\DATABASE\initmydb.ora with the following contents:
    ifile=d:\mydb\pfile\initmydb.ora
    At DOS prompt, I run the following command:
    set oracle_sid=mydb
    I run the ORAPWD utility to create internal password file at the command prompt.
    d:
    cd \oracle\ora90\database
    orapwd file=pwdmydb.ora password=panther entries=25
    I create a Windows service for the database as follows:
    oradim -new -sid mydb -startmode a -pfile d:\mydb\pfile\initmydb.ora
    I get connected:
    sqlplusw /nolog
    connect sys/change_on_install as sysdba
    startup nomount # pfile=d:\mydb\pfile\initmydb.ora
    create database mydb
    MAXINSTANCES 1
    MAXLOGHISTORY 1
    MAXLOGFILES 5
    MAXLOGMEMBERS 5
    MAXDATAFILES 100
    datafile 'd:\mydb\data\system.dbf' size 325m REUSE
    AUTOEXTEND ON NEXT 10240K MAXSIZE UNLIMITED
    undo tablespace undotbs datafile 'd:\mydb\data\undo01.dbf' size
    200m reuse
    AUTOEXTEND ON NEXT 5120K MAXSIZE UNLIMITED
    default temporary tablespace temptbs
    CHARACTER SET WE8MSWIN1252
    NATIONAL CHARACTER SET AL16UTF16
    logfile group 1 ('d:\mydb\log\log1.log') size 1m,
    group 2 ('d:\mydb\log\log2.log') size 1m,
    group 3 ('d:\mydb\log\log3.log') size 1m;
    Now I get the following error:
    create database mydb
    ERROR at line 1:
    ORA-01092: ORACLE instance terminated. Disconnection forced
    The data files, control file, redo log files are all created. But the above error comes, and I am unable to start the database. What is the reason?
    Thanks in anticipation.
    PS

    Hi DENIS,
    I have executed the following commands (which are in a script file),
    1. sqlplus /nolog
    2. connect sys/change_on_install as sysdba
    3. create database ...
    4. ...
    When I execute the 3rd command, I get an error message as "ORACLE TERMINATED FORCED" and it will end the session. So when the next set of commands in the script are executed, I got the error saying "DATABASE NOT OPEN".
    How to rectify this problem.
    Thanks in advance,
    Kiran

  • Exception while creating a new database

    Greetings,
    I was using dbca (Database Configuration Assistant) on Linux to create a new database. Everything was going ok until it was 85% done, at which point it waited a long time and then said it had failed and gave the path to a log file. Below is [what I think to be] the relavant part of that log file (emConfig.log). I sure could use some help on this, thanks.
    -Sam
    Mar 14, 2007 1:56:48 PM oracle.sysman.emcp.util.PlatformInterface getSortedEnvArray
    CONFIG: New Env List: [DISPLAY=:0.0, NEED_EXIT_CODE=1, ORACLE_HOSTNAME=deadbeef, ORACLE_SID=dbxv3x, PATH=/usr/kerberos/bin:/opt/jdk1.5.0_08/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/u01/app/oracle/product/10.2.0/db_1/bin:/home/oracle/bin, TZ=]
    Mar 14, 2007 1:56:48 PM oracle.sysman.emcp.util.PlatformInterface executeCommand
    CONFIG: Starting execution: /u01/app/oracle/product/10.2.0/db_1/bin/emctl start dbconsole
    Mar 14, 2007 2:03:12 PM oracle.sysman.emcp.util.PlatformInterface executeCommand
    CONFIG: Exit value of 1
    Mar 14, 2007 2:03:12 PM oracle.sysman.emcp.util.PlatformInterface executeCommand
    CONFIG: TZ set to US/Pacific
    Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
    Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
    http://deadbeef:5501/em/console/aboutApplication
    Starting Oracle Enterprise Manager 10g Database Control ............................................................................................. failed.
    Logs are generated in directory /u01/app/oracle/product/10.2.0/db_1/deadbeef_dbxv3x/sysman/log
    Mar 14, 2007 2:03:12 PM oracle.sysman.emcp.util.PlatformInterface executeCommand
    WARNING: Error executing /u01/app/oracle/product/10.2.0/db_1/bin/emctl start dbconsole
    Mar 14, 2007 2:03:12 PM oracle.sysman.emcp.EMConfig perform
    SEVERE: Error starting Database Control
    Refer to the log file at /u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/dbca/dbx_v3x/emConfig.log for more details.
    Mar 14, 2007 2:03:12 PM oracle.sysman.emcp.EMConfig perform
    CONFIG: Stack Trace:
    oracle.sysman.emcp.exception.EMConfigException: Error starting Database Control
         at oracle.sysman.emcp.EMDBPostConfig.performConfiguration(EMDBPostConfig.java:565)
         at oracle.sysman.emcp.EMDBPostConfig.invoke(EMDBPostConfig.java:177)
         at oracle.sysman.emcp.EMDBPostConfig.invoke(EMDBPostConfig.java:146)
         at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:155)
         at oracle.sysman.assistants.util.em.EMConfiguration.run(EMConfiguration.java:426)
         at java.lang.Thread.run(Thread.java:534)

    This may be a clue. In the file emdctl.trc there are many WARN lines (Connection refused) and two ERROR lines (timezones do not match) right at the time when dbca was 85% done. I am speculating that the timezone errors might be relevant to this problem. Below is just a snippet. Yesterday and this morning we tried to run $ORA_HOME/bin/emctl start dbconsole on this database and we get the timezone errors only. If timezone mismatch is the problem, how do you fix it?
    2007-03-14 14:57:58 Thread-3062621888 WARN http: snmehl_connect: connect failed to (deadbeef:1831): Connection refused (error = 111)
    2007-03-14 14:58:02 Thread-3062679232 WARN http: snmehl_connect: connect failed to (deadbeef:1831): Connection refused (error = 111)
    2007-03-14 14:58:06 Thread-3062081216 WARN http: snmehl_connect: connect failed to (deadbeef:1831): Connection refused (error = 111)
    2007-03-14 14:58:10 Thread-3061798592 WARN http: snmehl_connect: connect failed to (deadbeef:1831): Connection refused (error = 111)
    2007-03-14 14:58:14 Thread-3062118080 WARN http: snmehl_connect: connect failed to (deadbeef:1831): Connection refused (error = 111)
    2007-03-14 14:58:18 Thread-3062658752 WARN http: snmehl_connect: connect failed to (deadbeef:1831): Connection refused (error = 111)
    2007-03-14 14:58:22 Thread-3062699712 WARN http: snmehl_connect: connect failed to (deadbeef:1831): Connection refused (error = 111)
    2007-03-14 14:58:24 Thread-3061970624 ERROR main: nmectl.c: nmectl_validateTZRegion, agentTZoffset =-420,and testTZoffset for US/Pacific:-480 do not match
    2007-03-14 14:58:25 Thread-3061970624 ERROR main: nmectl.c: nmectl_validateTZRegion, agentTZoffset =-420,and testTZoffset for US/Pacific:-480 do not match
    2007-03-14 14:58:26 Thread-3061864128 WARN http: snmehl_connect: connect failed to (deadbeef:1831): Connection refused (error = 111)
    2007-03-14 14:58:30 Thread-3061888704 WARN http: snmehl_connect: connect failed to (deadbeef:1831): Connection refused (error = 111)
    2007-03-14 14:58:34 Thread-3062695616 WARN http: snmehl_connect: connect failed to (deadbeef:1831): Connection refused (error = 111)
    2007-03-14 14:58:38 Thread-3061864128 WARN http: snmehl_connect: connect failed to (deadbeef:1831): Connection refused (error = 111)
    2007-03-14 14:58:42 Thread-3062556352 WARN http: snmehl_connect: connect failed to (deadbeef:1831): Connection refused (error = 111)
    2007-03-14 14:58:46 Thread-3062650560 WARN http: snmehl_connect: connect failed to (deadbeef:1831): Connection refused (error = 111)
    2007-03-14 14:58:50 Thread-3062388416 WARN http: snmehl_connect: connect failed to (deadbeef:1831): Connection refused (error = 111)

  • Problem in Creating a new database in Oracle 9i

    I have installed Oracle 9i for Windows successfully. Now when I try to create a new database either using the Database Configuration Assistant or using the script generated by the Assistant, I get an error message that DATABASE NOT OPEN. So the database will not be created. Please help in this regard, so that I can create a database and I can start working on Oracle 9i.
    Thanks in advance.
    Kiran

    Hi DENIS,
    I have executed the following commands (which are in a script file),
    1. sqlplus /nolog
    2. connect sys/change_on_install as sysdba
    3. create database ...
    4. ...
    When I execute the 3rd command, I get an error message as "ORACLE TERMINATED FORCED" and it will end the session. So when the next set of commands in the script are executed, I got the error saying "DATABASE NOT OPEN".
    How to rectify this problem.
    Thanks in advance,
    Kiran

  • How to create a new database in SUP

    Hi,
    Iam using SUP 2.1 ESD#1 licensed version
    How to create a new database other than the default sampleDB.
    Thanks,
    B.Ushasri

    Hi B.Ushasri,
    This is actually pretty easy.
    1) open the Unwired Workspace (SDK in eclipse).
    2) Bottom right, add a new Database connection with the following details:
               Sybase ASA v12.x,
               host=Your Sup box,
               port=5500,
               user=dba
               password= Your password (default = dba)
    3) Once you connect successfully, right click on the connection and choose the "Create database" option.
    That should do it for you. It is the same connection as the sampleDB connection so if you already have that defined then its a simple, right click on it once connected and hit create database.
    Hope that helps,
    Brenton.

  • How to Create A new Database in the oracle 10g XE

    i have oracle 10g XE i tried to create a new database but its giveing me error when i execute the sql command that is create database testDatabase how to create a new database in oracle 10g XE

    Hi there 785434,
    (This is a generic SQL question relating to Database Triggers, please post future questions of this type into the relevant forum area.)
    Moderator, please move this if able
    I use Before Update and Before Delete Triggers to record a 'snapshot' of the row being changed in my applications.
    Example:
    CREATE TABLE TEST
    DATA VARCHAR2(64 CHAR),
    CREATING_USERID VARCHAR2(20 CHAR) DEFAULT user NOT NULL,
    CREATED_DATE DATE NOT NULL,
    CHANGED_BY_USERID VARCHAR2(20 CHAR),
    CHANGED_DATE DATE
    LOGGING
    STORAGE
    (MAXEXTENTS UNLIMITED);
    CREATE TABLE TEST_HISTORY
    DATA VARCHAR2(64 CHAR),
    CREATING_USERID VARCHAR2(20 CHAR) DEFAULT user NOT NULL,
    CREATED_DATE DATE NOT NULL,
    CHANGED_BY_USERID VARCHAR2(20 CHAR),
    CHANGED_DATE DATE,
    CHANGE_DESCRIPTION
    NOLOGGING
    STORAGE
    (MAXEXTENTS UNLIMITED);
    CREATE OR REPLACE TRIGGER TRG_BU_TEST
    BEFORE UPDATE ON TEST FOR EACH ROW
    BEGIN
    INSERT /*+ append */ INTO TEST_HISTORY
    (DATA, CREATING_USERID, CREATED_DATE, CHANGED_BY_USERID, CHANGED_DATE, CHANGE_DESCRIPTION)
    VALUES
    (:old.DATA, :old.CREATING_USERID, :old.CREATED_DATE, USER, SYSDATE, 'UPDATE');
    END;
    CREATE OR REPLACE TRIGGER TRG_BD_TEST
    BEFORE DELETE ON TEST FOR EACH ROW
    BEGIN
    INSERT /*+ append */ INTO TEST_HISTORY
    (DATA, CREATING_USERID, CREATED_DATE, CHANGED_BY_USERID, CHANGED_DATE, CHANGE_DESCRIPTION)
    VALUES
    (:old.DATA, :old.CREATING_USERID, :old.CREATED_DATE, USER, SYSDATE, 'DELETE');
    END;
    Using triggers like this will record who made an update or delete to the database and record the row before it was changed.
    Note that this method might not be suitable for very high transaction rates.
    You will need to 'clear' these history tables as part of routine maintenance.
    Hope that this Helps.
    Ronald.

  • Creating a new database

    Ok new to Sun JSE8. How do you create a new PointBase database? Do you have to have PointBase installed on you PC? or is it installed with JSE8? I have a application that was prototyped in Access and now we are going to do it in Java. This is a school project that we are working on but it will be used when we are done creating it. I looked in the help file but could not find out how to do it. I have used MSSql alot and can create a database there and then connect to it but we were trying to get away from MS products a non proft will be using our program and the cost of MSSql would be to much.
    Is everything done by code only for creating a new database and tables?
    Thanks

    Pointbase comes bundled with JSE8.
    To create new pointbase database:
    Go to the following directory under your JSE8 installation directory:
    For example:
    \jstudio_ent8\AppServ8.1UR2\pointbase\tools\serveroption
    Use the startconsole file to start the pointbase client console.
    The pointbase GUI will come. This has the option to create new database by going to the pointbase console menu. Also, remember to start the pointbase server before. You can start it from the IDE, by going to Tools -> Pointbase Database.
    Also, the following sample databases are installed with the Pointbase installation:
    sample
    sun-appserv-samples
    To connect to the Pointbase sample database, you can check the IDE help online. Simply search for pointbase.

Maybe you are looking for

  • Buttons don't work on Tecra M7 after Vista Upgrade

    I know this one has been discussed many times, apologize and need to raise it again as my two function keys on my Tecra do not work post Vista Ultimate Upgrade. If I press either of them right now they launch Windows Mobility Centre. I know this is n

  • I am replacing my existing SATA hard drive to a Solid State hard drive and want to image the drive, is this possible?

    I am replacing my existing 320 GB SATA hard drive that clicks and makes weird noises to a Solid State hard drive and want to image the drive, is this possible?  I then want to replace the DVD with a secondary large drive for storage. So I am looking

  • Sender jdbc adapter - no update query

    hi , i am using pi 731 single stack. the scenario is - PI has to pick data from view of a hana database. i am using jdbc sender for it. pi will not have access to update the table,only pi can read the view of database.So,PI can't use UPDATE query. If

  • Phone does not always ring

    Hello, I have been struggling with a wee problem. Our daughter has a Nokia 1650 phone, and when I or my wife call her it never rings. We've been playing hell with her for not answering our calls, but she told us something had been wrong with the phon

  • 我在执行T_code:ppome的时候的错误,请问怎么解决?

    Runtime Errors CREATE_DATA_UNKNOWN_TYPE Except. CX_SY_CREATE_DATA_ERROR Date and Time 2009-01-13 10:59:08 Short text CREATE DATA: The specified type "HRP1654" is no valid data type. What happened? Error in the ABAP Application Program The current ABA