Error: is not a primary database file.

Hello
If I try to set a database online with:
ALTER DATABASE mydb SET online
this error occurs:
Msg 5171, Level 16, State 1, Line 1
E:\Data\mydb_log.ldf is not a primary database file.
Msg 5171, Level 16, State 2, Line 1
E:\Data\mydb.mdf is not a primary database file.
File activation failure. The physical file name "E:\Data\mydb.mdf" may be incorrect.
Msg 945, Level 14, State 2, Line 1
Database 'mydb' cannot be opened due to inaccessible files or insufficient memory or disk space. See the SQL Server errorlog for details.
Msg 5069, Level 16, State 1, Line 1
ALTER DATABASE statement failed.
The path of ldf and mdf file is correct.
And if I delete the database "DROP DATABASE mydb" and attach the files, then it works..
Thanks for your help

Cause
This problem generally occurs if the MDF file of your SQL Server has got damaged. the problem could be due to file header corruption or wrong information in file header.
All such situations lead to the inaccessibility of MDF file and need to repair and restore the database. It is very important to work around this problem, as it may put your business at risk of destruction.
The MDF repair is possible with the help of third party applications known as SQL recovery software. These software are helpful in each and every case of MDF corruption and thus allow you to have perfect MDF recovery.
To perform SQL repair using these software, it is not necessary for the user to have sound technical knowledge as MDF repair software come with interactive user interface. SQL recovery software do systematic scan of corrupted MDF files, repair and restore them in original format.
Stellar Phoenix SQL Database Recovery is the most advanced and the most influential SQL recovery software which allows you to have effective and successful MDF recovery in all cases of corruption. This SQL repair software comes equipped with an interactive, simple and cool looking user interface.
This MDF repair software is powerful enough to carry out systematic scan of entire MDF file and extract all of the data from it. This SQL repair software can restore all of the MDF objects including tables, reports, forms, macros, database constraints, stored procedures, triggers etc.
Cheers, Sridhar -------------- Please Mark it as Answer if it helps u so that it will be useful to other forum guys

