Can I use Citadel as database in cRIO(having VXworks)

Hello,
Is it possible to have citadel as database in cRIO having Vxworks as OS.
I donot have any host pc in the developement setup.
I need to store data in cRIO by implementing any kind of data.
Kindly let me know what all are the drawback for citadel.

There is an SQLite library somewhere on one of the NI Developer Resources specifically ported to cRIO. That may be the solution for you.
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions

Similar Messages

  • DBCA can not use ASM for database storage due to following reason: Could no

    Hi
    I've a recently installed RAC11gR2(11.2.0.3) on HP-UX
    I installed Grid Infrastructure with grid user:
    Node1: # id grid
    uid=1100(grid) gid=1000(oinstall) groups=1031(dba),1021(asmdba)
    Node2: # id grid
    uid=1100(grid) gid=1000(oinstall) groups=1031(dba),1021(asmdba)
    I installed the Oracle Server with oracle user:
    Node1: # id oracle
    uid=1101(oracle) gid=1000(oinstall) groups=1031(dba),1021(asmdba),1033(oper)
    Node2: # id oracle
    uid=1101(oracle) gid=1000(oinstall) groups=1031(dba),1021(asmdba),1033(oper)
    All related Grid Infrastructure is functioning well in both nodes:
    $ crs_stat -t
    Name Type Target State Host
    ora.DATA.dg ora....up.type ONLINE ONLINE node03
    ora.FRA.dg ora....up.type ONLINE ONLINE node03
    ora....ER.lsnr ora....er.type ONLINE ONLINE node03
    ora....N1.lsnr ora....er.type ONLINE ONLINE node04
    ora.asm ora.asm.type ONLINE ONLINE node03
    ora.cvu ora.cvu.type ONLINE ONLINE node04
    ora.gsd ora.gsd.type OFFLINE OFFLINE
    ora....network ora....rk.type ONLINE ONLINE node03
    ora.oc4j ora.oc4j.type OFFLINE OFFLINE
    ora.ons ora.ons.type ONLINE ONLINE node03
    ora.scan1.vip ora....ip.type ONLINE ONLINE node04
    ora....SM1.asm application ONLINE ONLINE node03
    ora....03.lsnr application ONLINE ONLINE node03
    ora....d03.gsd application OFFLINE OFFLINE
    ora....d03.ons application ONLINE ONLINE node03
    ora....d03.vip ora....t1.type ONLINE ONLINE node03
    ora....SM2.asm application ONLINE ONLINE node04
    ora....04.lsnr application ONLINE ONLINE node04
    ora....d04.gsd application OFFLINE OFFLINE
    ora....d04.ons application ONLINE ONLINE node04
    ora....d04.vip ora....t1.type ONLINE ONLINE node04
    $
    The ASM instance are running well in both nodes
    Connected with oracle user, the listener has registered perfectly the ASM instance in each node:
    $
    $ lsnrctl status
    LSNRCTL for HPUX: Version 11.2.0.3.0 - Production on 16-MAY-2012 15:41:06
    Copyright (c) 1991, 2011, Oracle. All rights reserved.
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for HPUX: Version 11.2.0.3.0 - Production
    Start Date 16-MAY-2012 15:24:19
    Uptime 0 days 0 hr. 16 min. 47 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /u01/app/11.2.0/grid/network/admin/listener.ora
    Listener Log File /u01/app/grid/diag/tnslsnr/node03/listener/alert/log .xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=16.0.0.133)(PORT=1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=16.0.0.136)(PORT=1521)))
    Services Summary...
    Service "+ASM" has 1 instance(s).
    Instance "+ASM1", status READY, has 1 handler(s) for this service...
    The command completed successfully
    $
    $
    DATA & FRA disk group are created:
    $
    $ echo $ORACLE_SID
    +ASM1
    $
    $ asmcmd
    ASMCMD>
    ASMCMD> ls -lt
    State Type Rebal Name
    MOUNTED EXTERN N DATA/
    MOUNTED EXTERN N FRA/
    ASMCMD>
    ASMCMD>
    The big issue is... that the DBCA can not see the diskgroups. When I choose ASM Storage it can not see them. It shows the chart in blank and if i try to write the disk group, so the following message appears: can not use ASM for database storage due to following reason: Could not connect to ASM due to following error: ORA-01034 ORACLE not available
    What can be passing in this case... ?
    Thanks in advance

    Thanks both
    Really the problem initially was because of this:
    [INS-06006] Passwordless SSH connectivity not set up between the following node(s): [node1, node2]. CVU may reports "PRVF-4007 : User equivalence check failed for user "user"" for same error
    and I had to install node1 first and after node2 manually and perhaps for this the product was not well linked.
    I resolved the problem establishing the keys with the wizard and after copying the following files from node1 to node2
    /home/grid/.ssh -------> /home/grid/.ssh
    authorized_keys
    known_hosts
    This is the procedure if you run the wizard at the node1.
    The problem is that the wizard creates the keys incompletely...
    Thanks

  • How can i use offline & online database in the same time?

    how can i use offline & online database in the same time?
    my database in another server when the connection true it connect
    but if not does not work
    i wanna make offline database if the server not connected it connect offline then the server is on it alter all data from the offline to the server.

    User, please tell us your Jdev version!
    There is no such functionality build into the framework. The offline data base is only for designing the db, not to have a backup db.
    If you can't connect to the db the application will not work.
    Timo

  • Can I use RMAN transportable database cross platform from 10g to 11g?

    Hi,
    I'm working on the migration plan, the source db server is solaris with 10g database while the destination server is AIX with 11g database.
    Can I use RMAN transportable database for this purpose?
    Coz I have read the restrictions on Cross-Platform Transportable Database, but it does not mention whether it can work for different version of database.
    please help.

    Hi,
    Do you have metalink account? If yes please check : Cross-Platform Migration on Destination Host Using Rman Convert Database [ID 414878.1]*
    RMAN Cross-Platform Transportable Databases and Tablespaces
    Thank you

  • Can I use one contacts database for phone and email?

    I have a gmail contacts list for email.  I also have a phone number database imported from a non-apple cell phone to my iPhone 5c.  I find that I'm using the iphone more and more for both phone and email, but I also use my PC for email.
    I exported my 300+ gmail contacts using google to a CSV file, cleaned it up, and imported it back to my PC.  Of course, it doesn't have the 200+ phone numbers that are in my phone number listing now on my iPhone.
    I like working with spreadsheets because of the many utilities to sort, cut/paste, etc.  If I take my gmail database, ultimately add phone numbers, and sync in iTunes will it be accessed whenever I want to make a call and also when I want to send an email?  I'm hesitant to sync with the new gmail "email only" database for fear of losing all of the many phone numbers in my iPhone. Can I keep my phone numbers temporarily while I edit my master contacts database - maybe by having separate databases on my iPhone for email and phone?  I hope to eventually keep a master PC database of all data on all entries and change/reimport as needed.
    Thanks for letting me know if this will work, or if there are any cautions that I should heed.

    Yes.

  • Can I use the same database for two WSUS servers?

    Hi Folks,
    Our HQ WSUS database is on a dedicated SQL Server 2008 in HQ. We are planning to set up a replica WSUS server in a branch office (centralized management mode). But we want to check the WSUS reports (e.g. computer/update status) only from the HQ instead
    of each branch. I have two questions.
    I should not install the SQL Server in Branch, and specify the HQ SQL Server as the Branch WSUS server database, right? In this case, I can check WSUS reports of both HQ and Branch from HQ, right?
    Can I use a specific update source (e.g. Microsoft Update or other WSUS upsteam servers) for Branch WSUS server instead of HQ WSUS server even it's a replica WSUS server?
    Thanks,
    高麻雀

    Regarding to "If the branch office server is intended to be a replica server, then it must be configured with the HQ WSUS server as the update source", does it mean my branch WSUS server is only able to get the patches from my HQ WSUS server?
    That is the fundamental premise of a downstream replica server.
    Isn't it able to get the patches from Microsoft Update or other WSUS servers?
    Well, here we may have a terminology challenge... so let me take a step back and answer this way:
    A WSUS server obtains *updates* via the process of synchronization. Updates can be synchronized from one of two sources: Microsoft, or an Upstream WSUS Server.
    Additionally, updates have a concept of APPROVAL. Approvals can be obtained from an Upstream WSUS Server when the server is configured as a REPLICA server; otherwise, Approvals are created at each individual WSUS server.
    Finally, updates have FILES. Files can be obtained from Microsoft or the Upstream WSUS server, and this configuration option is absolutely independent of where the updates and/or approvals come from.
    Please note: All of this is exhaustively documented and discussed in the
    WSUS Deployment Guide. I would highly recommend reading it cover-to-cover.
    In this case, there will a a lot of bandwith cost on the leased line which is only 2Mbps and intended for critical business like VDI/ERP applications.
    A few thoughts here...
    First a 2Mb/sec link is more than adequate to support a WSUS server downloading update files from an Upstream WSUS Server.
    Second, using BITS you can configure when those files are transferred as well as how much of that 2Mb/sec is made available to the WSUS downstream server.
    Third... Patch Management IS a critical business function. Do not let it be treated as a step-child or the VDI/ERP functionally will be irrelevant.
    "after installing the replica server in the branch office, on the upstream server enable the option for Reporting Rollup", will the report information (computer/update status) be recorded in the HQ SQL Server?
    The detail reporting data for the clients of the downstream replica servers is physically stored in the upstream server's database.
    Lawrence Garvin, M.S., MCSA, MCITP:EA, MCDBA
    SolarWinds Head Geek
    Microsoft MVP - Software Packaging, Deployment & Servicing (2005-2014)
    My MVP Profile: http://mvp.microsoft.com/en-us/mvp/Lawrence%20R%20Garvin-32101
    http://www.solarwinds.com/gotmicrosoft
    The views expressed on this post are mine and do not necessarily reflect the views of SolarWinds.

  • Can I use two different database with DBSystemLoginModule?

    Finally I can login with Database user id by DBSystemLoginModule on Embedded oc4j server.
    But I confused between [b]jazn-data.xml and system-jazn-data.xml.
    Which xml do I have to edit for jdbcUrl and jdbcDriver?
    Now I would like to use two different database(such as only sid is different).
    In this case I want to show specific database name as realm name.
    What should I do?
    When I use DBSystemLoginModule, I edit JdbcUrl in system-jazn-data.xml.
    So can I pass the parameter for sid programmatically?
    And also I tried to run my application with other database with DBSystemLoginModule on Embedded oc4j server.
    I changed few things(jdbcUrl at system-jazn-data.xml,jazn-data.xml in embedded-oc4j-server/config and database connection for BusinessComponents at Project Properties of Model/ViewController.
    But I got some error.
    Did I miss something?
    ----< my error messgae >------
    500 Internal Server Error
    JBO-30003: The application pool (customer.model.datamodel.CMAppModuleLocal) failed to checkout an application module due to the following exception:oracle.jbo.JboException: JBO-29000: Unexpected exception caught: java.lang.NullPointerException, msg=null     at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2002)     Message was edited by:
    Message was edited by:
    sdcsdc

    I think I understand now, you are modifing the custom login modules configuration within the system-jazn-data.xml file. This is a bit dangerous! Didn't you register the login module in your orion-application.xml? For example, this is the way I do it:
    <web-module id="customProv-web" path="customProv-web.war" />
    <persistence path="persistence" />
    <!--data-sources path="./data-sources.xml"/-->
    <security-role-mapping name="sr_developer">
    <group name="developers" />
    </security-role-mapping>
    <security-role-mapping name="sr_manager">
    <group name="managers" />
    </security-role-mapping>
    <jazn provider="XML">
    <property name="custom.loginmodule.provider" value="true"/>
    <property name="role.mapping.dynamic" value="true"/>
    <property name="role.compare.ignorecase" value="true"/>
    </jazn>
    <!-- Configuring a Login Module in an Application EAR file. -->
    <jazn-loginconfig>
    <application>
    <name>customProv</name>
    <login-modules>
    <login-module>
    <class>oracle.security.jazn.login.module.db.DBTableOraDataSourceLoginModule</class>
    <control-flag>required</control-flag>
    <options>
    <option>
    <name>data_source_name</name>
    <value>jdbc/OracleDS2</value>
    </option>
    <option>
    <name>roles_fk_column</name>
    <value>userName</value>
    </option>
    <option>
    <name>table</name>
    <value>userinfo</value>
    </option>
    <option>
    <name>groupMembershipTableName</name>
    <value>groupinfo</value>
    </option>
    <option>
    <name>groupMembershipGroupFieldName</name>
    <value>role</value>
    </option>
    <option>
    <name>usernameField</name>
    <value>userName</value>
    </option>
    <option>
    <name>user_pk_column</name>
    <value>username</value>
    </option>
    <option>
    <name>passwordField</name>
    <value>passWord</value>
    </option>
    </options>
    </login-module>
    </login-modules>
    </application>
    </jazn-loginconfig>
    <log>
    <file path="application.log" />
    </log>
    <namespace-access>
    <read-access>
    <namespace-resource root="">
    <security-role-mapping name="<jndi-user-role>">
    <group name="administrators" />
    </security-role-mapping>
    </namespace-resource>
    </read-access>
    <write-access>
    <namespace-resource root="">
    <security-role-mapping name="<jndi-user-role>">
    <group name="administrators" />
    </security-role-mapping>
    </namespace-resource>
    </write-access>
    </namespace-access>
    </orion-application>

  • How can I use an Express database build with RAA in Express Objects???

    Hello, everybody!
    I have installed Express Server and Client on my computer. I've build an Express database With Relational Access Manager mapping data from an Oracle database.
    Now I want to use this express database in Oracle Express Objects.
    I understand that an express database build with understand can be used by defining a connection to Express Server and using the option Relational Access Manager Connection.
    But, I didn't understand the settings of this option. I open the settings window and there it is :
    - the MASTER DATABASE Box where I have to write the name of the CUBE from the express database build with understand?
    - the RDC File Box : what do I have to write here? I've read the HELP but I didn't understood. There is no file with the RDC extension in my computer.
    Thank you for your help!
    Anca.
    [email protected]

    you can extend it, very easly, with an Airport Express.
    once you connect the AExpress, on the App Airport Utility, in Wireless tab choose to "Extent a Network", you will be able to select your Network enter your Network Password and it is done
    i have 2 AExpress to extend my signal and also to Airplay to Remote Speakers and works perfectly
    good luck

  • How can I use USB camera with NI cRIO 9022, please see my strange problem.

    Hi,
            I would like to use a USB camera with NI cRIO 9022. I used the same USB camera with NI USB 6216 DAQ device and developed a VI(within a PROJECT and outside it). So, It is working fine with NI USB 6216 device when I use the Vision Assistant Express VI and gets detected in its Initialization Window.  Please see JPEG File 3 where I get NO ERROR.
            I am facing a problem when I want to use it with NI cRIO 9022. What exactly I am doing in this case is:
    1) Create a NEW PROJECT
    2) Add Targets and Devices(NI cRIO 9022)
    3) Use the Scan Interface mode
    4) Create a NEW VI under the cRIO 9022 device 
    5) Use a Timed Loop(Synchronized with Scan Engine) for continuous Data Acquisition and Sending from the Analog I/O modules.
    6) Use the Vision Assistant available through the NI Vision Acquisition 2010 Module(I get STUCK HERE! The Express VI opens the Initialization Window, but I don't see the USB camera like in JPEG File 3)
    I am facing difficulties with this HOST COMPUTER, cRIO implementation differences. On my host computer I have the software packages as shown in JPEG File 1, and on my cRIO 9022 as shown in JPEG File 2.
    Can someone guide me how to overcome this and get the USB camera detected when I am using NI cRIO 9022?
    NOTE: If this is a problem with software mismatches on HOST and NI cRIO 9022 device, please see JPEG Files 1 and 2 for available software and Host and cRIO 9022.
    Thanks.
    Amar.
    Attachments:
    Host Computer Image or Vision Acquisition Software Installed.JPG ‏91 KB
    IMAQ and dx Modules Installed on my NI cRIO 9022 hardware(No NI Vision Acquisition 2010 SP1).JPG ‏82 KB
    NI Vision Acquisition Express NO Error for NI cRIO 9022.JPG ‏48 KB

    When you select My Computer, you are running the program on the PC.  In this case, the camera works because it is connected to the PC.  The scan engine doesn't work because it needs to run on the cRIO, not the PC.
    When you create the program on the cRIO, you can use the scan engine because the program is on the cRIO.  You can't use the camera because it is back on the PC, and can't be found on the cRIO.
    The project is a wonderful tool, but it may be making the programming seem too simple.  It may not be clear to you that by moving a program to a different location (PC or cRIO), it is running in an entirely different environment on a totally different machine, even though it is just a little further down in the project.  You can't easily access the hardware on one machine while running the program on the other.
    So the summary is:  The camera is attached to the PC.  The scan engine runs on the cRIO.  Never the twain shall meet.
    Bruce
    Bruce Ammons
    Ammons Engineering

  • Just installed 10g Exp, can I use the "Bank" database from MySQL?

    So I installed MySQL, PHP, and Apache, separately. I was using a "Learning SQL 2005" book that instructed me to create a play "bank" database, and run the code to create/populate tables. I used the bank database for a while to learn and it was great.
    Now I installed Oracle Database 10g Express Edition and I uninstalled MySQL, PHP, and Apache. Is it possible to use this bank database that I was using with MySQL?
    When I go to the Database Home Page and go into the SQL Commands section and type "use bank;", it says "ORA-00900: invalid SQL statement".
    When I type "create database bank;", it says "ORA-01501: CREATE DATABASE failed ORA-01100: database already mounted".
    Also, since the SQL statements that I used to create the database in MySQL is just ANSI SQL, I can use these same statements to create a database in Oracle, right?
    Thanks for your help!

    Unfortunately every RDBMs ANSI SQL isn't quite ANSI SQL. You'll find datatypes in mysql that have no direct equivelant, and quite a few items that just won't work in oracle (or ms sqlserver, or ... the list goes on)
    Like the "create database" statement, to the oracle engine its an entirely different operation. There is no need to create a database, that's taken care of with the install. And the "use <database>" command doesn't have an oracle equivalent.
    Start by creating a database user with resource and connection privileges, and try the mysql create table statements. It'll take some work- changing up the DDLs to work will take a bit of trial and error but its one way to learn.
    $ sqlplus /nolog
    SQL> connect system
    ... Password ...
    ... Connected ...
    SQL> create user <username> identified by <password>;
    SQL> grant resource, create session to <username>;
    SQL> connect <username>
    ... password ...
    SQL> create table ...

  • Can I use UTL_MAIL if database is 10g, but Forms 6i

    If my application if running Forms 6i, but database is 10g, can I use UTL_MAIL to send email with attachment?

    sure.
    create the whole logic of your utl_mail-commands in a db-package of your own. Then use this procedure/function from within your form.
    But first check, if your forms-version is certified against a 10g database. forms 6i patch 17 e.g. is certified against db 10g release 1

  • Can I Use OLE2 to export Excel without having excel?

    Dear all,
    Can i use CLIENT_OLE2 to export from a form to an excel sheet without having the Microsoft excel installed on the AS (Application server)?
    Thanks
    $hOoO$h

    Dear SHo0o0sh;
    yes u can run it on client side but the client must have Microsoft office
    like this :
    PROCEDURE init_excel (application in out client_ole2.obj_type ,
    workbooks in out client_ole2.obj_type ,
    workbook in out client_ole2.obj_type ,
    worksheets in out client_ole2.obj_type ,
    worksheet in out client_ole2.obj_type )IS
    args client_ole2.list_type;
    begin
    application:=client_ole2.create_obj('EXCEL.APPLICATION');
    workbooks:=client_ole2.get_obj_property(application,'workbooks');
    args:=client_ole2.create_arglist;
    client_ole2.add_arg(args,1);
    workbook:=client_ole2.get_obj_property(workbooks,'add',args);
    client_ole2.destroy_arglist(args);
    worksheets:=client_ole2.get_obj_property(workbook,'worksheets');
    worksheet:=client_ole2.get_obj_property(worksheets,'add');
    write_cell(worksheet , cell , 1 ,1 ,'your data');
    write_cell(worksheet , cell , 1 ,2 ,'your data');
    release_excel (application,
    workbooks,
    workbook ,
    worksheets ,
    worksheet);
    end;
    PROCEDURE write_cell (worksheet client_ole2.obj_type,
    cell in out client_ole2.obj_type,
    x number , y number , text varchar2) IS
    args client_ole2.list_type;
    BEGIN
    args:=client_ole2.create_arglist;
    client_ole2.add_arg(args,x);
    client_ole2.add_arg(args,y);
    cell:=client_ole2.get_obj_property(worksheet,'cells',args);
    client_ole2.destroy_arglist(args);
    client_ole2.set_property(cell,'value',text);
    client_ole2.release_obj(cell);
    END;
    Hope it works.
    Regards
    Reda El Mitwally

  • How can I use a USB camera with cRIO 9022. Please see my strange problem.

    Hi,
            I would like to use a USB camera with NI cRIO 9022. I used the same USB camera with NI USB 6216 DAQ device and developed a VI(within a PROJECT and outside it). So, It is working fine with NI USB 6216 device when I use the Vision Assistant Express VI and gets detected in its Initialization Window.  Please see JPEG File 3 where I get NO ERROR.
            I am facing a problem when I want to use it with NI cRIO 9022. What exactly I am doing in this case is:
    1) Create a NEW PROJECT
    2) Add Targets and Devices(NI cRIO 9022)
    3) Use the Scan Interface mode
    4) Create a NEW VI under the cRIO 9022 device 
    5) Use a Timed Loop(Synchronized with Scan Engine) for continuous Data Acquisition and Sending from the Analog I/O modules.
    6) Use the Vision Assistant available through the NI Vision Acquisition 2010 Module(I get STUCK HERE! The Express VI opens the Initialization Window, but I don't see the USB camera like in JPEG File 3)
    I am facing difficulties with this HOST COMPUTER, cRIO implementation differences. On my host computer I have the software packages as shown in JPEG File 1, and on my cRIO 9022 as shown in JPEG File 2.
    Can someone guide me how to overcome this and get the USB camera detected when I am using NI cRIO 9022?
    NOTE: If this is a problem with software mismatches on HOST and NI cRIO 9022 device, please see JPEG Files 1 and 2 for available software and Host and cRIO 9022.
    Thanks.
    Amar.
    Attachments:
    NI Vision Acquisition Express Error for NI cRIO 9022.JPG ‏39 KB
    IMAQ and dx Modules Installed on my NI cRIO 9022 hardware(No NI Vision Acquisition 2010 SP1).JPG ‏82 KB
    NI Vision Acquisition Express NO Error for NI cRIO 9022.JPG ‏48 KB

    Only GigE comms are supported on the cRIO Real Time OS. Have a look at the following:
    Machine Vision on NI CompactRIO and Single-Board RIO
    Adnan Zafar
    Certified LabVIEW Architect
    Coleman Technologies

  • How can I use a mySQL database schema with numeric auto increment primary key instead of GUID?

    Hello!
    I'm using the TestStand "MySQL Insert (NI)" database schema with GUID as primary key. So everything works fine.
    But I prever using numeric values as primary key, because the database is in conjunction with another database which uses numeric values as primary key.
    Is this possible?
    Has anyone an idea how I can modify the "Generic Recordset (NI)" for use with MySQL?
    Thanks!
    Configuration:
    Microsoft Windows XP
    TestStand 3.1
    MySQL 4.1.12a
    MySQL ODBC 3.51 Driver
    Brosig

    Adam -
    The TestStand Database Logging feature does not allow you to run a separate SQL command after executing the command for a statement(table), so I do not think that you can use an auto incrementing column for the tables. There is just no way to get it back in a generic way. One option that I tried is something similar to the Oracle schema where you call a store procedure to return a sequence ID for each record that you want to add.
    So you would have to create the following sequence table in MySQL:
    CREATE TABLE sequence (id INT NOT NULL);
    INSERT INTO sequence VALUES (0);
    Then create a stored procedure as shown below that will increment the sequence value and return it in a recordset:
    CREATE PROCEDURE `getseqid`()
    BEGIN
            UPDATE sequence SET id=LAST_INSERT_ID(id+1);
            SELECT LAST_INSERT_ID();
    END
    Then update the MySQL tables to use INT primary and foreign key values, so the TestStand MySQL SQL file to create all tables would have text like this:
    CREATE TABLE UUT_RESULT
     ID    INT  PRIMARY KEY,
    ~
    CREATE TABLE STEP_RESULT
     ID    INT  PRIMARY KEY,
     UUT_RESULT   INT  NOT NULL,
    ~
    Then update the schema primary and foreign key columns in the TestStand Database Options dialog box to be INT to match the table. For the primary key columns, you will have to set the Primary Key Type to "Get Value from Recordset" and set the Primary Key Command Text to "call getseqid()". This will call the stored procedure to determine the next value to use as the ID value.
    Hope this helps...
    Scott Richardson
    National Instruments

  • I can't use REF to Database Object

    i use the following code to retrieve the Oracle Spatial SDO_GEOMETRY Object references:
    string sel_geom = "SELECT REF(geom)
    FROM addr_tab states";
    ResultSet *rs = stmt->executeQuery(sel_geom);
    rs->next();
    Ref<SDOGeometry> geom_ref = rs->getRef(1);
    i can retireve the GEOMETRY objects by useing:
    string sel_geom = "SELECT geom
    FROM addr_tab states";
    ResultSet *rs = stmt->executeQuery(sel_geom);
    rs->next();
    SDOGeometry* geom = rs->getObject(1);
    but when i use "delete geom" to free the object, its memories can not be free completely.
    who can tell me what can i do?
    thank you very much!
    Bin

    Yes, I use "stmt->closeResultSet(rs)" and "conn->terminateStatement(stmt)" to do that.
    The classes.cpp like:
    // generated method implementations for the SDO_GEOMETRY object type.
    oracle::occi::Number SDOGeometry::getSdo_gtype() const
    return SDO_GTYPE;
    void SDOGeometry::setSdo_gtype(const oracle::occi::Number &value)
    SDO_GTYPE = value;
    oracle::occi::Number SDOGeometry::getSdo_srid() const
    return SDO_SRID;
    void SDOGeometry::setSdo_srid(const oracle::occi::Number &value)
    SDO_SRID = value;
    SDOPointType * SDOGeometry::getSdo_point() const
    return SDO_POINT;
    void SDOGeometry::setSdo_point(SDOPointType * value)
    SDO_POINT = value;
    OCCI_STD_NAMESPACE::vector< oracle::occi::Number >& SDOGeometry::getSdo_elem_info()
    return SDO_ELEM_INFO;
    const OCCI_STD_NAMESPACE::vector< oracle::occi::Number >& SDOGeometry::getSdo_elem_info() const
    return SDO_ELEM_INFO;
    void SDOGeometry::setSdo_elem_info(const OCCI_STD_NAMESPACE::vector< oracle::occi::Number > &value)
    SDO_ELEM_INFO = value;
    OCCI_STD_NAMESPACE::vector< oracle::occi::Number >& SDOGeometry::getSdo_ordinates()
    return SDO_ORDINATES;
    const OCCI_STD_NAMESPACE::vector< oracle::occi::Number >& SDOGeometry::getSdo_ordinates() const
    return SDO_ORDINATES;
    void SDOGeometry::setSdo_ordinates(const OCCI_STD_NAMESPACE::vector< oracle::occi::Number > &value)
    SDO_ORDINATES = value;
    void *SDOGeometry::operator new(size_t size)
    return oracle::occi::PObject::operator new(size);
    void SDOGeometry::operator new(size_t size, const oracle::occi::Connection sess,
    const OCCI_STD_NAMESPACE::string& table)
    return oracle::occi::PObject::operator new(size, sess, table,
    (char *) "MDSYS.SDO_GEOMETRY");
    void SDOGeometry::operator new(size_t size, void ctxOCCI_)
    return oracle::occi::PObject::operator new(size, ctxOCCI_);
    void *SDOGeometry::operator new(size_t size,
    const oracle::occi::Connection *sess,
    const OCCI_STD_NAMESPACE::string &tableName,
    const OCCI_STD_NAMESPACE::string &typeName,
    const OCCI_STD_NAMESPACE::string &tableSchema,
    const OCCI_STD_NAMESPACE::string &typeSchema)
    return oracle::occi::PObject::operator new(size, sess, tableName,
    typeName, tableSchema, typeSchema);
    OCCI_STD_NAMESPACE::string SDOGeometry::getSQLTypeName() const
    return OCCI_STD_NAMESPACE::string("MDSYS.SDO_GEOMETRY");
    void SDOGeometry::getSQLTypeName(oracle::occi::Environment env, void *schemaName,
    unsigned int &schemaNameLen, void **typeName, unsigned int &typeNameLen) const
    PObject::getSQLTypeName(env, &SDOGeometry::readSQL, schemaName,
    schemaNameLen, typeName, typeNameLen);
    SDOGeometry::SDOGeometry()
    SDO_POINT = (SDOPointType *) 0;
    void SDOGeometry::readSQL(void ctxOCCI_)
    SDOGeometry *objOCCI_ = new(ctxOCCI_) SDOGeometry(ctxOCCI_);
    oracle::occi::AnyData streamOCCI_(ctxOCCI_);
    try
    if (streamOCCI_.isNull())
    objOCCI_->setNull();
    else
    objOCCI_->readSQL(streamOCCI_);
    catch (oracle::occi::SQLException& excep)
    delete objOCCI_;
    excep.setErrorCtx(ctxOCCI_);
    return (void *)NULL;
    return (void *)objOCCI_;
    void SDOGeometry::readSQL(oracle::occi::AnyData& streamOCCI_)
    SDO_GTYPE = streamOCCI_.getNumber();
    SDO_SRID = streamOCCI_.getNumber();
    SDO_POINT = (SDOPointType *) streamOCCI_.getObject(&SDOPointType::readSQL);
    oracle::occi::getVector(streamOCCI_, SDO_ELEM_INFO);
    oracle::occi::getVector(streamOCCI_, SDO_ORDINATES);
    void SDOGeometry::writeSQL(void objectOCCI_, void ctxOCCI_)
    SDOGeometry objOCCI_ = (SDOGeometry ) objectOCCI_;
    oracle::occi::AnyData streamOCCI_(ctxOCCI_);
    try
    if (objOCCI_->isNull())
    streamOCCI_.setNull();
    else
    objOCCI_->writeSQL(streamOCCI_);
    catch (oracle::occi::SQLException& excep)
    excep.setErrorCtx(ctxOCCI_);
    return;
    void SDOGeometry::writeSQL(oracle::occi::AnyData& streamOCCI_)
    streamOCCI_.setNumber(SDO_GTYPE);
    streamOCCI_.setNumber(SDO_SRID);
    streamOCCI_.setObject(SDO_POINT);
    oracle::occi::setVector(streamOCCI_, SDO_ELEM_INFO);
    oracle::occi::setVector(streamOCCI_, SDO_ORDINATES);
    SDOGeometry::~SDOGeometry()
    // I added the tow line codes but they can't free the mem
    // and the performance is lower.
    // SDO_ELEM_INFO.clear();
    // SDO_ORDINATES.clear();
    delete SDO_POINT;
    I think it should be free the mem by delete the SDOGeometry object. I can free the POINT_TYPE SDOGeometry (that the SDO_ELEM_INFO and SDO_ORDINATES are both empty) completely. So I think the SDO_ELEM_INFO and SDO_ORDINATES arrays can't be freed by SDOGeometry class. As I said, I can free the "new SDOGeometry()" object by "delete operator".
    Why?
    thanks a lot.

Maybe you are looking for

  • Unable to integrate Oracle Reports with Express--(To oracle Team also)

    Hi Unable to integrate Oracle Reports with Express. While defining the Express database connection using the olap connection editor iam getting the following error "Error locating the XCONEDIT.INI file. Try re-installing the software". what should be

  • Can I get all the ipads in school (18) to access the same itunes playlist?

    Can I get all the ipads in school (18) to access the same itunes playlist? We want to use the ipads to create movies but need music, we want to legally download music and let the children have access to the same playlist, can we do this and how? pref

  • To find Administrators SAP ID in SRM

    Hi all, I wanted to find the table from which i can get the Administrators Id or function module for the same. This is in SRM 5.0 system. I have a requirement where if any id doesnt have an email it should take the email id of Administrators and send

  • Capturing Computer Monitor video for use in FCP project.

    I'm working on an industrial film for a company that makes websites, and they want to put in video clips of their websites. I'm looking for a good program that will allow me to capture my desktop and make FCP ready videos. It doesn't need to be free,

  • HT1551 Unable to reset apple tv

    I have restarted my apple tv by the apple remote and by unplugging it.  Both times it flashes its lightt and then the apple sign comes on the tv and then goes away, but nothing follows that. I have tried it several times with no luck. I unplugged the