LABVIEW.LIB was not called from a LabVIEW process when creating unit tests

We are developing a DLL to be integrated in LabVIEW using CLFs. So far we have the system working, but we wanted to create some unit tests in C as part of our release process. The problem is that when I link labview.lib in VS C++ and then call the EXE generated I get an error saying: "LABVIEW.LIB was not called from a LabVIEW process". As mentioned in http://zone.ni.com/reference/en-XX/help/371361J-01/lvexcodeconcepts/debug_dlls_and_dll_calls/:
"Calling the shared library from another C program is also another way to debug the shared library. By calling the shared library from another C program, you have a means of testing the shared library independent of LabVIEW, thus helping you to identify any problems, sooner."
Some of our functions, however, use LabVIEW specific instructions and we would like to test them in a realistic environment (i.e., calling to the actual functions instead of creating stubs).
Is there any workaround to this problem?
Thanks!!

Hello SaraGr,
Welcome to the NI Discussion Forums! I have a couple of questions to better determine the issue here:
1. What is the LabVIEW version that you are using?
2. Does your DLL uses Serial Compatibility VIs? If so, try using your development on NI-VISA instead of Serial.
3. Are you using a Code Interface Node (CIN)? If you do, I see that from the help file you would need to compile the code for the new platform. Also, please remember that functions specifc to CINs (such as SetCINArraySize) will not work in a DLL.
4. Be sure to include the header files in your program, like extcode.h. Please follow this white paper to link labview.lib to your program, or follow the Alternate Method.
Regards,
Daniel REDS
RF Systems Engineer
Help us grow.
If a post solves your question, mark it as The Solution.
If a post helps, give Kudos to it.

