Doubt about Table constraints
I have a table ancienne_table to say. Now, I want to create another table say new_table that must be EXACTLY the same as ancienne_table. When I say 'EXACTLY' the same thing, I mean the data type of the columns, constraints (if any), the primary key and foreign keys (if any) and any other thing must be the same as ancienne_table. Only the lines (or data) will vary between ancienne_table and new_table and nothing else.Which application should I ues to achieve? Pls advice!
Published by: TuX4EvA on December 18, 2009 02:00
You can watch the DBMS_METADATA package.
For example:
sql> set long 4000
sql> select dbms_metadata.get_ddl('TABLE','EUL_GW_COLS','ODM_USER') from dual;
DBMS_METADATA.GET_DDL('TABLE','EUL_GW_COLS','ODM_USER')
--------------------------------------------------------------------------------
CREATE TABLE "ODM_USER"."EUL_GW_COLS"
( "C_O_SCHEM_NAME" VARCHAR2(64) NOT NULL ENABLE,
"C_O_OBJ_NAME" VARCHAR2(64) NOT NULL ENABLE,
"C_COL_NAME" VARCHAR2(64) NOT NULL ENABLE,
"C_SQL_DERIVATION" VARCHAR2(240),
"C_DATATYPE" VARCHAR2(70) NOT NULL ENABLE,
"C_NULL_INDICATOR" VARCHAR2(10) NOT NULL ENABLE,
"C_HIDDEN" VARCHAR2(1) NOT NULL ENABLE,
"C_LENGTH" NUMBER(22,0),
"C_DECIMAL_PLACES" NUMBER(22,0),
"C_DISP_NAME" VARCHAR2(100),
"C_HEADING" VARCHAR2(240),
"C_DESCRIPTION" VARCHAR2(240),
"C_DISP_SEQ" NUMBER(22,0),
"C_DISP_LENGTH" NUMBER(22,0),
"C_CASE_DISPLAY" VARCHAR2(10),
"C_CASE_STORAGE" VARCHAR2(10),
"C_ALIGNMENT" VARCHAR2(10),
"C_FORMAT_MASK" VARCHAR2(100),
"C_C_LOV_SCHEM_NAME" VARCHAR2(64),
"C_C_LOV_OBJ_NAME" VARCHAR2(64),
"C_C_LOV_COL_NAME" VARCHAR2(64),
"C_DEF_ROLLUP_FUNC" VARCHAR2(70),
"C_DISP_NULL_VALUE" VARCHAR2(240),
"C_ORD_CLAUSE_POS" NUMBER(22,0),
"C_ORD_DIRECTION" VARCHAR2(10),
"C_PLACEMENT" VARCHAR2(10),
"C_CONTENT_TYPE" VARCHAR2(100),
CONSTRAINT "EUL_GW_COLS_UNQ" UNIQUE ("C_O_SCHEM_NAME", "C_O_OBJ_NAME", "C_COL_
NAME")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
TABLESPACE "USERS" ENABLE
) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
TABLESPACE "USERS"
It will give you the exact DDL to create the same table with all the constraints in place, including the primary key, foreign key, and not NULL values.
You need to only replace the names for anything that is appropriate for you.
LW
Tags: Database
Similar Questions
-
doubt about table constraints - subscribe - search
Hello friends,
Can you please clarify this question for me:
I have a table called INVESTIGATIONS:
SOURCE_ID
AGENT_ID
INQUIRY_ID
CLIENT_FK
BEDS
UNIT_TYPE
PROJECT
INQUIRY_STATUS
LEAD_STATUS
DEAL_TYPE
BUDGET
ADMIN_FEED
AGENT_FEED
I had to create * 9 look it up * tables to provide values for the first 9 columns in table of the requests for INFORMATION.
What causes a huge footprint on the database:
-Join between 9 tables. -> > 9 FK on table of investigations.
-9 NOT check constraints NULL on information to the array for the first 9 columns.
{message: id = 10345002}
This is the required report:
Kind regardsselect "INQUIRY_STATUS"."INQUIRY_STATUS" as "INQUIRY_STATUS", "AGENTS"."AGENT_NAME" as "AGENT_NAME", "SOURCES"."SOURCE_NAME" as "SOURCE_NAME", "UNIT_TYPES"."UNIT_TYPE" as "UNIT_TYPE", "COMPLEXES"."COMPLEX_NAME_EN" as "COMPLEX_NAME_EN", "BEDS"."BED_NUMBER" as "BED_NUMBER", "INQUIRIES"."INQUIRY_ID" as "INQUIRY_ID", case when "INQUIRIES"."DEAL_TYPE" = 'S' then 'Sale' else 'Rent' end as "DEAL_TYPE", "INQUIRIES"."MOVING" as "MOVING", "INQUIRIES"."BUDGET" as "BUDGET", "INQUIRIES"."ADMIN_FEED" as "ADMIN_FEED", "INQUIRIES"."AGENT_FEED" as "AGENT_FEED", "CLIENTS"."FIRST_NAME" as "FIRST_NAME" , "LEAD_STATUS"."LEAD_STATUS" AS "LEAD_STATUS" from "INQUIRIES" "INQUIRIES" INNER JOIN "CLIENTS" "CLIENTS" ON ("CLIENTS"."CLIENT_ID"="INQUIRIES"."CLIENT_FK") INNER JOIN "LEAD_STATUS" "LEAD_STATUS" ON ("LEAD_STATUS"."STATUS_ID" = "INQUIRIES"."LEAD_STATUS") INNER JOIN "BEDS" "BEDS" ON ("BEDS"."BED_ID"="INQUIRIES"."BEDS") INNER JOIN "COMPLEXES" "COMPLEXES" ON ("COMPLEXES"."COMPLEX_ID"="INQUIRIES"."PROJECT") INNER JOIN "UNIT_TYPES" "UNIT_TYPES" ON ("UNIT_TYPES"."UNIT_TYPE_ID"="INQUIRIES"."UNIT_TYPE") INNER JOIN "SOURCES" "SOURCES" ON ("SOURCES"."SOURCE_ID"="INQUIRIES"."SOURCE_ID") INNER JOIN "AGENTS" "AGENTS" ON ("AGENTS"."AGENT_ID"="INQUIRIES"."AGENT_ID") INNER JOIN "INQUIRY_STATUS" "INQUIRY_STATUS" ON ("INQUIRY_STATUS"."STATUS_ID" = "INQUIRIES"."INQUIRY_STATUS") where :P1_phone is null or TRIM(:P1_phone) in ("CLIENTS".mobile1,"CLIENTS".mobile2,"CLIENTS".land_line)
FatehFateh says:
Hello friends,
Can you please clarify this question for me:I had to create * 9 look it up * tables to provide values for the first 9 columns in table of the requests for INFORMATION.
Which causes a huge footprint on the database?
N ° this is a database was built for. Especially an oracle database can handle this exceptionally well. The positive point is the optimizer (cbo = cost based optimizer) is the most effective way how to deal with such a simple select statement. Provided that the CBO has enough and relevant information, which means that statistics should be collected.
I just noticed that this filter condition is not a good way to get quick access to your data in tables.
where :P1_phone is null or TRIM(:P1_phone) in ("CLIENTS".mobile1,"CLIENTS".mobile2,"CLIENTS".land_line)
The datamodel is not properly normalized, so instead of making a simple comparison like
:p1_phone = clients.phonenumber
you need such a compex or condition (IN = GOLD)But it wasn't the question, right?
Published by: Sven w. on August 20, 2012 18:33
-
Hi all
I have the structure of the table as below. I need to create a unique constraint on the bottom of columns (combined) 3. I'll be able to create? I'm having a doubt because as a single column is nullable, can I create a unique constraint on all 3 columns?
If Yes, then how can I create it?
column_name Null col A N col B N col C Y
user12133456 wrote:
Hi allI have the structure of the table as below. I need to create a unique constraint on the bottom of columns (combined) 3. I'll be able to create? I'm having a doubt because as a single column is nullable, can I create a unique constraint on all 3 columns?
If Yes, then how can I create it?
column_name Null col A N col B N col C Y
Try this,
SQL> ALTER TABLE employee 2 ADD CONSTRAINT emp_unique UNIQUE ( 3 first_name, 4 last_name, 5 start_date 6 );
-
Hi all
I have a few doubts about the price of licenses.
I understand, I can deploy an APEX Server 11g XE free of charge, but what happens, if I want to install, a version no XE?
Imagine a billing application, for 10 users, and I will assume that a Standard is sufficient. With the help of [this price list | http://www.oracle.com/us/corporate/pricing/technology-price-list-070617.pdf], how much exactly will cost?
I understand I can get a license by user or server, or I have to license user and server too?
Kind regards.Hello
metric license is named plu user or license CPU (see the table of the core).for a quote, you can take a look in the oracle store or ask your dealer for an exact price oracle.
concerning
Peter -
Doubts about RAC infrastructure with a disk array
Hello everyone,
I am writing because we have a doubt about the correct infrastructure to implement RAC.
Please, let me first explain the current design we use for storage Oracle DB. Currently, we are conducting multiple instances in multiple servers, all connected to a SAN disk storage array. As we know that it is a single point of failure so we have redundant controlfiles, archiveds and Orde in the table and in the internal drive of each server, in which case table has completely failed us 'just' need to recover cold backup nightly, applied hoops and Oder and everything is ok. This is possible because we have autonomous bodies and we can assume that this downtime of 1 hour.
Now, we want to use these servers and implementing this table to a RAC solution and we know that this table is our only point of failure and wonder if it is possible to have a RAC multi-user solution (not AS a node) with controlfiles/archs/oder redundant internal drives. Is it possible to have each written full node RAC controlfiles/archs/oder in drives internal and applies these files systematically when the ASM filesystem used for CARS is restorations (i.e. with a softlink in an internal drive and using a single node)? Maybe the recommended solution is to have a second table to avoid this single point of failure?
Thank you very much!CSSL wrote:
Maybe the recommended solution is to have a second table to avoid this single point of failure?
Fix. It is the right solution.
In this case, you can also decide to simply use the distribution on both tables and mirror of the array1 array2 on table data using the ASM redundancy options.
Keep in mind that the redundancy is also necessary for connectivity. If you need at least 2 switches to connect on two tables and two HBA ports on each server, 2 fibers running, one to each switch. You will need driver multichannel s/w on the server to deal with the multiple I/O paths for storing same lun.
Similarly, you will need to repeat this step for your Interconnect. 2 private switches, 2 cards on each server which are pasted. Connect then these 2 network cards on the 2 switches, one NETWORK card per switch.
Also, don't forget to spare parts. Spare switches (one for the storage and interconnection). Spare cables - fiber and everything that is used for the interconnection.
Bottom line - not a cheap to have a redundancy solution. What we can do is to combine the layer of Protocol/connection of storage with the interconnection layer and run both on the same architecture. Oracle database machine and Exadata storage to servers. You can run your storage Protocol (e.g. PRSS) and your Protocol (TCP or RDS) interconnection on the same 40 GB Infiniband infrastructure.
As well as 2 switches Infiniband are needed for redundancy, plus 1 spare. With each server running a dual port HCA and one cable for each of these 2 switches.
-
little doubt about import datapump
Hello
OracleVersion:10.2.0.1
Operating system: linux
Here, I have a small doubt please help me it is to say
I took a backup of tables emp and dept now I need to import only the table emp based on condition specified in another schema
Here is my script to import that I had tried failed. Please help me how toselect * from emp where deptno in (select deptno from dept where loc='DALLAS')
E:\oracle\dbdump>impdp sample/sample directory=dbdump dumpfile=TABLES.DMP logfile=tales_imp.log remap_schema=scott:sample tables=emp remap_tablespace=users:sample query=\"where deptno in \(select deptno from dept where loc='DALLAS')\" Import: Release 10.2.0.1.0 - Production on Thursday, 29 October, 2009 17:59:05 Copyright (c) 2003, 2005, Oracle. All rights reserved. Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production With the Partitioning, OLAP and Data Mining options Master table "SAMPLE"."SYS_IMPORT_TABLE_01" successfully loaded/unloaded Starting "SAMPLE"."SYS_IMPORT_TABLE_01": sample/******** directory=dbdump dumpfile=TABLES.DMP logfile=tales_imp.log remap_schema=scott:sample tables=emp remap_tablespace=users:sample query="where deptno in \(select deptno from dept where loc='DALLAS')" Processing object type TABLE_EXPORT/TABLE/TABLE Processing object type TABLE_EXPORT/TABLE/TABLE_DATA ORA-31693: Table data object "SAMPLE"."EMP" failed to load/unload and is being skipped due to error: ORA-00911: invalid character Processing object type TABLE_EXPORT/TABLE/INDEX/INDEX Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/CONSTRAINT Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT Processing object type TABLE_EXPORT/TABLE/POST_TABLE_ACTION ORA-31685: Object type POST_TABLE_ACTION failed due to insufficient privileges. Failing sql is: BEGIN SYS.DBMS_SNAPSHOT_UTL.SYNC_UP_LOG('SCOTT','EMP'); END; Job "SAMPLE"."SYS_IMPORT_TABLE_01" completed with 2 error(s) at 17:59:15
SIDDABATHUNI wrote:
HelloI'm looking for here is I'll have the release of the full scheme. Now, I want to import only a single table based on a specific condition rather than import the full dump.
I get the error when you use parfile as you suggest.
Not too, I've said to parfile "+ no need to back slashes +"...?
Nicolas.
-
I have a doubt about the file .folio and publications
Hello, I m new here.
I want to start working with DPS, but I have a doubt about which version to buy.
At the moment I have one customer just wants to publish a magazine, but my intention is to have more customers and publish more magazines.
If I buy the unique edition of DPS, I read that I can publish a single file .folio. What it means? Each folio file represents a publication?
Please, I need help to understand this before you purchase the software.
Thank you very much
Paul
Here's a quick blog I wrote to compare the simple edition and
multifolio apps:
http://boblevine.us/Digital-Publishing-Suite-101-single-Edition-vs-multi-Folio-apps/
Bob
-
Hello
I had some doubts about the event handlers in the IOM 11.1.1.5...
(1) I want to use the same event handler for the message insert and update Post task... Can I use the same handler for this... If Yes, then how can I make...
(2) can I create the single class of Plugin.xml and add all the jar files in IE single lib folder and zip them all together... If yes then what changes I need to do? Need only add that the plugin tags for different class in the plugin.xml file files? OR need to do something extra too...?
(3) if I need to change something in any class handler... Is it need to unregister the plugin and register again...?
If Yes... Is it need to delete the event handler using the weblogicDeleteMetadata command?
(4) that we import the event handler of the path as event manager/db /... If we add all the evetn handler.xml files in this folder... As when importing weblogicImportMetadata called recursively all files in this folder... Now, if I need to change anything in one of the event handler class... so if import us from the same event manager/db folder... What to do... Create the copy of the eventhandlers? OR should I not add Eventhandler.xml files to class files, I made the changes...
(5) given that I need to create emails on the creation of the user while recon and identification of email updated as a first name or surname updates... I had to use in the event handler.xml (entity-type = 'User' operation = "CRΘER") or something else...
Help me clarify my doubts...Yes, on the update post you need to be check first if the first and last name change to update the mail electronic id, rather then calculation always email identification. So, you can check the path name are updated through the previous code.
-Marie
-
Doubt about appsutil.zip in R12
Hi all
I have doubts about the application of rapid Clone on 12.1.3.I the latest patches have applied the fix using adpatch. After that, it must synchronize directories appsutil
in RDBMS oracle home. I created appsutil.zip in the application layer and copied in the RDBMS oracle home. If I move the old appsutil to appsutil.old and extract appsutil.zip, the new appsutil directory should not constituted by the context file (I think). So, I have to run the automatic configuration based on the old cotextfile. Below, I have summarized the steps that I follow. Please check and correct me if I'm wrong.
Copy appsutil.zip to $INST_TOP/admin/out of RDBMS oracle home
CP $CONTEXT_FILE /tmp/mytest_vis.xml
MV appsutil appsutil.orig
unzip appsutil.zip
Run autoconfig based on/tmp/mytest_vis.xml.
Thank you
JayJay,
Is there a reason why do not use the old file context? What is the difference between the context file that will be generated by adbldxml.pl and the old file context?
If there are updates in the application, it will be updated in the new xml file generated by adbldxml.sh, but he's not in the old file.
So it is always best to run adbldxml.sh and autoconfig.
Amulya
-
doubts about the result in short 3.1 table
Hi all
I created the table of results short 2.4 using the box for query using EQL and motions, but I do not see the possibility to enter the eql short 3.1.Has that something has changed, or I missed something?
and to allow drilling down short 2.4 I added an action column to retrieve the ID of event available on a particular line. Clicking on the button Add an Action column on the Configuration tab and added the action but can not see samething in short 3.1.
Can you get it someone please let me know how the above things is possible in short 3.1
Thanks in advance.
Unfortunately, you cannot rename it. It is standard to have the label the name of the attribute followed by the subset of date / time used.
-
Doubt about the passage collection (Pl/SQL table) in a procedure.
Hi all
I have developed a package of sample with procedure 1. Here, I spent the output to a table in the collection data and I am passing the array of the collection as a parameter out.
When I run the proc, it worked for 1 scenario, but did not work for the other. I posted two scenarios after the code.
Scenario 1:pkg spec: create or replace PACKAGE IMP_EXP_BKUP_PKG AS TYPE test10_tbl2 IS TABLE OF test10.t1%type INDEX BY BINARY_INTEGER; v2_test10 test10_tbl2; PROCEDURE manpower_list(v1 number, v2 out test10_tbl2); END IMP_EXP_BKUP_PKG; Pkg Body: create or replace PACKAGE BODY IMP_EXP_BKUP_PKG AS PROCEDURE manpower_list(v1 number, v2 out test10_tbl2) AS BEGIN SELECT t1 BULK COLLECT INTO v2 FROM test10 WHERE t4 = v1; END; END IMP_EXP_BKUP_PKG;
Worked well.DECLARE v2 imp_exp_bkup_pkg.test10_tbl2; BEGIN imp_exp_bkup_pkg.manpower_list('10', v2); FOR i IN v2.FIRST..v2.LAST LOOP DBMS_OUTPUT.PUT_LINE(v2(i)); END LOOP; END;
Scenario 2:
Is not here.DECLARE --v2 imp_exp_bkup_pkg.test10_tbl2; TYPE typ_tbl2 IS TABLE OF test10.t1%type INDEX BY BINARY_INTEGER; v2 typ_tbl2; BEGIN imp_exp_bkup_pkg.manpower_list('10', v2); FOR i IN v2.FIRST..v2.LAST LOOP DBMS_OUTPUT.PUT_LINE(v2(i)); END LOOP; END; Error: ORA-06550: line 6, column 3: PLS-00306: wrong number or types of arguments in call to 'MANPOWER_LIST'
I want to just make sure that, are we supposed to use the same type that we have breeding stock in the package for the declaration of the variables?SamFisher wrote:
I want to just make sure that, are we supposed to use the same type that we have breeding stock in the package for the declaration of the variables?
Yes, you MUST use the same type definition.
SY.
-
Doubt about inserting data into a table
Hi all, when I try to insert data into a table through an anonymous block, the pl/sql block runs successfully, but the data are not get inserted. Can someone please tell me where I am doing wrong?
Thanks in advance!SQL> DECLARE 2 3 V_A NUMBER; 4 5 V_B NUMBER; 6 7 v_message varchar2(25); 8 9 10 BEGIN 11 12 13 select regal.regal_inv_landed_cost_seq.NEXTVAL into V_A from dual ; 14 15 select regal.regal_inv_landed_cost_seq.currval into V_B from dual ; 16 17 INSERT INTO rcv_transactions_interface 18 ( 19 INTERFACE_TRANSACTION_ID, 20 HEADER_INTERFACE_ID, 21 GROUP_ID, 22 TRANSACTION_TYPE, 23 TRANSACTION_DATE, 24 PROCESSING_STATUS_CODE, 25 PROCESSING_MODE_CODE, 26 TRANSACTION_STATUS_CODE, 27 QUANTITY, 28 LAST_UPDATE_DATE, 29 LAST_UPDATED_BY, 30 CREATION_DATE, 31 CREATED_BY, 32 RECEIPT_SOURCE_CODE, 33 DESTINATION_TYPE_CODE, 34 AUTO_TRANSACT_CODE, 35 SOURCE_DOCUMENT_CODE, 36 UNIT_OF_MEASURE, 37 ITEM_ID, 38 UOM_CODE, 39 EMPLOYEE_ID, 40 SHIPMENT_HEADER_ID, 41 SHIPMENT_LINE_ID, 42 TO_ORGANIZATION_ID, 43 SUBINVENTORY, 44 FROM_ORGANIZATION_ID, 45 FROM_SUBINVENTORY 46 ) 47 48 SELECT 49 regal.regal_inv_landed_cost_seq.nextval, --Interface_transaction_ id 50 V_A, --Header Interface ID 51 V_B, --Group ID 52 'Ship', --Transaction Type 53 sysdate, --Transaction Date 54 'PENDING', --Processing Status Code 55 'BATCH', --Processing Mode Code 56 'PENDING', --Transaction Status Cod e 57 lc.quantity_received, --Quantity 58 lc.last_update_date, --last update date 59 lc.last_updated_by, --last updated by 60 sysdate, --creation date 61 lc.created_by, --created by 62 'INVENTORY', --Receipt source Code 63 'INVENTORY', --Destination Type Code 64 'DELIVER' , --AUT Transact Code 65 'INVENTORY', --Source Document Code 66 msi.primary_uom_code , --Unit Of Measure 67 msi.inventory_item_id, --Item ID 68 msi.primary_unit_of_measure, --UOM COde 69 fnd.user_id, 70 V_A, --Shipment Header ID 71 V_B, --SHipment Line ID 72 82, --To Organization ID 73 'Brooklyn', --Sub Inventory ID 74 81, --From Organization 75 'Vessel' --From Subinventory 76 77 FROM 78 regal.regal_inv_landed_cost_tab lc, 79 fnd_user fnd, 80 mtl_system_items msi 81 82 WHERE 83 lc.organization_id = msi.organization_id 84 AND lc.inventory_item_id = msi.inventory_item_id 85 AND lc.created_by = fnd.created_by; 86 87 commit; 88 v_message := SQL%ROWCOUNT; 89 dbms_output.put_line('v_message'); 90 END; 91 / v_message PL/SQL procedure successfully completed. SQL> select * from rcv_transactions_interface; no rows selected
There is no problem with inserting data!
Only there is no data! This means that your select statement retrieves no rows.
You can see the output of your program (0). This means that there where no line in the result set.Please check the output of your tax return independently:
SELECT -- regal.regal_inv_landed_cost_seq.nextval, --Interface_transaction_id -- V_A, --Header Interface ID -- V_B, --Group ID 'Ship', --Transaction Type sysdate, --Transaction Date 'PENDING', --Processing Status Code 'BATCH', --Processing Mode Code 'PENDING', --Transaction Status Code lc.quantity_received, --Quantity lc.last_update_date, --last update date lc.last_updated_by, --last updated by sysdate, --creation date lc.created_by, --created by 'INVENTORY', --Receipt source Code 'INVENTORY', --Destination Type Code 'DELIVER' , --AUT Transact Code 'INVENTORY', --Source Document Code msi.primary_uom_code , --Unit Of Measure msi.inventory_item_id, --Item ID msi.primary_unit_of_measure, --UOM COde fnd.user_id, -- V_A, --Shipment Header ID -- V_B, --SHipment Line ID 82, --To Organization ID 'Brooklyn', --Sub Inventory ID 81, --From Organization 'Vessel' --From Subinventory FROM regal.regal_inv_landed_cost_tab lc, fnd_user fnd, mtl_system_items msi WHERE lc.organization_id = msi.organization_id AND lc.inventory_item_id = msi.inventory_item_id AND lc.created_by = fnd.created_by;
Published by: hm on 13.10.2011 23:19
I removed the references of the sequence and the variables V_A and YaeUb.
BTW: Why do you want to include V_A and YaeUb in two different columns?The use of sequences in your code seems a bit strange to me. But this has nothing to do with your question.
-
Doubt about the update/insertion of a Table
I have a long SQL insertion. While SQL is running, update one or more tables sources. What data will be inserted by the SQL in the target table, updated or before update?Hello
I said regarding how widespread, this market not in what concerns the selection.
-Pavan Kumar N
-
Doubt about the matrix or table
I need to write some values that I read from the serial port. But I need to increment the column automatically each new number.
What happens is that each new issue, the last of them turns to zero and I lost the number.
How can I store the last number and receive the number in the next column?
Kind regards.
-
Hello gentlemen;
I have a few questions, I would like to ask more experienced people here. I have a program running on a computer that has a processor i7 processor. In this computer that I have programmed in LabVIEW, meanwhile in another lab, we have another PC, a little older, a dual core 2.3 Ghz, in this pc, we perform a testing platform for a couple of modems, let us not get into the details.
My problem is that I discovered recently that my program, I programmed in the computer, i7, much slower work in the other machine, the dual core, so the timings are all wrong and the program does not run correctly. For example, there is a table with 166 values, which, in the i7 machine are filled quickly, leaving almost without delay, however, the double machine heart, it takes a few milliseconds to fill about 20 values in the table, and because of the timing, it can fill more values and so the waveform that I use is all wrong. This, of course, live of the whole program and I can't use it as a test I need to integrate.
I have create a .exe program in labview and try it in the different PC that's how I got to this question.
Now, I want to know if there is actually a big problem due to the characteristics of the computer, the program is slow in one machine. I know that, to ensure the eficiently program, I need to use States, sub - vi, idea of producer-consumer machines and other things. However, I discovered this is not a problem of the speed generated by the program, because, if that were the case, the table would eventually fill it completely, however in slow computer, it is not filled more with 20 values.
Else, helps to hide unnecessary variables in the front panel?, because the time beeing I have keep track of lots of variables in the program, so when I create the .exe I still see them runing to keep this follow-up. In the final version, that I won't need them so I'll delete some and hide front panel some. It helps that require less condition?
I would like to read your comments on this topic, if you have any ideas in machines to States, sub - vi, etc., if there is a way to force the computer to use more resources in the Labview program, etc.
I'm not add any VI because, in the current state, I know you will say, state machines, sub.vi and so on, and I think that the main problem is between the difference in computers, and I'm still working in the things of the State/sub-VI/etcThank you once again, we just let this hollow.
Kind regards
IRAN.
Get started with, using suitable as a machine for States stream you can ensure that your large table would be always filled completely before moving on, regardless of how long it takes. Believe it or not add that a delay to your curls will do more all the program run faster and smoother, because while loops are eager and can consume 100% of CPU time just a loop waiting for a button press, at the same time all other processes are fighting for time CPU.
Maybe you are looking for
-
Start Windows after the backup time machine!
Hey guys I have a MacBook Pro MGXA2 and I used time machine for the first time for the backup of the stuff, but after completing the course, my Windows boot option missing from the start menu Now I have MACINTOSH HD and a new option named: option to
-
My computer crashed and I had to restore it to its condition of purchase (2008). I had backed up all my data on Mozy. After the restoration of 12 GB of files, the 'Favorites' folder is in C:\Documents and Settings\myusername\favorites. The old shortc
-
Hello, ladies and gentlemen. I'm reading a TRAK Microwave GPS clock. The clock is a GPIB instrument attached to a card on a remote PC 488. VISA address for this device is GPIB0::7:INSTR. I would like to issue the command 'RQLT\r', but failed. Se
-
problema con el driver usb easy transfer cable, no is you can start
No puedo iniciar el driver del usb easy transfer cablePone Código 10
-
My wireless network card is disabled, and I don't know how to activate it.
My wireless network card is disabled, and I don't know how to activate it. I have a laptop HP Pavilion Dv9000, which originally had Vista but I installed XP Professional on it. According to Wefi all I had to do is click Start and then click on connec