The GUID string formatting.
Dear gurus, I get good help for another problem. I hope to follow the guidelines at the moment.In our practice, we face with the GUID. Now, the GUID come in 3 formats (see the other announcement
GUID in this newsgroup). I have several GUIDS as below
with mydata as (
select '77DB966B620D4FEBB9959D016E0BD590' as guid from dual union
select '159F25C035E845CFA95CFF4F3365B330' from dual union
select '0485FA87A2FF445E965333B6980EC176' from dual)
select guid from mydata;
Now, instead of the expression "select guid of mydata" what I want is to have theSelect regexp_replace (guid, xxxxxxxxxxxx, yyyyyyyyyyyy, zzzzzzzzzzz) in mydata for the following elements of the result.
desired result
select regexp_replace(guid, xxxxxxxxxxxx, yyyyyyyyyyyy, zzzzzzzzzzz) from mydata;
77DB966B-620D-4FEB-B995-9D016E0BD590
159F25C0-35E8-45CF-A95C-FF4F3365B330
0485FA87-A2FF-445E-965333B6980EC176
and also desired result - difference in expression
{77DB966B-620D-4FEB-B995-9D016E0BD590}
{159F25C0-35E8-45CF-A95C-FF4F3365B330}
{0485FA87-A2FF-445E-965333B6980EC176}
the need is as follows: put the - (hyphen, character) at 8, 12, 16, 20 in the GUID stringand can also choose Add support cureley end at the beginning end of the string. I'm not very strong
(continuous learning) regular expressions. If any guru can help, I would be very grateful.
Jehangir.
>
Hi Jehangir,
Select regexp_replace (guid, xxxxxxxxxxxx, yyyyyyyyyyyy, zzzzzzzzzzz) in mydata for the following elements of the result.
There are a few good sites for regular expressions.
http://www.regular-expressions.info/
www.orafaq.com/Forum - join and search for regexp - a lot of good things. The whole site is awesome.
http://gskinner.com/RegExr/ - an interesting interactive site
http://www.adp-GmbH.ch/ora/SQL/re/regexp_replace.html--Le root site is an excellent source of material of the Oracle.
http://www.adp-GmbH.ch/ora/SQL/replace.html
http://www.adp-GmbH.ch/blog/2005/may/11.html
http://www.Oracle-Developer.NET/display.php?id=508 - oracle-developer is an excellent site for those who the Oracle.
http://www.Oracle-base.com
Google 'Oracle' recipes for "ready-made" Regexes - study them and learn.
I found this book [url http://www.amazon.com/Mastering-Regular-Expressions-ebook/dp/B007I8S1X0/ref=sr_1_3?ie=UTF8&qid=1342461674&sr=8-3&keywords=regular+expression] to be very well written - have not had time to study it
as much as I wanted.
HTH,
Paul...
Jehangir.
Tags: Database
Similar Questions
-
Convert PMReal taking into consideration the OS string format parameters
Hi all
I ran into a problem where I want the members of this community to a thought.
I have a number in a PMReal and I must appear on a text box in a dialog box created by my plugin. The notation for the decimal character on my machine is set on ',' instead of the usual '.'
This change is carried forward throughout Indesign of the displayed number but the number I have in the PMReal appears with a '.' in it, IE it does not respect the operating system settings.
I used AppendNumber of PMString to convert a used as string 'stringnumeric::ToString' of PMReal, but nothing happens the number is displayed with a '.'.
If someone could guide me in a way wherin I could convert a PMReal to a string representation, which considers the operating system parameters to represent the decimal separator.
Manan Joshi
-Effective InDesign solutions-
MetaDesign Solutions
http://metadesignsolutions.com/services/InDesign-development.php
You can use the ITextValue to a RealEditBoxWidget.
In addition there are some routines in IWidgetUtils, for example FormatUserDecimal().
If the value is a measure, search for IUnitOfMeasure...
Dirk
-
Value formatting in the guided Navigation
Hello
I was not able to find it on my own, so I thought I would ask the community.
Does anyone know if there is a way to configure the value formatting for an attribute in the guided Navigation?
In my case we have digital and long values, but because they are numbers or codes, a delimiter is not wanted for these values.
However, we do not want just the format of the values as strings to keep the formatting because it is also necessary to use a filter of the range on these values, which won't work on strings.
Someone at - it ideas around that?
Thank you!
Assuming you're talking about 3.0, and then on the guided Navigation pane, the value uses formatting configured for this attribute in the display manager.
See the next section of the User Guide for the Studio.
Configure the default display for an attribute format
Janice
-
the entire signed 16-bit string format
Is there a string of the format specifier 'In String Format', while the result is a string I16?
My problem is when I use '%d' and the input string is 65535, the result string should be "-1".»
crossrulz wrote:
mitulatbati wrote:
The function entry is a DBL...
Then use the code of Jeff as an example of what to do. You have just a double entry instead of a U32, U16.
In fact, you need two conversions
What to do with dbl (LabVIEW minute who could bite you one day: Float to int retains sign) -
the channel guide does not match the actual string
the channel guide does not match the actual string that is to say PBS should be Channel 13 but is listed as channel 2 on the guide
Hello James,.
Welcome to the community of Sony.
What is the model # of the TV?
You can locate the model # of the TV from this link.
You can try the steps mentioned on the underside of the base article of knowledge:
http://www.KB.Sony.com/selfservice/documentLink.do?externalId=C408137
Please mark it as "acceptable Solution" If you find this information useful.
Kind regards
Colby
-
original title: windows live suit
When I try to open e-mail files a small box opens with the setting or the input string was not good format
Windows Live Solution Center
http://windowslivehelp.com/ -
String.format unrecognized in the BlackBerry project?
I'm trying to fill a string but String.format (string, string) is not recognized:
"The format of the method (String, String) is not defined for the String type.
Although I use jdk 1.6 and I noticed that, if I open a regular java project this recognized.
someone at - it be able to use it?
http://www.BlackBerry.com/developers/docs/4.2api/Java/lang/string.html
Does not exist. BlackBerry is not regular Java.
-
Format numbers to a string then touches the whole string to 16 char
Hi all
I am preparing a model which requires me to manipulate the number as xml in the following format:
Source: 1234
Result target: * 1,234.00
The requirement is that the number has to be converted to #, #. # and padded with *, and the whole string should be long 16 char.
I tried with the mixture format_number, concat and proper syntax, and test xsl in word, but it does not work.
Other than changing the xml standard, is it possible that I can do for the obligation?
Thanks to you all!
Published by: mourad on April 11, 2013 16:36I guess its for the control print.
You can use this code:
Currency code can be modified accordingly. -
Format of the connection string to connect to Oracle DB via LDAP
Hello
I have an Oracle database and its details are configured in LDAP. I have the c# code that I want to connect to Oracle DB using LDAP details. So I wrote the code to connect to the Oracle DB, but not able to connect. Implementation error at the con. Open() statement: "ORA-12154: TNS: could not resolve the connect identifier specified.
Code:
--------
String s = "Data Source = @ldap://abc.pq.xyz.com: 11389/myldap, cn = OracleContext, dc = pq, dc = xyz, dc = com; User Id = MyDB; Password = MyPass";
Con OracleConnection = new OracleConnection (constr.);
con. Open();
I need help in the formation of the connection string.user8786648 wrote:
HelloI have an Oracle database and its details are configured in LDAP. I have the c# code that I want to connect to Oracle DB using LDAP details. So I wrote the code to connect to the Oracle DB, but not able to connect. Implementation error at the con. Open() statement: "ORA-12154: TNS: could not resolve the connect identifier specified.
Code:
--------
String s = "Data Source = @ldap://xyz.us.oracle.com: 11389/xyz_ldap, cn = OracleContext, dc =, dc = oracle, dc = com; User Id = xyz; Password = xyz";Con OracleConnection = new OracleConnection (constr.);
con. Open();I need help in the formation of the connection string.
This isn't how you use LDAP for Oracle name resolution.
You must configure the LDAP protocol. ORA and SQLNET. ORA files properly.
For example, you can review the LDAP protocol. Documentation of ORA here:
http://docs.Oracle.com/CD/E11882_01/network.112/e10835/LDAP.htm#i500397
And the SQLNET. Documentation of ORA here:
http://docs.Oracle.com/CD/E11882_01/network.112/e10835/SQLNET.htm#i500318
A quick search on the terms "example of oracle ldap.ora", shot to the top of several examples.
Also, if these are real values that you posted in your example of a connection string, you can change.
-
date format picture ends before converting all of the input string
In the following query, I get the error: ORA-01830: date format picture ends before converting all of the input string
Select sum (e.gl_fig) in the rm_gl e where e.as_on_dt < = trunc (to_date('31-Nov-2011'), 'Q')-1Hello
Moreover, how many days are there in November? It IS 30 or 31?
Please change from 31-Nov-2011 to November 30, 2011, then it works.
select sum(e.gl_fig) from rm_gl e where e.as_on_dt <= trunc(to_date('30-Nov-2011', 'DD-MON-YYYY'),'Q')- 1
-
XML is not displayed as XML (hierarchical format) but as the xml string
The condition is:
To retrieve data of a table and are displayed in a table on a page in the ADF. One of the columns in the DB table is a "Type of XML", which stores the XML. For each record in the table on page ADF, there is a hyper link, clicking on which the XML code must be displayed in a pop-up window.
There is no problem to display data in the pop-up window. But the popup does not display the data as a hierarchy XML (wrapping of lines at the end of each element). It shows that the XML string...
If someone could help?
Concerning
Christiane
Add a property row to your inputtext to multi line. otherwise, you will never see the brakes of the line.
Timo
-
Remove the chain if the match format of other print the same string
Hello
I had posted a question earlier before in the forum in lieu of the chain
> >
My requirement is user will pass the string that is mentioned below
> > "SUCCESS [FID__6a377428_137b946b364__767b].
It should return > > FID__6a377428_137b946b364__767b
If the user only the > > FID__6a377428_137b946b364__767b
It should not replace anything, to just return the same string
logic for this query is it should return the string anything between [] another user that never enter it should return.
Please suggest me
I use this query, that it works fine but the user spends FID__6a377428_137b946b364__767b with ouy [] must return the same
SELECT col1 FROM
(
with the data as
(
Select trim ('FID_28eff73b_125a3e651e2__7c26') double NECK
)
SELECT TRIM ('] ' OF REGEXP_SUBSTR (COL, ' [^ \] +', 1, 2])) COL1
extracted data);
Thank you
Sudhir
Published by: Sudhir_Meru on June 29, 2012 21:14This will work with the sample you provided...
SQL> with t as 2 (select 'SUCCESS[FID_28eff73b_125a3e651e2__7d76]' str from dual union all 3 select '[FID_28eff73b_125a3e651e2__7d76]' str from dual union all 4 select 'FID_28eff73b_125a3e651e2__7d76' str from dual ) 5 select str,case when str like '%[%]%' 6 then regexp_replace(str,'([^\[]?+\[)([^]]+)(].*?)','\2') 7 else str 8 end output 9 from t; STR OUTPUT ---------------------------------------- ---------------------------------------- SUCCESS[FID_28eff73b_125a3e651e2__7d76] FID_28eff73b_125a3e651e2__7d76 [FID_28eff73b_125a3e651e2__7d76] FID_28eff73b_125a3e651e2__7d76 FID_28eff73b_125a3e651e2__7d76 FID_28eff73b_125a3e651e2__7d76
-
String Format DER or PEM certificates
I have installed a 1.2.0.899 EHT. It is only used for Services, the customer require all employees to access the Developer Portal and validated their credentials using LDAPS. No LDAP, no feature of AD EHT. The problem is that to enable LDAPS I must download the root certification authority for ISE, the client does not provide root CA for security reasons (?); They said that the certificate chain should be sufficient. Even the ISE user guide shows the chain of CA or root certificate. Thus, the client downloaded the (Microsoft 2008) PKI certificate chain and give it to me, but it is in .p7b (PKCS #7) format (they said there is no option to select another format). This format is not supported by ISE, so I need to use third-party tools to convert the file (www.sslshopper.com and openssl). It seems that the conversion is successful, but when I try to download on the ISE certificate store always I get the same error: "unable to read certificate file - please be sure that the file is in PEM or DER format.
The questions are:
1. is the file provided by the infrastructure public key to the p7b format always?
2. what should be the way to convert the file into something the ISE can understand?
3. must be the CA certificate root a better option vey?
Even the problems of conversion indicated above, I tried to open and convert the file by using the MMC. I know that the certificate chain has three files, I got the and downloaded to the ISE. Error of Pentecost two of these three files selected on LDAPS security configuration I can run the "Test bind to the server" with success, but whenever the user tries with his own credentials always access is refused with "invalid username or password".
Locking in the ISE log, I found that these messages:
ERROR, 0x2b263618c940, LdapSslConnectionContext::checkCryptoResult (id = 634): error message = SSL alert: code = 0 x 230 = 560; source = local; fatal = type; message = ' unknown CA - error unable to get issuer certificate locally", LdapSslConnectionContext.cpp:226".
ERROR, 0x2b263618c940, LdapConnectionBindingState::onInput (id = 634): bind ended with an error: 117, LdapConnectionStates.cpp:396
631, WARN, 0x2b263618c940, NILE-CONTEXT, Crypto: result = 1, Crypto.SSLConnection.pvClientInfoCB - alert triggered: code = 0 x 230 = 560, where = 0 x 4008 = 16392, source = local, SSLConnection.cpp:2765
WARN, 0x2b263618c940, NILE-CONTEXT, Crypto: result = 102, Crypto.SSLConnection.writeData - failed to write data, SSLConnection.cpp:970
ERROR, 0x2b263618c940, LdapSslConnectionContext::checkCryptoResult (id = 634): result crypto = 102, LdapSslConnectionContext.cpp:202
ERROR, 0x2b263618c940, cntx = 0000005789 user = tmxedscalcan, LdapServer::onAcquireConnectionResponse: impossible to acquire connection, LdapServer.cpp:461
ERROR, 0x2b263436e940, NILE-CONTEXT, [ActiveDirectoryClient::openCdcConnection] failed to open session of CDC due to error 32: ADClient is not running, ActiveDirectoryClient.cpp:1328
ERROR, 0x2b263436e940, NILE-CONTEXT, [ActiveDirectoryClient::connectClient] AD CDC client connection failed!, ActiveDirectoryClient.cpp:117
ERROR, 0x2b263436e940, NILE-CONTEXT ActiveDirectoryIDStore::performConnection - connection client failed, ActiveDirectoryIDStore.cpp:608
I have no idea how much - what they mean.
Someone told me the convertion with mmc on my pc was a mistake and I need to repeat the same process using the administrative tools on a server
I'm really confused and I don't know how to continue a process of troubleshooting.
How will I know that the original file is correct?
How will I know that the conversion is correct?
As the original string includes three certificates, I should upload them to ISE, separately or in a file?
The sponsor political screenshoot is attached. I have two rules with the same conditions an AD (just to test), one for LDAPS por.
I would appreciate your help
Kind regards.
Daniel Escalante
Hello
If you open the .p7b on a Windows machine. (Do not install)
Go to the Certification path and click the root certificate, click view certificate.
Now you have the root certificate.
Click details, and then click on copy to a file. This give you the possibility of exprot the root cert.
Then click, here you can choose to save in Base 64 encoded (DER) that you can import in ISE.
Click next and save it. Then try to import under Server certifiactes to the ISE
You can do this for sub-CA cert in the chain as well.
HTH
-
Gets the GUID of the object?
Hello
Can someone tell me please how to get the GUID of the object?
now what I do is: -.
objectGUID = (String) attributes.get ((String) hmConstantsMap.get ("LDAP_OBJECT_GUID")) .get (0);
the above line gives me object GUID as follows:
objectGUID = l & Nc?@G?m? E? H4
Now when I'm converted this hexadecimal value what I mean and what is actually different.
SIZE = 6 26 4F 63 B7 13 40 47 9 6 D 9 D 45 CD
What I want to say = 6 c 26 4F 63 13 40 47 6 d 45 48 34 3f 3f 3f 3f 3fGUID of the object is always in an encrypted format. You need decrypt the key to convert it to simple format. But I think that you can't. It is not easy.
-
Trouble installing EL Capitan. Drive uses the GUID partition scheme
Hello world
I am installing an SSD on a Mac book pro 2011. I had been using the separate (Samsung ssd 830 256 GB) ssd (OS not installed) drive on my computer windows yet. I have created an El Capitan installation on a USB drive, swapped the hard drive on SSDS. I open at startup disk utility, erased the drive samsung with format: extended OSX journaled.
Then returned to install El Capitan, but the Samsung SSD is grayed out and when I click it, it says "this disc is not use the GUID partition table scheme." Use disk utility to change the partition scheme. Select the drive, click the partition tab, select the volume configuration and then click options"
However when I return to the disk utility, then select Samsung SSD, the partition tab is grayed out and cannot be selected.
I don't know how to proceed. I would greatly appreciate any help
Thank you
You must select the drive icon above the volume icon, that is selected in the screenshot.
Maybe you are looking for
-
Hello, I would like to cut to the Chase. I have a desktop HP ENVY TouchSmart all-in-One 23-d027c. 8.1 Overview. None of my Microsoft work tiles. Do third parties. A ran the "repair apps" - secuirity indicated and the files corrupted > restart the co
-
I had to restore my computer, and now printing and photos are much smaller than they had been. When I increase by 150%, game screens are not increased accordingly. The real playground, is still small and type too hard to read.
-
Is it possible to embed the map search option in the app
Hello. I am trying to add looking for a card for a location in my application. Its similar user can search full address as 100, Street Bay, Toronto and it will show the geo-information from the same place. Thank you.
-
I move from Windows XP to Windows 7 to work. Where is the best place to go, it's free, to learn about the differences between XP and Windows 7? I want to take full advantage of the features of Windows 7 and not learn "the hard way". Any training m
-
How can I replace a payment missed out on my account?
Missed my payment for the balance of the card was too low. I have reloaded the map but can't find no method of us informing that Microsoft does.