Problem in opening cloned database

i have cloned database with name test to test1 in the same oracle home.My problem is that i can't able to open the cloned database
c:\>set oracle_sid=test1
c:\>sqlplus /nolog
SQL>conn sys/oracle as sysdba;
ORA-12560 TNS:Protocol adapter Error.
But if i use the folowing procedure i can able to open the cloned database
c:\>set oracle_sid=test(NOte test is the source database not clonned database)
c:\>Sqlplus /nolog
SQL>conn sys/oracle as sysdba
SQl>startup nomount pfile='c:\oracle\pfile\inittest1.ora'(this is the location of init.ora file for cloned database)
SQL>alter database mount;
SQL>alter database open;
Now cloned database is up and running.
Now if i try to open the original database (TEST) then i am getting the error
c:\>set oracle_sid=play
c:\>sqlplus "/nolog
SQL>conn sys/oracle as sysdba
SQL>startup
ERROR:database is already up and running
SQL>select name from v$database;
name
Play1
Can any one help me to open two databases at same time.
Thankx...

1) ordim
Create an instance by specifying the following options:
-NEW -SID sid | -SRVC srvc | -ASMSID sid | -ASMSRVC srvc [-SYSPWD pass]
[-STARTMODE auto|manual] [-SRVCSTART system|demand] [-PFILE file | -SPFILE]
[-SHUTMODE normal|immediate|abort] [-TIMEOUT secs] [-RUNAS osusr/ospass]
expample
oradim -NEW -SID orcl2
2) Password creation
orapwd file=orapwd<SID> password=oracle entries=5
Virag