Similar Messages

  • MyFileName.mdf is not a primary database file

    While accessing to an .mdf file, I receive this: MyFileName.mdf is not a primary database file. Does it mean the file is corrupted?
    Please help in repairing this file. I heard about some manual tricks to fix SQL database corruption, but I'm not aware of it.
    Please share it.
    Thanks.

    While accessing to an .mdf file, I receive this: MyFileName.mdf is not a primary database file. Does it mean the file is corrupted?
    Please help in repairing this file. I heard about some manual tricks to fix SQL database corruption, but I'm not aware of it.
    Please share it.
    Thanks.
    There can be various scenario which can cause this error (many of them is mentioned in this thread by other members).
    If you can elaborate a little more as:
    what you are trying to do?
    were the database was accessible before (same way as you are trying to access it now)?
    Is it simply that you are trying to access the database or you are trying attaching an MDF?
    If you can let us know the above I am sure we will be able to help you in a better and effective way.
    Keep Posting!!
    Please take a moment to mark this reply as answered if it solved your issue however if it doesn't  but
    looks helpful to you or for someone else you may vote as helpful. This will enable the reply forother forum members to benefit from.
    v_wish

  • SSO2 Error = ERROR: PSE not found in database

    Hello Gurus,
    Need your help.
    In SS02 in the directory below SAPSSO2000.pse is incorrect. This should point to /usr/sap/MQW/DVEBMGS04/sec/SAPSYS.pse and I am not sure how to correct it. Do I need to maintain a profile to do this.
    Certificate List
    The Certificate List Is Used To Verify the Digital Signature for the Logon Ticket
    /usr/sap/MQW/DVEBMGS04/sec/SAPSSO2000.pse
    As a remedy, i have created a soft link so it will still point to SAPSYS.pse but I am still having an error below.
    Application server PSE:
    ID:           CN=MPW
    Namespace:
    Profiles:     /usr/sap/MQW/DVEBMGS04/sec/SAPSSO2000.pse
    OK: file available, length:      4.033
    ERROR: PSE not found in database
    Can anyone advise me what to do please? Thanks in advance!
    Rachelle

    Hi,
    Is environment variable SECUDIR set ?
    Thanks
    Sunny

  • Error - 2048 not a valid movie file

    hello,
    I'm a NAPP member and had been following the photoshop TV casts on QT....however, now I get the error message 'error - 2048 not a valid movie file'...its an mpeg4 QT file, but I get the message whenever I attempt to play the downloaded file...or when I try to just watch the stream, it won't open the URL...these are the only movies that I'm having this problem with...as I can watch other movies from other sites w/o incident...NAPP hasn't replied to my inquiries except that they don't support the TV shows.
    Any ideas?...would be appreciated...
    Thanks...
    G5 - dual 1.8 ghz - 2ghz ram   Mac OS X (10.3.7)   Dell Inspiron Core Duo notebook w/ XP home

    T S
    Thank you very much for the link to videolan.org. I was having the same problem playing downloaded Photoshop TV videos. I tried MPlayer which worked but was not comprehensible. I had never heard of videolan, but it works like a charm.
    Thanks again.
    17 PowerBook, 1.33 Ghz   Mac OS X (10.4.6)   2 GB Ram, iWeb 1.1.1

  • Logon Error:Could not retrieve the source file for Port "Main"

    Hi All,
    We have a port which is blocked due to structural exceptions.When i try to connect to the Exceptions folder
    "Main[Exceptions]" the import manager throws an error "Logon Error:Could not retrieve the source file for port "Main".
    Any help greatly appreciated

    Hi ,
    Thanks for your reply.
    This is what I see in the log file in the exceptions folder
    These are the line I see almost to the end of the log file before they complete field mappings,value addings
              <Failure ts="2008/07/22 00:10:48.326 GMT" tid="1286" entry-no="9114" operation="Create lookups" rc="0x80000001">Illegal value for parameter</Failure>
              <Timer ts="2008/07/22 00:10:48.327 GMT" tid="1286" entry-no="9115" name="Import Lookup" total="0.040819">1</Timer>
              <Trace ts="2008/07/22 00:10:48.327 GMT" tid="1286" entry-no="9116">Import of Lookup Failed.</Trace>
    But when I open the same source xml file after downloading to my local folder from Exceptions Structural folder and load manually using IM i get the status as "Ready to import".
    Any Help greatly appreciated

  • Error: could not open `C:\Program Files\Java\j2re1.4.0_01\lib\i386\jvm.cfg'

    I am geting this error when I enter the "java" command:
    "Error: could not open `C:\Program Files\Java\j2re1.4.0_01\lib\i386\jvm.cfg'"
    I have configured the PATH variable (Windows 2000) and "javac" works. I cannot, however, get my programs to run because of the error every time I type "java". Also, I did not install my JDK / SDK to the directory in which the computer is looking for the "java" cammand (ie. it is not in 'Program Files'...). If anyone can help, it would be greatly appreciated. Thank you.

    Try using the -cp switch on the command line. For example:java -cp . MyProgramIf this corrects the problem, you need to set the classpath variable
    as well as the path.
    Mark

  • CMN_1117 ERROR: Could not allocate space in file

    Hi All,
    I am getting below Error while doing an ETL full load (Informatica 901) on the task DATAWAREHOUSE.DATAWAREHOUSE.SILOS.SIL_APTransactionFact_DiffManLoad.
    My source system is EBS R12 and Target is OBI Datawarehouse (7.9.6.3)
    LKPDP_1:TRANSF_1_1> CMN_1117 ERROR: Could not allocate space in file [BI/infohome/server/infa_shared/Cache/PMLKUP16145_7_0_6139S64.dat].
    Below is the file system specification of my server.
    Filesystem size used avail capacity Mounted on
    /dev/dsk/c0d1s0 837G 639G 190G 78% /BI
    I could also see that my 'Cache' folder from '/BI/infohome/server/infa_shared/' is increasing upto 190 GB and throwing an error. Is this normal that the data cache to increase up to 190 GB for a EBS source system which has only 500 GB data in total. And i am doing only load for Financial Analytics.
    Many Thanks

    We are struck on same issue. I didnt any update on this thread if the issue was resolved.
    I checked out "SIL_APTransactionFact_DiffManLoad" workflow in Workflow manager and unchecked "Lookup Cache() function".
    However, I still see the cache files created on <<INFA_HOME>>/9.0.1/server/infa_shared/Cache folder.
    Since it was set not to use cache, can it be possible not to have these files cache files generated.
    Appreciate your time and help.
    Thanks, Vagic.

  • Tns error could not connect to database but can tnsping and sqlplus

    The new install OBIEE 10.1.3.4.1, with two Linux RH/64 Bit servers set up and running, but can't get to 11g database when running reports.
    Error: nqsError 17001 Oracle Error Code 12154, message ORA-12154: TNS could not resolve the connect identifier specified at OCI call OCIServerAttach. nQSError 17014 could not connect to Oracle database
    Server 1 BI Server
    BI server is running.
    oc4j is running.
    jdk is installed
    /setup/user.sh variables and libs set
    .bash_profile variables and libs set
    oracle client installed with lib32
    can tnsping the database from here using SID
    can sqplus login to the database from here
    changed connection pool offiline and uploaded new .rpd
    this script does not work /setup . sa-cli.sh to test client, nothing happens, also unable to connect to BI Server in online mode from Windows client 32bit.
    Server 2 Presentation Server
    saw server is running
    set odbc AnalyticsWeb DSN to point to BI Server 1
    Since I can ping and connect with tns, why is presentation server throwing errors?
    Thanks for the help

    Copy the tnsname.ora file from Oracle Database serve onto the client PC.
    Path: %Oracle_home%\net80\admin\
    Send me a mail if there is any other issues
    Regards
    Oluseyi Funmi Oduberu
    Oracle Consultant
    Email:[email protected]
    Hi,
    I am a tech at a failing company. Unfortuneatly some users still need ADI installed and working with very limited resources to troubleshoot oracle. I am getting the error - ( Could not connect to the database - ora-12545: tns:name lookup failure )when the user tries to log on to ADI. Any suggestions? I would really appreciate it. We are on Windows NT on an NT network. Oracle 8.05 client installed and ADI 6.0.
    Thanks, Mary

  • Installation Error "Could not determine information about file system"

    Hi, i get the following error trying to install ABAP central instance on windows server 2003 enterprise edition. I am trying to do a local installation.
    Anybody have any ideas what i am doing wrong?
    INFO 2007-05-13 23:50:40
    Copying file C:/Program Files/sapinst_instdir/NW04/SYSTEM/ABAP/ORA/UC/CI/keydb.xml to: q0w9e9r8t7.1.xml.
    INFO 2007-05-13 23:50:40
    Copying file C:/Program Files/sapinst_instdir/NW04/SYSTEM/ABAP/ORA/UC/CI/keydb.xml to: q0w9e9r8t7.1.xml.
    INFO 2007-05-13 23:50:40
    Creating file C:\Program Files\sapinst_instdir\NW04\SYSTEM\ABAP\ORA\UC\CI\q0w9e9r8t7.1.xml.
    INFO 2007-05-13 23:50:41
    Copying file C:/Program Files/sapinst_instdir/NW04/SYSTEM/ABAP/ORA/UC/CI/keydb.xml to: C:/Program Files/sapinst_instdir/NW04/SYSTEM/ABAP/ORA/UC/CI/keydb.1.xml.
    INFO 2007-05-13 23:50:41
    Copying file C:/Program Files/sapinst_instdir/NW04/SYSTEM/ABAP/ORA/UC/CI/keydb.xml to: C:/Program Files/sapinst_instdir/NW04/SYSTEM/ABAP/ORA/UC/CI/keydb.1.xml.
    INFO 2007-05-13 23:50:41
    Creating file C:\Program Files\sapinst_instdir\NW04\SYSTEM\ABAP\ORA\UC\CI\keydb.1.xml.
    INFO 2007-05-13 23:50:41
    Creating file C:\Program Files\sapinst_instdir\NW04\SYSTEM\ABAP\ORA\UC\CI\change.log.
    INFO 2007-05-13 23:50:42
    Output of change user /install is written to the logfile change.log.
    WARNING 2007-05-13 23:50:42
    Execution of the command "change user /install" finished with return code 1. Output: Install mode does not apply to a Terminal server configured for remote administration.
    INFO 2007-05-13 23:50:42
    Successfully added privileges 'SeTcbPrivilege SeAssignPrimaryTokenPrivilege SeIncreaseQuotaPrivilege' to account 'ENTERPRISE\Administrator' on host '.'.
    INFO 2007-05-13 23:50:42
    Creating file C:\Program Files\sapinst_instdir\NW04\SYSTEM\ABAP\ORA\UC\CI\summary.html.
    PHASE 2007-05-13 23:50:42
    Prepare the installation program.
    INFO 2007-05-13 23:50:49
    Installation start: Sunday, 13 May 2007, 23:50:39; installation directory: C:\Program Files\sapinst_instdir\NW04\SYSTEM\ABAP\ORA\UC\CI; product to be installed: SAP NetWeaver '04 SR1> SAP System Installation> ABAP System> Oracle> Unicode> Central Instance Installation
    INFO 2007-05-13 23:50:50
    Host operation t_HostInfo_SHARED processed successfully.
    ERROR 2007-05-13 23:55:28
    FSL-02107  Path component contains reserved character (':'): C:
    ERROR 2007-05-13 23:55:28
    FSL-02106  Path contains reserved character (':'):
    C:
    SAP
    ERROR 2007-05-13 23:55:28
    MOS-01236  Could not determine information about file system enterprise:, mounted at unknown.
    WARNING 2007-05-13 23:55:28
    The step GetMountInfo with step key SAPSYSTEM_CI|ind|ind|ind|ind|ind|0|SAPSYSTEM|ind|ind|ind|ind|ind|0|SAPComponent|ind|ind|ind|ind|ind|0|SAPComponent_Waps_System|ind|ind|ind|ind|ind|0|SAPComponent_Waps_Instance_Dirs|windows|ind|ind|ind|ind|0|GetMountInfo was executed with status ERROR.

    Hi.. Philip...
    During installation when it prompts / gives us to  type / Browse the installtion sources like installation master / ker cd's / installation export .......,
    What did you do ?
    did you browse to the respective directory ??
    or
    did you manually type ??
    I got the same problem on unix like. On oversight instead of browsing i typed manually and by mistake in one of the path i added space in one of the installation source path and installation ended with not able to locate file system error.
    if you have typed it manually .. i beleive it could be similar to this ??
    Update your reply
    Rgds
    PR

  • Photoshop wont open get error could not open a scratch file because the disk is not available

    Had to clone my hard drive to another drive on my computer.
    I have been receiving a message "Could not open a scratch file because the disk is not available"  I have tried UN-installing and re-installing...still the same message.
    Does anyone have any idea how to fix this?
    Thanks!

    What do you have here.
    If that does not help, reset your prefs
    Hold fingers over Shift Option Command (or similar on Windows) then boot Photoshop and as fast as you can depress the 3 keys.

  • Could not render the database - File is already open in another application - Fireworks unusable

    I'm using CC for mac and when trying to export an image in Fireworks I get this message popping up…
    It's constantly happening and even if I click ok or press the escape button I get a repeatedly blank version of the popup and I'm unable to export the image. This is rendering Fireworks unusable and along with Dreamweaver it's the application I use pretty much all the time so is a considerable annoyance.
    Can anyone help get this resolved please?

    I appear to have found the cause by chance. I was running AVG Anti-virus software but uninstalled that and hey presto Fireworks appears to be back to normal.

  • -Error: could not open `C:\Program Files\Java\j2re1.4.0_02\lib\i386\jvm.cf

    Using the classpath switch (as advised to an earlier topic message) doesn't work for me. Can you help?! Many thanks
    N

    Solved this problem by deleting java.exe from C:\WINNT
    N

  • Mssql2012 SSIS deployment error: Could not fined Source.conmgr file

    Techies--
    I'm deploying a colleague's project today which includes 60+ packages.  I suspect "Source.conmgr" was probably a default early on that was deleted. Is there an quick way to determine which package may still be referencing this?  Unfortunately
    the message shows up in the build on one of the key calling packages that invokes the others...

    Hi plditallo,
    Glad to hear you have resolved the issue, thank you for the sharing.
    Regards,
    Mike Yin
    If you have any feedback on our support, please click
    here
    Mike Yin
    TechNet Community Support

  • Could not write the AIF file (session error)

    I receive the error "Could not write the AIF file (session error)" when trying to record to Sound Track using any of my USB input microphones. Does anybody know how to resolve the problem?
    Also, does anybody have any suggestions about what product to use to produce good multi-track audio files. I am interested in both a hardware and a software solution. It seems that using the standard Apple software that comes on the new G5s does not offer any good solutions.

    Update to Snow Leopard then update Final Cut Studio. Chances are your problem will have been fixed.
    In my experience, in previous iterations of STP there were a number of serious bugs related to saving files. Running everything up-to-date, however, I am no longer having those problems (knock on wood).

  • Hello,this error comes up all the time:Could not read chrome manifest file 'C:\Program Files\Mozilla Firefox\extensions\{972ce4c6-7e08-4474-a285-3208198ce6fd}\chrome.manifest'. What does it mean? and how can I fix it?

    Could not read chrome manifest file 'C:\Program Files\Mozilla Firefox\extensions\{972ce4c6-7e08-4474-a285-3208198ce6fd}\chrome.manifest'.
    This is pretty much it, It was in my error console and its there
    every time I check on my errors

    I used the 64bit win7,when I start firefox it will be no response just in one
    minute ,the console show me this error :Could not read chrome manifest file &#39;C:\Program Files\Mozilla Firefox\extensions\{972ce4c6-7e08-4474-a285-3208198ce6fd}\chrome.manifest!

Maybe you are looking for

  • A problem about WRITE statement

    Hi all I want to use the WRITE statement in the program.But when I write it ,the result doesn't show all in the screen . It only shows a part of the result. CALL TRANSFORMATION id   SOURCE root1 = source1          root2 = source2   RESULT XML xml_str

  • Package unable to distribute to DP

    Wanna ask, I have 1 DP which I have a problem to distribute a package to and the DP is part of a distribution point group. I have tried before to manually remove the particular DP in Content Locations from the package properties. Then i add back indi

  • Toshiba TV8245 - MediaPlayer does not play long movie to the end

    Hello I use the TV8245 TV I want this take to a Presentation I create a ddd.wmv File. This file is on a DLNA Storage. I see this Movie an I can Play this with MediaPlayer But in the End the Movie Stops and NOT Playing from the Beginning. How I can Fi

  • Help problem with workspace e.g. colour space!

    Hi everyone, made a bit of a mistake...I completed a whole short project with alot of shots from after effects.  However I did not select a workspace, so for a long time now I have been going mad trying to work out why the project wasn't coming up to

  • Witch Is The Best Color Display?

    Witch Is Really The Best Color Display For My iMac? There are 4 Color Display's on My iMac Witch do you think is the best 1 for My iMac Computer i want to get the best color possible please help me cause i don't understand how it all goes about? iMac