Registry Read

Hello All,
I wonder, is there any way to read registry entry using Oracle Stored Procedure?
Oracle DB: 11g R1
Regards,
Prazy

PrazY wrote:
For some of them I have googled and gone through Tom's post.
DWORD - BINARY_INTEGER
LPCTSTR - VARCHAR2
LPDWORD - BINARY_INTEGER
LONG - is it LONG in here too??
HKEY - ??
PVOID - ??? hkey = A handle to an open registry key. The key must have been opened with the KEY_QUERY_VALUE access right. Typically handles in Win32 are long (4 byte) int as far as I recall.
Pointer to a struct that can receive the data returned by the call. Should be a long pointer.
Unsure how to map these to PL/SQL types... You will need to experiment. PL/SQL itself does not explicitly support pointers. It does however have 2 pointer types. Cursors/ref cursors and LOB locators. But there is no pointer operations involved such as dereferencing for example. And you cannot really define a pointer to a string variable in PL/SQL.
However, I would expect that if you make an external proc call, all the parameters that are out values (returning data from the external call) will need to be long pointers as the ext proc interface will have to copy the return values to those memory addresses indicated by the PL/SQL variables intended to receive them.
It may be simpler though to wrap this Win32 call into a custom DLL that does the complex stuff. Opening the registry, dealing with the C data types and pointers, and in turn exposes a PL/SQL data type friendly interface that you can call via ext proc.
Writing such a DLL should be a fairly trivial exercise as this is not really a series of complex calls that need to be made, requiring complex data handling.