Similar Messages

  • Problem- first opening of database in WIN XP

    when I try and open the database from the startup screen , it will allow me to enter in the Host Credentials and credentials for the target database, but it will then say starting database and simply return to the start up screen saying the database is closed ?

    Try not to use the Enterprise Manager.
    Use ORADIM at the command line or net start or the services applet.
    Alternatively check the Alert log to see why it isn't starting.

  • Problem when opening the database

    Hi,
    OracleVersin:10.2.0.1
    OperatingSystem:linux
    When i restart my server and trying to start the database it is not starting .And it is throwing the following error.
    SQL> startup
    ORACLE instance started.
    Total System Global Area  838860800 bytes
    Fixed Size                  1222144 bytes
    Variable Size             213912064 bytes
    Database Buffers          616562688 bytes
    Redo Buffers                7163904 bytes
    Database mounted.
    ORA-01157: cannot identify/lock data file 8 - see DBWR trace file
    ORA-01110: data file 8: '/u06/oradata/QFUNDAPAYPROD_JUN09.dbf'
    SQL> alter database archivelog;
    alter database archivelog
    ERROR at line 1:
    ORA-00265: instance recovery required, cannot set ARCHIVELOG mode
    SQL> shut immediate
    ORA-01109: database not open
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup mount
    ORACLE instance started.
    Total System Global Area  838860800 bytes
    Fixed Size                  1222144 bytes
    Variable Size             213912064 bytes
    Database Buffers          616562688 bytes
    Redo Buffers                7163904 bytes
    Database mounted.
    SQL> alter database open;
    alter database open
    ERROR at line 1:
    ORA-01157: cannot identify/lock data file 8 - see DBWR trace file
    ORA-01110: data file 8: '/u06/oradata/QFUNDAPAYPROD_JUN09.dbf'please help me

    Hi,
    Here is the output of the logfile
    tarting up ORACLE RDBMS Version: 10.2.0.1.0.
    System parameters with non-default values:
      processes                = 300
      __shared_pool_size       = 205520896
      __large_pool_size        = 0
      __java_pool_size         = 4194304
      __streams_pool_size      = 0
      sga_target               = 838860800
      control_files            = /u01/app/oracle/oradata/VSMIG/control01.ctl, /u01/app/oracle/oradata/VSMIG/control02.ctl, /u01/app/oracle/oradata/VSMIG/control03.ctl
      db_block_size            = 8192
      __db_cache_size          = 620756992
      compatible               = 10.2.0.1.0
      db_file_multiblock_read_count= 16
      db_recovery_file_dest    = /u01/app/oracle/flash_recovery_area
      db_recovery_file_dest_size= 2147483648
      undo_management          = AUTO
      undo_tablespace          = UNDOTBS1
      remote_login_passwordfile= EXCLUSIVE
      db_domain                =
      dispatchers              = (PROTOCOL=TCP) (SERVICE=VSMIGXDB)
      job_queue_processes      = 10
      background_dump_dest     = /u01/app/oracle/admin/VSMIG/bdump
      user_dump_dest           = /u01/app/oracle/admin/VSMIG/udump
      core_dump_dest           = /u01/app/oracle/admin/VSMIG/cdump
      audit_file_dest          = /u01/app/oracle/admin/VSMIG/adump
      db_name                  = VSMIG
      open_cursors             = 300
      pga_aggregate_target     = 201326592
    PMON started with pid=2, OS id=3205
    PSP0 started with pid=3, OS id=3207
    MMAN started with pid=4, OS id=3209
    DBW0 started with pid=5, OS id=3212
    LGWR started with pid=6, OS id=3214
    CKPT started with pid=7, OS id=3216
    SMON started with pid=8, OS id=3218
    RECO started with pid=9, OS id=3220
    CJQ0 started with pid=10, OS id=3222
    MMON started with pid=11, OS id=3224
    Wed Nov 11 16:41:56 2009
    starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
    MMNL started with pid=12, OS id=3226
    Wed Nov 11 16:41:56 2009
    starting up 1 shared server(s) ...
    Wed Nov 11 16:41:56 2009
    ALTER DATABASE   MOUNT
    Wed Nov 11 16:42:00 2009
    Setting recovery target incarnation to 3
    Wed Nov 11 16:42:00 2009
    Successful mount of redo thread 1, with mount id 1073552788
    Wed Nov 11 16:42:00 2009
    Database mounted in Exclusive Mode
    Completed: ALTER DATABASE   MOUNT
    Wed Nov 11 16:42:07 2009
    alter database open
    Wed Nov 11 16:42:07 2009
    Errors in file /u01/app/oracle/admin/VSMIG/bdump/vsmig_dbw0_3212.trc:
    ORA-01157: cannot identify/lock data file 8 - see DBWR trace file
    ORA-01110: data file 8: '/u06/oradata/QFUNDAPAYPROD_JUN09.dbf'
    ORA-27086: unable to lock file - already in use
    Linux Error: 11: Resource temporarily unavailable
    Additional information: 8
    Wed Nov 11 16:42:07 2009
    Errors in file /u01/app/oracle/admin/VSMIG/bdump/vsmig_dbw0_3212.trc:
    ORA-01157: cannot identify/lock data file 13 - see DBWR trace file
    ORA-01110: data file 13: '/u06/oradata/APAYPROD_90616.dbf'
    ORA-27086: unable to lock file - already in use
    Linux Error: 11: Resource temporarily unavailable
    Additional information: 8
    ORA-1157 signalled during: alter database open...
    Wed Nov 11 16:57:00 2009
    db_recovery_file_dest_size of 2048 MB is 75.04% used. This is a
    user-specified limit on the amount of space that will be used by this
    database for recovery-related files, and does not reflect the amount of
    space available in the underlying filesystem or ASM diskgroup.

  • Problem with Opening the Database

    Dear All,
    I am learning myself Backup And Recovery.
    I messed up with Redo Log files and now the database is not opening.
    What actually I did is
    1) I got 2 redo log groups with I member file in each group.
    Group 1 (redo1) & Group 2(redo 2)
    2) Then I shutdown the database "Shutdown Normal"
    3) Then I removed the one redo log files. (redo 1) "rm redo1"
    4) Now I tried to open the database. It didnot opened as redo 1 is not available
    5) Now I Added one group 3 when the database is in mount mode (alter database add logfile group 3 ...)
    6) Now when I tried to drop the redo log file, I am getting the below error
    ORA-01623 log 1 is current log for instance orcl (thread 1) - cannot drop.
    7) So Now I am not able to open the database
    Can Anyone please help me out.
    Appreciate any help
    Thanks & Regards
    Madhu K

    Madhu,
    Can you try recreating the controlfile ? All it does is resets the redologs (reinitializes them). There wont be any dataloss. You can open the database using "alter database open resetlogs" after you recreate the controlfile.
    Have you looked into the backup and recovery case scenarios. They covered loss of redologs also.
    Since you are learning by yourself, i hope you are following Official Oracle guides. They are your bible when you practice things for the first time.
    http://www.oracle.com/pls/db102/portal.portal_db?selected=4 => Backup and Recovery Section => Backup and Recovery Basics and Backup and Recovery Advanced User's Guide
    -Srinivas

  • Problem in opening of database

    hi everybody
    can anyone solve this
    during opening of the database the error is
    ora 03113 end of file comminication channel
    when i check the alert log file
    the expressions are in alter file :-
    Database mount in Exclusive mode
    complete : alter database mount
    LGWR:Primary database is in CLUSTER CONSISTENT MODE
    LGWR:Primary database is in MAXIMUM PROTECTION MODE
    LGWR:Destination LOG_ARCHIVE_DEST_2 IS NOT SERVIVED BY LGWR
    LGWR:Destination LOG_ARCHIVE_DEST_1 IS NOT SERVICED BY LGWR
    Error in file /u01/oracle/bdump/k_lgwr_2703.trc:
    ora -16072: Minimun of the one standby database destination is required
    LGWR Terminiating instane due to error
    and in trace file same error defination is ;-
    LGWR:Primary database is in CLUSTER CONSISTENT MODE
    LGWR:Primary database is in MAXIMUM PROTECTION MODE
    LGWR:Destination LOG_ARCHIVE_DEST_2 IS NOT SERVIVED BY LGWR
    LGWR:Destination LOG_ARCHIVE_DEST_1 IS NOT SERVICED BY LGWR
    so i don't know what is this ,So give ur ideas to resolve this situation
    thanks

    Have you removed the standby database???
    If yes, check whether the Primary Database has still the Protection Mode stored in the Data Dictionary. The Protection Mode requires a running connection to a Standby Database with LGWR SYNC as Log-Transportation Mode. As per metalink:--
    >
    Fix
    ~~~~
    Startup the Primary Database in Mount State and set the Protection Mode back
    to Maximum Performance Mode, which is the Default:
    SQL> ALTER DATABASE SET STANDBY DATABASE TO MAXIMIZE PERFORMANCE;
    Then shutdown the Database and restart again.
    >
    Check metalink Doc ID: Note:245731.1
    Anand

  • Problem to open the oracle XE Database

    Log file name :  oxe_backup_current.log
    XE Backup Log
    Recovery Manager: Release 10.2.0.1.0 - Production on Mon Sep 12 04:26:21 2011
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    connected to target database: XE (DBID=2619028465, not open)
    RMAN>
    echo set on
    RMAN> shutdown immediate;
    using target database control file instead of recovery catalog
    database dismounted
    Oracle instance shut down
    RMAN> startup mount;
    connected to target database (not started)
    Oracle instance started
    database mounted
    Total System Global Area 805306368 bytes
    Fixed Size 1261444 bytes
    Variable Size 213909628 bytes
    Database Buffers 587202560 bytes
    Redo Buffers 2932736 bytes
    RMAN> configure retention policy to redundancy 2;
    old RMAN configuration parameters:
    CONFIGURE RETENTION POLICY TO REDUNDANCY 2;
    new RMAN configuration parameters:
    CONFIGURE RETENTION POLICY TO REDUNDANCY 2;
    new RMAN configuration parameters are successfully stored
    RMAN> configure controlfile autobackup format for device type disk clear;
    RMAN configuration parameters are successfully reset to default value
    RMAN> configure controlfile autobackup on;
    old RMAN configuration parameters:
    CONFIGURE CONTROLFILE AUTOBACKUP OFF;
    new RMAN configuration parameters:
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    new RMAN configuration parameters are successfully stored
    RMAN> sql "create pfile=''/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/dbs/spfile2init.ora'' from spfile";
    sql statement: create pfile=''/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/dbs/spfile2init.ora'' from spfile
    RMAN> backup as backupset device type disk database;
    Starting backup at 12-SEP-11
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=102 devtype=DISK
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    input datafile fno=00003 name=/usr/lib/oracle/xe/oradata/XE/sysaux.dbf
    input datafile fno=00005 name=/usr/lib/oracle/xe/oradata/XE/ftress_data_log01.dbf
    input datafile fno=00006 name=/usr/lib/oracle/xe/oradata/XE/ftress_data_lrg01.dbf
    input datafile fno=00001 name=/usr/lib/oracle/xe/oradata/XE/system.dbf
    input datafile fno=00009 name=/usr/lib/oracle/xe/oradata/XE/ftress_indx_log01.dbf
    input datafile fno=00010 name=/usr/lib/oracle/xe/oradata/XE/ftress_indx_lrg01.dbf
    input datafile fno=00002 name=/usr/lib/oracle/xe/oradata/XE/undo.dbf
    input datafile fno=00004 name=/usr/lib/oracle/xe/oradata/XE/users.dbf
    input datafile fno=00008 name=/usr/lib/oracle/xe/oradata/XE/ftress_data_sml01.dbf
    input datafile fno=00012 name=/usr/lib/oracle/xe/oradata/XE/ftress_indx_sml01.dbf
    input datafile fno=00011 name=/usr/lib/oracle/xe/oradata/XE/ftress_indx_mdm01.dbf
    input datafile fno=00007 name=/usr/lib/oracle/xe/oradata/XE/ftress_data_mdm01.dbf
    channel ORA_DISK_1: starting piece 1 at 12-SEP-11
    channel ORA_DISK_1: finished piece 1 at 12-SEP-11
    piece handle=/usr/lib/oracle/xe/app/oracle/flash_recovery_area/XE/backupset/2011_09_12/o1_mf_nnndf_TAG20110912T042633_76vjksws_.bkp tag=TAG20110912T042633 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:15
    Finished backup at 12-SEP-11
    Starting Control File and SPFILE Autobackup at 12-SEP-11
    piece handle=/usr/lib/oracle/xe/app/oracle/flash_recovery_area/XE/autobackup/2011_09_12/o1_mf_s_761631122_76vjl97m_.bkp comment=NONE
    Finished Control File and SPFILE Autobackup at 12-SEP-11
    RMAN> configure controlfile autobackup off;
    old RMAN configuration parameters:
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    new RMAN configuration parameters:
    CONFIGURE CONTROLFILE AUTOBACKUP OFF;
    new RMAN configuration parameters are successfully stored
    RMAN> alter database open;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of alter db command at 09/12/2011 04:26:51
    ORA-00322: log 1 of thread 1 is not current copy
    ORA-00312: online log 1 thread 1: '/usr/lib/oracle/xe/app/oracle/flash_recovery_area/XE/onlinelog/o1_mf_1_6jmmyqk8_.log'
    RMAN> delete noprompt obsolete;
    RMAN retention policy will be applied to the command
    RMAN retention policy is set to redundancy 2
    using channel ORA_DISK_1
    Deleting the following obsolete backups and copies:
    Type Key Completion Time Filename/Handle
    Backup Set 3 12-SEP-11
    Backup Piece 3 12-SEP-11 /usr/lib/oracle/xe/app/oracle/flash_recovery_area/XE/backupset/2011_09_12/o1_mf_nnndf_TAG20110912T040202_76vh3v58_.bkp
    Backup Set 4 12-SEP-11
    Backup Piece 4 12-SEP-11 /usr/lib/oracle/xe/app/oracle/flash_recovery_area/XE/autobackup/2011_09_12/o1_mf_s_761630513_76vh4yjx_.bkp
    Backup Set 5 12-SEP-11
    Backup Piece 5 12-SEP-11 /usr/lib/oracle/xe/app/oracle/flash_recovery_area/XE/backupset/2011_09_12/o1_mf_nnndf_TAG20110912T040908_76vhk4n6_.bkp
    Backup Set 6 12-SEP-11
    Backup Piece 6 12-SEP-11 /usr/lib/oracle/xe/app/oracle/flash_recovery_area/XE/autobackup/2011_09_12/o1_mf_s_761630513_76vhkmyg_.bkp
    RMAN-06207: WARNING: 4 objects could not be deleted for DISK channel(s) due
    RMAN-06208: to mismatched status. Use CROSSCHECK command to fix status
    RMAN-06210: List of Mismatched objects
    RMAN-06211: ==========================
    RMAN-06212: Object Type Filename/Handle
    RMAN-06213: --------------- ---------------------------------------------------
    RMAN-06214: Backup Piece /usr/lib/oracle/xe/app/oracle/flash_recovery_area/XE/backupset/2011_09_12/o1_mf_nnndf_TAG20110912T040202_76vh3v58_.bkp
    RMAN-06214: Backup Piece /usr/lib/oracle/xe/app/oracle/flash_recovery_area/XE/autobackup/2011_09_12/o1_mf_s_761630513_76vh4yjx_.bkp
    RMAN-06214: Backup Piece /usr/lib/oracle/xe/app/oracle/flash_recovery_area/XE/backupset/2011_09_12/o1_mf_nnndf_TAG20110912T040908_76vhk4n6_.bkp
    RMAN-06214: Backup Piece /usr/lib/oracle/xe/app/oracle/flash_recovery_area/XE/autobackup/2011_09_12/o1_mf_s_761630513_76vhkmyg_.bkp
    RMAN>
    Recovery Manager complete.
    RMAN error: See log for details.
    An error also comes out while opening the database through SQL statement
    SQL> connect sys as sysdba
    Enter password:
    Connected.
    SQL> shutdown immediate;
    ORA-01109: database not open
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup
    ORACLE instance started.
    Total System Global Area 805306368 bytes
    Fixed Size 1261444 bytes
    Variable Size 213909628 bytes
    Database Buffers 587202560 bytes
    Redo Buffers 2932736 bytes
    Database mounted.
    ORA-00322: log 1 of thread 1 is not current copy
    ORA-00312: online log 1 thread 1:
    *'/usr/lib/oracle/xe/app/oracle/flash_recovery_area/XE/onlinelog/o1_mf_1_6jmmyqk8_.log'*
    SQL>
    Its an error (problem) of our DC ( Primary) Sever so Please reply back with suitable answer as soon as possible
    Regards,
    Niraj Prasad Karn
    Edited by: 870614 on Sep 14, 2011 10:38 AM

    I suggest you transfer this threat to a different forum, as this is the OEM GC forum.
    I guess you want to post in the Database forum.
    Regards
    Rob
    http://oemgc.wordpress.com

  • Aperture (3.4.1) no longer opens and the following message appears: There was an error opening the database for the library "/ Users / Andrea / Pictures / Aperture 3 Library.aplibrary." How can I solve this problem? Thanks

    I was using Aperture (3.4.1), when he appeared a notice that asked me to stop the Mac with the power button. When I restart Aperture no longer opens and the following message appears: There was an error opening the database for the library "/ Users / Andrea / Pictures / Aperture 3 Library.aplibrary."
    How can I solve this problem?
    Thanks

    After a system crash your Aperture Library may be corrupted, because Aperture may not have been able to finish the ongoing database transactions.
    Have you tried the Aperture Library First Aid Tools?
    Aperture 3 User Manual: Repairing and Rebuilding Your Aperture Library
    Try "Repair Database", and if this does not help: "Rebuild Database"
    Regards
    Léonie

  • Problem in  Oracle EM (Database Limits - Current Open Cursors)

    Hi everyone,
    I have a problem in Oracle Enterprise Manager in All Metrics.
    When I select in All Metrics e.g. Health Check > Maintenance it work's fine and I see a chart.
    If I select in All Metrics > Database Limits > Current Open Cursors Count I got following error:
    Error
    oracle.sysman.dbTarget.db.emSDKOverride.page.mtrx.GetDataException: ORA-06550: Zeile 79, Spalte 16: PL/SQL: ORA-00942: Tabelle oder View nicht vorhanden ORA-06550: Zeile 51, Spalte 7: PL/SQL: SQL Statement ignored
    What's the problem?
    In this database instance i drop these users (schemas): dbuser, mddata, ordplugins, ordsys, si_informtn_schema!!
    Can this lack of user to cause an error?
    Oracle Enterprise Manager Database Control 10.2.0.0
    Database instance: myDB > All Metrics > Database Limits > Current Open Cursors Count
    Thanks.
    Mark

    Hello Mark,
    personally I don;t think it is a good idea to drop schema's from the database that have been installed as part of the activation of a certain Database Option. If you don't want the option, then don't instal it.
    For a complete description of the schema's you are refering to, check: http://download.oracle.com/docs/cd/E11882_01/server.112/e10575/tdpsg_user_accounts.htm#BABGIBBA
    Regards
    Rob
    http://oemgc wordpress.com

  • Problem in opening database

    Hi Experts,
    [NWMss][SQLServer JDBC Driver][SQLServer]The transaction log for database 'KDS' is full. To find out why space in the log cannot be reused, see the log_reuse_wait_desc column in sys.databases.
    Exception id: 10:08_28/09/07_0002_3439451.
    The above error occured and i could not even open database to see my log, how to resolve this problem???
    Thanks,
    Kannan.

    Dear Nicolas,
    Thanks For Replying,
    I Have Windows 2003 Server And Oracle 9i Installed .
    I Followed The Following Steps :
    - I Took A Copy From All The Data Files , Control Files , Redo Logs , And The Init.Ora Files From The Original Server .
    - I Installed Oracle 9i On The Target Server ( Used The Same SID And Location Like The Source Server ).
    - I Copied All The Files In The Corresponding Directories Like The Source Server .
    - Using The SQLPlus, I Started The Database, And It Mounted And Opened The Database Without Any Error .
    - Then When I Went To The OEM, I Connected To The Database, But When I Tried To Open It, It Gave Me An Error That Can't Open The Database, ( I Can't View The Contents ) .
    Thanks,
    Guivara

  • Getting `No such file or directory` error while trying to open bdb database

    I have four multi-threaded processes (2 writer and 2 reader processes), which make use of Berkeley DB transactional data store. I have multiple environments and the associated database files and log files are located in separate directories (please refer to the DB_CONFIG below). When all these four processes start to perform open and close of databases in the environments very quickly, one of the reader process is throwing a No such file or directory error even though the file actually exists.
    I am making use of Berkeley DB 4.7.25 for testing out these applications.
    The four application names are as follows:
    Writer 1
    Writer 2
    Reader 1
    Reader 2
    The application description is as follows:
    &lsquo;*Writer 1*&rsquo; owns 8 environments and each environment having 123 Berkeley databases created using HASH access method. At any point of time, &lsquo;*Writer 1*&rsquo; will be acting on 24 database files across 8 environments (3 database files per environment) for carrying out write operation. Where as reader process will be accessing all 123 database files / per environment (Total = 123 * 8 environments = 984 database files) for read activities. Similar configuration for Writer 2 as well &ndash; 8 separate environments and so on.
    Writer 1, Reader 1 and Reader 2 processes share the environments created by Writer 1
    Writer 2 and Reader 2 processes share the environments created by Writer 2
    My DB_CONFIG file is configured as follows
    set_cachesize 0 104857600 1   # 100 MB
    set_lg_bsize 2097152                # 2 MB
    set_data_dir ../../vol1/data/
    set_lg_dir ../../vol31/logs/SUBID/
    set_lk_max_locks 1500
    set_lk_max_lockers 1500
    set_lk_max_objects 1500
    set_flags db_auto_commit
    set_tx_max 200
    mutex_set_increment 7500
    Has anyone come across this problem before or is it something to do with the configuration?

    Hi Michael,
    I should have included about how we are making use of DB_TRUNCATE flag in my previous reply itself. Sorry for that.
    From writers, DB truncation happens periodically. During truncate (DB handle is not associated with any environment handle i.e. stand-alone DB
    ) following parameters are passed to db-&gt;open function call:
    DB-&gt;open(DB *db,                    
    DB_TXN *txnid,          =&gt; NULL
    const char *file,          =&gt; file name (absolute DB file path)
    const char *database,  =&gt; NULL
    DBTYPE type, =&gt; DB_HASH
    u_int32_t flags, =&gt; DB_READ_UNCOMMITTED | DB_TRUNCATE | DB_CREATE | DB_THREAD
    int mode); =&gt; 0
    Also, DB_DUP flag is set.
    As you have rightly pointed out, `No such file or directory` is occuring during truncation.
    While a database is being truncated it will not be found by others trying to open it. We simulated this by stopping the writer process (responsible for truncation) and by opening & closing the databases repeatedly via readers. The reader process did not crash. When readers and writers were run simultaneously, we got `No such file or directory` error.Is there any solution to tackle this problem (because in our case writers and readers are run independently. So readers won't come to know about truncation from writers)?
    Also, we are facing one more issue related to DB_TRUNCATE. Consider the following scenario:
    <ul><li>Reader process holds reference of database (X) handle in environment 'Y' at time t1
    </li>
    <li>Writer process opens the database (X) in DB_TRUNCATE mode at time t2 (where t2 &gt; t1)</li>
    <li>After truncation, writer process closes the database and joins the environment 'Y'</li>
    <li>After this any writes to database X is not visible to the reader process</li>
    <li>Once reader process closes the database X and re-joins the environment, all the records inserted from writer process are visible</li>
    </ul>
    Is it the right behavior? If yes, how to make any writes visible to a reader process without closing and re-opening the database in the above-mentioned scenario?
    Also, when [db_set_errfile|http://www.oracle.com/technology/documentation/berkeley-db/db/api_c/db_set_errfile.html] was set, we did not get any additional information in the error file.
    Thanks,
    Magesh

  • "There was an error opening the database for the library "~/Pictures/Apert"

    Hey everyone,
    There's already another discussion thread about this at the link below, but the problem was never actually resolved. http://discussions.apple.com/thread.jspa?threadID=2343014&tstart=0&messageID=116 67261#11667261
    So I stumbled across this problem where Aperture 3 will display the following error when opening the image library.
    There was an error opening the database for the library “~[path]/Aperture Library.aplibrary”.
    One user suggested navigating to the actual library, and ⌘⌥-clicking the library to open it with the Aperture Library First Aid dialog. This however, did not work for me. I still received the error messages upon ⌘⌥-clicking the library.
    Here's a little hack I discovered for those of you still struggling. It doesn't fix the problem (leaves quite a large dent remaining actually), but hopefully someone can cultivate what little I discovered.
    ⌥-click Aperture (not the library)
    You should get to the library selection dialog box. Create a new library (bottom right corner) and remember the location of the new library. Put a few random pictures in the new one.
    Close Aperture
    ⌃-click both the old and new libraries and "Show Package Contents."
    Open the folder "Database" in both libraries.
    Cross check the folders to see if the old library is missing files that are in the new library. If your old library is missing some files (mine was), drag the missing files from the new library to the old one.
    Close both folders.
    ⌘⌥-click the old library.
    NOW, I got the Aperture Library First Aid dialog.
    Rebuild the library (3rd option)
    Wait a while.
    Aperture should open up with a folder named "Recovered Folder." Within this folder will be a SINGLE project named "Recovered Project" with ALL the images from your old library. There may be a few albums there too, but mine were all empty so it didn't matter in my case. To my knowledge, I lost all the adjustments I performed too.
    This is as far as I got. I have much of my library backed up, so I only needed to copy the most recent photos into the backup. I am NOT reorganizing and re-editing pictures in this one!
    As Aperture is a photo-organizing and photo-editing software, I understand that this by no means fixes the problem, since you lose all organization and editing. But it enables one to at least view the images lost. Hopefully a more knowledgable hacker else can figure out how to fix this completely. Unfortunately, I simply don't have the time to continue messing with this.
    Good luck to anyone else having issues! I understand the frustration you must be facing, its freaky having years worth of images simply disappear! After this incident, I'm definitely going to configure Time Machine to perform more frequent backups, since my latest backup was already a couple weeks old.

    Hey All,
    To my horror I have a similar problem and your solution didn't seem to help. To be specific, I get the error:
    "There was an error opening the database for the library “~/Pictures/Aperture Library_2.aplibrary" Everytime I try to run Aperture. This happened because my Apple computer shut off completely (due to bad battery) while importing photos from a memory card.
    I've tried "option + command" while clicking the aperture application and that gave me the same error message without any other option except to quit the program. I tried "option + command" and clicked the library package but that didn't work either. I tried creating a new aperture library, opening it which I did successfully, and then switching to my main one but that didn't work.
    Does anyone know away to get it to work again and have the edits still there?
    I'm a professional photographer and have thousands of photos or so in the library so this is distressing. The master files for the photos are located on an external hard drive, but I'm not sure how to access them in aperture. Are all the edits on the photographs are in the external hard drive or the aperture library. Is there any other way to resolve this issue without losing the edits?
    Does apple have a support number I can call? Any help would be greatly appreciated!!

  • Problem of Teststand3.1 database and microsoft SQL Server 2000 personal edition

    I have a problem when using teststand database function with Microsoft sql server 2000. the error(seen in attached screenshot3.jpg) is:
    "An error occurred calling 'LogResults' in 'ITSDBLog' of 'DBLog 1.0 Type Library'
    An error occurred executing a statement.
    Schema: Generic Recordset (NI).
    Statement: UUT_RESULT.
    [Microsoft][ODBC SQL Server Driver][SQL Server]unable to insert NULL value to column "ID", table "test.dbo.UUT_RESULT";This column is not alowed to be blank. INSERT Failed. Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.
    [Microsoft][ODBC SQL Server Driver][SQL Server]terminated.
    Source: TSDBLog"
     Here I listed my proceess.
    1, Configure in SQL Sever, please see attached screenshot0.jpg
       a, Open SQL
       b, build a new database with the name of test
       c, import the data from "C:\Program Files\National Instruments\TestStand 3.1\Components\NI\Models\TestStandModels\Database\TestStand Results.mdb"
    2, Configure Microsoft SQL sever: please see attached screenshot1.jpg
       a, Open windows Control Panel and select "Data Sources (ODBC). Under system DSN tab, add a SQL server data source
    3, Configure teststand database option, see attached screenshot2.jpg
       a, configure logging option, enable
       b, configure datalink
       c, select schemas of "Generic recordset (NI)
       d, No change on the tabs of "statements" and "Columns/Parameters"
    4, run an seqence file with the proess model of SequentialModel.Seq.
    Attachments:
    Screenshot.zip ‏425 KB

    Thanks Scott,
      The database function is OK now after I changed imported tables in SQL Sever.
      Actually, I once tried anothor method that you refered by using the scripts
    located at: <TestStand>\Components\NI\Models\TestStandModels\Database\SQL Server Create Generic Recordset Result Tables.sql. Attached is the error screenshots, please help me on this.
    Thanks
    Jacky
    Attachments:
    Error.jpg ‏59 KB

  • Problem running oracle 9i database in archivelog mode - database freezes

    Greetings,
    I recently needed to change a (test) database to archivelog mode to make online back-ups of this database. This posed no real problem although I seem to be unable to set the database to automatic archiving eventhough I edited the init.ora file (translation of the "archive log list" output between square brackets):
    SQL> archive log list
    Databaselogmodus Archiveermodus [Databaselogmode: Archivemode]
    Automatisch archiveren Gedeactiveerd [Automatic archiving: Deactivated]
    Archiveerbestemming O:\oracle\ora92\RDBMS [Archivedestionation: O:\oracle\ora92\RDBMS]
    Oudste on-line logreeks 12306
    Volgende logreeks voor archivering 12306
    Huidige logreeks 12308
    I added this to my init.ora file:
    # Archvie Log Destinations
    log_archive_start=TRUE
    log_archive_dest_1=%ORACLE_HOME%\database\archive
    log_archive_format="%%ORACLE_SID%%t_%s.arc"
    However, this is not the real problem (maybe it has something to do with it, which is why I mention it aswell), the real problem is that my database freezes when the archive log file is "full". When the archive file reaches ~102.400Kb it just freezes up and I need to restart the database.
    The following error is written to the alert_sid.log file:
    Thu Apr 17 09:19:55 2008
    Thread 1 cannot allocate new log, sequence 12309
    All online logs needed archiving
    Current log# 2 seq# 12308 mem# 0: O:\ORACLE\ORADATA\O\REDO02.LOG
    The problem seems to be that the oracle service can't start a new logfile when the previous one is full. Does anybody know how I could fix this?
    Thanks in advance,
    Bram

    Hello Maran, thanks for your quick response.
    I added the output of archivelog list in the original post, but it's in dutch so here's the (loose) translation of the output:
    SQL> archive log list
    Databaselog mode Archive mode
    Automatic archiving Deactivated
    Archive destionation O:\oracle\ora92\RDBMS
    Oldest on-line logsequence 12307
    Next logsequence for archiving 12307
    Current logsequence 12309
    Maybe something that can help with the troubleshooting:
    The archivelog file is written to O:\oracle\ora92\RDBMS but only AFTER the reboot, I've checked SYSTEM rights to the folder and it has full control.
    Babu, thanks aswell for your quick response.
    The location exists and space is available but the database doesn't seem to load (that part of) the ora.init file because the output of archive log list still refers to %ORACLE_HOME%\rdbms instead of %ORACLE_HOME%\database\archive.
    I've now executed alter system archive log all; and am executing the import where the database usually freezes to see if it still happens. So far I already had this written to the alert_sid.log file after executing the command:
    Completed: alter database open
    Thu Apr 17 10:00:11 2008
    ARCH: Evaluating archive log 1 thread 1 sequence 12307
    ARCH: Beginning to archive log 1 thread 1 sequence 12307
    Creating archive destination LOG_ARCHIVE_DEST_1: 'O:\ORACLE\ORA92\RDBMS\ARC12307.001'
    ARCH: Completed archiving log 1 thread 1 sequence 12307
    ARCH: Evaluating archive log 2 thread 1 sequence 12308
    ARCH: Beginning to archive log 2 thread 1 sequence 12308
    Creating archive destination LOG_ARCHIVE_DEST_1: 'O:\ORACLE\ORA92\RDBMS\ARC12308.001'
    ARCH: Completed archiving log 2 thread 1 sequence 12308
    And new log files were written to the directory (O:\oracle\ora92\RDBMS) and this time I didn't have to reboot for it to happen. Both were 100mb files without the database actually doing all that much though.
    Message was edited by:
    user616266

  • Error opening the database for the library "~/Pictures/Aperture Trial Library.aplibrary" error message

    When starting up Aperature 3 I get the following Error Message :
    "There was an error opening the database for the library “~/Pictures/Aperture Trial Library.aplibrary”.
    I can't di a thing except Quit. I have restored from Time Machine and reloaded the Software from Disk. Still get the same message. Any suggestions Are appreciated.
    Jim

    Hello Jim,
    I assume you trial Aperture Library is in your "Pictures" folder? Try to rename it to something like "OldApertureTrialLibrary.aplibrary", to force Aperture to create a new Application Library.
    To rename the old Trial Library, select it in the Finder and enter Command(⌘)-I (short for File-> Get Info). Click on the file name text field and enter a new name.
    Possibly you get this error message message, because there is some permissions problem. If you are not allowed to rename the file, click on the padlock in the lower right corner, authentificate as admin and give yourself read/write access to the trial library (in the "Sharing & Permissions" brick of the "Get Info" panel).
    Post back, if your "ApertureTrialLibrary.aplibrary" contains valuable images that you would like to save or if this does not work and you need further advice.
    Regards
    Léonie

  • Problem when open the Java Berkeley DB

    I'm using the Java Berkeley DB version: je-6.2.31.jar
    - My database has about 4 GB of info.
    - I use a Replicated Environment (but now I'm currently pointing the -nodeHost and -helperHost to the same IP and port)
    - I'm using a StoredSortedMap to store some key/value info. (sorted duplicates is set to true)
    I use the database correctly for some time.
    Normaly I open the database and close many times;
    There is enough disk, and I already tested it in different HDs, (even with a SSD)
    I casually receive the bellow error, it's not more possible to open the data base:
    com.sleepycat.je.EnvironmentFailureException: (JE 6.2.31) Problem creating output files in: E:\data\database/je.info UNEXPECTED_EXCEPTION: Unexpected internal Exception, may have side effects.
      at com.sleepycat.je.EnvironmentFailureException.unexpectedException(EnvironmentFailureException.java:330)
      at com.sleepycat.je.dbi.EnvironmentImpl.initFileHandler(EnvironmentImpl.java:1484)
      at com.sleepycat.je.dbi.EnvironmentImpl.<init>(EnvironmentImpl.java:474)
      at com.sleepycat.je.rep.impl.RepImpl.<init>(RepImpl.java:267)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
      at com.sleepycat.je.dbi.DbEnvPool.loadRepImpl(DbEnvPool.java:242)
      at com.sleepycat.je.dbi.DbEnvPool.getEnvironment(DbEnvPool.java:178)
      at com.sleepycat.je.Environment.makeEnvironmentImpl(Environment.java:251)
      at com.sleepycat.je.Environment.<init>(Environment.java:232)
      at com.sleepycat.je.Environment.<init>(Environment.java:188)
      at com.sleepycat.je.rep.ReplicatedEnvironment.<init>(ReplicatedEnvironment.java:573)
      at com.sleepycat.je.rep.ReplicatedEnvironment.<init>(ReplicatedEnvironment.java:443)
      at com.sleepycat.je.rep.ReplicatedEnvironment.<init>(ReplicatedEnvironment.java:507)
    Caused by: java.io.IOException: Couldn't get lock for E:\data\database/je.info
      at java.util.logging.FileHandler.openFiles(FileHandler.java:422)
      at java.util.logging.FileHandler.<init>(FileHandler.java:394)
      at com.sleepycat.je.util.FileHandler.<init>(FileHandler.java:85)
      at com.sleepycat.je.dbi.EnvironmentImpl.initFileHandler(EnvironmentImpl.java:1478)
      ... 24 more

    I got the same behavior again:
    I open and close the DB many times about 50 times.
    OBS: I interrupt the java process abruptly not by API.
    I think this is not a reason to get the files easily corrupted...
    com.sleepycat.je.EnvironmentFailureException: (JE 6.2.31) Problem creating output files in: E:\data\database/je.info UNEXPECTED_EXCEPTION: Unexpected internal Exception, may have side effects.
      at com.sleepycat.je.EnvironmentFailureException.unexpectedException(EnvironmentFailureException.java:330)
      at com.sleepycat.je.dbi.EnvironmentImpl.initFileHandler(EnvironmentImpl.java:1484)
      at com.sleepycat.je.dbi.EnvironmentImpl.<init>(EnvironmentImpl.java:474)
      at com.sleepycat.je.rep.impl.RepImpl.<init>(RepImpl.java:267)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
      at com.sleepycat.je.dbi.DbEnvPool.loadRepImpl(DbEnvPool.java:242)
      at com.sleepycat.je.dbi.DbEnvPool.getEnvironment(DbEnvPool.java:178)
      at com.sleepycat.je.Environment.makeEnvironmentImpl(Environment.java:251)
      at com.sleepycat.je.Environment.<init>(Environment.java:232)
      at com.sleepycat.je.Environment.<init>(Environment.java:188)
      at com.sleepycat.je.rep.ReplicatedEnvironment.<init>(ReplicatedEnvironment.java:573)
      at com.sleepycat.je.rep.ReplicatedEnvironment.<init>(ReplicatedEnvironment.java:443)
      at com.sleepycat.je.rep.ReplicatedEnvironment.<init>(ReplicatedEnvironment.java:507)
    Caused by: java.io.IOException: Couldn't get lock for E:\data\database/je.info
      at java.util.logging.FileHandler.openFiles(FileHandler.java:422)
      at java.util.logging.FileHandler.<init>(FileHandler.java:394)
      at com.sleepycat.je.util.FileHandler.<init>(FileHandler.java:85)
      at com.sleepycat.je.dbi.EnvironmentImpl.initFileHandler(EnvironmentImpl.java:1478)
      ... 24 more

Maybe you are looking for

  • How to Design Multi Page Report in SSRS 2008

    Hi All, I have managed to create a multi page report. When I am preview mode i can see that the report has 2 pages. But when I am in design view I cannot view the second page. How can I view the second page. Reason being I am trying to create a templ

  • Mac appstore

    Hey guys, I can'nt use App store to downloads programs or update my this message appears always "There was an error in the App Store. Please try again later (13)" looking for your help?

  • WHY IS MY MAC ASKING FOR A KEYCHAIN?!

    I have not been so irritated in a long time, everytime i try to go online a small screen pops up and asks me for my "login" keychain password ... earlier today i had a problem going online so i called apple they helped me reset my password .... i had

  • Action box in notification

    I am try to create a Q2 notification in notification action box there is create transport request scrapping What are the function of that and also while moving un restricted to block stock what is the movement type we want to give (344 or 343) Faisal

  • LDAP authentification JAAS Module ?

    Hello We have installed a SAP Portal (EP7), using an R/3 data source for users. However, we would like to use a LDAP for authentification. The module should check login / password against the LDAP, check that the user exist in the UME, and then allow