PDM and null char strin
Why is it not possible to write a string that contains the null (\00) characters in a TDMS property?
(this limitation is documented in the help)
I just spent half a day to identify the problem and now I found a work-around, but I would like to know why such a limitation :-o
Anyone know?
Edit:
Question aside, if you try to write a property string that contains a null strin character, if you receive an error or a warning or anything?
Hello
the character null (\00) is a standard way of marking the end of a string. If you put a null in the middle of a string character, many programs will consider the finished string as soon as the character is reached and ignore the rest of the chain.
Because of this behavior, it is not a mistake and therefore should not throw any errors if you try to do.
Best regards
Joseph Tagg
Tags: NI Software
Similar Questions
-
difference between IS NULL and = NULL
Hello guys,.
10 gr 2, what is the difference between IS NULL and = NULL
Thank you
ImranNULL is not equal to zero or a specific value
NULL means unknownthe first form will work, given that the value of a field may be unknown (= IS NULL)
the other will not work, because a specific value is not equal to unknown
the first is the correct form, the second will always be false
same NULL = NULL can be distorted, because unknown is unknown -
Sorting and null for currency values in a report
All,
I think this should be easy, and I just missed something obvious.
I have an APEX 3.2.1 standard report that includes a column with a monetary value in it. I want the column to display the UK pound sign to be able to sort and display NULL values, as appropriate.
The question I have is that I can't find a way to reach all 3 in a medium satisfctory. As I see the options would be:
(1) in the SQL for the report, concat the pound sign in the required column, for example SELECT "£". amount OF the...
The problem is that it makes this field a CHAR field, so sorting is not sort of the same way as for a numeric field.
(2) use the format FML999 number... etc in the column attribute.
The problem with this is that it is a multi-country database, and the default currency unit is the value of the U.S. dollar.
(3) expression box to use HTML code in the column attribute to display £#COL #.
It fills the pound sign and keep the number format, but unfortunately a null value is displayed as a sign of pounds with no number. I do not see how so he can leave this value in the report as completely empty.
As I said, I'm sure I missed obvious soemthing. If someone can identify how to achieve this it would be much appreciated.
Kind regards
Jon.>
(2) use the format FML999 number... etc in the column attribute.
The problem with this is that it is a multi-country database, and the default currency unit is the value of the U.S. dollar.
>The NLS currency symbol can be changed on the fly if you have a few ways to identify the location/preference of the user: {: identifier of the thread = 990848} (ignore the last post)
However, it probably doesn't make sense to do - ≠ £100 $100 (at least I hope not!) - unless there is some sort of conversion occurring in the report? Is there a currency stored and the amount?
>
(3) expression box to use HTML code in the column attribute to display £#COL #.
It fills the pound sign and keep the number format, but unfortunately a null value is displayed as a sign of pounds with no number. I do not see how so he can leave this value in the report as completely empty.
>
Use 2 columns, one for the amount and one for the money, with a switch to include or exclude it if necessary:select ename , comm amount , nvl2(comm, '£', null) currency from emp where job in ('SALESMAN', 'MANAGER') ENAME AMOUNT CURRENCY ---------- ---------------------- -------------------------------- ALLEN 300 £ WARD 500 £ JONES MARTIN 1400 £ BLAKE CLARK TURNER 0 £
Then use the two columns in the Expression of the amount of HTML:
#CURRENCY##AMOUNT#
-
UNIQUE KEY on 2 FIELDS and NULL
Hello
This is my table:
create the table ARCH_FACT_PATH
(
Identification NUMBER not null,
VARCHAR2 (1024) not null path.
YEAR NUMBER not null,
ACTIVE CHAR (1),
NUMBER OF FREE_DISK_SPACE
)
Add unique constraint UK_ARCH_FACT_PATH (ASSETS, YEAR)
When I insert this:
YEAR: 2010 / ASSETS: 1 = > OK
YEAR: 2010 / ASSETS: NULL = > OK
YEAR: 2010 / ASSETS: NULL = > KO
I wish I had only 1 year Active and many year NULL.
Can you help me fix this please?
Thank youDeleted
Published by: 009 on March 31, 2010 23:57
Or try trigger... *(No need to Create unique index) *.
CREATE OR REPLACE TRIGGER TRG_ARCH_FACT_PATH BEFORE INSERT ON ARCH_FACT_PATH REFERENCING NEW AS NEW OLD AS OLD FOR EACH ROW DECLARE V_TEST NUMBER := 0; ERR_DT_ALREADY_EXT EXCEPTION; BEGIN BEGIN SELECT DISTINCT 1 INTO V_TEST FROM ARCH_FACT_PATH AFP WHERE (NVL (:NEW.ACTIVE, 'NULL'), :NEW.YEAR) IN ((NVL (AFP.ACTIVE, 'NULL'), AFP.YEAR)); EXCEPTION WHEN NO_DATA_FOUND THEN NULL; END; IF :NEW.ACTIVE IS NOT NULL AND V_TEST = 1 THEN RAISE ERR_DT_ALREADY_EXT; END IF; EXCEPTION WHEN ERR_DT_ALREADY_EXT THEN RAISE_APPLICATION_ERROR (-20000, 'DATA SET ALREADY EXISTS IN TABLE'); END;
INSERT INTO ARCH_FACT_PATH(ACTIVE, YEAR) VALUES ('1',2010 ) 1 row inserted COMMIT Commit complete INSERT INTO ARCH_FACT_PATH(ACTIVE, YEAR) VALUES ('1',2010 ) ORA-20000: DATA SET ALREADY EXISTS IN TABLE ORA-06512: at "TRG_ARCH_FACT_PATH", line 24 ORA-04088: error during execution of trigger 'TRG_ARCH_FACT_PATH' COMMIT Commit complete INSERT INTO ARCH_FACT_PATH(ACTIVE, YEAR) VALUES (NULL,2010 ) 1 row inserted COMMIT Commit complete INSERT INTO ARCH_FACT_PATH(ACTIVE, YEAR) VALUES (NULL,2010 ) 1 row inserted COMMIT Commit complete SELECT * FROM ARCH_FACT_PATH ID PATH -- ----------------------------------------------------------------------------- 3 rows selected
* 009 *.
Published by: 009 April 1, 2010 12:00 AM
-
HP 50 g - PC connection series with adapter Series USB and null modem troubleshooting
I have the calculator correctly connected to my laptop via a USB series adapter, which is plugged into a null-modem adapter, which is plugged into the serial cable sold on HP Calc.org specifically for the HP 50 g. I started XModem on the calculator, but Conn4x found nothing. Is the process different from that used for USB and Conn4x connections? The problem could be with the USB Serial Driver. I use the default MicroSoft driver installed to connect? Are there tests I can run to determine if the adapter is broken, or the computer or calculator. Thank you very much in advance for your help!
I already tried the following:
- The two indicators relevant system are correct for the serial communication
- Tried to reinstall the driver
- Google for any relevant information that is extremely rare
- Tried with two Xmodem Kermit servers running on the calculator, press 'Connect' on Conn4X.
Hi!, Ranothil:
If you have the following cable "null modem" (http://commerce.hpcalc.org/serialcable.php), you can transfer, all
data, HP50G, to the PC and vice versa, throughout the connection Kit (Conn4x), without issue.
Please, see this link, to education, to transfer data with the serial null modem and connectivity kit cable... http://sense.NET/~Egan/SKB/ or... http://www.hpmuseum.org/cgi-sys/CGIwrap/hpmuseum/archv017.cgi?read=125259
Note: best if you transfer data, HP50G, PC and vice versa, through the microUSB.
-
I have a PIX 520 in the laboratory running 6.3.3 and PDM 3.0. I tested AAA authentication and authorization to our ACS server and run into problems.
I have two groups put in place on our ACS server. A group can be accessed freely, the other group is set to the top with a Shell command authorization set that limit orders so that they can watch the running-config and a few other things. Users of both groups can connect to the PDM or SSH/telnet/series in the unit and are authenticated and authorized correctly.
The configuration below works fine, until I pull the ACS server off the network. Because it is not any backup authentication or authorization to order method I am dead in the water. When this happens, I can always connect via the serial console, by using the 'pix' username and password enable, I just cannot run the command 'Enable' mode privlieged or any other control besides. (I get an error "Permission has no orders").
Here's a current configuration:
GANYMEDE + Protocol Ganymede + AAA-server
AAA-server GANYMEDE + (inside) host 1.2.3.4 123456 timeout 5
Console telnet authentication GANYMEDE AAA +.
the AAA console ssh GANYMEDE authentication +.
AAA authentication GANYMEDE serial console +.
AAA authentication enable console GANYMEDE +.
Console AAA authentication http GANYMEDE +.
order of AAA for authorization GANYMEDE +.
Is it possible to set up a backup method for approval of authentication and control? If not, is there any other way the problem I'm running into?
Let me know if you need more info. Thank you!
Hello
Sorry, I missed this earlier. There is a failure on the PIX for this and we have an open enhancement request to add several methods of authorization to the PIX - CSCea04538. At this point, your best bet is to bug of your account team to get this feature added to the code of PIX to come. Sorry for the inconveinence.
Scott
-
PDM and accepting the certificate
Hello
I don't know why I have problems with my certificate on my firewall. I know I'm connect to it but my browser keeps telling me that the certificate is not the same as the address. How can I fix it.
Jason
Hi again Jason
I answered this same thing until someone else, here is the link to the conversation:
Here's the answer:
The certificates are a method of authentication and verification. When you receive a certificate for a Web site, it is signed with the domain name and host name. If this combination of domain name and host name is not what you typed into your browser, your browser application the authenticity of this certificate.
To make your problems disappear on the connection to your pix, you must add a dns record, or at least a host on your dinner table by specifying the same site as in the certificate of your pix is questions. For example.
The hostname of my pix maybe pix, where as your domain name could me somewhere.com then type this into your web browser as https://pix.somewhere.com
To configure your pix to use the information above to use the following commands
hostname pix
domain somewhere.com
related CA rsa
CA generates the key rsa 1024
CA save all
He would then recreate an rsa cert that is signed by using the host name and domain of pix.somewhere.com.
So now, either you add pix.somewhere.com to your dns or add it in the hosts file of your pc liux associated with the appropriate ip address, and then you should be able to connect to your PDM using pix.somewhere.com and not get embarrassed more.
I hope this helps.
Patrick
-
Purpose of "null is not null" and "null is null" statements
Hi all
Please can someone explain the purpose of these statements and what it means.
1 null is not null
2 null is null
(a) NULL should be treated in a special way in the comparisons - see values NULL SQL - IS NULL and IS NOT NULL or SQL ISNULL(), NVL(), IFNULL() and COALESCE() functions
(b) If you really clauses Null is not null or Null is null (meaning: the first is not a variable) it could replace "always wrong" and "always true"; Maybe in some test queries
-
Outer joins and null in the 'where' clause condition
Hi people,
Please help me on this.
Here's my query.
with x
(select 'a' as a dual union all col1)
Select 'b' as col1 of union double all the
Select 'c' as double col1
),
y as
(
Select 'b' as col2 from dual Union all the
Select 'c' as col2 from dual Union all the
Select would be "as col2 from dual Union all the"
Select 'e' as col2 from dual
)
Select * x y right outer join
on x.col1 = y.col2 and y.col2 is null
Get all the lines of 'COL1' as null. Why like this?
Just add the condition to the WHERE clause for example
WITH x AS (SELECT 'a' AS col1 FROM dual UNION ALL SELECT 'b' AS col1 FROM dual UNION ALL SELECT 'c' AS col1 FROM dual ), y AS ( SELECT 'b' AS col2 FROM dual UNION ALL SELECT 'c' AS col2 FROM dual UNION ALL SELECT 'd' AS col2 FROM dual UNION ALL SELECT 'e' AS col2 FROM dual ) SELECT * FROM x LEFT OUTER JOIN y ON x.col1=y.col2 ----want to add "and y.col2 is null " condition to get value "a" where y.col2 is null
-
number and date of type storage and null values
Hi, I read that the date type consumes 7 bytes on the disc when it is preserved.
It is also true for the value null in date type or the space for a null value in the column of type date is then reduced and equal to 1 byte?
What about nulls (x) number?
How can I check to make sure?
Thank you
Columns of NULL values using either no space (if they are physically at the end of the line), or 1 byte if not.
-
1. create the tenant 'INC-Cloud '.
2. Add the storage of identification number
3.I try to browse and add a user to be TENANT ADMIN, no problem
4. click on update
5. now I'm back in INC-Cloud and I can't see the user I just added what I see is "No. DATA SELECTED.
6. I tried CHome and firefox, same result
7. I added a store ID to the vshpere.local tenant and have exactly the same problem
Thank you!!!
UPDATE
I am also "NULL" (using IE) when I try to log on to the TENANT listed above "INC.-CLOUD", I know it's to see this ID in a way as if I change a letter in the PASSWORD, I got "invalid password"
Post edited by: quantum_2 Update: I can't find anything about this in catalina.out
Something funny/strange in the file vmware-identity - sts.log on the SSO Server?
-
SCSI address and null field problems when adding disks
I had a spreasheet and requires up to 6 drives to be added to a list of virtual machines.
vmname hdd1, hdd2, hdd3, hdd4, and hdd5, hdd6. I then want to run another command if hdd2 is lets say its to return "two disc exists."
HDD1 must always be mapped to scsi 0:3.
HDD2 must always be mapped to scsi 0:4 etc..
but some time ago a hdd1 and a hdd3 and hdd6 but no hdd2 or hdd 4.
I have two problems
I don't know how to make sure the player is assigned to writing scsi address.
I know how to do or not to do things if the fields are null or not.
Help, please.
You can specify a SCSI nummer if you add a drive hard using the vSphere API:
$spec = New-Object VMware.Vim.VirtualMachineConfigSpec $spec.deviceChange = New-Object VMware.Vim.VirtualDeviceConfigSpec[] (1) $spec.deviceChange[0] = New-Object VMware.Vim.VirtualDeviceConfigSpec $spec.deviceChange[0].operation = "add" $spec.deviceChange[0].fileOperation = "create" $spec.deviceChange[0].device = New-Object VMware.Vim.VirtualDisk $spec.deviceChange[0].device.key = -100 $spec.deviceChange[0].device.backing = New-Object VMware.Vim.VirtualDiskFlatVer2BackingInfo $spec.deviceChange[0].device.backing.fileName = "" $spec.deviceChange[0].device.backing.diskMode = "persistent" $spec.deviceChange[0].device.backing.split = $false $spec.deviceChange[0].device.backing.writeThrough = $false $spec.deviceChange[0].device.backing.thinProvisioned = $false $spec.deviceChange[0].device.backing.eagerlyScrub = $false $spec.deviceChange[0].device.connectable = New-Object VMware.Vim.VirtualDeviceConnectInfo $spec.deviceChange[0].device.connectable.startConnected = $true $spec.deviceChange[0].device.connectable.allowGuestControl = $false $spec.deviceChange[0].device.connectable.connected = $true $spec.deviceChange[0].device.controllerKey = 1000 $spec.deviceChange[0].device.unitNumber = 5 $spec.deviceChange[0].device.capacityInKB = 1048576 $vm = Get-VM -Name MyVM $vm.ExtensionData.ReconfigVM_Task($spec)
The above code adds a hard drive with number 5 on the SCSI to a virtual machine called MyVM. The line:
$spec.deviceChange[0].device.unitNumber = 5
sets the number of SCSI to 5. A value of 0 in the number 0 SCSI: 5 is defined by the SCSI controller. So if you have a SCSI controller then the first number will always be 0.
I don't know what you mean with "I know not how to do or not to do things if the fields are null or not.".
-
Treatment/string of ASCII characters and performance - char [] or String?
Hello everyone
I am a novice on Java, I have training C programming procedure.
I read many very large (several GB) comma/quote separated ASCII CSV text files and run various types of prior treatment on them, before loading into the database.
I am using Java7 (more later) and using NIO.2.
IO performance are very good.
My question concerning the performance of the use of tank tables [i] compared to the string and StringBuilder classes using methods charAt().
Read a file, a record of line at a time and then I deal with. The regular expression is not an option (too slow and can not handle all cases, I need to cover).
I noticed that access a single character of a given string (StringBuilder or too) class using methods String.charAt (i) is several times (5 times +?) slower than referring to a tank an array with indexes.
My question: is this correct observation re charAt() against tank [i] difference in performance or I do something wrong in the case of a String class?
What is the best (performance) way to treat strings in Java, if I need to treat a character at a time?
Is there another approach that I should consider?
Thanks in advanceYou're going to have to show us how you schedule, because I've come up with just a quick test below and I get the following results:
public class Scratch { public static void main(String args[]) { char minChar = 32; char maxChar = 126; char[] chars = new char[1000]; char currentChar = minChar; for (int i = 0; i < 1000; i++) { chars[i] = currentChar; currentChar++; if (currentChar > maxChar) { currentChar = minChar; } } String myString = String.copyValueOf(chars); Date startDate = new Date(); timeString(myString); Date endDate = new Date(); long stringTime = endDate.getTime() - startDate.getTime(); startDate = new Date(); timeChars(chars); endDate = new Date(); long charTime = endDate.getTime() - startDate.getTime(); System.out.println("stringTime = " + stringTime); System.out.println("charTime = " + charTime); } private static void timeChars(char[] chars) { int length = chars.length; for (long i = 0; i < 10000000; i++) { for (int j = 0; j < length; j++) { char c = chars[j]; } } } private static void timeString(String myString) { int length = myString.length(); for (long i = 0; i < 10000000; i++) { for (int j = 0; j < length; j++) { char c = myString.charAt(j); } } } }
stringTime = 42
charTime = 30
This makes some sense as charAt() go check it out. -
Spatial indexes and nulls in Geoms
Hey gang,
Small Question... It is valid for null in a column of sdo_geometry and index values still be valid and usable?
I recall problems with spatial queries, for example: sdo_inside, sdo_anyinteract etc., when there are null values.
Thank you.
11g R2 EE w / space (obviously).Hi FlyingGuy,
Yes. I used a bit NULL geometries and never encountered problems with the index, so don't think that this changed with 11R2.
See you soon,.
Stefan -
Hi all, I have the following query
I am rewriting the query so that I do not have the IS NOT NULL in the where clause. Depending on the size of the table, it causes the performance issue.SELECT prod,id,max(payment_date) payment_date FROM balance WHERE run = 25 AND pdate = '07-sep-2012' AND cd='CFACILITY' AND prod IS NOT NULL AND id IS NOT NULL AND payment_date IS NOT NULL GROUP BY prod,id
is it possible to rewrite the query so that I don't have a filter to help do IS DO NOT NULL, but at the same time producing a correct result in leaving aside the null lines.
for example, I am trying to eliminate:
AND prod IS NOT NULL
AND id IS NOT NULL
AND payment_date IS NOT NULL
at the same time I would like to use an analytic function or other technique to filter the data and get the lines which are not null in the select. don't know if I can filter for not null by using the analytic function
Maybe the analytical function will do. any idea?Hello
elmasduro wrote:
Hi all, I have the following querySELECT prod,id,max(payment_date) payment_date FROM balance WHERE run = 25 AND pdate = '07-sep-2012' AND cd='CFACILITY' AND prod IS NOT NULL AND id IS NOT NULL AND payment_date IS NOT NULL GROUP BY prod,id
I am rewriting the query so that I do not have the IS NOT NULL in the where clause. Depending on the size of the table, it causes the performance issue.
is it possible to rewrite the query so that I don't have a filter to help do IS DO NOT NULL, but at the same time producing a correct result in leaving aside the null lines.
for example, I am trying to eliminate:
AND prod IS NOT NULL
AND id IS NOT NULL
AND payment_date IS NOT NULL
at the same time I would like to use an analytic function or other technique to filter the data and get the lines which are not null in the select. don't know if I can filter for not null by using the analytic functionYou can put all these conditions in a HAVING clause:
WITH SELECT prod,id,max(payment_date) payment_date FROM balance WHERE run = 25 AND pdate = '07-sep-2012' AND cd = 'CFACILITY' GROUP BY prod,id HAVING prod IS NOT NULL AND id IS NOT NULL AND MAX (payment_date) IS NOT NULL
Normally, when there is a choice between the filter in the WHERE clause or the HAVING clause, the WHERE clause is faster, but maybe it's an exception.
If a group contains a few payment_dates NULL, which is not serious. MAX gets back the last payment_date not NULL and ignore all nulls. The only time where worry is if all the lines in the Group had payment_dates NULL, and the latter in the HAVING clause takes care of this.
What is the data type of p_date?
If it is a DATE, then don't compare it to a VACHAR2, such as "- 7-sep-2012". Use rather a literal DATE or TO_DATE.
For example:AND pdate = TO_DATE ( '07-sep-2012' , 'DD-mon-YYYY' )
Depending on your data and your needs, which may not work. If p_date isn't always midnight, then you should probably do something like this:
AND TRUNC (pdate) = TO_DATE ( '07-sep-2012' , 'DD-mon-YYYY' )
However, it is inefficient. It would not be faster to call TRUNC and do this way:
AND pdate >= TO_DATE ( '07-sep-2012' , 'DD-mon-YYYY' ) AND pdate < TO_DATE ( '07-sep-2012' , 'DD-mon-YYYY' ) + 1
Maybe the analytical function will do. any idea?
I don't think, but maybe I'm missing something. What was your thinking? Why suggest analytical fucntions?
Maybe you are looking for
-
Hi guys,. Does anyone know if the USB ports on the M30X are powered or not. I think of buying this model by a servant calculation scheme. I have another choice too and it is not powered USB ports. I also checked the Web site of another producer, he d
-
Ive been wanting to change my gamertag to 'shorbie', but every time I type the name to change it will take me to do my own or choose a why this is happening I looked that name and no one has it does anyone know why?
-
Windows 98 is able to connect to a wireless connection?
Wireless router for Windows 98 Machines I have an old Windows 98 machine and want to connect to my wireless router Lybnksys with a lan cable to upgrade the computer via the internet/downloads. How can I communicate with the router for Windows 98?
-
IBM Think Pad add widescreen Dell
tried to atach one more big screen for my laptop... Control panel... display... parameters... expand... etc etc... several times... it will not work simultainesly on two screens on one or the other... either... can see the bottom on a... and strangle
-
HP Officejet 4630: Scan to Email HP Officejet 4630
Hello world I come short in my research. How can I scan to email with this printer? I could with an older HP printer. Have they removed that feature? It would be embarrassing if they did. He had these incredible reviews, I didn't have an invento