Programmatically removing a workspace

Hi,
I need to programmatically remove a workspace that was previously imported with the sql script generated by html db.
Today i delete a workspace by the following sql command
delete from FLOWS_010500.WWV_FLOW_COMPANIES where SHORT_NAME='AWORKSPACE';
Is it the right way to do this

Olivier,
We do not recommend performing DML on the HTML DB schema objects. It may work for you but it's not supported.
Scott

Similar Messages

  • How do I programmatically remove a Windows system font with LabVIEW?

    Is there a way to programmatically remove a Windows System Font?
    Thanks!

    If you know the font name, you should be able to just use the Delete function. On NT, Win2K, the fonts are stored in the WINNT\Fonts folder. I think you'll have to have admin rights to delete files there.

  • SSRS programmatically remove the unattended execution account

    Hi,
    Is there a way to programmatically remove the SSRS unattended execution account?
    In the
    Configuring the Unattended Execution Account article, the "How to Delete the Unattended Report Processing Account" section only list a manual step to do so.
    I also didn't find any terms that I could use with the rsconfig utility to do so, see
    rsconfig Utility.
    Thanks,
    Emmanuel

    Hi Emmanuel,
    When we set the account in SSRS, it will add specify Encrypted characters in the RSreportserver.config file. If we want to programmatically remove the SSRS unattended execution account, we need find a way to delete the corresponding Encrypted characters
    in the RSreportserver.config file.
    Based on my test, I cannot programmatically remove the Encrypted characters. As per my understanding, delete the unattended report processing account is a simple step in SSRS. The manual steps may be simpler than programmatically remove the account.
    Hope this helps.
    Regards,
    Alisa Tang
    If you have any feedback on our support, please click
    here.
    Alisa Tang
    TechNet Community Support

  • Programmatically remove ethercat slaves from scan engine

    I am using an RT Target as the master of EtherCAT chain.  It has several different sorts of third party slaves in the chain.  All are correctly detected.  However some are buggy (they're in development) and prevent the Scan Engine from switching to Active mode.  If I remove the buggy slaves from under EtherCAT Master (but leave them plugged into the chain) in the project then the Scan Engine will switch to Active and the remaining targets are interogated correctly.
    However I want my RT app to be stand alone and adapt to different chains of slaves. I invoke the Refresh Modules method to find all the available slaves then it finds the buggy ones.  These then prevent the Scan Engine from switching to Active mode.  I have not been able to find a way to programmatically remove these buggy slaves as I can from the project - does it exist???
    Many thanks!

    I am not sure if you will be able to do this but I would suggest posting this question to the Industrial Communications board.
    http://forums.ni.com/t5/Industrial-Communications/bd-p/260
    If this is something that you are able to do, the people that frequent that board are much more likely to know about it.
    Matt J
    Professional Googler and Kudo Addict
    National Instruments

  • How to programmatically remove the reference to a VI within a project...

    Big picture of what I'm after is to go through a massive project and remove unused VIs.  I've got a way to programmatically go through and find all unused VIs and can them delete them from my machine.  But I'd like to also remove the reference to them in the project.  Anyone aware of how to go about this?
    Thanks!

    LV8.5's project explorer introduces a new setting for the folders : Snapshot or Auto-populating. The project will be refreshed automatically according to the content of an auto-populating folder.
    The behaviour of a folder is shown by its icon and it is possible to change it at any time.
    See this document for more details.
    Message Edité par JB le 02-22-2008 09:11 AM
    Attachments:
    Add folder to project.jpg ‏46 KB
    Convert.jpg ‏69 KB

  • How can I programmatically remove a selection of plots from a waveform graph?

    I have a waveform graph to display a number of plots, which I need to programmatically add and delete to as selections of data are chosen by the user for display.
    I've looked under the VI Server Property node and cannot see anything suitable for adding extra plots, or removing existing plots. I expected to see a Plot Data array variable, with each element containing the data for each of the plots on the graph. There is such an array for the annotations, which I can easily edit by Removing Subset for Array, or Insert into Array, but nothing for the plot data. The Value property is a Variant, which I'm unsure how to handle. Should I be working with this perhaps? Can this be done by creating a Local Variable read node? Or am I missing something simple here??
    Thoric (CLA, CLED, CTD and LabVIEW Champion)

    Hi Mike,
    I was trying to use the Property Node (Value) to read the waveform graph, but I was getting a Variant type back, not a 2D array of DBLs as I expected. Turns out I was passing the graph control reference to a subvi whose control refnum had the Include Type flag unchecked. As a result of this explicit definition, Value was of an uncertain (undefined) type and couldn't be natively provided. It would have had to have been cast into a more specific type to work. Have solved the problem by ensuring all my references are of a strict type, and now (as you recommend) the Property Node (Value) is useful
    Many thanks for the response!
    And many thanks for the demo too! You put that together remarkably quickly!
    Thoric (CLA, CLED, CTD and LabVIEW Champion)

  • Programmatically remove the image associated to an item

    Hi all.
    I am trying to delete the image associated to a Portal 10.1.4 item via PL/SQL.
    Basically I need the functionality of the Edit Item Portal form that is performed clicking the little red cross (javascript:doApply('DelTitleImg')) below the image.
    I have tried invoking both modify_item_post_upload or modify_item (omitting p_image_name) to no avail. For example (this is the same code I use to modify an item, so I know it works):
    pv.g_iid := wwsbr_api.modify_item_post_upload(
                                    p_master_item_id => pv.g_mid,
                                    p_item_id        => pv.g_iid,
                                    p_caid           => pv.g_pgid,
                                    p_folder_id      => pv.g_fid,
                                    p_region_id      => pv.g_rgid,
                                    p_display_name   => pv.g_dname,
                                    p_description    => pv.g_descr,
                                    p_display_option => wwsbr_api.NEW_WINDOW,
                                    p_addnewversion  => FALSE,
                                    p_text           => pv.g_text,
                                    p_url            => pv.g_url,
                                    p_publish_date   => l_pdate,
                                    p_expiration     => l_adate,
                                    p_expire_mode    => l_expire,
                                    p_attribute_id   => l_attr_id,
                                    p_attribute_caid => l_attr_caid,
                                    p_attribute_data_type => l_attr_data_type,
                                    p_attribute_value     => l_attr_value);I get no errors, but simply the image is not removed. Is there an API I'm not aware of that should be used?
    TIA for your help.
    Alessandro

    Hi, you release could use wwsbr_api.delete itemHi and thanks for your reply.
    I'm not sure I understand, though: I don't want to delete the whole item, just the image.
    According to Oracle, there's no supported API to do that at the moment (filed an ER) so I'll probably have to delete / recreate the item: were you referring to that kind of solution?
    Alessandro

  • Programmatically remove filter of table (QBE filter)

    Hi
    I'm using JDev 11.1.1.2
    Is there a way to remove the QBE filter (entered by the client) on a table on button pressed? There are other view criteria involved so I don't want to remove all view criteria from the view, only the one from the QBE filter.
    (To make reset button for the QBE Filter of a table).
    Thanks
    a.gruev

    Hi,
    chk the below link
    http://blogs.oracle.com/smuenchadf/examples/
    got to example 146. I suppose this is what you are looking for.

  • How do I programmatically remove comments within an expression ?

    I would like to evaluate into a LabVIEW substep a TS expression. This expression may contain comment(s).
    The TestStand Str() function allow to do that with the "%expr" format.
    I tried to do something equivalent with the GetFormattedValue method, but the "%expr" format is not allowed.
    Is there any way to do it without adding a pre-expression in my substep ?
    Jean-Louis SCHRICKE
    ├ CTA - Certified TestStand Architect (2008 & 2010 & 2014)
    ├ CTD - Certified TestStand Developer (2004 & 2007)
    └ CLD - Certified LabVIEW Developer (2003 & 2005)

    There is the following API method that will help you:
    PropertyObject.EvaluateEx ( exprString, evaluationOptions).
    You would use this most likely on the SequenceContext. It will return a new property object with the evaluated value. For example, if exprString is "\"this is a test\" //comment here", it will be evaluated to the string "this is a test". Likewise, if you had a local variable Locals.stringVar which had a value of "abc", you could pass the expression "Locals.stringVar //comment here", and it would evaluate to "abc". It will return it in a property value (which you can call GetValNumber or GetValString, etc...), and you can then take that value and do what you please.
    It sounds like you want something to evaluate to a number, then format it with a format string in LabVIEW. You can evaluate the expression to a PropertyObject that is a number type, get the value of the number, then use the Format String VI in LabVIEW.
    If you are trying to do something else or I didn't answer your question, let me know.
    Allen P.
    NI

  • How do I programmatically remove a subVI from another VI's block diagram?

    If it helps, I have a special do-nothing VI called "Bookmark.vi" that I use to mark related code when I have to hop around between two or more places repeatedly.

    You would need to use the super secret, super "can completely mess up my program", method of LabVIEW VI Scripting. You can find more information over at the Lava User Groups.
    Of course, if the VI doesn't do anything, why not just leave it in and not bother with it?

  • Is there a way to remove the .lock file programmatically?

    I'm creating a web app with NetBeans, Tomcat and the H2 Database Engine and am having troubles with database errors that seem to be caused by the .lock file existing in the directory where I am storing the database.
    Is there a way to programmatically remove the .lock file? I like for the database to be locked only when it is being accessed by either of two different servers, but so far am having trouble with only one server running.
    I have tried calling the close() method from the class that calls my database class when it is done with it, but it is creating an exception stating that the database is already open and tells me to close it. That's what I was trying to do!
    Edited by: GoDonkeys on Feb 9, 2010 4:39 PM

    Saish wrote:
    Are you closing it this way [http://hsqldb.org/doc/2.0/guide/running-chapt.html#running_closing-sect]? And why are you worried about this? If two servers are going to connect, you should be running in HSQL "server" mode [http://hsqldb.org/doc/2.0/guide/running-chapt.html#running_modes-sect]. You can erase the lock file using java.io.File. But IMO, the fact you want to do this indicates you are not using the right database mode.
    - SaishI started out using HSQLDB, but it was giving me problems when I was trying to add data to my database, so I switched to H2 (as stated above) and it was able to add as much data as I could throw at it without any issues. My problem is that while debugging with NetBeans I occasionally get exceptions from H2 (through JDBC) that the database is locked and access was denied.
    I would like to be able to only have the database "open" when I'm actively querying it or manipulating it.

  • DTR can't remove workspace

    Hi,
    I have to remove a workspace from the DTR using the command line client. The workspaces command returns
    the following entries:
    //EXMDEV/axentiv_EXAMPLES/cons/active/
    //EXMDEV/axentiv_EXAMPLES/cons/inactive/
    When I enter the command:
    deleteworkspace -w "//EXMDEV/axentiv_EXAMPLES/cons/active" the following error is thrown:
    Could not delete workspaceConflict [(pre||post)-condition failed: x:cannot-delet
    e-wsp-repository-name-not-set]
    Could anybody tell me what I'm doing wrong here?
    Thank you in advance and kind regards,
    Heiko Nolte

    Hi Heiko
    Deletion of a workspace is considered as an administrative action in DTR.  Certain pre-conditions need to be satisfied in order to delete a workspace and one of the conditions is that a display-name should be set for the DTR repository.
    Other pre-conditions include:
    - You should have administrative privileges
    - There should be no open activities in the workspace.
    In order to set the repository display name, go to:
    http://<host>:<port>/dtr/sysconfig/support/RepositoryConfig
    (The /sysconfig/ is not shown as a member of the root. You will have to directly go to the above resource)
    Provide a display name and click on 'Set'.  After this, you should be able to delete the workspace if all other pre-conditions are satisfied.
    - Girish

  • 31 workspaces some removed some not

    Hi all,
    I have this feeling that i may be wrong here but not sure where I'm making the mistake therefore I'm seeking for your help.
    Here's the scenario :
    1 Version enabled table called USERSTATUS. With 31 Workspaces (one WS / day of the month), since i need to keep track of daily activities.
    All I'm doing is a refresh from the 'LIVE' every day on the correspondent WS, therefore i froze all workspaces (before i do the refresh i unfreeze it, do the refresh and freeze it back).
    All seems to work fine till i reached the moment when i wanted to disable versioning, and reenable it (i might need this scenario, when installing my company's product's new release which from this point supports WS, and in case of a rollback i need to disable versioning, and later on on a point release re-enable it!!).
    When i tried to disable versioning (which i do with unfreezing and removing the workspaces first) i get this strange message, but ONLY for 2 of the workspaces (28 and 31 in particular ) :
    begin
    DBMS_WM.RemoveWorkspace('USERSTATUS_28');
    end;
    ORA-20079: WM internal error [REPORTS.USERSTATUS_LT does not have a primary key]
    ORA-06512: at "SYS.LT", line 3427
    ORA-06512: at "SYS.LT", line 4620
    ORA-06512: at line 2
    If i try to recreate it, I obviously get the :
    begin
    DBMS_WM.CreateWorkspace('USERSTATUS_28');
    end;
    ORA-20023: a workspace already exists with the name: 'USERSTATUS_28'
    ORA-06512: at "SYS.LTADM", line 663
    ORA-06512: at "SYS.LTADM", line 644
    ORA-06512: at "SYS.LT", line 4506
    ORA-06512: at line 2
    My OWM Version is 9.2.0.2.0.
    Also another weird scenario happened at our client's test lab. They somehow erased some parts of the versioned table. the LT is still there but not the AUX anymore, and also some views are missing.
    When i try to disable versioning, i get the error message that workspaces have modified data. But i cannot do anythign to remove those workspaces. Therefore i cannot disable versioning. In my despair I tried to uninstall/reinstall OWM, which didn't work either since version enabling was on. Also i couldn't DROP USER for the same reason.
    Thank you kindly for you patience,
    Richard

    Hi Ben,
    thank you kindly for your time and patience, and of course answer.
    I've found out what happened.
    The SYSDBA (of our client) issued a DROP USER, and the DROP USER removed all the tables till it reached USERSTATUS_LT which could not be dropped, and right now is the only table in the user's schema.
    Regarding my other issue (with the primary key BUT(!!) only for certain workspaces) :
    The USERSTATUS has a primary key called PKID.
    But something else happened, people disabled versioning while they were in those two workspaces (not at the same time of course).
    ... so they issued a DBMS_WM.DisableVersioning while in workspace : USERSTATUS_28 and later on after a DBMS_WM.
    EnableVersioning, another DBMS_WM.DisableVersioning while in workspace USERSTATUS_31. Ever since, we cannot remove those two workspaces, since if we try we get the :
    ORA-20079: WM internal error [REPORTS.USERSTATUS_LT does not have a primary key]
    ORA-06512: at "SYS.LT", line 3427
    ORA-06512: at "SYS.LT", line 4620
    ORA-06512: at line 2
    I'd realy need a hint on this, since this is burning for me.
    Thank you in advance,
    Richard

  • Can't remove workspace from DTR with shell

    Hi,
    initially I have posted this message to the Java development forum. It might suite this forum more. Sorry.
    I have tried to remove a workspace from the DTR using the command line client. The workspaces command returns
    the following entries:
    //EXMDEV/axentiv_EXAMPLES/cons/active/
    //EXMDEV/axentiv_EXAMPLES/cons/inactive/
    When I enter the command:
    deleteworkspace -w "//EXMDEV/axentiv_EXAMPLES/cons/active" the following error is thrown:
    Could not delete workspaceConflict [(pre||post)-condition failed: x:cannot-delet
    e-wsp-repository-name-not-set]
    Could anybody tell me what I'm doing wrong here?
    Thank you in advance and kind regards,
    Heiko Nolte

    Hi Heiko
    Deletion of a workspace is considered as an administrative action in DTR.  Certain pre-conditions need to be satisfied in order to delete a workspace and one of the conditions is that a display-name should be set for the DTR repository.
    Other pre-conditions include:
    - You should have administrative privileges
    - There should be no open activities in the workspace.
    In order to set the repository display name, go to:
    http://<host>:<port>/dtr/sysconfig/support/RepositoryConfig
    (The /sysconfig/ is not shown as a member of the root. You will have to directly go to the above resource)
    Provide a display name and click on 'Set'.  After this, you should be able to delete the workspace if all other pre-conditions are satisfied.
    - Girish

  • OC4J not running after creating workspace and projects.

    Created one workspace and added six projects. Added PostGes jar to library manager. Before doing this, the OC4J would run a test application successfully. After creating the workspace and project, I created another simple workspace with two JSP, on linked to the other. When trying to run this project get the following:
    Apr 17, 2008 10:51:53 AM com.evermind.server.jms.JMSMessages log
    INFO: JMSServer[]: OC4J JMS server recovering transactions (commit 0) (rollback 0) (prepared 0).
    Apr 17, 2008 10:51:53 AM com.evermind.server.jms.JMSMessages log
    INFO: JMSServer[]: OC4J JMS server recovering local transactions Queue[jms/Oc4jJmsExceptionQueue].
    Apr 17, 2008 10:51:55 AM oracle.j2ee.util.LoggingUtils logAndReturnMessage
    WARNING: Exception creating connection pool. Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : org.postgresql.Driver
    08/04/17 10:51:55 SEVERE: ApplicationStateRunning.initConnector Error occurred initializing connectors. Exception is: Exception creating connection pool. Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : org.postgresql.Driver
    08/04/17 10:51:55 SEVERE: ApplicationStateRunning.initConnector Stack trace: oracle.oc4j.sql.DataSourceException: Exception creating connection pool. Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : org.postgresql.Driver
         at com.evermind.server.ApplicationStateRunning.initDataSourceConnectionPool(ApplicationStateRunning.java:2072)
         at com.evermind.server.ApplicationStateRunning.initDataSourceConnector(ApplicationStateRunning.java:2017)
         at com.evermind.server.ApplicationStateRunning.initConnector(ApplicationStateRunning.java:1272)
         at com.evermind.server.ApplicationStateRunning.initConnectors(ApplicationStateRunning.java:345)
         at com.evermind.server.ApplicationStateRunning.initializeApplication(ApplicationStateRunning.java:206)
         at com.evermind.server.Application.setConfig(Application.java:438)
         at com.evermind.server.Application.setConfig(Application.java:339)
         at com.evermind.server.ApplicationServer.addApplication(ApplicationServer.java:1895)
         at com.evermind.server.ApplicationServer.initializeDeployedApplications(ApplicationServer.java:1651)
         at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1034)
         at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:131)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: javax.resource.ResourceException: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : org.postgresql.Driver
         at oracle.oc4j.sql.spi.ResourceAdapterImpl.createDataSourceConnectionPool(ResourceAdapterImpl.java:106)
         at oracle.oc4j.sql.DataSourceUtils.getDataSourceConnectionPool(DataSourceUtils.java:330)
         at com.evermind.server.ApplicationStateRunning.initDataSourceConnectionPool(ApplicationStateRunning.java:2053)
         ... 11 more
    Caused by: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : org.postgresql.Driver
         at oracle.oc4j.sql.config.DataSourceConfigUtils.createConnectionFactory(DataSourceConfigUtils.java:283)
         at oracle.oc4j.sql.DataSourceConnectionPoolImpl.<init>(DataSourceConnectionPoolImpl.java:108)
         at oracle.oc4j.sql.spi.ResourceAdapterImpl.createDataSourceConnectionPool(ResourceAdapterImpl.java:99)
         ... 13 more
    Caused by: oracle.classloader.util.AnnotatedClassNotFoundException:
         Missing class: org.postgresql.Driver
         Dependent class: oracle.oc4j.sql.config.DataSourceConfigUtils
         Loader: oc4j:10.1.3
         Code-Source: /C:/Jdeveloper10/j2ee/home/lib/oc4j-internal.jar
         Configuration: <code-source> in META-INF/boot.xml in C:\Jdeveloper10\j2ee\home\oc4j.jar
    Remove the posgres jar from the library manager and still not able to run simple two page applications.
    All the projects in the other workspace compile fine. The prolblem is that now I am not able to use the internal OC4J. I remove the workspace with the five projects, and the JARs and the two page app will not run.
    The OC4J is running when launched from the IDE, ti just can find the pages.
    New install of JDEV and the two page app will run fine. Add two user two user libraries and the app will not run.
    Thank you,
    Ben Carter

    Do you have a database connection to postgress defined in JDeveloper?
    JDev might be picking this up and trying to add a datasource for it to the embedded OC4J - so try removing it, or alternatively add the postgress JDBC driver jar files to the libraries node under tools->embedded OC4J preferences.

Maybe you are looking for

  • Populating MESFCT and MESCOD in IDOC control record through XI.

    Hi Experts, I want to map only MESFCT and MESCOD fields to IDOC control record as i see help.sap.com and all forums this part in XI is very confusing, as mentioned in the below thread i disabled all the mandatory fields(which are in red color)  in th

  • Why does my iChat video only run at one frame per second?

    When I connect to anyone on iChat my video runs at only about one frame per second. When others connect to me their video is much faster. This hasn't been a problem in the past - even with other Internet apps running when I'm using iChat. Could this

  • User exit on quanity in material componenet

    Dear All , Please tell me USER Activity to control the quantity on material component . This is very urgent . Please give the answer as as Posble. Regards Rama S. Sharma Edited by: Rama Shanker Sharma on Sep 29, 2008 11:59 AM

  • Hi i am new to hr

    hi,    send me how to create the info type and the subtype through pdf. regards in advance, pandu.

  • List of approvers

    Hi, I want to show the name of prior approvers, e.g. X should be able to see who all approved the same PR prior to him/her. Also I need to show the requester's name in the workflow. Many Thanks Gaurav Berry