Similar Messages

  • Access registry (read/write) from java

    Hi folks,
    I'm struggeling with a Java/COM bridge to read/write the registry from my java application. The documentation from Sun on this is very sparely. Would be grateful for any hints!
    Regards,
    C.H. Liljegren

    Hi Bud,
    After a long time of asking everybody and then getting no response from any of the guys from the forum .I finally decided to do it myself and guess what I do succeded in reading and writing from the registry of windows from a Java program .
    I dont have the code now its there in my office . I will send it to u tomorrow .
    But one thing I came to know that if u wanna do some thing u have to take the initiative.
    I will send u the code tomorrow.
    Take Care.
    Manoj.

  • Registry Reading in Java

    Hello Friends,
    I am having a particular content written into the System Registry.
    I would like to read it from Java.
    How can i go about it ?
    Javafaith

    The only downside to using the Preferences API is that you are limited in what you can see in the registry. You can only see your preferences. You can't get to anything else.
    If you are trying to look up something else in the registry; this method won't work. However, if you just want to store some configuration parameters, this is THE way you should do it.
    - Chris

  • Read the registry

    Dear Experts,
    I'm looking for a way to read the registry of my server once connected/at the connection step (trigger). This to be able to be re-directed to a given schema based on the value found in a specific key defined in the registry.
    Regards,
    Guillaume

    Bad idea IMO - you're putting in additional software layers at connection time which is totally outside of Oracle. More moving parts means an increase likelihood of failure, more difficulties in diagnosing runtime errors and bugs and so on.
    Besides, surely Oracle related data should be in Oracle and not in the ugly and atrocious piece of utter smelly poo called the Windows Registry!? The registry is the single point of failure in Windows. All eggs in a single basket. It is also the biggest security hole. Whoever decided that the Registry was a good idea during the design of Windows-NT 3 had his head stuck up some dark orafice.
    Also, you cannot "redirect" a logon to a different schema. The only thing you can do is to change scope (using ALTER SYSTEM SET CURRENT_SCHEMA).
    That all said, I posted sample code from Tom Kyte (written back in 8i) that calls the GetPrivateProfileString API calls from PL/SQL at:
    Access COM port using oracle.
    The same concept can be used to read values from the Registry.

  • Error while publishing service definition in Services Registry

    I created a service interface in ESR and published the WSDL to my Services Registry. Now when I go to the "Publish" tab in the Services Registry to provide a definition for this service, after entering the WSDL and clicking on "Next" I get a pop-up for username and password. Neither the ESRAdmin, the user with Services Registry Read Write permissions nor the Administrator credentials seem to work.
    I get the following error:
    com.sap.esi.uddi.sr.api.exceptions.SRExceptionerror code: null detail message: com.sap.esi.uddi.sr.impl.uddi.wsdl.validation.ValidationException: <Localization failed: ResourceBundle='com.sap.engine.services.webservices.wscm.validation.accessors.validation', ID='WSDL_WSDL_EXCEPTION', Arguments: [' WSDL 'option' can not have child 'wsp:Policy' of namespace 'http://schemas.xmlsoap.org/ws/2004/09/policy' !', 'http://localhost:50000/rep/publicwsdl/ext/?service=publicwsdl&method=serviceinterface&p1=e77cf5e08e7f11dda32c001b77a40d2b&p2=c898d96af94a32fab2382f09c93a975d']> : Can't find bundle for base name com.sap.engine.services.webservices.wscm.validation.accessors.validation, locale en->com.sap.esi.uddi.sr.impl.uddi.wsdl.validation.ValidationException: <Localization failed: ResourceBundle='com.sap.engine.services.webservices.wscm.validation.accessors.validation', ID='WSDL_WSDL_EXCEPTION', Arguments: [' WSDL 'option' can not have child 'wsp:Policy' of namespace 'http://schemas.xmlsoap.org/ws/2004/09/policy' !', 'http://localhost:50000/rep/publicwsdl/ext/?service=publicwsdl&method=serviceinterface&p1=e77cf5e08e7f11dda32c001b77a40d2b&p2=c898d96af94a32fab2382f09c93a975d']> : Can't find bundle for base name com.sap.engine.services.webservices.wscm.validation.accessors.validation, locale en->com.sap.esi.uddi.sr.impl.uddi.wsdl.validation.ValidationMessage: <Localization failed: ResourceBundle='com.sap.engine.services.webservices.wscm.validation.accessors.validation', ID='WSDL_WSDL_EXCEPTION', Arguments: [' WSDL 'option' can not have child 'wsp:Policy' of namespace 'http://schemas.xmlsoap.org/ws/2004/09/policy' !', 'http://localhost:50000/rep/publicwsdl/ext/?service=publicwsdl&method=serviceinterface&p1=e77cf5e08e7f11dda32c001b77a40d2b&p2=c898d96af94a32fab2382f09c93a975d']> : Can't find bundle for base name com.sap.engine.services.webservices.wscm.validation.accessors.validation, locale en
    I am using CE 7.1 EHP1.
    Please advice.
    Regards,
    Puja

    Hi Puja,
    the below blog explains another way how to publish your web services on the services registry:
    Publish your Services to ES Registry
    Best regards,
    Yasar

  • ? error messages and unable to install or remove Reader 9.3

    i have been trying for the last 3 days to sort out a problem that has developed installing Adobe Reader 9 on my Windows XP3 driven system.
    to date Adobe in the various Reader programs has worked wonderfully. in the last week i discovered unexpectely i was unable to open a PDF file and so i went investigating. i cleaned up [defrag etc] my compt, shut down virus stuff, discovered that Reader 9.3 was in my Program Files and in Add/Remove Prog but it had not been installed. i tried installing it, then i tried to instal reader 8, then reader 10 and not able to do it anywhichway , i tried removing it and the same. the contstant i keep receiving is an error message which i am unable to locate on your site. in desperation i made contact with mu ISP server and they sid i had to get help from you. the error message reads "Error 1327 Invalid Drive:E: \" then when i click OK it tries to install and next i receive" Fatal Error during installallation Reader 9.3"
    Please can someone help me

    See if this helps: http://support.microsoft.com/kb/327763
    I strongly recommend that you make a registry backup or System Restore Point before manually modifying the registry.

  • I keep getting an error report 1327 invalid drive .I have tried to remove adobe reader and it won't let me , this used to work opk on my computer , but has not for quite a while now .I would like it gone from my computer

    I am having problems with adobe reader , an error message 1327 invalid drive . I have tried to remove adobe readr=er from my computer , but it wont let me . It is useless as I am unable to use it ...why can I nor remove it

    This means that something in your registry is pointing to a drive that doesn't exist; see http://support.microsoft.com/kb/327763
    Let us know if you need any help with editing the registry.

  • Word 2013 - Publish as PDF or XPS button causes excessive registry queries / high CPU when added to quick access toolbar

    After installing Office 2013 Pro Plus on our XenApp 6.5 environment we noticed a drop in performance. Using taskmanager we could see winword.exe hit 20+% CPU usage when filling just 1 line with the same letter.
    Some investigating lead us to the "Publish as PDF or XPS button", when it is added to the quick access toolbar the cpu usage doubles during keystrokes. Using procmon I noticed excessive registry reading, up to 150,000 lines in 10 seconds.
    It seems to be a constant loop of the same queries to approx. 100 components in HKLM\Software\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\
    I reproduced this in 3 different setups:
    Win2008R2 + Office2013 Pro Plus 32-bit + Office 2013 updates until 12-nov 2014
    Win 8.1 Laptop + Office2013 Pro Plus 32-bit + Office 2013 updates until 05-jan 2015
    Win 8.1 Desktop + Office2013 Pro Plus 64-bit + Office 2013 updates until 17-dec 2014
    Can anyone verify this behaviour? For now we've removed the shortcut from the quick access toolbar in our environment.
    Here's a small portion of the queries.
    19:22:49,7117781 WINWORD.EXE 1484 RegQueryKey HKLM SUCCESS Query: HandleTags, HandleTags: 0x0
    19:22:49,7117861 WINWORD.EXE 1484 RegOpenKey HKLM\Software\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\1A89310DF62F54544A1465F790A7757D SUCCESS Desired Access: Read
    19:22:49,7117969 WINWORD.EXE 1484 RegQueryValue HKLM\SOFTWARE\MICROSOFT\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\1A89310DF62F54544A1465F790A7757D\00005109110000000100000000F01FEC SUCCESS Type: REG_SZ, Length: 130, Data: C:\?Program Files\Common
    Files\Microsoft Shared\OFFICE15\MSO.DLL
    19:22:49,7118058 WINWORD.EXE 1484 RegCloseKey HKLM\SOFTWARE\MICROSOFT\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\1A89310DF62F54544A1465F790A7757D SUCCESS
    19:22:49,7118154 WINWORD.EXE 1484 RegQueryKey HKLM SUCCESS Query: HandleTags, HandleTags: 0x0
    19:22:49,7118232 WINWORD.EXE 1484 RegOpenKey HKLM\Software\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\837CF31208764B643868B58117357D20 SUCCESS Desired Access: Read
    19:22:49,7118332 WINWORD.EXE 1484 RegQueryValue HKLM\SOFTWARE\MICROSOFT\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\837CF31208764B643868B58117357D20\00005109110000000100000000F01FEC SUCCESS Type: REG_SZ, Length: 112, Data: C:\Program Files\Microsoft
    Office\Office15\OUTLFLTR.DLL
    19:22:49,7118415 WINWORD.EXE 1484 RegCloseKey HKLM\SOFTWARE\MICROSOFT\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\837CF31208764B643868B58117357D20 SUCCESS
    19:22:49,7118511 WINWORD.EXE 1484 RegQueryKey HKLM SUCCESS Query: HandleTags, HandleTags: 0x0
    19:22:49,7118586 WINWORD.EXE 1484 RegOpenKey HKLM\Software\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\FDFFB7C3B3B7DA048B21B3A72D1BF855 SUCCESS Desired Access: Read
    19:22:49,7118694 WINWORD.EXE 1484 RegQueryValue HKLM\SOFTWARE\MICROSOFT\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\FDFFB7C3B3B7DA048B21B3A72D1BF855\00005109110000000100000000F01FEC BUFFER OVERFLOW Length: 144
    19:22:49,7118769 WINWORD.EXE 1484 RegQueryValue HKLM\SOFTWARE\MICROSOFT\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\FDFFB7C3B3B7DA048B21B3A72D1BF855\00005109110000000100000000F01FEC SUCCESS Type: REG_SZ, Length: 134, Data: C:\Program Files\Common
    Files\Microsoft Shared\OFFICE15\FLTLDR.EXE
    19:22:49,7118849 WINWORD.EXE 1484 RegCloseKey HKLM\SOFTWARE\MICROSOFT\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\FDFFB7C3B3B7DA048B21B3A72D1BF855 SUCCESS
    19:22:49,7118949 WINWORD.EXE 1484 RegQueryKey HKLM SUCCESS Query: HandleTags, HandleTags: 0x0
    19:22:49,7119023 WINWORD.EXE 1484 RegOpenKey HKLM\Software\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\BF574A30F66E6D54186C7F15B116E7A3 SUCCESS Desired Access: Read
    19:22:49,7119123 WINWORD.EXE 1484 RegQueryValue HKLM\SOFTWARE\MICROSOFT\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\BF574A30F66E6D54186C7F15B116E7A3\00005109110000000100000000F01FEC SUCCESS Type: REG_SZ, Length: 100, Data: 20:\CLSID\{000C0126-0000-0000-C000-000000000046}\
    19:22:49,7119203 WINWORD.EXE 1484 RegCloseKey HKLM\SOFTWARE\MICROSOFT\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\BF574A30F66E6D54186C7F15B116E7A3 SUCCESS
    19:22:49,7119295 WINWORD.EXE 1484 RegQueryKey HKLM SUCCESS Query: HandleTags, HandleTags: 0x0
    19:22:49,7119369 WINWORD.EXE 1484 RegOpenKey HKLM\Software\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\017CCC9DE12773C4FAD559D2951B14C6 SUCCESS Desired Access: Read
    19:22:49,7119466 WINWORD.EXE 1484 RegQueryValue HKLM\SOFTWARE\MICROSOFT\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\017CCC9DE12773C4FAD559D2951B14C6\00005109110000000100000000F01FEC SUCCESS Type: REG_SZ, Length: 128, Data: 22:\Software\Microsoft\Office\15.0\User
    Settings\Mso_Core\Count
    19:22:49,7119544 WINWORD.EXE 1484 RegCloseKey HKLM\SOFTWARE\MICROSOFT\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\017CCC9DE12773C4FAD559D2951B14C6 SUCCESS

    I'll do that, I'm however still interested if somebody can confirm the excessive registry queries.
    As a brief test, I captured winword.exe (2013) registry-reads on my Win8.1 pc (64bit Windows), with ProcMon.
    this is over a capture period of less than one second
    2092 of 2352 contain "component" in the reg path
    this is when I have winword open and whilst "File, Export" is displayed (this is what offers the export-to-PDF option)
    vs.  168 registry operations in an interval of 10 seconds, by winword.exe, if word is simply "running in background with an open blank document"
    I'm not sure if that is useful, but it seems an awful lot of registry reads/writes from an application which isn't apparently doing anything at the time..
    EDIT: similar registry read/write rate, when save-as-pdf is added to QAT (again sitting idle on a blank document). the registry read/write rate drops back down to 160 if the save-as-pdf feature is then removed from QAT.
    Don
    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!)

  • ? How do you change default for .pdf files from Reader 6 to reader 9

    I cannot change the default for .pdf files from reader 6 to reader 9. Also I cannot remove reader 6. I am running Vista

    Normally, completely removing old versions and reinstalling the latest version will reassociate all applicable extensions for the program, but it appears to have failed in your case.  There may be something else going on with your machine that is producing this behavior.  You probably need to investigate that.  But what you can do to make sure the defaults are correct is click on the start orb and select 'Default Programs.'  Then select 'Associate a file type or protocol with a program.'  From the list of file types, select each of the following in turn: acrobatsecuritysettings, fdf, pdf, pdfxml, pdx, xdp, and xfdf.  If its default program is not Adobe Reader, click on the Change Program button and select Acrobat Reader from the list (you may need to expand the lower section to display more programs than it initially provides).  If Adobe Reader does not show up in the list, you will have to browse for it.  It should be located in C:\Program Files\Adobe\Reader 10\Reader\AcroRd32.exe or C:\Program Files (x86)\Adobe\Reader 10\Reader\AcroRd32.exe.
    This method is safer than manually editing the Root\Classes in the registry.

  • Adobe reader 9.1.2. update failure

    I need Help.
    After updating my adobe reader to 9.1.2. on a brand new Windows Vista machine, the pc keeps asking if I want to restart my computer. Well, i have done it for serverall times and still it keeps asking if i want to restart the computer or not.
    Deleting 9.1.2. doesn't help. The computer says  that it is busy with adabo reader and therefore can't be deleted.  Installing a new version doesn't help either. Adobe manager says that it's already busy with installing another version af adobe reader. 
    Does someone knows what to do? Restarting the PC isn't the answer.
    Jacky

    The Microsoft Installer Cleanup tool is your friend. Use it to remove all vestiges of Reader from the Windows Registry.

  • Which is the mac OS registry location and filename to determine the version of installed firefox?

    I have a Mac mini with 10.8.4 installed. I installed firefox 21.0. I'm trying to locate the registry entry (plist) file which contains the version of firefox installed. This file needs to be used programatically.

    For programmatical access to the Firefox version see [http://forums.mozillazine.org/viewtopic.php?f=25&t=653489 How to detect Firefox browser version?]
    You can access it manually from about:config (but, I am pretty sure, not from the sysytem registry):

  • Registry settings problem

    When I open itunes, itunes warns that registry settings used by itunes for importing and burning CDs and DVD are missing. Itunes recommends reinstalling to fix this problem. After multiple reinstallments, problem is not fixed. Any way to fix? Any way to find and input these registry settings directly?

    Someone posted this on missing the upper filter entry recently:
    http://discussions.apple.com/message.jspa?messageID=8138108#8138108
    I haven't tried it myself and be careful if you decide to try it as it involves editing the registry.

  • CSV error reading

    hi,
    I am trying to read a CSV file but am getting this error.
    I dont want to use a DSN.
              String dbUrl = "C:\\pl\\New Folder\\data.CSV";
                   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                   //use this without setting an ODBC Data Source
                   String lConnectStr = "jdbc:odbc:Driver={Microsoft Excel Driver (*.CSV)};DBQ=" + dbUrl + ";DriverID=22;READONLY=false";
                   Connection conn = DriverManager.getConnection(lConnectStr );
                   Statement sql = conn.createStatement();
                   ResultSet result = sql.executeQuery("SELECT * from data.CSV ");
                         The error is --
    Exception: java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver speci
    fied

    Also can you try the same thing with
    Connection conn = DriverManager.getConnection(lConnectStr,"","" );
    i.e. user and password as empty strings.
    Else Can you see the Excel ODBC driver in the list of drivers in the "ODBC 32 bit" tool in Control Panel in Windows ?
    It seems you are using the right URL for a DSN less connection to database but something else is casuing the problem. To me it looks like the Excel driver(*.dll) is not there in that ODBC 32 bit tool (or not registered in the registry ).

  • 1.2.0 reads TNSNAMES.ORA file multiple times and duplicates values in Alias

    Since upgrading to 1.2.0.29.98 (clean install on Win XP SP 2), I have noticed that SQL Developer appears to be reading the TNSNAMES.ORA file multiple times. This results in the Network Alias pop-list on the TNS connection type to have duplicate values, although the number of duplicates for each entry varies widely - from four for the least that I saw and 252 for the most (assuming I counted that right :) ). We have approximately 270 entries in our TNSNAMES.ORA and the first entry in the file appears in the Network Alias list four times and the last entry in the file appears in the list 48 times.
    To be honest, I switched to Basic JDBC connections with 1.1 and only noticed the problem because of some network performance issues - I thought that SQL Developer had hung and I switched on the debugging and could see that it was looping through the TNSNAMES.ORA file. Now that the network performance issues have been resolved, it still takes a little while to open the new connection window, but it is liveable, so I don't know whether the problem is 1.2 specific or not.

    Sue,
    I assume from a bit of testing, that "each tns file on the system" means each file in the TNS_ADMIN location that starts with TNSNAMES.ORA.
    I set my TNS_ADMIN to a local location and copied the current TNSNAMES.ORA from the network location (and chopped it down to a handful of entries). When I restarted SQL Developer I only had a single copy of each alias. If I copied TNSNAMES.ORA to "Copy of TNSNAMES.ORA" I still only had a single copy of each alias. If I copied TNSNAMES.ORA to TNSNAMES.ORA.TXT I then had two copies of each alias.
    Unfortunately, I don't have any say in the maintenance of the network TNS_ADMIN location and it has almost 200 backup copies of the tns file, typically named TNSNAMES.ORA.YYYYMMDD.
    My TNS_ADMIN setting is done as a Windows environment variable. I do not have any TNS_ADMIN setting in my registry.

  • How to store a file in windows registry

    Hi, I'm a student of java and I've a problem, can any body tell me that how to store a file in windows registry in java.

    Store the file on disk and put the path in the registry.