Similar Messages

  • LABVIEW.LIB was not called from a LabVIEW process

    Hi All,
    I've inherited LV code that calls a CIN node to access a motor controller.  I'd like to compile this code to a .NET DLL, but receive the following error when calling it from an external source:
    I've read the knowledgebase article explaining the problem from here, as well as the following support questions:
    http://forums.ni.com/t5/LabVIEW/Labview-lib-was-not-called-from-a-labview-process/m-p/232548
    http://forums.ni.com/t5/LabVIEW/Problem-with-lsb-LABVIEW-LIB-was-not-called-from-a-LabVIEW/m-p/48809...
    http://forums.ni.com/t5/LabVIEW/Labview-lib-was-not-calld-from-a-labview-process/m-p/718427
    http://forums.ni.com/t5/LabVIEW/Building-a-LabVIEW-DLL-with-VIs-that-use-CINs/m-p/632817
    The conclusion seems to be recompiling is the answer.  I've tried recompiling the original CIN vi within LV with no success.  Do they mean to recompile the original C code against the newer labview.lib (sorry, I'm not all that familiar with how the CIN nodes work)?  Any suggestions would be awesome.  Thanks.
    -Joe

    You can't make use of LabVIEW manager functions in non-LabVIEW based processes. Basically unless the C code is for a CIN or DLL that is to be called by LabVIEW (inside the development system or a LabVIEW built application), any function pulled in from labview.lib is not available. LabVIEW.lib is an import library that does not implement any functions but simply imports them from the LabVIEW kernel, either the LabVIEW development system or the LabVIEW runtime DLL. And no you can't just link in the LabVIEW runtime DLL into your .Net application. This DLL needs to be started up and initialized in very specific ways, that only LabVIEW itself knows about when building an application.
    Basically if you want to recompile the code (yes in C/C++) for use in a non-LabVIEW application, you also have to remove all the link libraries from the LAbVIEW cintools directory, and replace any use of functions now unavailable (link error: unavailable external reference) with other similar functionality from your C runtime library. Or implement those functions yourself using C runtime library calls.
    Another possibility could be to actually create a LabVIEW executable that exports the functionality as ActiveX Server. Or in LabVIEW 2010 you could also select to create a .Net Interop Assembly from inside the LabVIEW project.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Fatal error: LABVIEW.LIB was not called from a labview process

    I have built a very simple executable which uses shared variables which should talk to an OPC server. When I try to run it on the target machine, I get this error. Does anyone know what it means?

    If you up/down graded from 8.2 to 8.5 then I would suggest doing a mass compile on the VI's into a new folder (or have a backup of your files somewhere).
    You can do this via LabVIEW > Tools > Advanced > Mass Compile.
    Please let me know how this turns out.
    All the best,
    Message Edited by rsw on 01-08-2008 07:02 AM
    Applications Engineer

  • Fatal error Labview.lib not called from a Labview process

    in teststand my vi works fine with adapter set for LV development
    when I configure the LV adapter for runtime, I get fatal error Labview.lib not called from a Labview process
    what is going on?
    how do I fix it?
    thanks.

    Howdy Stephen -
    Are you by chance calling a LabVIEW DLL within your LabVIEW VI which is being called from TestStand?  I know this error occurs when a LabVIEW DLL built in a different version of LabVIEW than the selected Run-time Engine.
    Here is a KnowledgeBase which references the issue:
    KnowledgeBase 203EA3XC: LabVIEW.LIB Error When Calling a LabVIEW DLL Built with VIs That Use Externa...
    If this is the case, you will need to open the LabVIEW DLL source VI in the LabVIEW version you are using and rebuild the DLL.
    Thanks and have a great day!
    Regards,
    Andrew W || Applications Engineer
    National Instruments

  • Charge Account Is Not Copied From PR to PO When Created From PR to RFQ to Quotation to PO

    Hi,
    We are using Autocreate functionality (Forms) for creating PO.
    Now when we create PO directly from PR, distribution account gets copied correctly from PR, but when when we create PR>>RFQ>>Quotation>>PO , it takes from Inventory org material account.
    I want to use the same account from PR to be copied into PO.
    Please Advise,
    Thanks Nikhil

    You may find the following links to be helpful
    Incorrect PO Accrual Account when PO is created from a Purchase Requisition (Doc ID 1136853.1)
    How to Set Up and Use Category-based Account Default in Purchasing (Doc ID 293046.1)
    How To Diagnose Issues In Autocreate (CREATEPO) Workflow (Doc ID 559009.1)

  • LABVIEW.LIB could not locate "RTsetCleanupProc"

    Hi,
    I am trying to get some feedback on a random error that I am getting when
    running Labview on Windows XP. In my application I am performing data
    acquisition with an M-series Daq device while at the same time I am
    recording
    images with NI-Imaq device (PCI-1405). I am also communicating with two
    other
    instruments through a USB and a serial port. At random times (once every month or
    week
    or sometimes a couple of times within the same day) Labview crushes and I
    am
    getting the following error message:
    LABVIEW.LIB could not locate "RTsetCleanupProc"
    After that I have to reboot the computer for Labview to be able to run.
    Please advice on what steps to take in order to fix these problem.
    I am also attaching the corresponding failure log file
    Thanks,
    George
    Attachments:
    lvlog05-19-08-14-58-071.txt ‏1 KB

    Hi Michelle,
    Thanks for getting back to me.
    I got very prompt and useful feedback through email from one of NI’s Application Engineers. However, part of the process of troubleshooting this issue involved waiting for LabView to crash again and look at the error log report. Unfortunately (!?) this did not happen within reasonable time and NI considered this issue resolved. When recently LabView crashed again I tried to follow up with this issue but I was redirected to this message board.
    -George

  • RMAN Restore on Test DB Fails - ORA-01152:file 1 was not restored from blah

    Calling all RMAN Gurus!
    I'm having trouble recovering an RMAN backup on my test DB server. Please Help!
    Solaris 10/Oracle 10.2.0.4 Standard Edition (Both Servers)
    Part one - Step by Step
    Primary Server
    1. Perform full backup: backup database plus archivelog;
    2. Copy Backupset & Controlfile to test server: "RSYNC/NFS Mount"
    Test Server
    1. rman target /
    2. startup nomount;
    3. restore controlfile blah blah
    4. alter database mount;
    5. catalog backuppiece
    6. restore database; - no issues
    *7. recover database noredo; - no issues*
    *8. alter database open resetlogs;*
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of alter db command at 09/09/2009 08:48:22
    ORA-01152: file 1 was not restored from a sufficiently old backup
    ORA-01110: data file 1: '/data/oracle/oradata/planodb/system01.dbf'
    All is good until I try and open the database. What am I missing?? Why doesn't this work???
    Because .... If I go through the exact steps but I perform a "recover database" instead of "recover database noredo", I can open the database!!!
    Example :
    6. restore database; no issues
    7. recover database;
    Starting recover at 09-SEP-09
    using channel ORA_DISK_1
    starting media recovery
    channel ORA_DISK_1: starting archive log restore to default destination
    channel ORA_DISK_1: restoring archive log
    archive log thread=1 sequence=34
    channel ORA_DISK_1: reading from backup piece /data/oracle/orabase/backup/backup
    set/2009_09_09/o1_mf_annnn_BACKUP_PLANODB_000_0_5bgkffqq_.bkp
    channel ORA_DISK_1: restored backup piece 1
    piece handle=/data/oracle/orabase/backup/backupset/2009_09_09/o1_mf_annnn_BACKUP
    PLANODB000_0_5bgkffqq_.bkp tag=BACKUP_PLANODB_000_090909010005*
    channel ORA_DISK_1: restore complete, elapsed time: 00:00:03
    archive log filename=/data/oracle/oradata/arch/PLANODB/archivelog/2009_09_09/o1_
    mf_1_34_5bhdkwd4_.arc thread=1 sequence=34
    channel default: deleting archive log(s)
    archive log filename=/data/oracle/oradata/arch/PLANODB/archivelog/2009_09_09/o1_
    mf_1_34_5bhdkwd4_.arc recid=42 stamp=697106925
    unable to find archive log
    archive log thread=1 sequence=35
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of recover command at 09/09/2009 08:48:52
    RMAN-06054: media recovery requesting unknown log: thread 1 seq 35 lowscn 1425007
    This is ok because seq 35 doesn't actually exist!
    8. alter database open resetlogs;
    database opened!

    You could also explore the UNTIL clause of the RECOVER DATABASE command to specify Recovery until a specific Log, SCN or Timestamp.
    Since you are cloning a Hot Backup to another server the Recovery has to be an Incomplete Recovery. So, it will be to a Log, SCN or Timestamp -- either of which you could also explicitly specify with the UNTIL clause.
    Hemant K Chitale
    http://hemantoracledba.blogspot.com

  • ResultSet.next was not called

    I have this query ://Attempt The DB insert
    ResultSet rs = stmt.executeQuery("SELECT lhh_demo_id_seq.nextval from dual");
    String Demo_ID = rs.getString(1);
    while(rs.next()) {
    while (i < 2) {
    i++;
    rs.close();
    try
    Date date = dt.parse(birth);
    System.out.println("date " + date);
    stmt.executeUpdate( "insert into lhh_demo_reg values (" + Demo_ID + "," + RegNo + "," + Name + ",to_date('" + date+"','DD-Mon-YYYY')," + Center_ID + ")");
    catch(Exception e){}
    // Now Register a NULL Admission Record
    i = 0;
    rs = stmt.executeQuery("SELECT lhh_adm_id_seq.nextval from dual");
    String Adm_ID = rs.getString(1);
    while(rs.next()) {
    rs.close();
    stmt.executeUpdate("insert into lhh_adm_reg values (" + Adm_ID + "," + Center_ID +" , " + Demo_ID + ")");
    // Now Register a NULL Procedure Record
    i = 0;
    rs = stmt.executeQuery("SELECT lhh_proc_id_seq.nextval from dual");
    String Proc_ID = rs.getString(1);
    while(rs.next()) {
    while (i < 2) {
    i++;
    rs.close();
    stmt.executeUpdate("insert into lhh_proc_reg values (" + Proc_ID + "," + Center_ID + "," + Demo_ID + "," + Adm_ID +")");
    //Now Register a NULL Lesion Record
    i = 0;
    rs = stmt.executeQuery("SELECT lhh_les_id_seq.nextval from dual");
    String Les_ID = rs.getString(1);
    while(rs.next()) {
    while (i < 2) {
    i++;
    rs.close();
    but i keep getting ResultSet.next was not called...can anyone help please?

    I'm not sure what exactly you are trying to do ... but ...
    You seem to have several ResultSets in action. The first step is to find which of your "selects" is giving this exception. So, go ahead a enclose your statements within a try catch finally block. Use the finally block to close your result set (if not null).
    Once you narrow down the offending code, post back with the offending part of the code & the result you got with stack trace (if you still can't figure out what's happenning)
    HTH
    --Das                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • I have downloaded a movie from ITunes.  It shows up in my video app.  When I go to play it I get an error message: "The requested URL was not found on this server". When I checked back on iTunes, where you click to rent or buy a movie it says "Downloaded"

    I have downloaded a movie from ITunes.  It shows up in my video app.  When I go to play it I get an error message: "The requested URL was not found on this server". When I checked back on iTunes, where you click to rent or buy a movie it says "Downloaded".  Any advice on what I can do in order to watch this movie that I rented a couple of weeks ago?

    Select the content which is causing a problem and use the 'Report a problem' button in Your Purchase History on your computer.

  • How to log in with my old Apple account? I forgot my pass and I did change my apple ID before canceling first?? I am from Croatia so did folow al the discussion and the to resolve the problem but no luck. Can not call from Croatia the Apple help desk

    How to log in with my old Apple account? I forgot my pass and I did change my apple ID before canceling first?? I am from Croatia so did folow al the discussion and the to resolve the problem but no luck. Can not call from Croatia the Apple help desk.i did try all the options but I can not find the phone number to call from Croatia,
    I can not change my Apple ID to the old mail (not possible!)
    The old mail don't accept the new password..
    I can not delete the Icloud all the time asking my the password of the old mail!
    I realy need help

    You can not merge accounts.
    Apps are tied to the Apple ID used to download them, you can not transfer them.

  • Can I transfer music that is only on my iPad that WAS NOT purchased from iTunes to my iTunes account on new computer?

    I've had my iPad 2 for about four years now and I can tell that the interface is being very slow and that the screen does not always react when I tap on it, meaning I may have to get a new one sooner or later.
    My biggest problem is that on my iPad, I have all of the Beatles' CDs, some of which are from my own personal copies and some are from my former local public library. Ever Since I copied all these CDs onto my iPad, I've moved to a new state and got a new laptop, thus starting with an iTunes account that only has music I purchased from the iTunes Store on it, and no Beatles. The local libraries where I live now do not offer any CDs for borrowing, so I have no way of getting some of the CDs I don't own for free. I really do not want to purchase a bunch of albums from iTunes, as well.
    Is there any way to get the Beatles music that is only on my iPad that was not purchased from iTunes onto my iTunes account without removing it from my iPad? Thanks for your help!

    Then the latter part of my first reply which is repeated here:
    - If you follow these instructions the iPod will be updated when the instructions say to restore.
    Recovering your iTunes library from your iPod or iOS device: Apple Support Communities

  • Error message when I try to download new iTunes as follows iPhoto 7.1.5 is already installed and was not purchased from the Mac App Store

    I am trying to download new version of iTunes from App store having purchased it on my laptop.  When I try to download on my iMac I get the following message:
    Error message when I try to download new iTunes as follows:  iPhoto 7.1.5 is already installed and was not purchased from the Mac App Store - and then I am asked if I want to buy it again. I don't understand the error message and I don't want to purchase the new version again.
    Also, since upgrading to Lion my videos (from Sanyo Xacti camera) do not play on iTunes. I can only open photos.
    Thank you.

    Make a back up of your Library. Now you can update without fear.
    Regards
    TD

  • Error ORA-01152: file 1 was not restored from a sufficiently old backup

    Its also not thread just to share info with oracle gurus here.If my findings for the below workaround is wrong then please do correct me.
    Sometime you get the error after performing restoring controlfile when you don't have autobackup controlfile on
    error ORA-01152: file 1 was not restored from a sufficiently old backup
    why?
    Cause When you shutdown the database with using the normal,transactional or immediate options not abort a full checkpoint occurs.A full checkpoint ensures that all of the dirty blocks contained in the buffer cache are written to the data files,the database comes into synchronized state at this time i.e controlfile CKPT SCN=databasefile CKPT.
    Like in this demo i am not taking backup the database in opened mode
    Demo 1
    SQL> archive log list
    Database log mode              No Archive Mode
    Automatic archival             Disabled
    Archive destination            USE_DB_RECOVERY_FILE_DEST
    Oldest online log sequence     9
    Current log sequence           11
    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup mount
    ORACLE instance started.
    Total System Global Area  171966464 bytes
    Fixed Size                   787988 bytes
    Variable Size             145488364 bytes
    Database Buffers           25165824 bytes
    Redo Buffers                 524288 bytes
    Database mounted.
    SQL> alter database archivelog
      2  /
    Database altered.
    SQL> archive log list
    Database log mode              Archive Mode
    Automatic archival             Enabled
    Archive destination            USE_DB_RECOVERY_FILE_DEST
    Oldest online log sequence     9
    Next log sequence to archive   11
    Current log sequence           11
    Recovery Manager: Release 10.1.0.2.0 - Production
    Copyright (c) 1995, 2004, Oracle.  All rights reserved.
    RMAN> connect target sys/sys
    connected to target database: ORCL1 (DBID=1024798223)
    RMAN> list backup
    2> ;
    using target database controlfile instead of recovery catalog
    RMAN> backup database
    2> ;
    Starting backup at 08-DEC-07
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    input datafile fno=00001 name=C:\ORACLE10G\ORACLE\ORADATA\ORCL1\ORCL1\SYSTEM01.DBF
    input datafile fno=00003 name=C:\ORACLE10G\ORACLE\ORADATA\ORCL1\ORCL1\SYSAUX01.DBF
    input datafile fno=00002 name=C:\ORACLE10G\ORACLE\ORADATA\ORCL1\ORCL1\UNDOTBS01.DBF
    input datafile fno=00004 name=C:\ORACLE10G\ORACLE\ORADATA\ORCL1\ORCL1\USERS01.DBF
    channel ORA_DISK_1: starting piece 1 at 08-DEC-07
    channel ORA_DISK_1: finished piece 1 at 08-DEC-07
    piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL1\ORCL1\BACKUPSET\2007_12_08\O1_MF_NNNDF_TAG20071208T143558_3ONSCZBY_.BKP
    comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:45
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    including current controlfile in backupset
    including current SPFILE in backupset
    channel ORA_DISK_1: starting piece 1 at 08-DEC-07
    channel ORA_DISK_1: finished piece 1 at 08-DEC-07
    piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL1\ORCL1\BACKUPSET\2007_12_08\O1_MF_NCSNF_TAG20071208T143558_3ONSFGN7_.BKP
    comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:05
    Finished backup at 08-DEC-07
    SQL> shutdown immediate
    ORA-01109: database not open
    Database dismounted.
    ORACLE instance shut down.Now i delete the controlfile from OS command.
    SQL> startup
    ORACLE instance started.
    Total System Global Area  171966464 bytes
    Fixed Size                   787988 bytes
    Variable Size             145488364 bytes
    Database Buffers           25165824 bytes
    Redo Buffers                 524288 bytes
    ORA-00205: error in identifying controlfile, check alert log for more infoi don't have automatized control file backup neither i have control file copy.What i will do
    to recover control file i will restore controlfile from backup.Before doing it that i will bring
    the database in mount state.
    SQL> shutdown immediate
    ORA-01507: database not mounted
    ORACLE instance shut down.
    SQL> startup mount
    ORACLE instance started.
    Total System Global Area  171966464 bytes
    Fixed Size                   787988 bytes
    Variable Size             145488364 bytes
    Database Buffers           25165824 bytes
    Redo Buffers                 524288 bytes
    ORA-00205: error in identifying controlfile, check alert log for more infoi have two backup piece in my backupset folder you cant check control file backup
    existence with list backup controlfile at RMAN prompt cause it needs database in
    mount state.You will have to test both backup set pieces.
    RMAN> restore controlfile from
    'C:\oracle\flash_recovery_area\orcl1\ORCL1\BACKUPSET\2007_12_08\O1_MF_NCSNF_TAG20071208T143558_3ONSFGN7_.BKP';
    Starting restore at 08-DEC-07
    using channel ORA_DISK_1
    channel ORA_DISK_1: restoring controlfile
    channel ORA_DISK_1: restore complete
    output filename=C:\ORACLE10G\ORACLE\ORADATA\ORCL1\ORCL1\CONTROL01.CTL
    output filename=C:\ORACLE10G\ORACLE\ORADATA\ORCL1\ORCL1\CONTROL02.CTL
    output filename=C:\ORACLE10G\ORACLE\ORADATA\ORCL1\ORCL1\CONTROL03.CTL
    Finished restore at 08-DEC-07
    SQL> startup
    ORACLE instance started.
    Total System Global Area  171966464 bytes
    Fixed Size                   787988 bytes
    Variable Size             145488364 bytes
    Database Buffers           25165824 bytes
    Redo Buffers                 524288 bytes
    Database mounted.
    ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
    SQL> alter database open resetlogs
      2  /
    Database altered.You can see database now comes into open mode without raising error error
    ORA-01152: file 1 was not restored from a sufficiently old backup,you can see that
    database shutdown with immediate which synchronized the control file with database
    file.
    Demo 2
    ------------Now in this demo i am taking backup the database in opened mode before backup
    database i have deleted alls previous backup.
    Database is in opened moder if i take the backup in database opened mode
    (i.e full checkpoint will not occur controlfile CKPT SCN<>datafile CKPT SCN)
    you will get the error when you will restore controlfile from backup set.
    error ORA-01152: file 1 was not restored from a sufficiently old backup
    Reason is that CKPT SCN in the datafiles will be ahead of the backupset control file no
    full checkpoint occuring. You are not taking backup in consistent state and the
    backupset will not be in consistent state.When you will restore the control file from
    backupset then yours restored control file SCN will be lesser then yours datafile
    checkpoint SCN.
    SQL> startup
    ORACLE instance started.
    Total System Global Area  171966464 bytes
    Fixed Size                   787988 bytes
    Variable Size             145488364 bytes
    Database Buffers           25165824 bytes
    Redo Buffers                 524288 bytes
    Database mounted.
    Database opened.
    RMAN> backup database
    2> ;
    Starting backup at 11-DEC-07
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    input datafile fno=00001 name=C:\ORACLE10G\ORACLE\ORADATA\ORCL1\ORCL1\SYSTEM01.D
    BF
    input datafile fno=00003 name=C:\ORACLE10G\ORACLE\ORADATA\ORCL1\ORCL1\SYSAUX01.D
    BF
    input datafile fno=00002 name=C:\ORACLE10G\ORACLE\ORADATA\ORCL1\ORCL1\UNDOTBS01.
    DBF
    input datafile fno=00004 name=C:\ORACLE10G\ORACLE\ORADATA\ORCL1\ORCL1\USERS01.DB
    F
    channel ORA_DISK_1: starting piece 1 at 11-DEC-07
    channel ORA_DISK_1: finished piece 1 at 11-DEC-07
    piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL1\ORCL1\BACKUPSET\2007_12_11\O1_M
    F_NNNDF_TAG20071211T125123_3OWJD0V5_.BKP comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:56
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    including current controlfile in backupset
    including current SPFILE in backupset
    channel ORA_DISK_1: starting piece 1 at 11-DEC-07
    channel ORA_DISK_1: finished piece 1 at 11-DEC-07
    piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL1\ORCL1\BACKUPSET\2007_12_11\O1_M
    F_NCSNF_TAG20071211T125123_3OWJFT97_.BKP comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:09
    Finished backup at 11-DEC-07now i shut down the database in order to delete the control file from os command
    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> deleting the controlfile from oradata folder
    SQL> startup
    ORACLE instance started.
    Total System Global Area  171966464 bytes
    Fixed Size                   787988 bytes
    Variable Size             145488364 bytes
    Database Buffers           25165824 bytes
    Redo Buffers                 524288 bytes
    ORA-00205: error in identifying controlfile, check alert log for more infonow i would restore the controlfile from backupset.
    RMAN> restore controlfile from 'C:\oracle\flash_recovery_area\orcl1\ORCL1\BACKUP
    SET\2007_12_11\O1_MF_NCSNF_TAG20071211T125123_3OWJFT97_.BKP'
    2> ;
    Starting restore at 11-DEC-07
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=159 devtype=DISK
    channel ORA_DISK_1: restoring controlfile
    channel ORA_DISK_1: restore complete
    output filename=C:\ORACLE10G\ORACLE\ORADATA\ORCL1\ORCL1\CONTROL01.CTL
    output filename=C:\ORACLE10G\ORACLE\ORADATA\ORCL1\ORCL1\CONTROL02.CTL
    output filename=C:\ORACLE10G\ORACLE\ORADATA\ORCL1\ORCL1\CONTROL03.CTL
    Finished restore at 11-DEC-07
    SQL> shutdown immediate
    ORA-01507: database not mounted
    ORACLE instance shut down.
    SQL> startup
    ORACLE instance started.
    Total System Global Area  171966464 bytes
    Fixed Size                   787988 bytes
    Variable Size             145488364 bytes
    Database Buffers           25165824 bytes
    Redo Buffers                 524288 bytes
    Database mounted.
    ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
    SQL> alter database open resetlogs
      2  /
    alter database open resetlogs
    ERROR at line 1:
    ORA-01152: file 1 was not restored from a sufficiently old backup
    ORA-01110: data file 1: 'C:\ORACLE10G\ORACLE\ORADATA\ORCL1\ORCL1\SYSTEM01.DBF'what would you do that now you have lost controlfile ,you dont have copy either you dont
    have autobackup on for controlfile,you need to create the control file
    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             145488364 bytes
    Database Buffers           25165824 bytes
    Redo Buffers                 524288 bytes
    SQL> create controlfile reuse database orcl1 noresetlogs archivelog
      2  MAXLOGFILES 50
      3  MAXLOGMEMBERS 3
      4  MAXDATAFILES 300
      5  MAXINSTANCES 8
      6  MAXLOGHISTORY 500
      7  LOGFILE
      8                     GROUP 1 'C:\oracle10g\oracle\oradata\orcl1\orcl1\redo01.LOG',
      9                     GROUP 2 'C:\oracle10g\oracle\oradata\orcl1\orcl1\redo02.LOG',
    10                     GROUP 3 'C:\oracle10g\oracle\oradata\orcl1\orcl1\redo03.LOG'
    11  DATAFILE
    12                     'C:\oracle10g\oracle\oradata\orcl1\orcl1\SYSAUX01.DBF',
    13                     'C:\oracle10g\oracle\oradata\orcl1\orcl1\SYSTEM01.DBF',
    14                     'C:\oracle10g\oracle\oradata\orcl1\orcl1\UNDOTBS01.DBF',
    15                     'C:\oracle10g\oracle\oradata\orcl1\orcl1\USERS01.DBF'
    16 
    SQL> /
    Control file created.
    SQL> alter database open
      2  /
    Database altered.Khurram

    No need to manually recreate the controlfile. Simply issue RECOVER DATABASE prior to opening database.
    E:\>rman target /
    Recovery Manager: Release 10.2.0.1.0 - Production on Sun Dec 30 01:22:34 2007
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    connected to target database (not started)
    RMAN> startup
    Oracle instance started
    database mounted
    database opened
    Total System Global Area     612368384 bytes
    Fixed Size                     2006192 bytes
    Variable Size                239076176 bytes
    Database Buffers             364904448 bytes
    Redo Buffers                   6381568 bytes
    RMAN> backup database;
    Starting backup at 30-DEC-07
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=148 devtype=DISK
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    input datafile fno=00001 name=E:\ORACLE\ORADATA\ORA10G\SYSTEM01.DBF
    input datafile fno=00002 name=E:\ORACLE\ORADATA\ORA10G\UNDOTBS01.DBF
    input datafile fno=00003 name=E:\ORACLE\ORADATA\ORA10G\SYSAUX01.DBF
    input datafile fno=00004 name=E:\ORACLE\ORADATA\ORA10G\USERS01.DBF
    channel ORA_DISK_1: starting piece 1 at 30-DEC-07
    channel ORA_DISK_1: finished piece 1 at 30-DEC-07
    piece handle=D:\DB_BACKUPS\12J4S23M_1_1.BKP tag=TAG20071230T012302 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:01:35
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    including current control file in backupset
    including current SPFILE in backupset
    channel ORA_DISK_1: starting piece 1 at 30-DEC-07
    channel ORA_DISK_1: finished piece 1 at 30-DEC-07
    piece handle=D:\DB_BACKUPS\13J4S26L_1_1.BKP tag=TAG20071230T012302 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:03
    Finished backup at 30-DEC-07
    RMAN> shutdown immediate
    database closed
    database dismounted
    Oracle instance shut down
    RMAN> exit
    Recovery Manager complete.
    E:\>del e:\oracle\oradata\ora10g\*.ctl
    E:\>rman target /
    Recovery Manager: Release 10.2.0.1.0 - Production on Sun Dec 30 01:25:39 2007
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    connected to target database (not started)
    RMAN> startup
    Oracle instance started
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of startup command at 12/30/2007 01:25:56
    ORA-00205: error in identifying control file, check alert log for more info
    RMAN> restore controlfile from 'D:\DB_BACKUPS\13J4S26L_1_1.BKP';
    Starting restore at 30-DEC-07
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=157 devtype=DISK
    channel ORA_DISK_1: restoring control file
    channel ORA_DISK_1: restore complete, elapsed time: 00:00:03
    output filename=E:\ORACLE\ORADATA\ORA10G\CONTROL01.CTL
    output filename=E:\ORACLE\ORADATA\ORA10G\CONTROL02.CTL
    output filename=E:\ORACLE\ORADATA\ORA10G\CONTROL03.CTL
    Finished restore at 30-DEC-07
    RMAN> alter database mount;
    database mounted
    released channel: ORA_DISK_1
    RMAN> alter database open resetlogs;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of alter db command at 12/30/2007 01:27:33
    ORA-01152: file 1 was not restored from a sufficiently old backup
    ORA-01110: data file 1: 'E:\ORACLE\ORADATA\ORA10G\SYSTEM01.DBF'
    RMAN> recover database;
    Starting recover at 30-DEC-07
    Starting implicit crosscheck backup at 30-DEC-07
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=156 devtype=DISK
    Crosschecked 1 objects
    Finished implicit crosscheck backup at 30-DEC-07
    Starting implicit crosscheck copy at 30-DEC-07
    using channel ORA_DISK_1
    Finished implicit crosscheck copy at 30-DEC-07
    searching for all files in the recovery area
    cataloging files...
    no files cataloged
    using channel ORA_DISK_1
    starting media recovery
    archive log thread 1 sequence 1 is already on disk as file E:\ORACLE\ORADATA\ORA10G\REDO03.LOG
    archive log filename=E:\ORACLE\ORADATA\ORA10G\REDO03.LOG thread=1 sequence=1
    media recovery complete, elapsed time: 00:00:02
    Finished recover at 30-DEC-07
    RMAN> alter database open resetlogs;
    database opened
    RMAN> shutdown immediate
    database closed
    database dismounted
    Oracle instance shut down
    RMAN> startup
    connected to target database (not started)
    Oracle instance started
    database mounted
    database opened
    Total System Global Area     612368384 bytes
    Fixed Size                     2006192 bytes
    Variable Size                247464784 bytes
    Database Buffers             356515840 bytes
    Redo Buffers                   6381568 bytes
    RMAN>

  • ITunes won't sync any music that was not purchased from iTunes onto my iPhones 5S

    I have updated to Mavericks on my macbook, and iTunes will no longer sync my iPhone 5S properly. It does not remove any music that has been deleted. My phone will no longer play any music that was not purchased from iTunes. I tried to delete all my music and download it again, but iTunes would not remove it from the phone. Is anyone having a similar problem? Any ideas to get things back to normal? I am restoring from back up as I type, but I doubt it will solve my problem.

    I had the exact same problem since upgrading to Mavericks. When I tried to copy the music from iTunes, either wifi or wired, it appeared in 'On this phone' greyed out. Forcing a sync didn't help. I noticed too that iTunes showed odd values for the amount of space available on the phone - around 9GB compared to 27GB on the phone itself.
    I solved the problem by turning off iTunes Match, turning it back on again, then reconnecting my iPhone.
    Message was edited by: ajstevens

  • Price was not picking from the Condition type for Item Category 'P'  in PO

    Hi Experts,
    I Created one condition type based on Material and WBS which price was fixed based on this
    I used the Purchase Order having Item <b>Category ‘P’ or ‘Q’</b> Price should pick from the condition type where I mapped the WBS Element and Material.
    The Net price was not picking from the Condition type Record.  Why? What should be the Problem?
    Whether my logic is correct or not?
    <u><b>
    The Scenario:</b></u> I want to fix the Material price base on each WBS Element for a Project. For each WBS Element the Price will be various for same material.
    Please help on this.
    Thanks
    Muthukumar

    Hi,
    In standard configuration you cannot set item delivery date as a pricing data.
    Maybe you shoud look at SAP enchancement - in dedicated structures you can pass additional item data (structure KOKMP).
    IMG link:
    Materials Management -> Purchasing -> Conditions -> Define Price Determination Process -> System Enhancements
    hope it helps.
    regards,
    wojciech

Maybe you are looking for

  • ITunes will not launch when iPod is connected

    I've been having a problem over the last several days where iTunes will bounce a couple of times in the Dock, the black triangle appears below the Dock icon, but no window opens up and eventually iTunes shows that it's not responding. I am unable to

  • File download issue through ASA

    Hi, We have ASA 5540 with 8.2 SW. We are trying to download a file (3 MB pdf)  from https session which fails if done behind the firewall. In case, the client bypasses firewall, the file gets downloaded as usuall. Interesting thing here to note is th

  • Custom icon on a disk shared via Airport Extreme

    I have a USB hard drive that I am sharing via an airport extreme. In the finder, under "Shared" I see my airport extreme. When I click on that, I see my external drive. I would like to change the icon for that, but the standard Get Info -> paste does

  • Important question about my code

    Okay so here's the deal, I have been working on creating the 6/49 lottery game and so far everything works fine, however I have one problem with how the program runs. The instructions are as follows: The program generates 6 random numbers from 1 to 4

  • Does anyone know there way around the audio settings and audio cables?

    I need some help setting up some audio settings for my Ps4 in a weird way. What I want to do is what CBarner89 does on twitch. If you havnt seen him stream from his Ps4 he has his decks hooked up to his stream directly channeling the audio in to the