Open database failed

Hi
I found my database (Oracle 9i Spatial) is mounted. When I try to open it, I got the following message:
ORA-00313: open failed for members of log group 1 of thread 1 ORA-00312:
online log 1 thread 1:'C:\...\ORADATA\DB!!\REDO01.log'
Thanks, Helen

When you try to open the database you receive the following errors:
ora-313 open failed for memebers of log group 2 of thread 1.
ora-312 online log 2 thread 1 'filename'
It is not possible to recover the missing log, so the following needs
to be performed -
Mount the database and check v$log to see if the deleted log is current;
-If the log is not current, simply drop the log group (alter database drop
logfile group N).
If there are only 2 log groups then it will be necessary to add another
group before dropping this one.
-If the log is current they should simply perform fake recovery and then
open resetlogs
connect / as sysdba
startup mount
recover database until cancel;
(cancel immediately)
alter database open resetlogs;
Remember, database need to be in archivelog mode.
Jaffar
Message was edited by:
The Human Fly

Similar Messages

  • Cannot open database "ReportServer" requested by the login. The login failed. Login failed for user 'USER LOGON'

    I want to grant permissions to all domain users to view reports on our Report Server. Domain users are able to access our Report Server URL and folder, but when they click on a report item they get an error message: 
    "Cannot open database "ReportServer" requested by the login. The login failed. Login failed for user 'USER LOGON'"
    I'm using windows authentication and configured the local service account in SSReportS Config Manager as the credentials to connect to the Report Server DB. 
    Can someone please help how I should properly do this step by step to give all domain users permissions to view a report in SSRS?
    Thanks much! - Rookie DBA

    Hi IWAR,
    The error message "Cannot open database "ReportServer" requested by the login. The login failed. Login failed for user 'USER LOGON'" means the user 'USER LOGON' does not have permissions to access the "ReportServer" database.
    To fix this issue, please verify that the user has a valid database user login. For more details, please refer to the following steps.
    In SQL Server Management Studio, open Object Explorer and expand the Databases folder.
    Expand the database in which to create the new database user.
    Right-click the Security folder, point to New, and then click User.
    On the General page, enter a name for the new user in the User name box.
    In the Login name box, enter the name of a SQL Server login to map to the database user.
    Click OK.
    Reference:
    http://technet.microsoft.com/en-us/library/ms156468(v=sql.105).aspx
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • System.Data.SqlClient.SqlException: Cannot open database "MSCRM_CONFIG" requested by the login. The login failed. Login failed for user 'NT AUTHORITY\SYSTEM

    Dear ALL 
    After successfully shifting the CRM from 2011 to 2013 i found a problem in Reporting section none of the report is working after some finding i conclude that MSCRM_FetchDataSource is not able to connect successfully 
    Through my report manager i tried to test the connection of MSCRM_FetchDataSource but i got the following error 
    System.Data.SqlClient.SqlException: Cannot open database "MSCRM_CONFIG" requested by the login. The login failed. Login failed for
    user 'NT AUTHORITY\SYSTEM'. 
    I already add the NT Authority \ System as a db_owner under my database user of MSCRM_CONFIG
    But still no success any one have any idea why it's happaning 
    Regards 
    RB

    I found a solution I hope my post will help other
    I gave the  db_owner to 'NT AUTHORITY\SYSTEM' and 'NT AUTHORITY\NETWORK' and assigned with both CRM and Config database
    It resolved my issue
    RB

  • Cannot open database " " requested by the login. The login failed. SQL Server 2008 Express

    I am getting this message when I try to create a path to a work file from my application.
    Cannot open database " " requested by the login.  The login failed. 
    SQL Server 2008 is installed.  I have placed the computer name and instance in the application's config file as connection source. 
    The database is also not showing up in SQl Server Management Studio in list of databases.
    Thanks.

    Hello,
    Can you please confirm login exist in the sql server and its mapped to particular database.
    Are you directly connecting to SSMS?
    Or using any 4 part query?
    Please share how you are accessing the DB and screen hots of error messages.
    Thank You.
    Regards, Pradyothana DP. Please Mark This As Answer if it solved your issue. Please Mark This As Helpful if it helps to solve your issue. ========================================================== http://www.dbainhouse.blogspot.in/

  • SCOM not generating alerts & The request to synchronize state for OpsMgr Health Service identified by "bdb1712b-0a9a-bbe3-9630-41f2da9f64a1" failed due to the following exception "System.Data.SqlClient.SqlException: Cannot open database "OperationsManager

    Hi Anyone can assisting on this. The SCOM 2007r2 i managed suddenly do not pump out alerts.
    I have perform full scom service restart(data access, agent, config). it no load up related datawarehouse like(stored, write)
    I also restarted my sql db services. It show me the error like this. Anyhow i can fix it
    The request to synchronize state for OpsMgr Health Service identified by "bdb1712b-0a9a-bbe3-9630-41f2da9f64a1" failed due to the following exception "System.Data.SqlClient.SqlException: Cannot open database "OperationsManager" requested
    by the login. The login failed.
    Login failed for user 'HK\svc-scomsdk'.
       at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)
       at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
       at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
       at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
       at System.Data.SqlClient.SqlConnection.Open()
       at Microsoft.EnterpriseManagement.Mom.DataAccess.SqlConnectionHandler.Open(SqlConnection sqlConnection, RetryPolicy retryPolicy, DatabaseConnection databaseConnection)
       at System.Data.SqlClient.SqlConnection.Open()
       at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
       at Microsoft.EnterpriseManagement.Mom.DataAccess.SqlConnectionHandler.Open(SqlConnection sqlConnection, RetryPolicy retryPolicy, DatabaseConnection databaseConnection)
       at System.Data.SqlClient.SqlConnection.Open()
       at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
       at System.Data.SqlClient.SqlConnection.Open()
       at Microsoft.EnterpriseManagement.Mom.DataAccess.SqlConnectionHandler.Open(SqlConnection sqlConnection, RetryPolicy retryPolicy, DatabaseConnection databaseConnection)
       at Microsoft.EnterpriseManagement.Mom.DataAccess.DatabaseConnection.Open()
       at Microsoft.EnterpriseManagement.Mom.DataAccess.QueryRequest.Execute(SqlNotificationRequest sqlNotificationRequest)
       at Microsoft.Mom.ConfigService.OpsMgrDataAccess.ConfigurationDataAccessor.QueryInstanceProperties(ReadOnlyCollection`1 instances)
       at Microsoft.Mom.ConfigService.DataAccess.DatabaseAccessor.QueryInstanceProperties(ReadOnlyCollection`1 instances)
       at Microsoft.Mom.ConfigService.Engine.ConfigurationEngine.CommunicationHelper.StateSyncRequestTask.ConfigurationItems.Instances.CollectPublicProperties(ReadOnlyCollection`1 identities, IConfigurationDataAccessor dataAccessor)
       at Microsoft.Mom.ConfigService.Engine.ConfigurationEngine.CommunicationHelper.StateSyncRequestTask.ConfigurationItems.ConfigurationItemCollection`2.CollectPublicProperties(IConfigurationDataAccessor dataAccessor)
       at Microsoft.Mom.ConfigService.Engine.ConfigurationEngine.CommunicationHelper.StateSyncRequestTask.ConfigurationItems..ctor(StateContext stateContext, IConfigurationDataAccessor dataAccessor)
       at Microsoft.Mom.ConfigService.Engine.ConfigurationEngine.CommunicationHelper.StateSyncRequestTask.CreateResponse(Managers managers)
       at Microsoft.Mom.ConfigService.Engine.ConfigurationEngine.Managers.Synchronize(OnDoSynchronizedWork onDoSynchronizedWork)
       at Microsoft.Mom.ConfigService.Engine.ConfigurationEngine.CommunicationHelper.StateSyncRequestTask.Execute(Managers managers)
       at Microsoft.EnterpriseManagement.Mom.DataAccess.SqlConnectionHandler.Open(SqlConnection sqlConnection, RetryPolicy retryPolicy, DatabaseConnection databaseConnection)
       at Microsoft.EnterpriseManagement.Mom.DataAccess.DatabaseConnection.Open()
       at Microsoft.EnterpriseManagement.Mom.DataAccess.QueryRequest.Execute(SqlNotificationRequest sqlNotificationRequest)
       at Microsoft.Mom.ConfigService.OpsMgrDataAccess.ConfigurationDataAccessor.QueryInstanceProperties(ReadOnlyCollection`1 instances)
       at Microsoft.Mom.ConfigService.DataAccess.DatabaseAccessor.QueryInstanceProperties(ReadOnlyCollection`1 instances)
       at Microsoft.Mom.ConfigService.Engine.ConfigurationEngine.CommunicationHelper.StateSyncRequestTask.ConfigurationItems.Instances.CollectPublicProperties(ReadOnlyCollection`1 identities, IConfigurationDataAccessor dataAccessor)
       at Microsoft.Mom.ConfigService.Engine.ConfigurationEngine.CommunicationHelper.StateSyncRequestTask.ConfigurationItems.ConfigurationItemCollection`2.CollectPublicProperties(IConfigurationDataAccessor dataAccessor)
       at Microsoft.Mom.ConfigService.Engine.ConfigurationEngine.CommunicationHelper.StateSyncRequestTask.ConfigurationItems..ctor(StateContext stateContext, IConfigurationDataAccessor dataAccessor)
       at Microsoft.Mom.ConfigService.Engine.ConfigurationEngine.CommunicationHelper.StateSyncRequestTask.CreateResponse(Managers managers)
       at Microsoft.Mom.ConfigService.Engine.ConfigurationEngine.Managers.Synchronize(OnDoSynchronizedWork onDoSynchronizedWork)
       at Microsoft.Mom.ConfigService.Engine.ConfigurationEngine.CommunicationHelper.StateSyncRequestTask.Execute(Managers managers)
       at Microsoft.EnterpriseManagement.Mom.DataAccess.SqlConnectionHandler.Open(SqlConnection sqlConnection, RetryPolicy retryPolicy, DatabaseConnection databaseConnection)
       at Microsoft.EnterpriseManagement.Mom.DataAccess.DatabaseConnection.Open()
       at Microsoft.EnterpriseManagement.Mom.DataAccess.QueryRequest.Execute(SqlNotificationRequest sqlNotificationRequest)
       at Microsoft.Mom.ConfigService.OpsMgrDataAccess.ConfigurationDataAccessor.QueryInstanceProperties(ReadOnlyCollection`1 instances)
       at Microsoft.Mom.ConfigService.DataAccess.DatabaseAccessor.QueryInstanceProperties(ReadOnlyCollection`1 instances)
       at Microsoft.Mom.ConfigService.Engine.ConfigurationEngine.CommunicationHelper.StateSyncRequestTask.ConfigurationItems.Instances.CollectPublicProperties(ReadOnlyCollection`1 identities, IConfigurationDataAccessor dataAccessor)
       at Microsoft.Mom.ConfigService.Engine.ConfigurationEngine.CommunicationHelper.StateSyncRequestTask.ConfigurationItems.ConfigurationItemCollection`2.CollectPublicProperties(IConfigurationDataAccessor dataAccessor)
       at Microsoft.Mom.ConfigService.Engine.ConfigurationEngine.CommunicationHelper.StateSyncRequestTask.ConfigurationItems..ctor(StateContext stateContext, IConfigurationDataAccessor dataAccessor)
       at Microsoft.Mom.ConfigService.Engine.ConfigurationEngine.CommunicationHelper.StateSyncRequestTask.CreateResponse(Managers managers)
       at Microsoft.Mom.ConfigService.Engine.ConfigurationEngine.Managers.Synchronize(OnDoSynchronizedWork onDoSynchronizedWork)
       at Microsoft.Mom.ConfigService.Engine.ConfigurationEngine.CommunicationHelper.StateSyncRequestTask.Execute(Managers managers)
       at Microsoft.EnterpriseManagement.Mom.DataAccess.SqlConnectionHandler.Open(SqlConnection sqlConnection, RetryPolicy retryPolicy, DatabaseConnection databaseConnection)
       at Microsoft.EnterpriseManagement.Mom.DataAccess.DatabaseConnection.Open()
       at Microsoft.EnterpriseManagement.Mom.DataAccess.DatabaseConnection.Open()
       at Microsoft.EnterpriseManagement.Mom.DataAccess.QueryRequest.Execute(SqlNotificationRequest sqlNotificationRequest)
       at Microsoft.Mom.ConfigService.OpsMgrDataAccess.ConfigurationDataAccessor.QueryInstanceProperties(ReadOnlyCollection`1 instances)
       at Microsoft.EnterpriseManagement.Mom.DataAccess.QueryRequest.Execute(SqlNotificationRequest sqlNotificationRequest)
       at Microsoft.Mom.ConfigService.DataAccess.DatabaseAccessor.QueryInstanceProperties(ReadOnlyCollection`1 instances)
       at Microsoft.Mom.ConfigService.Engine.ConfigurationEngine.CommunicationHelper.StateSyncRequestTask.ConfigurationItems.Instances.CollectPublicProperties(ReadOnlyCollection`1 identities, IConfigurationDataAccessor dataAccessor)
       at Microsoft.Mom.ConfigService.Engine.ConfigurationEngine.CommunicationHelper.StateSyncRequestTask.ConfigurationItems.ConfigurationItemCollection`2.CollectPublicProperties(IConfigurationDataAccessor dataAccessor)
       at Microsoft.Mom.ConfigService.Engine.ConfigurationEngine.CommunicationHelper.StateSyncRequestTask.ConfigurationItems..ctor(StateContext stateContext, IConfigurationDataAccessor dataAccessor)
       at Microsoft.Mom.ConfigService.DataAccess.DatabaseAccessor.QueryInstanceProperties(ReadOnlyCollection`1 instances)
       at Microsoft.Mom.ConfigService.Engine.ConfigurationEngine.CommunicationHelper.StateSyncRequestTask.CreateResponse(Managers managers)
       at Microsoft.Mom.ConfigService.Engine.ConfigurationEngine.CommunicationHelper.StateSyncRequestTask.ConfigurationItems.Instances.CollectPublicProperties(ReadOnlyCollection`1 identities, IConfigurationDataAccessor dataAccessor)
       at Microsoft.Mom.ConfigService.Engine.ConfigurationEngine.CommunicationHelper.StateSyncRequestTask.Execute(Managers managers)
       at Microsoft.Mom.ConfigService.Engine.ConfigurationEngine.CommunicationHelper.StateSyncRequestTask.Run(Guid source, String cookie, Managers managers, IConfigurationDataAccessor dataAccessor, Stream stream, IConnection connection)
       at Microsoft.Mom.ConfigService.Engine.ConfigurationEngine.CommunicationHelper.StateSyncRequestTask.ConfigurationItems.ConfigurationItemCollection`2.CollectPublicProperties(IConfigurationDataAccessor dataAccessor)
       at Microsoft.Mom.ConfigService.Engine.ConfigurationEngine.CommunicationHelper.StateSyncRequestTask.ConfigurationItems..ctor(StateContext stateContext, IConfigurationDataAccessor dataAccessor)
       at Microsoft.Mom.ConfigService.Engine.ConfigurationEngine.CommunicationHelper.StateSyncRequestTask.CreateResponse(Managers managers)
       at Microsoft.Mom.ConfigService.Engine.ConfigurationEngine.Managers.Synchronize(OnDoSynchronizedWork onDoSynchronizedWork)
       at Microsoft.Mom.ConfigService.Engine.ConfigurationEngine.CommunicationHelper.StateSyncRequestTask.Execute(Managers managers)
       at Microsoft.EnterpriseManagement.Mom.DataAccess.SqlConnectionHandler.Open(SqlConnection sqlConnection, RetryPolicy retryPolicy, DatabaseConnection databaseConnection)
       at Microsoft.EnterpriseManagement.Mom.DataAccess.DatabaseConnection.Open()
       at Microsoft.EnterpriseManagement.Mom.DataAccess.QueryRequest.Execute(SqlNotificationRequest sqlNotificationRequest)
       at Microsoft.Mom.ConfigService.OpsMgrDataAccess.ConfigurationDataAccessor.QueryInstanceProperties(ReadOnlyCollection`1 instances)
       at Microsoft.EnterpriseManagement.Mom.DataAccess.SqlConnectionHandler.Open(SqlConnection sqlConnection, RetryPolicy retryPolicy, DatabaseConnection databaseConnection)
       at Microsoft.Mom.ConfigService.Engine.ConfigurationEngine.CommunicationHelper.StateSyncRequestTask.ConfigurationItems.ConfigurationItemCollection`2.CollectPublicProperties(IConfigurationDataAccessor dataAccessor)
       at Microsoft.Mom.ConfigService.Engine.ConfigurationEngine.CommunicationHelper.StateSyncRequestTask.ConfigurationItems..ctor(StateContext stateContext, IConfigurationDataAccessor dataAccessor)
       at Microsoft.EnterpriseManagement.Mom.DataAccess.DatabaseConnection.Open()
       at Microsoft.EnterpriseManagement.Mom.DataAccess.QueryRequest.Execute(SqlNotificationRequest sqlNotificationRequest)
       at Microsoft.Mom.ConfigService.OpsMgrDataAccess.ConfigurationDataAccessor.QueryInstanceProperties(ReadOnlyCollection`1 instances)
       at Microsoft.Mom.ConfigService.DataAccess.DatabaseAccessor.QueryInstanceProperties(ReadOnlyCollection`1 instances)
       at Microsoft.Mom.ConfigService.Engine.ConfigurationEngine.CommunicationHelper.StateSyncRequestTask.ConfigurationItems.Instances.CollectPublicProperties(ReadOnlyCollection`1 identities, IConfigurationDataAccessor dataAccessor)
       at Microsoft.Mom.ConfigService.Engine.ConfigurationEngine.CommunicationHelper.StateSyncRequestTask.ConfigurationItems.ConfigurationItemCollection`2.CollectPublicProperties(IConfigurationDataAccessor dataAccessor)
       at Microsoft.Mom.ConfigService.Engine.ConfigurationEngine.Managers.Synchronize(OnDoSynchronizedWork onDoSynchronizedWork)
       at Microsoft.Mom.ConfigService.Engine.ConfigurationEngine.CommunicationHelper.StateSyncRequestTask.ConfigurationItems..ctor(StateContext stateContext, IConfigurationDataAccessor dataAccessor)
       at Microsoft.Mom.ConfigService.Engine.ConfigurationEngine.CommunicationHelper.StateSyncRequestTask.Execute(Managers managers)
       at Microsoft.Mom.ConfigService.Engine.ConfigurationEngine.CommunicationHelper.StateSyncRequestTask.CreateResponse(Managers managers)
       at Microsoft.Mom.ConfigService.Engine.ConfigurationEngine.Managers.Synchronize(OnDoSynchronizedWork onDoSynchronizedWork)
       at Microsoft.Mom.ConfigService.Engine.ConfigurationEngine.CommunicationHelper.StateSyncRequestTask.Run(Guid source, String cookie, Managers managers, IConfigurationDataAccessor dataAccessor, Stream stream, IConnection connection)
       at Microsoft.Mom.ConfigService.Engine.ConfigurationEngine.CommunicationHelper.StateSyncRequestTask.Run(Guid source, String cookie, Managers managers, IConfigurationDataAccessor dataAccessor, Stream stream, IConnection connection)".

    Hi,
    I would like to suggest you reset the SDK account password (in this case, it seems like that the account is 'scomsdk'). And change the password for the account in service configuration.
    Please go through the below article for details:
    How to change the credentials for the SDK Service and for the Config Service in Microsoft System Center Operations Manager
    http://support.microsoft.com/kb/936220/en-us
    Regards,
    Yan Li
    Regards, Yan Li

  • Cannot open database " " requested by the login. The login failed for user " "

    Am noticing application event log error that states as the title Cannot open database "ReportingService_4a1e5b9cd6364e8389ed0af69d2628f5_Alerting" requested by the login. The login failed for user "domain\user"
    I think a couple weeks ago while troubleshooting something for a new backup appliance we were installing a password was changed on the user that it is displaying...it seems that this has happened before and I had to go into SQL Server Management studio to
    update the password but I'm not sure where it is I need to do this.
    Any assistance greatly appreciated.

    DOMAIN\User would refer to a domain user account, and SQL does not store passwords for those accounts. It does store passwords for SQL users. Can you validate the type of account and what level of access it has to that db?
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Can not open database - 10g

    Dear experts,
    I have a problem to open my database. ORA-01033: ORACLE initialization or shutdown in progress. I have restarted server many times. I tried several ways but no joy. Please see the steps I did to solve this -
    SQL> connect dmadmin /mypwdx89 as sysdba
    Connected.
    SQL> STARTUP MOUNT
    ORA-01081: cannot start already-running ORACLE - shut it down first
    SQL> ALTER DATABASE OPEN;
    ALTER DATABASE OPEN
    ERROR at line 1:
    ORA-01113: file 1 needs media recovery
    ORA-01110: data file 1: 'C:\ORACLE\PRODUCT\10.1.0\ORADATA\ZUMA\SYSTEM01.DBF'
    SQL> RECOVER DATABASE;
    ORA-00279: change 149935494 generated at 06/10/2009 17:05:33 needed for thread 1
    ORA-00289: suggestion :
    C:\ORACLE\PRODUCT\10.1.0\FLASH_RECOVERY_AREA\ZUMA\ARCHIVELOG\2009_06_23\O1_MF_1_
    673_%U_.ARC
    ORA-00280: change 149935494 for thread 1 is in sequence #673
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    ORA-00308: cannot open archived log
    'C:\ORACLE\PRODUCT\10.1.0\FLASH_RECOVERY_AREA\ZUMA\ARCHIVELOG\2009_06_10\O1_MF_1
    _673_530WXF9P_.ARC'
    ORA-27041: unable to open file
    OSD-04002: unable to open file
    O/S-Error: (OS 3) The system cannot find the path specified.
    SQL> select * from v$controlfile;
    STATUS
    NAME
    IS_
    C:\ORACLE\PRODUCT\10.1.0\ORADATA\ZUMA\CONTROL01.CTL
    NO
    C:\ORACLE\PRODUCT\10.1.0\ORADATA\ZUMA\CONTROL02.CTL
    NO
    STATUS
    NAME
    IS_
    C:\ORACLE\PRODUCT\10.1.0\ORADATA\ZUMA\CONTROL03.CTL
    NO
    SQL> shutdown immediate
    ORA-01109: database not open
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup nomount
    ORACLE instance started.
    Total System Global Area 171966464 bytes
    Fixed Size 787988 bytes
    Variable Size 145750508 bytes
    Database Buffers 25165824 bytes
    Redo Buffers 262144 bytes
    SQL> select name from v$controlfile;
    no rows selected
    SQL>
    SQL> alter database mount;
    Database altered.
    SQL> select name from v$controlfile;
    NAME
    C:\ORACLE\PRODUCT\10.1.0\ORADATA\ZUMA\CONTROL01.CTL
    C:\ORACLE\PRODUCT\10.1.0\ORADATA\ZUMA\CONTROL02.CTL
    C:\ORACLE\PRODUCT\10.1.0\ORADATA\ZUMA\CONTROL03.CTL
    SQL> alter database open;
    alter database open
    ERROR at line 1:
    ORA-01113: file 1 needs media recovery
    ORA-01110: data file 1: 'C:\ORACLE\PRODUCT\10.1.0\ORADATA\ZUMA\SYSTEM01.DBF'
    SQL>
    The I tried to recover datafile
    SQL> Recover datafile '<datafile-name>';
    again error - even can not open data file ...i restarted server .. no use..same error.
    Please help to resolve this issue.
    Regards,
    Ranjith John

    Hi All,
    Please see the alert log file ..file size is already few GBs now. There are errors in the file.
    It says - ORA-19815: WARNING: db_recovery_file_dest_size of 10048576000 bytes is 100.00% used, and has 0 remaining bytes available.
    so, i guess the back up was not done .please help to resovle this issue.
    ARC1: Error 19809 Creating archive log file to 'C:\ORACLE\PRODUCT\10.1.0\FLASH_RECOVERY_AREA\ZUMA\ARCHIVELOG\2009_04_14\O1_MF_1_37_U_.ARC'
    ARC1: All standby destinations failed; successful archival assumed
    ARC1: Failed to archive log 1 thread 1 sequence 37 (19809)
    Tue Apr 14 11:46:51 2009
    Errors in file c:\oracle\product\10.1.0\admin\zuma\bdump\zuma_arc1_1352.trc:
    ORA-16038: log 1 sequence# 37 cannot be archived
    ORA-19809: limit exceeded for recovery files
    ORA-00312: online log 1 thread 1: 'C:\ORACLE\PRODUCT\10.1.0\ORADATA\ZUMA\REDO01.LOG'
    Tue Apr 14 11:46:51 2009
    ARC0: Evaluating archive log 1 thread 1 sequence 37
    Tue Apr 14 11:46:51 2009
    Errors in file c:\oracle\product\10.1.0\admin\zuma\bdump\zuma_arc0_3828.trc:
    ORA-19815: WARNING: db_recovery_file_dest_size of 10048576000 bytes is 100.00% used, and has 0 remaining bytes available.
    You have the following choices to free up space from
    flash recovery area:
    1. Consider changing your RMAN retention policy.
    If you are using dataguard, then consider changing your
    RMAN archivelog deletion policy.
    2. Backup files to tertiary device such as tape using the
    RMAN command BACKUP RECOVERY AREA.
    3. Add disk space and increase the db_recovery_file_dest_size
    parameter to reflect the new space.
    4. Delete unncessary files using the RMAN DELETE command.
    If an OS command was used to delete files, then use
    RMAN CROSSCHECK and DELETE EXPIRED commands.
    Tue Apr 14 11:46:51 2009
    Errors in file c:\oracle\product\10.1.0\admin\zuma\bdump\zuma_arc0_3828.trc:
    ORA-19809: limit exceeded for recovery files
    ORA-19804: cannot reclaim 10017792 bytes disk space from 10048576000 limit
    ARC0: Error 19809 Creating archive log file to 'C:\ORACLE\PRODUCT\10.1.0\FLASH_RECOVERY_AREA\ZUMA\ARCHIVELOG\2009_04_14\O1_MF_1_37_U_.ARC'
    ARC0: All standby destinations failed; successful archival assumed
    ARC0: Failed to archive log 1 thread 1 sequence 37 (19809)
    Regards,
    Ranjith John

  • Connect to database failed,rc=-10709 Connection failed (RTE:Database name)

    Hi gurues, I'm facing this issue with an IDES on MaxDB with Windows.
    System was up and running until someone tries to make an upgrade of the kernel. Since then we can not start our system. we tried to rollback kernel release to the previous one but it didn't work.
    When we start our system from MMC console we can see all process in green but work processes are in RUN state and after a few minutes they goes down with the following error
    trc file: "dev_w0", trc level: 1, release: "701"
    ACTIVE TRACE LEVEL           1
    ACTIVE TRACE COMPONENTS      all, MJ

    B Mon May 16 23:57:31 2011
    B  create_con (con_name=R/3)
    B  Loading DB library '
    sirillium1\sapmnt\SED\SYS\exe\uc\NTAMD64\dbsdbslib.dll' ...
    B  Library '
    sirillium1\sapmnt\SED\SYS\exe\uc\NTAMD64\dbsdbslib.dll' loaded
    B  Version of '
    sirillium1\sapmnt\SED\SYS\exe\uc\NTAMD64\dbsdbslib.dll' is "700.08", patchlevel (0.24)
    B  New connection 0 created
    M sysno      00
    M sid        SED
    M systemid   562 (PC with Windows NT)
    M relno      7010
    M patchlevel 0
    M patchno    32
    M intno      20020600
    M make:      multithreaded, Unicode, 64 bit, optimized
    M pid        212
    M
    M  kernel runs with dp version 241000(ext=110000) (@(#) DPLIB-INT-VERSION-241000-UC)
    M  length of sys_adm_ext is 576 bytes
    M  ***LOG Q0Q=> tskh_init, WPStart (Workproc 0 212) [dpxxdisp.c   1348]
    I  MtxInit: 30000 0 0
    M  DpSysAdmExtCreate: ABAP is active
    M  DpSysAdmExtCreate: VMC (JAVA VM in WP) is not active
    M  DpShMCreate: sizeof(wp_adm)          22784     (1752)
    M  DpShMCreate: sizeof(tm_adm)          5912704     (29416)
    M  DpShMCreate: sizeof(wp_ca_adm)          24064     (80)
    M  DpShMCreate: sizeof(appc_ca_adm)     8000     (80)
    M  DpCommTableSize: max/headSize/ftSize/tableSize=500/16/552064/552080
    M  DpShMCreate: sizeof(comm_adm)          552080     (1088)
    M  DpSlockTableSize: max/headSize/ftSize/fiSize/tableSize=0/0/0/0/0
    M  DpShMCreate: sizeof(slock_adm)          0     (104)
    M  DpFileTableSize: max/headSize/ftSize/tableSize=0/0/0/0
    M  DpShMCreate: sizeof(file_adm)          0     (72)
    M  DpShMCreate: sizeof(vmc_adm)          0     (1864)
    M  DpShMCreate: sizeof(wall_adm)          (41664/36752/64/192)
    M  DpShMCreate: sizeof(gw_adm)     48
    M  DpShMCreate: SHM_DP_ADM_KEY          (addr: 000000000B2C0050, size: 6607136)
    M  DpShMCreate: allocated sys_adm at 000000000B2C0050
    M  DpShMCreate: allocated wp_adm at 000000000B2C2270
    M  DpShMCreate: allocated tm_adm_list at 000000000B2C7B70
    M  DpShMCreate: allocated tm_adm at 000000000B2C7BD0
    M  DpShMCreate: allocated wp_ca_adm at 000000000B86B450
    M  DpShMCreate: allocated appc_ca_adm at 000000000B871250
    M  DpShMCreate: allocated comm_adm at 000000000B873190
    M  DpShMCreate: system runs without slock table
    M  DpShMCreate: system runs without file table
    M  DpShMCreate: allocated vmc_adm_list at 000000000B8F9E20
    M  DpShMCreate: allocated gw_adm at 000000000B8F9EA0
    M  DpShMCreate: system runs without vmc_adm
    M  DpShMCreate: allocated ca_info at 000000000B8F9ED0
    M  DpShMCreate: allocated wall_adm at 000000000B8F9EE0

    M Mon May 16 23:57:32 2011
    M  rdisp/queue_size_check_value :  -> off
    M  ThTaskStatus: rdisp/reset_online_during_debug 0
    X  EmInit: MmSetImplementation( 2 ).
    X  MM global diagnostic options set: 0
    X  <ES> client 0 initializing ....
    X  Using implementation view
    X  <EsNT> Using memory model view.
    M  <EsNT> Memory Reset disabled as NT default
    X  ES initialized.
    M  ThInit: running on host sirillium1

    M Mon May 16 23:57:33 2011
    M  calling db_connect ...

    C  DBSDBSLIB : version 700.08, patch 0.024 (Make PL 0.32)
    C  MAXDB shared library (dbsdbslib) patchlevels (last 10)
    C    (0.024) Default value for max. input variables is 2000 (note 655018)
    C    (0.024) Profile parameter to define max. input variables (note 655018)
    C    (0.024) Switch SQLMODE after CREATE INDEX SERIAL (note 1267841)
    C    (0.024) Input parameters for SQL statements increased (note 655018)
    C    (0.018) Create index serial for MaxDB 7.6 (note 1267841)
    C    (0.018) More trace in case of packed to string conversion error (note 1262799)
    C    (0.016) R3trans export aborts with signal 6 (note 1262245)
    C    (0.009) IA64 alignment errors (note 1245982)
    C    (0.007) Support DB-Type 'SAP DB' by UPDSTAT (note 1225668)


    C  Loading SQLDBC client runtime ...
    C  SQLDBC SDK Version : SQLDBC.H  7.6.0    BUILD 007-123-091-175
    C  SQLDBC Library Version : libSQLDBC 7.6.5    BUILD 015-123-202-938
    C  SQLDBC client runtime is MaxDB 7.6.5.015 CL 202938
    C  SQLDBC supports new DECIMAL interface : 0
    C  SQLDBC supports VARIABLE INPUT data   : 1
    C  SQLDBC supports keepAlive indicator   : 0
    C  INFO : SQLOPT= -I 0 -t 0 -S SAPR3
    C  Try to connect (DEFAULT) on connection 0 ...
    C  *** ERROR => Connect to database failed, rc = -10709 (Connection failed (RTE:Database name is missing))
    [dbsdbsql.cpp 137]
    B  ***LOG BV3=> severe db error -10709    ; work process is stopped [dbsh#2 @ 1203] [dbsh    1203 ]
    B  ***LOG BY2=> sql error -10709 performing CON [dblink#3 @ 431] [dblink  0431 ]
    B  ***LOG BY0=> Connection failed (RTE:Database name is missing) [dblink#3 @ 431] [dblink  0431 ]
    M  ***LOG R19=> ThInit, db_connect ( DB-Connect 000256) [thxxhead.c   1449]
    M  in_ThErrHandle: 1
    M  *** ERROR => ThInit: db_connect (step 1, th_errno 13, action 3, level 1) [thxxhead.c   10563]

    M  Info for wp 0

    M    pid = 212
    M    severity = 0
    M    status = 0
    M    stat = WP_RUN
    M    waiting_for = NO_WAITING
    M    reqtype = DP_RQ_DIAWP
    M    act_reqtype = NO_REQTYPE
    M    rq_info = 0
    M    tid = -1
    M    mode = 255
    M    len = -1
    M    rq_id = 65535
    M    rq_source =
    M    last_tid = 0
    M    last_mode = 0
    M    semaphore = 0
    M    act_cs_count = 0
    M    csTrack = 0
    M    csTrackRwExcl = 0
    M    csTrackRwShrd = 0
    M    mode_cleaned_counter = 0
    M    control_flag = 0
    M    int_checked_resource(RFC) = 0
    M    ext_checked_resource(RFC) = 0
    M    int_checked_resource(HTTP) = 0
    M    ext_checked_resource(HTTP) = 0
    M    report = >                                        <
    M    action = 0
    M    tab_name = >                              <
    M    attachedVm = no VM

    M  *****************************************************************************
    M  *
    M  *  LOCATION    SAP-Server sirillium1_SED_00 on host sirillium1 (wp 0)
    M  *  ERROR       ThInit: db_connect
    M  *
    M  *  TIME        Mon May 16 23:57:33 2011
    M  *  RELEASE     701
    M  *  COMPONENT   Taskhandler
    M  *  VERSION     1
    M  *  RC          13
    M  *  MODULE      thxxhead.c
    M  *  LINE        10783
    M  *  COUNTER     1
    M  *
    M  *****************************************************************************

    M  PfStatDisconnect: disconnect statistics
    M  Entering TH_CALLHOOKS
    M  ThCallHooks: call hook >BtcCallLgCl< for event BEFORE_DUMP
    M  ThCallHooks: call hook >ThrSaveSPAFields< for event BEFORE_DUMP
    M  *** ERROR => ThrSaveSPAFields: no valid thr_wpadm [thxxrun1.c   723]
    M  *** ERROR => ThCallHooks: event handler ThrSaveSPAFields for event BEFORE_DUMP failed [thxxtool3.c  261]
    M  Entering ThSetStatError
    M  ThIErrHandle: do not call ThrCoreInfo (no_core_info=0, in_dynp_env=0)
    M  Entering ThReadDetachMode
    M  call ThrShutDown (1)...
    M  ***LOG Q02=> wp_halt, WPStop (Workproc 0 212) [dpnttool.c   334]
    We check several entries on this SDN site, and look for a lot of notes on the marketplace, and they always are related to default user in xuser files, but our xuser list output is ok. We have a DEFAULT connection to SAPSID user, a DBM connection to CONTROL user and a USERDBA connection.
    XUSER Entry  1
    Key         :DEFAULT          
    Username    :SAPSID                                                         
    UsernameUCS2:S.A.P.S.E.D. . . . . . . . . . . . . . . . . . . . . . . . . . .
    Password    :?????????
    PasswordUCS2:?????????
    Dbname      :SID              
    Nodename    :server1                                                     
    Sqlmode     :SAPR3  
    Cachelimit  :-1
    Timeout    
    Isolation  
    Charset     :<unspecified>    
    XUSER Entry  2
    Key         :c                
    Username    :CONTROL                                                        
    UsernameUCS2:C.O.N.T.R.O.L. . . . . . . . . . . . . . . . . . . . . . . . . .
    Password    :?????????
    PasswordUCS2:?????????
    Dbname      :SID              
    Nodename    :server1                                                     
    Sqlmode     :INTERNAL
    Cachelimit  :-1
    Timeout     :-1
    Isolation   :-1
    Charset     :<unspecified>    
    XUSER Entry  3
    Key         :c_J2EE           
    Username    :CONTROL                                                        
    UsernameUCS2:C.O.N.T.R.O.L. . . . . . . . . . . . . . . . . . . . . . . . . .
    Password    :?????????
    PasswordUCS2:?????????
    Dbname      :SID              
    Nodename    :server1                                                     
    Sqlmode     :SAPR3  
    Cachelimit  :-1
    Timeout    
    Isolation  
    Charset     :<unspecified>    
    XUSER Entry  4
    Key         :w                
    Username    :SUPERDBA                                                       
    UsernameUCS2:S.U.P.E.R.D.B.A. . . . . . . . . . . . . . . . . . . . . . . . .
    Password    :?????????
    PasswordUCS2:?????????
    Dbname      :SID              
    Nodename    :server1                                                     
    Sqlmode     :INTERNAL
    Cachelimit  :-1
    Timeout     :-1
    Isolation   :-1
    Charset     :<unspecified>    
    Any idea? we are out of ideas at this moment.
    Regards
    Edited by: Gustavo Goicochea on May 17, 2011 6:37 PM

    Natalia, this system was not resored nor copied, it was up and running before kernel update. We did some of the tests you said and someothers, here are some outputs.
    We update kernel to release 142
    R3trans -d and -x exit with (all with user SIDADM)
    SVERS table does exist and belongs to SAPSID
    dbmcli on SID>sql_execute select * from domain.tables where tablename='SVERS'
    OK
    END
    'SAPSID';'SAPSID';'SVERS';'';'TABLE';'TABLE';'20100406';'00054637';'20100406';'00054637';'20100406';'00054638';'NO';(null);20000;(null);x'0000000000004842';'NO';'NO';'YES';'NO';(null)
    Why it still says that SVERS table does not exist and SQL error 942?
    C  Now I'm connected to SAP DB
    C  00: server1-SID, since=20110518015619, ABAP= <unknown> (0)
    B  Connection 0 opened (DBSL handle 0)
    C  *** ERROR =>   prepare() of C_0000, rc=1, rcSQL=-942 (POS(28) Unknown table name:SVERS) [
    dbsdbsql.cpp 1604]
    C  *** ERROR => SQL PREPARE on connection 0, rc=-942 (POS(28) Unknown table name:SVERS) [dbslsdb.cpp  7253]
    C sc_p=000000000CFAECC0,no=0,idc_p=0000000000000000,con=0,act=0,slen=34,smax=256,#vars=0,stmt=0000000002EA0AF0,table=SVERS                        
    C  SELECT VERSION INTO ? FROM SVERS  ;
    B  ***LOG BZA=> table SVERS      does not exist on database            [dblink#4 @ 1301] [dblink  1301 ]
    M  ***LOG R19=> ThInit, db_connect ( DB-Connect 004096) [thxxhead.c   1515]
    M  in_ThErrHandle: 1
    M  *** ERROR => ThInit: db_connect (step 1, th_errno 13, action 3, level 1) [thxxhead.c   10824]

    Users seem to be ok
    dbmcli on SID>sql_execute SELECT username, usermode FROM users
    OK
    END
    'CONTROL';'ADMIN'
    'SUPERDBA';'SYSDBA'
    'SAPSID';'DBA'
    'SAPR3';'DBA'
    User SAPR3 does not have anything on database
    dbmcli on SID>sql_execute select * from domain.tables where owner='SAPR3'
    ERR
    -24988,ERR_SQL: SQL error
    100,Row not found
    Any idea?
    regards

  • Attached database failed for sever "blah". (Microsoft.SqlServer.Smo)

    ===================================
    Attach database failed for Server 'DENR-HP'.  (Microsoft.SqlServer.Smo)
    For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.1600.1+((KJ_RTM).100402-1539+)&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Attach+database+Server&LinkId=20476
    Program Location:
       at Microsoft.SqlServer.Management.Smo.Server.AttachDatabase(String name, StringCollection files)
       at Microsoft.SqlServer.Management.SqlManagerUI.AttachDatabaseData.PrimaryFile.Attach()
       at Microsoft.SqlServer.Management.SqlManagerUI.AttachDatabase.SendDataToServer()
    ===================================
    An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)
    Program Location:
       at Microsoft.SqlServer.Management.Common.ServerConnection.ExecuteNonQuery(String sqlCommand, ExecutionTypes executionType)
       at Microsoft.SqlServer.Management.Common.ServerConnection.ExecuteNonQuery(StringCollection sqlCommands, ExecutionTypes executionType)
       at Microsoft.SqlServer.Management.Smo.ExecutionManager.ExecuteNonQuery(StringCollection queries)
       at Microsoft.SqlServer.Management.Smo.Server.AttachDatabaseWorker(String name, StringCollection files, String owner, AttachOptions attachOptions)
       at Microsoft.SqlServer.Management.Smo.Server.AttachDatabase(String name, StringCollection files)
    ===================================
    The database 'PlanningDB' cannot be opened because it is version 655. This server supports version 611 and earlier. A downgrade path is not supported.
    Could not open new database 'PlanningDB'. CREATE DATABASE is aborted. (.Net SqlClient Data Provider)
    For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&EvtSrc=MSSQLServer&EvtID=948&LinkId=20476
    Server Name: (local)
    Error Number: 948
    Severity: 20
    State: 1
    Line Number: 1
    Program Location:
       at Microsoft.SqlServer.Management.Common.ConnectionManager.ExecuteTSql(ExecuteTSqlAction action, Object execObject, DataSet fillDataSet, Boolean catchException)
       at Microsoft.SqlServer.Management.Common.ConnectionManager.ExecuteTSql(ExecuteTSqlAction action, Object execObject, DataSet fillDataSet, Boolean catchException)
       at Microsoft.SqlServer.Management.Common.ServerConnection.ExecuteNonQuery(String sqlCommand, ExecutionTypes executionType)

    Hi,
    As Olaf’s post, you cannot restore or attach a database which is created from a higher version of SQL Server to a lower version of SQL Server.
    However, there are some ways which can help you to move a database to a lower version of SQL Server. I recommend you to use Generate Scripts Wizard of SQL Server Management Studio (SSMS), you can script all the database objects in SQL Server 2008, then run
    the SQL scripts in SQL Server 2005, for more details, you can follow the steps in this blog:
    How to migrate a SQL Server database to a lower version. Also you can try to use the Import and Export Wizard to move database from SQL Server 2008 to SQL Server 2005,for more details, please review this article:
    How to: Run the SQL Server Import and Export Wizard.
    Thanks
    Lydia Zhang

  • Opening database read only

    I am unable to open database in read only mode i used
    SQL> STARTUP NOMOUNT
    ORACLE instance started.
    Total System Global Area 101784276 bytes
    Fixed Size 453332 bytes
    Variable Size 75497472 bytes
    Database Buffers 25165824 bytes
    Redo Buffers 667648 bytes
    SQL> ALTER DATABASE MOUNT;
    Database altered.
    SQL> ALTER DATABASE OPEN READ ONLY;
    ALTER DATABASE OPEN READ ONLY
    ERROR at line 1:
    ORA-01187: cannot read from file 1 because it failed verification tests
    ORA-01110: data file 1: 'G:\ORACLE\ORADATA\ORCL\O1_MF_SYSTEM_ZYJOFL00_.DBF'
    even
    SQL> shut
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup open read only
    ORACLE instance started.
    Total System Global Area 101784276 bytes
    Fixed Size 453332 bytes
    Variable Size 75497472 bytes
    Database Buffers 25165824 bytes
    Redo Buffers 667648 bytes
    Database mounted.
    ORA-01187: cannot read from file 1 because it failed verification tests
    ORA-01110: data file 1: 'G:\ORACLE\ORADATA\ORCL\O1_MF_SYSTEM_ZYJOFL00_.DBF'
    this does'nt works though i am able to open read write
    SQL> alter database open;
    Database altered.

    I RENAMED FILE TO SYSTEM01.DBF ????
    why you relocate that file ?. That was not the file with problems.
    The file with problems is this one.
    'G:\ORACLE\ORADATA\ORCL\O1_MF_SYSTEM_ZYJOFL00_.DBF'
    I propose you to set offline the tablespace that is related to this file ( 'G:\ORACLE\ORADATA\ORCL\O1_MF_SYSTEM_ZYJOFL00_.DBF'
    ) and try to open the database in read only mode if this get succesful, after we can try to relocate the another file.
    What is the tablespace that is related to that datafile ?
    Joel P�rez

  • 9.2 create Database fails in sql.bsq

    I have installed Oracle 9.2.0.1.0. It appears to have installed correctly.
    I am attempting to create a new database. The script sql.bsq in %ORACLE_HOME%\rdbms\admin appears to be trying to create a cluster around line 1329. I don't use clusters (per se).
    I am rcving an the following error a trace file.
    *** SESSION ID:(10.1) 2003-09-08 16:59:56.000
    ORA-00604: error occurred at recursive SQL level 1
    ORA-01569: data file too small for system dictionary tables
    Offending statement at line 1332
    create cluster c_cobj# (obj# number)
    pctfree 0 pctused 50
    /* space for: update cdef$ set condition = 'col IS NOT NULL' at // */
    size 300
    storage (initial 50K) /* avoid space management during IOR I */
    ORA-01501: CREATE DATABASE failed
    ORA-01519: error while processing file '%ORACLE_HOME%\RDBMS\ADMIN\SQL.BSQ' near line 1332
    ORA-00604: error occurred at recursive SQL level 1
    ORA-01569: data file too small for system dictionary tables
    Can someone point me to an answer for this?
    I have 2 95MB files being created in the system tablespace. and I can provide you either my create database script and/or my init.ora file, if they will assist.
    Thnak you

    Thank you.
    I have changed the create database statement several times to try different possiblities.
    I have put maxsize unlimited. That failed.
    I have put maxsize 200M (with a second file of maxsize 200M) that failed.
    I have added the temp storage syntax. That failed.
    All of these failed in sql.bsq and all used the ORA 1569 error about a data file being too small.
    WHAT DATA FILE? The system tablespace data file(s) have never been increased (by Oracle) from the original size value I provided (whether that size was 500K, or 95M). So what data file is Oracle complaining about?
    In addition, I have seen the following message in the alert_project.log:
    ========================================
    Assigning activation ID 2846189359 (0xa9a5672f)
    Thread 1 opened at log sequence 1
    Current log# 1 seq# 1 mem# 0: D:\DATA\ORACLE\ORADATA\BURKE\LOGS\LOGFILE1.LOG
    Current log# 1 seq# 1 mem# 1: D:\ORACLE\ORADATA\BURKE\LOGS\LOGFILE1.LOG
    Successful open of redo thread 1.
    Tue Sep 09 11:42:39 2003
    SMON: enabling cache recovery
    Tue Sep 09 11:42:39 2003
    create tablespace SYSTEM datafile 'd:\data\Oracle\oradata\burke\system01.dbf' size 500K REUSE
              autoextend on next 500K maxsize 200M,
    'd:\data\Oracle\oradata\burke\system02.dbf' size 500k REUSE
              autoextend on next 500K maxsize 200M
    default storage (initial 10K next 10K) EXTENT MANAGEMENT DICTIONARY online
    Tue Sep 09 11:42:39 2003
    Completed: create tablespace SYSTEM datafile 'd:\data\Oracle
    Tue Sep 09 11:42:39 2003
    create rollback segment SYSTEM tablespace SYSTEM
    storage (initial 50K next 50K)
    Completed: create rollback segment SYSTEM tablespace SYSTEM
    Tue Sep 09 11:42:40 2003
    Errors in file d:\data\oracle\admin\burke\udump\project_ora_1324.trc:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-01569: data file too small for system dictionary tables
    ========================================
    The line that says
    default storage (initial 10K next 10K) EXTENT MANAGEMENT DICTIONARY online
    is not in my create database statement. Can it be a portion of my problem?
    I don't see it in the 9.2 SQL manual for create database.
    I appreciate the assistance that has been provided, but I still need some more.
    Thanks you all again.

  • LMS 4.0.1 cannot access rmeng database via Open Database Schema Support

    Hi,
    we are running LMS 3.2 and I am using Open Database Schema Support to transfer the data from cmf, ani and rmeng databases.
    We now want to migrate to  LMS 4.0.1 and I am trying to use the same scripts to do the same. I am using iAnyWhere JDBC Access Method, the same one I use successfully with LMS 3.2. Can access the tables in cmf and ani databases, but cannot the tables in rmeng database. I do not think my scripts are wrong, I more think enabling access to databases does not work correctly.
    I tried to run dbaccess.pl in debug mode and can see there are errors for example while enabling access to the table  NETWORK_DEVICES in rmeng, please see the log below.
    We tried to restart LMS and also the whole server ( it is MS Windows 2008 R2 on VMware ), but this did not help.
    Appreciate if anyone has an idea what could be wrong.
    Thanks,
    Vlad
    D:\BAT>%cwbin%perl  %cwbin%dbaccess.pl install debug
    Enter new Password for database view user [lmsdatafeed]:
    Re-enter new Password:
    Executing on cmf...
       WARN: User ID 'lmsdatagrp' does not exist (DBD: execute failed).
       WARN: User ID 'lmsdatafeed' does not exist (DBD: execute failed).
       WARN: User ID 'lmsdatagrp' does not exist (DBD: execute failed).
       WARN: User ID 'lmsdatagrp' does not exist (DBD: execute failed).
    Executing on ani...
       WARN: User ID 'lmsdatagrp' does not exist (DBD: execute failed).
       WARN: User ID 'lmsdatafeed' does not exist (DBD: execute failed).
       WARN: User ID 'lmsdatagrp' does not exist (DBD: execute failed).
       WARN: User ID 'lmsdatagrp' does not exist (DBD: execute failed).
       WARN: User ID 'lmsdatagrp' does not exist (DBD: execute failed).
    Executing on dfmFh...
       WARN: User ID 'lmsdatagrp' does not exist (DBD: execute failed).
       WARN: User ID 'lmsdatafeed' does not exist (DBD: execute failed).
       WARN: User ID 'lmsdatagrp' does not exist (DBD: execute failed).
       WARN: User ID 'lmsdatagrp' does not exist (DBD: execute failed).
       WARN: User ID 'lmsdatagrp' does not exist (DBD: execute failed).
    Executing on rmeng...
       WARN: User ID 'lmsdatagrp' does not exist (DBD: execute failed).
       WARN: User ID 'lmsdatafeed' does not exist (DBD: execute failed).
       WARN: User ID 'lmsdatagrp' does not exist (DBD: execute failed).
       WARN: User ID 'lmsdatagrp' does not exist (DBD: execute failed).
       WARN: User ID 'lmsdatagrp' does not exist (DBD: execute failed).
       WARN: User ID 'lmsdatagrp' does not exist (DBD: execute failed).
       WARN: User ID 'lmsdatagrp' does not exist (DBD: execute failed).
       WARN: User ID 'lmsdatagrp' does not exist (DBD: execute failed).
       WARN: User ID 'lmsdatagrp' does not exist (DBD: execute failed).
       WARN: User ID 'lmsdatagrp' does not exist (DBD: execute failed).
       WARN: User ID 'lmsdatagrp' does not exist (DBD: execute failed).
       WARN: User ID 'lmsdatagrp' does not exist (DBD: execute failed).
       WARN: User ID 'lmsdatagrp' does not exist (DBD: execute failed).
       WARN: Table 'SYSLOG_TODAY' not found (DBD: execute failed).
       WARN: Table 'SYSLOG_LASTDAY' not found (DBD: execute failed).
       WARN: Table 'NETWORK_DEVICES' not found (DBD: execute failed).
       WARN: External login for server 'CMFSA' could not be found (DBD: execute fail
    ed).
       WARN: Remote server 'CMFSA' could not be found (DBD: execute failed).
       WARN: Unable to connect to server 'CMFSA': [Microsoft][ODBC Driver Manager] T
    he specified DSN contains an architecture mismatch between the Driver and Applic
    ation (DBD: execute failed).
       WARN: Table 'NETWORK_DEVICES' not found (DBD: execute failed).
       WARN: Table 'NETWORK_DEVICES' not found (DBD: execute failed).
       WARN: Table 'NETWORK_DEVICES' not found (DBD: execute failed).
       WARN: Table 'NETWORK_DEVICES' not found (DBD: execute failed).
       WARN: Table 'NETWORK_DEVICES' not found (DBD: execute failed).
       WARN: Table 'NETWORK_DEVICES' not found (DBD: execute failed).
       WARN: Table 'NETWORK_DEVICES' not found (DBD: execute failed).
       WARN: Table 'NETWORK_DEVICES' not found (DBD: execute failed).
       WARN: Table 'NETWORK_DEVICES' not found (DBD: execute failed).
       WARN: Table 'NETWORK_DEVICES' not found (DBD: execute failed).
       WARN: Table 'NETWORK_DEVICES' not found (DBD: execute failed).
       WARN: Table 'Network_devices' not found (DBD: execute failed).
       WARN: Table 'NETWORK_DEVICES' not found (DBD: execute failed).
       WARN: Table 'DEVICE_INVENTORY' not found (DBD: execute failed).
       WARN: Table 'MEMORY_INVENTORY' not found (DBD: execute failed).
       WARN: Table 'DEVICE_CREDENTIAL_STATUS' not found (DBD: execute failed).
       WARN: Table 'PROCESSOR_INVENTORY' not found (DBD: execute failed).
       WARN: Table 'DEVICE_INVENTORY_COLLECTION_STATUS' not found (DBD: execute fail
    ed).
       WARN: Table 'DEVICE_CONFIG_ARCHIVE_STATUS' not found (DBD: execute failed).
       WARN: Table 'CHANGE_AUDIT_HISTORY' not found (DBD: execute failed).
       WARN: Table 'MODULE_INVENTORY' not found (DBD: execute failed).
       WARN: Table 'PORT_INVENTORY' not found (DBD: execute failed).
       WARN: Table 'DEVICE_ENERGYWISE' not found (DBD: execute failed).
       WARN: Table 'PORT_ENERGYWISE' not found (DBD: execute failed).
       WARN: Table 'SYSLOG_TODAY' not found (DBD: execute failed).
       WARN: Table 'SYSLOG_LASTDAY' not found (DBD: execute failed).

    Hello Joseph,
    thanks for the reply. I was confused because I am not getting any such errors on LMS 3.2 server.
    I am using many Java programs that work well with LMS3.2, but let me mention one that is probably the best to demonstrate the issue I have with the new version. It works well on LMS3.2 with all databases. On LMS4.0.1 it works well with cmf and ani, but cannot dig any data from rmeng.
    Here is the batch I run on the LMS 4.0.1 server ( it is not the whole file as it is much larger ):
    =================================================================================
    @echo *************************************
    @echo Starting Creating MySQL Mirror file
    @echo *************************************
    set classpath=d:\progra~2\CSCOpx\lib\classpath\;d:\bat\
    @echo Common Services db, Network_Device view
    java CW_Java_CreateSQL cmf password Network_Devices CW_Network_Devices CW_Network_Devices.txt Device_Id Device_Display_Name Management_IpAddress Host_Name Domain_Name sysObjectID Device_Category Device_Series Device_Model UDF0 UDF1 UDF2 UDF3 UDF4 UDF5 UDF6 UDF7 UDF8 UDF9 UDF10 UDF11 UDF12 UDF13 UDF14 UDF15
    goto jv1_%errorlevel%
    :jv1_0
    @echo Campus Manager db, End Hosts view
    java CW_Java_CreateSQL ani password End_Hosts CW_End_Hosts CW_End_Hosts.txt HostName UserName IPAddress SubnetMask MACAddress DeviceName Device LastSeen Port VLAN Subnet Notes PrefixLength PortDuplex VTPDomain VlanId PortName IPv6Address dot1xEnabled associatedRouters
    goto jv2_%errorlevel%
    :jv2_0
    @echo Resource Manager Essentials db, Device_Inventory view
    java CW_Java_CreateSQL rmeng password Device_Inventory CW_Device_Inventory CW_Device_Inventory.txt Device_Id Device_Display_Name Device_Description Device_Location Device_Contact Device_SW_Version User_Defined_Serial_Number
    goto jv3_%errorlevel%
    :jv3_0
    @echo Resource Manager Essentials db, Module_Inventory view
    java CW_Java_CreateSQL rmeng password Module_Inventory CW_Module_Inventory CW_Module_Inventory.txt Device_Id Device_Display_Name Module_Name Vendor_Type SW_Version FW_Version Slot_Number Oper_Status Admin_Status
    goto jv4_%errorlevel%
    :jv4_0
    @echo Resource Manager Essentials db, Port_Inventory view
    java CW_Java_CreateSQL rmeng password Port_Inventory CW_Port_Inventory CW_Port_Inventory.txt Device_Id Device_Display_Name Port_Name Port_Desc Port_Type Port_Admin_Status Port_Oper_Status Port_Speed Port_Duplex_Mode Is_Link_Port Is_Access_Port Is_Trunk_Port Is_Port_Channel Vlan_Name VlanId VTPDomain Neighbour_Type
    goto jv5_%errorlevel%
    :jv5_0
    @echo Resource Manager Essentials db, Processor_Inventory view
    java CW_Java_CreateSQL rmeng password Processor_Inventory CW_Processor_Inventory CW_Processor_Inventory.txt Device_Id Device_Display_Name Processor_model_name Processor_vendor_type Processor_manufacturer serialnumber
    goto jv6_%errorlevel%
    :jv6_0
    @echo *************************************
    @echo Finished Creating MySQL Mirror file
    @echo *************************************
    =================================================================================
    Here is the log:
    =================================================================================
    Starting Creating MySQL Mirror file
    D:\BAT>set classpath=d:\progra~2\CSCOpx\lib\classpath\;d:\bat\
    Common Services db, Network_Device view
    D:\BAT>java CW_Java_CreateSQL cmf password Network_Devices CW_Network_Devices CW_Ne
    twork_Devices.txt Device_Id Device_Display_Name Management_IpAddress Host_Name D
    omain_Name sysObjectID Device_Category Device_Series Device_Model UDF0 UDF1 UDF2
    UDF3 UDF4 UDF5 UDF6 UDF7 UDF8 UDF9 UDF10 UDF11 UDF12 UDF13 UDF14 UDF15
    D:\BAT>goto jv1_0
    Campus Manager db, End Hosts view
    D:\BAT>java CW_Java_CreateSQL ani password End_Hosts CW_End_Hosts CW_End_Hosts.txt
    HostName UserName IPAddress SubnetMask MACAddress DeviceName Device LastSeen Por
    t VLAN Subnet Notes PrefixLength PortDuplex VTPDomain VlanId PortName IPv6Addres
    s dot1xEnabled associatedRouters
    D:\BAT>goto jv2_0
    Resource Manager Essentials db, Device_Inventory view
    D:\BAT>java CW_Java_CreateSQL rmeng password Device_Inventory CW_Device_Inventory C
    W_Device_Inventory.txt Device_Id Device_Display_Name Device_Description Device_L
    ocation Device_Contact Device_SW_Version User_Defined_Serial_Number
    Exception in thread "main" java.sql.SQLException: [Sybase][ODBC Driver][SQL Anyw
    here]Table 'Device_Inventory' not found
            at ianywhere.ml.jdbcodbc.IIStatement.executeQuery(Native Method)
            at ianywhere.ml.jdbcodbc.IStatement.executeQuery(IStatement.java:201)
            at CW_Java_CreateSQL.main(CW_Java_CreateSQL.java:102)
    D:\BAT>goto jv3_1
    Error Creating MySQL Mirror file
    =================================================================================
    The line 102 in Java program is this line:
    rs = stmt.executeQuery(query);
    Attached is the full Java program - CW_Java_CreateSQL.java
    Thank you,
    Vlad

  • Backup database fail

    hi am trying to do backup using rman but database fail
    C:\>rman target sys/pswd@sid NOCATALOG
    Recovery Manager: Release 11.2.0.1.0 - Production on Thu Nov 7 17:47:34 2013
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    connected to target database: SMSDEV (DBID=3638300981, not open)
    using target database control file instead of recovery catalog
    RMAN> backup database;
    Starting backup at 07-NOV-13
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=133 device type=DISK
    channel ORA_DISK_1: starting full datafile backup set
    channel ORA_DISK_1: specifying datafile(s) in backup set
    input datafile file number=00010 name=C:\APP\TSHIFHIWA\PRODUCT\11.2.0\DBHOME_1\DATABASE\TEST
    input datafile file number=00008 name=C:\APP\TSHIFHIWA\ORADATA\SMSDEV\GATEWAY_TBS.DBF
    input datafile file number=00001 name=C:\APP\TSHIFHIWA\ORADATA\SMSDEV\SYSTEM01.DBF
    input datafile file number=00002 name=C:\APP\TSHIFHIWA\ORADATA\SMSDEV\SYSAUX01.DBF
    input datafile file number=00003 name=C:\APP\TSHIFHIWA\ORADATA\SMSDEV\UNDOTBS01.DBF
    input datafile file number=00004 name=C:\APP\TSHIFHIWA\ORADATA\SMSDEV\USERS01.DBF
    input datafile file number=00007 name=C:\APP\TSHIFHIWA\PRODUCT\11.2.0\DBHOME_1\DATABASE\TEMP09
    input datafile file number=00009 name=C:\APP\TSHIFHIWA\ORADATA\SMSDEV\ECADASTRE_TBS.DBF
    input datafile file number=00005 name=C:\APP\TSHIFHIWA\ORADATA\SMSDEV\TEMP06.DBF
    input datafile file number=00006 name=C:\APP\TSHIFHIWA\ORADATA\SMSDEV\TEMP05.DBF
    channel ORA_DISK_1: starting piece 1 at 07-NOV-13
    RMAN-03009: failure of backup command on ORA_DISK_1 channel at 11/07/2013 17:51:55
    ORA-19809: limit exceeded for recovery files
    ORA-19804: cannot reclaim 52428800 bytes disk space from 5218762752 limit
    continuing other job steps, job failed will not be re-run
    channel ORA_DISK_1: starting full datafile backup set
    channel ORA_DISK_1: specifying datafile(s) in backup set
    including current control file in backup set
    including current SPFILE in backup set
    channel ORA_DISK_1: starting piece 1 at 07-NOV-13
    channel ORA_DISK_1: finished piece 1 at 07-NOV-13
    piece handle=C:\APP\TSHIFHIWA\FLASH_RECOVERY_AREA\SMSDEV\BACKUPSET\2013_11_07\O1_MF_NCSNF_TAG2013110
    t=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of backup command on ORA_DISK_1 channel at 11/07/2013 17:51:55
    ORA-19809: limit exceeded for recovery files
    ORA-19804: cannot reclaim 52428800 bytes disk space from 5218762752 limit

    i did this still geting error
    SQL> connect /as sysdba
    Connected.
    SQL> ALTER SYSTEM SET DB_RECOVERY_FILE_DEST_SIZE=4294967296 SCOPE=BOTH;
    System altered.
    SQL> commit;
    Commit complete.
    SQL> shutdown abort;
    ORACLE instance shut down.
    SQL> startup mount;
    ORACLE instance started.
    Total System Global Area  535662592 bytes
    Fixed Size                  1375792 bytes
    Variable Size             373293520 bytes
    Database Buffers          155189248 bytes
    Redo Buffers                5804032 bytes
    Database mounted.
    SQL> exit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Pr
    oduction
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    C:\>rman target sys/pswd@SID NOCATALOG
    Recovery Manager: Release 11.2.0.1.0 - Production on Thu Nov 7 19:16:33 2013
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    connected to target database: SMSDEV (DBID=3638300981, not open)
    using target database control file instead of recovery catalog
    RMAN> delete backup;
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=133 device type=DISK
    List of Backup Pieces
    BP Key  BS Key  Pc# Cp# Status      Device Type Piece Name
    3       3       1   1   AVAILABLE   DISK        C:\APP\TSHIFHIWA\FLASH_RECOVERY_
    AREA\SMSDEV\BACKUPSET\2013_11_07\O1_MF_NCSNF_TAG20131107T182444_97QHXTTS_.BKP
    4       4       1   1   AVAILABLE   DISK        C:\APP\TSHIFHIWA\FLASH_RECOVERY_
    AREA\SMSDEV\BACKUPSET\2013_11_07\O1_MF_NCSNF_TAG20131107T183949_97QJSS14_.BKP
    7       7       1   1   AVAILABLE   DISK        C:\APP\TSHIFHIWA\FLASH_RECOVERY_
    AREA\SMSDEV\BACKUPSET\2013_11_07\O1_MF_NCSNF_TAG20131107T191006_97QLKMYL_.BKP
    Do you really want to delete the above objects (enter YES or NO)? yes
    deleted backup piece
    backup piece handle=C:\APP\TSHIFHIWA\FLASH_RECOVERY_AREA\SMSDEV\BACKUPSET\2013_1
    1_07\O1_MF_NCSNF_TAG20131107T191006_97QLKMYL_.BKP RECID=7 STAMP=830891603
    Deleted 1 objects
    RMAN-06207: WARNING: 2 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    C:\APP\TSHIFHIWA\FLASH_RECOVERY_AREA\SMSDEV\BACKUPSE
    T\2013_11_07\O1_MF_NCSNF_TAG20131107T182444_97QHXTTS_.BKP
    RMAN-06214: Backup Piece    C:\APP\TSHIFHIWA\FLASH_RECOVERY_AREA\SMSDEV\BACKUPSE
    T\2013_11_07\O1_MF_NCSNF_TAG20131107T183949_97QJSS14_.BKP
    RMAN> backup database;
    Starting backup at 07-NOV-13
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting full datafile backup set
    channel ORA_DISK_1: specifying datafile(s) in backup set
    input datafile file number=00010 name=C:\APP\TSHIFHIWA\PRODUCT\11.2.0\DBHOME_1\D
    ATABASE\TEST
    input datafile file number=00008 name=C:\APP\TSHIFHIWA\ORADATA\SMSDEV\GATEWAY_TB
    S.DBF
    input datafile file number=00001 name=C:\APP\TSHIFHIWA\ORADATA\SMSDEV\SYSTEM01.D
    BF
    input datafile file number=00002 name=C:\APP\TSHIFHIWA\ORADATA\SMSDEV\SYSAUX01.D
    BF
    input datafile file number=00003 name=C:\APP\TSHIFHIWA\ORADATA\SMSDEV\UNDOTBS01.
    DBF
    input datafile file number=00004 name=C:\APP\TSHIFHIWA\ORADATA\SMSDEV\USERS01.DB
    F
    input datafile file number=00007 name=C:\APP\TSHIFHIWA\PRODUCT\11.2.0\DBHOME_1\D
    ATABASE\TEMP09
    input datafile file number=00009 name=C:\APP\TSHIFHIWA\ORADATA\SMSDEV\ECADASTRE_
    TBS.DBF
    input datafile file number=00005 name=C:\APP\TSHIFHIWA\ORADATA\SMSDEV\TEMP06.DBF
    input datafile file number=00006 name=C:\APP\TSHIFHIWA\ORADATA\SMSDEV\TEMP05.DBF
    channel ORA_DISK_1: starting piece 1 at 07-NOV-13
    RMAN-03009: failure of backup command on ORA_DISK_1 channel at 11/07/2013 19:20:
    10
    ORA-19809: limit exceeded for recovery files
    ORA-19804: cannot reclaim 52428800 bytes disk space from 4294967296 limit
    continuing other job steps, job failed will not be re-run
    channel ORA_DISK_1: starting full datafile backup set
    channel ORA_DISK_1: specifying datafile(s) in backup set
    including current control file in backup set
    including current SPFILE in backup set
    channel ORA_DISK_1: starting piece 1 at 07-NOV-13
    channel ORA_DISK_1: finished piece 1 at 07-NOV-13
    piece handle=C:\APP\TSHIFHIWA\FLASH_RECOVERY_AREA\SMSDEV\BACKUPSET\2013_11_07\O1
    _MF_NCSNF_TAG20131107T191653_97QLYCJK_.BKP tag=TAG20131107T191653 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of backup command on ORA_DISK_1 channel at 11/07/2013 19:20:
    10
    ORA-19809: limit exceeded for recovery files
    ORA-19804: cannot reclaim 52428800 bytes disk
    space from 4294967296 limit

  • Using ASP with oo4o - cannot open database

    I was using ODBC - ADODB in some ASP pages to interact with an Oracle DB (8.17). Everything works fine but large queries get very slow.
    I was trying to move to Oracle oo4o but I cannot connect to the DB.
    Here's the code (pretty basic)...
    Dim OO4OServer, OO4ODB
    Set OO4OServer = CreateObject("OracleInProcServer.XOraServer")
    Set OO4ODB = OO4OServer.OpenDatabase("Applix", "Applix_View/view", 0)
    SQL = "SELECT first_name,last_name,ext FROM hd_contact where contact_id=" & BadgeNo
    Set RS = OO4ODB.CreateDynaset(SQL , ORADYN_NOCACHE)
    It fails on the OpenDatabase statement:
    Microsoft VBScript runtime (0x800A000D)
    Type mismatch: 'OpenDatabase'
    Any ideas?

    user6732738 wrote:
    hi, i'm trying to do an small program, where i'm connecting to the DB, using JDBC driver for sql server 2008. This is my connection code:
    try{
    Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
    parametros = "jdbc:sqlserver://localhost:1433;databaseName=java;integratedSecurity=true;";
    con = DriverManager.getConnection(parametros);
    msg.showMessageDialog(this,"Connection to DB OK","information",1);
    }catch(SQLException e){
    mensaje.showMessageDialog(this,e.getMessage(),"Sql Error",0);
    System.out.println(e.getMessage());
    }catch(ClassNotFoundException e2){
    msg.showMessageDialog(this,e2.getMessage(),"Sql Error",0);
    This is the error message i get: Cannot open database java requested by the login. The login failed
    If i change my database "java" to "master", I can make a successfull connection. I don't want to use a user and password on my java code, instead i want to use integrated security. How can i fix this?Did you load the library required for integrated security as described in the Microsoft SQL Server JDBC driver documentation?

  • Master unable to open database

    I am trying to run a replicated Berkeley DB instance and while the environment is created successfully and the master is elected, when the master attempts to open the database it returns an ENOENT. According the the documentation (and replication guide) this type of error occurs upon open when a replica attempts to open the database when it has not been created yet. While this makes sense for the replica, it doesn't seem like the master should ever return this error, particularly since the master has the DB_CREATE flag set. It is unclear to my why it is that the master replica is unable to open the database, does anyone know why this is occurring?
    Here is the relevant code:
    try
    u_int32_t envFlags;
    // First initialize the database enviroment information
    envFlags = DB_CREATE | // If the environment does not exist, create it.
    DB_RECOVER | // Run normal recovery
    DB_INIT_LOCK | // Initialize locking
    DB_INIT_LOG | // Initialize logging
    DB_INIT_MPOOL | // Initialize the cache
    DB_INIT_TXN | // Initialize transactions
    DB_INIT_REP | // Initialize replication
    DB_THREAD; // free-threaded (thread-safe)
    env_->set_errfile(stderr);
    //Sets verbose output to make replication easier to debug
    env_->set_verbose(DB_VERB_REPLICATION, 1);
    //Configure the local server
    env_->repmgr_set_local_site(local_.ip.c_str(), local_.port, 0);
    env_->repmgr_add_remote_site(replica.ip.c_str(), replica.port, NULL, 0);
    env_->rep_set_nsites(2);
    //If a role is specified then set the databases priority accordingly.
    switch ( r )
    case MASTER:
    env_->rep_set_priority(500);
    cerr << "Master Priority" << endl;
    break;
    case SLAVE:
    env_->rep_set_priority(50);
    cerr << "Slave Priority" << endl;
    break;
    case UNKNOWN:
    default:
    env_->rep_set_priority(5);
    cerr << "Unkown Priority" << endl;
    break;
    env_->set_app_private(&status);
    env_->set_event_notify(callback_handler);
    env_->repmgr_set_ack_policy(DB_REPMGR_ACKS_ONE);
    env_->set_timeout(1000000, DB_SET_TXN_TIMEOUT);
    env_->set_tx_max(10000);
    env_->set_lk_detect(DB_LOCK_MINWRITE);
    env_->open(path.c_str(), envFlags, 0);
    env_->repmgr_start(3, DB_REP_ELECTION);
    sleep(5);
    db_ = new Db(env_, 0);
    u_int32_t dbFlags = 0;
    bool isOpen = false;
    while(!isOpen)
    dbFlags = DB_AUTO_COMMIT;
    if( status.role == MASTER )
    cout << "Setting DB_CREATE Flag " << endl;
    dbFlags |= DB_CREATE;
    if( db_ == NULL )
    db_ = new Db(env_, 0);
    db_->set_error_stream(&std::cerr);
    cerr << "Attempting to open db" << endl;
    try
    db_->open(NULL, dbFileName_.c_str(), NULL, DB_BTREE, dbFlags, 0);
    cerr << "DB Opened successfully" << endl;
    isOpen = true;
    break;
    catch(DbException dbe)
    /* It is expected that this condition will be triggered
    * when client sites start up.
    * It can take a while for the master site to be found
    * and synced, and no DB will be available until then.
    if (dbe.get_errno() == ENOENT) {
    cerr << status.id << " DB not available yet, retrying." << endl;
    db_->close(0);
    db_ = NULL;
    } else {
    env_->err(dbe.get_errno(), "DB->open");
    throw dbe;
    sleep(5);
    // DbException is not a subclass of std::exception, so we
    // need to catch them both.
    catch(DbException &e)
    std::cerr << "Error opening database: " << dbFileName_ << "\n";
    std::cerr << e.what() << std::endl;
    catch(std::exception &e)
    std::cerr << "Error opening database: " << dbFileName_ << "\n";
    std::cerr << e.what() << std::endl;
    I am running this code with verbose replication output on a local machine. I start a single client on port 9090 and add a replica on port 9091 (the replica does not start since the first client does not return). I have tried cleaning out the folder where is db is written to and it makes no difference. I have provided some /* comments */ to augment what is being output.
    REP_UNDEF: EID 0 is assigned for site localhost:9091
    9090 Master Priority
    REP_UNDEF: Read in gen 9
    REP_UNDEF: Read in egen 9
    REP_UNDEF: rep_start: Found old version log 14
    CLIENT: dbs/ rep_send_message: msgv = 5 logv 14 gen = 9 eid -1, type newclient, LSN [0][0] nogroup nobuf
    event: DB_EVENT_REP_CLIENT, I am now a replication client
    CLIENT: starting election thread
    CLIENT: elect thread to do: 0
    CLIENT: repmgr elect: opcode 0, finished 0, master -2
    CLIENT: init connection to site localhost:9091 with result 115
    connecting to site localhost:9091: Connection refused
    Done sleeping, trying to open dbs
    /* Environment has been opened, now the client will try to open the database */
    Attempting to open db
    DB not available yet, retrying.
    /* Open fails since it is a client and there is no master to create the database yet */
    CLIENT: elect thread to do: 1
    DB_ENV->rep_elect:WARNING: nvotes (1) is sub-majority with nsites (2)
    DB_ENV->rep_elect:WARNING: nvotes (1) is sub-majority with nsites (2)
    CLIENT: Start election nsites 2, ack 1, priority 500
    Attempting to open db
    CLIENT: Tallying VOTE1[0] (2147483647, 9)
    CLIENT: Beginning an election
    CLIENT: dbs/ rep_send_message: msgv = 5 logv 14 gen = 9 eid -1, type vote1, LSN [1][5174] nogroup nobuf
    DB not available yet, retrying.
    CLIENT: Tallying VOTE2[0] (2147483647, 9)
    CLIENT: Counted my vote 1
    CLIENT: Skipping phase2 wait: already got 1 votes
    CLIENT: Got enough votes to win; election done; winner is 2147483647, gen 9
    CLIENT: Election finished in 2.098189000 sec
    CLIENT: Election done; egen 10
    event: DB_EVENT_REP_ELECTED
    CLIENT: Ended election with 0, sites 0, egen 10, flags 0x200a01
    CLIENT: Election done; egen 10
    CLIENT: New master gen 10, egen 11
    CLIENT: Establishing group as master.
    MASTER: rep_start: Old log version was 14
    MASTER: dbs/ rep_send_message: msgv = 5 logv 14 gen = 10 eid -1, type newmaster, LSN [1][5174] nobuf
    MASTER: restore_prep: No prepares. Skip.
    MASTER: dbs/ rep_send_message: msgv = 5 logv 14 gen = 10 eid -1, type log, LSN [1][5174]
    event: DB_EVENT_REP_MASTER
    event: DB_EVENT_REP_MASTER
    MASTER: election thread is exiting
    /* Client gets elected to be the master, and thus can set the db create flag */
    Setting DB_CREATE Flag
    Attempting to open db
    MASTER: dbs/ rep_send_message: msgv = 5 logv 14 gen = 10 eid -1, type log, LSN [1][5210] flush
    DB not available yet, retrying.
    /* Master cannot open the database event though the db create flag is set, this is the issue */
    Setting DB_CREATE Flag
    Attempting to open db
    MASTER: dbs/ rep_send_message: msgv = 5 logv 14 gen = 10 eid -1, type log, LSN [1][5272] flush
    DB not available yet, retrying.
    /* repeated indefinitely */
    Can anyone help? Thank you.

    dbFileName is "./dbs/test.db" and the dbs folder exists. I tried putting 777 permissions on the folder as well as using " dbs/test.db" to no avail.
    I removed the database and all logs and ran it again for the same time as before and below is the db_printlog output:
    [1][28]__txn_recycle: rec: 14 txnp 0 prevlsn [0][0]
         min: 2147483648
         max: 4294967295
    [1][64]__fop_create: rec: 143 txnp 80000001 prevlsn [0][0]
         name: ./dbs/80000000.f1e7a7fc0
         appname: 1
         mode: 660
    [1][128]__fop_create: rec: 143 txnp 80000003 prevlsn [0][0]
         name: ./dbs/80000002.b856343a0
         appname: 1
         mode: 660
    [1][192]__fop_create: rec: 143 txnp 80000005 prevlsn [0][0]
         name: ./dbs/80000004.f447bb460
         appname: 1
         mode: 660
    [1][256]__fop_create: rec: 143 txnp 80000007 prevlsn [0][0]
         name: ./dbs/80000006.d66a33830
         appname: 1
         mode: 660
    [1][320]__fop_create: rec: 143 txnp 80000009 prevlsn [0][0]
         name: ./dbs/80000008.d59895bb0
         appname: 1
         mode: 660

Maybe you are looking for

  • Can somebody recommend a cheap USB webcam that works on 2011 iMac running lion?

    I'm a drummer who sometimes posts videos on YouTube. Sometimes I want an overhead shot of the drums and it isn't practical or safe to hang my iMac 21.5" over my head to shoot the video with the built in camera haha! I tried an old microsoft lifecam a

  • Time Base / Carry Forward / Copy Last years balances

    Hi Experts, Can anyone throw light on how would the TIME=BASE function as used in the script below help in carry forward ? Is the below syntax correct ? *XDIM_MEMBERSET DATASRC=%MyDataSrc% *XDIM_MEMBERSET TIME=BASE,%TIME_SET% *XDIM_MEMBER ACCTDETAIL=

  • Need help understanding AdobeID, completely confused!!

    So I registered CS5, with my email address.  I wanted to use a new email address so when I went to adobe dot com, under adobeID i changed to the new address.  After that under product registration it doesn't show CS5 anymore, I thought that maybe it

  • System account appears to be locked

    I'm trying to access an Oracle 10g database (running on HP-UX) from my Windows XP laptop. I've installed the Instant Client, the ODBC driver, and set up the tnsnames.ora file. However, when I try to test my ODBC connection using the system account I

  • Why Won't IPod Organize For Me?

    Okay. I had to install Itunes on a new HDD I just put in. When I did, my library was lost. I reinstalled it and put all my songs back onto it. In itunes, the songs come up in the proper order, but, on the Ipod, they aren't. A lot of the albums are di