Maybe you are looking for

  • My new ME icloud email Cannot read email on outloook or thunderbird

    Hey guys, sorry for the horrible title. I installed iOS 5 on my ipad 2 and my 2 iphones today. Everything is great, except for 1 single issue. I created my new .me cloud ID and email address. And I tested my email through all my devices as well as th

  • ORABPEL-02178  - How to Solve

    I have a cluster with 2 nodes. My bpel proccess deploy and seems to be replicated to the other node but do not execute on the other node with this error: <2010-11-30 09:32:33,638> <ERROR> <default.collaxa.cube.engine> <BPELXExecLetUtil::getVariableDa

  • Saved PDF files have white spaces

    When I save a Aperture created photobook as a pdf file the file has a white spaces on either side of each page. This white space shows up in Aperture as black when I create the book and is how I wish to see it. Is there a way to fix this in Aperture?

  • Two different text boxes?

    Hi, I just opened a template that comes with Pages. There are two different text boxes. One has the usual little white squares at the edges. The other one has yellow dots instead. What is the difference between them? Does anyone know? Thanks P.

  • Can't get folder to work

    How do I get folders I've created on my desktop to open up in column view rather than list view? My hard drive opens up in column view all the time but not my folders. Not sure why. I've tried highlighting the folder icon and going into the preferenc