Retrieve the T400 to 'hors category' specifications

A trusted friend more to configure my device by wiping the hard drive destroying all partitions and XP loading... because they 'knew' XP are better than Windows 7 Pro. I have no product recovery discs, I don't have any images of recovery, I do not have a hidden system partition.  How can I recover my T400 to service Windows 7 Pro "out-of-the-box"... including the hidden system partition? Thank you


Tags: ThinkPad Notebooks

Similar Questions

  • SQL to retrieve the specific attributes of an x 509 digital certificate

    I'm curious to know if there is a way to use SQL to retrieve the specific attributes of an x 509 digital certificate. I know how to make using openssl - no problem. But what happens if the pem file is stored in a datebase column and I need to extract the expiration date. Since the openssl command line, I can just do this to extract the date of expiry of the certificate:

    OpenSSL x 509 - noout - in certificate.pem - dates | grep notAfter | AWK-f = '{print $2} '.
    (retrieves only the dates | take only the line with the expiration date | print only the second column of the row delimited =)

    But if certificate.pem is stored in an Oracle database on the ground, how to achieve the same result? Y at - it something like "DBMS_OPENSSL"?

    I got to thinking of V$ PORTFOLIO in an Oracle database. Only columns here are CERT_ID, DN, serial_num, TRANSMITTER, KEYSIZE and STATE - no certificate, which suggests that it is stored elsewhere. As you can tell, I am new to this.

    Thanks for your help!

    You can use a small procedure stored Java to extract the required fields.

    http://docs.Oracle.com/javase/6/docs/API/Java/security/cert/CertificateFactory.html
    http://docs.Oracle.com/javase/6/docs/API/Java/security/cert/X509Certificate.html

    SQL> create table cert_storage (id integer, cert clob);
    
    Table created
    
    SQL> insert into cert_storage values (1,
      2  '-----BEGIN CERTIFICATE-----
      3  MIIDljCCAn4CCQD2F4J0d4f7rTANBgkqhkiG9w0BAQQFADCBjDEMMAoGA1UEChMD
      4  V0dVMQ0wCwYDVQQLEwRNU0lBMR4wHAYJKoZIhvcNAQkBFg90d2lsbDYzQHdndS5l
      5  ZHUxFzAVBgNVBAcTDlNhbHQgTGFrZSBDaXR5MQswCQYDVQQIEwJVVDELMAkGA1UE
      6  BhMCVVMxGjAYBgNVBAMTEVRob21hcyBDIFdpbGxpYW1zMB4XDTEyMTExNjA2NTEx
      7  OFoXDTEzMTExNjA2NTExOFowgYwxDDAKBgNVBAoTA1dHVTENMAsGA1UECxMETVNJ
      8  QTEeMBwGCSqGSIb3DQEJARYPdHdpbGw2M0B3Z3UuZWR1MRcwFQYDVQQHEw5TYWx0
      9  IExha2UgQ2l0eTELMAkGA1UECBMCVVQxCzAJBgNVBAYTAlVTMRowGAYDVQQDExFU
     10  aG9tYXMgQyBXaWxsaWFtczCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB
     11  ALzwniQTgM79kwIOIqo2GE+Ufl56F0E/Rg956Ho6FoT9tBhvvQfI1SDvRzsrMGYP
     12  2VDAT7I7HEUnwFPMF7YAiLbK/6LlKDv0D+JyP3q9k/ENsZd0Z33KZ3HrJV1sdZZK
     13  iCv7isHKJ7xJgxQq+9ecpBG2Y9Vr5rLg8WPqnjvnaI60PN+NEsWnFNr/u6rBfv9R
     14  CQBtbLG6nhq5rxd67cWYR1hLpQg/S40AYcJBMIOApDN96YzDFXUM269JdHLSMgbt
     15  ZN8F4XeGljNbuVT8BTKOSydDUWWNJA593GLMSQ+OJVzVuwF99JzUwG0TcmPYgcQn
     16  Vav2t9igeXq7bUspcFTHQX8CAwEAATANBgkqhkiG9w0BAQQFAAOCAQEAAoOfoSSo
     17  sN78pSuDAAD95AgATzmCFxLvV9LWrIkFOF6mLwpnvR9UvjoOfQRWjVNnHKZ+1SPw
     18  oRo9KnMaWBltnXgKktfNYsSqCgZ889VaFlZfOL7TTq+jWqG9sRNXcJHkC+o07cxS
     19  IZSXNwjV+c6NMXUJWTf6OWKLcBmQ3Ze0hwiyW06QZvSd7psYqAH4AJHyiOXROG44
     20  eNtbFWxQ5Gg/tgXnEr/vbr2twXuflmmoNkjh94mR9Vf0QJY6/1I6qYkJ4n+xX2kR
     21  yisfvWztlYT+1m/z8jzeJtAkxRIloTIacLrIjaQKpKKsL4rAb0Fd0SUPP6HkIt72
     22  +vQ4jwHbxRhV7g==
     23  -----END CERTIFICATE-----')
     24  ;
    
    1 row inserted
    
    SQL> commit;
    
    Commit complete
     
    
    SQL> create or replace and compile java source named testx509src as
      2  import java.security.cert.*;
      3  import java.io.*;
      4  import java.sql.*;
      5  import oracle.sql.CLOB;
      6  import oracle.sql.TIMESTAMPTZ;
      7
      8  public class TestX509 {
      9      public static TIMESTAMPTZ getExpirationDate(CLOB cert)
     10              throws SQLException, IOException, CertificateException {
     11
     12          Connection conn = (Connection) DriverManager.getConnection("jdbc:default:connection:");
     13          BufferedInputStream is = new BufferedInputStream(cert.getAsciiStream());
     14
     15          CertificateFactory cf = CertificateFactory.getInstance("X.509");
     16          X509Certificate c = (X509Certificate) cf.generateCertificate(is);
     17          is.close();
     18
     19          return new TIMESTAMPTZ( conn, new Timestamp(c.getNotAfter().getTime()) );
     20
     21      }
     22  }
     23  /
    
    Java created
    
    SQL> CREATE OR REPLACE FUNCTION CERT_GetExpirationDate(cert in clob)
      2  RETURN timestamp with time zone
      3  AS LANGUAGE JAVA
      4  NAME 'TestX509.getExpirationDate(oracle.sql.CLOB) return oracle.sql.TIMESTAMPTZ';
      5  /
    
    Function created
     
    
    SQL> select CERT_GetExpirationDate(cert)
      2  from cert_storage
      3  where id = 1;
    
    CERT_GETEXPIRATIONDATE(CERT)
    --------------------------------------------------------------------------------
    16-NOV-13 07.51.18.000000000 AM +01:00
     
    

    If you need to access the fields again, it would be best to wrap them in an Oracle object type and have the Java method return an instance of this object.

  • Retrieve the text of sprite to the specific marker

    Is there a way to recover the text from a spriteMember to a specific marker when you are not located in this marker?

    I have a presentation that uses small graphics below to go to its corresponding marker based on the markerList. I would like to get text in sprite (6) of the corresponding marker location and display them in a sprite of text on the stage at the current location. Without jumping to that location.

    I try to avoid to make a list or naming of the members with the corresponding marker.

    Thank you.

    Wally

    > Is there a way to retrieve the text of a spriteMember to a specific marker
    > When you are not located in this marker?

    Short answer... No.

    You can get the text of the Member?

    If this does not work, you can use the partition record updateLock property.
    You can do something like this: set updateLock true, go the frame you
    want the text of the Member of the sprite, then return on the image you
    running and turn updateLock back to false.

    on test
    _movie.updateLock = true
    Go "spriteFrame".
    Mettre.Member.text sprite (6)
    go "normalFrame."
    _movie.updateLock = false
    end

    If you put that as a Manager in a movie script, you can enter the test of
    the message window and see what happens - you will see the text of the
    Sprite appears, but will not spend the read head...

    HTH

    --
    Dave-
    Adobe Community Expert
    www.blurredistinction.com
    http://www.Adobe.com/communities/experts/

  • Insider source subscription. Could not retrieve the client certificate

    Hi all

    I created subscription source initiated between two Windows 2008 R2.

    The source (client) cannot connect to the server. Logs on the client:

    Send the request for operation to the destination machine enumeration and the server.corp.domain.com:5986 port

    Authenticate the user using the Client certificate mechanism

    User authentication failed. The credentials did not work.

    Has received the answer of the layer network; status: 401 (HTTP_STATUS_DENIED)

    WSMan enumeration operation failed, error code 5

    Opens a session on the server.

    Sending HTTP error to the client after a failure of transportation.
    The HTTP status code is 503
    The error code is 995

    Could not retrieve the client certificate

    Send the HTTP 401 response to the client and disconnect the connection after sending the answer

    The user authorization failed with error 5Authorizing the user

    Authentication using client certificate with the client.corp.domain.com object is successfully

    How to fix the error "unable to retrieve the client certificate?

    Hello

    Post your question in the TechNet Server Forums, as your question kindly is beyond the scope of these Forums.

    http://social.technet.Microsoft.com/forums/WindowsServer/en-us/home?category=WindowsServer

    See you soon.

  • recently upgraded to windows 7 and lost all the emails saved in windows mail, is it possible to retrieve the saved emails?

    recently upgraded to windows 7 and lost all the emails saved in windows mail, is it possible to retrieve the saved emails in windows mail that are and have it transferred to microsoft outlook?

    Outlook:

     

    http://answers.Microsoft.com/en-us/Office/default.aspx

    Office at the above link forums

    http://answers.Microsoft.com/en-us/Office/ee861097.aspx

    Outlook Help Forums at the link above.

    They will help you with your Outlook questions when repost you in the Office Forums above.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    For any question on Windows 7:

    http://social.answers.Microsoft.com/forums/en-us/category/Windows7

    Link above is Windows 7 Forum for questions on Windows 7.

    Windows 7 questions should be directed to the it.

    You are in the Vista Forums.

    See you soon.

    Mick Murphy - Microsoft partner

  • Your preference file is damaged or not valid google chrome unable to retrieve the settings

    Hello all,.

    I get this error message when loading google chrome via Windows 7: your preference file is damaged or not valid google chrome unable to retrieve the settings. Any suggestions please let me know.

    Kind regards

    Sugasaff

    Hello Sugasaff,

    Thanks for posting your query on the Microsoft Community.

    I would like to ask you:

    • The problem is specific to a single application?
    • Have you tried using Internet Explorer and check if it works well?

    You can try to uninstall and reinstall Chrome and check if it works very well.

    Refer,

    Uninstall or change a program

    To download and install again, see:

    https://www.Google.com/intl/en/chrome/browser/

    Hope this information was useful.

  • Retrieve the selected text

    Hello

    I just know how I can retrieve the text selected via the Menu:

    I add a MenuItem to the category system so that it is available everywhere:

    ... ApplicationMenuItemRepository.getInstance().addMenuItem(ApplicationMenuItemRepository.MENUITEM_SYSTEM,this);...
    

    Then after that I selected the text in the browser for example, I click on the Menu button:

    public Object run(Object context) {
      if ( context instanceof ) {
        //do something with the selected Text    ...
      }
    }
    

    It should allow me to do something with the text I've selected. What instance is that the text of selected?

    Can someone help me here?

    Thank you in advance!

            if (fld.isSelectionCopyable()){
                Clipboard cd = Clipboard.getClipboard();
                fld.selectionCopy(cd);
                Object s3 = cd.get();
            //(....)
    

    On the second reading of your code, you do not use the Clipboard correctly. Try the above.

  • Retrieve the tasks and events for a Virtual Machine

    Hello everyone.

    This question may seem trivial to some people here, but I cannot make it work: I would like to use VCO to retrieve the tasks and events for a specific virtual machine (IN parameter). Can someone help me to do?

    Best regards

    As I said, it must create a collector by using the createCollectorForTasks method in VcTaskManager.

    The parameter of this method is an instance of VcTaskFilterSpec, in which specify you the object to filter (in your case, the reference entity VM)

    You will get a VcTaskHistoryCollector which can only be traversed by using the methods readNextTasks and readPreviousTasks.

    // Get TaskManager service
    var sdktm = vm.sdkConnection.taskManager;
    
    // Create FilterSpec containing vm reference to filter
    var filter = new VcTaskFilterSpec();
    var spec = new VcTaskFilterSpecByEntity();
    spec.entity = vm.reference;
    spec.recursion = VcTaskFilterSpecRecursionOption.self;
    filter.entity = spec;
    
    // Create collector
    var collector = sdktm.createCollectorForTasks(filter);
    collector.resetCollector();
    
    // Browse all pages returned by collector (10 entries per page)
    var taskPage;
    while ((taskPage = collector.readPreviousTasks(10)) != null)
    {
        for each (var task in taskPage)
        {
            System.log("Task: " + task.name + " -> " + task.startTime);
        }
    }
    
  • Retrieve the Name of the tag property

    I'm definitely a novice PowerCLI. However, I have a script which is heavily borrowed from http://www.vstrong.info/2013/10/18/vmware-powercli-script-to-query-virtual-machine-events/

    What I would like to make in addition to the values that are retrieved, also receive the Name property of the attribute of the tag.

    The script I use now is:

    $vcenterserver = "myvcenter".

    # Check if VMware Snapin is loaded, otherwise, load

    If ((Get - PSSnapin - name VMware.VimAutomation.Core - ErrorAction SilentlyContinue) - eq $null)

    {

    Add-PSSnapin VMware.VimAutomation.Core

    }

    SE connect-VIServer-Server $vcenterserver

    $CDT = get-Date

    Get-VM-name testvm | »

    Get-VIEvent-Types of information - start $CDT. AddDays(-30)-finishing $CDT | »

    Where {'}

    $_. GetType(). Name - eq "VmBeingDeployedEvent" "

    - or $_. GetType(). Name - eq "VmCreatedEvent" "

    - or $_. GetType(). Name - eq "VmRegisteredEvent"} | »

    Select the name of user, Createduserid, FullFormattedMessage, @{Name = "VM"; Expression = {$_.} Vm.Name}}, @{Name = "RC Code"; Expression = {$_.} Vm.Tag}}

    He retrieves the correct values with the exception of the tag for the virtual machine. I also tried @{Name = "RC Code"; Expression = {$_.} Vm.Tag.Name}}

    I can extract the value in a table using the following command, but can't seem to pull the Name property:

    Get-VM-name testvm | Get-TagAssignment-category RCCode | Select-Object - ExpandProperty tag

    Description of the categories of name

    ----                           --------                       -----------

    10031 technical RCCode except...

    Any help would be appreciated, thanks!

    OK, then try this. I have not yet tested, but it should do it for you:

    Select the name of user, Createduserid, FullFormattedMessage, @{Name = "VM"; Expression = {$_.} Vm.Name}}, @{Name = "RC Code"; Expression = {$vm = ($_.)} UMM name); Get-TagAssignment | where {$_.} Entity-like ("$VM")}}} | Export Csv c:\Temp\csv.csv - NoTypeInformation - UseCulture

    The issue was that as the expression of Code RC worked essentially a new request, the $_. UMM name was irrelevant for the entity. Instead I just had the previous $_. UMM name in a variable that is referenced in the cmdlet that followed. Let me know if it works for you.

  • Failed to retrieve the target data system for FDM 11.1.2.3 HFM adapter

    Hello gurus,

    : Server 1 HFM

    : Server 2 FDM

    Server 3: Database server

    1. I have managed to create an application of FDM using FDM web client.

    2. later I imported the FDM adapter - FM11X-G6-C in the Workbench of FDM and also saved the file fdmFM11XG6C.dll successfully.

    3. We then defined the Machine profile and also specified with the custom sizes available in our HFM application.

    4. we have then configured the adapter with success.

    5. we get the following question when browse us the metadata -> control tables

    Cannot retrieve the data on the target system

    6 log has the following entry

    Error:

    Code...-2147220966

    Description... System.Runtime.InteropServices.COMException (0x8004021A):

    {0F677127-F815-4495-8290-AF2899C9482F}1-2147220966010/16/2013 07:41:57< servername FDM >CHsxClient.cpp282011.1.2.3.000.4045Unknown error

    at HSXCLIENTLib.HsxClientClass.OpenApplication (String bstrClusterName, String bstrProduct, String bstrApp, ppIUnkServer, & object object & ppIUnkSession)

    at fdmFM11XG6C.clsHFMadapter.fConnect)

    Process... clsFMAdapter.fConnect

    Component... D:\FM11X-G6-C_1002\AdapterComponents\fdmFM11XG6C\fdmFM11XG6C.dll

    Version... 1116

    Identification:

    ... The admin user

    ... Computer name < servername FDM >

    Connection of FINANCIAL MANAGEMENT:

    Name of the application...

    Name of the cluster...

    Field...

    Connect status... No open connection

    * Start the journal entry for the Runtime Error FDM [2013-10-16 07:41:57] *.

    -------------------------------------------------------------

    ERROR:

    Code............................................. 10054

    Description... Adapter function [fConnect] failed.

    Process... clsBlockProcessor.DimensionList

    The component... upsWBlockProcessorDM

    Version.......................................... 1112

    Thread........................................... 80304

    IDENTIFICATION:

    User............................................. admin

    ... Computer name < servername FDM >

    Name of the application... < name of application of FDM >

    Client App....................................... WebClient

    CONNECTION:

    Provider......................................... SQLOLEDB

    Server data... < database server name >

    Name of database < database name >

    Trust connect... Fake

    Connect status... Open connection

    GLOBALS:

    Location......................................... Sample

    Location ID... 748

    Location Seg... 2

    Category......................................... WLCat

    ID of the category... 12

    Period........................................... Oct - 2013

    Period ID........................................ 10/31/2013

    POV Local........................................ Fake

    Language......................................... 1033

    User Level....................................... 1

    All Partitions... True

    Is Auditor....................................... Fake

    * Start the journal entry for the Runtime Error FDM [2013-10-16 07:41:58] *.

    -------------------------------------------------------------

    ERROR:

    Code...-2146818234

    Description... Adapter function [fConnect] failed.

    Procedure........................................ ObjScriptReturnMarshaler.GetDimensionList

    Any help will be much appreciated.

    Thank you all for your help...

    It was a problem with the Machine profile configuration, where I had updated the username and password and it had to remain a Virgin.

    Keep the username blank password in the configuration of the machine profile has solved the problem.

  • Retrieve the vm to a virtual computer model Specs

    I try to get the specifications of all the virtual machines within a model of vApp and wonder if someone has already done this?

    On itialial thought, my instinct is to collect the vm Morefs of in the model and then query the object directly via vCenter info, bypassing vCloud Director completely. But there must be a medium eisier.

    You need to get the host name vCenter for being given (by extension of the admin)

    He is former quick & dirty code so this can certainly be improved.

    var vdc = vApp.parent;var org = vdc.parent;var host = org.parent;
    
    var providerVdcReference = vdc.toAdminObject().providerVdcReference;var providerVdc = host.getEntityByReference(VclEntityType.providerVdc ,providerVdcReference);var adminExtProviderVdc = providerVdc.toAdminExtensionObject();
    
    //Get vCenter Resource pool var vimServerUrl = adminExtProviderVdc.getVimServer().url;
    
    var vimServerHostName = vimServerUrl.substring(vimServerUrl.indexOf("://") + 3, vimServerUrl.lastIndexOf(":")); 
    

    and then use something like this:

    Server.findForType ("VC:VirtualMachine", vimServerHostName + "/" + vmMoRef);

    You can also get the ID of the object in vCD and use vCenter query service to retrieve the object by name, but I do not have a code example for him.

    Christophe.

  • Retrieve the value of the session of statistics_level

    Hello

    is there a way to retrieve the current value (i.e. session) of the parameter statistics_level when the user does not have access to the parameter$ v?

    I need to do that through JDBC if all SQL * more order is not an option

    Ideally, a solution that works on 10.x and 11.x

    The reason why I need this, is that I want to change the level of 'all' but change back to the original value after my program is done.

    I would like to avoid re - connect in order to reset this value.

    Thank you

    I'm curious to know why you want to change the parameter STATISTICS_LEVEL across the session. There is probably a good reason for the change, but the WHOLE setting can cause significant performance problems (10.x seems to be more affected by the change, more noticeable with Oracle database type nested loops joins).

    If your session is allowed to query V$ SES_OPTIMIZER_ENV, you can determine the current value of the parameter STATISTICS_LEVEL of the session:

    SELECT
      SID,
      NAME,
      VALUE
    FROM
      V$SES_OPTIMIZER_ENV
    WHERE
      NAME='statistics_level'
    ORDER BY
      SID;
    
    SID NAME                 VALUE
    --- -------------------- -------
      1 statistics_level     typical
      2 statistics_level     typical
      3 statistics_level     typical
     32 statistics_level     typical
     63 statistics_level     typical
     64 statistics_level     typical
     65 statistics_level     typical
     94 statistics_level     typical
     95 statistics_level     typical
     96 statistics_level     typical
    125 statistics_level     typical
    126 statistics_level     typical
    127 statistics_level     typical
    128 statistics_level     basic
    129 statistics_level     typical
    156 statistics_level     typical
    157 statistics_level     typical
    158 statistics_level     typical
    161 statistics_level     typical
    187 statistics_level     typical
    188 statistics_level     typical
    189 statistics_level     typical
    190 statistics_level     basic
    191 statistics_level     typical
    192 statistics_level     basic
    218 statistics_level     typical
    219 statistics_level     typical
    220 statistics_level     basic
    221 statistics_level     basic
    222 statistics_level     typical
    

    Otherwise, specific to the current session:

    SELECT
      SID,
      NAME,
      VALUE
    FROM
      V$SES_OPTIMIZER_ENV
    WHERE
      NAME='statistics_level'
      AND SID=
        (SELECT
           SID
         FROM
           V$MYSTAT
         WHERE
           ROWNUM=1);
    
    SID NAME                 VALUE
    --- -------------------- -------
     65 statistics_level     typical
    

    Charles Hooper
    http://hoopercharles.WordPress.com/
    IT Manager/Oracle DBA
    K & M-making Machine, Inc.

  • Cannot retrieve the data by binary storage by default for XML 11 g

    Oracle 11.2

    All,

    As someone mentioned in another post, I got I should use binary XMLType CLOB rather than 11g because it is more efficient. When I create the XMLType column as binary I can't retrieve the value of the column, but when I use CLOB I am able to extract data on.

    -Create table with XMLTYPE column.  Since it is 11.2 storage of the column is automatically binary
    CREATE THE TABLE HR. XMLTABLESTORE (key_id VARCHAR2 (10) PRIMARY KEY, xmlloaddate date, xml_column XMLTYPE);

    -Insert the XML into the XML column
    INSERT INTO HUMAN RESOURCES. VALUES XMLTABLESTORE (HR. XMLSEQUENCE. NEXTVAL, SYSDATE, XMLType (bfilename ('XMLDIRX', 'PROD_20110725_211550427_220b.xml'),
    nls_charset_id ('AL32UTF8'))); COMMIT;

    -When I do a select I see full XML in the xml_column column
    SELECT * FROM HR. XMLTABLESTORE

    -When I run the following query I get the following:
    SELECT extract (xml_column, ' / / MapItem/@ProductNum') ProductNum OF HR. XMLTABLESTORE

    ProductNum
    -------------
    XMLType

    -When I run the following query on the @, I get the following:
    SELECT extract (xml_column, ' / / MapItem/ProductNum ') ProductNum OF HR. XMLTABLESTORE

    ProductNum
    -------------
    Null value

    When I run the same SELECT query retrieves (xml_column, ' / / MapItem/@ProductNum') ProductNum OF HR. XMLTABLESTORE and the table is created by CLOB, I get out the expected value of the XML file.

    How can I get the query to retrieve the data through a binary file?

    I appreciate any help in advance.

    Thank you
    Shawn

    Published by: 886184 on Sep 20, 2011 15:42

    Probably a problem with your client tool.

    It works for me:

    SQL*Plus: Release 11.2.0.2.0 Beta on Mer. Sept. 21 19:39:55 2011
    
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.
    
    Connected to:
    Oracle Database 11g Express Edition Release 11.2.0.2.0 - Beta
    
    SQL> CREATE TABLE xmltablestore (
      2    key_id VARCHAR2(10) PRIMARY KEY
      3  , xmlloaddate DATE
      4  , xml_column XMLTYPE
      5  );
    
    Table created.
    
    SQL> INSERT INTO xmltablestore
      2  VALUES ('1', sysdate, XMLType(bfilename('TEST_DIR', 'PROD_20110725_211550427_220b.xml'),nls_charset_id('AL32UTF8')))
      3  ;
    
    1 row created.
    
    SQL> commit;
    
    Commit complete.
    
    SQL> SELECT extract(xml_column, '//MapItem/@ProductNum') ProductNum
      2  FROM xmltablestore
      3  ;
    
    PRODUCTNUM
    --------------------------------------------------------------------------------
    63481062975
    
    SQL> SELECT extractValue(xml_column, '//MapItem/@ProductNum') ProductNum
      2  FROM xmltablestore
      3  ;
    
    PRODUCTNUM
    --------------------------------------------------------------------------------
    63481062975
    
    SQL> SELECT xmlcast(
      2          xmlquery('/Entries/Category/MapItem/@ProductNum'
      3           passing t.xml_column
      4           returning content
      5          )
      6          as number
      7         ) ProductNum
      8  FROM xmltablestore t
      9  ;
    
    PRODUCTNUM
    ----------
    6,3481E+10
    
    SQL> SELECT xmlcast(
      2          xmlquery('/Entries/Category/MapItem/@ProductNum'
      3           passing t.xml_column
      4           returning content
      5          )
      6          as varchar2(30)
      7         ) ProductNum
      8  FROM xmltablestore t
      9  ;
    
    PRODUCTNUM
    ------------------------------
    63481062975
    

    BTW, extract and extractvalue functions are deprecated in version 11.2.
    Oracle now recommends using XMLCast/XMLQuery.

  • Retrieve the package setting in BI Publisher

    I'm trying to get the setting in BI PUblisher a package.
    I don't know how this is done or if it is possible?
    I know that I can use in a where clause clause e.g. & pmaxuser, but I want to use the value of the package to display in my word template.
    How to retrieve the value in my data model to use in my model of word?
    Please provide a sample of what must be defined in the model.
    Thanks in advance for your help.

    Data model

    < parameter name = "docnum" dataType = "character" defaultValue = "doc123" / >
    < parameter name = "pmaxuser" dataType = defaultValue = 'c' ' character' / >
    < parameter name = "pmaxdate" dataType = "date" defaultValue = "December 31, 10" / >

    Package specifications

    CREATE or REPLACE package pkg_bi_payable as

    DOCNUM varchar2 (8); - this parameter is sent by Bi PUblisher
    PMAXUSER varchar2 (30); - I want that this return to PUbliser BI
    Date of PMAXDATE; - I want that this return to PUbliser BI

    MaxDate Function to return a Boolean value;

    END;

    Package body


    CREATE or REPLACE package body pkg_bi_payable
    as

    MaxDate Function to return a Boolean value is

    Start

    pmaxuser: = 'CCCCC ';
    pmaxdate: = sysdate;

    return (TRUE);

    end;
    end;

    There is a setting on the data model to insert parameter in all of XML data values. So you will not need the function to retrieve it. Check the configuration manager.
    Tim

  • good way to store/retrieve the lat lon

    Hello

    I need to store points in the database and then retrieve the distance to these points. I'll also have to get the lat lon.

    I thought that the column type must be SDO_GEOMETRY

    and when I'm ready to find a distance to a point I can do (for example, where mypoint is a column SDO_GEOMETRY):
    SELECT 
    SDO_GEOM.SDO_DISTANCE(mypoint, 
         SDO_GEOMETRY
         (
         2001, -- SDO_GTYPE attribute: "2" in 2001 specifies dimensionality is 2.
         NULL, -- other fields are set to NULL.
         SDO_POINT_TYPE(-78.907167, 35.988644, NULL),
         NULL,
         NULL
         ),
        0.01) distance
    FROM
    geo_test
    What is the best way to store points and calculate the distance?

    What happens if I want to retrieve the latitude and longitude using a select statement? How do I do that?

    Hello

    IIF you use long lat for your data, you must explicitly set the SRID. If the system does not know what are the values long lat, which means the distance will return a Cartesian distance that will be small and not what you expect.

    There are 2 options for contact information:

    for the geometry SDO_POINT_TYPE explicit;

    Select a.mypoint.sdo_point.x, a.mypoint.sdo_point.y,.
    of geo_test one

    NOTE: you must use the alias for your table name

    or you can use the generic option SDO_UTIL. GETVERTICES

    http://download.Oracle.com/docs/HTML/B14255_01/sdo_util.htm#sthref2424

    SELECT t.X, t.Y, t.id
    OF geo_test c,.
    TABLE (SDO_UTIL. GETVERTICES (c.myPoint)) t

    Luke

Maybe you are looking for